@ulu/frontend 0.3.1 → 0.3.3

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/es/index.js CHANGED
@@ -3,8 +3,8 @@ import { getDefaultSettings as l, getSetting as n, getSettings as p, updateSetti
3
3
  import { ComponentInitializer as m } from "./core/component.js";
4
4
  import { BreakpointManager as I } from "./ui/breakpoints.js";
5
5
  import { Collapsible as S } from "./ui/collapsible.js";
6
- import { init as D, initializer as C, setupGroup as v } from "./ui/details-group.js";
7
- import { baseAttribute as y, closeAttribute as T, defaults as B, getDialogOptions as P, init as h, initializer as A, setDefaults as L, setupDialog as k, setupTrigger as G } from "./ui/dialog.js";
6
+ import { init as D, initializer as v, setupGroup as C } from "./ui/details-group.js";
7
+ import { baseAttribute as T, closeAttribute as y, defaults as B, getDialogOptions as P, init as h, initializer as A, setDefaults as L, setupDialog as k, setupTrigger as G } from "./ui/dialog.js";
8
8
  import { Flipcard as M, init as w, initializer as U } from "./ui/flipcard.js";
9
9
  import { init as F, initializer as O } from "./ui/grid.js";
10
10
  import { buildModal as N, defaults as R, init as W, initializer as K, setDefaults as j } from "./ui/modal-builder.js";
@@ -17,8 +17,8 @@ import { attrs as ne, init as pe } from "./ui/print-details.js";
17
17
  import { init as ue } from "./ui/print.js";
18
18
  import { attachHandlers as de, defaults as me, init as xe, initializer as Ie, setDefaults as ce, setupProxy as Se } from "./ui/proxy-click.js";
19
19
  import { Resizer as De } from "./ui/resizer.js";
20
- import { init as ve, initializer as be } from "./ui/scroll-slider.js";
21
- import { Scrollpoint as Te, init as Be, initializer as Pe } from "./ui/scrollpoint.js";
20
+ import { init as Ce, initializer as be } from "./ui/scroll-slider.js";
21
+ import { Scrollpoint as ye, init as Be, initializer as Pe } from "./ui/scrollpoint.js";
22
22
  import { Slider as Ae, init as Le, initializer as ke, setupSlider as Ge } from "./ui/slider.js";
23
23
  import { TabManager as Me } from "./ui/tab-manager.js";
24
24
  import { init as Ue, initializer as Ve, instances as Fe, setup as Oe } from "./ui/tabs.js";
@@ -32,6 +32,7 @@ import { configureIcons as ut } from "./utils/font-awesome.js";
32
32
  import { ensureId as dt, newId as mt } from "./utils/id.js";
33
33
  import { pauseVideos as It, prepVideos as ct } from "./utils/pause-youtube-video.js";
34
34
  import { getSoleIframeLayout as zt } from "./utils/iframe.js";
35
+ import { observeDialogToggle as vt } from "./utils/dialog.js";
35
36
  export {
36
37
  I as BreakpointManager,
37
38
  S as Collapsible,
@@ -42,7 +43,7 @@ export {
42
43
  te as Popover,
43
44
  J as ProgrammaticModalManager,
44
45
  De as Resizer,
45
- Te as Scrollpoint,
46
+ ye as Scrollpoint,
46
47
  Ae as Slider,
47
48
  Me as TabManager,
48
49
  Je as Tooltip,
@@ -54,10 +55,10 @@ export {
54
55
  i as createUluEvent,
55
56
  it as dataAttributeToDatasetKey,
56
57
  D as detailsGroupInit,
57
- C as detailsGroupInitializer,
58
- v as detailsGroupSetupGroup,
59
- y as dialogBaseAttribute,
60
- T as dialogCloseAttribute,
58
+ v as detailsGroupInitializer,
59
+ C as detailsGroupSetupGroup,
60
+ T as dialogBaseAttribute,
61
+ y as dialogCloseAttribute,
61
62
  B as dialogDefaults,
62
63
  P as dialogGetDialogOptions,
63
64
  h as dialogInit,
@@ -85,6 +86,7 @@ export {
85
86
  K as modalBuilderInitializer,
86
87
  j as modalBuilderSetDefaults,
87
88
  mt as newId,
89
+ vt as observeDialogToggle,
88
90
  Z as overflowScrollerCreatePager,
89
91
  $ as pageInit,
90
92
  ie as popoverGetContentByTrigger,
@@ -102,7 +104,7 @@ export {
102
104
  ce as proxyClickSetDefaults,
103
105
  Se as proxyClickSetupProxy,
104
106
  rt as resolveClasses,
105
- ve as scrollSliderInit,
107
+ Ce as scrollSliderInit,
106
108
  be as scrollSliderInitializer,
107
109
  Be as scrollpointInit,
108
110
  Pe as scrollpointInitializer,
@@ -46,6 +46,7 @@ export class Slider {
46
46
  slide: {
47
47
  element: any;
48
48
  index: number;
49
+ id: any;
49
50
  number: number;
50
51
  } | null;
51
52
  index: any;
@@ -53,9 +54,11 @@ export class Slider {
53
54
  swipeListener: ((event: any) => void) | null;
54
55
  swipeImageListener: ((event: any) => void) | null;
55
56
  transitioning: boolean;
57
+ trackId: any;
56
58
  slides: {
57
59
  element: any;
58
60
  index: number;
61
+ id: any;
59
62
  number: number;
60
63
  }[];
61
64
  elements: any;
@@ -80,7 +83,7 @@ export class Slider {
80
83
  * doesn't start or fails to finish/cancel
81
84
  * @param {number} element
82
85
  * @param {number} duration Duration to wait for complete
83
- * @param {Function} beginTransition Css changes to begin/start transtion
86
+ * @param {Function} beginTransition Css changes to begin/start transition
84
87
  */
85
88
  ensureTransitionEnds(element: number, duration: number, beginTransition: Function): Promise<any>;
86
89
  /**
@@ -88,7 +91,7 @@ export class Slider {
88
91
  */
89
92
  translateTo(x: any, duration: any): Promise<void>;
90
93
  /**
91
- * Show's a specifc slide and hides others, except when passing true to show all
94
+ * Show's a specific slide and hides others, except when passing true to show all
92
95
  * then all slides will visible
93
96
  */
94
97
  setVisibility(activeSlide: any, showAll: any): void;
@@ -97,7 +100,7 @@ export class Slider {
97
100
  */
98
101
  fadeSlide(slide: any, visible: any): Promise<any>;
99
102
  /**
100
- * Handler for the entire slide transtion
103
+ * Handler for the entire slide transition
101
104
  */
102
105
  slideTransition({ slide, index, old, oldIndex, triggerType }: {
103
106
  slide: any;
@@ -107,14 +110,14 @@ export class Slider {
107
110
  triggerType: any;
108
111
  }): Promise<void>;
109
112
  /**
110
- * Handler for the entire fade transtion
113
+ * Handler for the entire fade transition
111
114
  */
112
115
  fadeTransition({ slide, old }: {
113
116
  slide: any;
114
117
  old: any;
115
118
  }): Promise<void>;
116
119
  /**
117
- * Handler for the entire NO transtion
120
+ * Handler for the entire NO transition
118
121
  */
119
122
  noTransition({ slide, old }: {
120
123
  slide: any;
@@ -1 +1 @@
1
- {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../lib/js/ui/slider.js"],"names":[],"mappings":"AAgEA;;GAEG;AACH,6BASC;AAED;;;;GAIG;AACH,uCAHW,IAAI,WACJ,MAAM,QAiBhB;AA1DD;;GAEG;AACH,+CAGG;AAsDH;;GAEG;AACH;IACE,wBAAsB;IACtB,mCAAkC;IAClC,6BAA4B;IAE5B,kCAYC;IACD;;OAEG;IACH;;;;;;;;;;;;;;;;MAgBC;IACD,wCAoCC;IAjCC,aAAsB;IACtB;;;;aAAiB;IACjB,WAAiB;IACjB,mBAAyB;IACzB,6CAAyB;IACzB,kDAA8B;IAC9B,uBAA0B;IAQ1B;;;;QAME;IACF,cAIC;IAED;;;wBACgF;IAMlF;;OAEG;IACH,qBAKC;IACD;;OAEG;IACH,2BAOC;IACD;;OAEG;IACH,uBAMC;IACD;;;;;;OAMG;IACH,8BAJW,MAAM,YACN,MAAM,2CAqChB;IACD;;OAEG;IACH,kDASC;IACD;;;OAGG;IACH,oDASC;IACD;;OAEG;IACH,kDAOC;IACD;;OAEG;IACH;;;;;;sBAoDC;IACD;;OAEG;IACH;;;sBAUC;IACD;;OAEG;IACH;;;sBAOC;IACD,qDA2CC;IACD,cAmBC;IACD,mBAsBC;IACD,0BAMC;IACD,+BAKC;IACD,qCAOC;IACD,mBAQC;IACD,mBASC;IACD,yCASC;IACD,oDAUC;IACD;;;;;;MAwBC;IACD;;;;MAmBC;IACD,2DAQC;IACD,uCAMC;IACD,kCAEC;IACD,iCAIC;CACF;qCA1iBoC,sBAAsB"}
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../lib/js/ui/slider.js"],"names":[],"mappings":"AAiEA;;GAEG;AACH,6BASC;AAED;;;;GAIG;AACH,uCAHW,IAAI,WACJ,MAAM,QAiBhB;AA1DD;;GAEG;AACH,+CAGG;AAsDH;;GAEG;AACH;IACE,wBAAsB;IACtB,mCAAkC;IAClC,6BAA4B;IAE5B,kCAYC;IACD;;OAEG;IACH;;;;;;;;;;;;;;;;MAgBC;IACD,wCA4CC;IAzCC,aAAsB;IACtB;;;;;aAAiB;IACjB,WAAiB;IACjB,mBAAyB;IACzB,6CAAyB;IACzB,kDAA8B;IAC9B,uBAA0B;IAU1B,aAAgC;IAEhC;;;;;QAQE;IAGF,cAIC;IAED;;;wBACgF;IAMlF;;OAEG;IACH,qBAKC;IACD;;OAEG;IACH,2BAOC;IACD;;OAEG;IACH,uBAMC;IACD;;;;;;OAMG;IACH,8BAJW,MAAM,YACN,MAAM,2CAqChB;IACD;;OAEG;IACH,kDASC;IACD;;;OAGG;IACH,oDASC;IACD;;OAEG;IACH,kDAOC;IACD;;OAEG;IACH;;;;;;sBAoDC;IACD;;OAEG;IACH;;;sBAUC;IACD;;OAEG;IACH;;;sBAOC;IACD,qDA2CC;IACD,cAyBC;IACD,mBAsBC;IACD,0BAMC;IACD,+BAKC;IACD,qCAOC;IACD,mBAQC;IACD,mBASC;IACD,yCASC;IACD,oDAWC;IACD;;;;;;MAwBC;IACD;;;;MAmBC;IACD,2DASC;IACD,uCAMC;IACD,kCAEC;IACD,iCAIC;CACF;qCA3jBoC,sBAAsB"}
@@ -1,70 +1,71 @@
1
- var $ = Object.defineProperty;
1
+ var I = Object.defineProperty;
2
2
  var w = Object.getOwnPropertySymbols;
3
- var I = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
4
- var b = (o, t, s) => t in o ? $(o, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : o[t] = s, v = (o, t) => {
3
+ var A = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
4
+ var g = (r, t, s) => t in r ? I(r, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[t] = s, b = (r, t) => {
5
5
  for (var s in t || (t = {}))
6
- I.call(t, s) && b(o, s, t[s]);
6
+ A.call(t, s) && g(r, s, t[s]);
7
7
  if (w)
8
8
  for (var s of w(t))
9
- A.call(t, s) && b(o, s, t[s]);
10
- return o;
9
+ z.call(t, s) && g(r, s, t[s]);
10
+ return r;
11
11
  };
12
- var f = (o, t, s) => b(o, typeof t != "symbol" ? t + "" : t, s);
13
- var y = (o, t, s) => new Promise((e, i) => {
12
+ var f = (r, t, s) => g(r, typeof t != "symbol" ? t + "" : t, s);
13
+ var y = (r, t, s) => new Promise((e, i) => {
14
14
  var n = (c) => {
15
15
  try {
16
- r(s.next(c));
16
+ o(s.next(c));
17
17
  } catch (u) {
18
18
  i(u);
19
19
  }
20
20
  }, a = (c) => {
21
21
  try {
22
- r(s.throw(c));
22
+ o(s.throw(c));
23
23
  } catch (u) {
24
24
  i(u);
25
25
  }
26
- }, r = (c) => c.done ? e(c.value) : Promise.resolve(c.value).then(n, a);
27
- r((s = s.apply(o, t)).next());
26
+ }, o = (c) => c.done ? e(c.value) : Promise.resolve(c.value).then(n, a);
27
+ o((s = s.apply(r, t)).next());
28
28
  });
29
- import { ComponentInitializer as z } from "../core/component.js";
29
+ import { ComponentInitializer as D } from "../core/component.js";
30
30
  import { wrapSettingString as T } from "../core/settings.js";
31
- import { hasRequiredProps as D } from "@ulu/utils/object.js";
31
+ import { ensureId as S } from "../utils/id.js";
32
+ import { hasRequiredProps as M } from "@ulu/utils/object.js";
32
33
  import { trimWhitespace as L } from "@ulu/utils/string.js";
33
- import { debounce as M } from "@ulu/utils/performance.js";
34
- import { logError as x, log as B, logWarning as S } from "../utils/class-logger.js";
35
- import N from "swipe-listener";
36
- const C = new z({
34
+ import { debounce as B } from "@ulu/utils/performance.js";
35
+ import { logError as k, log as N, logWarning as x } from "../utils/class-logger.js";
36
+ import q from "swipe-listener";
37
+ const C = new D({
37
38
  type: "slider",
38
39
  baseAttribute: "data-ulu-slider"
39
- }), q = C.attributeSelector("track"), P = C.attributeSelector("track-container"), V = C.attributeSelector("control-context"), F = C.attributeSelector("slide"), H = [], m = { once: !0 }, k = (o) => `${o}ms`, O = [
40
+ }), P = C.attributeSelector("track"), V = C.attributeSelector("track-container"), F = C.attributeSelector("control-context"), H = C.attributeSelector("slide"), O = [], m = { once: !0 }, $ = (r) => `${r}ms`, R = [
40
41
  "container",
41
42
  "trackContainer",
42
43
  "track",
43
44
  "slides"
44
45
  ];
45
- function Y() {
46
+ function _() {
46
47
  C.init({
47
48
  withData: !0,
48
49
  coreEvents: ["pageModified"],
49
- setup({ element: o, data: t, initialize: s }) {
50
- R(o, t), s();
50
+ setup({ element: r, data: t, initialize: s }) {
51
+ j(r, t), s();
51
52
  }
52
53
  });
53
54
  }
54
- function R(o, t) {
55
+ function j(r, t) {
55
56
  const s = Object.assign({}, t), e = {
56
- container: o,
57
- track: o.querySelector(q),
58
- trackContainer: o.querySelector(P),
59
- controlContext: o.querySelector(V),
60
- slides: o.querySelectorAll(F)
57
+ container: r,
58
+ track: r.querySelector(P),
59
+ trackContainer: r.querySelector(V),
60
+ controlContext: r.querySelector(F),
61
+ slides: r.querySelectorAll(H)
61
62
  };
62
- e.slides.length && H.push(new E(e, s, !1));
63
+ e.slides.length && O.push(new E(e, s, !1));
63
64
  }
64
65
  const l = class l {
65
66
  static _initializeGlobals() {
66
67
  l.globalsInitialized || (addEventListener("load", () => {
67
- addEventListener("resize", M(() => {
68
+ addEventListener("resize", B(() => {
68
69
  l.instances.forEach((t) => t.handleResize());
69
70
  }, 250));
70
71
  }), l.reduceMotion = matchMedia("(prefers-reduced-motion: reduce)").matches, l.globalsInitialized = !0);
@@ -72,11 +73,12 @@ const l = class l {
72
73
  constructor(t, s) {
73
74
  l._initializeGlobals();
74
75
  const e = Object.assign({}, l.defaults, s);
75
- this.options = e, this.slide = null, this.index = null, this.swipeInstance = null, this.swipeListener = null, this.swipeImageListener = null, this.transitioning = !1, D(O) || x(this, "Missing a required Element"), t.slides.length || x(this, "Missing slides"), this.slides = [...t.slides].map((i, n) => ({
76
+ this.options = e, this.slide = null, this.index = null, this.swipeInstance = null, this.swipeListener = null, this.swipeImageListener = null, this.transitioning = !1, M(R) || k(this, "Missing a required Element"), t.slides.length || k(this, "Missing slides"), S(t.track), this.trackId = t.track.id, this.slides = [...t.slides].map((i, n) => (S(i), {
76
77
  element: i,
77
78
  index: n,
79
+ id: i.id,
78
80
  number: n + 1
79
- })), this.elements = v(v(v({}, t), this.createControls(t.controlContext || t.container)), this.createNav(t.navContext || t.container)), this.transition = e.transition ? e.transitionFade || l.reduceMotion ? this.fadeTransition : this.slideTransition : this.noTransition, this.setup(), this.goto(0, null, "init"), B(this, "Slider Instance Created", this), l.instances.push(this);
81
+ })), this.elements = b(b(b({}, t), this.createControls(t.controlContext || t.container)), this.createNav(t.navContext || t.container)), this.transition = e.transition ? e.transitionFade || l.reduceMotion ? this.fadeTransition : this.slideTransition : this.noTransition, this.setup(), this.goto(0, null, "init"), N(this, "Slider Instance Created", this), l.instances.push(this);
80
82
  }
81
83
  /**
82
84
  * Sliding mechanism needs translate updated on resize
@@ -104,16 +106,16 @@ const l = class l {
104
106
  * doesn't start or fails to finish/cancel
105
107
  * @param {number} element
106
108
  * @param {number} duration Duration to wait for complete
107
- * @param {Function} beginTransition Css changes to begin/start transtion
109
+ * @param {Function} beginTransition Css changes to begin/start transition
108
110
  */
109
111
  ensureTransitionEnds(t, s, e) {
110
112
  return new Promise((i) => {
111
113
  const n = {}, a = () => {
112
- clearTimeout(n.start), n.end = setTimeout(r, s + 500);
113
- }, r = () => {
114
- clearTimeout(n.start), clearTimeout(n.end), t.removeEventListener("transitionrun", a, m), t.removeEventListener("transitionend", r, m), t.removeEventListener("transitioncancel", r, m), i();
114
+ clearTimeout(n.start), n.end = setTimeout(o, s + 500);
115
+ }, o = () => {
116
+ clearTimeout(n.start), clearTimeout(n.end), t.removeEventListener("transitionrun", a, m), t.removeEventListener("transitionend", o, m), t.removeEventListener("transitioncancel", o, m), i();
115
117
  };
116
- t.addEventListener("transitionrun", a, m), t.addEventListener("transitionend", r, m), t.addEventListener("transitioncancel", r, m), n.start = setTimeout(r, s + 500), t.style.transitionDuration = k(s), e(), s || r();
118
+ t.addEventListener("transitionrun", a, m), t.addEventListener("transitionend", o, m), t.addEventListener("transitioncancel", o, m), n.start = setTimeout(o, s + 500), t.style.transitionDuration = $(s), e(), s || o();
117
119
  });
118
120
  }
119
121
  /**
@@ -126,7 +128,7 @@ const l = class l {
126
128
  });
127
129
  }
128
130
  /**
129
- * Show's a specifc slide and hides others, except when passing true to show all
131
+ * Show's a specific slide and hides others, except when passing true to show all
130
132
  * then all slides will visible
131
133
  */
132
134
  setVisibility(t, s) {
@@ -144,17 +146,17 @@ const l = class l {
144
146
  });
145
147
  }
146
148
  /**
147
- * Handler for the entire slide transtion
149
+ * Handler for the entire slide transition
148
150
  */
149
151
  slideTransition(a) {
150
152
  return y(this, arguments, function* ({ slide: t, index: s, old: e, oldIndex: i, triggerType: n }) {
151
- const r = this.slides.length, c = n === "previous", u = r - 1, h = s === 0 && i === u, p = s === u && i === 0;
152
- let d, g = this.options.transitionDuration;
153
- i && !h && !p && (g = g * Math.abs(i - s)), r < 3 ? h && !c ? d = e : p && (d = c ? t : e) : h ? d = e : p && (d = t), this.setVisibility(null, !0), d && (d.element.style.order = "-1", yield this.translateTo(h ? 0 : e.element.offsetLeft, 0)), yield this.translateTo(t.element.offsetLeft, g), d && (d.element.style.order = "0", yield this.translateTo(t.element.offsetLeft, 0)), this.setVisibility(t, !1);
153
+ const o = this.slides.length, c = n === "previous", u = o - 1, h = s === 0 && i === u, p = s === u && i === 0;
154
+ let d, v = this.options.transitionDuration;
155
+ i && !h && !p && (v = v * Math.abs(i - s)), o < 3 ? h && !c ? d = e : p && (d = c ? t : e) : h ? d = e : p && (d = t), this.setVisibility(null, !0), d && (d.element.style.order = "-1", yield this.translateTo(h ? 0 : e.element.offsetLeft, 0)), yield this.translateTo(t.element.offsetLeft, v), d && (d.element.style.order = "0", yield this.translateTo(t.element.offsetLeft, 0)), this.setVisibility(t, !1);
154
156
  });
155
157
  }
156
158
  /**
157
- * Handler for the entire fade transtion
159
+ * Handler for the entire fade transition
158
160
  */
159
161
  fadeTransition(e) {
160
162
  return y(this, arguments, function* ({ slide: t, old: s }) {
@@ -162,7 +164,7 @@ const l = class l {
162
164
  });
163
165
  }
164
166
  /**
165
- * Handler for the entire NO transtion
167
+ * Handler for the entire NO transition
166
168
  */
167
169
  noTransition({ slide: t, old: s }) {
168
170
  return this.setVisibility(t, !1), s && (s.element.style.order = "0"), t.element.style.order = "-1", Promise.resolve();
@@ -172,24 +174,24 @@ const l = class l {
172
174
  slide: i,
173
175
  index: n,
174
176
  slides: a,
175
- elements: r
177
+ elements: o
176
178
  } = this, c = e === "init", u = a[t], h = this.getClass("nav-button--active"), p = this.getClass("transition", !0), d = { slide: u, index: t, old: i, oldIndex: n, triggerType: e };
177
179
  if (t === n) {
178
- S(this, "Could not goto slide, still performing transition");
180
+ x(this, "Could not goto slide, still performing transition");
179
181
  return;
180
182
  }
181
183
  if (this.transitioning) {
182
- S(this, "Cancel goto(), same slide index as current slide");
184
+ x(this, "Cancel goto(), same slide index as current slide");
183
185
  return;
184
186
  }
185
- this.elements.track.inert = !0, this.transitioning = !0, i && i.navButton.classList.remove(h), u.navButton.classList.add(h), r.container.classList.add(p), this.transition(d).then(() => {
186
- this.index = t, this.slide = u, this.transitioning = !1, this.elements.track.inert = !1, r.container.classList.remove(p), c || (u.element.focus(), this.emit("goto", [s, t, u]));
187
+ this.elements.track.inert = !0, this.transitioning = !0, i && i.navButton.classList.remove(h), u.navButton.classList.add(h), o.container.classList.add(p), this.transition(d).then(() => {
188
+ this.index = t, this.slide = u, this.transitioning = !1, this.elements.track.inert = !1, o.container.classList.remove(p), c || (u.element.focus(), this.emit("goto", [s, t, u]));
187
189
  });
188
190
  }
189
191
  setup() {
190
192
  const { container: t, track: s, trackContainer: e } = this.elements, i = L(this.trackCss()), n = L(this.trackContainerStyles()), a = L(this.slideCss());
191
- s.setAttribute("style", i), e.setAttribute("style", n), this.slides.forEach((r) => {
192
- r.element.setAttribute("style", a), r.element.setAttribute("tabindex", "-1");
193
+ s.setAttribute("style", i), e.setAttribute("style", n), s.setAttribute("aria-live", "polite"), this.slides.forEach((o) => {
194
+ o.element.setAttribute("style", a), o.element.setAttribute("tabindex", "-1"), o.element.setAttribute("role", "group"), o.element.setAttribute("aria-roledescription", "slide"), o.element.setAttribute("aria-label", `Slide ${o.number} of ${this.slides.length}`);
193
195
  }), t.classList.add(this.getClass()), this.options.swipeEnabled && this.setupSwipe();
194
196
  }
195
197
  setupSwipe() {
@@ -200,7 +202,7 @@ const l = class l {
200
202
  s.preventDefault();
201
203
  }, this.slides.forEach((s) => {
202
204
  const { element: e } = s;
203
- s.swipeInstance = N(e, this.options.swipeOptions), e.addEventListener("swipe", this.swipeListener);
205
+ s.swipeInstance = q(e, this.options.swipeOptions), e.addEventListener("swipe", this.swipeListener);
204
206
  }), t.forEach((s) => {
205
207
  s.addEventListener("dragstart", this.swipeImageListener);
206
208
  });
@@ -218,7 +220,7 @@ const l = class l {
218
220
  const { transitionTimingFunction: s, transitionDuration: e } = this.options;
219
221
  return `
220
222
  transition-property: ${t};
221
- transition-duration: ${k(e)};
223
+ transition-duration: ${$(e)};
222
224
  transition-timing-function: ${s};
223
225
  `;
224
226
  }
@@ -245,7 +247,7 @@ const l = class l {
245
247
  }
246
248
  createControlButton(t) {
247
249
  const s = document.createElement("button");
248
- return s.classList.add(this.getClass("control-button")), s.classList.add(this.getClass(`control-button--${t}`)), s.classList.add(...this.options.buttonClasses), s.setAttribute("data-slider-control", t), s.setAttribute("type", "button"), s.innerHTML = this.getControlContent(t), s;
250
+ return s.classList.add(this.getClass("control-button")), s.classList.add(this.getClass(`control-button--${t}`)), s.classList.add(...this.options.buttonClasses), s.setAttribute("data-slider-control", t), s.setAttribute("type", "button"), s.setAttribute("aria-controls", this.trackId), s.innerHTML = this.getControlContent(t), s;
249
251
  }
250
252
  createControls(t) {
251
253
  const s = document.createElement("ul"), e = document.createElement("li"), i = document.createElement("li"), n = this.createControlButton("previous"), a = this.createControlButton("next");
@@ -270,7 +272,7 @@ const l = class l {
270
272
  }
271
273
  createNavButton(t, s) {
272
274
  const e = document.createElement("button");
273
- return e.classList.add(this.getClass("nav-button")), e.setAttribute("type", "button"), e.innerHTML = this.getNavContent(t), t.navButton = e, e.addEventListener("click", this.goto.bind(this, s)), e;
275
+ return e.classList.add(this.getClass("nav-button")), e.setAttribute("type", "button"), e.setAttribute("aria-controls", t.id), e.innerHTML = this.getNavContent(t), t.navButton = e, e.addEventListener("click", this.goto.bind(this, s)), e;
274
276
  }
275
277
  getControlContent(t) {
276
278
  const s = this.options[t === "next" ? "iconClassNext" : "iconClassPrevious"];
@@ -309,7 +311,7 @@ f(l, "defaults", {
309
311
  let E = l;
310
312
  export {
311
313
  E as Slider,
312
- Y as init,
314
+ _ as init,
313
315
  C as initializer,
314
- R as setupSlider
316
+ j as setupSlider
315
317
  };
@@ -1,6 +1,7 @@
1
1
  export { FileSave } from './file-save.js';
2
2
  export { configureIcons as fontAwesomeConfigureIcons } from './font-awesome.js';
3
3
  export { getSoleIframeLayout } from './iframe.js';
4
+ export { observeDialogToggle } from './dialog.js';
4
5
  export { set as classLoggerSet, log as classLoggerLog, logWarning as classLoggerLogWarning, logError as classLoggerLogError } from './class-logger.js';
5
6
  export { dataAttributeToDatasetKey, setPositionClasses, resolveClasses } from './dom.js';
6
7
  export { defaults as floatingUiDefaults, createFloatingUi } from './floating-ui.js';