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, h, Listen, Prop, Watch } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  export class SmoothlyAccordion {
3
3
  constructor() {
4
4
  this.items = [];
@@ -39,59 +39,69 @@ export class SmoothlyAccordion {
39
39
  }
40
40
  static get is() { return "smoothly-accordion"; }
41
41
  static get encapsulation() { return "scoped"; }
42
- static get originalStyleUrls() { return {
43
- "$": ["style.css"]
44
- }; }
45
- static get styleUrls() { return {
46
- "$": ["style.css"]
47
- }; }
48
- static get properties() { return {
49
- "value": {
50
- "type": "string",
51
- "mutable": true,
52
- "complexType": {
53
- "original": "string",
54
- "resolved": "string | undefined",
55
- "references": {}
56
- },
57
- "required": false,
58
- "optional": true,
59
- "docs": {
60
- "tags": [],
61
- "text": ""
62
- },
63
- "attribute": "value",
64
- "reflect": false
65
- }
66
- }; }
42
+ static get originalStyleUrls() {
43
+ return {
44
+ "$": ["style.css"]
45
+ };
46
+ }
47
+ static get styleUrls() {
48
+ return {
49
+ "$": ["style.css"]
50
+ };
51
+ }
52
+ static get properties() {
53
+ return {
54
+ "value": {
55
+ "type": "string",
56
+ "mutable": true,
57
+ "complexType": {
58
+ "original": "string",
59
+ "resolved": "string | undefined",
60
+ "references": {}
61
+ },
62
+ "required": false,
63
+ "optional": true,
64
+ "docs": {
65
+ "tags": [],
66
+ "text": ""
67
+ },
68
+ "attribute": "value",
69
+ "reflect": false
70
+ }
71
+ };
72
+ }
67
73
  static get elementRef() { return "me"; }
68
- static get watchers() { return [{
69
- "propName": "value",
70
- "methodName": "valueChanged"
71
- }]; }
72
- static get listeners() { return [{
73
- "name": "smoothlyOpen",
74
- "method": "handleOpenClose",
75
- "target": undefined,
76
- "capture": false,
77
- "passive": false
78
- }, {
79
- "name": "smoothlyClose",
80
- "method": "handleOpenClose",
81
- "target": undefined,
82
- "capture": false,
83
- "passive": false
84
- }, {
85
- "name": "smoothlyAccordionItemDidLoad",
86
- "method": "onAccordionItemDidLoad",
87
- "target": undefined,
88
- "capture": false,
89
- "passive": false
90
- }, {
91
- "name": "smoothlyAccordionItemDidUnload",
92
- "method": "onAccordionItemDidUnload",
93
- "target": undefined,
94
- "capture": false,
95
- "passive": false
96
- }]; }
74
+ static get watchers() {
75
+ return [{
76
+ "propName": "value",
77
+ "methodName": "valueChanged"
78
+ }];
79
+ }
80
+ static get listeners() {
81
+ return [{
82
+ "name": "smoothlyOpen",
83
+ "method": "handleOpenClose",
84
+ "target": undefined,
85
+ "capture": false,
86
+ "passive": false
87
+ }, {
88
+ "name": "smoothlyClose",
89
+ "method": "handleOpenClose",
90
+ "target": undefined,
91
+ "capture": false,
92
+ "passive": false
93
+ }, {
94
+ "name": "smoothlyAccordionItemDidLoad",
95
+ "method": "onAccordionItemDidLoad",
96
+ "target": undefined,
97
+ "capture": false,
98
+ "passive": false
99
+ }, {
100
+ "name": "smoothlyAccordionItemDidUnload",
101
+ "method": "onAccordionItemDidUnload",
102
+ "target": undefined,
103
+ "capture": false,
104
+ "passive": false
105
+ }];
106
+ }
97
107
  }
@@ -1,4 +1,4 @@
1
- import { Component, Element, Event, h, Prop, Watch } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  export class SmoothlyAccordionItem {
3
3
  openChanged(isChecked) {
4
4
  this.open = isChecked;
@@ -28,141 +28,143 @@ export class SmoothlyAccordionItem {
28
28
  this.smoothlyAccordionItemDidUnload.emit();
29
29
  }
30
30
  render() {
31
- return (h("details", { open: this.open },
32
- h("summary", null,
33
- this.open ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
34
- h("path", { d: "M256 48C141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208S370.4 48 256 48zm-42.7 318.9L106.7 260.3l29.9-29.9 76.8 76.8 162.1-162.1 29.9 29.9-192.1 191.9z" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
35
- h("path", { d: "M256 48C141.601 48 48 141.601 48 256s93.601 208 208 208 208-93.601 208-208S370.399 48 256 48zm0 374.399c-91.518 0-166.399-74.882-166.399-166.399S164.482 89.6 256 89.6 422.4 164.482 422.4 256 347.518 422.399 256 422.399z" }))),
36
- this.name,
37
- typeof this.brand == "string" ? (h("span", { class: this.brand.toLowerCase() }, this.brand)) : Array.isArray(this.brand) ? (this.brand.map(b => h("span", { class: b.toLowerCase() }, b))) : ([])),
38
- h("fieldset", { disabled: !this.open, name: this.name },
39
- h("slot", null))));
31
+ return (h("details", { open: this.open }, h("summary", null, this.open ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 48C141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208S370.4 48 256 48zm-42.7 318.9L106.7 260.3l29.9-29.9 76.8 76.8 162.1-162.1 29.9 29.9-192.1 191.9z" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 48C141.601 48 48 141.601 48 256s93.601 208 208 208 208-93.601 208-208S370.399 48 256 48zm0 374.399c-91.518 0-166.399-74.882-166.399-166.399S164.482 89.6 256 89.6 422.4 164.482 422.4 256 347.518 422.399 256 422.399z" }))), this.name, typeof this.brand == "string" ? (h("span", { class: this.brand.toLowerCase() }, this.brand)) : Array.isArray(this.brand) ? (this.brand.map(b => h("span", { class: b.toLowerCase() }, b))) : ([])), h("fieldset", { disabled: !this.open, name: this.name }, h("slot", null))));
40
32
  }
41
33
  static get is() { return "smoothly-accordion-item"; }
42
34
  static get encapsulation() { return "scoped"; }
43
- static get originalStyleUrls() { return {
44
- "$": ["style.css"]
45
- }; }
46
- static get styleUrls() { return {
47
- "$": ["style.css"]
48
- }; }
49
- static get properties() { return {
50
- "name": {
51
- "type": "string",
52
- "mutable": false,
53
- "complexType": {
54
- "original": "string",
55
- "resolved": "string",
56
- "references": {}
57
- },
58
- "required": false,
59
- "optional": false,
60
- "docs": {
61
- "tags": [],
62
- "text": ""
63
- },
64
- "attribute": "name",
65
- "reflect": false
66
- },
67
- "brand": {
68
- "type": "string",
69
- "mutable": false,
70
- "complexType": {
71
- "original": "string | string[]",
72
- "resolved": "string | string[] | undefined",
73
- "references": {}
74
- },
75
- "required": false,
76
- "optional": true,
77
- "docs": {
78
- "tags": [],
79
- "text": ""
80
- },
81
- "attribute": "brand",
82
- "reflect": false
83
- },
84
- "open": {
85
- "type": "boolean",
86
- "mutable": true,
87
- "complexType": {
88
- "original": "boolean",
89
- "resolved": "boolean | undefined",
90
- "references": {}
91
- },
92
- "required": false,
93
- "optional": true,
94
- "docs": {
95
- "tags": [],
96
- "text": ""
97
- },
98
- "attribute": "open",
99
- "reflect": true
100
- }
101
- }; }
102
- static get events() { return [{
103
- "method": "smoothlyAccordionItemDidLoad",
104
- "name": "smoothlyAccordionItemDidLoad",
105
- "bubbles": true,
106
- "cancelable": true,
107
- "composed": true,
108
- "docs": {
109
- "tags": [],
110
- "text": ""
111
- },
112
- "complexType": {
113
- "original": "void",
114
- "resolved": "void",
115
- "references": {}
116
- }
117
- }, {
118
- "method": "smoothlyAccordionItemDidUnload",
119
- "name": "smoothlyAccordionItemDidUnload",
120
- "bubbles": true,
121
- "cancelable": true,
122
- "composed": true,
123
- "docs": {
124
- "tags": [],
125
- "text": ""
126
- },
127
- "complexType": {
128
- "original": "void",
129
- "resolved": "void",
130
- "references": {}
131
- }
132
- }, {
133
- "method": "smoothlyOpen",
134
- "name": "smoothlyOpen",
135
- "bubbles": true,
136
- "cancelable": true,
137
- "composed": true,
138
- "docs": {
139
- "tags": [],
140
- "text": ""
35
+ static get originalStyleUrls() {
36
+ return {
37
+ "$": ["style.css"]
38
+ };
39
+ }
40
+ static get styleUrls() {
41
+ return {
42
+ "$": ["style.css"]
43
+ };
44
+ }
45
+ static get properties() {
46
+ return {
47
+ "name": {
48
+ "type": "string",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "string",
52
+ "resolved": "string",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": ""
60
+ },
61
+ "attribute": "name",
62
+ "reflect": false
141
63
  },
142
- "complexType": {
143
- "original": "{ name: string; open: boolean }",
144
- "resolved": "{ name: string; open: boolean; }",
145
- "references": {}
146
- }
147
- }, {
148
- "method": "smoothlyClose",
149
- "name": "smoothlyClose",
150
- "bubbles": true,
151
- "cancelable": true,
152
- "composed": true,
153
- "docs": {
154
- "tags": [],
155
- "text": ""
64
+ "brand": {
65
+ "type": "string",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "string | string[]",
69
+ "resolved": "string | string[] | undefined",
70
+ "references": {}
71
+ },
72
+ "required": false,
73
+ "optional": true,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": ""
77
+ },
78
+ "attribute": "brand",
79
+ "reflect": false
156
80
  },
157
- "complexType": {
158
- "original": "{ name: string; open: boolean }",
159
- "resolved": "{ name: string; open: boolean; }",
160
- "references": {}
81
+ "open": {
82
+ "type": "boolean",
83
+ "mutable": true,
84
+ "complexType": {
85
+ "original": "boolean",
86
+ "resolved": "boolean | undefined",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": true,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": ""
94
+ },
95
+ "attribute": "open",
96
+ "reflect": true
161
97
  }
162
- }]; }
98
+ };
99
+ }
100
+ static get events() {
101
+ return [{
102
+ "method": "smoothlyAccordionItemDidLoad",
103
+ "name": "smoothlyAccordionItemDidLoad",
104
+ "bubbles": true,
105
+ "cancelable": true,
106
+ "composed": true,
107
+ "docs": {
108
+ "tags": [],
109
+ "text": ""
110
+ },
111
+ "complexType": {
112
+ "original": "void",
113
+ "resolved": "void",
114
+ "references": {}
115
+ }
116
+ }, {
117
+ "method": "smoothlyAccordionItemDidUnload",
118
+ "name": "smoothlyAccordionItemDidUnload",
119
+ "bubbles": true,
120
+ "cancelable": true,
121
+ "composed": true,
122
+ "docs": {
123
+ "tags": [],
124
+ "text": ""
125
+ },
126
+ "complexType": {
127
+ "original": "void",
128
+ "resolved": "void",
129
+ "references": {}
130
+ }
131
+ }, {
132
+ "method": "smoothlyOpen",
133
+ "name": "smoothlyOpen",
134
+ "bubbles": true,
135
+ "cancelable": true,
136
+ "composed": true,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": ""
140
+ },
141
+ "complexType": {
142
+ "original": "{ name: string; open: boolean }",
143
+ "resolved": "{ name: string; open: boolean; }",
144
+ "references": {}
145
+ }
146
+ }, {
147
+ "method": "smoothlyClose",
148
+ "name": "smoothlyClose",
149
+ "bubbles": true,
150
+ "cancelable": true,
151
+ "composed": true,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": ""
155
+ },
156
+ "complexType": {
157
+ "original": "{ name: string; open: boolean }",
158
+ "resolved": "{ name: string; open: boolean; }",
159
+ "references": {}
160
+ }
161
+ }];
162
+ }
163
163
  static get elementRef() { return "me"; }
164
- static get watchers() { return [{
165
- "propName": "open",
166
- "methodName": "openChanged"
167
- }]; }
164
+ static get watchers() {
165
+ return [{
166
+ "propName": "open",
167
+ "methodName": "openChanged"
168
+ }];
169
+ }
168
170
  }
@@ -1,38 +1,43 @@
1
- import { Component, h, Prop } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  export class SmoothlyApp {
3
3
  render() {
4
- return (h("smoothly-notifier", null,
5
- h("slot", null)));
4
+ return (h("smoothly-notifier", null, h("slot", null)));
6
5
  }
7
6
  static get is() { return "smoothly-app"; }
8
- static get originalStyleUrls() { return {
9
- "$": ["style.css"]
10
- }; }
11
- static get styleUrls() { return {
12
- "$": ["style.css"]
13
- }; }
14
- static get properties() { return {
15
- "color": {
16
- "type": "string",
17
- "mutable": false,
18
- "complexType": {
19
- "original": "Color",
20
- "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\"",
21
- "references": {
22
- "Color": {
23
- "location": "import",
24
- "path": "../../model"
7
+ static get originalStyleUrls() {
8
+ return {
9
+ "$": ["style.css"]
10
+ };
11
+ }
12
+ static get styleUrls() {
13
+ return {
14
+ "$": ["style.css"]
15
+ };
16
+ }
17
+ static get properties() {
18
+ return {
19
+ "color": {
20
+ "type": "string",
21
+ "mutable": false,
22
+ "complexType": {
23
+ "original": "Color",
24
+ "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\"",
25
+ "references": {
26
+ "Color": {
27
+ "location": "import",
28
+ "path": "../../model"
29
+ }
25
30
  }
26
- }
27
- },
28
- "required": false,
29
- "optional": false,
30
- "docs": {
31
- "tags": [],
32
- "text": ""
33
- },
34
- "attribute": "color",
35
- "reflect": false
36
- }
37
- }; }
31
+ },
32
+ "required": false,
33
+ "optional": false,
34
+ "docs": {
35
+ "tags": [],
36
+ "text": ""
37
+ },
38
+ "attribute": "color",
39
+ "reflect": false
40
+ }
41
+ };
42
+ }
38
43
  }
@@ -1,75 +1,46 @@
1
- import { Component, h, Prop } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { redirect } from "../../index";
3
3
  import { App } from "../App";
4
4
  export class SmoothlyAppDemo {
5
5
  render() {
6
- return (h(App, { label: "Smoothly Demo" },
7
- h("a", { slot: "nav-start", href: "display" }, "Display"),
8
- h("a", { slot: "nav-start", href: "https://google.com" }, "External"),
9
- h("smoothly-room", { path: "" },
10
- h("smoothly-input", { type: "text" }, "Default"),
11
- h("div", { style: { padding: "1em", maxWidth: "12em" } },
12
- h("smoothly-button", { fill: "solid", color: "danger", link: "https://google.com" }, "open"),
13
- h("smoothly-button", { fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", download: true }, "download"),
14
- h("smoothly-button", { fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"),
15
- h("smoothly-button", { type: "link", fill: "clear", color: "danger", onClick: () => alert("clicked") }, "action link"))),
16
- h("smoothly-room", { path: "input", label: "Input" },
17
- h("smoothly-input-demo", null)),
18
- h("smoothly-room", { path: "dialog", label: "Dialog" },
19
- h("smoothly-dialog-demo", null)),
20
- h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" },
21
- h("smoothly-display-demo", null)),
22
- h("smoothly-room", { path: "table", label: "Table" },
23
- h("smoothly-table-demo", null)),
24
- h("smoothly-room", { path: "select", label: "Select" },
25
- h("smoothly-select-demo", null)),
26
- h("smoothly-room", { path: "icon", label: "Icon" },
27
- h("smoothly-icon-demo", null)),
28
- h("smoothly-room", { path: "/redirect", label: "Redirect" },
29
- h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
30
- redirect("/routing/pathParameter1");
31
- } }, "Internal"),
32
- h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
33
- redirect("https://google.com");
34
- } }, "External")),
35
- h("smoothly-room", { path: /^\/routing\/\w+\/?/, label: "No effect" },
36
- h("h2", null, "Regex routing")),
37
- h("smoothly-room", { path: "old", label: "Old", to: "select" }),
38
- h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } },
39
- h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
40
- { name: "Big Dog", value: "dog", aliases: ["WOFF"] },
41
- { name: "Cat Stevens", value: "cat", aliases: ["moew"], hint: "moew 🐈" },
42
- { name: "Noble Pig", value: "pig", hint: "🐷" },
43
- { name: "Turtle Wax", value: "turtle" },
44
- { name: "Spider Man", value: "spider" },
45
- { name: "Phoenix Order Long Wooord", value: "phoenix" },
46
- { name: "Horse Back", value: "horse" },
47
- { name: "Unicorn Horn", value: "unicorn" },
48
- { name: "Talking Parrot Parrot", value: "parrot" },
49
- { name: "Hidden Dragon", value: "dragon" },
50
- { name: "Scary Kraken", value: "kraken" },
51
- ] })),
52
- h("smoothly-trigger", { slot: "header", type: "link", name: "logout" },
53
- h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
6
+ return (h(App, { label: "Smoothly Demo" }, h("a", { slot: "nav-start", href: "display" }, "Display"), h("a", { slot: "nav-start", href: "https://google.com" }, "External"), h("smoothly-room", { path: "" }, h("smoothly-input", { type: "text" }, "Default"), h("div", { style: { padding: "1em", maxWidth: "12em" } }, h("smoothly-button", { fill: "solid", color: "danger", link: "https://google.com" }, "open"), h("smoothly-button", { fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", download: true }, "download"), h("smoothly-button", { fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), h("smoothly-button", { type: "link", fill: "clear", color: "danger", onClick: () => alert("clicked") }, "action link"))), h("smoothly-room", { path: "input", label: "Input" }, h("smoothly-input-demo", null)), h("smoothly-room", { path: "dialog", label: "Dialog" }, h("smoothly-dialog-demo", null)), h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" }, h("smoothly-display-demo", null)), h("smoothly-room", { path: "table", label: "Table" }, h("smoothly-table-demo", null)), h("smoothly-room", { path: "select", label: "Select" }, h("smoothly-select-demo", null)), h("smoothly-room", { path: "icon", label: "Icon" }, h("smoothly-icon-demo", null)), h("smoothly-room", { path: "/redirect", label: "Redirect" }, h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
7
+ redirect("/routing/pathParameter1");
8
+ } }, "Internal"), h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
9
+ redirect("https://google.com");
10
+ } }, "External")), h("smoothly-room", { path: /^\/routing\/\w+\/?/, label: "No effect" }, h("h2", null, "Regex routing")), h("smoothly-room", { path: "old", label: "Old", to: "select" }), h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } }, h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
11
+ { name: "Big Dog", value: "dog", aliases: ["WOFF"] },
12
+ { name: "Cat Stevens", value: "cat", aliases: ["moew"], hint: "moew 🐈" },
13
+ { name: "Noble Pig", value: "pig", hint: "🐷" },
14
+ { name: "Turtle Wax", value: "turtle" },
15
+ { name: "Spider Man", value: "spider" },
16
+ { name: "Phoenix Order Long Wooord", value: "phoenix" },
17
+ { name: "Horse Back", value: "horse" },
18
+ { name: "Unicorn Horn", value: "unicorn" },
19
+ { name: "Talking Parrot Parrot", value: "parrot" },
20
+ { name: "Hidden Dragon", value: "dragon" },
21
+ { name: "Scary Kraken", value: "kraken" },
22
+ ] })), h("smoothly-trigger", { slot: "header", type: "link", name: "logout" }, h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
54
23
  }
55
24
  static get is() { return "smoothly-app-demo"; }
56
- static get properties() { return {
57
- "baseUrl": {
58
- "type": "string",
59
- "mutable": false,
60
- "complexType": {
61
- "original": "string",
62
- "resolved": "string",
63
- "references": {}
64
- },
65
- "required": false,
66
- "optional": false,
67
- "docs": {
68
- "tags": [],
69
- "text": ""
70
- },
71
- "attribute": "base-url",
72
- "reflect": false
73
- }
74
- }; }
25
+ static get properties() {
26
+ return {
27
+ "baseUrl": {
28
+ "type": "string",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "string",
32
+ "resolved": "string",
33
+ "references": {}
34
+ },
35
+ "required": false,
36
+ "optional": false,
37
+ "docs": {
38
+ "tags": [],
39
+ "text": ""
40
+ },
41
+ "attribute": "base-url",
42
+ "reflect": false
43
+ }
44
+ };
45
+ }
75
46
  }