@graupl/graupl 1.0.0-beta.45 → 1.0.0-beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/component/carousel.css +1 -1
- package/dist/css/component/carousel.css.map +1 -1
- package/dist/css/component.css +1 -1
- package/dist/css/component.css.map +1 -1
- package/dist/css/graupl.css +1 -1
- package/dist/css/graupl.css.map +1 -1
- package/dist/js/breadcrumb.js +30 -30
- package/dist/js/breadcrumb.js.map +1 -1
- package/dist/js/carousel.js +266 -145
- package/dist/js/carousel.js.map +1 -1
- package/dist/js/component/breadcrumb.cjs.js +22 -22
- package/dist/js/component/breadcrumb.cjs.js.map +1 -1
- package/dist/js/component/breadcrumb.es.js +22 -22
- package/dist/js/component/breadcrumb.es.js.map +1 -1
- package/dist/js/component/breadcrumb.iife.js +24 -24
- package/dist/js/component/breadcrumb.iife.js.map +1 -1
- package/dist/js/component/carousel.cjs.js +246 -125
- package/dist/js/component/carousel.cjs.js.map +1 -1
- package/dist/js/component/carousel.es.js +246 -125
- package/dist/js/component/carousel.es.js.map +1 -1
- package/dist/js/component/carousel.iife.js +243 -122
- package/dist/js/component/carousel.iife.js.map +1 -1
- package/dist/js/component/disclosure.cjs.js +1 -1
- package/dist/js/component/disclosure.cjs.js.map +1 -1
- package/dist/js/component/disclosure.es.js +1 -1
- package/dist/js/component/disclosure.es.js.map +1 -1
- package/dist/js/component/disclosure.iife.js +1 -1
- package/dist/js/component/disclosure.iife.js.map +1 -1
- package/dist/js/disclosure.js +12 -12
- package/dist/js/disclosure.js.map +1 -1
- package/dist/js/generator/breadcrumb.cjs.js +24 -24
- package/dist/js/generator/breadcrumb.cjs.js.map +1 -1
- package/dist/js/generator/breadcrumb.es.js +40 -40
- package/dist/js/generator/breadcrumb.es.js.map +1 -1
- package/dist/js/generator/breadcrumb.iife.js +46 -46
- package/dist/js/generator/breadcrumb.iife.js.map +1 -1
- package/dist/js/generator/carousel.cjs.js +262 -141
- package/dist/js/generator/carousel.cjs.js.map +1 -1
- package/dist/js/generator/carousel.es.js +262 -141
- package/dist/js/generator/carousel.es.js.map +1 -1
- package/dist/js/generator/carousel.iife.js +263 -142
- package/dist/js/generator/carousel.iife.js.map +1 -1
- package/dist/js/generator/disclosure.cjs.js +13 -13
- package/dist/js/generator/disclosure.cjs.js.map +1 -1
- package/dist/js/generator/disclosure.es.js +13 -13
- package/dist/js/generator/disclosure.es.js.map +1 -1
- package/dist/js/generator/disclosure.iife.js +12 -12
- package/dist/js/generator/disclosure.iife.js.map +1 -1
- package/dist/js/graupl.js +565 -444
- package/dist/js/graupl.js.map +1 -1
- package/package.json +1 -1
|
@@ -207,7 +207,7 @@ function m(t) {
|
|
|
207
207
|
return "";
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function f(t) {
|
|
211
211
|
t.preventDefault(), t.stopPropagation();
|
|
212
212
|
}
|
|
213
213
|
var D = class {
|
|
@@ -616,7 +616,7 @@ var D = class {
|
|
|
616
616
|
initializeClass: U
|
|
617
617
|
}), this._dom.disclosure = t, this._dom.controller = e, this._selectors.content = s, this._classes.locked = i || "", this._classes.unlocked = r || "", this._classes.open = o || "", this._classes.close = a || "", this._classes.transition = d || "", this._durations.transition = L, this._durations.open = z, this._durations.close = A, this._openOnFocus = j, this._closeOnBlur = Q, C !== "" && (console.warn("`minWidth` is deprecated and will be removed in a future release. Please set `breakpoint` instead."), p === "" && (p = C)), y && p !== "" && (console.warn("`autoOpen` is deprecated and will be removed in a future release. Please set `openOutsideBreakpoint` and `closeInsideBreakpoint` to `true` instead."), v = y, B = y), this._breakpoint = p || "", this._openInsideBreakpoint = F, this._openOutsideBreakpoint = v, this._closeInsideBreakpoint = B, this._closeOutsideBreakpoint = V, this._lockInsideBreakpoint = P, this._lockOutsideBreakpoint = q, this._unlockInsideBreakpoint = x, this._unlockOutsideBreakpoint = K, this._mediaQueryString = H || "", this._locked.value = G, this._locked.commit(), this._registerEvent("expand", { detail: { disclosure: this } }), this._registerEvent("collapse", { detail: { disclosure: this } }), this._registerEvent("lock", { detail: { disclosure: this } }), this._registerEvent("unlock", { detail: { disclosure: this } }), this._addEventListener("grauplComponentInitialize", this.rootDOMElement, () => {
|
|
618
618
|
requestAnimationFrame(() => {
|
|
619
|
-
this.dom.controller.getAttribute("aria-expanded") === "true" || this.openOutsideBreakpoint && !window.matchMedia(this.mediaQuery).matches || this.openInsideBreakpoint && window.matchMedia(this.mediaQuery).matches ? this.open() : this.close(),
|
|
619
|
+
this.dom.controller.getAttribute("aria-expanded") === "true" || this.openOutsideBreakpoint && !window.matchMedia(this.mediaQuery).matches || this.openInsideBreakpoint && window.matchMedia(this.mediaQuery).matches ? this.open({ force: !0 }) : this.close({ force: !0 }), this.isLocked || this.lockInsideBreakpoint && window.matchMedia(this.mediaQuery).matches || this.lockOutsideBreakpoint && !window.matchMedia(this.mediaQuery).matches ? this.lock({ force: !0 }) : this.unlock({ force: !0 });
|
|
620
620
|
});
|
|
621
621
|
}), this._addEventListener("grauplComponentValidate", this.rootDOMElement, () => {
|
|
622
622
|
const $ = n("boolean", {
|
|
@@ -792,7 +792,7 @@ var D = class {
|
|
|
792
792
|
}
|
|
793
793
|
_handleClick() {
|
|
794
794
|
this._addEventListener("click", this.dom.controller, (t) => {
|
|
795
|
-
this.currentEvent = "mouse", t.button === 0 && (
|
|
795
|
+
this.currentEvent = "mouse", t.button === 0 && (f(t), this.toggle());
|
|
796
796
|
}), this._addEventListener("click", document, (t) => {
|
|
797
797
|
this.focusState !== "self" || !this.closeOnBlur || (this.currentEvent = "mouse", !this.dom.disclosure.contains(t.target) && this.dom.controller !== t.target && this.close());
|
|
798
798
|
});
|
|
@@ -802,11 +802,11 @@ var D = class {
|
|
|
802
802
|
switch (this.currentEvent = "keyboard", m(t)) {
|
|
803
803
|
case "Space":
|
|
804
804
|
case "Enter":
|
|
805
|
-
|
|
805
|
+
f(t);
|
|
806
806
|
break;
|
|
807
807
|
}
|
|
808
808
|
}), this._addEventListener("keydown", this.dom.disclosure, (t) => {
|
|
809
|
-
this.currentEvent = "keyboard", m(t) === "Escape" &&
|
|
809
|
+
this.currentEvent = "keyboard", m(t) === "Escape" && f(t);
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
812
|
_handleKeyup() {
|
|
@@ -814,14 +814,14 @@ var D = class {
|
|
|
814
814
|
switch (this.currentEvent = "keyboard", m(t)) {
|
|
815
815
|
case "Space":
|
|
816
816
|
case "Enter":
|
|
817
|
-
this.toggle(),
|
|
817
|
+
this.toggle(), f(t);
|
|
818
818
|
break;
|
|
819
819
|
case "Tab":
|
|
820
|
-
this.openOnFocus && (
|
|
820
|
+
this.openOnFocus && (f(t), this.open());
|
|
821
821
|
break;
|
|
822
822
|
}
|
|
823
823
|
}), this._addEventListener("keyup", this.dom.disclosure, (t) => {
|
|
824
|
-
this.currentEvent = "keyboard", m(t) === "Escape" && (this.close(),
|
|
824
|
+
this.currentEvent = "keyboard", m(t) === "Escape" && (this.close(), f(t));
|
|
825
825
|
});
|
|
826
826
|
}
|
|
827
827
|
open({ force: t = !1, emit: e = this.isInitialized, transition: s = this.isInitialized, preserveState: i = !1 } = {}) {
|
|
@@ -908,15 +908,15 @@ function S(t, { add: e, remove: s }) {
|
|
|
908
908
|
const r = i.join(" ");
|
|
909
909
|
O(t, r === "" ? "remove" : "set", r);
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function _(t, e, s) {
|
|
912
912
|
return b(`:not(${k(t)})`, g(e, s), (i) => S(i, { add: t }));
|
|
913
913
|
}
|
|
914
|
-
|
|
914
|
+
_.remove = (t, e, s) => b(k(t), g(e, s), (i) => S(i, { remove: t })), _.filter = (t, e, s) => b(k(t), g(e, s)), _.find = (t, e) => g(t ? k(t) : `[${E}]`, e);
|
|
915
915
|
const ot = ({ options: t = {}, context: e = document, disclosureSelector: s = ".disclosure", controllerSelector: i = ".disclosure-toggle" } = {}) => {
|
|
916
|
-
|
|
917
|
-
const o = r.dataset.grauplDisclosureOptions ? JSON.parse(r.dataset.grauplDisclosureOptions.replace(/'/g, "\"")) || {} : {}, a = `${i}[data-graupl-disclosure-target="${r.id}"]`, [d] =
|
|
916
|
+
_("graupl-disclosure-generator", s, e).forEach((r) => {
|
|
917
|
+
const o = r.dataset.grauplDisclosureOptions ? JSON.parse(r.dataset.grauplDisclosureOptions.replace(/'/g, "\"")) || {} : {}, a = `${i}[data-graupl-disclosure-target="${r.id}"]`, [d] = _("graupl-disclosure-generator", a, e);
|
|
918
918
|
if (!d) {
|
|
919
|
-
console.warn(`No controller found for disclosure with ID "${r.id}". Please ensure there is an element with the selector "${a}".`),
|
|
919
|
+
console.warn(`No controller found for disclosure with ID "${r.id}". Please ensure there is an element with the selector "${a}".`), _.remove("graupl-disclosure-generator", r);
|
|
920
920
|
return;
|
|
921
921
|
}
|
|
922
922
|
new st({
|