smoothly 0.3.4 → 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 +18 -13
  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-59c574cb.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Element, Event, h, Prop, State } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import * as translation from "./translation";
3
3
  export class SmoothlyCheckbox {
4
4
  constructor() {
@@ -23,119 +23,129 @@ export class SmoothlyCheckbox {
23
23
  }
24
24
  static get is() { return "smoothly-checkbox"; }
25
25
  static get encapsulation() { return "scoped"; }
26
- static get originalStyleUrls() { return {
27
- "$": ["style.css"]
28
- }; }
29
- static get styleUrls() { return {
30
- "$": ["style.css"]
31
- }; }
32
- static get properties() { return {
33
- "selectAll": {
34
- "type": "boolean",
35
- "mutable": false,
36
- "complexType": {
37
- "original": "boolean",
38
- "resolved": "boolean",
39
- "references": {}
40
- },
41
- "required": false,
42
- "optional": false,
43
- "docs": {
44
- "tags": [],
45
- "text": ""
46
- },
47
- "attribute": "select-all",
48
- "reflect": false,
49
- "defaultValue": "false"
50
- },
51
- "size": {
52
- "type": "string",
53
- "mutable": false,
54
- "complexType": {
55
- "original": "\"tiny\" | \"small\" | \"medium\" | \"large\"",
56
- "resolved": "\"large\" | \"medium\" | \"small\" | \"tiny\"",
57
- "references": {}
58
- },
59
- "required": false,
60
- "optional": false,
61
- "docs": {
62
- "tags": [],
63
- "text": ""
64
- },
65
- "attribute": "size",
66
- "reflect": false,
67
- "defaultValue": "\"small\""
68
- },
69
- "intermediate": {
70
- "type": "boolean",
71
- "mutable": true,
72
- "complexType": {
73
- "original": "boolean",
74
- "resolved": "boolean",
75
- "references": {}
76
- },
77
- "required": false,
78
- "optional": false,
79
- "docs": {
80
- "tags": [],
81
- "text": ""
82
- },
83
- "attribute": "intermediate",
84
- "reflect": true
85
- },
86
- "selected": {
87
- "type": "boolean",
88
- "mutable": true,
89
- "complexType": {
90
- "original": "boolean",
91
- "resolved": "boolean",
92
- "references": {}
93
- },
94
- "required": false,
95
- "optional": false,
96
- "docs": {
97
- "tags": [],
98
- "text": ""
26
+ static get originalStyleUrls() {
27
+ return {
28
+ "$": ["style.css"]
29
+ };
30
+ }
31
+ static get styleUrls() {
32
+ return {
33
+ "$": ["style.css"]
34
+ };
35
+ }
36
+ static get properties() {
37
+ return {
38
+ "selectAll": {
39
+ "type": "boolean",
40
+ "mutable": false,
41
+ "complexType": {
42
+ "original": "boolean",
43
+ "resolved": "boolean",
44
+ "references": {}
45
+ },
46
+ "required": false,
47
+ "optional": false,
48
+ "docs": {
49
+ "tags": [],
50
+ "text": ""
51
+ },
52
+ "attribute": "select-all",
53
+ "reflect": false,
54
+ "defaultValue": "false"
99
55
  },
100
- "attribute": "selected",
101
- "reflect": true
102
- },
103
- "disabled": {
104
- "type": "boolean",
105
- "mutable": true,
106
- "complexType": {
107
- "original": "boolean",
108
- "resolved": "boolean",
109
- "references": {}
56
+ "size": {
57
+ "type": "string",
58
+ "mutable": false,
59
+ "complexType": {
60
+ "original": "\"tiny\" | \"small\" | \"medium\" | \"large\"",
61
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"tiny\"",
62
+ "references": {}
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": ""
69
+ },
70
+ "attribute": "size",
71
+ "reflect": false,
72
+ "defaultValue": "\"small\""
110
73
  },
111
- "required": false,
112
- "optional": false,
113
- "docs": {
114
- "tags": [],
115
- "text": ""
74
+ "intermediate": {
75
+ "type": "boolean",
76
+ "mutable": true,
77
+ "complexType": {
78
+ "original": "boolean",
79
+ "resolved": "boolean",
80
+ "references": {}
81
+ },
82
+ "required": false,
83
+ "optional": false,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": ""
87
+ },
88
+ "attribute": "intermediate",
89
+ "reflect": true
116
90
  },
117
- "attribute": "disabled",
118
- "reflect": true
119
- }
120
- }; }
121
- static get states() { return {
122
- "t": {}
123
- }; }
124
- static get events() { return [{
125
- "method": "checked",
126
- "name": "checked",
127
- "bubbles": true,
128
- "cancelable": true,
129
- "composed": true,
130
- "docs": {
131
- "tags": [],
132
- "text": ""
91
+ "selected": {
92
+ "type": "boolean",
93
+ "mutable": true,
94
+ "complexType": {
95
+ "original": "boolean",
96
+ "resolved": "boolean",
97
+ "references": {}
98
+ },
99
+ "required": false,
100
+ "optional": false,
101
+ "docs": {
102
+ "tags": [],
103
+ "text": ""
104
+ },
105
+ "attribute": "selected",
106
+ "reflect": true
133
107
  },
134
- "complexType": {
135
- "original": "{ selected: boolean }",
136
- "resolved": "{ selected: boolean; }",
137
- "references": {}
108
+ "disabled": {
109
+ "type": "boolean",
110
+ "mutable": true,
111
+ "complexType": {
112
+ "original": "boolean",
113
+ "resolved": "boolean",
114
+ "references": {}
115
+ },
116
+ "required": false,
117
+ "optional": false,
118
+ "docs": {
119
+ "tags": [],
120
+ "text": ""
121
+ },
122
+ "attribute": "disabled",
123
+ "reflect": true
138
124
  }
139
- }]; }
125
+ };
126
+ }
127
+ static get states() {
128
+ return {
129
+ "t": {}
130
+ };
131
+ }
132
+ static get events() {
133
+ return [{
134
+ "method": "checked",
135
+ "name": "checked",
136
+ "bubbles": true,
137
+ "cancelable": true,
138
+ "composed": true,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": ""
142
+ },
143
+ "complexType": {
144
+ "original": "{ selected: boolean }",
145
+ "resolved": "{ selected: boolean; }",
146
+ "references": {}
147
+ }
148
+ }];
149
+ }
140
150
  static get elementRef() { return "element"; }
141
151
  }
@@ -1,4 +1,4 @@
1
- import { Component, h, Listen, Prop } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { Trigger } from "../../model";
3
3
  export class SmoothlyDialog {
4
4
  constructor() {
@@ -18,104 +18,108 @@ export class SmoothlyDialog {
18
18
  }
19
19
  render() {
20
20
  return [
21
- h("header", null,
22
- this.closable ? (h("smoothly-trigger", { fill: "clear", name: "close" },
23
- h("smoothly-icon", { name: "close-circle", fill: "solid", color: this.color }))) : ([]),
24
- this.header ? h("h1", null, this.header) : h("slot", { name: "header" })),
25
- h("main", null,
26
- h("slot", null)),
21
+ h("header", null, this.closable ? (h("smoothly-trigger", { fill: "clear", name: "close" }, h("smoothly-icon", { name: "close-circle", fill: "solid", color: this.color }))) : ([]), this.header ? h("h1", null, this.header) : h("slot", { name: "header" })),
22
+ h("main", null, h("slot", null)),
27
23
  ];
28
24
  }
29
25
  static get is() { return "smoothly-dialog"; }
30
26
  static get encapsulation() { return "scoped"; }
31
- static get originalStyleUrls() { return {
32
- "$": ["style.css"]
33
- }; }
34
- static get styleUrls() { return {
35
- "$": ["style.css"]
36
- }; }
37
- static get properties() { return {
38
- "color": {
39
- "type": "string",
40
- "mutable": false,
41
- "complexType": {
42
- "original": "Color | undefined",
43
- "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
44
- "references": {
45
- "Color": {
46
- "location": "import",
47
- "path": "../../model"
27
+ static get originalStyleUrls() {
28
+ return {
29
+ "$": ["style.css"]
30
+ };
31
+ }
32
+ static get styleUrls() {
33
+ return {
34
+ "$": ["style.css"]
35
+ };
36
+ }
37
+ static get properties() {
38
+ return {
39
+ "color": {
40
+ "type": "string",
41
+ "mutable": false,
42
+ "complexType": {
43
+ "original": "Color | undefined",
44
+ "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
45
+ "references": {
46
+ "Color": {
47
+ "location": "import",
48
+ "path": "../../model"
49
+ }
48
50
  }
49
- }
50
- },
51
- "required": false,
52
- "optional": false,
53
- "docs": {
54
- "tags": [],
55
- "text": ""
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": ""
57
+ },
58
+ "attribute": "color",
59
+ "reflect": true
56
60
  },
57
- "attribute": "color",
58
- "reflect": true
59
- },
60
- "open": {
61
- "type": "boolean",
62
- "mutable": true,
63
- "complexType": {
64
- "original": "boolean",
65
- "resolved": "boolean",
66
- "references": {}
61
+ "open": {
62
+ "type": "boolean",
63
+ "mutable": true,
64
+ "complexType": {
65
+ "original": "boolean",
66
+ "resolved": "boolean",
67
+ "references": {}
68
+ },
69
+ "required": false,
70
+ "optional": false,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": ""
74
+ },
75
+ "attribute": "open",
76
+ "reflect": true,
77
+ "defaultValue": "true"
67
78
  },
68
- "required": false,
69
- "optional": false,
70
- "docs": {
71
- "tags": [],
72
- "text": ""
79
+ "closable": {
80
+ "type": "boolean",
81
+ "mutable": false,
82
+ "complexType": {
83
+ "original": "boolean",
84
+ "resolved": "boolean",
85
+ "references": {}
86
+ },
87
+ "required": false,
88
+ "optional": false,
89
+ "docs": {
90
+ "tags": [],
91
+ "text": ""
92
+ },
93
+ "attribute": "closable",
94
+ "reflect": true,
95
+ "defaultValue": "false"
73
96
  },
74
- "attribute": "open",
75
- "reflect": true,
76
- "defaultValue": "true"
77
- },
78
- "closable": {
79
- "type": "boolean",
80
- "mutable": false,
81
- "complexType": {
82
- "original": "boolean",
83
- "resolved": "boolean",
84
- "references": {}
85
- },
86
- "required": false,
87
- "optional": false,
88
- "docs": {
89
- "tags": [],
90
- "text": ""
91
- },
92
- "attribute": "closable",
93
- "reflect": true,
94
- "defaultValue": "false"
95
- },
96
- "header": {
97
- "type": "string",
98
- "mutable": false,
99
- "complexType": {
100
- "original": "string | undefined",
101
- "resolved": "string | undefined",
102
- "references": {}
103
- },
104
- "required": false,
105
- "optional": false,
106
- "docs": {
107
- "tags": [],
108
- "text": ""
109
- },
110
- "attribute": "header",
111
- "reflect": true
112
- }
113
- }; }
114
- static get listeners() { return [{
115
- "name": "trigger",
116
- "method": "TriggerListener",
117
- "target": undefined,
118
- "capture": false,
119
- "passive": false
120
- }]; }
97
+ "header": {
98
+ "type": "string",
99
+ "mutable": false,
100
+ "complexType": {
101
+ "original": "string | undefined",
102
+ "resolved": "string | undefined",
103
+ "references": {}
104
+ },
105
+ "required": false,
106
+ "optional": false,
107
+ "docs": {
108
+ "tags": [],
109
+ "text": ""
110
+ },
111
+ "attribute": "header",
112
+ "reflect": true
113
+ }
114
+ };
115
+ }
116
+ static get listeners() {
117
+ return [{
118
+ "name": "trigger",
119
+ "method": "TriggerListener",
120
+ "target": undefined,
121
+ "capture": false,
122
+ "passive": false
123
+ }];
124
+ }
121
125
  }
@@ -1,8 +1,7 @@
1
- import { Component, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  export class SmoothlyDialogDemo {
3
3
  render() {
4
- return (h("smoothly-dialog", { color: "default", style: { "margin-top": "6vh" }, closable: true },
5
- h("smoothly-frame", { url: "https://www.wikipedia.org/", name: "parent", style: { height: "80vh" } })));
4
+ return (h("smoothly-dialog", { color: "default", style: { "margin-top": "6vh" }, closable: true }, h("smoothly-frame", { url: "https://www.wikipedia.org/", name: "parent", style: { height: "80vh" } })));
6
5
  }
7
6
  static get is() { return "smoothly-dialog-demo"; }
8
7
  }