@florid-kit/components 3.2.2 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aria.d.ts +1 -1
- package/components/button.d.ts +0 -1
- package/components/side-panel.mjs +4 -7
- package/components/wishlist-button.mjs +2 -2
- package/index.mjs +1 -1
- package/loader.mjs +1 -1
- package/package.json +1 -1
package/aria.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type ARIAAttribute = ARIAPropertyToAttribute<ARIAProperty>;
|
|
|
15
15
|
/**
|
|
16
16
|
* Accessibility Object Model aria attributes.
|
|
17
17
|
*/
|
|
18
|
-
export declare const ARIA_ATTRIBUTES: ("aria-label" | "aria-modal" | "aria-
|
|
18
|
+
export declare const ARIA_ATTRIBUTES: ("aria-label" | "aria-modal" | "aria-hidden" | "aria-expanded" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext")[];
|
|
19
19
|
/**
|
|
20
20
|
* Checks if an attribute is one of the AOM aria attributes.
|
|
21
21
|
*
|
package/components/button.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export declare class OccitaneButton extends buttonBaseClass implements FormSubmi
|
|
|
26
26
|
target: "_blank" | "_self" | "_top" | "_parent" | "";
|
|
27
27
|
underlined: boolean;
|
|
28
28
|
withbadge: boolean;
|
|
29
|
-
hideRoleButton: boolean;
|
|
30
29
|
describedBy: string | null;
|
|
31
30
|
ariaExpanded: string | null;
|
|
32
31
|
private handleClick;
|
|
@@ -299,7 +299,7 @@ let l = class extends E(w) {
|
|
|
299
299
|
if (!t) return;
|
|
300
300
|
t.updateComplete && await t.updateComplete, (h = (s = ((r = t.shadowRoot) == null ? void 0 : r.querySelector("button")) ?? t) == null ? void 0 : s.focus) == null || h.call(s, { preventScroll: !0 });
|
|
301
301
|
const n = (f = this.shadowRoot) == null ? void 0 : f.querySelector('.panel[role="dialog"]');
|
|
302
|
-
n && n.setAttribute("aria-label", this.labelAriaDialogPanel
|
|
302
|
+
n && (this.labelAriaDialogPanel ? n.setAttribute("aria-label", this.labelAriaDialogPanel) : n.setAttribute("aria-labelledby", "panel-title"));
|
|
303
303
|
}
|
|
304
304
|
_restoreFocusToOrigin() {
|
|
305
305
|
var t, o;
|
|
@@ -519,7 +519,8 @@ let l = class extends E(w) {
|
|
|
519
519
|
class="panel"
|
|
520
520
|
role="dialog"
|
|
521
521
|
aria-modal="true"
|
|
522
|
-
aria-label="${this.labelAriaDialogPanel ||
|
|
522
|
+
aria-label="${this.labelAriaDialogPanel || b}"
|
|
523
|
+
aria-labelledby="${this.labelAriaDialogPanel ? b : "panel-title"}"
|
|
523
524
|
style="z-index: ${this.zIndex + 1}"
|
|
524
525
|
tabindex="-1"
|
|
525
526
|
>
|
|
@@ -883,7 +884,7 @@ var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, p = (e, t, o
|
|
|
883
884
|
const J = E(A(w)), lt = ["primary", "secondary", "ghost", "tertiary", "link"];
|
|
884
885
|
let d = class extends J {
|
|
885
886
|
constructor() {
|
|
886
|
-
super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "", this.endIconModel = "", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "", this.underlined = !1, this.withbadge = !1, this.
|
|
887
|
+
super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "", this.endIconModel = "", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "", this.underlined = !1, this.withbadge = !1, this.describedBy = null, this.ariaExpanded = null;
|
|
887
888
|
}
|
|
888
889
|
get name() {
|
|
889
890
|
return this.getAttribute("name") ?? "";
|
|
@@ -944,7 +945,6 @@ let d = class extends J {
|
|
|
944
945
|
target=${this.target || b}
|
|
945
946
|
class="button"
|
|
946
947
|
?disabled=${this.disabled}
|
|
947
|
-
role=${this.hideRoleButton ? b : "button"}
|
|
948
948
|
@click=${this.handleClick}
|
|
949
949
|
@keydown=${this.handleClick}
|
|
950
950
|
aria-describedby=${this.describedBy || b}
|
|
@@ -1264,9 +1264,6 @@ p([
|
|
|
1264
1264
|
p([
|
|
1265
1265
|
a({ type: Boolean, reflect: !0 })
|
|
1266
1266
|
], d.prototype, "withbadge", 2);
|
|
1267
|
-
p([
|
|
1268
|
-
a({ type: Boolean, reflect: !0 })
|
|
1269
|
-
], d.prototype, "hideRoleButton", 2);
|
|
1270
1267
|
p([
|
|
1271
1268
|
a({ reflect: !0, attribute: "describedby" })
|
|
1272
1269
|
], d.prototype, "describedBy", 2);
|
|
@@ -20,7 +20,7 @@ let s = class extends d(b) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
connectedCallback() {
|
|
23
|
-
super.connectedCallback(),
|
|
23
|
+
super.connectedCallback(), u("occ-wishlist-outlined"), u("occ-wishlist-filled"), this._unsubOcc = g(() => this.requestUpdate());
|
|
24
24
|
}
|
|
25
25
|
disconnectedCallback() {
|
|
26
26
|
var t;
|
|
@@ -33,7 +33,7 @@ let s = class extends d(b) {
|
|
|
33
33
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.toggleStatus());
|
|
34
34
|
}
|
|
35
35
|
applyStatus(t) {
|
|
36
|
-
this.status = t, this.icon = t === "filled" ? "occ-wishlist-filled" : "occ-wishlist-outlined", this.bgstyle = t === "filled" ? "none-contrast" : "none-light"
|
|
36
|
+
this.status = t, this.icon = t === "filled" ? "occ-wishlist-filled" : "occ-wishlist-outlined", this.bgstyle = t === "filled" ? "none-contrast" : "none-light";
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
const t = v[this.icon] ?? "";
|
package/index.mjs
CHANGED
package/loader.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import "./components/link.mjs";
|
|
|
4
4
|
import "./components/header-simplify.mjs";
|
|
5
5
|
import "./components/breadcrumb.mjs";
|
|
6
6
|
import "./components/breadcrumbs.mjs";
|
|
7
|
-
globalThis.__FLORID_KIT__ = "3.2.
|
|
7
|
+
globalThis.__FLORID_KIT__ = "3.2.4";
|
|
8
8
|
const i = {
|
|
9
9
|
"o-accordion": () => import("./components/accordion.mjs"),
|
|
10
10
|
"o-accordion-group": () => import("./components/accordion-group.mjs"),
|