wj-elements 0.0.11 → 0.0.13

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.
Files changed (79) hide show
  1. package/dist/localize-20081fd1.js +55 -0
  2. package/dist/router-links-26e4a166.js +204 -0
  3. package/dist/style.css +2243 -2
  4. package/dist/wj-animation.js +35 -23
  5. package/dist/wj-aside.js +22 -16
  6. package/dist/wj-avatar.js +49 -30
  7. package/dist/wj-badge.js +22 -18
  8. package/dist/wj-breadcrumb.js +102 -50
  9. package/dist/wj-breadcrumbs.js +36 -19
  10. package/dist/wj-button-group.js +36 -22
  11. package/dist/wj-button.js +104 -39
  12. package/dist/wj-card-content.js +18 -14
  13. package/dist/wj-card-controls.js +18 -14
  14. package/dist/wj-card-header.js +20 -14
  15. package/dist/wj-card-subtitle.js +19 -15
  16. package/dist/wj-card-title.js +18 -14
  17. package/dist/wj-card.js +20 -14
  18. package/dist/wj-carousel-item.js +22 -16
  19. package/dist/wj-carousel.js +169 -92
  20. package/dist/wj-checkbox.js +46 -24
  21. package/dist/wj-chip.js +39 -21
  22. package/dist/wj-col.js +31 -17
  23. package/dist/wj-color-picker.js +877 -509
  24. package/dist/wj-container.js +20 -16
  25. package/dist/wj-copy-button.js +112 -64
  26. package/dist/wj-dialog.js +68 -42
  27. package/dist/wj-divider.js +20 -14
  28. package/dist/wj-dropdown.js +29 -17
  29. package/dist/wj-element.js +415 -241
  30. package/dist/wj-fetchAndParseCSS.js +49 -32
  31. package/dist/wj-file-upload-item.js +64 -38
  32. package/dist/wj-file-upload.js +237 -137
  33. package/dist/wj-footer.js +18 -14
  34. package/dist/wj-form.js +18 -14
  35. package/dist/wj-format-digital.js +40 -25
  36. package/dist/wj-grid.js +20 -16
  37. package/dist/wj-header.js +22 -16
  38. package/dist/wj-icon-picker.js +122 -68
  39. package/dist/wj-icon.js +144 -64
  40. package/dist/wj-img-comparer.js +72 -41
  41. package/dist/wj-img.js +31 -19
  42. package/dist/wj-infinite-scroll.js +90 -52
  43. package/dist/wj-input-file.js +50 -27
  44. package/dist/wj-input.js +169 -70
  45. package/dist/wj-item.js +34 -17
  46. package/dist/wj-label.js +21 -19
  47. package/dist/wj-list.js +20 -15
  48. package/dist/wj-main.js +18 -14
  49. package/dist/wj-masonry.js +140 -83
  50. package/dist/wj-master.js +492 -350
  51. package/dist/wj-menu-button.js +19 -15
  52. package/dist/wj-menu-item.js +150 -64
  53. package/dist/wj-menu-label.js +21 -17
  54. package/dist/wj-menu.js +24 -18
  55. package/dist/wj-popup.js +1140 -712
  56. package/dist/wj-progress-bar.js +100 -40
  57. package/dist/wj-radio-group.js +38 -25
  58. package/dist/wj-radio.js +46 -22
  59. package/dist/wj-rate.js +121 -71
  60. package/dist/wj-relative-time.js +48 -24
  61. package/dist/wj-route.js +11 -8
  62. package/dist/wj-router-link.js +22 -17
  63. package/dist/wj-router-outlet.js +135 -71
  64. package/dist/wj-routerx.js +1124 -641
  65. package/dist/wj-row.js +21 -19
  66. package/dist/wj-slider.js +97 -55
  67. package/dist/wj-split-view.js +81 -43
  68. package/dist/wj-store.js +195 -110
  69. package/dist/wj-textarea.js +86 -37
  70. package/dist/wj-thumbnail.js +19 -15
  71. package/dist/wj-toast.js +87 -34
  72. package/dist/wj-toggle.js +42 -24
  73. package/dist/wj-toolbar-action.js +27 -16
  74. package/dist/wj-toolbar.js +26 -19
  75. package/dist/wj-tooltip.js +40 -24
  76. package/dist/wj-visually-hidden.js +18 -14
  77. package/package.json +1 -1
  78. package/dist/localize-762a9f0f.js +0 -43
  79. package/dist/router-links-e0087f84.js +0 -146
package/dist/wj-list.js CHANGED
@@ -1,30 +1,35 @@
1
- var o = Object.defineProperty;
2
- var a = (e, t, s) => t in e ? o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
- var n = (e, t, s) => (a(e, typeof t != "symbol" ? t + "" : t, s), s);
4
- import l from "./wj-element.js";
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ import WJElement from "./wj-element.js";
5
8
  import "./wj-store.js";
6
- const d = `:host{--wj-list-inset-padding: 1rem;--wj-list-border-radius: 8px;--wj-list-background: var(--wj-background);margin:0;padding:0;display:block;contain:content;list-style-type:none}:host(.wj-inset){background:var(--wj-list-background);transform:translateZ(0);overflow:hidden;padding:var(--wj-list-inset-padding);border-radius:var(--wj-list-border-radius)}:host(.wj-lines-none) ::slotted(wj-item){--wj-border-width: 0 !important}
7
- `;
8
- class c extends l {
9
+ const styles = "/*\n[ WJ List ]\n*/\n:host {\n --wj-list-inset-padding: 1rem;\n --wj-list-border-radius: 8px;\n --wj-list-background: var(--wj-background);\n margin: 0;\n padding: 0;\n display: block;\n contain: content;\n list-style-type: none;\n}\n\n:host(.wj-inset) {\n background: var(--wj-list-background);\n transform: translateZ(0);\n overflow: hidden;\n padding: var(--wj-list-inset-padding);\n border-radius: var(--wj-list-border-radius);\n}\n\n:host(.wj-lines-none) ::slotted(wj-item) {\n --wj-border-width: 0 !important;\n}";
10
+ class List extends WJElement {
9
11
  constructor() {
10
12
  super();
11
- n(this, "className", "List");
13
+ __publicField(this, "className", "List");
12
14
  }
13
15
  static get cssStyleSheet() {
14
- return d;
16
+ return styles;
15
17
  }
16
18
  setupAttributes() {
17
19
  this.isShadowRoot = "open";
18
20
  }
19
- draw(s, m, w) {
20
- let i = document.createDocumentFragment(), r = document.createElement("slot");
21
- return i.appendChild(r), i;
21
+ draw(context, store, params) {
22
+ let fragment = document.createDocumentFragment();
23
+ let element = document.createElement("slot");
24
+ fragment.appendChild(element);
25
+ return fragment;
22
26
  }
23
27
  afterDraw() {
24
- this.classList.toggle("wj-lines-" + this.lines, this.hasAttribute("lines")), this.classList.toggle("wj-inset", this.hasAttribute("inset"));
28
+ this.classList.toggle("wj-lines-" + this.lines, this.hasAttribute("lines"));
29
+ this.classList.toggle("wj-inset", this.hasAttribute("inset"));
25
30
  }
26
31
  }
27
- customElements.get("wj-list") || window.customElements.define("wj-list", c);
32
+ customElements.get("wj-list") || window.customElements.define("wj-list", List);
28
33
  export {
29
- c as List
34
+ List
30
35
  };
package/dist/wj-main.js CHANGED
@@ -1,17 +1,19 @@
1
- var a = Object.defineProperty;
2
- var i = (t, e, s) => e in t ? a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var o = (t, e, s) => (i(t, typeof e != "symbol" ? e + "" : e, s), s);
4
- import m from "./wj-element.js";
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ import WJElement from "./wj-element.js";
5
8
  import "./wj-store.js";
6
- const c = `:host{display:block;flex:1;flex-basis:auto;padding:1.5rem;box-sizing:border-box}
7
- `;
8
- class l extends m {
9
+ const styles = "/*\n[ WJ Main ]\n*/\n:host {\n display: block;\n flex: 1;\n flex-basis: auto;\n padding: 1.5rem;\n box-sizing: border-box;\n}";
10
+ class Main extends WJElement {
9
11
  constructor() {
10
12
  super();
11
- o(this, "className", "Main");
13
+ __publicField(this, "className", "Main");
12
14
  }
13
15
  static get cssStyleSheet() {
14
- return c;
16
+ return styles;
15
17
  }
16
18
  static get observedAttributes() {
17
19
  return [];
@@ -19,12 +21,14 @@ class l extends m {
19
21
  setupAttributes() {
20
22
  this.isShadowRoot = "open";
21
23
  }
22
- draw(s, d, u) {
23
- let n = document.createDocumentFragment(), r = document.createElement("slot");
24
- return n.appendChild(r), n;
24
+ draw(context, store, params) {
25
+ let fragment = document.createDocumentFragment();
26
+ let element = document.createElement("slot");
27
+ fragment.appendChild(element);
28
+ return fragment;
25
29
  }
26
30
  }
27
- customElements.get("wj-main") || window.customElements.define("wj-main", l);
31
+ customElements.get("wj-main") || window.customElements.define("wj-main", Main);
28
32
  export {
29
- l as Main
33
+ Main
30
34
  };
@@ -1,133 +1,190 @@
1
- var f = Object.defineProperty;
2
- var p = (o, s, t) => s in o ? f(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
3
- var r = (o, s, t) => (p(o, typeof s != "symbol" ? s + "" : s, t), t);
4
- import w from "./wj-element.js";
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ import WJElement from "./wj-element.js";
5
8
  import "./wj-store.js";
6
- const b = 500, A = 300, C = "--wj-masonry-layout-col-count", E = "--wj-masonry-layout-gap", d = 1, m = /* @__PURE__ */ new Map();
7
- function c(o, s, t) {
8
- const e = parseFloat(o.getAttribute(s) || "");
9
- return isNaN(e) ? t : e;
9
+ const DEFAULT_MAX_COL_WIDTH = 500;
10
+ const DEFAULT_DEBOUNCE_MS = 300;
11
+ const COL_COUNT_CSS_VAR_NAME = `--wj-masonry-layout-col-count`;
12
+ const GAP_CSS_VAR_NAME = `--wj-masonry-layout-gap`;
13
+ const ELEMENT_NODE_TYPE = 1;
14
+ const DEBOUNCE_MAP = /* @__PURE__ */ new Map();
15
+ function getNumberAttribute($elem, name, defaultValue) {
16
+ const value = parseFloat($elem.getAttribute(name) || "");
17
+ return isNaN(value) ? defaultValue : value;
10
18
  }
11
- function g(o, s, t) {
12
- return isNaN(s) ? Math.max(1, Math.ceil(o / t)) : s;
19
+ function getColCount(totalWidth, cols, maxColWidth) {
20
+ return isNaN(cols) ? Math.max(1, Math.ceil(totalWidth / maxColWidth)) : cols;
13
21
  }
14
- function x(o, s, t) {
15
- const e = m.get(t);
16
- e != null && window.clearTimeout(e), m.set(t, window.setTimeout(o, s));
22
+ function debounce(cb, ms, id) {
23
+ const existingTimeout = DEBOUNCE_MAP.get(id);
24
+ if (existingTimeout != null)
25
+ window.clearTimeout(existingTimeout);
26
+ DEBOUNCE_MAP.set(id, window.setTimeout(cb, ms));
17
27
  }
18
- function v(o) {
19
- let s = 0, t = 1 / 0;
20
- return o.forEach((e, n) => {
21
- e < t && (t = e, s = n);
22
- }), s;
28
+ function findSmallestColIndex(colHeights) {
29
+ let smallestIndex = 0;
30
+ let smallestHeight = Infinity;
31
+ colHeights.forEach((height, i) => {
32
+ if (height < smallestHeight) {
33
+ smallestHeight = height;
34
+ smallestIndex = i;
35
+ }
36
+ });
37
+ return smallestIndex;
23
38
  }
24
- const S = `:host{display:flex;align-items:flex-start;justify-content:stretch;width:100%}.column{max-width:calc(100% / var(--wj-masonry-layout-col-count, 1) - var(--wj-masonry-layout-gap, 1rem) * (var(--wj-masonry-layout-col-count, 1) - 1) / var(--wj-masonry-layout-col-count, 1));width:100%;flex:1;display:flex;flex-direction:column}.column:not(:last-child){margin-inline-end:var(--wj-masonry-layout-gap, 1rem)}.column ::slotted(*){margin-block-end:var(--wj-masonry-layout-gap, 1rem);box-sizing:border-box;width:100%}#unset-items{opacity:0;position:absolute;pointer-events:none}
25
- `;
26
- class N extends w {
39
+ const styles = "/*\n[ WJ Masonry ]\n*/\n:host {\n display: flex;\n align-items: flex-start;\n justify-content: stretch;\n width: 100%;\n}\n\n.column {\n max-width: calc(100% / var(--wj-masonry-layout-col-count, 1) - var(--wj-masonry-layout-gap, 1rem) * (var(--wj-masonry-layout-col-count, 1) - 1) / var(--wj-masonry-layout-col-count, 1));\n width: 100%;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n\n.column:not(:last-child) {\n margin-inline-end: var(--wj-masonry-layout-gap, 1rem);\n}\n\n.column ::slotted(*) {\n margin-block-end: var(--wj-masonry-layout-gap, 1rem);\n box-sizing: border-box;\n width: 100%;\n}\n\n/* Hide the items that has not yet found the correct slot */\n#unset-items {\n opacity: 0;\n position: absolute;\n pointer-events: none;\n}";
40
+ class Masonry extends WJElement {
27
41
  constructor() {
28
42
  super();
29
- r(this, "debounceId", `layout_${Math.random()}`);
30
- r(this, "ro");
31
- r(this, "className", "Masonry");
32
- r(this, "onSlotChange", () => {
33
- (this.unsetSlot.assignedNodes() || []).filter((e) => e.nodeType === d).length > 0 && this.layout();
43
+ __publicField(this, "debounceId", `layout_${Math.random()}`);
44
+ __publicField(this, "ro");
45
+ __publicField(this, "className", "Masonry");
46
+ __publicField(this, "onSlotChange", () => {
47
+ const $unsetElements = (this.unsetSlot.assignedNodes() || []).filter((node) => node.nodeType === ELEMENT_NODE_TYPE);
48
+ if ($unsetElements.length > 0) {
49
+ this.layout();
50
+ }
34
51
  });
35
- r(this, "onResize", (t) => {
36
- const { width: e } = t != null && Array.isArray(t) && t.length > 0 ? t[0].contentRect : { width: this.offsetWidth };
37
- g(e, this.cols, this.maxColWidth) !== this.columns.length && this.scheduleLayout();
52
+ __publicField(this, "onResize", (entries) => {
53
+ const { width } = entries != null && Array.isArray(entries) && entries.length > 0 ? entries[0].contentRect : { width: this.offsetWidth };
54
+ const colCount = getColCount(width, this.cols, this.maxColWidth);
55
+ if (colCount !== this.columns.length) {
56
+ this.scheduleLayout();
57
+ }
38
58
  });
39
- r(this, "layout", () => {
40
- this.currentRequestAnimationFrameCallback != null && window.cancelAnimationFrame(this.currentRequestAnimationFrameCallback), this.currentRequestAnimationFrameCallback = requestAnimationFrame(() => {
41
- const t = this.gap, e = Array.from(this.children).filter((a) => a.nodeType === d), n = g(this.offsetWidth, this.cols, this.maxColWidth), l = Array(n).fill(0), i = [];
42
- for (const a of e) {
43
- const y = a.getBoundingClientRect().height;
44
- let u = v(l);
45
- l[u] += y + +t;
46
- const h = u;
47
- a.slot !== h && i.push(() => a.slot = h);
59
+ __publicField(this, "layout", () => {
60
+ if (this.currentRequestAnimationFrameCallback != null) {
61
+ window.cancelAnimationFrame(this.currentRequestAnimationFrameCallback);
62
+ }
63
+ this.currentRequestAnimationFrameCallback = requestAnimationFrame(() => {
64
+ const gap = this.gap;
65
+ const $elements = Array.from(this.children).filter((node) => node.nodeType === ELEMENT_NODE_TYPE);
66
+ const colCount = getColCount(this.offsetWidth, this.cols, this.maxColWidth);
67
+ const colHeights = Array(colCount).fill(0);
68
+ const writes = [];
69
+ for (const elem of $elements) {
70
+ const height = elem.getBoundingClientRect().height;
71
+ let smallestColIndex = findSmallestColIndex(colHeights);
72
+ colHeights[smallestColIndex] += height + +gap;
73
+ const newSlot = smallestColIndex;
74
+ if (elem.slot !== newSlot) {
75
+ writes.push(() => elem.slot = newSlot);
76
+ }
77
+ }
78
+ for (const write of writes) {
79
+ write();
48
80
  }
49
- for (const a of i)
50
- a();
51
- this.renderCols(n);
81
+ this.renderCols(colCount);
52
82
  });
53
83
  });
54
- this.debounceId = `layout_${Math.random()}`, this.ro = void 0, this.currentRequestAnimationFrameCallback = void 0, this.unsetSlot = void 0;
84
+ this.debounceId = `layout_${Math.random()}`;
85
+ this.ro = void 0;
86
+ this.currentRequestAnimationFrameCallback = void 0;
87
+ this.unsetSlot = void 0;
55
88
  }
56
- set maxColWidth(t) {
57
- this.setAttribute("max-col-width", t);
89
+ set maxColWidth(value) {
90
+ this.setAttribute("max-col-width", value);
58
91
  }
59
92
  get maxColWidth() {
60
- return this.hasAttribute("max-col-width") ? +this.getAttribute("max-col-width") : +b;
93
+ return this.hasAttribute("max-col-width") ? +this.getAttribute("max-col-width") : +DEFAULT_MAX_COL_WIDTH;
61
94
  }
62
- set cols(t) {
63
- this.hasAttribute("cols") && this.setAttribute("cols", t);
95
+ set cols(value) {
96
+ this.hasAttribute("cols") ? this.setAttribute("cols", value) : "auto";
64
97
  }
65
98
  get cols() {
66
- return c(this, "cols", "auto");
99
+ return getNumberAttribute(this, "cols", "auto");
67
100
  }
68
- set gap(t) {
69
- this.setAttribute("gap", t);
101
+ set gap(value) {
102
+ this.setAttribute("gap", value);
70
103
  }
71
104
  get gap() {
72
- return c(this, "gap", "24");
105
+ return getNumberAttribute(this, "gap", "24");
73
106
  }
74
- set debounce(t) {
75
- this.setAttribute("debounce", t);
107
+ set debounce(value) {
108
+ this.setAttribute("debounce", value);
76
109
  }
77
110
  get debounce() {
78
- return c(this, "debounce", A);
111
+ return getNumberAttribute(this, "debounce", DEFAULT_DEBOUNCE_MS);
79
112
  }
80
113
  get columns() {
81
- return Array.from(this.shadowRoot.querySelectorAll(".column"));
114
+ return Array.from(this.shadowRoot.querySelectorAll(`.column`));
82
115
  }
83
116
  static get cssStyleSheet() {
84
- return S;
117
+ return styles;
85
118
  }
86
119
  static get observedAttributes() {
87
120
  return ["max-col-width", "gap", "cols"];
88
121
  }
89
- attributeChangedCallback(t, e, n) {
90
- switch (t) {
122
+ attributeChangedCallback(name, old, newName) {
123
+ switch (name) {
91
124
  case "gap":
92
- this.style.setProperty(E, `${this.gap}px`);
125
+ this.style.setProperty(GAP_CSS_VAR_NAME, `${this.gap}px`);
93
126
  break;
94
127
  }
95
128
  this.scheduleLayout();
96
129
  }
97
130
  disconnectedCallback() {
98
- this.unsetSlot.removeEventListener("slotchange", this.onSlotChange), window.removeEventListener("resize", this.onResize), this.ro != null && this.ro.unobserve(this);
131
+ this.unsetSlot.removeEventListener("slotchange", this.onSlotChange);
132
+ window.removeEventListener("resize", this.onResize);
133
+ if (this.ro != null) {
134
+ this.ro.unobserve(this);
135
+ }
99
136
  }
100
137
  setupAttributes() {
101
138
  this.isShadowRoot = "open";
102
139
  }
103
- draw(t, e, n) {
104
- let l = document.createDocumentFragment(), i = document.createElement("div");
105
- i.setAttribute("id", "unset-items"), i.setAttribute("part", "native");
106
- let a = document.createElement("slot");
107
- return i.appendChild(a), this.unsetSlot = a, this.native = i, l.appendChild(i), l;
140
+ draw(context, store, params) {
141
+ let fragment = document.createDocumentFragment();
142
+ let native = document.createElement("div");
143
+ native.setAttribute("id", "unset-items");
144
+ native.setAttribute("part", "native");
145
+ let unsetSlot = document.createElement("slot");
146
+ native.appendChild(unsetSlot);
147
+ this.unsetSlot = unsetSlot;
148
+ this.native = native;
149
+ fragment.appendChild(native);
150
+ return fragment;
108
151
  }
109
152
  afterDraw() {
110
- this.onSlotChange(), this.onResize(), this.layout(), this.unsetSlot.addEventListener("slotchange", this.onSlotChange), "ResizeObserver" in window ? (this.ro = new ResizeObserver(this.onResize), this.ro.observe(this)) : window.addEventListener("resize", this.onResize);
111
- }
112
- renderCols(t) {
113
- const e = this.columns;
114
- if (e.length !== t) {
115
- for (const n of e)
116
- n.parentNode && n.parentNode.removeChild(n);
117
- for (let n = 0; n < t; n++) {
118
- const l = document.createElement("div");
119
- l.classList.add("column"), l.setAttribute("part", `column column-${n}`);
120
- const i = document.createElement("slot");
121
- i.setAttribute("name", n), l.appendChild(i), this.context.appendChild(l);
122
- }
123
- this.style.setProperty(C, t);
153
+ this.onSlotChange();
154
+ this.onResize();
155
+ this.layout();
156
+ this.unsetSlot.addEventListener("slotchange", this.onSlotChange);
157
+ if ("ResizeObserver" in window) {
158
+ this.ro = new ResizeObserver(this.onResize);
159
+ this.ro.observe(this);
160
+ } else {
161
+ window.addEventListener("resize", this.onResize);
162
+ }
163
+ }
164
+ renderCols(colCount) {
165
+ const columns = this.columns;
166
+ if (columns.length === colCount) {
167
+ return;
168
+ }
169
+ for (const column of columns) {
170
+ column.parentNode && column.parentNode.removeChild(column);
171
+ }
172
+ for (let i = 0; i < colCount; i++) {
173
+ const column = document.createElement("div");
174
+ column.classList.add("column");
175
+ column.setAttribute("part", `column column-${i}`);
176
+ const slot = document.createElement("slot");
177
+ slot.setAttribute("name", i);
178
+ column.appendChild(slot);
179
+ this.context.appendChild(column);
124
180
  }
181
+ this.style.setProperty(COL_COUNT_CSS_VAR_NAME, colCount);
125
182
  }
126
- scheduleLayout(t = this.debounce) {
127
- x(this.layout, t, this.debounceId);
183
+ scheduleLayout(ms = this.debounce) {
184
+ debounce(this.layout, ms, this.debounceId);
128
185
  }
129
186
  }
130
- customElements.get("wj-masonry") || window.customElements.define("wj-masonry", N);
187
+ customElements.get("wj-masonry") || window.customElements.define("wj-masonry", Masonry);
131
188
  export {
132
- N as Masonry
189
+ Masonry
133
190
  };