@web-atoms/core 2.2.4 → 2.2.7

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 (288) hide show
  1. package/dist/App.js +1 -232
  2. package/dist/App.js.map +1 -1
  3. package/dist/Atom.js +1 -139
  4. package/dist/Atom.js.map +1 -1
  5. package/dist/MockApp.js +1 -37
  6. package/dist/MockApp.js.map +1 -1
  7. package/dist/Pack.js +1 -10
  8. package/dist/Pack.js.map +1 -1
  9. package/dist/core/AtomBinder.js +1 -214
  10. package/dist/core/AtomBinder.js.map +1 -1
  11. package/dist/core/AtomBridge.js +1 -307
  12. package/dist/core/AtomBridge.js.map +1 -1
  13. package/dist/core/AtomComponent.js +1 -568
  14. package/dist/core/AtomComponent.js.map +1 -1
  15. package/dist/core/AtomDispatcher.js +1 -63
  16. package/dist/core/AtomDispatcher.js.map +1 -1
  17. package/dist/core/AtomDisposableList.js +1 -38
  18. package/dist/core/AtomDisposableList.js.map +1 -1
  19. package/dist/core/AtomEnumerator.js +1 -27
  20. package/dist/core/AtomEnumerator.js.map +1 -1
  21. package/dist/core/AtomList.js +1 -210
  22. package/dist/core/AtomList.js.map +1 -1
  23. package/dist/core/AtomLoader.js +1 -298
  24. package/dist/core/AtomLoader.js.map +1 -1
  25. package/dist/core/AtomMap.js +1 -18
  26. package/dist/core/AtomMap.js.map +1 -1
  27. package/dist/core/AtomOnce.js +1 -35
  28. package/dist/core/AtomOnce.js.map +1 -1
  29. package/dist/core/AtomSelectableList.js +1 -257
  30. package/dist/core/AtomSelectableList.js.map +1 -1
  31. package/dist/core/AtomUri.js +1 -89
  32. package/dist/core/AtomUri.js.map +1 -1
  33. package/dist/core/AtomWatcher.js +1 -135
  34. package/dist/core/AtomWatcher.js.map +1 -1
  35. package/dist/core/Bind.js +1 -332
  36. package/dist/core/Bind.js.map +1 -1
  37. package/dist/core/BindableProperty.js +1 -40
  38. package/dist/core/BindableProperty.js.map +1 -1
  39. package/dist/core/CancelTokenFactory.js +1 -48
  40. package/dist/core/CancelTokenFactory.js.map +1 -1
  41. package/dist/core/Color.js +1 -8
  42. package/dist/core/Colors.js +1 -274
  43. package/dist/core/Colors.js.map +1 -1
  44. package/dist/core/Defer.js +1 -36
  45. package/dist/core/Defer.js.map +1 -1
  46. package/dist/core/EventScope.js +1 -60
  47. package/dist/core/EventScope.js.map +1 -1
  48. package/dist/core/ExpressionParser.js +1 -163
  49. package/dist/core/ExpressionParser.js.map +1 -1
  50. package/dist/core/FormattedError.js +1 -19
  51. package/dist/core/FormattedError.js.map +1 -1
  52. package/dist/core/FormattedString.js +1 -16
  53. package/dist/core/FormattedString.js.map +1 -1
  54. package/dist/core/IFetchEvent.js +1 -8
  55. package/dist/core/IScreen.js +1 -8
  56. package/dist/core/IValueConverter.js +1 -8
  57. package/dist/core/InheritedProperty.js +1 -89
  58. package/dist/core/InheritedProperty.js.map +1 -1
  59. package/dist/core/InjectProperty.js +1 -22
  60. package/dist/core/InjectProperty.js.map +1 -1
  61. package/dist/core/KeyValuePairs.js +1 -8
  62. package/dist/core/Markdown.js +1 -30
  63. package/dist/core/Markdown.js.map +1 -1
  64. package/dist/core/MarkdownError.js +1 -22
  65. package/dist/core/MarkdownError.js.map +1 -1
  66. package/dist/core/PropertyBinding.js +1 -10
  67. package/dist/core/PropertyBinding.js.map +1 -1
  68. package/dist/core/PropertyMap.js +1 -42
  69. package/dist/core/PropertyMap.js.map +1 -1
  70. package/dist/core/SingleInvoker.js +1 -58
  71. package/dist/core/SingleInvoker.js.map +1 -1
  72. package/dist/core/StringHelper.js +1 -58
  73. package/dist/core/StringHelper.js.map +1 -1
  74. package/dist/core/TransientDisposable.js +1 -28
  75. package/dist/core/TransientDisposable.js.map +1 -1
  76. package/dist/core/WatchProperty.js +1 -33
  77. package/dist/core/WatchProperty.js.map +1 -1
  78. package/dist/core/WebImage.js +1 -19
  79. package/dist/core/WebImage.js.map +1 -1
  80. package/dist/core/XNode.js +1 -158
  81. package/dist/core/XNode.js.map +1 -1
  82. package/dist/core/sleep.js +1 -33
  83. package/dist/core/sleep.js.map +1 -1
  84. package/dist/core/types.js +1 -101
  85. package/dist/core/types.js.map +1 -1
  86. package/dist/di/DISingleton.js +1 -22
  87. package/dist/di/DISingleton.js.map +1 -1
  88. package/dist/di/DITransient.js +1 -22
  89. package/dist/di/DITransient.js.map +1 -1
  90. package/dist/di/IMockOrInject.js +1 -8
  91. package/dist/di/IServiceProvider.js +1 -8
  92. package/dist/di/Inject.js +1 -88
  93. package/dist/di/Inject.js.map +1 -1
  94. package/dist/di/Register.js +1 -51
  95. package/dist/di/Register.js.map +1 -1
  96. package/dist/di/RegisterScoped.js +1 -19
  97. package/dist/di/RegisterScoped.js.map +1 -1
  98. package/dist/di/RegisterSingleton.js +1 -19
  99. package/dist/di/RegisterSingleton.js.map +1 -1
  100. package/dist/di/ServiceCollection.js +1 -61
  101. package/dist/di/ServiceCollection.js.map +1 -1
  102. package/dist/di/ServiceProvider.js +1 -136
  103. package/dist/di/ServiceProvider.js.map +1 -1
  104. package/dist/di/TypeKey.js +1 -22
  105. package/dist/di/TypeKey.js.map +1 -1
  106. package/dist/services/BusyIndicatorService.js +1 -27
  107. package/dist/services/BusyIndicatorService.js.map +1 -1
  108. package/dist/services/CacheService.js +1 -120
  109. package/dist/services/CacheService.js.map +1 -1
  110. package/dist/services/JsonService.js +1 -144
  111. package/dist/services/JsonService.js.map +1 -1
  112. package/dist/services/MockNavigationService.js +1 -191
  113. package/dist/services/MockNavigationService.js.map +1 -1
  114. package/dist/services/NavigationService.js +1 -163
  115. package/dist/services/NavigationService.js.map +1 -1
  116. package/dist/services/ReferenceService.js +1 -54
  117. package/dist/services/ReferenceService.js.map +1 -1
  118. package/dist/services/http/AjaxOptions.js +1 -12
  119. package/dist/services/http/AjaxOptions.js.map +1 -1
  120. package/dist/services/http/JsonError.js +1 -21
  121. package/dist/services/http/JsonError.js.map +1 -1
  122. package/dist/services/http/RestService.js +1 -421
  123. package/dist/services/http/RestService.js.map +1 -1
  124. package/dist/style/StyleRule.js +1 -2667
  125. package/dist/style/StyleRule.js.map +1 -1
  126. package/dist/test.js +1 -8
  127. package/dist/tsconfig.tsbuildinfo +1 -1
  128. package/dist/unit/AtomTest.js +1 -57
  129. package/dist/unit/AtomTest.js.map +1 -1
  130. package/dist/unit/AtomWebTest.js +1 -70
  131. package/dist/unit/AtomWebTest.js.map +1 -1
  132. package/dist/view-model/Action.js +1 -152
  133. package/dist/view-model/Action.js.map +1 -1
  134. package/dist/view-model/AtomViewModel.js +1 -357
  135. package/dist/view-model/AtomViewModel.js.map +1 -1
  136. package/dist/view-model/AtomWindowViewModel.js +1 -59
  137. package/dist/view-model/AtomWindowViewModel.js.map +1 -1
  138. package/dist/view-model/BindableUrlParameter.js +1 -24
  139. package/dist/view-model/BindableUrlParameter.js.map +1 -1
  140. package/dist/view-model/Delay.js +1 -34
  141. package/dist/view-model/Delay.js.map +1 -1
  142. package/dist/view-model/Disposable.js +1 -42
  143. package/dist/view-model/Disposable.js.map +1 -1
  144. package/dist/view-model/Load.js +1 -119
  145. package/dist/view-model/Load.js.map +1 -1
  146. package/dist/view-model/Once.js +1 -49
  147. package/dist/view-model/Once.js.map +1 -1
  148. package/dist/view-model/baseTypes.js +1 -14
  149. package/dist/view-model/baseTypes.js.map +1 -1
  150. package/dist/view-model/bindPromise.js +1 -41
  151. package/dist/view-model/bindPromise.js.map +1 -1
  152. package/dist/view-model/bindProperty.js +1 -16
  153. package/dist/view-model/bindProperty.js.map +1 -1
  154. package/dist/view-model/bindUrlParameter.js +1 -58
  155. package/dist/view-model/bindUrlParameter.js.map +1 -1
  156. package/dist/web/WebApp.js +1 -165
  157. package/dist/web/WebApp.js.map +1 -1
  158. package/dist/web/controls/AtomAlertWindow.js +1 -67
  159. package/dist/web/controls/AtomAlertWindow.js.map +1 -1
  160. package/dist/web/controls/AtomComboBox.js +1 -96
  161. package/dist/web/controls/AtomComboBox.js.map +1 -1
  162. package/dist/web/controls/AtomContentControl.js +1 -60
  163. package/dist/web/controls/AtomContentControl.js.map +1 -1
  164. package/dist/web/controls/AtomControl.js +1 -547
  165. package/dist/web/controls/AtomControl.js.map +1 -1
  166. package/dist/web/controls/AtomFrame.js +1 -256
  167. package/dist/web/controls/AtomFrame.js.map +1 -1
  168. package/dist/web/controls/AtomGridSplitter.js +1 -74
  169. package/dist/web/controls/AtomGridSplitter.js.map +1 -1
  170. package/dist/web/controls/AtomGridView.js +1 -250
  171. package/dist/web/controls/AtomGridView.js.map +1 -1
  172. package/dist/web/controls/AtomItemsControl.js +1 -709
  173. package/dist/web/controls/AtomItemsControl.js.map +1 -1
  174. package/dist/web/controls/AtomListBox.js +1 -62
  175. package/dist/web/controls/AtomListBox.js.map +1 -1
  176. package/dist/web/controls/AtomNotification.js +1 -68
  177. package/dist/web/controls/AtomNotification.js.map +1 -1
  178. package/dist/web/controls/AtomPage.js +1 -20
  179. package/dist/web/controls/AtomPage.js.map +1 -1
  180. package/dist/web/controls/AtomPageLink.js +1 -137
  181. package/dist/web/controls/AtomPageLink.js.map +1 -1
  182. package/dist/web/controls/AtomTabbedPage.js +1 -299
  183. package/dist/web/controls/AtomTabbedPage.js.map +1 -1
  184. package/dist/web/controls/AtomTemplate.js +1 -14
  185. package/dist/web/controls/AtomTemplate.js.map +1 -1
  186. package/dist/web/controls/AtomTemplateControl.js +1 -46
  187. package/dist/web/controls/AtomTemplateControl.js.map +1 -1
  188. package/dist/web/controls/AtomToggleButtonBar.js +1 -45
  189. package/dist/web/controls/AtomToggleButtonBar.js.map +1 -1
  190. package/dist/web/controls/AtomViewPager.js +1 -92
  191. package/dist/web/controls/AtomViewPager.js.map +1 -1
  192. package/dist/web/controls/AtomViewStack.js +1 -34
  193. package/dist/web/controls/AtomViewStack.js.map +1 -1
  194. package/dist/web/controls/AtomWindow.js +1 -247
  195. package/dist/web/controls/AtomWindow.js.map +1 -1
  196. package/dist/web/core/AtomUI.js +1 -203
  197. package/dist/web/core/AtomUI.js.map +1 -1
  198. package/dist/web/core/Encoder.js +1 -152
  199. package/dist/web/core/Encoder.js.map +1 -1
  200. package/dist/web/core/HtmlNode.js +3 -185
  201. package/dist/web/core/HtmlNode.js.map +1 -1
  202. package/dist/web/images/Busy.js +1 -13
  203. package/dist/web/images/Busy.js.map +1 -1
  204. package/dist/web/images/BusyDataUrl.js +1 -14
  205. package/dist/web/images/BusyDataUrl.js.map +1 -1
  206. package/dist/web/images/Button.js +1 -13
  207. package/dist/web/images/Button.js.map +1 -1
  208. package/dist/web/images/ButtonDataUrl.js +1 -14
  209. package/dist/web/images/ButtonDataUrl.js.map +1 -1
  210. package/dist/web/images/CloseButton.js +1 -13
  211. package/dist/web/images/CloseButton.js.map +1 -1
  212. package/dist/web/images/CloseButtonDataUrl.js +1 -14
  213. package/dist/web/images/CloseButtonDataUrl.js.map +1 -1
  214. package/dist/web/images/CloseButtonHover.js +1 -13
  215. package/dist/web/images/CloseButtonHover.js.map +1 -1
  216. package/dist/web/images/CloseButtonHoverDataUrl.js +1 -14
  217. package/dist/web/images/CloseButtonHoverDataUrl.js.map +1 -1
  218. package/dist/web/samples/MovieService.js +1 -61
  219. package/dist/web/samples/MovieService.js.map +1 -1
  220. package/dist/web/samples/demo/app.js +1 -25
  221. package/dist/web/samples/demo/app.js.map +1 -1
  222. package/dist/web/samples/demo/views/MovieList.js +1 -70
  223. package/dist/web/samples/demo/views/MovieList.js.map +1 -1
  224. package/dist/web/samples/demo/views/MovieListViewModel.js +1 -109
  225. package/dist/web/samples/demo/views/MovieListViewModel.js.map +1 -1
  226. package/dist/web/samples/tabs/app.js +1 -59
  227. package/dist/web/samples/tabs/app.js.map +1 -1
  228. package/dist/web/samples/tabs/views/List.js +1 -13
  229. package/dist/web/samples/tabs/views/List.js.map +1 -1
  230. package/dist/web/samples/tabs/views/ListDataUrl.js +1 -14
  231. package/dist/web/samples/tabs/views/ListDataUrl.js.map +1 -1
  232. package/dist/web/samples/tabs/views/Page1.js +1 -99
  233. package/dist/web/samples/tabs/views/Page1.js.map +1 -1
  234. package/dist/web/samples/tabs/views/TabHost.js +1 -88
  235. package/dist/web/samples/tabs/views/TabHost.js.map +1 -1
  236. package/dist/web/samples/window/WindowSample.js +1 -29
  237. package/dist/web/samples/window/WindowSample.js.map +1 -1
  238. package/dist/web/services/MarkdownService.js +1 -37
  239. package/dist/web/services/MarkdownService.js.map +1 -1
  240. package/dist/web/services/NotificationPopup.js +1 -49
  241. package/dist/web/services/NotificationPopup.js.map +1 -1
  242. package/dist/web/services/PopupService.js +1 -827
  243. package/dist/web/services/PopupService.js.map +1 -1
  244. package/dist/web/services/WebBusyIndicatorService.js +1 -84
  245. package/dist/web/services/WebBusyIndicatorService.js.map +1 -1
  246. package/dist/web/services/WindowService.js +1 -377
  247. package/dist/web/services/WindowService.js.map +1 -1
  248. package/dist/web/styles/AtomAlertWindowStyle.js +1 -52
  249. package/dist/web/styles/AtomAlertWindowStyle.js.map +1 -1
  250. package/dist/web/styles/AtomFrameStyle.js +1 -29
  251. package/dist/web/styles/AtomFrameStyle.js.map +1 -1
  252. package/dist/web/styles/AtomListBoxStyle.js +1 -42
  253. package/dist/web/styles/AtomListBoxStyle.js.map +1 -1
  254. package/dist/web/styles/AtomNotificationStyle.js +1 -35
  255. package/dist/web/styles/AtomNotificationStyle.js.map +1 -1
  256. package/dist/web/styles/AtomPageLinkStyle.js +1 -25
  257. package/dist/web/styles/AtomPageLinkStyle.js.map +1 -1
  258. package/dist/web/styles/AtomPopupStyle.js +1 -23
  259. package/dist/web/styles/AtomPopupStyle.js.map +1 -1
  260. package/dist/web/styles/AtomStyle.js +1 -81
  261. package/dist/web/styles/AtomStyle.js.map +1 -1
  262. package/dist/web/styles/AtomStyleSheet.js +1 -69
  263. package/dist/web/styles/AtomStyleSheet.js.map +1 -1
  264. package/dist/web/styles/AtomTabbedPageStyle.js +1 -127
  265. package/dist/web/styles/AtomTabbedPageStyle.js.map +1 -1
  266. package/dist/web/styles/AtomTheme.js +1 -63
  267. package/dist/web/styles/AtomTheme.js.map +1 -1
  268. package/dist/web/styles/AtomToggleButtonBarStyle.js +1 -76
  269. package/dist/web/styles/AtomToggleButtonBarStyle.js.map +1 -1
  270. package/dist/web/styles/AtomWindowStyle.js +1 -130
  271. package/dist/web/styles/AtomWindowStyle.js.map +1 -1
  272. package/dist/web/styles/CSS.js +1 -75
  273. package/dist/web/styles/CSS.js.map +1 -1
  274. package/dist/web/styles/CommonStyles.js +1 -68
  275. package/dist/web/styles/CommonStyles.js.map +1 -1
  276. package/dist/web/styles/IStyleDeclaration.js +1 -8
  277. package/dist/web/styles/StyleBuilder.js +1 -95
  278. package/dist/web/styles/StyleBuilder.js.map +1 -1
  279. package/dist/xf/XFApp.js +1 -64
  280. package/dist/xf/XFApp.js.map +1 -1
  281. package/dist/xf/controls/AtomXFControl.js +1 -270
  282. package/dist/xf/controls/AtomXFControl.js.map +1 -1
  283. package/dist/xf/services/XFBusyIndicatorService.js +1 -35
  284. package/dist/xf/services/XFBusyIndicatorService.js.map +1 -1
  285. package/dist/xf/services/XFNavigationService.js +1 -175
  286. package/dist/xf/services/XFNavigationService.js.map +1 -1
  287. package/package.json +4 -3
  288. package/tsconfig.json +1 -0
@@ -1,2668 +1,2 @@
1
- System.register([], function (_export, _context) {
2
- "use strict";
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
- return {
61
- 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
- }
2666
- };
2667
- });
1
+ System.register([],function(_export,_context){"use strict";var AtomStyleRules,styleId;function toUnit(n,unit){if(!unit){unit="";}return typeof n==="number"?n+unit:n;}function StyleRule(selector){return new AtomStyleRules(selector);}function fromCamelToHyphen(input){return input.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();}function createStyleText(name,pairs,styles){const styleList=[];for(const key in styles){if(styles.hasOwnProperty(key)){if(/^(\_\$\_|className$|toString$)/i.test(key)){continue;}const element=styles[key];if(element===undefined||element===null){continue;}const keyName=fromCamelToHyphen(key);if(key==="subclasses"){const n=name;for(const subclassKey in element){if(element.hasOwnProperty(subclassKey)){const ve=element[subclassKey];pairs=createStyleText(`${n}${subclassKey}`,pairs,ve);}}}else{if(element.url){styleList.push(`${keyName}: url(${element})`);}else{styleList.push(`${keyName}: ${element}`);}}}}if(!name){return[styleList.join(";")];}const cname=fromCamelToHyphen(name);const styleClassName=`${cname}`;if(styleList.length){pairs.push(`.${styleClassName} { ${styleList.join(";\r\n")}; }`);}return pairs;}_export({toUnit:toUnit,AtomStyleRules:void 0});return{setters:[],execute:function(){_export("AtomStyleRules",AtomStyleRules=class AtomStyleRules{constructor(name){this.style={};if(typeof name==="string"){this.name=name;}else{this.style=name!==null&&name!==void 0?name:{};}}alignContent(value){if(value!==undefined&&value!==null){this.style.alignContent=value;}return this;}alignItems(value){if(value!==undefined&&value!==null){this.style.alignItems=value;}return this;}alignSelf(value){if(value!==undefined&&value!==null){this.style.alignSelf=value;}return this;}alignmentBaseline(value){if(value!==undefined&&value!==null){this.style.alignmentBaseline=value;}return this;}animation(value){if(value!==undefined&&value!==null){this.style.animation=value;}return this;}animationDelay(value){if(value!==undefined&&value!==null){this.style.animationDelay=value;}return this;}animationDirection(value){if(value!==undefined&&value!==null){this.style.animationDirection=value;}return this;}animationDuration(value){if(value!==undefined&&value!==null){this.style.animationDuration=value;}return this;}animationFillMode(value){if(value!==undefined&&value!==null){this.style.animationFillMode=value;}return this;}animationIterationCount(value){if(value!==undefined&&value!==null){this.style.animationIterationCount=value;}return this;}animationName(value){if(value!==undefined&&value!==null){this.style.animationName=value;}return this;}animationPlayState(value){if(value!==undefined&&value!==null){this.style.animationPlayState=value;}return this;}animationTimingFunction(value){if(value!==undefined&&value!==null){this.style.animationTimingFunction=value;}return this;}backfaceVisibility(value){if(value!==undefined&&value!==null){this.style.backfaceVisibility=value;}return this;}background(value){if(value!==undefined&&value!==null){this.style.background=value;}return this;}backgroundAttachment(value){if(value!==undefined&&value!==null){this.style.backgroundAttachment=value;}return this;}backgroundBlendMode(value){if(value!==undefined&&value!==null){this.style.backgroundBlendMode=value;}return this;}backgroundClip(value){if(value!==undefined&&value!==null){this.style.backgroundClip=value;}return this;}backgroundColor(value){if(value!==undefined&&value!==null){this.style.backgroundColor=value;}return this;}backgroundImage(value){if(value!==undefined&&value!==null){this.style.backgroundImage=value;}return this;}backgroundOrigin(value){if(value!==undefined&&value!==null){this.style.backgroundOrigin=value;}return this;}backgroundPosition(value){if(value!==undefined&&value!==null){this.style.backgroundPosition=value;}return this;}backgroundPositionX(value,unit="px"){if(value!==undefined&&value!==null){this.style.backgroundPositionX=toUnit(value,unit);}return this;}backgroundPositionY(value,unit="px"){if(value!==undefined&&value!==null){this.style.backgroundPositionY=toUnit(value,unit);}return this;}backgroundRepeat(value){if(value!==undefined&&value!==null){this.style.backgroundRepeat=value;}return this;}backgroundSize(value){if(value!==undefined&&value!==null){this.style.backgroundSize=value;}return this;}baselineShift(value){if(value!==undefined&&value!==null){this.style.baselineShift=value;}return this;}border(value){if(value!==undefined&&value!==null){this.style.border=value;}return this;}borderBottom(value){if(value!==undefined&&value!==null){this.style.borderBottom=value;}return this;}borderBottomColor(value){if(value!==undefined&&value!==null){this.style.borderBottomColor=value;}return this;}borderBottomLeftRadius(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderBottomLeftRadius=toUnit(value,unit);}return this;}borderBottomRightRadius(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderBottomRightRadius=toUnit(value,unit);}return this;}borderBottomStyle(value){if(value!==undefined&&value!==null){this.style.borderBottomStyle=value;}return this;}borderBottomWidth(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderBottomWidth=toUnit(value,unit);}return this;}borderCollapse(value){if(value!==undefined&&value!==null){this.style.borderCollapse=value;}return this;}borderColor(value){if(value!==undefined&&value!==null){this.style.borderColor=value;}return this;}borderImage(value){if(value!==undefined&&value!==null){this.style.borderImage=value;}return this;}borderImageOutset(value){if(value!==undefined&&value!==null){this.style.borderImageOutset=value;}return this;}borderImageRepeat(value){if(value!==undefined&&value!==null){this.style.borderImageRepeat=value;}return this;}borderImageSlice(value){if(value!==undefined&&value!==null){this.style.borderImageSlice=value;}return this;}borderImageSource(value){if(value!==undefined&&value!==null){this.style.borderImageSource=value;}return this;}borderImageWidth(value){if(value!==undefined&&value!==null){this.style.borderImageWidth=value;}return this;}borderLeft(value){if(value!==undefined&&value!==null){this.style.borderLeft=value;}return this;}borderLeftColor(value){if(value!==undefined&&value!==null){this.style.borderLeftColor=value;}return this;}borderLeftStyle(value){if(value!==undefined&&value!==null){this.style.borderLeftStyle=value;}return this;}borderLeftWidth(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderLeftWidth=toUnit(value,unit);}return this;}borderRadius(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderRadius=toUnit(value,unit);}return this;}borderRight(value){if(value!==undefined&&value!==null){this.style.borderRight=value;}return this;}borderRightColor(value){if(value!==undefined&&value!==null){this.style.borderRightColor=value;}return this;}borderRightStyle(value){if(value!==undefined&&value!==null){this.style.borderRightStyle=value;}return this;}borderRightWidth(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderRightWidth=toUnit(value,unit);}return this;}borderSpacing(value){if(value!==undefined&&value!==null){this.style.borderSpacing=value;}return this;}borderStyle(value){if(value!==undefined&&value!==null){this.style.borderStyle=value;}return this;}borderTop(value){if(value!==undefined&&value!==null){this.style.borderTop=value;}return this;}borderTopColor(value){if(value!==undefined&&value!==null){this.style.borderTopColor=value;}return this;}borderTopLeftRadius(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderTopLeftRadius=toUnit(value,unit);}return this;}borderTopRightRadius(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderTopRightRadius=toUnit(value,unit);}return this;}borderTopStyle(value){if(value!==undefined&&value!==null){this.style.borderTopStyle=value;}return this;}borderTopWidth(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderTopWidth=toUnit(value,unit);}return this;}borderWidth(value,unit="px"){if(value!==undefined&&value!==null){this.style.borderWidth=toUnit(value,unit);}return this;}bottom(value,unit="px"){if(value!==undefined&&value!==null){this.style.bottom=toUnit(value,unit);}return this;}boxShadow(value){if(value!==undefined&&value!==null){this.style.boxShadow=value;}return this;}boxSizing(value){if(value!==undefined&&value!==null){this.style.boxSizing=value;}return this;}breakAfter(value){if(value!==undefined&&value!==null){this.style.breakAfter=value;}return this;}breakBefore(value){if(value!==undefined&&value!==null){this.style.breakBefore=value;}return this;}breakInside(value){if(value!==undefined&&value!==null){this.style.breakInside=value;}return this;}captionSide(value){if(value!==undefined&&value!==null){this.style.captionSide=value;}return this;}caretColor(value){this.style.caretColor=value;return this;}clear(value){if(value!==undefined&&value!==null){this.style.clear=value;}return this;}clip(value){if(value!==undefined&&value!==null){this.style.clip=value;}return this;}clipPath(value){if(value!==undefined&&value!==null){this.style.clipPath=value;}return this;}clipRule(value){if(value!==undefined&&value!==null){this.style.clipRule=value;}return this;}color(value){if(value!==undefined&&value!==null){this.style.color=value;}return this;}colorInterpolationFilters(value){if(value!==undefined&&value!==null){this.style.colorInterpolationFilters=value;}return this;}columnCount(value){if(value!==undefined&&value!==null){this.style.columnCount=value;}return this;}columnFill(value){if(value!==undefined&&value!==null){this.style.columnFill=value;}return this;}columnGap(value,unit="px"){if(value!==undefined&&value!==null){this.style.columnGap=toUnit(value,unit);}return this;}columnRule(value){if(value!==undefined&&value!==null){this.style.columnRule=value;}return this;}columnRuleColor(value){if(value!==undefined&&value!==null){this.style.columnRuleColor=value;}return this;}columnRuleStyle(value){if(value!==undefined&&value!==null){this.style.columnRuleStyle=value;}return this;}columnRuleWidth(value){if(value!==undefined&&value!==null){this.style.columnRuleWidth=value;}return this;}columnSpan(value){if(value!==undefined&&value!==null){this.style.columnSpan=value;}return this;}columnWidth(value){if(value!==undefined&&value!==null){this.style.columnWidth=value;}return this;}columns(value){if(value!==undefined&&value!==null){this.style.columns=value;}return this;}content(value){if(value!==undefined&&value!==null){this.style.content=value;}return this;}counterIncrement(value){if(value!==undefined&&value!==null){this.style.counterIncrement=value;}return this;}counterReset(value){if(value!==undefined&&value!==null){this.style.counterReset=value;}return this;}cssFloat(value){if(value!==undefined&&value!==null){this.style.cssFloat=value;}return this;}cssText(value){if(value!==undefined&&value!==null){this.style.cssText=value;}return this;}cursor(value){if(value!==undefined&&value!==null){this.style.cursor=value;}return this;}direction(value){if(value!==undefined&&value!==null){this.style.direction=value;}return this;}display(value){if(value!==undefined&&value!==null){this.style.display=value;}return this;}dominantBaseline(value){if(value!==undefined&&value!==null){this.style.dominantBaseline=value;}return this;}emptyCells(value){if(value!==undefined&&value!==null){this.style.emptyCells=value;}return this;}enableBackground(value){if(value!==undefined&&value!==null){this.style.enableBackground=value;}return this;}fill(value){if(value!==undefined&&value!==null){this.style.fill=value;}return this;}fillOpacity(value){if(value!==undefined&&value!==null){this.style.fillOpacity=value;}return this;}fillRule(value){if(value!==undefined&&value!==null){this.style.fillRule=value;}return this;}filter(value){if(value!==undefined&&value!==null){this.style.filter=value;}return this;}flex(value){if(value!==undefined&&value!==null){this.style.flex=value;}return this;}flexBasis(value){if(value!==undefined&&value!==null){this.style.flexBasis=value;}return this;}flexDirection(value){if(value!==undefined&&value!==null){this.style.flexDirection=value;}return this;}flexFlow(value){if(value!==undefined&&value!==null){this.style.flexFlow=value;}return this;}flexGrow(value){if(value!==undefined&&value!==null){this.style.flexGrow=value;}return this;}flexShrink(value){if(value!==undefined&&value!==null){this.style.flexShrink=value;}return this;}flexWrap(value){if(value!==undefined&&value!==null){this.style.flexWrap=value;}return this;}float(value){if(value!==undefined&&value!==null){this.style.float=value;}return this;}floodColor(value){if(value!==undefined&&value!==null){this.style.floodColor=value;}return this;}floodOpacity(value){if(value!==undefined&&value!==null){this.style.floodOpacity=value;}return this;}font(value){if(value!==undefined&&value!==null){this.style.font=value;}return this;}fontFamily(value){if(value!==undefined&&value!==null){this.style.fontFamily=value;}return this;}fontFeatureSettings(value){if(value!==undefined&&value!==null){this.style.fontFeatureSettings=value;}return this;}fontSize(value,unit="px"){if(value!==undefined&&value!==null){this.style.fontSize=toUnit(value,unit);}return this;}fontSizeAdjust(value){if(value!==undefined&&value!==null){this.style.fontSizeAdjust=value;}return this;}fontStretch(value){if(value!==undefined&&value!==null){this.style.fontStretch=value;}return this;}fontStyle(value){if(value!==undefined&&value!==null){this.style.fontStyle=value;}return this;}fontVariant(value){if(value!==undefined&&value!==null){this.style.fontVariant=value;}return this;}fontWeight(value){if(value!==undefined&&value!==null){this.style.fontWeight=value;}return this;}gap(value,unit="px"){if(value!==undefined&&value!==null){this.style.gap=toUnit(value,unit);}return this;}glyphOrientationHorizontal(value){if(value!==undefined&&value!==null){this.style.glyphOrientationHorizontal=value;}return this;}glyphOrientationVertical(value){if(value!==undefined&&value!==null){this.style.glyphOrientationVertical=value;}return this;}grid(value){if(value!==undefined&&value!==null){this.style.grid=value;}return this;}gridArea(value){if(value!==undefined&&value!==null){this.style.gridArea=value;}return this;}gridAutoColumns(value){if(value!==undefined&&value!==null){this.style.gridAutoColumns=value;}return this;}gridAutoFlow(value){if(value!==undefined&&value!==null){this.style.gridAutoFlow=value;}return this;}gridAutoRows(value){if(value!==undefined&&value!==null){this.style.gridAutoRows=value;}return this;}gridColumn(value){if(value!==undefined&&value!==null){this.style.gridColumn=value;}return this;}gridColumnEnd(value){if(value!==undefined&&value!==null){this.style.gridColumnEnd=value;}return this;}gridColumnGap(value){if(value!==undefined&&value!==null){this.style.gridColumnGap=value;}return this;}gridColumnStart(value){if(value!==undefined&&value!==null){this.style.gridColumnStart=value;}return this;}gridGap(value){if(value!==undefined&&value!==null){this.style.gridGap=value;}return this;}gridRow(value){if(value!==undefined&&value!==null){this.style.gridRow=value;}return this;}gridRowEnd(value){if(value!==undefined&&value!==null){this.style.gridRowEnd=value;}return this;}gridRowGap(value){if(value!==undefined&&value!==null){this.style.gridRowGap=value;}return this;}gridRowStart(value){if(value!==undefined&&value!==null){this.style.gridRowStart=value;}return this;}gridTemplate(value){if(value!==undefined&&value!==null){this.style.gridTemplate=value;}return this;}gridTemplateAreas(value){if(value!==undefined&&value!==null){this.style.gridTemplateAreas=value;}return this;}gridTemplateColumns(value){if(value!==undefined&&value!==null){this.style.gridTemplateColumns=value;}return this;}gridTemplateRows(value){if(value!==undefined&&value!==null){this.style.gridTemplateRows=value;}return this;}height(value,unit="px"){if(value!==undefined&&value!==null){this.style.height=toUnit(value,unit);}return this;}imeMode(value){if(value!==undefined&&value!==null){this.style.imeMode=value;}return this;}justifyContent(value){if(value!==undefined&&value!==null){this.style.justifyContent=value;}return this;}justifyItems(value){if(value!==undefined&&value!==null){this.style.justifyItems=value;}return this;}justifySelf(value){if(value!==undefined&&value!==null){this.style.justifySelf=value;}return this;}kerning(value){if(value!==undefined&&value!==null){this.style.kerning=value;}return this;}layoutGrid(value){if(value!==undefined&&value!==null){this.style.layoutGrid=value;}return this;}layoutGridChar(value){if(value!==undefined&&value!==null){this.style.layoutGridChar=value;}return this;}layoutGridLine(value){if(value!==undefined&&value!==null){this.style.layoutGridLine=value;}return this;}layoutGridMode(value){if(value!==undefined&&value!==null){this.style.layoutGridMode=value;}return this;}layoutGridType(value){if(value!==undefined&&value!==null){this.style.layoutGridType=value;}return this;}left(value,unit="px"){if(value!==undefined&&value!==null){this.style.left=toUnit(value,unit);}return this;}letterSpacing(value){if(value!==undefined&&value!==null){this.style.letterSpacing=value;}return this;}lightingColor(value){if(value!==undefined&&value!==null){this.style.lightingColor=value;}return this;}lineBreak(value){if(value!==undefined&&value!==null){this.style.lineBreak=value;}return this;}lineHeight(value){if(value!==undefined&&value!==null){this.style.lineHeight=value;}return this;}listStyle(value){if(value!==undefined&&value!==null){this.style.listStyle=value;}return this;}listStyleImage(value){if(value!==undefined&&value!==null){this.style.listStyleImage=value;}return this;}listStylePosition(value){if(value!==undefined&&value!==null){this.style.listStylePosition=value;}return this;}listStyleType(value){if(value!==undefined&&value!==null){this.style.listStyleType=value;}return this;}margin(value,unit="px"){if(value!==undefined&&value!==null){this.style.margin=toUnit(value,unit);}return this;}marginBottom(value,unit="px"){if(value!==undefined&&value!==null){this.style.marginBottom=toUnit(value,unit);}return this;}marginLeft(value,unit="px"){if(value!==undefined&&value!==null){this.style.marginLeft=toUnit(value,unit);}return this;}marginRight(value,unit="px"){if(value!==undefined&&value!==null){this.style.marginRight=toUnit(value,unit);}return this;}marginTop(value,unit="px"){if(value!==undefined&&value!==null){this.style.marginTop=toUnit(value,unit);}return this;}marginInlineStart(value,unit="px"){if(value!==undefined&&value!==null){this.style.marginInlineStart=toUnit(value,unit);}return this;}marginInlineEnd(value,unit="px"){if(value!==undefined&&value!==null){this.style.marginInlineEnd=toUnit(value,unit);}return this;}marginBlockStart(value,unit="px"){if(value!==undefined&&value!==null){this.style.marginBlockStart=toUnit(value,unit);}return this;}marginBlockEnd(value,unit="px"){if(value!==undefined&&value!==null){this.style.marginBlockEnd=toUnit(value,unit);}return this;}marker(value){if(value!==undefined&&value!==null){this.style.marker=value;}return this;}markerEnd(value){if(value!==undefined&&value!==null){this.style.markerEnd=value;}return this;}markerMid(value){if(value!==undefined&&value!==null){this.style.markerMid=value;}return this;}markerStart(value){if(value!==undefined&&value!==null){this.style.markerStart=value;}return this;}mask(value){if(value!==undefined&&value!==null){this.style.mask=value;}return this;}maskImage(value){if(value!==undefined&&value!==null){this.style.maskImage=value;}return this;}maxHeight(value,unit="px"){if(value!==undefined&&value!==null){this.style.maxHeight=toUnit(value,unit);}return this;}maxWidth(value,unit="px"){if(value!==undefined&&value!==null){this.style.maxWidth=toUnit(value,unit);}return this;}minHeight(value,unit="px"){if(value!==undefined&&value!==null){this.style.minHeight=toUnit(value,unit);}return this;}minWidth(value,unit="px"){if(value!==undefined&&value!==null){this.style.minWidth=toUnit(value,unit);}return this;}msContentZoomChaining(value){if(value!==undefined&&value!==null){this.style.msContentZoomChaining=value;}return this;}msContentZoomLimit(value){if(value!==undefined&&value!==null){this.style.msContentZoomLimit=value;}return this;}msContentZoomLimitMax(value){if(value!==undefined&&value!==null){this.style.msContentZoomLimitMax=value;}return this;}msContentZoomLimitMin(value){if(value!==undefined&&value!==null){this.style.msContentZoomLimitMin=value;}return this;}msContentZoomSnap(value){if(value!==undefined&&value!==null){this.style.msContentZoomSnap=value;}return this;}msContentZoomSnapPoints(value){if(value!==undefined&&value!==null){this.style.msContentZoomSnapPoints=value;}return this;}msContentZoomSnapType(value){if(value!==undefined&&value!==null){this.style.msContentZoomSnapType=value;}return this;}msContentZooming(value){if(value!==undefined&&value!==null){this.style.msContentZooming=value;}return this;}msFlowFrom(value){if(value!==undefined&&value!==null){this.style.msFlowFrom=value;}return this;}msFlowInto(value){if(value!==undefined&&value!==null){this.style.msFlowInto=value;}return this;}msFontFeatureSettings(value){if(value!==undefined&&value!==null){this.style.msFontFeatureSettings=value;}return this;}msGridColumn(value){if(value!==undefined&&value!==null){this.style.msGridColumn=value;}return this;}msGridColumnAlign(value){if(value!==undefined&&value!==null){this.style.msGridColumnAlign=value;}return this;}msGridColumnSpan(value){if(value!==undefined&&value!==null){this.style.msGridColumnSpan=value;}return this;}msGridColumns(value){if(value!==undefined&&value!==null){this.style.msGridColumns=value;}return this;}msGridRow(value){if(value!==undefined&&value!==null){this.style.msGridRow=value;}return this;}msGridRowAlign(value){if(value!==undefined&&value!==null){this.style.msGridRowAlign=value;}return this;}msGridRowSpan(value){if(value!==undefined&&value!==null){this.style.msGridRowSpan=value;}return this;}msGridRows(value){if(value!==undefined&&value!==null){this.style.msGridRows=value;}return this;}msHighContrastAdjust(value){if(value!==undefined&&value!==null){this.style.msHighContrastAdjust=value;}return this;}msHyphenateLimitChars(value){if(value!==undefined&&value!==null){this.style.msHyphenateLimitChars=value;}return this;}msHyphenateLimitLines(value){if(value!==undefined&&value!==null){this.style.msHyphenateLimitLines=value;}return this;}msHyphenateLimitZone(value){if(value!==undefined&&value!==null){this.style.msHyphenateLimitZone=value;}return this;}msHyphens(value){if(value!==undefined&&value!==null){this.style.msHyphens=value;}return this;}msImeAlign(value){if(value!==undefined&&value!==null){this.style.msImeAlign=value;}return this;}msOverflowStyle(value){if(value!==undefined&&value!==null){this.style.msOverflowStyle=value;}return this;}msScrollChaining(value){if(value!==undefined&&value!==null){this.style.msScrollChaining=value;}return this;}msScrollLimit(value){if(value!==undefined&&value!==null){this.style.msScrollLimit=value;}return this;}msScrollLimitXMax(value){if(value!==undefined&&value!==null){this.style.msScrollLimitXMax=value;}return this;}msScrollLimitXMin(value){if(value!==undefined&&value!==null){this.style.msScrollLimitXMin=value;}return this;}msScrollLimitYMax(value){if(value!==undefined&&value!==null){this.style.msScrollLimitYMax=value;}return this;}msScrollLimitYMin(value){if(value!==undefined&&value!==null){this.style.msScrollLimitYMin=value;}return this;}msScrollRails(value){if(value!==undefined&&value!==null){this.style.msScrollRails=value;}return this;}msScrollSnapPointsX(value){if(value!==undefined&&value!==null){this.style.msScrollSnapPointsX=value;}return this;}msScrollSnapPointsY(value){if(value!==undefined&&value!==null){this.style.msScrollSnapPointsY=value;}return this;}msScrollSnapType(value){if(value!==undefined&&value!==null){this.style.msScrollSnapType=value;}return this;}msScrollSnapX(value){if(value!==undefined&&value!==null){this.style.msScrollSnapX=value;}return this;}msScrollSnapY(value){if(value!==undefined&&value!==null){this.style.msScrollSnapY=value;}return this;}msScrollTranslation(value){if(value!==undefined&&value!==null){this.style.msScrollTranslation=value;}return this;}msTextCombineHorizontal(value){if(value!==undefined&&value!==null){this.style.msTextCombineHorizontal=value;}return this;}msTextSizeAdjust(value){if(value!==undefined&&value!==null){this.style.msTextSizeAdjust=value;}return this;}msTouchAction(value){if(value!==undefined&&value!==null){this.style.msTouchAction=value;}return this;}msTouchSelect(value){if(value!==undefined&&value!==null){this.style.msTouchSelect=value;}return this;}msUserSelect(value){if(value!==undefined&&value!==null){this.style.msUserSelect=value;}return this;}msWrapFlow(value){if(value!==undefined&&value!==null){this.style.msWrapFlow=value;}return this;}msWrapMargin(value){if(value!==undefined&&value!==null){this.style.msWrapMargin=value;}return this;}msWrapThrough(value){if(value!==undefined&&value!==null){this.style.msWrapThrough=value;}return this;}objectFit(value){if(value!==undefined&&value!==null){this.style.objectFit=value;}return this;}objectPosition(value){if(value!==undefined&&value!==null){this.style.objectPosition=value;}return this;}opacity(value){if(value!==undefined&&value!==null){this.style.opacity=value;}return this;}order(value){if(value!==undefined&&value!==null){this.style.order=value;}return this;}orphans(value){if(value!==undefined&&value!==null){this.style.orphans=value;}return this;}outline(value){if(value!==undefined&&value!==null){this.style.outline=value;}return this;}outlineColor(value){if(value!==undefined&&value!==null){this.style.outlineColor=value;}return this;}outlineOffset(value){if(value!==undefined&&value!==null){this.style.outlineOffset=value;}return this;}outlineStyle(value){if(value!==undefined&&value!==null){this.style.outlineStyle=value;}return this;}outlineWidth(value){if(value!==undefined&&value!==null){this.style.outlineWidth=value;}return this;}overflow(value){if(value!==undefined&&value!==null){this.style.overflow=value;}return this;}overflowX(value){if(value!==undefined&&value!==null){this.style.overflowX=value;}return this;}overflowY(value){if(value!==undefined&&value!==null){this.style.overflowY=value;}return this;}padding(value,unit="px"){if(value!==undefined&&value!==null){this.style.padding=toUnit(value,unit);}return this;}paddingBottom(value,unit="px"){if(value!==undefined&&value!==null){this.style.paddingBottom=toUnit(value,unit);}return this;}paddingLeft(value,unit="px"){if(value!==undefined&&value!==null){this.style.paddingLeft=toUnit(value,unit);}return this;}paddingRight(value,unit="px"){if(value!==undefined&&value!==null){this.style.paddingRight=toUnit(value,unit);}return this;}paddingTop(value,unit="px"){if(value!==undefined&&value!==null){this.style.paddingTop=toUnit(value,unit);}return this;}paddingInlineStart(value,unit="px"){if(value!==undefined&&value!==null){this.style.paddingInlineStart=toUnit(value,unit);}return this;}paddingInlineEnd(value,unit="px"){if(value!==undefined&&value!==null){this.style.paddingInlineEnd=toUnit(value,unit);}return this;}pageBreakAfter(value){if(value!==undefined&&value!==null){this.style.pageBreakAfter=value;}return this;}pageBreakBefore(value){if(value!==undefined&&value!==null){this.style.pageBreakBefore=value;}return this;}pageBreakInside(value){if(value!==undefined&&value!==null){this.style.pageBreakInside=value;}return this;}penAction(value){if(value!==undefined&&value!==null){this.style.penAction=value;}return this;}perspective(value){if(value!==undefined&&value!==null){this.style.perspective=value;}return this;}perspectiveOrigin(value){if(value!==undefined&&value!==null){this.style.perspectiveOrigin=value;}return this;}pointerEvents(value){if(value!==undefined&&value!==null){this.style.pointerEvents=value;}return this;}position(value){if(value!==undefined&&value!==null){this.style.position=value;}return this;}quotes(value){if(value!==undefined&&value!==null){this.style.quotes=value;}return this;}resize(value){if(value!==undefined&&value!==null){this.style.resize=value;}return this;}right(value,unit="px"){if(value!==undefined&&value!==null){this.style.right=toUnit(value,unit);}return this;}rotate(value){if(value!==undefined&&value!==null){this.style.rotate=value;}return this;}rowGap(value){if(value!==undefined&&value!==null){this.style.rowGap=value;}return this;}rubyAlign(value){if(value!==undefined&&value!==null){this.style.rubyAlign=value;}return this;}rubyOverhang(value){if(value!==undefined&&value!==null){this.style.rubyOverhang=value;}return this;}rubyPosition(value){if(value!==undefined&&value!==null){this.style.rubyPosition=value;}return this;}scale(value){if(value!==undefined&&value!==null){this.style.scale=value;}return this;}custom(name,value){this.style[name]=value;return this;}scrollBarWidth(value,unit){var _a,_b;var _c,_d;this.style["scrollbar-width"]=toUnit(value,unit);(_a=(_c=this.style).subclasses)!==null&&_a!==void 0?_a:_c.subclasses={};const ws=(_b=(_d=this.style.subclasses)["::-webkit-scrollbar"])!==null&&_b!==void 0?_b:_d["::-webkit-scrollbar"]={};ws.width=toUnit(value,unit);return this;}scrollBarColor(thumb,bg){var _a,_b;var _c,_d;this.style["scrollbar-color"]=`${thumb} ${bg}`;(_a=(_c=this.style).subclasses)!==null&&_a!==void 0?_a:_c.subclasses={};const ws=(_b=(_d=this.style.subclasses)["::-webkit-scrollbar-thumb"])!==null&&_b!==void 0?_b:_d["::-webkit-scrollbar-thumb"]={};ws.backgroundColor=bg;ws.borderRadius="20px";ws.border=`3px solid ${thumb}`;return this;}stopColor(value){if(value!==undefined&&value!==null){this.style.stopColor=value;}return this;}stopOpacity(value){if(value!==undefined&&value!==null){this.style.stopOpacity=value;}return this;}stroke(value){if(value!==undefined&&value!==null){this.style.stroke=value;}return this;}strokeDasharray(value){if(value!==undefined&&value!==null){this.style.strokeDasharray=value;}return this;}strokeDashoffset(value){if(value!==undefined&&value!==null){this.style.strokeDashoffset=value;}return this;}strokeLinecap(value){if(value!==undefined&&value!==null){this.style.strokeLinecap=value;}return this;}strokeLinejoin(value){if(value!==undefined&&value!==null){this.style.strokeLinejoin=value;}return this;}strokeMiterlimit(value){if(value!==undefined&&value!==null){this.style.strokeMiterlimit=value;}return this;}strokeOpacity(value){if(value!==undefined&&value!==null){this.style.strokeOpacity=value;}return this;}strokeWidth(value){if(value!==undefined&&value!==null){this.style.strokeWidth=value;}return this;}tableLayout(value){if(value!==undefined&&value!==null){this.style.tableLayout=value;}return this;}textAlign(value){if(value!==undefined&&value!==null){this.style.textAlign=value;}return this;}textAlignLast(value){if(value!==undefined&&value!==null){this.style.textAlignLast=value;}return this;}textAnchor(value){if(value!==undefined&&value!==null){this.style.textAnchor=value;}return this;}textCombineUpright(value){if(value!==undefined&&value!==null){this.style.textCombineUpright=value;}return this;}textDecoration(value){if(value!==undefined&&value!==null){this.style.textDecoration=value;}return this;}textIndent(value){if(value!==undefined&&value!==null){this.style.textIndent=value;}return this;}textJustify(value){if(value!==undefined&&value!==null){this.style.textJustify=value;}return this;}textKashida(value){if(value!==undefined&&value!==null){this.style.textKashida=value;}return this;}textKashidaSpace(value){if(value!==undefined&&value!==null){this.style.textKashidaSpace=value;}return this;}textOverflow(value){if(value!==undefined&&value!==null){this.style.textOverflow=value;}return this;}textShadow(value){if(value!==undefined&&value!==null){this.style.textShadow=value;}return this;}textTransform(value){if(value!==undefined&&value!==null){this.style.textTransform=value;}return this;}textUnderlinePosition(value){if(value!==undefined&&value!==null){this.style.textUnderlinePosition=value;}return this;}top(value,unit="px"){if(value!==undefined&&value!==null){this.style.top=toUnit(value,unit);}return this;}touchAction(value){if(value!==undefined&&value!==null){this.style.touchAction=value;}return this;}transform(value){if(value!==undefined&&value!==null){this.style.transform=value;}return this;}transformOrigin(value){if(value!==undefined&&value!==null){this.style.transformOrigin=value;}return this;}transformStyle(value){if(value!==undefined&&value!==null){this.style.transformStyle=value;}return this;}transition(value){if(value!==undefined&&value!==null){this.style.transition=value;}return this;}transitionDelay(value){if(value!==undefined&&value!==null){this.style.transitionDelay=value;}return this;}transitionDuration(value){if(value!==undefined&&value!==null){this.style.transitionDuration=value;}return this;}transitionProperty(value){if(value!==undefined&&value!==null){this.style.transitionProperty=value;}return this;}transitionTimingFunction(value){if(value!==undefined&&value!==null){this.style.transitionTimingFunction=value;}return this;}translate(value){if(value!==undefined&&value!==null){this.style.translate=value;}return this;}unicodeBidi(value){if(value!==undefined&&value!==null){this.style.unicodeBidi=value;}return this;}userSelect(value){if(value!==undefined&&value!==null){this.style.userSelect=value;}return this;}userDrag(value){if(value!==undefined&&value!==null){this.style.userDrag=value;}return this;}verticalAlign(value){if(value!==undefined&&value!==null){this.style.verticalAlign=value;}return this;}visibility(value){if(value!==undefined&&value!==null){this.style.visibility=value;}return this;}webkitAlignContent(value){if(value!==undefined&&value!==null){this.style.webkitAlignContent=value;}return this;}webkitAlignItems(value){if(value!==undefined&&value!==null){this.style.webkitAlignItems=value;}return this;}webkitAlignSelf(value){if(value!==undefined&&value!==null){this.style.webkitAlignSelf=value;}return this;}webkitAnimation(value){if(value!==undefined&&value!==null){this.style.webkitAnimation=value;}return this;}webkitAnimationDelay(value){if(value!==undefined&&value!==null){this.style.webkitAnimationDelay=value;}return this;}webkitAnimationDirection(value){if(value!==undefined&&value!==null){this.style.webkitAnimationDirection=value;}return this;}webkitAnimationDuration(value){if(value!==undefined&&value!==null){this.style.webkitAnimationDuration=value;}return this;}webkitAnimationFillMode(value){if(value!==undefined&&value!==null){this.style.webkitAnimationFillMode=value;}return this;}webkitAnimationIterationCount(value){if(value!==undefined&&value!==null){this.style.webkitAnimationIterationCount=value;}return this;}webkitAnimationName(value){if(value!==undefined&&value!==null){this.style.webkitAnimationName=value;}return this;}webkitAnimationPlayState(value){if(value!==undefined&&value!==null){this.style.webkitAnimationPlayState=value;}return this;}webkitAnimationTimingFunction(value){if(value!==undefined&&value!==null){this.style.webkitAnimationTimingFunction=value;}return this;}webkitAppearance(value){if(value!==undefined&&value!==null){this.style.webkitAppearance=value;}return this;}webkitBackfaceVisibility(value){if(value!==undefined&&value!==null){this.style.webkitBackfaceVisibility=value;}return this;}webkitBackgroundClip(value){if(value!==undefined&&value!==null){this.style.webkitBackgroundClip=value;}return this;}webkitBackgroundOrigin(value){if(value!==undefined&&value!==null){this.style.webkitBackgroundOrigin=value;}return this;}webkitBackgroundSize(value){if(value!==undefined&&value!==null){this.style.webkitBackgroundSize=value;}return this;}webkitBorderBottomLeftRadius(value){if(value!==undefined&&value!==null){this.style.webkitBorderBottomLeftRadius=value;}return this;}webkitBorderBottomRightRadius(value){if(value!==undefined&&value!==null){this.style.webkitBorderBottomRightRadius=value;}return this;}webkitBorderImage(value){if(value!==undefined&&value!==null){this.style.webkitBorderImage=value;}return this;}webkitBorderRadius(value){if(value!==undefined&&value!==null){this.style.webkitBorderRadius=value;}return this;}webkitBorderTopLeftRadius(value){if(value!==undefined&&value!==null){this.style.webkitBorderTopLeftRadius=value;}return this;}webkitBorderTopRightRadius(value){if(value!==undefined&&value!==null){this.style.webkitBorderTopRightRadius=value;}return this;}webkitBoxAlign(value){if(value!==undefined&&value!==null){this.style.webkitBoxAlign=value;}return this;}webkitBoxDirection(value){if(value!==undefined&&value!==null){this.style.webkitBoxDirection=value;}return this;}webkitBoxFlex(value){if(value!==undefined&&value!==null){this.style.webkitBoxFlex=value;}return this;}webkitBoxOrdinalGroup(value){if(value!==undefined&&value!==null){this.style.webkitBoxOrdinalGroup=value;}return this;}webkitBoxOrient(value){if(value!==undefined&&value!==null){this.style.webkitBoxOrient=value;}return this;}webkitBoxPack(value){if(value!==undefined&&value!==null){this.style.webkitBoxPack=value;}return this;}webkitBoxSizing(value){if(value!==undefined&&value!==null){this.style.webkitBoxSizing=value;}return this;}webkitColumnBreakAfter(value){if(value!==undefined&&value!==null){this.style.webkitColumnBreakAfter=value;}return this;}webkitColumnBreakBefore(value){if(value!==undefined&&value!==null){this.style.webkitColumnBreakBefore=value;}return this;}webkitColumnBreakInside(value){if(value!==undefined&&value!==null){this.style.webkitColumnBreakInside=value;}return this;}webkitColumnCount(value){if(value!==undefined&&value!==null){this.style.webkitColumnCount=value;}return this;}webkitColumnGap(value){if(value!==undefined&&value!==null){this.style.webkitColumnGap=value;}return this;}webkitColumnRule(value){if(value!==undefined&&value!==null){this.style.webkitColumnRule=value;}return this;}webkitColumnRuleColor(value){if(value!==undefined&&value!==null){this.style.webkitColumnRuleColor=value;}return this;}webkitColumnRuleStyle(value){if(value!==undefined&&value!==null){this.style.webkitColumnRuleStyle=value;}return this;}webkitColumnRuleWidth(value){if(value!==undefined&&value!==null){this.style.webkitColumnRuleWidth=value;}return this;}webkitColumnSpan(value){if(value!==undefined&&value!==null){this.style.webkitColumnSpan=value;}return this;}webkitColumnWidth(value){if(value!==undefined&&value!==null){this.style.webkitColumnWidth=value;}return this;}webkitColumns(value){if(value!==undefined&&value!==null){this.style.webkitColumns=value;}return this;}webkitFilter(value){if(value!==undefined&&value!==null){this.style.webkitFilter=value;}return this;}webkitFlex(value){if(value!==undefined&&value!==null){this.style.webkitFlex=value;}return this;}webkitFlexBasis(value){if(value!==undefined&&value!==null){this.style.webkitFlexBasis=value;}return this;}webkitFlexDirection(value){if(value!==undefined&&value!==null){this.style.webkitFlexDirection=value;}return this;}webkitFlexFlow(value){if(value!==undefined&&value!==null){this.style.webkitFlexFlow=value;}return this;}webkitFlexGrow(value){if(value!==undefined&&value!==null){this.style.webkitFlexGrow=value;}return this;}webkitFlexShrink(value){if(value!==undefined&&value!==null){this.style.webkitFlexShrink=value;}return this;}webkitFlexWrap(value){if(value!==undefined&&value!==null){this.style.webkitFlexWrap=value;}return this;}webkitJustifyContent(value){if(value!==undefined&&value!==null){this.style.webkitJustifyContent=value;}return this;}webkitOrder(value){if(value!==undefined&&value!==null){this.style.webkitOrder=value;}return this;}webkitPerspective(value){if(value!==undefined&&value!==null){this.style.webkitPerspective=value;}return this;}webkitPerspectiveOrigin(value){if(value!==undefined&&value!==null){this.style.webkitPerspectiveOrigin=value;}return this;}webkitTapHighlightColor(value){if(value!==undefined&&value!==null){this.style.webkitTapHighlightColor=value;}return this;}webkitTextFillColor(value){if(value!==undefined&&value!==null){this.style.webkitTextFillColor=value;}return this;}webkitTextSizeAdjust(value){if(value!==undefined&&value!==null){this.style.webkitTextSizeAdjust=value;}return this;}webkitTextStroke(value){if(value!==undefined&&value!==null){this.style.webkitTextStroke=value;}return this;}webkitTextStrokeColor(value){if(value!==undefined&&value!==null){this.style.webkitTextStrokeColor=value;}return this;}webkitTextStrokeWidth(value){if(value!==undefined&&value!==null){this.style.webkitTextStrokeWidth=value;}return this;}webkitTransform(value){if(value!==undefined&&value!==null){this.style.webkitTransform=value;}return this;}webkitTransformOrigin(value){if(value!==undefined&&value!==null){this.style.webkitTransformOrigin=value;}return this;}webkitTransformStyle(value){if(value!==undefined&&value!==null){this.style.webkitTransformStyle=value;}return this;}webkitTransition(value){if(value!==undefined&&value!==null){this.style.webkitTransition=value;}return this;}webkitTransitionDelay(value){if(value!==undefined&&value!==null){this.style.webkitTransitionDelay=value;}return this;}webkitTransitionDuration(value){if(value!==undefined&&value!==null){this.style.webkitTransitionDuration=value;}return this;}webkitTransitionProperty(value){if(value!==undefined&&value!==null){this.style.webkitTransitionProperty=value;}return this;}webkitTransitionTimingFunction(value){if(value!==undefined&&value!==null){this.style.webkitTransitionTimingFunction=value;}return this;}webkitUserModify(value){if(value!==undefined&&value!==null){this.style.webkitUserModify=value;}return this;}webkitUserSelect(value){if(value!==undefined&&value!==null){this.style.webkitUserSelect=value;}return this;}webkitUserDrag(value){if(value!==undefined&&value!==null){this.style.webkitUserDrag=value;}return this;}webkitWritingMode(value){if(value!==undefined&&value!==null){this.style.webkitWritingMode=value;}return this;}whiteSpace(value){if(value!==undefined&&value!==null){this.style.whiteSpace=value;}return this;}widows(value){if(value!==undefined&&value!==null){this.style.widows=value;}return this;}width(value,unit="px"){if(value!==undefined&&value!==null){this.style.width=toUnit(value,unit);}return this;}wordBreak(value){if(value!==undefined&&value!==null){this.style.wordBreak=value;}return this;}wordSpacing(value){if(value!==undefined&&value!==null){this.style.wordSpacing=value;}return this;}wordWrap(value){if(value!==undefined&&value!==null){this.style.wordWrap=value;}return this;}writingMode(value){if(value!==undefined&&value!==null){this.style.writingMode=value;}return this;}zIndex(value){if(value!==undefined&&value!==null){this.style.zIndex=value;}return this;}zoom(value){if(value!==undefined&&value!==null){this.style.zoom=value;}return this;}displayFlex(){this.style.display="flex";return this;}flexStretch(){return this.flex("1 1 100%");}roundBorderFull(){this.style.borderRadius="9999px";return this;}subclass(name,style){var _a;var _b;if(style instanceof AtomStyleRules){style=style.style;}const sc=(_a=(_b=this.style).subclasses)!==null&&_a!==void 0?_a:_b.subclasses={};sc[name]=style;return this;}childSubclass(name,style){return this.subclass(" > "+name,style);}subclasses(...styles){var _a;var _b;const sc=(_a=(_b=this.style).subclasses)!==null&&_a!==void 0?_a:_b.subclasses={};for(const iterator of styles){sc[iterator.name]=iterator.style;}return this;}childSubclasses(...styles){var _a;var _b;const sc=(_a=(_b=this.style).subclasses)!==null&&_a!==void 0?_a:_b.subclasses={};for(const iterator of styles){sc[" > "+iterator.name]=iterator.style;}return this;}roundBox(bgColor,padding=5,radius=5,unit="px"){this.style.padding=toUnit(padding,unit);this.style.borderRadius=toUnit(radius,unit);this.style.borderColor=bgColor;this.style.backgroundColor=bgColor;return this;}maximizeAbsolute(){this.style.position="absolute";this.style.left=0;this.style.top=0;this.style.bottom=0;this.style.right=0;return this;}setRect(position,{top,left,right,bottom,width,height}={},unit="px"){this.style.position=position;if(typeof top!=="undefined"){this.style.top=toUnit(top,unit);}if(typeof left!=="undefined"){this.style.left=toUnit(left,unit);}if(typeof width!=="undefined"){this.style.width=toUnit(width,unit);}if(typeof height!=="undefined"){this.style.height=toUnit(height,unit);}if(typeof right!=="undefined"){this.style.right=toUnit(right,unit);}if(typeof bottom!=="undefined"){this.style.bottom=toUnit(bottom,unit);}return this;}absolutePosition(rect={},unit="px"){return this.setRect("absolute",rect,unit);}relativePosition(rect={},unit="px"){return this.setRect("relative",rect,unit);}absoluteDockTop(height,unit="px"){this.style.position="absolute";this.style.left=0;this.style.top=0;this.style.right=0;this.style.height=toUnit(height,unit);return this;}absoluteDockBottom(top,unit="px"){this.style.position="absolute";this.style.left=0;this.style.bottom=0;this.style.right=0;this.style.top=toUnit(top,unit);return this;}defaultBoxShadow(){this.style.boxShadow="rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;";this.style.border="solid 1px rgba(0, 0, 0, 0.05)";return this;}textEllipsis(){this.style.overflow="hidden";this.style.whiteSpace="nowrap";this.style.textOverflow="ellipsis";return this;}hover(style){var _a;var _b;const sc=(_a=(_b=this.style).subclasses)!==null&&_a!==void 0?_a:_b.subclasses={};sc[":hover"]=Object.assign(Object.assign({},sc[":hover"]),style.style);return this;}focus(style){var _a;var _b;const sc=(_a=(_b=this.style).subclasses)!==null&&_a!==void 0?_a:_b.subclasses={};sc[":focus"]=Object.assign(Object.assign({},sc[":focus"]),style.style);return this;}hoverBackgroundColor(color){var _a,_b;var _c;const sc=(_a=(_c=this.style).subclasses)!==null&&_a!==void 0?_a:_c.subclasses={};const hover=(_b=sc[":hover"])!==null&&_b!==void 0?_b:sc[":hover"]={};hover.backgroundColor=color;return this;}hoverColor(color){var _a,_b;var _c;const sc=(_a=(_c=this.style).subclasses)!==null&&_a!==void 0?_a:_c.subclasses={};const hover=(_b=sc[":hover"])!==null&&_b!==void 0?_b:sc[":hover"]={};hover.color=color;return this;}and(...styles){var _a;var _b;const sc=(_a=(_b=this.style).subclasses)!==null&&_a!==void 0?_a:_b.subclasses={};for(const style of styles){sc[style.name]=style.style;}return this;}nested(...styles){var _a;var _b;const sc=(_a=(_b=this.style).subclasses)!==null&&_a!==void 0?_a:_b.subclasses={};for(const style of styles){sc[" "+style.name]=style.style;}return this;}child(...styles){var _a;var _b;const sc=(_a=(_b=this.style).subclasses)!==null&&_a!==void 0?_a:_b.subclasses={};for(const style of styles){sc[" > "+style.name]=style.style;}return this;}merge(...styles){for(const{style}of styles){for(const key in style){if(Object.prototype.hasOwnProperty.call(style,key)){const element=style[key];this.style[key]=element;}}}return this;}toStyleSheet(){const list=createStyleText(this.name,[],this.style);return list.join("\n");}toggle(showSelector,hideSelector){var _a,_b,_c;var _d;const sc=(_a=(_d=this.style).subclasses)!==null&&_a!==void 0?_a:_d.subclasses={};const h=(_b=sc[hideSelector])!==null&&_b!==void 0?_b:sc[hideSelector]={};const d=(_c=sc[showSelector])!==null&&_c!==void 0?_c:sc[showSelector]={};d.display="inherit";h.display="none";return this;}displayNone(...selectors){var _a,_b;var _c;const sc=(_a=(_c=this.style).subclasses)!==null&&_a!==void 0?_a:_c.subclasses={};for(const iterator of selectors){const d=(_b=sc[iterator])!==null&&_b!==void 0?_b:sc[iterator]={};d.display="none";}return this;}verticalFlexLayout(a={},units="px"){var _a;(_a=a.direction)!==null&&_a!==void 0?_a:a.direction="column";return this.flexLayout(a,units);}flexLayout({direction="row",alignItems="center",justifyContent="space-around",stretch,inline,gap=4}={},units="px"){if(direction!==void 0){this.style.flexDirection=direction;}if(alignItems!==void 0){this.style.alignItems=alignItems;}if(justifyContent!==void 0){this.style.justifyContent=justifyContent;}if(stretch){this.style.flex="1 1 100%";}if(gap){this.style.gap=toUnit(gap,units);}this.style.display=inline?"inline-flex":"flex";return this;}toString(){const list=[];if(this.style){for(const key in this.style){if(Object.prototype.hasOwnProperty.call(this.style,key)){const element=this.style[key];if(key==="subclasses"){throw new Error("Single AtomStyleRule cannot contain subclasses");}if(key==="toString"){continue;}if(!element){continue;}const name=fromCamelToHyphen(key);if(element.url){list.push(`${name}: url(${element.url})`);continue;}list.push(`${name}: ${element}`);}}}return list.join(";");}});_export("default",StyleRule);styleId=1;}};});
2668
2
  //# sourceMappingURL=StyleRule.js.map