smoothly 0.1.114 → 0.1.117

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 (257) 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} +7694 -1488
  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 +5 -4
  14. package/dist/collection/components/app/style.css +6 -7
  15. package/dist/collection/components/app-demo/index.js +6 -1
  16. package/dist/collection/components/button/index.js +168 -0
  17. package/dist/collection/components/button/style.css +49 -0
  18. package/dist/collection/components/menu-options/style.css +2 -2
  19. package/dist/collection/components/picker/index.js +10 -6
  20. package/dist/collection/components/picker/style.css +14 -14
  21. package/dist/collection/components/selector/style.css +3 -3
  22. package/dist/collection/components/tab/style.css +3 -3
  23. package/dist/collection/components/table/{exandable → expandable}/cell/index.js +0 -0
  24. package/dist/collection/components/table/{exandable → expandable}/cell/style.css +0 -0
  25. package/dist/collection/components/table/{exandable → expandable}/row/index.js +0 -0
  26. package/dist/collection/components/table/{exandable → expandable}/row/style.css +0 -0
  27. package/dist/collection/components/table/header/style.css +5 -5
  28. package/dist/collection/components/trigger/style.css +3 -3
  29. package/dist/custom-elements/index.d.ts +6 -0
  30. package/dist/custom-elements/index.js +7781 -2971
  31. package/dist/esm/{Notice-4131b4e0.js → Notice-608b552c.js} +34 -26
  32. package/dist/esm/{Trigger-d7b181ec.js → Trigger-365408f0.js} +55 -146
  33. package/dist/esm/{index-dcb2b612.js → index-a3737440.js} +27 -1
  34. package/dist/esm/index.js +17 -4
  35. package/dist/esm/loader.js +3 -19
  36. package/dist/esm/polyfills/css-shim.js +1 -1
  37. package/dist/esm/{smoothly-accordion_50.entry.js → smoothly-accordion_51.entry.js} +7694 -1489
  38. package/dist/esm/smoothly-google-font.entry.js +2 -2
  39. package/dist/esm/smoothly-radio-group.entry.js +2 -2
  40. package/dist/esm/smoothly-reorder.entry.js +2 -2
  41. package/dist/esm/smoothly-trigger-sink.entry.js +3 -3
  42. package/dist/esm/smoothly-trigger-source.entry.js +3 -3
  43. package/dist/esm/smoothly.js +5 -113
  44. package/dist/smoothly/index.esm.js +1 -376
  45. package/dist/smoothly/p-0215b4da.entry.js +1 -0
  46. package/dist/smoothly/{p-074a0448.js → p-0cba3e3d.js} +1 -1
  47. package/dist/smoothly/p-4fa231df.entry.js +1 -0
  48. package/dist/smoothly/p-6ca0d36c.js +1 -0
  49. package/dist/smoothly/p-6f009ac9.entry.js +1 -0
  50. package/dist/smoothly/p-7a30d9b8.js +1 -0
  51. package/dist/smoothly/p-8ae38136.entry.js +1 -0
  52. package/dist/smoothly/p-993534fa.entry.js +1 -0
  53. package/dist/smoothly/p-eec1c703.entry.js +1 -0
  54. package/dist/smoothly/smoothly.esm.js +1 -125
  55. package/dist/types/components/button/index.d.ts +11 -0
  56. package/dist/types/components/table/{exandable → expandable}/cell/index.d.ts +0 -0
  57. package/dist/types/components/table/{exandable → expandable}/row/index.d.ts +0 -0
  58. package/dist/types/components.d.ts +27 -0
  59. package/dist/types/stencil-public-runtime.d.ts +6 -4
  60. package/package.json +17 -17
  61. package/dist/cjs/App-339acc9b.js +0 -647
  62. package/dist/cjs/_commonjsHelpers-10109b76.js +0 -48
  63. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  64. package/dist/cjs/css-shim-88cc6900.js +0 -6
  65. package/dist/cjs/dom-95afd968.js +0 -75
  66. package/dist/cjs/generate-f9a36f25.js +0 -66
  67. package/dist/cjs/index-138c41c2.js +0 -3066
  68. package/dist/cjs/index-36da3c23.js +0 -1673
  69. package/dist/cjs/index-40d009d5.js +0 -1354
  70. package/dist/cjs/index-ac32385c.js +0 -18850
  71. package/dist/cjs/shadow-css-71d0f821.js +0 -391
  72. package/dist/cjs/smoothly-accordion-item.cjs.entry.js +0 -54
  73. package/dist/cjs/smoothly-accordion.cjs.entry.js +0 -55
  74. package/dist/cjs/smoothly-app-demo.cjs.entry.js +0 -29
  75. package/dist/cjs/smoothly-app.cjs.entry.js +0 -19
  76. package/dist/cjs/smoothly-backtotop.cjs.entry.js +0 -37
  77. package/dist/cjs/smoothly-calendar.cjs.entry.js +0 -95
  78. package/dist/cjs/smoothly-checkbox.cjs.entry.js +0 -18671
  79. package/dist/cjs/smoothly-dialog-demo.cjs.entry.js +0 -16
  80. package/dist/cjs/smoothly-dialog.cjs.entry.js +0 -38
  81. package/dist/cjs/smoothly-display-amount.cjs.entry.js +0 -59
  82. package/dist/cjs/smoothly-display-date-time.cjs.entry.js +0 -20
  83. package/dist/cjs/smoothly-display-demo.cjs.entry.js +0 -25
  84. package/dist/cjs/smoothly-display.cjs.entry.js +0 -41
  85. package/dist/cjs/smoothly-frame.cjs.entry.js +0 -50
  86. package/dist/cjs/smoothly-icon-demo.cjs.entry.js +0 -491
  87. package/dist/cjs/smoothly-icon.cjs.entry.js +0 -52
  88. package/dist/cjs/smoothly-input-date-range.cjs.entry.js +0 -50
  89. package/dist/cjs/smoothly-input-date.cjs.entry.js +0 -44
  90. package/dist/cjs/smoothly-input-demo.cjs.entry.js +0 -19
  91. package/dist/cjs/smoothly-input-month.cjs.entry.js +0 -41
  92. package/dist/cjs/smoothly-input.cjs.entry.js +0 -202
  93. package/dist/cjs/smoothly-item.cjs.entry.js +0 -43
  94. package/dist/cjs/smoothly-menu-options.cjs.entry.js +0 -108
  95. package/dist/cjs/smoothly-notification.cjs.entry.js +0 -67
  96. package/dist/cjs/smoothly-notifier.cjs.entry.js +0 -29
  97. package/dist/cjs/smoothly-option.cjs.entry.js +0 -33
  98. package/dist/cjs/smoothly-picker.cjs.entry.js +0 -151
  99. package/dist/cjs/smoothly-popup.cjs.entry.js +0 -38
  100. package/dist/cjs/smoothly-quiet.cjs.entry.js +0 -19
  101. package/dist/cjs/smoothly-radio.cjs.entry.js +0 -28
  102. package/dist/cjs/smoothly-room.cjs.entry.js +0 -16
  103. package/dist/cjs/smoothly-select-demo.cjs.entry.js +0 -86
  104. package/dist/cjs/smoothly-select.cjs.entry.js +0 -31
  105. package/dist/cjs/smoothly-selector.cjs.entry.js +0 -119
  106. package/dist/cjs/smoothly-skeleton.cjs.entry.js +0 -27
  107. package/dist/cjs/smoothly-spinner.cjs.entry.js +0 -24
  108. package/dist/cjs/smoothly-submit.cjs.entry.js +0 -60
  109. package/dist/cjs/smoothly-svg.cjs.entry.js +0 -41
  110. package/dist/cjs/smoothly-tab-switch.cjs.entry.js +0 -32
  111. package/dist/cjs/smoothly-tab.cjs.entry.js +0 -37
  112. package/dist/cjs/smoothly-table-cell.cjs.entry.js +0 -19
  113. package/dist/cjs/smoothly-table-demo.cjs.entry.js +0 -22
  114. package/dist/cjs/smoothly-table-expandable-cell.cjs.entry.js +0 -45
  115. package/dist/cjs/smoothly-table-expandable-row.cjs.entry.js +0 -32
  116. package/dist/cjs/smoothly-table-header.cjs.entry.js +0 -41
  117. package/dist/cjs/smoothly-table-row.cjs.entry.js +0 -38
  118. package/dist/cjs/smoothly-table.cjs.entry.js +0 -26
  119. package/dist/cjs/smoothly-trigger.cjs.entry.js +0 -36
  120. package/dist/cjs/smoothly-tuple.cjs.entry.js +0 -16
  121. package/dist/cjs/smoothly-urlencoded.cjs.entry.js +0 -19
  122. package/dist/esm/App-22187759.js +0 -645
  123. package/dist/esm/_commonjsHelpers-8fe71198.js +0 -44
  124. package/dist/esm/app-globals-0f993ce5.js +0 -3
  125. package/dist/esm/css-shim-c64026cd.js +0 -4
  126. package/dist/esm/dom-a712b575.js +0 -73
  127. package/dist/esm/generate-50b98474.js +0 -61
  128. package/dist/esm/index-02a70ac1.js +0 -3027
  129. package/dist/esm/index-a5a08f46.js +0 -18848
  130. package/dist/esm/index-c8b5d468.js +0 -1349
  131. package/dist/esm/index-d1360bcf.js +0 -1671
  132. package/dist/esm/shadow-css-1e16431b.js +0 -389
  133. package/dist/esm/smoothly-accordion-item.entry.js +0 -50
  134. package/dist/esm/smoothly-accordion.entry.js +0 -51
  135. package/dist/esm/smoothly-app-demo.entry.js +0 -25
  136. package/dist/esm/smoothly-app.entry.js +0 -15
  137. package/dist/esm/smoothly-backtotop.entry.js +0 -33
  138. package/dist/esm/smoothly-calendar.entry.js +0 -91
  139. package/dist/esm/smoothly-checkbox.entry.js +0 -18667
  140. package/dist/esm/smoothly-dialog-demo.entry.js +0 -12
  141. package/dist/esm/smoothly-dialog.entry.js +0 -34
  142. package/dist/esm/smoothly-display-amount.entry.js +0 -55
  143. package/dist/esm/smoothly-display-date-time.entry.js +0 -16
  144. package/dist/esm/smoothly-display-demo.entry.js +0 -21
  145. package/dist/esm/smoothly-display.entry.js +0 -37
  146. package/dist/esm/smoothly-frame.entry.js +0 -46
  147. package/dist/esm/smoothly-icon-demo.entry.js +0 -487
  148. package/dist/esm/smoothly-icon.entry.js +0 -48
  149. package/dist/esm/smoothly-input-date-range.entry.js +0 -46
  150. package/dist/esm/smoothly-input-date.entry.js +0 -40
  151. package/dist/esm/smoothly-input-demo.entry.js +0 -15
  152. package/dist/esm/smoothly-input-month.entry.js +0 -37
  153. package/dist/esm/smoothly-input.entry.js +0 -198
  154. package/dist/esm/smoothly-item.entry.js +0 -39
  155. package/dist/esm/smoothly-menu-options.entry.js +0 -104
  156. package/dist/esm/smoothly-notification.entry.js +0 -63
  157. package/dist/esm/smoothly-notifier.entry.js +0 -25
  158. package/dist/esm/smoothly-option.entry.js +0 -29
  159. package/dist/esm/smoothly-picker.entry.js +0 -147
  160. package/dist/esm/smoothly-popup.entry.js +0 -34
  161. package/dist/esm/smoothly-quiet.entry.js +0 -15
  162. package/dist/esm/smoothly-radio.entry.js +0 -24
  163. package/dist/esm/smoothly-room.entry.js +0 -12
  164. package/dist/esm/smoothly-select-demo.entry.js +0 -82
  165. package/dist/esm/smoothly-select.entry.js +0 -27
  166. package/dist/esm/smoothly-selector.entry.js +0 -115
  167. package/dist/esm/smoothly-skeleton.entry.js +0 -23
  168. package/dist/esm/smoothly-spinner.entry.js +0 -20
  169. package/dist/esm/smoothly-submit.entry.js +0 -56
  170. package/dist/esm/smoothly-svg.entry.js +0 -37
  171. package/dist/esm/smoothly-tab-switch.entry.js +0 -28
  172. package/dist/esm/smoothly-tab.entry.js +0 -33
  173. package/dist/esm/smoothly-table-cell.entry.js +0 -15
  174. package/dist/esm/smoothly-table-demo.entry.js +0 -18
  175. package/dist/esm/smoothly-table-expandable-cell.entry.js +0 -41
  176. package/dist/esm/smoothly-table-expandable-row.entry.js +0 -28
  177. package/dist/esm/smoothly-table-header.entry.js +0 -37
  178. package/dist/esm/smoothly-table-row.entry.js +0 -34
  179. package/dist/esm/smoothly-table.entry.js +0 -22
  180. package/dist/esm/smoothly-trigger.entry.js +0 -32
  181. package/dist/esm/smoothly-tuple.entry.js +0 -12
  182. package/dist/esm/smoothly-urlencoded.entry.js +0 -15
  183. package/dist/smoothly/App-22187759.js +0 -645
  184. package/dist/smoothly/GoogleFont-8474516b.js +0 -21
  185. package/dist/smoothly/_commonjsHelpers-8fe71198.js +0 -44
  186. package/dist/smoothly/app-globals-0f993ce5.js +0 -3
  187. package/dist/smoothly/css-shim-c64026cd.js +0 -4
  188. package/dist/smoothly/dom-a712b575.js +0 -73
  189. package/dist/smoothly/generate-50b98474.js +0 -61
  190. package/dist/smoothly/index-02a70ac1.js +0 -3027
  191. package/dist/smoothly/index-a5a08f46.js +0 -18848
  192. package/dist/smoothly/index-c8b5d468.js +0 -1349
  193. package/dist/smoothly/index-d1360bcf.js +0 -1671
  194. package/dist/smoothly/p-0bad2c46.entry.js +0 -1
  195. package/dist/smoothly/p-0c1e9588.entry.js +0 -1
  196. package/dist/smoothly/p-14232157.entry.js +0 -1
  197. package/dist/smoothly/p-19518931.js +0 -1
  198. package/dist/smoothly/p-22d4d5a7.entry.js +0 -1
  199. package/dist/smoothly/p-2cda1784.js +0 -1
  200. package/dist/smoothly/p-9fa3ab06.entry.js +0 -1
  201. package/dist/smoothly/p-b8a3e273.entry.js +0 -1
  202. package/dist/smoothly/shadow-css-1e16431b.js +0 -389
  203. package/dist/smoothly/smoothly-accordion-item.entry.js +0 -50
  204. package/dist/smoothly/smoothly-accordion.entry.js +0 -51
  205. package/dist/smoothly/smoothly-app-demo.entry.js +0 -25
  206. package/dist/smoothly/smoothly-app.entry.js +0 -15
  207. package/dist/smoothly/smoothly-backtotop.entry.js +0 -33
  208. package/dist/smoothly/smoothly-calendar.entry.js +0 -91
  209. package/dist/smoothly/smoothly-checkbox.entry.js +0 -18667
  210. package/dist/smoothly/smoothly-dialog-demo.entry.js +0 -12
  211. package/dist/smoothly/smoothly-dialog.entry.js +0 -34
  212. package/dist/smoothly/smoothly-display-amount.entry.js +0 -55
  213. package/dist/smoothly/smoothly-display-date-time.entry.js +0 -16
  214. package/dist/smoothly/smoothly-display-demo.entry.js +0 -21
  215. package/dist/smoothly/smoothly-display.entry.js +0 -37
  216. package/dist/smoothly/smoothly-frame.entry.js +0 -46
  217. package/dist/smoothly/smoothly-google-font.entry.js +0 -13
  218. package/dist/smoothly/smoothly-icon-demo.entry.js +0 -487
  219. package/dist/smoothly/smoothly-icon.entry.js +0 -48
  220. package/dist/smoothly/smoothly-input-date-range.entry.js +0 -46
  221. package/dist/smoothly/smoothly-input-date.entry.js +0 -40
  222. package/dist/smoothly/smoothly-input-demo.entry.js +0 -15
  223. package/dist/smoothly/smoothly-input-month.entry.js +0 -37
  224. package/dist/smoothly/smoothly-input.entry.js +0 -198
  225. package/dist/smoothly/smoothly-item.entry.js +0 -39
  226. package/dist/smoothly/smoothly-menu-options.entry.js +0 -104
  227. package/dist/smoothly/smoothly-notification.entry.js +0 -63
  228. package/dist/smoothly/smoothly-notifier.entry.js +0 -25
  229. package/dist/smoothly/smoothly-option.entry.js +0 -29
  230. package/dist/smoothly/smoothly-picker.entry.js +0 -147
  231. package/dist/smoothly/smoothly-popup.entry.js +0 -34
  232. package/dist/smoothly/smoothly-quiet.entry.js +0 -15
  233. package/dist/smoothly/smoothly-radio-group.entry.js +0 -16
  234. package/dist/smoothly/smoothly-radio.entry.js +0 -24
  235. package/dist/smoothly/smoothly-reorder.entry.js +0 -99
  236. package/dist/smoothly/smoothly-room.entry.js +0 -12
  237. package/dist/smoothly/smoothly-select-demo.entry.js +0 -82
  238. package/dist/smoothly/smoothly-select.entry.js +0 -27
  239. package/dist/smoothly/smoothly-selector.entry.js +0 -115
  240. package/dist/smoothly/smoothly-skeleton.entry.js +0 -23
  241. package/dist/smoothly/smoothly-spinner.entry.js +0 -20
  242. package/dist/smoothly/smoothly-submit.entry.js +0 -56
  243. package/dist/smoothly/smoothly-svg.entry.js +0 -37
  244. package/dist/smoothly/smoothly-tab-switch.entry.js +0 -28
  245. package/dist/smoothly/smoothly-tab.entry.js +0 -33
  246. package/dist/smoothly/smoothly-table-cell.entry.js +0 -15
  247. package/dist/smoothly/smoothly-table-demo.entry.js +0 -18
  248. package/dist/smoothly/smoothly-table-expandable-cell.entry.js +0 -41
  249. package/dist/smoothly/smoothly-table-expandable-row.entry.js +0 -28
  250. package/dist/smoothly/smoothly-table-header.entry.js +0 -37
  251. package/dist/smoothly/smoothly-table-row.entry.js +0 -34
  252. package/dist/smoothly/smoothly-table.entry.js +0 -22
  253. package/dist/smoothly/smoothly-trigger-sink.entry.js +0 -29
  254. package/dist/smoothly/smoothly-trigger-source.entry.js +0 -28
  255. package/dist/smoothly/smoothly-trigger.entry.js +0 -32
  256. package/dist/smoothly/smoothly-tuple.entry.js +0 -12
  257. package/dist/smoothly/smoothly-urlencoded.entry.js +0 -15
@@ -1,41 +0,0 @@
1
- import { r as registerInstance, i as createEvent, h, k as Host, j as getElement } from './index-02a70ac1.js';
2
-
3
- const styleCss = ".sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.5em}.hide.sc-smoothly-table-expandable-cell{display:none}";
4
-
5
- let TableExpandableCell = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.expansionOpen = createEvent(this, "expansionOpen", 7);
9
- this.expansionLoaded = createEvent(this, "expansionLoaded", 7);
10
- this.align = "left";
11
- }
12
- openChanged(value) {
13
- if (this.expansionElement)
14
- if (value)
15
- this.beginOpen = true;
16
- else
17
- this.element.append(this.expansionElement);
18
- }
19
- onClick() {
20
- this.open = !this.open;
21
- }
22
- componentDidLoad() {
23
- this.expansionLoaded.emit();
24
- }
25
- componentDidRender() {
26
- if (this.beginOpen) {
27
- this.beginOpen = false;
28
- this.expansionOpen.emit(this.expansionElement);
29
- }
30
- }
31
- render() {
32
- return (h(Host, { style: { textAlign: this.align } }, h("slot", null), h("tr", { ref: e => (this.expansionElement = e) }, h("td", { colSpan: 500, class: !this.open ? "hide" : "" }, h("slot", { name: "detail" })))));
33
- }
34
- get element() { return getElement(this); }
35
- static get watchers() { return {
36
- "open": ["openChanged"]
37
- }; }
38
- };
39
- TableExpandableCell.style = styleCss;
40
-
41
- export { TableExpandableCell as smoothly_table_expandable_cell };
@@ -1,28 +0,0 @@
1
- import { r as registerInstance, h, k as Host, j as getElement } from './index-02a70ac1.js';
2
-
3
- const styleCss = ".sc-smoothly-table-expandable-row-h{display:table-row;border:1px solid rgb(var(--smoothly-default-color));cursor:pointer}.sc-smoothly-table-expandable-row-h:nth-child(even){background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-table-expandable-row-h:hover{background-color:rgb(var(--smoothly-default-color))}";
4
-
5
- let TableExpandableRow = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.expansions = [];
9
- }
10
- onExpansionLoaded(event) {
11
- this.expansions.push(event.target);
12
- }
13
- onDetailsLoaded(event) {
14
- this.expansions.forEach(cell => {
15
- if (cell != event.target)
16
- cell.open = false;
17
- });
18
- if (event.detail)
19
- this.element.after(event.detail);
20
- }
21
- render() {
22
- return (h(Host, null, h("slot", null)));
23
- }
24
- get element() { return getElement(this); }
25
- };
26
- TableExpandableRow.style = styleCss;
27
-
28
- export { TableExpandableRow as smoothly_table_expandable_row };
@@ -1,37 +0,0 @@
1
- import { r as registerInstance, i as createEvent, h, k as Host } from './index-02a70ac1.js';
2
-
3
- const styleCss = ".sc-smoothly-table-header-h{display:table-cell;padding-top:12px;padding-bottom:12px;background-color:rgb(var(--smoothly-default-color));border:1px solid rgb(var(--smoothly-dark-color), 0.5);padding:0.5em;line-height:40px}.sc-smoothly-table-header-h>ion-icon.sc-smoothly-table-header{height:12px;margin-left:20px}";
4
-
5
- let TableHeader = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.sort = createEvent(this, "sort", 7);
9
- }
10
- onClick(event) {
11
- this.sort.emit({
12
- property: this.name,
13
- direction: (this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending"),
14
- });
15
- console.log("sort", this.name, this.sortDirection);
16
- event.preventDefault();
17
- event.stopPropagation();
18
- }
19
- render() {
20
- return (h(Host, null, h("slot", null), this.renderSortIcon()));
21
- }
22
- renderSortIcon() {
23
- let result;
24
- switch (this.sortDirection) {
25
- case "ascending":
26
- result = h("ion-icon", { name: "chevron-up-outline", class: "sort-icon" });
27
- break;
28
- case "descending":
29
- result = h("ion-icon", { name: "chevron-down-outline", class: "sort-icon" });
30
- break;
31
- }
32
- return result;
33
- }
34
- };
35
- TableHeader.style = styleCss;
36
-
37
- export { TableHeader as smoothly_table_header };
@@ -1,34 +0,0 @@
1
- import { r as registerInstance, i as createEvent, h, k as Host, j as getElement } from './index-02a70ac1.js';
2
-
3
- const styleCss = ".sc-smoothly-table-row-h{display:table-row;border:1px solid rgb(var(--smoothly-dark-color), 0.5);cursor:pointer}.sc-smoothly-table-row-h:nth-child(even){background-color:rgb(var(--smoothly-default-color))}.sc-smoothly-table-row-h:hover{background-color:rgb(var(--smoothly-default-color))}.hide.sc-smoothly-table-row{display:none}";
4
-
5
- let TableRow = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.expansionOpen = createEvent(this, "expansionOpen", 7);
9
- this.align = "left";
10
- }
11
- openChanged(value) {
12
- if (this.expansionElement)
13
- this.element.after(this.expansionElement);
14
- }
15
- onClick(e) {
16
- this.open = !this.open;
17
- e.stopPropagation();
18
- }
19
- componentDidRender() {
20
- this.expansionOpen.emit(this.expansionElement);
21
- if (this.expansionElement && this.open)
22
- this.element.after(this.expansionElement);
23
- }
24
- render() {
25
- return (h(Host, { style: { textAlign: this.align } }, h("slot", null), h("tr", { ref: e => (this.expansionElement = e) }, h("td", { colSpan: 500, class: !this.open ? "hide" : "" }, h("slot", { name: "detail" })))));
26
- }
27
- get element() { return getElement(this); }
28
- static get watchers() { return {
29
- "open": ["openChanged"]
30
- }; }
31
- };
32
- TableRow.style = styleCss;
33
-
34
- export { TableRow as smoothly_table_row };
@@ -1,22 +0,0 @@
1
- import { r as registerInstance, i as createEvent, h, j as getElement } from './index-02a70ac1.js';
2
-
3
- const styleCss = ".sc-smoothly-table-h{display:table;text-align:left;border-collapse:collapse;border:3px solid rgb(var(--smoothly-dark-color), 0.5);width:100%;box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}";
4
-
5
- let Table = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.loadMore = createEvent(this, "loadMore", 7);
9
- }
10
- onSort(event) {
11
- if (this.sortedOn && this.sortedOn != event.target)
12
- this.sortedOn.sortDirection = undefined;
13
- this.sortedOn = event.target;
14
- }
15
- render() {
16
- return [h("slot", null)];
17
- }
18
- get element() { return getElement(this); }
19
- };
20
- Table.style = styleCss;
21
-
22
- export { Table as smoothly_table };
@@ -1,29 +0,0 @@
1
- import { r as registerInstance, h } from './index-02a70ac1.js';
2
- import { T as Trigger, M as Message } from './index-c8b5d468.js';
3
- import './GoogleFont-8474516b.js';
4
-
5
- const styleCss = ".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";
6
-
7
- let SmoothlyTriggerSink = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- }
11
- get filters() {
12
- if (!this.filtersValue)
13
- this.filtersValue = this.filter ? this.filter.split(" ") : [];
14
- return this.filtersValue;
15
- }
16
- TriggerListener(event) {
17
- if (Trigger.is(event.detail) && this.filters.some(f => f == event.detail.name)) {
18
- Message.send(this.destination, event.detail, this.context || window);
19
- event.preventDefault();
20
- event.stopPropagation();
21
- }
22
- }
23
- render() {
24
- return h("slot", null);
25
- }
26
- };
27
- SmoothlyTriggerSink.style = styleCss;
28
-
29
- export { SmoothlyTriggerSink as smoothly_trigger_sink };
@@ -1,28 +0,0 @@
1
- import { r as registerInstance, i as createEvent, h, j as getElement } from './index-02a70ac1.js';
2
- import { M as Message, T as Trigger } from './index-c8b5d468.js';
3
- import './GoogleFont-8474516b.js';
4
-
5
- const styleCss = ".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";
6
-
7
- let SmoothlyTriggerSource = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.trigger = createEvent(this, "trigger", 7);
11
- this.message = createEvent(this, "message", 7);
12
- }
13
- componentDidLoad() {
14
- Message.listen(this.listen, (destination, content) => {
15
- if (Trigger.is(content))
16
- this.trigger.emit(content);
17
- else
18
- this.message.emit({ destination, content });
19
- }, window);
20
- }
21
- render() {
22
- return h("slot", null);
23
- }
24
- get element() { return getElement(this); }
25
- };
26
- SmoothlyTriggerSource.style = styleCss;
27
-
28
- export { SmoothlyTriggerSource as smoothly_trigger_source };
@@ -1,32 +0,0 @@
1
- import { r as registerInstance, i as createEvent, h } from './index-02a70ac1.js';
2
-
3
- const styleCss = ".sc-smoothly-trigger-h{display:block;border-style:solid;border-width:1px;border-radius:3px}[hidden].sc-smoothly-trigger-h{display:none}[disabled].sc-smoothly-trigger-h{opacity:0.5}button.sc-smoothly-trigger{border-color:transparent;background-color:transparent;padding:0.2em 0.3em;font-size:110%;font-weight:400}.sc-smoothly-trigger-h:not([processing]):not([disabled]):hover,.sc-smoothly-trigger-h:not([processing]):not([disabled]):focus,.sc-smoothly-trigger-h:not([processing]):not([disabled]):active{border-color:var(--smoothly-trigger-border)}[expand=fill].sc-smoothly-trigger-h>button.sc-smoothly-trigger,[expand=block].sc-smoothly-trigger-h>button.sc-smoothly-trigger{width:100%}[expand=fill].sc-smoothly-trigger-h{border-left:none;border-right:none}";
4
-
5
- let SmoothlyTrigger = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.trigger = createEvent(this, "trigger", 7);
9
- this.disabled = false;
10
- this.type = "button";
11
- }
12
- onClick(e) {
13
- this.trigger.emit({ name: this.name, value: this.value });
14
- e.stopPropagation();
15
- e.preventDefault();
16
- }
17
- render() {
18
- let result;
19
- switch (this.type) {
20
- case "link":
21
- result = this.disabled ? (h("slot", null)) : (h("a", { onClick: e => this.onClick(e) }, h("slot", null)));
22
- break;
23
- case "button":
24
- result = (h("button", { disabled: this.disabled, name: this.name }, h("slot", null)));
25
- break;
26
- }
27
- return result;
28
- }
29
- };
30
- SmoothlyTrigger.style = styleCss;
31
-
32
- export { SmoothlyTrigger as smoothly_trigger };
@@ -1,12 +0,0 @@
1
- import { r as registerInstance, h } from './index-02a70ac1.js';
2
-
3
- let SmoothlyTuple = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- }
7
- render() {
8
- return [h("b", null, this.tuple[0]), ": ", this.tuple[1], h("br", null)];
9
- }
10
- };
11
-
12
- export { SmoothlyTuple as smoothly_tuple };
@@ -1,15 +0,0 @@
1
- import { r as registerInstance, h } from './index-02a70ac1.js';
2
-
3
- let Urlencoded = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- }
7
- render() {
8
- return this.data
9
- .split("&")
10
- .map(p => p.split("="))
11
- .map(tuple => h("smoothly-tuple", { tuple: tuple }));
12
- }
13
- };
14
-
15
- export { Urlencoded as smoothly_urlencoded };