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, Prop, Watch } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { Date } from "isoly";
3
3
  import * as generate from "../calendar/generate";
4
4
  export class MonthSelector {
@@ -14,69 +14,77 @@ export class MonthSelector {
14
14
  render() {
15
15
  var _a, _b;
16
16
  return [
17
- h("div", { onClick: () => this.adjustMonth(-1) },
18
- h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
17
+ h("div", { onClick: () => this.adjustMonth(-1) }, h("smoothly-icon", { name: "chevron-back-outline", size: "small" })),
19
18
  h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, generate.years((_a = this.value) !== null && _a !== void 0 ? _a : Date.now()).map(year => (h("smoothly-item", { value: year.date, selected: year.selected }, year.name)))),
20
19
  h("smoothly-selector", { onSelected: (e) => (this.value = e.detail) }, generate.months((_b = this.value) !== null && _b !== void 0 ? _b : Date.now()).map(month => (h("smoothly-item", { value: month.date, selected: month.selected }, month.name)))),
21
- h("div", { onClick: () => this.adjustMonth(1) },
22
- h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
20
+ h("div", { onClick: () => this.adjustMonth(1) }, h("smoothly-icon", { name: "chevron-forward-outline", size: "small" })),
23
21
  ];
24
22
  }
25
23
  static get is() { return "smoothly-input-month"; }
26
24
  static get encapsulation() { return "scoped"; }
27
- static get originalStyleUrls() { return {
28
- "$": ["style.css"]
29
- }; }
30
- static get styleUrls() { return {
31
- "$": ["style.css"]
32
- }; }
33
- static get properties() { return {
34
- "value": {
35
- "type": "string",
36
- "mutable": true,
37
- "complexType": {
38
- "original": "Date",
39
- "resolved": "string | undefined",
40
- "references": {
41
- "Date": {
42
- "location": "import",
43
- "path": "isoly"
25
+ static get originalStyleUrls() {
26
+ return {
27
+ "$": ["style.css"]
28
+ };
29
+ }
30
+ static get styleUrls() {
31
+ return {
32
+ "$": ["style.css"]
33
+ };
34
+ }
35
+ static get properties() {
36
+ return {
37
+ "value": {
38
+ "type": "string",
39
+ "mutable": true,
40
+ "complexType": {
41
+ "original": "Date",
42
+ "resolved": "string | undefined",
43
+ "references": {
44
+ "Date": {
45
+ "location": "import",
46
+ "path": "isoly"
47
+ }
44
48
  }
45
- }
46
- },
47
- "required": false,
48
- "optional": true,
49
- "docs": {
50
- "tags": [],
51
- "text": ""
52
- },
53
- "attribute": "value",
54
- "reflect": false
55
- }
56
- }; }
57
- static get events() { return [{
58
- "method": "valueChanged",
59
- "name": "valueChanged",
60
- "bubbles": true,
61
- "cancelable": true,
62
- "composed": true,
63
- "docs": {
64
- "tags": [],
65
- "text": ""
66
- },
67
- "complexType": {
68
- "original": "Date",
69
- "resolved": "string",
70
- "references": {
71
- "Date": {
72
- "location": "import",
73
- "path": "isoly"
49
+ },
50
+ "required": false,
51
+ "optional": true,
52
+ "docs": {
53
+ "tags": [],
54
+ "text": ""
55
+ },
56
+ "attribute": "value",
57
+ "reflect": false
58
+ }
59
+ };
60
+ }
61
+ static get events() {
62
+ return [{
63
+ "method": "valueChanged",
64
+ "name": "valueChanged",
65
+ "bubbles": true,
66
+ "cancelable": true,
67
+ "composed": true,
68
+ "docs": {
69
+ "tags": [],
70
+ "text": ""
71
+ },
72
+ "complexType": {
73
+ "original": "Date",
74
+ "resolved": "string",
75
+ "references": {
76
+ "Date": {
77
+ "location": "import",
78
+ "path": "isoly"
79
+ }
74
80
  }
75
81
  }
76
- }
77
- }]; }
78
- static get watchers() { return [{
79
- "propName": "value",
80
- "methodName": "onValueChanged"
81
- }]; }
82
+ }];
83
+ }
84
+ static get watchers() {
85
+ return [{
86
+ "propName": "value",
87
+ "methodName": "onValueChanged"
88
+ }];
89
+ }
82
90
  }
@@ -1,4 +1,4 @@
1
- import { Component, Element, Event, h, Listen, Method, Prop, Watch } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  export class Item {
3
3
  onSelectedChanged(value, old) {
4
4
  if (value && !old)
@@ -24,95 +24,109 @@ export class Item {
24
24
  }
25
25
  static get is() { return "smoothly-item"; }
26
26
  static get encapsulation() { return "scoped"; }
27
- static get originalStyleUrls() { return {
28
- "$": ["style.css"]
29
- }; }
30
- static get styleUrls() { return {
31
- "$": ["style.css"]
32
- }; }
33
- static get properties() { return {
34
- "value": {
35
- "type": "any",
36
- "mutable": false,
37
- "complexType": {
38
- "original": "any",
39
- "resolved": "any",
40
- "references": {}
41
- },
42
- "required": false,
43
- "optional": false,
44
- "docs": {
45
- "tags": [],
46
- "text": ""
47
- },
48
- "attribute": "value",
49
- "reflect": false
50
- },
51
- "selected": {
52
- "type": "boolean",
53
- "mutable": true,
54
- "complexType": {
55
- "original": "boolean",
56
- "resolved": "boolean",
57
- "references": {}
58
- },
59
- "required": false,
60
- "optional": false,
61
- "docs": {
62
- "tags": [],
63
- "text": ""
64
- },
65
- "attribute": "selected",
66
- "reflect": true
67
- }
68
- }; }
69
- static get events() { return [{
70
- "method": "itemSelected",
71
- "name": "itemSelected",
72
- "bubbles": true,
73
- "cancelable": true,
74
- "composed": true,
75
- "docs": {
76
- "tags": [],
77
- "text": ""
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
+ "value": {
40
+ "type": "any",
41
+ "mutable": false,
42
+ "complexType": {
43
+ "original": "any",
44
+ "resolved": "any",
45
+ "references": {}
46
+ },
47
+ "required": false,
48
+ "optional": false,
49
+ "docs": {
50
+ "tags": [],
51
+ "text": ""
52
+ },
53
+ "attribute": "value",
54
+ "reflect": false
78
55
  },
79
- "complexType": {
80
- "original": "void",
81
- "resolved": "void",
82
- "references": {}
56
+ "selected": {
57
+ "type": "boolean",
58
+ "mutable": true,
59
+ "complexType": {
60
+ "original": "boolean",
61
+ "resolved": "boolean",
62
+ "references": {}
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": ""
69
+ },
70
+ "attribute": "selected",
71
+ "reflect": true
83
72
  }
84
- }]; }
85
- static get methods() { return {
86
- "filter": {
87
- "complexType": {
88
- "signature": "(filter: string) => Promise<boolean>",
89
- "parameters": [{
90
- "tags": [],
91
- "text": ""
92
- }],
93
- "references": {
94
- "Promise": {
95
- "location": "global"
96
- }
73
+ };
74
+ }
75
+ static get events() {
76
+ return [{
77
+ "method": "itemSelected",
78
+ "name": "itemSelected",
79
+ "bubbles": true,
80
+ "cancelable": true,
81
+ "composed": true,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": ""
97
85
  },
98
- "return": "Promise<boolean>"
99
- },
100
- "docs": {
101
- "text": "",
102
- "tags": []
86
+ "complexType": {
87
+ "original": "void",
88
+ "resolved": "void",
89
+ "references": {}
90
+ }
91
+ }];
92
+ }
93
+ static get methods() {
94
+ return {
95
+ "filter": {
96
+ "complexType": {
97
+ "signature": "(filter: string) => Promise<boolean>",
98
+ "parameters": [{
99
+ "tags": [],
100
+ "text": ""
101
+ }],
102
+ "references": {
103
+ "Promise": {
104
+ "location": "global"
105
+ }
106
+ },
107
+ "return": "Promise<boolean>"
108
+ },
109
+ "docs": {
110
+ "text": "",
111
+ "tags": []
112
+ }
103
113
  }
104
- }
105
- }; }
114
+ };
115
+ }
106
116
  static get elementRef() { return "element"; }
107
- static get watchers() { return [{
108
- "propName": "selected",
109
- "methodName": "onSelectedChanged"
110
- }]; }
111
- static get listeners() { return [{
112
- "name": "click",
113
- "method": "onClick",
114
- "target": undefined,
115
- "capture": false,
116
- "passive": false
117
- }]; }
117
+ static get watchers() {
118
+ return [{
119
+ "propName": "selected",
120
+ "methodName": "onSelectedChanged"
121
+ }];
122
+ }
123
+ static get listeners() {
124
+ return [{
125
+ "name": "click",
126
+ "method": "onClick",
127
+ "target": undefined,
128
+ "capture": false,
129
+ "passive": false
130
+ }];
131
+ }
118
132
  }