@helixui/library 0.3.2 → 0.3.4
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/LICENSE +21 -0
- package/custom-elements.json +612 -612
- package/dist/components/hx-accordion/hx-accordion-item.d.ts +1 -1
- package/dist/components/hx-accordion/hx-accordion.d.ts +1 -1
- package/dist/components/hx-action-bar/hx-action-bar.d.ts +1 -1
- package/dist/components/hx-alert/hx-alert.d.ts +1 -1
- package/dist/components/hx-avatar/hx-avatar.d.ts +1 -1
- package/dist/components/hx-badge/hx-badge.d.ts +1 -1
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.d.ts +1 -1
- package/dist/components/hx-breadcrumb/hx-breadcrumb.d.ts +1 -1
- package/dist/components/hx-button-group/hx-button-group.d.ts +1 -1
- package/dist/components/hx-card/hx-card.d.ts +1 -1
- package/dist/components/hx-carousel/hx-carousel-item.d.ts +1 -1
- package/dist/components/hx-carousel/hx-carousel.d.ts +1 -1
- package/dist/components/hx-checkbox/hx-checkbox.d.ts +1 -1
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts +1 -1
- package/dist/components/hx-color-picker/hx-color-picker.d.ts +1 -1
- package/dist/components/hx-combobox/hx-combobox.d.ts +1 -1
- package/dist/components/hx-container/hx-container.d.ts +1 -1
- package/dist/components/hx-copy-button/hx-copy-button.d.ts +1 -1
- package/dist/components/hx-data-table/hx-data-table.d.ts +1 -1
- package/dist/components/hx-date-picker/hx-date-picker.d.ts +1 -1
- package/dist/components/hx-dialog/hx-dialog.d.ts +1 -1
- package/dist/components/hx-divider/hx-divider.d.ts +1 -1
- package/dist/components/hx-drawer/hx-drawer.d.ts +1 -1
- package/dist/components/hx-dropdown/hx-dropdown.d.ts +1 -1
- package/dist/components/hx-field/hx-field.d.ts +1 -1
- package/dist/components/hx-field-label/hx-field-label.d.ts +1 -1
- package/dist/components/hx-file-upload/hx-file-upload.d.ts +1 -1
- package/dist/components/hx-form/hx-form.d.ts +1 -1
- package/dist/components/hx-format-date/hx-format-date.d.ts +1 -1
- package/dist/components/hx-grid/hx-grid.d.ts +2 -2
- package/dist/components/hx-help-text/hx-help-text.d.ts +1 -1
- package/dist/components/hx-icon/hx-icon.d.ts +1 -1
- package/dist/components/hx-icon-button/hx-icon-button.d.ts +1 -1
- package/dist/components/hx-image/hx-image.d.ts +1 -1
- package/dist/components/hx-link/hx-link.d.ts +1 -1
- package/dist/components/hx-list/hx-list-item.d.ts +1 -1
- package/dist/components/hx-list/hx-list.d.ts +1 -1
- package/dist/components/hx-menu/hx-menu-divider.d.ts +1 -1
- package/dist/components/hx-menu/hx-menu-item.d.ts +1 -1
- package/dist/components/hx-menu/hx-menu.d.ts +1 -1
- package/dist/components/hx-meter/hx-meter.d.ts +1 -1
- package/dist/components/hx-nav/hx-nav.d.ts +1 -1
- package/dist/components/hx-number-input/hx-number-input.d.ts +1 -1
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts +1 -1
- package/dist/components/hx-pagination/hx-pagination.d.ts +1 -1
- package/dist/components/hx-popover/hx-popover.d.ts +1 -1
- package/dist/components/hx-popup/hx-popup.d.ts +1 -1
- package/dist/components/hx-progress-bar/hx-progress-bar.d.ts +1 -1
- package/dist/components/hx-prose/hx-prose.d.ts +1 -1
- package/dist/components/hx-radio-group/hx-radio-group.d.ts +1 -1
- package/dist/components/hx-radio-group/hx-radio.d.ts +1 -1
- package/dist/components/hx-rating/hx-rating.d.ts +1 -1
- package/dist/components/hx-select/hx-select.d.ts +1 -1
- package/dist/components/hx-side-nav/hx-nav-item.d.ts +1 -1
- package/dist/components/hx-side-nav/hx-side-nav.d.ts +1 -1
- package/dist/components/hx-skeleton/hx-skeleton.d.ts +1 -1
- package/dist/components/hx-spinner/hx-spinner.d.ts +1 -1
- package/dist/components/hx-split-button/hx-split-button.d.ts +1 -1
- package/dist/components/hx-split-panel/hx-split-panel.d.ts +1 -1
- package/dist/components/hx-stack/hx-stack.d.ts +1 -1
- package/dist/components/hx-status-indicator/hx-status-indicator.d.ts +3 -3
- package/dist/components/hx-status-indicator/hx-status-indicator.d.ts.map +1 -1
- package/dist/components/hx-steps/hx-step.d.ts +1 -1
- package/dist/components/hx-steps/hx-steps.d.ts +1 -1
- package/dist/components/hx-structured-list/hx-structured-list.d.ts +2 -2
- package/dist/components/hx-switch/hx-switch.d.ts +1 -1
- package/dist/components/hx-tabs/hx-tab-panel.d.ts +1 -1
- package/dist/components/hx-tabs/hx-tab.d.ts +1 -1
- package/dist/components/hx-tabs/hx-tabs.d.ts +2 -2
- package/dist/components/hx-tabs/hx-tabs.d.ts.map +1 -1
- package/dist/components/hx-tag/hx-tag.d.ts +1 -1
- package/dist/components/hx-text/hx-text.d.ts +1 -1
- package/dist/components/hx-text-input/hx-text-input.d.ts +1 -1
- package/dist/components/hx-textarea/hx-textarea.d.ts +1 -1
- package/dist/components/hx-theme/hx-theme.d.ts +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.d.ts +1 -1
- package/dist/components/hx-toast/hx-toast.d.ts +2 -2
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts +1 -1
- package/dist/components/hx-tooltip/hx-tooltip.d.ts +1 -1
- package/dist/components/hx-top-nav/hx-top-nav.d.ts +1 -1
- package/dist/components/hx-tree-view/hx-tree-item.d.ts +1 -1
- package/dist/components/hx-tree-view/hx-tree-view.d.ts +1 -1
- package/dist/components/hx-visually-hidden/hx-visually-hidden.d.ts +1 -1
- package/dist/shared/hx-status-indicator-oYWOkWlD.js.map +1 -1
- package/dist/shared/hx-tab-panel-C7h5lRpw.js.map +1 -1
- package/package.json +33 -27
package/custom-elements.json
CHANGED
|
@@ -1852,221 +1852,298 @@
|
|
|
1852
1852
|
},
|
|
1853
1853
|
{
|
|
1854
1854
|
"kind": "javascript-module",
|
|
1855
|
-
"path": "src/components/hx-
|
|
1855
|
+
"path": "src/components/hx-breadcrumb/hx-breadcrumb-item.ts",
|
|
1856
1856
|
"declarations": [
|
|
1857
1857
|
{
|
|
1858
1858
|
"kind": "class",
|
|
1859
|
-
"description": "A
|
|
1860
|
-
"name": "
|
|
1859
|
+
"description": "A single breadcrumb navigation item.",
|
|
1860
|
+
"name": "HelixBreadcrumbItem",
|
|
1861
1861
|
"cssProperties": [
|
|
1862
1862
|
{
|
|
1863
|
-
"description": "
|
|
1864
|
-
"name": "--hx-
|
|
1865
|
-
"default": "var(--hx-color-primary-
|
|
1863
|
+
"description": "Link text color.",
|
|
1864
|
+
"name": "--hx-breadcrumb-link-color",
|
|
1865
|
+
"default": "var(--hx-color-primary-600)"
|
|
1866
1866
|
},
|
|
1867
1867
|
{
|
|
1868
|
-
"description": "
|
|
1869
|
-
"name": "--hx-
|
|
1870
|
-
"default": "var(--hx-color-
|
|
1868
|
+
"description": "Link hover text color.",
|
|
1869
|
+
"name": "--hx-breadcrumb-link-hover-color",
|
|
1870
|
+
"default": "var(--hx-color-primary-700)"
|
|
1871
1871
|
},
|
|
1872
1872
|
{
|
|
1873
|
-
"description": "
|
|
1874
|
-
"name": "--hx-
|
|
1875
|
-
"default": "
|
|
1873
|
+
"description": "Current page text color.",
|
|
1874
|
+
"name": "--hx-breadcrumb-text-color",
|
|
1875
|
+
"default": "var(--hx-color-neutral-700)"
|
|
1876
1876
|
},
|
|
1877
1877
|
{
|
|
1878
|
-
"description": "
|
|
1879
|
-
"name": "--hx-
|
|
1880
|
-
"default": "
|
|
1878
|
+
"description": "Separator character displayed after non-last items.",
|
|
1879
|
+
"name": "--hx-breadcrumb-separator-content",
|
|
1880
|
+
"default": "'/'"
|
|
1881
1881
|
},
|
|
1882
1882
|
{
|
|
1883
|
-
"description": "
|
|
1884
|
-
"name": "--hx-
|
|
1885
|
-
"default": "var(--hx-
|
|
1883
|
+
"description": "Separator color.",
|
|
1884
|
+
"name": "--hx-breadcrumb-separator-color",
|
|
1885
|
+
"default": "var(--hx-color-neutral-400)"
|
|
1886
1886
|
},
|
|
1887
1887
|
{
|
|
1888
|
-
"description": "
|
|
1889
|
-
"name": "--hx-
|
|
1890
|
-
"default": "var(--hx-
|
|
1888
|
+
"description": "Horizontal margin around separator.",
|
|
1889
|
+
"name": "--hx-breadcrumb-separator-gap",
|
|
1890
|
+
"default": "var(--hx-space-1)"
|
|
1891
1891
|
},
|
|
1892
1892
|
{
|
|
1893
|
-
"description": "
|
|
1894
|
-
"name": "--hx-
|
|
1895
|
-
"default": "var(--hx-focus-ring-color)"
|
|
1893
|
+
"description": "Optional max-width for text truncation.",
|
|
1894
|
+
"name": "--hx-breadcrumb-item-max-width"
|
|
1896
1895
|
}
|
|
1897
1896
|
],
|
|
1898
1897
|
"cssParts": [
|
|
1899
1898
|
{
|
|
1900
|
-
"description": "
|
|
1901
|
-
"name": "
|
|
1902
|
-
},
|
|
1903
|
-
{
|
|
1904
|
-
"description": "The label text wrapper span.",
|
|
1905
|
-
"name": "label"
|
|
1899
|
+
"description": "Wrapper around the link or text content.",
|
|
1900
|
+
"name": "item"
|
|
1906
1901
|
},
|
|
1907
1902
|
{
|
|
1908
|
-
"description": "The
|
|
1909
|
-
"name": "
|
|
1903
|
+
"description": "The anchor element when href is provided (non-current items only).",
|
|
1904
|
+
"name": "link"
|
|
1910
1905
|
},
|
|
1911
1906
|
{
|
|
1912
|
-
"description": "The
|
|
1913
|
-
"name": "
|
|
1907
|
+
"description": "The span element for the current page or items without href.",
|
|
1908
|
+
"name": "text"
|
|
1914
1909
|
},
|
|
1915
1910
|
{
|
|
1916
|
-
"description": "The
|
|
1917
|
-
"name": "
|
|
1911
|
+
"description": "The separator element rendered after non-last items.",
|
|
1912
|
+
"name": "separator"
|
|
1918
1913
|
}
|
|
1919
1914
|
],
|
|
1920
1915
|
"slots": [
|
|
1921
1916
|
{
|
|
1922
|
-
"description": "
|
|
1917
|
+
"description": "The link or page text content. Accepts text, HTML, or icon elements.",
|
|
1923
1918
|
"name": ""
|
|
1924
|
-
},
|
|
1925
|
-
{
|
|
1926
|
-
"description": "Icon or content rendered before the label.",
|
|
1927
|
-
"name": "prefix"
|
|
1928
|
-
},
|
|
1929
|
-
{
|
|
1930
|
-
"description": "Icon or content rendered after the label.",
|
|
1931
|
-
"name": "suffix"
|
|
1932
1919
|
}
|
|
1933
1920
|
],
|
|
1934
1921
|
"members": [
|
|
1935
1922
|
{
|
|
1936
1923
|
"kind": "field",
|
|
1937
|
-
"name": "
|
|
1924
|
+
"name": "href",
|
|
1938
1925
|
"type": {
|
|
1939
|
-
"text": "
|
|
1926
|
+
"text": "string | undefined"
|
|
1940
1927
|
},
|
|
1941
|
-
"
|
|
1942
|
-
"
|
|
1928
|
+
"default": "undefined",
|
|
1929
|
+
"description": "The URL for this breadcrumb link. Omit for the current page item.\nWhen `current` is true, this attribute is ignored and the item always\nrenders as static text per WAI-ARIA APG breadcrumb guidance.",
|
|
1930
|
+
"attribute": "href",
|
|
1931
|
+
"reflects": true
|
|
1943
1932
|
},
|
|
1944
1933
|
{
|
|
1945
1934
|
"kind": "field",
|
|
1946
|
-
"name": "
|
|
1935
|
+
"name": "current",
|
|
1947
1936
|
"type": {
|
|
1948
|
-
"text": "
|
|
1937
|
+
"text": "boolean"
|
|
1949
1938
|
},
|
|
1950
|
-
"
|
|
1951
|
-
|
|
1939
|
+
"default": "false",
|
|
1940
|
+
"description": "Marks this item as the current page. When set, the item always renders as\nstatic text (never a navigable link) and `aria-current=\"page\"` is placed on\nthe inner text element per WAI-ARIA APG breadcrumb guidance, yielding the\ncanonical AT announcement (\"current page, Patient Records\").\n\nCan be set explicitly by consumers (e.g. Drupal Twig templates) to override\nthe default positional last-item detection in `hx-breadcrumb`. When any item\nin the breadcrumb has an explicit `current` attribute, the parent will not\noverride it.",
|
|
1941
|
+
"attribute": "current",
|
|
1942
|
+
"reflects": true
|
|
1943
|
+
}
|
|
1944
|
+
],
|
|
1945
|
+
"attributes": [
|
|
1952
1946
|
{
|
|
1953
|
-
"
|
|
1954
|
-
"name": "variant",
|
|
1947
|
+
"name": "href",
|
|
1955
1948
|
"type": {
|
|
1956
|
-
"text": "
|
|
1949
|
+
"text": "string | undefined"
|
|
1957
1950
|
},
|
|
1958
|
-
"default": "
|
|
1959
|
-
"description": "
|
|
1960
|
-
"
|
|
1961
|
-
"
|
|
1951
|
+
"default": "undefined",
|
|
1952
|
+
"description": "The URL for this breadcrumb link. Omit for the current page item.\nWhen `current` is true, this attribute is ignored and the item always\nrenders as static text per WAI-ARIA APG breadcrumb guidance.",
|
|
1953
|
+
"fieldName": "href",
|
|
1954
|
+
"attribute": "href"
|
|
1962
1955
|
},
|
|
1963
1956
|
{
|
|
1964
|
-
"
|
|
1965
|
-
"name": "size",
|
|
1957
|
+
"name": "current",
|
|
1966
1958
|
"type": {
|
|
1967
|
-
"text": "
|
|
1959
|
+
"text": "boolean"
|
|
1968
1960
|
},
|
|
1969
|
-
"default": "
|
|
1970
|
-
"description": "
|
|
1971
|
-
"
|
|
1972
|
-
"
|
|
1973
|
-
}
|
|
1961
|
+
"default": "false",
|
|
1962
|
+
"description": "Marks this item as the current page. When set, the item always renders as\nstatic text (never a navigable link) and `aria-current=\"page\"` is placed on\nthe inner text element per WAI-ARIA APG breadcrumb guidance, yielding the\ncanonical AT announcement (\"current page, Patient Records\").\n\nCan be set explicitly by consumers (e.g. Drupal Twig templates) to override\nthe default positional last-item detection in `hx-breadcrumb`. When any item\nin the breadcrumb has an explicit `current` attribute, the parent will not\noverride it.",
|
|
1963
|
+
"fieldName": "current",
|
|
1964
|
+
"attribute": "current"
|
|
1965
|
+
}
|
|
1966
|
+
],
|
|
1967
|
+
"superclass": {
|
|
1968
|
+
"name": "LitElement",
|
|
1969
|
+
"package": "lit"
|
|
1970
|
+
},
|
|
1971
|
+
"tagName": "hx-breadcrumb-item",
|
|
1972
|
+
"customElement": true,
|
|
1973
|
+
"summary": "A navigation item within an hx-breadcrumb component. Renders as a link when `href` is\nprovided, or as static text for the current page item. The current page item is determined by\nthe `current` attribute (set explicitly or automatically by the parent `hx-breadcrumb`)."
|
|
1974
|
+
}
|
|
1975
|
+
],
|
|
1976
|
+
"exports": [
|
|
1977
|
+
{
|
|
1978
|
+
"kind": "js",
|
|
1979
|
+
"name": "HelixBreadcrumbItem",
|
|
1980
|
+
"declaration": {
|
|
1981
|
+
"name": "HelixBreadcrumbItem",
|
|
1982
|
+
"module": "src/components/hx-breadcrumb/hx-breadcrumb-item.ts"
|
|
1983
|
+
}
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"kind": "custom-element-definition",
|
|
1987
|
+
"name": "hx-breadcrumb-item",
|
|
1988
|
+
"declaration": {
|
|
1989
|
+
"name": "HelixBreadcrumbItem",
|
|
1990
|
+
"module": "src/components/hx-breadcrumb/hx-breadcrumb-item.ts"
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
]
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
"kind": "javascript-module",
|
|
1997
|
+
"path": "src/components/hx-breadcrumb/hx-breadcrumb.ts",
|
|
1998
|
+
"declarations": [
|
|
1999
|
+
{
|
|
2000
|
+
"kind": "class",
|
|
2001
|
+
"description": "",
|
|
2002
|
+
"name": "HelixBreadcrumb",
|
|
2003
|
+
"members": [
|
|
1974
2004
|
{
|
|
1975
2005
|
"kind": "field",
|
|
1976
|
-
"name": "
|
|
2006
|
+
"name": "_instanceCounter",
|
|
1977
2007
|
"type": {
|
|
1978
|
-
"text": "
|
|
2008
|
+
"text": "number"
|
|
1979
2009
|
},
|
|
1980
|
-
"
|
|
1981
|
-
"
|
|
1982
|
-
"
|
|
1983
|
-
"
|
|
2010
|
+
"privacy": "private",
|
|
2011
|
+
"static": true,
|
|
2012
|
+
"default": "0",
|
|
2013
|
+
"description": "Per-instance counter used to generate stable, deterministic IDs for the\ninjected JSON-LD script tags. Deterministic IDs (vs Math.random()) allow\nSSR frameworks to match server-rendered script tags during hydration."
|
|
1984
2014
|
},
|
|
1985
2015
|
{
|
|
1986
2016
|
"kind": "field",
|
|
1987
|
-
"name": "
|
|
2017
|
+
"name": "separator",
|
|
1988
2018
|
"type": {
|
|
1989
|
-
"text": "
|
|
2019
|
+
"text": "string"
|
|
1990
2020
|
},
|
|
1991
|
-
"default": "
|
|
1992
|
-
"description": "
|
|
1993
|
-
"attribute": "
|
|
1994
|
-
"reflects": true
|
|
2021
|
+
"default": "'/'",
|
|
2022
|
+
"description": "The separator character displayed between breadcrumb items.",
|
|
2023
|
+
"attribute": "separator"
|
|
1995
2024
|
},
|
|
1996
2025
|
{
|
|
1997
2026
|
"kind": "field",
|
|
1998
|
-
"name": "
|
|
2027
|
+
"name": "label",
|
|
1999
2028
|
"type": {
|
|
2000
|
-
"text": "
|
|
2029
|
+
"text": "string"
|
|
2001
2030
|
},
|
|
2002
|
-
"default": "'
|
|
2003
|
-
"description": "The
|
|
2004
|
-
"attribute": "
|
|
2031
|
+
"default": "'Breadcrumb'",
|
|
2032
|
+
"description": "The accessible label for the nav landmark.",
|
|
2033
|
+
"attribute": "label"
|
|
2005
2034
|
},
|
|
2006
2035
|
{
|
|
2007
2036
|
"kind": "field",
|
|
2008
|
-
"name": "
|
|
2037
|
+
"name": "maxItems",
|
|
2009
2038
|
"type": {
|
|
2010
|
-
"text": "
|
|
2039
|
+
"text": "number"
|
|
2011
2040
|
},
|
|
2012
|
-
"default": "
|
|
2013
|
-
"description": "
|
|
2014
|
-
"attribute": "
|
|
2041
|
+
"default": "0",
|
|
2042
|
+
"description": "Maximum number of items to show before collapsing middle items with an ellipsis.\nSet to 0 (default) to show all items. The ellipsis is a keyboard-accessible\nbutton; activating it expands the full breadcrumb by setting maxItems to 0.",
|
|
2043
|
+
"attribute": "max-items"
|
|
2015
2044
|
},
|
|
2016
2045
|
{
|
|
2017
2046
|
"kind": "field",
|
|
2018
|
-
"name": "
|
|
2047
|
+
"name": "jsonLd",
|
|
2019
2048
|
"type": {
|
|
2020
|
-
"text": "
|
|
2049
|
+
"text": "boolean"
|
|
2021
2050
|
},
|
|
2022
|
-
"default": "
|
|
2023
|
-
"description": "
|
|
2024
|
-
"attribute": "
|
|
2051
|
+
"default": "false",
|
|
2052
|
+
"description": "When true, injects a JSON-LD BreadcrumbList structured data script into the document head.\n\nNOTE: Drupal manages `<head>` content via its own render pipeline. Injecting a\n`<script>` directly via `document.head.appendChild()` in a Drupal context:\n1. Bypasses Drupal's deduplication and `hook_html_head_alter()` hook.\n2. Is not cacheable by Drupal's page cache.\n3. Will be wiped on BigPipe partial page replacements.\n\nFor Drupal integrations, leave `json-ld` false and use the structured data\nTwig template instead (see `hx-breadcrumb.twig` in the component directory).",
|
|
2053
|
+
"attribute": "json-ld"
|
|
2025
2054
|
},
|
|
2026
2055
|
{
|
|
2027
2056
|
"kind": "field",
|
|
2028
|
-
"name": "
|
|
2057
|
+
"name": "_ellipsisItem",
|
|
2029
2058
|
"type": {
|
|
2030
|
-
"text": "
|
|
2059
|
+
"text": "Element | null"
|
|
2031
2060
|
},
|
|
2032
|
-
"
|
|
2033
|
-
"
|
|
2034
|
-
"attribute": "name"
|
|
2061
|
+
"privacy": "private",
|
|
2062
|
+
"default": "null"
|
|
2035
2063
|
},
|
|
2036
2064
|
{
|
|
2037
2065
|
"kind": "field",
|
|
2038
|
-
"name": "
|
|
2066
|
+
"name": "_jsonLdScript",
|
|
2039
2067
|
"type": {
|
|
2040
|
-
"text": "
|
|
2068
|
+
"text": "HTMLScriptElement | null"
|
|
2041
2069
|
},
|
|
2042
|
-
"
|
|
2043
|
-
"
|
|
2044
|
-
"attribute": "value"
|
|
2070
|
+
"privacy": "private",
|
|
2071
|
+
"default": "null"
|
|
2045
2072
|
},
|
|
2046
2073
|
{
|
|
2047
2074
|
"kind": "field",
|
|
2048
|
-
"name": "
|
|
2075
|
+
"name": "_boundEllipsisClick",
|
|
2049
2076
|
"type": {
|
|
2050
|
-
"text": "
|
|
2077
|
+
"text": "(e: Event) => void"
|
|
2051
2078
|
},
|
|
2052
|
-
"
|
|
2053
|
-
"description": "Accessible label forwarded to the inner button/anchor. Required for icon-only usage.",
|
|
2054
|
-
"attribute": "aria-label",
|
|
2055
|
-
"reflects": true
|
|
2079
|
+
"privacy": "private"
|
|
2056
2080
|
},
|
|
2057
2081
|
{
|
|
2058
2082
|
"kind": "field",
|
|
2059
|
-
"name": "
|
|
2083
|
+
"name": "_boundEllipsisKeydown",
|
|
2060
2084
|
"type": {
|
|
2061
|
-
"text": "
|
|
2085
|
+
"text": "(e: KeyboardEvent) => void"
|
|
2062
2086
|
},
|
|
2063
|
-
"
|
|
2064
|
-
"readonly": true
|
|
2087
|
+
"privacy": "private"
|
|
2065
2088
|
},
|
|
2066
2089
|
{
|
|
2067
|
-
"kind": "
|
|
2068
|
-
"name": "
|
|
2069
|
-
"privacy": "private",
|
|
2090
|
+
"kind": "field",
|
|
2091
|
+
"name": "_managedCurrentItems",
|
|
2092
|
+
"privacy": "private",
|
|
2093
|
+
"readonly": true,
|
|
2094
|
+
"default": "new WeakSet<Element>()",
|
|
2095
|
+
"description": "Tracks which items had their `current` attribute set by this component\n(as opposed to set by a consumer/Drupal template). This lets us re-evaluate\npositional current-page detection on each slotchange without incorrectly\ntreating a previously component-set `current` attribute as a consumer-set\nexplicit override."
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"kind": "field",
|
|
2099
|
+
"name": "_jsonLdId",
|
|
2100
|
+
"privacy": "private",
|
|
2101
|
+
"readonly": true,
|
|
2102
|
+
"default": "`hx-breadcrumb-ld-${++HelixBreadcrumb._instanceCounter}`",
|
|
2103
|
+
"description": "Stable per-instance ID used to tag the injected script element so that\nmultiple hx-breadcrumb instances on the same page don't produce conflicting\nor duplicate structured-data blocks. Each instance owns exactly one script\ntag identified by this ID; any stale tag from a previous render cycle is\nremoved before a new one is inserted.\n\nUses a static counter (not Math.random()) so IDs are deterministic across\nserver and client renders, enabling SSR hydration matching."
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"kind": "method",
|
|
2107
|
+
"name": "_getBreadcrumbItems",
|
|
2108
|
+
"privacy": "private",
|
|
2109
|
+
"return": {
|
|
2110
|
+
"type": {
|
|
2111
|
+
"text": "Element[]"
|
|
2112
|
+
}
|
|
2113
|
+
},
|
|
2114
|
+
"parameters": [
|
|
2115
|
+
{
|
|
2116
|
+
"name": "slot",
|
|
2117
|
+
"type": {
|
|
2118
|
+
"text": "HTMLSlotElement"
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
],
|
|
2122
|
+
"description": "Returns only real breadcrumb items, excluding the managed ellipsis element."
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
"kind": "method",
|
|
2126
|
+
"name": "_applyItemAttributes",
|
|
2127
|
+
"privacy": "private",
|
|
2128
|
+
"return": {
|
|
2129
|
+
"type": {
|
|
2130
|
+
"text": "void"
|
|
2131
|
+
}
|
|
2132
|
+
},
|
|
2133
|
+
"parameters": [
|
|
2134
|
+
{
|
|
2135
|
+
"name": "items",
|
|
2136
|
+
"type": {
|
|
2137
|
+
"text": "Element[]"
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
],
|
|
2141
|
+
"description": "Applies aria/state attributes to the item list.\n\nCurrent-page detection: if any item has an explicit `current` attribute\n(e.g. set by a Drupal Twig template), that item is treated as the current\npage. Otherwise the last item is the current page (default behaviour).\n\nThis separation allows Drupal to control current-page marking without\nrelying on item order."
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
"kind": "method",
|
|
2145
|
+
"name": "_handleSlotChange",
|
|
2146
|
+
"privacy": "private",
|
|
2070
2147
|
"return": {
|
|
2071
2148
|
"type": {
|
|
2072
2149
|
"text": "void"
|
|
@@ -2076,515 +2153,478 @@
|
|
|
2076
2153
|
{
|
|
2077
2154
|
"name": "e",
|
|
2078
2155
|
"type": {
|
|
2079
|
-
"text": "
|
|
2156
|
+
"text": "Event"
|
|
2080
2157
|
}
|
|
2081
2158
|
}
|
|
2082
2159
|
]
|
|
2083
2160
|
},
|
|
2084
2161
|
{
|
|
2085
2162
|
"kind": "method",
|
|
2086
|
-
"name": "
|
|
2163
|
+
"name": "_handleSeparatorSlotChange",
|
|
2087
2164
|
"privacy": "private",
|
|
2088
2165
|
"return": {
|
|
2089
2166
|
"type": {
|
|
2090
|
-
"text": "
|
|
2167
|
+
"text": "void"
|
|
2091
2168
|
}
|
|
2092
|
-
}
|
|
2169
|
+
},
|
|
2170
|
+
"parameters": [
|
|
2171
|
+
{
|
|
2172
|
+
"name": "e",
|
|
2173
|
+
"type": {
|
|
2174
|
+
"text": "Event"
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
]
|
|
2093
2178
|
},
|
|
2094
2179
|
{
|
|
2095
2180
|
"kind": "method",
|
|
2096
|
-
"name": "
|
|
2181
|
+
"name": "_applyCollapse",
|
|
2097
2182
|
"privacy": "private",
|
|
2098
2183
|
"return": {
|
|
2099
2184
|
"type": {
|
|
2100
|
-
"text": "
|
|
2185
|
+
"text": "void"
|
|
2101
2186
|
}
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
],
|
|
2105
|
-
"events": [
|
|
2106
|
-
{
|
|
2107
|
-
"name": "hx-click",
|
|
2108
|
-
"type": {
|
|
2109
|
-
"text": "CustomEvent<{originalEvent: MouseEvent}>"
|
|
2110
2187
|
},
|
|
2111
|
-
"
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2188
|
+
"parameters": [
|
|
2189
|
+
{
|
|
2190
|
+
"name": "items",
|
|
2191
|
+
"type": {
|
|
2192
|
+
"text": "Element[]"
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
]
|
|
2196
|
+
},
|
|
2115
2197
|
{
|
|
2116
|
-
"
|
|
2117
|
-
"
|
|
2118
|
-
|
|
2198
|
+
"kind": "method",
|
|
2199
|
+
"name": "_removeCollapse",
|
|
2200
|
+
"privacy": "private",
|
|
2201
|
+
"return": {
|
|
2202
|
+
"type": {
|
|
2203
|
+
"text": "void"
|
|
2204
|
+
}
|
|
2119
2205
|
},
|
|
2120
|
-
"
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2206
|
+
"parameters": [
|
|
2207
|
+
{
|
|
2208
|
+
"name": "items",
|
|
2209
|
+
"type": {
|
|
2210
|
+
"text": "Element[]"
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
]
|
|
2124
2214
|
},
|
|
2125
2215
|
{
|
|
2126
|
-
"
|
|
2127
|
-
"
|
|
2128
|
-
|
|
2216
|
+
"kind": "method",
|
|
2217
|
+
"name": "_handleEllipsisClick",
|
|
2218
|
+
"privacy": "private",
|
|
2219
|
+
"return": {
|
|
2220
|
+
"type": {
|
|
2221
|
+
"text": "void"
|
|
2222
|
+
}
|
|
2129
2223
|
},
|
|
2130
|
-
"
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2224
|
+
"parameters": [
|
|
2225
|
+
{
|
|
2226
|
+
"name": "e",
|
|
2227
|
+
"type": {
|
|
2228
|
+
"text": "Event"
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
]
|
|
2134
2232
|
},
|
|
2135
2233
|
{
|
|
2136
|
-
"
|
|
2137
|
-
"
|
|
2138
|
-
|
|
2234
|
+
"kind": "method",
|
|
2235
|
+
"name": "_handleEllipsisKeydown",
|
|
2236
|
+
"privacy": "private",
|
|
2237
|
+
"return": {
|
|
2238
|
+
"type": {
|
|
2239
|
+
"text": "void"
|
|
2240
|
+
}
|
|
2139
2241
|
},
|
|
2140
|
-
"
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2242
|
+
"parameters": [
|
|
2243
|
+
{
|
|
2244
|
+
"name": "e",
|
|
2245
|
+
"type": {
|
|
2246
|
+
"text": "KeyboardEvent"
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
]
|
|
2144
2250
|
},
|
|
2145
2251
|
{
|
|
2146
|
-
"
|
|
2147
|
-
"
|
|
2148
|
-
|
|
2252
|
+
"kind": "method",
|
|
2253
|
+
"name": "_expandBreadcrumb",
|
|
2254
|
+
"privacy": "private",
|
|
2255
|
+
"return": {
|
|
2256
|
+
"type": {
|
|
2257
|
+
"text": "void"
|
|
2258
|
+
}
|
|
2149
2259
|
},
|
|
2150
|
-
"
|
|
2151
|
-
"description": "Whether the button is in a loading state. Shows spinner, prevents interaction,\nand sets aria-busy. Does not set the disabled attribute.",
|
|
2152
|
-
"fieldName": "loading",
|
|
2153
|
-
"attribute": "loading"
|
|
2260
|
+
"description": "Expands a collapsed breadcrumb by resetting maxItems to 0.\nCalled by the ellipsis expand button (click or Enter/Space)."
|
|
2154
2261
|
},
|
|
2155
2262
|
{
|
|
2156
|
-
"
|
|
2157
|
-
"
|
|
2158
|
-
|
|
2263
|
+
"kind": "method",
|
|
2264
|
+
"name": "_buildListItem",
|
|
2265
|
+
"privacy": "private",
|
|
2266
|
+
"return": {
|
|
2267
|
+
"type": {
|
|
2268
|
+
"text": "JsonLdListItem"
|
|
2269
|
+
}
|
|
2159
2270
|
},
|
|
2160
|
-
"
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2271
|
+
"parameters": [
|
|
2272
|
+
{
|
|
2273
|
+
"name": "item",
|
|
2274
|
+
"type": {
|
|
2275
|
+
"text": "Element"
|
|
2276
|
+
}
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
"name": "position",
|
|
2280
|
+
"type": {
|
|
2281
|
+
"text": "number"
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
],
|
|
2285
|
+
"description": "JSON-LD ListItem entry with typed fields to avoid Record<string, unknown>."
|
|
2164
2286
|
},
|
|
2165
2287
|
{
|
|
2166
|
-
"
|
|
2167
|
-
"
|
|
2168
|
-
|
|
2288
|
+
"kind": "method",
|
|
2289
|
+
"name": "_updateJsonLd",
|
|
2290
|
+
"privacy": "private",
|
|
2291
|
+
"return": {
|
|
2292
|
+
"type": {
|
|
2293
|
+
"text": "void"
|
|
2294
|
+
}
|
|
2169
2295
|
},
|
|
2170
|
-
"
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2296
|
+
"parameters": [
|
|
2297
|
+
{
|
|
2298
|
+
"name": "items",
|
|
2299
|
+
"type": {
|
|
2300
|
+
"text": "Element[]"
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
]
|
|
2174
2304
|
},
|
|
2175
2305
|
{
|
|
2176
|
-
"
|
|
2306
|
+
"kind": "method",
|
|
2307
|
+
"name": "_removeJsonLd",
|
|
2308
|
+
"privacy": "private",
|
|
2309
|
+
"return": {
|
|
2310
|
+
"type": {
|
|
2311
|
+
"text": "void"
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
],
|
|
2316
|
+
"attributes": [
|
|
2317
|
+
{
|
|
2318
|
+
"name": "separator",
|
|
2177
2319
|
"type": {
|
|
2178
|
-
"text": "string
|
|
2320
|
+
"text": "string"
|
|
2179
2321
|
},
|
|
2180
|
-
"default": "
|
|
2181
|
-
"description": "
|
|
2182
|
-
"fieldName": "
|
|
2183
|
-
"attribute": "
|
|
2322
|
+
"default": "'/'",
|
|
2323
|
+
"description": "The separator character displayed between breadcrumb items.",
|
|
2324
|
+
"fieldName": "separator",
|
|
2325
|
+
"attribute": "separator"
|
|
2184
2326
|
},
|
|
2185
2327
|
{
|
|
2186
|
-
"name": "
|
|
2328
|
+
"name": "label",
|
|
2187
2329
|
"type": {
|
|
2188
|
-
"text": "string
|
|
2330
|
+
"text": "string"
|
|
2189
2331
|
},
|
|
2190
|
-
"default": "
|
|
2191
|
-
"description": "
|
|
2192
|
-
"fieldName": "
|
|
2193
|
-
"attribute": "
|
|
2332
|
+
"default": "'Breadcrumb'",
|
|
2333
|
+
"description": "The accessible label for the nav landmark.",
|
|
2334
|
+
"fieldName": "label",
|
|
2335
|
+
"attribute": "label"
|
|
2194
2336
|
},
|
|
2195
2337
|
{
|
|
2196
|
-
"name": "
|
|
2338
|
+
"name": "max-items",
|
|
2197
2339
|
"type": {
|
|
2198
|
-
"text": "
|
|
2340
|
+
"text": "number"
|
|
2199
2341
|
},
|
|
2200
|
-
"default": "
|
|
2201
|
-
"description": "
|
|
2202
|
-
"fieldName": "
|
|
2203
|
-
"attribute": "
|
|
2342
|
+
"default": "0",
|
|
2343
|
+
"description": "Maximum number of items to show before collapsing middle items with an ellipsis.\nSet to 0 (default) to show all items. The ellipsis is a keyboard-accessible\nbutton; activating it expands the full breadcrumb by setting maxItems to 0.",
|
|
2344
|
+
"fieldName": "maxItems",
|
|
2345
|
+
"attribute": "max-items"
|
|
2204
2346
|
},
|
|
2205
2347
|
{
|
|
2206
|
-
"name": "
|
|
2348
|
+
"name": "json-ld",
|
|
2207
2349
|
"type": {
|
|
2208
|
-
"text": "
|
|
2350
|
+
"text": "boolean"
|
|
2209
2351
|
},
|
|
2210
|
-
"default": "
|
|
2211
|
-
"description": "
|
|
2212
|
-
"fieldName": "
|
|
2213
|
-
"attribute": "
|
|
2352
|
+
"default": "false",
|
|
2353
|
+
"description": "When true, injects a JSON-LD BreadcrumbList structured data script into the document head.\n\nNOTE: Drupal manages `<head>` content via its own render pipeline. Injecting a\n`<script>` directly via `document.head.appendChild()` in a Drupal context:\n1. Bypasses Drupal's deduplication and `hook_html_head_alter()` hook.\n2. Is not cacheable by Drupal's page cache.\n3. Will be wiped on BigPipe partial page replacements.\n\nFor Drupal integrations, leave `json-ld` false and use the structured data\nTwig template instead (see `hx-breadcrumb.twig` in the component directory).",
|
|
2354
|
+
"fieldName": "jsonLd",
|
|
2355
|
+
"attribute": "json-ld"
|
|
2214
2356
|
}
|
|
2215
2357
|
],
|
|
2216
2358
|
"superclass": {
|
|
2217
2359
|
"name": "LitElement",
|
|
2218
2360
|
"package": "lit"
|
|
2219
2361
|
},
|
|
2220
|
-
"tagName": "hx-
|
|
2221
|
-
"customElement": true
|
|
2222
|
-
|
|
2362
|
+
"tagName": "hx-breadcrumb",
|
|
2363
|
+
"customElement": true
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
"kind": "variable",
|
|
2367
|
+
"name": "name"
|
|
2223
2368
|
}
|
|
2224
2369
|
],
|
|
2225
2370
|
"exports": [
|
|
2226
2371
|
{
|
|
2227
2372
|
"kind": "js",
|
|
2228
|
-
"name": "
|
|
2373
|
+
"name": "HelixBreadcrumb",
|
|
2229
2374
|
"declaration": {
|
|
2230
|
-
"name": "
|
|
2231
|
-
"module": "src/components/hx-
|
|
2375
|
+
"name": "HelixBreadcrumb",
|
|
2376
|
+
"module": "src/components/hx-breadcrumb/hx-breadcrumb.ts"
|
|
2232
2377
|
}
|
|
2233
2378
|
},
|
|
2234
2379
|
{
|
|
2235
2380
|
"kind": "custom-element-definition",
|
|
2236
|
-
"name": "hx-
|
|
2381
|
+
"name": "hx-breadcrumb",
|
|
2237
2382
|
"declaration": {
|
|
2238
|
-
"name": "
|
|
2239
|
-
"module": "src/components/hx-
|
|
2383
|
+
"name": "HelixBreadcrumb",
|
|
2384
|
+
"module": "src/components/hx-breadcrumb/hx-breadcrumb.ts"
|
|
2240
2385
|
}
|
|
2241
2386
|
}
|
|
2242
2387
|
]
|
|
2243
2388
|
},
|
|
2244
2389
|
{
|
|
2245
2390
|
"kind": "javascript-module",
|
|
2246
|
-
"path": "src/components/hx-
|
|
2391
|
+
"path": "src/components/hx-breadcrumb/index.ts",
|
|
2247
2392
|
"declarations": [],
|
|
2248
2393
|
"exports": [
|
|
2249
2394
|
{
|
|
2250
2395
|
"kind": "js",
|
|
2251
|
-
"name": "
|
|
2252
|
-
"declaration": {
|
|
2253
|
-
"name": "HelixButton",
|
|
2254
|
-
"module": "./hx-button.js"
|
|
2255
|
-
}
|
|
2256
|
-
}
|
|
2257
|
-
]
|
|
2258
|
-
},
|
|
2259
|
-
{
|
|
2260
|
-
"kind": "javascript-module",
|
|
2261
|
-
"path": "src/components/hx-breadcrumb/hx-breadcrumb-item.ts",
|
|
2262
|
-
"declarations": [
|
|
2263
|
-
{
|
|
2264
|
-
"kind": "class",
|
|
2265
|
-
"description": "A single breadcrumb navigation item.",
|
|
2266
|
-
"name": "HelixBreadcrumbItem",
|
|
2267
|
-
"cssProperties": [
|
|
2268
|
-
{
|
|
2269
|
-
"description": "Link text color.",
|
|
2270
|
-
"name": "--hx-breadcrumb-link-color",
|
|
2271
|
-
"default": "var(--hx-color-primary-600)"
|
|
2272
|
-
},
|
|
2273
|
-
{
|
|
2274
|
-
"description": "Link hover text color.",
|
|
2275
|
-
"name": "--hx-breadcrumb-link-hover-color",
|
|
2276
|
-
"default": "var(--hx-color-primary-700)"
|
|
2277
|
-
},
|
|
2278
|
-
{
|
|
2279
|
-
"description": "Current page text color.",
|
|
2280
|
-
"name": "--hx-breadcrumb-text-color",
|
|
2281
|
-
"default": "var(--hx-color-neutral-700)"
|
|
2282
|
-
},
|
|
2283
|
-
{
|
|
2284
|
-
"description": "Separator character displayed after non-last items.",
|
|
2285
|
-
"name": "--hx-breadcrumb-separator-content",
|
|
2286
|
-
"default": "'/'"
|
|
2287
|
-
},
|
|
2288
|
-
{
|
|
2289
|
-
"description": "Separator color.",
|
|
2290
|
-
"name": "--hx-breadcrumb-separator-color",
|
|
2291
|
-
"default": "var(--hx-color-neutral-400)"
|
|
2292
|
-
},
|
|
2293
|
-
{
|
|
2294
|
-
"description": "Horizontal margin around separator.",
|
|
2295
|
-
"name": "--hx-breadcrumb-separator-gap",
|
|
2296
|
-
"default": "var(--hx-space-1)"
|
|
2297
|
-
},
|
|
2298
|
-
{
|
|
2299
|
-
"description": "Optional max-width for text truncation.",
|
|
2300
|
-
"name": "--hx-breadcrumb-item-max-width"
|
|
2301
|
-
}
|
|
2302
|
-
],
|
|
2303
|
-
"cssParts": [
|
|
2304
|
-
{
|
|
2305
|
-
"description": "Wrapper around the link or text content.",
|
|
2306
|
-
"name": "item"
|
|
2307
|
-
},
|
|
2308
|
-
{
|
|
2309
|
-
"description": "The anchor element when href is provided (non-current items only).",
|
|
2310
|
-
"name": "link"
|
|
2311
|
-
},
|
|
2312
|
-
{
|
|
2313
|
-
"description": "The span element for the current page or items without href.",
|
|
2314
|
-
"name": "text"
|
|
2315
|
-
},
|
|
2316
|
-
{
|
|
2317
|
-
"description": "The separator element rendered after non-last items.",
|
|
2318
|
-
"name": "separator"
|
|
2319
|
-
}
|
|
2320
|
-
],
|
|
2321
|
-
"slots": [
|
|
2322
|
-
{
|
|
2323
|
-
"description": "The link or page text content. Accepts text, HTML, or icon elements.",
|
|
2324
|
-
"name": ""
|
|
2325
|
-
}
|
|
2326
|
-
],
|
|
2327
|
-
"members": [
|
|
2328
|
-
{
|
|
2329
|
-
"kind": "field",
|
|
2330
|
-
"name": "href",
|
|
2331
|
-
"type": {
|
|
2332
|
-
"text": "string | undefined"
|
|
2333
|
-
},
|
|
2334
|
-
"default": "undefined",
|
|
2335
|
-
"description": "The URL for this breadcrumb link. Omit for the current page item.\nWhen `current` is true, this attribute is ignored and the item always\nrenders as static text per WAI-ARIA APG breadcrumb guidance.",
|
|
2336
|
-
"attribute": "href",
|
|
2337
|
-
"reflects": true
|
|
2338
|
-
},
|
|
2339
|
-
{
|
|
2340
|
-
"kind": "field",
|
|
2341
|
-
"name": "current",
|
|
2342
|
-
"type": {
|
|
2343
|
-
"text": "boolean"
|
|
2344
|
-
},
|
|
2345
|
-
"default": "false",
|
|
2346
|
-
"description": "Marks this item as the current page. When set, the item always renders as\nstatic text (never a navigable link) and `aria-current=\"page\"` is placed on\nthe inner text element per WAI-ARIA APG breadcrumb guidance, yielding the\ncanonical AT announcement (\"current page, Patient Records\").\n\nCan be set explicitly by consumers (e.g. Drupal Twig templates) to override\nthe default positional last-item detection in `hx-breadcrumb`. When any item\nin the breadcrumb has an explicit `current` attribute, the parent will not\noverride it.",
|
|
2347
|
-
"attribute": "current",
|
|
2348
|
-
"reflects": true
|
|
2349
|
-
}
|
|
2350
|
-
],
|
|
2351
|
-
"attributes": [
|
|
2352
|
-
{
|
|
2353
|
-
"name": "href",
|
|
2354
|
-
"type": {
|
|
2355
|
-
"text": "string | undefined"
|
|
2356
|
-
},
|
|
2357
|
-
"default": "undefined",
|
|
2358
|
-
"description": "The URL for this breadcrumb link. Omit for the current page item.\nWhen `current` is true, this attribute is ignored and the item always\nrenders as static text per WAI-ARIA APG breadcrumb guidance.",
|
|
2359
|
-
"fieldName": "href",
|
|
2360
|
-
"attribute": "href"
|
|
2361
|
-
},
|
|
2362
|
-
{
|
|
2363
|
-
"name": "current",
|
|
2364
|
-
"type": {
|
|
2365
|
-
"text": "boolean"
|
|
2366
|
-
},
|
|
2367
|
-
"default": "false",
|
|
2368
|
-
"description": "Marks this item as the current page. When set, the item always renders as\nstatic text (never a navigable link) and `aria-current=\"page\"` is placed on\nthe inner text element per WAI-ARIA APG breadcrumb guidance, yielding the\ncanonical AT announcement (\"current page, Patient Records\").\n\nCan be set explicitly by consumers (e.g. Drupal Twig templates) to override\nthe default positional last-item detection in `hx-breadcrumb`. When any item\nin the breadcrumb has an explicit `current` attribute, the parent will not\noverride it.",
|
|
2369
|
-
"fieldName": "current",
|
|
2370
|
-
"attribute": "current"
|
|
2371
|
-
}
|
|
2372
|
-
],
|
|
2373
|
-
"superclass": {
|
|
2374
|
-
"name": "LitElement",
|
|
2375
|
-
"package": "lit"
|
|
2376
|
-
},
|
|
2377
|
-
"tagName": "hx-breadcrumb-item",
|
|
2378
|
-
"customElement": true,
|
|
2379
|
-
"summary": "A navigation item within an hx-breadcrumb component. Renders as a link when `href` is\nprovided, or as static text for the current page item. The current page item is determined by\nthe `current` attribute (set explicitly or automatically by the parent `hx-breadcrumb`)."
|
|
2380
|
-
}
|
|
2381
|
-
],
|
|
2382
|
-
"exports": [
|
|
2383
|
-
{
|
|
2384
|
-
"kind": "js",
|
|
2385
|
-
"name": "HelixBreadcrumbItem",
|
|
2396
|
+
"name": "HelixBreadcrumb",
|
|
2386
2397
|
"declaration": {
|
|
2387
|
-
"name": "
|
|
2388
|
-
"module": "
|
|
2398
|
+
"name": "HelixBreadcrumb",
|
|
2399
|
+
"module": "./hx-breadcrumb.js"
|
|
2389
2400
|
}
|
|
2390
2401
|
},
|
|
2391
2402
|
{
|
|
2392
|
-
"kind": "
|
|
2393
|
-
"name": "
|
|
2403
|
+
"kind": "js",
|
|
2404
|
+
"name": "HelixBreadcrumbItem",
|
|
2394
2405
|
"declaration": {
|
|
2395
2406
|
"name": "HelixBreadcrumbItem",
|
|
2396
|
-
"module": "
|
|
2407
|
+
"module": "./hx-breadcrumb-item.js"
|
|
2397
2408
|
}
|
|
2398
2409
|
}
|
|
2399
2410
|
]
|
|
2400
2411
|
},
|
|
2401
2412
|
{
|
|
2402
2413
|
"kind": "javascript-module",
|
|
2403
|
-
"path": "src/components/hx-
|
|
2414
|
+
"path": "src/components/hx-button/hx-button.ts",
|
|
2404
2415
|
"declarations": [
|
|
2405
2416
|
{
|
|
2406
2417
|
"kind": "class",
|
|
2407
|
-
"description": "",
|
|
2408
|
-
"name": "
|
|
2418
|
+
"description": "A production-grade button component for user interaction. Supports multiple\nvisual variants, sizes, loading state, prefix/suffix slots, anchor rendering,\nand full ElementInternals form association.",
|
|
2419
|
+
"name": "HelixButton",
|
|
2420
|
+
"cssProperties": [
|
|
2421
|
+
{
|
|
2422
|
+
"description": "Button background color.",
|
|
2423
|
+
"name": "--hx-button-bg",
|
|
2424
|
+
"default": "var(--hx-color-primary-500)"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"description": "Button text color.",
|
|
2428
|
+
"name": "--hx-button-color",
|
|
2429
|
+
"default": "var(--hx-color-neutral-0)"
|
|
2430
|
+
},
|
|
2431
|
+
{
|
|
2432
|
+
"description": "Button border color.",
|
|
2433
|
+
"name": "--hx-button-border-color",
|
|
2434
|
+
"default": "transparent"
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
"description": "Button border radius.",
|
|
2438
|
+
"name": "--hx-button-border-radius",
|
|
2439
|
+
"default": "var(--hx-border-radius-md)"
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
"description": "Button font family.",
|
|
2443
|
+
"name": "--hx-button-font-family",
|
|
2444
|
+
"default": "var(--hx-font-family-sans)"
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"description": "Button font weight.",
|
|
2448
|
+
"name": "--hx-button-font-weight",
|
|
2449
|
+
"default": "var(--hx-font-weight-semibold)"
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
"description": "Focus ring color.",
|
|
2453
|
+
"name": "--hx-button-focus-ring-color",
|
|
2454
|
+
"default": "var(--hx-focus-ring-color)"
|
|
2455
|
+
}
|
|
2456
|
+
],
|
|
2457
|
+
"cssParts": [
|
|
2458
|
+
{
|
|
2459
|
+
"description": "The native button or anchor element.",
|
|
2460
|
+
"name": "button"
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
"description": "The label text wrapper span.",
|
|
2464
|
+
"name": "label"
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
"description": "The prefix slot container span.",
|
|
2468
|
+
"name": "prefix"
|
|
2469
|
+
},
|
|
2470
|
+
{
|
|
2471
|
+
"description": "The suffix slot container span.",
|
|
2472
|
+
"name": "suffix"
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"description": "The loading spinner SVG element.",
|
|
2476
|
+
"name": "spinner"
|
|
2477
|
+
}
|
|
2478
|
+
],
|
|
2479
|
+
"slots": [
|
|
2480
|
+
{
|
|
2481
|
+
"description": "Default slot for button label text or content.",
|
|
2482
|
+
"name": ""
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
"description": "Icon or content rendered before the label.",
|
|
2486
|
+
"name": "prefix"
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
"description": "Icon or content rendered after the label.",
|
|
2490
|
+
"name": "suffix"
|
|
2491
|
+
}
|
|
2492
|
+
],
|
|
2409
2493
|
"members": [
|
|
2410
2494
|
{
|
|
2411
2495
|
"kind": "field",
|
|
2412
|
-
"name": "
|
|
2496
|
+
"name": "formAssociated",
|
|
2413
2497
|
"type": {
|
|
2414
|
-
"text": "
|
|
2498
|
+
"text": "boolean"
|
|
2415
2499
|
},
|
|
2416
|
-
"privacy": "private",
|
|
2417
2500
|
"static": true,
|
|
2418
|
-
"default": "
|
|
2419
|
-
"description": "Per-instance counter used to generate stable, deterministic IDs for the\ninjected JSON-LD script tags. Deterministic IDs (vs Math.random()) allow\nSSR frameworks to match server-rendered script tags during hydration."
|
|
2501
|
+
"default": "true"
|
|
2420
2502
|
},
|
|
2421
2503
|
{
|
|
2422
2504
|
"kind": "field",
|
|
2423
|
-
"name": "
|
|
2505
|
+
"name": "_internals",
|
|
2424
2506
|
"type": {
|
|
2425
|
-
"text": "
|
|
2507
|
+
"text": "ElementInternals"
|
|
2426
2508
|
},
|
|
2427
|
-
"
|
|
2428
|
-
"description": "The separator character displayed between breadcrumb items.",
|
|
2429
|
-
"attribute": "separator"
|
|
2509
|
+
"privacy": "private"
|
|
2430
2510
|
},
|
|
2431
2511
|
{
|
|
2432
2512
|
"kind": "field",
|
|
2433
|
-
"name": "
|
|
2513
|
+
"name": "variant",
|
|
2434
2514
|
"type": {
|
|
2435
|
-
"text": "
|
|
2515
|
+
"text": "'primary' | 'secondary' | 'tertiary' | 'danger' | 'ghost' | 'outline'"
|
|
2436
2516
|
},
|
|
2437
|
-
"default": "'
|
|
2438
|
-
"description": "
|
|
2439
|
-
"attribute": "
|
|
2517
|
+
"default": "'primary'",
|
|
2518
|
+
"description": "Visual style variant of the button.",
|
|
2519
|
+
"attribute": "variant",
|
|
2520
|
+
"reflects": true
|
|
2440
2521
|
},
|
|
2441
2522
|
{
|
|
2442
2523
|
"kind": "field",
|
|
2443
|
-
"name": "
|
|
2524
|
+
"name": "size",
|
|
2444
2525
|
"type": {
|
|
2445
|
-
"text": "
|
|
2526
|
+
"text": "'sm' | 'md' | 'lg'"
|
|
2446
2527
|
},
|
|
2447
|
-
"default": "
|
|
2448
|
-
"description": "
|
|
2449
|
-
"attribute": "
|
|
2528
|
+
"default": "'md'",
|
|
2529
|
+
"description": "Size of the button.",
|
|
2530
|
+
"attribute": "hx-size",
|
|
2531
|
+
"reflects": true
|
|
2450
2532
|
},
|
|
2451
2533
|
{
|
|
2452
2534
|
"kind": "field",
|
|
2453
|
-
"name": "
|
|
2535
|
+
"name": "disabled",
|
|
2454
2536
|
"type": {
|
|
2455
2537
|
"text": "boolean"
|
|
2456
2538
|
},
|
|
2457
2539
|
"default": "false",
|
|
2458
|
-
"description": "
|
|
2459
|
-
"attribute": "
|
|
2540
|
+
"description": "Whether the button is disabled. Prevents all interaction and form actions.",
|
|
2541
|
+
"attribute": "disabled",
|
|
2542
|
+
"reflects": true
|
|
2460
2543
|
},
|
|
2461
2544
|
{
|
|
2462
2545
|
"kind": "field",
|
|
2463
|
-
"name": "
|
|
2546
|
+
"name": "loading",
|
|
2464
2547
|
"type": {
|
|
2465
|
-
"text": "
|
|
2548
|
+
"text": "boolean"
|
|
2466
2549
|
},
|
|
2467
|
-
"
|
|
2468
|
-
"
|
|
2550
|
+
"default": "false",
|
|
2551
|
+
"description": "Whether the button is in a loading state. Shows spinner, prevents interaction,\nand sets aria-busy. Does not set the disabled attribute.",
|
|
2552
|
+
"attribute": "loading",
|
|
2553
|
+
"reflects": true
|
|
2469
2554
|
},
|
|
2470
2555
|
{
|
|
2471
2556
|
"kind": "field",
|
|
2472
|
-
"name": "
|
|
2557
|
+
"name": "type",
|
|
2473
2558
|
"type": {
|
|
2474
|
-
"text": "
|
|
2559
|
+
"text": "'button' | 'submit' | 'reset'"
|
|
2475
2560
|
},
|
|
2476
|
-
"
|
|
2477
|
-
"
|
|
2561
|
+
"default": "'button'",
|
|
2562
|
+
"description": "The type attribute for the underlying button element. Ignored when href is set.",
|
|
2563
|
+
"attribute": "type"
|
|
2478
2564
|
},
|
|
2479
2565
|
{
|
|
2480
2566
|
"kind": "field",
|
|
2481
|
-
"name": "
|
|
2567
|
+
"name": "href",
|
|
2482
2568
|
"type": {
|
|
2483
|
-
"text": "
|
|
2569
|
+
"text": "string | undefined"
|
|
2484
2570
|
},
|
|
2485
|
-
"
|
|
2571
|
+
"default": "undefined",
|
|
2572
|
+
"description": "When set, renders an anchor element instead of a button.",
|
|
2573
|
+
"attribute": "href"
|
|
2486
2574
|
},
|
|
2487
2575
|
{
|
|
2488
2576
|
"kind": "field",
|
|
2489
|
-
"name": "
|
|
2577
|
+
"name": "target",
|
|
2490
2578
|
"type": {
|
|
2491
|
-
"text": "
|
|
2579
|
+
"text": "string | undefined"
|
|
2492
2580
|
},
|
|
2493
|
-
"
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
"kind": "field",
|
|
2497
|
-
"name": "_managedCurrentItems",
|
|
2498
|
-
"privacy": "private",
|
|
2499
|
-
"readonly": true,
|
|
2500
|
-
"default": "new WeakSet<Element>()",
|
|
2501
|
-
"description": "Tracks which items had their `current` attribute set by this component\n(as opposed to set by a consumer/Drupal template). This lets us re-evaluate\npositional current-page detection on each slotchange without incorrectly\ntreating a previously component-set `current` attribute as a consumer-set\nexplicit override."
|
|
2581
|
+
"default": "undefined",
|
|
2582
|
+
"description": "Anchor target attribute. Only used when href is set.",
|
|
2583
|
+
"attribute": "target"
|
|
2502
2584
|
},
|
|
2503
2585
|
{
|
|
2504
2586
|
"kind": "field",
|
|
2505
|
-
"name": "
|
|
2506
|
-
"
|
|
2507
|
-
|
|
2508
|
-
"default": "`hx-breadcrumb-ld-${++HelixBreadcrumb._instanceCounter}`",
|
|
2509
|
-
"description": "Stable per-instance ID used to tag the injected script element so that\nmultiple hx-breadcrumb instances on the same page don't produce conflicting\nor duplicate structured-data blocks. Each instance owns exactly one script\ntag identified by this ID; any stale tag from a previous render cycle is\nremoved before a new one is inserted.\n\nUses a static counter (not Math.random()) so IDs are deterministic across\nserver and client renders, enabling SSR hydration matching."
|
|
2510
|
-
},
|
|
2511
|
-
{
|
|
2512
|
-
"kind": "method",
|
|
2513
|
-
"name": "_getBreadcrumbItems",
|
|
2514
|
-
"privacy": "private",
|
|
2515
|
-
"return": {
|
|
2516
|
-
"type": {
|
|
2517
|
-
"text": "Element[]"
|
|
2518
|
-
}
|
|
2587
|
+
"name": "name",
|
|
2588
|
+
"type": {
|
|
2589
|
+
"text": "string | undefined"
|
|
2519
2590
|
},
|
|
2520
|
-
"
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
"type": {
|
|
2524
|
-
"text": "HTMLSlotElement"
|
|
2525
|
-
}
|
|
2526
|
-
}
|
|
2527
|
-
],
|
|
2528
|
-
"description": "Returns only real breadcrumb items, excluding the managed ellipsis element."
|
|
2591
|
+
"default": "undefined",
|
|
2592
|
+
"description": "Form field name submitted via ElementInternals.setFormValue on submit.",
|
|
2593
|
+
"attribute": "name"
|
|
2529
2594
|
},
|
|
2530
2595
|
{
|
|
2531
|
-
"kind": "
|
|
2532
|
-
"name": "
|
|
2533
|
-
"
|
|
2534
|
-
|
|
2535
|
-
"type": {
|
|
2536
|
-
"text": "void"
|
|
2537
|
-
}
|
|
2596
|
+
"kind": "field",
|
|
2597
|
+
"name": "value",
|
|
2598
|
+
"type": {
|
|
2599
|
+
"text": "string | undefined"
|
|
2538
2600
|
},
|
|
2539
|
-
"
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
"type": {
|
|
2543
|
-
"text": "Element[]"
|
|
2544
|
-
}
|
|
2545
|
-
}
|
|
2546
|
-
],
|
|
2547
|
-
"description": "Applies aria/state attributes to the item list.\n\nCurrent-page detection: if any item has an explicit `current` attribute\n(e.g. set by a Drupal Twig template), that item is treated as the current\npage. Otherwise the last item is the current page (default behaviour).\n\nThis separation allows Drupal to control current-page marking without\nrelying on item order."
|
|
2601
|
+
"default": "undefined",
|
|
2602
|
+
"description": "Form field value submitted via ElementInternals.setFormValue on submit.",
|
|
2603
|
+
"attribute": "value"
|
|
2548
2604
|
},
|
|
2549
2605
|
{
|
|
2550
|
-
"kind": "
|
|
2551
|
-
"name": "
|
|
2552
|
-
"
|
|
2553
|
-
|
|
2554
|
-
"type": {
|
|
2555
|
-
"text": "void"
|
|
2556
|
-
}
|
|
2606
|
+
"kind": "field",
|
|
2607
|
+
"name": "ariaLabel",
|
|
2608
|
+
"type": {
|
|
2609
|
+
"text": "string | null"
|
|
2557
2610
|
},
|
|
2558
|
-
"
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
"text": "Event"
|
|
2563
|
-
}
|
|
2564
|
-
}
|
|
2565
|
-
]
|
|
2611
|
+
"default": "null",
|
|
2612
|
+
"description": "Accessible label forwarded to the inner button/anchor. Required for icon-only usage.",
|
|
2613
|
+
"attribute": "aria-label",
|
|
2614
|
+
"reflects": true
|
|
2566
2615
|
},
|
|
2567
2616
|
{
|
|
2568
|
-
"kind": "
|
|
2569
|
-
"name": "
|
|
2570
|
-
"
|
|
2571
|
-
|
|
2572
|
-
"type": {
|
|
2573
|
-
"text": "void"
|
|
2574
|
-
}
|
|
2617
|
+
"kind": "field",
|
|
2618
|
+
"name": "form",
|
|
2619
|
+
"type": {
|
|
2620
|
+
"text": "HTMLFormElement | null"
|
|
2575
2621
|
},
|
|
2576
|
-
"
|
|
2577
|
-
|
|
2578
|
-
"name": "e",
|
|
2579
|
-
"type": {
|
|
2580
|
-
"text": "Event"
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
]
|
|
2622
|
+
"description": "Returns the associated form element, if any.",
|
|
2623
|
+
"readonly": true
|
|
2584
2624
|
},
|
|
2585
2625
|
{
|
|
2586
2626
|
"kind": "method",
|
|
2587
|
-
"name": "
|
|
2627
|
+
"name": "_handleClick",
|
|
2588
2628
|
"privacy": "private",
|
|
2589
2629
|
"return": {
|
|
2590
2630
|
"type": {
|
|
@@ -2593,224 +2633,184 @@
|
|
|
2593
2633
|
},
|
|
2594
2634
|
"parameters": [
|
|
2595
2635
|
{
|
|
2596
|
-
"name": "
|
|
2636
|
+
"name": "e",
|
|
2597
2637
|
"type": {
|
|
2598
|
-
"text": "
|
|
2638
|
+
"text": "MouseEvent"
|
|
2599
2639
|
}
|
|
2600
2640
|
}
|
|
2601
2641
|
]
|
|
2602
2642
|
},
|
|
2603
2643
|
{
|
|
2604
2644
|
"kind": "method",
|
|
2605
|
-
"name": "
|
|
2645
|
+
"name": "_renderSpinner",
|
|
2606
2646
|
"privacy": "private",
|
|
2607
2647
|
"return": {
|
|
2608
2648
|
"type": {
|
|
2609
|
-
"text": "
|
|
2610
|
-
}
|
|
2611
|
-
},
|
|
2612
|
-
"parameters": [
|
|
2613
|
-
{
|
|
2614
|
-
"name": "items",
|
|
2615
|
-
"type": {
|
|
2616
|
-
"text": "Element[]"
|
|
2617
|
-
}
|
|
2649
|
+
"text": "TemplateResult"
|
|
2618
2650
|
}
|
|
2619
|
-
|
|
2651
|
+
}
|
|
2620
2652
|
},
|
|
2621
2653
|
{
|
|
2622
2654
|
"kind": "method",
|
|
2623
|
-
"name": "
|
|
2655
|
+
"name": "_renderInner",
|
|
2624
2656
|
"privacy": "private",
|
|
2625
2657
|
"return": {
|
|
2626
2658
|
"type": {
|
|
2627
|
-
"text": "
|
|
2659
|
+
"text": "TemplateResult"
|
|
2628
2660
|
}
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
],
|
|
2664
|
+
"events": [
|
|
2665
|
+
{
|
|
2666
|
+
"name": "hx-click",
|
|
2667
|
+
"type": {
|
|
2668
|
+
"text": "CustomEvent<{originalEvent: MouseEvent}>"
|
|
2629
2669
|
},
|
|
2630
|
-
"
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2670
|
+
"description": "Dispatched when the button is clicked and is neither disabled nor loading."
|
|
2671
|
+
}
|
|
2672
|
+
],
|
|
2673
|
+
"attributes": [
|
|
2674
|
+
{
|
|
2675
|
+
"name": "variant",
|
|
2676
|
+
"type": {
|
|
2677
|
+
"text": "'primary' | 'secondary' | 'tertiary' | 'danger' | 'ghost' | 'outline'"
|
|
2678
|
+
},
|
|
2679
|
+
"default": "'primary'",
|
|
2680
|
+
"description": "Visual style variant of the button.",
|
|
2681
|
+
"fieldName": "variant",
|
|
2682
|
+
"attribute": "variant"
|
|
2638
2683
|
},
|
|
2639
2684
|
{
|
|
2640
|
-
"
|
|
2641
|
-
"
|
|
2642
|
-
|
|
2643
|
-
"return": {
|
|
2644
|
-
"type": {
|
|
2645
|
-
"text": "void"
|
|
2646
|
-
}
|
|
2685
|
+
"name": "hx-size",
|
|
2686
|
+
"type": {
|
|
2687
|
+
"text": "'sm' | 'md' | 'lg'"
|
|
2647
2688
|
},
|
|
2648
|
-
"
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
"text": "KeyboardEvent"
|
|
2653
|
-
}
|
|
2654
|
-
}
|
|
2655
|
-
]
|
|
2689
|
+
"default": "'md'",
|
|
2690
|
+
"description": "Size of the button.",
|
|
2691
|
+
"fieldName": "size",
|
|
2692
|
+
"attribute": "hx-size"
|
|
2656
2693
|
},
|
|
2657
2694
|
{
|
|
2658
|
-
"
|
|
2659
|
-
"
|
|
2660
|
-
|
|
2661
|
-
"return": {
|
|
2662
|
-
"type": {
|
|
2663
|
-
"text": "void"
|
|
2664
|
-
}
|
|
2695
|
+
"name": "disabled",
|
|
2696
|
+
"type": {
|
|
2697
|
+
"text": "boolean"
|
|
2665
2698
|
},
|
|
2666
|
-
"
|
|
2699
|
+
"default": "false",
|
|
2700
|
+
"description": "Whether the button is disabled. Prevents all interaction and form actions.",
|
|
2701
|
+
"fieldName": "disabled",
|
|
2702
|
+
"attribute": "disabled"
|
|
2667
2703
|
},
|
|
2668
2704
|
{
|
|
2669
|
-
"
|
|
2670
|
-
"
|
|
2671
|
-
|
|
2672
|
-
"return": {
|
|
2673
|
-
"type": {
|
|
2674
|
-
"text": "JsonLdListItem"
|
|
2675
|
-
}
|
|
2705
|
+
"name": "loading",
|
|
2706
|
+
"type": {
|
|
2707
|
+
"text": "boolean"
|
|
2676
2708
|
},
|
|
2677
|
-
"
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
"text": "Element"
|
|
2682
|
-
}
|
|
2683
|
-
},
|
|
2684
|
-
{
|
|
2685
|
-
"name": "position",
|
|
2686
|
-
"type": {
|
|
2687
|
-
"text": "number"
|
|
2688
|
-
}
|
|
2689
|
-
}
|
|
2690
|
-
],
|
|
2691
|
-
"description": "JSON-LD ListItem entry with typed fields to avoid Record<string, unknown>."
|
|
2709
|
+
"default": "false",
|
|
2710
|
+
"description": "Whether the button is in a loading state. Shows spinner, prevents interaction,\nand sets aria-busy. Does not set the disabled attribute.",
|
|
2711
|
+
"fieldName": "loading",
|
|
2712
|
+
"attribute": "loading"
|
|
2692
2713
|
},
|
|
2693
2714
|
{
|
|
2694
|
-
"
|
|
2695
|
-
"
|
|
2696
|
-
|
|
2697
|
-
"return": {
|
|
2698
|
-
"type": {
|
|
2699
|
-
"text": "void"
|
|
2700
|
-
}
|
|
2715
|
+
"name": "type",
|
|
2716
|
+
"type": {
|
|
2717
|
+
"text": "'button' | 'submit' | 'reset'"
|
|
2701
2718
|
},
|
|
2702
|
-
"
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
"text": "Element[]"
|
|
2707
|
-
}
|
|
2708
|
-
}
|
|
2709
|
-
]
|
|
2719
|
+
"default": "'button'",
|
|
2720
|
+
"description": "The type attribute for the underlying button element. Ignored when href is set.",
|
|
2721
|
+
"fieldName": "type",
|
|
2722
|
+
"attribute": "type"
|
|
2710
2723
|
},
|
|
2711
2724
|
{
|
|
2712
|
-
"
|
|
2713
|
-
"
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
}
|
|
2721
|
-
],
|
|
2722
|
-
"attributes": [
|
|
2725
|
+
"name": "href",
|
|
2726
|
+
"type": {
|
|
2727
|
+
"text": "string | undefined"
|
|
2728
|
+
},
|
|
2729
|
+
"default": "undefined",
|
|
2730
|
+
"description": "When set, renders an anchor element instead of a button.",
|
|
2731
|
+
"fieldName": "href",
|
|
2732
|
+
"attribute": "href"
|
|
2733
|
+
},
|
|
2723
2734
|
{
|
|
2724
|
-
"name": "
|
|
2735
|
+
"name": "target",
|
|
2725
2736
|
"type": {
|
|
2726
|
-
"text": "string"
|
|
2737
|
+
"text": "string | undefined"
|
|
2727
2738
|
},
|
|
2728
|
-
"default": "
|
|
2729
|
-
"description": "
|
|
2730
|
-
"fieldName": "
|
|
2731
|
-
"attribute": "
|
|
2739
|
+
"default": "undefined",
|
|
2740
|
+
"description": "Anchor target attribute. Only used when href is set.",
|
|
2741
|
+
"fieldName": "target",
|
|
2742
|
+
"attribute": "target"
|
|
2732
2743
|
},
|
|
2733
2744
|
{
|
|
2734
|
-
"name": "
|
|
2745
|
+
"name": "name",
|
|
2735
2746
|
"type": {
|
|
2736
|
-
"text": "string"
|
|
2747
|
+
"text": "string | undefined"
|
|
2737
2748
|
},
|
|
2738
|
-
"default": "
|
|
2739
|
-
"description": "
|
|
2740
|
-
"fieldName": "
|
|
2741
|
-
"attribute": "
|
|
2749
|
+
"default": "undefined",
|
|
2750
|
+
"description": "Form field name submitted via ElementInternals.setFormValue on submit.",
|
|
2751
|
+
"fieldName": "name",
|
|
2752
|
+
"attribute": "name"
|
|
2742
2753
|
},
|
|
2743
2754
|
{
|
|
2744
|
-
"name": "
|
|
2755
|
+
"name": "value",
|
|
2745
2756
|
"type": {
|
|
2746
|
-
"text": "
|
|
2757
|
+
"text": "string | undefined"
|
|
2747
2758
|
},
|
|
2748
|
-
"default": "
|
|
2749
|
-
"description": "
|
|
2750
|
-
"fieldName": "
|
|
2751
|
-
"attribute": "
|
|
2759
|
+
"default": "undefined",
|
|
2760
|
+
"description": "Form field value submitted via ElementInternals.setFormValue on submit.",
|
|
2761
|
+
"fieldName": "value",
|
|
2762
|
+
"attribute": "value"
|
|
2752
2763
|
},
|
|
2753
2764
|
{
|
|
2754
|
-
"name": "
|
|
2765
|
+
"name": "aria-label",
|
|
2755
2766
|
"type": {
|
|
2756
|
-
"text": "
|
|
2767
|
+
"text": "string | null"
|
|
2757
2768
|
},
|
|
2758
|
-
"default": "
|
|
2759
|
-
"description": "
|
|
2760
|
-
"fieldName": "
|
|
2761
|
-
"attribute": "
|
|
2769
|
+
"default": "null",
|
|
2770
|
+
"description": "Accessible label forwarded to the inner button/anchor. Required for icon-only usage.",
|
|
2771
|
+
"fieldName": "ariaLabel",
|
|
2772
|
+
"attribute": "aria-label"
|
|
2762
2773
|
}
|
|
2763
2774
|
],
|
|
2764
2775
|
"superclass": {
|
|
2765
2776
|
"name": "LitElement",
|
|
2766
2777
|
"package": "lit"
|
|
2767
2778
|
},
|
|
2768
|
-
"tagName": "hx-
|
|
2769
|
-
"customElement": true
|
|
2770
|
-
|
|
2771
|
-
{
|
|
2772
|
-
"kind": "variable",
|
|
2773
|
-
"name": "name"
|
|
2779
|
+
"tagName": "hx-button",
|
|
2780
|
+
"customElement": true,
|
|
2781
|
+
"summary": "Primary interactive element for triggering actions and form submission."
|
|
2774
2782
|
}
|
|
2775
2783
|
],
|
|
2776
2784
|
"exports": [
|
|
2777
2785
|
{
|
|
2778
2786
|
"kind": "js",
|
|
2779
|
-
"name": "
|
|
2787
|
+
"name": "HelixButton",
|
|
2780
2788
|
"declaration": {
|
|
2781
|
-
"name": "
|
|
2782
|
-
"module": "src/components/hx-
|
|
2789
|
+
"name": "HelixButton",
|
|
2790
|
+
"module": "src/components/hx-button/hx-button.ts"
|
|
2783
2791
|
}
|
|
2784
2792
|
},
|
|
2785
2793
|
{
|
|
2786
2794
|
"kind": "custom-element-definition",
|
|
2787
|
-
"name": "hx-
|
|
2795
|
+
"name": "hx-button",
|
|
2788
2796
|
"declaration": {
|
|
2789
|
-
"name": "
|
|
2790
|
-
"module": "src/components/hx-
|
|
2797
|
+
"name": "HelixButton",
|
|
2798
|
+
"module": "src/components/hx-button/hx-button.ts"
|
|
2791
2799
|
}
|
|
2792
2800
|
}
|
|
2793
2801
|
]
|
|
2794
2802
|
},
|
|
2795
2803
|
{
|
|
2796
2804
|
"kind": "javascript-module",
|
|
2797
|
-
"path": "src/components/hx-
|
|
2805
|
+
"path": "src/components/hx-button/index.ts",
|
|
2798
2806
|
"declarations": [],
|
|
2799
2807
|
"exports": [
|
|
2800
2808
|
{
|
|
2801
2809
|
"kind": "js",
|
|
2802
|
-
"name": "
|
|
2803
|
-
"declaration": {
|
|
2804
|
-
"name": "HelixBreadcrumb",
|
|
2805
|
-
"module": "./hx-breadcrumb.js"
|
|
2806
|
-
}
|
|
2807
|
-
},
|
|
2808
|
-
{
|
|
2809
|
-
"kind": "js",
|
|
2810
|
-
"name": "HelixBreadcrumbItem",
|
|
2810
|
+
"name": "HelixButton",
|
|
2811
2811
|
"declaration": {
|
|
2812
|
-
"name": "
|
|
2813
|
-
"module": "./hx-
|
|
2812
|
+
"name": "HelixButton",
|
|
2813
|
+
"module": "./hx-button.js"
|
|
2814
2814
|
}
|
|
2815
2815
|
}
|
|
2816
2816
|
]
|