@gov-design-system-ce/components 4.1.3-BETA-3 → 4.1.3-BETA-5
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/core.cjs.js +1 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +2 -6
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-input_2.cjs.entry.js +1 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +2 -2
- package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
- package/dist/cjs/gov-layout.cjs.entry.js +1 -1
- package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
- package/dist/cjs/gov-link.cjs.entry.js +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js +1 -1
- package/dist/cjs/gov-message.cjs.entry.js +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gov-tag.cjs.entry.js +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js +1 -1
- package/dist/cjs/gov-toast.cjs.entry.js +1 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js +1 -10
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
- package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
- package/dist/collection/components/gov-layout/gov-layout.js +1 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
- package/dist/collection/components/gov-link/gov-link.js +1 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
- package/dist/collection/components/gov-message/gov-message.js +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
- package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
- package/dist/collection/components/gov-tile/gov-tile.js +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-dialog.js +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-lifecycle.js +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-link.js.map +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-tag.js.map +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.js +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-tooltip.js +1 -1
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/{p-70ae2d31.js → p-438d5e0f.js} +2 -2
- package/dist/components/{p-05b29e0c.js → p-495b793e.js} +2 -2
- package/dist/components/{p-0c64a41b.js → p-61453dbf.js} +2 -2
- package/dist/components/{p-900cd102.js → p-7007bd16.js} +2 -2
- package/dist/components/{p-1ab0210c.js → p-88b35bda.js} +2 -2
- package/dist/components/{p-a9d0f6f0.js → p-b642e485.js} +2 -2
- package/dist/components/{p-13da0f15.js → p-c024f757.js} +2 -2
- package/dist/components/p-df29e931.js +2 -0
- package/dist/components/p-df29e931.js.map +1 -0
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-1043fe0d.entry.js +2 -0
- package/dist/core/{p-2f5dec44.entry.js.map → p-1043fe0d.entry.js.map} +1 -1
- package/dist/core/p-1d5cc2b1.entry.js +2 -0
- package/dist/core/p-26726401.entry.js +2 -0
- package/dist/core/{p-2d24d852.entry.js → p-2800bec9.entry.js} +2 -2
- package/dist/core/p-2b62c4ee.entry.js +2 -0
- package/dist/core/p-2f693f59.entry.js +2 -0
- package/dist/core/p-402f36af.entry.js +2 -0
- package/dist/core/{p-a58f4e2b.entry.js → p-47d27845.entry.js} +2 -2
- package/dist/core/{p-0712a592.entry.js → p-4ea79bda.entry.js} +2 -2
- package/dist/core/p-54d924fc.entry.js +2 -0
- package/dist/core/{p-0381c812.entry.js.map → p-54d924fc.entry.js.map} +1 -1
- package/dist/core/{p-71ba57db.entry.js → p-75ff8ad0.entry.js} +2 -2
- package/dist/core/p-7f7c31e2.entry.js +2 -0
- package/dist/core/p-8f21a858.entry.js +2 -0
- package/dist/core/p-9ee41510.entry.js +2 -0
- package/dist/core/{p-dcbdcbdb.entry.js.map → p-9ee41510.entry.js.map} +1 -1
- package/dist/core/p-af2bc7cf.entry.js +2 -0
- package/dist/core/p-af2bc7cf.entry.js.map +1 -0
- package/dist/core/{p-d512059d.entry.js → p-b36f84d2.entry.js} +2 -2
- package/dist/core/p-b480cda1.entry.js +2 -0
- package/dist/core/{p-ec08db96.entry.js → p-bf0712e0.entry.js} +2 -2
- package/dist/core/{p-5ff7f0c4.entry.js → p-c723877b.entry.js} +2 -2
- package/dist/core/p-c742b08e.entry.js +2 -0
- package/dist/core/{p-a6f16905.entry.js → p-fe5030a6.entry.js} +2 -2
- package/dist/core/p-fe9ca9e6.entry.js +2 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/gov-flex_3.entry.js +2 -6
- package/dist/esm/gov-flex_3.entry.js.map +1 -1
- package/dist/esm/gov-form-input_2.entry.js +1 -1
- package/dist/esm/gov-infobar.entry.js +2 -2
- package/dist/esm/gov-layout-column.entry.js +1 -1
- package/dist/esm/gov-layout.entry.js +1 -1
- package/dist/esm/gov-lifecycle.entry.js +1 -1
- package/dist/esm/gov-link.entry.js +1 -1
- package/dist/esm/gov-loading.entry.js +1 -1
- package/dist/esm/gov-message.entry.js +1 -1
- package/dist/esm/gov-spacer.entry.js +1 -1
- package/dist/esm/gov-stepper-item.entry.js +1 -1
- package/dist/esm/gov-stepper.entry.js +1 -1
- package/dist/esm/gov-tabs-item.entry.js +1 -1
- package/dist/esm/gov-tabs.entry.js +1 -1
- package/dist/esm/gov-tag.entry.js +1 -1
- package/dist/esm/gov-tile.entry.js +1 -1
- package/dist/esm/gov-tiles.entry.js +1 -1
- package/dist/esm/gov-toast.entry.js +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +1 -1
- package/dist/esm/gov-tooltip.entry.js +2 -2
- package/dist/esm/gov-wizard-item.entry.js +2 -2
- package/dist/esm/gov-wizard.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/hydrate/index.js +27 -32
- package/dist/hydrate/index.mjs +27 -32
- package/dist/types/components/gov-icon/gov-icon.d.ts +0 -1
- package/package.json +1 -1
- package/dist/components/p-4ab0b3f8.js +0 -2
- package/dist/components/p-4ab0b3f8.js.map +0 -1
- package/dist/core/p-0381c812.entry.js +0 -2
- package/dist/core/p-0932c74d.entry.js +0 -2
- package/dist/core/p-2cb8ed64.entry.js +0 -2
- package/dist/core/p-2f5dec44.entry.js +0 -2
- package/dist/core/p-5b8c391e.entry.js +0 -2
- package/dist/core/p-606e573e.entry.js +0 -2
- package/dist/core/p-72c4ebcd.entry.js +0 -2
- package/dist/core/p-7d8f3ac7.entry.js +0 -2
- package/dist/core/p-8190b4b4.entry.js +0 -2
- package/dist/core/p-8190b4b4.entry.js.map +0 -1
- package/dist/core/p-9256cf6c.entry.js +0 -2
- package/dist/core/p-a549da72.entry.js +0 -2
- package/dist/core/p-dcbdcbdb.entry.js +0 -2
- package/dist/core/p-f4a4d282.entry.js +0 -2
- package/dist/core/p-f6863a64.entry.js +0 -2
- /package/dist/components/{p-70ae2d31.js.map → p-438d5e0f.js.map} +0 -0
- /package/dist/components/{p-05b29e0c.js.map → p-495b793e.js.map} +0 -0
- /package/dist/components/{p-0c64a41b.js.map → p-61453dbf.js.map} +0 -0
- /package/dist/components/{p-900cd102.js.map → p-7007bd16.js.map} +0 -0
- /package/dist/components/{p-1ab0210c.js.map → p-88b35bda.js.map} +0 -0
- /package/dist/components/{p-a9d0f6f0.js.map → p-b642e485.js.map} +0 -0
- /package/dist/components/{p-13da0f15.js.map → p-c024f757.js.map} +0 -0
- /package/dist/core/{p-5b8c391e.entry.js.map → p-1d5cc2b1.entry.js.map} +0 -0
- /package/dist/core/{p-7d8f3ac7.entry.js.map → p-26726401.entry.js.map} +0 -0
- /package/dist/core/{p-2d24d852.entry.js.map → p-2800bec9.entry.js.map} +0 -0
- /package/dist/core/{p-f6863a64.entry.js.map → p-2b62c4ee.entry.js.map} +0 -0
- /package/dist/core/{p-2cb8ed64.entry.js.map → p-2f693f59.entry.js.map} +0 -0
- /package/dist/core/{p-a549da72.entry.js.map → p-402f36af.entry.js.map} +0 -0
- /package/dist/core/{p-a58f4e2b.entry.js.map → p-47d27845.entry.js.map} +0 -0
- /package/dist/core/{p-0712a592.entry.js.map → p-4ea79bda.entry.js.map} +0 -0
- /package/dist/core/{p-71ba57db.entry.js.map → p-75ff8ad0.entry.js.map} +0 -0
- /package/dist/core/{p-f4a4d282.entry.js.map → p-7f7c31e2.entry.js.map} +0 -0
- /package/dist/core/{p-9256cf6c.entry.js.map → p-8f21a858.entry.js.map} +0 -0
- /package/dist/core/{p-d512059d.entry.js.map → p-b36f84d2.entry.js.map} +0 -0
- /package/dist/core/{p-0932c74d.entry.js.map → p-b480cda1.entry.js.map} +0 -0
- /package/dist/core/{p-ec08db96.entry.js.map → p-bf0712e0.entry.js.map} +0 -0
- /package/dist/core/{p-5ff7f0c4.entry.js.map → p-c723877b.entry.js.map} +0 -0
- /package/dist/core/{p-606e573e.entry.js.map → p-c742b08e.entry.js.map} +0 -0
- /package/dist/core/{p-a6f16905.entry.js.map → p-fe5030a6.entry.js.map} +0 -0
- /package/dist/core/{p-72c4ebcd.entry.js.map → p-fe9ca9e6.entry.js.map} +0 -0
package/dist/hydrate/index.mjs
CHANGED
|
@@ -6050,15 +6050,11 @@ class GovIcon {
|
|
|
6050
6050
|
this.color = undefined;
|
|
6051
6051
|
this.name = null;
|
|
6052
6052
|
this.type = "components";
|
|
6053
|
-
this.error = false;
|
|
6054
6053
|
console.log('GovIcon constructor');
|
|
6055
6054
|
this.h = govHost(this.host);
|
|
6056
6055
|
}
|
|
6057
6056
|
render() {
|
|
6058
|
-
|
|
6059
|
-
return null;
|
|
6060
|
-
}
|
|
6061
|
-
return (hAsync(Host, { class: this.h.classes(IconClass.root), size: this.size, color: this.color }, "Icc"));
|
|
6057
|
+
return (hAsync(Host, { key: 'd67f8522556dd6bc146746686df41951a74944a4', class: this.h.classes(IconClass.root), size: this.size, color: this.color }, "Icc"));
|
|
6062
6058
|
}
|
|
6063
6059
|
get host() { return getElement(this); }
|
|
6064
6060
|
static get cmpMeta() { return {
|
|
@@ -6068,8 +6064,7 @@ class GovIcon {
|
|
|
6068
6064
|
"size": [513],
|
|
6069
6065
|
"color": [513],
|
|
6070
6066
|
"name": [513],
|
|
6071
|
-
"type": [513]
|
|
6072
|
-
"error": [32]
|
|
6067
|
+
"type": [513]
|
|
6073
6068
|
},
|
|
6074
6069
|
"$listeners$": undefined,
|
|
6075
6070
|
"$lazyBundleId$": "-",
|
|
@@ -6126,8 +6121,8 @@ class GovInfobar {
|
|
|
6126
6121
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
6127
6122
|
}
|
|
6128
6123
|
render() {
|
|
6129
|
-
const closeButton = (hAsync("gov-button", { key: '
|
|
6130
|
-
return (hAsync(Host, { key: '
|
|
6124
|
+
const closeButton = (hAsync("gov-button", { key: '03f7921b0eef199be48f021a23f431cfb116d001', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, hAsync("gov-icon", { key: '5b8385ff70a5ae33032451d56e1d1a2e4938656e', name: "x-lg", type: "components" })));
|
|
6125
|
+
return (hAsync(Host, { key: 'cb9dbd10b36253597b3190b5ec6558761cf32ffb', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, hAsync("section", Object.assign({ key: '301e4d6b31069183e7a84015bebe0ca9ffc0c667', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), hAsync("slot", { key: 'a0cb4376440cc034c501dcb41f0f8912e6331a0a', name: "icon" }), hAsync("div", { key: '99f1c4dbf739de828c10277e83a3c94e9aaf68bd', class: InfobarClass.content }, this.h.hasSlot('headline') ? (hAsync(Fragment, null, hAsync("div", { class: InfobarClass.headline }, hAsync("slot", { name: "headline" }), hAsync("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, hAsync("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), hAsync("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, hAsync("slot", null)))) : (hAsync("slot", null))), this.closable && closeButton)));
|
|
6131
6126
|
}
|
|
6132
6127
|
onCloseHandler(e) {
|
|
6133
6128
|
this.govClose.emit({
|
|
@@ -6196,7 +6191,7 @@ class GovLayout {
|
|
|
6196
6191
|
return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
|
|
6197
6192
|
}
|
|
6198
6193
|
render() {
|
|
6199
|
-
return (hAsync(Host, { key: '
|
|
6194
|
+
return (hAsync(Host, { key: '0797feef52b833ead99b61d5aa78c0dbc4f5b5b7', type: this.type, class: this.h.classes(LayoutClass.root) }, hAsync("section", { key: 'aab90b8796879b296ae09f3a7975e8931adacea8', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, hAsync("slot", { key: 'ac79827788dfac2c3e2cfb57671a4b9422d31d7b' }))));
|
|
6200
6195
|
}
|
|
6201
6196
|
get host() { return getElement(this); }
|
|
6202
6197
|
static get cmpMeta() { return {
|
|
@@ -6219,7 +6214,7 @@ class GovLayoutColumn {
|
|
|
6219
6214
|
this.h = govHost(this.host);
|
|
6220
6215
|
}
|
|
6221
6216
|
render() {
|
|
6222
|
-
return (hAsync(Host, { key: '
|
|
6217
|
+
return (hAsync(Host, { key: '6d327408b450774b24d976e4450378d3cb41fc99', class: this.h.classes(LayoutColumnClass.root) }, hAsync("slot", { key: '8c73b3c0a3c5e1e4a79205bc7631ae8579f38643' })));
|
|
6223
6218
|
}
|
|
6224
6219
|
get host() { return getElement(this); }
|
|
6225
6220
|
static get cmpMeta() { return {
|
|
@@ -6265,7 +6260,7 @@ class GovLifecycle {
|
|
|
6265
6260
|
console.log('componentDidUpdate', this.uniqueId);
|
|
6266
6261
|
}
|
|
6267
6262
|
render() {
|
|
6268
|
-
return (hAsync(Host, { key: '
|
|
6263
|
+
return (hAsync(Host, { key: '914b3fa860f16bb35d1219f9d758cc7c0c51ca1a', identifier: this.uniqueId }, hAsync("span", { key: 'ccd8f0d9c97e53e958d0db4452d12c66fc33dd7a' }, "lifecycle ", this.uniqueId)));
|
|
6269
6264
|
}
|
|
6270
6265
|
static get cmpMeta() { return {
|
|
6271
6266
|
"$flags$": 0,
|
|
@@ -6304,7 +6299,7 @@ class GovLink {
|
|
|
6304
6299
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
6305
6300
|
}
|
|
6306
6301
|
render() {
|
|
6307
|
-
return (hAsync(Host, { key: '
|
|
6302
|
+
return (hAsync(Host, { key: '3555b4e5b485f3928dba84bf929d3d22d0e5d4ae', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, hAsync("a", Object.assign({ key: '4844af47b5a20f84b7ea81812eede0d0361208e8', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), hAsync("slot", { key: '4a77215c37a5807be36a996ab250b52b4eaac64c', name: "icon-start" }), hAsync("slot", { key: '1f10e44babae3c7cfb702ca61b8f9c5dc0cbe999' }), this.external ? hAsync("gov-icon", { name: "box-arrow-up-right", type: "components" }) : hAsync("slot", { name: "icon-end" }))));
|
|
6308
6303
|
}
|
|
6309
6304
|
get host() { return getElement(this); }
|
|
6310
6305
|
static get watchers() { return {
|
|
@@ -6346,7 +6341,7 @@ class GovLoading {
|
|
|
6346
6341
|
this.validateSize(this.size);
|
|
6347
6342
|
}
|
|
6348
6343
|
render() {
|
|
6349
|
-
return (hAsync(Host, { key: '
|
|
6344
|
+
return (hAsync(Host, { key: 'c898509b3ef6060aaf7fe430738f8b40ae37810f', class: this.h.classes(LoadingClass.root), size: this.size }, hAsync("div", { key: '2dcb83c719ba81284fe78c1c30a12c4630571712', class: LoadingClass.content }, hAsync("gov-icon", { key: '9e499b414ceb2b601b5f7f093f403e4317fbebec', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), hAsync("slot", { key: '638d2b827845d5ca7b6ac9dc4ebb27e790dc710e' })), hAsync("gov-backdrop", { key: '1124baa1e77cf732888acdd3938d5b3661514b6d', inverse: true })));
|
|
6350
6345
|
}
|
|
6351
6346
|
get host() { return getElement(this); }
|
|
6352
6347
|
static get watchers() { return {
|
|
@@ -6386,7 +6381,7 @@ class GovMessage {
|
|
|
6386
6381
|
validateProp(Colors, newValue, MessageClass.root);
|
|
6387
6382
|
}
|
|
6388
6383
|
render() {
|
|
6389
|
-
return (hAsync(Host, { key: '
|
|
6384
|
+
return (hAsync(Host, { key: '21d5bfd1df1e7e4f4a9997d3ac530c5782f8781a', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (hAsync("slot", { key: 'a05f13714529add991bd5a3c54e3ba28c00568b3', name: "icon" })), hAsync("div", { key: '9955a18a98e405947bc50fb233c9506038336300', class: MessageClass.content }, hAsync("slot", { key: '9c95c386a0747b36115cfd60d6719b7f738006de' }))));
|
|
6390
6385
|
}
|
|
6391
6386
|
get host() { return getElement(this); }
|
|
6392
6387
|
static get watchers() { return {
|
|
@@ -6710,7 +6705,7 @@ class GovSkeleton {
|
|
|
6710
6705
|
return Object.assign({}, dimenssionsStyles);
|
|
6711
6706
|
}
|
|
6712
6707
|
render() {
|
|
6713
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
6708
|
+
return (hAsync(Host, Object.assign({ key: '881e753455535f18553d6ff8abfc3e2fab0f158e', size: this.size, color: this.color, class: {
|
|
6714
6709
|
[SkeletonClass.root]: true,
|
|
6715
6710
|
circle: this.shape === "circle",
|
|
6716
6711
|
line: this.shape === "line",
|
|
@@ -6773,7 +6768,7 @@ class GovSpacer {
|
|
|
6773
6768
|
this.validateBreakpoint(this.breakpoint);
|
|
6774
6769
|
}
|
|
6775
6770
|
render() {
|
|
6776
|
-
return hAsync(Host, { key: '
|
|
6771
|
+
return hAsync(Host, { key: 'e42a12db071b1b5224b47f3655fb58e20ee8c611', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
|
|
6777
6772
|
}
|
|
6778
6773
|
get host() { return getElement(this); }
|
|
6779
6774
|
static get watchers() { return {
|
|
@@ -6835,7 +6830,7 @@ class GovStepper {
|
|
|
6835
6830
|
this.hydrated = true;
|
|
6836
6831
|
}
|
|
6837
6832
|
render() {
|
|
6838
|
-
return (hAsync(Host, { key: '
|
|
6833
|
+
return (hAsync(Host, { key: '7f4c6fb4087d7a5dbe61a45d6b2818d4242c6340', class: this.h.classes(StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: 'dc925a52989ea99d546d492762e3c902e2b8072e' })));
|
|
6839
6834
|
}
|
|
6840
6835
|
get host() { return getElement(this); }
|
|
6841
6836
|
static get watchers() { return {
|
|
@@ -6877,7 +6872,7 @@ class GovStepperItem {
|
|
|
6877
6872
|
render() {
|
|
6878
6873
|
const triggerId = this.identifier || this.triggerId;
|
|
6879
6874
|
const contentId = this.contentId;
|
|
6880
|
-
return (hAsync(Host, { key: '
|
|
6875
|
+
return (hAsync(Host, { key: 'fc00ba7e0c3be93e6a169bdb03e1e5c6c5853572', id: triggerId, class: this.h.classes(StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, this.h.hasSlot('prefix') && (hAsync("span", { key: '8a6bc5466c813daed63d9bbe79cdff140c6efe0d', class: StepperItemClass.prefix }, hAsync("slot", { key: '91113b50c14f4483bb5e105d3f9edeededf4e012', name: "prefix" }))), hAsync("div", { key: '3fb2989980a0ae0e5dea17acf6cebfff7cdd3e9a' }, hAsync("span", { key: '62ab2a21f486c91574fdc727a11a7f799ee502ab', class: StepperItemClass.headline }, hAsync("slot", { key: '78ac018eb5041a6c41f929b6d94dbd9dcb87ee66', name: "headline" })), hAsync("slot", { key: '9d45b3bc137a55f6e54f453c82bde7ce39840cd0', name: "annotation" }), this.h.hasSlot('content') && (hAsync("div", { key: 'b845c4314ceac232f624906c71648e2e10fe7b98', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, hAsync("slot", { key: '3571a4cb451f1d64497b31ebd3db6618ba76bdc6', name: "content" }))))));
|
|
6881
6876
|
}
|
|
6882
6877
|
get host() { return getElement(this); }
|
|
6883
6878
|
static get watchers() { return {
|
|
@@ -7028,7 +7023,7 @@ class GovTabs {
|
|
|
7028
7023
|
});
|
|
7029
7024
|
}
|
|
7030
7025
|
render() {
|
|
7031
|
-
return (hAsync(Host, { key: '
|
|
7026
|
+
return (hAsync(Host, { key: '1fffeff827b0d4944bf701c3a838eebd9666abcb', class: this.h.classes(TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, hAsync("div", Object.assign({ key: '3be472d6bc3d111de4b73f1c6e6a89d5d7e92110', class: TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), hAsync("ul", { key: 'cc7108c86e22104094ef8eb6d1430a0a0abe11db', class: TabsClass.list }, this.controllers.map(control => (hAsync("li", { class: TabsClass.item }, this.type == "text" ? (hAsync("button", { class: TabsClass.btn, id: control.triggerIdentifier, role: "tab", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": toBoolAttr(control.disabled), "aria-selected": toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (hAsync("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (hAsync("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (hAsync("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (hAsync("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (hAsync("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), hAsync("slot", { key: '6e8295947f0555d54060a29fd8f5b7c607be4c20' })));
|
|
7032
7027
|
}
|
|
7033
7028
|
getCurrentTab() {
|
|
7034
7029
|
return this.controllers.find(control => control.active) || null;
|
|
@@ -7161,7 +7156,7 @@ class GovTabsItem {
|
|
|
7161
7156
|
}
|
|
7162
7157
|
}
|
|
7163
7158
|
render() {
|
|
7164
|
-
return (hAsync(Host, { key: '
|
|
7159
|
+
return (hAsync(Host, { key: '20bb9dd4a6cf12190de8518c7cadc794c82c896b', class: this.h.classes(TabsItemClass.root), default: this.default }, hAsync("div", { key: 'fd9a14dc61b5297ecd9392cb605f89d459723c27', class: TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": toBoolAttrIfDefined(!this.isActive) }, hAsync("slot", { key: '2be087e8c8641b14bf4a3e34784ca1f182b34850' }))));
|
|
7165
7160
|
}
|
|
7166
7161
|
/**
|
|
7167
7162
|
* Returns a unique tab content identifier
|
|
@@ -7249,7 +7244,7 @@ class GovTag {
|
|
|
7249
7244
|
render() {
|
|
7250
7245
|
const iconStart = prepareIconFormat(this.iconStart);
|
|
7251
7246
|
const iconEnd = prepareIconFormat(this.iconEnd);
|
|
7252
|
-
return (hAsync(Host, { key: '
|
|
7247
|
+
return (hAsync(Host, { key: '6e4203592cd24134cb9e1a187dbecd6cc70d20bb', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, hAsync("span", { key: 'a58f1a4fd78d57f8e4a89d1c325ea0f24347ccaf', class: "element" }, hAsync("slot", { key: 'bc52f9aa456b154b67b97903babe69c8b7731f50', name: "icon-start" }, iconStart && hAsync("gov-icon", { key: 'ed492a9c4746766d8ac7bf810da994147d189133', type: iconStart.type, name: iconStart.name })), hAsync("slot", { key: '52e2c10f8048aa0168dc7daf44392f19dd118e43' }), hAsync("slot", { key: 'ccbd781c7a0e8fd2e02725cebc5df48e8e84b6ea', name: "icon-end" }, iconEnd && hAsync("gov-icon", { key: 'cce60e6a25e14d42281111979b7689d03ea264e1', type: iconEnd.type, name: iconEnd.name })))));
|
|
7253
7248
|
}
|
|
7254
7249
|
get host() { return getElement(this); }
|
|
7255
7250
|
static get watchers() { return {
|
|
@@ -7378,7 +7373,7 @@ class GovThemeSwitch {
|
|
|
7378
7373
|
if (this.theme === ThemeList.auto) {
|
|
7379
7374
|
isDark = this.isSystemPrefersColorDark;
|
|
7380
7375
|
}
|
|
7381
|
-
return (hAsync(Host, { key: '
|
|
7376
|
+
return (hAsync(Host, { key: '51cbe413c4cd97f82ae8e34376cad4cb59c3a41d', class: this.h.classes(ThemeSwitchClass.root), theme: isDark ? ThemeList.dark : ThemeList.light, size: this.size }, hAsync("button", { key: '8f7dbeec9ff6617c4953c4a0582b374baf7ba8c3', onClick: () => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark), "aria-current": this.theme, "aria-label": isDark ? this.ariaLabelDark : this.ariaLabelLight }, hAsync("span", { key: '64f9a96872b50f33483721541178e0d4c553d834' }, hAsync("span", { key: 'f363538d18d9a4419f1ef15b1172c941277372a3', class: ThemeSwitchClass.indicator }, ThemeList.light && hAsync("gov-icon", { key: '762947b5442313672e7ace3ed59523404f548b5b', name: "sun", class: ThemeSwitchClass.iconLight, type: "components" }), ThemeList.dark && hAsync("gov-icon", { key: '371ace4006ae511225583323682b08c8bc154f61', name: "moon", class: ThemeSwitchClass.iconDark, type: "components" })), this.displayLabel && (isDark ? this.labelDark : this.labelLight)))));
|
|
7382
7377
|
}
|
|
7383
7378
|
get host() { return getElement(this); }
|
|
7384
7379
|
static get watchers() { return {
|
|
@@ -7425,7 +7420,7 @@ class GovTile {
|
|
|
7425
7420
|
this.h = govHost(this.host);
|
|
7426
7421
|
}
|
|
7427
7422
|
render() {
|
|
7428
|
-
return (hAsync(Host, { key: '
|
|
7423
|
+
return (hAsync(Host, { key: '84c41fa8adec27a169b9af69b9d7542bd86dcf36', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, hAsync("slot", { key: '7176b3b1da20e5ba92c87c32b48f850e141558f9', name: "icon" }), hAsync("div", { key: '614de838391b6e65368cdb58b5db81af5a344d21', class: TileClass.content }, hAsync("div", { key: 'f952461981e6a5f20172a6d0ad9d041a5f9d8171', class: TileClass.text }, hAsync("div", { key: 'fb411a7f50a8a0ecb6015a69fccb8b0832c5aed4', class: TileClass.title }, this.href ? (hAsync(Fragment$1, null, hAsync("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, hAsync("slot", { name: "title" })), hAsync("span", { class: TileClass.icon }, hAsync("gov-icon", { name: "chevron-right", type: "components" })))) : (hAsync("slot", { name: "title" }))), hAsync("div", { key: '555c1aff4029a9b62f8e53391da8e289d373e100', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, hAsync("slot", { key: 'e9310d039ca17a2a45dc9ef6a04c107dc6cf1bcd' }))), hAsync("slot", { key: 'e8c792e1682c30d5dcaf33798908ec06da7a8d1a', name: "button" }))));
|
|
7429
7424
|
}
|
|
7430
7425
|
/**
|
|
7431
7426
|
* Returns a clickable element instance
|
|
@@ -7462,7 +7457,7 @@ class GovTiles {
|
|
|
7462
7457
|
this.h = govHost(this.host);
|
|
7463
7458
|
}
|
|
7464
7459
|
render() {
|
|
7465
|
-
return (hAsync(Host, { key: '
|
|
7460
|
+
return (hAsync(Host, { key: 'ecc964ac553f792318284779a8823eea7ae731f9', class: this.h.classes(TilesClass.root) }, hAsync("slot", { key: '609deafe9ff8cb61d5aa30b51b26e539cb5d3934' })));
|
|
7466
7461
|
}
|
|
7467
7462
|
get host() { return getElement(this); }
|
|
7468
7463
|
static get cmpMeta() { return {
|
|
@@ -7541,7 +7536,7 @@ class GovToast {
|
|
|
7541
7536
|
}
|
|
7542
7537
|
}
|
|
7543
7538
|
render() {
|
|
7544
|
-
return (hAsync(Host, { key: '
|
|
7539
|
+
return (hAsync(Host, { key: '9d2e214ed4c883f0ac90eb6d580ed95cb55e42cd', class: this.h.classes(ToastClass.root), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, color: this.color, type: this.type, style: { "--toast-duration": this.time + "ms" } }, this.h.hasSlot("icon") && (hAsync("span", { key: '54292ad196806932ab9ae44bfc33187f4154e616', class: ToastClass.icon }, hAsync("slot", { key: '9545c651a46a7bb55990e9327e8fbe4fe126954f', name: "icon" }))), hAsync("div", Object.assign({ key: 'daed3fcbd83eec05979a9e00e2f983d5c6b1b538', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), hAsync("slot", { key: 'd3f78c0d713d56ef32b0dece9553e258f0ef4ef4' })), hAsync("gov-button", { key: 'dad799261c83b387c0590fd0ad13bdad584ee6b4', size: "s", "aria-label": this.accessibleCloseLabel, color: this.isBold ? this.color : "neutral", type: "base", "on-gov-click": this.onCloseHandler.bind(this), class: ToastClass.close }, this.closeLabel ? this.closeLabel : hAsync("gov-icon", { name: "x-lg", type: "components" })), hAsync("div", { key: 'e13b568ada5e34f00c405d359665cd9d0af5ff89', class: ToastClass.timer })));
|
|
7545
7540
|
}
|
|
7546
7541
|
onCloseHandler() {
|
|
7547
7542
|
this.govClose.emit(this.toastId);
|
|
@@ -7798,11 +7793,11 @@ class GovTooltip {
|
|
|
7798
7793
|
}
|
|
7799
7794
|
render() {
|
|
7800
7795
|
var _a;
|
|
7801
|
-
return (hAsync(Host, { key: '
|
|
7796
|
+
return (hAsync(Host, { key: '37b75e6feac97800345d4e93f7be840172712dd2', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, hAsync("span", { key: '0982a167f159aca0d39edc784ef50f13409fa29c', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
|
|
7802
7797
|
if (this.persist === false) {
|
|
7803
7798
|
this.hideTooltip();
|
|
7804
7799
|
}
|
|
7805
|
-
}, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, hAsync("slot", { key: '
|
|
7800
|
+
}, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, hAsync("slot", { key: '1b6f7bd6a704ac56941e464d401eebf9da4eafaf' }))));
|
|
7806
7801
|
}
|
|
7807
7802
|
/**
|
|
7808
7803
|
* Showing the modal
|
|
@@ -7873,7 +7868,7 @@ class GovTooltipContent {
|
|
|
7873
7868
|
}
|
|
7874
7869
|
}
|
|
7875
7870
|
render() {
|
|
7876
|
-
return (hAsync(Host, { key: '
|
|
7871
|
+
return (hAsync(Host, { key: 'c47f590b5f8dffb0c0f1caa17978075fb64c3603', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, hAsync("slot", { key: '276690a83ede038b09f5e439495693b7215e4af7' }), this.persist ? (hAsync("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, hAsync("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
|
|
7877
7872
|
}
|
|
7878
7873
|
get host() { return getElement(this); }
|
|
7879
7874
|
static get watchers() { return {
|
|
@@ -7947,7 +7942,7 @@ class GovWizard {
|
|
|
7947
7942
|
this.hydrated = true;
|
|
7948
7943
|
}
|
|
7949
7944
|
render() {
|
|
7950
|
-
return (hAsync(Host, { key: '
|
|
7945
|
+
return (hAsync(Host, { key: 'fb6b400947dc4c7feddd5b83b3c167d611af0370', class: this.h.classes(WizardClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: 'df2cb17a4c48813843ed5b3174a27b07e04b85b4' })));
|
|
7951
7946
|
}
|
|
7952
7947
|
/**
|
|
7953
7948
|
* Validate the WCAG attributes of the component
|
|
@@ -8009,8 +8004,8 @@ class GovWizardItem {
|
|
|
8009
8004
|
render() {
|
|
8010
8005
|
const triggerId = this.identifier || this.triggerId;
|
|
8011
8006
|
const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
|
|
8012
|
-
const prefixSlot = this.h.hasSlot("prefix") && (hAsync("span", { key: '
|
|
8013
|
-
return (hAsync(Host, { key: '
|
|
8007
|
+
const prefixSlot = this.h.hasSlot("prefix") && (hAsync("span", { key: '82b6be7faa5fdf29249eec96683ca3914a060dd7', class: WizardItemClass.prefix }, hAsync("slot", { key: '4aa4139f7ae8fa022c6f93b3f6fe508ee30e881e', name: "prefix" })));
|
|
8008
|
+
return (hAsync(Host, { key: '70570aa0326bc056bdcada429a04f87b2e106051', class: this.h.classes(WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, hAsync("div", { key: 'ef0e103ec1535e155c12df999f5b64747c1167c2', class: WizardItemClass.header }, prefixSlot, this.collapsible ? (hAsync(Tag, { id: triggerId, class: this.h.classes(WizardItemClass.label), "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
|
|
8014
8009
|
e.preventDefault();
|
|
8015
8010
|
e.stopPropagation();
|
|
8016
8011
|
this.toggle();
|
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": "4.1.3-BETA-
|
|
5
|
+
"version": "4.1.3-BETA-5",
|
|
6
6
|
"license": "EUPL v1.2 Licensed",
|
|
7
7
|
"main": "./dist/index.cjs.js",
|
|
8
8
|
"unpkg": "./dist/core/core.esm.js",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as o,H as s,h as t,d as e}from"./p-42200001.js";import{p as n}from"./p-e0e2e9c1.js";import{C as r}from"./p-5aad3497.js";import{S as c}from"./p-92f420cb.js";import{g as i}from"./p-ea7fdd2e.js";n(c,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);n(r,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var a;(function(o){o["BASIC"]="basic";o["COMPLEX"]="complex";o["COLORED"]="colored"})(a||(a={}));const l={root:"gov-icon",holder:"gov-icon__holder"};console.log("GovIcon loaded");const m=o(class o extends s{constructor(){super();this.__registerHost();this.size=undefined;this.color=undefined;this.name=null;this.type="components";this.error=false;console.log("GovIcon constructor");this.h=i(this.host)}render(){if(this.error){return null}return t(e,{class:this.h.classes(l.root),size:this.size,color:this.color},"Icc")}get host(){return this}},[0,"gov-icon",{size:[513],color:[513],name:[513],type:[513],error:[32]}]);function d(){if(typeof customElements==="undefined"){return}const o=["gov-icon"];o.forEach((o=>{switch(o){case"gov-icon":if(!customElements.get(o)){customElements.define(o,m)}break}}))}d();export{m as G,d};
|
|
2
|
-
//# sourceMappingURL=p-4ab0b3f8.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pick","Sizes","Colors","Types","IconClass","root","holder","console","log","GovIcon","proxyCustomElement","H","constructor","this","h","govHost","host","render","error","Host","class","classes","size","color"],"sources":["../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/components/gov-icon/gov-icon.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils';\nimport { Colors } from '../../core/constants/colors';\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\n\nexport const IconColors = pick(Colors, [\n\t'DEFAULT',\n\t'PRIMARY',\n\t'SECONDARY',\n\t'NEUTRAL',\n\t'ERROR',\n\t'SUCCESS',\n\t'WARNING',\n\t'DISABLED',\n\t'WHITE',\n\t'BLACK',\n])\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import {Component, Element, h, Host, Prop, State} from \"@stencil/core\"\nimport {IconClass, type IconColorType, IconSizesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\n\nconsole.log('GovIcon loaded');\n\n@Component({\n tag: \"gov-icon\",\n})\nexport class GovIcon {\n private h: GovHost\n\n constructor() {\n console.log('GovIcon constructor');\n this.h = govHost(this.host)\n }\n\n @Element() host: HTMLGovIconElement\n /**\n * Icon size\n */\n @Prop({reflect: true}) readonly size?: IconSizesType\n /**\n * Icon color\n */\n @Prop({reflect: true}) readonly color?: IconColorType\n /**\n * Name of icon in folder\n */\n @Prop({reflect: true}) name: string = null\n /**\n * Type (folder) of icon\n */\n @Prop({reflect: true}) type = \"components\"\n\n @State() private error = false\n\n\n render() {\n if (this.error) {\n return null\n }\n return (\n <Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}>\n Icc\n </Host>\n )\n }\n}\n"],"mappings":"yMAKyBA,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,MAAO,OAAQ,OAAQ,OAAQ,SAGpED,EAAKE,EAAQ,CACtC,UACA,UACA,YACA,UACA,QACA,UACA,UACA,WACA,QACA,UAID,IAAKC,GAAL,SAAKA,GACJA,EAAA,iBACAA,EAAA,qBACAA,EAAA,oBACA,EAJD,CAAKA,MAAK,KAOH,MAAMC,EAAY,CACxBC,KAAM,WACNC,OAAQ,oBC1BTC,QAAQC,IAAI,kB,MAKCC,EAAOC,EAAA,MAAAD,UAAAE,EAGhB,WAAAC,G,iFAiBsC,K,UAIR,a,WAEL,MAtBrBL,QAAQC,IAAI,uBACZK,KAAKC,EAAIC,EAAQF,KAAKG,K,CAwB1B,MAAAC,GACI,GAAIJ,KAAKK,MAAO,CACZ,OAAO,I,CAEX,OACIJ,EAACK,EAAI,CAACC,MAAOP,KAAKC,EAAEO,QAAQjB,EAAUC,MAAOiB,KAAMT,KAAKS,KAAMC,MAAOV,KAAKU,OAAK,M","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,h as s,a as t,g as a}from"./p-9dea2efa.js";import{v as o}from"./p-d8135701.js";import{C as c}from"./p-5aad3497.js";import{p as r}from"./p-e0e2e9c1.js";import{g as f}from"./p-ea7fdd2e.js";import"./p-ceafa242.js";r(c,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var i;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(i||(i={}));const d={root:"gov-message",content:"gov-message__content"};const n=class{constructor(s){e(this,s);this.color=c.PRIMARY;this.type="subtle";this.h=f(this.host)}validateColor(e){o(c,e,d.root)}render(){return s(t,{key:"b9e06c8f94940edf9d2c60119c35ec32baa23fc9",class:this.h.classes(d.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&s("slot",{key:"d478f414de8eaa276cc867ae5bb325c1090b08ac",name:"icon"}),s("div",{key:"d5a113ca4061b445c583fb1b4f22fff594570b1e",class:d.content},s("slot",{key:"e9be2f4ff3603c5f77d46e042455174e6ccfb7be"})))}get host(){return a(this)}static get watchers(){return{color:["validateColor"]}}};export{n as gov_message};
|
|
2
|
-
//# sourceMappingURL=p-0381c812.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,F as s,a as i,g as a}from"./p-9dea2efa.js";import{p as o}from"./p-e0e2e9c1.js";import{S as n}from"./p-92f420cb.js";import{g as d}from"./p-ea7fdd2e.js";o(n,["_S","_M","_L"]);const f={root:"gov-tile",link:"gov-tile__link",content:"gov-tile__content",text:"gov-tile__text",title:"gov-tile__title",icon:"gov-tile__icon",annotation:"gov-tile__annotation"};const c=class{constructor(t){e(this,t);this.size="m";this.orientation=undefined;this.noBorder=false;this.href=undefined;this.target=undefined;this.h=d(this.host)}render(){return t(i,{key:"c766f3d54f15e5a49a877fa2e67593d084f487f7",class:this.h.classes(f.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},t("slot",{key:"d07b106d781fead65a124c82d11ebe991fddfece",name:"icon"}),t("div",{key:"eeee0397b4384a473f3782750d1e04f0c8c7894d",class:f.content},t("div",{key:"f4081902e55b964b1ebbdd43f7b189f83dce8690",class:f.text},t("div",{key:"3bf8cf35db6f667de7c278786787e38b1392a5b2",class:f.title},this.href?t(s,null,t("a",{href:this.href,target:this.target,class:f.link,ref:e=>this.triggerRef=e},t("slot",{name:"title"})),t("span",{class:f.icon},t("gov-icon",{name:"chevron-right",type:"components"}))):t("slot",{name:"title"})),t("div",{key:"088f60531285a1457277352a011766f809d9280d",class:`${f.annotation} ${this.href?`${f.annotation}--padding`:""}`},t("slot",{key:"8d4a612e3aff054a60ec1030eb5a28903595ea6a"}))),t("slot",{key:"f7610d06a6d951b3a24f2e129342bb82c5e9d767",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return a(this)}};export{c as gov_tile};
|
|
2
|
-
//# sourceMappingURL=p-0932c74d.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as e,a,g as i}from"./p-9dea2efa.js";import{v as o}from"./p-d8135701.js";import{S as r,a as c,b as h}from"./p-a521c59a.js";import{g as p}from"./p-ea7fdd2e.js";import"./p-ceafa242.js";import"./p-e0e2e9c1.js";import"./p-5aad3497.js";import"./p-92f420cb.js";const d=class{constructor(e){s(this,e);this.govChange=t(this,"gov-change",7);this.hydrated=false;this.size="m";this.h=p(this.host)}validateSize(s){o(h,s,c.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(r.root).forEach((s=>{s.setAttribute("size",this.size);s.addEventListener("gov-change",(s=>{s.stopPropagation();this.govChange.emit(s.detail)}))}))}connectedCallback(){this.hydrated=true}render(){return e(a,{key:"0815470dbe86e888ab922139e6f02347f89f4700",class:this.h.classes(c.root),role:"list",size:this.size,hydrated:this.hydrated},e("slot",{key:"2585c79a48236a8c2d333a437beb4d7f1d9d9d6c"}))}get host(){return i(this)}static get watchers(){return{size:["validateSize"]}}};export{d as gov_stepper};
|
|
2
|
-
//# sourceMappingURL=p-2cb8ed64.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as i,a,g as e}from"./p-9dea2efa.js";import{v as o}from"./p-d8135701.js";import{W as n,c as h}from"./p-c61a5830.js";import{c}from"./p-cd6c2938.js";import{g as d,b as r,t as l}from"./p-ea7fdd2e.js";import"./p-ceafa242.js";import"./p-e0e2e9c1.js";import"./p-5aad3497.js";import"./p-92f420cb.js";var p;(function(s){s["DIV"]="div";s["BUTTON"]="button"})(p||(p={}));const f=class{constructor(i){s(this,i);this.govChange=t(this,"gov-change",7);this.hydrated=false;this.color="primary";this.size="m";this.identifier=undefined;this.collapsible=false;this.disabled=false;this.isExpanded=false;this.h=d(this.host);this.triggerId=c("GovWizardItem");this.contentId=c("GovWizardContent")}validateColor(s){o(h,s,n.root)}emmitChange(){this.govChange.emit({expanded:this.isExpanded,component:n.root})}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const s=this.identifier||this.triggerId;const t=this.collapsible?p.BUTTON:p.DIV;const e=this.h.hasSlot("prefix")&&i("span",{key:"abdd15cfa834f393b29335ea2bda28cd1dfeef46",class:n.prefix},i("slot",{key:"123c495809091879ab3d985b9bcb4a22005e4b75",name:"prefix"}));return i(a,{key:"463384ea408a20992bf6f30f142fce7146fabf53",class:this.h.classes(n.root),"is-expanded":this.isExpanded,color:this.color,size:this.size,role:"listitem",collapsible:this.collapsible,hydrated:this.hydrated},i("div",{key:"0b60621607cd8c48fe05fd1755f9f7b8514d425d",class:n.header},e,this.collapsible?i(t,{id:s,class:this.h.classes(n.label),"aria-expanded":r(this.isExpanded),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":l(this.disabled),onClick:s=>{s.preventDefault();s.stopPropagation();this.toggle()}},i("span",{class:n.headline},i("slot",{name:"headline"}),this.collapsible&&i("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),i("slot",{name:"annotation"})):i(t,{class:this.h.classes(n.label)},i("span",{class:n.headline},i("slot",{name:"headline"}),this.collapsible&&i("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),i("slot",{name:"annotation"}))),this.collapsible?i("div",{class:n.content,id:this.contentId,"aria-hidden":r(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":s},i("slot",null)):i("div",{class:n.content,"aria-hidden":r(!this.isExpanded),hidden:!this.isExpanded},i("slot",null)))}async open(){this.isExpanded=true;this.emmitChange()}async close(){this.isExpanded=false;this.emmitChange()}async toggle(){this.isExpanded=!this.isExpanded;this.emmitChange()}async currentState(){return this.isExpanded}get host(){return e(this)}static get watchers(){return{color:["validateColor"]}}};export{f as gov_wizard_item};
|
|
2
|
-
//# sourceMappingURL=p-2f5dec44.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s,a as e,g as i}from"./p-9dea2efa.js";import{p as a}from"./p-e0e2e9c1.js";import{S as o}from"./p-92f420cb.js";import{g as r}from"./p-ea7fdd2e.js";import{v as h}from"./p-d8135701.js";import{i as n}from"./p-d9a299a4.js";import"./p-ceafa242.js";import"./p-9ac55bd1.js";const c=a(o,["_S","_M","_L"]);const p={root:"gov-link"};const f=class{constructor(s){t(this,s);this.size="m";this.external=false;this.href=undefined;this.target=undefined;this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){h(c,t,p.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=n(this.host)}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return s(e,{key:"233af48c179501fe03ee2e5931806e1955913b59",class:this.h.classes(p.root),size:this.size,href:this.href,external:this.external},s("a",Object.assign({key:"679067805205d76500979620b1ef4405139bb339",class:"element",href:this.href,target:this.target},this.inheritedAttributes),s("slot",{key:"d24c4ab99451f317a453c8131bd0506606322553",name:"icon-start"}),s("slot",{key:"276923f48cdc13985115e8d4e8860a2fb0c692e2"}),this.external?s("gov-icon",{name:"box-arrow-up-right",type:"components"}):s("slot",{name:"icon-end"})))}get host(){return i(this)}static get watchers(){return{size:["validateSize"]}}};export{f as gov_link};
|
|
2
|
-
//# sourceMappingURL=p-5b8c391e.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,h as o,a as s,g as a}from"./p-9dea2efa.js";import{p as t}from"./p-e0e2e9c1.js";import{S as i}from"./p-92f420cb.js";import{g as c,p as d}from"./p-ea7fdd2e.js";import{v as r}from"./p-d8135701.js";import"./p-ceafa242.js";const n=t(i,["_S","_M","_L"]);const p={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const f=class{constructor(o){e(this,o);this.size="m";this.h=c(this.host)}validateSize(e){r(n,e,p.root)}componentWillLoad(){this.validateSize(this.size)}render(){return o(s,{key:"4c33339523674f2f2415dfb326131858de9eecf9",class:this.h.classes(p.root),size:this.size},o("div",{key:"8c25628dd3072fd89665ccfedb9596383181b13d",class:p.content},o("gov-icon",{key:"a9969874350b5316c61a94b12d41a0130eeded0f",class:d([p.icon,"gov-spin-animation"]),name:"loader",type:"components"}),o("slot",{key:"14c716ecc352a0d947a6e3d932d2ab9075dedb97"})),o("gov-backdrop",{key:"507610e5a61b34be2166fb4a30539a134dc1b262",inverse:true}))}get host(){return a(this)}static get watchers(){return{size:["validateSize"]}}};export{f as gov_loading};
|
|
2
|
-
//# sourceMappingURL=p-606e573e.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,h as s,a,g as t}from"./p-9dea2efa.js";import{a as r}from"./p-13ebd887.js";import{g as o}from"./p-ea7fdd2e.js";const c=class{constructor(s){e(this,s);this.h=o(this.host)}render(){return s(a,{key:"ebef4ca76b1308a566c862b5a49eecf1eb3fce99",class:this.h.classes(r.root)},s("slot",{key:"aaeefeb1a56b294d91b1327fd52eb16486cfb918"}))}get host(){return t(this)}};export{c as gov_layout_column};
|
|
2
|
-
//# sourceMappingURL=p-72c4ebcd.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e,a as t,g as s}from"./p-9dea2efa.js";import{g as o}from"./p-ea7fdd2e.js";import{v as i}from"./p-d8135701.js";import{a as r,b as c}from"./p-3bbb77a0.js";import{p as b}from"./p-e0e2e9c1.js";import{S as n}from"./p-92f420cb.js";import{p as d}from"./p-016bbea6.js";import"./p-ceafa242.js";import"./p-5aad3497.js";const f=b(n,["_XS","_S","_M"]);var p;(function(a){a["BOLD"]="bold";a["SUBTLE"]="subtle"})(p||(p={}));const h={root:"gov-tag"};const m=class{constructor(e){a(this,e);this.iconStart=undefined;this.iconEnd=undefined;this.size=f._S;this.color=r.PRIMARY;this.type=undefined;this.expanded=false;this.h=o(this.host)}validateColor(a){i(r,a,h.root)}validateSize(a){i(c,a,h.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size)}render(){const a=d(this.iconStart);const s=d(this.iconEnd);return e(t,{key:"8865709f2568a754160000138f413f352409e248",class:this.h.classes(h.root),color:this.color,size:this.size,type:this.type},e("span",{key:"4ae6dc1d60a207510de61c2391af9eb268dd3588",class:"element"},e("slot",{key:"f08057eb346b918d1be45ad7561a71bac54237aa",name:"icon-start"},a&&e("gov-icon",{key:"37554fce04335c45bb724efeb5e7701513336b7b",type:a.type,name:a.name})),e("slot",{key:"b66970bf42b9fd9217cb2e3a03c2f47c608b14a5"}),e("slot",{key:"85bf0010dac55b808bba5a442d977e8538f93d3a",name:"icon-end"},s&&e("gov-icon",{key:"70bf541bac6a69871618cb520c7008099aa6f341",type:s.type,name:s.name}))))}get host(){return s(this)}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}};export{m as gov_tag};
|
|
2
|
-
//# sourceMappingURL=p-7d8f3ac7.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,a as s,g as i,c as o}from"./p-9dea2efa.js";import{S as n}from"./p-92f420cb.js";import{g as c}from"./p-ea7fdd2e.js";import{p as a}from"./p-e0e2e9c1.js";import{C as h}from"./p-5aad3497.js";import{i as r}from"./p-ceafa242.js";import{v as d}from"./p-d8135701.js";const l={root:"gov-flex"};const f=class{constructor(e){t(this,e);this.direction="row";this.justifyContent=undefined;this.alignItems=undefined;this.wrap=undefined;this.alignContent=undefined;this.alignSelf=undefined;this.gap=undefined;this.h=c(this.host)}render(){return e(s,{key:"08c1591134f0b5c95a18ac9e1d3723c12d9bc47b",class:this.h.classes(l.root)},e("slot",{key:"b66fb8ffa35b0fb98eed3440a55a92a1bd97eb76"}))}get host(){return i(this)}};a(n,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);a(h,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var m;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(m||(m={}));const u={root:"gov-icon",holder:"gov-icon__holder"};console.log("GovIcon loaded");const b=class{constructor(e){t(this,e);this.size=undefined;this.color=undefined;this.name=null;this.type="components";this.error=false;console.log("GovIcon constructor");this.h=c(this.host)}render(){if(this.error){return null}return e(s,{class:this.h.classes(u.root),size:this.size,color:this.color},"Icc")}get host(){return i(this)}};const p=a(n,["_XS","_S","_M","_L","_XL"]);const g={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const _="data-theme";var v;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(v||(v={}));const S=(t,e,s)=>{if(!r){return}let i="";if(s){const t=new Date;t.setTime(t.getTime()+s*24*60*60*1e3);i="; expires="+t.toUTCString()}document.cookie=`${t}=${encodeURIComponent(e)}${i}; path=/`};const k=t=>{if(!r){return null}const e=t+"=";const s=document.cookie.split(";");for(let t=0;t<s.length;t++){let i=s[t].trim();if(i.startsWith(e)){return decodeURIComponent(i.substring(e.length))}}return null};const w=class{constructor(e){t(this,e);this.govChange=o(this,"gov-change",7);this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:g.root,state:this.theme,ref:this.host})};this.size="m";this.displayLabel=false;this.ariaLabelLight="Přenout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=v.auto;this.h=c(this.host)}validateSize(t){d(p,t,g.root)}watchTheme(t){this.htmlElement.setAttribute(_,t);this.htmlElement.classList.remove(...Object.keys(v));this.htmlElement.classList.add(t);S(_,t)}get storageValue(){return k(_)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return r&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(v);let e=this.storageValue;const s=this.htmlElement.getAttribute(_);if(e&&t.includes(e)){this.theme=e}else if(s&&t.includes(s)){this.theme=s}else{this.theme=v.auto}}render(){let t=this.theme===v.dark;if(this.theme===v.auto){t=this.isSystemPrefersColorDark}return e(s,{key:"784ed0513ea1436bb754dc82691646422789783b",class:this.h.classes(g.root),theme:t?v.dark:v.light,size:this.size},e("button",{key:"d4abc155a8ae8f07d0a49c378e295c3ab57318d4",onClick:()=>this.setThemeState(t?v.light:v.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},e("span",{key:"7f713875d5618acc919702cdc60e9db58dfb9db5"},e("span",{key:"0b57c0153047ef292b6bdc43b49e5a1a9cdc17e1",class:g.indicator},v.light&&e("gov-icon",{key:"ae2c751435a2bc9c1e9f8dfa4ca52e13943ada9b",name:"sun",class:g.iconLight,type:"components"}),v.dark&&e("gov-icon",{key:"7a4ee602a37742ab94dcee47a7c4970d5dce5bb6",name:"moon",class:g.iconDark,type:"components"})),this.displayLabel&&(t?this.labelDark:this.labelLight))))}get host(){return i(this)}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}};export{f as gov_flex,b as gov_icon,w as gov_theme_switch};
|
|
2
|
-
//# sourceMappingURL=p-8190b4b4.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["FlexClass","root","GovFlex","constructor","hostRef","this","h","govHost","host","render","Host","key","class","classes","pick","Sizes","Colors","Types","IconClass","holder","console","log","GovIcon","error","size","color","ThemeSwitchSizes","ThemeSwitchClass","indicator","iconLight","iconDark","ATTRIBUTE_THEME_NAME","ThemeList","setCookie","name","value","days","isWindow","expires","date","Date","setTime","getTime","toUTCString","document","cookie","encodeURIComponent","getCookie","nameEQ","cookies","split","i","length","trim","startsWith","decodeURIComponent","substring","GovThemeSwitch","setThemeState","state","theme","govChange","emit","component","ref","auto","validateSize","newValue","validateProp","watchTheme","htmlElement","setAttribute","classList","remove","Object","keys","add","storageValue","documentElement","isSystemPrefersColorDark","window","matchMedia","matches","componentWillLoad","initDefaultState","options","currentState","htmlState","getAttribute","includes","isDark","dark","light","onClick","ariaLabelDark","ariaLabelLight","type","displayLabel","labelDark","labelLight"],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx","../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/components/gov-icon/gov-icon.tsx","../../../packages/core/src/components/gov-theme-switch/constants.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.types.ts","../../../packages/core/src/helpers/Dom/document.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.tsx"],"sourcesContent":["import {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const FlexSizes = Sizes\nexport type FlexSizesType = `${ValueOf<typeof FlexSizes>}`\n\nexport const FlexClass = {\n\troot: 'gov-flex',\n}\n\n","import {Component, Element, h, Host, Prop} from '@stencil/core'\nimport {FlexClass, FlexSizesType} from './constants'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-flex',\n})\nexport class GovFlex {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Controls the flex direction of the container.\n\t */\n\t@Prop() direction: 'row' | 'row-reverse' | 'column' | 'column-reverse' = 'row';\n\n\t/**\n\t * Defines how the browser distributes space between and around content items along the main axis.\n\t */\n\t@Prop({\n\t\tattribute: 'justify-content',\n\t\treflect: true\n\t}) justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';\n\n\t/**\n\t * Aligns flex items along the cross axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-items',\n\t\treflect: true\n\t}) alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\n\n\t/**\n\t * Controls whether the flex container is a single-line or multi-line flex container.\n\t */\n\t@Prop({reflect: true}) wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n\n\t/**\n\t * Aligns the flex container's lines within when there is extra space in the cross-axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-content',\n\t\treflect: true\n\t}) alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';\n\n\t/**\n\t * Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.\n\t */\n\t@Prop({\n\t\tattribute: 'align-self',\n\t\treflect: true\n\t}) alignSelf?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({\n\t\tattribute: 'gap',\n\t\treflect: true\n\t}) gap?: FlexSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FlexClass.root)}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n","import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils';\nimport { Colors } from '../../core/constants/colors';\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\n\nexport const IconColors = pick(Colors, [\n\t'DEFAULT',\n\t'PRIMARY',\n\t'SECONDARY',\n\t'NEUTRAL',\n\t'ERROR',\n\t'SUCCESS',\n\t'WARNING',\n\t'DISABLED',\n\t'WHITE',\n\t'BLACK',\n])\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import {Component, Element, h, Host, Prop, State} from \"@stencil/core\"\nimport {IconClass, type IconColorType, IconSizesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\n\nconsole.log('GovIcon loaded');\n\n@Component({\n tag: \"gov-icon\",\n})\nexport class GovIcon {\n private h: GovHost\n\n constructor() {\n console.log('GovIcon constructor');\n this.h = govHost(this.host)\n }\n\n @Element() host: HTMLGovIconElement\n /**\n * Icon size\n */\n @Prop({reflect: true}) readonly size?: IconSizesType\n /**\n * Icon color\n */\n @Prop({reflect: true}) readonly color?: IconColorType\n /**\n * Name of icon in folder\n */\n @Prop({reflect: true}) name: string = null\n /**\n * Type (folder) of icon\n */\n @Prop({reflect: true}) type = \"components\"\n\n @State() private error = false\n\n\n render() {\n if (this.error) {\n return null\n }\n return (\n <Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}>\n Icc\n </Host>\n )\n }\n}\n","import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\n\nexport const ThemeSwitchClass = {\n\troot: 'gov-theme-switch',\n\tindicator: 'gov-theme-switch__indicator',\n\ticonLight: 'gov-theme-switch__icon-light',\n\ticonDark: 'gov-theme-switch__icon-dark',\n}\n\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\n","import {GovBaseEvent} from \"../../types/event.types\";\n\nexport enum ThemeList {\n\tauto = 'auto',\n\tlight = 'light',\n\tdark = 'dark'\n}\n\nexport interface ThemeSwitchEvent extends GovBaseEvent {\n\tref: HTMLGovThemeSwitchElement;\n\tstate: ThemeList\n}\n\n","import {Nullable} from \"../../utils/helpers.types\";\nimport {isWindow} from \"./win\";\n\nexport const setCookie = (name: string, value: string, days?: number) => {\n\tif (!isWindow) {\n\t\treturn\n\t}\n\tlet expires = \"\";\n\tif (days) {\n\t\tconst date = new Date();\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n\t\texpires = \"; expires=\" + date.toUTCString();\n\t}\n\tdocument.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;\n}\n\nexport const getCookie = (name: string): Nullable<string> => {\n\tif (!isWindow) {\n\t\treturn null\n\t}\n\tconst nameEQ = name + \"=\";\n\tconst cookies = document.cookie.split(';');\n\tfor (let i = 0; i < cookies.length; i++) {\n\t\tlet cookie = cookies[i].trim();\n\t\tif (cookie.startsWith(nameEQ)) {\n\t\t\treturn decodeURIComponent(cookie.substring(nameEQ.length));\n\t\t}\n\t}\n\treturn null;\n}\n\nexport const isValidSVG = (svgContent: string): boolean => {\n\ttry {\n\t\tconst parser = new DOMParser();\n\t\tconst doc = parser.parseFromString(svgContent, \"image/svg+xml\");\n\t\tconst parseError = doc.querySelector(\"parsererror\");\n\t\tif (parseError) {\n\t\t\treturn false;\n\t\t}\n\t\tconst svgElement = doc.documentElement;\n\t\tif (svgElement.tagName.toLowerCase() !== \"svg\") {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t} catch (error) {\n\t\treturn false;\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\";\nimport {govHost} from \"../../helpers/Dom/template\";\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\nimport {isWindow} from \"../../helpers/Dom/win\";\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\n\n@Component({\n\ttag: \"gov-theme-switch\",\n})\nexport class GovThemeSwitch {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovThemeSwitchElement\n\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\n\t/**\n\t * Display switch label\n\t */\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přenout na tmavý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\n\t/**\n\t * Called when the theme is changed by the user\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\n\t}\n\n\t@Watch(\"theme\")\n\twatchTheme(newValue: ThemeList): void {\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\n\t\tthis.htmlElement.classList.add(newValue);\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\n\t}\n\n\t@State() theme: ThemeList = ThemeList.auto\n\n\tprivate get storageValue() {\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\n\t}\n\n\tprivate get htmlElement(): HTMLElement {\n\t\treturn document.documentElement\n\t}\n\n\tprivate get isSystemPrefersColorDark(): boolean {\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.initDefaultState()\n\t\tthis.validateSize(this.size)\n\t}\n\n\tprivate initDefaultState() {\n\t\tconst options = Object.keys(ThemeList);\n\t\tlet currentState = this.storageValue;\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\n\n\t\tif (currentState && options.includes(currentState)) {\n\t\t\tthis.theme = currentState as ThemeList;\n\t\t} else if (htmlState && options.includes(htmlState)) {\n\t\t\tthis.theme = htmlState as ThemeList;\n\t\t} else {\n\t\t\tthis.theme = ThemeList.auto;\n\t\t}\n\t}\n\n\tprivate setThemeState = (state: ThemeList) => {\n\t\tthis.theme = state;\n\n\t\tthis.govChange.emit({\n\t\t\tcomponent: ThemeSwitchClass.root,\n\t\t\tstate: this.theme,\n\t\t\tref: this.host\n\t\t})\n\t}\n\n\trender() {\n\t\tlet isDark = this.theme === ThemeList.dark;\n\t\tif (this.theme === ThemeList.auto) {\n\t\t\tisDark = this.isSystemPrefersColorDark;\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\n\t\t\t\t size={this.size}>\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\n\t\t\t\t\t\taria-current={this.theme}\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{this.displayLabel && (isDark ? this.labelDark : this.labelLight)}\n\t\t\t\t\t</span>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"wRAMO,MAAMA,EAAY,CACxBC,KAAM,Y,MCCMC,EAAO,MAGnB,WAAAC,CAAAC,G,yBASyE,M,oJARxEC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAuDvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQb,EAAUC,OACrCK,EAAA,QAAAK,IAAA,6C,6BCjEqBG,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,MAAO,OAAQ,OAAQ,OAAQ,SAGpED,EAAKE,EAAQ,CACtC,UACA,UACA,YACA,UACA,QACA,UACA,UACA,WACA,QACA,UAID,IAAKC,GAAL,SAAKA,GACJA,EAAA,iBACAA,EAAA,qBACAA,EAAA,oBACA,EAJD,CAAKA,MAAK,KAOH,MAAMC,EAAY,CACxBjB,KAAM,WACNkB,OAAQ,oBC1BTC,QAAQC,IAAI,kB,MAKCC,EAAO,MAGhB,WAAAnB,CAAAC,G,6DAiBsC,K,UAIR,a,WAEL,MAtBrBgB,QAAQC,IAAI,uBACZhB,KAAKC,EAAIC,EAAQF,KAAKG,K,CAwB1B,MAAAC,GACI,GAAIJ,KAAKkB,MAAO,CACZ,OAAO,I,CAEX,OACIjB,EAACI,EAAI,CAACE,MAAOP,KAAKC,EAAEO,QAAQK,EAAUjB,MAAOuB,KAAMnB,KAAKmB,KAAMC,MAAOpB,KAAKoB,OAAK,M,6BCxCpF,MAAMC,EAAmBZ,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,QAG/D,MAAMY,EAAmB,CAC/B1B,KAAM,mBACN2B,UAAW,8BACXC,UAAW,+BACXC,SAAU,+BAGJ,MAAMC,EAAuB,aCZpC,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,iBACAA,EAAA,cACA,EAJD,CAAYA,MAAS,KCCd,MAAMC,EAAY,CAACC,EAAcC,EAAeC,KACtD,IAAKC,EAAU,CACd,M,CAED,IAAIC,EAAU,GACd,GAAIF,EAAM,CACT,MAAMG,EAAO,IAAIC,KACjBD,EAAKE,QAAQF,EAAKG,UAAaN,EAAO,GAAK,GAAK,GAAK,KACrDE,EAAU,aAAeC,EAAKI,a,CAE/BC,SAASC,OAAS,GAAGX,KAAQY,mBAAmBX,KAASG,WAAiB,EAGpE,MAAMS,EAAab,IACzB,IAAKG,EAAU,CACd,OAAO,I,CAER,MAAMW,EAASd,EAAO,IACtB,MAAMe,EAAUL,SAASC,OAAOK,MAAM,KACtC,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IAAK,CACxC,IAAIN,EAASI,EAAQE,GAAGE,OACxB,GAAIR,EAAOS,WAAWN,GAAS,CAC9B,OAAOO,mBAAmBV,EAAOW,UAAUR,EAAOI,Q,EAGpD,OAAO,IAAI,E,MChBCK,EAAc,MAG1B,WAAAtD,CAAAC,G,gDAiFQC,KAAAqD,cAAiBC,IACxBtD,KAAKuD,MAAQD,EAEbtD,KAAKwD,UAAUC,KAAK,CACnBC,UAAWpC,EAAiB1B,KAC5B0D,MAAOtD,KAAKuD,MACZI,IAAK3D,KAAKG,MACT,E,UA/E4C,I,kBAIc,M,oBAIK,uB,mBAIF,yB,gBAIN,a,eAIH,Y,WAmB3BwB,EAAUiC,KA/CrC5D,KAAKC,EAAIC,EAAQF,KAAKG,K,CAmCvB,YAAA0D,CAAaC,GACZC,EAAa1C,EAAkByC,EAAUxC,EAAiB1B,K,CAI3D,UAAAoE,CAAWF,GACV9D,KAAKiE,YAAYC,aAAaxC,EAAsBoC,GACpD9D,KAAKiE,YAAYE,UAAUC,UAAUC,OAAOC,KAAK3C,IACjD3B,KAAKiE,YAAYE,UAAUI,IAAIT,GAC/BlC,EAAUF,EAAsBoC,E,CAKjC,gBAAYU,GACX,OAAO9B,EAAUhB,E,CAGlB,eAAYuC,GACX,OAAO1B,SAASkC,e,CAGjB,4BAAYC,GACX,OAAO1C,GAAY2C,OAAOC,YAAcD,OAAOC,WAAW,gCAAgCC,O,CAG3F,iBAAAC,GACC9E,KAAK+E,mBACL/E,KAAK6D,aAAa7D,KAAKmB,K,CAGhB,gBAAA4D,GACP,MAAMC,EAAUX,OAAOC,KAAK3C,GAC5B,IAAIsD,EAAejF,KAAKwE,aACxB,MAAMU,EAAYlF,KAAKiE,YAAYkB,aAAazD,GAEhD,GAAIuD,GAAgBD,EAAQI,SAASH,GAAe,CACnDjF,KAAKuD,MAAQ0B,C,MACP,GAAIC,GAAaF,EAAQI,SAASF,GAAY,CACpDlF,KAAKuD,MAAQ2B,C,KACP,CACNlF,KAAKuD,MAAQ5B,EAAUiC,I,EAczB,MAAAxD,GACC,IAAIiF,EAASrF,KAAKuD,QAAU5B,EAAU2D,KACtC,GAAItF,KAAKuD,QAAU5B,EAAUiC,KAAM,CAClCyB,EAASrF,KAAK0E,wB,CAEf,OACCzE,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQc,EAAiB1B,MAC1C2D,MAAO8B,EAAS1D,EAAU2D,KAAO3D,EAAU4D,MAC3CpE,KAAMnB,KAAKmB,MACblB,EAAA,UAAAK,IAAA,2CAAQkF,QAAS,IAAMxF,KAAKqD,cAAcgC,EAAS1D,EAAU4D,MAAQ5D,EAAU2D,MAAK,eACpEtF,KAAKuD,MAAK,aACZ8B,EAASrF,KAAKyF,cAAgBzF,KAAK0F,gBAChDzF,EAAA,QAAAK,IAAA,4CACCL,EAAA,QAAAK,IAAA,2CAAMC,MAAOe,EAAiBC,WAC5BI,EAAU4D,OAAStF,EAAA,YAAAK,IAAA,2CAAUuB,KAAK,MAAMtB,MAAOe,EAAiBE,UAAWmE,KAAK,eAChFhE,EAAU2D,MAAQrF,EAAA,YAAAK,IAAA,2CAAUuB,KAAK,OAAOtB,MAAOe,EAAiBG,SAAUkE,KAAK,gBAEhF3F,KAAK4F,eAAiBP,EAASrF,KAAK6F,UAAY7F,KAAK8F,c","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,a as e,g as c}from"./p-9dea2efa.js";import{L as r}from"./p-13ebd887.js";import{g as a}from"./p-ea7fdd2e.js";const i=class{constructor(t){s(this,t);this.type="stretch";this.variant=undefined;this.inverse=false;this.h=a(this.host)}typeClass(s,t,e,c){const r=t?"-"+t:"";const a=e?"-"+e:"";const i=c?"-inverse":"";return s+" "+s+r+a+i}render(){return t(e,{key:"c35fc39e07229363bdf36be5856165e7e8eb7985",type:this.type,class:this.h.classes(r.root)},t("section",{key:"dc50cf9cba8bd4e879291fddfbd41955f2d10330",class:this.typeClass(r.section,this.type,this.variant,this.inverse)},t("slot",{key:"017a329c119529d3893e187b6a8bbccfbbc76679"})))}get host(){return c(this)}};export{i as gov_layout};
|
|
2
|
-
//# sourceMappingURL=p-9256cf6c.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as a,a as s,g as c}from"./p-9dea2efa.js";import{v as i}from"./p-d8135701.js";import{S as o,c as d}from"./p-a521c59a.js";import{c as r}from"./p-cd6c2938.js";import{g as f}from"./p-ea7fdd2e.js";import"./p-ceafa242.js";import"./p-e0e2e9c1.js";import"./p-5aad3497.js";import"./p-92f420cb.js";const n=class{constructor(a){e(this,a);this.govChange=t(this,"gov-change",7);this.hydrated=false;this.color="primary";this.size="m";this.identifier=undefined;this.h=f(this.host);this.triggerId=r("GovStepperItem");this.contentId=r("GovStepperContent")}validateColor(e){i(d,e,o.root)}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const e=this.identifier||this.triggerId;const t=this.contentId;return a(s,{key:"c24400b8ee5917005e6e3a21f47024c7ebad2960",id:e,class:this.h.classes(o.root),color:this.color,role:"listitem",hydrated:this.hydrated},this.h.hasSlot("prefix")&&a("span",{key:"010401daa60b44eed322de007fdd6e4ca035ff8d",class:o.prefix},a("slot",{key:"27287e54365c7e72e01dd21f8d07f7144dc03f3c",name:"prefix"})),a("div",{key:"b50e23ee80b270bb5bb781c46e2cf2de73cad1bb"},a("span",{key:"84500822ca2e529bff5e5cf4eb7ac7c9f0fc9d97",class:o.headline},a("slot",{key:"18410e07be87715a96540789a82403bfab45e55c",name:"headline"})),a("slot",{key:"dd2c20b9f07d2bcbf4223eca8de0d7592d178e86",name:"annotation"}),this.h.hasSlot("content")&&a("div",{key:"cd34d17b5a14816dd91ee84f91a14217952bcfe5",class:o.content,id:t,"aria-labelledby":e,role:"tabpanel"},a("slot",{key:"c90f411f8d63c6381f55a0e6ac819369a9bfd2e5",name:"content"}))))}get host(){return c(this)}static get watchers(){return{color:["validateColor"]}}};export{n as gov_stepper_item};
|
|
2
|
-
//# sourceMappingURL=p-a549da72.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,a as e,g as a}from"./p-9dea2efa.js";import{v as h}from"./p-d8135701.js";import{T as o,a as r,b as c,c as n,d as l}from"./p-860520b0.js";import{g as d,c as f,b as p}from"./p-ea7fdd2e.js";import{h as b}from"./p-2aedc81e.js";import{p as m}from"./p-016bbea6.js";import{A as u,a as y}from"./p-9ac55bd1.js";import{i as g}from"./p-d9a299a4.js";import"./p-ceafa242.js";import"./p-e0e2e9c1.js";import"./p-92f420cb.js";import"./p-5aad3497.js";const v=class{constructor(i){t(this,i);this.govChange=s(this,"gov-change",7);this.triggerRefs={};this.type="text";this.size="m";this.color="primary";this.orientation="horizontal";this.direction="row";this.controllers=[];this.focusIndex=0;this.inheritedAttributes={};this.h=d(this.host)}validateType(t){h(c,t,r.root)}validateColor(t){h(n,t,r.root)}validateSize(t){h(l,t,r.root)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(y)}componentWillLoad(){this.prepareControllers();this.validateSize(this.size);this.inheritedAttributes=g(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}prepareControllers(t=false){this.controllers=[];const s=[];this.host.querySelectorAll(o.root).forEach((t=>{const i=Promise.all([t.getIdentifier(),t.getTriggerIdentifier(),t.getDisableState()]).then((([s,i,e])=>{const a=typeof t.getAttribute("default")==="string";const h=m(t.getAttribute("icon-start"));const o=m(t.getAttribute("icon-end"));return{label:t.getAttribute("label"),direction:t.getAttribute("direction"),contentIdentifier:s,disabled:e,triggerIdentifier:i,element:t,active:false,default:a,iconStart:h,iconEnd:o}}));s.push(i)}));Promise.all(s).then((s=>{if(t===false){let t=s.findIndex((t=>t.default));if(t===-1)t=0;this.focusIndex=t;s[t].active=true}else if(this.focusIndex>-1&&b(s,this.focusIndex)){s[this.focusIndex].active=true}const i=s.findIndex((t=>t.active&&t.disabled));if(i>-1){s[i].active=false;const t=s.findIndex((t=>!t.disabled));if(t>-1){s[t].active=true;this.focusIndex=t}}this.controllers=[...s];this.reRender()}))}setActiveByIdentifier(t){const s=[];this.controllers.map((i=>{i.active=t===i.triggerIdentifier||t===i.contentIdentifier;s.push(i)}));this.controllers=[...s]}reRender(){this.controllers.map((t=>{t.element.setActiveStatus(t.active).catch()}))}render(){return i(e,{key:"4efcbedcc355a74456cc899bc48c7aaf8c604c12",class:this.h.classes(r.root),size:this.size,color:this.color,type:this.type,direction:this.direction,onKeyDown:this.onKeydownHandler.bind(this)},i("div",Object.assign({key:"a64d1a7cadd5950ebc687c3f3d741ea0a59a3684",class:r.tabs,role:"tablist"},this.inheritedAttributes),i("ul",{key:"adab5148c97b041e11f3e7d11a4d87492df5320a",class:r.list},this.controllers.map((t=>i("li",{class:r.item},this.type=="text"?i("button",{class:r.btn,id:t.triggerIdentifier,role:"tab",onClick:()=>this.onSelectHandler(t),disabled:t.disabled,"aria-disabled":f(t.disabled),"aria-selected":f(t.active),"aria-controls":t.contentIdentifier,tabindex:t.active&&!t.disabled?0:-1,ref:s=>this.triggerRefs[t.triggerIdentifier]=s},t.iconStart?i("gov-icon",{name:t.iconStart.name,type:t.iconStart.type}):null,t.label,t.iconEnd?i("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type}):null):i("gov-chip",{role:"tab",tag:"button",identifier:t.triggerIdentifier,"aria-selected":p(t.active),"aria-controls":t.contentIdentifier,focusable:t.active,disabled:t.disabled,color:this.color,size:this.size==="xs"?"xs":this.size==="s"?"s":"m",type:t.active?"solid":"outlined",ref:s=>this.triggerRefs[t.triggerIdentifier]=s,"on-gov-click":()=>this.onSelectHandler(t)},t.iconStart?i("gov-icon",{name:t.iconStart.name,type:t.iconStart.type,slot:"icon-start"}):null,t.label,t.iconEnd?i("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type,slot:"icon-end"}):null)))))),i("slot",{key:"2a3720ce9449d62ecd1d58bac806bf356d37375a"}))}getCurrentTab(){return this.controllers.find((t=>t.active))||null}onSelectHandler(t){const s=this.controllers.findIndex((s=>s.triggerIdentifier===t.triggerIdentifier));this.focusIndex=s;this.setActiveByIdentifier(t.triggerIdentifier);this.reRender();this.govChange.emit(this.getCurrentTab().element)}onKeydownHandler(t){const s=t.keyCode;t.stopPropagation();this.goToPrevNext(s)}goToPrevNext(t){if([37,38,39,40].includes(t)){if(false===(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1)){return}this.controllers[this.focusIndex].active=false;if(t===39||t===40){this.focusIndex++;if(this.focusIndex>=this.controllers.length){this.focusIndex=0}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(40)}}else if(t===37||t===38){this.focusIndex--;if(this.focusIndex<0){this.focusIndex=this.controllers.length-1}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(38)}}if(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1){const t=this.controllers[this.focusIndex];t.active=true;const s=this.triggerRefs[t.triggerIdentifier];if(s.nodeName.toLowerCase()==="gov-chip"){this.triggerRefs[t.triggerIdentifier].setFocus()}else{this.triggerRefs[t.triggerIdentifier].focus()}this.controllers=[...this.controllers];this.reRender();this.govChange.emit(this.getCurrentTab().element)}}}async refresh(){this.prepareControllers()}async currentTab(){return this.getCurrentTab().element||null}async setActiveTab(t){this.setActiveByIdentifier(t);this.reRender()}async rerender(){this.prepareControllers(true)}get host(){return a(this)}static get watchers(){return{type:["validateType"],color:["validateColor"],size:["validateSize"]}}};export{v as gov_tabs};
|
|
2
|
-
//# sourceMappingURL=p-dcbdcbdb.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s,a as e,g as a}from"./p-9dea2efa.js";import{v as i}from"./p-d8135701.js";import{S as r}from"./p-92f420cb.js";import{p as o}from"./p-e0e2e9c1.js";import{g as n}from"./p-ea7fdd2e.js";import"./p-ceafa242.js";const p=o(r,["_2XS","_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL"]);var d;(function(t){t["NONE"]="none";t["SM"]="sm";t["MD"]="md";t["LG"]="lg";t["XL"]="xl"})(d||(d={}));const c={root:"gov-spacer"};const h=class{constructor(s){t(this,s);this.size=undefined;this.breakpoint=undefined;this.h=n(this.host)}validateSize(t){i(p,t,c.root)}validateBreakpoint(t){i(d,t,c.root)}componentWillLoad(){this.validateSize(this.size);this.validateBreakpoint(this.breakpoint)}render(){return s(e,{key:"23aedb7f3b112a356319aba076eedf9a4743e25b",class:this.h.classes(c.root),size:this.size,breakpoint:this.breakpoint})}get host(){return a(this)}static get watchers(){return{size:["validateSize"],breakpoint:["validateBreakpoint"]}}};export{h as gov_spacer};
|
|
2
|
-
//# sourceMappingURL=p-f4a4d282.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,a as e,g as a}from"./p-9dea2efa.js";import{g as o}from"./p-ea7fdd2e.js";const r={root:"gov-tiles"};const c=class{constructor(t){s(this,t);this.columns=4;this.h=o(this.host)}render(){return t(e,{key:"18eb380e2fe62b54a90c5c758c62c985107c98d4",class:this.h.classes(r.root)},t("slot",{key:"9746ede80d0daa8776208afb5cef44b7adb0d7fc"}))}get host(){return a(this)}};export{c as gov_tiles};
|
|
2
|
-
//# sourceMappingURL=p-f6863a64.entry.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|