wj-elements 0.1.48 → 0.1.49

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 (98) hide show
  1. package/dist/custom-elements.json +14058 -0
  2. package/dist/dark.css +1 -0
  3. package/dist/light.css +1 -0
  4. package/dist/localize.js +45 -0
  5. package/dist/popup.element-CWsSOxs2.js +1072 -0
  6. package/dist/router-links-FtZbFUto.js +146 -0
  7. package/dist/styles.css +1 -0
  8. package/dist/web-types.json +3122 -0
  9. package/dist/wje-accordion-item.js +88 -0
  10. package/dist/wje-accordion.js +79 -0
  11. package/dist/wje-animation.js +121 -0
  12. package/dist/wje-aside.js +55 -0
  13. package/dist/wje-avatar.js +77 -0
  14. package/dist/wje-badge.js +50 -0
  15. package/dist/wje-breadcrumb.js +148 -0
  16. package/dist/wje-breadcrumbs.js +67 -0
  17. package/dist/wje-button-group.js +78 -0
  18. package/dist/wje-button.js +207 -0
  19. package/dist/wje-card-content.js +48 -0
  20. package/dist/wje-card-controls.js +48 -0
  21. package/dist/wje-card-header.js +47 -0
  22. package/dist/wje-card-subtitle.js +55 -0
  23. package/dist/wje-card-title.js +55 -0
  24. package/dist/wje-card.js +50 -0
  25. package/dist/wje-carousel-item.js +33 -0
  26. package/dist/wje-carousel.js +177 -0
  27. package/dist/wje-checkbox.js +96 -0
  28. package/dist/wje-chip.js +32 -0
  29. package/dist/wje-col.js +27 -0
  30. package/dist/wje-color-picker.js +953 -0
  31. package/dist/wje-container.js +57 -0
  32. package/dist/wje-copy-button.js +170 -0
  33. package/dist/wje-dialog.js +86 -0
  34. package/dist/wje-divider.js +53 -0
  35. package/dist/wje-dropdown.js +114 -0
  36. package/dist/wje-element.js +453 -0
  37. package/dist/wje-fetchAndParseCSS.js +40 -0
  38. package/dist/wje-file-upload-item.js +115 -0
  39. package/dist/wje-file-upload.js +297 -0
  40. package/dist/wje-footer.js +56 -0
  41. package/dist/wje-form.js +28 -0
  42. package/dist/wje-format-digital.js +85 -0
  43. package/dist/wje-grid.js +28 -0
  44. package/dist/wje-header.js +58 -0
  45. package/dist/wje-icon-picker.js +221 -0
  46. package/dist/wje-icon.js +119 -0
  47. package/dist/wje-img-comparer.js +111 -0
  48. package/dist/wje-img.js +58 -0
  49. package/dist/wje-infinite-scroll.js +201 -0
  50. package/dist/wje-inline-edit.js +145 -0
  51. package/dist/wje-input-file.js +85 -0
  52. package/dist/wje-input.js +334 -0
  53. package/dist/wje-item.js +45 -0
  54. package/dist/wje-label.js +67 -0
  55. package/dist/wje-list.js +53 -0
  56. package/dist/wje-main.js +56 -0
  57. package/dist/wje-masonry.js +218 -0
  58. package/dist/wje-master.js +423 -0
  59. package/dist/wje-menu-button.js +65 -0
  60. package/dist/wje-menu-item.js +230 -0
  61. package/dist/wje-menu-label.js +57 -0
  62. package/dist/wje-menu.js +74 -0
  63. package/dist/wje-option.js +99 -0
  64. package/dist/wje-options.js +63 -0
  65. package/dist/wje-popup.js +5 -0
  66. package/dist/wje-progress-bar.js +161 -0
  67. package/dist/wje-qr-code.js +2332 -0
  68. package/dist/wje-radio-group.js +101 -0
  69. package/dist/wje-radio.js +46 -0
  70. package/dist/wje-rate.js +260 -0
  71. package/dist/wje-relative-time.js +85 -0
  72. package/dist/wje-reorder-dropzone.js +27 -0
  73. package/dist/wje-reorder-handle.js +115 -0
  74. package/dist/wje-reorder-item.js +32 -0
  75. package/dist/wje-reorder.js +138 -0
  76. package/dist/wje-route.js +46 -0
  77. package/dist/wje-router-link.js +64 -0
  78. package/dist/wje-router-outlet.js +127 -0
  79. package/dist/wje-routerx.js +1088 -0
  80. package/dist/wje-row.js +58 -0
  81. package/dist/wje-select.js +242 -0
  82. package/dist/wje-slider.js +177 -0
  83. package/dist/wje-sliding-container.js +277 -0
  84. package/dist/wje-split-view.js +112 -0
  85. package/dist/wje-status.js +54 -0
  86. package/dist/wje-store.js +192 -0
  87. package/dist/wje-tab-group.js +107 -0
  88. package/dist/wje-tab-panel.js +52 -0
  89. package/dist/wje-tab.js +59 -0
  90. package/dist/wje-textarea.js +116 -0
  91. package/dist/wje-thumbnail.js +64 -0
  92. package/dist/wje-toast.js +76 -0
  93. package/dist/wje-toggle.js +94 -0
  94. package/dist/wje-toolbar-action.js +63 -0
  95. package/dist/wje-toolbar.js +61 -0
  96. package/dist/wje-tooltip.js +116 -0
  97. package/dist/wje-visually-hidden.js +56 -0
  98. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ var n = Object.defineProperty;
2
+ var i = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var s = (t, e, r) => (i(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import o from "./wje-element.js";
5
+ const c = ':host{background:transparent;border-radius:0;border-bottom:0;padding:var(--wje-card-header-padding);position:relative;display:flex;flex-direction:column}:host(.wje-separator):after{content:"";height:1px;background:#00000014;margin-top:.5rem}';
6
+ class l extends o {
7
+ /**
8
+ * CardHeader constructor.
9
+ */
10
+ constructor() {
11
+ super();
12
+ /**
13
+ * Class name for the CardHeader.
14
+ * @type {string}
15
+ */
16
+ s(this, "className", "CardHeader");
17
+ }
18
+ /**
19
+ * Getter for the CSS stylesheet.
20
+ * @returns {Object} The styles object.
21
+ * @static
22
+ */
23
+ static get cssStyleSheet() {
24
+ return c;
25
+ }
26
+ /**
27
+ * Sets up the attributes for the CardHeader.
28
+ */
29
+ setupAttributes() {
30
+ this.isShadowRoot = "open";
31
+ }
32
+ /**
33
+ * Draws the CardHeader.
34
+ * @param {Object} context - The context to draw in.
35
+ * @param {Object} store - The store to use.
36
+ * @param {Object} params - The parameters to use.
37
+ * @returns {DocumentFragment} The created document fragment.
38
+ */
39
+ draw(r, p, m) {
40
+ let a = document.createDocumentFragment(), d = document.createElement("slot");
41
+ return this.hasAttribute("separator") && this.classList.add("wje-separator"), a.appendChild(d), a;
42
+ }
43
+ }
44
+ o.define("wje-card-header", l);
45
+ export {
46
+ l as default
47
+ };
@@ -0,0 +1,55 @@
1
+ var o = Object.defineProperty;
2
+ var l = (e, t, a) => t in e ? o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var s = (e, t, a) => (l(e, typeof t != "symbol" ? t + "" : t, a), a);
4
+ import i from "./wje-element.js";
5
+ const c = ":host{transition:opacity .3s ease;font-family:var(--wje-card-subtitle-font-family);font-size:var(--wje-card-subtitle-font-size);text-transform:uppercase;display:inline-block;letter-spacing:.06em;font-weight:500;margin:0;padding:var(--wje-card-subtitle-padding);line-height:normal;overflow:hidden;text-overflow:ellipsis;filter:alpha(opacity=40)}";
6
+ class d extends i {
7
+ /**
8
+ * CardSubtitle constructor.
9
+ */
10
+ constructor() {
11
+ super();
12
+ /**
13
+ * Class name for the CardSubtitle.
14
+ * @type {string}
15
+ */
16
+ s(this, "className", "CardTitle");
17
+ }
18
+ /**
19
+ * Getter for the CSS stylesheet.
20
+ * @returns {Object} The styles object.
21
+ * @static
22
+ */
23
+ static get cssStyleSheet() {
24
+ return c;
25
+ }
26
+ /**
27
+ * Getter for the observed attributes.
28
+ * @returns {Array} An empty array.
29
+ * @static
30
+ */
31
+ static get observedAttributes() {
32
+ return [];
33
+ }
34
+ /**
35
+ * Sets up the attributes for the CardSubtitle.
36
+ */
37
+ setupAttributes() {
38
+ this.isShadowRoot = "open";
39
+ }
40
+ /**
41
+ * Draws the CardSubtitle.
42
+ * @param {Object} context - The context to draw in.
43
+ * @param {Object} store - The store to use.
44
+ * @param {Object} params - The parameters to use.
45
+ * @returns {DocumentFragment} The created document fragment.
46
+ */
47
+ draw(a, m, p) {
48
+ let r = document.createDocumentFragment(), n = document.createElement("slot");
49
+ return r.appendChild(n), r;
50
+ }
51
+ }
52
+ i.define("wje-card-subtitle", d);
53
+ export {
54
+ d as default
55
+ };
@@ -0,0 +1,55 @@
1
+ var l = Object.defineProperty;
2
+ var o = (e, t, r) => t in e ? l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var i = (e, t, r) => (o(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ import n from "./wje-element.js";
5
+ const d = ":host{font-size:var(--wje-card-title-font-size);font-weight:var(--wje-card-title-font-weight);margin:var(--wje-card-title-margin);padding:var(--wje-card-title-padding);line-height:var(--wje-card-title-line-height);display:block;position:relative}";
6
+ class c extends n {
7
+ /**
8
+ * CardTitle constructor.
9
+ */
10
+ constructor() {
11
+ super();
12
+ /**
13
+ * Class name for the CardTitle.
14
+ * @type {string}
15
+ */
16
+ i(this, "className", "CardTitle");
17
+ }
18
+ /**
19
+ * Getter for the CSS stylesheet.
20
+ * @returns {Object} The styles object.
21
+ * @static
22
+ */
23
+ static get cssStyleSheet() {
24
+ return d;
25
+ }
26
+ /**
27
+ * Getter for the observed attributes.
28
+ * @returns {Array} An empty array.
29
+ * @static
30
+ */
31
+ static get observedAttributes() {
32
+ return [];
33
+ }
34
+ /**
35
+ * Sets up the attributes for the CardTitle.
36
+ */
37
+ setupAttributes() {
38
+ this.isShadowRoot = "open";
39
+ }
40
+ /**
41
+ * Draws the CardTitle.
42
+ * @param {Object} context - The context to draw in.
43
+ * @param {Object} store - The store to use.
44
+ * @param {Object} params - The parameters to use.
45
+ * @returns {DocumentFragment} The created document fragment.
46
+ */
47
+ draw(r, m, g) {
48
+ let a = document.createDocumentFragment(), s = document.createElement("slot");
49
+ return a.appendChild(s), a;
50
+ }
51
+ }
52
+ n.define("wje-card-title", c);
53
+ export {
54
+ c as default
55
+ };
@@ -0,0 +1,50 @@
1
+ var s = Object.defineProperty;
2
+ var i = (o, r, e) => r in o ? s(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
3
+ var l = (o, r, e) => (i(o, typeof r != "symbol" ? r + "" : r, e), e);
4
+ import n from "./wje-element.js";
5
+ const w = ":host{width:100%}.native-card{background-color:transparent;margin:0;box-shadow:var(--wje-card-shadow);border-color:var(--wje-border-color);border-style:var(--wje-border-style);border-width:var(--wje-border-width);border-radius:var(--wje-card-border-radius);font-family:var(--wje-font-family);font-size:var(--wje-font-size);line-height:var(--wje-line-height-normal);position:relative;width:100%;word-wrap:normal;display:flex;flex-direction:column;overflow:hidden;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.native-card.wje-color-primary{background:var(--wje-color-primary-9);color:var(--wje-color-contrast-0);border-color:var(--wje-color-primary-9)}.native-card.wje-color-complete{background:var(--wje-color-complete-9);color:var(--wje-color-contrast-0);border-color:var(--wje-color-complete-9)}.native-card.wje-color-success{background:var(--wje-color-success-9);color:var(--wje-color-contrast-0);border-color:var(--wje-color-success-9)}.native-card.wje-color-warning{background:var(--wje-color-warning-9);color:var(--wje-color);border-color:var(--wje-color-warning-9)}.native-card.wje-color-danger{background:var(--wje-color-danger-9);color:var(--wje-color-contrast-0);border-color:var(--wje-color-danger-9)}.native-card.wje-color-info{background:var(--wje-color-info-9);color:var(--wje-color-contrast-0);border-color:var(--wje-color-info-9)}.native-card.wje-color-menu{background:var(--wje-color-contrast-9);color:var(--wje-color-contrast-0);border-color:var(--wje-color-contrast-9)}";
6
+ class v extends n {
7
+ /**
8
+ * Card constructor
9
+ * @constructor
10
+ */
11
+ constructor() {
12
+ super();
13
+ /**
14
+ * Class name
15
+ * @type {string}
16
+ */
17
+ l(this, "className", "Card");
18
+ }
19
+ /**
20
+ * Get CSS stylesheet
21
+ * @static
22
+ * @returns {Object} styles - The CSS styles
23
+ */
24
+ static get cssStyleSheet() {
25
+ return w;
26
+ }
27
+ /**
28
+ * Setup attributes
29
+ */
30
+ setupAttributes() {
31
+ this.isShadowRoot = "open";
32
+ }
33
+ /**
34
+ * Draw method
35
+ * @param {Object} context - The context
36
+ * @param {Object} store - The store
37
+ * @param {Object} params - The parameters
38
+ * @returns {Object} fragment - The document fragment
39
+ */
40
+ draw(e, j, c) {
41
+ let t = document.createDocumentFragment(), a = document.createElement("div");
42
+ a.setAttribute("part", "native"), a.classList.add("native-card");
43
+ let d = document.createElement("slot");
44
+ return c.color && a.classList.add("wje-color-" + c.color), a.appendChild(d), t.appendChild(a), t;
45
+ }
46
+ }
47
+ n.define("wje-card", v);
48
+ export {
49
+ v as default
50
+ };
@@ -0,0 +1,33 @@
1
+ var o = Object.defineProperty;
2
+ var c = (t, e, a) => e in t ? o(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
+ var r = (t, e, a) => (c(t, typeof e != "symbol" ? e + "" : e, a), a);
4
+ import l, { event as d } from "./wje-element.js";
5
+ const m = ":host{display:flex;align-items:center;justify-content:center;flex-direction:column;width:var(--wje-carousel-size, 100%);max-height:100%;aspect-ratio:var(--wje-carousel-item-aspect-ratio);scroll-snap-align:center;scroll-snap-stop:always}.native-carousel-item{width:100%;height:100%;display:flex}::slotted(wje-img){width:100%!important;height:100%!important;object-fit:contain;display:flex}";
6
+ class u extends l {
7
+ constructor() {
8
+ super();
9
+ r(this, "className", "CarouselItem");
10
+ }
11
+ static get cssStyleSheet() {
12
+ return m;
13
+ }
14
+ static get observedAttributes() {
15
+ return [];
16
+ }
17
+ setupAttributes() {
18
+ this.isShadowRoot = "open";
19
+ }
20
+ draw(a, p, h) {
21
+ let i = document.createDocumentFragment(), s = document.createElement("div");
22
+ s.classList.add("native-carousel-item"), s.setAttribute("part", "native");
23
+ let n = document.createElement("slot");
24
+ return s.appendChild(n), i.appendChild(s), i;
25
+ }
26
+ afterDraw() {
27
+ d.addListener(this, "click", "wje-carousel-item:click");
28
+ }
29
+ }
30
+ l.define("wje-carousel-item", u);
31
+ export {
32
+ u as default
33
+ };
@@ -0,0 +1,177 @@
1
+ var v = Object.defineProperty;
2
+ var p = (o, a, e) => a in o ? v(o, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[a] = e;
3
+ var u = (o, a, e) => (p(o, typeof a != "symbol" ? a + "" : a, e), e);
4
+ import m from "./wje-element.js";
5
+ const b = ".native-carousel{position:relative;width:var(--wje-carousel-width, 100%);height:var(--wje-carousel-height, 300px);scroll-behavior:smooth}.carousel-slides{display:flex;transition:transform .5s ease;align-items:center;justify-items:center;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none;aspect-ratio:var(--wje-aspect-ratio, 4 / 3);scroll-snap-type:x mandatory;scroll-padding-inline:0;overflow-y:hidden;padding-inline:var(--wje-spacing-inline, 0);gap:.5rem}.carousel-slides::-webkit-scrollbar{display:none}::slotted(wje-carousel-item){flex:0 0 var(--wje-carousel-size);height:100%}wje-button{position:absolute;top:50%;border:none;cursor:pointer;z-index:2}.prev{left:-1rem;transform:translate(-100%,-50%)}.next{right:-1rem;transform:translate(100%,-50%)}.pagination{position:relative;bottom:-.5rem;left:50%;transform:translate(-50%,100%);display:flex;z-index:2;justify-content:center}.pagination-item{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:var(--wje-color-contrast-4);display:inline-block;border-radius:50%}.pagination-item.active{background-color:var(--wje-color)}.thumbnails{display:flex;justify-content:center;align-items:center;overflow-x:auto;gap:.5rem;padding:0 .5rem;margin-top:.5rem;margin-bottom:.5rem;box-sizing:border-box;overflow-y:hidden}.thumbnails wje-thumbnail{--wje-thumbnail-width: 48px;--wje-thumbnail-height: 48px;--wje-thumbnail-border-radius: 0;cursor:pointer;border:1px solid transparent}.thumbnails .active{border:1px solid var(--wje-color-primary-11)}";
6
+ class f extends m {
7
+ constructor() {
8
+ super();
9
+ u(this, "className", "Carousel");
10
+ this.slidePerPage = 1;
11
+ }
12
+ set activeSlide(e) {
13
+ this.setAttribute("active-slide", e);
14
+ }
15
+ get activeSlide() {
16
+ return +this.getAttribute("active-slide") || 0;
17
+ }
18
+ get pagination() {
19
+ return this.hasAttribute("pagination");
20
+ }
21
+ get navigation() {
22
+ return this.hasAttribute("navigation");
23
+ }
24
+ get thumbnails() {
25
+ return this.hasAttribute("thumbnails");
26
+ }
27
+ get loop() {
28
+ return this.hasAttribute("loop");
29
+ }
30
+ static get cssStyleSheet() {
31
+ return b;
32
+ }
33
+ static get observedAttributes() {
34
+ return ["active-slide"];
35
+ }
36
+ attributeChangedCallback(e, i, n) {
37
+ e === "active-slide" && (this.pagination && this.changePagination(), this.thumbnails && this.changeThumbnails());
38
+ }
39
+ setupAttributes() {
40
+ this.isShadowRoot = "open";
41
+ }
42
+ beforeDraw(e, i, n) {
43
+ this.cloneFirstAndLastItems();
44
+ }
45
+ draw(e, i, n) {
46
+ let r = document.createDocumentFragment(), t = document.createElement("div");
47
+ t.classList.add("native-carousel");
48
+ let s = document.createElement("div");
49
+ s.classList.add("carousel-slides");
50
+ let l = document.createElement("slot");
51
+ return s.appendChild(l), t.appendChild(s), this.navigation && (this.prevButton = this.createPreviousButton(), this.nextButton = this.createNextButton(), t.appendChild(this.prevButton), t.appendChild(this.nextButton)), this.pagination && t.appendChild(this.createPagination()), this.thumbnails && t.appendChild(this.createThumbnails()), r.appendChild(t), this.slides = s, r;
52
+ }
53
+ afterDraw() {
54
+ this.setIntersectionObserver(), this.getSlidesWithClones().forEach((i, n) => {
55
+ this.intersectionObserver.observe(i);
56
+ }), this.slidePerPage = this.getAttribute("slide-per-page") || 1;
57
+ let e = 100 / +this.slidePerPage;
58
+ this.style.setProperty("--wje-carousel-size", e + "%"), this.goToSlide(this.activeSlide, "auto"), this.slides.addEventListener("scrollend", (i) => {
59
+ const n = this.getSlides(), t = [...this.entriesMap.values()].find((s) => s.isIntersecting);
60
+ if (t != null && t.target.classList.contains("clone")) {
61
+ const s = +t.target.getAttribute("clone-index");
62
+ this.goToSlide(s, "auto"), this.activeSlide = s;
63
+ } else if (t) {
64
+ let s = n.indexOf(t.target);
65
+ this.activeSlide = s;
66
+ }
67
+ });
68
+ }
69
+ setIntersectionObserver() {
70
+ this.intersectionObserver = new IntersectionObserver((e) => {
71
+ e.forEach((i) => {
72
+ this.entriesMap.set(i.target, i);
73
+ });
74
+ }, {
75
+ root: this.context.querySelector(".carousel-slides"),
76
+ threshold: 0.5
77
+ }), this.entriesMap = /* @__PURE__ */ new Map(), this.records = this.intersectionObserver.takeRecords(), this.records.forEach((e) => {
78
+ this.entriesMap.set(e.target, e);
79
+ });
80
+ }
81
+ goToSlide(e, i = "smooth", n = !0) {
82
+ const r = this.getSlides(), t = this.getSlidesWithClones();
83
+ t.forEach((g, S) => {
84
+ g.classList.remove("active");
85
+ });
86
+ let s = this.loop ? (e + r.length) % r.length : Math.min(Math.max(e, 0), r.length - 1);
87
+ this.activeSlide = s;
88
+ const l = Math.min(Math.max(e + (this.loop ? this.slidePerPage : 0), 0), t.length - 1), c = this.getSlidesWithClones()[l];
89
+ c.classList.add("active");
90
+ let d = c.getBoundingClientRect(), h = this.slides.getBoundingClientRect();
91
+ this.slides.scrollTo({
92
+ left: d.left - h.left + this.slides.scrollLeft,
93
+ top: d.top - h.top + this.slides.scrollTop,
94
+ behavior: i === "smooth" ? "smooth" : "auto"
95
+ }), this.navigation && !this.loop && (this.nextButton.removeAttribute("disabled"), this.prevButton.removeAttribute("disabled"), this.activeSlide === r.length - 1 && this.nextButton.setAttribute("disabled", ""), this.activeSlide === 0 && this.prevButton.setAttribute("disabled", ""));
96
+ }
97
+ cloneFirstAndLastItems() {
98
+ const e = this.getSlides();
99
+ if (e.length && this.loop) {
100
+ const i = e[0].cloneNode(!0);
101
+ i.classList.add("clone"), i.setAttribute("clone-index", 0), this.appendChild(i);
102
+ const n = e[e.length - 1].cloneNode(!0);
103
+ n.classList.add("clone"), n.setAttribute("clone-index", e.length - 1), this.insertBefore(n, this.firstChild);
104
+ }
105
+ }
106
+ removeActiveSlide() {
107
+ this.getSlidesWithClones().forEach((e, i) => {
108
+ e.classList.remove("active");
109
+ }), this.pagination && this.context.querySelectorAll(".pagination-item").forEach((e) => {
110
+ e.classList.remove("active");
111
+ }), this.thumbnails && this.context.querySelectorAll("wje-thumbnail").forEach((e) => {
112
+ e.classList.remove("active");
113
+ });
114
+ }
115
+ changePagination() {
116
+ this.pagination && (this.removeActiveSlide(), this.context.querySelectorAll(".pagination-item").forEach((e, i) => {
117
+ i === this.activeSlide && e.classList.add("active");
118
+ }));
119
+ }
120
+ changeThumbnails() {
121
+ this.thumbnails && (this.removeActiveSlide(), this.context.querySelectorAll("wje-thumbnail").forEach((e, i) => {
122
+ i === this.activeSlide && e.classList.add("active");
123
+ }));
124
+ }
125
+ createNextButton() {
126
+ const e = document.createElement("wje-button");
127
+ return e.classList.add("next"), e.innerHTML = '<wje-icon name="chevron-right" size="large"></wje-icon>', e.setAttribute("circle", ""), e.setAttribute("fill", "link"), e.addEventListener("click", (i) => {
128
+ this.nextSlide();
129
+ }), e;
130
+ }
131
+ createPreviousButton() {
132
+ const e = document.createElement("wje-button");
133
+ return e.classList.add("prev"), e.innerHTML = '<wje-icon name="chevron-left" size="large"></wje-icon>', e.setAttribute("circle", ""), e.setAttribute("fill", "link"), e.addEventListener("click", (i) => {
134
+ this.previousSlide();
135
+ }), e;
136
+ }
137
+ createPagination() {
138
+ const e = document.createElement("div");
139
+ return e.classList.add("pagination"), this.getSlides().forEach((n, r) => {
140
+ const t = document.createElement("div");
141
+ t.classList.add("pagination-item"), t.addEventListener("click", (s) => {
142
+ this.removeActiveSlide(), s.target.classList.add("active"), this.goToSlide(r);
143
+ }), e.appendChild(t);
144
+ }), e;
145
+ }
146
+ createThumbnails() {
147
+ const e = document.createElement("div");
148
+ return e.classList.add("thumbnails"), this.getSlides().forEach((n, r) => {
149
+ const t = document.createElement("wje-thumbnail");
150
+ t.innerHTML = `<img src="${n.querySelector("wje-img").getAttribute("src")}"></img>`, t.addEventListener("click", (s) => {
151
+ this.removeActiveSlide(), s.target.closest("wje-thumbnail").classList.add("active"), this.goToSlide(r);
152
+ }), e.appendChild(t);
153
+ }), e;
154
+ }
155
+ nextSlide() {
156
+ this.goToSlide(this.activeSlide + this.slidePerPage);
157
+ }
158
+ previousSlide() {
159
+ this.goToSlide(this.activeSlide - this.slidePerPage);
160
+ }
161
+ getSlides() {
162
+ return Array.from(this.querySelectorAll("wje-carousel-item:not(.clone)"));
163
+ }
164
+ getSlidesWithClones() {
165
+ return Array.from(this.querySelectorAll("wje-carousel-item"));
166
+ }
167
+ canGoNext() {
168
+ return this.querySelector(".native-carousel").scrollLeft < this.querySelector(".native-carousel").scrollWidth;
169
+ }
170
+ canGoPrevious() {
171
+ return this.querySelector(".native-carousel").scrollLeft > 0;
172
+ }
173
+ }
174
+ m.define("wje-carousel", f);
175
+ export {
176
+ f as default
177
+ };
@@ -0,0 +1,96 @@
1
+ var s = Object.defineProperty;
2
+ var h = (c, t, e) => t in c ? s(c, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[t] = e;
3
+ var l = (c, t, e) => (h(c, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import b, { event as i } from "./wje-element.js";
5
+ const d = ':host{display:block;margin-top:var(--wje-checkbox-margin-top);margin-bottom:var(--wje-checkbox-margin-bottom);margin-inline:var(--wje-checkbox-margin-inline);line-height:100%;padding-left:0}:host label{display:flex;align-items:center;cursor:pointer;position:relative;padding-left:calc(var(--wje-checkbox-size) + .5rem);min-width:var(--wje-checkbox-size);min-height:var(--wje-checkbox-size);margin-bottom:0}:host label:before{content:"";position:absolute;width:var(--wje-checkbox-size);height:var(--wje-checkbox-size);left:0;-webkit-box-sizing:inherit;box-sizing:border-box;background-color:var(--wje-color-contrast-0);border-width:1px;border-style:solid;border-color:var(--wje-color-contrast-3)}.native-checkbox label:hover{color:var(--wje-color-contrast-11)}.native-checkbox label:before{border-radius:var(--wje-checkbox-border-radius)}.native-checkbox input[type=checkbox]{position:absolute;margin:0;z-index:-1;width:16px;height:16px;opacity:0;display:none}.native-checkbox input[type=checkbox]+label:after{content:"";position:absolute;left:0;border-right:0 solid transparent;border-bottom:0 solid transparent;width:var(--wje-checkbox-size);height:var(--wje-checkbox-size);overflow:hidden}.native-checkbox input[type=checkbox]:checked+label:after{content:"";-webkit-mask-image:var(--wje-checkbox-checkmark);mask-image:var(--wje-checkbox-checkmark);-webkit-mask-size:var(--wje-checkbox-size);mask-size:var(--wje-checkbox-size);background-color:var(--wje-color-primary-9)}.native-checkbox input[type=checkbox][disabled]+label{cursor:not-allowed!important;color:var(--wje-color-contrast-8);opacity:.58}.native-checkbox input[type=checkbox][disabled]+label:before{background:var(--wje-color-contrast-2)}.native-checkbox input[type=checkbox][disabled]+label:after{background:transparent}.native-checkbox input[type=checkbox]:checked[disabled]+label{cursor:not-allowed!important;color:var(--wje-color-contrast-8);opacity:.58}.native-checkbox input[type=checkbox]:checked[disabled]+label:before{background:var(--wje-color-contrast-2)}.native-checkbox input[type=checkbox]:checked[disabled]+label:after{background:var(--wje-color-contrast-5)}.native-checkbox input[type=checkbox]:not(:checked):indeterminate+label:after{content:"";-webkit-mask-image:var(--wje-checkbox-interminate);mask-image:var(--wje-checkbox-interminate);-webkit-mask-size:var(--wje-checkbox-size);mask-size:var(--wje-checkbox-size);background-color:var(--wje-color-primary-9)}:host([variant=circle]) label:after{border-radius:99px}:host([variant=circle]) label:before{border-radius:99px}:host([placement=end]) label{padding-left:0;padding-right:26px}:host([placement=end]) label:before{right:0;left:auto}:host([placement=end]) input[type=checkbox]:checked+label{position:relative}:host([placement=end]) input[type=checkbox]:checked+label:after{position:absolute;right:0;left:auto}:host([color=primary]) input[type=checkbox]:checked+label:after,:host([color=primary]) input[type=checkbox]:indeterminate+label:after{background-color:var(--wje-color-contrast-0)}:host([color=primary]) :is(input[type=checkbox]:checked+label):before,:host([color=primary]) :is(input[type=checkbox]:indeterminate+label):before{border-color:var(--wje-color-primary-9);background-color:var(--wje-color-primary-9)}:host([color=complete]) input[type=checkbox]:checked+label:after,:host([color=complete]) input[type=checkbox]:indeterminate+label:after{background-color:var(--wje-color-contrast-0)}:host([color=complete]) :is(input[type=checkbox]:checked+label):before,:host([color=complete]) :is(input[type=checkbox]:indeterminate+label):before{border-color:var(--wje-color-complete-9);background-color:var(--wje-color-complete-9)}:host([color=success]) input[type=checkbox]:checked+label:after,:host([color=success]) input[type=checkbox]:indeterminate+label:after{background-color:var(--wje-color-contrast-0)}:host([color=success]) :is(input[type=checkbox]:checked+label):before,:host([color=success]) :is(input[type=checkbox]:indeterminate+label):before{border-color:var(--wje-color-success-9);background-color:var(--wje-color-success-9)}:host([color=warning]) input[type=checkbox]:checked+label:after,:host([color=warning]) input[type=checkbox]:indeterminate+label:after{background-color:var(--wje-color-contrast-0)}:host([color=warning]) :is(input[type=checkbox]:checked+label):before,:host([color=warning]) :is(input[type=checkbox]:indeterminate+label):before{border-color:var(--wje-color-warning-9);background-color:var(--wje-color-warning-9)}:host([color=danger]) input[type=checkbox]:checked+label:after,:host([color=danger]) input[type=checkbox]:indeterminate+label:after{background-color:var(--wje-color-contrast-0)}:host([color=danger]) :is(input[type=checkbox]:checked+label):before,:host([color=danger]) :is(input[type=checkbox]:indeterminate+label):before{border-color:var(--wje-color-danger-9);background-color:var(--wje-color-danger-9)}:host([color=info]) input[type=checkbox]:checked+label:after,:host([color=info]) input[type=checkbox]:indeterminate+label:after{background-color:var(--wje-color-contrast-0)}:host([color=info]) :is(input[type=checkbox]:checked+label):before,:host([color=info]) :is(input[type=checkbox]:indeterminate+label):before{border-color:var(--wje-color-info-9);background-color:var(--wje-color-info-9)}';
6
+ class k extends b {
7
+ /**
8
+ * Checkbox constructor.
9
+ */
10
+ constructor() {
11
+ super();
12
+ /**
13
+ * The class name.
14
+ */
15
+ l(this, "className", "Checkbox");
16
+ }
17
+ /**
18
+ * @summary Set checked attribute
19
+ * @returns {boolean} true if the toggle is checked, false otherwise
20
+ */
21
+ set disabled(e) {
22
+ e ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
23
+ }
24
+ /**
25
+ * @summary Get disabled attribute
26
+ * @returns {boolean} true if the toggle is disabled, false otherwise
27
+ */
28
+ get disabled() {
29
+ return this.hasAttribute("disabled");
30
+ }
31
+ /**
32
+ * @summary Set checked attribute
33
+ * @returns {boolean} true if the toggle is checked, false otherwise
34
+ */
35
+ set checked(e) {
36
+ e ? this.setAttribute("checked", "") : this.removeAttribute("checked");
37
+ }
38
+ /**
39
+ * @summary Get checked attribute
40
+ * @returns {boolean} true if the toggle is checked, false otherwise
41
+ */
42
+ get checked() {
43
+ return this.hasAttribute("checked");
44
+ }
45
+ /**
46
+ * Getter for the CSS stylesheet.
47
+ * @returns {string} The CSS stylesheet.
48
+ */
49
+ static get cssStyleSheet() {
50
+ return d;
51
+ }
52
+ static get observedAttributes() {
53
+ return ["checked", "disabled"];
54
+ }
55
+ /**
56
+ * Sets up the attributes for the checkbox.
57
+ */
58
+ setupAttributes() {
59
+ this.isShadowRoot = "open";
60
+ }
61
+ /**
62
+ * Draws the checkbox.
63
+ * @param {object} context - The context.
64
+ * @param {object} store - The store.
65
+ * @param {object} params - The parameters.
66
+ * @returns {DocumentFragment} The created fragment.
67
+ */
68
+ draw(e, p, u) {
69
+ let n = document.createDocumentFragment(), r = document.createElement("div");
70
+ r.setAttribute("part", "native"), r.classList.add("native-checkbox");
71
+ let o = document.createElement("input");
72
+ o.type = "checkbox", o.id = "checkbox", o.name = this.name || "checkbox", o.checked = this.hasAttribute("checked"), o.disabled = this.hasAttribute("disabled"), o.indeterminate = this.hasAttribute("indeterminate");
73
+ let a = document.createElement("label");
74
+ return a.htmlFor = "checkbox", a.innerHTML = "<slot></slot>", r.appendChild(o), r.appendChild(a), this.input = o, n.appendChild(r), n;
75
+ }
76
+ /**
77
+ * Adds an event listener after drawing the checkbox.
78
+ */
79
+ afterDraw() {
80
+ this.disabled || (this.input.addEventListener("input", (e) => {
81
+ this.checked = e.target.checked, i.dispatchCustomEvent(this, "wje-toggle:input");
82
+ }), this.input.addEventListener("change", (e) => {
83
+ this.checked = e.target.checked, i.dispatchCustomEvent(this, "wje-toggle:change");
84
+ }));
85
+ }
86
+ /**
87
+ * Removes the event listener when the checkbox is disconnected.
88
+ */
89
+ disconnectedCallback() {
90
+ i.removeElement(this.input);
91
+ }
92
+ }
93
+ b.define("wje-checkbox", k);
94
+ export {
95
+ k as default
96
+ };
@@ -0,0 +1,32 @@
1
+ var d = Object.defineProperty;
2
+ var w = (r, o, t) => o in r ? d(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
3
+ var n = (r, o, t) => (w(r, typeof o != "symbol" ? o + "" : o, t), t);
4
+ import l, { event as p } from "./wje-element.js";
5
+ const h = ".native-chip{display:inline-flex;justify-content:center;align-items:center;font-size:14px;letter-spacing:-.006em;margin:0;padding:.5rem .75rem;text-align:center;cursor:pointer;white-space:nowrap;text-shadow:none;box-shadow:none;border:0 none;line-height:14px;min-height:28px;height:28px;width:100%;max-width:fit-content;min-width:28px;position:relative;transition:width .15s cubic-bezier(.4,0,.2,1);border-radius:var(--wje-border-radius-pill);overflow:hidden;vertical-align:middle;box-sizing:border-box}:host(.focus){box-shadow:none}:host(.wje-active) .native-chip{border:1px solid var(--wje-color-primary-11);background-color:var(--wje-color-contrast-3);color:var(--wje-color)}:host(:focus,:active:focus,.wje-active:focus){outline:none!important}.check{display:none}:host([active]) .check{display:block;margin-inline:4px 0}:host([disabled]){opacity:.5;border:0;pointer-events:none;cursor:not-allowed}::slotted(wje-avatar){width:22px;height:22px}::slotted(wje-avatar:first-child){margin-inline:-8px 8px;margin-top:-4px;margin-bottom:-4px}::slotted(wje-icon:first-child){margin:-4px 8px -4px -4px}::slotted(wje-icon:last-child){margin:-4px -4px -4px 8px}wje-button{--wje-button-border-radius: 50%;--wje-button-margin-inline: .25rem -.5rem;--wje-padding-top: .15rem;--wje-padding-start: .15rem;--wje-padding-end: .15rem;--wje-padding-bottom: .15rem}.native-chip.wje-color-primary{background-color:var(--wje-color-primary-1);color:var(--wje-color-primary-9)}.native-chip.wje-color-complete{background-color:var(--wje-color-complete-1);color:var(--wje-color-complete-9)}.native-chip.wje-color-success{background-color:var(--wje-color-success-1);color:var(--wje-color-success-9)}.native-chip.wje-color-warning{background-color:var(--wje-color-warning-2);color:var(--wje-color-warning-11)}.native-chip.wje-color-danger{background-color:var(--wje-color-danger-1);color:var(--wje-color-danger-9)}.native-chip.wje-color-info{background-color:var(--wje-color-info-1);color:var(--wje-color-info-9)}.native-chip.wje-color-default{background-color:var(--wje-color-contrast-3);color:var(--wje-color-contrast-11)}@media (any-hover: hover){.native-chip.wje-color-primary:hover{background-color:var(--wje-color-primary-4);color:var(--wje-color-primary-10)}.native-chip.wje-color-complete:hover{background-color:var(--wje-color-complete-4);color:var(--wje-color-complete-10)}.native-chip.wje-color-success:hover{background-color:var(--wje-color-success-4);color:var(--wje-color-success-10)}.native-chip.wje-color-warning:hover{background-color:var(--wje-color-warning-4);color:var(--wje-color-warning-11)}.native-chip.wje-color-danger:hover{background-color:var(--wje-color-danger-4);color:var(--wje-color-danger-10)}.native-chip.wje-color-info:hover{background-color:var(--wje-color-info-4);color:var(--wje-color-info-10)}.native-chip.wje-color-default:hover{background-color:var(--wje-color-contrast-4);color:var(--wje-color-contrast-11)}}";
6
+ class v extends l {
7
+ constructor() {
8
+ super();
9
+ n(this, "className", "Chip");
10
+ }
11
+ static get cssStyleSheet() {
12
+ return h;
13
+ }
14
+ setupAttributes() {
15
+ this.isShadowRoot = "open";
16
+ }
17
+ draw(t, j, m) {
18
+ let i = document.createDocumentFragment(), e = document.createElement("div");
19
+ e.classList.add("native-chip");
20
+ let s = document.createElement("slot"), c = document.createElement("wje-button");
21
+ c.setAttribute("part", "remove"), c.setAttribute("fill", "link"), c.innerHTML = '<wje-icon name="x"></wje-icon>';
22
+ let a = document.createElement("wje-icon");
23
+ return a.setAttribute("name", "check"), a.classList.add("check"), this.hasAttribute("color") ? e.classList.add("wje-color-" + this.color, "wje-color") : e.classList.add("wje-color-default", "wje-color"), this.disabled && this.classList.add("wje-disabled"), this.outline && this.classList.add("wje-outline"), e.appendChild(s), e.appendChild(a), this.hasAttribute("removable") && e.appendChild(c), i.appendChild(e), this.remove = c, i;
24
+ }
25
+ afterDraw() {
26
+ p.addListener(this.remove, "click", "wje:chip-remove", null, { stopPropagation: !0 });
27
+ }
28
+ }
29
+ l.define("wje-chip", v);
30
+ export {
31
+ v as default
32
+ };
@@ -0,0 +1,27 @@
1
+ var f = Object.defineProperty;
2
+ var g = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
+ var r = (o, t, e) => (g(o, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import s from "./wje-element.js";
5
+ const m = ":host{display:block;flex-grow:1;width:100%;max-width:100%;padding-right:calc(var(--wje-gutter-x) * .5);padding-left:calc(var(--wje-gutter-x) * .5);margin-top:var(--wje-gutter-y)}:host(.wje-col){flex:1 0 0%}:host(.wje-row-cols-auto)>*{flex:0 0 auto;width:auto}:host(.wje-row-cols-1)>*{flex:0 0 auto;width:100%}:host(.wje-row-cols-2)>*{flex:0 0 auto;width:50%}:host(.wje-row-cols-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wje-row-cols-4)>*{flex:0 0 auto;width:25%}:host(.wje-row-cols-5)>*{flex:0 0 auto;width:20%}:host(.wje-row-cols-6)>*{flex:0 0 auto;width:16.6666666667%}@media (min-width: 576px){:host(.wje-col-sm){flex:1 0 0%}:host(.wje-row-cols-sm-auto)>*{flex:0 0 auto;width:auto}:host(.wje-row-cols-sm-1)>*{flex:0 0 auto;width:100%}:host(.wje-row-cols-sm-2)>*{flex:0 0 auto;width:50%}:host(.wje-row-cols-sm-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wje-row-cols-sm-4)>*{flex:0 0 auto;width:25%}:host(.wje-row-cols-sm-5)>*{flex:0 0 auto;width:20%}:host(.wje-row-cols-sm-6)>*{flex:0 0 auto;width:16.6666666667%}}@media (min-width: 768px){:host(.wje-col-md){flex:1 0 0%}:host(.wje-row-cols-md-auto)>*{flex:0 0 auto;width:auto}:host(.wje-row-cols-md-1)>*{flex:0 0 auto;width:100%}:host(.wje-row-cols-md-2)>*{flex:0 0 auto;width:50%}:host(.wje-row-cols-md-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wje-row-cols-md-4)>*{flex:0 0 auto;width:25%}:host(.wje-row-cols-md-5)>*{flex:0 0 auto;width:20%}:host(.wje-row-cols-md-6)>*{flex:0 0 auto;width:16.6666666667%}}@media (min-width: 992px){:host(.wje-col-lg){flex:1 0 0%}:host(.wje-row-cols-lg-auto)>*{flex:0 0 auto;width:auto}:host(.wje-row-cols-lg-1)>*{flex:0 0 auto;width:100%}:host(.wje-row-cols-lg-2)>*{flex:0 0 auto;width:50%}:host(.wje-row-cols-lg-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wje-row-cols-lg-4)>*{flex:0 0 auto;width:25%}:host(.wje-row-cols-lg-5)>*{flex:0 0 auto;width:20%}:host(.wje-row-cols-lg-6)>*{flex:0 0 auto;width:16.6666666667%}}@media (min-width: 1200px){:host(.wje-col-xl){flex:1 0 0%}:host(.wje-row-cols-xl-auto)>*{flex:0 0 auto;width:auto}:host(.wje-row-cols-xl-1)>*{flex:0 0 auto;width:100%}:host(.wje-row-cols-xl-2)>*{flex:0 0 auto;width:50%}:host(.wje-row-cols-xl-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wje-row-cols-xl-4)>*{flex:0 0 auto;width:25%}:host(.wje-row-cols-xl-5)>*{flex:0 0 auto;width:20%}:host(.wje-row-cols-xl-6)>*{flex:0 0 auto;width:16.6666666667%}}@media (min-width: 1400px){:host(.wje-col-xxl){flex:1 0 0%}:host(.wje-row-cols-xxl-auto)>*{flex:0 0 auto;width:auto}:host(.wje-row-cols-xxl-1)>*{flex:0 0 auto;width:100%}:host(.wje-row-cols-xxl-2)>*{flex:0 0 auto;width:50%}:host(.wje-row-cols-xxl-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wje-row-cols-xxl-4)>*{flex:0 0 auto;width:25%}:host(.wje-row-cols-xxl-5)>*{flex:0 0 auto;width:20%}:host(.wje-row-cols-xxl-6)>*{flex:0 0 auto;width:16.6666666667%}}:host(.wje-col-auto){flex:0 0 auto;width:auto}:host(.wje-col-1){flex:0 0 auto;width:8.33333333%}:host(.wje-col-2){flex:0 0 auto;width:16.66666667%}:host(.wje-col-3){flex:0 0 auto;width:25%}:host(.wje-col-4){flex:0 0 auto;width:33.33333333%}:host(.wje-col-5){flex:0 0 auto;width:41.66666667%}:host(.wje-col-6){flex:0 0 auto;width:50%}:host(.wje-col-7){flex:0 0 auto;width:58.33333333%}:host(.wje-col-8){flex:0 0 auto;width:66.66666667%}:host(.wje-col-9){flex:0 0 auto;width:75%}:host(.wje-col-10){flex:0 0 auto;width:83.33333333%}:host(.wje-col-11){flex:0 0 auto;width:91.66666667%}:host(.wje-col-12){flex:0 0 auto;width:100%}:host(.wje-offset-1){margin-left:8.33333333%}:host(.wje-offset-2){margin-left:16.66666667%}:host(.wje-offset-3){margin-left:25%}:host(.wje-offset-4){margin-left:33.33333333%}:host(.wje-offset-5){margin-left:41.66666667%}:host(.wje-offset-6){margin-left:50%}:host(.wje-offset-7){margin-left:58.33333333%}:host(.wje-offset-8){margin-left:66.66666667%}:host(.wje-offset-9){margin-left:75%}:host(.wje-offset-10){margin-left:83.33333333%}:host(.wje-offset-11){margin-left:91.66666667%}.g-0,.gx-0{--wje-gutter-x: 0}.g-0,.gy-0{--wje-gutter-y: 0}.g-1,.gx-1{--wje-gutter-x: .25rem}.g-1,.gy-1{--wje-gutter-y: .25rem}.g-2,.gx-2{--wje-gutter-x: .5rem}.g-2,.gy-2{--wje-gutter-y: .5rem}.g-3,.gx-3{--wje-gutter-x: 1rem}.g-3,.gy-3{--wje-gutter-y: 1rem}.g-4,.gx-4{--wje-gutter-x: 1.5rem}.g-4,.gy-4{--wje-gutter-y: 1.5rem}.g-5,.gx-5{--wje-gutter-x: 3rem}.g-5,.gy-5{--wje-gutter-y: 3rem}@media (min-width: 576px){:host(.wje-col-sm-auto){flex:0 0 auto;width:auto}:host(.wje-col-sm-1){flex:0 0 auto;width:8.33333333%}:host(.wje-col-sm-2){flex:0 0 auto;width:16.66666667%}:host(.wje-col-sm-3){flex:0 0 auto;width:25%}:host(.wje-col-sm-4){flex:0 0 auto;width:33.33333333%}:host(.wje-col-sm-5){flex:0 0 auto;width:41.66666667%}:host(.wje-col-sm-6){flex:0 0 auto;width:50%}:host(.wje-col-sm-7){flex:0 0 auto;width:58.33333333%}:host(.wje-col-sm-8){flex:0 0 auto;width:66.66666667%}:host(.wje-col-sm-9){flex:0 0 auto;width:75%}:host(.wje-col-sm-10){flex:0 0 auto;width:83.33333333%}:host(.wje-col-sm-11){flex:0 0 auto;width:91.66666667%}:host(.wje-col-sm-12){flex:0 0 auto;width:100%}:host(.wje-offset-sm-0){margin-left:0}:host(.wje-offset-sm-1){margin-left:8.33333333%}:host(.wje-offset-sm-2){margin-left:16.66666667%}:host(.wje-offset-sm-3){margin-left:25%}:host(.wje-offset-sm-4){margin-left:33.33333333%}:host(.wje-offset-sm-5){margin-left:41.66666667%}:host(.wje-offset-sm-6){margin-left:50%}:host(.wje-offset-sm-7){margin-left:58.33333333%}:host(.wje-offset-sm-8){margin-left:66.66666667%}:host(.wje-offset-sm-9){margin-left:75%}:host(.wje-offset-sm-10){margin-left:83.33333333%}:host(.wje-offset-sm-11){margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--wje-gutter-x: 0}.g-sm-0,.gy-sm-0{--wje-gutter-y: 0}.g-sm-1,.gx-sm-1{--wje-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--wje-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--wje-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--wje-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--wje-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--wje-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--wje-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--wje-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--wje-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--wje-gutter-y: 3rem}}@media (min-width: 768px){:host(.wje-col-md-auto){flex:0 0 auto;width:auto}:host(.wje-col-md-1){flex:0 0 auto;width:8.33333333%}:host(.wje-col-md-2){flex:0 0 auto;width:16.66666667%}:host(.wje-col-md-3){flex:0 0 auto;width:25%}:host(.wje-col-md-4){flex:0 0 auto;width:33.33333333%}:host(.wje-col-md-5){flex:0 0 auto;width:41.66666667%}:host(.wje-col-md-6){flex:0 0 auto;width:50%}:host(.wje-col-md-7){flex:0 0 auto;width:58.33333333%}:host(.wje-col-md-8){flex:0 0 auto;width:66.66666667%}:host(.wje-col-md-9){flex:0 0 auto;width:75%}:host(.wje-col-md-10){flex:0 0 auto;width:83.33333333%}:host(.wje-col-md-11){flex:0 0 auto;width:91.66666667%}:host(.wje-col-md-12){flex:0 0 auto;width:100%}:host(.wje-offset-md-0){margin-left:0}:host(.wje-offset-md-1){margin-left:8.33333333%}:host(.wje-offset-md-2){margin-left:16.66666667%}:host(.wje-offset-md-3){margin-left:25%}:host(.wje-offset-md-4){margin-left:33.33333333%}:host(.wje-offset-md-5){margin-left:41.66666667%}:host(.wje-offset-md-6){margin-left:50%}:host(.wje-offset-md-7){margin-left:58.33333333%}:host(.wje-offset-md-8){margin-left:66.66666667%}:host(.wje-offset-md-9){margin-left:75%}:host(.wje-offset-md-10){margin-left:83.33333333%}:host(.wje-offset-md-11){margin-left:91.66666667%}.g-md-0,.gx-md-0{--wje-gutter-x: 0}.g-md-0,.gy-md-0{--wje-gutter-y: 0}.g-md-1,.gx-md-1{--wje-gutter-x: .25rem}.g-md-1,.gy-md-1{--wje-gutter-y: .25rem}.g-md-2,.gx-md-2{--wje-gutter-x: .5rem}.g-md-2,.gy-md-2{--wje-gutter-y: .5rem}.g-md-3,.gx-md-3{--wje-gutter-x: 1rem}.g-md-3,.gy-md-3{--wje-gutter-y: 1rem}.g-md-4,.gx-md-4{--wje-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--wje-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--wje-gutter-x: 3rem}.g-md-5,.gy-md-5{--wje-gutter-y: 3rem}}@media (min-width: 992px){:host(.wje-col-lg-auto){flex:0 0 auto;width:auto}:host(.wje-col-lg-1){flex:0 0 auto;width:8.33333333%}:host(.wje-col-lg-2){flex:0 0 auto;width:16.66666667%}:host(.wje-col-lg-3){flex:0 0 auto;width:25%}:host(.wje-col-lg-4){flex:0 0 auto;width:33.33333333%}:host(.wje-col-lg-5){flex:0 0 auto;width:41.66666667%}:host(.wje-col-lg-6){flex:0 0 auto;width:50%}:host(.wje-col-lg-7){flex:0 0 auto;width:58.33333333%}:host(.wje-col-lg-8){flex:0 0 auto;width:66.66666667%}:host(.wje-col-lg-9){flex:0 0 auto;width:75%}:host(.wje-col-lg-10){flex:0 0 auto;width:83.33333333%}:host(.wje-col-lg-11){flex:0 0 auto;width:91.66666667%}:host(.wje-col-lg-12){flex:0 0 auto;width:100%}:host(.wje-offset-lg-0){margin-left:0}:host(.wje-offset-lg-1){margin-left:8.33333333%}:host(.wje-offset-lg-2){margin-left:16.66666667%}:host(.wje-offset-lg-3){margin-left:25%}:host(.wje-offset-lg-4){margin-left:33.33333333%}:host(.wje-offset-lg-5){margin-left:41.66666667%}:host(.wje-offset-lg-6){margin-left:50%}:host(.wje-offset-lg-7){margin-left:58.33333333%}:host(.wje-offset-lg-8){margin-left:66.66666667%}:host(.wje-offset-lg-9){margin-left:75%}:host(.wje-offset-lg-10){margin-left:83.33333333%}:host(.wje-offset-lg-11){margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--wje-gutter-x: 0}.g-lg-0,.gy-lg-0{--wje-gutter-y: 0}.g-lg-1,.gx-lg-1{--wje-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--wje-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--wje-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--wje-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--wje-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--wje-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--wje-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--wje-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--wje-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--wje-gutter-y: 3rem}}@media (min-width: 1200px){:host(.wje-col-xl-auto){flex:0 0 auto;width:auto}:host(.wje-col-xl-1){flex:0 0 auto;width:8.33333333%}:host(.wje-col-xl-2){flex:0 0 auto;width:16.66666667%}:host(.wje-col-xl-3){flex:0 0 auto;width:25%}:host(.wje-col-xl-4){flex:0 0 auto;width:33.33333333%}:host(.wje-col-xl-5){flex:0 0 auto;width:41.66666667%}:host(.wje-col-xl-6){flex:0 0 auto;width:50%}:host(.wje-col-xl-7){flex:0 0 auto;width:58.33333333%}:host(.wje-col-xl-8){flex:0 0 auto;width:66.66666667%}:host(.wje-col-xl-9){flex:0 0 auto;width:75%}:host(.wje-col-xl-10){flex:0 0 auto;width:83.33333333%}:host(.wje-col-xl-11){flex:0 0 auto;width:91.66666667%}:host(.wje-col-xl-12){flex:0 0 auto;width:100%}:host(.wje-offset-xl-0){margin-left:0}:host(.wje-offset-xl-1){margin-left:8.33333333%}:host(.wje-offset-xl-2){margin-left:16.66666667%}:host(.wje-offset-xl-3){margin-left:25%}:host(.wje-offset-xl-4){margin-left:33.33333333%}:host(.wje-offset-xl-5){margin-left:41.66666667%}:host(.wje-offset-xl-6){margin-left:50%}:host(.wje-offset-xl-7){margin-left:58.33333333%}:host(.wje-offset-xl-8){margin-left:66.66666667%}:host(.wje-offset-xl-9){margin-left:75%}:host(.wje-offset-xl-10){margin-left:83.33333333%}:host(.wje-offset-xl-11){margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--wje-gutter-x: 0}.g-xl-0,.gy-xl-0{--wje-gutter-y: 0}.g-xl-1,.gx-xl-1{--wje-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--wje-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--wje-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--wje-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--wje-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--wje-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--wje-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--wje-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--wje-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--wje-gutter-y: 3rem}}@media (min-width: 1400px){:host(.wje-col-xxl-auto){flex:0 0 auto;width:auto}:host(.wje-col-xxl-1){flex:0 0 auto;width:8.33333333%}:host(.wje-col-xxl-2){flex:0 0 auto;width:16.66666667%}:host(.wje-col-xxl-3){flex:0 0 auto;width:25%}:host(.wje-col-xxl-4){flex:0 0 auto;width:33.33333333%}:host(.wje-col-xxl-5){flex:0 0 auto;width:41.66666667%}:host(.wje-col-xxl-6){flex:0 0 auto;width:50%}:host(.wje-col-xxl-7){flex:0 0 auto;width:58.33333333%}:host(.wje-col-xxl-8){flex:0 0 auto;width:66.66666667%}:host(.wje-col-xxl-9){flex:0 0 auto;width:75%}:host(.wje-col-xxl-10){flex:0 0 auto;width:83.33333333%}:host(.wje-col-xxl-11){flex:0 0 auto;width:91.66666667%}:host(.wje-col-xxl-12){flex:0 0 auto;width:100%}:host(.wje-offset-xxl-0){margin-left:0}:host(.wje-offset-xxl-1){margin-left:8.33333333%}:host(.wje-offset-xxl-2){margin-left:16.66666667%}:host(.wje-offset-xxl-3){margin-left:25%}:host(.wje-offset-xxl-4){margin-left:33.33333333%}:host(.wje-offset-xxl-5){margin-left:41.66666667%}:host(.wje-offset-xxl-6){margin-left:50%}:host(.wje-offset-xxl-7){margin-left:58.33333333%}:host(.wje-offset-xxl-8){margin-left:66.66666667%}:host(.wje-offset-xxl-9){margin-left:75%}:host(.wje-offset-xxl-10){margin-left:83.33333333%}:host(.wje-offset-xxl-11){margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--wje-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--wje-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--wje-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--wje-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--wje-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--wje-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--wje-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--wje-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--wje-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--wje-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--wje-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--wje-gutter-y: 3rem}}:host(.order-first){order:-1!important}:host(.order-0){order:0!important}:host(.order-1){order:1!important}:host(.order-2){order:2!important}:host(.order-3){order:3!important}:host(.order-4){order:4!important}:host(.order-5){order:5!important}:host(.order-last){order:6!important}:host(.order-sm-first){order:-1!important}:host(.order-sm-0){order:0!important}:host(.order-sm-1){order:1!important}:host(.order-sm-2){order:2!important}:host(.order-sm-3){order:3!important}:host(.order-sm-4){order:4!important}:host(.order-sm-5){order:5!important}:host(.order-sm-last){order:6!important}:host(.order-md-first){order:-1!important}:host(.order-md-0){order:0!important}:host(.order-md-1){order:1!important}:host(.order-md-2){order:2!important}:host(.order-md-3){order:3!important}:host(.order-md-4){order:4!important}:host(.order-md-5){order:5!important}:host(.order-md-last){order:6!important}:host(.order-lg-first){order:-1!important}:host(.order-lg-0){order:0!important}:host(.order-lg-1){order:1!important}:host(.order-lg-2){order:2!important}:host(.order-lg-3){order:3!important}:host(.order-lg-4){order:4!important}:host(.order-lg-5){order:5!important}:host(.order-lg-last){order:6!important}:host(.order-xl-first){order:-1!important}:host(.order-xl-0){order:0!important}:host(.order-xl-1){order:1!important}:host(.order-xl-2){order:2!important}:host(.order-xl-3){order:3!important}:host(.order-xl-4){order:4!important}:host(.order-xl-5){order:5!important}:host(.order-xl-last){order:6!important}:host(.order-xxl-first){order:-1!important}:host(.order-xxl-0){order:0!important}:host(.order-xxl-1){order:1!important}:host(.order-xxl-2){order:2!important}:host(.order-xxl-3){order:3!important}:host(.order-xxl-4){order:4!important}:host(.order-xxl-5){order:5!important}:host(.order-xxl-last){order:6!important}";
6
+ class d extends s {
7
+ constructor() {
8
+ super();
9
+ r(this, "className", "Col");
10
+ }
11
+ static get cssStyleSheet() {
12
+ return m;
13
+ }
14
+ setupAttributes() {
15
+ this.isShadowRoot = "open";
16
+ }
17
+ beforeDraw(e, w, x) {
18
+ }
19
+ draw(e, w, x) {
20
+ let l = document.createDocumentFragment(), h = document.createElement("slot");
21
+ return this.order && this.classList.add("order-" + this.order), this.size && this.classList.add("wje-col-" + this.size), this.sizeSm && this.classList.add("wje-col-sm-" + this.sizeSm), this.sizeMd && this.classList.add("wje-col-md-" + this.sizeMd), this.offset && this.classList.add("wje-offset-" + this.offset), this.offsetSm && this.classList.add("wje-offset-sm-" + this.offsetSm), l.appendChild(h), l;
22
+ }
23
+ }
24
+ s.define("wje-col", d);
25
+ export {
26
+ d as default
27
+ };