smoothly 0.1.114 → 0.1.115

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 (245) hide show
  1. package/dist/cjs/{Notice-9c2b52b7.js → Notice-839702d8.js} +34 -26
  2. package/dist/cjs/{Trigger-74bd1ee8.js → Trigger-cf376531.js} +55 -146
  3. package/dist/cjs/{index-41a36ce2.js → index-1c61bdd3.js} +27 -1
  4. package/dist/cjs/index.cjs.js +20 -8
  5. package/dist/cjs/loader.cjs.js +3 -19
  6. package/dist/cjs/{smoothly-accordion_50.cjs.entry.js → smoothly-accordion_51.cjs.entry.js} +7689 -1483
  7. package/dist/cjs/smoothly-google-font.cjs.entry.js +2 -2
  8. package/dist/cjs/smoothly-radio-group.cjs.entry.js +2 -2
  9. package/dist/cjs/smoothly-reorder.cjs.entry.js +2 -2
  10. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +5 -5
  11. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +5 -5
  12. package/dist/cjs/smoothly.cjs.js +5 -113
  13. package/dist/collection/collection-manifest.json +3 -2
  14. package/dist/collection/components/app-demo/index.js +6 -1
  15. package/dist/collection/components/button/index.js +168 -0
  16. package/dist/collection/components/button/style.css +49 -0
  17. package/dist/collection/components/picker/index.js +10 -6
  18. package/dist/collection/components/trigger/style.css +3 -3
  19. package/dist/custom-elements/index.d.ts +6 -0
  20. package/dist/custom-elements/index.js +7776 -2966
  21. package/dist/esm/{Notice-4131b4e0.js → Notice-608b552c.js} +34 -26
  22. package/dist/esm/{Trigger-d7b181ec.js → Trigger-365408f0.js} +55 -146
  23. package/dist/esm/{index-dcb2b612.js → index-a3737440.js} +27 -1
  24. package/dist/esm/index.js +17 -4
  25. package/dist/esm/loader.js +3 -19
  26. package/dist/esm/polyfills/css-shim.js +1 -1
  27. package/dist/esm/{smoothly-accordion_50.entry.js → smoothly-accordion_51.entry.js} +7689 -1484
  28. package/dist/esm/smoothly-google-font.entry.js +2 -2
  29. package/dist/esm/smoothly-radio-group.entry.js +2 -2
  30. package/dist/esm/smoothly-reorder.entry.js +2 -2
  31. package/dist/esm/smoothly-trigger-sink.entry.js +3 -3
  32. package/dist/esm/smoothly-trigger-source.entry.js +3 -3
  33. package/dist/esm/smoothly.js +5 -113
  34. package/dist/smoothly/index.esm.js +1 -376
  35. package/dist/smoothly/p-0215b4da.entry.js +1 -0
  36. package/dist/smoothly/{p-074a0448.js → p-0cba3e3d.js} +1 -1
  37. package/dist/smoothly/p-18a1063c.entry.js +1 -0
  38. package/dist/smoothly/p-6ca0d36c.js +1 -0
  39. package/dist/smoothly/p-6f009ac9.entry.js +1 -0
  40. package/dist/smoothly/p-7a30d9b8.js +1 -0
  41. package/dist/smoothly/p-8ae38136.entry.js +1 -0
  42. package/dist/smoothly/p-993534fa.entry.js +1 -0
  43. package/dist/smoothly/p-eec1c703.entry.js +1 -0
  44. package/dist/smoothly/smoothly.esm.js +1 -125
  45. package/dist/types/components/button/index.d.ts +11 -0
  46. package/dist/types/components.d.ts +27 -0
  47. package/dist/types/stencil-public-runtime.d.ts +6 -4
  48. package/package.json +17 -17
  49. package/dist/cjs/App-339acc9b.js +0 -647
  50. package/dist/cjs/_commonjsHelpers-10109b76.js +0 -48
  51. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  52. package/dist/cjs/css-shim-88cc6900.js +0 -6
  53. package/dist/cjs/dom-95afd968.js +0 -75
  54. package/dist/cjs/generate-f9a36f25.js +0 -66
  55. package/dist/cjs/index-138c41c2.js +0 -3066
  56. package/dist/cjs/index-36da3c23.js +0 -1673
  57. package/dist/cjs/index-40d009d5.js +0 -1354
  58. package/dist/cjs/index-ac32385c.js +0 -18850
  59. package/dist/cjs/shadow-css-71d0f821.js +0 -391
  60. package/dist/cjs/smoothly-accordion-item.cjs.entry.js +0 -54
  61. package/dist/cjs/smoothly-accordion.cjs.entry.js +0 -55
  62. package/dist/cjs/smoothly-app-demo.cjs.entry.js +0 -29
  63. package/dist/cjs/smoothly-app.cjs.entry.js +0 -19
  64. package/dist/cjs/smoothly-backtotop.cjs.entry.js +0 -37
  65. package/dist/cjs/smoothly-calendar.cjs.entry.js +0 -95
  66. package/dist/cjs/smoothly-checkbox.cjs.entry.js +0 -18671
  67. package/dist/cjs/smoothly-dialog-demo.cjs.entry.js +0 -16
  68. package/dist/cjs/smoothly-dialog.cjs.entry.js +0 -38
  69. package/dist/cjs/smoothly-display-amount.cjs.entry.js +0 -59
  70. package/dist/cjs/smoothly-display-date-time.cjs.entry.js +0 -20
  71. package/dist/cjs/smoothly-display-demo.cjs.entry.js +0 -25
  72. package/dist/cjs/smoothly-display.cjs.entry.js +0 -41
  73. package/dist/cjs/smoothly-frame.cjs.entry.js +0 -50
  74. package/dist/cjs/smoothly-icon-demo.cjs.entry.js +0 -491
  75. package/dist/cjs/smoothly-icon.cjs.entry.js +0 -52
  76. package/dist/cjs/smoothly-input-date-range.cjs.entry.js +0 -50
  77. package/dist/cjs/smoothly-input-date.cjs.entry.js +0 -44
  78. package/dist/cjs/smoothly-input-demo.cjs.entry.js +0 -19
  79. package/dist/cjs/smoothly-input-month.cjs.entry.js +0 -41
  80. package/dist/cjs/smoothly-input.cjs.entry.js +0 -202
  81. package/dist/cjs/smoothly-item.cjs.entry.js +0 -43
  82. package/dist/cjs/smoothly-menu-options.cjs.entry.js +0 -108
  83. package/dist/cjs/smoothly-notification.cjs.entry.js +0 -67
  84. package/dist/cjs/smoothly-notifier.cjs.entry.js +0 -29
  85. package/dist/cjs/smoothly-option.cjs.entry.js +0 -33
  86. package/dist/cjs/smoothly-picker.cjs.entry.js +0 -151
  87. package/dist/cjs/smoothly-popup.cjs.entry.js +0 -38
  88. package/dist/cjs/smoothly-quiet.cjs.entry.js +0 -19
  89. package/dist/cjs/smoothly-radio.cjs.entry.js +0 -28
  90. package/dist/cjs/smoothly-room.cjs.entry.js +0 -16
  91. package/dist/cjs/smoothly-select-demo.cjs.entry.js +0 -86
  92. package/dist/cjs/smoothly-select.cjs.entry.js +0 -31
  93. package/dist/cjs/smoothly-selector.cjs.entry.js +0 -119
  94. package/dist/cjs/smoothly-skeleton.cjs.entry.js +0 -27
  95. package/dist/cjs/smoothly-spinner.cjs.entry.js +0 -24
  96. package/dist/cjs/smoothly-submit.cjs.entry.js +0 -60
  97. package/dist/cjs/smoothly-svg.cjs.entry.js +0 -41
  98. package/dist/cjs/smoothly-tab-switch.cjs.entry.js +0 -32
  99. package/dist/cjs/smoothly-tab.cjs.entry.js +0 -37
  100. package/dist/cjs/smoothly-table-cell.cjs.entry.js +0 -19
  101. package/dist/cjs/smoothly-table-demo.cjs.entry.js +0 -22
  102. package/dist/cjs/smoothly-table-expandable-cell.cjs.entry.js +0 -45
  103. package/dist/cjs/smoothly-table-expandable-row.cjs.entry.js +0 -32
  104. package/dist/cjs/smoothly-table-header.cjs.entry.js +0 -41
  105. package/dist/cjs/smoothly-table-row.cjs.entry.js +0 -38
  106. package/dist/cjs/smoothly-table.cjs.entry.js +0 -26
  107. package/dist/cjs/smoothly-trigger.cjs.entry.js +0 -36
  108. package/dist/cjs/smoothly-tuple.cjs.entry.js +0 -16
  109. package/dist/cjs/smoothly-urlencoded.cjs.entry.js +0 -19
  110. package/dist/esm/App-22187759.js +0 -645
  111. package/dist/esm/_commonjsHelpers-8fe71198.js +0 -44
  112. package/dist/esm/app-globals-0f993ce5.js +0 -3
  113. package/dist/esm/css-shim-c64026cd.js +0 -4
  114. package/dist/esm/dom-a712b575.js +0 -73
  115. package/dist/esm/generate-50b98474.js +0 -61
  116. package/dist/esm/index-02a70ac1.js +0 -3027
  117. package/dist/esm/index-a5a08f46.js +0 -18848
  118. package/dist/esm/index-c8b5d468.js +0 -1349
  119. package/dist/esm/index-d1360bcf.js +0 -1671
  120. package/dist/esm/shadow-css-1e16431b.js +0 -389
  121. package/dist/esm/smoothly-accordion-item.entry.js +0 -50
  122. package/dist/esm/smoothly-accordion.entry.js +0 -51
  123. package/dist/esm/smoothly-app-demo.entry.js +0 -25
  124. package/dist/esm/smoothly-app.entry.js +0 -15
  125. package/dist/esm/smoothly-backtotop.entry.js +0 -33
  126. package/dist/esm/smoothly-calendar.entry.js +0 -91
  127. package/dist/esm/smoothly-checkbox.entry.js +0 -18667
  128. package/dist/esm/smoothly-dialog-demo.entry.js +0 -12
  129. package/dist/esm/smoothly-dialog.entry.js +0 -34
  130. package/dist/esm/smoothly-display-amount.entry.js +0 -55
  131. package/dist/esm/smoothly-display-date-time.entry.js +0 -16
  132. package/dist/esm/smoothly-display-demo.entry.js +0 -21
  133. package/dist/esm/smoothly-display.entry.js +0 -37
  134. package/dist/esm/smoothly-frame.entry.js +0 -46
  135. package/dist/esm/smoothly-icon-demo.entry.js +0 -487
  136. package/dist/esm/smoothly-icon.entry.js +0 -48
  137. package/dist/esm/smoothly-input-date-range.entry.js +0 -46
  138. package/dist/esm/smoothly-input-date.entry.js +0 -40
  139. package/dist/esm/smoothly-input-demo.entry.js +0 -15
  140. package/dist/esm/smoothly-input-month.entry.js +0 -37
  141. package/dist/esm/smoothly-input.entry.js +0 -198
  142. package/dist/esm/smoothly-item.entry.js +0 -39
  143. package/dist/esm/smoothly-menu-options.entry.js +0 -104
  144. package/dist/esm/smoothly-notification.entry.js +0 -63
  145. package/dist/esm/smoothly-notifier.entry.js +0 -25
  146. package/dist/esm/smoothly-option.entry.js +0 -29
  147. package/dist/esm/smoothly-picker.entry.js +0 -147
  148. package/dist/esm/smoothly-popup.entry.js +0 -34
  149. package/dist/esm/smoothly-quiet.entry.js +0 -15
  150. package/dist/esm/smoothly-radio.entry.js +0 -24
  151. package/dist/esm/smoothly-room.entry.js +0 -12
  152. package/dist/esm/smoothly-select-demo.entry.js +0 -82
  153. package/dist/esm/smoothly-select.entry.js +0 -27
  154. package/dist/esm/smoothly-selector.entry.js +0 -115
  155. package/dist/esm/smoothly-skeleton.entry.js +0 -23
  156. package/dist/esm/smoothly-spinner.entry.js +0 -20
  157. package/dist/esm/smoothly-submit.entry.js +0 -56
  158. package/dist/esm/smoothly-svg.entry.js +0 -37
  159. package/dist/esm/smoothly-tab-switch.entry.js +0 -28
  160. package/dist/esm/smoothly-tab.entry.js +0 -33
  161. package/dist/esm/smoothly-table-cell.entry.js +0 -15
  162. package/dist/esm/smoothly-table-demo.entry.js +0 -18
  163. package/dist/esm/smoothly-table-expandable-cell.entry.js +0 -41
  164. package/dist/esm/smoothly-table-expandable-row.entry.js +0 -28
  165. package/dist/esm/smoothly-table-header.entry.js +0 -37
  166. package/dist/esm/smoothly-table-row.entry.js +0 -34
  167. package/dist/esm/smoothly-table.entry.js +0 -22
  168. package/dist/esm/smoothly-trigger.entry.js +0 -32
  169. package/dist/esm/smoothly-tuple.entry.js +0 -12
  170. package/dist/esm/smoothly-urlencoded.entry.js +0 -15
  171. package/dist/smoothly/App-22187759.js +0 -645
  172. package/dist/smoothly/GoogleFont-8474516b.js +0 -21
  173. package/dist/smoothly/_commonjsHelpers-8fe71198.js +0 -44
  174. package/dist/smoothly/app-globals-0f993ce5.js +0 -3
  175. package/dist/smoothly/css-shim-c64026cd.js +0 -4
  176. package/dist/smoothly/dom-a712b575.js +0 -73
  177. package/dist/smoothly/generate-50b98474.js +0 -61
  178. package/dist/smoothly/index-02a70ac1.js +0 -3027
  179. package/dist/smoothly/index-a5a08f46.js +0 -18848
  180. package/dist/smoothly/index-c8b5d468.js +0 -1349
  181. package/dist/smoothly/index-d1360bcf.js +0 -1671
  182. package/dist/smoothly/p-0bad2c46.entry.js +0 -1
  183. package/dist/smoothly/p-0c1e9588.entry.js +0 -1
  184. package/dist/smoothly/p-14232157.entry.js +0 -1
  185. package/dist/smoothly/p-19518931.js +0 -1
  186. package/dist/smoothly/p-22d4d5a7.entry.js +0 -1
  187. package/dist/smoothly/p-2cda1784.js +0 -1
  188. package/dist/smoothly/p-9fa3ab06.entry.js +0 -1
  189. package/dist/smoothly/p-b8a3e273.entry.js +0 -1
  190. package/dist/smoothly/shadow-css-1e16431b.js +0 -389
  191. package/dist/smoothly/smoothly-accordion-item.entry.js +0 -50
  192. package/dist/smoothly/smoothly-accordion.entry.js +0 -51
  193. package/dist/smoothly/smoothly-app-demo.entry.js +0 -25
  194. package/dist/smoothly/smoothly-app.entry.js +0 -15
  195. package/dist/smoothly/smoothly-backtotop.entry.js +0 -33
  196. package/dist/smoothly/smoothly-calendar.entry.js +0 -91
  197. package/dist/smoothly/smoothly-checkbox.entry.js +0 -18667
  198. package/dist/smoothly/smoothly-dialog-demo.entry.js +0 -12
  199. package/dist/smoothly/smoothly-dialog.entry.js +0 -34
  200. package/dist/smoothly/smoothly-display-amount.entry.js +0 -55
  201. package/dist/smoothly/smoothly-display-date-time.entry.js +0 -16
  202. package/dist/smoothly/smoothly-display-demo.entry.js +0 -21
  203. package/dist/smoothly/smoothly-display.entry.js +0 -37
  204. package/dist/smoothly/smoothly-frame.entry.js +0 -46
  205. package/dist/smoothly/smoothly-google-font.entry.js +0 -13
  206. package/dist/smoothly/smoothly-icon-demo.entry.js +0 -487
  207. package/dist/smoothly/smoothly-icon.entry.js +0 -48
  208. package/dist/smoothly/smoothly-input-date-range.entry.js +0 -46
  209. package/dist/smoothly/smoothly-input-date.entry.js +0 -40
  210. package/dist/smoothly/smoothly-input-demo.entry.js +0 -15
  211. package/dist/smoothly/smoothly-input-month.entry.js +0 -37
  212. package/dist/smoothly/smoothly-input.entry.js +0 -198
  213. package/dist/smoothly/smoothly-item.entry.js +0 -39
  214. package/dist/smoothly/smoothly-menu-options.entry.js +0 -104
  215. package/dist/smoothly/smoothly-notification.entry.js +0 -63
  216. package/dist/smoothly/smoothly-notifier.entry.js +0 -25
  217. package/dist/smoothly/smoothly-option.entry.js +0 -29
  218. package/dist/smoothly/smoothly-picker.entry.js +0 -147
  219. package/dist/smoothly/smoothly-popup.entry.js +0 -34
  220. package/dist/smoothly/smoothly-quiet.entry.js +0 -15
  221. package/dist/smoothly/smoothly-radio-group.entry.js +0 -16
  222. package/dist/smoothly/smoothly-radio.entry.js +0 -24
  223. package/dist/smoothly/smoothly-reorder.entry.js +0 -99
  224. package/dist/smoothly/smoothly-room.entry.js +0 -12
  225. package/dist/smoothly/smoothly-select-demo.entry.js +0 -82
  226. package/dist/smoothly/smoothly-select.entry.js +0 -27
  227. package/dist/smoothly/smoothly-selector.entry.js +0 -115
  228. package/dist/smoothly/smoothly-skeleton.entry.js +0 -23
  229. package/dist/smoothly/smoothly-spinner.entry.js +0 -20
  230. package/dist/smoothly/smoothly-submit.entry.js +0 -56
  231. package/dist/smoothly/smoothly-svg.entry.js +0 -37
  232. package/dist/smoothly/smoothly-tab-switch.entry.js +0 -28
  233. package/dist/smoothly/smoothly-tab.entry.js +0 -33
  234. package/dist/smoothly/smoothly-table-cell.entry.js +0 -15
  235. package/dist/smoothly/smoothly-table-demo.entry.js +0 -18
  236. package/dist/smoothly/smoothly-table-expandable-cell.entry.js +0 -41
  237. package/dist/smoothly/smoothly-table-expandable-row.entry.js +0 -28
  238. package/dist/smoothly/smoothly-table-header.entry.js +0 -37
  239. package/dist/smoothly/smoothly-table-row.entry.js +0 -34
  240. package/dist/smoothly/smoothly-table.entry.js +0 -22
  241. package/dist/smoothly/smoothly-trigger-sink.entry.js +0 -29
  242. package/dist/smoothly/smoothly-trigger-source.entry.js +0 -28
  243. package/dist/smoothly/smoothly-trigger.entry.js +0 -32
  244. package/dist/smoothly/smoothly-tuple.entry.js +0 -12
  245. package/dist/smoothly/smoothly-urlencoded.entry.js +0 -15
@@ -1,33 +0,0 @@
1
- import { r as registerInstance, h, k as Host } from './index-02a70ac1.js';
2
-
3
- const styleCss = ".sc-smoothly-backtotop-h{background-color:rgba(var(--smoothly-default-color), 1);opacity:var(--opacity);pointer-events:var(--pointer-events);transition:opacity 400ms;z-index:3;border-radius:50%;box-shadow:var(--smoothly-shadow);height:3rem;width:3rem;position:fixed;bottom:var(--bottom);right:var(--right);outline:none;cursor:pointer;display:flex;justify-content:center;align-items:center}";
4
-
5
- let SmoothlyBacktotop = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.opacity = "0.5";
9
- this.bottom = "1rem";
10
- this.right = "1rem";
11
- }
12
- componentWillLoad() {
13
- window.addEventListener("scroll", () => {
14
- this.visible = document.body.scrollTop > 20 || document.documentElement.scrollTop > 20;
15
- });
16
- }
17
- render() {
18
- const cssVariables = {
19
- "--opacity": this.visible ? this.opacity : "0",
20
- "--pointer-events": this.visible ? "auto" : "none",
21
- "--bottom": this.bottom,
22
- "--right": this.right,
23
- };
24
- return (h(Host, { style: cssVariables, onClick: () => window.scrollTo({
25
- top: 0,
26
- left: 0,
27
- behavior: "smooth",
28
- }) }, h("smoothly-icon", { name: "chevron-up-outline" })));
29
- }
30
- };
31
- SmoothlyBacktotop.style = styleCss;
32
-
33
- export { SmoothlyBacktotop as smoothly_backtotop };
@@ -1,91 +0,0 @@
1
- import { r as registerInstance, i as createEvent, h, j as getElement } from './index-02a70ac1.js';
2
- import { d as dist } from './index-a5a08f46.js';
3
- import { w as weekdays, m as month } from './generate-50b98474.js';
4
- import './_commonjsHelpers-8fe71198.js';
5
-
6
- const styleCss = ".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding:0.5em 0.5em 0 0.5em}th.sc-smoothly-calendar,td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;background-color:rgb(var(--smoothly-default-shade));cursor:pointer;user-select:none}td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:nth-child(6),td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-danger-tint))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-danger-tint), var(--other-month-opacity))}td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}td.sc-smoothly-calendar:not(.selected,.dateRange).sc-smoothly-calendar:not(:hover).today{background:rgb(var(--smoothly-dark-tint));color:rgb(var(--smoothly-dark-contrast))}td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.disable.sc-smoothly-calendar{cursor:not-allowed;background-color:rgb(var(--smoothly-default-tint), 0.5);color:rgb(var(--smoothly-default-contrast), 0.5)}";
7
-
8
- let Calendar = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.valueChanged = createEvent(this, "valueChanged", 7);
12
- this.startChanged = createEvent(this, "startChanged", 7);
13
- this.endChanged = createEvent(this, "endChanged", 7);
14
- this.dateSet = createEvent(this, "dateSet", 7);
15
- this.dateRangeSet = createEvent(this, "dateRangeSet", 7);
16
- this.value = dist.Date.now();
17
- this.clickCounter = 0;
18
- }
19
- onStart(next) {
20
- this.startChanged.emit(next);
21
- }
22
- onEnd(next) {
23
- this.endChanged.emit(next);
24
- }
25
- onClick(date) {
26
- this.valueChanged.emit((this.value = date));
27
- this.clickCounter += 1;
28
- if (this.doubleInput) {
29
- if (this.clickCounter % 2 == 1)
30
- this.start = this.end = this.frozenDate = date;
31
- else {
32
- if (this.start && date > this.start)
33
- this.end = date;
34
- else
35
- this.start = date;
36
- }
37
- }
38
- !this.doubleInput && this.dateSet.emit(this.value);
39
- this.doubleInput &&
40
- this.clickCounter % 2 == 0 &&
41
- this.start &&
42
- this.end &&
43
- this.dateRangeSet.emit({ start: this.start, end: this.end });
44
- }
45
- onHover(date) {
46
- if (this.doubleInput && this.clickCounter % 2 == 1) {
47
- if (date < this.frozenDate) {
48
- this.start = date;
49
- this.end = this.frozenDate;
50
- }
51
- else {
52
- this.start = this.frozenDate;
53
- this.end = date;
54
- }
55
- }
56
- }
57
- render() {
58
- var _a, _b;
59
- return [
60
- h("smoothly-input-month", { value: (_a = this.month) !== null && _a !== void 0 ? _a : this.value, onValueChanged: event => {
61
- this.month = event.detail;
62
- event.stopPropagation();
63
- } }),
64
- h("table", null, h("thead", null, h("tr", null, weekdays().map(day => (h("th", null, day))))), month((_b = this.month) !== null && _b !== void 0 ? _b : this.value).map(week => (h("tr", null, week.map(date => {
65
- var _a, _b, _c;
66
- return (h("td", { tabindex: 1, onMouseOver: () => {
67
- !this.doubleInput && (this.min || this.max) && (date < this.min || date > this.max)
68
- ? undefined
69
- : this.onHover(date);
70
- }, onClick: (this.min || this.max) && (date < this.min || date > this.max) ? undefined : () => this.onClick(date), class: (date == this.value ? ["selected"] : [])
71
- .concat(...(date == dist.Date.now() ? ["today"] : []), dist.Date.firstOfMonth((_a = this.month) !== null && _a !== void 0 ? _a : this.value) == dist.Date.firstOfMonth(date) ? ["currentMonth"] : [], this.doubleInput
72
- ? this.start == date || this.end == date
73
- ? ["selected"]
74
- : date >= ((_b = this.start) !== null && _b !== void 0 ? _b : "") && date <= ((_c = this.end) !== null && _c !== void 0 ? _c : "")
75
- ? ["dateRange"]
76
- : []
77
- : "")
78
- .concat(...(this.min || this.max ? (date < this.min || date > this.max ? ["disable"] : []) : ""))
79
- .join(" ") }, date.substring(8, 10)));
80
- }))))),
81
- ];
82
- }
83
- get element() { return getElement(this); }
84
- static get watchers() { return {
85
- "start": ["onStart"],
86
- "end": ["onEnd"]
87
- }; }
88
- };
89
- Calendar.style = styleCss;
90
-
91
- export { Calendar as smoothly_calendar };