wj-elements 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/router-links-e0087f84.js +146 -0
  2. package/dist/style.css +2 -2365
  3. package/dist/wj-aside.js +18 -22
  4. package/dist/wj-avatar.js +32 -49
  5. package/dist/wj-badge.js +18 -22
  6. package/dist/wj-breadcrumb.js +53 -103
  7. package/dist/wj-breadcrumbs.js +21 -36
  8. package/dist/wj-button-group.js +24 -36
  9. package/dist/wj-button.js +37 -80
  10. package/dist/wj-card-content.js +16 -18
  11. package/dist/wj-card-controls.js +16 -18
  12. package/dist/wj-card-header.js +16 -20
  13. package/dist/wj-card-subtitle.js +17 -19
  14. package/dist/wj-card-title.js +16 -18
  15. package/dist/wj-card.js +16 -20
  16. package/dist/wj-checkbox.js +24 -46
  17. package/dist/wj-chip.js +21 -39
  18. package/dist/wj-col.js +18 -32
  19. package/dist/wj-color-picker.js +503 -868
  20. package/dist/wj-container.js +18 -20
  21. package/dist/wj-copy-button.js +66 -112
  22. package/dist/wj-dialog.js +43 -67
  23. package/dist/wj-divider.js +16 -20
  24. package/dist/wj-dropdown.js +22 -31
  25. package/dist/wj-element.js +241 -416
  26. package/dist/wj-footer.js +16 -18
  27. package/dist/wj-form.js +16 -18
  28. package/dist/wj-grid.js +17 -21
  29. package/dist/wj-header.js +18 -22
  30. package/dist/wj-icon-picker.js +66 -107
  31. package/dist/wj-icon.js +67 -140
  32. package/dist/wj-img-comparer.js +43 -72
  33. package/dist/wj-img.js +21 -31
  34. package/dist/wj-infinite-scroll.js +49 -84
  35. package/dist/wj-input.js +67 -146
  36. package/dist/wj-item.js +19 -34
  37. package/dist/wj-label.js +19 -21
  38. package/dist/wj-list.js +17 -20
  39. package/dist/wj-main.js +16 -18
  40. package/dist/wj-master.js +331 -462
  41. package/dist/wj-menu-button.js +18 -21
  42. package/dist/wj-menu-item.js +67 -144
  43. package/dist/wj-menu-label.js +17 -21
  44. package/dist/wj-menu.js +20 -24
  45. package/dist/wj-popup.js +714 -1140
  46. package/dist/wj-progress-bar.js +42 -100
  47. package/dist/wj-radio-group.js +27 -38
  48. package/dist/wj-radio.js +24 -46
  49. package/dist/wj-route.js +8 -11
  50. package/dist/wj-router-link.js +19 -22
  51. package/dist/wj-router-outlet.js +71 -135
  52. package/dist/wj-routerx.js +641 -1121
  53. package/dist/wj-row.js +20 -22
  54. package/dist/wj-slider.js +55 -97
  55. package/dist/wj-split-view.js +45 -81
  56. package/dist/wj-store.js +110 -195
  57. package/dist/wj-textarea.js +39 -86
  58. package/dist/wj-thumbnail.js +17 -19
  59. package/dist/wj-toast.js +34 -88
  60. package/dist/wj-toggle.js +24 -42
  61. package/dist/wj-toolbar-action.js +16 -27
  62. package/dist/wj-toolbar.js +21 -26
  63. package/dist/wj-tooltip.js +27 -41
  64. package/dist/wj-visually-hidden.js +16 -18
  65. package/package.json +1 -1
  66. package/dist/router-links-26e4a166.js +0 -204
@@ -1,33 +1,29 @@
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, { event } from "./wj-element.js";
1
+ var b = Object.defineProperty;
2
+ var l = (c, t, e) => t in c ? b(c, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[t] = e;
3
+ var n = (c, t, e) => (l(c, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import h, { event as r } from "./wj-element.js";
8
5
  import "./wj-store.js";
9
- const styles = '/*!\n* direction.scss\n*/\n/* Skeleton Variables */\n/*\n[ Checkbox ]\n*/\n:host {\n --wj-checkbox-margin-top: 0;\n --wj-checkbox-margin-bottom: .5rem;\n --wj-checkbox-margin-inline: 0;\n --wj-checkbox-width: 16px;\n --wj-checkbox-height: 16px;\n display: block;\n margin-top: var(--wj-checkbox-margin-top);\n margin-bottom: var(--wj-checkbox-margin-bottom);\n margin-inline: var(--wj-checkbox-margin-inline);\n line-height: 100%;\n padding-left: 0px;\n}\n:host label {\n display: inline-block;\n cursor: pointer;\n position: relative;\n padding-left: 25px;\n min-width: var(--wj-checkbox-width);\n min-height: var(--wj-checkbox-height);\n margin-bottom: 0;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Old versions of Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */\n}\n:host label:before {\n content: "";\n position: absolute;\n width: 16px;\n height: 16px;\n left: 0;\n -webkit-box-sizing: inherit;\n box-sizing: border-box;\n background-color: #fff;\n border: 1px solid #c9c9c9;\n}\n.native-checkbox label {\n transition: border 140ms linear 0s, color 140ms linear 0s, background-color 140ms linear 0s;\n}\n.native-checkbox label:hover {\n color: #212121;\n}\n.native-checkbox label:before {\n border-radius: 3px;\n transition: border 140ms linear 0s, color 140ms linear 0s, background-color 140ms linear 0s;\n}\n.native-checkbox input[type=checkbox] {\n position: absolute;\n margin: 0;\n z-index: -1;\n width: 16px;\n height: 16px;\n opacity: 0;\n display: none;\n}\n.native-checkbox input[type=checkbox] + label::after {\n content: "";\n position: absolute;\n left: 0px;\n border-right: 0 solid transparent;\n border-bottom: 0 solid transparent;\n width: 16px;\n height: 16px;\n overflow: hidden;\n}\n.native-checkbox.checkbox-circle label:after {\n border-radius: 99px;\n}\n.native-checkbox.checkbox-circle label:before {\n border-radius: 99px;\n}\n.native-checkbox input[type=checkbox]:checked + label::after {\n content: "";\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAQAgMAAADsa5zLAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURUdwTHBwcG9vb3BwcBFjhIYAAAAEdFJOUwBG9tQE3MceAAAAVUlEQVQoz2NgGLKA0QGIDwDxBSCeAMEYgAWI2YCK2CagYgwgDcRSDhgYbAkKzsSKGdgakCyY6ADES7BiiCkgJ4PYyybgxAhQAsRZDrgxCpDEg4cAAAAp2ibhZRGLHgAAAABJRU5ErkJggg==") left center;\n background-size: 160px 16px;\n background-repeat: no-repeat;\n animation-name: checkbox-check;\n animation-duration: 320ms;\n animation-timing-function: steps(9);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n}\n.native-checkbox input[type=checkbox]:hover:active:not(:checked) + label:before {\n background-color: rgba(0, 0, 0, 0.08);\n}\n.native-checkbox input[type=checkbox]:focus + label {\n color: #212121;\n}\n.native-checkbox input[type=checkbox]:focus + label:before {\n outline: none !important;\n box-shadow: 0 0 0 0px #78c8fe;\n}\n.native-checkbox input[type=checkbox][disabled] + label {\n cursor: not-allowed !important;\n color: #4b4b4b;\n opacity: 0.58;\n}\n.native-checkbox input[type=checkbox][disabled] + label:before {\n cursor: not-allowed !important;\n background: #ececec;\n}\n.native-checkbox input[type=checkbox]:indeterminate + label:after {\n background: none;\n background-color: #4b4b4b;\n width: 10px;\n height: 2px;\n top: 6px;\n margin: 3px;\n border-radius: 2px;\n}\n.native-checkbox.right label {\n padding-left: 0px;\n padding-right: 26px;\n}\n.native-checkbox.right label:before {\n right: 0px;\n left: auto;\n}\n.native-checkbox.right input[type=checkbox]:checked + label {\n position: relative;\n}\n.native-checkbox.right input[type=checkbox]:checked + label::after {\n position: absolute;\n right: 0px;\n left: auto;\n}\n.success input[type=checkbox]:checked + label:before, .success input[type=checkbox]:indeterminate + label:before {\n border-color: #19AD79;\n background-color: #19AD79;\n}\n.primary input[type=checkbox]:checked + label:before, .primary input[type=checkbox]:indeterminate + label:before {\n border-color: #7252D3;\n background-color: #7252D3;\n}\n.complete input[type=checkbox]:checked + label:before, .complete input[type=checkbox]:indeterminate + label:before {\n border-color: #0072EC;\n background-color: #0072EC;\n}\n.warning input[type=checkbox]:checked + label:before, .warning input[type=checkbox]:indeterminate + label:before {\n border-color: #FFd945;\n background-color: #FFd945;\n}\n.danger input[type=checkbox]:checked + label:before, .danger input[type=checkbox]:indeterminate + label:before {\n border-color: #D83C31;\n background-color: #D83C31;\n}\n.info input[type=checkbox]:checked + label:before, .info input[type=checkbox]:indeterminate + label:before {\n border-color: #3B4752;\n background-color: #3B4752;\n}\n.info input[type=checkbox]:checked + label::after, .danger input[type=checkbox]:checked + label::after, .complete input[type=checkbox]:checked + label::after, .primary input[type=checkbox]:checked + label::after, .success input[type=checkbox]:checked + label::after {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAQAgMAAADsa5zLAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURUdwTP///////////waf0AoAAAAEdFJOUwBG9tQE3MceAAAAVUlEQVQoz2NgGLKA0QGIDwDxBSCeAMEYgAWI2YCK2CagYgwgDcRSDhgYbAkKzsSKGdgakCyY6ADES7BiiCkgJ4PYyybgxAhQAsRZDrgxCpDEg4cAAAAp2ibhZRGLHgAAAABJRU5ErkJggg==") left center;\n}\n.info input[type=checkbox]:indeterminate + label::after, .danger input[type=checkbox]:indeterminate + label::after, .complete input[type=checkbox]:indeterminate + label::after, .primary input[type=checkbox]:indeterminate + label::after, .success input[type=checkbox]:indeterminate + label::after {\n background-color: #fff;\n}\n@keyframes shrink-bounce {\n 0% {\n transform: scale(1);\n }\n 33% {\n transform: scale(0.85);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes checkbox-check {\n 0% {\n background-position: 0px;\n }\n 100% {\n background-position: -144px;\n }\n}\n/* hide focus style if not from keyboard navigation */\n.js-focus-visible .native-checkbox input[type=checkbox]:focus:not(.focus-visible) + label:before {\n box-shadow: none;\n}\ninput[type=checkbox] {\n accent-color: #7252D3 !important;\n font-size: 50px;\n}';
10
- class Checkbox extends WJElement {
6
+ const s = `/*!
7
+ * direction.scss
8
+ */:host{--wj-checkbox-margin-top: 0;--wj-checkbox-margin-bottom: .5rem;--wj-checkbox-margin-inline: 0;--wj-checkbox-width: 16px;--wj-checkbox-height: 16px;display:block;margin-top:var(--wj-checkbox-margin-top);margin-bottom:var(--wj-checkbox-margin-bottom);margin-inline:var(--wj-checkbox-margin-inline);line-height:100%;padding-left:0}:host label{display:inline-block;cursor:pointer;position:relative;padding-left:25px;min-width:var(--wj-checkbox-width);min-height:var(--wj-checkbox-height);margin-bottom:0;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host label:before{content:"";position:absolute;width:16px;height:16px;left:0;-webkit-box-sizing:inherit;box-sizing:border-box;background-color:#fff;border:1px solid #c9c9c9}.native-checkbox label{transition:border .14s linear 0s,color .14s linear 0s,background-color .14s linear 0s}.native-checkbox label:hover{color:#212121}.native-checkbox label:before{border-radius:3px;transition:border .14s linear 0s,color .14s linear 0s,background-color .14s linear 0s}.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:16px;height:16px;overflow:hidden}.native-checkbox.checkbox-circle label:after{border-radius:99px}.native-checkbox.checkbox-circle label:before{border-radius:99px}.native-checkbox input[type=checkbox]:checked+label:after{content:"";background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAQAgMAAADsa5zLAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURUdwTHBwcG9vb3BwcBFjhIYAAAAEdFJOUwBG9tQE3MceAAAAVUlEQVQoz2NgGLKA0QGIDwDxBSCeAMEYgAWI2YCK2CagYgwgDcRSDhgYbAkKzsSKGdgakCyY6ADES7BiiCkgJ4PYyybgxAhQAsRZDrgxCpDEg4cAAAAp2ibhZRGLHgAAAABJRU5ErkJggg==) left center;background-size:160px 16px;background-repeat:no-repeat;animation-name:checkbox-check;animation-duration:.32s;animation-timing-function:steps(9);animation-fill-mode:forwards;animation-iteration-count:1}.native-checkbox input[type=checkbox]:hover:active:not(:checked)+label:before{background-color:#00000014}.native-checkbox input[type=checkbox]:focus+label{color:#212121}.native-checkbox input[type=checkbox]:focus+label:before{outline:none!important;box-shadow:0 0 #78c8fe}.native-checkbox input[type=checkbox][disabled]+label{cursor:not-allowed!important;color:#4b4b4b;opacity:.58}.native-checkbox input[type=checkbox][disabled]+label:before{cursor:not-allowed!important;background:#ececec}.native-checkbox input[type=checkbox]:indeterminate+label:after{background:none;background-color:#4b4b4b;width:10px;height:2px;top:6px;margin:3px;border-radius:2px}.native-checkbox.right label{padding-left:0;padding-right:26px}.native-checkbox.right label:before{right:0;left:auto}.native-checkbox.right input[type=checkbox]:checked+label{position:relative}.native-checkbox.right input[type=checkbox]:checked+label:after{position:absolute;right:0;left:auto}.success input[type=checkbox]:checked+label:before,.success input[type=checkbox]:indeterminate+label:before{border-color:#19ad79;background-color:#19ad79}.primary input[type=checkbox]:checked+label:before,.primary input[type=checkbox]:indeterminate+label:before{border-color:#7252d3;background-color:#7252d3}.complete input[type=checkbox]:checked+label:before,.complete input[type=checkbox]:indeterminate+label:before{border-color:#0072ec;background-color:#0072ec}.warning input[type=checkbox]:checked+label:before,.warning input[type=checkbox]:indeterminate+label:before{border-color:#ffd945;background-color:#ffd945}.danger input[type=checkbox]:checked+label:before,.danger input[type=checkbox]:indeterminate+label:before{border-color:#d83c31;background-color:#d83c31}.info input[type=checkbox]:checked+label:before,.info input[type=checkbox]:indeterminate+label:before{border-color:#3b4752;background-color:#3b4752}.info input[type=checkbox]:checked+label:after,.danger input[type=checkbox]:checked+label:after,.complete input[type=checkbox]:checked+label:after,.primary input[type=checkbox]:checked+label:after,.success input[type=checkbox]:checked+label:after{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAQAgMAAADsa5zLAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURUdwTP///////////waf0AoAAAAEdFJOUwBG9tQE3MceAAAAVUlEQVQoz2NgGLKA0QGIDwDxBSCeAMEYgAWI2YCK2CagYgwgDcRSDhgYbAkKzsSKGdgakCyY6ADES7BiiCkgJ4PYyybgxAhQAsRZDrgxCpDEg4cAAAAp2ibhZRGLHgAAAABJRU5ErkJggg==) left center}.info input[type=checkbox]:indeterminate+label:after,.danger input[type=checkbox]:indeterminate+label:after,.complete input[type=checkbox]:indeterminate+label:after,.primary input[type=checkbox]:indeterminate+label:after,.success input[type=checkbox]:indeterminate+label:after{background-color:#fff}@keyframes shrink-bounce{0%{transform:scale(1)}33%{transform:scale(.85)}to{transform:scale(1)}}@keyframes checkbox-check{0%{background-position:0px}to{background-position:-144px}}.js-focus-visible .native-checkbox input[type=checkbox]:focus:not(.focus-visible)+label:before{box-shadow:none}input[type=checkbox]{accent-color:#7252D3!important;font-size:50px}
9
+ `;
10
+ class d extends h {
11
11
  constructor() {
12
12
  super();
13
- __publicField(this, "className", "Checkbox");
14
- __publicField(this, "inputEvent", (e) => {
13
+ n(this, "className", "Checkbox");
14
+ n(this, "inputEvent", (e) => {
15
15
  this.checked = e.target.checked;
16
16
  });
17
- this._checked = false;
17
+ this._checked = !1;
18
18
  }
19
- set checked(value) {
20
- this._checked = value;
21
- if (value)
22
- this.setAttribute("checked", "");
23
- else
24
- this.removeAttribute("checked");
19
+ set checked(e) {
20
+ this._checked = e, e ? this.setAttribute("checked", "") : this.removeAttribute("checked");
25
21
  }
26
22
  get checked() {
27
23
  return this._checked;
28
24
  }
29
25
  static get cssStyleSheet() {
30
- return styles;
26
+ return s;
31
27
  }
32
28
  static get observedAttributes() {
33
29
  return ["checked"];
@@ -35,38 +31,20 @@ class Checkbox extends WJElement {
35
31
  setupAttributes() {
36
32
  this.isShadowRoot = "open";
37
33
  }
38
- draw(context, store, params) {
39
- let fragment = document.createDocumentFragment();
40
- let native = document.createElement("div");
41
- native.classList.add("native-checkbox");
42
- if (this.variant === "circle")
43
- native.classList.add("checkbox-circle");
44
- if (this.color)
45
- native.classList.add(this.color);
46
- this.input = document.createElement("input");
47
- this.input.type = "checkbox";
48
- this.input.id = "checkbox";
49
- this.input.name = this.name = "checkbox";
50
- this.input.checked = this.hasAttribute("checked");
51
- this.input.disabled = this.hasAttribute("disabled");
52
- this.input.indeterminate = this.hasAttribute("indeterminate");
53
- let label = document.createElement("label");
54
- label.htmlFor = "checkbox";
55
- label.innerHTML = "<slot></slot>";
56
- native.appendChild(this.input);
57
- native.appendChild(label);
58
- fragment.appendChild(native);
59
- return fragment;
34
+ draw(e, p, k) {
35
+ let a = document.createDocumentFragment(), o = document.createElement("div");
36
+ o.classList.add("native-checkbox"), this.variant === "circle" && o.classList.add("checkbox-circle"), this.color && o.classList.add(this.color), this.input = document.createElement("input"), this.input.type = "checkbox", this.input.id = "checkbox", this.input.name = this.name = "checkbox", this.input.checked = this.hasAttribute("checked"), this.input.disabled = this.hasAttribute("disabled"), this.input.indeterminate = this.hasAttribute("indeterminate");
37
+ let i = document.createElement("label");
38
+ return i.htmlFor = "checkbox", i.innerHTML = "<slot></slot>", o.appendChild(this.input), o.appendChild(i), a.appendChild(o), a;
60
39
  }
61
40
  afterDraw() {
62
- event.addListener(this, "click", "wj:checkbox:change");
63
- event.addListener(this, "click", "wj:checkbox:input");
41
+ r.addListener(this, "click", "wj:checkbox:change"), r.addListener(this, "click", "wj:checkbox:input");
64
42
  }
65
43
  disconnectedCallback() {
66
- event.removeElement(this);
44
+ r.removeElement(this);
67
45
  }
68
46
  }
69
- customElements.get("wj-checkbox") || window.customElements.define("wj-checkbox", Checkbox);
47
+ customElements.get("wj-checkbox") || window.customElements.define("wj-checkbox", d);
70
48
  export {
71
- Checkbox
49
+ d as Checkbox
72
50
  };
package/dist/wj-chip.js CHANGED
@@ -1,54 +1,36 @@
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, { event } from "./wj-element.js";
1
+ var l = Object.defineProperty;
2
+ var d = (o, t, e) => t in o ? l(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
+ var c = (o, t, e) => (d(o, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import p, { event as h } from "./wj-element.js";
8
5
  import "./wj-store.js";
9
- const styles = '/*!\n* direction.scss\n*/\n/* Skeleton Variables */\n/*\n[ Chip ]\n*/\n:host(.wj-color-primary) {\n --wj-color-base: #eae0fb !important;\n --wj-color-contrast: #845ae0 !important;\n}\n:host(.wj-color-complete) {\n --wj-color-base: #d3eeff !important;\n --wj-color-contrast: #0f8ff9 !important;\n}\n:host(.wj-color-success) {\n --wj-color-base: #d6f7f0 !important;\n --wj-color-contrast: #26bf93 !important;\n}\n:host(.wj-color-warning) {\n --wj-color-base: #fffde1 !important;\n --wj-color-contrast: #ffe858 !important;\n}\n:host(.wj-color-danger) {\n --wj-color-base: #fde2da !important;\n --wj-color-contrast: #e6533c !important;\n}\n:host(.wj-color-info) {\n --wj-color-base: #dbe6e8 !important;\n --wj-color-contrast: #475b6b !important;\n}\n:host(.wj-color-menu) {\n --wj-color-base: #f4f4f4 !important;\n --wj-color-contrast: #21252d !important;\n}\n:host {\n --wj-chip-border-radius: 100px;\n --wj-chip-background: #e0e0e0;\n --wj-chip-color: #4b4b4b;\n --wj-chip-margin: 0;\n margin: var(--wj-chip-margin);\n}\n.native-chip {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n font-family: -apple-system, BlinkMacSystemFont, "Inter UI", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n font-weight: 500;\n font-size: 14px;\n letter-spacing: -0.006em;\n margin: 0;\n padding: 0.5rem 0.75rem;\n text-align: center;\n cursor: pointer;\n white-space: nowrap;\n background: var(--wj-chip-background);\n color: var(--wj-chip-color);\n text-shadow: none;\n box-shadow: none;\n border: 0 none;\n line-height: 14px;\n min-height: 28px;\n height: 28px;\n width: 100%;\n max-width: fit-content;\n min-width: 28px;\n position: relative;\n transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);\n border-radius: var(--wj-chip-border-radius);\n overflow: hidden;\n vertical-align: middle;\n box-sizing: border-box;\n}\n:host(.focus) {\n box-shadow: none;\n}\n:host(:hover:not(.wj-active)) .native-chip {\n background: #f4f4f4;\n color: #4b4b4b;\n}\n:host(.wj-active) .native-chip {\n background: red;\n border: 1px solid rgba(33, 33, 33, 0.2);\n border-bottom: 1px solid rgba(33, 33, 33, 0.29);\n color: #4b4b4b;\n}\n:host(:focus, :active:focus, .wj-active:focus) {\n outline: none !important;\n box-shadow: 0 0 0 0px #78c8fe;\n}\n.check {\n display: none;\n}\n:host([active]) .check {\n display: block;\n margin-inline: 4px 0;\n}\n:host(.wj-disabled) {\n background: #f4f4f4;\n color: #757575;\n border: 0;\n pointer-events: none;\n cursor: not-allowed;\n}\n::slotted(wj-avatar) {\n width: 22px;\n height: 22px;\n}\n::slotted(wj-avatar:first-child) {\n margin-inline: -8px 8px;\n margin-top: -4px;\n margin-bottom: -4px;\n}\n:host(.wj-color) .native-chip {\n background-color: var(--wj-color-base, red);\n color: var(--wj-color-contrast);\n}\n::slotted(wj-icon:first-child) {\n margin: -4px 8px -4px -4px;\n}\n::slotted(wj-icon:last-child) {\n margin: -4px -4px -4px 8px;\n}\nwj-button {\n --wj-button-border-radius: 50%;\n --wj-button-margin-inline: .25rem -.5rem;\n --wj-padding-top: .15rem;\n --wj-padding-start: .15rem;\n --wj-padding-end: .15rem;\n --wj-padding-bottom: .15rem;\n}';
10
- class Chip extends WJElement {
6
+ const m = `/*!
7
+ * direction.scss
8
+ */:host(.wj-color-primary){--wj-color-base: #eae0fb !important;--wj-color-contrast: #845ae0 !important}:host(.wj-color-complete){--wj-color-base: #d3eeff !important;--wj-color-contrast: #0f8ff9 !important}:host(.wj-color-success){--wj-color-base: #d6f7f0 !important;--wj-color-contrast: #26bf93 !important}:host(.wj-color-warning){--wj-color-base: #fffde1 !important;--wj-color-contrast: #ffe858 !important}:host(.wj-color-danger){--wj-color-base: #fde2da !important;--wj-color-contrast: #e6533c !important}:host(.wj-color-info){--wj-color-base: #dbe6e8 !important;--wj-color-contrast: #475b6b !important}:host(.wj-color-menu){--wj-color-base: #f4f4f4 !important;--wj-color-contrast: #21252d !important}:host{--wj-chip-border-radius: 100px;--wj-chip-background: #e0e0e0;--wj-chip-color: #4b4b4b;--wj-chip-margin: 0;margin:var(--wj-chip-margin)}.native-chip{display:inline-flex;justify-content:center;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Inter UI,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:500;font-size:14px;letter-spacing:-.006em;margin:0;padding:.5rem .75rem;text-align:center;cursor:pointer;white-space:nowrap;background:var(--wj-chip-background);color:var(--wj-chip-color);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(--wj-chip-border-radius);overflow:hidden;vertical-align:middle;box-sizing:border-box}:host(.focus){box-shadow:none}:host(:hover:not(.wj-active)) .native-chip{background:#f4f4f4;color:#4b4b4b}:host(.wj-active) .native-chip{background:red;border:1px solid rgba(33,33,33,.2);border-bottom:1px solid rgba(33,33,33,.29);color:#4b4b4b}:host(:focus,:active:focus,.wj-active:focus){outline:none!important;box-shadow:0 0 #78c8fe}.check{display:none}:host([active]) .check{display:block;margin-inline:4px 0}:host(.wj-disabled){background:#f4f4f4;color:#757575;border:0;pointer-events:none;cursor:not-allowed}::slotted(wj-avatar){width:22px;height:22px}::slotted(wj-avatar:first-child){margin-inline:-8px 8px;margin-top:-4px;margin-bottom:-4px}:host(.wj-color) .native-chip{background-color:var(--wj-color-base, red);color:var(--wj-color-contrast)}::slotted(wj-icon:first-child){margin:-4px 8px -4px -4px}::slotted(wj-icon:last-child){margin:-4px -4px -4px 8px}wj-button{--wj-button-border-radius: 50%;--wj-button-margin-inline: .25rem -.5rem;--wj-padding-top: .15rem;--wj-padding-start: .15rem;--wj-padding-end: .15rem;--wj-padding-bottom: .15rem}
9
+ `;
10
+ class w extends p {
11
11
  constructor() {
12
12
  super();
13
- __publicField(this, "className", "Chip");
13
+ c(this, "className", "Chip");
14
14
  }
15
15
  static get cssStyleSheet() {
16
- return styles;
16
+ return m;
17
17
  }
18
18
  setupAttributes() {
19
19
  this.isShadowRoot = "open";
20
20
  }
21
- draw(context, store, params) {
22
- let fragment = document.createDocumentFragment();
23
- let native = document.createElement("div");
24
- native.classList.add("native-chip");
25
- let slot = document.createElement("slot");
26
- let remove = document.createElement("wj-button");
27
- remove.setAttribute("part", "remove");
28
- remove.setAttribute("variant", "link");
29
- remove.innerHTML = `<wj-icon name="x"></wj-icon>`;
30
- let active = document.createElement("wj-icon");
31
- active.setAttribute("name", "check");
32
- active.classList.add("check");
33
- if (this.color)
34
- this.classList.add("wj-color-" + this.color, "wj-color");
35
- if (this.disabled)
36
- this.classList.add("wj-disabled");
37
- if (this.outline)
38
- this.classList.add("wj-outline");
39
- native.appendChild(slot);
40
- native.appendChild(active);
41
- if (this.hasAttribute("removable"))
42
- native.appendChild(remove);
43
- fragment.appendChild(native);
44
- this.remove = remove;
45
- return fragment;
21
+ draw(e, b, j) {
22
+ let a = document.createDocumentFragment(), r = document.createElement("div");
23
+ r.classList.add("native-chip");
24
+ let s = document.createElement("slot"), i = document.createElement("wj-button");
25
+ i.setAttribute("part", "remove"), i.setAttribute("variant", "link"), i.innerHTML = '<wj-icon name="x"></wj-icon>';
26
+ let n = document.createElement("wj-icon");
27
+ return n.setAttribute("name", "check"), n.classList.add("check"), this.color && this.classList.add("wj-color-" + this.color, "wj-color"), this.disabled && this.classList.add("wj-disabled"), this.outline && this.classList.add("wj-outline"), r.appendChild(s), r.appendChild(n), this.hasAttribute("removable") && r.appendChild(i), a.appendChild(r), this.remove = i, a;
46
28
  }
47
29
  afterDraw() {
48
- event.addListener(this.remove, "click", "wj:chip-remove", null, { stopPropagation: true });
30
+ h.addListener(this.remove, "click", "wj:chip-remove", null, { stopPropagation: !0 });
49
31
  }
50
32
  }
51
- customElements.get("wj-chip") || window.customElements.define("wj-chip", Chip);
33
+ customElements.get("wj-chip") || window.customElements.define("wj-chip", w);
52
34
  export {
53
- Chip
35
+ w as Chip
54
36
  };
package/dist/wj-col.js CHANGED
@@ -1,46 +1,32 @@
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";
1
+ var f = Object.defineProperty;
2
+ var g = (e, t, o) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
+ var r = (e, t, o) => (g(e, typeof t != "symbol" ? t + "" : t, o), o);
4
+ import m from "./wj-element.js";
8
5
  import "./wj-store.js";
9
- const styles = "/*!\n* direction.scss\n*/\n/* Skeleton Variables */\n/*\n[ Col ]\n*/\n:host {\n display: block;\n flex-grow: 1;\n width: 100%;\n max-width: 100%;\n padding-right: calc(var(--wj-gutter-x) * 0.5);\n padding-left: calc(var(--wj-gutter-x) * 0.5);\n margin-top: var(--wj-gutter-y);\n}\n:host(.wj-col) {\n flex: 1 0 0%;\n}\n:host(.wj-row-cols-auto) > * {\n flex: 0 0 auto;\n width: auto;\n}\n:host(.wj-row-cols-1) > * {\n flex: 0 0 auto;\n width: 100%;\n}\n:host(.wj-row-cols-2) > * {\n flex: 0 0 auto;\n width: 50%;\n}\n:host(.wj-row-cols-3) > * {\n flex: 0 0 auto;\n width: 33.3333333333%;\n}\n:host(.wj-row-cols-4) > * {\n flex: 0 0 auto;\n width: 25%;\n}\n:host(.wj-row-cols-5) > * {\n flex: 0 0 auto;\n width: 20%;\n}\n:host(.wj-row-cols-6) > * {\n flex: 0 0 auto;\n width: 16.6666666667%;\n}\n@media (min-width: 576px) {\n :host(.wj-col-sm) {\n flex: 1 0 0%;\n }\n :host(.wj-row-cols-sm-auto) > * {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-row-cols-sm-1) > * {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-row-cols-sm-2) > * {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-row-cols-sm-3) > * {\n flex: 0 0 auto;\n width: 33.3333333333%;\n }\n :host(.wj-row-cols-sm-4) > * {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-row-cols-sm-5) > * {\n flex: 0 0 auto;\n width: 20%;\n }\n :host(.wj-row-cols-sm-6) > * {\n flex: 0 0 auto;\n width: 16.6666666667%;\n }\n}\n@media (min-width: 768px) {\n :host(.wj-col-md) {\n flex: 1 0 0%;\n }\n :host(.wj-row-cols-md-auto) > * {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-row-cols-md-1) > * {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-row-cols-md-2) > * {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-row-cols-md-3) > * {\n flex: 0 0 auto;\n width: 33.3333333333%;\n }\n :host(.wj-row-cols-md-4) > * {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-row-cols-md-5) > * {\n flex: 0 0 auto;\n width: 20%;\n }\n :host(.wj-row-cols-md-6) > * {\n flex: 0 0 auto;\n width: 16.6666666667%;\n }\n}\n@media (min-width: 992px) {\n :host(.wj-col-lg) {\n flex: 1 0 0%;\n }\n :host(.wj-row-cols-lg-auto) > * {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-row-cols-lg-1) > * {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-row-cols-lg-2) > * {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-row-cols-lg-3) > * {\n flex: 0 0 auto;\n width: 33.3333333333%;\n }\n :host(.wj-row-cols-lg-4) > * {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-row-cols-lg-5) > * {\n flex: 0 0 auto;\n width: 20%;\n }\n :host(.wj-row-cols-lg-6) > * {\n flex: 0 0 auto;\n width: 16.6666666667%;\n }\n}\n@media (min-width: 1200px) {\n :host(.wj-col-xl) {\n flex: 1 0 0%;\n }\n :host(.wj-row-cols-xl-auto) > * {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-row-cols-xl-1) > * {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-row-cols-xl-2) > * {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-row-cols-xl-3) > * {\n flex: 0 0 auto;\n width: 33.3333333333%;\n }\n :host(.wj-row-cols-xl-4) > * {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-row-cols-xl-5) > * {\n flex: 0 0 auto;\n width: 20%;\n }\n :host(.wj-row-cols-xl-6) > * {\n flex: 0 0 auto;\n width: 16.6666666667%;\n }\n}\n@media (min-width: 1400px) {\n :host(.wj-col-xxl) {\n flex: 1 0 0%;\n }\n :host(.wj-row-cols-xxl-auto) > * {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-row-cols-xxl-1) > * {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-row-cols-xxl-2) > * {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-row-cols-xxl-3) > * {\n flex: 0 0 auto;\n width: 33.3333333333%;\n }\n :host(.wj-row-cols-xxl-4) > * {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-row-cols-xxl-5) > * {\n flex: 0 0 auto;\n width: 20%;\n }\n :host(.wj-row-cols-xxl-6) > * {\n flex: 0 0 auto;\n width: 16.6666666667%;\n }\n}\n:host(.wj-col-auto) {\n flex: 0 0 auto;\n width: auto;\n}\n:host(.wj-col-1) {\n flex: 0 0 auto;\n width: 8.33333333%;\n}\n:host(.wj-col-2) {\n flex: 0 0 auto;\n width: 16.66666667%;\n}\n:host(.wj-col-3) {\n flex: 0 0 auto;\n width: 25%;\n}\n:host(.wj-col-4) {\n flex: 0 0 auto;\n width: 33.33333333%;\n}\n:host(.wj-col-5) {\n flex: 0 0 auto;\n width: 41.66666667%;\n}\n:host(.wj-col-6) {\n flex: 0 0 auto;\n width: 50%;\n}\n:host(.wj-col-7) {\n flex: 0 0 auto;\n width: 58.33333333%;\n}\n:host(.wj-col-8) {\n flex: 0 0 auto;\n width: 66.66666667%;\n}\n:host(.wj-col-9) {\n flex: 0 0 auto;\n width: 75%;\n}\n:host(.wj-col-10) {\n flex: 0 0 auto;\n width: 83.33333333%;\n}\n:host(.wj-col-11) {\n flex: 0 0 auto;\n width: 91.66666667%;\n}\n:host(.wj-col-12) {\n flex: 0 0 auto;\n width: 100%;\n}\n:host(.wj-offset-1) {\n margin-left: 8.33333333%;\n}\n:host(.wj-offset-2) {\n margin-left: 16.66666667%;\n}\n:host(.wj-offset-3) {\n margin-left: 25%;\n}\n:host(.wj-offset-4) {\n margin-left: 33.33333333%;\n}\n:host(.wj-offset-5) {\n margin-left: 41.66666667%;\n}\n:host(.wj-offset-6) {\n margin-left: 50%;\n}\n:host(.wj-offset-7) {\n margin-left: 58.33333333%;\n}\n:host(.wj-offset-8) {\n margin-left: 66.66666667%;\n}\n:host(.wj-offset-9) {\n margin-left: 75%;\n}\n:host(.wj-offset-10) {\n margin-left: 83.33333333%;\n}\n:host(.wj-offset-11) {\n margin-left: 91.66666667%;\n}\n.g-0,\n.gx-0 {\n --wj-gutter-x: 0;\n}\n.g-0,\n.gy-0 {\n --wj-gutter-y: 0;\n}\n.g-1,\n.gx-1 {\n --wj-gutter-x: 0.25rem;\n}\n.g-1,\n.gy-1 {\n --wj-gutter-y: 0.25rem;\n}\n.g-2,\n.gx-2 {\n --wj-gutter-x: 0.5rem;\n}\n.g-2,\n.gy-2 {\n --wj-gutter-y: 0.5rem;\n}\n.g-3,\n.gx-3 {\n --wj-gutter-x: 1rem;\n}\n.g-3,\n.gy-3 {\n --wj-gutter-y: 1rem;\n}\n.g-4,\n.gx-4 {\n --wj-gutter-x: 1.5rem;\n}\n.g-4,\n.gy-4 {\n --wj-gutter-y: 1.5rem;\n}\n.g-5,\n.gx-5 {\n --wj-gutter-x: 3rem;\n}\n.g-5,\n.gy-5 {\n --wj-gutter-y: 3rem;\n}\n@media (min-width: 576px) {\n :host(.wj-col-sm-auto) {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-col-sm-1) {\n flex: 0 0 auto;\n width: 8.33333333%;\n }\n :host(.wj-col-sm-2) {\n flex: 0 0 auto;\n width: 16.66666667%;\n }\n :host(.wj-col-sm-3) {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-col-sm-4) {\n flex: 0 0 auto;\n width: 33.33333333%;\n }\n :host(.wj-col-sm-5) {\n flex: 0 0 auto;\n width: 41.66666667%;\n }\n :host(.wj-col-sm-6) {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-col-sm-7) {\n flex: 0 0 auto;\n width: 58.33333333%;\n }\n :host(.wj-col-sm-8) {\n flex: 0 0 auto;\n width: 66.66666667%;\n }\n :host(.wj-col-sm-9) {\n flex: 0 0 auto;\n width: 75%;\n }\n :host(.wj-col-sm-10) {\n flex: 0 0 auto;\n width: 83.33333333%;\n }\n :host(.wj-col-sm-11) {\n flex: 0 0 auto;\n width: 91.66666667%;\n }\n :host(.wj-col-sm-12) {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-offset-sm-0) {\n margin-left: 0;\n }\n :host(.wj-offset-sm-1) {\n margin-left: 8.33333333%;\n }\n :host(.wj-offset-sm-2) {\n margin-left: 16.66666667%;\n }\n :host(.wj-offset-sm-3) {\n margin-left: 25%;\n }\n :host(.wj-offset-sm-4) {\n margin-left: 33.33333333%;\n }\n :host(.wj-offset-sm-5) {\n margin-left: 41.66666667%;\n }\n :host(.wj-offset-sm-6) {\n margin-left: 50%;\n }\n :host(.wj-offset-sm-7) {\n margin-left: 58.33333333%;\n }\n :host(.wj-offset-sm-8) {\n margin-left: 66.66666667%;\n }\n :host(.wj-offset-sm-9) {\n margin-left: 75%;\n }\n :host(.wj-offset-sm-10) {\n margin-left: 83.33333333%;\n }\n :host(.wj-offset-sm-11) {\n margin-left: 91.66666667%;\n }\n .g-sm-0,\n .gx-sm-0 {\n --wj-gutter-x: 0;\n }\n .g-sm-0,\n .gy-sm-0 {\n --wj-gutter-y: 0;\n }\n .g-sm-1,\n .gx-sm-1 {\n --wj-gutter-x: 0.25rem;\n }\n .g-sm-1,\n .gy-sm-1 {\n --wj-gutter-y: 0.25rem;\n }\n .g-sm-2,\n .gx-sm-2 {\n --wj-gutter-x: 0.5rem;\n }\n .g-sm-2,\n .gy-sm-2 {\n --wj-gutter-y: 0.5rem;\n }\n .g-sm-3,\n .gx-sm-3 {\n --wj-gutter-x: 1rem;\n }\n .g-sm-3,\n .gy-sm-3 {\n --wj-gutter-y: 1rem;\n }\n .g-sm-4,\n .gx-sm-4 {\n --wj-gutter-x: 1.5rem;\n }\n .g-sm-4,\n .gy-sm-4 {\n --wj-gutter-y: 1.5rem;\n }\n .g-sm-5,\n .gx-sm-5 {\n --wj-gutter-x: 3rem;\n }\n .g-sm-5,\n .gy-sm-5 {\n --wj-gutter-y: 3rem;\n }\n}\n@media (min-width: 768px) {\n :host(.wj-col-md-auto) {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-col-md-1) {\n flex: 0 0 auto;\n width: 8.33333333%;\n }\n :host(.wj-col-md-2) {\n flex: 0 0 auto;\n width: 16.66666667%;\n }\n :host(.wj-col-md-3) {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-col-md-4) {\n flex: 0 0 auto;\n width: 33.33333333%;\n }\n :host(.wj-col-md-5) {\n flex: 0 0 auto;\n width: 41.66666667%;\n }\n :host(.wj-col-md-6) {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-col-md-7) {\n flex: 0 0 auto;\n width: 58.33333333%;\n }\n :host(.wj-col-md-8) {\n flex: 0 0 auto;\n width: 66.66666667%;\n }\n :host(.wj-col-md-9) {\n flex: 0 0 auto;\n width: 75%;\n }\n :host(.wj-col-md-10) {\n flex: 0 0 auto;\n width: 83.33333333%;\n }\n :host(.wj-col-md-11) {\n flex: 0 0 auto;\n width: 91.66666667%;\n }\n :host(.wj-col-md-12) {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-offset-md-0) {\n margin-left: 0;\n }\n :host(.wj-offset-md-1) {\n margin-left: 8.33333333%;\n }\n :host(.wj-offset-md-2) {\n margin-left: 16.66666667%;\n }\n :host(.wj-offset-md-3) {\n margin-left: 25%;\n }\n :host(.wj-offset-md-4) {\n margin-left: 33.33333333%;\n }\n :host(.wj-offset-md-5) {\n margin-left: 41.66666667%;\n }\n :host(.wj-offset-md-6) {\n margin-left: 50%;\n }\n :host(.wj-offset-md-7) {\n margin-left: 58.33333333%;\n }\n :host(.wj-offset-md-8) {\n margin-left: 66.66666667%;\n }\n :host(.wj-offset-md-9) {\n margin-left: 75%;\n }\n :host(.wj-offset-md-10) {\n margin-left: 83.33333333%;\n }\n :host(.wj-offset-md-11) {\n margin-left: 91.66666667%;\n }\n .g-md-0,\n .gx-md-0 {\n --wj-gutter-x: 0;\n }\n .g-md-0,\n .gy-md-0 {\n --wj-gutter-y: 0;\n }\n .g-md-1,\n .gx-md-1 {\n --wj-gutter-x: 0.25rem;\n }\n .g-md-1,\n .gy-md-1 {\n --wj-gutter-y: 0.25rem;\n }\n .g-md-2,\n .gx-md-2 {\n --wj-gutter-x: 0.5rem;\n }\n .g-md-2,\n .gy-md-2 {\n --wj-gutter-y: 0.5rem;\n }\n .g-md-3,\n .gx-md-3 {\n --wj-gutter-x: 1rem;\n }\n .g-md-3,\n .gy-md-3 {\n --wj-gutter-y: 1rem;\n }\n .g-md-4,\n .gx-md-4 {\n --wj-gutter-x: 1.5rem;\n }\n .g-md-4,\n .gy-md-4 {\n --wj-gutter-y: 1.5rem;\n }\n .g-md-5,\n .gx-md-5 {\n --wj-gutter-x: 3rem;\n }\n .g-md-5,\n .gy-md-5 {\n --wj-gutter-y: 3rem;\n }\n}\n@media (min-width: 992px) {\n :host(.wj-col-lg-auto) {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-col-lg-1) {\n flex: 0 0 auto;\n width: 8.33333333%;\n }\n :host(.wj-col-lg-2) {\n flex: 0 0 auto;\n width: 16.66666667%;\n }\n :host(.wj-col-lg-3) {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-col-lg-4) {\n flex: 0 0 auto;\n width: 33.33333333%;\n }\n :host(.wj-col-lg-5) {\n flex: 0 0 auto;\n width: 41.66666667%;\n }\n :host(.wj-col-lg-6) {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-col-lg-7) {\n flex: 0 0 auto;\n width: 58.33333333%;\n }\n :host(.wj-col-lg-8) {\n flex: 0 0 auto;\n width: 66.66666667%;\n }\n :host(.wj-col-lg-9) {\n flex: 0 0 auto;\n width: 75%;\n }\n :host(.wj-col-lg-10) {\n flex: 0 0 auto;\n width: 83.33333333%;\n }\n :host(.wj-col-lg-11) {\n flex: 0 0 auto;\n width: 91.66666667%;\n }\n :host(.wj-col-lg-12) {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-offset-lg-0) {\n margin-left: 0;\n }\n :host(.wj-offset-lg-1) {\n margin-left: 8.33333333%;\n }\n :host(.wj-offset-lg-2) {\n margin-left: 16.66666667%;\n }\n :host(.wj-offset-lg-3) {\n margin-left: 25%;\n }\n :host(.wj-offset-lg-4) {\n margin-left: 33.33333333%;\n }\n :host(.wj-offset-lg-5) {\n margin-left: 41.66666667%;\n }\n :host(.wj-offset-lg-6) {\n margin-left: 50%;\n }\n :host(.wj-offset-lg-7) {\n margin-left: 58.33333333%;\n }\n :host(.wj-offset-lg-8) {\n margin-left: 66.66666667%;\n }\n :host(.wj-offset-lg-9) {\n margin-left: 75%;\n }\n :host(.wj-offset-lg-10) {\n margin-left: 83.33333333%;\n }\n :host(.wj-offset-lg-11) {\n margin-left: 91.66666667%;\n }\n .g-lg-0,\n .gx-lg-0 {\n --wj-gutter-x: 0;\n }\n .g-lg-0,\n .gy-lg-0 {\n --wj-gutter-y: 0;\n }\n .g-lg-1,\n .gx-lg-1 {\n --wj-gutter-x: 0.25rem;\n }\n .g-lg-1,\n .gy-lg-1 {\n --wj-gutter-y: 0.25rem;\n }\n .g-lg-2,\n .gx-lg-2 {\n --wj-gutter-x: 0.5rem;\n }\n .g-lg-2,\n .gy-lg-2 {\n --wj-gutter-y: 0.5rem;\n }\n .g-lg-3,\n .gx-lg-3 {\n --wj-gutter-x: 1rem;\n }\n .g-lg-3,\n .gy-lg-3 {\n --wj-gutter-y: 1rem;\n }\n .g-lg-4,\n .gx-lg-4 {\n --wj-gutter-x: 1.5rem;\n }\n .g-lg-4,\n .gy-lg-4 {\n --wj-gutter-y: 1.5rem;\n }\n .g-lg-5,\n .gx-lg-5 {\n --wj-gutter-x: 3rem;\n }\n .g-lg-5,\n .gy-lg-5 {\n --wj-gutter-y: 3rem;\n }\n}\n@media (min-width: 1200px) {\n :host(.wj-col-xl-auto) {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-col-xl-1) {\n flex: 0 0 auto;\n width: 8.33333333%;\n }\n :host(.wj-col-xl-2) {\n flex: 0 0 auto;\n width: 16.66666667%;\n }\n :host(.wj-col-xl-3) {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-col-xl-4) {\n flex: 0 0 auto;\n width: 33.33333333%;\n }\n :host(.wj-col-xl-5) {\n flex: 0 0 auto;\n width: 41.66666667%;\n }\n :host(.wj-col-xl-6) {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-col-xl-7) {\n flex: 0 0 auto;\n width: 58.33333333%;\n }\n :host(.wj-col-xl-8) {\n flex: 0 0 auto;\n width: 66.66666667%;\n }\n :host(.wj-col-xl-9) {\n flex: 0 0 auto;\n width: 75%;\n }\n :host(.wj-col-xl-10) {\n flex: 0 0 auto;\n width: 83.33333333%;\n }\n :host(.wj-col-xl-11) {\n flex: 0 0 auto;\n width: 91.66666667%;\n }\n :host(.wj-col-xl-12) {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-offset-xl-0) {\n margin-left: 0;\n }\n :host(.wj-offset-xl-1) {\n margin-left: 8.33333333%;\n }\n :host(.wj-offset-xl-2) {\n margin-left: 16.66666667%;\n }\n :host(.wj-offset-xl-3) {\n margin-left: 25%;\n }\n :host(.wj-offset-xl-4) {\n margin-left: 33.33333333%;\n }\n :host(.wj-offset-xl-5) {\n margin-left: 41.66666667%;\n }\n :host(.wj-offset-xl-6) {\n margin-left: 50%;\n }\n :host(.wj-offset-xl-7) {\n margin-left: 58.33333333%;\n }\n :host(.wj-offset-xl-8) {\n margin-left: 66.66666667%;\n }\n :host(.wj-offset-xl-9) {\n margin-left: 75%;\n }\n :host(.wj-offset-xl-10) {\n margin-left: 83.33333333%;\n }\n :host(.wj-offset-xl-11) {\n margin-left: 91.66666667%;\n }\n .g-xl-0,\n .gx-xl-0 {\n --wj-gutter-x: 0;\n }\n .g-xl-0,\n .gy-xl-0 {\n --wj-gutter-y: 0;\n }\n .g-xl-1,\n .gx-xl-1 {\n --wj-gutter-x: 0.25rem;\n }\n .g-xl-1,\n .gy-xl-1 {\n --wj-gutter-y: 0.25rem;\n }\n .g-xl-2,\n .gx-xl-2 {\n --wj-gutter-x: 0.5rem;\n }\n .g-xl-2,\n .gy-xl-2 {\n --wj-gutter-y: 0.5rem;\n }\n .g-xl-3,\n .gx-xl-3 {\n --wj-gutter-x: 1rem;\n }\n .g-xl-3,\n .gy-xl-3 {\n --wj-gutter-y: 1rem;\n }\n .g-xl-4,\n .gx-xl-4 {\n --wj-gutter-x: 1.5rem;\n }\n .g-xl-4,\n .gy-xl-4 {\n --wj-gutter-y: 1.5rem;\n }\n .g-xl-5,\n .gx-xl-5 {\n --wj-gutter-x: 3rem;\n }\n .g-xl-5,\n .gy-xl-5 {\n --wj-gutter-y: 3rem;\n }\n}\n@media (min-width: 1400px) {\n :host(.wj-col-xxl-auto) {\n flex: 0 0 auto;\n width: auto;\n }\n :host(.wj-col-xxl-1) {\n flex: 0 0 auto;\n width: 8.33333333%;\n }\n :host(.wj-col-xxl-2) {\n flex: 0 0 auto;\n width: 16.66666667%;\n }\n :host(.wj-col-xxl-3) {\n flex: 0 0 auto;\n width: 25%;\n }\n :host(.wj-col-xxl-4) {\n flex: 0 0 auto;\n width: 33.33333333%;\n }\n :host(.wj-col-xxl-5) {\n flex: 0 0 auto;\n width: 41.66666667%;\n }\n :host(.wj-col-xxl-6) {\n flex: 0 0 auto;\n width: 50%;\n }\n :host(.wj-col-xxl-7) {\n flex: 0 0 auto;\n width: 58.33333333%;\n }\n :host(.wj-col-xxl-8) {\n flex: 0 0 auto;\n width: 66.66666667%;\n }\n :host(.wj-col-xxl-9) {\n flex: 0 0 auto;\n width: 75%;\n }\n :host(.wj-col-xxl-10) {\n flex: 0 0 auto;\n width: 83.33333333%;\n }\n :host(.wj-col-xxl-11) {\n flex: 0 0 auto;\n width: 91.66666667%;\n }\n :host(.wj-col-xxl-12) {\n flex: 0 0 auto;\n width: 100%;\n }\n :host(.wj-offset-xxl-0) {\n margin-left: 0;\n }\n :host(.wj-offset-xxl-1) {\n margin-left: 8.33333333%;\n }\n :host(.wj-offset-xxl-2) {\n margin-left: 16.66666667%;\n }\n :host(.wj-offset-xxl-3) {\n margin-left: 25%;\n }\n :host(.wj-offset-xxl-4) {\n margin-left: 33.33333333%;\n }\n :host(.wj-offset-xxl-5) {\n margin-left: 41.66666667%;\n }\n :host(.wj-offset-xxl-6) {\n margin-left: 50%;\n }\n :host(.wj-offset-xxl-7) {\n margin-left: 58.33333333%;\n }\n :host(.wj-offset-xxl-8) {\n margin-left: 66.66666667%;\n }\n :host(.wj-offset-xxl-9) {\n margin-left: 75%;\n }\n :host(.wj-offset-xxl-10) {\n margin-left: 83.33333333%;\n }\n :host(.wj-offset-xxl-11) {\n margin-left: 91.66666667%;\n }\n .g-xxl-0,\n .gx-xxl-0 {\n --wj-gutter-x: 0;\n }\n .g-xxl-0,\n .gy-xxl-0 {\n --wj-gutter-y: 0;\n }\n .g-xxl-1,\n .gx-xxl-1 {\n --wj-gutter-x: 0.25rem;\n }\n .g-xxl-1,\n .gy-xxl-1 {\n --wj-gutter-y: 0.25rem;\n }\n .g-xxl-2,\n .gx-xxl-2 {\n --wj-gutter-x: 0.5rem;\n }\n .g-xxl-2,\n .gy-xxl-2 {\n --wj-gutter-y: 0.5rem;\n }\n .g-xxl-3,\n .gx-xxl-3 {\n --wj-gutter-x: 1rem;\n }\n .g-xxl-3,\n .gy-xxl-3 {\n --wj-gutter-y: 1rem;\n }\n .g-xxl-4,\n .gx-xxl-4 {\n --wj-gutter-x: 1.5rem;\n }\n .g-xxl-4,\n .gy-xxl-4 {\n --wj-gutter-y: 1.5rem;\n }\n .g-xxl-5,\n .gx-xxl-5 {\n --wj-gutter-x: 3rem;\n }\n .g-xxl-5,\n .gy-xxl-5 {\n --wj-gutter-y: 3rem;\n }\n}\n:host(.order-first) {\n order: -1 !important;\n}\n:host(.order-0) {\n order: 0 !important;\n}\n:host(.order-1) {\n order: 1 !important;\n}\n:host(.order-2) {\n order: 2 !important;\n}\n:host(.order-3) {\n order: 3 !important;\n}\n:host(.order-4) {\n order: 4 !important;\n}\n:host(.order-5) {\n order: 5 !important;\n}\n:host(.order-last) {\n order: 6 !important;\n}\n:host(.order-sm-first) {\n order: -1 !important;\n}\n:host(.order-sm-0) {\n order: 0 !important;\n}\n:host(.order-sm-1) {\n order: 1 !important;\n}\n:host(.order-sm-2) {\n order: 2 !important;\n}\n:host(.order-sm-3) {\n order: 3 !important;\n}\n:host(.order-sm-4) {\n order: 4 !important;\n}\n:host(.order-sm-5) {\n order: 5 !important;\n}\n:host(.order-sm-last) {\n order: 6 !important;\n}\n:host(.order-md-first) {\n order: -1 !important;\n}\n:host(.order-md-0) {\n order: 0 !important;\n}\n:host(.order-md-1) {\n order: 1 !important;\n}\n:host(.order-md-2) {\n order: 2 !important;\n}\n:host(.order-md-3) {\n order: 3 !important;\n}\n:host(.order-md-4) {\n order: 4 !important;\n}\n:host(.order-md-5) {\n order: 5 !important;\n}\n:host(.order-md-last) {\n order: 6 !important;\n}\n:host(.order-lg-first) {\n order: -1 !important;\n}\n:host(.order-lg-0) {\n order: 0 !important;\n}\n:host(.order-lg-1) {\n order: 1 !important;\n}\n:host(.order-lg-2) {\n order: 2 !important;\n}\n:host(.order-lg-3) {\n order: 3 !important;\n}\n:host(.order-lg-4) {\n order: 4 !important;\n}\n:host(.order-lg-5) {\n order: 5 !important;\n}\n:host(.order-lg-last) {\n order: 6 !important;\n}\n:host(.order-xl-first) {\n order: -1 !important;\n}\n:host(.order-xl-0) {\n order: 0 !important;\n}\n:host(.order-xl-1) {\n order: 1 !important;\n}\n:host(.order-xl-2) {\n order: 2 !important;\n}\n:host(.order-xl-3) {\n order: 3 !important;\n}\n:host(.order-xl-4) {\n order: 4 !important;\n}\n:host(.order-xl-5) {\n order: 5 !important;\n}\n:host(.order-xl-last) {\n order: 6 !important;\n}\n:host(.order-xxl-first) {\n order: -1 !important;\n}\n:host(.order-xxl-0) {\n order: 0 !important;\n}\n:host(.order-xxl-1) {\n order: 1 !important;\n}\n:host(.order-xxl-2) {\n order: 2 !important;\n}\n:host(.order-xxl-3) {\n order: 3 !important;\n}\n:host(.order-xxl-4) {\n order: 4 !important;\n}\n:host(.order-xxl-5) {\n order: 5 !important;\n}\n:host(.order-xxl-last) {\n order: 6 !important;\n}";
10
- console.log("STYLES COL:", styles);
11
- class Col extends WJElement {
6
+ const s = `/*!
7
+ * direction.scss
8
+ */:host{display:block;flex-grow:1;width:100%;max-width:100%;padding-right:calc(var(--wj-gutter-x) * .5);padding-left:calc(var(--wj-gutter-x) * .5);margin-top:var(--wj-gutter-y)}:host(.wj-col){flex:1 0 0%}:host(.wj-row-cols-auto)>*{flex:0 0 auto;width:auto}:host(.wj-row-cols-1)>*{flex:0 0 auto;width:100%}:host(.wj-row-cols-2)>*{flex:0 0 auto;width:50%}:host(.wj-row-cols-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wj-row-cols-4)>*{flex:0 0 auto;width:25%}:host(.wj-row-cols-5)>*{flex:0 0 auto;width:20%}:host(.wj-row-cols-6)>*{flex:0 0 auto;width:16.6666666667%}@media (min-width: 576px){:host(.wj-col-sm){flex:1 0 0%}:host(.wj-row-cols-sm-auto)>*{flex:0 0 auto;width:auto}:host(.wj-row-cols-sm-1)>*{flex:0 0 auto;width:100%}:host(.wj-row-cols-sm-2)>*{flex:0 0 auto;width:50%}:host(.wj-row-cols-sm-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wj-row-cols-sm-4)>*{flex:0 0 auto;width:25%}:host(.wj-row-cols-sm-5)>*{flex:0 0 auto;width:20%}:host(.wj-row-cols-sm-6)>*{flex:0 0 auto;width:16.6666666667%}}@media (min-width: 768px){:host(.wj-col-md){flex:1 0 0%}:host(.wj-row-cols-md-auto)>*{flex:0 0 auto;width:auto}:host(.wj-row-cols-md-1)>*{flex:0 0 auto;width:100%}:host(.wj-row-cols-md-2)>*{flex:0 0 auto;width:50%}:host(.wj-row-cols-md-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wj-row-cols-md-4)>*{flex:0 0 auto;width:25%}:host(.wj-row-cols-md-5)>*{flex:0 0 auto;width:20%}:host(.wj-row-cols-md-6)>*{flex:0 0 auto;width:16.6666666667%}}@media (min-width: 992px){:host(.wj-col-lg){flex:1 0 0%}:host(.wj-row-cols-lg-auto)>*{flex:0 0 auto;width:auto}:host(.wj-row-cols-lg-1)>*{flex:0 0 auto;width:100%}:host(.wj-row-cols-lg-2)>*{flex:0 0 auto;width:50%}:host(.wj-row-cols-lg-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wj-row-cols-lg-4)>*{flex:0 0 auto;width:25%}:host(.wj-row-cols-lg-5)>*{flex:0 0 auto;width:20%}:host(.wj-row-cols-lg-6)>*{flex:0 0 auto;width:16.6666666667%}}@media (min-width: 1200px){:host(.wj-col-xl){flex:1 0 0%}:host(.wj-row-cols-xl-auto)>*{flex:0 0 auto;width:auto}:host(.wj-row-cols-xl-1)>*{flex:0 0 auto;width:100%}:host(.wj-row-cols-xl-2)>*{flex:0 0 auto;width:50%}:host(.wj-row-cols-xl-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wj-row-cols-xl-4)>*{flex:0 0 auto;width:25%}:host(.wj-row-cols-xl-5)>*{flex:0 0 auto;width:20%}:host(.wj-row-cols-xl-6)>*{flex:0 0 auto;width:16.6666666667%}}@media (min-width: 1400px){:host(.wj-col-xxl){flex:1 0 0%}:host(.wj-row-cols-xxl-auto)>*{flex:0 0 auto;width:auto}:host(.wj-row-cols-xxl-1)>*{flex:0 0 auto;width:100%}:host(.wj-row-cols-xxl-2)>*{flex:0 0 auto;width:50%}:host(.wj-row-cols-xxl-3)>*{flex:0 0 auto;width:33.3333333333%}:host(.wj-row-cols-xxl-4)>*{flex:0 0 auto;width:25%}:host(.wj-row-cols-xxl-5)>*{flex:0 0 auto;width:20%}:host(.wj-row-cols-xxl-6)>*{flex:0 0 auto;width:16.6666666667%}}:host(.wj-col-auto){flex:0 0 auto;width:auto}:host(.wj-col-1){flex:0 0 auto;width:8.33333333%}:host(.wj-col-2){flex:0 0 auto;width:16.66666667%}:host(.wj-col-3){flex:0 0 auto;width:25%}:host(.wj-col-4){flex:0 0 auto;width:33.33333333%}:host(.wj-col-5){flex:0 0 auto;width:41.66666667%}:host(.wj-col-6){flex:0 0 auto;width:50%}:host(.wj-col-7){flex:0 0 auto;width:58.33333333%}:host(.wj-col-8){flex:0 0 auto;width:66.66666667%}:host(.wj-col-9){flex:0 0 auto;width:75%}:host(.wj-col-10){flex:0 0 auto;width:83.33333333%}:host(.wj-col-11){flex:0 0 auto;width:91.66666667%}:host(.wj-col-12){flex:0 0 auto;width:100%}:host(.wj-offset-1){margin-left:8.33333333%}:host(.wj-offset-2){margin-left:16.66666667%}:host(.wj-offset-3){margin-left:25%}:host(.wj-offset-4){margin-left:33.33333333%}:host(.wj-offset-5){margin-left:41.66666667%}:host(.wj-offset-6){margin-left:50%}:host(.wj-offset-7){margin-left:58.33333333%}:host(.wj-offset-8){margin-left:66.66666667%}:host(.wj-offset-9){margin-left:75%}:host(.wj-offset-10){margin-left:83.33333333%}:host(.wj-offset-11){margin-left:91.66666667%}.g-0,.gx-0{--wj-gutter-x: 0}.g-0,.gy-0{--wj-gutter-y: 0}.g-1,.gx-1{--wj-gutter-x: .25rem}.g-1,.gy-1{--wj-gutter-y: .25rem}.g-2,.gx-2{--wj-gutter-x: .5rem}.g-2,.gy-2{--wj-gutter-y: .5rem}.g-3,.gx-3{--wj-gutter-x: 1rem}.g-3,.gy-3{--wj-gutter-y: 1rem}.g-4,.gx-4{--wj-gutter-x: 1.5rem}.g-4,.gy-4{--wj-gutter-y: 1.5rem}.g-5,.gx-5{--wj-gutter-x: 3rem}.g-5,.gy-5{--wj-gutter-y: 3rem}@media (min-width: 576px){:host(.wj-col-sm-auto){flex:0 0 auto;width:auto}:host(.wj-col-sm-1){flex:0 0 auto;width:8.33333333%}:host(.wj-col-sm-2){flex:0 0 auto;width:16.66666667%}:host(.wj-col-sm-3){flex:0 0 auto;width:25%}:host(.wj-col-sm-4){flex:0 0 auto;width:33.33333333%}:host(.wj-col-sm-5){flex:0 0 auto;width:41.66666667%}:host(.wj-col-sm-6){flex:0 0 auto;width:50%}:host(.wj-col-sm-7){flex:0 0 auto;width:58.33333333%}:host(.wj-col-sm-8){flex:0 0 auto;width:66.66666667%}:host(.wj-col-sm-9){flex:0 0 auto;width:75%}:host(.wj-col-sm-10){flex:0 0 auto;width:83.33333333%}:host(.wj-col-sm-11){flex:0 0 auto;width:91.66666667%}:host(.wj-col-sm-12){flex:0 0 auto;width:100%}:host(.wj-offset-sm-0){margin-left:0}:host(.wj-offset-sm-1){margin-left:8.33333333%}:host(.wj-offset-sm-2){margin-left:16.66666667%}:host(.wj-offset-sm-3){margin-left:25%}:host(.wj-offset-sm-4){margin-left:33.33333333%}:host(.wj-offset-sm-5){margin-left:41.66666667%}:host(.wj-offset-sm-6){margin-left:50%}:host(.wj-offset-sm-7){margin-left:58.33333333%}:host(.wj-offset-sm-8){margin-left:66.66666667%}:host(.wj-offset-sm-9){margin-left:75%}:host(.wj-offset-sm-10){margin-left:83.33333333%}:host(.wj-offset-sm-11){margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--wj-gutter-x: 0}.g-sm-0,.gy-sm-0{--wj-gutter-y: 0}.g-sm-1,.gx-sm-1{--wj-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--wj-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--wj-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--wj-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--wj-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--wj-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--wj-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--wj-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--wj-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--wj-gutter-y: 3rem}}@media (min-width: 768px){:host(.wj-col-md-auto){flex:0 0 auto;width:auto}:host(.wj-col-md-1){flex:0 0 auto;width:8.33333333%}:host(.wj-col-md-2){flex:0 0 auto;width:16.66666667%}:host(.wj-col-md-3){flex:0 0 auto;width:25%}:host(.wj-col-md-4){flex:0 0 auto;width:33.33333333%}:host(.wj-col-md-5){flex:0 0 auto;width:41.66666667%}:host(.wj-col-md-6){flex:0 0 auto;width:50%}:host(.wj-col-md-7){flex:0 0 auto;width:58.33333333%}:host(.wj-col-md-8){flex:0 0 auto;width:66.66666667%}:host(.wj-col-md-9){flex:0 0 auto;width:75%}:host(.wj-col-md-10){flex:0 0 auto;width:83.33333333%}:host(.wj-col-md-11){flex:0 0 auto;width:91.66666667%}:host(.wj-col-md-12){flex:0 0 auto;width:100%}:host(.wj-offset-md-0){margin-left:0}:host(.wj-offset-md-1){margin-left:8.33333333%}:host(.wj-offset-md-2){margin-left:16.66666667%}:host(.wj-offset-md-3){margin-left:25%}:host(.wj-offset-md-4){margin-left:33.33333333%}:host(.wj-offset-md-5){margin-left:41.66666667%}:host(.wj-offset-md-6){margin-left:50%}:host(.wj-offset-md-7){margin-left:58.33333333%}:host(.wj-offset-md-8){margin-left:66.66666667%}:host(.wj-offset-md-9){margin-left:75%}:host(.wj-offset-md-10){margin-left:83.33333333%}:host(.wj-offset-md-11){margin-left:91.66666667%}.g-md-0,.gx-md-0{--wj-gutter-x: 0}.g-md-0,.gy-md-0{--wj-gutter-y: 0}.g-md-1,.gx-md-1{--wj-gutter-x: .25rem}.g-md-1,.gy-md-1{--wj-gutter-y: .25rem}.g-md-2,.gx-md-2{--wj-gutter-x: .5rem}.g-md-2,.gy-md-2{--wj-gutter-y: .5rem}.g-md-3,.gx-md-3{--wj-gutter-x: 1rem}.g-md-3,.gy-md-3{--wj-gutter-y: 1rem}.g-md-4,.gx-md-4{--wj-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--wj-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--wj-gutter-x: 3rem}.g-md-5,.gy-md-5{--wj-gutter-y: 3rem}}@media (min-width: 992px){:host(.wj-col-lg-auto){flex:0 0 auto;width:auto}:host(.wj-col-lg-1){flex:0 0 auto;width:8.33333333%}:host(.wj-col-lg-2){flex:0 0 auto;width:16.66666667%}:host(.wj-col-lg-3){flex:0 0 auto;width:25%}:host(.wj-col-lg-4){flex:0 0 auto;width:33.33333333%}:host(.wj-col-lg-5){flex:0 0 auto;width:41.66666667%}:host(.wj-col-lg-6){flex:0 0 auto;width:50%}:host(.wj-col-lg-7){flex:0 0 auto;width:58.33333333%}:host(.wj-col-lg-8){flex:0 0 auto;width:66.66666667%}:host(.wj-col-lg-9){flex:0 0 auto;width:75%}:host(.wj-col-lg-10){flex:0 0 auto;width:83.33333333%}:host(.wj-col-lg-11){flex:0 0 auto;width:91.66666667%}:host(.wj-col-lg-12){flex:0 0 auto;width:100%}:host(.wj-offset-lg-0){margin-left:0}:host(.wj-offset-lg-1){margin-left:8.33333333%}:host(.wj-offset-lg-2){margin-left:16.66666667%}:host(.wj-offset-lg-3){margin-left:25%}:host(.wj-offset-lg-4){margin-left:33.33333333%}:host(.wj-offset-lg-5){margin-left:41.66666667%}:host(.wj-offset-lg-6){margin-left:50%}:host(.wj-offset-lg-7){margin-left:58.33333333%}:host(.wj-offset-lg-8){margin-left:66.66666667%}:host(.wj-offset-lg-9){margin-left:75%}:host(.wj-offset-lg-10){margin-left:83.33333333%}:host(.wj-offset-lg-11){margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--wj-gutter-x: 0}.g-lg-0,.gy-lg-0{--wj-gutter-y: 0}.g-lg-1,.gx-lg-1{--wj-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--wj-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--wj-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--wj-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--wj-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--wj-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--wj-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--wj-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--wj-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--wj-gutter-y: 3rem}}@media (min-width: 1200px){:host(.wj-col-xl-auto){flex:0 0 auto;width:auto}:host(.wj-col-xl-1){flex:0 0 auto;width:8.33333333%}:host(.wj-col-xl-2){flex:0 0 auto;width:16.66666667%}:host(.wj-col-xl-3){flex:0 0 auto;width:25%}:host(.wj-col-xl-4){flex:0 0 auto;width:33.33333333%}:host(.wj-col-xl-5){flex:0 0 auto;width:41.66666667%}:host(.wj-col-xl-6){flex:0 0 auto;width:50%}:host(.wj-col-xl-7){flex:0 0 auto;width:58.33333333%}:host(.wj-col-xl-8){flex:0 0 auto;width:66.66666667%}:host(.wj-col-xl-9){flex:0 0 auto;width:75%}:host(.wj-col-xl-10){flex:0 0 auto;width:83.33333333%}:host(.wj-col-xl-11){flex:0 0 auto;width:91.66666667%}:host(.wj-col-xl-12){flex:0 0 auto;width:100%}:host(.wj-offset-xl-0){margin-left:0}:host(.wj-offset-xl-1){margin-left:8.33333333%}:host(.wj-offset-xl-2){margin-left:16.66666667%}:host(.wj-offset-xl-3){margin-left:25%}:host(.wj-offset-xl-4){margin-left:33.33333333%}:host(.wj-offset-xl-5){margin-left:41.66666667%}:host(.wj-offset-xl-6){margin-left:50%}:host(.wj-offset-xl-7){margin-left:58.33333333%}:host(.wj-offset-xl-8){margin-left:66.66666667%}:host(.wj-offset-xl-9){margin-left:75%}:host(.wj-offset-xl-10){margin-left:83.33333333%}:host(.wj-offset-xl-11){margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--wj-gutter-x: 0}.g-xl-0,.gy-xl-0{--wj-gutter-y: 0}.g-xl-1,.gx-xl-1{--wj-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--wj-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--wj-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--wj-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--wj-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--wj-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--wj-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--wj-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--wj-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--wj-gutter-y: 3rem}}@media (min-width: 1400px){:host(.wj-col-xxl-auto){flex:0 0 auto;width:auto}:host(.wj-col-xxl-1){flex:0 0 auto;width:8.33333333%}:host(.wj-col-xxl-2){flex:0 0 auto;width:16.66666667%}:host(.wj-col-xxl-3){flex:0 0 auto;width:25%}:host(.wj-col-xxl-4){flex:0 0 auto;width:33.33333333%}:host(.wj-col-xxl-5){flex:0 0 auto;width:41.66666667%}:host(.wj-col-xxl-6){flex:0 0 auto;width:50%}:host(.wj-col-xxl-7){flex:0 0 auto;width:58.33333333%}:host(.wj-col-xxl-8){flex:0 0 auto;width:66.66666667%}:host(.wj-col-xxl-9){flex:0 0 auto;width:75%}:host(.wj-col-xxl-10){flex:0 0 auto;width:83.33333333%}:host(.wj-col-xxl-11){flex:0 0 auto;width:91.66666667%}:host(.wj-col-xxl-12){flex:0 0 auto;width:100%}:host(.wj-offset-xxl-0){margin-left:0}:host(.wj-offset-xxl-1){margin-left:8.33333333%}:host(.wj-offset-xxl-2){margin-left:16.66666667%}:host(.wj-offset-xxl-3){margin-left:25%}:host(.wj-offset-xxl-4){margin-left:33.33333333%}:host(.wj-offset-xxl-5){margin-left:41.66666667%}:host(.wj-offset-xxl-6){margin-left:50%}:host(.wj-offset-xxl-7){margin-left:58.33333333%}:host(.wj-offset-xxl-8){margin-left:66.66666667%}:host(.wj-offset-xxl-9){margin-left:75%}:host(.wj-offset-xxl-10){margin-left:83.33333333%}:host(.wj-offset-xxl-11){margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--wj-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--wj-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--wj-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--wj-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--wj-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--wj-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--wj-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--wj-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--wj-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--wj-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--wj-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--wj-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}
9
+ `;
10
+ console.log("STYLES COL:", s);
11
+ class d extends m {
12
12
  constructor() {
13
13
  super();
14
- __publicField(this, "className", "Col");
14
+ r(this, "className", "Col");
15
15
  }
16
16
  static get cssStyleSheet() {
17
- return styles;
17
+ return s;
18
18
  }
19
19
  setupAttributes() {
20
20
  this.isShadowRoot = "open";
21
21
  }
22
- beforeDraw(context, store, params) {
22
+ beforeDraw(o, w, x) {
23
23
  }
24
- draw(context, store, params) {
25
- let fragment = document.createDocumentFragment();
26
- let element = document.createElement("slot");
27
- if (this.order)
28
- this.classList.add("order-" + this.order);
29
- if (this.size)
30
- this.classList.add("wj-col-" + this.size);
31
- if (this.sizeSm)
32
- this.classList.add("wj-col-sm-" + this.sizeSm);
33
- if (this.sizeMd)
34
- this.classList.add("wj-col-md-" + this.sizeMd);
35
- if (this.offset)
36
- this.classList.add("wj-offset-" + this.offset);
37
- if (this.offsetSm)
38
- this.classList.add("wj-offset-sm-" + this.offsetSm);
39
- fragment.appendChild(element);
40
- return fragment;
24
+ draw(o, w, x) {
25
+ let l = document.createDocumentFragment(), h = document.createElement("slot");
26
+ return this.order && this.classList.add("order-" + this.order), this.size && this.classList.add("wj-col-" + this.size), this.sizeSm && this.classList.add("wj-col-sm-" + this.sizeSm), this.sizeMd && this.classList.add("wj-col-md-" + this.sizeMd), this.offset && this.classList.add("wj-offset-" + this.offset), this.offsetSm && this.classList.add("wj-offset-sm-" + this.offsetSm), l.appendChild(h), l;
41
27
  }
42
28
  }
43
- customElements.get("wj-col") || window.customElements.define("wj-col", Col);
29
+ customElements.get("wj-col") || window.customElements.define("wj-col", d);
44
30
  export {
45
- Col
31
+ d as Col
46
32
  };