smoothly 0.1.71 → 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/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-accordion_43.cjs.entry.js → smoothly-accordion_44.cjs.entry.js} +98 -63
- package/dist/cjs/smoothly-table-demo.cjs.entry.js +4 -1
- package/dist/cjs/smoothly-table-row.cjs.entry.js +21 -2
- package/dist/cjs/smoothly.cjs.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/row/index.js +94 -3
- package/dist/collection/components/table/row/style.css +3 -0
- package/dist/custom-elements/index.js +26 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{smoothly-accordion_43.entry.js → smoothly-accordion_44.entry.js} +98 -64
- package/dist/esm/smoothly-table-demo.entry.js +4 -1
- package/dist/esm/smoothly-table-row.entry.js +22 -3
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/{p-c107b623.entry.js → p-485244c2.entry.js} +1 -1
- package/dist/smoothly/smoothly-table-demo.entry.js +4 -1
- package/dist/smoothly/smoothly-table-row.entry.js +22 -3
- package/dist/smoothly/smoothly.esm.js +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 +1 -1
- package/dist/smoothly/p-07627dfe.entry.js +0 -1
|
@@ -4,15 +4,34 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b7e6a72c.js');
|
|
6
6
|
|
|
7
|
-
const styleCss = ".sc-smoothly-table-row-h{display:table-row;border:1px solid rgb(var(--smoothly-dark-color), 0.5);cursor:pointer}.sc-smoothly-table-row-h:nth-child(even){background-color:rgb(var(--smoothly-default-color))}.sc-smoothly-table-row-h:hover{background-color:rgb(var(--smoothly-default-color))}";
|
|
7
|
+
const styleCss = ".sc-smoothly-table-row-h{display:table-row;border:1px solid rgb(var(--smoothly-dark-color), 0.5);cursor:pointer}.sc-smoothly-table-row-h:nth-child(even){background-color:rgb(var(--smoothly-default-color))}.sc-smoothly-table-row-h:hover{background-color:rgb(var(--smoothly-default-color))}.hide.sc-smoothly-table-row{display:none}";
|
|
8
8
|
|
|
9
9
|
const TableRow = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
this.expansionOpen = index.createEvent(this, "expansionOpen", 7);
|
|
13
|
+
this.align = "left";
|
|
14
|
+
}
|
|
15
|
+
openChanged(value) {
|
|
16
|
+
if (this.expansionElement)
|
|
17
|
+
this.element.after(this.expansionElement);
|
|
18
|
+
}
|
|
19
|
+
onClick(e) {
|
|
20
|
+
this.open = !this.open;
|
|
21
|
+
e.stopPropagation();
|
|
22
|
+
}
|
|
23
|
+
componentDidRender() {
|
|
24
|
+
this.expansionOpen.emit(this.expansionElement);
|
|
25
|
+
if (this.expansionElement && this.open)
|
|
26
|
+
this.element.after(this.expansionElement);
|
|
12
27
|
}
|
|
13
28
|
render() {
|
|
14
|
-
return (index.h(index.Host,
|
|
29
|
+
return (index.h(index.Host, { style: { textAlign: this.align } }, index.h("slot", null), index.h("tr", { ref: e => (this.expansionElement = e) }, index.h("td", { colSpan: 500, class: !this.open ? "hide" : "" }, index.h("slot", { name: "detail" })))));
|
|
15
30
|
}
|
|
31
|
+
get element() { return index.getElement(this); }
|
|
32
|
+
static get watchers() { return {
|
|
33
|
+
"open": ["openChanged"]
|
|
34
|
+
}; }
|
|
16
35
|
};
|
|
17
36
|
TableRow.style = styleCss;
|
|
18
37
|
|
package/dist/cjs/smoothly.cjs.js
CHANGED
|
@@ -120,5 +120,5 @@ const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
120
120
|
|
|
121
121
|
patchBrowser().then(options => {
|
|
122
122
|
appGlobals.globalScripts();
|
|
123
|
-
return index.bootstrapLazy([["smoothly-app-demo.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-
|
|
123
|
+
return index.bootstrapLazy([["smoothly-app-demo.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo.cjs",[[0,"smoothly-input-demo"]]],["smoothly-select-demo.cjs",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo.cjs",[[2,"smoothly-table-demo"]]],["smoothly-display-demo.cjs",[[0,"smoothly-display-demo"]]],["smoothly-app.cjs",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo.cjs",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo.cjs",[[2,"smoothly-icon-demo"]]],["smoothly-room.cjs",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range.cjs",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]]],["smoothly-notifier.cjs",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker.cjs",[[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]]]],["smoothly-dialog.cjs",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-checkbox.cjs",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit.cjs",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-tuple.cjs",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-urlencoded.cjs",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion.cjs",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item.cjs",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount.cjs",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame.cjs",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup.cjs",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-radio.cjs",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select.cjs",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-table.cjs",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell.cjs",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell.cjs",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row.cjs",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header.cjs",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row.cjs",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-icon.cjs",[[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-selector.cjs",[[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]]]],["smoothly-input-date.cjs",[[6,"smoothly-input-date",{"value":[1025],"open":[1028]}]]],["smoothly-notification.cjs",[[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]]]],["smoothly-menu-options.cjs",[[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"filteredOptions":[32],"highlightIndex":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]]]],["smoothly-display.cjs",[[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}]]],["smoothly-display-date-time.cjs",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-spinner.cjs",[[2,"smoothly-spinner",{"active":[516]}]]],["smoothly-option.cjs",[[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537]}]]],["smoothly-item.cjs",[[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]]]],["smoothly-input-month.cjs",[[2,"smoothly-input-month",{"value":[1025]}]]],["smoothly-calendar.cjs",[[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"doubleInput":[516,"double-input"]}]]],["smoothly-input.cjs",[[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}]]],["smoothly-trigger.cjs",[[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]]]], options);
|
|
124
124
|
});
|
|
@@ -1,31 +1,52 @@
|
|
|
1
1
|
import { Component, h } from "@stencil/core";
|
|
2
2
|
export class TableDemo {
|
|
3
3
|
render() {
|
|
4
|
-
return
|
|
5
|
-
h("smoothly-table
|
|
6
|
-
h("smoothly-table-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
h("smoothly-table-expandable-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
h("smoothly-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
h("smoothly-
|
|
4
|
+
return [
|
|
5
|
+
h("smoothly-table", null,
|
|
6
|
+
h("smoothly-table-row", null,
|
|
7
|
+
h("smoothly-table-header", null, "Header A"),
|
|
8
|
+
h("smoothly-table-header", null, "Header B"),
|
|
9
|
+
h("smoothly-table-header", null, "Header C")),
|
|
10
|
+
h("smoothly-table-expandable-row", null,
|
|
11
|
+
h("smoothly-table-expandable-cell", null,
|
|
12
|
+
"Value 1A",
|
|
13
|
+
h("div", { slot: "detail" }, "1A details")),
|
|
14
|
+
h("smoothly-table-expandable-cell", null,
|
|
15
|
+
h("smoothly-display", { type: "price", value: 20, currency: "EUR" }),
|
|
16
|
+
h("div", { slot: "detail" }, "Budget details.")),
|
|
17
|
+
h("smoothly-table-expandable-cell", null,
|
|
18
|
+
h("smoothly-display", { type: "price", value: 18, currency: "EUR" }),
|
|
19
|
+
h("div", { slot: "detail" }, "Cost details."))),
|
|
20
|
+
h("smoothly-table-expandable-row", null,
|
|
21
|
+
h("smoothly-table-expandable-cell", null,
|
|
22
|
+
"Value 1A",
|
|
23
|
+
h("div", { slot: "detail" }, "2A details")),
|
|
24
|
+
h("smoothly-table-expandable-cell", null,
|
|
25
|
+
h("smoothly-display", { type: "price", value: 30, currency: "EUR" }),
|
|
26
|
+
h("div", { slot: "detail" }, "Budget details.")),
|
|
27
|
+
h("smoothly-table-expandable-cell", null,
|
|
28
|
+
h("smoothly-display", { type: "price", value: 38, currency: "EUR" }),
|
|
29
|
+
h("div", { slot: "detail" }, "Cost details.")))),
|
|
30
|
+
h("smoothly-table", null,
|
|
31
|
+
h("smoothly-table-row", null,
|
|
32
|
+
h("smoothly-table-header", null, "Header D"),
|
|
33
|
+
h("smoothly-table-header", null, "Header E"),
|
|
34
|
+
h("smoothly-table-header", null, "Header F")),
|
|
35
|
+
h("smoothly-table-row", null,
|
|
36
|
+
h("smoothly-table-cell", null, "Value 1A"),
|
|
37
|
+
h("smoothly-table-cell", null,
|
|
38
|
+
h("smoothly-display", { type: "price", value: 20, currency: "EUR" })),
|
|
39
|
+
h("smoothly-table-cell", null,
|
|
40
|
+
h("smoothly-display", { type: "price", value: 18, currency: "EUR" })),
|
|
41
|
+
h("div", { slot: "detail" }, "Cost details.")),
|
|
42
|
+
h("smoothly-table-row", null,
|
|
43
|
+
h("smoothly-table-cell", null, "Value 1A"),
|
|
44
|
+
h("smoothly-table-cell", null,
|
|
45
|
+
h("smoothly-display", { type: "price", value: 20, currency: "EUR" })),
|
|
46
|
+
h("smoothly-table-cell", null,
|
|
47
|
+
h("smoothly-display", { type: "price", value: 18, currency: "EUR" })),
|
|
18
48
|
h("div", { slot: "detail" }, "Cost details."))),
|
|
19
|
-
|
|
20
|
-
h("smoothly-table-expandable-cell", null,
|
|
21
|
-
"Value 1A",
|
|
22
|
-
h("div", { slot: "detail" }, "2A details")),
|
|
23
|
-
h("smoothly-table-expandable-cell", null,
|
|
24
|
-
h("smoothly-display", { type: "price", value: 30, currency: "EUR" }),
|
|
25
|
-
h("div", { slot: "detail" }, "Budget details.")),
|
|
26
|
-
h("smoothly-table-expandable-cell", null,
|
|
27
|
-
h("smoothly-display", { type: "price", value: 38, currency: "EUR" }),
|
|
28
|
-
h("div", { slot: "detail" }, "Cost details.")))));
|
|
49
|
+
];
|
|
29
50
|
}
|
|
30
51
|
static get is() { return "smoothly-table-demo"; }
|
|
31
52
|
static get encapsulation() { return "scoped"; }
|
|
@@ -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
|
}
|
|
@@ -56299,7 +56299,10 @@ const TableDemo = class extends HTMLElement {
|
|
|
56299
56299
|
this.__registerHost();
|
|
56300
56300
|
}
|
|
56301
56301
|
render() {
|
|
56302
|
-
return
|
|
56302
|
+
return [
|
|
56303
|
+
h("smoothly-table", null, h("smoothly-table-row", null, h("smoothly-table-header", null, "Header A"), h("smoothly-table-header", null, "Header B"), h("smoothly-table-header", null, "Header C")), h("smoothly-table-expandable-row", null, h("smoothly-table-expandable-cell", null, "Value 1A", h("div", { slot: "detail" }, "1A details")), h("smoothly-table-expandable-cell", null, h("smoothly-display", { type: "price", value: 20, currency: "EUR" }), h("div", { slot: "detail" }, "Budget details.")), h("smoothly-table-expandable-cell", null, h("smoothly-display", { type: "price", value: 18, currency: "EUR" }), h("div", { slot: "detail" }, "Cost details."))), h("smoothly-table-expandable-row", null, h("smoothly-table-expandable-cell", null, "Value 1A", h("div", { slot: "detail" }, "2A details")), h("smoothly-table-expandable-cell", null, h("smoothly-display", { type: "price", value: 30, currency: "EUR" }), h("div", { slot: "detail" }, "Budget details.")), h("smoothly-table-expandable-cell", null, h("smoothly-display", { type: "price", value: 38, currency: "EUR" }), h("div", { slot: "detail" }, "Cost details.")))),
|
|
56304
|
+
h("smoothly-table", null, h("smoothly-table-row", null, h("smoothly-table-header", null, "Header D"), h("smoothly-table-header", null, "Header E"), h("smoothly-table-header", null, "Header F")), h("smoothly-table-row", null, h("smoothly-table-cell", null, "Value 1A"), h("smoothly-table-cell", null, h("smoothly-display", { type: "price", value: 20, currency: "EUR" })), h("smoothly-table-cell", null, h("smoothly-display", { type: "price", value: 18, currency: "EUR" })), h("div", { slot: "detail" }, "Cost details.")), h("smoothly-table-row", null, h("smoothly-table-cell", null, "Value 1A"), h("smoothly-table-cell", null, h("smoothly-display", { type: "price", value: 20, currency: "EUR" })), h("smoothly-table-cell", null, h("smoothly-display", { type: "price", value: 18, currency: "EUR" })), h("div", { slot: "detail" }, "Cost details."))),
|
|
56305
|
+
];
|
|
56303
56306
|
}
|
|
56304
56307
|
static get style() { return styleCss$7; }
|
|
56305
56308
|
};
|
|
@@ -56404,16 +56407,35 @@ const TableHeader = class extends HTMLElement {
|
|
|
56404
56407
|
static get style() { return styleCss$4; }
|
|
56405
56408
|
};
|
|
56406
56409
|
|
|
56407
|
-
const styleCss$3 = ".sc-smoothly-table-row-h{display:table-row;border:1px solid rgb(var(--smoothly-dark-color), 0.5);cursor:pointer}.sc-smoothly-table-row-h:nth-child(even){background-color:rgb(var(--smoothly-default-color))}.sc-smoothly-table-row-h:hover{background-color:rgb(var(--smoothly-default-color))}";
|
|
56410
|
+
const styleCss$3 = ".sc-smoothly-table-row-h{display:table-row;border:1px solid rgb(var(--smoothly-dark-color), 0.5);cursor:pointer}.sc-smoothly-table-row-h:nth-child(even){background-color:rgb(var(--smoothly-default-color))}.sc-smoothly-table-row-h:hover{background-color:rgb(var(--smoothly-default-color))}.hide.sc-smoothly-table-row{display:none}";
|
|
56408
56411
|
|
|
56409
56412
|
const TableRow = class extends HTMLElement {
|
|
56410
56413
|
constructor() {
|
|
56411
56414
|
super();
|
|
56412
56415
|
this.__registerHost();
|
|
56416
|
+
this.expansionOpen = createEvent(this, "expansionOpen", 7);
|
|
56417
|
+
this.align = "left";
|
|
56418
|
+
}
|
|
56419
|
+
openChanged(value) {
|
|
56420
|
+
if (this.expansionElement)
|
|
56421
|
+
this.element.after(this.expansionElement);
|
|
56422
|
+
}
|
|
56423
|
+
onClick(e) {
|
|
56424
|
+
this.open = !this.open;
|
|
56425
|
+
e.stopPropagation();
|
|
56426
|
+
}
|
|
56427
|
+
componentDidRender() {
|
|
56428
|
+
this.expansionOpen.emit(this.expansionElement);
|
|
56429
|
+
if (this.expansionElement && this.open)
|
|
56430
|
+
this.element.after(this.expansionElement);
|
|
56413
56431
|
}
|
|
56414
56432
|
render() {
|
|
56415
|
-
return (h(Host,
|
|
56433
|
+
return (h(Host, { style: { textAlign: this.align } }, h("slot", null), h("tr", { ref: e => (this.expansionElement = e) }, h("td", { colSpan: 500, class: !this.open ? "hide" : "" }, h("slot", { name: "detail" })))));
|
|
56416
56434
|
}
|
|
56435
|
+
get element() { return this; }
|
|
56436
|
+
static get watchers() { return {
|
|
56437
|
+
"open": ["openChanged"]
|
|
56438
|
+
}; }
|
|
56417
56439
|
static get style() { return styleCss$3; }
|
|
56418
56440
|
};
|
|
56419
56441
|
|
|
@@ -56562,7 +56584,7 @@ const SmoothlyTableDemo = /*@__PURE__*/proxyCustomElement(TableDemo, [2,"smoothl
|
|
|
56562
56584
|
const SmoothlyTableExpandableCell = /*@__PURE__*/proxyCustomElement(TableExpandableCell, [6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]);
|
|
56563
56585
|
const SmoothlyTableExpandableRow = /*@__PURE__*/proxyCustomElement(TableExpandableRow, [6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]);
|
|
56564
56586
|
const SmoothlyTableHeader = /*@__PURE__*/proxyCustomElement(TableHeader, [6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]);
|
|
56565
|
-
const SmoothlyTableRow = /*@__PURE__*/proxyCustomElement(TableRow, [6,"smoothly-table-row"]);
|
|
56587
|
+
const SmoothlyTableRow = /*@__PURE__*/proxyCustomElement(TableRow, [6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]);
|
|
56566
56588
|
const SmoothlyTrigger = /*@__PURE__*/proxyCustomElement(SmoothlyTrigger$1, [6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]);
|
|
56567
56589
|
const SmoothlyTriggerSink = /*@__PURE__*/proxyCustomElement(SmoothlyTriggerSink$1, [6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]);
|
|
56568
56590
|
const SmoothlyTriggerSource = /*@__PURE__*/proxyCustomElement(SmoothlyTriggerSource$1, [6,"smoothly-trigger-source",{"listen":[1]}]);
|
package/dist/esm/loader.js
CHANGED
|
@@ -26,7 +26,7 @@ const defineCustomElements = (win, options) => {
|
|
|
26
26
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
27
27
|
return patchEsm().then(() => {
|
|
28
28
|
globalScripts();
|
|
29
|
-
return bootstrapLazy([["smoothly-app-demo",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-
|
|
29
|
+
return bootstrapLazy([["smoothly-app-demo",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo",[[0,"smoothly-input-demo"]]],["smoothly-select-demo",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-table-demo",[[2,"smoothly-table-demo"]]],["smoothly-display-demo",[[0,"smoothly-display-demo"]]],["smoothly-app",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo",[[2,"smoothly-icon-demo"]]],["smoothly-room",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"open":[1028]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"]]]]],["smoothly-notifier",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker",[[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]]]],["smoothly-dialog",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-checkbox",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-tuple",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-urlencoded",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-radio",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-table",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-icon",[[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-selector",[[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]]]],["smoothly-input-date",[[6,"smoothly-input-date",{"value":[1025],"open":[1028]}]]],["smoothly-notification",[[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]]]],["smoothly-menu-options",[[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"filteredOptions":[32],"highlightIndex":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]]]],["smoothly-display",[[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}]]],["smoothly-display-date-time",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-spinner",[[2,"smoothly-spinner",{"active":[516]}]]],["smoothly-option",[[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537]}]]],["smoothly-item",[[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]]]],["smoothly-input-month",[[2,"smoothly-input-month",{"value":[1025]}]]],["smoothly-calendar",[[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"doubleInput":[516,"double-input"]}]]],["smoothly-input",[[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}]]],["smoothly-trigger",[[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]]]], options);
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
|