smoothly 0.1.68 → 0.1.72
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/{generate-5e7cd3f7.js → generate-7f7f7d99.js} +3 -2
- package/dist/cjs/{index-896ac706.js → index-7c9d0102.js} +806 -638
- package/dist/cjs/{index-b8688617.js → index-e37f73fe.js} +89 -19
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-accordion_43.cjs.entry.js → smoothly-accordion_44.cjs.entry.js} +1000 -737
- package/dist/cjs/smoothly-calendar.cjs.entry.js +7 -7
- package/dist/cjs/smoothly-display-amount.cjs.entry.js +2 -4
- package/dist/cjs/smoothly-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-date-range.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-date.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-month.cjs.entry.js +11 -11
- package/dist/cjs/smoothly-input.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-select.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-table-demo.cjs.entry.js +4 -1
- package/dist/cjs/smoothly-table-header.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-table-row.cjs.entry.js +21 -2
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/components/calendar/generate.js +2 -1
- package/dist/collection/components/calendar/index.js +4 -4
- package/dist/collection/components/calendar/style.css +29 -11
- package/dist/collection/components/display-amount/index.js +1 -3
- package/dist/collection/components/input/index.js +1 -1
- package/dist/collection/components/input-month/index.js +8 -8
- package/dist/collection/components/input-month/style.css +0 -6
- package/dist/collection/components/select/index.js +1 -1
- package/dist/collection/components/table/demo/index.js +45 -24
- package/dist/collection/components/table/exandable/row/style.css +1 -0
- package/dist/collection/components/table/header/index.js +1 -1
- package/dist/collection/components/table/row/index.js +94 -3
- package/dist/collection/components/table/row/style.css +3 -0
- package/dist/custom-elements/index.js +941 -682
- package/dist/esm/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
- package/dist/{smoothly/index-a7e44b28.js → esm/index-01fedb5b.js} +806 -638
- package/dist/esm/{index-046ba252.js → index-13251390.js} +89 -19
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{smoothly-accordion_43.entry.js → smoothly-accordion_44.entry.js} +1000 -738
- package/dist/esm/smoothly-calendar.entry.js +7 -7
- package/dist/esm/smoothly-display-amount.entry.js +2 -4
- package/dist/esm/smoothly-display.entry.js +1 -1
- package/dist/esm/smoothly-input-date-range.entry.js +1 -1
- package/dist/esm/smoothly-input-date.entry.js +1 -1
- package/dist/esm/smoothly-input-month.entry.js +11 -11
- package/dist/esm/smoothly-input.entry.js +2 -2
- package/dist/esm/smoothly-select.entry.js +1 -1
- package/dist/esm/smoothly-table-demo.entry.js +4 -1
- package/dist/esm/smoothly-table-header.entry.js +1 -1
- package/dist/esm/smoothly-table-row.entry.js +22 -3
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
- package/dist/{esm/index-a7e44b28.js → smoothly/index-01fedb5b.js} +806 -638
- package/dist/smoothly/{index-046ba252.js → index-13251390.js} +89 -19
- package/dist/smoothly/p-485244c2.entry.js +1 -0
- package/dist/smoothly/smoothly-calendar.entry.js +7 -7
- package/dist/smoothly/smoothly-display-amount.entry.js +2 -4
- package/dist/smoothly/smoothly-display.entry.js +1 -1
- package/dist/smoothly/smoothly-input-date-range.entry.js +1 -1
- package/dist/smoothly/smoothly-input-date.entry.js +1 -1
- package/dist/smoothly/smoothly-input-month.entry.js +11 -11
- package/dist/smoothly/smoothly-input.entry.js +2 -2
- package/dist/smoothly/smoothly-select.entry.js +1 -1
- package/dist/smoothly/smoothly-table-demo.entry.js +4 -1
- package/dist/smoothly/smoothly-table-header.entry.js +1 -1
- package/dist/smoothly/smoothly-table-row.entry.js +22 -3
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input-month/index.d.ts +1 -1
- package/dist/types/components/table/demo/index.d.ts +1 -1
- package/dist/types/components/table/row/index.d.ts +10 -0
- package/dist/types/components.d.ts +5 -0
- package/package.json +5 -5
- package/dist/smoothly/p-07627dfe.entry.js +0 -1
- package/dist/smoothly/p-f2ed989e.entry.js +0 -1
|
@@ -1,8 +1,27 @@
|
|
|
1
|
-
import { Component, h, Host } from "@stencil/core";
|
|
1
|
+
import { Component, Element, Event, h, Host, Listen, Prop, State, Watch } from "@stencil/core";
|
|
2
2
|
export class TableRow {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.align = "left";
|
|
5
|
+
}
|
|
6
|
+
openChanged(value) {
|
|
7
|
+
if (this.expansionElement)
|
|
8
|
+
this.element.after(this.expansionElement);
|
|
9
|
+
}
|
|
10
|
+
onClick(e) {
|
|
11
|
+
this.open = !this.open;
|
|
12
|
+
e.stopPropagation();
|
|
13
|
+
}
|
|
14
|
+
componentDidRender() {
|
|
15
|
+
this.expansionOpen.emit(this.expansionElement);
|
|
16
|
+
if (this.expansionElement && this.open)
|
|
17
|
+
this.element.after(this.expansionElement);
|
|
18
|
+
}
|
|
3
19
|
render() {
|
|
4
|
-
return (h(Host,
|
|
5
|
-
h("slot", null)
|
|
20
|
+
return (h(Host, { style: { textAlign: this.align } },
|
|
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" })))));
|
|
6
25
|
}
|
|
7
26
|
static get is() { return "smoothly-table-row"; }
|
|
8
27
|
static get encapsulation() { return "scoped"; }
|
|
@@ -12,4 +31,76 @@ export class TableRow {
|
|
|
12
31
|
static get styleUrls() { return {
|
|
13
32
|
"$": ["style.css"]
|
|
14
33
|
}; }
|
|
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
|
+
static get elementRef() { return "element"; }
|
|
95
|
+
static get watchers() { return [{
|
|
96
|
+
"propName": "open",
|
|
97
|
+
"methodName": "openChanged"
|
|
98
|
+
}]; }
|
|
99
|
+
static get listeners() { return [{
|
|
100
|
+
"name": "click",
|
|
101
|
+
"method": "onClick",
|
|
102
|
+
"target": undefined,
|
|
103
|
+
"capture": false,
|
|
104
|
+
"passive": false
|
|
105
|
+
}]; }
|
|
15
106
|
}
|