wj-elements 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/router-links-e0087f84.js +146 -0
- package/dist/style.css +2 -2365
- package/dist/wj-aside.js +18 -22
- package/dist/wj-avatar.js +32 -49
- package/dist/wj-badge.js +18 -22
- package/dist/wj-breadcrumb.js +53 -103
- package/dist/wj-breadcrumbs.js +21 -36
- package/dist/wj-button-group.js +24 -36
- package/dist/wj-button.js +37 -80
- package/dist/wj-card-content.js +16 -18
- package/dist/wj-card-controls.js +16 -18
- package/dist/wj-card-header.js +16 -20
- package/dist/wj-card-subtitle.js +17 -19
- package/dist/wj-card-title.js +16 -18
- package/dist/wj-card.js +16 -20
- package/dist/wj-checkbox.js +24 -46
- package/dist/wj-chip.js +21 -39
- package/dist/wj-col.js +18 -32
- package/dist/wj-color-picker.js +503 -868
- package/dist/wj-container.js +18 -20
- package/dist/wj-copy-button.js +66 -112
- package/dist/wj-dialog.js +43 -67
- package/dist/wj-divider.js +16 -20
- package/dist/wj-dropdown.js +22 -31
- package/dist/wj-element.js +241 -416
- package/dist/wj-footer.js +16 -18
- package/dist/wj-form.js +16 -18
- package/dist/wj-grid.js +17 -21
- package/dist/wj-header.js +18 -22
- package/dist/wj-icon-picker.js +66 -107
- package/dist/wj-icon.js +67 -142
- package/dist/wj-img-comparer.js +43 -72
- package/dist/wj-img.js +21 -31
- package/dist/wj-infinite-scroll.js +49 -84
- package/dist/wj-input.js +67 -146
- package/dist/wj-item.js +19 -34
- package/dist/wj-label.js +19 -21
- package/dist/wj-list.js +17 -20
- package/dist/wj-main.js +16 -18
- package/dist/wj-master.js +331 -462
- package/dist/wj-menu-button.js +18 -21
- package/dist/wj-menu-item.js +67 -144
- package/dist/wj-menu-label.js +17 -21
- package/dist/wj-menu.js +20 -24
- package/dist/wj-popup.js +714 -1140
- package/dist/wj-progress-bar.js +42 -100
- package/dist/wj-radio-group.js +27 -38
- package/dist/wj-radio.js +24 -46
- package/dist/wj-route.js +8 -11
- package/dist/wj-router-link.js +19 -22
- package/dist/wj-router-outlet.js +71 -135
- package/dist/wj-routerx.js +641 -1121
- package/dist/wj-row.js +20 -22
- package/dist/wj-slider.js +55 -97
- package/dist/wj-split-view.js +45 -81
- package/dist/wj-store.js +110 -195
- package/dist/wj-textarea.js +39 -86
- package/dist/wj-thumbnail.js +17 -19
- package/dist/wj-toast.js +34 -88
- package/dist/wj-toggle.js +24 -42
- package/dist/wj-toolbar-action.js +16 -27
- package/dist/wj-toolbar.js +21 -26
- package/dist/wj-tooltip.js +27 -41
- package/dist/wj-visually-hidden.js +16 -18
- package/package.json +1 -1
- package/dist/router-links-26e4a166.js +0 -204
package/dist/wj-button.js
CHANGED
|
@@ -1,69 +1,65 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import WJElement, { event } from "./wj-element.js";
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var c = (o, n, t) => n in o ? d(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t;
|
|
3
|
+
var u = (o, n, t) => (c(o, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
+
import w, { event as a } from "./wj-element.js";
|
|
8
5
|
import "./wj-store.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
class
|
|
6
|
+
const b = (o) => o === "false" || o === "null" || o === "NaN" || o === "undefined" || o === "0" ? !1 : !!o, j = `/*!
|
|
7
|
+
* direction.scss
|
|
8
|
+
*/:host(.wj-button-solid.wj-color-primary){--wj-button-background-color: #7252D3;--wj-button-color: #fff}:host(.wj-button-outline.wj-color-primary){--wj-button-border-color: #7252d3;--wj-button-color: #7252D3}:host(.wj-button-solid.wj-color-complete){--wj-button-background-color: #0072EC;--wj-button-color: #fff}:host(.wj-button-outline.wj-color-complete){--wj-button-border-color: #0072ec;--wj-button-color: #0072EC}:host(.wj-button-solid.wj-color-success){--wj-button-background-color: #19AD79;--wj-button-color: #fff}:host(.wj-button-outline.wj-color-success){--wj-button-border-color: #19ad79;--wj-button-color: #19AD79}:host(.wj-button-solid.wj-color-warning){--wj-button-background-color: #FFd945;--wj-button-color: #4b4b4b}:host(.wj-button-outline.wj-color-warning){--wj-button-border-color: #ffd945;--wj-button-color: #FFd945}:host(.wj-button-solid.wj-color-danger){--wj-button-background-color: #D83C31;--wj-button-color: #fff}:host(.wj-button-outline.wj-color-danger){--wj-button-border-color: #d83c31;--wj-button-color: #D83C31}:host(.wj-button-solid.wj-color-neutral){--wj-button-background-color: #212121;--wj-button-color: #fff}:host(.wj-button-outline.wj-color-neutral){--wj-button-border-color: #212121;--wj-button-color: #212121}:host(.wj-button-solid.wj-color-default){--wj-button-background-color: #fff;--wj-button-color: #4b4b4b}:host(.wj-button-outline.wj-color-default){--wj-button-border-color: rgba(33, 33, 33, .17);--wj-button-background-color: #fff;--wj-button-color: #4b4b4b}:host{--wj-button-border-radius: 4px;--wj-button-border-width: 1px;--wj-button-border-style: solid;--wj-button-border-color: rgba(33, 33, 33, .17);--wj-button-margin-inline: 0;--wj-padding-top: .4rem;--wj-padding-start: .5rem;--wj-padding-end: .5rem;--wj-padding-bottom: .4rem;display:inline-flex;position:relative;width:auto;cursor:pointer;margin-inline:var(--wj-button-margin-inline)}:host(.wj-button-group-button){display:block}.button-native{font-family:var(--wj-font-family);font-size:var(--wj-font-size);display:flex;position:relative;align-items:center;width:100%;height:100%;min-height:inherit;overflow:hidden;border-width:var(--wj-button-border-width);border-style:var(--wj-button-border-style);border-color:var(--wj-button-border-color);outline:none;background-color:var(--wj-button-background-color);color:var(--wj-button-color);line-height:1;contain:layout style;cursor:pointer;z-index:0;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0;border-radius:var(--wj-button-border-radius);padding-top:var(--wj-padding-top);padding-bottom:var(--wj-padding-bottom);padding-left:var(--wj-padding-start);padding-right:var(--wj-padding-end)}@media (any-hover: hover){:host(.wj-button-solid:hover){--wj-button-background-color: #845ae0;--wj-button-border-color: #7252D3;--wj-button-color: #fff}:host(.wj-button-outline:hover){--wj-button-background-color: rgba(114, 82, 211, .1);--wj-button-border-color: #7252D3;--wj-button-color: #7252D3}:host(.wj-button-solid.wj-color-complete:hover){--wj-button-background-color: #0f8ff9;--wj-button-border-color: #0072EC;--wj-button-color: #fff}:host(.wj-button-outline.wj-color-complete:hover){--wj-button-background-color: rgba(0, 114, 236, .1);--wj-button-border-color: #0072EC;--wj-button-color: #0072EC}:host(.wj-button-solid.wj-color-success:hover){--wj-button-background-color: #26bf93;--wj-button-border-color: #19AD79;--wj-button-color: #fff}:host(.wj-button-outline.wj-color-success:hover){--wj-button-background-color: rgba(25, 173, 121, .1);--wj-button-border-color: #19AD79;--wj-button-color: #19AD79}:host(.wj-button-solid.wj-color-warning:hover){--wj-button-background-color: #ffe858;--wj-button-border-color: #FFd945;--wj-button-color: #4b4b4b}:host(.wj-button-outline.wj-color-warning:hover){--wj-button-background-color: rgba(255, 217, 69, .1);--wj-button-border-color: #FFd945;--wj-button-color: #FFd945}:host(.wj-button-solid.wj-color-danger:hover){--wj-button-background-color: #e6533c;--wj-button-border-color: #D83C31;--wj-button-color: #fff}:host(.wj-button-outline.wj-color-danger:hover){--wj-button-background-color: rgba(216, 60, 49, .1);--wj-button-border-color: #D83C31;--wj-button-color: #D83C31}:host(.wj-button-solid.wj-color-neutral:hover){--wj-button-background-color: #373737;--wj-button-border-color: #212121;--wj-button-color: #fff}:host(.wj-button-outline.wj-color-neutral:hover){--wj-button-background-color: rgba(33, 33, 33, .1);--wj-button-border-color: #212121;--wj-button-color: #212121}:host(.wj-button-solid.wj-color-default:hover){--wj-button-background-color: rgba(245, 245, 245, .19);--wj-button-border-color: #e0e0e0;--wj-button-color: #4b4b4b}:host(.wj-button-outline.wj-color-default:hover){--wj-button-background-color: rgba(224, 224, 224, .1);--wj-button-border-color: #e0e0e0;--wj-button-color: #4b4b4b}:host(.wj-button-link:hover){--wj-button-background-color: rgba(128, 128, 128, .2) !important;--wj-button-border-color: transparent !important;color:#4b4b4b!important}}.button-inner{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.button-solid.wj-color){background-color:var(--wj-button-background-color);color:var(--wj-button-color)}:host(.wj-button-solid){--wj-button-background-color: #7252D3;--wj-button-color: #fff}:host(.wj-button-outline){--wj-button-border-color: #7252d3;--wj-button-background-color: transparent;--wj-button-color: #7252D3}:host(.wj-button-link){--wj-button-border-width: 1px;--wj-button-border-color: transparent;--wj-button-background-color: transparent !important}:host(.wj-button-disabled){cursor:default;opacity:.5;pointer-events:none}:host(.wj-button-round){--wj-button-border-radius: 100px}:host(.wj-button-large){--wj-padding-top: .6rem;--wj-padding-start: .7rem;--wj-padding-end: .7rem;--wj-padding-bottom: .6rem}:host(.wj-button-small){--wj-padding-top: .25rem;--wj-padding-start: .25rem;--wj-padding-end: .25rem;--wj-padding-bottom: .25rem}::slotted(wj-icon[slot=start]){margin:0 .3rem 0 -.3rem}::slotted(wj-icon[slot=end]){margin:0 -.2rem 0 .3rem}::slotted(wj-icon[slot=caret]){margin:0 0 0 .3rem}slot[name=caret]{display:block}:host(.wj-button-group-first:not(.wj-button-group-last)) .button-native{border-start-end-radius:0;border-end-end-radius:0}:host(.wj-button-group-inner) .button-native{border-radius:0}:host(.wj-button-group-last:not(.wj-button-group-first)) .button-native{border-start-start-radius:0;border-end-start-radius:0}:host(.wj-button-group-button:not(.wj-button-group-first)){margin-inline-start:calc(-1 * var(--wj-button-border-width))!important}
|
|
9
|
+
`;
|
|
10
|
+
class h extends w {
|
|
14
11
|
constructor() {
|
|
15
12
|
super();
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
u(this, "className", "Button");
|
|
14
|
+
u(this, "eventDialogOpen", (t) => {
|
|
18
15
|
document.dispatchEvent(
|
|
19
16
|
new CustomEvent(
|
|
20
17
|
this.dialog,
|
|
21
18
|
{
|
|
22
|
-
bubbles:
|
|
19
|
+
bubbles: !0
|
|
23
20
|
}
|
|
24
21
|
)
|
|
25
22
|
);
|
|
26
23
|
});
|
|
27
24
|
}
|
|
28
|
-
set active(
|
|
25
|
+
set active(t) {
|
|
29
26
|
this.setAttribute("active", "");
|
|
30
27
|
}
|
|
31
28
|
get active() {
|
|
32
29
|
return this.hasAttribute("active");
|
|
33
30
|
}
|
|
34
|
-
set disabled(
|
|
31
|
+
set disabled(t) {
|
|
35
32
|
this.setAttribute("disabled", "");
|
|
36
33
|
}
|
|
37
34
|
get disabled() {
|
|
38
35
|
return this.hasAttribute("disabled");
|
|
39
36
|
}
|
|
40
|
-
set fill(
|
|
41
|
-
this.setAttribute("fill",
|
|
37
|
+
set fill(t) {
|
|
38
|
+
this.setAttribute("fill", t);
|
|
42
39
|
}
|
|
43
40
|
get fill() {
|
|
44
41
|
return this.getAttribute("fill") || "solid";
|
|
45
42
|
}
|
|
46
|
-
set outline(
|
|
43
|
+
set outline(t) {
|
|
47
44
|
this.setAttribute("outline", "");
|
|
48
45
|
}
|
|
49
46
|
get outline() {
|
|
50
47
|
return this.hasAttribute("outline");
|
|
51
48
|
}
|
|
52
|
-
set round(
|
|
49
|
+
set round(t) {
|
|
53
50
|
this.setAttribute("round", "");
|
|
54
51
|
}
|
|
55
52
|
get round() {
|
|
56
53
|
return this.hasAttribute("round");
|
|
57
54
|
}
|
|
58
|
-
set stopPropagation(
|
|
59
|
-
this.setAttribute("stop-propagation",
|
|
55
|
+
set stopPropagation(t) {
|
|
56
|
+
this.setAttribute("stop-propagation", b(t));
|
|
60
57
|
}
|
|
61
58
|
get stopPropagation() {
|
|
62
|
-
console.log("SP:",
|
|
63
|
-
return bool(this.getAttribute("stop-propagation"));
|
|
59
|
+
return console.log("SP:", b(this.getAttribute("stop-propagation")), this.innerHTML, this.getAttribute("stop-propagation")), b(this.getAttribute("stop-propagation"));
|
|
64
60
|
}
|
|
65
61
|
static get cssStyleSheet() {
|
|
66
|
-
return
|
|
62
|
+
return j;
|
|
67
63
|
}
|
|
68
64
|
static get observedAttributes() {
|
|
69
65
|
return [];
|
|
@@ -71,72 +67,33 @@ class Button extends WJElement {
|
|
|
71
67
|
setupAttributes() {
|
|
72
68
|
this.isShadowRoot = "open";
|
|
73
69
|
}
|
|
74
|
-
draw(
|
|
75
|
-
let
|
|
76
|
-
if (this.disabled)
|
|
77
|
-
this.classList.add("wj-button-disabled");
|
|
78
|
-
if (this.variant)
|
|
79
|
-
this.classList.add("wj-button-" + this.variant);
|
|
80
|
-
if (this.round)
|
|
81
|
-
this.classList.add("wj-button-round");
|
|
82
|
-
if (this.outline)
|
|
83
|
-
this.classList.add("wj-outline");
|
|
84
|
-
if (this.fill)
|
|
85
|
-
this.classList.add("wj-button-" + this.fill);
|
|
86
|
-
if (this.size)
|
|
87
|
-
this.classList.add("wj-button-" + this.size);
|
|
88
|
-
if (this.hasAttribute("color"))
|
|
89
|
-
this.classList.add("wj-color-" + this.color, "wj-color");
|
|
90
|
-
else
|
|
91
|
-
this.classList.add("wj-color-default", "wj-color");
|
|
92
|
-
if (this.hasAttribute("caret")) {
|
|
70
|
+
draw(t, p, g) {
|
|
71
|
+
let s = document.createDocumentFragment();
|
|
72
|
+
if (this.disabled && this.classList.add("wj-button-disabled"), this.variant && this.classList.add("wj-button-" + this.variant), this.round && this.classList.add("wj-button-round"), this.outline && this.classList.add("wj-outline"), this.fill && this.classList.add("wj-button-" + this.fill), this.size && this.classList.add("wj-button-" + this.size), this.hasAttribute("color") ? this.classList.add("wj-color-" + this.color, "wj-color") : this.classList.add("wj-color-default", "wj-color"), this.hasAttribute("caret")) {
|
|
93
73
|
let i = document.createElement("wj-icon");
|
|
94
|
-
i.style.setProperty("--wj-icon-size", "14px");
|
|
95
|
-
i.setAttribute("slot", "caret");
|
|
96
|
-
i.setAttribute("name", "chevron-down");
|
|
97
|
-
this.appendChild(i);
|
|
74
|
+
i.style.setProperty("--wj-icon-size", "14px"), i.setAttribute("slot", "caret"), i.setAttribute("name", "chevron-down"), this.appendChild(i);
|
|
98
75
|
}
|
|
99
76
|
if (this.active) {
|
|
100
77
|
this.classList.add("wj-active");
|
|
101
78
|
let i = document.createElement("wj-icon");
|
|
102
|
-
i.setAttribute("name", "check");
|
|
103
|
-
this.appendChild(i);
|
|
79
|
+
i.setAttribute("name", "check"), this.appendChild(i);
|
|
104
80
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
let
|
|
111
|
-
|
|
112
|
-
let slot = document.createElement("slot");
|
|
113
|
-
slot.setAttribute("name", "icon-only");
|
|
114
|
-
span.appendChild(slot);
|
|
115
|
-
slot = document.createElement("slot");
|
|
116
|
-
slot.setAttribute("name", "start");
|
|
117
|
-
span.appendChild(slot);
|
|
118
|
-
slot = document.createElement("slot");
|
|
119
|
-
span.appendChild(slot);
|
|
120
|
-
slot = document.createElement("slot");
|
|
121
|
-
slot.setAttribute("name", "end");
|
|
122
|
-
span.appendChild(slot);
|
|
123
|
-
slot = document.createElement("slot");
|
|
124
|
-
slot.setAttribute("name", "caret");
|
|
125
|
-
span.appendChild(slot);
|
|
126
|
-
element.appendChild(span);
|
|
127
|
-
fragment.appendChild(element);
|
|
128
|
-
return fragment;
|
|
81
|
+
this.disabled && this.classList.add("wj-disabled");
|
|
82
|
+
let l = document.createElement(this.hasAttribute("href") ? "a" : "button");
|
|
83
|
+
l.classList.add("button-native"), l.setAttribute("part", "native");
|
|
84
|
+
let e = document.createElement("span");
|
|
85
|
+
e.classList.add("button-inner");
|
|
86
|
+
let r = document.createElement("slot");
|
|
87
|
+
return r.setAttribute("name", "icon-only"), e.appendChild(r), r = document.createElement("slot"), r.setAttribute("name", "start"), e.appendChild(r), r = document.createElement("slot"), e.appendChild(r), r = document.createElement("slot"), r.setAttribute("name", "end"), e.appendChild(r), r = document.createElement("slot"), r.setAttribute("name", "caret"), e.appendChild(r), l.appendChild(e), s.appendChild(l), s;
|
|
129
88
|
}
|
|
130
89
|
afterDraw() {
|
|
131
|
-
console.log("Stop propagation: ", this.stopPropagation);
|
|
132
|
-
event.addListener(this, "click", "wj:button-click", null, { stopPropagation: this.stopPropagation });
|
|
133
|
-
event.addListener(this, "click", null, this.eventDialogOpen);
|
|
90
|
+
console.log("Stop propagation: ", this.stopPropagation), a.addListener(this, "click", "wj:button-click", null, { stopPropagation: this.stopPropagation }), a.addListener(this, "click", null, this.eventDialogOpen);
|
|
134
91
|
}
|
|
135
92
|
beforeDisconnect() {
|
|
136
93
|
this.removeEventListener("click", this.eventDialogOpen);
|
|
137
94
|
}
|
|
138
95
|
}
|
|
139
|
-
customElements.get("wj-button") || window.customElements.define("wj-button",
|
|
96
|
+
customElements.get("wj-button") || window.customElements.define("wj-button", h);
|
|
140
97
|
export {
|
|
141
|
-
Button
|
|
98
|
+
h as Button
|
|
142
99
|
};
|
package/dist/wj-card-content.js
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import WJElement from "./wj-element.js";
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var d = (e, t, n) => t in e ? a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var s = (e, t, n) => (d(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import i from "./wj-element.js";
|
|
8
5
|
import "./wj-store.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
6
|
+
const m = `/*!
|
|
7
|
+
* direction.scss
|
|
8
|
+
*/:host{--wj-card-padding: 0 1rem 1rem;display:block;padding:var(--wj-card-padding)}:host.no-padding .row{margin-left:0;margin-right:0}:host.no-bottom-padding{padding-bottom:0}:host.no-top-padding{padding-top:0}:host .title{margin-top:0}:host.scrollable{margin-bottom:20px}:host h3{line-height:34px;font-size:26px}
|
|
9
|
+
`;
|
|
10
|
+
class c extends i {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
|
-
|
|
13
|
+
s(this, "className", "CardContent");
|
|
14
14
|
}
|
|
15
15
|
static get cssStyleSheet() {
|
|
16
|
-
return
|
|
16
|
+
return m;
|
|
17
17
|
}
|
|
18
18
|
setupAttributes() {
|
|
19
19
|
this.isShadowRoot = "open";
|
|
20
20
|
}
|
|
21
|
-
draw(
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
fragment.appendChild(element);
|
|
25
|
-
return fragment;
|
|
21
|
+
draw(n, p, l) {
|
|
22
|
+
let o = document.createDocumentFragment(), r = document.createElement("slot");
|
|
23
|
+
return o.appendChild(r), o;
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
|
-
customElements.get("wj-card-content") || window.customElements.define("wj-card-content",
|
|
26
|
+
customElements.get("wj-card-content") || window.customElements.define("wj-card-content", c);
|
|
29
27
|
export {
|
|
30
|
-
CardContent
|
|
28
|
+
c as CardContent
|
|
31
29
|
};
|
package/dist/wj-card-controls.js
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import WJElement from "./wj-element.js";
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var i = (e, t, o) => t in e ? a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var n = (e, t, o) => (i(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
|
+
import l from "./wj-element.js";
|
|
8
5
|
import "./wj-store.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
6
|
+
const c = `/*!
|
|
7
|
+
* direction.scss
|
|
8
|
+
*/:host{--wj-color: #212529;--wj-card-subtitle-font-size: 28px;--wj-card-subtitle-font-family: Montserrat, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;font-family:var(--wj-card-subtitle-font-family);text-transform:uppercase;display:inline-block;letter-spacing:.06em;font-size:10.5px;font-weight:500;margin:0;padding:0;line-height:normal;overflow:hidden;text-overflow:ellipsis;filter:alpha(opacity=40);-webkit-transition:opacity .3s ease;transition:opacity .3s ease;position:absolute;right:1rem;top:.5rem}
|
|
9
|
+
`;
|
|
10
|
+
class m extends l {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
|
-
|
|
13
|
+
n(this, "className", "CardControls");
|
|
14
14
|
}
|
|
15
15
|
static get cssStyleSheet() {
|
|
16
|
-
return
|
|
16
|
+
return c;
|
|
17
17
|
}
|
|
18
18
|
setupAttributes() {
|
|
19
19
|
this.isShadowRoot = "open";
|
|
20
20
|
}
|
|
21
|
-
draw(
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
fragment.appendChild(element);
|
|
25
|
-
return fragment;
|
|
21
|
+
draw(o, p, d) {
|
|
22
|
+
let s = document.createDocumentFragment(), r = document.createElement("slot");
|
|
23
|
+
return s.appendChild(r), s;
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
|
-
customElements.get("wj-card-controls") || window.customElements.define("wj-card-controls",
|
|
26
|
+
customElements.get("wj-card-controls") || window.customElements.define("wj-card-controls", m);
|
|
29
27
|
export {
|
|
30
|
-
CardControls
|
|
28
|
+
m as CardControls
|
|
31
29
|
};
|
package/dist/wj-card-header.js
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import WJElement from "./wj-element.js";
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var d = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var o = (t, e, r) => (d(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
import c from "./wj-element.js";
|
|
8
5
|
import "./wj-store.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
6
|
+
const i = `/*!
|
|
7
|
+
* direction.scss
|
|
8
|
+
*/:host{background:transparent;border-radius:0;border-bottom:0;padding:1rem 1rem .5rem;position:relative;display:flex;flex-direction:column;color:var(--wj-color-contrast)}:host(.wj-separator):after{content:"";height:1px;background:rgba(0,0,0,.08);margin-top:.5rem}
|
|
9
|
+
`;
|
|
10
|
+
class m extends c {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
|
-
|
|
13
|
+
o(this, "className", "CardHeader");
|
|
14
14
|
}
|
|
15
15
|
static get cssStyleSheet() {
|
|
16
|
-
return
|
|
16
|
+
return i;
|
|
17
17
|
}
|
|
18
18
|
setupAttributes() {
|
|
19
19
|
this.isShadowRoot = "open";
|
|
20
20
|
}
|
|
21
|
-
draw(
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
if (this.hasAttribute("separator"))
|
|
25
|
-
this.classList.add("wj-separator");
|
|
26
|
-
fragment.appendChild(element);
|
|
27
|
-
return fragment;
|
|
21
|
+
draw(r, l, p) {
|
|
22
|
+
let a = document.createDocumentFragment(), s = document.createElement("slot");
|
|
23
|
+
return this.hasAttribute("separator") && this.classList.add("wj-separator"), a.appendChild(s), a;
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
|
-
customElements.get("wj-card-header") || window.customElements.define("wj-card-header",
|
|
26
|
+
customElements.get("wj-card-header") || window.customElements.define("wj-card-header", m);
|
|
31
27
|
export {
|
|
32
|
-
CardHeader
|
|
28
|
+
m as CardHeader
|
|
33
29
|
};
|
package/dist/wj-card-subtitle.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import WJElement from "./wj-element.js";
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var c = (s, t, e) => t in s ? l(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var n = (s, t, e) => (c(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import m from "./wj-element.js";
|
|
8
5
|
import "./wj-store.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
6
|
+
const d = `/*!
|
|
7
|
+
* direction.scss
|
|
8
|
+
*/:host{--wj-card-subtitle-font-size: 10.5px;--wj-card-subtitle-font-family: Montserrat, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif}:host{-webkit-transition:opacity .3s ease;transition:opacity .3s ease;font-family:var(--wj-card-subtitle-font-family);font-size:var(--wj-card-subtitle-font-size);text-transform:uppercase;display:inline-block;letter-spacing:.06em;font-weight:500;margin:0;padding:0;line-height:normal;overflow:hidden;text-overflow:ellipsis;filter:alpha(opacity=40)}
|
|
9
|
+
`;
|
|
10
|
+
class u extends m {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
|
-
|
|
13
|
+
n(this, "className", "CardTitle");
|
|
14
14
|
}
|
|
15
15
|
static get cssStyleSheet() {
|
|
16
|
-
return
|
|
16
|
+
return d;
|
|
17
17
|
}
|
|
18
18
|
static get observedAttributes() {
|
|
19
19
|
return [];
|
|
@@ -21,16 +21,14 @@ class CardSubtitle extends WJElement {
|
|
|
21
21
|
setupAttributes() {
|
|
22
22
|
this.isShadowRoot = "open";
|
|
23
23
|
}
|
|
24
|
-
beforeDraw(
|
|
24
|
+
beforeDraw(e, r, i) {
|
|
25
25
|
}
|
|
26
|
-
draw(
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
fragment.appendChild(element);
|
|
30
|
-
return fragment;
|
|
26
|
+
draw(e, r, i) {
|
|
27
|
+
let a = document.createDocumentFragment(), o = document.createElement("slot");
|
|
28
|
+
return a.appendChild(o), a;
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
|
-
customElements.get("wj-card-subtitle") || window.customElements.define("wj-card-subtitle",
|
|
31
|
+
customElements.get("wj-card-subtitle") || window.customElements.define("wj-card-subtitle", u);
|
|
34
32
|
export {
|
|
35
|
-
CardSubtitle
|
|
33
|
+
u as CardSubtitle
|
|
36
34
|
};
|
package/dist/wj-card-title.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import WJElement from "./wj-element.js";
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var l = (e, t, i) => t in e ? s(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var a = (e, t, i) => (l(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
+
import o from "./wj-element.js";
|
|
8
5
|
import "./wj-store.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
6
|
+
const d = `/*!
|
|
7
|
+
* direction.scss
|
|
8
|
+
*/:host{--wj-card-title-font-size: 24px;--wj-card-title-font-weight: 500;--wj-card-title-margin: 0;--wj-card-title-padding: 0;--wj-card-title-line-height: 1.2}:host{font-size:var(--wj-card-title-font-size);font-weight:var(--wj-card-title-font-weight);margin:var(--wj-card-title-margin);padding:var(--wj-card-title-padding);line-height:var(--wj-card-title-line-height);display:block;position:relative}
|
|
9
|
+
`;
|
|
10
|
+
class c extends o {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
|
-
|
|
13
|
+
a(this, "className", "CardTitle");
|
|
14
14
|
}
|
|
15
15
|
static get cssStyleSheet() {
|
|
16
|
-
return
|
|
16
|
+
return d;
|
|
17
17
|
}
|
|
18
18
|
static get observedAttributes() {
|
|
19
19
|
return [];
|
|
@@ -21,14 +21,12 @@ class CardTitle extends WJElement {
|
|
|
21
21
|
setupAttributes() {
|
|
22
22
|
this.isShadowRoot = "open";
|
|
23
23
|
}
|
|
24
|
-
draw(
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
fragment.appendChild(element);
|
|
28
|
-
return fragment;
|
|
24
|
+
draw(i, m, w) {
|
|
25
|
+
let r = document.createDocumentFragment(), n = document.createElement("slot");
|
|
26
|
+
return r.appendChild(n), r;
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
|
-
customElements.get("wj-card-title") || window.customElements.define("wj-card-title",
|
|
29
|
+
customElements.get("wj-card-title") || window.customElements.define("wj-card-title", c);
|
|
32
30
|
export {
|
|
33
|
-
CardTitle
|
|
31
|
+
c as CardTitle
|
|
34
32
|
};
|
package/dist/wj-card.js
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import WJElement from "./wj-element.js";
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var d = (r, o, t) => o in r ? c(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
|
|
3
|
+
var n = (r, o, t) => (d(r, typeof o != "symbol" ? o + "" : o, t), t);
|
|
4
|
+
import i from "./wj-element.js";
|
|
8
5
|
import "./wj-store.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
6
|
+
const l = `/*!
|
|
7
|
+
* direction.scss
|
|
8
|
+
*/:host{--wj-card-margin-top: 0;--wj-card-margin-bottom: 1rem;--wj-card-margin-inline: 0;--wj-card-border-color: transparent;--wj-color-base: #fff;--wj-color-contrast: #4b4b4b}:host(.wj-color-primary){--wj-color-base: #7252D3 !important;--wj-color-contrast: #fff !important}:host(.wj-color-complete){--wj-color-base: #0072EC !important;--wj-color-contrast: #fff !important}:host(.wj-color-success){--wj-color-base: #19AD79 !important;--wj-color-contrast: #fff !important}:host(.wj-color-warning){--wj-color-base: #FFd945 !important;--wj-color-contrast: #4b4b4b !important}:host(.wj-color-danger){--wj-color-base: #D83C31 !important;--wj-color-contrast: #fff !important}:host(.wj-color-info){--wj-color-base: #3B4752 !important;--wj-color-contrast: #fff !important}:host(.wj-color-menu){--wj-color-base: #2b303b !important;--wj-color-contrast: #fff !important}:host{background-color:var(--wj-color-base, red);color:var(--wj-color-contrast);-webkit-transition:all .2s ease;transition:all .2s ease;margin-top:var(--wj-card-margin-top);margin-bottom:var(--wj-card-margin-bottom);margin-inline:var(--wj-card-margin-inline);box-shadow:#0000001f 0 4px 16px;border-color:var(--wj-border-color);border-style:var(--wj-border-style);border-width:var(--wj-border-size);border-radius:var(--wj-border-radius);font-family:var(--wj-font-family);font-size:var(--wj-font-size);line-height:var(--wj-line-height);position:relative;width:100%;word-wrap:normal;display:flex;flex-direction:column;contain:content;overflow:hidden;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host.card-collapsed .card-header .card-controls .card-icon-collapse:before{content:""}:host.card-maximized .card-header .card-controls .card-icon-maximize:before{content:""}:host.card-bordered{border:1px solid rgba(224,224,224,.7)}:host.card-borderless{border:none;box-shadow:none}:host.card-condensed .card-header{padding:9px 13px 0;min-height:32px}:host.card-condensed .card-header .card-title{opacity:.4}:host.card-condensed .card-body{padding:13px}:host.card-hover .card-header .card-title{opacity:.4}:host.card-hover:hover .card-header .card-title{opacity:1}:host.card-transparent{background:transparent;border:none;-webkit-box-shadow:none;box-shadow:none}:host.card-transparent .card-body{background:transparent}:host.full-height{height:100%}:host.full-height .card-body{height:auto;width:100%;height:100%}:host.card-featured{-webkit-box-shadow:-1px 1px 3px 0px rgba(121,129,135,.14);box-shadow:-1px 1px 3px #79818724;width:calc(100% - 50px);float:right}:host.card-featured .card-title h4{font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:16px;text-transform:uppercase;color:inherit}:host.card-featured .card-body h3{line-height:34px;font-size:26px}:host.card-featured .footer .username{line-height:8px;padding-top:10px;font-size:16px}:host.card-featured .footer .buttons li{display:inline;list-style:none;font-weight:700;margin-left:20px}:host.card-featured .footer .buttons li:first-child{margin-left:0}:host.card-featured .footer .buttons .heart{color:#d83c31}:host.card-featured .footer .buttons .comment{color:#4b4b4b}:host.card-featured .ribbon{width:38px;height:38px;margin-left:-39px;float:left;-webkit-box-shadow:inset -3px 0px 3px 0px rgba(0,0,0,.14);box-shadow:inset -3px 0 3px #00000024}:host.card-featured .ribbon.green{background:#0072EC}:host.card-featured .ribbon.blue{background:#19AD79}:host.hover-fill:hover{background:#f4f4f4}:host.hover-stroke:hover{border:1px solid #e0e0e0}:host(.wj-color){background-color:var(--wj-color-base, red);color:var(--wj-color-contrast)}
|
|
9
|
+
`;
|
|
10
|
+
class h extends i {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
|
-
|
|
13
|
+
n(this, "className", "Card");
|
|
14
14
|
}
|
|
15
15
|
static get cssStyleSheet() {
|
|
16
|
-
return
|
|
16
|
+
return l;
|
|
17
17
|
}
|
|
18
18
|
setupAttributes() {
|
|
19
19
|
this.isShadowRoot = "open";
|
|
20
20
|
}
|
|
21
|
-
draw(
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
if (params.color)
|
|
25
|
-
this.classList.add("wj-color-" + params.color, "wj-color");
|
|
26
|
-
fragment.appendChild(element);
|
|
27
|
-
return fragment;
|
|
21
|
+
draw(t, b, e) {
|
|
22
|
+
let a = document.createDocumentFragment(), s = document.createElement("slot");
|
|
23
|
+
return e.color && this.classList.add("wj-color-" + e.color, "wj-color"), a.appendChild(s), a;
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
|
-
customElements.get("wj-card") || window.customElements.define("wj-card",
|
|
26
|
+
customElements.get("wj-card") || window.customElements.define("wj-card", h);
|
|
31
27
|
export {
|
|
32
|
-
Card
|
|
28
|
+
h as Card
|
|
33
29
|
};
|