@gov-design-system-ce/components 0.0.11 → 0.0.13
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/dist/cjs/{constants-e175be18.js → constants-0883e74c.js} +2 -2
- package/dist/cjs/constants-0883e74c.js.map +1 -0
- package/dist/cjs/constants-97eea364.js +14 -0
- package/dist/cjs/constants-97eea364.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{form-02872a5e.js → form-9b8b1740.js} +6 -2
- package/dist/cjs/form-9b8b1740.js.map +1 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js +11 -7
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gov-app.cjs.entry.js +28 -7
- package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -32
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-control.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-file.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-input.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-label.cjs.entry.js +5 -2
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
- package/dist/cjs/gov-icon.cjs.entry.js +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/gov-accordion/constants.js +1 -1
- package/dist/collection/components/gov-accordion/constants.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +39 -17
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js +1 -1
- package/dist/collection/components/gov-breadcrumbs/constants.js +0 -4
- package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +26 -16
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +2 -81
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
- package/dist/collection/components/gov-form/label/constants.js +3 -0
- package/dist/collection/components/gov-form/label/constants.js.map +1 -1
- package/dist/collection/components/gov-form/label/gov-form-label.js +26 -2
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
- package/dist/collection/components/gov-tile/container/constants.js.map +1 -0
- package/dist/collection/components/{gov-tiles → gov-tile/container}/gov-tiles.js +2 -2
- package/dist/collection/components/gov-tile/container/gov-tiles.js.map +1 -0
- package/dist/collection/helpers/Dom/form.js +4 -0
- package/dist/collection/helpers/Dom/form.js.map +1 -1
- package/dist/collection/pages/Breadcrumbs.js +25 -5
- package/dist/collection/pages/Breadcrumbs.js.map +1 -1
- package/dist/collection/pages/Forms.js +3 -2
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/components/constants.js +1 -1
- package/dist/components/constants.js.map +1 -1
- package/dist/components/constants4.js +4 -0
- package/dist/components/constants4.js.map +1 -1
- package/dist/components/form.js +4 -0
- package/dist/components/form.js.map +1 -1
- package/dist/components/gov-accordion-item.js +12 -6
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +1 -0
- package/dist/components/gov-accordion.js.map +1 -1
- package/dist/components/gov-alert.js +1 -0
- package/dist/components/gov-alert.js.map +1 -1
- package/dist/components/gov-app.js +29 -7
- package/dist/components/gov-app.js.map +1 -1
- package/dist/components/gov-attachments-item2.js +1 -0
- package/dist/components/gov-attachments-item2.js.map +1 -1
- package/dist/components/gov-attachments2.js +1 -0
- package/dist/components/gov-attachments2.js.map +1 -1
- package/dist/components/gov-backdrop2.js +1 -0
- package/dist/components/gov-backdrop2.js.map +1 -1
- package/dist/components/gov-badge2.js +1 -0
- package/dist/components/gov-badge2.js.map +1 -1
- package/dist/components/gov-breadcrumbs.js +6 -51
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button2.js +1 -0
- package/dist/components/gov-button2.js.map +1 -1
- package/dist/components/gov-card.js +1 -0
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-container.js +1 -0
- package/dist/components/gov-container.js.map +1 -1
- package/dist/components/gov-cookiebar.js +1 -0
- package/dist/components/gov-cookiebar.js.map +1 -1
- package/dist/components/gov-empty.js +1 -0
- package/dist/components/gov-empty.js.map +1 -1
- package/dist/components/gov-error-code.js +1 -0
- package/dist/components/gov-error-code.js.map +1 -1
- package/dist/components/gov-form-autocomplete2.js +1 -0
- package/dist/components/gov-form-autocomplete2.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +1 -0
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +1 -0
- package/dist/components/gov-form-control.js.map +1 -1
- package/dist/components/gov-form-file.js +1 -0
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -0
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input2.js +1 -0
- package/dist/components/gov-form-input2.js.map +1 -1
- package/dist/components/gov-form-label.js +4 -1
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message2.js +1 -0
- package/dist/components/gov-form-message2.js.map +1 -1
- package/dist/components/gov-form-multi-select.js +1 -0
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-password-power.js +1 -0
- package/dist/components/gov-form-password-power.js.map +1 -1
- package/dist/components/gov-form-radio.js +1 -0
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +1 -0
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select2.js +1 -0
- package/dist/components/gov-form-select2.js.map +1 -1
- package/dist/components/gov-form-switch.js +1 -0
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.js +1 -0
- package/dist/components/gov-grid-item.js.map +1 -1
- package/dist/components/gov-grid.js +1 -0
- package/dist/components/gov-grid.js.map +1 -1
- package/dist/components/gov-icon2.js +2 -1
- package/dist/components/gov-icon2.js.map +1 -1
- package/dist/components/gov-layout-column.js +1 -0
- package/dist/components/gov-layout-column.js.map +1 -1
- package/dist/components/gov-layout.js +1 -0
- package/dist/components/gov-layout.js.map +1 -1
- package/dist/components/gov-loading.js +1 -0
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -0
- package/dist/components/gov-message.js.map +1 -1
- package/dist/components/gov-modal.js +1 -0
- package/dist/components/gov-modal.js.map +1 -1
- package/dist/components/gov-nav-item.js +1 -0
- package/dist/components/gov-nav-item.js.map +1 -1
- package/dist/components/gov-nav.js +1 -0
- package/dist/components/gov-nav.js.map +1 -1
- package/dist/components/gov-pagination.js +1 -0
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-prompt.js +1 -0
- package/dist/components/gov-prompt.js.map +1 -1
- package/dist/components/gov-side-nav-item.js +1 -0
- package/dist/components/gov-side-nav-item.js.map +1 -1
- package/dist/components/gov-side-nav.js +1 -0
- package/dist/components/gov-side-nav.js.map +1 -1
- package/dist/components/gov-spacer.js +1 -0
- package/dist/components/gov-spacer.js.map +1 -1
- package/dist/components/gov-statsbar-item.js +1 -0
- package/dist/components/gov-statsbar-item.js.map +1 -1
- package/dist/components/gov-statsbar.js +1 -0
- package/dist/components/gov-statsbar.js.map +1 -1
- package/dist/components/gov-stepper-item.js +1 -0
- package/dist/components/gov-stepper-item.js.map +1 -1
- package/dist/components/gov-stepper.js +1 -0
- package/dist/components/gov-stepper.js.map +1 -1
- package/dist/components/gov-tabs-item.js +1 -0
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +1 -0
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tile.js +1 -0
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.js +1 -0
- package/dist/components/gov-tiles.js.map +1 -1
- package/dist/components/gov-toast.js +1 -0
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +1 -0
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +1 -0
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizzard-item.js +1 -0
- package/dist/components/gov-wizzard-item.js.map +1 -1
- package/dist/components/gov-wizzard.js +1 -0
- package/dist/components/gov-wizzard.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/core/core.css +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-3464136c.js +2 -0
- package/dist/core/p-3464136c.js.map +1 -0
- package/dist/core/{p-e582a589.entry.js → p-533bd158.entry.js} +2 -2
- package/dist/core/{p-882621a0.entry.js → p-595a2301.entry.js} +2 -2
- package/dist/core/{p-7ac5f119.entry.js → p-5b2e8e04.entry.js} +2 -2
- package/dist/core/p-5b2e8e04.entry.js.map +1 -0
- package/dist/core/{p-35c42aea.entry.js → p-7670f834.entry.js} +2 -2
- package/dist/core/p-7670f834.entry.js.map +1 -0
- package/dist/core/{p-613d8ed8.entry.js → p-7684f6d0.entry.js} +2 -2
- package/dist/core/p-8d5c9030.entry.js +2 -0
- package/dist/core/{p-64d6997b.entry.js.map → p-8d5c9030.entry.js.map} +1 -1
- package/dist/core/{p-cec15cf8.entry.js → p-9658b6ef.entry.js} +2 -2
- package/dist/core/p-99155ec0.entry.js.map +1 -1
- package/dist/core/p-9ba104c3.entry.js +2 -0
- package/dist/core/p-9ba104c3.entry.js.map +1 -0
- package/dist/core/{p-af40ceef.js → p-9cd80b05.js} +2 -2
- package/dist/core/p-9cd80b05.js.map +1 -0
- package/dist/core/{p-1db2ac17.entry.js → p-9d51ea56.entry.js} +2 -2
- package/dist/core/p-a5d69694.js +2 -0
- package/dist/core/p-a5d69694.js.map +1 -0
- package/dist/core/p-b308500e.entry.js +2 -0
- package/dist/core/p-b308500e.entry.js.map +1 -0
- package/dist/core/{p-fc61fd31.entry.js → p-b5284ce3.entry.js} +2 -2
- package/dist/core/p-ef095a1f.entry.js +2 -0
- package/dist/core/{p-e3484849.entry.js.map → p-ef095a1f.entry.js.map} +1 -1
- package/dist/core/{p-db88f249.entry.js → p-f48fd266.entry.js} +2 -2
- package/dist/custom-elements/index.js +1 -1
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{constants-14a7ba8e.js → constants-ab132d9c.js} +2 -2
- package/dist/esm/constants-ab132d9c.js.map +1 -0
- package/dist/esm/constants-ebec7de8.js +12 -0
- package/dist/esm/constants-ebec7de8.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{form-e2e12619.js → form-669a7180.js} +6 -2
- package/dist/esm/form-669a7180.js.map +1 -0
- package/dist/esm/gov-accordion-item.entry.js +11 -7
- package/dist/esm/gov-accordion-item.entry.js.map +1 -1
- package/dist/esm/gov-accordion.entry.js +1 -1
- package/dist/esm/gov-app.entry.js +28 -7
- package/dist/esm/gov-app.entry.js.map +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +3 -33
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +2 -2
- package/dist/esm/gov-form-control.entry.js +2 -2
- package/dist/esm/gov-form-file.entry.js +2 -2
- package/dist/esm/gov-form-input.entry.js +2 -2
- package/dist/esm/gov-form-label.entry.js +5 -2
- package/dist/esm/gov-form-label.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +2 -2
- package/dist/esm/gov-form-select.entry.js +2 -2
- package/dist/esm/gov-form-switch.entry.js +2 -2
- package/dist/esm/gov-icon.entry.js +1 -1
- package/dist/esm/gov-tiles.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/hydrate/index.js +51 -52
- package/dist/stencil.config.js +5 -0
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/gov-accordion/constants.d.ts +1 -1
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +8 -4
- package/dist/types/components/gov-breadcrumbs/constants.d.ts +0 -4
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +0 -14
- package/dist/types/components/gov-button/constants.d.ts +1 -1
- package/dist/types/components/gov-form/checkbox/constants.d.ts +1 -1
- package/dist/types/components/gov-form/group/constants.d.ts +1 -1
- package/dist/types/components/gov-form/label/constants.d.ts +4 -0
- package/dist/types/components/gov-form/label/gov-form-label.d.ts +5 -0
- package/dist/types/components/gov-form/radio/constants.d.ts +1 -1
- package/dist/types/components/gov-form/switch/constants.d.ts +1 -1
- package/dist/types/components/gov-spacer/constants.d.ts +1 -1
- package/dist/types/components/gov-stepper/constants.d.ts +1 -1
- package/dist/types/components/gov-wizzard/constants.d.ts +1 -1
- package/dist/types/components.d.ts +19 -14
- package/package.json +1 -1
- package/dist/cjs/constants-736bf980.js +0 -10
- package/dist/cjs/constants-736bf980.js.map +0 -1
- package/dist/cjs/constants-e175be18.js.map +0 -1
- package/dist/cjs/form-02872a5e.js.map +0 -1
- package/dist/collection/components/gov-tiles/constants.js.map +0 -1
- package/dist/collection/components/gov-tiles/gov-tiles.js.map +0 -1
- package/dist/core/p-0284b5e2.js +0 -2
- package/dist/core/p-0284b5e2.js.map +0 -1
- package/dist/core/p-159c9835.entry.js +0 -2
- package/dist/core/p-159c9835.entry.js.map +0 -1
- package/dist/core/p-27977727.js +0 -2
- package/dist/core/p-27977727.js.map +0 -1
- package/dist/core/p-35c42aea.entry.js.map +0 -1
- package/dist/core/p-64d6997b.entry.js +0 -2
- package/dist/core/p-7ac5f119.entry.js.map +0 -1
- package/dist/core/p-af40ceef.js.map +0 -1
- package/dist/core/p-bd560ffc.entry.js +0 -2
- package/dist/core/p-bd560ffc.entry.js.map +0 -1
- package/dist/core/p-e3484849.entry.js +0 -2
- package/dist/esm/constants-14a7ba8e.js.map +0 -1
- package/dist/esm/constants-5c1382a4.js +0 -8
- package/dist/esm/constants-5c1382a4.js.map +0 -1
- package/dist/esm/form-e2e12619.js.map +0 -1
- /package/dist/collection/components/{gov-tiles → gov-tile/container}/constants.js +0 -0
- /package/dist/collection/components/{gov-tiles → gov-tile/container}/gov-tiles.css +0 -0
- /package/dist/core/{p-e582a589.entry.js.map → p-533bd158.entry.js.map} +0 -0
- /package/dist/core/{p-882621a0.entry.js.map → p-595a2301.entry.js.map} +0 -0
- /package/dist/core/{p-613d8ed8.entry.js.map → p-7684f6d0.entry.js.map} +0 -0
- /package/dist/core/{p-cec15cf8.entry.js.map → p-9658b6ef.entry.js.map} +0 -0
- /package/dist/core/{p-1db2ac17.entry.js.map → p-9d51ea56.entry.js.map} +0 -0
- /package/dist/core/{p-fc61fd31.entry.js.map → p-b5284ce3.entry.js.map} +0 -0
- /package/dist/core/{p-db88f249.entry.js.map → p-f48fd266.entry.js.map} +0 -0
- /package/dist/types/components/{gov-tiles → gov-tile/container}/constants.d.ts +0 -0
- /package/dist/types/components/{gov-tiles → gov-tile/container}/gov-tiles.d.ts +0 -0
package/dist/hydrate/index.js
CHANGED
|
@@ -5803,7 +5803,7 @@ const property = (name, object) => {
|
|
|
5803
5803
|
};
|
|
5804
5804
|
const pick = (obj, keys) => Object.fromEntries(Object.entries(obj).filter(([key]) => keys.includes(key)));
|
|
5805
5805
|
|
|
5806
|
-
const AccordionSizes = pick(Sizes, ['_S', '_M', '_L']);
|
|
5806
|
+
const AccordionSizes = pick(Sizes, ['_XS', '_S', '_M', '_L']);
|
|
5807
5807
|
const AccordionVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'CUSTOM']);
|
|
5808
5808
|
const AccordionClass = {
|
|
5809
5809
|
root: 'gov-accordion',
|
|
@@ -6097,17 +6097,18 @@ class GovAccordionItem {
|
|
|
6097
6097
|
registerInstance(this, hostRef);
|
|
6098
6098
|
this.govChange = createEvent(this, "gov-change", 7);
|
|
6099
6099
|
this.isExpandedState = undefined;
|
|
6100
|
-
this.variant =
|
|
6100
|
+
this.variant = "primary";
|
|
6101
6101
|
this.identifier = undefined;
|
|
6102
6102
|
this.size = undefined;
|
|
6103
6103
|
this.label = undefined;
|
|
6104
6104
|
this.annotation = undefined;
|
|
6105
6105
|
this.disabled = false;
|
|
6106
6106
|
this.isExpanded = false;
|
|
6107
|
-
this.triggerTag =
|
|
6107
|
+
this.triggerTag = "h3";
|
|
6108
|
+
this.noBorder = false;
|
|
6108
6109
|
this.h = govHost(this.host);
|
|
6109
|
-
this.triggerId = createID(
|
|
6110
|
-
this.contentId = createID(
|
|
6110
|
+
this.triggerId = createID("GovAccordionItem");
|
|
6111
|
+
this.contentId = createID("GovAccordionContent");
|
|
6111
6112
|
}
|
|
6112
6113
|
validateLabel(newValue) {
|
|
6113
6114
|
if (!newValue) {
|
|
@@ -6115,7 +6116,7 @@ class GovAccordionItem {
|
|
|
6115
6116
|
}
|
|
6116
6117
|
}
|
|
6117
6118
|
validateTriggerTag(newValue) {
|
|
6118
|
-
const validTags = [
|
|
6119
|
+
const validTags = ["h1", "h2", "h3", "h4", "h5", "h6", "span"];
|
|
6119
6120
|
if (newValue) {
|
|
6120
6121
|
if (!validTags.includes(newValue)) {
|
|
6121
6122
|
govErrorLog(`[${AccordionItemClass.root}]: Tag ${newValue} is not allowed.`);
|
|
@@ -6143,7 +6144,10 @@ class GovAccordionItem {
|
|
|
6143
6144
|
const contentId = this.contentId;
|
|
6144
6145
|
const { isExpandedState, label } = this;
|
|
6145
6146
|
const TriggerTag = this.triggerTag;
|
|
6146
|
-
return (hAsync(Host, { class: this.h.classes(AccordionItemClass.root), role: "listitem" }, hAsync("button", { id: triggerId, class: AccordionItemClass.header, "aria-expanded": booleanString(isExpandedState), "aria-controls": contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: () =>
|
|
6147
|
+
return (hAsync(Host, { class: this.h.classes(AccordionItemClass.root), "no-border": this.noBorder, role: "listitem" }, hAsync("button", { id: triggerId, class: AccordionItemClass.header, "aria-expanded": booleanString(isExpandedState), "aria-controls": contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
|
|
6148
|
+
e.stopPropagation();
|
|
6149
|
+
this.toggle().finally();
|
|
6150
|
+
} }, hAsync(TriggerTag, { class: AccordionItemClass.title }, this.h.hasSlot("icon") && (hAsync("span", { class: AccordionItemClass.icon }, hAsync("slot", { name: "icon" }))), hAsync("span", { class: AccordionItemClass.name }, hAsync("span", { class: AccordionItemClass.label }, label), this.annotation && hAsync("span", { class: AccordionItemClass.annot }, this.annotation)), this.h.hasSlot("suffix") && (hAsync("span", { class: AccordionItemClass.suffix }, hAsync("slot", { name: "suffix" })))), hAsync("gov-icon", { class: AccordionItemClass.arrow, name: "chevron-down" })), hAsync("div", { class: AccordionItemClass.content, id: contentId, "aria-hidden": booleanString(!isExpandedState), hidden: !isExpandedState, "aria-labelledby": triggerId }, hAsync("slot", null))));
|
|
6147
6151
|
}
|
|
6148
6152
|
/**
|
|
6149
6153
|
* Opening the accordion
|
|
@@ -6192,6 +6196,7 @@ class GovAccordionItem {
|
|
|
6192
6196
|
"disabled": [4],
|
|
6193
6197
|
"isExpanded": [4, "is-expanded"],
|
|
6194
6198
|
"triggerTag": [1, "trigger-tag"],
|
|
6199
|
+
"noBorder": [4, "no-border"],
|
|
6195
6200
|
"isExpandedState": [32],
|
|
6196
6201
|
"open": [64],
|
|
6197
6202
|
"close": [64],
|
|
@@ -11196,15 +11201,35 @@ class BreadcrumbsPage extends HTMLElement {
|
|
|
11196
11201
|
this.innerHTML = `
|
|
11197
11202
|
<h2>Breadcrumbs</h2>
|
|
11198
11203
|
|
|
11199
|
-
<gov-breadcrumbs wcag-label="Drobečková navigace pro stránku Czech POINT"
|
|
11204
|
+
<gov-breadcrumbs wcag-label="Drobečková navigace pro stránku Czech POINT">
|
|
11205
|
+
<ul>
|
|
11206
|
+
<li>
|
|
11207
|
+
<button>
|
|
11208
|
+
Domů
|
|
11209
|
+
</button>
|
|
11210
|
+
</li>
|
|
11211
|
+
<li>
|
|
11212
|
+
<gov-icon name="chevron-right"></gov-icon>
|
|
11213
|
+
<a href="#">Kam dál</a>
|
|
11214
|
+
</li>
|
|
11215
|
+
<li>
|
|
11216
|
+
<gov-icon name="chevron-right"></gov-icon>
|
|
11217
|
+
<a href="#">
|
|
11218
|
+
Český eGovernment
|
|
11219
|
+
</a>
|
|
11220
|
+
</li>
|
|
11221
|
+
<li>
|
|
11222
|
+
<gov-icon name="chevron-right"></gov-icon>
|
|
11223
|
+
<strong>Czech POINT</strong>
|
|
11224
|
+
</li>
|
|
11225
|
+
</ul>
|
|
11226
|
+
</gov-breadcrumbs>
|
|
11200
11227
|
|
|
11201
|
-
<h3>Collapsible</h3>
|
|
11202
|
-
<gov-breadcrumbs collapsible="true" wcag-label="Drobečková navigace pro stránku Czech POINT"></gov-breadcrumbs>
|
|
11203
11228
|
`;
|
|
11204
11229
|
}
|
|
11205
11230
|
}
|
|
11206
|
-
if (customElements.get(
|
|
11207
|
-
customElements.define(
|
|
11231
|
+
if (customElements.get("breadcrumbs-page") === undefined) {
|
|
11232
|
+
customElements.define("breadcrumbs-page", BreadcrumbsPage);
|
|
11208
11233
|
}
|
|
11209
11234
|
|
|
11210
11235
|
class CardPage extends HTMLElement {
|
|
@@ -11753,6 +11778,7 @@ class FormsPage extends HTMLElement {
|
|
|
11753
11778
|
</h3>
|
|
11754
11779
|
|
|
11755
11780
|
<gov-form-control size="xs">
|
|
11781
|
+
<gov-form-label size="xs" slot="top">Label of word</gov-form-label>
|
|
11756
11782
|
<gov-form-group gap="2xs">
|
|
11757
11783
|
<gov-form-checkbox name="test-me-c" value="me" checked></gov-form-checkbox>
|
|
11758
11784
|
<gov-form-checkbox name="test-me-c" value="me" checked></gov-form-checkbox>
|
|
@@ -11908,7 +11934,7 @@ class FormsPage extends HTMLElement {
|
|
|
11908
11934
|
Default group
|
|
11909
11935
|
</h3>
|
|
11910
11936
|
<gov-form-control size="xs" fieldset>
|
|
11911
|
-
|
|
11937
|
+
<gov-form-label legend size="s" slot="top">Seznam skupiny</gov-form-label>
|
|
11912
11938
|
<gov-form-group>
|
|
11913
11939
|
<gov-form-radio name="test1" value="me" >
|
|
11914
11940
|
<gov-form-label slot="label">Value 1</gov-form-label>
|
|
@@ -12310,7 +12336,7 @@ class FormsPage extends HTMLElement {
|
|
|
12310
12336
|
Right icon
|
|
12311
12337
|
</h3>
|
|
12312
12338
|
<gov-form-control size="m" type="input" id="metro2">
|
|
12313
|
-
<gov-form-label
|
|
12339
|
+
<gov-form-label slot="top">Label of input</gov-form-label>
|
|
12314
12340
|
<gov-form-group>
|
|
12315
12341
|
<gov-form-input id="kapr" name="test-me" placeholder="Placeholder">
|
|
12316
12342
|
</gov-form-input>
|
|
@@ -14803,28 +14829,20 @@ class GovBadge {
|
|
|
14803
14829
|
|
|
14804
14830
|
const BreadcrumbsClass = {
|
|
14805
14831
|
root: 'gov-breadcrumbs',
|
|
14806
|
-
arrow: 'gov-breadcrumbs__arrow',
|
|
14807
|
-
list: 'gov-breadcrumbs__list',
|
|
14808
|
-
item: 'gov-breadcrumbs__item',
|
|
14809
|
-
button: 'gov-breadcrumbs__button',
|
|
14810
14832
|
};
|
|
14811
14833
|
|
|
14812
|
-
const govBreadcrumbsCss = ".gov-
|
|
14834
|
+
const govBreadcrumbsCss = ".gov-breadcrumbs ul{margin:0;padding:0}.gov-breadcrumbs li{margin:0;padding:0;background:none}.gov-breadcrumbs li::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-breadcrumbs ul{position:relative;display:flex;width:100%;padding-bottom:0.3125rem;overflow-x:auto}.gov-breadcrumbs li{display:flex;justify-content:flex-start;align-items:center;white-space:nowrap}.gov-breadcrumbs button{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);padding:0;border:none;background:none;color:var(--gov-breadcrumbs-link-color, var(--gov-color-primary));text-decoration:underline}.gov-breadcrumbs button:hover{text-decoration:none}.gov-breadcrumbs .gov-icon{width:0.625rem;height:0.625rem;margin:0rem 1rem;color:var(--gov-breadcrumbs-arrow-color, var(--gov-color-secondary-600))}";
|
|
14813
14835
|
|
|
14814
14836
|
class GovBreadcrumbs {
|
|
14815
14837
|
constructor(hostRef) {
|
|
14816
14838
|
registerInstance(this, hostRef);
|
|
14817
14839
|
this.govChange = createEvent(this, "gov-change", 7);
|
|
14818
|
-
this.isExpandedState = undefined;
|
|
14819
14840
|
this.collapsible = false;
|
|
14820
14841
|
this.isExpanded = false;
|
|
14821
14842
|
this.wcagLabel = undefined;
|
|
14822
14843
|
this.wcagLabelledBy = undefined;
|
|
14823
14844
|
this.h = govHost(this.host);
|
|
14824
14845
|
}
|
|
14825
|
-
emmitChange() {
|
|
14826
|
-
this.govChange.emit({ open: this.isExpandedState, element: this.host });
|
|
14827
|
-
}
|
|
14828
14846
|
async componentDidRender() {
|
|
14829
14847
|
if (canValidateWcagOnRender()) {
|
|
14830
14848
|
await delay(500);
|
|
@@ -14832,29 +14850,7 @@ class GovBreadcrumbs {
|
|
|
14832
14850
|
}
|
|
14833
14851
|
}
|
|
14834
14852
|
render() {
|
|
14835
|
-
|
|
14836
|
-
return (hAsync(Host, { class: this.h.classes(BreadcrumbsClass.root), collapsible: this.collapsible }, hAsync("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, hAsync("ul", { class: BreadcrumbsClass.list }, hAsync("li", { class: BreadcrumbsClass.item }, hAsync("a", { href: "#", class: "gov-link" }, "Dom\u016F"), hAsync("gov-icon", { class: BreadcrumbsClass.arrow, name: "chevron-right" })), hAsync("li", { class: BreadcrumbsClass.item }, hAsync("a", { href: "#", class: "gov-link" }, "Kam d\u00E1l"), hAsync("gov-icon", { class: BreadcrumbsClass.arrow, name: "chevron-right" })), hAsync("li", { class: BreadcrumbsClass.item }, hAsync("a", { href: "#", class: "gov-link" }, "\u010Cesk\u00FD eGovernment"), hAsync("gov-icon", { class: BreadcrumbsClass.arrow, name: "chevron-right" })), hAsync("li", { class: BreadcrumbsClass.item }, hAsync("strong", null, "Czech POINT")))), this.collapsible && (hAsync("gov-button", { "aria-expanded": booleanString(isExpandedState), class: BreadcrumbsClass.button, variant: "primary", size: "s", inverse: true }, hAsync("gov-icon", { slot: "left-icon", name: "chevron-down", onClick: () => this.toggle() })))));
|
|
14837
|
-
}
|
|
14838
|
-
/**
|
|
14839
|
-
* Opening the Breadcrumbs
|
|
14840
|
-
*/
|
|
14841
|
-
async open() {
|
|
14842
|
-
this.isExpandedState = true;
|
|
14843
|
-
this.emmitChange();
|
|
14844
|
-
}
|
|
14845
|
-
/**
|
|
14846
|
-
* Closing the Breadcrumbs
|
|
14847
|
-
*/
|
|
14848
|
-
async close() {
|
|
14849
|
-
this.isExpandedState = false;
|
|
14850
|
-
this.emmitChange();
|
|
14851
|
-
}
|
|
14852
|
-
/**
|
|
14853
|
-
* Breadcrumbs switch
|
|
14854
|
-
*/
|
|
14855
|
-
async toggle() {
|
|
14856
|
-
this.isExpandedState = !this.isExpandedState;
|
|
14857
|
-
this.emmitChange();
|
|
14853
|
+
return (hAsync(Host, { class: this.h.classes(BreadcrumbsClass.root) }, hAsync("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, hAsync("slot", null))));
|
|
14858
14854
|
}
|
|
14859
14855
|
/**
|
|
14860
14856
|
* Validate the WCAG attributes of the component
|
|
@@ -14865,17 +14861,13 @@ class GovBreadcrumbs {
|
|
|
14865
14861
|
get host() { return getElement(this); }
|
|
14866
14862
|
static get style() { return govBreadcrumbsCss; }
|
|
14867
14863
|
static get cmpMeta() { return {
|
|
14868
|
-
"$flags$":
|
|
14864
|
+
"$flags$": 4,
|
|
14869
14865
|
"$tagName$": "gov-breadcrumbs",
|
|
14870
14866
|
"$members$": {
|
|
14871
14867
|
"collapsible": [4],
|
|
14872
14868
|
"isExpanded": [4, "is-expanded"],
|
|
14873
14869
|
"wcagLabel": [1, "wcag-label"],
|
|
14874
14870
|
"wcagLabelledBy": [1, "wcag-labelded-by"],
|
|
14875
|
-
"isExpandedState": [32],
|
|
14876
|
-
"open": [64],
|
|
14877
|
-
"close": [64],
|
|
14878
|
-
"toggle": [64],
|
|
14879
14871
|
"validateWcag": [64]
|
|
14880
14872
|
},
|
|
14881
14873
|
"$listeners$": undefined,
|
|
@@ -15583,6 +15575,7 @@ const FormMessageClass = {
|
|
|
15583
15575
|
icon: 'gov-form-message__icon',
|
|
15584
15576
|
};
|
|
15585
15577
|
|
|
15578
|
+
pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL']);
|
|
15586
15579
|
const FormLabelClass = {
|
|
15587
15580
|
root: 'gov-form-label',
|
|
15588
15581
|
label: 'gov-form-label__label',
|
|
@@ -15616,6 +15609,10 @@ const govForm = (govHost) => {
|
|
|
15616
15609
|
return this.govHost.getParent(FormControlClass.root);
|
|
15617
15610
|
},
|
|
15618
15611
|
get label() {
|
|
15612
|
+
const innerLabel = this.govHost.hostElement.querySelector(`.${FormLabelClass.root}`);
|
|
15613
|
+
if (innerLabel) {
|
|
15614
|
+
return innerLabel;
|
|
15615
|
+
}
|
|
15619
15616
|
if (this.control) {
|
|
15620
15617
|
return this.control.querySelector(`.${FormLabelClass.root}`);
|
|
15621
15618
|
}
|
|
@@ -16265,12 +16262,13 @@ class GovFormLabel {
|
|
|
16265
16262
|
registerInstance(this, hostRef);
|
|
16266
16263
|
this.govClick = createEvent(this, "gov-click", 7);
|
|
16267
16264
|
this.identifier = undefined;
|
|
16265
|
+
this.size = 'm';
|
|
16268
16266
|
this.required = false;
|
|
16269
16267
|
this.legend = false;
|
|
16270
16268
|
}
|
|
16271
16269
|
render() {
|
|
16272
16270
|
const Tag = this.legend ? 'legend' : 'label';
|
|
16273
|
-
return (hAsync(Host, { class: FormLabelClass.root }, hAsync(Tag, { class: FormLabelClass.label, htmlFor: this.identifier, onClick: () => this.govClick.emit() }, hAsync("slot", null), this.required ? (hAsync("span", { class: "gov-color--danger-500" }, "*")) : null)));
|
|
16271
|
+
return (hAsync(Host, { class: FormLabelClass.root, size: this.size }, hAsync(Tag, { class: FormLabelClass.label, htmlFor: this.identifier, onClick: () => this.govClick.emit() }, hAsync("slot", null), this.required ? (hAsync("span", { class: "gov-color--danger-500" }, "*")) : null)));
|
|
16274
16272
|
}
|
|
16275
16273
|
static get style() { return govFormLabelCss; }
|
|
16276
16274
|
static get cmpMeta() { return {
|
|
@@ -16278,6 +16276,7 @@ class GovFormLabel {
|
|
|
16278
16276
|
"$tagName$": "gov-form-label",
|
|
16279
16277
|
"$members$": {
|
|
16280
16278
|
"identifier": [1],
|
|
16279
|
+
"size": [1],
|
|
16281
16280
|
"required": [4],
|
|
16282
16281
|
"legend": [4]
|
|
16283
16282
|
},
|
package/dist/stencil.config.js
CHANGED
|
@@ -3,6 +3,7 @@ import { sass } from '@stencil/sass';
|
|
|
3
3
|
import autoprefixer from 'autoprefixer';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
import { reactOutputTarget } from '@stencil/react-output-target';
|
|
6
|
+
import { vueOutputTarget } from '@stencil/vue-output-target';
|
|
6
7
|
export const config = {
|
|
7
8
|
namespace: 'core',
|
|
8
9
|
globalStyle: 'src/sass/global.scss',
|
|
@@ -58,6 +59,10 @@ export const config = {
|
|
|
58
59
|
proxiesFile: '../../../packages/core-react/lib/components.ts',
|
|
59
60
|
includeDefineCustomElements: true,
|
|
60
61
|
}),
|
|
62
|
+
vueOutputTarget({
|
|
63
|
+
componentCorePackage: '@gov-design-system-ce/components',
|
|
64
|
+
proxiesFile: '../../../packages/core-vue/lib/components.ts',
|
|
65
|
+
}),
|
|
61
66
|
],
|
|
62
67
|
};
|
|
63
68
|
//# sourceMappingURL=stencil.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stencil.config.js","sourceRoot":"","sources":["../../../stencil.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,YAAY,MAAM,cAAc,CAAA;AACvC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"stencil.config.js","sourceRoot":"","sources":["../../../stencil.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,YAAY,MAAM,cAAc,CAAA;AACvC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,MAAM,CAAC,MAAM,MAAM,GAAW;EAC7B,SAAS,EAAE,MAAM;EACjB,WAAW,EAAE,sBAAsB;EACnC,SAAS,EAAE,OAAO;EAClB,SAAS,EAAE,IAAI;EACf,MAAM,EAAE;IACP,2BAA2B,EAAE,IAAI;GACjC;EACD,OAAO,EAAE;IACR,IAAI,CAAC;MACJ,iBAAiB,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE;KACvF,CAAC;IACF,OAAO,CAAC;MACP,OAAO,EAAE,CAAC,YAAY,EAAE,CAAC;KACzB,CAAC;GACF;EACD,aAAa,EAAE;IACd;MACC,IAAI,EAAE,6BAA6B;MACnC,eAAe,EAAE,KAAK;MACtB,MAAM,EAAE,IAAI;KACZ;IACD;MACC,IAAI,EAAE,MAAM;MACZ,aAAa,EAAE,WAAW;KAC1B;IACD;MACC,IAAI,EAAE,sBAAsB;KAC5B;IACD;MACC,IAAI,EAAE,aAAa;MACnB,MAAM,EAAE,IAAI;KACZ;IACD;MACC,IAAI,EAAE,KAAK;MACX,IAAI,EAAE;QACL,EAAE,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,oBAAoB,EAAE;QACtD,EAAE,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,oBAAoB,EAAE;OACtD;MACD,aAAa,EAAE,IAAI;KACnB;IACD;MACC,IAAI,EAAE,qBAAqB;MAC3B,GAAG,EAAE,cAAc;KACnB;IACD;MACC,IAAI,EAAE,sBAAsB;MAC5B,wBAAwB,EAAE,IAAI;MAC9B,oBAAoB,EAAE,KAAK;KAC3B;IAED,iBAAiB,CAAC;MACjB,oBAAoB,EAAE,kCAAkC;MACxD,WAAW,EAAE,gDAAgD;MAC7D,2BAA2B,EAAE,IAAI;KACjC,CAAC;IACF,eAAe,CAAC;MACf,oBAAoB,EAAE,kCAAkC;MACxD,WAAW,EAAE,8CAA8C;KAC3D,CAAC;GACF;CACD,CAAA","sourcesContent":["import { Config } from '@stencil/core'\nimport { postcss } from '@stencil/postcss'\nimport { sass } from '@stencil/sass'\nimport autoprefixer from 'autoprefixer'\nimport path from 'path'\nimport { reactOutputTarget } from '@stencil/react-output-target'\nimport { vueOutputTarget } from '@stencil/vue-output-target'\n\nexport const config: Config = {\n\tnamespace: 'core',\n\tglobalStyle: 'src/sass/global.scss',\n\ttaskQueue: 'async',\n\tsourceMap: true,\n\textras: {\n\t\texperimentalImportInjection: true,\n\t},\n\tplugins: [\n\t\tsass({\n\t\t\tinjectGlobalPaths: [path.resolve(__dirname, `src/sass/core.scss`).replace(/\\\\/g, '/'),],\n\t\t}),\n\t\tpostcss({\n\t\t\tplugins: [autoprefixer()],\n\t\t}),\n\t],\n\toutputTargets: [\n\t\t{\n\t\t\ttype: 'dist-custom-elements-bundle',\n\t\t\texternalRuntime: false,\n\t\t\tminify: true,\n\t\t},\n\t\t{\n\t\t\ttype: 'dist',\n\t\t\tesmLoaderPath: '../loader',\n\t\t},\n\t\t{\n\t\t\ttype: 'dist-custom-elements',\n\t\t},\n\t\t{\n\t\t\ttype: 'docs-readme',\n\t\t\tstrict: true\n\t\t},\n\t\t{\n\t\t\ttype: 'www',\n\t\t\tcopy: [\n\t\t\t\t{ src: '../../fonts/lib', dest: 'build/assets/fonts' },\n\t\t\t\t{ src: '../../icons/lib', dest: 'build/assets/icons' }\n\t\t\t],\n\t\t\tserviceWorker: null,\n\t\t},\n\t\t{\n\t\t\ttype: 'dist-hydrate-script',\n\t\t\tdir: 'dist/hydrate',\n\t\t},\n\t\t{\n\t\t\ttype: 'dist-custom-elements',\n\t\t\tautoDefineCustomElements: true,\n\t\t\tincludeGlobalScripts: false,\n\t\t},\n\n\t\treactOutputTarget({\n\t\t\tcomponentCorePackage: '@gov-design-system-ce/components',\n\t\t\tproxiesFile: '../../../packages/core-react/lib/components.ts',\n\t\t\tincludeDefineCustomElements: true,\n\t\t}),\n\t\tvueOutputTarget({\n\t\t\tcomponentCorePackage: '@gov-design-system-ce/components',\n\t\t\tproxiesFile: '../../../packages/core-vue/lib/components.ts',\n\t\t}),\n\t],\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Sizes } from '../../core/constants/sizes';
|
|
2
2
|
import { Variants } from '../../core/constants/variants';
|
|
3
3
|
import { ValueOf } from '../../types/interfaces';
|
|
4
|
-
export declare const AccordionSizes: Pick<typeof Sizes, "_S" | "_M" | "_L">;
|
|
4
|
+
export declare const AccordionSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L">;
|
|
5
5
|
export declare type AccordionSizeType = `${ValueOf<typeof AccordionSizes>}`;
|
|
6
6
|
export declare const AccordionVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY" | "CUSTOM">;
|
|
7
7
|
export declare type AccordionVariantType = `${ValueOf<typeof AccordionVariants>}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
2
|
-
import { AccordionSizeType, AccordionVariantType } from
|
|
3
|
-
import { GovAccordionItemChangeEvent } from
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { AccordionSizeType, AccordionVariantType } from "./constants";
|
|
3
|
+
import { GovAccordionItemChangeEvent } from "./gov-accordion-item.d";
|
|
4
4
|
export declare class GovAccordionItem {
|
|
5
5
|
private readonly triggerId;
|
|
6
6
|
private readonly contentId;
|
|
@@ -38,9 +38,13 @@ export declare class GovAccordionItem {
|
|
|
38
38
|
*/
|
|
39
39
|
readonly isExpanded: boolean;
|
|
40
40
|
/**
|
|
41
|
-
* Used to change the
|
|
41
|
+
* Used to change the HTML tag in the accordion trigger for correct semantic structure
|
|
42
42
|
*/
|
|
43
43
|
readonly triggerTag: string;
|
|
44
|
+
/**
|
|
45
|
+
* To remove the main underline of an item
|
|
46
|
+
*/
|
|
47
|
+
readonly noBorder: boolean;
|
|
44
48
|
/**
|
|
45
49
|
* Called when the accordion state changes
|
|
46
50
|
*/
|
|
@@ -4,7 +4,6 @@ export declare class GovBreadcrumbs {
|
|
|
4
4
|
private h;
|
|
5
5
|
constructor();
|
|
6
6
|
readonly host: HTMLGovBreadcrumbsElement;
|
|
7
|
-
isExpandedState: boolean;
|
|
8
7
|
/**
|
|
9
8
|
* Defines wether the components can be collapsible when element doesn't fit in one row.
|
|
10
9
|
*/
|
|
@@ -25,21 +24,8 @@ export declare class GovBreadcrumbs {
|
|
|
25
24
|
* Called when the Breadrumbs state changes
|
|
26
25
|
*/
|
|
27
26
|
govChange: EventEmitter<GovBreadcrumbsChangeEvent>;
|
|
28
|
-
private emmitChange;
|
|
29
27
|
componentDidRender(): Promise<void>;
|
|
30
28
|
render(): any;
|
|
31
|
-
/**
|
|
32
|
-
* Opening the Breadcrumbs
|
|
33
|
-
*/
|
|
34
|
-
open(): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Closing the Breadcrumbs
|
|
37
|
-
*/
|
|
38
|
-
close(): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Breadcrumbs switch
|
|
41
|
-
*/
|
|
42
|
-
toggle(): Promise<void>;
|
|
43
29
|
/**
|
|
44
30
|
* Validate the WCAG attributes of the component
|
|
45
31
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Sizes } from '../../core/constants/sizes';
|
|
2
2
|
import { Variants } from '../../core/constants/variants';
|
|
3
3
|
import { ValueOf } from '../../types/interfaces';
|
|
4
|
-
export declare const ButtonSizes: Pick<typeof Sizes, "
|
|
4
|
+
export declare const ButtonSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
5
5
|
export declare type ButtonSizesType = `${ValueOf<typeof ButtonSizes>}`;
|
|
6
6
|
export declare const ButtonVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY" | "SUCCESS" | "ERROR" | "WARNING">;
|
|
7
7
|
export declare type ButtonVariantType = `${ValueOf<typeof ButtonVariants>}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Sizes } from '../../../core/constants/sizes';
|
|
2
2
|
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
-
export declare const FormCheckboxSizes: Pick<typeof Sizes, "
|
|
3
|
+
export declare const FormCheckboxSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L">;
|
|
4
4
|
export declare type FormCheckboxSizesType = `${ValueOf<typeof FormCheckboxSizes>}`;
|
|
5
5
|
export declare const FormCheckboxClass: {
|
|
6
6
|
root: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Sizes } from "../../../core/constants/sizes";
|
|
2
2
|
import { ValueOf } from "../../../types/interfaces";
|
|
3
|
-
export declare const FormGroupSizes: Pick<typeof Sizes, "
|
|
3
|
+
export declare const FormGroupSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_2XS">;
|
|
4
4
|
export declare type FormGroupSizesType = `${ValueOf<typeof FormGroupSizes>}`;
|
|
5
5
|
export declare const FormGroupClass: {
|
|
6
6
|
root: string;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Sizes } from "../../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../../types/interfaces";
|
|
3
|
+
export declare const FormLabelSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
4
|
+
export declare type FormLabelSizesTypes = `${ValueOf<typeof FormLabelSizes>}`;
|
|
1
5
|
export declare const FormLabelClass: {
|
|
2
6
|
root: string;
|
|
3
7
|
label: string;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { FormLabelSizesTypes } from "./constants";
|
|
2
3
|
export declare class GovFormLabel {
|
|
3
4
|
/**
|
|
4
5
|
* Identifier for label.
|
|
5
6
|
*/
|
|
6
7
|
readonly identifier: string;
|
|
8
|
+
/**
|
|
9
|
+
* Label's size.
|
|
10
|
+
*/
|
|
11
|
+
readonly size?: FormLabelSizesTypes;
|
|
7
12
|
/**
|
|
8
13
|
* Set whether the input is required or not.
|
|
9
14
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Sizes } from '../../../core/constants/sizes';
|
|
2
2
|
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
-
export declare const FormRadioSizes: Pick<typeof Sizes, "
|
|
3
|
+
export declare const FormRadioSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L">;
|
|
4
4
|
export declare type FormRadioSizesType = `${ValueOf<typeof FormRadioSizes>}`;
|
|
5
5
|
export declare const FormRadioClass: {
|
|
6
6
|
root: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Sizes } from '../../../core/constants/sizes';
|
|
2
2
|
import { ValueOf } from '../../../types/interfaces';
|
|
3
|
-
export declare const FormSwitchSizes: Pick<typeof Sizes, "
|
|
3
|
+
export declare const FormSwitchSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L">;
|
|
4
4
|
export declare type FormSwitchSizesType = `${ValueOf<typeof FormSwitchSizes>}`;
|
|
5
5
|
export declare const FormSwitchClass: {
|
|
6
6
|
root: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Sizes } from '../../core/constants/sizes';
|
|
2
2
|
import { ValueOf } from '../../types/interfaces';
|
|
3
|
-
export declare const SpacerSize: Pick<typeof Sizes, "
|
|
3
|
+
export declare const SpacerSize: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_2XS" | "_XL" | "_2XL" | "_3XL" | "_5XL">;
|
|
4
4
|
export declare type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`;
|
|
5
5
|
export declare enum SpacerBreakpoints {
|
|
6
6
|
NONE = "none",
|
|
@@ -3,7 +3,7 @@ import { Sizes } from '../../core/constants/sizes';
|
|
|
3
3
|
import { ValueOf } from '../../types/interfaces';
|
|
4
4
|
export declare const StepperVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY" | "SUCCESS" | "ERROR" | "WARNING">;
|
|
5
5
|
export declare type StepperVariantType = `${ValueOf<typeof StepperVariants>}`;
|
|
6
|
-
export declare const StepperSizes: Pick<typeof Sizes, "
|
|
6
|
+
export declare const StepperSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M">;
|
|
7
7
|
export declare type StepperSizesType = `${ValueOf<typeof StepperSizes>}`;
|
|
8
8
|
export declare const StepperClass: {
|
|
9
9
|
root: string;
|
|
@@ -3,7 +3,7 @@ import { Sizes } from '../../core/constants/sizes';
|
|
|
3
3
|
import { ValueOf } from '../../types/interfaces';
|
|
4
4
|
export declare const WizardVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY" | "SUCCESS" | "ERROR" | "WARNING">;
|
|
5
5
|
export declare type WizardVariantsType = `${ValueOf<typeof WizardVariants>}`;
|
|
6
|
-
export declare const WizardSizes: Pick<typeof Sizes, "
|
|
6
|
+
export declare const WizardSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M">;
|
|
7
7
|
export declare type WizardSizesType = `${ValueOf<typeof WizardSizes>}`;
|
|
8
8
|
export declare const WizzardClass: {
|
|
9
9
|
root: string;
|
|
@@ -20,6 +20,7 @@ import { FormControlSizesType } from "./components/gov-form/control/constants";
|
|
|
20
20
|
import { GovFormFileItem } from "./components/gov-form/file/gov-form-file.types";
|
|
21
21
|
import { FormGroupSizesType } from "./components/gov-form/group/constants";
|
|
22
22
|
import { FormInputSizesType, FormInputVariantType, InputType, Type } from "./components/gov-form/input/constants";
|
|
23
|
+
import { FormLabelSizesTypes } from "./components/gov-form/label/constants";
|
|
23
24
|
import { FormMessageVariantType } from "./components/gov-form/message/constants";
|
|
24
25
|
import { FormMultiselectSizesType, FormMultiselectVariantType } from "./components/gov-form/multiselect/constants";
|
|
25
26
|
import { GovFormMultiSelectItem } from "./components/gov-form/multiselect/interfaces";
|
|
@@ -100,6 +101,10 @@ export namespace Components {
|
|
|
100
101
|
* Item name of the accordion
|
|
101
102
|
*/
|
|
102
103
|
"label": string;
|
|
104
|
+
/**
|
|
105
|
+
* To remove the main underline of an item
|
|
106
|
+
*/
|
|
107
|
+
"noBorder": boolean;
|
|
103
108
|
/**
|
|
104
109
|
* Opening the accordion
|
|
105
110
|
*/
|
|
@@ -113,7 +118,7 @@ export namespace Components {
|
|
|
113
118
|
*/
|
|
114
119
|
"toggle": () => Promise<void>;
|
|
115
120
|
/**
|
|
116
|
-
* Used to change the
|
|
121
|
+
* Used to change the HTML tag in the accordion trigger for correct semantic structure
|
|
117
122
|
*/
|
|
118
123
|
"triggerTag": string;
|
|
119
124
|
/**
|
|
@@ -232,10 +237,6 @@ export namespace Components {
|
|
|
232
237
|
"wcagLabel": string;
|
|
233
238
|
}
|
|
234
239
|
interface GovBreadcrumbs {
|
|
235
|
-
/**
|
|
236
|
-
* Closing the Breadcrumbs
|
|
237
|
-
*/
|
|
238
|
-
"close": () => Promise<void>;
|
|
239
240
|
/**
|
|
240
241
|
* Defines wether the components can be collapsible when element doesn't fit in one row.
|
|
241
242
|
*/
|
|
@@ -244,14 +245,6 @@ export namespace Components {
|
|
|
244
245
|
* Defines whether the breadcrumbs are open or closed by default
|
|
245
246
|
*/
|
|
246
247
|
"isExpanded": boolean;
|
|
247
|
-
/**
|
|
248
|
-
* Opening the Breadcrumbs
|
|
249
|
-
*/
|
|
250
|
-
"open": () => Promise<void>;
|
|
251
|
-
/**
|
|
252
|
-
* Breadcrumbs switch
|
|
253
|
-
*/
|
|
254
|
-
"toggle": () => Promise<void>;
|
|
255
248
|
/**
|
|
256
249
|
* Validate the WCAG attributes of the component
|
|
257
250
|
*/
|
|
@@ -838,6 +831,10 @@ export namespace Components {
|
|
|
838
831
|
* Set whether the input is required or not.
|
|
839
832
|
*/
|
|
840
833
|
"required": boolean;
|
|
834
|
+
/**
|
|
835
|
+
* Label's size.
|
|
836
|
+
*/
|
|
837
|
+
"size"?: FormLabelSizesTypes;
|
|
841
838
|
}
|
|
842
839
|
interface GovFormMessage {
|
|
843
840
|
/**
|
|
@@ -2275,6 +2272,10 @@ declare namespace LocalJSX {
|
|
|
2275
2272
|
* Item name of the accordion
|
|
2276
2273
|
*/
|
|
2277
2274
|
"label"?: string;
|
|
2275
|
+
/**
|
|
2276
|
+
* To remove the main underline of an item
|
|
2277
|
+
*/
|
|
2278
|
+
"noBorder"?: boolean;
|
|
2278
2279
|
/**
|
|
2279
2280
|
* Called when the accordion state changes
|
|
2280
2281
|
*/
|
|
@@ -2284,7 +2285,7 @@ declare namespace LocalJSX {
|
|
|
2284
2285
|
*/
|
|
2285
2286
|
"size"?: AccordionSizeType;
|
|
2286
2287
|
/**
|
|
2287
|
-
* Used to change the
|
|
2288
|
+
* Used to change the HTML tag in the accordion trigger for correct semantic structure
|
|
2288
2289
|
*/
|
|
2289
2290
|
"triggerTag"?: string;
|
|
2290
2291
|
/**
|
|
@@ -3015,6 +3016,10 @@ declare namespace LocalJSX {
|
|
|
3015
3016
|
* Set whether the input is required or not.
|
|
3016
3017
|
*/
|
|
3017
3018
|
"required"?: boolean;
|
|
3019
|
+
/**
|
|
3020
|
+
* Label's size.
|
|
3021
|
+
*/
|
|
3022
|
+
"size"?: FormLabelSizesTypes;
|
|
3018
3023
|
}
|
|
3019
3024
|
interface GovFormMessage {
|
|
3020
3025
|
/**
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name" : "@gov-design-system-ce/components",
|
|
3
3
|
"description" : "This package includes Gov Design System Web Components and related utilities.",
|
|
4
4
|
"author": "Zdeněk Vítek",
|
|
5
|
-
"version" : "0.0.
|
|
5
|
+
"version" : "0.0.13",
|
|
6
6
|
"license" : "EUPL v1.2 Licensed",
|
|
7
7
|
"main" : "./dist/index.cjs.js",
|
|
8
8
|
"module" : "./dist/index.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"constants-736bf980.js","mappings":";;MAAa,cAAc,GAAG;EAC7B,IAAI,EAAE,gBAAgB;EACtB,KAAK,EAAE,uBAAuB;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/label/constants.ts"],"sourcesContent":["export const FormLabelClass = {\n\troot: 'gov-form-label',\n\tlabel: 'gov-form-label__label',\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"constants-e175be18.js","mappings":";;;;;;MAKa,cAAc,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAC;MAGhD,iBAAiB,GAAGD,UAAI,CAACE,iBAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAC;MAGtE,cAAc,GAAG;EAC7B,IAAI,EAAE,eAAe;EACrB;MAEY,kBAAkB,GAAG;EACjC,IAAI,EAAE,oBAAoB;EAC1B,MAAM,EAAE,4BAA4B;EACpC,KAAK,EAAE,2BAA2B;EAClC,IAAI,EAAE,0BAA0B;EAChC,MAAM,EAAE,4BAA4B;EACpC,KAAK,EAAE,2BAA2B;EAClC,KAAK,EAAE,2BAA2B;EAClC,IAAI,EAAE,0BAA0B;EAChC,KAAK,EAAE,2BAA2B;EAClC,OAAO,EAAE,6BAA6B;;;;;;;;","names":["pick","Sizes","Variants"],"sources":["../../../packages/core/src/components/gov-accordion/constants.ts"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const AccordionSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type AccordionSizeType = `${ValueOf<typeof AccordionSizes>}`\n\nexport const AccordionVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'CUSTOM'])\nexport type AccordionVariantType = `${ValueOf<typeof AccordionVariants>}`\n\nexport const AccordionClass = {\n\troot: 'gov-accordion',\n}\n\nexport const AccordionItemClass = {\n\troot: 'gov-accordion-item',\n\theader: 'gov-accordion-item__header',\n\tarrow: 'gov-accordion-item__arrow',\n\ticon: 'gov-accordion-item__icon',\n\tsuffix: 'gov-accordion-item__suffix',\n\ttitle: 'gov-accordion-item__title',\n\tlabel: 'gov-accordion-item__label',\n\tname: 'gov-accordion-item__name',\n\tannot: 'gov-accordion-item__annot',\n\tcontent: 'gov-accordion-item__content',\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"form-02872a5e.js","mappings":"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","names":["pick","Sizes","Variants","FormLabelClass","FormMultiSelectClass","FormAutocompleteClass","FormMessageClass"],"sources":["../../../packages/core/src/components/gov-form/checkbox/constants.ts","../../../packages/core/src/components/gov-form/control/constants.ts","../../../packages/core/src/components/gov-form/input/constants.ts","../../../packages/core/src/components/gov-form/select/constants.ts","../../../packages/core/src/components/gov-form/switch/constants.ts","../../../packages/core/src/components/gov-form/radio/constants.ts","../../../packages/core/src/helpers/Dom/form.ts"],"sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormCheckboxSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type FormCheckboxSizesType = `${ValueOf<typeof FormCheckboxSizes>}`\n\nexport const FormCheckboxClass = {\n\troot: 'gov-form-checkbox',\n\tcheck: 'gov-form-checkbox__check',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormControlSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormControlSizesType = `${ValueOf<typeof FormControlSizes>}`\n\nexport const FormControlClass = {\n\troot: 'gov-form-control',\n\tholder: 'gov-form-control__holder',\n\tbottom: 'gov-form-control__bottom',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormInputSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormInputSizesType = `${ValueOf<typeof FormInputSizes>}`\n\nexport const FormInputVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type FormInputVariantType = `${ValueOf<typeof FormInputVariants>}`\n\nexport enum InputTypes {\n\tCOLOR = 'color',\n\tDATE = 'date',\n\tDATETIME_LOCAL = 'datetime-local',\n\tEMAIL = 'email',\n\tMONTH = 'month',\n\tNUMBER = 'number',\n\tPASSWORD = 'password',\n\tSEARCH = 'search',\n\tTEL = 'tel',\n\tTEXT = 'text',\n\tTIME = 'time',\n\tURL = 'url',\n\tWEEK = 'week',\n}\n\nexport type InputType = `${ValueOf<typeof InputTypes>}`\n\nexport enum Type {\n\tRESET = 'reset',\n}\n\nexport type TypesType = `${ValueOf<typeof Type>}`\n\nexport const FormInputClass = {\n\troot: 'gov-form-input',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormSelectSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormSelectSizesType = `${ValueOf<typeof FormSelectSizes>}`\n\nexport const FormSelectVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type FormSelectVariantType = `${ValueOf<typeof FormSelectVariants>}`\n\nexport const FormSelectClass = {\n\troot: 'gov-form-select',\n\ticon: 'gov-form-select__icon',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { ValueOf } from '../../../types/interfaces'\nimport { pick } from '../../../utils/utils'\n\nexport const FormSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type FormSwitchSizesType = `${ValueOf<typeof FormSwitchSizes>}`\n\nexport const FormSwitchClass = {\n\troot: 'gov-form-switch',\n\tholder: 'gov-form-switch__holder',\n\tinput: 'gov-form-switch__input',\n\tindicator: 'gov-form-switch__indicator',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormRadioSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type FormRadioSizesType = `${ValueOf<typeof FormRadioSizes>}`\n\nexport const FormRadioClass = {\n\troot: 'gov-form-radio',\n\tholder: 'gov-form-radio__holder',\n\tinput: 'gov-form-radio__input',\n\tindicator: 'gov-form-radio__indicator',\n}\n","import { GovHost } from './template.types'\nimport { GovForm } from './form.types'\nimport { FormControlClass } from '../../components/gov-form/control/constants'\nimport { FormInputClass } from '../../components/gov-form/input/constants'\nimport { FormSelectClass } from '../../components/gov-form/select/constants'\nimport { FormMultiSelectClass } from '../../components/gov-form/multiselect/constants'\nimport { FormSwitchClass } from '../../components/gov-form/switch/constants'\nimport { FormCheckboxClass } from '../../components/gov-form/checkbox/constants'\nimport { FormRadioClass } from '../../components/gov-form/radio/constants'\nimport { FormMessageClass } from '../../components/gov-form/message/constants'\nimport { FormAutocompleteClass } from '../../components/gov-form/autocomplete/constants'\nimport { Nullable } from '../../types/interfaces'\nimport { FormLabelClass } from \"../../components/gov-form/label/constants\"\n\nexport const govForm = (govHost: GovHost): GovForm => {\n\treturn {\n\t\tget govHost(): GovHost {\n\t\t\treturn govHost\n\t\t},\n\t\tpassAttrToControl(name: string, value: string): void {\n\t\t\tif (this.control) {\n\t\t\t\tthis.control.setAttribute(name, value)\n\t\t\t}\n\t\t},\n\t\tpassAttrToLabel(name: string, value: string): void {\n\t\t\tif (this.label) {\n\t\t\t\tthis.label.setAttribute(name, value)\n\t\t\t}\n\t\t},\n\t\tget hasGroupChildren(): boolean {\n\t\t\tif (this.control) {\n\t\t\t\treturn this.control.querySelectorAll('gov-form-group > *').length > 1\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\tget control(): Nullable<HTMLGovFormControlElement> {\n\t\t\tif (this.govHost.name === FormControlClass.root) {\n\t\t\t\treturn this.govHost.hostElement\n\t\t\t}\n\t\t\treturn this.govHost.getParent(FormControlClass.root)\n\t\t},\n\t\tget label(): Nullable<HTMLGovFormLabelElement> {\n\t\t\tif (this.control) {\n\t\t\t\treturn this.control.querySelector(`.${FormLabelClass.root}`)\n\t\t\t}\n\t\t\treturn null\n\t\t},\n\t\tget mainElementsInControl(): Element[] {\n\t\t\tconst formElements = [\n\t\t\t\tFormSelectClass.root,\n\t\t\t\tFormInputClass.root,\n\t\t\t\tFormSwitchClass.root,\n\t\t\t\tFormCheckboxClass.root,\n\t\t\t\tFormRadioClass.root,\n\t\t\t\tFormMultiSelectClass.root,\n\t\t\t\tFormAutocompleteClass.root,\n\t\t\t]\n\t\t\tif (this.control) {\n\t\t\t\tconst elements = formElements.map(el => `${el}:first-of-type`).join(', ')\n\t\t\t\treturn Array.from(this.control.querySelectorAll(elements))\n\t\t\t}\n\t\t\treturn []\n\t\t},\n\t\tget messageElements(): HTMLGovFormMessageElement[] {\n\t\t\tif (this.control) {\n\t\t\t\treturn Array.from(this.control.querySelectorAll(FormMessageClass.root))\n\t\t\t}\n\t\t\treturn []\n\t\t},\n\t}\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tiles/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;EACzB,IAAI,EAAE,WAAW;CACjB,CAAA","sourcesContent":["export const TilesClass = {\n\troot: 'gov-tiles',\n}\n"]}
|