smoothly 0.3.5 → 0.3.6

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 (103) hide show
  1. package/dist/cjs/{index-3efe2a41.js → index-3fb97927.js} +467 -269
  2. package/dist/cjs/{index-2a011313.js → index-7b75b331.js} +1 -1
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/smoothly-accordion_53.cjs.entry.js +68 -26
  6. package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
  7. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  8. package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
  9. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
  10. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
  11. package/dist/cjs/smoothly.cjs.js +3 -3
  12. package/dist/collection/collection-manifest.json +2 -2
  13. package/dist/collection/components/App.js +38 -46
  14. package/dist/collection/components/accordion/index.js +65 -55
  15. package/dist/collection/components/accordion-item/index.js +133 -131
  16. package/dist/collection/components/app/index.js +37 -32
  17. package/dist/collection/components/app-demo/index.js +39 -68
  18. package/dist/collection/components/backtotop/index.js +73 -66
  19. package/dist/collection/components/button/index.js +144 -141
  20. package/dist/collection/components/calendar/index.js +277 -268
  21. package/dist/collection/components/checkbox/index.js +120 -110
  22. package/dist/collection/components/dialog/index.js +97 -93
  23. package/dist/collection/components/dialog-demo/index.js +2 -3
  24. package/dist/collection/components/display/index.js +108 -102
  25. package/dist/collection/components/display-amount/index.js +68 -63
  26. package/dist/collection/components/display-date-time/index.js +35 -30
  27. package/dist/collection/components/display-demo/index.js +23 -129
  28. package/dist/collection/components/frame/index.js +134 -124
  29. package/dist/collection/components/google-font/index.js +26 -24
  30. package/dist/collection/components/icon/index.js +116 -107
  31. package/dist/collection/components/icon-demo/index.js +11 -7
  32. package/dist/collection/components/input/index.js +364 -355
  33. package/dist/collection/components/input-date/index.js +165 -156
  34. package/dist/collection/components/input-date-range/index.js +220 -213
  35. package/dist/collection/components/input-demo/index.js +2 -87
  36. package/dist/collection/components/input-month/index.js +65 -57
  37. package/dist/collection/components/item/index.js +101 -87
  38. package/dist/collection/components/menu-options/index.js +287 -275
  39. package/dist/collection/components/notification/index.js +74 -63
  40. package/dist/collection/components/notifier/index.js +31 -23
  41. package/dist/collection/components/option/index.js +227 -223
  42. package/dist/collection/components/picker/index.js +404 -397
  43. package/dist/collection/components/popup/index.js +73 -69
  44. package/dist/collection/components/quiet/index.js +33 -28
  45. package/dist/collection/components/radio/index.js +98 -91
  46. package/dist/collection/components/radio-button/index.js +92 -83
  47. package/dist/collection/components/radio-button/item/index.js +91 -66
  48. package/dist/collection/components/radio-button/item/style.css +11 -14
  49. package/dist/collection/components/radio-group/index.js +33 -27
  50. package/dist/collection/components/reorder/index.js +28 -23
  51. package/dist/collection/components/room/index.js +73 -71
  52. package/dist/collection/components/select/index.js +82 -75
  53. package/dist/collection/components/select-demo/index.js +24 -42
  54. package/dist/collection/components/selector/index.js +71 -68
  55. package/dist/collection/components/skeleton/index.js +112 -106
  56. package/dist/collection/components/spinner/index.js +50 -46
  57. package/dist/collection/components/submit/index.js +174 -163
  58. package/dist/collection/components/svg/index.js +65 -60
  59. package/dist/collection/components/tab/index.js +84 -75
  60. package/dist/collection/components/tab-switch/index.js +32 -23
  61. package/dist/collection/components/table/cell/index.js +12 -9
  62. package/dist/collection/components/table/demo/index.js +13 -59
  63. package/dist/collection/components/table/expandable/cell/index.js +100 -95
  64. package/dist/collection/components/table/expandable/row/index.js +85 -79
  65. package/dist/collection/components/table/header/index.js +33 -28
  66. package/dist/collection/components/table/index.js +44 -36
  67. package/dist/collection/components/table/row/index.js +26 -20
  68. package/dist/collection/components/trigger/index.js +174 -166
  69. package/dist/collection/components/trigger-sink/index.js +73 -65
  70. package/dist/collection/components/trigger-source/index.js +71 -63
  71. package/dist/collection/components/tuple/index.js +19 -17
  72. package/dist/collection/components/urlencoded/index.js +22 -20
  73. package/dist/collection/model/Listenable.js +4 -2
  74. package/dist/custom-elements/index.js +67 -25
  75. package/dist/esm/{index-1d438ba2.js → index-3b463176.js} +1 -1
  76. package/dist/esm/{index-4d9efff8.js → index-fcf8bdd3.js} +467 -269
  77. package/dist/esm/index.js +2 -2
  78. package/dist/esm/loader.js +3 -3
  79. package/dist/esm/polyfills/css-shim.js +1 -1
  80. package/dist/esm/smoothly-accordion_53.entry.js +68 -26
  81. package/dist/esm/smoothly-google-font.entry.js +1 -1
  82. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  83. package/dist/esm/smoothly-reorder.entry.js +1 -1
  84. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  85. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  86. package/dist/esm/smoothly.js +3 -3
  87. package/dist/smoothly/index.esm.js +1 -1
  88. package/dist/smoothly/{p-d5d4832d.entry.js → p-0833f25c.entry.js} +1 -1
  89. package/dist/smoothly/{p-919ae3e8.entry.js → p-2bf8c660.entry.js} +1 -1
  90. package/dist/smoothly/{p-8e4e941e.entry.js → p-3bd18eea.entry.js} +1 -1
  91. package/dist/smoothly/p-8ab82f55.entry.js +1 -0
  92. package/dist/smoothly/{p-9bc77fba.entry.js → p-a1c137fc.entry.js} +1 -1
  93. package/dist/smoothly/p-af90d05a.js +2 -0
  94. package/dist/smoothly/{p-76e88859.js → p-e5191036.js} +1 -1
  95. package/dist/smoothly/{p-7a5eda51.entry.js → p-f67259c5.entry.js} +1 -1
  96. package/dist/smoothly/smoothly.esm.js +1 -1
  97. package/dist/types/components/radio-button/item/index.d.ts +2 -0
  98. package/dist/types/components.d.ts +3 -1
  99. package/dist/types/stencil-public-runtime.d.ts +15 -4
  100. package/loader/package.json +1 -0
  101. package/package.json +6 -6
  102. package/dist/smoothly/p-191ee4b8.js +0 -2
  103. package/dist/smoothly/p-78b676aa.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Event, h, Host, Prop, State } from "@stencil/core";
1
+ import { h, Host } from "@stencil/core";
2
2
  export class SmoothlyPopup {
3
3
  constructor() {
4
4
  this.visible = false;
@@ -21,77 +21,81 @@ export class SmoothlyPopup {
21
21
  this.popup.emit(this.visible);
22
22
  }
23
23
  render() {
24
- return (h(Host, { style: Object.assign({}, this.cssVariables) },
25
- h("content", { class: "pointer", onClick: () => this.onClick() },
26
- h("slot", null)),
27
- h("div", { class: "background", onClick: () => this.onClick() }),
28
- h("div", { class: "arrow", onClick: () => this.onClick() }),
29
- h("aside", { ref: el => (this.aside = el) },
30
- h("slot", { name: "popup" }))));
24
+ return (h(Host, { style: Object.assign({}, this.cssVariables) }, h("content", { class: "pointer", onClick: () => this.onClick() }, h("slot", null)), h("div", { class: "background", onClick: () => this.onClick() }), h("div", { class: "arrow", onClick: () => this.onClick() }), h("aside", { ref: el => (this.aside = el) }, h("slot", { name: "popup" }))));
31
25
  }
32
26
  static get is() { return "smoothly-popup"; }
33
27
  static get encapsulation() { return "scoped"; }
34
- static get originalStyleUrls() { return {
35
- "$": ["style.css"]
36
- }; }
37
- static get styleUrls() { return {
38
- "$": ["style.css"]
39
- }; }
40
- static get properties() { return {
41
- "visible": {
42
- "type": "boolean",
43
- "mutable": true,
44
- "complexType": {
45
- "original": "boolean",
46
- "resolved": "boolean",
47
- "references": {}
48
- },
49
- "required": false,
50
- "optional": false,
51
- "docs": {
52
- "tags": [],
53
- "text": ""
54
- },
55
- "attribute": "visible",
56
- "reflect": true,
57
- "defaultValue": "false"
58
- },
59
- "direction": {
60
- "type": "string",
61
- "mutable": true,
62
- "complexType": {
63
- "original": "\"up\" | \"down\"",
64
- "resolved": "\"down\" | \"up\"",
65
- "references": {}
66
- },
67
- "required": false,
68
- "optional": false,
69
- "docs": {
70
- "tags": [],
71
- "text": ""
72
- },
73
- "attribute": "direction",
74
- "reflect": true,
75
- "defaultValue": "\"down\""
76
- }
77
- }; }
78
- static get states() { return {
79
- "cssVariables": {}
80
- }; }
81
- static get events() { return [{
82
- "method": "popup",
83
- "name": "popup",
84
- "bubbles": true,
85
- "cancelable": true,
86
- "composed": true,
87
- "docs": {
88
- "tags": [],
89
- "text": ""
28
+ static get originalStyleUrls() {
29
+ return {
30
+ "$": ["style.css"]
31
+ };
32
+ }
33
+ static get styleUrls() {
34
+ return {
35
+ "$": ["style.css"]
36
+ };
37
+ }
38
+ static get properties() {
39
+ return {
40
+ "visible": {
41
+ "type": "boolean",
42
+ "mutable": true,
43
+ "complexType": {
44
+ "original": "boolean",
45
+ "resolved": "boolean",
46
+ "references": {}
47
+ },
48
+ "required": false,
49
+ "optional": false,
50
+ "docs": {
51
+ "tags": [],
52
+ "text": ""
53
+ },
54
+ "attribute": "visible",
55
+ "reflect": true,
56
+ "defaultValue": "false"
90
57
  },
91
- "complexType": {
92
- "original": "boolean",
93
- "resolved": "boolean",
94
- "references": {}
58
+ "direction": {
59
+ "type": "string",
60
+ "mutable": true,
61
+ "complexType": {
62
+ "original": "\"up\" | \"down\"",
63
+ "resolved": "\"down\" | \"up\"",
64
+ "references": {}
65
+ },
66
+ "required": false,
67
+ "optional": false,
68
+ "docs": {
69
+ "tags": [],
70
+ "text": ""
71
+ },
72
+ "attribute": "direction",
73
+ "reflect": true,
74
+ "defaultValue": "\"down\""
95
75
  }
96
- }]; }
76
+ };
77
+ }
78
+ static get states() {
79
+ return {
80
+ "cssVariables": {}
81
+ };
82
+ }
83
+ static get events() {
84
+ return [{
85
+ "method": "popup",
86
+ "name": "popup",
87
+ "bubbles": true,
88
+ "cancelable": true,
89
+ "composed": true,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": ""
93
+ },
94
+ "complexType": {
95
+ "original": "boolean",
96
+ "resolved": "boolean",
97
+ "references": {}
98
+ }
99
+ }];
100
+ }
97
101
  }
@@ -1,34 +1,39 @@
1
- import { Component, h, Host, Prop } from "@stencil/core";
1
+ import { h, Host } from "@stencil/core";
2
2
  export class SmoothlyQuiet {
3
3
  render() {
4
- return (h(Host, { color: this.color },
5
- h("slot", null)));
4
+ return (h(Host, { color: this.color }, h("slot", null)));
6
5
  }
7
6
  static get is() { return "smoothly-quiet"; }
8
7
  static get encapsulation() { return "scoped"; }
9
- static get originalStyleUrls() { return {
10
- "$": ["style.css"]
11
- }; }
12
- static get styleUrls() { return {
13
- "$": ["style.css"]
14
- }; }
15
- static get properties() { return {
16
- "color": {
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": "color",
31
- "reflect": false
32
- }
33
- }; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["style.css"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["style.css"]
16
+ };
17
+ }
18
+ static get properties() {
19
+ return {
20
+ "color": {
21
+ "type": "string",
22
+ "mutable": false,
23
+ "complexType": {
24
+ "original": "string",
25
+ "resolved": "string",
26
+ "references": {}
27
+ },
28
+ "required": false,
29
+ "optional": false,
30
+ "docs": {
31
+ "tags": [],
32
+ "text": ""
33
+ },
34
+ "attribute": "color",
35
+ "reflect": false
36
+ }
37
+ };
38
+ }
34
39
  }
@@ -1,4 +1,4 @@
1
- import { Component, Event, h, Prop } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  export class SmoothlyRadio {
3
3
  async onInput(e) {
4
4
  if (e.target && e.target.value && (this.checked = e.target.checked))
@@ -8,102 +8,109 @@ export class SmoothlyRadio {
8
8
  render() {
9
9
  return [
10
10
  h("input", { type: "radio", name: this.name, id: this.value, tabindex: this.tabIndex, checked: this.checked, value: this.value, onChange: e => this.onInput(e) }),
11
- h("label", { htmlFor: this.value },
12
- h("slot", null)),
11
+ h("label", { htmlFor: this.value }, h("slot", null)),
13
12
  ];
14
13
  }
15
14
  static get is() { return "smoothly-radio"; }
16
15
  static get encapsulation() { return "scoped"; }
17
- static get originalStyleUrls() { return {
18
- "$": ["style.css"]
19
- }; }
20
- static get styleUrls() { return {
21
- "$": ["style.css"]
22
- }; }
23
- static get properties() { return {
24
- "name": {
25
- "type": "string",
26
- "mutable": false,
27
- "complexType": {
28
- "original": "string",
29
- "resolved": "string",
30
- "references": {}
31
- },
32
- "required": false,
33
- "optional": false,
34
- "docs": {
35
- "tags": [],
36
- "text": ""
37
- },
38
- "attribute": "name",
39
- "reflect": false
40
- },
41
- "value": {
42
- "type": "string",
43
- "mutable": false,
44
- "complexType": {
45
- "original": "string",
46
- "resolved": "string",
47
- "references": {}
48
- },
49
- "required": false,
50
- "optional": false,
51
- "docs": {
52
- "tags": [],
53
- "text": ""
54
- },
55
- "attribute": "value",
56
- "reflect": false
57
- },
58
- "checked": {
59
- "type": "boolean",
60
- "mutable": true,
61
- "complexType": {
62
- "original": "boolean",
63
- "resolved": "boolean",
64
- "references": {}
65
- },
66
- "required": false,
67
- "optional": false,
68
- "docs": {
69
- "tags": [],
70
- "text": ""
71
- },
72
- "attribute": "checked",
73
- "reflect": true
74
- },
75
- "tabIndex": {
76
- "type": "number",
77
- "mutable": false,
78
- "complexType": {
79
- "original": "number",
80
- "resolved": "number",
81
- "references": {}
16
+ static get originalStyleUrls() {
17
+ return {
18
+ "$": ["style.css"]
19
+ };
20
+ }
21
+ static get styleUrls() {
22
+ return {
23
+ "$": ["style.css"]
24
+ };
25
+ }
26
+ static get properties() {
27
+ return {
28
+ "name": {
29
+ "type": "string",
30
+ "mutable": false,
31
+ "complexType": {
32
+ "original": "string",
33
+ "resolved": "string",
34
+ "references": {}
35
+ },
36
+ "required": false,
37
+ "optional": false,
38
+ "docs": {
39
+ "tags": [],
40
+ "text": ""
41
+ },
42
+ "attribute": "name",
43
+ "reflect": false
82
44
  },
83
- "required": false,
84
- "optional": false,
85
- "docs": {
86
- "tags": [],
87
- "text": ""
45
+ "value": {
46
+ "type": "string",
47
+ "mutable": false,
48
+ "complexType": {
49
+ "original": "string",
50
+ "resolved": "string",
51
+ "references": {}
52
+ },
53
+ "required": false,
54
+ "optional": false,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": ""
58
+ },
59
+ "attribute": "value",
60
+ "reflect": false
88
61
  },
89
- "attribute": "tab-index",
90
- "reflect": false
91
- }
92
- }; }
93
- static get events() { return [{
94
- "method": "smoothlySelected",
95
- "name": "smoothlySelected",
96
- "bubbles": true,
97
- "cancelable": true,
98
- "composed": true,
99
- "docs": {
100
- "tags": [],
101
- "text": ""
62
+ "checked": {
63
+ "type": "boolean",
64
+ "mutable": true,
65
+ "complexType": {
66
+ "original": "boolean",
67
+ "resolved": "boolean",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": ""
75
+ },
76
+ "attribute": "checked",
77
+ "reflect": true
102
78
  },
103
- "complexType": {
104
- "original": "{ name: string; value: string }",
105
- "resolved": "{ name: string; value: string; }",
106
- "references": {}
79
+ "tabIndex": {
80
+ "type": "number",
81
+ "mutable": false,
82
+ "complexType": {
83
+ "original": "number",
84
+ "resolved": "number",
85
+ "references": {}
86
+ },
87
+ "required": false,
88
+ "optional": false,
89
+ "docs": {
90
+ "tags": [],
91
+ "text": ""
92
+ },
93
+ "attribute": "tab-index",
94
+ "reflect": false
107
95
  }
108
- }]; }
96
+ };
97
+ }
98
+ static get events() {
99
+ return [{
100
+ "method": "smoothlySelected",
101
+ "name": "smoothlySelected",
102
+ "bubbles": true,
103
+ "cancelable": true,
104
+ "composed": true,
105
+ "docs": {
106
+ "tags": [],
107
+ "text": ""
108
+ },
109
+ "complexType": {
110
+ "original": "{ name: string; value: string }",
111
+ "resolved": "{ name: string; value: string; }",
112
+ "references": {}
113
+ }
114
+ }];
115
+ }
109
116
  }
@@ -1,4 +1,4 @@
1
- import { Component, Event, h, Host, Listen, Prop } from "@stencil/core";
1
+ import { h, Host } from "@stencil/core";
2
2
  export class SmoothlyRadioButton {
3
3
  constructor() {
4
4
  this.decoration = "radio";
@@ -13,92 +13,101 @@ export class SmoothlyRadioButton {
13
13
  }
14
14
  }
15
15
  render() {
16
- return (h(Host, null,
17
- h("slot", null)));
16
+ return (h(Host, null, h("slot", null)));
18
17
  }
19
18
  static get is() { return "smoothly-radio-button"; }
20
19
  static get encapsulation() { return "scoped"; }
21
- static get originalStyleUrls() { return {
22
- "$": ["style.css"]
23
- }; }
24
- static get styleUrls() { return {
25
- "$": ["style.css"]
26
- }; }
27
- static get properties() { return {
28
- "value": {
29
- "type": "any",
30
- "mutable": true,
31
- "complexType": {
32
- "original": "any",
33
- "resolved": "any",
34
- "references": {}
35
- },
36
- "required": false,
37
- "optional": true,
38
- "docs": {
39
- "tags": [],
40
- "text": ""
41
- },
42
- "attribute": "value",
43
- "reflect": false
44
- },
45
- "deselectable": {
46
- "type": "boolean",
47
- "mutable": false,
48
- "complexType": {
49
- "original": "boolean",
50
- "resolved": "boolean | undefined",
51
- "references": {}
52
- },
53
- "required": false,
54
- "optional": true,
55
- "docs": {
56
- "tags": [],
57
- "text": ""
58
- },
59
- "attribute": "deselectable",
60
- "reflect": true
61
- },
62
- "decoration": {
63
- "type": "string",
64
- "mutable": false,
65
- "complexType": {
66
- "original": "\"button\" | \"radio\"",
67
- "resolved": "\"button\" | \"radio\"",
68
- "references": {}
69
- },
70
- "required": false,
71
- "optional": false,
72
- "docs": {
73
- "tags": [],
74
- "text": ""
20
+ static get originalStyleUrls() {
21
+ return {
22
+ "$": ["style.css"]
23
+ };
24
+ }
25
+ static get styleUrls() {
26
+ return {
27
+ "$": ["style.css"]
28
+ };
29
+ }
30
+ static get properties() {
31
+ return {
32
+ "value": {
33
+ "type": "any",
34
+ "mutable": true,
35
+ "complexType": {
36
+ "original": "any",
37
+ "resolved": "any",
38
+ "references": {}
39
+ },
40
+ "required": false,
41
+ "optional": true,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "attribute": "value",
47
+ "reflect": false
75
48
  },
76
- "attribute": "decoration",
77
- "reflect": true,
78
- "defaultValue": "\"radio\""
79
- }
80
- }; }
81
- static get events() { return [{
82
- "method": "radioButtonSelected",
83
- "name": "radioButtonSelected",
84
- "bubbles": true,
85
- "cancelable": true,
86
- "composed": true,
87
- "docs": {
88
- "tags": [],
89
- "text": ""
49
+ "deselectable": {
50
+ "type": "boolean",
51
+ "mutable": false,
52
+ "complexType": {
53
+ "original": "boolean",
54
+ "resolved": "boolean | undefined",
55
+ "references": {}
56
+ },
57
+ "required": false,
58
+ "optional": true,
59
+ "docs": {
60
+ "tags": [],
61
+ "text": ""
62
+ },
63
+ "attribute": "deselectable",
64
+ "reflect": true
90
65
  },
91
- "complexType": {
92
- "original": "any",
93
- "resolved": "any",
94
- "references": {}
66
+ "decoration": {
67
+ "type": "string",
68
+ "mutable": false,
69
+ "complexType": {
70
+ "original": "\"button\" | \"radio\"",
71
+ "resolved": "\"button\" | \"radio\"",
72
+ "references": {}
73
+ },
74
+ "required": false,
75
+ "optional": false,
76
+ "docs": {
77
+ "tags": [],
78
+ "text": ""
79
+ },
80
+ "attribute": "decoration",
81
+ "reflect": true,
82
+ "defaultValue": "\"radio\""
95
83
  }
96
- }]; }
97
- static get listeners() { return [{
98
- "name": "radioItemSelectInternal",
99
- "method": "radioSelectHandler",
100
- "target": undefined,
101
- "capture": true,
102
- "passive": false
103
- }]; }
84
+ };
85
+ }
86
+ static get events() {
87
+ return [{
88
+ "method": "radioButtonSelected",
89
+ "name": "radioButtonSelected",
90
+ "bubbles": true,
91
+ "cancelable": true,
92
+ "composed": true,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": ""
96
+ },
97
+ "complexType": {
98
+ "original": "any",
99
+ "resolved": "any",
100
+ "references": {}
101
+ }
102
+ }];
103
+ }
104
+ static get listeners() {
105
+ return [{
106
+ "name": "radioItemSelectInternal",
107
+ "method": "radioSelectHandler",
108
+ "target": undefined,
109
+ "capture": true,
110
+ "passive": false
111
+ }];
112
+ }
104
113
  }