@web-atoms/core 2.6.14 → 2.6.18

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 (308) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/App.js +30 -1
  3. package/dist/App.js.map +1 -1
  4. package/dist/style/StyleRule.d.ts +0 -484
  5. package/dist/style/StyleRule.d.ts.map +1 -1
  6. package/dist/style/StyleRule.js +1 -2660
  7. package/dist/style/StyleRule.js.map +1 -1
  8. package/dist/tsconfig.tsbuildinfo +1 -1
  9. package/dist/web/controls/AtomControl.d.ts +0 -13
  10. package/dist/web/controls/AtomControl.d.ts.map +1 -1
  11. package/dist/web/controls/AtomControl.js +2 -47
  12. package/dist/web/controls/AtomControl.js.map +1 -1
  13. package/dist/web/core/HtmlNode.d.ts.map +1 -1
  14. package/dist/web/core/HtmlNode.js +4 -9
  15. package/dist/web/core/HtmlNode.js.map +1 -1
  16. package/dist-esm/App.d.ts.map +1 -1
  17. package/dist-esm/App.js +29 -0
  18. package/dist-esm/App.js.map +1 -1
  19. package/dist-esm/style/StyleRule.d.ts +0 -457
  20. package/dist-esm/style/StyleRule.d.ts.map +1 -1
  21. package/dist-esm/style/StyleRule.js +1 -2611
  22. package/dist-esm/style/StyleRule.js.map +1 -1
  23. package/dist-esm/tsconfig.esm.tsbuildinfo +1 -1
  24. package/dist-esm/web/controls/AtomControl.d.ts +0 -9
  25. package/dist-esm/web/controls/AtomControl.d.ts.map +1 -1
  26. package/dist-esm/web/controls/AtomControl.js +1 -46
  27. package/dist-esm/web/controls/AtomControl.js.map +1 -1
  28. package/dist-esm/web/core/HtmlNode.d.ts.map +1 -1
  29. package/dist-esm/web/core/HtmlNode.js +2 -6
  30. package/dist-esm/web/core/HtmlNode.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/App.ts +33 -0
  33. package/src/style/StyleRule.ts +0 -3130
  34. package/src/web/controls/AtomControl.ts +0 -56
  35. package/src/web/core/HtmlNode.tsx +3 -7
  36. package/tsconfig.esm.json +1 -1
  37. package/tsconfig.json +1 -1
  38. package/dist/style/styled.d.ts +0 -54
  39. package/dist/style/styled.d.ts.map +0 -1
  40. package/dist/style/styled.js +0 -213
  41. package/dist/style/styled.js.map +0 -1
  42. package/dist/unit/AtomWebTest.d.ts +0 -11
  43. package/dist/unit/AtomWebTest.d.ts.map +0 -1
  44. package/dist/unit/AtomWebTest.js +0 -46
  45. package/dist/unit/AtomWebTest.js.map +0 -1
  46. package/dist/web/WebApp.d.ts +0 -28
  47. package/dist/web/WebApp.d.ts.map +0 -1
  48. package/dist/web/WebApp.js +0 -169
  49. package/dist/web/WebApp.js.map +0 -1
  50. package/dist/web/controls/AtomAlertWindow.d.ts +0 -16
  51. package/dist/web/controls/AtomAlertWindow.d.ts.map +0 -1
  52. package/dist/web/controls/AtomAlertWindow.js +0 -60
  53. package/dist/web/controls/AtomAlertWindow.js.map +0 -1
  54. package/dist/web/controls/AtomContentControl.d.ts +0 -13
  55. package/dist/web/controls/AtomContentControl.d.ts.map +0 -1
  56. package/dist/web/controls/AtomContentControl.js +0 -61
  57. package/dist/web/controls/AtomContentControl.js.map +0 -1
  58. package/dist/web/controls/AtomFrame.d.ts +0 -46
  59. package/dist/web/controls/AtomFrame.d.ts.map +0 -1
  60. package/dist/web/controls/AtomFrame.js +0 -232
  61. package/dist/web/controls/AtomFrame.js.map +0 -1
  62. package/dist/web/controls/AtomListBox.d.ts +0 -9
  63. package/dist/web/controls/AtomListBox.d.ts.map +0 -1
  64. package/dist/web/controls/AtomListBox.js +0 -63
  65. package/dist/web/controls/AtomListBox.js.map +0 -1
  66. package/dist/web/controls/AtomNotification.d.ts +0 -9
  67. package/dist/web/controls/AtomNotification.d.ts.map +0 -1
  68. package/dist/web/controls/AtomNotification.js +0 -62
  69. package/dist/web/controls/AtomNotification.js.map +0 -1
  70. package/dist/web/controls/AtomPageLink.d.ts +0 -41
  71. package/dist/web/controls/AtomPageLink.d.ts.map +0 -1
  72. package/dist/web/controls/AtomPageLink.js +0 -113
  73. package/dist/web/controls/AtomPageLink.js.map +0 -1
  74. package/dist/web/controls/AtomTabbedPage.d.ts +0 -48
  75. package/dist/web/controls/AtomTabbedPage.d.ts.map +0 -1
  76. package/dist/web/controls/AtomTabbedPage.js +0 -266
  77. package/dist/web/controls/AtomTabbedPage.js.map +0 -1
  78. package/dist/web/controls/AtomToggleButtonBar.d.ts +0 -7
  79. package/dist/web/controls/AtomToggleButtonBar.d.ts.map +0 -1
  80. package/dist/web/controls/AtomToggleButtonBar.js +0 -46
  81. package/dist/web/controls/AtomToggleButtonBar.js.map +0 -1
  82. package/dist/web/controls/AtomViewPager.d.ts +0 -7
  83. package/dist/web/controls/AtomViewPager.d.ts.map +0 -1
  84. package/dist/web/controls/AtomViewPager.js +0 -68
  85. package/dist/web/controls/AtomViewPager.js.map +0 -1
  86. package/dist/web/controls/AtomWindow.d.ts +0 -36
  87. package/dist/web/controls/AtomWindow.d.ts.map +0 -1
  88. package/dist/web/controls/AtomWindow.js +0 -248
  89. package/dist/web/controls/AtomWindow.js.map +0 -1
  90. package/dist/web/samples/MovieService.d.ts +0 -5
  91. package/dist/web/samples/MovieService.d.ts.map +0 -1
  92. package/dist/web/samples/MovieService.js +0 -29
  93. package/dist/web/samples/MovieService.js.map +0 -1
  94. package/dist/web/samples/demo/app.d.ts +0 -5
  95. package/dist/web/samples/demo/app.d.ts.map +0 -1
  96. package/dist/web/samples/demo/app.js +0 -26
  97. package/dist/web/samples/demo/app.js.map +0 -1
  98. package/dist/web/samples/demo/views/MovieList.d.ts +0 -5
  99. package/dist/web/samples/demo/views/MovieList.d.ts.map +0 -1
  100. package/dist/web/samples/demo/views/MovieList.js +0 -71
  101. package/dist/web/samples/demo/views/MovieList.js.map +0 -1
  102. package/dist/web/samples/demo/views/MovieListViewModel.d.ts +0 -18
  103. package/dist/web/samples/demo/views/MovieListViewModel.d.ts.map +0 -1
  104. package/dist/web/samples/demo/views/MovieListViewModel.js +0 -73
  105. package/dist/web/samples/demo/views/MovieListViewModel.js.map +0 -1
  106. package/dist/web/samples/tabs/app.d.ts +0 -5
  107. package/dist/web/samples/tabs/app.d.ts.map +0 -1
  108. package/dist/web/samples/tabs/app.js +0 -35
  109. package/dist/web/samples/tabs/app.js.map +0 -1
  110. package/dist/web/samples/tabs/views/List.d.ts +0 -4
  111. package/dist/web/samples/tabs/views/List.d.ts.map +0 -1
  112. package/dist/web/samples/tabs/views/List.js +0 -14
  113. package/dist/web/samples/tabs/views/List.js.map +0 -1
  114. package/dist/web/samples/tabs/views/ListDataUrl.d.ts +0 -4
  115. package/dist/web/samples/tabs/views/ListDataUrl.d.ts.map +0 -1
  116. package/dist/web/samples/tabs/views/ListDataUrl.js +0 -15
  117. package/dist/web/samples/tabs/views/ListDataUrl.js.map +0 -1
  118. package/dist/web/samples/tabs/views/Page1.d.ts +0 -5
  119. package/dist/web/samples/tabs/views/Page1.d.ts.map +0 -1
  120. package/dist/web/samples/tabs/views/Page1.js +0 -63
  121. package/dist/web/samples/tabs/views/Page1.js.map +0 -1
  122. package/dist/web/samples/tabs/views/TabHost.d.ts +0 -5
  123. package/dist/web/samples/tabs/views/TabHost.d.ts.map +0 -1
  124. package/dist/web/samples/tabs/views/TabHost.js +0 -52
  125. package/dist/web/samples/tabs/views/TabHost.js.map +0 -1
  126. package/dist/web/samples/window/WindowSample.d.ts +0 -5
  127. package/dist/web/samples/window/WindowSample.d.ts.map +0 -1
  128. package/dist/web/samples/window/WindowSample.js +0 -30
  129. package/dist/web/samples/window/WindowSample.js.map +0 -1
  130. package/dist/web/services/WebBusyIndicatorService.d.ts +0 -9
  131. package/dist/web/services/WebBusyIndicatorService.d.ts.map +0 -1
  132. package/dist/web/services/WebBusyIndicatorService.js +0 -82
  133. package/dist/web/services/WebBusyIndicatorService.js.map +0 -1
  134. package/dist/web/services/WindowService.d.ts +0 -63
  135. package/dist/web/services/WindowService.d.ts.map +0 -1
  136. package/dist/web/services/WindowService.js +0 -341
  137. package/dist/web/services/WindowService.js.map +0 -1
  138. package/dist/web/styles/AtomListBoxStyle.d.ts +0 -11
  139. package/dist/web/styles/AtomListBoxStyle.d.ts.map +0 -1
  140. package/dist/web/styles/AtomListBoxStyle.js +0 -43
  141. package/dist/web/styles/AtomListBoxStyle.js.map +0 -1
  142. package/dist/web/styles/AtomTabbedPageStyle.d.ts +0 -12
  143. package/dist/web/styles/AtomTabbedPageStyle.d.ts.map +0 -1
  144. package/dist/web/styles/AtomTabbedPageStyle.js +0 -128
  145. package/dist/web/styles/AtomTabbedPageStyle.js.map +0 -1
  146. package/dist/web/styles/AtomTheme.d.ts +0 -17
  147. package/dist/web/styles/AtomTheme.d.ts.map +0 -1
  148. package/dist/web/styles/AtomTheme.js +0 -53
  149. package/dist/web/styles/AtomTheme.js.map +0 -1
  150. package/dist/web/styles/AtomToggleButtonBarStyle.d.ts +0 -9
  151. package/dist/web/styles/AtomToggleButtonBarStyle.d.ts.map +0 -1
  152. package/dist/web/styles/AtomToggleButtonBarStyle.js +0 -77
  153. package/dist/web/styles/AtomToggleButtonBarStyle.js.map +0 -1
  154. package/dist/web/styles/CSS.d.ts +0 -11
  155. package/dist/web/styles/CSS.d.ts.map +0 -1
  156. package/dist/web/styles/CSS.js +0 -76
  157. package/dist/web/styles/CSS.js.map +0 -1
  158. package/dist-esm/style/styled.d.ts +0 -36
  159. package/dist-esm/style/styled.d.ts.map +0 -1
  160. package/dist-esm/style/styled.js +0 -198
  161. package/dist-esm/style/styled.js.map +0 -1
  162. package/dist-esm/unit/AtomWebTest.d.ts +0 -11
  163. package/dist-esm/unit/AtomWebTest.d.ts.map +0 -1
  164. package/dist-esm/unit/AtomWebTest.js +0 -24
  165. package/dist-esm/unit/AtomWebTest.js.map +0 -1
  166. package/dist-esm/web/WebApp.d.ts +0 -25
  167. package/dist-esm/web/WebApp.d.ts.map +0 -1
  168. package/dist-esm/web/WebApp.js +0 -140
  169. package/dist-esm/web/WebApp.js.map +0 -1
  170. package/dist-esm/web/controls/AtomAlertWindow.d.ts +0 -16
  171. package/dist-esm/web/controls/AtomAlertWindow.d.ts.map +0 -1
  172. package/dist-esm/web/controls/AtomAlertWindow.js +0 -41
  173. package/dist-esm/web/controls/AtomAlertWindow.js.map +0 -1
  174. package/dist-esm/web/controls/AtomContentControl.d.ts +0 -13
  175. package/dist-esm/web/controls/AtomContentControl.d.ts.map +0 -1
  176. package/dist-esm/web/controls/AtomContentControl.js +0 -44
  177. package/dist-esm/web/controls/AtomContentControl.js.map +0 -1
  178. package/dist-esm/web/controls/AtomFrame.d.ts +0 -36
  179. package/dist-esm/web/controls/AtomFrame.d.ts.map +0 -1
  180. package/dist-esm/web/controls/AtomFrame.js +0 -205
  181. package/dist-esm/web/controls/AtomFrame.js.map +0 -1
  182. package/dist-esm/web/controls/AtomListBox.d.ts +0 -9
  183. package/dist-esm/web/controls/AtomListBox.d.ts.map +0 -1
  184. package/dist-esm/web/controls/AtomListBox.js +0 -56
  185. package/dist-esm/web/controls/AtomListBox.js.map +0 -1
  186. package/dist-esm/web/controls/AtomNotification.d.ts +0 -9
  187. package/dist-esm/web/controls/AtomNotification.d.ts.map +0 -1
  188. package/dist-esm/web/controls/AtomNotification.js +0 -43
  189. package/dist-esm/web/controls/AtomNotification.js.map +0 -1
  190. package/dist-esm/web/controls/AtomPageLink.d.ts +0 -22
  191. package/dist-esm/web/controls/AtomPageLink.d.ts.map +0 -1
  192. package/dist-esm/web/controls/AtomPageLink.js +0 -88
  193. package/dist-esm/web/controls/AtomPageLink.js.map +0 -1
  194. package/dist-esm/web/controls/AtomTabbedPage.d.ts +0 -48
  195. package/dist-esm/web/controls/AtomTabbedPage.d.ts.map +0 -1
  196. package/dist-esm/web/controls/AtomTabbedPage.js +0 -227
  197. package/dist-esm/web/controls/AtomTabbedPage.js.map +0 -1
  198. package/dist-esm/web/controls/AtomToggleButtonBar.d.ts +0 -7
  199. package/dist-esm/web/controls/AtomToggleButtonBar.d.ts.map +0 -1
  200. package/dist-esm/web/controls/AtomToggleButtonBar.js +0 -32
  201. package/dist-esm/web/controls/AtomToggleButtonBar.js.map +0 -1
  202. package/dist-esm/web/controls/AtomViewPager.d.ts +0 -7
  203. package/dist-esm/web/controls/AtomViewPager.d.ts.map +0 -1
  204. package/dist-esm/web/controls/AtomViewPager.js +0 -49
  205. package/dist-esm/web/controls/AtomViewPager.js.map +0 -1
  206. package/dist-esm/web/controls/AtomWindow.d.ts +0 -36
  207. package/dist-esm/web/controls/AtomWindow.d.ts.map +0 -1
  208. package/dist-esm/web/controls/AtomWindow.js +0 -191
  209. package/dist-esm/web/controls/AtomWindow.js.map +0 -1
  210. package/dist-esm/web/samples/MovieService.d.ts +0 -5
  211. package/dist-esm/web/samples/MovieService.d.ts.map +0 -1
  212. package/dist-esm/web/samples/MovieService.js +0 -19
  213. package/dist-esm/web/samples/MovieService.js.map +0 -1
  214. package/dist-esm/web/samples/demo/app.d.ts +0 -5
  215. package/dist-esm/web/samples/demo/app.d.ts.map +0 -1
  216. package/dist-esm/web/samples/demo/app.js +0 -12
  217. package/dist-esm/web/samples/demo/app.js.map +0 -1
  218. package/dist-esm/web/samples/demo/views/MovieList.d.ts +0 -5
  219. package/dist-esm/web/samples/demo/views/MovieList.d.ts.map +0 -1
  220. package/dist-esm/web/samples/demo/views/MovieList.js +0 -56
  221. package/dist-esm/web/samples/demo/views/MovieList.js.map +0 -1
  222. package/dist-esm/web/samples/demo/views/MovieListViewModel.d.ts +0 -18
  223. package/dist-esm/web/samples/demo/views/MovieListViewModel.d.ts.map +0 -1
  224. package/dist-esm/web/samples/demo/views/MovieListViewModel.js +0 -55
  225. package/dist-esm/web/samples/demo/views/MovieListViewModel.js.map +0 -1
  226. package/dist-esm/web/samples/tabs/app.d.ts +0 -5
  227. package/dist-esm/web/samples/tabs/app.d.ts.map +0 -1
  228. package/dist-esm/web/samples/tabs/app.js +0 -19
  229. package/dist-esm/web/samples/tabs/app.js.map +0 -1
  230. package/dist-esm/web/samples/tabs/views/List.d.ts +0 -4
  231. package/dist-esm/web/samples/tabs/views/List.d.ts.map +0 -1
  232. package/dist-esm/web/samples/tabs/views/List.js +0 -3
  233. package/dist-esm/web/samples/tabs/views/List.js.map +0 -1
  234. package/dist-esm/web/samples/tabs/views/ListDataUrl.d.ts +0 -4
  235. package/dist-esm/web/samples/tabs/views/ListDataUrl.d.ts.map +0 -1
  236. package/dist-esm/web/samples/tabs/views/ListDataUrl.js +0 -6
  237. package/dist-esm/web/samples/tabs/views/ListDataUrl.js.map +0 -1
  238. package/dist-esm/web/samples/tabs/views/Page1.d.ts +0 -5
  239. package/dist-esm/web/samples/tabs/views/Page1.d.ts.map +0 -1
  240. package/dist-esm/web/samples/tabs/views/Page1.js +0 -45
  241. package/dist-esm/web/samples/tabs/views/Page1.js.map +0 -1
  242. package/dist-esm/web/samples/tabs/views/TabHost.d.ts +0 -5
  243. package/dist-esm/web/samples/tabs/views/TabHost.d.ts.map +0 -1
  244. package/dist-esm/web/samples/tabs/views/TabHost.js +0 -35
  245. package/dist-esm/web/samples/tabs/views/TabHost.js.map +0 -1
  246. package/dist-esm/web/samples/window/WindowSample.d.ts +0 -5
  247. package/dist-esm/web/samples/window/WindowSample.d.ts.map +0 -1
  248. package/dist-esm/web/samples/window/WindowSample.js +0 -13
  249. package/dist-esm/web/samples/window/WindowSample.js.map +0 -1
  250. package/dist-esm/web/services/WebBusyIndicatorService.d.ts +0 -9
  251. package/dist-esm/web/services/WebBusyIndicatorService.d.ts.map +0 -1
  252. package/dist-esm/web/services/WebBusyIndicatorService.js +0 -73
  253. package/dist-esm/web/services/WebBusyIndicatorService.js.map +0 -1
  254. package/dist-esm/web/services/WindowService.d.ts +0 -36
  255. package/dist-esm/web/services/WindowService.d.ts.map +0 -1
  256. package/dist-esm/web/services/WindowService.js +0 -296
  257. package/dist-esm/web/services/WindowService.js.map +0 -1
  258. package/dist-esm/web/styles/AtomListBoxStyle.d.ts +0 -11
  259. package/dist-esm/web/styles/AtomListBoxStyle.d.ts.map +0 -1
  260. package/dist-esm/web/styles/AtomListBoxStyle.js +0 -32
  261. package/dist-esm/web/styles/AtomListBoxStyle.js.map +0 -1
  262. package/dist-esm/web/styles/AtomTabbedPageStyle.d.ts +0 -12
  263. package/dist-esm/web/styles/AtomTabbedPageStyle.d.ts.map +0 -1
  264. package/dist-esm/web/styles/AtomTabbedPageStyle.js +0 -115
  265. package/dist-esm/web/styles/AtomTabbedPageStyle.js.map +0 -1
  266. package/dist-esm/web/styles/AtomTheme.d.ts +0 -17
  267. package/dist-esm/web/styles/AtomTheme.d.ts.map +0 -1
  268. package/dist-esm/web/styles/AtomTheme.js +0 -41
  269. package/dist-esm/web/styles/AtomTheme.js.map +0 -1
  270. package/dist-esm/web/styles/AtomToggleButtonBarStyle.d.ts +0 -9
  271. package/dist-esm/web/styles/AtomToggleButtonBarStyle.d.ts.map +0 -1
  272. package/dist-esm/web/styles/AtomToggleButtonBarStyle.js +0 -68
  273. package/dist-esm/web/styles/AtomToggleButtonBarStyle.js.map +0 -1
  274. package/dist-esm/web/styles/CSS.d.ts +0 -4
  275. package/dist-esm/web/styles/CSS.d.ts.map +0 -1
  276. package/dist-esm/web/styles/CSS.js +0 -66
  277. package/dist-esm/web/styles/CSS.js.map +0 -1
  278. package/src/style/styled.ts +0 -277
  279. package/src/unit/AtomWebTest.ts +0 -33
  280. package/src/web/WebApp.ts +0 -192
  281. package/src/web/controls/AtomAlertWindow.tsx +0 -111
  282. package/src/web/controls/AtomContentControl.ts +0 -52
  283. package/src/web/controls/AtomFrame.ts +0 -295
  284. package/src/web/controls/AtomListBox.ts +0 -69
  285. package/src/web/controls/AtomNotification.tsx +0 -45
  286. package/src/web/controls/AtomPageLink.ts +0 -164
  287. package/src/web/controls/AtomTabbedPage.tsx +0 -320
  288. package/src/web/controls/AtomToggleButtonBar.ts +0 -41
  289. package/src/web/controls/AtomViewPager.ts +0 -60
  290. package/src/web/controls/AtomWindow.tsx +0 -342
  291. package/src/web/samples/MovieService.ts +0 -12
  292. package/src/web/samples/demo/app.ts +0 -15
  293. package/src/web/samples/demo/views/MovieList.ts +0 -77
  294. package/src/web/samples/demo/views/MovieListViewModel.ts +0 -52
  295. package/src/web/samples/tabs/app.ts +0 -20
  296. package/src/web/samples/tabs/views/List.json +0 -10
  297. package/src/web/samples/tabs/views/List.ts +0 -6
  298. package/src/web/samples/tabs/views/ListDataUrl.ts +0 -9
  299. package/src/web/samples/tabs/views/Page1.tsx +0 -49
  300. package/src/web/samples/tabs/views/TabHost.ts +0 -34
  301. package/src/web/samples/window/WindowSample.tsx +0 -16
  302. package/src/web/services/WebBusyIndicatorService.ts +0 -79
  303. package/src/web/services/WindowService.ts +0 -500
  304. package/src/web/styles/AtomListBoxStyle.ts +0 -42
  305. package/src/web/styles/AtomTabbedPageStyle.ts +0 -125
  306. package/src/web/styles/AtomTheme.ts +0 -61
  307. package/src/web/styles/AtomToggleButtonBarStyle.ts +0 -76
  308. package/src/web/styles/CSS.ts +0 -77
@@ -1,2668 +1,9 @@
1
1
  System.register([], function (_export, _context) {
2
2
  "use strict";
3
3
 
4
- var AtomStyleRules, styleId;
5
- function toUnit(n, unit) {
6
- if (!unit) {
7
- unit = "";
8
- }
9
- return typeof n === "number" ? n + unit : n;
10
- }
11
- function StyleRule(selector) {
12
- return new AtomStyleRules(selector);
13
- }
14
- function fromCamelToHyphen(input) {
15
- return input.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
16
- }
17
- function createStyleText(name, pairs, styles) {
18
- const styleList = [];
19
- for (const key in styles) {
20
- if (styles.hasOwnProperty(key)) {
21
- if (/^(\_\$\_|className$|toString$)/i.test(key)) {
22
- continue;
23
- }
24
- const element = styles[key];
25
- if (element === undefined || element === null) {
26
- continue;
27
- }
28
- const keyName = fromCamelToHyphen(key);
29
- if (key === "subclasses") {
30
- const n = name;
31
- for (const subclassKey in element) {
32
- if (element.hasOwnProperty(subclassKey)) {
33
- const ve = element[subclassKey];
34
- pairs = createStyleText(`${n}${subclassKey}`, pairs, ve);
35
- }
36
- }
37
- } else {
38
- if (element.url) {
39
- styleList.push(`${keyName}: url(${element})`);
40
- } else {
41
- styleList.push(`${keyName}: ${element}`);
42
- }
43
- }
44
- }
45
- }
46
- if (!name) {
47
- return [styleList.join(";")];
48
- }
49
- const cname = fromCamelToHyphen(name);
50
- const styleClassName = `${cname}`;
51
- if (styleList.length) {
52
- pairs.push(`.${styleClassName} { ${styleList.join(";\r\n")}; }`);
53
- }
54
- return pairs;
55
- }
56
- _export({
57
- toUnit: toUnit,
58
- AtomStyleRules: void 0
59
- });
60
4
  return {
61
5
  setters: [],
62
- execute: function () {
63
- _export("AtomStyleRules", AtomStyleRules = class AtomStyleRules {
64
- constructor(name) {
65
- this.style = {};
66
- if (typeof name === "string") {
67
- this.name = name;
68
- } else {
69
- this.style = name !== null && name !== void 0 ? name : {};
70
- }
71
- }
72
- alignContent(value) {
73
- if (value !== undefined && value !== null) {
74
- this.style.alignContent = value;
75
- }
76
- return this;
77
- }
78
- alignItems(value) {
79
- if (value !== undefined && value !== null) {
80
- this.style.alignItems = value;
81
- }
82
- return this;
83
- }
84
- alignSelf(value) {
85
- if (value !== undefined && value !== null) {
86
- this.style.alignSelf = value;
87
- }
88
- return this;
89
- }
90
- alignmentBaseline(value) {
91
- if (value !== undefined && value !== null) {
92
- this.style.alignmentBaseline = value;
93
- }
94
- return this;
95
- }
96
- animation(value) {
97
- if (value !== undefined && value !== null) {
98
- this.style.animation = value;
99
- }
100
- return this;
101
- }
102
- animationDelay(value) {
103
- if (value !== undefined && value !== null) {
104
- this.style.animationDelay = value;
105
- }
106
- return this;
107
- }
108
- animationDirection(value) {
109
- if (value !== undefined && value !== null) {
110
- this.style.animationDirection = value;
111
- }
112
- return this;
113
- }
114
- animationDuration(value) {
115
- if (value !== undefined && value !== null) {
116
- this.style.animationDuration = value;
117
- }
118
- return this;
119
- }
120
- animationFillMode(value) {
121
- if (value !== undefined && value !== null) {
122
- this.style.animationFillMode = value;
123
- }
124
- return this;
125
- }
126
- animationIterationCount(value) {
127
- if (value !== undefined && value !== null) {
128
- this.style.animationIterationCount = value;
129
- }
130
- return this;
131
- }
132
- animationName(value) {
133
- if (value !== undefined && value !== null) {
134
- this.style.animationName = value;
135
- }
136
- return this;
137
- }
138
- animationPlayState(value) {
139
- if (value !== undefined && value !== null) {
140
- this.style.animationPlayState = value;
141
- }
142
- return this;
143
- }
144
- animationTimingFunction(value) {
145
- if (value !== undefined && value !== null) {
146
- this.style.animationTimingFunction = value;
147
- }
148
- return this;
149
- }
150
- backfaceVisibility(value) {
151
- if (value !== undefined && value !== null) {
152
- this.style.backfaceVisibility = value;
153
- }
154
- return this;
155
- }
156
- background(value) {
157
- if (value !== undefined && value !== null) {
158
- this.style.background = value;
159
- }
160
- return this;
161
- }
162
- backgroundAttachment(value) {
163
- if (value !== undefined && value !== null) {
164
- this.style.backgroundAttachment = value;
165
- }
166
- return this;
167
- }
168
- backgroundBlendMode(value) {
169
- if (value !== undefined && value !== null) {
170
- this.style.backgroundBlendMode = value;
171
- }
172
- return this;
173
- }
174
- backgroundClip(value) {
175
- if (value !== undefined && value !== null) {
176
- this.style.backgroundClip = value;
177
- }
178
- return this;
179
- }
180
- backgroundColor(value) {
181
- if (value !== undefined && value !== null) {
182
- this.style.backgroundColor = value;
183
- }
184
- return this;
185
- }
186
- backgroundImage(value) {
187
- if (value !== undefined && value !== null) {
188
- this.style.backgroundImage = value;
189
- }
190
- return this;
191
- }
192
- backgroundOrigin(value) {
193
- if (value !== undefined && value !== null) {
194
- this.style.backgroundOrigin = value;
195
- }
196
- return this;
197
- }
198
- backgroundPosition(value) {
199
- if (value !== undefined && value !== null) {
200
- this.style.backgroundPosition = value;
201
- }
202
- return this;
203
- }
204
- backgroundPositionX(value, unit = "px") {
205
- if (value !== undefined && value !== null) {
206
- this.style.backgroundPositionX = toUnit(value, unit);
207
- }
208
- return this;
209
- }
210
- backgroundPositionY(value, unit = "px") {
211
- if (value !== undefined && value !== null) {
212
- this.style.backgroundPositionY = toUnit(value, unit);
213
- }
214
- return this;
215
- }
216
- backgroundRepeat(value) {
217
- if (value !== undefined && value !== null) {
218
- this.style.backgroundRepeat = value;
219
- }
220
- return this;
221
- }
222
- backgroundSize(value) {
223
- if (value !== undefined && value !== null) {
224
- this.style.backgroundSize = value;
225
- }
226
- return this;
227
- }
228
- baselineShift(value) {
229
- if (value !== undefined && value !== null) {
230
- this.style.baselineShift = value;
231
- }
232
- return this;
233
- }
234
- border(value) {
235
- if (value !== undefined && value !== null) {
236
- this.style.border = value;
237
- }
238
- return this;
239
- }
240
- borderBottom(value) {
241
- if (value !== undefined && value !== null) {
242
- this.style.borderBottom = value;
243
- }
244
- return this;
245
- }
246
- borderBottomColor(value) {
247
- if (value !== undefined && value !== null) {
248
- this.style.borderBottomColor = value;
249
- }
250
- return this;
251
- }
252
- borderBottomLeftRadius(value, unit = "px") {
253
- if (value !== undefined && value !== null) {
254
- this.style.borderBottomLeftRadius = toUnit(value, unit);
255
- }
256
- return this;
257
- }
258
- borderBottomRightRadius(value, unit = "px") {
259
- if (value !== undefined && value !== null) {
260
- this.style.borderBottomRightRadius = toUnit(value, unit);
261
- }
262
- return this;
263
- }
264
- borderBottomStyle(value) {
265
- if (value !== undefined && value !== null) {
266
- this.style.borderBottomStyle = value;
267
- }
268
- return this;
269
- }
270
- borderBottomWidth(value, unit = "px") {
271
- if (value !== undefined && value !== null) {
272
- this.style.borderBottomWidth = toUnit(value, unit);
273
- }
274
- return this;
275
- }
276
- borderCollapse(value) {
277
- if (value !== undefined && value !== null) {
278
- this.style.borderCollapse = value;
279
- }
280
- return this;
281
- }
282
- borderColor(value) {
283
- if (value !== undefined && value !== null) {
284
- this.style.borderColor = value;
285
- }
286
- return this;
287
- }
288
- borderImage(value) {
289
- if (value !== undefined && value !== null) {
290
- this.style.borderImage = value;
291
- }
292
- return this;
293
- }
294
- borderImageOutset(value) {
295
- if (value !== undefined && value !== null) {
296
- this.style.borderImageOutset = value;
297
- }
298
- return this;
299
- }
300
- borderImageRepeat(value) {
301
- if (value !== undefined && value !== null) {
302
- this.style.borderImageRepeat = value;
303
- }
304
- return this;
305
- }
306
- borderImageSlice(value) {
307
- if (value !== undefined && value !== null) {
308
- this.style.borderImageSlice = value;
309
- }
310
- return this;
311
- }
312
- borderImageSource(value) {
313
- if (value !== undefined && value !== null) {
314
- this.style.borderImageSource = value;
315
- }
316
- return this;
317
- }
318
- borderImageWidth(value) {
319
- if (value !== undefined && value !== null) {
320
- this.style.borderImageWidth = value;
321
- }
322
- return this;
323
- }
324
- borderLeft(value) {
325
- if (value !== undefined && value !== null) {
326
- this.style.borderLeft = value;
327
- }
328
- return this;
329
- }
330
- borderLeftColor(value) {
331
- if (value !== undefined && value !== null) {
332
- this.style.borderLeftColor = value;
333
- }
334
- return this;
335
- }
336
- borderLeftStyle(value) {
337
- if (value !== undefined && value !== null) {
338
- this.style.borderLeftStyle = value;
339
- }
340
- return this;
341
- }
342
- borderLeftWidth(value, unit = "px") {
343
- if (value !== undefined && value !== null) {
344
- this.style.borderLeftWidth = toUnit(value, unit);
345
- }
346
- return this;
347
- }
348
- borderRadius(value, unit = "px") {
349
- if (value !== undefined && value !== null) {
350
- this.style.borderRadius = toUnit(value, unit);
351
- }
352
- return this;
353
- }
354
- borderRight(value) {
355
- if (value !== undefined && value !== null) {
356
- this.style.borderRight = value;
357
- }
358
- return this;
359
- }
360
- borderRightColor(value) {
361
- if (value !== undefined && value !== null) {
362
- this.style.borderRightColor = value;
363
- }
364
- return this;
365
- }
366
- borderRightStyle(value) {
367
- if (value !== undefined && value !== null) {
368
- this.style.borderRightStyle = value;
369
- }
370
- return this;
371
- }
372
- borderRightWidth(value, unit = "px") {
373
- if (value !== undefined && value !== null) {
374
- this.style.borderRightWidth = toUnit(value, unit);
375
- }
376
- return this;
377
- }
378
- borderSpacing(value) {
379
- if (value !== undefined && value !== null) {
380
- this.style.borderSpacing = value;
381
- }
382
- return this;
383
- }
384
- borderStyle(value) {
385
- if (value !== undefined && value !== null) {
386
- this.style.borderStyle = value;
387
- }
388
- return this;
389
- }
390
- borderTop(value) {
391
- if (value !== undefined && value !== null) {
392
- this.style.borderTop = value;
393
- }
394
- return this;
395
- }
396
- borderTopColor(value) {
397
- if (value !== undefined && value !== null) {
398
- this.style.borderTopColor = value;
399
- }
400
- return this;
401
- }
402
- borderTopLeftRadius(value, unit = "px") {
403
- if (value !== undefined && value !== null) {
404
- this.style.borderTopLeftRadius = toUnit(value, unit);
405
- }
406
- return this;
407
- }
408
- borderTopRightRadius(value, unit = "px") {
409
- if (value !== undefined && value !== null) {
410
- this.style.borderTopRightRadius = toUnit(value, unit);
411
- }
412
- return this;
413
- }
414
- borderTopStyle(value) {
415
- if (value !== undefined && value !== null) {
416
- this.style.borderTopStyle = value;
417
- }
418
- return this;
419
- }
420
- borderTopWidth(value, unit = "px") {
421
- if (value !== undefined && value !== null) {
422
- this.style.borderTopWidth = toUnit(value, unit);
423
- }
424
- return this;
425
- }
426
- borderWidth(value, unit = "px") {
427
- if (value !== undefined && value !== null) {
428
- this.style.borderWidth = toUnit(value, unit);
429
- }
430
- return this;
431
- }
432
- bottom(value, unit = "px") {
433
- if (value !== undefined && value !== null) {
434
- this.style.bottom = toUnit(value, unit);
435
- }
436
- return this;
437
- }
438
- boxShadow(value) {
439
- if (value !== undefined && value !== null) {
440
- this.style.boxShadow = value;
441
- }
442
- return this;
443
- }
444
- boxSizing(value) {
445
- if (value !== undefined && value !== null) {
446
- this.style.boxSizing = value;
447
- }
448
- return this;
449
- }
450
- breakAfter(value) {
451
- if (value !== undefined && value !== null) {
452
- this.style.breakAfter = value;
453
- }
454
- return this;
455
- }
456
- breakBefore(value) {
457
- if (value !== undefined && value !== null) {
458
- this.style.breakBefore = value;
459
- }
460
- return this;
461
- }
462
- breakInside(value) {
463
- if (value !== undefined && value !== null) {
464
- this.style.breakInside = value;
465
- }
466
- return this;
467
- }
468
- captionSide(value) {
469
- if (value !== undefined && value !== null) {
470
- this.style.captionSide = value;
471
- }
472
- return this;
473
- }
474
- caretColor(value) {
475
- this.style.caretColor = value;
476
- return this;
477
- }
478
- clear(value) {
479
- if (value !== undefined && value !== null) {
480
- this.style.clear = value;
481
- }
482
- return this;
483
- }
484
- clip(value) {
485
- if (value !== undefined && value !== null) {
486
- this.style.clip = value;
487
- }
488
- return this;
489
- }
490
- clipPath(value) {
491
- if (value !== undefined && value !== null) {
492
- this.style.clipPath = value;
493
- }
494
- return this;
495
- }
496
- clipRule(value) {
497
- if (value !== undefined && value !== null) {
498
- this.style.clipRule = value;
499
- }
500
- return this;
501
- }
502
- color(value) {
503
- if (value !== undefined && value !== null) {
504
- this.style.color = value;
505
- }
506
- return this;
507
- }
508
- colorInterpolationFilters(value) {
509
- if (value !== undefined && value !== null) {
510
- this.style.colorInterpolationFilters = value;
511
- }
512
- return this;
513
- }
514
- columnCount(value) {
515
- if (value !== undefined && value !== null) {
516
- this.style.columnCount = value;
517
- }
518
- return this;
519
- }
520
- columnFill(value) {
521
- if (value !== undefined && value !== null) {
522
- this.style.columnFill = value;
523
- }
524
- return this;
525
- }
526
- columnGap(value, unit = "px") {
527
- if (value !== undefined && value !== null) {
528
- this.style.columnGap = toUnit(value, unit);
529
- }
530
- return this;
531
- }
532
- columnRule(value) {
533
- if (value !== undefined && value !== null) {
534
- this.style.columnRule = value;
535
- }
536
- return this;
537
- }
538
- columnRuleColor(value) {
539
- if (value !== undefined && value !== null) {
540
- this.style.columnRuleColor = value;
541
- }
542
- return this;
543
- }
544
- columnRuleStyle(value) {
545
- if (value !== undefined && value !== null) {
546
- this.style.columnRuleStyle = value;
547
- }
548
- return this;
549
- }
550
- columnRuleWidth(value) {
551
- if (value !== undefined && value !== null) {
552
- this.style.columnRuleWidth = value;
553
- }
554
- return this;
555
- }
556
- columnSpan(value) {
557
- if (value !== undefined && value !== null) {
558
- this.style.columnSpan = value;
559
- }
560
- return this;
561
- }
562
- columnWidth(value) {
563
- if (value !== undefined && value !== null) {
564
- this.style.columnWidth = value;
565
- }
566
- return this;
567
- }
568
- columns(value) {
569
- if (value !== undefined && value !== null) {
570
- this.style.columns = value;
571
- }
572
- return this;
573
- }
574
- content(value) {
575
- if (value !== undefined && value !== null) {
576
- this.style.content = value;
577
- }
578
- return this;
579
- }
580
- counterIncrement(value) {
581
- if (value !== undefined && value !== null) {
582
- this.style.counterIncrement = value;
583
- }
584
- return this;
585
- }
586
- counterReset(value) {
587
- if (value !== undefined && value !== null) {
588
- this.style.counterReset = value;
589
- }
590
- return this;
591
- }
592
- cssFloat(value) {
593
- if (value !== undefined && value !== null) {
594
- this.style.cssFloat = value;
595
- }
596
- return this;
597
- }
598
- cssText(value) {
599
- if (value !== undefined && value !== null) {
600
- this.style.cssText = value;
601
- }
602
- return this;
603
- }
604
- cursor(value) {
605
- if (value !== undefined && value !== null) {
606
- this.style.cursor = value;
607
- }
608
- return this;
609
- }
610
- direction(value) {
611
- if (value !== undefined && value !== null) {
612
- this.style.direction = value;
613
- }
614
- return this;
615
- }
616
- display(value) {
617
- if (value !== undefined && value !== null) {
618
- this.style.display = value;
619
- }
620
- return this;
621
- }
622
- dominantBaseline(value) {
623
- if (value !== undefined && value !== null) {
624
- this.style.dominantBaseline = value;
625
- }
626
- return this;
627
- }
628
- emptyCells(value) {
629
- if (value !== undefined && value !== null) {
630
- this.style.emptyCells = value;
631
- }
632
- return this;
633
- }
634
- enableBackground(value) {
635
- if (value !== undefined && value !== null) {
636
- this.style.enableBackground = value;
637
- }
638
- return this;
639
- }
640
- fill(value) {
641
- if (value !== undefined && value !== null) {
642
- this.style.fill = value;
643
- }
644
- return this;
645
- }
646
- fillOpacity(value) {
647
- if (value !== undefined && value !== null) {
648
- this.style.fillOpacity = value;
649
- }
650
- return this;
651
- }
652
- fillRule(value) {
653
- if (value !== undefined && value !== null) {
654
- this.style.fillRule = value;
655
- }
656
- return this;
657
- }
658
- filter(value) {
659
- if (value !== undefined && value !== null) {
660
- this.style.filter = value;
661
- }
662
- return this;
663
- }
664
- flex(value) {
665
- if (value !== undefined && value !== null) {
666
- this.style.flex = value;
667
- }
668
- return this;
669
- }
670
- flexBasis(value) {
671
- if (value !== undefined && value !== null) {
672
- this.style.flexBasis = value;
673
- }
674
- return this;
675
- }
676
- flexDirection(value) {
677
- if (value !== undefined && value !== null) {
678
- this.style.flexDirection = value;
679
- }
680
- return this;
681
- }
682
- flexFlow(value) {
683
- if (value !== undefined && value !== null) {
684
- this.style.flexFlow = value;
685
- }
686
- return this;
687
- }
688
- flexGrow(value) {
689
- if (value !== undefined && value !== null) {
690
- this.style.flexGrow = value;
691
- }
692
- return this;
693
- }
694
- flexShrink(value) {
695
- if (value !== undefined && value !== null) {
696
- this.style.flexShrink = value;
697
- }
698
- return this;
699
- }
700
- flexWrap(value) {
701
- if (value !== undefined && value !== null) {
702
- this.style.flexWrap = value;
703
- }
704
- return this;
705
- }
706
- float(value) {
707
- if (value !== undefined && value !== null) {
708
- this.style.float = value;
709
- }
710
- return this;
711
- }
712
- floodColor(value) {
713
- if (value !== undefined && value !== null) {
714
- this.style.floodColor = value;
715
- }
716
- return this;
717
- }
718
- floodOpacity(value) {
719
- if (value !== undefined && value !== null) {
720
- this.style.floodOpacity = value;
721
- }
722
- return this;
723
- }
724
- font(value) {
725
- if (value !== undefined && value !== null) {
726
- this.style.font = value;
727
- }
728
- return this;
729
- }
730
- fontFamily(value) {
731
- if (value !== undefined && value !== null) {
732
- this.style.fontFamily = value;
733
- }
734
- return this;
735
- }
736
- fontFeatureSettings(value) {
737
- if (value !== undefined && value !== null) {
738
- this.style.fontFeatureSettings = value;
739
- }
740
- return this;
741
- }
742
- fontSize(value, unit = "px") {
743
- if (value !== undefined && value !== null) {
744
- this.style.fontSize = toUnit(value, unit);
745
- }
746
- return this;
747
- }
748
- fontSizeAdjust(value) {
749
- if (value !== undefined && value !== null) {
750
- this.style.fontSizeAdjust = value;
751
- }
752
- return this;
753
- }
754
- fontStretch(value) {
755
- if (value !== undefined && value !== null) {
756
- this.style.fontStretch = value;
757
- }
758
- return this;
759
- }
760
- fontStyle(value) {
761
- if (value !== undefined && value !== null) {
762
- this.style.fontStyle = value;
763
- }
764
- return this;
765
- }
766
- fontVariant(value) {
767
- if (value !== undefined && value !== null) {
768
- this.style.fontVariant = value;
769
- }
770
- return this;
771
- }
772
- fontWeight(value) {
773
- if (value !== undefined && value !== null) {
774
- this.style.fontWeight = value;
775
- }
776
- return this;
777
- }
778
- gap(value, unit = "px") {
779
- if (value !== undefined && value !== null) {
780
- this.style.gap = toUnit(value, unit);
781
- }
782
- return this;
783
- }
784
- glyphOrientationHorizontal(value) {
785
- if (value !== undefined && value !== null) {
786
- this.style.glyphOrientationHorizontal = value;
787
- }
788
- return this;
789
- }
790
- glyphOrientationVertical(value) {
791
- if (value !== undefined && value !== null) {
792
- this.style.glyphOrientationVertical = value;
793
- }
794
- return this;
795
- }
796
- grid(value) {
797
- if (value !== undefined && value !== null) {
798
- this.style.grid = value;
799
- }
800
- return this;
801
- }
802
- gridArea(value) {
803
- if (value !== undefined && value !== null) {
804
- this.style.gridArea = value;
805
- }
806
- return this;
807
- }
808
- gridAutoColumns(value) {
809
- if (value !== undefined && value !== null) {
810
- this.style.gridAutoColumns = value;
811
- }
812
- return this;
813
- }
814
- gridAutoFlow(value) {
815
- if (value !== undefined && value !== null) {
816
- this.style.gridAutoFlow = value;
817
- }
818
- return this;
819
- }
820
- gridAutoRows(value) {
821
- if (value !== undefined && value !== null) {
822
- this.style.gridAutoRows = value;
823
- }
824
- return this;
825
- }
826
- gridColumn(value) {
827
- if (value !== undefined && value !== null) {
828
- this.style.gridColumn = value;
829
- }
830
- return this;
831
- }
832
- gridColumnEnd(value) {
833
- if (value !== undefined && value !== null) {
834
- this.style.gridColumnEnd = value;
835
- }
836
- return this;
837
- }
838
- gridColumnGap(value) {
839
- if (value !== undefined && value !== null) {
840
- this.style.gridColumnGap = value;
841
- }
842
- return this;
843
- }
844
- gridColumnStart(value) {
845
- if (value !== undefined && value !== null) {
846
- this.style.gridColumnStart = value;
847
- }
848
- return this;
849
- }
850
- gridGap(value) {
851
- if (value !== undefined && value !== null) {
852
- this.style.gridGap = value;
853
- }
854
- return this;
855
- }
856
- gridRow(value) {
857
- if (value !== undefined && value !== null) {
858
- this.style.gridRow = value;
859
- }
860
- return this;
861
- }
862
- gridRowEnd(value) {
863
- if (value !== undefined && value !== null) {
864
- this.style.gridRowEnd = value;
865
- }
866
- return this;
867
- }
868
- gridRowGap(value) {
869
- if (value !== undefined && value !== null) {
870
- this.style.gridRowGap = value;
871
- }
872
- return this;
873
- }
874
- gridRowStart(value) {
875
- if (value !== undefined && value !== null) {
876
- this.style.gridRowStart = value;
877
- }
878
- return this;
879
- }
880
- gridTemplate(value) {
881
- if (value !== undefined && value !== null) {
882
- this.style.gridTemplate = value;
883
- }
884
- return this;
885
- }
886
- gridTemplateAreas(value) {
887
- if (value !== undefined && value !== null) {
888
- this.style.gridTemplateAreas = value;
889
- }
890
- return this;
891
- }
892
- gridTemplateColumns(value) {
893
- if (value !== undefined && value !== null) {
894
- this.style.gridTemplateColumns = value;
895
- }
896
- return this;
897
- }
898
- gridTemplateRows(value) {
899
- if (value !== undefined && value !== null) {
900
- this.style.gridTemplateRows = value;
901
- }
902
- return this;
903
- }
904
- height(value, unit = "px") {
905
- if (value !== undefined && value !== null) {
906
- this.style.height = toUnit(value, unit);
907
- }
908
- return this;
909
- }
910
- imeMode(value) {
911
- if (value !== undefined && value !== null) {
912
- this.style.imeMode = value;
913
- }
914
- return this;
915
- }
916
- justifyContent(value) {
917
- if (value !== undefined && value !== null) {
918
- this.style.justifyContent = value;
919
- }
920
- return this;
921
- }
922
- justifyItems(value) {
923
- if (value !== undefined && value !== null) {
924
- this.style.justifyItems = value;
925
- }
926
- return this;
927
- }
928
- justifySelf(value) {
929
- if (value !== undefined && value !== null) {
930
- this.style.justifySelf = value;
931
- }
932
- return this;
933
- }
934
- kerning(value) {
935
- if (value !== undefined && value !== null) {
936
- this.style.kerning = value;
937
- }
938
- return this;
939
- }
940
- layoutGrid(value) {
941
- if (value !== undefined && value !== null) {
942
- this.style.layoutGrid = value;
943
- }
944
- return this;
945
- }
946
- layoutGridChar(value) {
947
- if (value !== undefined && value !== null) {
948
- this.style.layoutGridChar = value;
949
- }
950
- return this;
951
- }
952
- layoutGridLine(value) {
953
- if (value !== undefined && value !== null) {
954
- this.style.layoutGridLine = value;
955
- }
956
- return this;
957
- }
958
- layoutGridMode(value) {
959
- if (value !== undefined && value !== null) {
960
- this.style.layoutGridMode = value;
961
- }
962
- return this;
963
- }
964
- layoutGridType(value) {
965
- if (value !== undefined && value !== null) {
966
- this.style.layoutGridType = value;
967
- }
968
- return this;
969
- }
970
- left(value, unit = "px") {
971
- if (value !== undefined && value !== null) {
972
- this.style.left = toUnit(value, unit);
973
- }
974
- return this;
975
- }
976
- letterSpacing(value) {
977
- if (value !== undefined && value !== null) {
978
- this.style.letterSpacing = value;
979
- }
980
- return this;
981
- }
982
- lightingColor(value) {
983
- if (value !== undefined && value !== null) {
984
- this.style.lightingColor = value;
985
- }
986
- return this;
987
- }
988
- lineBreak(value) {
989
- if (value !== undefined && value !== null) {
990
- this.style.lineBreak = value;
991
- }
992
- return this;
993
- }
994
- lineHeight(value) {
995
- if (value !== undefined && value !== null) {
996
- this.style.lineHeight = value;
997
- }
998
- return this;
999
- }
1000
- listStyle(value) {
1001
- if (value !== undefined && value !== null) {
1002
- this.style.listStyle = value;
1003
- }
1004
- return this;
1005
- }
1006
- listStyleImage(value) {
1007
- if (value !== undefined && value !== null) {
1008
- this.style.listStyleImage = value;
1009
- }
1010
- return this;
1011
- }
1012
- listStylePosition(value) {
1013
- if (value !== undefined && value !== null) {
1014
- this.style.listStylePosition = value;
1015
- }
1016
- return this;
1017
- }
1018
- listStyleType(value) {
1019
- if (value !== undefined && value !== null) {
1020
- this.style.listStyleType = value;
1021
- }
1022
- return this;
1023
- }
1024
- margin(value, unit = "px") {
1025
- if (value !== undefined && value !== null) {
1026
- this.style.margin = toUnit(value, unit);
1027
- }
1028
- return this;
1029
- }
1030
- marginBottom(value, unit = "px") {
1031
- if (value !== undefined && value !== null) {
1032
- this.style.marginBottom = toUnit(value, unit);
1033
- }
1034
- return this;
1035
- }
1036
- marginLeft(value, unit = "px") {
1037
- if (value !== undefined && value !== null) {
1038
- this.style.marginLeft = toUnit(value, unit);
1039
- }
1040
- return this;
1041
- }
1042
- marginRight(value, unit = "px") {
1043
- if (value !== undefined && value !== null) {
1044
- this.style.marginRight = toUnit(value, unit);
1045
- }
1046
- return this;
1047
- }
1048
- marginTop(value, unit = "px") {
1049
- if (value !== undefined && value !== null) {
1050
- this.style.marginTop = toUnit(value, unit);
1051
- }
1052
- return this;
1053
- }
1054
- marginInlineStart(value, unit = "px") {
1055
- if (value !== undefined && value !== null) {
1056
- this.style.marginInlineStart = toUnit(value, unit);
1057
- }
1058
- return this;
1059
- }
1060
- marginInlineEnd(value, unit = "px") {
1061
- if (value !== undefined && value !== null) {
1062
- this.style.marginInlineEnd = toUnit(value, unit);
1063
- }
1064
- return this;
1065
- }
1066
- marginBlockStart(value, unit = "px") {
1067
- if (value !== undefined && value !== null) {
1068
- this.style.marginBlockStart = toUnit(value, unit);
1069
- }
1070
- return this;
1071
- }
1072
- marginBlockEnd(value, unit = "px") {
1073
- if (value !== undefined && value !== null) {
1074
- this.style.marginBlockEnd = toUnit(value, unit);
1075
- }
1076
- return this;
1077
- }
1078
- marker(value) {
1079
- if (value !== undefined && value !== null) {
1080
- this.style.marker = value;
1081
- }
1082
- return this;
1083
- }
1084
- markerEnd(value) {
1085
- if (value !== undefined && value !== null) {
1086
- this.style.markerEnd = value;
1087
- }
1088
- return this;
1089
- }
1090
- markerMid(value) {
1091
- if (value !== undefined && value !== null) {
1092
- this.style.markerMid = value;
1093
- }
1094
- return this;
1095
- }
1096
- markerStart(value) {
1097
- if (value !== undefined && value !== null) {
1098
- this.style.markerStart = value;
1099
- }
1100
- return this;
1101
- }
1102
- mask(value) {
1103
- if (value !== undefined && value !== null) {
1104
- this.style.mask = value;
1105
- }
1106
- return this;
1107
- }
1108
- maskImage(value) {
1109
- if (value !== undefined && value !== null) {
1110
- this.style.maskImage = value;
1111
- }
1112
- return this;
1113
- }
1114
- maxHeight(value, unit = "px") {
1115
- if (value !== undefined && value !== null) {
1116
- this.style.maxHeight = toUnit(value, unit);
1117
- }
1118
- return this;
1119
- }
1120
- maxWidth(value, unit = "px") {
1121
- if (value !== undefined && value !== null) {
1122
- this.style.maxWidth = toUnit(value, unit);
1123
- }
1124
- return this;
1125
- }
1126
- minHeight(value, unit = "px") {
1127
- if (value !== undefined && value !== null) {
1128
- this.style.minHeight = toUnit(value, unit);
1129
- }
1130
- return this;
1131
- }
1132
- minWidth(value, unit = "px") {
1133
- if (value !== undefined && value !== null) {
1134
- this.style.minWidth = toUnit(value, unit);
1135
- }
1136
- return this;
1137
- }
1138
- msContentZoomChaining(value) {
1139
- if (value !== undefined && value !== null) {
1140
- this.style.msContentZoomChaining = value;
1141
- }
1142
- return this;
1143
- }
1144
- msContentZoomLimit(value) {
1145
- if (value !== undefined && value !== null) {
1146
- this.style.msContentZoomLimit = value;
1147
- }
1148
- return this;
1149
- }
1150
- msContentZoomLimitMax(value) {
1151
- if (value !== undefined && value !== null) {
1152
- this.style.msContentZoomLimitMax = value;
1153
- }
1154
- return this;
1155
- }
1156
- msContentZoomLimitMin(value) {
1157
- if (value !== undefined && value !== null) {
1158
- this.style.msContentZoomLimitMin = value;
1159
- }
1160
- return this;
1161
- }
1162
- msContentZoomSnap(value) {
1163
- if (value !== undefined && value !== null) {
1164
- this.style.msContentZoomSnap = value;
1165
- }
1166
- return this;
1167
- }
1168
- msContentZoomSnapPoints(value) {
1169
- if (value !== undefined && value !== null) {
1170
- this.style.msContentZoomSnapPoints = value;
1171
- }
1172
- return this;
1173
- }
1174
- msContentZoomSnapType(value) {
1175
- if (value !== undefined && value !== null) {
1176
- this.style.msContentZoomSnapType = value;
1177
- }
1178
- return this;
1179
- }
1180
- msContentZooming(value) {
1181
- if (value !== undefined && value !== null) {
1182
- this.style.msContentZooming = value;
1183
- }
1184
- return this;
1185
- }
1186
- msFlowFrom(value) {
1187
- if (value !== undefined && value !== null) {
1188
- this.style.msFlowFrom = value;
1189
- }
1190
- return this;
1191
- }
1192
- msFlowInto(value) {
1193
- if (value !== undefined && value !== null) {
1194
- this.style.msFlowInto = value;
1195
- }
1196
- return this;
1197
- }
1198
- msFontFeatureSettings(value) {
1199
- if (value !== undefined && value !== null) {
1200
- this.style.msFontFeatureSettings = value;
1201
- }
1202
- return this;
1203
- }
1204
- msGridColumn(value) {
1205
- if (value !== undefined && value !== null) {
1206
- this.style.msGridColumn = value;
1207
- }
1208
- return this;
1209
- }
1210
- msGridColumnAlign(value) {
1211
- if (value !== undefined && value !== null) {
1212
- this.style.msGridColumnAlign = value;
1213
- }
1214
- return this;
1215
- }
1216
- msGridColumnSpan(value) {
1217
- if (value !== undefined && value !== null) {
1218
- this.style.msGridColumnSpan = value;
1219
- }
1220
- return this;
1221
- }
1222
- msGridColumns(value) {
1223
- if (value !== undefined && value !== null) {
1224
- this.style.msGridColumns = value;
1225
- }
1226
- return this;
1227
- }
1228
- msGridRow(value) {
1229
- if (value !== undefined && value !== null) {
1230
- this.style.msGridRow = value;
1231
- }
1232
- return this;
1233
- }
1234
- msGridRowAlign(value) {
1235
- if (value !== undefined && value !== null) {
1236
- this.style.msGridRowAlign = value;
1237
- }
1238
- return this;
1239
- }
1240
- msGridRowSpan(value) {
1241
- if (value !== undefined && value !== null) {
1242
- this.style.msGridRowSpan = value;
1243
- }
1244
- return this;
1245
- }
1246
- msGridRows(value) {
1247
- if (value !== undefined && value !== null) {
1248
- this.style.msGridRows = value;
1249
- }
1250
- return this;
1251
- }
1252
- msHighContrastAdjust(value) {
1253
- if (value !== undefined && value !== null) {
1254
- this.style.msHighContrastAdjust = value;
1255
- }
1256
- return this;
1257
- }
1258
- msHyphenateLimitChars(value) {
1259
- if (value !== undefined && value !== null) {
1260
- this.style.msHyphenateLimitChars = value;
1261
- }
1262
- return this;
1263
- }
1264
- msHyphenateLimitLines(value) {
1265
- if (value !== undefined && value !== null) {
1266
- this.style.msHyphenateLimitLines = value;
1267
- }
1268
- return this;
1269
- }
1270
- msHyphenateLimitZone(value) {
1271
- if (value !== undefined && value !== null) {
1272
- this.style.msHyphenateLimitZone = value;
1273
- }
1274
- return this;
1275
- }
1276
- msHyphens(value) {
1277
- if (value !== undefined && value !== null) {
1278
- this.style.msHyphens = value;
1279
- }
1280
- return this;
1281
- }
1282
- msImeAlign(value) {
1283
- if (value !== undefined && value !== null) {
1284
- this.style.msImeAlign = value;
1285
- }
1286
- return this;
1287
- }
1288
- msOverflowStyle(value) {
1289
- if (value !== undefined && value !== null) {
1290
- this.style.msOverflowStyle = value;
1291
- }
1292
- return this;
1293
- }
1294
- msScrollChaining(value) {
1295
- if (value !== undefined && value !== null) {
1296
- this.style.msScrollChaining = value;
1297
- }
1298
- return this;
1299
- }
1300
- msScrollLimit(value) {
1301
- if (value !== undefined && value !== null) {
1302
- this.style.msScrollLimit = value;
1303
- }
1304
- return this;
1305
- }
1306
- msScrollLimitXMax(value) {
1307
- if (value !== undefined && value !== null) {
1308
- this.style.msScrollLimitXMax = value;
1309
- }
1310
- return this;
1311
- }
1312
- msScrollLimitXMin(value) {
1313
- if (value !== undefined && value !== null) {
1314
- this.style.msScrollLimitXMin = value;
1315
- }
1316
- return this;
1317
- }
1318
- msScrollLimitYMax(value) {
1319
- if (value !== undefined && value !== null) {
1320
- this.style.msScrollLimitYMax = value;
1321
- }
1322
- return this;
1323
- }
1324
- msScrollLimitYMin(value) {
1325
- if (value !== undefined && value !== null) {
1326
- this.style.msScrollLimitYMin = value;
1327
- }
1328
- return this;
1329
- }
1330
- msScrollRails(value) {
1331
- if (value !== undefined && value !== null) {
1332
- this.style.msScrollRails = value;
1333
- }
1334
- return this;
1335
- }
1336
- msScrollSnapPointsX(value) {
1337
- if (value !== undefined && value !== null) {
1338
- this.style.msScrollSnapPointsX = value;
1339
- }
1340
- return this;
1341
- }
1342
- msScrollSnapPointsY(value) {
1343
- if (value !== undefined && value !== null) {
1344
- this.style.msScrollSnapPointsY = value;
1345
- }
1346
- return this;
1347
- }
1348
- msScrollSnapType(value) {
1349
- if (value !== undefined && value !== null) {
1350
- this.style.msScrollSnapType = value;
1351
- }
1352
- return this;
1353
- }
1354
- msScrollSnapX(value) {
1355
- if (value !== undefined && value !== null) {
1356
- this.style.msScrollSnapX = value;
1357
- }
1358
- return this;
1359
- }
1360
- msScrollSnapY(value) {
1361
- if (value !== undefined && value !== null) {
1362
- this.style.msScrollSnapY = value;
1363
- }
1364
- return this;
1365
- }
1366
- msScrollTranslation(value) {
1367
- if (value !== undefined && value !== null) {
1368
- this.style.msScrollTranslation = value;
1369
- }
1370
- return this;
1371
- }
1372
- msTextCombineHorizontal(value) {
1373
- if (value !== undefined && value !== null) {
1374
- this.style.msTextCombineHorizontal = value;
1375
- }
1376
- return this;
1377
- }
1378
- msTextSizeAdjust(value) {
1379
- if (value !== undefined && value !== null) {
1380
- this.style.msTextSizeAdjust = value;
1381
- }
1382
- return this;
1383
- }
1384
- msTouchAction(value) {
1385
- if (value !== undefined && value !== null) {
1386
- this.style.msTouchAction = value;
1387
- }
1388
- return this;
1389
- }
1390
- msTouchSelect(value) {
1391
- if (value !== undefined && value !== null) {
1392
- this.style.msTouchSelect = value;
1393
- }
1394
- return this;
1395
- }
1396
- msUserSelect(value) {
1397
- if (value !== undefined && value !== null) {
1398
- this.style.msUserSelect = value;
1399
- }
1400
- return this;
1401
- }
1402
- msWrapFlow(value) {
1403
- if (value !== undefined && value !== null) {
1404
- this.style.msWrapFlow = value;
1405
- }
1406
- return this;
1407
- }
1408
- msWrapMargin(value) {
1409
- if (value !== undefined && value !== null) {
1410
- this.style.msWrapMargin = value;
1411
- }
1412
- return this;
1413
- }
1414
- msWrapThrough(value) {
1415
- if (value !== undefined && value !== null) {
1416
- this.style.msWrapThrough = value;
1417
- }
1418
- return this;
1419
- }
1420
- objectFit(value) {
1421
- if (value !== undefined && value !== null) {
1422
- this.style.objectFit = value;
1423
- }
1424
- return this;
1425
- }
1426
- objectPosition(value) {
1427
- if (value !== undefined && value !== null) {
1428
- this.style.objectPosition = value;
1429
- }
1430
- return this;
1431
- }
1432
- opacity(value) {
1433
- if (value !== undefined && value !== null) {
1434
- this.style.opacity = value;
1435
- }
1436
- return this;
1437
- }
1438
- order(value) {
1439
- if (value !== undefined && value !== null) {
1440
- this.style.order = value;
1441
- }
1442
- return this;
1443
- }
1444
- orphans(value) {
1445
- if (value !== undefined && value !== null) {
1446
- this.style.orphans = value;
1447
- }
1448
- return this;
1449
- }
1450
- outline(value) {
1451
- if (value !== undefined && value !== null) {
1452
- this.style.outline = value;
1453
- }
1454
- return this;
1455
- }
1456
- outlineColor(value) {
1457
- if (value !== undefined && value !== null) {
1458
- this.style.outlineColor = value;
1459
- }
1460
- return this;
1461
- }
1462
- outlineOffset(value) {
1463
- if (value !== undefined && value !== null) {
1464
- this.style.outlineOffset = value;
1465
- }
1466
- return this;
1467
- }
1468
- outlineStyle(value) {
1469
- if (value !== undefined && value !== null) {
1470
- this.style.outlineStyle = value;
1471
- }
1472
- return this;
1473
- }
1474
- outlineWidth(value) {
1475
- if (value !== undefined && value !== null) {
1476
- this.style.outlineWidth = value;
1477
- }
1478
- return this;
1479
- }
1480
- overflow(value) {
1481
- if (value !== undefined && value !== null) {
1482
- this.style.overflow = value;
1483
- }
1484
- return this;
1485
- }
1486
- overflowX(value) {
1487
- if (value !== undefined && value !== null) {
1488
- this.style.overflowX = value;
1489
- }
1490
- return this;
1491
- }
1492
- overflowY(value) {
1493
- if (value !== undefined && value !== null) {
1494
- this.style.overflowY = value;
1495
- }
1496
- return this;
1497
- }
1498
- padding(value, unit = "px") {
1499
- if (value !== undefined && value !== null) {
1500
- this.style.padding = toUnit(value, unit);
1501
- }
1502
- return this;
1503
- }
1504
- paddingBottom(value, unit = "px") {
1505
- if (value !== undefined && value !== null) {
1506
- this.style.paddingBottom = toUnit(value, unit);
1507
- }
1508
- return this;
1509
- }
1510
- paddingLeft(value, unit = "px") {
1511
- if (value !== undefined && value !== null) {
1512
- this.style.paddingLeft = toUnit(value, unit);
1513
- }
1514
- return this;
1515
- }
1516
- paddingRight(value, unit = "px") {
1517
- if (value !== undefined && value !== null) {
1518
- this.style.paddingRight = toUnit(value, unit);
1519
- }
1520
- return this;
1521
- }
1522
- paddingTop(value, unit = "px") {
1523
- if (value !== undefined && value !== null) {
1524
- this.style.paddingTop = toUnit(value, unit);
1525
- }
1526
- return this;
1527
- }
1528
- paddingInlineStart(value, unit = "px") {
1529
- if (value !== undefined && value !== null) {
1530
- this.style.paddingInlineStart = toUnit(value, unit);
1531
- }
1532
- return this;
1533
- }
1534
- paddingInlineEnd(value, unit = "px") {
1535
- if (value !== undefined && value !== null) {
1536
- this.style.paddingInlineEnd = toUnit(value, unit);
1537
- }
1538
- return this;
1539
- }
1540
- pageBreakAfter(value) {
1541
- if (value !== undefined && value !== null) {
1542
- this.style.pageBreakAfter = value;
1543
- }
1544
- return this;
1545
- }
1546
- pageBreakBefore(value) {
1547
- if (value !== undefined && value !== null) {
1548
- this.style.pageBreakBefore = value;
1549
- }
1550
- return this;
1551
- }
1552
- pageBreakInside(value) {
1553
- if (value !== undefined && value !== null) {
1554
- this.style.pageBreakInside = value;
1555
- }
1556
- return this;
1557
- }
1558
- penAction(value) {
1559
- if (value !== undefined && value !== null) {
1560
- this.style.penAction = value;
1561
- }
1562
- return this;
1563
- }
1564
- perspective(value) {
1565
- if (value !== undefined && value !== null) {
1566
- this.style.perspective = value;
1567
- }
1568
- return this;
1569
- }
1570
- perspectiveOrigin(value) {
1571
- if (value !== undefined && value !== null) {
1572
- this.style.perspectiveOrigin = value;
1573
- }
1574
- return this;
1575
- }
1576
- pointerEvents(value) {
1577
- if (value !== undefined && value !== null) {
1578
- this.style.pointerEvents = value;
1579
- }
1580
- return this;
1581
- }
1582
- position(value) {
1583
- if (value !== undefined && value !== null) {
1584
- this.style.position = value;
1585
- }
1586
- return this;
1587
- }
1588
- quotes(value) {
1589
- if (value !== undefined && value !== null) {
1590
- this.style.quotes = value;
1591
- }
1592
- return this;
1593
- }
1594
- resize(value) {
1595
- if (value !== undefined && value !== null) {
1596
- this.style.resize = value;
1597
- }
1598
- return this;
1599
- }
1600
- right(value, unit = "px") {
1601
- if (value !== undefined && value !== null) {
1602
- this.style.right = toUnit(value, unit);
1603
- }
1604
- return this;
1605
- }
1606
- rotate(value) {
1607
- if (value !== undefined && value !== null) {
1608
- this.style.rotate = value;
1609
- }
1610
- return this;
1611
- }
1612
- rowGap(value) {
1613
- if (value !== undefined && value !== null) {
1614
- this.style.rowGap = value;
1615
- }
1616
- return this;
1617
- }
1618
- rubyAlign(value) {
1619
- if (value !== undefined && value !== null) {
1620
- this.style.rubyAlign = value;
1621
- }
1622
- return this;
1623
- }
1624
- rubyOverhang(value) {
1625
- if (value !== undefined && value !== null) {
1626
- this.style.rubyOverhang = value;
1627
- }
1628
- return this;
1629
- }
1630
- rubyPosition(value) {
1631
- if (value !== undefined && value !== null) {
1632
- this.style.rubyPosition = value;
1633
- }
1634
- return this;
1635
- }
1636
- scale(value) {
1637
- if (value !== undefined && value !== null) {
1638
- this.style.scale = value;
1639
- }
1640
- return this;
1641
- }
1642
- custom(name, value) {
1643
- this.style[name] = value;
1644
- return this;
1645
- }
1646
- scrollBarWidth(value, unit) {
1647
- var _a, _b;
1648
- var _c, _d;
1649
- this.style["scrollbar-width"] = toUnit(value, unit);
1650
- (_a = (_c = this.style).subclasses) !== null && _a !== void 0 ? _a : _c.subclasses = {};
1651
- const ws = (_b = (_d = this.style.subclasses)["::-webkit-scrollbar"]) !== null && _b !== void 0 ? _b : _d["::-webkit-scrollbar"] = {};
1652
- ws.width = toUnit(value, unit);
1653
- return this;
1654
- }
1655
- scrollBarColor(thumb, bg) {
1656
- var _a, _b;
1657
- var _c, _d;
1658
- this.style["scrollbar-color"] = `${thumb} ${bg}`;
1659
- (_a = (_c = this.style).subclasses) !== null && _a !== void 0 ? _a : _c.subclasses = {};
1660
- const ws = (_b = (_d = this.style.subclasses)["::-webkit-scrollbar-thumb"]) !== null && _b !== void 0 ? _b : _d["::-webkit-scrollbar-thumb"] = {};
1661
- ws.backgroundColor = bg;
1662
- ws.borderRadius = "20px";
1663
- ws.border = `3px solid ${thumb}`;
1664
- return this;
1665
- }
1666
- stopColor(value) {
1667
- if (value !== undefined && value !== null) {
1668
- this.style.stopColor = value;
1669
- }
1670
- return this;
1671
- }
1672
- stopOpacity(value) {
1673
- if (value !== undefined && value !== null) {
1674
- this.style.stopOpacity = value;
1675
- }
1676
- return this;
1677
- }
1678
- stroke(value) {
1679
- if (value !== undefined && value !== null) {
1680
- this.style.stroke = value;
1681
- }
1682
- return this;
1683
- }
1684
- strokeDasharray(value) {
1685
- if (value !== undefined && value !== null) {
1686
- this.style.strokeDasharray = value;
1687
- }
1688
- return this;
1689
- }
1690
- strokeDashoffset(value) {
1691
- if (value !== undefined && value !== null) {
1692
- this.style.strokeDashoffset = value;
1693
- }
1694
- return this;
1695
- }
1696
- strokeLinecap(value) {
1697
- if (value !== undefined && value !== null) {
1698
- this.style.strokeLinecap = value;
1699
- }
1700
- return this;
1701
- }
1702
- strokeLinejoin(value) {
1703
- if (value !== undefined && value !== null) {
1704
- this.style.strokeLinejoin = value;
1705
- }
1706
- return this;
1707
- }
1708
- strokeMiterlimit(value) {
1709
- if (value !== undefined && value !== null) {
1710
- this.style.strokeMiterlimit = value;
1711
- }
1712
- return this;
1713
- }
1714
- strokeOpacity(value) {
1715
- if (value !== undefined && value !== null) {
1716
- this.style.strokeOpacity = value;
1717
- }
1718
- return this;
1719
- }
1720
- strokeWidth(value) {
1721
- if (value !== undefined && value !== null) {
1722
- this.style.strokeWidth = value;
1723
- }
1724
- return this;
1725
- }
1726
- tableLayout(value) {
1727
- if (value !== undefined && value !== null) {
1728
- this.style.tableLayout = value;
1729
- }
1730
- return this;
1731
- }
1732
- textAlign(value) {
1733
- if (value !== undefined && value !== null) {
1734
- this.style.textAlign = value;
1735
- }
1736
- return this;
1737
- }
1738
- textAlignLast(value) {
1739
- if (value !== undefined && value !== null) {
1740
- this.style.textAlignLast = value;
1741
- }
1742
- return this;
1743
- }
1744
- textAnchor(value) {
1745
- if (value !== undefined && value !== null) {
1746
- this.style.textAnchor = value;
1747
- }
1748
- return this;
1749
- }
1750
- textCombineUpright(value) {
1751
- if (value !== undefined && value !== null) {
1752
- this.style.textCombineUpright = value;
1753
- }
1754
- return this;
1755
- }
1756
- textDecoration(value) {
1757
- if (value !== undefined && value !== null) {
1758
- this.style.textDecoration = value;
1759
- }
1760
- return this;
1761
- }
1762
- textIndent(value) {
1763
- if (value !== undefined && value !== null) {
1764
- this.style.textIndent = value;
1765
- }
1766
- return this;
1767
- }
1768
- textJustify(value) {
1769
- if (value !== undefined && value !== null) {
1770
- this.style.textJustify = value;
1771
- }
1772
- return this;
1773
- }
1774
- textKashida(value) {
1775
- if (value !== undefined && value !== null) {
1776
- this.style.textKashida = value;
1777
- }
1778
- return this;
1779
- }
1780
- textKashidaSpace(value) {
1781
- if (value !== undefined && value !== null) {
1782
- this.style.textKashidaSpace = value;
1783
- }
1784
- return this;
1785
- }
1786
- textOverflow(value) {
1787
- if (value !== undefined && value !== null) {
1788
- this.style.textOverflow = value;
1789
- }
1790
- return this;
1791
- }
1792
- textShadow(value) {
1793
- if (value !== undefined && value !== null) {
1794
- this.style.textShadow = value;
1795
- }
1796
- return this;
1797
- }
1798
- textTransform(value) {
1799
- if (value !== undefined && value !== null) {
1800
- this.style.textTransform = value;
1801
- }
1802
- return this;
1803
- }
1804
- textUnderlinePosition(value) {
1805
- if (value !== undefined && value !== null) {
1806
- this.style.textUnderlinePosition = value;
1807
- }
1808
- return this;
1809
- }
1810
- top(value, unit = "px") {
1811
- if (value !== undefined && value !== null) {
1812
- this.style.top = toUnit(value, unit);
1813
- }
1814
- return this;
1815
- }
1816
- touchAction(value) {
1817
- if (value !== undefined && value !== null) {
1818
- this.style.touchAction = value;
1819
- }
1820
- return this;
1821
- }
1822
- transform(value) {
1823
- if (value !== undefined && value !== null) {
1824
- this.style.transform = value;
1825
- }
1826
- return this;
1827
- }
1828
- transformOrigin(value) {
1829
- if (value !== undefined && value !== null) {
1830
- this.style.transformOrigin = value;
1831
- }
1832
- return this;
1833
- }
1834
- transformStyle(value) {
1835
- if (value !== undefined && value !== null) {
1836
- this.style.transformStyle = value;
1837
- }
1838
- return this;
1839
- }
1840
- transition(value) {
1841
- if (value !== undefined && value !== null) {
1842
- this.style.transition = value;
1843
- }
1844
- return this;
1845
- }
1846
- transitionDelay(value) {
1847
- if (value !== undefined && value !== null) {
1848
- this.style.transitionDelay = value;
1849
- }
1850
- return this;
1851
- }
1852
- transitionDuration(value) {
1853
- if (value !== undefined && value !== null) {
1854
- this.style.transitionDuration = value;
1855
- }
1856
- return this;
1857
- }
1858
- transitionProperty(value) {
1859
- if (value !== undefined && value !== null) {
1860
- this.style.transitionProperty = value;
1861
- }
1862
- return this;
1863
- }
1864
- transitionTimingFunction(value) {
1865
- if (value !== undefined && value !== null) {
1866
- this.style.transitionTimingFunction = value;
1867
- }
1868
- return this;
1869
- }
1870
- translate(value) {
1871
- if (value !== undefined && value !== null) {
1872
- this.style.translate = value;
1873
- }
1874
- return this;
1875
- }
1876
- unicodeBidi(value) {
1877
- if (value !== undefined && value !== null) {
1878
- this.style.unicodeBidi = value;
1879
- }
1880
- return this;
1881
- }
1882
- userSelect(value) {
1883
- if (value !== undefined && value !== null) {
1884
- this.style.userSelect = value;
1885
- }
1886
- return this;
1887
- }
1888
- userDrag(value) {
1889
- if (value !== undefined && value !== null) {
1890
- this.style.userDrag = value;
1891
- }
1892
- return this;
1893
- }
1894
- verticalAlign(value) {
1895
- if (value !== undefined && value !== null) {
1896
- this.style.verticalAlign = value;
1897
- }
1898
- return this;
1899
- }
1900
- visibility(value) {
1901
- if (value !== undefined && value !== null) {
1902
- this.style.visibility = value;
1903
- }
1904
- return this;
1905
- }
1906
- webkitAlignContent(value) {
1907
- if (value !== undefined && value !== null) {
1908
- this.style.webkitAlignContent = value;
1909
- }
1910
- return this;
1911
- }
1912
- webkitAlignItems(value) {
1913
- if (value !== undefined && value !== null) {
1914
- this.style.webkitAlignItems = value;
1915
- }
1916
- return this;
1917
- }
1918
- webkitAlignSelf(value) {
1919
- if (value !== undefined && value !== null) {
1920
- this.style.webkitAlignSelf = value;
1921
- }
1922
- return this;
1923
- }
1924
- webkitAnimation(value) {
1925
- if (value !== undefined && value !== null) {
1926
- this.style.webkitAnimation = value;
1927
- }
1928
- return this;
1929
- }
1930
- webkitAnimationDelay(value) {
1931
- if (value !== undefined && value !== null) {
1932
- this.style.webkitAnimationDelay = value;
1933
- }
1934
- return this;
1935
- }
1936
- webkitAnimationDirection(value) {
1937
- if (value !== undefined && value !== null) {
1938
- this.style.webkitAnimationDirection = value;
1939
- }
1940
- return this;
1941
- }
1942
- webkitAnimationDuration(value) {
1943
- if (value !== undefined && value !== null) {
1944
- this.style.webkitAnimationDuration = value;
1945
- }
1946
- return this;
1947
- }
1948
- webkitAnimationFillMode(value) {
1949
- if (value !== undefined && value !== null) {
1950
- this.style.webkitAnimationFillMode = value;
1951
- }
1952
- return this;
1953
- }
1954
- webkitAnimationIterationCount(value) {
1955
- if (value !== undefined && value !== null) {
1956
- this.style.webkitAnimationIterationCount = value;
1957
- }
1958
- return this;
1959
- }
1960
- webkitAnimationName(value) {
1961
- if (value !== undefined && value !== null) {
1962
- this.style.webkitAnimationName = value;
1963
- }
1964
- return this;
1965
- }
1966
- webkitAnimationPlayState(value) {
1967
- if (value !== undefined && value !== null) {
1968
- this.style.webkitAnimationPlayState = value;
1969
- }
1970
- return this;
1971
- }
1972
- webkitAnimationTimingFunction(value) {
1973
- if (value !== undefined && value !== null) {
1974
- this.style.webkitAnimationTimingFunction = value;
1975
- }
1976
- return this;
1977
- }
1978
- webkitAppearance(value) {
1979
- if (value !== undefined && value !== null) {
1980
- this.style.webkitAppearance = value;
1981
- }
1982
- return this;
1983
- }
1984
- webkitBackfaceVisibility(value) {
1985
- if (value !== undefined && value !== null) {
1986
- this.style.webkitBackfaceVisibility = value;
1987
- }
1988
- return this;
1989
- }
1990
- webkitBackgroundClip(value) {
1991
- if (value !== undefined && value !== null) {
1992
- this.style.webkitBackgroundClip = value;
1993
- }
1994
- return this;
1995
- }
1996
- webkitBackgroundOrigin(value) {
1997
- if (value !== undefined && value !== null) {
1998
- this.style.webkitBackgroundOrigin = value;
1999
- }
2000
- return this;
2001
- }
2002
- webkitBackgroundSize(value) {
2003
- if (value !== undefined && value !== null) {
2004
- this.style.webkitBackgroundSize = value;
2005
- }
2006
- return this;
2007
- }
2008
- webkitBorderBottomLeftRadius(value) {
2009
- if (value !== undefined && value !== null) {
2010
- this.style.webkitBorderBottomLeftRadius = value;
2011
- }
2012
- return this;
2013
- }
2014
- webkitBorderBottomRightRadius(value) {
2015
- if (value !== undefined && value !== null) {
2016
- this.style.webkitBorderBottomRightRadius = value;
2017
- }
2018
- return this;
2019
- }
2020
- webkitBorderImage(value) {
2021
- if (value !== undefined && value !== null) {
2022
- this.style.webkitBorderImage = value;
2023
- }
2024
- return this;
2025
- }
2026
- webkitBorderRadius(value) {
2027
- if (value !== undefined && value !== null) {
2028
- this.style.webkitBorderRadius = value;
2029
- }
2030
- return this;
2031
- }
2032
- webkitBorderTopLeftRadius(value) {
2033
- if (value !== undefined && value !== null) {
2034
- this.style.webkitBorderTopLeftRadius = value;
2035
- }
2036
- return this;
2037
- }
2038
- webkitBorderTopRightRadius(value) {
2039
- if (value !== undefined && value !== null) {
2040
- this.style.webkitBorderTopRightRadius = value;
2041
- }
2042
- return this;
2043
- }
2044
- webkitBoxAlign(value) {
2045
- if (value !== undefined && value !== null) {
2046
- this.style.webkitBoxAlign = value;
2047
- }
2048
- return this;
2049
- }
2050
- webkitBoxDirection(value) {
2051
- if (value !== undefined && value !== null) {
2052
- this.style.webkitBoxDirection = value;
2053
- }
2054
- return this;
2055
- }
2056
- webkitBoxFlex(value) {
2057
- if (value !== undefined && value !== null) {
2058
- this.style.webkitBoxFlex = value;
2059
- }
2060
- return this;
2061
- }
2062
- webkitBoxOrdinalGroup(value) {
2063
- if (value !== undefined && value !== null) {
2064
- this.style.webkitBoxOrdinalGroup = value;
2065
- }
2066
- return this;
2067
- }
2068
- webkitBoxOrient(value) {
2069
- if (value !== undefined && value !== null) {
2070
- this.style.webkitBoxOrient = value;
2071
- }
2072
- return this;
2073
- }
2074
- webkitBoxPack(value) {
2075
- if (value !== undefined && value !== null) {
2076
- this.style.webkitBoxPack = value;
2077
- }
2078
- return this;
2079
- }
2080
- webkitBoxSizing(value) {
2081
- if (value !== undefined && value !== null) {
2082
- this.style.webkitBoxSizing = value;
2083
- }
2084
- return this;
2085
- }
2086
- webkitColumnBreakAfter(value) {
2087
- if (value !== undefined && value !== null) {
2088
- this.style.webkitColumnBreakAfter = value;
2089
- }
2090
- return this;
2091
- }
2092
- webkitColumnBreakBefore(value) {
2093
- if (value !== undefined && value !== null) {
2094
- this.style.webkitColumnBreakBefore = value;
2095
- }
2096
- return this;
2097
- }
2098
- webkitColumnBreakInside(value) {
2099
- if (value !== undefined && value !== null) {
2100
- this.style.webkitColumnBreakInside = value;
2101
- }
2102
- return this;
2103
- }
2104
- webkitColumnCount(value) {
2105
- if (value !== undefined && value !== null) {
2106
- this.style.webkitColumnCount = value;
2107
- }
2108
- return this;
2109
- }
2110
- webkitColumnGap(value) {
2111
- if (value !== undefined && value !== null) {
2112
- this.style.webkitColumnGap = value;
2113
- }
2114
- return this;
2115
- }
2116
- webkitColumnRule(value) {
2117
- if (value !== undefined && value !== null) {
2118
- this.style.webkitColumnRule = value;
2119
- }
2120
- return this;
2121
- }
2122
- webkitColumnRuleColor(value) {
2123
- if (value !== undefined && value !== null) {
2124
- this.style.webkitColumnRuleColor = value;
2125
- }
2126
- return this;
2127
- }
2128
- webkitColumnRuleStyle(value) {
2129
- if (value !== undefined && value !== null) {
2130
- this.style.webkitColumnRuleStyle = value;
2131
- }
2132
- return this;
2133
- }
2134
- webkitColumnRuleWidth(value) {
2135
- if (value !== undefined && value !== null) {
2136
- this.style.webkitColumnRuleWidth = value;
2137
- }
2138
- return this;
2139
- }
2140
- webkitColumnSpan(value) {
2141
- if (value !== undefined && value !== null) {
2142
- this.style.webkitColumnSpan = value;
2143
- }
2144
- return this;
2145
- }
2146
- webkitColumnWidth(value) {
2147
- if (value !== undefined && value !== null) {
2148
- this.style.webkitColumnWidth = value;
2149
- }
2150
- return this;
2151
- }
2152
- webkitColumns(value) {
2153
- if (value !== undefined && value !== null) {
2154
- this.style.webkitColumns = value;
2155
- }
2156
- return this;
2157
- }
2158
- webkitFilter(value) {
2159
- if (value !== undefined && value !== null) {
2160
- this.style.webkitFilter = value;
2161
- }
2162
- return this;
2163
- }
2164
- webkitFlex(value) {
2165
- if (value !== undefined && value !== null) {
2166
- this.style.webkitFlex = value;
2167
- }
2168
- return this;
2169
- }
2170
- webkitFlexBasis(value) {
2171
- if (value !== undefined && value !== null) {
2172
- this.style.webkitFlexBasis = value;
2173
- }
2174
- return this;
2175
- }
2176
- webkitFlexDirection(value) {
2177
- if (value !== undefined && value !== null) {
2178
- this.style.webkitFlexDirection = value;
2179
- }
2180
- return this;
2181
- }
2182
- webkitFlexFlow(value) {
2183
- if (value !== undefined && value !== null) {
2184
- this.style.webkitFlexFlow = value;
2185
- }
2186
- return this;
2187
- }
2188
- webkitFlexGrow(value) {
2189
- if (value !== undefined && value !== null) {
2190
- this.style.webkitFlexGrow = value;
2191
- }
2192
- return this;
2193
- }
2194
- webkitFlexShrink(value) {
2195
- if (value !== undefined && value !== null) {
2196
- this.style.webkitFlexShrink = value;
2197
- }
2198
- return this;
2199
- }
2200
- webkitFlexWrap(value) {
2201
- if (value !== undefined && value !== null) {
2202
- this.style.webkitFlexWrap = value;
2203
- }
2204
- return this;
2205
- }
2206
- webkitJustifyContent(value) {
2207
- if (value !== undefined && value !== null) {
2208
- this.style.webkitJustifyContent = value;
2209
- }
2210
- return this;
2211
- }
2212
- webkitOrder(value) {
2213
- if (value !== undefined && value !== null) {
2214
- this.style.webkitOrder = value;
2215
- }
2216
- return this;
2217
- }
2218
- webkitPerspective(value) {
2219
- if (value !== undefined && value !== null) {
2220
- this.style.webkitPerspective = value;
2221
- }
2222
- return this;
2223
- }
2224
- webkitPerspectiveOrigin(value) {
2225
- if (value !== undefined && value !== null) {
2226
- this.style.webkitPerspectiveOrigin = value;
2227
- }
2228
- return this;
2229
- }
2230
- webkitTapHighlightColor(value) {
2231
- if (value !== undefined && value !== null) {
2232
- this.style.webkitTapHighlightColor = value;
2233
- }
2234
- return this;
2235
- }
2236
- webkitTextFillColor(value) {
2237
- if (value !== undefined && value !== null) {
2238
- this.style.webkitTextFillColor = value;
2239
- }
2240
- return this;
2241
- }
2242
- webkitTextSizeAdjust(value) {
2243
- if (value !== undefined && value !== null) {
2244
- this.style.webkitTextSizeAdjust = value;
2245
- }
2246
- return this;
2247
- }
2248
- webkitTextStroke(value) {
2249
- if (value !== undefined && value !== null) {
2250
- this.style.webkitTextStroke = value;
2251
- }
2252
- return this;
2253
- }
2254
- webkitTextStrokeColor(value) {
2255
- if (value !== undefined && value !== null) {
2256
- this.style.webkitTextStrokeColor = value;
2257
- }
2258
- return this;
2259
- }
2260
- webkitTextStrokeWidth(value) {
2261
- if (value !== undefined && value !== null) {
2262
- this.style.webkitTextStrokeWidth = value;
2263
- }
2264
- return this;
2265
- }
2266
- webkitTransform(value) {
2267
- if (value !== undefined && value !== null) {
2268
- this.style.webkitTransform = value;
2269
- }
2270
- return this;
2271
- }
2272
- webkitTransformOrigin(value) {
2273
- if (value !== undefined && value !== null) {
2274
- this.style.webkitTransformOrigin = value;
2275
- }
2276
- return this;
2277
- }
2278
- webkitTransformStyle(value) {
2279
- if (value !== undefined && value !== null) {
2280
- this.style.webkitTransformStyle = value;
2281
- }
2282
- return this;
2283
- }
2284
- webkitTransition(value) {
2285
- if (value !== undefined && value !== null) {
2286
- this.style.webkitTransition = value;
2287
- }
2288
- return this;
2289
- }
2290
- webkitTransitionDelay(value) {
2291
- if (value !== undefined && value !== null) {
2292
- this.style.webkitTransitionDelay = value;
2293
- }
2294
- return this;
2295
- }
2296
- webkitTransitionDuration(value) {
2297
- if (value !== undefined && value !== null) {
2298
- this.style.webkitTransitionDuration = value;
2299
- }
2300
- return this;
2301
- }
2302
- webkitTransitionProperty(value) {
2303
- if (value !== undefined && value !== null) {
2304
- this.style.webkitTransitionProperty = value;
2305
- }
2306
- return this;
2307
- }
2308
- webkitTransitionTimingFunction(value) {
2309
- if (value !== undefined && value !== null) {
2310
- this.style.webkitTransitionTimingFunction = value;
2311
- }
2312
- return this;
2313
- }
2314
- webkitUserModify(value) {
2315
- if (value !== undefined && value !== null) {
2316
- this.style.webkitUserModify = value;
2317
- }
2318
- return this;
2319
- }
2320
- webkitUserSelect(value) {
2321
- if (value !== undefined && value !== null) {
2322
- this.style.webkitUserSelect = value;
2323
- }
2324
- return this;
2325
- }
2326
- webkitUserDrag(value) {
2327
- if (value !== undefined && value !== null) {
2328
- this.style.webkitUserDrag = value;
2329
- }
2330
- return this;
2331
- }
2332
- webkitWritingMode(value) {
2333
- if (value !== undefined && value !== null) {
2334
- this.style.webkitWritingMode = value;
2335
- }
2336
- return this;
2337
- }
2338
- whiteSpace(value) {
2339
- if (value !== undefined && value !== null) {
2340
- this.style.whiteSpace = value;
2341
- }
2342
- return this;
2343
- }
2344
- widows(value) {
2345
- if (value !== undefined && value !== null) {
2346
- this.style.widows = value;
2347
- }
2348
- return this;
2349
- }
2350
- width(value, unit = "px") {
2351
- if (value !== undefined && value !== null) {
2352
- this.style.width = toUnit(value, unit);
2353
- }
2354
- return this;
2355
- }
2356
- wordBreak(value) {
2357
- if (value !== undefined && value !== null) {
2358
- this.style.wordBreak = value;
2359
- }
2360
- return this;
2361
- }
2362
- wordSpacing(value) {
2363
- if (value !== undefined && value !== null) {
2364
- this.style.wordSpacing = value;
2365
- }
2366
- return this;
2367
- }
2368
- wordWrap(value) {
2369
- if (value !== undefined && value !== null) {
2370
- this.style.wordWrap = value;
2371
- }
2372
- return this;
2373
- }
2374
- writingMode(value) {
2375
- if (value !== undefined && value !== null) {
2376
- this.style.writingMode = value;
2377
- }
2378
- return this;
2379
- }
2380
- zIndex(value) {
2381
- if (value !== undefined && value !== null) {
2382
- this.style.zIndex = value;
2383
- }
2384
- return this;
2385
- }
2386
- zoom(value) {
2387
- if (value !== undefined && value !== null) {
2388
- this.style.zoom = value;
2389
- }
2390
- return this;
2391
- }
2392
- displayFlex() {
2393
- this.style.display = "flex";
2394
- return this;
2395
- }
2396
- flexStretch() {
2397
- return this.flex("1 1 100%");
2398
- }
2399
- roundBorderFull() {
2400
- this.style.borderRadius = "9999px";
2401
- return this;
2402
- }
2403
- subclass(name, style) {
2404
- var _a;
2405
- var _b;
2406
- if (style instanceof AtomStyleRules) {
2407
- style = style.style;
2408
- }
2409
- const sc = (_a = (_b = this.style).subclasses) !== null && _a !== void 0 ? _a : _b.subclasses = {};
2410
- sc[name] = style;
2411
- return this;
2412
- }
2413
- childSubclass(name, style) {
2414
- return this.subclass(" > " + name, style);
2415
- }
2416
- subclasses(...styles) {
2417
- var _a;
2418
- var _b;
2419
- const sc = (_a = (_b = this.style).subclasses) !== null && _a !== void 0 ? _a : _b.subclasses = {};
2420
- for (const iterator of styles) {
2421
- sc[iterator.name] = iterator.style;
2422
- }
2423
- return this;
2424
- }
2425
- childSubclasses(...styles) {
2426
- var _a;
2427
- var _b;
2428
- const sc = (_a = (_b = this.style).subclasses) !== null && _a !== void 0 ? _a : _b.subclasses = {};
2429
- for (const iterator of styles) {
2430
- sc[" > " + iterator.name] = iterator.style;
2431
- }
2432
- return this;
2433
- }
2434
- roundBox(bgColor, padding = 5, radius = 5, unit = "px") {
2435
- this.style.padding = toUnit(padding, unit);
2436
- this.style.borderRadius = toUnit(radius, unit);
2437
- this.style.borderColor = bgColor;
2438
- this.style.backgroundColor = bgColor;
2439
- return this;
2440
- }
2441
- maximizeAbsolute() {
2442
- this.style.position = "absolute";
2443
- this.style.left = 0;
2444
- this.style.top = 0;
2445
- this.style.bottom = 0;
2446
- this.style.right = 0;
2447
- return this;
2448
- }
2449
- setRect(position, {
2450
- top,
2451
- left,
2452
- right,
2453
- bottom,
2454
- width,
2455
- height
2456
- } = {}, unit = "px") {
2457
- this.style.position = position;
2458
- if (typeof top !== "undefined") {
2459
- this.style.top = toUnit(top, unit);
2460
- }
2461
- if (typeof left !== "undefined") {
2462
- this.style.left = toUnit(left, unit);
2463
- }
2464
- if (typeof width !== "undefined") {
2465
- this.style.width = toUnit(width, unit);
2466
- }
2467
- if (typeof height !== "undefined") {
2468
- this.style.height = toUnit(height, unit);
2469
- }
2470
- if (typeof right !== "undefined") {
2471
- this.style.right = toUnit(right, unit);
2472
- }
2473
- if (typeof bottom !== "undefined") {
2474
- this.style.bottom = toUnit(bottom, unit);
2475
- }
2476
- return this;
2477
- }
2478
- absolutePosition(rect = {}, unit = "px") {
2479
- return this.setRect("absolute", rect, unit);
2480
- }
2481
- relativePosition(rect = {}, unit = "px") {
2482
- return this.setRect("relative", rect, unit);
2483
- }
2484
- absoluteDockTop(height, unit = "px") {
2485
- this.style.position = "absolute";
2486
- this.style.left = 0;
2487
- this.style.top = 0;
2488
- this.style.right = 0;
2489
- this.style.height = toUnit(height, unit);
2490
- return this;
2491
- }
2492
- absoluteDockBottom(top, unit = "px") {
2493
- this.style.position = "absolute";
2494
- this.style.left = 0;
2495
- this.style.bottom = 0;
2496
- this.style.right = 0;
2497
- this.style.top = toUnit(top, unit);
2498
- return this;
2499
- }
2500
- defaultBoxShadow() {
2501
- this.style.boxShadow = "rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;";
2502
- this.style.border = "solid 1px rgba(0, 0, 0, 0.05)";
2503
- return this;
2504
- }
2505
- textEllipsis() {
2506
- this.style.overflow = "hidden";
2507
- this.style.whiteSpace = "nowrap";
2508
- this.style.textOverflow = "ellipsis";
2509
- return this;
2510
- }
2511
- hover(style) {
2512
- var _a;
2513
- var _b;
2514
- const sc = (_a = (_b = this.style).subclasses) !== null && _a !== void 0 ? _a : _b.subclasses = {};
2515
- sc[":hover"] = Object.assign(Object.assign({}, sc[":hover"]), style.style);
2516
- return this;
2517
- }
2518
- focus(style) {
2519
- var _a;
2520
- var _b;
2521
- const sc = (_a = (_b = this.style).subclasses) !== null && _a !== void 0 ? _a : _b.subclasses = {};
2522
- sc[":focus"] = Object.assign(Object.assign({}, sc[":focus"]), style.style);
2523
- return this;
2524
- }
2525
- hoverBackgroundColor(color) {
2526
- var _a, _b;
2527
- var _c;
2528
- const sc = (_a = (_c = this.style).subclasses) !== null && _a !== void 0 ? _a : _c.subclasses = {};
2529
- const hover = (_b = sc[":hover"]) !== null && _b !== void 0 ? _b : sc[":hover"] = {};
2530
- hover.backgroundColor = color;
2531
- return this;
2532
- }
2533
- hoverColor(color) {
2534
- var _a, _b;
2535
- var _c;
2536
- const sc = (_a = (_c = this.style).subclasses) !== null && _a !== void 0 ? _a : _c.subclasses = {};
2537
- const hover = (_b = sc[":hover"]) !== null && _b !== void 0 ? _b : sc[":hover"] = {};
2538
- hover.color = color;
2539
- return this;
2540
- }
2541
- and(...styles) {
2542
- var _a;
2543
- var _b;
2544
- const sc = (_a = (_b = this.style).subclasses) !== null && _a !== void 0 ? _a : _b.subclasses = {};
2545
- for (const style of styles) {
2546
- sc[style.name] = style.style;
2547
- }
2548
- return this;
2549
- }
2550
- nested(...styles) {
2551
- var _a;
2552
- var _b;
2553
- const sc = (_a = (_b = this.style).subclasses) !== null && _a !== void 0 ? _a : _b.subclasses = {};
2554
- for (const style of styles) {
2555
- sc[" " + style.name] = style.style;
2556
- }
2557
- return this;
2558
- }
2559
- child(...styles) {
2560
- var _a;
2561
- var _b;
2562
- const sc = (_a = (_b = this.style).subclasses) !== null && _a !== void 0 ? _a : _b.subclasses = {};
2563
- for (const style of styles) {
2564
- sc[" > " + style.name] = style.style;
2565
- }
2566
- return this;
2567
- }
2568
- merge(...styles) {
2569
- for (const {
2570
- style
2571
- } of styles) {
2572
- for (const key in style) {
2573
- if (Object.prototype.hasOwnProperty.call(style, key)) {
2574
- const element = style[key];
2575
- this.style[key] = element;
2576
- }
2577
- }
2578
- }
2579
- return this;
2580
- }
2581
- toStyleSheet() {
2582
- const list = createStyleText(this.name, [], this.style);
2583
- return list.join("\n");
2584
- }
2585
- toggle(showSelector, hideSelector) {
2586
- var _a, _b, _c;
2587
- var _d;
2588
- const sc = (_a = (_d = this.style).subclasses) !== null && _a !== void 0 ? _a : _d.subclasses = {};
2589
- const h = (_b = sc[hideSelector]) !== null && _b !== void 0 ? _b : sc[hideSelector] = {};
2590
- const d = (_c = sc[showSelector]) !== null && _c !== void 0 ? _c : sc[showSelector] = {};
2591
- d.display = "inherit";
2592
- h.display = "none";
2593
- return this;
2594
- }
2595
- displayNone(...selectors) {
2596
- var _a, _b;
2597
- var _c;
2598
- const sc = (_a = (_c = this.style).subclasses) !== null && _a !== void 0 ? _a : _c.subclasses = {};
2599
- for (const iterator of selectors) {
2600
- const d = (_b = sc[iterator]) !== null && _b !== void 0 ? _b : sc[iterator] = {};
2601
- d.display = "none";
2602
- }
2603
- return this;
2604
- }
2605
- verticalFlexLayout(a = {}, units = "px") {
2606
- var _a;
2607
- (_a = a.direction) !== null && _a !== void 0 ? _a : a.direction = "column";
2608
- return this.flexLayout(a, units);
2609
- }
2610
- flexLayout({
2611
- direction = "row",
2612
- alignItems = "center",
2613
- justifyContent = "space-around",
2614
- stretch,
2615
- inline,
2616
- gap = 4
2617
- } = {}, units = "px") {
2618
- if (direction !== void 0) {
2619
- this.style.flexDirection = direction;
2620
- }
2621
- if (alignItems !== void 0) {
2622
- this.style.alignItems = alignItems;
2623
- }
2624
- if (justifyContent !== void 0) {
2625
- this.style.justifyContent = justifyContent;
2626
- }
2627
- if (stretch) {
2628
- this.style.flex = "1 1 100%";
2629
- }
2630
- if (gap) {
2631
- this.style.gap = toUnit(gap, units);
2632
- }
2633
- this.style.display = inline ? "inline-flex" : "flex";
2634
- return this;
2635
- }
2636
- toString() {
2637
- const list = [];
2638
- if (this.style) {
2639
- for (const key in this.style) {
2640
- if (Object.prototype.hasOwnProperty.call(this.style, key)) {
2641
- const element = this.style[key];
2642
- if (key === "subclasses") {
2643
- throw new Error("Single AtomStyleRule cannot contain subclasses");
2644
- }
2645
- if (key === "toString") {
2646
- continue;
2647
- }
2648
- if (!element) {
2649
- continue;
2650
- }
2651
- const name = fromCamelToHyphen(key);
2652
- if (element.url) {
2653
- list.push(`${name}: url(${element.url})`);
2654
- continue;
2655
- }
2656
- list.push(`${name}: ${element}`);
2657
- }
2658
- }
2659
- }
2660
- return list.join(";");
2661
- }
2662
- });
2663
- _export("default", StyleRule);
2664
- styleId = 1;
2665
- }
6
+ execute: function () {}
2666
7
  };
2667
8
  });
2668
9
  //# sourceMappingURL=StyleRule.js.map