@public-ui/components 1.6.0-rc.10 → 1.6.0-rc.12
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/custom-elements.json +85 -1
- package/dist/cjs/{controller-c3dbd7c8.js → controller-20c47dac.js} +1 -1
- package/dist/cjs/{controller-c3dbd7c8.js.map → controller-20c47dac.js.map} +1 -1
- package/dist/cjs/{controller-318123f0.js → controller-6aabbf41.js} +1 -1
- package/dist/cjs/{controller-318123f0.js.map → controller-6aabbf41.js.map} +1 -1
- package/dist/cjs/{controller-aff1063a.js → controller-9a10b30b.js} +1 -1
- package/dist/cjs/{controller-aff1063a.js.map → controller-9a10b30b.js.map} +1 -1
- package/dist/cjs/{controller-6d3e3486.js → controller-d513b916.js} +1 -1
- package/dist/cjs/{controller-6d3e3486.js.map → controller-d513b916.js.map} +1 -1
- package/dist/cjs/{controller-icon-d20f7f1b.js → controller-icon-d2ec9da9.js} +1 -1
- package/dist/cjs/{controller-icon-d20f7f1b.js.map → controller-icon-d2ec9da9.js.map} +1 -1
- package/dist/cjs/kol-badge.cjs.entry.js +1 -1
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc_2.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-modal.cjs.entry.js +1 -1
- package/dist/cjs/kol-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-progress.cjs.entry.js +1 -1
- package/dist/cjs/kol-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
- package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
- package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
- package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/kol-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-version.cjs.entry.js +1 -1
- package/dist/cjs/kolibri.cjs.js +1 -1
- package/dist/cjs/{label-62d191b9.js → label-5738ac71.js} +1 -1
- package/dist/cjs/label-5738ac71.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/components/component.js.map +1 -1
- package/dist/components/component13.js +1 -1
- package/dist/components/component13.js.map +1 -1
- package/dist/components/component15.js +1 -1
- package/dist/components/component15.js.map +1 -1
- package/dist/components/component5.js +1 -1
- package/dist/components/component5.js.map +1 -1
- package/dist/components/component8.js +1 -1
- package/dist/components/component8.js.map +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-checkbox.js.map +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-color.js.map +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-date.js.map +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-email.js.map +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-file.js.map +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-number.js.map +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-password.js.map +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-range.js.map +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-input-text.js.map +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-textarea.js.map +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label.js.map +1 -1
- package/dist/esm/{controller-1ef374de.js → controller-0a60db6b.js} +1 -1
- package/dist/esm/{controller-1ef374de.js.map → controller-0a60db6b.js.map} +1 -1
- package/dist/esm/{controller-7726af85.js → controller-3b1a37ac.js} +1 -1
- package/dist/esm/{controller-7726af85.js.map → controller-3b1a37ac.js.map} +1 -1
- package/dist/esm/{controller-01bbe05c.js → controller-d9fb3dc1.js} +1 -1
- package/dist/esm/{controller-01bbe05c.js.map → controller-d9fb3dc1.js.map} +1 -1
- package/dist/esm/{controller-3950f463.js → controller-ff99125c.js} +1 -1
- package/dist/esm/{controller-3950f463.js.map → controller-ff99125c.js.map} +1 -1
- package/dist/esm/{controller-icon-d403e7d6.js → controller-icon-ba3c5351.js} +1 -1
- package/dist/esm/{controller-icon-d403e7d6.js.map → controller-icon-ba3c5351.js.map} +1 -1
- package/dist/esm/kol-badge.entry.js +1 -1
- package/dist/esm/kol-breadcrumb.entry.js +1 -1
- package/dist/esm/kol-button-wc_2.entry.js +1 -1
- package/dist/esm/kol-button-wc_2.entry.js.map +1 -1
- package/dist/esm/kol-icon.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js.map +1 -1
- package/dist/esm/kol-input-date.entry.js +1 -1
- package/dist/esm/kol-input-date.entry.js.map +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js.map +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js.map +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js.map +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js.map +1 -1
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js.map +1 -1
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js.map +1 -1
- package/dist/esm/kol-input-text.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js.map +1 -1
- package/dist/esm/kol-link-group.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js.map +1 -1
- package/dist/esm/kol-modal.entry.js +1 -1
- package/dist/esm/kol-nav.entry.js +1 -1
- package/dist/esm/kol-progress.entry.js +1 -1
- package/dist/esm/kol-select.entry.js +1 -1
- package/dist/esm/kol-select.entry.js.map +1 -1
- package/dist/esm/kol-skip-nav.entry.js +1 -1
- package/dist/esm/kol-span-wc.entry.js +1 -1
- package/dist/esm/kol-split-button.entry.js +1 -1
- package/dist/esm/kol-symbol.entry.js +1 -1
- package/dist/esm/kol-tabs.entry.js +1 -1
- package/dist/esm/kol-textarea.entry.js +1 -1
- package/dist/esm/kol-textarea.entry.js.map +1 -1
- package/dist/esm/kol-tooltip.entry.js +1 -1
- package/dist/esm/kol-tooltip.entry.js.map +1 -1
- package/dist/esm/kol-version.entry.js +1 -1
- package/dist/esm/kolibri.js +1 -1
- package/dist/esm/{label-2a601017.js → label-bd9566f6.js} +1 -1
- package/dist/esm/label-bd9566f6.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/kolibri/{controller-1ef374de.js → controller-0a60db6b.js} +1 -1
- package/dist/kolibri/{controller-7726af85.js → controller-3b1a37ac.js} +1 -1
- package/dist/kolibri/{controller-01bbe05c.js → controller-d9fb3dc1.js} +1 -1
- package/dist/kolibri/{controller-3950f463.js → controller-ff99125c.js} +1 -1
- package/dist/kolibri/{controller-icon-d403e7d6.js → controller-icon-ba3c5351.js} +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-button-wc_2.entry.js +1 -1
- package/dist/kolibri/kol-button-wc_2.entry.js.map +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js.map +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js.map +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js.map +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js.map +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js.map +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js.map +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js.map +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js.map +1 -1
- package/dist/kolibri/kol-link-group.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js.map +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-span-wc.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-symbol.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js.map +1 -1
- package/dist/kolibri/kol-tooltip.entry.js +1 -1
- package/dist/kolibri/kol-tooltip.entry.js.map +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/kolibri.esm.js.map +1 -1
- package/dist/kolibri/label-bd9566f6.js +4 -0
- package/dist/kolibri/{label-2a601017.js.map → label-bd9566f6.js.map} +1 -1
- package/dist/types/components/input-checkbox/component.d.ts +2 -0
- package/dist/types/components/input-color/component.d.ts +2 -0
- package/dist/types/components/input-date/component.d.ts +2 -0
- package/dist/types/components/input-email/component.d.ts +2 -0
- package/dist/types/components/input-file/component.d.ts +2 -0
- package/dist/types/components/input-number/component.d.ts +2 -0
- package/dist/types/components/input-password/component.d.ts +2 -0
- package/dist/types/components/input-radio/component.d.ts +2 -0
- package/dist/types/components/input-range/component.d.ts +2 -0
- package/dist/types/components/input-text/component.d.ts +2 -0
- package/dist/types/components/select/component.d.ts +2 -0
- package/dist/types/components/textarea/component.d.ts +2 -0
- package/dist/types/components.d.ts +96 -0
- package/doc/input-checkbox.md +3 -0
- package/doc/input-color.md +3 -0
- package/doc/input-date.md +3 -0
- package/doc/input-email.md +3 -0
- package/doc/input-file.md +23 -20
- package/doc/input-number.md +3 -0
- package/doc/input-password.md +3 -0
- package/doc/input-radio-group.md +1 -0
- package/doc/input-radio.md +21 -18
- package/doc/input-range.md +3 -0
- package/doc/input-text.md +3 -0
- package/doc/modal.md +1 -1
- package/doc/pagination.md +1 -0
- package/doc/select.md +24 -21
- package/doc/table.md +1 -0
- package/doc/textarea.md +3 -0
- package/doc/tooltip.md +24 -0
- package/jest-test-results.json +1 -1
- package/package.json +1 -1
- package/vscode-custom-data.json +216 -0
- package/dist/cjs/label-62d191b9.js.map +0 -1
- package/dist/esm/label-2a601017.js.map +0 -1
- package/dist/kolibri/label-2a601017.js +0 -4
- /package/dist/kolibri/{controller-1ef374de.js.map → controller-0a60db6b.js.map} +0 -0
- /package/dist/kolibri/{controller-7726af85.js.map → controller-3b1a37ac.js.map} +0 -0
- /package/dist/kolibri/{controller-01bbe05c.js.map → controller-d9fb3dc1.js.map} +0 -0
- /package/dist/kolibri/{controller-3950f463.js.map → controller-ff99125c.js.map} +0 -0
- /package/dist/kolibri/{controller-icon-d403e7d6.js.map → controller-icon-ba3c5351.js.map} +0 -0
package/package.json
CHANGED
package/vscode-custom-data.json
CHANGED
|
@@ -11495,6 +11495,24 @@
|
|
|
11495
11495
|
"name": "_tab-index",
|
|
11496
11496
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
11497
11497
|
},
|
|
11498
|
+
{
|
|
11499
|
+
"name": "_tooltip-align",
|
|
11500
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
11501
|
+
"values": [
|
|
11502
|
+
{
|
|
11503
|
+
"name": "bottom"
|
|
11504
|
+
},
|
|
11505
|
+
{
|
|
11506
|
+
"name": "left"
|
|
11507
|
+
},
|
|
11508
|
+
{
|
|
11509
|
+
"name": "right"
|
|
11510
|
+
},
|
|
11511
|
+
{
|
|
11512
|
+
"name": "top"
|
|
11513
|
+
}
|
|
11514
|
+
]
|
|
11515
|
+
},
|
|
11498
11516
|
{
|
|
11499
11517
|
"name": "_touched",
|
|
11500
11518
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -11608,6 +11626,24 @@
|
|
|
11608
11626
|
"name": "_tab-index",
|
|
11609
11627
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
11610
11628
|
},
|
|
11629
|
+
{
|
|
11630
|
+
"name": "_tooltip-align",
|
|
11631
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
11632
|
+
"values": [
|
|
11633
|
+
{
|
|
11634
|
+
"name": "bottom"
|
|
11635
|
+
},
|
|
11636
|
+
{
|
|
11637
|
+
"name": "left"
|
|
11638
|
+
},
|
|
11639
|
+
{
|
|
11640
|
+
"name": "right"
|
|
11641
|
+
},
|
|
11642
|
+
{
|
|
11643
|
+
"name": "top"
|
|
11644
|
+
}
|
|
11645
|
+
]
|
|
11646
|
+
},
|
|
11611
11647
|
{
|
|
11612
11648
|
"name": "_touched",
|
|
11613
11649
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -11705,6 +11741,24 @@
|
|
|
11705
11741
|
"name": "_tab-index",
|
|
11706
11742
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
11707
11743
|
},
|
|
11744
|
+
{
|
|
11745
|
+
"name": "_tooltip-align",
|
|
11746
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
11747
|
+
"values": [
|
|
11748
|
+
{
|
|
11749
|
+
"name": "bottom"
|
|
11750
|
+
},
|
|
11751
|
+
{
|
|
11752
|
+
"name": "left"
|
|
11753
|
+
},
|
|
11754
|
+
{
|
|
11755
|
+
"name": "right"
|
|
11756
|
+
},
|
|
11757
|
+
{
|
|
11758
|
+
"name": "top"
|
|
11759
|
+
}
|
|
11760
|
+
]
|
|
11761
|
+
},
|
|
11708
11762
|
{
|
|
11709
11763
|
"name": "_touched",
|
|
11710
11764
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -11835,6 +11889,24 @@
|
|
|
11835
11889
|
"name": "_tab-index",
|
|
11836
11890
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
11837
11891
|
},
|
|
11892
|
+
{
|
|
11893
|
+
"name": "_tooltip-align",
|
|
11894
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
11895
|
+
"values": [
|
|
11896
|
+
{
|
|
11897
|
+
"name": "bottom"
|
|
11898
|
+
},
|
|
11899
|
+
{
|
|
11900
|
+
"name": "left"
|
|
11901
|
+
},
|
|
11902
|
+
{
|
|
11903
|
+
"name": "right"
|
|
11904
|
+
},
|
|
11905
|
+
{
|
|
11906
|
+
"name": "top"
|
|
11907
|
+
}
|
|
11908
|
+
]
|
|
11909
|
+
},
|
|
11838
11910
|
{
|
|
11839
11911
|
"name": "_touched",
|
|
11840
11912
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -11908,6 +11980,24 @@
|
|
|
11908
11980
|
"name": "_tab-index",
|
|
11909
11981
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
11910
11982
|
},
|
|
11983
|
+
{
|
|
11984
|
+
"name": "_tooltip-align",
|
|
11985
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
11986
|
+
"values": [
|
|
11987
|
+
{
|
|
11988
|
+
"name": "bottom"
|
|
11989
|
+
},
|
|
11990
|
+
{
|
|
11991
|
+
"name": "left"
|
|
11992
|
+
},
|
|
11993
|
+
{
|
|
11994
|
+
"name": "right"
|
|
11995
|
+
},
|
|
11996
|
+
{
|
|
11997
|
+
"name": "top"
|
|
11998
|
+
}
|
|
11999
|
+
]
|
|
12000
|
+
},
|
|
11911
12001
|
{
|
|
11912
12002
|
"name": "_touched",
|
|
11913
12003
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -12009,6 +12099,24 @@
|
|
|
12009
12099
|
"name": "_tab-index",
|
|
12010
12100
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
12011
12101
|
},
|
|
12102
|
+
{
|
|
12103
|
+
"name": "_tooltip-align",
|
|
12104
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
12105
|
+
"values": [
|
|
12106
|
+
{
|
|
12107
|
+
"name": "bottom"
|
|
12108
|
+
},
|
|
12109
|
+
{
|
|
12110
|
+
"name": "left"
|
|
12111
|
+
},
|
|
12112
|
+
{
|
|
12113
|
+
"name": "right"
|
|
12114
|
+
},
|
|
12115
|
+
{
|
|
12116
|
+
"name": "top"
|
|
12117
|
+
}
|
|
12118
|
+
]
|
|
12119
|
+
},
|
|
12012
12120
|
{
|
|
12013
12121
|
"name": "_touched",
|
|
12014
12122
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -12134,6 +12242,24 @@
|
|
|
12134
12242
|
"name": "_tab-index",
|
|
12135
12243
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
12136
12244
|
},
|
|
12245
|
+
{
|
|
12246
|
+
"name": "_tooltip-align",
|
|
12247
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
12248
|
+
"values": [
|
|
12249
|
+
{
|
|
12250
|
+
"name": "bottom"
|
|
12251
|
+
},
|
|
12252
|
+
{
|
|
12253
|
+
"name": "left"
|
|
12254
|
+
},
|
|
12255
|
+
{
|
|
12256
|
+
"name": "right"
|
|
12257
|
+
},
|
|
12258
|
+
{
|
|
12259
|
+
"name": "top"
|
|
12260
|
+
}
|
|
12261
|
+
]
|
|
12262
|
+
},
|
|
12137
12263
|
{
|
|
12138
12264
|
"name": "_touched",
|
|
12139
12265
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -12211,6 +12337,24 @@
|
|
|
12211
12337
|
"name": "_tab-index",
|
|
12212
12338
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
12213
12339
|
},
|
|
12340
|
+
{
|
|
12341
|
+
"name": "_tooltip-align",
|
|
12342
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
12343
|
+
"values": [
|
|
12344
|
+
{
|
|
12345
|
+
"name": "bottom"
|
|
12346
|
+
},
|
|
12347
|
+
{
|
|
12348
|
+
"name": "left"
|
|
12349
|
+
},
|
|
12350
|
+
{
|
|
12351
|
+
"name": "right"
|
|
12352
|
+
},
|
|
12353
|
+
{
|
|
12354
|
+
"name": "top"
|
|
12355
|
+
}
|
|
12356
|
+
]
|
|
12357
|
+
},
|
|
12214
12358
|
{
|
|
12215
12359
|
"name": "_touched",
|
|
12216
12360
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -12377,6 +12521,24 @@
|
|
|
12377
12521
|
"name": "_tab-index",
|
|
12378
12522
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
12379
12523
|
},
|
|
12524
|
+
{
|
|
12525
|
+
"name": "_tooltip-align",
|
|
12526
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
12527
|
+
"values": [
|
|
12528
|
+
{
|
|
12529
|
+
"name": "bottom"
|
|
12530
|
+
},
|
|
12531
|
+
{
|
|
12532
|
+
"name": "left"
|
|
12533
|
+
},
|
|
12534
|
+
{
|
|
12535
|
+
"name": "right"
|
|
12536
|
+
},
|
|
12537
|
+
{
|
|
12538
|
+
"name": "top"
|
|
12539
|
+
}
|
|
12540
|
+
]
|
|
12541
|
+
},
|
|
12380
12542
|
{
|
|
12381
12543
|
"name": "_touched",
|
|
12382
12544
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -12482,6 +12644,24 @@
|
|
|
12482
12644
|
"name": "_tab-index",
|
|
12483
12645
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
12484
12646
|
},
|
|
12647
|
+
{
|
|
12648
|
+
"name": "_tooltip-align",
|
|
12649
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
12650
|
+
"values": [
|
|
12651
|
+
{
|
|
12652
|
+
"name": "bottom"
|
|
12653
|
+
},
|
|
12654
|
+
{
|
|
12655
|
+
"name": "left"
|
|
12656
|
+
},
|
|
12657
|
+
{
|
|
12658
|
+
"name": "right"
|
|
12659
|
+
},
|
|
12660
|
+
{
|
|
12661
|
+
"name": "top"
|
|
12662
|
+
}
|
|
12663
|
+
]
|
|
12664
|
+
},
|
|
12485
12665
|
{
|
|
12486
12666
|
"name": "_touched",
|
|
12487
12667
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -13329,6 +13509,24 @@
|
|
|
13329
13509
|
"name": "_tab-index",
|
|
13330
13510
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
13331
13511
|
},
|
|
13512
|
+
{
|
|
13513
|
+
"name": "_tooltip-align",
|
|
13514
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
13515
|
+
"values": [
|
|
13516
|
+
{
|
|
13517
|
+
"name": "bottom"
|
|
13518
|
+
},
|
|
13519
|
+
{
|
|
13520
|
+
"name": "left"
|
|
13521
|
+
},
|
|
13522
|
+
{
|
|
13523
|
+
"name": "right"
|
|
13524
|
+
},
|
|
13525
|
+
{
|
|
13526
|
+
"name": "top"
|
|
13527
|
+
}
|
|
13528
|
+
]
|
|
13529
|
+
},
|
|
13332
13530
|
{
|
|
13333
13531
|
"name": "_touched",
|
|
13334
13532
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -13760,6 +13958,24 @@
|
|
|
13760
13958
|
"name": "_tab-index",
|
|
13761
13959
|
"description": "Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)"
|
|
13762
13960
|
},
|
|
13961
|
+
{
|
|
13962
|
+
"name": "_tooltip-align",
|
|
13963
|
+
"description": "Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.",
|
|
13964
|
+
"values": [
|
|
13965
|
+
{
|
|
13966
|
+
"name": "bottom"
|
|
13967
|
+
},
|
|
13968
|
+
{
|
|
13969
|
+
"name": "left"
|
|
13970
|
+
},
|
|
13971
|
+
{
|
|
13972
|
+
"name": "right"
|
|
13973
|
+
},
|
|
13974
|
+
{
|
|
13975
|
+
"name": "top"
|
|
13976
|
+
}
|
|
13977
|
+
]
|
|
13978
|
+
},
|
|
13763
13979
|
{
|
|
13764
13980
|
"name": "_touched",
|
|
13765
13981
|
"description": "Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde."
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"label-62d191b9.js","mappings":";;;;;;;;AAYA,MAAM,cAAc,GAAG,qBAAqB,CAAC;AAK7C,MAAM,YAAY,GAAG,OAAO,CAAC;AAO7B,SAAS,kBAAkB,CAAC,GAAW;;EACtC,OAAO,OAAO,GAAG,KAAK,QAAQ,GAAG,CAAA,MAAA,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,0CAAE,MAAM,KAAI,CAAC,GAAG,CAAC,CAAC;AAC7E,CAAC;SAQe,sBAAsB,CAAC,GAAW,EAAE,GAAG,GAAG,CAAC;EAC1D,OAAO,kBAAkB,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;AACvC,CAAC;SAOe,mBAAmB,CAAC,GAAW;EAC9C,OAAO,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/B,CAAC;AAqCD,SAAS,oBAAoB,CAAC,OAA2B;;EACxD,OAAO;IACN,KAAK,EAAE;MACN,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG;;QACxC,IAAI,QAAO,MAAA,OAAO,CAAC,KAAK,0CAAE,UAAU,CAAA,KAAK,UAAU,EAAE;UACpD,MAAA,OAAO,CAAC,KAAK,0CAAE,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;SACxD;QACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,sBAAsB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,mBAAmB,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE;UACpHA,mBAAQ,CAAC,0BAA0B,KAAK,qFAAqF,CAAC,CAAC;SAC/H;QACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE;UACnDC,mBAAQ,CAAC,6DAA6D,CAAC,CAAC;SACxE;OACD;MACD,WAAW,EAAE,MAAA,OAAO,CAAC,KAAK,0CAAE,WAAW;KACvC;GACD,CAAC;AACH,CAAC;AAED,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;MAC5B,aAAa,GAAG,CAAC,SAAoC,EAAE,KAAqB,EAAE,UAA8B,EAAE;EAC1HC,8BAAc,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/H,EAAE;AAEF,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;MACtD,2BAA2B,GAAG,CAC1C,SAAoC,EACpC,KAAmC,EACnC,UAA8B,EAAE;EAEhC,IAAI,KAAK,KAAK,EAAE,EAAE;IACjB,KAAK,GAAG,KAAK,CAAC;GACd;EACDA,8BAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EACvD,6BAA6B,EAC7B,KAAK,EACL,oBAAoB,CAAC,OAAO,CAAC,CAC7B,CAAC;AACH;;;;;;;","names":["a11yHint","uiUxHint","watchValidator"],"sources":["src/types/props/label.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { a11yHint, uiUxHint } from '../../utils/a11y.tipps';\nimport { WatchStringOptions, watchValidator } from '../../utils/prop.validators';\n\n/* types */\n\n/**\n * This is a regular expression that matches all readable characters.\n *\n * Interesting: https://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters\n */\nconst READABLE_CHARS = /[a-zA-Z0-9äöüÄÖÜß]/g;\n\n/**\n * This is a regular expression that matches only numbers.\n */\nconst ONLY_NUMBERS = /^\\d+$/;\n\n/**\n * This function counts the number of readable characters in a string.\n * @param str The string to count.\n * @returns The number of readable characters in the string.\n */\nfunction countReadableChars(str: string): number {\n\treturn typeof str === 'string' ? str.match(READABLE_CHARS)?.length || 0 : 0;\n}\n\n/**\n * This function checks if a string has at least a certain number of readable characters.\n * @param str The string to check.\n * @param min The minimum number of readable characters.\n * @returns True if the string has at least the minimum number of readable characters, false otherwise.\n */\nexport function hasEnoughReadableChars(str: string, min = 1): boolean {\n\treturn countReadableChars(str) >= min;\n}\n\n/**\n * This function checks if a string contains only numbers.\n * @param str The string to check.\n * @returns True if the string contains only numbers, false otherwise.\n */\nexport function containsOnlyNumbers(str: string): boolean {\n\treturn ONLY_NUMBERS.test(str);\n}\n\n/**\n * Defines the type of the label property.\n */\nexport type LabelPropType = string;\n\n/**\n * Defines the type of the label with expert-slot toggle property.\n */\nexport type LabelWithExpertSlotPropType = LabelPropType | false;\n\n/**\n * The label property is used to label different elements:\n * - abbr -> title text\n * - button -> label text\n * - heading -> headline text\n * - input, select and textarea -> label text\n * - summary -> summary text\n * - quote, table -> caption text\n * - version -> version text\n * - etc.\n *\n * The label is often a mandatory attribute. If the value of the label is false,\n * the expert-slot will be used. Otherwise, the value of the label must be a string\n * and the expert-slot will be ignored.\n */\nexport type PropLabel = {\n\tlabel: LabelPropType;\n};\nexport type PropLabelWithExpertSlot = {\n\tlabel: LabelWithExpertSlotPropType;\n};\n\nexport type LabelProp = Generic.Element.Members<PropLabel, unknown>;\n// type LabelWithExpertSlotProp = Generic.Element.Members<PropLabelWithExpertSlot, unknown>;\n\nfunction getValidationOptions(options: WatchStringOptions): WatchStringOptions {\n\treturn {\n\t\thooks: {\n\t\t\tafterPatch: (value, state, component, key) => {\n\t\t\t\tif (typeof options.hooks?.afterPatch === 'function') {\n\t\t\t\t\toptions.hooks?.afterPatch(value, state, component, key);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && hasEnoughReadableChars(value, 3) === false && containsOnlyNumbers(value) === false) {\n\t\t\t\t\ta11yHint(`The heading or label (\"${value}\") is not accessible. A label should consist of at least three readable characters.`);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && value.length > 80) {\n\t\t\t\t\tuiUxHint(`A heading or label should not be longer than 80 characters.`);\n\t\t\t\t}\n\t\t\t},\n\t\t\tbeforePatch: options.hooks?.beforePatch,\n\t\t},\n\t};\n}\n\nconst LABEL_VALUES = new Set(['string']);\nexport const validateLabel = (component: Generic.Element.Component, value?: LabelPropType, options: WatchStringOptions = {}): void => {\n\twatchValidator(component, '_label', (value) => typeof value === 'string', LABEL_VALUES, value, getValidationOptions(options));\n};\n\nconst LABEL_WITH_EXPERT_SLOT_VALUES = new Set(['string', 'false']);\nexport const validateLabelWithExpertSlot = (\n\tcomponent: Generic.Element.Component,\n\tvalue?: LabelWithExpertSlotPropType,\n\toptions: WatchStringOptions = {}\n): void => {\n\tif (value === '') {\n\t\tvalue = false; // TODO: remove this workaround in v2\n\t}\n\twatchValidator(\n\t\tcomponent,\n\t\t'_label',\n\t\t(value) => value === false || typeof value === 'string',\n\t\tLABEL_WITH_EXPERT_SLOT_VALUES,\n\t\tvalue,\n\t\tgetValidationOptions(options)\n\t);\n};\n\n// TODO: Validation for labelWithExpertSlot\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"label-2a601017.js","mappings":";;;;;;AAYA,MAAM,cAAc,GAAG,qBAAqB,CAAC;AAK7C,MAAM,YAAY,GAAG,OAAO,CAAC;AAO7B,SAAS,kBAAkB,CAAC,GAAW;;EACtC,OAAO,OAAO,GAAG,KAAK,QAAQ,GAAG,CAAA,MAAA,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,0CAAE,MAAM,KAAI,CAAC,GAAG,CAAC,CAAC;AAC7E,CAAC;SAQe,sBAAsB,CAAC,GAAW,EAAE,GAAG,GAAG,CAAC;EAC1D,OAAO,kBAAkB,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;AACvC,CAAC;SAOe,mBAAmB,CAAC,GAAW;EAC9C,OAAO,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/B,CAAC;AAqCD,SAAS,oBAAoB,CAAC,OAA2B;;EACxD,OAAO;IACN,KAAK,EAAE;MACN,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG;;QACxC,IAAI,QAAO,MAAA,OAAO,CAAC,KAAK,0CAAE,UAAU,CAAA,KAAK,UAAU,EAAE;UACpD,MAAA,OAAO,CAAC,KAAK,0CAAE,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;SACxD;QACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,sBAAsB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,mBAAmB,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE;UACpH,QAAQ,CAAC,0BAA0B,KAAK,qFAAqF,CAAC,CAAC;SAC/H;QACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE;UACnD,QAAQ,CAAC,6DAA6D,CAAC,CAAC;SACxE;OACD;MACD,WAAW,EAAE,MAAA,OAAO,CAAC,KAAK,0CAAE,WAAW;KACvC;GACD,CAAC;AACH,CAAC;AAED,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;MAC5B,aAAa,GAAG,CAAC,SAAoC,EAAE,KAAqB,EAAE,UAA8B,EAAE;EAC1H,cAAc,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/H,EAAE;AAEF,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;MACtD,2BAA2B,GAAG,CAC1C,SAAoC,EACpC,KAAmC,EACnC,UAA8B,EAAE;EAEhC,IAAI,KAAK,KAAK,EAAE,EAAE;IACjB,KAAK,GAAG,KAAK,CAAC;GACd;EACD,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EACvD,6BAA6B,EAC7B,KAAK,EACL,oBAAoB,CAAC,OAAO,CAAC,CAC7B,CAAC;AACH;;;;","names":[],"sources":["src/types/props/label.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { a11yHint, uiUxHint } from '../../utils/a11y.tipps';\nimport { WatchStringOptions, watchValidator } from '../../utils/prop.validators';\n\n/* types */\n\n/**\n * This is a regular expression that matches all readable characters.\n *\n * Interesting: https://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters\n */\nconst READABLE_CHARS = /[a-zA-Z0-9äöüÄÖÜß]/g;\n\n/**\n * This is a regular expression that matches only numbers.\n */\nconst ONLY_NUMBERS = /^\\d+$/;\n\n/**\n * This function counts the number of readable characters in a string.\n * @param str The string to count.\n * @returns The number of readable characters in the string.\n */\nfunction countReadableChars(str: string): number {\n\treturn typeof str === 'string' ? str.match(READABLE_CHARS)?.length || 0 : 0;\n}\n\n/**\n * This function checks if a string has at least a certain number of readable characters.\n * @param str The string to check.\n * @param min The minimum number of readable characters.\n * @returns True if the string has at least the minimum number of readable characters, false otherwise.\n */\nexport function hasEnoughReadableChars(str: string, min = 1): boolean {\n\treturn countReadableChars(str) >= min;\n}\n\n/**\n * This function checks if a string contains only numbers.\n * @param str The string to check.\n * @returns True if the string contains only numbers, false otherwise.\n */\nexport function containsOnlyNumbers(str: string): boolean {\n\treturn ONLY_NUMBERS.test(str);\n}\n\n/**\n * Defines the type of the label property.\n */\nexport type LabelPropType = string;\n\n/**\n * Defines the type of the label with expert-slot toggle property.\n */\nexport type LabelWithExpertSlotPropType = LabelPropType | false;\n\n/**\n * The label property is used to label different elements:\n * - abbr -> title text\n * - button -> label text\n * - heading -> headline text\n * - input, select and textarea -> label text\n * - summary -> summary text\n * - quote, table -> caption text\n * - version -> version text\n * - etc.\n *\n * The label is often a mandatory attribute. If the value of the label is false,\n * the expert-slot will be used. Otherwise, the value of the label must be a string\n * and the expert-slot will be ignored.\n */\nexport type PropLabel = {\n\tlabel: LabelPropType;\n};\nexport type PropLabelWithExpertSlot = {\n\tlabel: LabelWithExpertSlotPropType;\n};\n\nexport type LabelProp = Generic.Element.Members<PropLabel, unknown>;\n// type LabelWithExpertSlotProp = Generic.Element.Members<PropLabelWithExpertSlot, unknown>;\n\nfunction getValidationOptions(options: WatchStringOptions): WatchStringOptions {\n\treturn {\n\t\thooks: {\n\t\t\tafterPatch: (value, state, component, key) => {\n\t\t\t\tif (typeof options.hooks?.afterPatch === 'function') {\n\t\t\t\t\toptions.hooks?.afterPatch(value, state, component, key);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && hasEnoughReadableChars(value, 3) === false && containsOnlyNumbers(value) === false) {\n\t\t\t\t\ta11yHint(`The heading or label (\"${value}\") is not accessible. A label should consist of at least three readable characters.`);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && value.length > 80) {\n\t\t\t\t\tuiUxHint(`A heading or label should not be longer than 80 characters.`);\n\t\t\t\t}\n\t\t\t},\n\t\t\tbeforePatch: options.hooks?.beforePatch,\n\t\t},\n\t};\n}\n\nconst LABEL_VALUES = new Set(['string']);\nexport const validateLabel = (component: Generic.Element.Component, value?: LabelPropType, options: WatchStringOptions = {}): void => {\n\twatchValidator(component, '_label', (value) => typeof value === 'string', LABEL_VALUES, value, getValidationOptions(options));\n};\n\nconst LABEL_WITH_EXPERT_SLOT_VALUES = new Set(['string', 'false']);\nexport const validateLabelWithExpertSlot = (\n\tcomponent: Generic.Element.Component,\n\tvalue?: LabelWithExpertSlotPropType,\n\toptions: WatchStringOptions = {}\n): void => {\n\tif (value === '') {\n\t\tvalue = false; // TODO: remove this workaround in v2\n\t}\n\twatchValidator(\n\t\tcomponent,\n\t\t'_label',\n\t\t(value) => value === false || typeof value === 'string',\n\t\tLABEL_WITH_EXPERT_SLOT_VALUES,\n\t\tvalue,\n\t\tgetValidationOptions(options)\n\t);\n};\n\n// TODO: Validation for labelWithExpertSlot\n"],"version":3}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
|
3
|
-
*/
|
|
4
|
-
import{a as t,u as o}from"./a11y.tipps-e607b8b3.js";import{a as e}from"./prop.validators-683bb1d0.js";const a=/[a-zA-Z0-9äöüÄÖÜß]/g,n=/^\d+$/;function s(t){var e;return"string"==typeof t&&(null===(e=t.match(a))||void 0===e?void 0:e.length)||0}function r(t,e=1){return s(t)>=e}function i(t){return n.test(t)}function l(e){var a;return{hooks:{afterPatch:(a,n,s,l)=>{var c,f;"function"==typeof(null===(c=e.hooks)||void 0===c?void 0:c.afterPatch)&&(null===(f=e.hooks)||void 0===f||f.afterPatch(a,n,s,l)),"string"==typeof a&&!1===r(a,3)&&!1===i(a)&&t(`The heading or label ("${a}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof a&&a.length>80&&o("A heading or label should not be longer than 80 characters.")},beforePatch:null===(a=e.hooks)||void 0===a?void 0:a.beforePatch}}}const f=new Set(["string"]),c=(t,o,a={})=>{e(t,"_label",(t=>"string"==typeof t),f,o,l(a))},d=new Set(["string","false"]),u=(t,o,a={})=>{""===o&&(o=!1),e(t,"_label",(t=>!1===t||"string"==typeof t),d,o,l(a))};export{u as a,i as c,r as h,c as v};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|