@quartzds/core 1.0.0-beta.91 → 1.0.0-beta.92
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/components/index.js +2 -2
- package/components/{p-2806fee1.js → p-50f85f75.js} +6 -30
- package/components/p-50f85f75.js.map +1 -0
- package/components/{p-fed0d11f.js → p-5570cc30.js} +2 -2
- package/components/{p-fed0d11f.js.map → p-5570cc30.js.map} +1 -1
- package/components/{p-c80f112a.js → p-70d12c72.js} +7 -24
- package/components/p-70d12c72.js.map +1 -0
- package/components/{p-ba880369.js → p-72c09714.js} +9 -3
- package/components/p-72c09714.js.map +1 -0
- package/components/{p-2bf0797c.js → p-9ffb4b49.js} +7 -7
- package/components/p-9ffb4b49.js.map +1 -0
- package/components/{p-3baf75f4.js → p-a529eb5c.js} +3 -3
- package/components/{p-3baf75f4.js.map → p-a529eb5c.js.map} +1 -1
- package/components/{p-a020ece3.js → p-b5608061.js} +10 -7
- package/components/p-b5608061.js.map +1 -0
- package/components/{p-d6e52d0b.js → p-b6c04008.js} +21 -13
- package/components/p-b6c04008.js.map +1 -0
- package/components/{p-a6310886.js → p-ba860c62.js} +10 -7
- package/components/p-ba860c62.js.map +1 -0
- package/components/{p-3c48ff53.js → p-e22dd76d.js} +2 -2
- package/components/{p-3c48ff53.js.map → p-e22dd76d.js.map} +1 -1
- package/components/{p-b4c302d4.js → p-e2a9e441.js} +3 -3
- package/components/{p-b4c302d4.js.map → p-e2a9e441.js.map} +1 -1
- package/components/qds-badge-counter.js +1 -1
- package/components/qds-badge-indicator.js +1 -1
- package/components/qds-breadcrumb-item.js +7 -4
- package/components/qds-breadcrumb-item.js.map +1 -1
- package/components/qds-button.js +1 -1
- package/components/qds-checkbox.js +1 -1
- package/components/qds-chip.js +12 -9
- package/components/qds-chip.js.map +1 -1
- package/components/qds-dialog.js +3 -3
- package/components/qds-dialog.js.map +1 -1
- package/components/qds-divider.js +1 -1
- package/components/qds-dropdown.js +3 -3
- package/components/qds-form-message.js +4 -4
- package/components/qds-icon.js +1 -1
- package/components/qds-inline-link.js +4 -4
- package/components/qds-input.js +43 -17
- package/components/qds-input.js.map +1 -1
- package/components/qds-label.js +1 -1
- package/components/qds-list-item.js +5 -5
- package/components/qds-loader.js +3 -3
- package/components/qds-nav-list-item.js +6 -6
- package/components/qds-progress-bar.js +3 -3
- package/components/qds-radio.js +7 -7
- package/components/qds-radio.js.map +1 -1
- package/components/qds-select.js +2 -2
- package/components/qds-standalone-link.js +4 -4
- package/components/qds-switch.js +5 -5
- package/components/qds-switch.js.map +1 -1
- package/components/qds-tab.js +7 -7
- package/components/qds-tabbar.js +7 -7
- package/components/qds-table-body.js +2 -2
- package/components/qds-table-cell.js +2 -2
- package/components/qds-table-head-cell.js +1 -1
- package/components/qds-table-head.js +2 -2
- package/components/qds-table-row.js +2 -2
- package/components/qds-table.js +2 -2
- package/components/qds-tag.js +1 -1
- package/components/qds-textarea.js +1 -1
- package/components/qds-title.js +1 -1
- package/components/qds-tooltip.js +1 -1
- package/dist/cjs/{index-523dd2e0.js → index-dbcccf98.js} +6 -29
- package/dist/cjs/index-dbcccf98.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{library-41b19b9e.js → library-23467d99.js} +8 -2
- package/dist/cjs/library-23467d99.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/qds-badge-counter_2.cjs.entry.js +1 -1
- package/dist/cjs/qds-breadcrumb-item.cjs.entry.js +6 -3
- package/dist/cjs/qds-breadcrumb-item.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-button.cjs.entry.js +16 -8
- package/dist/cjs/qds-button.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/qds-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-chip.cjs.entry.js +10 -7
- package/dist/cjs/qds-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-dialog.cjs.entry.js +3 -3
- package/dist/cjs/qds-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-divider.cjs.entry.js +2 -2
- package/dist/cjs/qds-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/qds-form-message.cjs.entry.js +3 -3
- package/dist/cjs/qds-icon.cjs.entry.js +3 -3
- package/dist/cjs/qds-inline-link.cjs.entry.js +3 -3
- package/dist/cjs/qds-input.cjs.entry.js +36 -11
- package/dist/cjs/qds-input.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-label.cjs.entry.js +8 -5
- package/dist/cjs/qds-label.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-list-item.cjs.entry.js +1 -1
- package/dist/cjs/qds-loader.cjs.entry.js +2 -2
- package/dist/cjs/qds-nav-list-item.cjs.entry.js +4 -4
- package/dist/cjs/qds-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/qds-radio.cjs.entry.js +4 -4
- package/dist/cjs/qds-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-select.cjs.entry.js +1 -1
- package/dist/cjs/qds-standalone-link.cjs.entry.js +3 -3
- package/dist/cjs/qds-switch.cjs.entry.js +5 -5
- package/dist/cjs/qds-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-tab.cjs.entry.js +1 -1
- package/dist/cjs/qds-tabbar.cjs.entry.js +1 -1
- package/dist/cjs/qds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/qds-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/qds-table-head-cell.cjs.entry.js +1 -1
- package/dist/cjs/qds-table-head.cjs.entry.js +2 -2
- package/dist/cjs/qds-table-row.cjs.entry.js +2 -2
- package/dist/cjs/qds-table.cjs.entry.js +2 -2
- package/dist/cjs/qds-tag_2.cjs.entry.js +7 -4
- package/dist/cjs/qds-tag_2.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-textarea.cjs.entry.js +1 -1
- package/dist/cjs/qds-tooltip.cjs.entry.js +6 -21
- package/dist/cjs/qds-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/qds.cjs.js +2 -2
- package/dist/custom-elements.json +50 -20
- package/dist/docs.json +1 -1
- package/dist/esm/{index-b1d6acd2.js → index-bc9462c1.js} +6 -30
- package/dist/esm/index-bc9462c1.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/{library-2e5458af.js → library-52ae166a.js} +8 -2
- package/dist/esm/library-52ae166a.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/qds-badge-counter_2.entry.js +1 -1
- package/dist/esm/qds-breadcrumb-item.entry.js +6 -3
- package/dist/esm/qds-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/qds-button.entry.js +16 -8
- package/dist/esm/qds-button.entry.js.map +1 -1
- package/dist/esm/qds-checkbox.entry.js +3 -3
- package/dist/esm/qds-checkbox.entry.js.map +1 -1
- package/dist/esm/qds-chip.entry.js +10 -7
- package/dist/esm/qds-chip.entry.js.map +1 -1
- package/dist/esm/qds-dialog.entry.js +3 -3
- package/dist/esm/qds-dialog.entry.js.map +1 -1
- package/dist/esm/qds-divider.entry.js +2 -2
- package/dist/esm/qds-dropdown.entry.js +3 -3
- package/dist/esm/qds-form-message.entry.js +3 -3
- package/dist/esm/qds-icon.entry.js +3 -3
- package/dist/esm/qds-inline-link.entry.js +3 -3
- package/dist/esm/qds-input.entry.js +36 -11
- package/dist/esm/qds-input.entry.js.map +1 -1
- package/dist/esm/qds-label.entry.js +8 -5
- package/dist/esm/qds-label.entry.js.map +1 -1
- package/dist/esm/qds-list-item.entry.js +1 -1
- package/dist/esm/qds-loader.entry.js +2 -2
- package/dist/esm/qds-nav-list-item.entry.js +4 -4
- package/dist/esm/qds-progress-bar.entry.js +3 -3
- package/dist/esm/qds-radio.entry.js +4 -4
- package/dist/esm/qds-radio.entry.js.map +1 -1
- package/dist/esm/qds-select.entry.js +1 -1
- package/dist/esm/qds-standalone-link.entry.js +3 -3
- package/dist/esm/qds-switch.entry.js +5 -5
- package/dist/esm/qds-switch.entry.js.map +1 -1
- package/dist/esm/qds-tab.entry.js +1 -1
- package/dist/esm/qds-tabbar.entry.js +1 -1
- package/dist/esm/qds-table-body.entry.js +2 -2
- package/dist/esm/qds-table-cell.entry.js +2 -2
- package/dist/esm/qds-table-head-cell.entry.js +1 -1
- package/dist/esm/qds-table-head.entry.js +2 -2
- package/dist/esm/qds-table-row.entry.js +2 -2
- package/dist/esm/qds-table.entry.js +2 -2
- package/dist/esm/qds-tag_2.entry.js +7 -4
- package/dist/esm/qds-tag_2.entry.js.map +1 -1
- package/dist/esm/qds-textarea.entry.js +1 -1
- package/dist/esm/qds-tooltip.entry.js +6 -21
- package/dist/esm/qds-tooltip.entry.js.map +1 -1
- package/dist/esm/qds.js +3 -3
- package/dist/types/components/input/input.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +0 -2
- package/hydrate/index.js +134 -115
- package/hydrate/index.mjs +134 -115
- package/package.json +1 -1
- package/components/p-2806fee1.js.map +0 -1
- package/components/p-2bf0797c.js.map +0 -1
- package/components/p-a020ece3.js.map +0 -1
- package/components/p-a6310886.js.map +0 -1
- package/components/p-ba880369.js.map +0 -1
- package/components/p-c80f112a.js.map +0 -1
- package/components/p-d6e52d0b.js.map +0 -1
- package/dist/cjs/index-523dd2e0.js.map +0 -1
- package/dist/cjs/library-41b19b9e.js.map +0 -1
- package/dist/esm/index-b1d6acd2.js.map +0 -1
- package/dist/esm/library-2e5458af.js.map +0 -1
package/hydrate/index.js
CHANGED
|
@@ -133,7 +133,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
const NAMESPACE = 'qds';
|
|
136
|
-
const BUILD = /* qds */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, constructableCSS: false, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: false, invisiblePrehydration: false, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg:
|
|
136
|
+
const BUILD = /* qds */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, constructableCSS: false, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: false, invisiblePrehydration: false, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
137
137
|
|
|
138
138
|
/*
|
|
139
139
|
Stencil Hydrate Platform v4.27.1 | MIT Licensed | https://stenciljs.com
|
|
@@ -144,10 +144,6 @@ var __export = (target, all) => {
|
|
|
144
144
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
-
// src/utils/constants.ts
|
|
148
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
149
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
150
|
-
|
|
151
147
|
// src/runtime/asset-path.ts
|
|
152
148
|
var getAssetPath = (path) => {
|
|
153
149
|
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
@@ -1571,21 +1567,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1571
1567
|
updateElement(null, newVNode2, isSvgMode);
|
|
1572
1568
|
}
|
|
1573
1569
|
} else {
|
|
1574
|
-
if (!isSvgMode) {
|
|
1575
|
-
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1576
|
-
}
|
|
1577
1570
|
if (!win.document) {
|
|
1578
1571
|
throw new Error(
|
|
1579
1572
|
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
1580
1573
|
);
|
|
1581
1574
|
}
|
|
1582
|
-
elm = newVNode2.$elm$ = win.document.
|
|
1583
|
-
isSvgMode ? SVG_NS : HTML_NS,
|
|
1575
|
+
elm = newVNode2.$elm$ = win.document.createElement(
|
|
1584
1576
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1585
|
-
)
|
|
1586
|
-
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
1587
|
-
isSvgMode = false;
|
|
1588
|
-
}
|
|
1577
|
+
);
|
|
1589
1578
|
{
|
|
1590
1579
|
updateElement(null, newVNode2, isSvgMode);
|
|
1591
1580
|
}
|
|
@@ -1600,13 +1589,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1600
1589
|
}
|
|
1601
1590
|
}
|
|
1602
1591
|
}
|
|
1603
|
-
{
|
|
1604
|
-
if (newVNode2.$tag$ === "svg") {
|
|
1605
|
-
isSvgMode = false;
|
|
1606
|
-
} else if (elm.tagName === "foreignObject") {
|
|
1607
|
-
isSvgMode = true;
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
1592
|
}
|
|
1611
1593
|
elm["s-hn"] = hostTagName;
|
|
1612
1594
|
{
|
|
@@ -1805,13 +1787,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1805
1787
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
1806
1788
|
const oldChildren = oldVNode.$children$;
|
|
1807
1789
|
const newChildren = newVNode2.$children$;
|
|
1808
|
-
const tag = newVNode2.$tag$;
|
|
1809
1790
|
const text = newVNode2.$text$;
|
|
1810
1791
|
let defaultHolder;
|
|
1811
1792
|
if (text === null) {
|
|
1812
|
-
{
|
|
1813
|
-
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1814
|
-
}
|
|
1815
1793
|
{
|
|
1816
1794
|
updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
|
|
1817
1795
|
}
|
|
@@ -1828,9 +1806,6 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1828
1806
|
) {
|
|
1829
1807
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1830
1808
|
}
|
|
1831
|
-
if (isSvgMode && tag === "svg") {
|
|
1832
|
-
isSvgMode = false;
|
|
1833
|
-
}
|
|
1834
1809
|
} else if ((defaultHolder = elm["s-cr"])) {
|
|
1835
1810
|
defaultHolder.parentNode.textContent = text;
|
|
1836
1811
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -3143,6 +3118,15 @@ var registerComponents = (Cstrs) => {
|
|
|
3143
3118
|
}
|
|
3144
3119
|
};
|
|
3145
3120
|
var win = window;
|
|
3121
|
+
var readTask = (cb) => {
|
|
3122
|
+
nextTick(() => {
|
|
3123
|
+
try {
|
|
3124
|
+
cb();
|
|
3125
|
+
} catch (e) {
|
|
3126
|
+
consoleError(e);
|
|
3127
|
+
}
|
|
3128
|
+
});
|
|
3129
|
+
};
|
|
3146
3130
|
var writeTask = (cb) => {
|
|
3147
3131
|
nextTick(() => {
|
|
3148
3132
|
try {
|
|
@@ -3609,7 +3593,7 @@ var __classPrivateFieldSet$o = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
3609
3593
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
3610
3594
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
3611
3595
|
};
|
|
3612
|
-
var _Button_instances, _Button_button, _Button_span, _Button_ro, _Button_buttonType_get, _Button_iconOnly_get, _Button_computedAction_get, _Button_computedActionIcon_get, _Button_computedDisabled_get, _Button_computedImportance_get, _Button_computedSize_get, _Button_onBlur, _Button_onFocus, _Button_buttonRef, _Button_spanRef, _Button_tooltipRef, _Button_defineGetter;
|
|
3596
|
+
var _Button_instances, _Button_button, _Button_span, _Button_ro, _Button_buttonType_get, _Button_iconOnly_get, _Button_computedAction_get, _Button_computedActionIcon_get, _Button_computedDisabled_get, _Button_computedImportance_get, _Button_computedSize_get, _Button_onBlur, _Button_onFocus, _Button_buttonRef, _Button_spanRef, _Button_tooltipRef, _Button_onClick, _Button_defineGetter;
|
|
3613
3597
|
const isCounter$1 = (value) => typeof value === 'string'
|
|
3614
3598
|
? !Number.isNaN(Number.parseFloat(value))
|
|
3615
3599
|
: typeof value === 'number';
|
|
@@ -3781,6 +3765,11 @@ class Button {
|
|
|
3781
3765
|
// eslint-disable-next-line no-param-reassign
|
|
3782
3766
|
tooltip.target = __classPrivateFieldGet$v(this, _Button_button, "f");
|
|
3783
3767
|
});
|
|
3768
|
+
_Button_onClick.set(this, (event) => {
|
|
3769
|
+
if (__classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedDisabled_get)) {
|
|
3770
|
+
event.stopImmediatePropagation();
|
|
3771
|
+
}
|
|
3772
|
+
});
|
|
3784
3773
|
}
|
|
3785
3774
|
onClick(event) {
|
|
3786
3775
|
if (__classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedDisabled_get)) {
|
|
@@ -3811,7 +3800,10 @@ class Button {
|
|
|
3811
3800
|
__classPrivateFieldGet$v(this, _Button_ro, "f").disconnect();
|
|
3812
3801
|
if (!__classPrivateFieldGet$v(this, _Button_span, "f"))
|
|
3813
3802
|
return;
|
|
3814
|
-
|
|
3803
|
+
const span = __classPrivateFieldGet$v(this, _Button_span, "f");
|
|
3804
|
+
readTask(() => {
|
|
3805
|
+
this.tooltip = isOverflowing(span);
|
|
3806
|
+
});
|
|
3815
3807
|
__classPrivateFieldSet$o(this, _Button_ro, new ResizeObserver(([spanEntry]) => {
|
|
3816
3808
|
this.tooltip = isOverflowing(spanEntry.target);
|
|
3817
3809
|
}), "f");
|
|
@@ -3840,16 +3832,16 @@ class Button {
|
|
|
3840
3832
|
const ariaLabel = hasBadgeProperties
|
|
3841
3833
|
? `${this.text} ${this.badge} ${this.badgeDescription}`
|
|
3842
3834
|
: this.text;
|
|
3843
|
-
return (hAsync("div", { key: '
|
|
3835
|
+
return (hAsync("div", { key: 'f45c1caa74aad6de1925b1420269dd80778aa481', class: "qds-container", onClick: __classPrivateFieldGet$v(this, _Button_onClick, "f"), "aria-hidden": "true" }, hAsync(Tag, { key: 'ff1c91a47ce157c2060678634e85bbfc86a4799b', "aria-hidden": "true", class: {
|
|
3844
3836
|
'qds-button': true,
|
|
3845
3837
|
'qds-disabled': Tag === 'a' ? __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedDisabled_get) : false,
|
|
3846
3838
|
'qds-icon-only': __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_iconOnly_get),
|
|
3847
|
-
}, "data-importance": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedImportance_get), "data-size": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get), "data-action": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedAction_get), disabled: Tag === 'a' ? undefined : this.disabled, download: Tag === 'a' ? this.download : undefined, formAction: this.formAction, formMethod: this.formMethod, formNoValidate: this.formNoValidate, formTarget: this.formTarget, href: Tag === 'a' ? this.href : undefined, name: Tag === 'a' ? undefined : this.name, onBlur: __classPrivateFieldGet$v(this, _Button_onBlur, "f"), onFocus: __classPrivateFieldGet$v(this, _Button_onFocus, "f"), ref: __classPrivateFieldGet$v(this, _Button_buttonRef, "f"), rel: Tag === 'a' ? this.rel : undefined, tabIndex: __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedDisabled_get) ? disabledTabIndex : this.tabIndex, target: Tag === 'a' ? this.target : undefined, type: Tag === 'a' ? undefined : __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_buttonType_get), value: Tag === 'a' ? undefined : this.value, "aria-label": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_iconOnly_get) ? ariaLabel : undefined }, this.iconName !== undefined && this.iconName !== '' && (hAsync("qds-icon", { key: '
|
|
3839
|
+
}, "data-importance": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedImportance_get), "data-size": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get), "data-action": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedAction_get), disabled: Tag === 'a' ? undefined : this.disabled, download: Tag === 'a' ? this.download : undefined, formAction: this.formAction, formMethod: this.formMethod, formNoValidate: this.formNoValidate, formTarget: this.formTarget, href: Tag === 'a' ? this.href : undefined, name: Tag === 'a' ? undefined : this.name, onBlur: __classPrivateFieldGet$v(this, _Button_onBlur, "f"), onFocus: __classPrivateFieldGet$v(this, _Button_onFocus, "f"), ref: __classPrivateFieldGet$v(this, _Button_buttonRef, "f"), rel: Tag === 'a' ? this.rel : undefined, tabIndex: __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedDisabled_get) ? disabledTabIndex : this.tabIndex, target: Tag === 'a' ? this.target : undefined, type: Tag === 'a' ? undefined : __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_buttonType_get), value: Tag === 'a' ? undefined : this.value, "aria-label": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_iconOnly_get) ? ariaLabel : undefined }, this.iconName !== undefined && this.iconName !== '' && (hAsync("qds-icon", { key: '3de49085a736485d89ebe09d035b95ebf0db1431', "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get), library: this.iconLibrary, name: this.iconName })), !__classPrivateFieldGet$v(this, _Button_instances, "a", _Button_iconOnly_get) && (hAsync("span", { key: '112c6846fe1e0dbfab3228583f2d19e2a320479d', class: "qds-overflow", "data-size": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get), ref: __classPrivateFieldGet$v(this, _Button_spanRef, "f") }, this.text)), isIndicator$1(this.badge) && (hAsync("qds-badge-indicator", { key: 'b2f02a783ec8803666c95fca1c833340cec9586e', class: "qds-indicator", status: this.badgeIndicatorStatus, description: this.badgeDescription, size: __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get), strokeRing: true })), isCounter$1(this.badge) && (hAsync("qds-badge-counter", { key: '5932deee9a291c7820cd4bdb25dc676e76752808', class: {
|
|
3848
3840
|
'qds-indicator': __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_iconOnly_get),
|
|
3849
|
-
}, description: this.badgeDescription, importance: __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedImportance_get), size: __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get), strokeRing: true, value: this.badge })), __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedActionIcon_get) !== undefined && (hAsync("qds-icon", { key: '
|
|
3841
|
+
}, description: this.badgeDescription, importance: __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedImportance_get), size: __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get), strokeRing: true, value: this.badge })), __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedActionIcon_get) !== undefined && (hAsync("qds-icon", { key: '4a00d253213e8a8f02c2fccbff0811e2375a45bf', "aria-hidden": "true", class: "qds-icon qds-action", "data-size": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get), library: "core", name: __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedActionIcon_get) }))), hAsync("div", { key: '700f9ecf34b4193d6566ae7a515d463ccc29cb6b', class: {
|
|
3850
3842
|
'qds-focus-ring': true,
|
|
3851
3843
|
'qds-icon-only': __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_iconOnly_get),
|
|
3852
|
-
}, "data-importance": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedImportance_get), "data-size": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get) }), this.tooltip && (hAsync("qds-tooltip", { key: '
|
|
3844
|
+
}, "data-importance": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedImportance_get), "data-size": __classPrivateFieldGet$v(this, _Button_instances, "a", _Button_computedSize_get) }), this.tooltip && (hAsync("qds-tooltip", { key: '56020215ee6c18b8362c3e85f60f00864d06ec98', "aria-hidden": "true", ref: __classPrivateFieldGet$v(this, _Button_tooltipRef, "f") }, this.text))));
|
|
3853
3845
|
}
|
|
3854
3846
|
static get delegatesFocus() { return true; }
|
|
3855
3847
|
static get formAssociated() { return true; }
|
|
@@ -3899,7 +3891,7 @@ class Button {
|
|
|
3899
3891
|
"$attrsToReflect$": []
|
|
3900
3892
|
}; }
|
|
3901
3893
|
}
|
|
3902
|
-
_Button_button = new WeakMap(), _Button_span = new WeakMap(), _Button_ro = new WeakMap(), _Button_onBlur = new WeakMap(), _Button_onFocus = new WeakMap(), _Button_buttonRef = new WeakMap(), _Button_spanRef = new WeakMap(), _Button_tooltipRef = new WeakMap(), _Button_instances = new WeakSet(), _Button_buttonType_get = function _Button_buttonType_get() {
|
|
3894
|
+
_Button_button = new WeakMap(), _Button_span = new WeakMap(), _Button_ro = new WeakMap(), _Button_onBlur = new WeakMap(), _Button_onFocus = new WeakMap(), _Button_buttonRef = new WeakMap(), _Button_spanRef = new WeakMap(), _Button_tooltipRef = new WeakMap(), _Button_onClick = new WeakMap(), _Button_instances = new WeakSet(), _Button_buttonType_get = function _Button_buttonType_get() {
|
|
3903
3895
|
if (this.type === undefined)
|
|
3904
3896
|
return this.internals.form ? 'submit' : 'button';
|
|
3905
3897
|
return this.type;
|
|
@@ -3959,7 +3951,7 @@ _Button_button = new WeakMap(), _Button_span = new WeakMap(), _Button_ro = new W
|
|
|
3959
3951
|
Object.defineProperty(this.host, p, { enumerable: true, get });
|
|
3960
3952
|
};
|
|
3961
3953
|
|
|
3962
|
-
const checkboxCss = ":host([hidden]){display:none!important}:host{display:inline-block;line-height:0}.qds-box,.qds-checkbox,.qds-icon{grid-area:
|
|
3954
|
+
const checkboxCss = ":host([hidden]){display:none!important}:host{display:inline-block;line-height:0}.qds-box,.qds-checkbox,.qds-icon{grid-area:a;place-self:center}.qds-box,.qds-icon{display:none;pointer-events:none}.qds-box{border-radius:var(--qds-control-toggle-indicator-border-radius)}.qds-container{align-self:flex-start;display:grid;grid-template-areas:\"a\"}.qds-icon{color:var(--qds-theme-signature-color-contrast)}.qds-label{cursor:pointer;display:inline-flex;width:inherit}.qds-label-inner{flex:1 1 auto;min-width:0}.qds-checkbox{-webkit-appearance:none;appearance:none;background-color:var(--qds-theme-control-input-background);border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius);cursor:pointer;margin:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}.qds-checkbox:focus-visible{outline:var(--qds-theme-focus-border) solid var(--qds-focus-border-width);outline-offset:var(--qds-focus-border-offset)}.qds-checkbox:active~.qds-box,.qds-checkbox:hover~.qds-box{display:block}.qds-checkbox:hover~.qds-box{background-color:var(--qds-theme-signature-color-hover)}.qds-checkbox:active~.qds-box{background-color:var(--qds-theme-signature-color-pressed)}.qds-checkbox:checked~.qds-checked,.qds-checkbox:indeterminate~.qds-indeterminate{display:block}.qds-checkbox:checked,.qds-checkbox:indeterminate{background-color:var(--qds-theme-signature-color-default);border-color:#0000}.qds-checkbox:checked:hover,.qds-checkbox:indeterminate:hover{background-color:var(--qds-theme-signature-color-hover)}.qds-checkbox:checked:active,.qds-checkbox:indeterminate:active{background-color:var(--qds-theme-signature-color-pressed)}[aria-disabled=true]{opacity:var(--qds-theme-disabled);pointer-events:none}.qds-checkbox[data-size=small]{height:var(--qds-control-toggle-box-small-size);width:var(--qds-control-toggle-box-small-size)}.qds-icon[data-size=small]{font-size:var(--qds-control-small-icon-size)}.qds-box[data-size=small]{height:var(--qds-control-toggle-indicator-small-size);width:var(--qds-control-toggle-indicator-small-size)}.qds-inline[data-size=small]{margin-block:var(--qds-control-small-padding-auto-height)}.qds-label[data-size=small]{gap:var(--qds-control-small-gap-siblings-related)}.qds-checkbox[data-size=standard]{height:var(--qds-control-toggle-box-standard-size);width:var(--qds-control-toggle-box-standard-size)}.qds-icon[data-size=standard]{font-size:var(--qds-control-standard-icon-size)}.qds-box[data-size=standard]{height:var(--qds-control-toggle-indicator-standard-size);width:var(--qds-control-toggle-indicator-standard-size)}.qds-inline[data-size=standard]{margin-block:var(--qds-control-standard-padding-auto-height)}.qds-label[data-size=standard]{gap:var(--qds-control-standard-gap-siblings-related)}.qds-checkbox[data-size=large]{height:var(--qds-control-toggle-box-large-size);width:var(--qds-control-toggle-box-large-size)}.qds-icon[data-size=large]{font-size:var(--qds-control-large-icon-size)}.qds-box[data-size=large]{height:var(--qds-control-toggle-indicator-large-size);width:var(--qds-control-toggle-indicator-large-size)}.qds-inline[data-size=large]{margin-block:var(--qds-control-large-padding-auto-height)}.qds-label[data-size=large]{gap:var(--qds-control-large-gap-siblings-related)}";
|
|
3963
3955
|
var QdsCheckboxStyle0 = checkboxCss;
|
|
3964
3956
|
|
|
3965
3957
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -4138,7 +4130,7 @@ class Checkbox {
|
|
|
4138
4130
|
}, "data-size": __classPrivateFieldGet$u(this, _Checkbox_instances, "a", _Checkbox_computedSize_get), library: "core", name: "checked" }), hAsync("div", { key: 'cc97d644310d3abdb01d115dbfe6e9f2a7a1ba30', class: "qds-box", "data-size": __classPrivateFieldGet$u(this, _Checkbox_instances, "a", _Checkbox_computedSize_get) }), hAsync("qds-icon", { key: '23fa431abd3bee1a88be51e243d5c7518732825d', "aria-hidden": "true", class: {
|
|
4139
4131
|
'qds-icon': true,
|
|
4140
4132
|
'qds-indeterminate': true,
|
|
4141
|
-
}, "data-size": __classPrivateFieldGet$u(this, _Checkbox_instances, "a", _Checkbox_computedSize_get), library: "core", name: "indeterminate" })), __classPrivateFieldGet$u(this, _Checkbox_instances, "a", _Checkbox_hasText_get) && (hAsync("qds-label", { key: '
|
|
4133
|
+
}, "data-size": __classPrivateFieldGet$u(this, _Checkbox_instances, "a", _Checkbox_computedSize_get), library: "core", name: "indeterminate" })), __classPrivateFieldGet$u(this, _Checkbox_instances, "a", _Checkbox_hasText_get) && (hAsync("qds-label", { key: 'c412f04c3558b1e1513c67cc314d624ab83f2b15', class: "qds-label-inner", required: this.required, size: this.size, text: this.text }))));
|
|
4142
4134
|
}
|
|
4143
4135
|
static get delegatesFocus() { return true; }
|
|
4144
4136
|
static get formAssociated() { return true; }
|
|
@@ -4380,7 +4372,10 @@ class Chip {
|
|
|
4380
4372
|
}
|
|
4381
4373
|
componentDidLoad() {
|
|
4382
4374
|
invariant(__classPrivateFieldGet$t(this, _Chip_span, "f"));
|
|
4383
|
-
|
|
4375
|
+
const span = __classPrivateFieldGet$t(this, _Chip_span, "f");
|
|
4376
|
+
readTask(() => {
|
|
4377
|
+
this.tooltip = isOverflowing(span);
|
|
4378
|
+
});
|
|
4384
4379
|
__classPrivateFieldSet$m(this, _Chip_ro, new ResizeObserver(([spanEntry]) => {
|
|
4385
4380
|
this.tooltip = isOverflowing(spanEntry.target);
|
|
4386
4381
|
}), "f");
|
|
@@ -4391,21 +4386,21 @@ class Chip {
|
|
|
4391
4386
|
__classPrivateFieldGet$t(this, _Chip_ro, "f").disconnect();
|
|
4392
4387
|
}
|
|
4393
4388
|
render() {
|
|
4394
|
-
return (hAsync("div", { key: '
|
|
4389
|
+
return (hAsync("div", { key: '38e103b1adf48ce498541e48814bfc5201d1bf9d', class: "qds-chip", ref: __classPrivateFieldGet$t(this, _Chip_chipRef, "f") }, __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedType_get) === 'closable' && (hAsync("div", { key: 'fde779252f3566ee87c9cf80eeccf6304dc5af0e', "aria-disabled": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedDisabled_get) ? 'true' : undefined, class: {
|
|
4395
4390
|
'qds-container': true,
|
|
4396
4391
|
'qds-closable-chip': true,
|
|
4397
4392
|
'qds-pressed-state': this.isPressed,
|
|
4398
|
-
}, "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get) }, this.iconName !== undefined && this.iconName !== '' && (hAsync("qds-icon", { key: '
|
|
4393
|
+
}, "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get) }, this.iconName !== undefined && this.iconName !== '' && (hAsync("qds-icon", { key: '71e78c676f85f4cf9a4086ec58f889b923f56231', "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get), library: this.iconLibrary, name: this.iconName })), hAsync("span", { key: '5c63d83cbe0ebc064bbf244a67c798ae91b717da', class: "qds-text", "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get), ref: __classPrivateFieldGet$t(this, _Chip_spanRef, "f") }, this.text), hAsync("button", { key: 'c063e0d2015317f703decc3c6bc271d1e4758ecb', "aria-label": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_ariaLabel_get), class: "qds-target", "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get), disabled: __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedDisabled_get), onClick: __classPrivateFieldGet$t(this, _Chip_onIconClick, "f"), tabIndex: __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedDisabled_get) ? undefined : this.tabIndex, type: "button", ...__classPrivateFieldGet$t(this, _Chip_inheritedAttributes, "f") }, hAsync("qds-icon", { key: '985982fceb4c44a74aa32bfe289e104ec6ceded2', "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get), library: "core", name: "clear" })))), __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedType_get) === 'selectable' && (
|
|
4399
4394
|
// eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
4400
|
-
hAsync("label", { key: '
|
|
4395
|
+
hAsync("label", { key: 'c21380e3727553860bd5d8ab743ab695e7cbf67e', "aria-disabled": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedDisabled_get) ? 'true' : undefined, class: "qds-label" }, hAsync("input", { key: 'f36b570313760fc17d59d3cb7c209c2d4ef6e12a',
|
|
4401
4396
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
4402
|
-
autoFocus: this.host.autofocus, checked: this.checked, class: "qds-checkbox", "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get), disabled: __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedDisabled_get), name: this.name, onBlur: __classPrivateFieldGet$t(this, _Chip_onBlur, "f"), onFocus: __classPrivateFieldGet$t(this, _Chip_onFocus, "f"), tabIndex: __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedDisabled_get) ? undefined : this.tabIndex, type: "checkbox", value: this.value ?? undefined, ...__classPrivateFieldGet$t(this, _Chip_inheritedAttributes, "f") }), hAsync("div", { key: '
|
|
4397
|
+
autoFocus: this.host.autofocus, checked: this.checked, class: "qds-checkbox", "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get), disabled: __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedDisabled_get), name: this.name, onBlur: __classPrivateFieldGet$t(this, _Chip_onBlur, "f"), onFocus: __classPrivateFieldGet$t(this, _Chip_onFocus, "f"), tabIndex: __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedDisabled_get) ? undefined : this.tabIndex, type: "checkbox", value: this.value ?? undefined, ...__classPrivateFieldGet$t(this, _Chip_inheritedAttributes, "f") }), hAsync("div", { key: '2c9fb79145632cfc9c6762a1eb938db6d358d6cc', class: {
|
|
4403
4398
|
'qds-container': true,
|
|
4404
4399
|
'qds-pressed-state': this.isPressed,
|
|
4405
4400
|
'qds-selected-state': this.isSelected,
|
|
4406
4401
|
'qds-padding-end': true,
|
|
4407
4402
|
'qds-cursor': true,
|
|
4408
|
-
}, "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get) }, (this.checked ?? false) && (hAsync("qds-icon", { key: '
|
|
4403
|
+
}, "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get) }, (this.checked ?? false) && (hAsync("qds-icon", { key: 'b111666a5f461a43c2eacaae8e08e52b62312887', "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get), library: "core", name: "checked" })), this.iconName !== undefined && this.iconName !== '' && (hAsync("qds-icon", { key: '104f950ab2b3ccb434eeb5c0db135f547f7eb795', "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get), library: this.iconLibrary, name: this.iconName })), hAsync("span", { key: '05977f456c30b7aa7c947345502c53ccdc06a412', class: "qds-text", "data-size": __classPrivateFieldGet$t(this, _Chip_instances, "a", _Chip_computedSize_get), ref: __classPrivateFieldGet$t(this, _Chip_spanRef, "f") }, this.text)))), this.tooltip && (hAsync("qds-tooltip", { key: '7c4a28ce08c9244a854ce1d26c2c00c402c6713b', "aria-hidden": "true", ref: __classPrivateFieldGet$t(this, _Chip_tooltipRef, "f"), trigger: "pointerenter focusin" }, this.text))));
|
|
4409
4404
|
}
|
|
4410
4405
|
static get delegatesFocus() { return true; }
|
|
4411
4406
|
static get formAssociated() { return true; }
|
|
@@ -4473,7 +4468,7 @@ _Chip_chip = new WeakMap(), _Chip_span = new WeakMap(), _Chip_ro = new WeakMap()
|
|
|
4473
4468
|
return this.value == null ? null : this.value.toString();
|
|
4474
4469
|
};
|
|
4475
4470
|
|
|
4476
|
-
const dialogCss = ":host([hidden]){display:none!important}:host{display:none;height:-moz-fit-content;height:fit-content;inset:0;position:fixed;width:-moz-fit-content;width:fit-content}:host([open]){display:block}.qds-dialog{background-color:var(--qds-theme-popup-background);border:
|
|
4471
|
+
const dialogCss = ":host([hidden]){display:none!important}:host{display:none;height:-moz-fit-content;height:fit-content;inset:0;position:fixed;width:-moz-fit-content;width:fit-content}:host([open]){display:block}.qds-dialog{background-color:var(--qds-theme-popup-background);border:var(--qds-popup-border-width) solid var(--qds-theme-popup-border);border-radius:var(--qds-popup-border-radius);box-shadow:var(--qds-theme-popup-elevation);height:inherit;padding:0;width:inherit}.qds-dialog::backdrop{background:initial}.qds-dialog[open]~.qds-backdrop{-webkit-backdrop-filter:blur(var(--qds-theme-popup-overlay-blur));backdrop-filter:blur(var(--qds-theme-popup-overlay-blur));background-color:var(--qds-theme-popup-overlay-background);inset:0;opacity:var(--qds-theme-popup-overlay-opacity);position:fixed}.qds-content{align-items:flex-start;display:flex;flex-direction:column;gap:var(--qds-popup-gap-children-related);height:calc(100% - var(--qds-popup-padding)*2);padding:var(--qds-popup-padding)}::slotted(blockquote),::slotted(button),::slotted(dd),::slotted(dl),::slotted(fieldset),::slotted(figure),::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6),::slotted(hr),::slotted(input),::slotted(menu),::slotted(ol),::slotted(p),::slotted(pre),::slotted(select),::slotted(textarea),::slotted(ul){margin:0}";
|
|
4477
4472
|
var QdsDialogStyle0 = dialogCss;
|
|
4478
4473
|
|
|
4479
4474
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -4553,7 +4548,7 @@ class Dialog {
|
|
|
4553
4548
|
this.show();
|
|
4554
4549
|
}
|
|
4555
4550
|
render() {
|
|
4556
|
-
return (hAsync(Host, { key: '
|
|
4551
|
+
return (hAsync(Host, { key: 'df8850784f9ba96adf154cac3f8ca82070aa5e19' }, hAsync("dialog", { key: '681f32ad65a07972c1e08dc7acde4e80c26df7f1', class: "qds-dialog", ref: __classPrivateFieldGet$s(this, _Dialog_ref, "f"), onCancel: __classPrivateFieldGet$s(this, _Dialog_onCancel, "f"), onClose: __classPrivateFieldGet$s(this, _Dialog_onClose, "f"), onSubmit: __classPrivateFieldGet$s(this, _Dialog_onSubmit, "f"), ...__classPrivateFieldGet$s(this, _Dialog_inheritedAttributes, "f") }, hAsync("div", { key: 'aecfea14411b0873b7655c9df69ca7cba0f7b4f7', class: "qds-content" }, hAsync("slot", { key: '161f6424d230f2deda000ef79267caa05a5dbab3' }))), hAsync("div", { key: '805010898bcd1df5a9b6e52f13f24e9abb87df5d', class: "qds-backdrop" })));
|
|
4557
4552
|
}
|
|
4558
4553
|
show() {
|
|
4559
4554
|
invariant(__classPrivateFieldGet$s(this, _Dialog_dialog, "f"));
|
|
@@ -4629,7 +4624,7 @@ class Divider {
|
|
|
4629
4624
|
this.verticalChanged();
|
|
4630
4625
|
}
|
|
4631
4626
|
render() {
|
|
4632
|
-
return (hAsync("hr", { key: '
|
|
4627
|
+
return (hAsync("hr", { key: '94c7922480ed8aff5973dec5a5ffa5a9586c7d3a', class: {
|
|
4633
4628
|
'qds-divider': true,
|
|
4634
4629
|
'qds-vertical': this.vertical,
|
|
4635
4630
|
}, "aria-hidden": "true", "data-importance": __classPrivateFieldGet$r(this, _Divider_instances, "a", _Divider_computedImportance_get) }));
|
|
@@ -6289,11 +6284,11 @@ class Dropdown {
|
|
|
6289
6284
|
__classPrivateFieldGet$q(this, _Dropdown_instances, "m", _Dropdown_disconnectReferenceElement).call(this);
|
|
6290
6285
|
}
|
|
6291
6286
|
render() {
|
|
6292
|
-
return (hAsync(Host, { key: '
|
|
6287
|
+
return (hAsync(Host, { key: 'b6482f2301362787df929ced74c873328d62d4e3', "aria-labelledby": this.hostAriaLabelledBy, onKeyDown: __classPrivateFieldGet$q(this, _Dropdown_onKeydown, "f"), onFocusout: __classPrivateFieldGet$q(this, _Dropdown_onFocusout, "f"), style: {
|
|
6293
6288
|
display: this.hostDisplay,
|
|
6294
6289
|
position: this.hostPosition,
|
|
6295
6290
|
transform: this.hostTransform,
|
|
6296
|
-
} }, hAsync("slot", { key: '
|
|
6291
|
+
} }, hAsync("slot", { key: '428c9e2feffecf27c5da62afcac6da87f035fa39' })));
|
|
6297
6292
|
}
|
|
6298
6293
|
show() {
|
|
6299
6294
|
if (__classPrivateFieldGet$q(this, _Dropdown_open, "f"))
|
|
@@ -6427,10 +6422,10 @@ class FormMessage {
|
|
|
6427
6422
|
__classPrivateFieldSet$j(this, _FormMessage_inheritedAttributes, inheritAriaAttributes(this.host), "f");
|
|
6428
6423
|
}
|
|
6429
6424
|
render() {
|
|
6430
|
-
return (hAsync("span", { key: '
|
|
6425
|
+
return (hAsync("span", { key: 'aeb311865eb9da355ea37a1b521094dd2c06c0d8', class: {
|
|
6431
6426
|
'qds-form-message': true,
|
|
6432
6427
|
'qds-inline': this.inline,
|
|
6433
|
-
}, "data-size": __classPrivateFieldGet$p(this, _FormMessage_instances, "a", _FormMessage_computedSize_get), ...__classPrivateFieldGet$p(this, _FormMessage_inheritedAttributes, "f") }, hAsync("div", { key: '
|
|
6428
|
+
}, "data-size": __classPrivateFieldGet$p(this, _FormMessage_instances, "a", _FormMessage_computedSize_get), ...__classPrivateFieldGet$p(this, _FormMessage_inheritedAttributes, "f") }, hAsync("div", { key: '6491c3777546e3bed953d9da85423ac67bfb3135', class: "qds-icon-container", "data-size": __classPrivateFieldGet$p(this, _FormMessage_instances, "a", _FormMessage_computedSize_get) }, hAsync("div", { key: 'ed683b8f1f1b84f39743f18e53ba442cda9e2996', class: "qds-icon-background", "data-size": __classPrivateFieldGet$p(this, _FormMessage_instances, "a", _FormMessage_computedSize_get), "data-status": this.status }, hAsync("qds-icon", { key: 'e004a19a36d721158a7ddf861ee90b69b18a5060', "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$p(this, _FormMessage_instances, "a", _FormMessage_computedSize_get), name: `status-${this.status}`, library: "core" }), hAsync("span", { key: '4d607a5ed476d9de870083a3ff17e0060187c6af', class: "qds-sr-only" }, this.statusDescription))), hAsync("span", { key: 'c5bc5b5590d77aa4639dcb2f6729fb2624b22925', class: "qds-text", "data-status": __classPrivateFieldGet$p(this, _FormMessage_instances, "a", _FormMessage_computedStatus_get) }, this.text)));
|
|
6434
6429
|
}
|
|
6435
6430
|
get host() { return getElement(this); }
|
|
6436
6431
|
static get style() { return QdsFormMessageStyle0; }
|
|
@@ -6484,6 +6479,10 @@ const inputEmailSvg = 'data:image/svg+xml;base64,PCEtLSBTUERYLUZpbGVDb3B5cmlnaHR
|
|
|
6484
6479
|
|
|
6485
6480
|
const inputMonthSvg = 'data:image/svg+xml;base64,PCEtLSBTUERYLUZpbGVDb3B5cmlnaHRUZXh0OiDCqSAyMDI1IFNjaG5laWRlciBFbGVjdHJpYyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogQXBhY2hlLTIuMCAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGQ9Ik0xLjUgOC41aDE3bS0xMiAwdjltNy05djltLTEyLTZoMTdtLTE3IDNoMTdtLTE3LTEwaDE3djEzaC0xN3ptNi0xdjJhMSAxIDAgMCAxLTIgMHYtMmExIDEgMCAwIDEgMiAwWm03IDB2MmExIDEgMCAxIDEtMiAwdi0yYTEgMSAwIDEgMSAyIDBaIi8+PC9zdmc+';
|
|
6486
6481
|
|
|
6482
|
+
const inputPasswordHideSvg = 'data:image/svg+xml;base64,PCEtLSBTUERYLUZpbGVDb3B5cmlnaHRUZXh0OiDCqSAyMDI1IFNjaG5laWRlciBFbGVjdHJpYyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogQXBhY2hlLTIuMCAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGQ9Im0uNS41IDE5IDE5bS0zLjQ0My01LjgyYzEuMDA2LS43OSAxLjk5Ny0xLjYyNiAzLjQ0My0yLjIzOS0uNDYzLS44OTItMi44MTEtNi44NTctMTAuMjQ1LTYuODIzbTIuOTk1IDcuNjQ2YTMuMzA0IDMuMzA0IDAgMSAxLTQuNjI0LTQuNjA4bC0uMDIyLS4wM3MtNS4xNTMuMDUtNy4xMDIgMy44MTdjMCAwIDMuNTgyIDYuMTQyIDExLjU2IDQuMzI1YTguMiA4LjIgMCAwIDAgMi41OTktMS4wNzhtLTEuNzgxLTQuMzY3YTMuMzA1IDMuMzA1IDAgMCAwLTIuNjM4LTMuMjM3Ii8+PC9zdmc+';
|
|
6483
|
+
|
|
6484
|
+
const inputPasswordShowSvg = 'data:image/svg+xml;base64,PCEtLSBTUERYLUZpbGVDb3B5cmlnaHRUZXh0OiDCqSAyMDI1IFNjaG5laWRlciBFbGVjdHJpYyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogQXBhY2hlLTIuMCAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGQ9Ik05LjI1NSA0LjI1OGM3LjQzNS0uMDMzIDkuNzgzIDUuOTMxIDEwLjI0NSA2LjgyMy0zLjAzNiAxLjI4OS00LjA3IDMuNTU4LTcuNDQgNC4zMjVDNC4wODIgMTcuMjIzLjUgMTEuMDgxLjUgMTEuMDgxYzEuOTUtMy43NjcgNy4xMDItMy44MTcgNy4xMDItMy44MTdsLjAyMi4wM2EzLjMwNCAzLjMwNCAwIDEgMCAyLjYxNy0uNTY4Ii8+PC9zdmc+';
|
|
6485
|
+
|
|
6487
6486
|
const inputSearchSvg = 'data:image/svg+xml;base64,PCEtLSBTUERYLUZpbGVDb3B5cmlnaHRUZXh0OiDCqSAyMDI1IFNjaG5laWRlciBFbGVjdHJpYyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogQXBhY2hlLTIuMCAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTMuOTUgNi45NmgxYzAtMS4xMi45MS0yLjAyIDIuMDItMi4wMnYtMWMtMS42NyAwLTMuMDIgMS4zNi0zLjAyIDMuMDJabTEwLjA4IDYuMzZMOS45OSA5LjI4Yy42My0uNzkgMS4wMy0xLjc4IDEuMDMtMi44NmE0LjYgNC42IDAgMCAwLTQuNi00LjZjLTIuNTQgMC00LjYgMi4wNy00LjYgNC42czIuMDYgNC42IDQuNiA0LjZjMS4wOSAwIDIuMDgtLjQgMi44Ni0xLjAzbDQuMDQgNC4wNHptLTcuNjEtMy4zYy0xLjk5IDAtMy42LTEuNjItMy42LTMuNnMxLjYyLTMuNiAzLjYtMy42IDMuNiAxLjYyIDMuNiAzLjYtMS42MiAzLjYtMy42IDMuNloiLz48L3N2Zz4=';
|
|
6488
6487
|
|
|
6489
6488
|
const inputTelSvg = 'data:image/svg+xml;base64,PCEtLSBTUERYLUZpbGVDb3B5cmlnaHRUZXh0OiDCqSAyMDI1IFNjaG5laWRlciBFbGVjdHJpYyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogQXBhY2hlLTIuMCAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIzLjg2NCIgZD0ibTEgMTUuNTAyIDIuNDcyIDIuMjcyYy42Ni0uMDE3IDEuNDY4LTEuMjU0IDIuNTI4LTIuMjcyIDIuMDg2LTIuMDAyIDIuMzc2LTIuMDc1IDIuMTc2LTIuMjM1LjE2MS4yLTIuMDA2LTEuNDgxLTIuMDA2LTEuNDgxczEuNDkyLTEuNjczIDMuMzY4LTMuMDM2YTExNyAxMTcgMCAwIDEgMy40NDItMi40MDNsLjk5NCAyLjQwM3MuOTMzLS41MzYgMi42ODgtMi4wNThDMTguMjI3IDUuMzM3IDE5LjUgNC41NTQgMTkuNSA0LjU1NGwtMi0yLjU1MlMxMi44MiAxLjc5IDYuOTMzIDYuMjI4QzIuNTc0IDkuNTEzIDEgMTUuNTAyIDEgMTUuNTAyWiIvPjwvc3ZnPg==';
|
|
@@ -6523,6 +6522,8 @@ const icons = {
|
|
|
6523
6522
|
'input-datetime-local': inputDatetimeLocalSvg,
|
|
6524
6523
|
'input-email': inputEmailSvg,
|
|
6525
6524
|
'input-search': inputSearchSvg,
|
|
6525
|
+
'input-password-hide': inputPasswordHideSvg,
|
|
6526
|
+
'input-password-show': inputPasswordShowSvg,
|
|
6526
6527
|
navigation: navigationSvg,
|
|
6527
6528
|
next: nextSvg,
|
|
6528
6529
|
'new-tab-link': externalLinkSvg,
|
|
@@ -6663,7 +6664,7 @@ class Icon {
|
|
|
6663
6664
|
await this.setIcon();
|
|
6664
6665
|
}
|
|
6665
6666
|
render() {
|
|
6666
|
-
return (hAsync("div", { key: '
|
|
6667
|
+
return (hAsync("div", { key: 'b3221eb14c7e0bcc6516b6d486429755186eaf60', class: "qds-container" }, hAsync("span", { key: '36e1438b3525387f1fc9f75aff7c648433f47cf0', class: "qds-icon-wrapper", innerHTML: this.svg }), hAsync("div", { key: '8eb2b41ce0e33002aff177902c851dc2604fd16a', class: "qds-click-target" })));
|
|
6667
6668
|
}
|
|
6668
6669
|
get host() { return getElement(this); }
|
|
6669
6670
|
static get watchers() { return {
|
|
@@ -6770,10 +6771,10 @@ class InlineLink {
|
|
|
6770
6771
|
__classPrivateFieldGet$n(this, _InlineLink_internals, "f").ariaLabel = this.host.textContent;
|
|
6771
6772
|
}
|
|
6772
6773
|
render() {
|
|
6773
|
-
return (hAsync("a", { key: '
|
|
6774
|
+
return (hAsync("a", { key: '593d9b45039467c0de9bd9daecb548472858b834', "aria-hidden": "true", class: {
|
|
6774
6775
|
'qds-inline-link': true,
|
|
6775
6776
|
'qds-disabled': this.disabled,
|
|
6776
|
-
}, "data-importance": __classPrivateFieldGet$n(this, _InlineLink_instances, "a", _InlineLink_computedImportance_get), download: this.download, href: this.href?.toString(), hrefLang: this.hreflang, onBlur: __classPrivateFieldGet$n(this, _InlineLink_onBlur, "f"), onFocus: __classPrivateFieldGet$n(this, _InlineLink_onFocus, "f"), referrerPolicy: this.referrerPolicy, rel: this.rel, tabIndex: this.disabled ? -1 : this.tabIndex, target: this.target }, this.iconName !== undefined && this.iconName !== '' && (hAsync("qds-icon", { key: '
|
|
6777
|
+
}, "data-importance": __classPrivateFieldGet$n(this, _InlineLink_instances, "a", _InlineLink_computedImportance_get), download: this.download, href: this.href?.toString(), hrefLang: this.hreflang, onBlur: __classPrivateFieldGet$n(this, _InlineLink_onBlur, "f"), onFocus: __classPrivateFieldGet$n(this, _InlineLink_onFocus, "f"), referrerPolicy: this.referrerPolicy, rel: this.rel, tabIndex: this.disabled ? -1 : this.tabIndex, target: this.target }, this.iconName !== undefined && this.iconName !== '' && (hAsync("qds-icon", { key: '8fd5a5c068c3d5f2cb5d40f0e7ff67454bd4178c', class: "qds-icon", library: this.iconLibrary, name: this.iconName })), hAsync("span", { key: '1e12f58546ea74ac4676f1c9565f3f99a14115b5', class: "qds-text" }, hAsync("slot", { key: 'fac69d2d273b598e7c7c5ff22b10d90dc7d13892', onSlotchange: __classPrivateFieldGet$n(this, _InlineLink_onSlotchange, "f") })), this.linkIcon && (hAsync("qds-icon", { key: '17798d667b2deb5724695ad158cf960784b939b2', class: "qds-icon", library: "core", name: this.linkIcon }))));
|
|
6777
6778
|
}
|
|
6778
6779
|
static get delegatesFocus() { return true; }
|
|
6779
6780
|
get host() { return getElement(this); }
|
|
@@ -6818,7 +6819,7 @@ _InlineLink_internals = new WeakMap(), _InlineLink_onBlur = new WeakMap(), _Inli
|
|
|
6818
6819
|
}
|
|
6819
6820
|
};
|
|
6820
6821
|
|
|
6821
|
-
const inputCss = ":host([hidden]){display:none!important}:host{display:inline-block}@-moz-document url-prefix(){[type=date]~.qds-icon-container,[type=datetime-local]~.qds-icon-container,[type=month]~.qds-icon-container,[type=time]~.qds-icon-container,[type=week]~.qds-icon-container{display:none}}.qds-container,.qds-input{max-width:inherit;width:inherit}.qds-container{align-content:flex-start;align-items:center;box-sizing:border-box;display:grid;grid-template-areas:\"a\"}.qds-icon{--qds-theme-interactive-background-hover:none;--qds-theme-interactive-background-pressed:none;--qds-control-small-height:var(--qds-control-small-icon-size);flex-shrink:0}.qds-icon-container,.qds-input{grid-area:a}.qds-icon-container{align-items:center;display:flex;justify-content:center;justify-self:end;padding-inline-end:var(--qds-control-input-padding-horizontal)}.qds-icon-container.no-padding{padding-inline-end:0}.qds-focus-ring{border-radius:max(1px,var(\n --qds-control-border-radius-top-left,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-top-right,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-right,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-left,var(--qds-control-border-radius)\n ));grid-area:a;height:calc(100% + var(--qds-control-border-width) - var(--qds-control-border-width-block-end, var(--qds-control-border-width)));isolation:isolate;outline:var(--qds-control-input-focus-border-width) solid var(--qds-theme-control-input-focus-border);pointer-events:none;visibility:hidden;width:calc(100% + var(--qds-control-border-width) - var(\n --qds-control-border-width-inline-end,\n var(--qds-control-border-width)\n ))}[data-size=small]{font:var(--qds-control-small-text);height:var(--qds-control-small-height)}.qds-icon[data-size=small]{--qds-experimental-icon-click-target-size:var(--qds-control-small-height);height:var(--qds-control-small-icon-size);width:var(--qds-control-small-icon-size)}[data-size=small]~.qds-icon-container{gap:var(--qds-control-small-gap-internal);margin-inline-start:var(--qds-control-small-gap-internal)}[data-size=small][type=date],[data-size=small][type=datetime-local],[data-size=small][type=email],[data-size=small][type=month],[data-size=small][type=tel],[data-size=small][type=time],[data-size=small][type=url],[data-size=small][type=week]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-input-padding-horizontal) + var(--qds-control-small-height))}[data-size=small][type=file]::file-selector-button{font:var(--qds-control-small-text);height:var(--qds-control-small-height);margin-inline-end:var(--qds-control-small-gap-siblings-related);padding-inline:var(--qds-control-button-small-padding-horizontal)}[data-size=small][type=number]::-webkit-inner-spin-button,[data-size=small][type=number]::-webkit-outer-spin-button{margin-inline-start:var(--qds-control-small-gap-internal)}[data-size=small][type=search]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-small-icon-size) + var(--qds-control-input-padding-horizontal) + var(--qds-control-small-gap-internal))}[data-size=standard]{font:var(--qds-control-standard-text);height:var(--qds-control-standard-height)}.qds-icon[data-size=standard]{--qds-experimental-icon-click-target-size:var(\n --qds-control-standard-height\n );height:var(--qds-control-standard-icon-size);width:var(--qds-control-standard-icon-size)}[data-size=standard]~.qds-icon-container{gap:var(--qds-control-standard-gap-internal);margin-inline-start:var(--qds-control-standard-gap-internal)}[data-size=standard][type=date],[data-size=standard][type=datetime-local],[data-size=standard][type=email],[data-size=standard][type=month],[data-size=standard][type=tel],[data-size=standard][type=time],[data-size=standard][type=url],[data-size=standard][type=week]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-input-padding-horizontal) + var(--qds-control-standard-height))}[data-size=standard][type=file]::file-selector-button{font:var(--qds-control-standard-text);height:var(--qds-control-standard-height);margin-inline-end:var(--qds-control-standard-gap-siblings-related);padding-inline:var(--qds-control-button-standard-padding-horizontal)}[data-size=standard][type=number]::-webkit-inner-spin-button,[data-size=standard][type=number]::-webkit-outer-spin-button{margin-inline-start:var(--qds-control-standard-gap-internal)}[data-size=standard][type=search]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-standard-icon-size) + var(--qds-control-input-padding-horizontal) + var(--qds-control-standard-gap-internal))}[data-size=large]{font:var(--qds-control-large-text);height:var(--qds-control-large-height)}.qds-icon[data-size=large]{--qds-experimental-icon-click-target-size:var(--qds-control-large-height);height:var(--qds-control-large-icon-size);width:var(--qds-control-large-icon-size)}[data-size=large]~.qds-icon-container{gap:var(--qds-control-large-gap-internal);margin-inline-start:var(--qds-control-large-gap-internal)}[data-size=large][type=date],[data-size=large][type=datetime-local],[data-size=large][type=email],[data-size=large][type=month],[data-size=large][type=tel],[data-size=large][type=time],[data-size=large][type=url],[data-size=large][type=week]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-input-padding-horizontal) + var(--qds-control-large-height))}[data-size=large][type=file]::file-selector-button{font:var(--qds-control-large-text);height:var(--qds-control-large-height);margin-inline-end:var(--qds-control-large-gap-siblings-related);padding-inline:var(--qds-control-button-large-padding-horizontal)}[data-size=large][type=number]::-webkit-inner-spin-button,[data-size=large][type=number]::-webkit-outer-spin-button{margin-inline-start:var(--qds-control-large-gap-internal)}[data-size=large][type=search]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-large-icon-size) + var(--qds-control-input-padding-horizontal) + var(--qds-control-large-gap-internal))}.qds-input{-webkit-appearance:textfield;appearance:textfield;background-color:var(--qds-theme-control-input-background);border-color:var(--qds-theme-control-border);border-radius:var(\n --qds-control-border-radius-top-left,var(--qds-control-border-radius)\n ) var(--qds-control-border-radius-top-right,var(--qds-control-border-radius)) var(\n --qds-control-border-radius-bottom-right,var(--qds-control-border-radius)\n ) var(\n --qds-control-border-radius-bottom-left,var(--qds-control-border-radius)\n );border-style:solid;border-width:var(--qds-control-border-width) var(--qds-control-border-width-inline-end,var(--qds-control-border-width)) var(--qds-control-border-width-block-end,var(--qds-control-border-width)) var(--qds-control-border-width);box-sizing:border-box;color:var(--qds-theme-control-text-standard);grid-area:a;padding-block:0;padding-inline:var(--qds-control-input-padding-horizontal)}.qds-input.qds-hide~.qds-icon-container{display:none}.qds-input:disabled{opacity:var(--qds-theme-disabled);pointer-events:none}.qds-input:focus-visible{outline:none}.qds-input:focus-visible~.qds-focus-ring{visibility:visible}.qds-input:placeholder-shown{color:var(--qds-theme-control-text-placeholder)}.qds-input:not(:focus):user-invalid{border-color:var(--qds-theme-feedback-result-failure)}.qds-input::-webkit-search-cancel-button,.qds-input:is([type=date],[type=datetime-local],[type=month],[type=time],[type=week])::-webkit-calendar-picker-indicator{cursor:pointer;display:none}.qds-input[type=file]{padding-block:var(--qds-control-input-padding-horizontal)}.qds-input[type=file]::file-selector-button{background-color:initial;border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius);color:var(--qds-theme-control-text-standard)}.qds-input[type=file]::file-selector-button:hover{background-color:var(--qds-theme-interactive-background-hover)}.qds-input[type=file]::file-selector-button:active{background-color:var(--qds-theme-interactive-background-pressed)}.qds-input[type=color],.qds-input[type=number],.qds-input[type=password],.qds-input[type=text]{padding-inline:var(--qds-control-input-padding-horizontal)}.qds-input[type=color]{-webkit-appearance:none;appearance:none;cursor:pointer;min-width:50px;padding-block:var(--qds-control-input-padding-horizontal)}.qds-input[type=color]::-webkit-color-swatch-wrapper{padding:0}.qds-input[type=color]::-webkit-color-swatch{border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius)}.qds-input[type=color]::-moz-color-swatch{border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius)}.qds-input[type=color]:hover{background-color:var(--qds-theme-interactive-background-hover)}.qds-input[type=color]:active{background-color:var(--qds-theme-interactive-background-pressed)}.qds-input.qds-search-padding[data-size=large],.qds-input.qds-search-padding[data-size=small],.qds-input.qds-search-padding[data-size=standard]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-input-padding-horizontal))}.qds-input[data-size=large][type=file],.qds-input[data-size=small][type=file],.qds-input[data-size=standard][type=file]{height:auto}.qds-input.qds-padding[data-size=large],.qds-input.qds-padding[data-size=small],.qds-input.qds-padding[data-size=standard]{padding-inline:var(--qds-control-input-padding-horizontal)}.qds-input[data-size=large],.qds-input[data-size=small],.qds-input[data-size=standard]{@-moz-document url-prefix(){&[type=date],&[type=datetime-local],&[type=month],&[type=time],&[type=week]{padding-inline-end:var(--qds-control-input-padding-horizontal)}}}.qds-input{@-moz-document url-prefix(){&[type=number]{appearance:none}}}";
|
|
6822
|
+
const inputCss = ":host([hidden]){display:none!important}:host{display:inline-block}@-moz-document url-prefix(){[type=date]~.qds-icon-container,[type=datetime-local]~.qds-icon-container,[type=month]~.qds-icon-container,[type=time]~.qds-icon-container,[type=week]~.qds-icon-container{display:none}}.qds-container,.qds-input{max-width:inherit;width:inherit}.qds-container{align-content:flex-start;align-items:center;box-sizing:border-box;display:grid;grid-template-areas:\"c\"}.qds-icon{--qds-theme-interactive-background-hover:none;--qds-theme-interactive-background-pressed:none;--qds-control-small-height:var(--qds-control-small-icon-size);flex-shrink:0}.qds-icon-container,.qds-input{grid-area:c}.qds-icon-container{align-items:center;display:flex;justify-content:center;justify-self:end;padding-inline-end:var(--qds-control-input-padding-horizontal)}.qds-icon-container.no-padding{padding-inline-end:0}.qds-focus-ring{border-radius:max(1px,var(\n --qds-control-border-radius-top-left,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-top-right,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-right,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-left,var(--qds-control-border-radius)\n ));grid-area:c;height:calc(100% + var(--qds-control-border-width) - var(--qds-control-border-width-block-end, var(--qds-control-border-width)));isolation:isolate;outline:var(--qds-control-input-focus-border-width) solid var(--qds-theme-control-input-focus-border);pointer-events:none;visibility:hidden;width:calc(100% + var(--qds-control-border-width) - var(\n --qds-control-border-width-inline-end,\n var(--qds-control-border-width)\n ))}[data-size=small]{font:var(--qds-control-small-text);height:var(--qds-control-small-height)}.qds-icon[data-size=small]{--qds-experimental-icon-click-target-size:var(--qds-control-small-height);height:var(--qds-control-small-icon-size);width:var(--qds-control-small-icon-size)}[data-size=small]~.qds-icon-container{gap:var(--qds-control-small-gap-internal);margin-inline-start:var(--qds-control-small-gap-internal)}.qds-password-padding[data-size=small],[data-size=small][type=date],[data-size=small][type=datetime-local],[data-size=small][type=email],[data-size=small][type=month],[data-size=small][type=tel],[data-size=small][type=time],[data-size=small][type=url],[data-size=small][type=week]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-input-padding-horizontal) + var(--qds-control-small-height))}[data-size=small][type=file]::file-selector-button{font:var(--qds-control-small-text);height:var(--qds-control-small-height);margin-inline-end:var(--qds-control-small-gap-siblings-related);padding-inline:var(--qds-control-button-small-padding-horizontal)}[data-size=small][type=number]::-webkit-inner-spin-button,[data-size=small][type=number]::-webkit-outer-spin-button{margin-inline-start:var(--qds-control-small-gap-internal)}[data-size=small][type=search]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-small-icon-size) + var(--qds-control-input-padding-horizontal) + var(--qds-control-small-gap-internal))}[data-size=standard]{font:var(--qds-control-standard-text);height:var(--qds-control-standard-height)}.qds-icon[data-size=standard]{--qds-experimental-icon-click-target-size:var(\n --qds-control-standard-height\n );height:var(--qds-control-standard-icon-size);width:var(--qds-control-standard-icon-size)}[data-size=standard]~.qds-icon-container{gap:var(--qds-control-standard-gap-internal);margin-inline-start:var(--qds-control-standard-gap-internal)}.qds-password-padding[data-size=standard],[data-size=standard][type=date],[data-size=standard][type=datetime-local],[data-size=standard][type=email],[data-size=standard][type=month],[data-size=standard][type=tel],[data-size=standard][type=time],[data-size=standard][type=url],[data-size=standard][type=week]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-input-padding-horizontal) + var(--qds-control-standard-height))}[data-size=standard][type=file]::file-selector-button{font:var(--qds-control-standard-text);height:var(--qds-control-standard-height);margin-inline-end:var(--qds-control-standard-gap-siblings-related);padding-inline:var(--qds-control-button-standard-padding-horizontal)}[data-size=standard][type=number]::-webkit-inner-spin-button,[data-size=standard][type=number]::-webkit-outer-spin-button{margin-inline-start:var(--qds-control-standard-gap-internal)}[data-size=standard][type=search]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-standard-icon-size) + var(--qds-control-input-padding-horizontal) + var(--qds-control-standard-gap-internal))}[data-size=large]{font:var(--qds-control-large-text);height:var(--qds-control-large-height)}.qds-icon[data-size=large]{--qds-experimental-icon-click-target-size:var(--qds-control-large-height);height:var(--qds-control-large-icon-size);width:var(--qds-control-large-icon-size)}[data-size=large]~.qds-icon-container{gap:var(--qds-control-large-gap-internal);margin-inline-start:var(--qds-control-large-gap-internal)}.qds-password-padding[data-size=large],[data-size=large][type=date],[data-size=large][type=datetime-local],[data-size=large][type=email],[data-size=large][type=month],[data-size=large][type=tel],[data-size=large][type=time],[data-size=large][type=url],[data-size=large][type=week]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-input-padding-horizontal) + var(--qds-control-large-height))}[data-size=large][type=file]::file-selector-button{font:var(--qds-control-large-text);height:var(--qds-control-large-height);margin-inline-end:var(--qds-control-large-gap-siblings-related);padding-inline:var(--qds-control-button-large-padding-horizontal)}[data-size=large][type=number]::-webkit-inner-spin-button,[data-size=large][type=number]::-webkit-outer-spin-button{margin-inline-start:var(--qds-control-large-gap-internal)}[data-size=large][type=search]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-large-icon-size) + var(--qds-control-input-padding-horizontal) + var(--qds-control-large-gap-internal))}.qds-input{-webkit-appearance:textfield;appearance:textfield;background-color:var(--qds-theme-control-input-background);border-color:var(--qds-theme-control-border);border-radius:var(\n --qds-control-border-radius-top-left,var(--qds-control-border-radius)\n ) var(--qds-control-border-radius-top-right,var(--qds-control-border-radius)) var(\n --qds-control-border-radius-bottom-right,var(--qds-control-border-radius)\n ) var(\n --qds-control-border-radius-bottom-left,var(--qds-control-border-radius)\n );border-style:solid;border-width:var(--qds-control-border-width) var(--qds-control-border-width-inline-end,var(--qds-control-border-width)) var(--qds-control-border-width-block-end,var(--qds-control-border-width)) var(--qds-control-border-width);box-sizing:border-box;color:var(--qds-theme-control-text-standard);grid-area:c;padding-block:0;padding-inline:var(--qds-control-input-padding-horizontal)}.qds-input.qds-hide~.qds-icon-container{display:none}.qds-input:disabled{opacity:var(--qds-theme-disabled);pointer-events:none}.qds-input:focus-visible{outline:none}.qds-input:focus-visible~.qds-focus-ring{visibility:visible}.qds-input:placeholder-shown{color:var(--qds-theme-control-text-placeholder)}.qds-input:not(:focus):user-invalid{border-color:var(--qds-theme-feedback-result-failure)}.qds-input::-webkit-search-cancel-button,.qds-input:is([type=date],[type=datetime-local],[type=month],[type=time],[type=week])::-webkit-calendar-picker-indicator{cursor:pointer;display:none}.qds-input[type=file]{padding-block:var(--qds-control-input-padding-horizontal)}.qds-input[type=file]::file-selector-button{background-color:initial;border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius);color:var(--qds-theme-control-text-standard)}.qds-input[type=file]::file-selector-button:hover{background-color:var(--qds-theme-interactive-background-hover)}.qds-input[type=file]::file-selector-button:active{background-color:var(--qds-theme-interactive-background-pressed)}.qds-input[type=color],.qds-input[type=number]{padding-inline:var(--qds-control-input-padding-horizontal)}.qds-input[type=color]{-webkit-appearance:none;appearance:none;cursor:pointer;min-width:50px;padding-block:var(--qds-control-input-padding-horizontal)}.qds-input[type=color]::-webkit-color-swatch-wrapper{padding:0}.qds-input[type=color]::-webkit-color-swatch{border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius)}.qds-input[type=color]::-moz-color-swatch{border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-border-radius)}.qds-input[type=color]:hover{background-color:var(--qds-theme-interactive-background-hover)}.qds-input[type=color]:active{background-color:var(--qds-theme-interactive-background-pressed)}.qds-input.qds-search-padding[data-size=large],.qds-input.qds-search-padding[data-size=small],.qds-input.qds-search-padding[data-size=standard]{padding-inline:var(--qds-control-input-padding-horizontal) calc(var(--qds-control-small-height) + var(--qds-control-input-padding-horizontal))}.qds-input[data-size=large][type=file],.qds-input[data-size=small][type=file],.qds-input[data-size=standard][type=file]{height:auto}.qds-input.qds-padding[data-size=large],.qds-input.qds-padding[data-size=small],.qds-input.qds-padding[data-size=standard]{padding-inline:var(--qds-control-input-padding-horizontal)}.qds-input[data-size=large],.qds-input[data-size=small],.qds-input[data-size=standard]{@-moz-document url-prefix(){&[type=date],&[type=datetime-local],&[type=month],&[type=time],&[type=week]{padding-inline-end:var(--qds-control-input-padding-horizontal)}}}.qds-input{@-moz-document url-prefix(){&[type=number]{appearance:none}}}";
|
|
6822
6823
|
var QdsInputStyle0 = inputCss;
|
|
6823
6824
|
|
|
6824
6825
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -6840,7 +6841,7 @@ var __classPrivateFieldSet$h = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
6840
6841
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6841
6842
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6842
6843
|
};
|
|
6843
|
-
var _Input_instances, _Input_inheritedAttributes, _Input_input, _Input_computedDisabled_get, _Input_computedIconName_get, _Input_computedSize_get, _Input_computedValue_get, _Input_hasIcon_get, _Input_hasInteractiveIcon_get, _Input_ref, _Input_getFiles, _Input_onBlur, _Input_onCancel, _Input_onChange, _Input_onClear, _Input_onFocus, _Input_onInput, _Input_defineGetter;
|
|
6844
|
+
var _Input_instances, _Input_inheritedAttributes, _Input_input, _Input_computedDisabled_get, _Input_computedIconName_get, _Input_computedSize_get, _Input_computedValue_get, _Input_hasIcon_get, _Input_hasInteractiveIcon_get, _Input_iconClickHandler_get, _Input_computedType_get, _Input_computedAriaLabel_get, _Input_togglePasswordVisibility, _Input_ref, _Input_getFiles, _Input_onBlur, _Input_onCancel, _Input_onChange, _Input_onClear, _Input_onFocus, _Input_onInput, _Input_defineGetter;
|
|
6844
6845
|
/**
|
|
6845
6846
|
* The `<qds-input>` element is used to create interactive controls for
|
|
6846
6847
|
* web-based forms in order to accept data from the user; a wide variety of
|
|
@@ -6967,6 +6968,7 @@ class Input {
|
|
|
6967
6968
|
* @webnative
|
|
6968
6969
|
*/
|
|
6969
6970
|
this.willValidate = false;
|
|
6971
|
+
this.isPasswordVisible = false;
|
|
6970
6972
|
_Input_inheritedAttributes.set(this, {});
|
|
6971
6973
|
_Input_input.set(this, void 0);
|
|
6972
6974
|
this.checkValidity = () => this.internals.checkValidity();
|
|
@@ -7020,6 +7022,11 @@ class Input {
|
|
|
7020
7022
|
invariant(__classPrivateFieldGet$m(this, _Input_input, "f"));
|
|
7021
7023
|
__classPrivateFieldGet$m(this, _Input_input, "f").showPicker();
|
|
7022
7024
|
};
|
|
7025
|
+
_Input_togglePasswordVisibility.set(this, () => {
|
|
7026
|
+
invariant(__classPrivateFieldGet$m(this, _Input_input, "f"));
|
|
7027
|
+
this.isPasswordVisible = !this.isPasswordVisible;
|
|
7028
|
+
__classPrivateFieldGet$m(this, _Input_input, "f").type = __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedType_get);
|
|
7029
|
+
});
|
|
7023
7030
|
_Input_ref.set(this, (input) => {
|
|
7024
7031
|
__classPrivateFieldSet$h(this, _Input_input, input, "f");
|
|
7025
7032
|
});
|
|
@@ -7104,8 +7111,7 @@ class Input {
|
|
|
7104
7111
|
__classPrivateFieldGet$m(this, _Input_input, "f").required = this.required ?? false;
|
|
7105
7112
|
if (__classPrivateFieldGet$m(this, _Input_input, "f").step !== this.step && this.step !== undefined)
|
|
7106
7113
|
__classPrivateFieldGet$m(this, _Input_input, "f").step = this.step.toString();
|
|
7107
|
-
|
|
7108
|
-
__classPrivateFieldGet$m(this, _Input_input, "f").type = this.type;
|
|
7114
|
+
__classPrivateFieldGet$m(this, _Input_input, "f").type = __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedType_get);
|
|
7109
7115
|
// eslint-disable-next-line unicorn/no-null
|
|
7110
7116
|
if (this.type !== 'file' && this.value != null)
|
|
7111
7117
|
__classPrivateFieldGet$m(this, _Input_input, "f").value = this.value.toString();
|
|
@@ -7149,20 +7155,22 @@ class Input {
|
|
|
7149
7155
|
const shouldShowSearchIcon = isSearchType && this.noIcon === false;
|
|
7150
7156
|
const shouldHideIcon = !isSearchType && this.noIcon === true;
|
|
7151
7157
|
const shouldRemoveSearchPadding = isSearchType && this.noIcon === true;
|
|
7152
|
-
return (hAsync("div", { key: '
|
|
7158
|
+
return (hAsync("div", { key: '5336ee36ce01859982ca1c5af230dcea3200d57e', class: "qds-container" }, hAsync("input", { key: 'efc9f03bb3de1eb85e2b8abf42be5024918ae58e', accept: this.accept, autoCapitalize: this.host.autocapitalize, autoComplete: this.autoComplete,
|
|
7153
7159
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
7154
7160
|
autoFocus: this.host.autofocus, capture: this.capture, class: {
|
|
7155
7161
|
'qds-search-padding': shouldRemoveSearchPadding,
|
|
7156
7162
|
'qds-input': true,
|
|
7157
7163
|
'qds-hide': shouldHideIcon,
|
|
7158
7164
|
'qds-padding': shouldHideIcon,
|
|
7159
|
-
|
|
7165
|
+
'qds-password-padding': this.type === 'password' ||
|
|
7166
|
+
(this.isPasswordVisible && this.type === 'text'),
|
|
7167
|
+
}, "data-size": __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedSize_get), disabled: this.disabled, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, max: this.max, maxLength: this.maxLength, min: this.min, minLength: this.minLength, multiple: this.multiple, onBlur: __classPrivateFieldGet$m(this, _Input_onBlur, "f"), onChange: __classPrivateFieldGet$m(this, _Input_onChange, "f"), onFocus: __classPrivateFieldGet$m(this, _Input_onFocus, "f"), onInput: __classPrivateFieldGet$m(this, _Input_onInput, "f"), placeholder: this.placeholder, ref: __classPrivateFieldGet$m(this, _Input_ref, "f"), spellcheck: this.host.spellcheck, step: this.step, tabIndex: __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedDisabled_get) ? undefined : this.tabIndex, type: __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedType_get), ...__classPrivateFieldGet$m(this, _Input_inheritedAttributes, "f") }), hAsync("div", { key: 'a6ef2b4ac99c8f749d250d64fb2926c49f1171e7', class: "qds-focus-ring" }), __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedIconName_get) && (hAsync("div", { key: '35cc748463e4ecb3e570dbaee66fb79c6c9c16a1', class: {
|
|
7160
7168
|
'qds-icon-container': true,
|
|
7161
7169
|
'no-padding': shouldRemoveSearchPadding,
|
|
7162
|
-
} }, shouldShowClearButton && (hAsync("qds-button", { key: '
|
|
7170
|
+
} }, shouldShowClearButton && (hAsync("qds-button", { key: '44897869098ae7b6af2481cf70cae3a0c5f50483', class: {
|
|
7163
7171
|
'qds-icon': true,
|
|
7164
7172
|
'qds-hide': !hasValue,
|
|
7165
|
-
}, disabled: this.disabled, iconLibrary: "core", iconName: "clear", iconOnly: true, importance: "subdued", onClick: __classPrivateFieldGet$m(this, _Input_onClear, "f"), size: "small", text: "clear input" })), __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_hasIcon_get) && (hAsync("qds-icon", { key: '
|
|
7173
|
+
}, disabled: this.disabled, iconLibrary: "core", iconName: "clear", iconOnly: true, importance: "subdued", onClick: __classPrivateFieldGet$m(this, _Input_onClear, "f"), size: "small", text: "clear input" })), __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_hasIcon_get) && (hAsync("qds-icon", { key: 'd95ee02b5ffd10d2252781658ad48cb3770310e7', "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedSize_get), library: "core", name: __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedIconName_get) })), __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_hasInteractiveIcon_get) && (hAsync("qds-button", { key: '068999de69e003f3998e296f268ff730b5e38573', class: "qds-icon", disabled: this.disabled, iconLibrary: "core", iconName: __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedIconName_get), iconOnly: true, importance: "subdued", onClick: __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_iconClickHandler_get), size: "small", text: __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedAriaLabel_get) })), shouldShowSearchIcon ? (hAsync("qds-icon", { "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedSize_get), library: "core", name: __classPrivateFieldGet$m(this, _Input_instances, "a", _Input_computedIconName_get) })) : (hAsync("div", null))))));
|
|
7166
7174
|
}
|
|
7167
7175
|
static get delegatesFocus() { return true; }
|
|
7168
7176
|
static get formAssociated() { return true; }
|
|
@@ -7217,16 +7225,21 @@ class Input {
|
|
|
7217
7225
|
"validity": [16],
|
|
7218
7226
|
"value": [1032],
|
|
7219
7227
|
"willValidate": [4, "will-validate"],
|
|
7220
|
-
"tabIndex": [32]
|
|
7228
|
+
"tabIndex": [32],
|
|
7229
|
+
"isPasswordVisible": [32]
|
|
7221
7230
|
},
|
|
7222
7231
|
"$listeners$": [[0, "click", "onClick"], [0, "keydown", "onKeydown"]],
|
|
7223
7232
|
"$lazyBundleId$": "-",
|
|
7224
7233
|
"$attrsToReflect$": []
|
|
7225
7234
|
}; }
|
|
7226
7235
|
}
|
|
7227
|
-
_Input_inheritedAttributes = new WeakMap(), _Input_input = new WeakMap(), _Input_ref = new WeakMap(), _Input_getFiles = new WeakMap(), _Input_onBlur = new WeakMap(), _Input_onCancel = new WeakMap(), _Input_onChange = new WeakMap(), _Input_onClear = new WeakMap(), _Input_onFocus = new WeakMap(), _Input_onInput = new WeakMap(), _Input_instances = new WeakSet(), _Input_computedDisabled_get = function _Input_computedDisabled_get() {
|
|
7236
|
+
_Input_inheritedAttributes = new WeakMap(), _Input_input = new WeakMap(), _Input_togglePasswordVisibility = new WeakMap(), _Input_ref = new WeakMap(), _Input_getFiles = new WeakMap(), _Input_onBlur = new WeakMap(), _Input_onCancel = new WeakMap(), _Input_onChange = new WeakMap(), _Input_onClear = new WeakMap(), _Input_onFocus = new WeakMap(), _Input_onInput = new WeakMap(), _Input_instances = new WeakSet(), _Input_computedDisabled_get = function _Input_computedDisabled_get() {
|
|
7228
7237
|
return this.host.matches(':disabled') || (this.disabled ?? false);
|
|
7229
7238
|
}, _Input_computedIconName_get = function _Input_computedIconName_get() {
|
|
7239
|
+
if (this.type === 'password')
|
|
7240
|
+
return this.isPasswordVisible
|
|
7241
|
+
? 'input-password-hide'
|
|
7242
|
+
: 'input-password-show';
|
|
7230
7243
|
switch (this.type) {
|
|
7231
7244
|
case 'date':
|
|
7232
7245
|
case 'datetime-local':
|
|
@@ -7264,12 +7277,26 @@ _Input_inheritedAttributes = new WeakMap(), _Input_input = new WeakMap(), _Input
|
|
|
7264
7277
|
['email', 'tel', 'url'].includes(this.type));
|
|
7265
7278
|
}, _Input_hasInteractiveIcon_get = function _Input_hasInteractiveIcon_get() {
|
|
7266
7279
|
return (typeof this.type === 'string' &&
|
|
7267
|
-
['month', 'time', 'date', 'datetime-local', 'week'].includes(this.type));
|
|
7280
|
+
['month', 'time', 'date', 'datetime-local', 'week', 'password'].includes(this.type));
|
|
7281
|
+
}, _Input_iconClickHandler_get = function _Input_iconClickHandler_get() {
|
|
7282
|
+
return this.type === 'password'
|
|
7283
|
+
? __classPrivateFieldGet$m(this, _Input_togglePasswordVisibility, "f")
|
|
7284
|
+
: this.showPicker;
|
|
7285
|
+
}, _Input_computedType_get = function _Input_computedType_get() {
|
|
7286
|
+
return this.type === 'password' && this.isPasswordVisible
|
|
7287
|
+
? 'text'
|
|
7288
|
+
: (this.type ?? 'text');
|
|
7289
|
+
}, _Input_computedAriaLabel_get = function _Input_computedAriaLabel_get() {
|
|
7290
|
+
return this.type === 'password'
|
|
7291
|
+
? this.isPasswordVisible
|
|
7292
|
+
? 'Hide password'
|
|
7293
|
+
: 'Show password'
|
|
7294
|
+
: (this.type ?? '');
|
|
7268
7295
|
}, _Input_defineGetter = function _Input_defineGetter(p, get) {
|
|
7269
7296
|
Object.defineProperty(this.host, p, { enumerable: true, get });
|
|
7270
7297
|
};
|
|
7271
7298
|
|
|
7272
|
-
const labelCss = ":host([hidden]){display:none!important}:host{display:inline-block}.qds-label{box-sizing:border-box;color:var(--qds-theme-control-text-standard);display:inline-flex;gap:var(--qds-text-icon-gap)}.qds-label:focus-visible{border-radius:var(--qds-focus-border-radius);outline:var(--qds-focus-border-width) solid var(--qds-theme-focus-border);outline-offset:var(--qds-focus-border-offset)}.qds-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.qds-required{color:var(--qds-theme-feedback-field-required);-webkit-user-select:none;user-select:none}[data-size=small]{font:var(--qds-control-small-text)}.qds-inline[data-size=small]{margin-block:var(--qds-control-small-padding-auto-height)}[data-size=standard]{font:var(--qds-control-standard-text)}.qds-inline[data-size=standard]{margin-block:var(--qds-control-standard-padding-auto-height)}[data-size=large]{font:var(--qds-control-large-text)}.qds-inline[data-size=large]{margin-block:var(--qds-control-large-padding-auto-height)}";
|
|
7299
|
+
const labelCss = ":host([hidden]){display:none!important}:host{display:inline-block}.qds-label{box-sizing:border-box;color:var(--qds-theme-control-text-standard);display:inline-flex;gap:var(--qds-text-icon-gap);width:100%}.qds-label:focus-visible{border-radius:var(--qds-focus-border-radius);outline:var(--qds-focus-border-width) solid var(--qds-theme-focus-border);outline-offset:var(--qds-focus-border-offset)}.qds-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.qds-required{color:var(--qds-theme-feedback-field-required);-webkit-user-select:none;user-select:none}[data-size=small]{font:var(--qds-control-small-text)}.qds-inline[data-size=small]{margin-block:var(--qds-control-small-padding-auto-height)}[data-size=standard]{font:var(--qds-control-standard-text)}.qds-inline[data-size=standard]{margin-block:var(--qds-control-standard-padding-auto-height)}[data-size=large]{font:var(--qds-control-large-text)}.qds-inline[data-size=large]{margin-block:var(--qds-control-large-padding-auto-height)}";
|
|
7273
7300
|
var QdsLabelStyle0 = labelCss;
|
|
7274
7301
|
|
|
7275
7302
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -7337,7 +7364,10 @@ class Label {
|
|
|
7337
7364
|
__classPrivateFieldGet$l(this, _Label_ro, "f").disconnect();
|
|
7338
7365
|
if (!__classPrivateFieldGet$l(this, _Label_span, "f"))
|
|
7339
7366
|
return;
|
|
7340
|
-
|
|
7367
|
+
const span = __classPrivateFieldGet$l(this, _Label_span, "f");
|
|
7368
|
+
readTask(() => {
|
|
7369
|
+
this.tooltip = isOverflowing(span);
|
|
7370
|
+
});
|
|
7341
7371
|
__classPrivateFieldSet$g(this, _Label_ro, new ResizeObserver(([spanEntry]) => {
|
|
7342
7372
|
this.tooltip = isOverflowing(spanEntry.target);
|
|
7343
7373
|
}), "f");
|
|
@@ -7351,12 +7381,12 @@ class Label {
|
|
|
7351
7381
|
__classPrivateFieldGet$l(this, _Label_ro, "f").disconnect();
|
|
7352
7382
|
}
|
|
7353
7383
|
render() {
|
|
7354
|
-
return (hAsync("span", { key: '
|
|
7384
|
+
return (hAsync("span", { key: 'bd56de0869e706f0b028e0fb03e0cc946cbbf1fd', class: {
|
|
7355
7385
|
'qds-inline': this.inline,
|
|
7356
7386
|
'qds-label': true,
|
|
7357
7387
|
}, "data-size": __classPrivateFieldGet$l(this, _Label_instances, "a", _Label_computedSize_get), ref: __classPrivateFieldGet$l(this, _Label_labelRef, "f"),
|
|
7358
7388
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
7359
|
-
tabIndex: this.tooltip ? 0 : undefined }, this.required && hAsync("span", { key: '
|
|
7389
|
+
tabIndex: this.tooltip ? 0 : undefined }, this.required && hAsync("span", { key: '9df743ea0b47028f9ae6951d88d2d353fd813a4b', class: "qds-required" }, "*"), hAsync("span", { key: '680c6840424a63e6533230e249ec3b10ac5b0ab7', class: "qds-text", ref: __classPrivateFieldGet$l(this, _Label_spanRef, "f") }, this.text), this.tooltip && (hAsync("qds-tooltip", { key: '6ec7e5624a50e5d9084580dcd40359fb88d9b8ff', "aria-hidden": "true", ref: __classPrivateFieldGet$l(this, _Label_tooltipRef, "f") }, this.text))));
|
|
7360
7390
|
}
|
|
7361
7391
|
static get watchers() { return {
|
|
7362
7392
|
"text": ["textChanged"]
|
|
@@ -7560,7 +7590,7 @@ _ListItem_onBlur = new WeakMap(), _ListItem_onFocus = new WeakMap(), _ListItem_i
|
|
|
7560
7590
|
}
|
|
7561
7591
|
};
|
|
7562
7592
|
|
|
7563
|
-
const loaderCss = ":host([hidden]){display:none!important}:host{display:inline-block}.qds-loader{border-radius:var(--qds-control-rounded-border-radius);box-sizing:border-box;color:var(--qds-theme-feedback-action-destructive-contrast)}[data-size=small]{height:var(--qds-control-small-icon-size);padding:var(--qds-signature-circle-progress-small-border-width);width:var(--qds-control-small-icon-size)}[data-size=standard]{height:var(--qds-control-standard-icon-size);padding:var(--qds-signature-circle-progress-standard-border-width);width:var(--qds-control-standard-icon-size)}[data-size=large]{height:var(--qds-control-large-icon-size);padding:var(--qds-signature-circle-progress-large-border-width);width:var(--qds-control-large-icon-size)}[data-size=jumbo]{height:var(--qds-control-jumbo-icon-size);padding:var(--qds-signature-circle-progress-jumbo-border-width);width:var(--qds-control-jumbo-icon-size)}[data-status=loading]{animation:
|
|
7593
|
+
const loaderCss = ":host([hidden]){display:none!important}:host{display:inline-block}.qds-loader{border-radius:var(--qds-control-rounded-border-radius);box-sizing:border-box;color:var(--qds-theme-feedback-action-destructive-contrast)}[data-size=small]{height:var(--qds-control-small-icon-size);padding:var(--qds-signature-circle-progress-small-border-width);width:var(--qds-control-small-icon-size)}[data-size=standard]{height:var(--qds-control-standard-icon-size);padding:var(--qds-signature-circle-progress-standard-border-width);width:var(--qds-control-standard-icon-size)}[data-size=large]{height:var(--qds-control-large-icon-size);padding:var(--qds-signature-circle-progress-large-border-width);width:var(--qds-control-large-icon-size)}[data-size=jumbo]{height:var(--qds-control-jumbo-icon-size);padding:var(--qds-signature-circle-progress-jumbo-border-width);width:var(--qds-control-jumbo-icon-size)}[data-status=loading]{animation:b 1s linear infinite;background-image:var(--qds-theme-signature-circle-progress-indeterminate);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}@keyframes b{to{transform:rotate(1turn)}}[data-status=success]{background-color:var(--qds-theme-feedback-result-success)}[data-status=warning]{background-color:var(--qds-theme-feedback-result-partial-success)}[data-status=error]{background-color:var(--qds-theme-feedback-result-failure)}";
|
|
7564
7594
|
var QdsLoaderStyle0 = loaderCss;
|
|
7565
7595
|
|
|
7566
7596
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -7737,14 +7767,14 @@ class NavListItem {
|
|
|
7737
7767
|
this.tabindexChanged(this.host.getAttribute('tabindex') ?? '0');
|
|
7738
7768
|
}
|
|
7739
7769
|
render() {
|
|
7740
|
-
return (hAsync(Host, { key: '
|
|
7770
|
+
return (hAsync(Host, { key: '861bd4dceb564cea7ef0deb6f3968a967f4a8ecd' }, hAsync("li", { key: '85fb0ded3ffe45b3b492b5d46c07e9a72589fc81', class: {
|
|
7741
7771
|
'qds-nav-list-item': true,
|
|
7742
7772
|
'qds-disabled': this.disabled,
|
|
7743
7773
|
'qds-selected': this.selected,
|
|
7744
|
-
}, ref: __classPrivateFieldGet$i(this, _NavListItem_liRef, "f"), ...this.inheritedAttributes }, hAsync("button", { key: '
|
|
7774
|
+
}, ref: __classPrivateFieldGet$i(this, _NavListItem_liRef, "f"), ...this.inheritedAttributes }, hAsync("button", { key: '7c105a685c879cb014cc0cfd514bfdf1c5a86888', class: {
|
|
7745
7775
|
'qds-button': true,
|
|
7746
7776
|
'qds-selected': this.selected,
|
|
7747
|
-
}, "data-size": __classPrivateFieldGet$i(this, _NavListItem_instances, "a", _NavListItem_computedSize_get), disabled: this.disabled, onBlur: __classPrivateFieldGet$i(this, _NavListItem_onBlur, "f"), onFocus: __classPrivateFieldGet$i(this, _NavListItem_onFocus, "f"), tabIndex: this.disabled ? undefined : this.tabIndex, type: "button" }, this.iconName !== undefined && this.iconName !== '' && (hAsync("qds-icon", { key: '
|
|
7777
|
+
}, "data-size": __classPrivateFieldGet$i(this, _NavListItem_instances, "a", _NavListItem_computedSize_get), disabled: this.disabled, onBlur: __classPrivateFieldGet$i(this, _NavListItem_onBlur, "f"), onFocus: __classPrivateFieldGet$i(this, _NavListItem_onFocus, "f"), tabIndex: this.disabled ? undefined : this.tabIndex, type: "button" }, this.iconName !== undefined && this.iconName !== '' && (hAsync("qds-icon", { key: '2c0a4554e721bb64bb59af6aeb3f4e6efa1362b7', "aria-hidden": "true", class: "qds-icon", library: this.iconLibrary, name: this.iconName })), !__classPrivateFieldGet$i(this, _NavListItem_instances, "a", _NavListItem_shouldCollapse_get) && this.text && this.renderText())), __classPrivateFieldGet$i(this, _NavListItem_instances, "a", _NavListItem_shouldCollapse_get) && this.text && (hAsync("qds-tooltip", { key: 'ec28ae83b18c2f6702e04331b09603085c77651b', placement: "right", ref: __classPrivateFieldGet$i(this, _NavListItem_tooltipRef, "f") }, this.renderText()))));
|
|
7748
7778
|
}
|
|
7749
7779
|
renderText() {
|
|
7750
7780
|
return (hAsync("div", { class: "qds-texts" }, hAsync("div", { class: "qds-text" }, this.text), this.subtext !== undefined && this.subtext !== '' && (hAsync("div", { class: "qds-subtext" }, this.subtext))));
|
|
@@ -7789,7 +7819,7 @@ _NavListItem_liRef = new WeakMap(), _NavListItem_tooltipRef = new WeakMap(), _Na
|
|
|
7789
7819
|
return this.collapsed && this.iconName !== undefined && this.iconName !== '';
|
|
7790
7820
|
};
|
|
7791
7821
|
|
|
7792
|
-
const progressBarCss = ":host([hidden]){display:none!important}:host{display:block;width:100%}.qds-bar,.qds-track{overflow:hidden}.qds-track{background-color:var(--qds-theme-control-slider-track-inactive)}.qds-bar,.qds-track{border-radius:var(--qds-signature-line-progress-cap-radius)}.qds-bar{background-color:var(--qds-theme-signature-line-progress-determinate);transition:width .6s cubic-bezier(.83,0,.17,1)}@media (prefers-reduced-motion){.qds-bar{transition:none}}.qds-indeterminate{animation:
|
|
7822
|
+
const progressBarCss = ":host([hidden]){display:none!important}:host{display:block;width:100%}.qds-bar,.qds-track{overflow:hidden}.qds-track{background-color:var(--qds-theme-control-slider-track-inactive)}.qds-bar,.qds-track{border-radius:var(--qds-signature-line-progress-cap-radius)}.qds-bar{background-color:var(--qds-theme-signature-line-progress-determinate);transition:width .6s cubic-bezier(.83,0,.17,1)}@media (prefers-reduced-motion){.qds-bar{transition:none}}.qds-indeterminate{animation:a 2s linear infinite;background-color:initial;background-image:var(--qds-theme-signature-line-progress-indeterminate)}@keyframes a{0%{transform:translateX(-100%)}to{transform:translateX(200%)}}[data-size=small]{height:var(--qds-signature-line-progress-small-height)}[data-size=standard]{height:var(--qds-signature-line-progress-standard-height)}[data-size=large]{height:var(--qds-signature-line-progress-large-height)}";
|
|
7793
7823
|
var QdsProgressBarStyle0 = progressBarCss;
|
|
7794
7824
|
|
|
7795
7825
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -7881,7 +7911,7 @@ class ProgressBar {
|
|
|
7881
7911
|
this.valueChanged();
|
|
7882
7912
|
}
|
|
7883
7913
|
render() {
|
|
7884
|
-
return (hAsync("div", { key: '
|
|
7914
|
+
return (hAsync("div", { key: '89fad7b1dd2348a3f4c8a2571fe916d342166acb', "aria-hidden": "true", class: "qds-track", "data-size": __classPrivateFieldGet$h(this, _ProgressBar_instances, "a", _ProgressBar_computedSize_get) }, hAsync("div", { key: '84ffc7461e57cc90cb8889e16d5cbdf229f0b9f3', class: {
|
|
7885
7915
|
'qds-bar': true,
|
|
7886
7916
|
'qds-indeterminate': __classPrivateFieldGet$h(this, _ProgressBar_position, "f") === -1,
|
|
7887
7917
|
}, "data-size": __classPrivateFieldGet$h(this, _ProgressBar_instances, "a", _ProgressBar_computedSize_get), style: { width: this.width } })));
|
|
@@ -7990,7 +8020,10 @@ class QdsBreadcrumbItem {
|
|
|
7990
8020
|
__classPrivateFieldGet$g(this, _QdsBreadcrumbItem_ro, "f").disconnect();
|
|
7991
8021
|
if (!__classPrivateFieldGet$g(this, _QdsBreadcrumbItem_span, "f"))
|
|
7992
8022
|
return;
|
|
7993
|
-
|
|
8023
|
+
const span = __classPrivateFieldGet$g(this, _QdsBreadcrumbItem_span, "f");
|
|
8024
|
+
readTask(() => {
|
|
8025
|
+
this.tooltip = isOverflowing(span);
|
|
8026
|
+
});
|
|
7994
8027
|
__classPrivateFieldSet$e(this, _QdsBreadcrumbItem_ro, new ResizeObserver(([spanEntry]) => {
|
|
7995
8028
|
this.tooltip = isOverflowing(spanEntry.target);
|
|
7996
8029
|
}), "f");
|
|
@@ -8007,7 +8040,7 @@ class QdsBreadcrumbItem {
|
|
|
8007
8040
|
__classPrivateFieldGet$g(this, _QdsBreadcrumbItem_ro, "f").disconnect();
|
|
8008
8041
|
}
|
|
8009
8042
|
render() {
|
|
8010
|
-
return (hAsync("div", { key: '
|
|
8043
|
+
return (hAsync("div", { key: '4f9f59ac89630bc02ee25e98530908100201258b', class: "qds-breadcrumb-item", ref: this.href === undefined ? __classPrivateFieldGet$g(this, _QdsBreadcrumbItem_breadcrumbItemRef, "f") : undefined, tabIndex: this.tooltip && this.href === undefined ? 0 : undefined }, this.href === undefined ? __classPrivateFieldGet$g(this, _QdsBreadcrumbItem_instances, "m", _QdsBreadcrumbItem_renderText).call(this) : __classPrivateFieldGet$g(this, _QdsBreadcrumbItem_instances, "m", _QdsBreadcrumbItem_renderAnchor).call(this), this.tooltip && (hAsync("qds-tooltip", { key: '133e4a568e37e8d17939e614e861385f35a7c3d4', "aria-hidden": "true", ref: __classPrivateFieldGet$g(this, _QdsBreadcrumbItem_tooltipRef, "f") }, this.text))));
|
|
8011
8044
|
}
|
|
8012
8045
|
static get delegatesFocus() { return true; }
|
|
8013
8046
|
static get watchers() { return {
|
|
@@ -8037,7 +8070,7 @@ _QdsBreadcrumbItem_internals = new WeakMap(), _QdsBreadcrumbItem_breadcrumbItem
|
|
|
8037
8070
|
return (hAsync("span", { class: "qds-overflow", ref: __classPrivateFieldGet$g(this, _QdsBreadcrumbItem_spanRef, "f") }, this.text));
|
|
8038
8071
|
};
|
|
8039
8072
|
|
|
8040
|
-
const radioCss = "[hidden].sc-qds-radio-h{display:none!important}.sc-qds-radio-h{display:inline-block;line-height:0}.qds-box.sc-qds-radio,.qds-icon.sc-qds-radio,.qds-radio.sc-qds-radio{grid-area:i;place-self:center}.qds-box.sc-qds-radio,.qds-icon.sc-qds-radio{display:none;pointer-events:none}.qds-box.sc-qds-radio{border-radius:var(--qds-control-rounded-border-radius)}.qds-container.sc-qds-radio{align-self:flex-start;display:grid;grid-template-areas:\"i\"}.qds-icon.sc-qds-radio{color:var(--qds-theme-signature-color-contrast)}.qds-label.sc-qds-radio{cursor:pointer;display:inline-flex}.qds-radio.sc-qds-radio{-webkit-appearance:none;appearance:none;background-color:var(--qds-theme-control-input-background);border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-rounded-border-radius);cursor:pointer;margin:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}.qds-radio.sc-qds-radio:focus-visible{outline:var(--qds-theme-focus-border) solid var(--qds-focus-border-width);outline-offset:var(--qds-focus-border-offset)}.qds-radio.sc-qds-radio:active~.qds-box.sc-qds-radio,.qds-radio.sc-qds-radio:hover~.qds-box.sc-qds-radio{display:block}.qds-radio.sc-qds-radio:hover~.qds-box.sc-qds-radio{background-color:var(--qds-theme-signature-color-hover)}.qds-radio.sc-qds-radio:active~.qds-box.sc-qds-radio{background-color:var(--qds-theme-signature-color-pressed)}.qds-radio.sc-qds-radio:checked{background-color:var(--qds-theme-signature-color-default);border-color:#0000}.qds-radio.sc-qds-radio:checked~.qds-icon.sc-qds-radio{display:block}.qds-radio.sc-qds-radio:checked:hover{background-color:var(--qds-theme-signature-color-hover)}.qds-radio.sc-qds-radio:checked:active{background-color:var(--qds-theme-signature-color-pressed)}[aria-disabled=true].sc-qds-radio{opacity:var(--qds-theme-disabled);pointer-events:none}.qds-radio[data-size=small].sc-qds-radio{height:var(--qds-control-toggle-box-small-size);width:var(--qds-control-toggle-box-small-size)}.qds-icon[data-size=small].sc-qds-radio{font-size:var(--qds-control-small-icon-size)}.qds-box[data-size=small].sc-qds-radio{height:var(--qds-control-toggle-indicator-small-size);width:var(--qds-control-toggle-indicator-small-size)}.qds-inline[data-size=small].sc-qds-radio{margin-block:var(--qds-control-small-padding-auto-height)}.qds-label[data-size=small].sc-qds-radio{gap:var(--qds-control-small-gap-siblings-related)}.qds-radio[data-size=standard].sc-qds-radio{height:var(--qds-control-toggle-box-standard-size);width:var(--qds-control-toggle-box-standard-size)}.qds-icon[data-size=standard].sc-qds-radio{font-size:var(--qds-control-standard-icon-size)}.qds-box[data-size=standard].sc-qds-radio{height:var(--qds-control-toggle-indicator-standard-size);width:var(--qds-control-toggle-indicator-standard-size)}.qds-inline[data-size=standard].sc-qds-radio{margin-block:var(--qds-control-standard-padding-auto-height)}.qds-label[data-size=standard].sc-qds-radio{gap:var(--qds-control-standard-gap-siblings-related)}.qds-radio[data-size=large].sc-qds-radio{height:var(--qds-control-toggle-box-large-size);width:var(--qds-control-toggle-box-large-size)}.qds-icon[data-size=large].sc-qds-radio{font-size:var(--qds-control-large-icon-size)}.qds-box[data-size=large].sc-qds-radio{height:var(--qds-control-toggle-indicator-large-size);width:var(--qds-control-toggle-indicator-large-size)}.qds-inline[data-size=large].sc-qds-radio{margin-block:var(--qds-control-large-padding-auto-height)}.qds-label[data-size=large].sc-qds-radio{gap:var(--qds-control-large-gap-siblings-related)}";
|
|
8073
|
+
const radioCss = "[hidden].sc-qds-radio-h{display:none!important}.sc-qds-radio-h{display:inline-block;line-height:0}.qds-box.sc-qds-radio,.qds-icon.sc-qds-radio,.qds-radio.sc-qds-radio{grid-area:i;place-self:center}.qds-box.sc-qds-radio,.qds-icon.sc-qds-radio{display:none;pointer-events:none}.qds-box.sc-qds-radio{border-radius:var(--qds-control-rounded-border-radius)}.qds-container.sc-qds-radio{align-self:flex-start;display:grid;grid-template-areas:\"i\"}.qds-icon.sc-qds-radio{color:var(--qds-theme-signature-color-contrast)}.qds-label.sc-qds-radio{cursor:pointer;display:inline-flex;width:inherit}.qds-label-inner.sc-qds-radio{flex:1 1 auto;min-width:0}.qds-radio.sc-qds-radio{-webkit-appearance:none;appearance:none;background-color:var(--qds-theme-control-input-background);border:var(--qds-control-border-width) solid var(--qds-theme-control-border);border-radius:var(--qds-control-rounded-border-radius);cursor:pointer;margin:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}.qds-radio.sc-qds-radio:focus-visible{outline:var(--qds-theme-focus-border) solid var(--qds-focus-border-width);outline-offset:var(--qds-focus-border-offset)}.qds-radio.sc-qds-radio:active~.qds-box.sc-qds-radio,.qds-radio.sc-qds-radio:hover~.qds-box.sc-qds-radio{display:block}.qds-radio.sc-qds-radio:hover~.qds-box.sc-qds-radio{background-color:var(--qds-theme-signature-color-hover)}.qds-radio.sc-qds-radio:active~.qds-box.sc-qds-radio{background-color:var(--qds-theme-signature-color-pressed)}.qds-radio.sc-qds-radio:checked{background-color:var(--qds-theme-signature-color-default);border-color:#0000}.qds-radio.sc-qds-radio:checked~.qds-icon.sc-qds-radio{display:block}.qds-radio.sc-qds-radio:checked:hover{background-color:var(--qds-theme-signature-color-hover)}.qds-radio.sc-qds-radio:checked:active{background-color:var(--qds-theme-signature-color-pressed)}[aria-disabled=true].sc-qds-radio{opacity:var(--qds-theme-disabled);pointer-events:none}.qds-radio[data-size=small].sc-qds-radio{height:var(--qds-control-toggle-box-small-size);width:var(--qds-control-toggle-box-small-size)}.qds-icon[data-size=small].sc-qds-radio{font-size:var(--qds-control-small-icon-size)}.qds-box[data-size=small].sc-qds-radio{height:var(--qds-control-toggle-indicator-small-size);width:var(--qds-control-toggle-indicator-small-size)}.qds-inline[data-size=small].sc-qds-radio{margin-block:var(--qds-control-small-padding-auto-height)}.qds-label[data-size=small].sc-qds-radio{gap:var(--qds-control-small-gap-siblings-related)}.qds-radio[data-size=standard].sc-qds-radio{height:var(--qds-control-toggle-box-standard-size);width:var(--qds-control-toggle-box-standard-size)}.qds-icon[data-size=standard].sc-qds-radio{font-size:var(--qds-control-standard-icon-size)}.qds-box[data-size=standard].sc-qds-radio{height:var(--qds-control-toggle-indicator-standard-size);width:var(--qds-control-toggle-indicator-standard-size)}.qds-inline[data-size=standard].sc-qds-radio{margin-block:var(--qds-control-standard-padding-auto-height)}.qds-label[data-size=standard].sc-qds-radio{gap:var(--qds-control-standard-gap-siblings-related)}.qds-radio[data-size=large].sc-qds-radio{height:var(--qds-control-toggle-box-large-size);width:var(--qds-control-toggle-box-large-size)}.qds-icon[data-size=large].sc-qds-radio{font-size:var(--qds-control-large-icon-size)}.qds-box[data-size=large].sc-qds-radio{height:var(--qds-control-toggle-indicator-large-size);width:var(--qds-control-toggle-indicator-large-size)}.qds-inline[data-size=large].sc-qds-radio{margin-block:var(--qds-control-large-padding-auto-height)}.qds-label[data-size=large].sc-qds-radio{gap:var(--qds-control-large-gap-siblings-related)}";
|
|
8041
8074
|
var QdsRadioStyle0 = radioCss;
|
|
8042
8075
|
|
|
8043
8076
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -8123,10 +8156,10 @@ class Radio {
|
|
|
8123
8156
|
render() {
|
|
8124
8157
|
return (
|
|
8125
8158
|
// eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
8126
|
-
hAsync("label", { key: '
|
|
8159
|
+
hAsync("label", { key: '667293f89507bd2e846c4ed1ed5e70076a93f0ed', "aria-disabled": __classPrivateFieldGet$f(this, _Radio_instances, "a", _Radio_computedDisabled_get) ? 'true' : undefined, class: {
|
|
8127
8160
|
'qds-inline': this.inline,
|
|
8128
8161
|
'qds-label': true,
|
|
8129
|
-
}, "data-size": __classPrivateFieldGet$f(this, _Radio_instances, "a", _Radio_computedSize_get) }, hAsync("div", { key: '
|
|
8162
|
+
}, "data-size": __classPrivateFieldGet$f(this, _Radio_instances, "a", _Radio_computedSize_get) }, hAsync("div", { key: '956dccf841262856939cc29165642846f8f4ae01', class: "qds-container" }, hAsync("input", { key: '8920f9888ad5b49e667e9517a5eaaad66434b82b', checked: this.checked, class: "qds-radio", "data-size": __classPrivateFieldGet$f(this, _Radio_instances, "a", _Radio_computedSize_get), disabled: this.disabled, form: this.form, name: this.name, onBlur: __classPrivateFieldGet$f(this, _Radio_onBlur, "f"), onChange: __classPrivateFieldGet$f(this, _Radio_onChange, "f"), onFocus: __classPrivateFieldGet$f(this, _Radio_onFocus, "f"), ref: __classPrivateFieldGet$f(this, _Radio_ref, "f"), required: this.required, tabIndex: __classPrivateFieldGet$f(this, _Radio_instances, "a", _Radio_computedDisabled_get) ? undefined : this.tabIndex, type: "radio", value: this.value ?? undefined, ...__classPrivateFieldGet$f(this, _Radio_inheritedAttributes, "f") }), hAsync("div", { key: 'efb2a7e06ec89d59e744f3ecddc606b719570f70', class: "qds-box", "data-size": __classPrivateFieldGet$f(this, _Radio_instances, "a", _Radio_computedSize_get) }), hAsync("qds-icon", { key: '71851b402290456eeb9f467ff1efea93c4c0b1cd', "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$f(this, _Radio_instances, "a", _Radio_computedSize_get), library: "core", name: "checked" })), __classPrivateFieldGet$f(this, _Radio_instances, "a", _Radio_hasText_get) && (hAsync("qds-label", { key: '1b405bc19a6b884678a69b7adfff4a29cba2e6f0', class: "qds-label-inner", size: __classPrivateFieldGet$f(this, _Radio_instances, "a", _Radio_computedSize_get), text: this.text }))));
|
|
8130
8163
|
}
|
|
8131
8164
|
get host() { return getElement(this); }
|
|
8132
8165
|
static get watchers() { return {
|
|
@@ -8601,11 +8634,11 @@ class StandaloneLink {
|
|
|
8601
8634
|
__classPrivateFieldGet$d(this, _StandaloneLink_internals, "f").ariaLabel = this.host.textContent;
|
|
8602
8635
|
}
|
|
8603
8636
|
render() {
|
|
8604
|
-
return (hAsync("a", { key: '
|
|
8637
|
+
return (hAsync("a", { key: '14185a27f43513328980dbd847da91f7c1d6778b', "aria-hidden": "true", class: {
|
|
8605
8638
|
'qds-standalone-link': true,
|
|
8606
8639
|
'qds-disabled': this.disabled,
|
|
8607
8640
|
'qds-visitable': this.visitable,
|
|
8608
|
-
}, "data-importance": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedImportance_get), "data-size": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedSize_get), download: this.download, href: this.href?.toString(), hrefLang: this.hreflang, onBlur: __classPrivateFieldGet$d(this, _StandaloneLink_onBlur, "f"), onFocus: __classPrivateFieldGet$d(this, _StandaloneLink_onFocus, "f"), referrerPolicy: this.referrerPolicy, rel: this.rel, tabIndex: this.disabled ? -1 : this.tabIndex, target: this.target }, this.iconName !== undefined && this.iconName !== '' && (hAsync("span", { key: '
|
|
8641
|
+
}, "data-importance": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedImportance_get), "data-size": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedSize_get), download: this.download, href: this.href?.toString(), hrefLang: this.hreflang, onBlur: __classPrivateFieldGet$d(this, _StandaloneLink_onBlur, "f"), onFocus: __classPrivateFieldGet$d(this, _StandaloneLink_onFocus, "f"), referrerPolicy: this.referrerPolicy, rel: this.rel, tabIndex: this.disabled ? -1 : this.tabIndex, target: this.target }, this.iconName !== undefined && this.iconName !== '' && (hAsync("span", { key: '0afd80d2a64d2f82f97a4e834f76479feee27e91', class: "qds-icon-crop", "data-size": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedSize_get) }, hAsync("qds-icon", { key: '5806c1ad9b9ca5edb03283ed510f6130247ef71b', class: "qds-icon", "data-size": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedSize_get), library: this.iconLibrary, name: this.iconName }))), hAsync("span", { key: 'f0de78c7eb5db711c7800b2228d437a1cce37284', class: "qds-text" }, hAsync("slot", { key: '5413b3ad914e928fc65d4fa25f0993cc9cf6c741', onSlotchange: __classPrivateFieldGet$d(this, _StandaloneLink_onSlotchange, "f") })), this.linkIcon && (hAsync("span", { key: 'ab6d397dda7fc8fab3888bfd6c12788f37e35243', class: "qds-icon-crop", "data-size": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedSize_get) }, hAsync("qds-icon", { key: '97da13b5f8256f2d01fd6fc53787494912f7b5e1', class: "qds-icon", library: "core", "data-size": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedSize_get), name: this.linkIcon }))), this.importance === 'emphasized' && (hAsync("span", { key: '0839cd0aa78455482c200a6f756c88ad6621ead4', class: "qds-icon-crop", "data-size": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedSize_get) }, hAsync("qds-icon", { key: 'c8b20e77d7c1ddd5f3ac2d92a7e95e2b5937f857', class: "qds-icon", "data-size": __classPrivateFieldGet$d(this, _StandaloneLink_instances, "a", _StandaloneLink_computedSize_get), library: "core", name: "next" })))));
|
|
8609
8642
|
}
|
|
8610
8643
|
static get delegatesFocus() { return true; }
|
|
8611
8644
|
get host() { return getElement(this); }
|
|
@@ -8663,7 +8696,7 @@ _StandaloneLink_internals = new WeakMap(), _StandaloneLink_onBlur = new WeakMap(
|
|
|
8663
8696
|
}
|
|
8664
8697
|
};
|
|
8665
8698
|
|
|
8666
|
-
const switchCss = ":host([hidden]){display:none!important}:host{display:inline-block}.qds-knob,.qds-track{-webkit-print-color-adjust:exact;print-color-adjust:exact}.qds-track{align-items:center;background-color:var(--qds-theme-control-toggle-track-default);border-radius:var(--qds-control-toggle-track-border-radius);box-sizing:border-box;display:flex;flex-shrink:0;padding:var(--qds-control-toggle-track-padding)}.qds-track:hover{background-color:var(--qds-theme-control-toggle-track-hover)}.qds-track:active{background-color:var(--qds-theme-control-toggle-track-pressed)}.qds-knob{background-color:var(--qds-theme-control-input-background);border-radius:var(--qds-control-knob-border-radius);box-shadow:var(--qds-theme-accessory-elevation);box-sizing:border-box;margin:0}.qds-container{box-sizing:border-box;cursor:pointer;display:flex}.qds-switch{clip-path:inset(50%);height:1px;margin:0;position:absolute;white-space:nowrap;width:1px}.qds-switch:focus-visible~.qds-track{outline:var(--qds-theme-focus-border) solid var(--qds-focus-border-width);outline-offset:var(--qds-focus-border-offset)}.qds-switch:checked~.qds-track{background-color:var(--qds-theme-signature-color-default);justify-content:flex-end}.qds-switch:checked~.qds-track:hover{background-color:var(--qds-theme-signature-color-hover)}.qds-switch:checked~.qds-track:active{background-color:var(--qds-theme-signature-color-pressed)}.qds-disabled{opacity:var(--qds-theme-disabled);pointer-events:none}.qds-inline[data-size=small]{margin-block:var(--qds-control-small-padding-auto-height)}.qds-track[data-size=small]{height:var(--qds-control-toggle-track-small-size);width:var(--qds-control-toggle-track-small-width)}.qds-knob[data-size=small]{height:var(--qds-control-knob-small-size);width:var(--qds-control-knob-small-size)}.qds-inline[data-size=standard]{margin-block:var(--qds-control-standard-padding-auto-height)}.qds-track[data-size=standard]{height:var(--qds-control-toggle-track-standard-height);width:var(--qds-control-toggle-track-standard-width)}.qds-knob[data-size=standard]{height:var(--qds-control-knob-standard-size);width:var(--qds-control-knob-standard-size)}.qds-inline[data-size=large]{margin-block:var(--qds-control-large-padding-auto-height)}.qds-track[data-size=large]{height:var(--qds-control-toggle-track-large-height);width:
|
|
8699
|
+
const switchCss = ":host([hidden]){display:none!important}:host{display:inline-block}.qds-knob,.qds-track{-webkit-print-color-adjust:exact;print-color-adjust:exact}.qds-track{align-items:center;background-color:var(--qds-theme-control-toggle-track-default);border-radius:var(--qds-control-toggle-track-border-radius);box-sizing:border-box;display:flex;flex-shrink:0;padding:var(--qds-control-toggle-track-padding)}.qds-track:hover{background-color:var(--qds-theme-control-toggle-track-hover)}.qds-track:active{background-color:var(--qds-theme-control-toggle-track-pressed)}.qds-knob{background-color:var(--qds-theme-control-input-background);border-radius:var(--qds-control-knob-border-radius);box-shadow:var(--qds-theme-accessory-elevation);box-sizing:border-box;margin:0}.qds-container{box-sizing:border-box;cursor:pointer;display:flex}.qds-switch{clip-path:inset(50%);height:1px;margin:0;position:absolute;white-space:nowrap;width:1px}.qds-switch:focus-visible~.qds-track{outline:var(--qds-theme-focus-border) solid var(--qds-focus-border-width);outline-offset:var(--qds-focus-border-offset)}.qds-switch:checked~.qds-track{background-color:var(--qds-theme-signature-color-default);justify-content:flex-end}.qds-switch:checked~.qds-track:hover{background-color:var(--qds-theme-signature-color-hover)}.qds-switch:checked~.qds-track:active{background-color:var(--qds-theme-signature-color-pressed)}.qds-disabled{opacity:var(--qds-theme-disabled);pointer-events:none}.qds-inline[data-size=small]{margin-block:var(--qds-control-small-padding-auto-height)}.qds-track[data-size=small]{height:var(--qds-control-toggle-track-small-size);width:var(--qds-control-toggle-track-small-width)}.qds-knob[data-size=small]{height:var(--qds-control-knob-small-size);width:var(--qds-control-knob-small-size)}.qds-inline[data-size=standard]{margin-block:var(--qds-control-standard-padding-auto-height)}.qds-track[data-size=standard]{height:var(--qds-control-toggle-track-standard-height);width:var(--qds-control-toggle-track-standard-width)}.qds-knob[data-size=standard]{height:var(--qds-control-knob-standard-size);width:var(--qds-control-knob-standard-size)}.qds-inline[data-size=large]{margin-block:var(--qds-control-large-padding-auto-height)}.qds-track[data-size=large]{height:var(--qds-control-toggle-track-large-height);width:var(--qds-control-toggle-track-large-width)}.qds-knob[data-size=large]{height:var(--qds-control-knob-large-size);width:var(--qds-control-knob-large-size)}";
|
|
8667
8700
|
var QdsSwitchStyle0 = switchCss;
|
|
8668
8701
|
|
|
8669
8702
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -8811,13 +8844,13 @@ class Switch {
|
|
|
8811
8844
|
this.tabindexChanged(this.host.getAttribute('tabindex') ?? '0');
|
|
8812
8845
|
}
|
|
8813
8846
|
render() {
|
|
8814
|
-
return (hAsync("div", { key: '
|
|
8847
|
+
return (hAsync("div", { key: '124a3b649baeeb3fb2dfea6a2fa45f8b41738157', class: {
|
|
8815
8848
|
'qds-container': true,
|
|
8816
8849
|
'qds-disabled': __classPrivateFieldGet$c(this, _Switch_instances, "a", _Switch_computedDisabled_get),
|
|
8817
8850
|
'qds-inline': this.inline,
|
|
8818
|
-
}, "data-size": __classPrivateFieldGet$c(this, _Switch_instances, "a", _Switch_computedSize_get) }, hAsync("input", { key: '
|
|
8851
|
+
}, "data-size": __classPrivateFieldGet$c(this, _Switch_instances, "a", _Switch_computedSize_get) }, hAsync("input", { key: '417acf660662c9f3987bba88886a8e6b4305b13a', "aria-hidden": "true",
|
|
8819
8852
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
8820
|
-
autoFocus: this.host.autofocus, checked: this.checked, class: "qds-switch", disabled: this.disabled, onBlur: __classPrivateFieldGet$c(this, _Switch_onBlur, "f"), onFocus: __classPrivateFieldGet$c(this, _Switch_onFocus, "f"), tabIndex: __classPrivateFieldGet$c(this, _Switch_instances, "a", _Switch_computedDisabled_get) ? undefined : this.tabIndex, type: "checkbox", value: this.value ?? undefined, ...this.inheritedAttributes }), hAsync("div", { key: '
|
|
8853
|
+
autoFocus: this.host.autofocus, checked: this.checked, class: "qds-switch", disabled: this.disabled, onBlur: __classPrivateFieldGet$c(this, _Switch_onBlur, "f"), onFocus: __classPrivateFieldGet$c(this, _Switch_onFocus, "f"), tabIndex: __classPrivateFieldGet$c(this, _Switch_instances, "a", _Switch_computedDisabled_get) ? undefined : this.tabIndex, type: "checkbox", value: this.value ?? undefined, ...this.inheritedAttributes }), hAsync("div", { key: 'f922e507766279160da228c4a33630763bbd6acd', class: "qds-track", "data-size": __classPrivateFieldGet$c(this, _Switch_instances, "a", _Switch_computedSize_get) }, hAsync("div", { key: '91c828ada2be4cc6a594b8b473548b3a8f34f1e9', class: "qds-knob", "data-size": __classPrivateFieldGet$c(this, _Switch_instances, "a", _Switch_computedSize_get) }))));
|
|
8821
8854
|
}
|
|
8822
8855
|
static get delegatesFocus() { return true; }
|
|
8823
8856
|
static get formAssociated() { return true; }
|
|
@@ -9600,7 +9633,7 @@ class Table {
|
|
|
9600
9633
|
__classPrivateFieldSet$9(this, _Table_inheritedAttributes, inheritAriaAttributes(this.host), "f");
|
|
9601
9634
|
}
|
|
9602
9635
|
render() {
|
|
9603
|
-
return (hAsync("table", { key: '
|
|
9636
|
+
return (hAsync("table", { key: '760f53994a7d5b5a79088c22837bff60b149c74e', class: "qds-table", ...__classPrivateFieldGet$9(this, _Table_inheritedAttributes, "f") }, hAsync("slot", { key: '73c52efb49e8a4a1f8d469fb7c8930d983b7a2a0' })));
|
|
9604
9637
|
}
|
|
9605
9638
|
get host() { return getElement(this); }
|
|
9606
9639
|
static get style() { return QdsTableStyle0; }
|
|
@@ -9654,7 +9687,7 @@ class TableBody {
|
|
|
9654
9687
|
__classPrivateFieldSet$8(this, _TableBody_inheritedAttributes, inheritAriaAttributes(this.host), "f");
|
|
9655
9688
|
}
|
|
9656
9689
|
render() {
|
|
9657
|
-
return (hAsync("tbody", { key: '
|
|
9690
|
+
return (hAsync("tbody", { key: 'e69e8c1df7e81843f90fcaf6e0d5538dce6255f2', class: "qds-table-body", ...__classPrivateFieldGet$8(this, _TableBody_inheritedAttributes, "f") }, hAsync("slot", { key: '27ec72a67566ae310f88fa4a1960dd00810ab850' })));
|
|
9658
9691
|
}
|
|
9659
9692
|
get host() { return getElement(this); }
|
|
9660
9693
|
static get style() { return QdsTableBodyStyle0; }
|
|
@@ -9707,7 +9740,7 @@ class TableCell {
|
|
|
9707
9740
|
__classPrivateFieldSet$7(this, _TableCell_inheritedAttributes, inheritAriaAttributes(this.host), "f");
|
|
9708
9741
|
}
|
|
9709
9742
|
render() {
|
|
9710
|
-
return (hAsync("td", { key: '
|
|
9743
|
+
return (hAsync("td", { key: '71f62683804be4041ee9b25db29915e0ebb82d85', class: "qds-table-cell", colSpan: this.colSpan, rowSpan: this.rowSpan, ...__classPrivateFieldGet$7(this, _TableCell_inheritedAttributes, "f") }, hAsync("slot", { key: '4f8adab23fc487788dc805f4cb19738c53323b86' })));
|
|
9711
9744
|
}
|
|
9712
9745
|
get host() { return getElement(this); }
|
|
9713
9746
|
static get style() { return QdsTableCellStyle0; }
|
|
@@ -9764,7 +9797,7 @@ class TableHead {
|
|
|
9764
9797
|
__classPrivateFieldSet$6(this, _TableHead_inheritedAttributes, inheritAriaAttributes(this.host), "f");
|
|
9765
9798
|
}
|
|
9766
9799
|
render() {
|
|
9767
|
-
return (hAsync("thead", { key: '
|
|
9800
|
+
return (hAsync("thead", { key: 'e3b41723600d0a9302712ba3b255cf3d28649434', class: "qds-table-head", ...__classPrivateFieldGet$6(this, _TableHead_inheritedAttributes, "f") }, hAsync("slot", { key: '890bc1b85141cf7f30522b8bcdde79c275cca354' })));
|
|
9768
9801
|
}
|
|
9769
9802
|
get host() { return getElement(this); }
|
|
9770
9803
|
static get style() { return QdsTableHeadStyle0; }
|
|
@@ -9877,7 +9910,7 @@ class TableRow {
|
|
|
9877
9910
|
__classPrivateFieldSet$4(this, _TableRow_inheritedAttributes, inheritAriaAttributes(this.host), "f");
|
|
9878
9911
|
}
|
|
9879
9912
|
render() {
|
|
9880
|
-
return (hAsync("tr", { key: '
|
|
9913
|
+
return (hAsync("tr", { key: 'fc5133675ce140d37285f190e3c96ffc9f223c38', class: "qds-table-row", ...__classPrivateFieldGet$4(this, _TableRow_inheritedAttributes, "f") }, hAsync("slot", { key: '967d6dcd50800dff5aff45566524013f3a9958be' })));
|
|
9881
9914
|
}
|
|
9882
9915
|
get host() { return getElement(this); }
|
|
9883
9916
|
static get style() { return QdsTableRowStyle0; }
|
|
@@ -9892,7 +9925,7 @@ class TableRow {
|
|
|
9892
9925
|
}
|
|
9893
9926
|
_TableRow_inheritedAttributes = new WeakMap();
|
|
9894
9927
|
|
|
9895
|
-
const tagCss = ":host([hidden]){display:none!important}:host{display:inline-block}.qds-tag{align-items:center;border-radius:var(--qds-control-rounded-border-radius);box-sizing:border-box;display:inline-flex;justify-content:center;max-width:inherit;min-width:inherit;width:inherit}.qds-text{text-overflow:ellipsis}.qds-sr-only,.qds-text{overflow:hidden;white-space:nowrap}.qds-sr-only{clip:rect(0 0 0 0);height:1px;margin:-1px;padding:0;position:absolute;width:1px}.qds-icon{flex-shrink:0}[data-status=error]{color:var(--qds-theme-feedback-message-critical)}[data-status=success]{color:var(--qds-theme-feedback-message-success)}[data-status=warning]{color:var(--qds-theme-feedback-message-important)}[data-status=info]{color:var(--qds-theme-feedback-message-informational)}[data-status=neutral]{color:var(--qds-theme-feedback-message-neutral)}[data-importance=subdued] .qds-text{color:var(--qds-theme-control-text-standard)}[data-importance=standard][data-status=error]{background-color:var(--qds-theme-feedback-message-critical-dimmed)}[data-importance=standard][data-status=success]{background-color:var(--qds-theme-feedback-message-success-dimmed)}[data-importance=standard][data-status=warning]{background-color:var(--qds-theme-feedback-message-important-dimmed)}[data-importance=standard][data-status=info]{background-color:var(--qds-theme-feedback-message-informational-dimmed)}[data-importance=standard][data-status=neutral]{background-color:var(--qds-theme-feedback-message-neutral-dimmed)}[data-importance=emphasized][data-status=error]{background-color:var(--qds-theme-feedback-message-critical);color:var(--qds-theme-feedback-message-critical-contrast)}[data-importance=emphasized][data-status=success]{background-color:var(--qds-theme-feedback-message-success);color:var(--qds-theme-feedback-message-success-contrast)}[data-importance=emphasized][data-status=warning]{background-color:var(--qds-theme-feedback-message-important);color:var(--qds-theme-feedback-message-important-contrast)}[data-importance=emphasized][data-status=info]{background-color:var(--qds-theme-feedback-message-informational);color:var(--qds-theme-feedback-message-informational-contrast)}[data-importance=emphasized][data-status=neutral]{background-color:var(--qds-theme-feedback-message-neutral);color:var(--qds-theme-feedback-message-neutral-contrast)}.qds-tag[data-size=small]{font:var(--qds-control-small-text);gap:var(--qds-control-small-gap-internal);height:var(--qds-control-small-height)
|
|
9928
|
+
const tagCss = ":host([hidden]){display:none!important}:host{display:inline-block}.qds-tag{align-items:center;border-radius:var(--qds-control-rounded-border-radius);box-sizing:border-box;display:inline-flex;justify-content:center;max-width:inherit;min-width:inherit;width:inherit}.qds-text{text-overflow:ellipsis}.qds-sr-only,.qds-text{overflow:hidden;white-space:nowrap}.qds-sr-only{clip:rect(0 0 0 0);height:1px;margin:-1px;padding:0;position:absolute;width:1px}.qds-icon{flex-shrink:0}[data-status=error]{color:var(--qds-theme-feedback-message-critical)}[data-status=success]{color:var(--qds-theme-feedback-message-success)}[data-status=warning]{color:var(--qds-theme-feedback-message-important)}[data-status=info]{color:var(--qds-theme-feedback-message-informational)}[data-status=neutral]{color:var(--qds-theme-feedback-message-neutral)}[data-importance=subdued] .qds-text{color:var(--qds-theme-control-text-standard)}[data-importance=standard][data-status=error]{background-color:var(--qds-theme-feedback-message-critical-dimmed)}[data-importance=standard][data-status=success]{background-color:var(--qds-theme-feedback-message-success-dimmed)}[data-importance=standard][data-status=warning]{background-color:var(--qds-theme-feedback-message-important-dimmed)}[data-importance=standard][data-status=info]{background-color:var(--qds-theme-feedback-message-informational-dimmed)}[data-importance=standard][data-status=neutral]{background-color:var(--qds-theme-feedback-message-neutral-dimmed)}[data-importance=emphasized][data-status=error]{background-color:var(--qds-theme-feedback-message-critical);color:var(--qds-theme-feedback-message-critical-contrast)}[data-importance=emphasized][data-status=success]{background-color:var(--qds-theme-feedback-message-success);color:var(--qds-theme-feedback-message-success-contrast)}[data-importance=emphasized][data-status=warning]{background-color:var(--qds-theme-feedback-message-important);color:var(--qds-theme-feedback-message-important-contrast)}[data-importance=emphasized][data-status=info]{background-color:var(--qds-theme-feedback-message-informational);color:var(--qds-theme-feedback-message-informational-contrast)}[data-importance=emphasized][data-status=neutral]{background-color:var(--qds-theme-feedback-message-neutral);color:var(--qds-theme-feedback-message-neutral-contrast)}.qds-tag[data-size=small]{font:var(--qds-control-small-text);gap:var(--qds-control-small-gap-internal);height:var(--qds-control-small-height)}.qds-padding[data-size=small]{padding-inline:var(--qds-control-chip-small-padding-horizontal)}.qds-icon[data-size=small]{height:var(--qds-control-small-icon-size);width:var(--qds-control-small-icon-size)}.qds-tag[data-size=standard]{font:var(--qds-control-standard-text);gap:var(--qds-control-standard-gap-internal);height:var(--qds-control-standard-height)}.qds-padding[data-size=standard]{padding-inline:var(--qds-control-chip-standard-padding-horizontal)}.qds-icon[data-size=standard]{height:var(--qds-control-standard-icon-size);width:var(--qds-control-standard-icon-size)}.qds-tag[data-size=large]{font:var(--qds-control-large-text);gap:var(--qds-control-large-gap-internal);height:var(--qds-control-large-height)}.qds-padding[data-size=large]{padding-inline:var(--qds-control-chip-large-padding-horizontal)}.qds-icon[data-size=large]{height:var(--qds-control-large-icon-size);width:var(--qds-control-large-icon-size)}";
|
|
9896
9929
|
var QdsTagStyle0 = tagCss;
|
|
9897
9930
|
|
|
9898
9931
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -9951,8 +9984,11 @@ class Tag {
|
|
|
9951
9984
|
__classPrivateFieldSet$3(this, _Tag_inheritedAttributes, inheritAriaAttributes(this.host), "f");
|
|
9952
9985
|
}
|
|
9953
9986
|
render() {
|
|
9954
|
-
return (hAsync("span", { key: '
|
|
9955
|
-
|
|
9987
|
+
return (hAsync("span", { key: '60e2278d0dc1a67f55b56269a88030efc10d8b7c', class: {
|
|
9988
|
+
'qds-tag': true,
|
|
9989
|
+
'qds-padding': this.importance !== 'subdued',
|
|
9990
|
+
}, "data-importance": __classPrivateFieldGet$3(this, _Tag_instances, "a", _Tag_computedImportance_get), "data-size": __classPrivateFieldGet$3(this, _Tag_instances, "a", _Tag_computedSize_get), "data-status": __classPrivateFieldGet$3(this, _Tag_instances, "a", _Tag_computedStatus_get), ...__classPrivateFieldGet$3(this, _Tag_inheritedAttributes, "f") }, this.iconName !== undefined && this.iconName !== '' ? (hAsync(Fragment, null, this.iconDescription !== undefined &&
|
|
9991
|
+
this.iconDescription !== '' && (hAsync("span", { class: "qds-sr-only" }, this.iconDescription)), hAsync("qds-icon", { "aria-hidden": "true", class: "qds-icon", "data-size": __classPrivateFieldGet$3(this, _Tag_instances, "a", _Tag_computedSize_get), library: this.iconLibrary, name: this.iconName }))) : (__classPrivateFieldGet$3(this, _Tag_instances, "a", _Tag_hasBadge_get) && (hAsync("qds-badge-indicator", { status: __classPrivateFieldGet$3(this, _Tag_instances, "a", _Tag_computedStatus_get), description: this.badgeDescription, size: __classPrivateFieldGet$3(this, _Tag_instances, "a", _Tag_computedSize_get), strokeRing: true }))), hAsync("span", { key: 'fc666a3f4dcfeb01c5309d3f54d41ce6c1a8f532', class: "qds-text" }, this.text)));
|
|
9956
9992
|
}
|
|
9957
9993
|
get host() { return getElement(this); }
|
|
9958
9994
|
static get style() { return QdsTagStyle0; }
|
|
@@ -10430,7 +10466,7 @@ _Title_inheritedAttributes = new WeakMap(), _Title_instances = new WeakSet(), _T
|
|
|
10430
10466
|
return this.kicker !== undefined && this.kicker !== '';
|
|
10431
10467
|
};
|
|
10432
10468
|
|
|
10433
|
-
const tooltipCss = ":host([hidden]){display:none!important}:host{align-items:flex-start;background-color:var(--qds-theme-accessory-background);border-radius:var(--qds-accessory-border-radius);box-shadow:var(--qds-theme-accessory-elevation);box-sizing:border-box;color:var(--qds-theme-text-standard);display:flex;flex-direction:column;gap:var(--qds-accessory-gap-children-unrelated);left:0;padding:var(--qds-accessory-padding);top:0}:host:before{content:\"\";height:100%;left:0;position:absolute;top:0;width:100%}::slotted(blockquote),::slotted(button),::slotted(dd),::slotted(dl),::slotted(fieldset),::slotted(figure),::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6),::slotted(hr),::slotted(input),::slotted(menu),::slotted(ol),::slotted(p),::slotted(pre),::slotted(select),::slotted(textarea),::slotted(ul){margin:0}:host([data-side=bottom]):before,:host([data-side=top]):before{height:calc(var(--qds-accessory-gap-floating, 0px) + var(--qds-signature-triangle-pointer-size-height, 0px));top:100%}:host([data-side=bottom]):before{top:calc((var(--qds-accessory-gap-floating, 0px) + var(--qds-signature-triangle-pointer-size-height, 0px))*-1)}:host([data-side=left]):before,:host([data-side=right]):before{left:100%;width:calc(var(--qds-accessory-gap-floating, 0px) + var(--qds-signature-triangle-pointer-size-height, 0px))}:host([data-side=right]):before{left:calc((var(--qds-accessory-gap-floating, 0px) + var(--qds-signature-triangle-pointer-size-height, 0px))*-1)}.qds-arrow
|
|
10469
|
+
const tooltipCss = ":host([hidden]){display:none!important}:host{align-items:flex-start;background-color:var(--qds-theme-accessory-background);border-radius:var(--qds-accessory-border-radius);box-shadow:var(--qds-theme-accessory-elevation);box-sizing:border-box;color:var(--qds-theme-text-standard);display:flex;flex-direction:column;gap:var(--qds-accessory-gap-children-unrelated);left:0;padding:var(--qds-accessory-padding);top:0}:host:before{content:\"\";height:100%;left:0;position:absolute;top:0;width:100%}::slotted(blockquote),::slotted(button),::slotted(dd),::slotted(dl),::slotted(fieldset),::slotted(figure),::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6),::slotted(hr),::slotted(input),::slotted(menu),::slotted(ol),::slotted(p),::slotted(pre),::slotted(select),::slotted(textarea),::slotted(ul){margin:0}:host([data-side=bottom]):before,:host([data-side=top]):before{height:calc(var(--qds-accessory-gap-floating, 0px) + var(--qds-signature-triangle-pointer-size-height, 0px));top:100%}:host([data-side=bottom]):before{top:calc((var(--qds-accessory-gap-floating, 0px) + var(--qds-signature-triangle-pointer-size-height, 0px))*-1)}:host([data-side=left]):before,:host([data-side=right]):before{left:100%;width:calc(var(--qds-accessory-gap-floating, 0px) + var(--qds-signature-triangle-pointer-size-height, 0px))}:host([data-side=right]):before{left:calc((var(--qds-accessory-gap-floating, 0px) + var(--qds-signature-triangle-pointer-size-height, 0px))*-1)}.qds-arrow{height:var(--qds-signature-triangle-pointer-size-height);position:absolute;width:var(--qds-signature-triangle-pointer-size-width)}.qds-arrow:before{background-color:var(--qds-theme-accessory-background);clip-path:polygon(0 0,100% 0,50% 100%);content:\"\";height:100%;position:absolute;width:100%}.qds-arrow[data-side=bottom]{bottom:100%;transform:rotate(180deg)}.qds-arrow[data-side=left]{left:100%;transform:rotate(-90deg)}.qds-arrow[data-side=right]{right:100%;transform:rotate(90deg)}.qds-arrow[data-side=top]{top:100%}";
|
|
10434
10470
|
var QdsTooltipStyle0 = tooltipCss;
|
|
10435
10471
|
|
|
10436
10472
|
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
@@ -10491,8 +10527,6 @@ class Tooltip {
|
|
|
10491
10527
|
this.trigger = 'pointerenter focus';
|
|
10492
10528
|
this.open = false;
|
|
10493
10529
|
this.side = 'top';
|
|
10494
|
-
this.aShape = '';
|
|
10495
|
-
this.aViewbox = '0 0 0 0';
|
|
10496
10530
|
this.aHeight = 0;
|
|
10497
10531
|
this.aGap = 0;
|
|
10498
10532
|
_Tooltip_arrowContainerElement.set(this, void 0);
|
|
@@ -10501,8 +10535,8 @@ class Tooltip {
|
|
|
10501
10535
|
_Tooltip_isTouchDevice.set(this, false);
|
|
10502
10536
|
_Tooltip_listeners.set(this, []);
|
|
10503
10537
|
_Tooltip_referenceElement.set(this, void 0);
|
|
10504
|
-
_Tooltip_arrowContainerRef.set(this, (
|
|
10505
|
-
__classPrivateFieldSet(this, _Tooltip_arrowContainerElement,
|
|
10538
|
+
_Tooltip_arrowContainerRef.set(this, (div) => {
|
|
10539
|
+
__classPrivateFieldSet(this, _Tooltip_arrowContainerElement, div, "f");
|
|
10506
10540
|
});
|
|
10507
10541
|
_Tooltip_boundTooltipPointerDown.set(this, () => {
|
|
10508
10542
|
__classPrivateFieldSet(this, _Tooltip_clickedTooltip, true, "f");
|
|
@@ -10557,23 +10591,10 @@ class Tooltip {
|
|
|
10557
10591
|
* changed.
|
|
10558
10592
|
*/
|
|
10559
10593
|
async updateArrow() {
|
|
10560
|
-
const aWidth = propertyToPx(this.host, `--qds-signature-triangle-pointer-size-width`) ??
|
|
10561
|
-
0;
|
|
10562
|
-
const aTipRadius = propertyToPx(this.host, `--qds-signature-triangle-pointer-tip-radius`) ??
|
|
10563
|
-
0;
|
|
10564
|
-
const svgX = (aWidth / 2) * (aTipRadius / -8 + 1);
|
|
10565
|
-
const svgY = ((this.aHeight / 2) * aTipRadius) / 4;
|
|
10566
10594
|
this.aHeight =
|
|
10567
10595
|
propertyToPx(this.host, `--qds-signature-triangle-pointer-size-height`) ??
|
|
10568
10596
|
0;
|
|
10569
|
-
this.aViewbox = `0 0 ${aWidth} ${Math.max(this.aHeight, aWidth)}`;
|
|
10570
10597
|
this.aGap = propertyToPx(this.host, '--qds-accessory-gap-floating') ?? 0;
|
|
10571
|
-
this.aShape =
|
|
10572
|
-
'M0,0' +
|
|
10573
|
-
` H${aWidth}` +
|
|
10574
|
-
` L${aWidth - svgX},${this.aHeight - svgY}` +
|
|
10575
|
-
` Q${aWidth / 2},${this.aHeight} ${svgX},${this.aHeight - svgY}` +
|
|
10576
|
-
' Z';
|
|
10577
10598
|
}
|
|
10578
10599
|
async updateMiddleware() {
|
|
10579
10600
|
invariant(__classPrivateFieldGet(this, _Tooltip_arrowContainerElement, "f"));
|
|
@@ -10702,10 +10723,10 @@ class Tooltip {
|
|
|
10702
10723
|
__classPrivateFieldGet(this, _Tooltip_referenceElement, "f").removeAttribute('aria-describedby');
|
|
10703
10724
|
}
|
|
10704
10725
|
render() {
|
|
10705
|
-
return (hAsync(Host, { key: '
|
|
10726
|
+
return (hAsync(Host, { key: 'fe699b7a444ed3d9632d841d91225aeeebb5db77', "data-side": this.side, role: this.host.role ?? 'tooltip', onKeyDown: __classPrivateFieldGet(this, _Tooltip_boundKeyDown, "f"), onPointerDown: __classPrivateFieldGet(this, _Tooltip_boundTooltipPointerDown, "f"), style: {
|
|
10706
10727
|
position: this.hostPosition,
|
|
10707
10728
|
transform: this.hostTransform,
|
|
10708
|
-
} }, hAsync("slot", { key: '
|
|
10729
|
+
} }, hAsync("slot", { key: '1ef92f15213c41eebaa1b02fa50e38ea455620ea' }), hAsync("div", { key: '090db32a65ec27941b5eb5708330d7043c124a3d', class: "qds-arrow", "data-side": this.side, ref: __classPrivateFieldGet(this, _Tooltip_arrowContainerRef, "f"), style: this.aStyles })));
|
|
10709
10730
|
}
|
|
10710
10731
|
get host() { return getElement(this); }
|
|
10711
10732
|
static get watchers() { return {
|
|
@@ -10747,8 +10768,6 @@ class Tooltip {
|
|
|
10747
10768
|
"middleware": [32],
|
|
10748
10769
|
"side": [32],
|
|
10749
10770
|
"aStyles": [32],
|
|
10750
|
-
"aShape": [32],
|
|
10751
|
-
"aViewbox": [32],
|
|
10752
10771
|
"aHeight": [32],
|
|
10753
10772
|
"aGap": [32],
|
|
10754
10773
|
"show": [64],
|