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