smoothly 0.1.120 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/smoothly-accordion_51.cjs.entry.js +74 -54
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/components/app/style.css +12 -12
- package/dist/collection/components/button/style.css +1 -2
- package/dist/collection/components/calendar/style.css +2 -3
- package/dist/collection/components/input/index.js +72 -9
- package/dist/collection/components/input-date/index.js +1 -1
- package/dist/collection/components/input-date/style.css +2 -3
- package/dist/collection/components/input-date-range/index.js +2 -2
- package/dist/collection/components/input-demo/index.js +2 -1
- package/dist/collection/components/item/style.css +2 -3
- package/dist/collection/components/picker/index.js +20 -1
- package/dist/collection/components/select-demo/style.css +1 -1
- package/dist/collection/components/selector/style.css +0 -2
- package/dist/collection/components/tab/style.css +3 -4
- package/dist/collection/components/tab-switch/index.js +1 -0
- package/dist/collection/components/tab-switch/style.css +1 -1
- package/dist/collection/components/table/cell/style.css +3 -1
- package/dist/collection/components/table/demo/index.js +38 -32
- package/dist/collection/components/table/expandable/cell/index.js +8 -9
- package/dist/collection/components/table/expandable/cell/style.css +38 -1
- package/dist/collection/components/table/expandable/row/index.js +84 -21
- package/dist/collection/components/table/expandable/row/style.css +35 -4
- package/dist/collection/components/table/header/index.js +22 -2
- package/dist/collection/components/table/header/style.css +5 -3
- package/dist/collection/components/table/index.js +33 -1
- package/dist/collection/components/table/row/index.js +20 -84
- package/dist/collection/components/table/row/style.css +2 -8
- package/dist/collection/components/table/style.css +8 -3
- package/dist/custom-elements/index.js +81 -61
- package/dist/esm/loader.js +1 -1
- package/dist/esm/smoothly-accordion_51.entry.js +74 -54
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/p-6e8e1fb1.entry.js +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input/index.d.ts +10 -3
- package/dist/types/components/picker/index.d.ts +1 -0
- package/dist/types/components/table/expandable/cell/index.d.ts +2 -2
- package/dist/types/components/table/expandable/row/index.d.ts +9 -4
- package/dist/types/components/table/header/index.d.ts +1 -0
- package/dist/types/components/table/index.d.ts +3 -0
- package/dist/types/components/table/row/index.d.ts +3 -9
- package/dist/types/components.d.ts +16 -7
- package/package.json +2 -2
- package/dist/smoothly/p-a6b05a3a.entry.js +0 -1
|
@@ -2,11 +2,42 @@
|
|
|
2
2
|
display: table-row;
|
|
3
3
|
border: 1px solid rgb(var(--smoothly-default-color));
|
|
4
4
|
cursor: pointer;
|
|
5
|
+
box-sizing: border-box;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
.hide {
|
|
8
|
+
display: none;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
+
.slot-detail {
|
|
11
|
+
position: relative;
|
|
10
12
|
background-color: rgb(var(--smoothly-default-color));
|
|
13
|
+
width: 104%;
|
|
14
|
+
left: -2%;
|
|
15
|
+
border-left-style: solid;
|
|
16
|
+
border-left-color: rgb(var(--smoothly-tertiary-color));
|
|
17
|
+
box-shadow: 0px 0px 5px 2px rgb(var(--smoothly-dark-color), 0.5);
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
padding: 0.5rem 2%;
|
|
20
|
+
}
|
|
21
|
+
:host smoothly-icon {
|
|
22
|
+
width: 0.6rem;
|
|
23
|
+
height: 1rem;
|
|
24
|
+
float: left;
|
|
25
|
+
padding-left: 0.2rem;
|
|
26
|
+
padding-right: 0.2rem;
|
|
27
|
+
padding-bottom: 0.5rem;
|
|
28
|
+
transition: transform 0.2s;
|
|
29
|
+
}
|
|
30
|
+
:host[open] smoothly-icon {
|
|
31
|
+
transform: rotate(90deg);
|
|
32
|
+
}
|
|
33
|
+
:host[open] smoothly-table-cell {
|
|
34
|
+
padding-bottom: 0.5rem;
|
|
35
|
+
}
|
|
36
|
+
:host[open] {
|
|
37
|
+
position: relative;
|
|
38
|
+
z-index: 3;
|
|
39
|
+
background-color: rgb(var(--smoothly-default-color));
|
|
40
|
+
border-style: solid;
|
|
41
|
+
border-width: 5px;
|
|
42
|
+
box-shadow: inset 2px 0px 0px 0px rgb(var(--smoothly-dark-color)), inset 0px 2px 0px 0px rgb(var(--smoothly-dark-color)), inset -2px 0px 0px 0px rgb(var(--smoothly-dark-color)), inset 0px 0px 0px 2px rgb(var(--smoothly-default-color));
|
|
11
43
|
}
|
|
12
|
-
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Component, h } from "@stencil/core";
|
|
1
|
+
import { Component, h, Host, Prop } from "@stencil/core";
|
|
2
2
|
export class TableHeader {
|
|
3
3
|
render() {
|
|
4
|
-
return h(
|
|
4
|
+
return (h(Host, null,
|
|
5
|
+
h("slot", null)));
|
|
5
6
|
}
|
|
6
7
|
static get is() { return "smoothly-table-header"; }
|
|
7
8
|
static get encapsulation() { return "scoped"; }
|
|
@@ -11,4 +12,23 @@ export class TableHeader {
|
|
|
11
12
|
static get styleUrls() { return {
|
|
12
13
|
"$": ["style.css"]
|
|
13
14
|
}; }
|
|
15
|
+
static get properties() { return {
|
|
16
|
+
"name": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"mutable": false,
|
|
19
|
+
"complexType": {
|
|
20
|
+
"original": "string",
|
|
21
|
+
"resolved": "string",
|
|
22
|
+
"references": {}
|
|
23
|
+
},
|
|
24
|
+
"required": false,
|
|
25
|
+
"optional": false,
|
|
26
|
+
"docs": {
|
|
27
|
+
"tags": [],
|
|
28
|
+
"text": ""
|
|
29
|
+
},
|
|
30
|
+
"attribute": "name",
|
|
31
|
+
"reflect": false
|
|
32
|
+
}
|
|
33
|
+
}; }
|
|
14
34
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: table-cell;
|
|
3
|
-
padding: 0.75rem 0.5rem;
|
|
4
|
-
background-color: rgb(var(--smoothly-default-color));
|
|
5
|
-
border: 1px solid rgb(var(--smoothly-dark-color), 0.5);
|
|
6
3
|
line-height: 2.5rem;
|
|
4
|
+
background-color: rgb(var(--smoothly-color-shade));
|
|
5
|
+
border-bottom: 1px solid rgb(var(--smoothly-dark-color));
|
|
6
|
+
padding-left: 1rem;
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
margin-bottom: 5rem;
|
|
7
9
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { Component, Element, h } from "@stencil/core";
|
|
1
|
+
import { Component, Element, Event, h, Listen } from "@stencil/core";
|
|
2
2
|
export class Table {
|
|
3
|
+
handleEvents(event) {
|
|
4
|
+
event.stopPropagation();
|
|
5
|
+
}
|
|
3
6
|
render() {
|
|
4
7
|
return [h("slot", null)];
|
|
5
8
|
}
|
|
@@ -11,5 +14,34 @@ export class Table {
|
|
|
11
14
|
static get styleUrls() { return {
|
|
12
15
|
"$": ["style.css"]
|
|
13
16
|
}; }
|
|
17
|
+
static get events() { return [{
|
|
18
|
+
"method": "loadMore",
|
|
19
|
+
"name": "loadMore",
|
|
20
|
+
"bubbles": true,
|
|
21
|
+
"cancelable": true,
|
|
22
|
+
"composed": true,
|
|
23
|
+
"docs": {
|
|
24
|
+
"tags": [],
|
|
25
|
+
"text": ""
|
|
26
|
+
},
|
|
27
|
+
"complexType": {
|
|
28
|
+
"original": "void",
|
|
29
|
+
"resolved": "void",
|
|
30
|
+
"references": {}
|
|
31
|
+
}
|
|
32
|
+
}]; }
|
|
14
33
|
static get elementRef() { return "element"; }
|
|
34
|
+
static get listeners() { return [{
|
|
35
|
+
"name": "expansionLoad",
|
|
36
|
+
"method": "handleEvents",
|
|
37
|
+
"target": undefined,
|
|
38
|
+
"capture": false,
|
|
39
|
+
"passive": false
|
|
40
|
+
}, {
|
|
41
|
+
"name": "expansionOpen",
|
|
42
|
+
"method": "handleEvents",
|
|
43
|
+
"target": undefined,
|
|
44
|
+
"capture": false,
|
|
45
|
+
"passive": false
|
|
46
|
+
}]; }
|
|
15
47
|
}
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import { Component, Element,
|
|
1
|
+
import { Component, Element, h, Listen } from "@stencil/core";
|
|
2
2
|
export class TableRow {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.
|
|
4
|
+
this.expansions = [];
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
this.element.after(this.expansionElement);
|
|
6
|
+
onExpansionLoad(event) {
|
|
7
|
+
this.expansions.push(event.target);
|
|
9
8
|
}
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
this.element.after(this.expansionElement);
|
|
9
|
+
onExpansionOpen(event) {
|
|
10
|
+
this.expansions.forEach(cell => {
|
|
11
|
+
if (cell != event.target)
|
|
12
|
+
cell.open = false;
|
|
13
|
+
});
|
|
14
|
+
if (event.detail)
|
|
15
|
+
this.element.after(event.detail);
|
|
18
16
|
}
|
|
19
17
|
render() {
|
|
20
|
-
return
|
|
21
|
-
h("slot", null),
|
|
22
|
-
h("tr", { ref: e => (this.expansionElement = e) },
|
|
23
|
-
h("td", { colSpan: 500, class: !this.open ? "hide" : "" },
|
|
24
|
-
h("slot", { name: "detail" })))));
|
|
18
|
+
return h("slot", null);
|
|
25
19
|
}
|
|
26
20
|
static get is() { return "smoothly-table-row"; }
|
|
27
21
|
static get encapsulation() { return "scoped"; }
|
|
@@ -31,74 +25,16 @@ export class TableRow {
|
|
|
31
25
|
static get styleUrls() { return {
|
|
32
26
|
"$": ["style.css"]
|
|
33
27
|
}; }
|
|
34
|
-
static get properties() { return {
|
|
35
|
-
"align": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"mutable": false,
|
|
38
|
-
"complexType": {
|
|
39
|
-
"original": "\"left\" | \"center\" | \"right\"",
|
|
40
|
-
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
41
|
-
"references": {}
|
|
42
|
-
},
|
|
43
|
-
"required": false,
|
|
44
|
-
"optional": false,
|
|
45
|
-
"docs": {
|
|
46
|
-
"tags": [],
|
|
47
|
-
"text": ""
|
|
48
|
-
},
|
|
49
|
-
"attribute": "align",
|
|
50
|
-
"reflect": false,
|
|
51
|
-
"defaultValue": "\"left\""
|
|
52
|
-
},
|
|
53
|
-
"open": {
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"mutable": true,
|
|
56
|
-
"complexType": {
|
|
57
|
-
"original": "boolean",
|
|
58
|
-
"resolved": "boolean",
|
|
59
|
-
"references": {}
|
|
60
|
-
},
|
|
61
|
-
"required": false,
|
|
62
|
-
"optional": false,
|
|
63
|
-
"docs": {
|
|
64
|
-
"tags": [],
|
|
65
|
-
"text": ""
|
|
66
|
-
},
|
|
67
|
-
"attribute": "open",
|
|
68
|
-
"reflect": true
|
|
69
|
-
}
|
|
70
|
-
}; }
|
|
71
|
-
static get states() { return {
|
|
72
|
-
"beginOpen": {}
|
|
73
|
-
}; }
|
|
74
|
-
static get events() { return [{
|
|
75
|
-
"method": "expansionOpen",
|
|
76
|
-
"name": "expansionOpen",
|
|
77
|
-
"bubbles": true,
|
|
78
|
-
"cancelable": true,
|
|
79
|
-
"composed": true,
|
|
80
|
-
"docs": {
|
|
81
|
-
"tags": [],
|
|
82
|
-
"text": ""
|
|
83
|
-
},
|
|
84
|
-
"complexType": {
|
|
85
|
-
"original": "HTMLElement",
|
|
86
|
-
"resolved": "HTMLElement",
|
|
87
|
-
"references": {
|
|
88
|
-
"HTMLElement": {
|
|
89
|
-
"location": "global"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}]; }
|
|
94
28
|
static get elementRef() { return "element"; }
|
|
95
|
-
static get watchers() { return [{
|
|
96
|
-
"propName": "open",
|
|
97
|
-
"methodName": "openChanged"
|
|
98
|
-
}]; }
|
|
99
29
|
static get listeners() { return [{
|
|
100
|
-
"name": "
|
|
101
|
-
"method": "
|
|
30
|
+
"name": "expansionLoad",
|
|
31
|
+
"method": "onExpansionLoad",
|
|
32
|
+
"target": undefined,
|
|
33
|
+
"capture": false,
|
|
34
|
+
"passive": false
|
|
35
|
+
}, {
|
|
36
|
+
"name": "expansionOpen",
|
|
37
|
+
"method": "onExpansionOpen",
|
|
102
38
|
"target": undefined,
|
|
103
39
|
"capture": false,
|
|
104
40
|
"passive": false
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: table-row;
|
|
3
3
|
border: 1px solid rgb(var(--smoothly-dark-color), 0.5);
|
|
4
|
-
cursor:
|
|
4
|
+
cursor: default;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
background-color: rgb(var(--smoothly-default-color));
|
|
8
|
-
}
|
|
9
|
-
:host:hover {
|
|
10
|
-
background-color: rgb(var(--smoothly-default-color));
|
|
11
|
-
}
|
|
12
|
-
.hide{
|
|
6
|
+
.hide {
|
|
13
7
|
display: none;
|
|
14
8
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: table;
|
|
3
3
|
text-align: left;
|
|
4
|
-
border
|
|
5
|
-
|
|
6
|
-
width: 100%;
|
|
4
|
+
border: 1px solid rgb(var(--smoothly-dark-color));
|
|
5
|
+
width: 80%;
|
|
7
6
|
box-sizing: border-box;
|
|
8
7
|
background-color: rgb(var(--smoothly-default-color));
|
|
8
|
+
margin: 1rem 9.5%;
|
|
9
|
+
padding-bottom: 0.5rem;
|
|
10
|
+
}
|
|
11
|
+
.slot-detail > div {
|
|
12
|
+
padding: 10rem 0;
|
|
13
|
+
margin-left: 10rem;
|
|
9
14
|
}
|