@swisspost/design-system-components 10.8.0 → 10.9.0
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/README.md +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DAEQGHsE.js → package-kgRYEtTJ.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/post-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/post-avatar.cjs.entry.js +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/post-banner.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/post-closebutton_14.cjs.entry.js +83 -23
- package/dist/cjs/post-collapsible_2.cjs.entry.js +1 -1
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/post-date-picker.cjs.entry.js +6 -5
- package/dist/cjs/post-footer.cjs.entry.js +2 -2
- package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +3 -3
- package/dist/cjs/post-pagination.cjs.entry.js +1 -1
- package/dist/cjs/post-popover-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +32 -4
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.js +4 -3
- package/dist/collection/components/post-footer/post-footer.css +1 -1
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +71 -8
- package/dist/collection/components/post-icon/post-icon.css +1 -1
- package/dist/collection/components/post-icon/post-icon.js +1 -2
- package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.css +1 -1
- package/dist/collection/components/post-listbox/post-listbox.js +1 -1
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.js +2 -2
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-number-input/post-number-input.js +2 -2
- package/dist/collection/components/post-popover/post-popover.js +2 -2
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +1 -1
- package/dist/collection/components/post-progressbar/post-progressbar.js +1 -1
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-side-navigation/post-side-navigation.js +1 -1
- package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +1 -1
- package/dist/collection/components/post-stepper/post-stepper.js +1 -1
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- package/dist/collection/components/post-tab-item/post-tab-item.js +2 -2
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +31 -3
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
- package/dist/collection/test-setup.js +28 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/p-CAL337jJ.js +1 -0
- package/dist/components/react/{p-Q5LQWL2X.js → p-CBVthgj-.js} +1 -1
- package/dist/components/react/{p-C8i672qm.js → p-CLkb55ud.js} +1 -1
- package/dist/components/react/{p-UXyZDQt4.js → p-CYBXVnUJ.js} +1 -1
- package/dist/components/react/{p-DRJ9K8sv.js → p-Ci-TsJYj.js} +1 -1
- package/dist/components/react/{p-DzYMQFK2.js → p-CtgMQs_Q.js} +1 -1
- package/dist/components/react/{p-BMCit4BU.js → p-D4LBzsbB.js} +1 -1
- package/dist/components/react/{p-5kW0ZF_f.js → p-D5lqOfVk.js} +1 -1
- package/dist/components/react/p-DGpWjdFJ.js +1 -0
- package/dist/components/react/{p-C_JY6ipN.js → p-DSk0Nq8U.js} +1 -1
- package/dist/components/react/{p-DygUkCKz.js → p-Db3d6dKF.js} +1 -1
- package/dist/components/react/{p-BeRGbt65.js → p-DkDIUTRi.js} +1 -1
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.js +1 -1
- package/dist/components/react/post-avatar.js +1 -1
- package/dist/components/react/post-back-to-top.js +1 -1
- package/dist/components/react/post-banner.js +1 -1
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +1 -1
- package/dist/components/react/post-closebutton.js +1 -1
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/post-date-picker.js +1 -1
- package/dist/components/react/post-footer.js +1 -1
- package/dist/components/react/post-header.js +1 -1
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.js +1 -1
- package/dist/components/react/post-language-menu.js +1 -1
- package/dist/components/react/post-linkarea.js +1 -1
- package/dist/components/react/post-listbox-option.js +1 -1
- package/dist/components/react/post-listbox.js +1 -1
- package/dist/components/react/post-logo.js +1 -1
- package/dist/components/react/post-mainnavigation.js +1 -1
- package/dist/components/react/post-megadropdown-trigger.js +1 -1
- package/dist/components/react/post-megadropdown.js +1 -1
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-number-input.js +1 -1
- package/dist/components/react/post-pagination.js +1 -1
- package/dist/components/react/post-popover-trigger.js +1 -1
- package/dist/components/react/post-popover.js +1 -1
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-progressbar.js +1 -1
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-side-navigation-trigger.js +1 -1
- package/dist/components/react/post-side-navigation.js +1 -1
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BdiQsTQm.js → package-CAL337jJ.js} +1 -1
- package/dist/esm/post-accordion_2.entry.js +1 -1
- package/dist/esm/post-autocomplete.entry.js +1 -1
- package/dist/esm/post-avatar.entry.js +1 -1
- package/dist/esm/post-back-to-top.entry.js +1 -1
- package/dist/esm/post-banner.entry.js +1 -1
- package/dist/esm/post-breadcrumb-item.entry.js +1 -1
- package/dist/esm/post-breadcrumbs.entry.js +1 -1
- package/dist/esm/post-closebutton_14.entry.js +83 -23
- package/dist/esm/post-collapsible_2.entry.js +1 -1
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/post-date-picker.entry.js +6 -5
- package/dist/esm/post-footer.entry.js +2 -2
- package/dist/esm/post-linkarea.entry.js +2 -2
- package/dist/esm/post-listbox-option.entry.js +3 -3
- package/dist/esm/post-listbox.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +3 -3
- package/dist/esm/post-pagination.entry.js +1 -1
- package/dist/esm/post-popover-trigger.entry.js +2 -2
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/post-progressbar.entry.js +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
- package/dist/esm/post-side-navigation.entry.js +2 -2
- package/dist/esm/post-stepper-item.entry.js +2 -2
- package/dist/esm/post-stepper.entry.js +2 -2
- package/dist/esm/post-tab-item.entry.js +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/post-tabs.entry.js +32 -4
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/post-components/{p-ab0500b7.entry.js → p-077be898.entry.js} +1 -1
- package/dist/post-components/{p-3712133b.entry.js → p-184bd61c.entry.js} +1 -1
- package/dist/post-components/p-1933e4fa.entry.js +1 -0
- package/dist/post-components/{p-c123ecde.entry.js → p-21e6f82a.entry.js} +1 -1
- package/dist/post-components/{p-534ca27e.entry.js → p-2220db4c.entry.js} +1 -1
- package/dist/post-components/{p-dffeb751.entry.js → p-2aff3873.entry.js} +1 -1
- package/dist/post-components/{p-6ad44691.entry.js → p-2b475cd7.entry.js} +1 -1
- package/dist/post-components/p-33a898ec.entry.js +1 -0
- package/dist/post-components/{p-0688d296.entry.js → p-405c1fff.entry.js} +1 -1
- package/dist/post-components/{p-379780a3.entry.js → p-5efaca25.entry.js} +1 -1
- package/dist/post-components/{p-6833be12.entry.js → p-6a9661d9.entry.js} +1 -1
- package/dist/post-components/{p-2a5312a7.entry.js → p-7dd192b3.entry.js} +1 -1
- package/dist/post-components/{p-0b0b2f02.entry.js → p-8e5052d5.entry.js} +1 -1
- package/dist/post-components/{p-9fedcfba.entry.js → p-9440738d.entry.js} +1 -1
- package/dist/post-components/{p-0d25c033.entry.js → p-965a02fb.entry.js} +1 -1
- package/dist/post-components/{p-d2de31b7.entry.js → p-9740719e.entry.js} +1 -1
- package/dist/post-components/{p-5369b9c2.entry.js → p-9af8f5af.entry.js} +1 -1
- package/dist/post-components/p-CAL337jJ.js +1 -0
- package/dist/post-components/p-a6971c1c.entry.js +1 -0
- package/dist/post-components/p-a7d8f328.entry.js +1 -0
- package/dist/post-components/{p-e11ccdbe.entry.js → p-bb9a0e1e.entry.js} +1 -1
- package/dist/post-components/{p-82c62e90.entry.js → p-bf8c7dca.entry.js} +1 -1
- package/dist/post-components/p-c3351def.entry.js +1 -0
- package/dist/post-components/{p-e560767b.entry.js → p-c87f33f0.entry.js} +1 -1
- package/dist/post-components/{p-456b0786.entry.js → p-e30b534d.entry.js} +1 -1
- package/dist/post-components/{p-330fd6cd.entry.js → p-e73eabac.entry.js} +1 -1
- package/dist/post-components/{p-f2629077.entry.js → p-e84fe883.entry.js} +1 -1
- package/dist/post-components/{p-229d324e.entry.js → p-eaa28736.entry.js} +1 -1
- package/dist/post-components/{p-91a2ef3c.entry.js → p-f2cb8ed1.entry.js} +1 -1
- package/dist/post-components/{p-f2b24bbd.entry.js → p-ffbf2375.entry.js} +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-header/post-header.d.ts +12 -0
- package/dist/types/components/post-tabs/post-tabs.d.ts +4 -0
- package/hydrate/index.js +140 -50
- package/hydrate/index.mjs +140 -50
- package/package.json +21 -21
- package/dist/components/react/p-BdiQsTQm.js +0 -1
- package/dist/components/react/p-E-8qAn1z.js +0 -1
- package/dist/post-components/p-3fdb8ebc.entry.js +0 -1
- package/dist/post-components/p-4d30c65d.entry.js +0 -1
- package/dist/post-components/p-95f5d5ea.entry.js +0 -1
- package/dist/post-components/p-9dd286bf.entry.js +0 -1
- package/dist/post-components/p-BdiQsTQm.js +0 -1
- package/dist/post-components/p-ee7fade4.entry.js +0 -1
|
@@ -4,7 +4,7 @@ var index = require('./index-DY4QxKNv.js');
|
|
|
4
4
|
var placement = require('./placement-qEFR9hmI.js');
|
|
5
5
|
require('./breakpoints-Kruvy8Dm.js');
|
|
6
6
|
var getFocusableChildren = require('./get-focusable-children-BGVgg7Te.js');
|
|
7
|
-
var _package = require('./package-
|
|
7
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
8
8
|
var oneOf = require('./one-of-qu7_EPxf.js');
|
|
9
9
|
var required = require('./required-Dgzo-rb5.js');
|
|
10
10
|
var type = require('./type-DBRxpBZI.js');
|
|
@@ -92,10 +92,10 @@ const PostPopover = class {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
|
-
return (index.h(index.Host, { key: '
|
|
95
|
+
return (index.h(index.Host, { key: 'd338887d42a4b5b092b5fa893acd660274fe6afd', "data-version": _package.version }, index.h("post-popovercontainer", { key: 'fe2f23d9da171f09358a583f7363f841bbcac379', arrow: this.arrow, placement: this.placement, edgeGap: this.edgeGap, autoHide: true, autoResize: true, ref: e => {
|
|
96
96
|
if (e)
|
|
97
97
|
this.popoverRef = e;
|
|
98
|
-
} }, index.h("div", { key: '
|
|
98
|
+
} }, index.h("div", { key: '800861e6a8de4f7ba07557209a79b930683c6f53', class: "popover-container" }, index.h("div", { key: '827bba6b75ca6107165042bd01831eba5a883900', class: "popover-content" }, index.h("slot", { key: 'ec6b46113f28406db2a9d7cd591839f7432ae525' })), index.h("post-closebutton", { key: 'ccf3460a1d13fedbc8fa070a4e12de9f217a9820' }, this.textClose)))));
|
|
99
99
|
}
|
|
100
100
|
get host() { return index.getElement(this); }
|
|
101
101
|
};
|
|
@@ -126,7 +126,7 @@ const PostProgressbar = class {
|
|
|
126
126
|
const max = this.getEffectiveMax();
|
|
127
127
|
const value = this.getEffectiveValue(min, max);
|
|
128
128
|
const percentage = ((value - min) / (max - min)) * 100;
|
|
129
|
-
return (index.h(index.Host, { key: '
|
|
129
|
+
return (index.h(index.Host, { key: '26bdbb5219393e8b44e2fe5395d8a4cd8aa7e18a', role: "progressbar", "aria-valuenow": value, "aria-valuemin": min, "aria-valuemax": max }, index.h("div", { key: '65b81479fac7aa6024556ef6589064f997f4394e', class: "progress-value", style: { '--post-progressbar-value': `${percentage}%` } })));
|
|
130
130
|
}
|
|
131
131
|
get host() { return index.getElement(this); }
|
|
132
132
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DY4QxKNv.js');
|
|
4
4
|
require('./breakpoints-Kruvy8Dm.js');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
6
6
|
var required = require('./required-Dgzo-rb5.js');
|
|
7
7
|
var type = require('./type-DBRxpBZI.js');
|
|
8
8
|
require('./create-validator-decorator-DVm_SDrR.js');
|
|
@@ -94,7 +94,7 @@ const PostRating = class {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
|
-
return (index.h(index.Host, { key: '
|
|
97
|
+
return (index.h(index.Host, { key: 'c793abbf5e0d01bb19dc4464ebd75249959a1717', "data-version": _package.version }, index.h("div", { key: '357946df40a3d3a85ece2d0ac6ecc761951d9471', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} / ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (index.h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
|
|
98
98
|
'star': true,
|
|
99
99
|
'before-hover': i < this.hoveredIndex,
|
|
100
100
|
'active': i < Math.round(this.currentRating),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DY4QxKNv.js');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
5
5
|
require('./breakpoints-Kruvy8Dm.js');
|
|
6
6
|
var eventFrom = require('./event-from-CTcQxB9-.js');
|
|
7
7
|
var getRoot = require('./get-root-B1FnQ50K.js');
|
|
@@ -93,7 +93,7 @@ const PostSideNavigationTrigger = class {
|
|
|
93
93
|
await this.sideNavigation?.toggle();
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
|
-
return (index.h(index.Host, { key: '
|
|
96
|
+
return (index.h(index.Host, { key: '2822a6c7246da96de537eff3e3fbf5a2db400547', "data-version": _package.version }, index.h("slot", { key: '0bb02d90c7916a4dbfe6dd7fc0f4325509939a80' })));
|
|
97
97
|
}
|
|
98
98
|
get host() { return index.getElement(this); }
|
|
99
99
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DY4QxKNv.js');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
5
5
|
var breakpoints = require('./breakpoints-Kruvy8Dm.js');
|
|
6
6
|
var getFocusableChildren = require('./get-focusable-children-BGVgg7Te.js');
|
|
7
7
|
var isFocusVisible = require('./is-focus-visible-B3CqVQsX.js');
|
|
@@ -144,7 +144,7 @@ const PostSideNavigation = class {
|
|
|
144
144
|
} }, index.h("slot", null), index.h("post-closebutton", { onClick: () => this.hide() }, this.textClose)));
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return (index.h(index.Host, { key: '
|
|
147
|
+
return (index.h(index.Host, { key: 'd323d8990ed9abfb5ca6c15daa70d49dabd496f9', "data-version": _package.version }, this.device === 'desktop' ? this.renderNav() : this.renderDialog()));
|
|
148
148
|
}
|
|
149
149
|
get host() { return index.getElement(this); }
|
|
150
150
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DY4QxKNv.js');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
5
5
|
|
|
6
6
|
const postStepperItemCss = () => `:host{grid-row:1;position:relative;padding-inline-start:0}:host::before,:host::after{content:"";display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - 2px)/2);height:2px;background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);inset-inline:0}:host(:not(:first-of-type)){padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){padding-inline-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);grid-column:span 2}:host(:not(:first-of-type,:last-of-type))::before{inset-inline-end:50%}:host(:not(:first-of-type,:last-of-type))::after{inset-inline-start:50%}:host(.stepper-item-current:not(:last-of-type))::after,:host(.stepper-item-current:first-of-type)::before,:host(.stepper-item-after-current)::before,:host(.stepper-item-after-current:last-of-type)::after{background-color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::before,:host(.stepper-item-completed)::after{background-color:var(--post-scheme-color-interactive-primary-selected-bg2);z-index:1}.stepper-item-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;position:relative;z-index:2;overflow:hidden;text-decoration:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);width:fit-content;overflow-wrap:anywhere;hyphens:auto;line-break:strict;font-size:var(--post-device-font-size-7)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content{margin-inline:auto;text-align:center}:host(:last-of-type)>.stepper-item-content{margin-inline-start:auto;margin-inline-end:-20px;text-align:end}:host(.stepper-item-completed)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-selected)>.stepper-item-content{font-weight:var(--post-device-font-weight-bold)}:host(.stepper-item-selected)>.stepper-item-content::before{font-weight:var(--post-device-font-weight-regular)}:host(.stepper-item-current)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3)}.stepper-item-content::before{content:var(--step-number, "?");display:flex;align-items:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);box-sizing:border-box;margin-block-end:var(--post-device-spacing-gap-1);color:var(--post-scheme-color-interactive-primary-disabled-fg3);background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-disabled-stroke3);border-radius:var(--post-device-border-radius-round);text-indent:initial}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::before{margin-inline:auto}:host(:last-of-type)>.stepper-item-content::before{margin-inline-start:auto}:host(.stepper-item-completed)>.stepper-item-content::before{color:rgba(0,0,0,0);background-color:var(--post-scheme-color-interactive-primary-selected-bg2);border-color:var(--post-scheme-color-interactive-primary-selected-stroke3)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3);background-color:var(--post-scheme-color-interactive-primary-enabled-bg2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3)}.stepper-item-content::after{display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2);z-index:1;mask-image:var(--post-icon-checkmark-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3)}:root,:host{--post-icon-checkmark-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hlY2ttYXJrLXNvbGlkIj48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0ibTcuNDkgMTIuOTktMy42NC0zLjljLS40Ny0uNS0uNDQtMS4zLjA2LTEuNzdzMS4yOS0uNDQgMS43Ny4wNmwxLjQ4IDEuNTggMy4wNS00LjYyYy4zOC0uNTggMS4xNi0uNzQgMS43My0uMzUuNTguMzguNzQgMS4xNi4zNSAxLjczeiIvPjwvc3ltYm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b2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZWNrbWFyay1zb2xpZCIvPjwvZz48L3N2Zz4=")}:host(:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size7)/2)}:host(:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(.stepper-item-completed)>.stepper-item-content::after{content:""}:host([aria-current=step])>.stepper-item-content::after{mask-image:var(--post-icon-edit-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3);inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:root,:host{--post-icon-edit-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktZWRpdC1zb2xpZCI+PHN5bWJvbCBpZD0iczE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxwYXRoIGQ9Im0xLjUgMTAuOTkgOC41LTguNXMuMDMuMDUuMDUuMDdsMy41IDMuNDUtOC41MiA4LjUxem0tLjkyIDEuMi0uNTYgMy44IDMuODEtLjU2LTMuMjQtMy4yNFptMTUuMjUtOS4zN0wxMy4xOS4xOGEuNjMuNjMgMCAwIDAtLjg4IDBsLTEuMjcgMS4yN3MuMDQuMDIuMDYuMDRsMy41IDMuNDUgMS4yMy0xLjIzYy4yNC0uMjQuMjQtLjY0IDAtLjg4WiIvPjwvc3ltYm9s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M0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWVkaXQtc29saWQiLz48L2c+PC9zdmc+")}:host([aria-current=step]:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:host([aria-current=step]:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size4)/2)}:host([aria-current=step]:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}@media screen and (max-width: 779.98px){:host{flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){flex:0 0 32px}:host(:last-of-type)::after{content:unset}.stepper-item-content{margin-inline:0 !important}.label{display:none}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host::before,:host::after{background-color:CanvasText !important}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after,:host(.stepper-item-completed)::before{background-color:Highlight !important}.stepper-item-content::before{forced-color-adjust:none}:host(.stepper-item-current) .stepper-item-content::before{background-color:Canvas;color:CanvasText}:host(.stepper-item-completed) .stepper-item-content::before,:host(.stepper-item-inactive) .stepper-item-content::before{border-color:Canvas;background-color:CanvasText}:host(.stepper-item-inactive) .stepper-item-content::before{color:Canvas}.stepper-item-content::after{color:Canvas}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}`;
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ const PostStepperItem = class {
|
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (index.h(index.Host, { key: '
|
|
13
|
+
return (index.h(index.Host, { key: '53b052a2b68a93df9fda7f80f23d602d8a8efc56', "data-version": _package.version, role: "listitem" }, index.h("span", { key: 'e06841841e7fad42ff9de3e39dadf5fab96b9952', class: "stepper-item-content" }, index.h("span", { key: 'f934ef19fbdd65111b7cf561dcc9297122d62595', class: "step-hidden-label visually-hidden" }), index.h("span", { key: '213db918f5ab854225974678c50176bb565ac2b1', class: "label" }, index.h("slot", { key: 'd8e067ea304700e37edb996a4c715d41e209b8d8' })))));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
PostStepperItem.style = postStepperItemCss();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DY4QxKNv.js');
|
|
4
4
|
require('./breakpoints-Kruvy8Dm.js');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
6
6
|
var required = require('./required-Dgzo-rb5.js');
|
|
7
7
|
var type = require('./type-DBRxpBZI.js');
|
|
8
8
|
var pattern = require('./pattern-EpwCKMyC.js');
|
|
@@ -114,7 +114,7 @@ const PostStepper = class {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
|
-
return (index.h(index.Host, { key: '
|
|
117
|
+
return (index.h(index.Host, { key: '52c9943bca4c1d7b1d964d812ce21d8b0eb2d236', "data-version": _package.version }, index.h("ol", { key: 'ea1f27a214d9cdf14b5f2d07f14a8d54836a32b3' }, index.h("slot", { key: '6f07fe49d55152123dc39645ef17bf5557753005', onSlotchange: () => this.updateSteps() })), index.h("div", { key: 'ad3af45bc5d1493f9f1084cc28c77c39d27cbd35', class: "active-step", "aria-hidden": "true" }, index.h("span", { key: '6e3f5decadc8bcc67812dd67f6efe0afa0613b46', class: "active-step-label" }, this.mobileActiveStepLabel), index.h("span", { key: '4aeb9376181d78007a929c5e8e4ba11c181039bb', innerHTML: this.mobileActiveStepName }))));
|
|
118
118
|
}
|
|
119
119
|
get host() { return index.getElement(this); }
|
|
120
120
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-DY4QxKNv.js');
|
|
4
4
|
require('./breakpoints-Kruvy8Dm.js');
|
|
5
5
|
var nanoid = require('./nanoid-CmjyF1Cm.js');
|
|
6
|
-
var _package = require('./package-
|
|
6
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
7
7
|
var required = require('./required-Dgzo-rb5.js');
|
|
8
8
|
var type = require('./type-DBRxpBZI.js');
|
|
9
9
|
require('./create-validator-decorator-DVm_SDrR.js');
|
|
@@ -48,7 +48,7 @@ const PostTabItem = class {
|
|
|
48
48
|
this.isPagesVariant = hasAnchor;
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (index.h(index.Host, { key: '
|
|
51
|
+
return (index.h(index.Host, { key: '974d9682ef0448cf3adf9481ba472a5c196349b3', id: this.tabId, role: this.isPagesVariant ? undefined : 'tab', "data-version": _package.version, "data-pages-variant": this.isPagesVariant.toString(), "aria-selected": this.isPagesVariant ? undefined : 'false', "aria-disabled": this.disabled ? 'true' : undefined, tabindex: this.isPagesVariant ? undefined : '-1', class: `${this.isPagesVariant ? 'nav-item' : 'tab-title'}${''}`, style: undefined }, index.h("slot", { key: '6a7ed6323892a40ea22e487bc9460af69fda02c6' })));
|
|
52
52
|
}
|
|
53
53
|
get host() { return index.getElement(this); }
|
|
54
54
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-DY4QxKNv.js');
|
|
4
4
|
require('./breakpoints-Kruvy8Dm.js');
|
|
5
5
|
var nanoid = require('./nanoid-CmjyF1Cm.js');
|
|
6
|
-
var _package = require('./package-
|
|
6
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
7
7
|
var required = require('./required-Dgzo-rb5.js');
|
|
8
8
|
var type = require('./type-DBRxpBZI.js');
|
|
9
9
|
require('./create-validator-decorator-DVm_SDrR.js');
|
|
@@ -29,7 +29,7 @@ const PostTabPanel = class {
|
|
|
29
29
|
this.panelId = `panel-${this.host.id || nanoid.nanoid(6)}`;
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (index.h(index.Host, { key: '
|
|
32
|
+
return (index.h(index.Host, { key: '07d93ddaa69253a956ed50cd9ecd6ed039fbc6e2', "data-version": _package.version, id: this.panelId, role: "tabpanel", slot: "panels", style: undefined }, index.h("slot", { key: 'd6887db4e0e4dc22f8f8fdf098d6068ef4bd1a91' })));
|
|
33
33
|
}
|
|
34
34
|
get host() { return index.getElement(this); }
|
|
35
35
|
};
|
|
@@ -4,7 +4,7 @@ var index = require('./index-DY4QxKNv.js');
|
|
|
4
4
|
var fade = require('./fade-CPQhl1fP.js');
|
|
5
5
|
require('./breakpoints-Kruvy8Dm.js');
|
|
6
6
|
var componentOnReady = require('./component-on-ready-CifOTqw1.js');
|
|
7
|
-
var _package = require('./package-
|
|
7
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
8
8
|
var oneOf = require('./one-of-qu7_EPxf.js');
|
|
9
9
|
var type = require('./type-DBRxpBZI.js');
|
|
10
10
|
require('./utils-s05L2ulk.js');
|
|
@@ -45,6 +45,18 @@ const PostTabs = class {
|
|
|
45
45
|
* Default is 'large'.
|
|
46
46
|
*/
|
|
47
47
|
this.size = 'large';
|
|
48
|
+
// Showing or hiding a scroll button changes the container width, which can happen in the middle of a scroll:
|
|
49
|
+
// the scroll target has to be recomputed, otherwise the scroll stops short of the end
|
|
50
|
+
this.handleContainerResize = () => {
|
|
51
|
+
this.updateScrollButtons();
|
|
52
|
+
// When the whole component resizes instead (e.g. the window gets narrower), the tabs keep their position
|
|
53
|
+
const hostWidth = this.host.clientWidth;
|
|
54
|
+
if (hostWidth !== this.hostWidth) {
|
|
55
|
+
this.hostWidth = hostWidth;
|
|
56
|
+
this.pendingScroll = undefined;
|
|
57
|
+
}
|
|
58
|
+
this.pendingScroll?.();
|
|
59
|
+
};
|
|
48
60
|
// Handles the visibility of scroll buttons based on the scroll position of the tabs container
|
|
49
61
|
this.updateScrollButtons = () => {
|
|
50
62
|
if (!this.tabsContainer)
|
|
@@ -128,7 +140,8 @@ const PostTabs = class {
|
|
|
128
140
|
this.contentObserver?.observe(this.host, config);
|
|
129
141
|
}
|
|
130
142
|
setupResizeObserver() {
|
|
131
|
-
this.
|
|
143
|
+
this.hostWidth = this.host.clientWidth;
|
|
144
|
+
this.resizeObserver = new ResizeObserver(this.handleContainerResize);
|
|
132
145
|
this.resizeObserver.observe(this.tabsContainer);
|
|
133
146
|
}
|
|
134
147
|
handleContentChange(mutations) {
|
|
@@ -397,11 +410,23 @@ const PostTabs = class {
|
|
|
397
410
|
const paddingStart = Number.parseFloat(style.paddingInlineStart) || 0;
|
|
398
411
|
const paddingEnd = Number.parseFloat(style.paddingInlineEnd) || 0;
|
|
399
412
|
const contentWidth = this.tabsContainer.clientWidth - paddingStart - paddingEnd;
|
|
413
|
+
const maxScrollLeft = this.tabsContainer.scrollWidth - this.tabsContainer.clientWidth;
|
|
414
|
+
const reachesEnd = sign > 0 && this.tabsContainer.scrollLeft + contentWidth >= maxScrollLeft;
|
|
415
|
+
this.pendingScroll = reachesEnd ? () => this.scrollToEnd() : undefined;
|
|
400
416
|
this.tabsContainer.scrollBy({
|
|
401
417
|
left: sign * contentWidth,
|
|
402
418
|
behavior: 'smooth',
|
|
403
419
|
});
|
|
404
420
|
}
|
|
421
|
+
scrollToEnd() {
|
|
422
|
+
const container = this.tabsContainer;
|
|
423
|
+
const maxScrollLeft = container.scrollWidth - container.clientWidth;
|
|
424
|
+
if (container.scrollLeft >= maxScrollLeft) {
|
|
425
|
+
this.pendingScroll = undefined;
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
container.scrollTo({ left: maxScrollLeft, behavior: 'smooth' });
|
|
429
|
+
}
|
|
405
430
|
scrollTabIntoView(tab, behavior = 'instant') {
|
|
406
431
|
const container = this.tabsContainer;
|
|
407
432
|
const style = getComputedStyle(container);
|
|
@@ -411,10 +436,13 @@ const PostTabs = class {
|
|
|
411
436
|
const tabRight = tabLeft + tab.offsetWidth;
|
|
412
437
|
const containerLeft = container.scrollLeft + paddingStart;
|
|
413
438
|
const containerRight = containerLeft + container.clientWidth - paddingStart - paddingEnd;
|
|
439
|
+
// Only aligning the tab to the right edge depends on the container width
|
|
440
|
+
this.pendingScroll = undefined;
|
|
414
441
|
if (tabLeft < containerLeft) {
|
|
415
442
|
container.scrollTo({ left: tabLeft - paddingStart, behavior });
|
|
416
443
|
}
|
|
417
444
|
else if (tabRight > containerRight) {
|
|
445
|
+
this.pendingScroll = () => this.scrollTabIntoView(tab, behavior);
|
|
418
446
|
container.scrollTo({ left: tabRight - container.clientWidth + paddingEnd, behavior });
|
|
419
447
|
}
|
|
420
448
|
}
|
|
@@ -425,10 +453,10 @@ const PostTabs = class {
|
|
|
425
453
|
render() {
|
|
426
454
|
const TabsContainer = this.isPagesVariant ? 'nav' : 'div';
|
|
427
455
|
const style = undefined;
|
|
428
|
-
return (index.h(index.Host, { key: '
|
|
456
|
+
return (index.h(index.Host, { key: '10c247c7c021a4fbbd8f79ce7b82888e0b7c8be2', "data-version": _package.version, style: style }, index.h("div", { key: '5ccae325884c7cff0eec399da23513c0b864dde0', class: "tabs-wrapper", part: "post-tabs" }, index.h("button", { key: 'dd38a22327801b790f849449055b765d2c1bc3b6', ref: el => (this.leftScrollButton = el), class: "scroll-btn scroll-btn-left", type: "button", "aria-label": this.textPrevTabItems, tabindex: -1, hidden: !this.showLeftScrollButton, onClick: () => this.scrollTabs('prev') }, index.h("post-icon", { key: '461a92ab071472c995d0adad5c73c75c82d982fe', name: "chevronleft" })), index.h(TabsContainer, { key: 'edecdbfdc681b96539e5a0755330faf1795ecb35', ref: el => (this.tabsContainer = el), class: "tabs", role: this.isPagesVariant ? undefined : 'tablist', "aria-label": this.isPagesVariant ? this.label : undefined }, index.h("slot", { key: '6240234a2168b2e889cab92a7688731ca93a63a6', onSlotchange: () => {
|
|
429
457
|
this.moveMisplacedTabs();
|
|
430
458
|
this.enableTabs();
|
|
431
|
-
} })), index.h("button", { key: '
|
|
459
|
+
} })), index.h("button", { key: 'a4030c48cbbefb578b03ee9dad35724a1fdd5547', ref: el => (this.rightScrollButton = el), class: "scroll-btn scroll-btn-right", type: "button", "aria-label": this.textNextTabItems, tabindex: -1, hidden: !this.showRightScrollButton, onClick: () => this.scrollTabs('next') }, index.h("post-icon", { key: 'd89c831bdd2faf1991793df47e7ca79bf49e5339', name: "chevronright" }))), !this.isPagesVariant && (index.h("div", { key: 'aba319437ba8bfb9e7a144a44efcc32d82ef6b02', class: "tab-content", part: "post-tabs-content" }, index.h("slot", { key: 'e689b5e3a030909c5c77899ac899ded2481f82a6', name: "panels", onSlotchange: () => this.moveMisplacedPanels() })))));
|
|
432
460
|
}
|
|
433
461
|
get host() { return index.getElement(this); }
|
|
434
462
|
static get watchers() { return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DY4QxKNv.js');
|
|
4
4
|
require('./breakpoints-Kruvy8Dm.js');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
6
6
|
var required = require('./required-Dgzo-rb5.js');
|
|
7
7
|
var type = require('./type-DBRxpBZI.js');
|
|
8
8
|
require('./create-validator-decorator-DVm_SDrR.js');
|
|
@@ -184,7 +184,7 @@ const PostTooltipTrigger = class {
|
|
|
184
184
|
this.tooltip?.hide();
|
|
185
185
|
}
|
|
186
186
|
render() {
|
|
187
|
-
return (index.h(index.Host, { key: '
|
|
187
|
+
return (index.h(index.Host, { key: '7811d666f249ead72768adaf5bdc92e47b447d8a', "data-version": _package.version }, index.h("slot", { key: '68e56c43ebec2abffbf049647ac08757dadf22f9', onSlotchange: () => this.handleSlotChange() })));
|
|
188
188
|
}
|
|
189
189
|
get host() { return index.getElement(this); }
|
|
190
190
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-DY4QxKNv.js');
|
|
4
4
|
var placement = require('./placement-qEFR9hmI.js');
|
|
5
5
|
require('./breakpoints-Kruvy8Dm.js');
|
|
6
|
-
var _package = require('./package-
|
|
6
|
+
var _package = require('./package-kgRYEtTJ.js');
|
|
7
7
|
var oneOf = require('./one-of-qu7_EPxf.js');
|
|
8
8
|
require('./create-validator-decorator-DVm_SDrR.js');
|
|
9
9
|
|
|
@@ -77,7 +77,7 @@ const PostTooltip = class {
|
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
79
|
const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
|
|
80
|
-
return (index.h(index.Host, { key: '
|
|
80
|
+
return (index.h(index.Host, { key: '083507ae592ce9be50f6b4217a8d13785039478d', "data-version": _package.version }, index.h("post-popovercontainer", { key: 'e0436489bd955cee95b287f35759c364b019be94', safeSpace: true, class: popoverClass, role: "tooltip", arrow: this.arrow, placement: this.placement, autoHide: true, onPostBeforeToggle: e => this.handleBeforeToggle(e), ref: (el) => (this.popoverRef = el) }, index.h("div", { key: '8e6417485a89f56c18e731351de0e9f5db2cdd9a', class: "tooltip-content" }, index.h("slot", { key: 'e4c9fed0c8a8454c20f504e38557abd8ea253a1b' })))));
|
|
81
81
|
}
|
|
82
82
|
get host() { return index.getElement(this); }
|
|
83
83
|
};
|