@iobroker/adapter-react-v5 7.0.2 → 7.1.0

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 (307) hide show
  1. package/Components/404.d.ts +3 -2
  2. package/Components/404.js +3 -2
  3. package/Components/ColorPicker.d.ts +22 -8
  4. package/Components/ColorPicker.js +34 -17
  5. package/Components/ComplexCron.js +24 -24
  6. package/Components/CopyToClipboard.d.ts +10 -1
  7. package/Components/CopyToClipboard.js +17 -8
  8. package/Components/CustomModal.d.ts +1 -1
  9. package/Components/CustomModal.js +8 -8
  10. package/Components/FileBrowser.d.ts +11 -11
  11. package/Components/FileBrowser.js +135 -152
  12. package/Components/FileViewer.js +34 -23
  13. package/Components/Icon.d.ts +16 -2
  14. package/Components/Icon.js +19 -8
  15. package/Components/IconPicker.js +10 -14
  16. package/Components/IconSelector.d.ts +1 -1
  17. package/Components/IconSelector.js +64 -74
  18. package/Components/Image.d.ts +8 -4
  19. package/Components/Image.js +13 -32
  20. package/Components/Loader.d.ts +2 -2
  21. package/Components/Loader.js +21 -18
  22. package/Components/Loaders/MV.d.ts +6 -1
  23. package/Components/Loaders/MV.js +23 -7
  24. package/Components/Loaders/PT.d.ts +7 -2
  25. package/Components/Loaders/PT.js +20 -7
  26. package/Components/Loaders/Vendor.d.ts +2 -2
  27. package/Components/Loaders/Vendor.js +15 -7
  28. package/Components/Logo.js +16 -18
  29. package/Components/MDUtils.d.ts +1 -1
  30. package/Components/MDUtils.js +8 -4
  31. package/Components/ObjectBrowser.d.ts +40 -39
  32. package/Components/ObjectBrowser.js +550 -435
  33. package/Components/Router.d.ts +1 -3
  34. package/Components/Router.js +3 -1
  35. package/Components/SaveCloseButtons.d.ts +3 -3
  36. package/Components/SaveCloseButtons.js +3 -3
  37. package/Components/Schedule.d.ts +15 -15
  38. package/Components/Schedule.js +177 -154
  39. package/Components/SelectWithIcon.d.ts +2 -2
  40. package/Components/SelectWithIcon.js +45 -34
  41. package/Components/SimpleCron/index.js +83 -43
  42. package/Components/TabContainer.js +2 -2
  43. package/Components/TabContent.js +1 -1
  44. package/Components/TabHeader.js +1 -1
  45. package/Components/TableResize.d.ts +2 -2
  46. package/Components/TableResize.js +5 -5
  47. package/Components/TextWithIcon.d.ts +1 -1
  48. package/Components/TextWithIcon.js +10 -8
  49. package/Components/ToggleThemeMenu.d.ts +2 -2
  50. package/Components/ToggleThemeMenu.js +3 -3
  51. package/Components/TreeTable.d.ts +18 -18
  52. package/Components/TreeTable.js +76 -72
  53. package/Components/UploadImage.d.ts +2 -2
  54. package/Components/UploadImage.js +25 -21
  55. package/Components/Utils.d.ts +42 -22
  56. package/Components/Utils.js +66 -65
  57. package/Components/withWidth.d.ts +2 -2
  58. package/Components/withWidth.js +10 -6
  59. package/Dialogs/ComplexCron.d.ts +2 -2
  60. package/Dialogs/ComplexCron.js +3 -3
  61. package/Dialogs/Confirm.d.ts +4 -4
  62. package/Dialogs/Confirm.js +18 -8
  63. package/Dialogs/Cron.d.ts +3 -3
  64. package/Dialogs/Cron.js +21 -17
  65. package/Dialogs/Error.d.ts +3 -3
  66. package/Dialogs/Error.js +6 -4
  67. package/Dialogs/Message.d.ts +3 -3
  68. package/Dialogs/Message.js +6 -4
  69. package/Dialogs/SelectFile.d.ts +4 -4
  70. package/Dialogs/SelectFile.js +6 -4
  71. package/Dialogs/SelectID.d.ts +12 -10
  72. package/Dialogs/SelectID.js +12 -8
  73. package/Dialogs/SimpleCron.d.ts +2 -2
  74. package/Dialogs/SimpleCron.js +2 -2
  75. package/Dialogs/TextInput.d.ts +2 -2
  76. package/Dialogs/TextInput.js +3 -3
  77. package/GenericApp.d.ts +19 -13
  78. package/GenericApp.js +128 -85
  79. package/LegacyConnection.d.ts +240 -248
  80. package/LegacyConnection.js +500 -525
  81. package/README.md +1234 -1170
  82. package/Theme.d.ts +1 -1
  83. package/Theme.js +9 -12
  84. package/assets/devices.json +1 -0
  85. package/assets/rooms.json +1 -0
  86. package/craco-module-federation.js +3 -12
  87. package/i18n/de.json +434 -434
  88. package/i18n/en.json +434 -434
  89. package/i18n/es.json +434 -434
  90. package/i18n/fr.json +434 -434
  91. package/i18n/it.json +434 -434
  92. package/i18n/nl.json +434 -434
  93. package/i18n/pl.json +434 -434
  94. package/i18n/pt.json +434 -434
  95. package/i18n/ru.json +434 -434
  96. package/i18n/uk.json +434 -434
  97. package/i18n/zh-cn.json +434 -434
  98. package/i18n.d.ts +26 -19
  99. package/i18n.js +28 -22
  100. package/icons/IconAdapter.js +2 -2
  101. package/icons/IconAlias.js +2 -2
  102. package/icons/IconChannel.js +2 -2
  103. package/icons/IconClearFilter.js +2 -2
  104. package/icons/IconClosed.js +2 -2
  105. package/icons/IconCopy.js +2 -2
  106. package/icons/IconDevice.js +2 -2
  107. package/icons/IconDocument.js +2 -2
  108. package/icons/IconDocumentReadOnly.js +2 -2
  109. package/icons/IconExpert.js +2 -2
  110. package/icons/IconFx.js +2 -2
  111. package/icons/IconInstance.js +2 -2
  112. package/icons/IconLogout.js +2 -2
  113. package/icons/IconNoIcon.js +2 -2
  114. package/icons/IconOpen.d.ts +2 -2
  115. package/icons/IconOpen.js +2 -2
  116. package/icons/IconProps.d.ts +4 -3
  117. package/icons/IconState.d.ts +2 -2
  118. package/icons/IconState.js +2 -2
  119. package/index.css +3 -2
  120. package/package.json +1 -1
  121. package/src/Components/404.tsx +32 -31
  122. package/src/Components/ColorPicker.tsx +142 -114
  123. package/src/Components/ComplexCron.tsx +174 -137
  124. package/src/Components/CopyToClipboard.tsx +22 -9
  125. package/src/Components/CustomModal.tsx +76 -69
  126. package/src/Components/FileBrowser.tsx +959 -852
  127. package/src/Components/FileViewer.tsx +146 -127
  128. package/src/Components/Icon.tsx +80 -52
  129. package/src/Components/IconPicker.tsx +83 -67
  130. package/src/Components/IconSelector.tsx +159 -141
  131. package/src/Components/Image.tsx +43 -26
  132. package/src/Components/Loader.tsx +56 -32
  133. package/src/Components/Logo.tsx +62 -52
  134. package/src/Components/MDUtils.tsx +10 -6
  135. package/src/Components/ObjectBrowser.tsx +3198 -2478
  136. package/src/Components/Router.tsx +11 -11
  137. package/src/Components/SaveCloseButtons.tsx +43 -39
  138. package/src/Components/Schedule.tsx +1091 -853
  139. package/src/Components/SelectWithIcon.tsx +135 -93
  140. package/src/Components/TabContainer.tsx +21 -19
  141. package/src/Components/TabContent.tsx +13 -12
  142. package/src/Components/TabHeader.tsx +10 -9
  143. package/src/Components/TableResize.tsx +52 -37
  144. package/src/Components/TextWithIcon.tsx +30 -19
  145. package/src/Components/ToggleThemeMenu.tsx +31 -13
  146. package/src/Components/TreeTable.tsx +468 -385
  147. package/src/Components/UploadImage.tsx +153 -121
  148. package/src/Components/Utils.tsx +135 -127
  149. package/src/Components/loader.css +40 -31
  150. package/src/Components/withWidth.tsx +23 -12
  151. package/src/Connection.tsx +1 -3
  152. package/src/Dialogs/ComplexCron.tsx +55 -61
  153. package/src/Dialogs/Confirm.tsx +88 -65
  154. package/src/Dialogs/Cron.tsx +122 -112
  155. package/src/Dialogs/Error.tsx +37 -42
  156. package/src/Dialogs/Message.tsx +39 -37
  157. package/src/Dialogs/SelectFile.tsx +95 -85
  158. package/src/Dialogs/SelectID.tsx +141 -129
  159. package/src/Dialogs/SimpleCron.tsx +44 -44
  160. package/src/Dialogs/TextInput.tsx +60 -68
  161. package/src/GenericApp.tsx +342 -242
  162. package/src/LegacyConnection.tsx +972 -842
  163. package/src/Prompt.tsx +3 -1
  164. package/src/Theme.tsx +19 -26
  165. package/src/icons/IconAdapter.tsx +16 -14
  166. package/src/icons/IconAlias.tsx +16 -14
  167. package/src/icons/IconChannel.tsx +55 -16
  168. package/src/icons/IconClearFilter.tsx +17 -15
  169. package/src/icons/IconClosed.tsx +16 -11
  170. package/src/icons/IconCopy.tsx +16 -11
  171. package/src/icons/IconDevice.tsx +121 -22
  172. package/src/icons/IconDocument.tsx +16 -11
  173. package/src/icons/IconDocumentReadOnly.tsx +21 -12
  174. package/src/icons/IconExpert.tsx +20 -12
  175. package/src/icons/IconFx.tsx +16 -14
  176. package/src/icons/IconInstance.tsx +16 -14
  177. package/src/icons/IconLogout.tsx +20 -18
  178. package/src/icons/IconNoIcon.tsx +16 -14
  179. package/src/icons/IconOpen.tsx +17 -12
  180. package/src/icons/IconProps.tsx +4 -3
  181. package/src/icons/IconState.tsx +34 -13
  182. package/src/index.css +3 -2
  183. package/tasks.js +91 -0
  184. package/types.d.ts +141 -0
  185. package/Components/Loaders/PT.css +0 -109
  186. package/Components/Loaders/Vendor.css +0 -13
  187. package/Components/loader.css +0 -222
  188. package/Components/types.d.ts +0 -82
  189. package/assets/devices/Alarm Systems.svg +0 -19
  190. package/assets/devices/Amplifier.svg +0 -22
  191. package/assets/devices/Awnings.svg +0 -5
  192. package/assets/devices/Battery Status.svg +0 -5
  193. package/assets/devices/Ceiling Spotlights.svg +0 -16
  194. package/assets/devices/Chandelier.svg +0 -7
  195. package/assets/devices/Climate.svg +0 -12
  196. package/assets/devices/Coffee Makers.svg +0 -6
  197. package/assets/devices/Cold Water.svg +0 -31
  198. package/assets/devices/Computer.svg +0 -21
  199. package/assets/devices/Consumption.svg +0 -8
  200. package/assets/devices/Curtains.svg +0 -43
  201. package/assets/devices/Dishwashers.svg +0 -12
  202. package/assets/devices/Doors.svg +0 -6
  203. package/assets/devices/Doorstep.svg +0 -35
  204. package/assets/devices/Dryer.svg +0 -14
  205. package/assets/devices/Fan.svg +0 -20
  206. package/assets/devices/Floor Lamps.svg +0 -5
  207. package/assets/devices/Garage Doors.svg +0 -9
  208. package/assets/devices/Gates.svg +0 -32
  209. package/assets/devices/Hairdryer.svg +0 -23
  210. package/assets/devices/Handle.svg +0 -6
  211. package/assets/devices/Hanging Lamps.svg +0 -9
  212. package/assets/devices/Heater.svg +0 -44
  213. package/assets/devices/Hoods.svg +0 -12
  214. package/assets/devices/Hot Water.svg +0 -10
  215. package/assets/devices/Humidity.svg +0 -41
  216. package/assets/devices/Iron.svg +0 -5
  217. package/assets/devices/Irrigation.svg +0 -23
  218. package/assets/devices/Led Strip.svg +0 -31
  219. package/assets/devices/Light.svg +0 -30
  220. package/assets/devices/Lightings.svg +0 -46
  221. package/assets/devices/Lock.svg +0 -19
  222. package/assets/devices/Louvre.svg +0 -7
  223. package/assets/devices/Mowing Machine.svg +0 -9
  224. package/assets/devices/Music.svg +0 -13
  225. package/assets/devices/Outdoor Blinds.svg +0 -7
  226. package/assets/devices/People.svg +0 -19
  227. package/assets/devices/Pool.svg +0 -8
  228. package/assets/devices/Power Consumption.svg +0 -13
  229. package/assets/devices/Printer.svg +0 -10
  230. package/assets/devices/Pump.svg +0 -10
  231. package/assets/devices/Receiver.svg +0 -19
  232. package/assets/devices/Sconces.svg +0 -10
  233. package/assets/devices/Security.svg +0 -34
  234. package/assets/devices/Shading.svg +0 -5
  235. package/assets/devices/Shutters.svg +0 -11
  236. package/assets/devices/SmokeDetector.svg +0 -13
  237. package/assets/devices/Sockets.svg +0 -13
  238. package/assets/devices/Speaker.svg +0 -35
  239. package/assets/devices/Stove.svg +0 -12
  240. package/assets/devices/Table Lamps.svg +0 -12
  241. package/assets/devices/Temperature Sensors.svg +0 -28
  242. package/assets/devices/Tv.svg +0 -8
  243. package/assets/devices/Vacuum Cleaner.svg +0 -16
  244. package/assets/devices/Ventilation.svg +0 -12
  245. package/assets/devices/Washing Machines.svg +0 -16
  246. package/assets/devices/Water Consumption.svg +0 -6
  247. package/assets/devices/Water Heater.svg +0 -8
  248. package/assets/devices/Water.svg +0 -40
  249. package/assets/devices/Weather.svg +0 -28
  250. package/assets/devices/Window.svg +0 -8
  251. package/assets/rooms/Anteroom.svg +0 -53
  252. package/assets/rooms/Attic.svg +0 -21
  253. package/assets/rooms/Balcony.svg +0 -13
  254. package/assets/rooms/Barn.svg +0 -6
  255. package/assets/rooms/Basement.svg +0 -5
  256. package/assets/rooms/Bathroom.svg +0 -38
  257. package/assets/rooms/Bedroom.svg +0 -5
  258. package/assets/rooms/Boiler Room.svg +0 -13
  259. package/assets/rooms/Carport.svg +0 -17
  260. package/assets/rooms/Cellar.svg +0 -89
  261. package/assets/rooms/Chamber.svg +0 -9
  262. package/assets/rooms/Corridor.svg +0 -53
  263. package/assets/rooms/Dining Area.svg +0 -37
  264. package/assets/rooms/Dining Room.svg +0 -37
  265. package/assets/rooms/Dining.svg +0 -37
  266. package/assets/rooms/Dressing Room.svg +0 -5
  267. package/assets/rooms/Driveway.svg +0 -15
  268. package/assets/rooms/Entrance.svg +0 -44
  269. package/assets/rooms/Equipment Room.svg +0 -15
  270. package/assets/rooms/Front Yard.svg +0 -64
  271. package/assets/rooms/Gallery.svg +0 -14
  272. package/assets/rooms/Garage.svg +0 -20
  273. package/assets/rooms/Garden.svg +0 -13
  274. package/assets/rooms/Ground Floor.svg +0 -95
  275. package/assets/rooms/Guest Bathroom.svg +0 -33
  276. package/assets/rooms/Guest Room.svg +0 -5
  277. package/assets/rooms/Gym.svg +0 -5
  278. package/assets/rooms/Hall.svg +0 -19
  279. package/assets/rooms/Home Theater.svg +0 -8
  280. package/assets/rooms/Kitchen.svg +0 -18
  281. package/assets/rooms/Laundry Room.svg +0 -12
  282. package/assets/rooms/Living Area.svg +0 -11
  283. package/assets/rooms/Living Room.svg +0 -10
  284. package/assets/rooms/Locker Room.svg +0 -17
  285. package/assets/rooms/Nursery.svg +0 -5
  286. package/assets/rooms/Office.svg +0 -8
  287. package/assets/rooms/Outdoors.svg +0 -7
  288. package/assets/rooms/Playroom.svg +0 -6
  289. package/assets/rooms/Pool.svg +0 -8
  290. package/assets/rooms/Rear Wall.svg +0 -30
  291. package/assets/rooms/Second Floor.svg +0 -95
  292. package/assets/rooms/Shed.svg +0 -16
  293. package/assets/rooms/Sleeping Area.svg +0 -22
  294. package/assets/rooms/Stairway.svg +0 -5
  295. package/assets/rooms/Stairwell.svg +0 -15
  296. package/assets/rooms/Storeroom.svg +0 -5
  297. package/assets/rooms/Summer House.svg +0 -27
  298. package/assets/rooms/Swimming Pool.svg +0 -21
  299. package/assets/rooms/Terrace.svg +0 -7
  300. package/assets/rooms/Toilet.svg +0 -10
  301. package/assets/rooms/Upstairs.svg +0 -6
  302. package/assets/rooms/Wardrobe.svg +0 -60
  303. package/assets/rooms/Washroom.svg +0 -20
  304. package/assets/rooms/Wc.svg +0 -10
  305. package/assets/rooms/Windscreen.svg +0 -60
  306. package/assets/rooms/Workshop.svg +0 -23
  307. package/assets/rooms/Workspace.svg +0 -8
@@ -1,32 +1,10 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
- const react_1 = __importStar(require("react"));
6
+ const react_1 = __importDefault(require("react"));
7
+ const react_2 = require("react");
30
8
  const IconNoIcon_1 = __importDefault(require("../icons/IconNoIcon"));
31
9
  function getElementFromSource(src) {
32
10
  const svgContainer = document.createElement('div');
@@ -61,7 +39,10 @@ function serializeAttrs(map) {
61
39
  }
62
40
  return ret;
63
41
  }
64
- class Image extends react_1.Component {
42
+ /**
43
+ * A component for displaying an image.
44
+ */
45
+ class Image extends react_2.Component {
65
46
  constructor(props) {
66
47
  var _a;
67
48
  super(props);
@@ -108,11 +89,9 @@ class Image extends react_1.Component {
108
89
  const inner = svg.innerHTML;
109
90
  const svgProps = serializeAttrs(svg.attributes);
110
91
  svg.remove();
111
- return react_1.default.createElement("svg", Object.assign({ className: this.props.className, style: this.state.color ? { color: this.state.color } : {} }, svgProps, {
112
- // eslint-disable-next-line react/no-danger
113
- dangerouslySetInnerHTML: { __html: inner } }));
92
+ return (react_1.default.createElement("svg", Object.assign({ className: this.props.className, style: this.state.color ? { color: this.state.color } : {} }, svgProps, { dangerouslySetInnerHTML: { __html: inner } })));
114
93
  }
115
- catch (e) {
94
+ catch (_a) {
116
95
  // ignore
117
96
  }
118
97
  return null;
@@ -131,7 +110,9 @@ class Image extends react_1.Component {
131
110
  if (this.state.imgError || !this.state.src) {
132
111
  return react_1.default.createElement(IconNoIcon_1.default, { className: this.props.className });
133
112
  }
134
- if (Image.REMOTE_SERVER && !this.state.src.startsWith('http://') && !this.state.src.startsWith('https://')) {
113
+ if (Image.REMOTE_SERVER &&
114
+ !this.state.src.startsWith('http://') &&
115
+ !this.state.src.startsWith('https://')) {
135
116
  let src = (this.props.imagePrefix || '') + this.state.src;
136
117
  if (src.startsWith('./')) {
137
118
  src = Image.REMOTE_PREFIX + src.substring(2);
@@ -139,9 +120,9 @@ class Image extends react_1.Component {
139
120
  else if (!src.startsWith('/')) {
140
121
  src = Image.REMOTE_PREFIX + src;
141
122
  }
142
- return react_1.default.createElement("img", { className: this.props.className, src: `https://remote-files.iobroker.in${src}`, alt: "", onError: () => (this.props.showError ? this.setState({ imgError: true }) : this.setState({ src: '' })) });
123
+ return (react_1.default.createElement("img", { className: this.props.className, src: `https://remote-files.iobroker.in${src}`, alt: "", onError: () => this.props.showError ? this.setState({ imgError: true }) : this.setState({ src: '' }) }));
143
124
  }
144
- return react_1.default.createElement("img", { className: this.props.className, src: (this.props.imagePrefix || '') + this.state.src, alt: "", onError: () => (this.props.showError ? this.setState({ imgError: true }) : this.setState({ src: '' })) });
125
+ return (react_1.default.createElement("img", { className: this.props.className, src: (this.props.imagePrefix || '') + this.state.src, alt: "", onError: () => this.props.showError ? this.setState({ imgError: true }) : this.setState({ src: '' }) }));
145
126
  }
146
127
  return null;
147
128
  }
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * MIT License
5
5
  *
6
- * */
6
+ */
7
7
  import React from 'react';
8
- import { ThemeName, ThemeType } from '../types';
8
+ import type { ThemeName, ThemeType } from '../types';
9
9
  declare global {
10
10
  interface Window {
11
11
  loadingBackgroundImage: undefined | string;
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
28
28
  *
29
29
  * MIT License
30
30
  *
31
- * */
31
+ */
32
32
  const react_1 = __importStar(require("react"));
33
33
  const loaderStyles = `
34
34
  /**
@@ -265,23 +265,26 @@ function Loader(props) {
265
265
  }, []);
266
266
  const size = props.size || 234;
267
267
  const theme = props.themeName || props.theme || props.themeType || 'light';
268
- return react_1.default.createElement("div", { className: `logo-back logo-background-${theme}`, style: {
269
- backgroundImage: (props.backgroundImage && props.backgroundImage !== '@@loginBackgroundImage@@') ? props.backgroundImage :
270
- (window.loadingBackgroundImage && window.loadingBackgroundImage !== '@@loginBackgroundImage@@' ? `url(${window.loadingBackgroundImage})` : undefined),
271
- backgroundColor: (props.backgroundColor && props.backgroundColor !== '@@loginBackgroundColor@@') ? props.backgroundColor :
272
- (window.loadingBackgroundColor && window.loadingBackgroundColor !== '@@loginBackgroundColor@@' ? window.loadingBackgroundColor : undefined),
268
+ return (react_1.default.createElement("div", { className: `logo-back logo-background-${theme}`, style: {
269
+ backgroundImage: props.backgroundImage && props.backgroundImage !== '@@loginBackgroundImage@@'
270
+ ? props.backgroundImage
271
+ : window.loadingBackgroundImage && window.loadingBackgroundImage !== '@@loginBackgroundImage@@'
272
+ ? `url(${window.loadingBackgroundImage})`
273
+ : undefined,
274
+ backgroundColor: props.backgroundColor && props.backgroundColor !== '@@loginBackgroundColor@@'
275
+ ? props.backgroundColor
276
+ : window.loadingBackgroundColor && window.loadingBackgroundColor !== '@@loginBackgroundColor@@'
277
+ ? window.loadingBackgroundColor
278
+ : undefined,
273
279
  backgroundSize: 'cover',
274
- } }, window.loadingHideLogo === 'true' ?
275
- null
276
- :
277
- react_1.default.createElement(react_1.default.Fragment, null,
278
- react_1.default.createElement("div", { className: "logo-div", style: { width: size, height: size } },
279
- react_1.default.createElement("div", { className: `logo-top logo-background-${theme}`, style: { left: '37%' } }),
280
- react_1.default.createElement("div", { className: `logo-top logo-background-${theme}`, style: { left: '57%' } }),
281
- react_1.default.createElement("div", { className: `logo-border logo-background-${theme} logo-animate-wait`, style: { borderWidth: size * 0.132 } }),
282
- react_1.default.createElement("div", { className: `logo-i logo-animate-color-inside-${theme}` }),
283
- react_1.default.createElement("div", { className: `logo-i-top logo-animate-color-inside-${theme}`, style: { top: '18%' } }),
284
- react_1.default.createElement("div", { className: `logo-i-top logo-animate-color-inside-${theme}`, style: { bottom: '18%' } })),
285
- react_1.default.createElement("div", { className: `logo-animate-grow logo-animate-grow-${theme}`, style: { width: size + 11, height: size + 11 } })));
280
+ } }, window.loadingHideLogo === 'true' ? null : (react_1.default.createElement(react_1.default.Fragment, null,
281
+ react_1.default.createElement("div", { className: "logo-div", style: { width: size, height: size } },
282
+ react_1.default.createElement("div", { className: `logo-top logo-background-${theme}`, style: { left: '37%' } }),
283
+ react_1.default.createElement("div", { className: `logo-top logo-background-${theme}`, style: { left: '57%' } }),
284
+ react_1.default.createElement("div", { className: `logo-border logo-background-${theme} logo-animate-wait`, style: { borderWidth: size * 0.132 } }),
285
+ react_1.default.createElement("div", { className: `logo-i logo-animate-color-inside-${theme}` }),
286
+ react_1.default.createElement("div", { className: `logo-i-top logo-animate-color-inside-${theme}`, style: { top: '18%' } }),
287
+ react_1.default.createElement("div", { className: `logo-i-top logo-animate-color-inside-${theme}`, style: { bottom: '18%' } })),
288
+ react_1.default.createElement("div", { className: `logo-animate-grow logo-animate-grow-${theme}`, style: { width: size + 11, height: size + 11 } })))));
286
289
  }
287
290
  exports.default = Loader;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ThemeType } from '../../types';
2
+ import type { ThemeType } from '../../types';
3
3
  interface LogoProps {
4
4
  themeType?: ThemeType;
5
5
  size?: number;
@@ -8,5 +8,10 @@ interface LogoProps {
8
8
  /** Background image URL */
9
9
  backgroundImage?: string;
10
10
  }
11
+ /**
12
+ * Vendor specific loader
13
+ *
14
+ * @param props Properties
15
+ */
11
16
  declare function LoaderMV(props: LogoProps): React.JSX.Element;
12
17
  export default LoaderMV;
@@ -4,19 +4,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const react_1 = __importDefault(require("react"));
7
+ /**
8
+ * Vendor specific loader
9
+ *
10
+ * @param props Properties
11
+ */
7
12
  function LoaderMV(props) {
8
13
  const themeType = props.themeType || 'light';
9
14
  const size = props.size || 300;
10
- return react_1.default.createElement("div", { style: {
15
+ return (react_1.default.createElement("div", { style: {
11
16
  width: '100%',
12
17
  height: '100%',
13
18
  position: 'absolute',
14
19
  top: 0,
15
20
  left: 0,
16
- backgroundImage: (props.backgroundImage && props.backgroundImage !== '@@loginBackgroundImage@@') ? props.backgroundImage :
17
- (window.loadingBackgroundImage && window.loadingBackgroundImage !== '@@loginBackgroundImage@@' ? `url(${window.loadingBackgroundImage})` : undefined),
18
- backgroundColor: (props.backgroundColor && props.backgroundColor !== '@@loginBackgroundColor@@') ? props.backgroundColor :
19
- (window.loadingBackgroundColor && window.loadingBackgroundColor !== '@@loginBackgroundColor@@' ? window.loadingBackgroundColor : (themeType === 'dark' ? '#000' : '#FFF')),
21
+ backgroundImage: props.backgroundImage && props.backgroundImage !== '@@loginBackgroundImage@@'
22
+ ? props.backgroundImage
23
+ : window.loadingBackgroundImage && window.loadingBackgroundImage !== '@@loginBackgroundImage@@'
24
+ ? `url(${window.loadingBackgroundImage})`
25
+ : undefined,
26
+ backgroundColor: props.backgroundColor && props.backgroundColor !== '@@loginBackgroundColor@@'
27
+ ? props.backgroundColor
28
+ : window.loadingBackgroundColor && window.loadingBackgroundColor !== '@@loginBackgroundColor@@'
29
+ ? window.loadingBackgroundColor
30
+ : themeType === 'dark'
31
+ ? '#000'
32
+ : '#FFF',
20
33
  backgroundSize: 'cover',
21
34
  } },
22
35
  react_1.default.createElement("div", { style: {
@@ -43,8 +56,11 @@ function LoaderMV(props) {
43
56
  react_1.default.createElement("g", { transform: "rotate(120, 250, 250)" },
44
57
  react_1.default.createElement("line", { y2: "185", x2: "250", y1: "240", x1: "250", strokeWidth: "5", stroke: "#01BBF5", fill: "none" }),
45
58
  react_1.default.createElement("line", { y2: "315", x2: "250", y1: "260", x1: "250", strokeWidth: "5", stroke: "#01BBF5", fill: "none" })),
46
- [0, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165, 180, 195, 210, 225, 240, 255, 270, 285, 300, 315, 330, 345].map(angle => react_1.default.createElement("line", { key: angle, transform: `rotate(${angle}, 250, 250)`, y2: "250", x2: "115", y1: "240", x1: "135", strokeWidth: "5", stroke: "#01BBF5", fill: "none" })),
59
+ [
60
+ 0, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165, 180, 195, 210, 225, 240, 255, 270, 285,
61
+ 300, 315, 330, 345,
62
+ ].map(angle => (react_1.default.createElement("line", { key: angle, transform: `rotate(${angle}, 250, 250)`, y2: "250", x2: "115", y1: "240", x1: "135", strokeWidth: "5", stroke: "#01BBF5", fill: "none" }))),
47
63
  react_1.default.createElement("animateTransform", { attributeType: "xml", attributeName: "transform", type: "rotate", from: "0 250 250", to: "360 250 250", dur: "10s", additive: "sum", repeatCount: "indefinite" })),
48
- react_1.default.createElement("path", { d: "M 56.089 160.250 C 55.077 162.588, 46.037 182.950, 36 205.500 C 25.963 228.050, 16.923 248.412, 15.911 250.750 L 14.071 255 28.286 254.976 L 42.500 254.952 47.931 242.226 C 50.918 235.227, 54.366 227.250, 55.592 224.500 L 57.822 219.500 66.383 237.250 L 74.945 255 88.973 255 C 96.688 255, 103 254.841, 103 254.646 C 103 254.452, 100.043 248.071, 96.430 240.466 L 89.859 226.638 91.603 222.771 C 92.563 220.644, 93.660 218.710, 94.043 218.473 C 94.426 218.237, 108.609 246.609, 125.562 281.522 L 156.384 345 166.071 345 C 175.705 345, 175.763 344.985, 176.856 342.250 C 179.911 334.602, 208 260.765, 208 260.383 C 208 260.138, 202.546 260.065, 195.879 260.219 L 183.759 260.500 174.629 285.244 C 169.608 298.853, 165.254 309.990, 164.952 309.994 C 164.651 309.997, 148.901 277.389, 129.952 237.532 C 111.004 197.674, 95.275 165.057, 95 165.049 C 94.725 165.041, 90.685 172.415, 86.022 181.435 C 81.358 190.455, 77.308 197.689, 77.022 197.510 C 76.735 197.331, 72.675 187.920, 68 176.598 C 63.325 165.275, 59.147 156.008, 58.714 156.005 C 58.282 156.002, 57.101 157.912, 56.089 160.250 M 55.294 168.694 C 52.241 175.842, 52.166 176.323, 53.718 178.692 L 55.349 181.182 56.706 178.591 C 57.453 177.166, 58.406 176, 58.825 176 C 59.244 176, 60.777 178.363, 62.232 181.250 C 64.829 186.403, 64.879 186.440, 64.939 183.250 C 64.973 181.463, 65.422 180, 65.937 180 C 66.724 180, 60.176 162.824, 58.920 161.596 C 58.689 161.370, 57.057 164.564, 55.294 168.694 M 91.698 175.542 C 89.205 180.626, 89.099 181.308, 90.410 183.792 L 91.840 186.500 92.926 183.669 C 94.349 179.961, 96.024 180.653, 98.588 186.009 L 100.676 190.370 101.324 187.132 C 101.832 184.592, 101.217 182.395, 98.473 176.947 C 96.549 173.126, 94.849 170, 94.696 170 C 94.542 170, 93.193 172.494, 91.698 175.542 M 157.005 192.607 C 143.168 197.636, 134.999 209.202, 135.001 223.761 C 135.002 232.756, 138.710 240.755, 145.856 247.180 C 152.159 252.848, 158.121 255, 167.518 255 C 173.509 255, 175.684 254.499, 180.811 251.936 C 200.823 241.936, 205.088 216.155, 189.337 200.403 C 181.479 192.546, 166.868 189.022, 157.005 192.607 M 206 223 L 206 255 215.472 255 L 224.944 255 225.222 241.419 L 225.500 227.837 230.500 234.660 C 233.250 238.412, 238.002 244.636, 241.060 248.491 L 246.620 255.500 253.810 255.168 L 261 254.836 261 222.918 L 261 191 251.528 191 L 242.056 191 241.778 204.552 L 241.500 218.104 231.111 204.552 L 220.722 191 213.361 191 L 206 191 206 223 M 285.821 192.331 C 276.229 195.045, 270.010 202.130, 270.004 210.349 C 269.995 221.957, 275.913 226.925, 295.801 232.006 C 300.753 233.271, 302.228 235.609, 299.412 237.730 C 296.739 239.746, 288.369 238.774, 281.563 235.657 L 276.132 233.171 272.469 239.320 C 268.119 246.621, 268.341 247.287, 276.524 251.500 C 281.399 254.010, 283.761 254.556, 290.977 254.842 C 302.365 255.294, 307.420 253.846, 312.603 248.649 C 317.383 243.855, 319.463 236.989, 318.043 230.693 C 316.210 222.562, 311.258 218.610, 297.878 214.599 C 288.025 211.645, 285.443 209.631, 288.538 207.315 C 291.104 205.394, 302.270 205.946, 306.769 208.217 L 310.039 209.866 313.104 203.794 C 316.516 197.035, 316.622 197.304, 309.167 193.844 C 303.663 191.289, 292.140 190.542, 285.821 192.331 M 322 199 L 322 207 330 207 L 338 207 338 231 L 338 255 347.500 255 L 357 255 357 231.044 L 357 207.088 364.250 206.794 L 371.500 206.500 371.792 198.750 L 372.084 191 347.042 191 L 322 191 322 199 M 379 223 L 379 255 401 255 L 423 255 423 247.500 L 423 240 409.500 240 L 396 240 396 235 L 396 230 407.500 230 L 419 230 419 222 L 419 214 407.500 214 L 396 214 396 210.529 L 396 207.058 409.250 206.779 L 422.500 206.500 422.792 198.750 L 423.084 191 401.042 191 L 379 191 379 223 M 433 223 L 433 255 442 255 L 451 255 451 247 L 451 239 454.800 239 C 458.555 239, 458.645 239.092, 462.469 246.937 L 466.339 254.874 476.172 255.187 C 481.580 255.359, 486.003 255.111, 486.002 254.636 C 486.001 254.160, 483.277 249.264, 479.949 243.754 C 473.914 233.765, 473.903 233.732, 475.836 231.619 C 480.222 226.824, 482.359 220.791, 482.431 213 C 482.512 204.192, 480.272 198.822, 475.031 195.260 C 469.795 191.703, 465.527 191.012, 448.750 191.006 L 433 191 433 223 M 448.210 213.250 L 448.500 221.500 455.338 221.500 C 461.319 221.500, 462.417 221.204, 464.088 219.139 C 465.995 216.785, 466.556 212.613, 465.379 209.545 C 464.356 206.879, 459.449 205, 453.509 205 L 447.919 205 448.210 213.250 M 163.169 209.017 C 156.337 210.583, 151.176 218.533, 152.339 225.701 C 154.672 240.077, 175.040 242.355, 180.446 228.844 C 184.978 217.516, 175.176 206.267, 163.169 209.017 M 216.676 271.715 C 216.037 272.750, 188 344.021, 188 344.612 C 188 344.863, 192.811 344.940, 198.691 344.784 L 209.381 344.500 211.894 336.750 L 214.406 329 226.550 329 L 238.694 329 242.097 336.992 L 245.500 344.983 255.250 344.992 C 262.399 344.998, 264.994 344.667, 264.979 343.750 C 264.968 343.063, 258.477 326.525, 250.555 307 L 236.150 271.500 226.656 271.215 C 221.434 271.058, 216.943 271.283, 216.676 271.715 M 273 307 C 273 326.800, 272.887 343.337, 272.750 343.750 C 272.613 344.163, 277.102 344.628, 282.727 344.785 L 292.954 345.069 293.227 327.379 L 293.500 309.689 307 327.336 L 320.500 344.982 328.262 344.991 L 336.025 345 335.762 308.250 L 335.500 271.500 326.750 271.211 L 318 270.922 317.882 286.711 C 317.816 295.395, 317.816 302.837, 317.882 303.250 C 317.947 303.663, 317.808 304, 317.574 304 C 317.340 304, 310.809 296.575, 303.060 287.500 L 288.971 271 280.985 271 L 273 271 273 307 M 223.254 303.048 L 220.078 312 226.539 312 C 230.093 312, 233 311.861, 233 311.691 C 233 311.257, 226.886 294.553, 226.636 294.302 C 226.522 294.189, 225.001 298.125, 223.254 303.048", stroke: "none", fill: props.themeType === 'dark' ? '#EEE' : '#111', fillRule: "evenodd" }))));
64
+ react_1.default.createElement("path", { d: "M 56.089 160.250 C 55.077 162.588, 46.037 182.950, 36 205.500 C 25.963 228.050, 16.923 248.412, 15.911 250.750 L 14.071 255 28.286 254.976 L 42.500 254.952 47.931 242.226 C 50.918 235.227, 54.366 227.250, 55.592 224.500 L 57.822 219.500 66.383 237.250 L 74.945 255 88.973 255 C 96.688 255, 103 254.841, 103 254.646 C 103 254.452, 100.043 248.071, 96.430 240.466 L 89.859 226.638 91.603 222.771 C 92.563 220.644, 93.660 218.710, 94.043 218.473 C 94.426 218.237, 108.609 246.609, 125.562 281.522 L 156.384 345 166.071 345 C 175.705 345, 175.763 344.985, 176.856 342.250 C 179.911 334.602, 208 260.765, 208 260.383 C 208 260.138, 202.546 260.065, 195.879 260.219 L 183.759 260.500 174.629 285.244 C 169.608 298.853, 165.254 309.990, 164.952 309.994 C 164.651 309.997, 148.901 277.389, 129.952 237.532 C 111.004 197.674, 95.275 165.057, 95 165.049 C 94.725 165.041, 90.685 172.415, 86.022 181.435 C 81.358 190.455, 77.308 197.689, 77.022 197.510 C 76.735 197.331, 72.675 187.920, 68 176.598 C 63.325 165.275, 59.147 156.008, 58.714 156.005 C 58.282 156.002, 57.101 157.912, 56.089 160.250 M 55.294 168.694 C 52.241 175.842, 52.166 176.323, 53.718 178.692 L 55.349 181.182 56.706 178.591 C 57.453 177.166, 58.406 176, 58.825 176 C 59.244 176, 60.777 178.363, 62.232 181.250 C 64.829 186.403, 64.879 186.440, 64.939 183.250 C 64.973 181.463, 65.422 180, 65.937 180 C 66.724 180, 60.176 162.824, 58.920 161.596 C 58.689 161.370, 57.057 164.564, 55.294 168.694 M 91.698 175.542 C 89.205 180.626, 89.099 181.308, 90.410 183.792 L 91.840 186.500 92.926 183.669 C 94.349 179.961, 96.024 180.653, 98.588 186.009 L 100.676 190.370 101.324 187.132 C 101.832 184.592, 101.217 182.395, 98.473 176.947 C 96.549 173.126, 94.849 170, 94.696 170 C 94.542 170, 93.193 172.494, 91.698 175.542 M 157.005 192.607 C 143.168 197.636, 134.999 209.202, 135.001 223.761 C 135.002 232.756, 138.710 240.755, 145.856 247.180 C 152.159 252.848, 158.121 255, 167.518 255 C 173.509 255, 175.684 254.499, 180.811 251.936 C 200.823 241.936, 205.088 216.155, 189.337 200.403 C 181.479 192.546, 166.868 189.022, 157.005 192.607 M 206 223 L 206 255 215.472 255 L 224.944 255 225.222 241.419 L 225.500 227.837 230.500 234.660 C 233.250 238.412, 238.002 244.636, 241.060 248.491 L 246.620 255.500 253.810 255.168 L 261 254.836 261 222.918 L 261 191 251.528 191 L 242.056 191 241.778 204.552 L 241.500 218.104 231.111 204.552 L 220.722 191 213.361 191 L 206 191 206 223 M 285.821 192.331 C 276.229 195.045, 270.010 202.130, 270.004 210.349 C 269.995 221.957, 275.913 226.925, 295.801 232.006 C 300.753 233.271, 302.228 235.609, 299.412 237.730 C 296.739 239.746, 288.369 238.774, 281.563 235.657 L 276.132 233.171 272.469 239.320 C 268.119 246.621, 268.341 247.287, 276.524 251.500 C 281.399 254.010, 283.761 254.556, 290.977 254.842 C 302.365 255.294, 307.420 253.846, 312.603 248.649 C 317.383 243.855, 319.463 236.989, 318.043 230.693 C 316.210 222.562, 311.258 218.610, 297.878 214.599 C 288.025 211.645, 285.443 209.631, 288.538 207.315 C 291.104 205.394, 302.270 205.946, 306.769 208.217 L 310.039 209.866 313.104 203.794 C 316.516 197.035, 316.622 197.304, 309.167 193.844 C 303.663 191.289, 292.140 190.542, 285.821 192.331 M 322 199 L 322 207 330 207 L 338 207 338 231 L 338 255 347.500 255 L 357 255 357 231.044 L 357 207.088 364.250 206.794 L 371.500 206.500 371.792 198.750 L 372.084 191 347.042 191 L 322 191 322 199 M 379 223 L 379 255 401 255 L 423 255 423 247.500 L 423 240 409.500 240 L 396 240 396 235 L 396 230 407.500 230 L 419 230 419 222 L 419 214 407.500 214 L 396 214 396 210.529 L 396 207.058 409.250 206.779 L 422.500 206.500 422.792 198.750 L 423.084 191 401.042 191 L 379 191 379 223 M 433 223 L 433 255 442 255 L 451 255 451 247 L 451 239 454.800 239 C 458.555 239, 458.645 239.092, 462.469 246.937 L 466.339 254.874 476.172 255.187 C 481.580 255.359, 486.003 255.111, 486.002 254.636 C 486.001 254.160, 483.277 249.264, 479.949 243.754 C 473.914 233.765, 473.903 233.732, 475.836 231.619 C 480.222 226.824, 482.359 220.791, 482.431 213 C 482.512 204.192, 480.272 198.822, 475.031 195.260 C 469.795 191.703, 465.527 191.012, 448.750 191.006 L 433 191 433 223 M 448.210 213.250 L 448.500 221.500 455.338 221.500 C 461.319 221.500, 462.417 221.204, 464.088 219.139 C 465.995 216.785, 466.556 212.613, 465.379 209.545 C 464.356 206.879, 459.449 205, 453.509 205 L 447.919 205 448.210 213.250 M 163.169 209.017 C 156.337 210.583, 151.176 218.533, 152.339 225.701 C 154.672 240.077, 175.040 242.355, 180.446 228.844 C 184.978 217.516, 175.176 206.267, 163.169 209.017 M 216.676 271.715 C 216.037 272.750, 188 344.021, 188 344.612 C 188 344.863, 192.811 344.940, 198.691 344.784 L 209.381 344.500 211.894 336.750 L 214.406 329 226.550 329 L 238.694 329 242.097 336.992 L 245.500 344.983 255.250 344.992 C 262.399 344.998, 264.994 344.667, 264.979 343.750 C 264.968 343.063, 258.477 326.525, 250.555 307 L 236.150 271.500 226.656 271.215 C 221.434 271.058, 216.943 271.283, 216.676 271.715 M 273 307 C 273 326.800, 272.887 343.337, 272.750 343.750 C 272.613 344.163, 277.102 344.628, 282.727 344.785 L 292.954 345.069 293.227 327.379 L 293.500 309.689 307 327.336 L 320.500 344.982 328.262 344.991 L 336.025 345 335.762 308.250 L 335.500 271.500 326.750 271.211 L 318 270.922 317.882 286.711 C 317.816 295.395, 317.816 302.837, 317.882 303.250 C 317.947 303.663, 317.808 304, 317.574 304 C 317.340 304, 310.809 296.575, 303.060 287.500 L 288.971 271 280.985 271 L 273 271 273 307 M 223.254 303.048 L 220.078 312 226.539 312 C 230.093 312, 233 311.861, 233 311.691 C 233 311.257, 226.886 294.553, 226.636 294.302 C 226.522 294.189, 225.001 298.125, 223.254 303.048", stroke: "none", fill: props.themeType === 'dark' ? '#EEE' : '#111', fillRule: "evenodd" })))));
49
65
  }
50
66
  exports.default = LoaderMV;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * MIT License
5
5
  *
6
- * */
6
+ */
7
7
  import React from 'react';
8
- import { ThemeType, ThemeName } from '../../types';
8
+ import type { ThemeType, ThemeName } from '../../types';
9
9
  interface LoaderPTProps {
10
10
  /** The size in pixels of this loader. */
11
11
  size?: number;
@@ -18,5 +18,10 @@ interface LoaderPTProps {
18
18
  /** Background image URL */
19
19
  backgroundImage?: string;
20
20
  }
21
+ /**
22
+ * A loader component with the vendor-specific logo
23
+ *
24
+ * @param props Properties of the loader of type LoaderPTProps
25
+ */
21
26
  declare function LoaderPT(props: LoaderPTProps): React.JSX.Element;
22
27
  export default LoaderPT;
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
28
28
  *
29
29
  * MIT License
30
30
  *
31
- * */
31
+ */
32
32
  const react_1 = __importStar(require("react"));
33
33
  // import './PT.css'
34
34
  const ptStyles = `
@@ -135,6 +135,11 @@ const ptStyles = `
135
135
  }
136
136
  }
137
137
  `;
138
+ /**
139
+ * A loader component with the vendor-specific logo
140
+ *
141
+ * @param props Properties of the loader of type LoaderPTProps
142
+ */
138
143
  function LoaderPT(props) {
139
144
  const size = props.size || 200;
140
145
  (0, react_1.useEffect)(() => {
@@ -146,17 +151,25 @@ function LoaderPT(props) {
146
151
  }
147
152
  }, []);
148
153
  const themeName = props.themeType || props.themeName || 'light';
149
- return react_1.default.createElement("div", { className: `pt-logo-back logo-background-${themeName}`, style: {
150
- backgroundImage: (props.backgroundImage && props.backgroundImage !== '@@loginBackgroundImage@@') ? props.backgroundImage :
151
- (window.loadingBackgroundImage && window.loadingBackgroundImage !== '@@loginBackgroundImage@@' ? `url(${window.loadingBackgroundImage})` : undefined),
152
- backgroundColor: (props.backgroundColor && props.backgroundColor !== '@@loginBackgroundColor@@') ? props.backgroundColor :
153
- (window.loadingBackgroundColor && window.loadingBackgroundColor !== '@@loginBackgroundColor@@' ? window.loadingBackgroundColor : (props.themeType === 'dark' ? '#000' : '#FFF')),
154
+ return (react_1.default.createElement("div", { className: `pt-logo-back logo-background-${themeName}`, style: {
155
+ backgroundImage: props.backgroundImage && props.backgroundImage !== '@@loginBackgroundImage@@'
156
+ ? props.backgroundImage
157
+ : window.loadingBackgroundImage && window.loadingBackgroundImage !== '@@loginBackgroundImage@@'
158
+ ? `url(${window.loadingBackgroundImage})`
159
+ : undefined,
160
+ backgroundColor: props.backgroundColor && props.backgroundColor !== '@@loginBackgroundColor@@'
161
+ ? props.backgroundColor
162
+ : window.loadingBackgroundColor && window.loadingBackgroundColor !== '@@loginBackgroundColor@@'
163
+ ? window.loadingBackgroundColor
164
+ : props.themeType === 'dark'
165
+ ? '#000'
166
+ : '#FFF',
154
167
  backgroundSize: 'cover',
155
168
  } },
156
169
  react_1.default.createElement("div", { className: "pt-logo-div", style: { width: size, height: size } },
157
170
  react_1.default.createElement("div", { style: { width: 200, height: 200 } },
158
171
  react_1.default.createElement("div", { className: "pt-loader-blue pt-loader-block" }),
159
172
  react_1.default.createElement("div", { className: "pt-loader-green pt-loader-block" }),
160
- react_1.default.createElement("div", { className: "pt-loader-red pt-loader-block" }))));
173
+ react_1.default.createElement("div", { className: "pt-loader-red pt-loader-block" })))));
161
174
  }
162
175
  exports.default = LoaderPT;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * MIT License
5
5
  *
6
- * */
6
+ */
7
7
  import React from 'react';
8
- import { ThemeType, ThemeName } from '../../types';
8
+ import type { ThemeType, ThemeName } from '../../types';
9
9
  interface LoaderVendorProps {
10
10
  /** The size in pixels of this loader. */
11
11
  size?: number;
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
28
28
  *
29
29
  * MIT License
30
30
  *
31
- * */
31
+ */
32
32
  const react_1 = __importStar(require("react"));
33
33
  const material_1 = require("@mui/material");
34
34
  // import './Vendor.css'
@@ -50,20 +50,28 @@ function LoaderVendor(props) {
50
50
  }
51
51
  }, []);
52
52
  const theme = props.themeType || props.themeName || 'light';
53
- return react_1.default.createElement("div", { className: `vendor-logo-back logo-background-${theme}`, style: {
53
+ return (react_1.default.createElement("div", { className: `vendor-logo-back logo-background-${theme}`, style: {
54
54
  display: 'flex',
55
55
  flexDirection: 'column',
56
56
  height: '100%',
57
57
  width: '10%',
58
58
  margin: 'auto',
59
- backgroundImage: (props.backgroundImage && props.backgroundImage !== '@@loginBackgroundImage@@') ? props.backgroundImage :
60
- (window.loadingBackgroundImage && window.loadingBackgroundImage !== '@@loginBackgroundImage@@' ? `url(${window.loadingBackgroundImage})` : undefined),
61
- backgroundColor: (props.backgroundColor && props.backgroundColor !== '@@loginBackgroundColor@@') ? props.backgroundColor :
62
- (window.loadingBackgroundColor && window.loadingBackgroundColor !== '@@loginBackgroundColor@@' ? window.loadingBackgroundColor : (props.themeType === 'dark' ? '#000' : '#FFF')),
59
+ backgroundImage: props.backgroundImage && props.backgroundImage !== '@@loginBackgroundImage@@'
60
+ ? props.backgroundImage
61
+ : window.loadingBackgroundImage && window.loadingBackgroundImage !== '@@loginBackgroundImage@@'
62
+ ? `url(${window.loadingBackgroundImage})`
63
+ : undefined,
64
+ backgroundColor: props.backgroundColor && props.backgroundColor !== '@@loginBackgroundColor@@'
65
+ ? props.backgroundColor
66
+ : window.loadingBackgroundColor && window.loadingBackgroundColor !== '@@loginBackgroundColor@@'
67
+ ? window.loadingBackgroundColor
68
+ : props.themeType === 'dark'
69
+ ? '#000'
70
+ : '#FFF',
63
71
  backgroundSize: 'cover',
64
72
  } },
65
73
  react_1.default.createElement("div", { style: { flexGrow: 1 } }),
66
74
  react_1.default.createElement(material_1.CircularProgress, { color: "secondary", size: props.size || 200, thickness: 5 }),
67
- react_1.default.createElement("div", { style: { flexGrow: 1 } }));
75
+ react_1.default.createElement("div", { style: { flexGrow: 1 } })));
68
76
  }
69
77
  exports.default = LoaderVendor;
@@ -83,25 +83,23 @@ class Logo extends react_1.default.Component {
83
83
  input.setAttribute('id', 'files');
84
84
  input.setAttribute('opacity', '0');
85
85
  input.addEventListener('change', this.handleFileSelect, false);
86
- (input.click)();
86
+ input.click();
87
87
  }
88
88
  render() {
89
- return react_1.default.createElement("div", { className: this.props.className, style: this.props.style },
90
- this.props.common.icon ?
91
- react_1.default.createElement(Icon_1.default, { src: this.props.common.icon, style: {
92
- padding: 8,
93
- width: 64,
94
- }, alt: "logo" }) : null,
95
- this.props.common.readme ?
96
- react_1.default.createElement(material_1.Fab, { size: "small", color: "primary", "aria-label": "Help", style: {
97
- marginRight: 5,
98
- marginTop: 5,
99
- float: 'right',
100
- }, onClick: () => {
101
- const win = window.open(this.props.common.readme, '_blank');
102
- win === null || win === void 0 ? void 0 : win.focus();
103
- } },
104
- react_1.default.createElement(icons_material_1.Help, null)) : null,
89
+ return (react_1.default.createElement("div", { className: this.props.className, style: this.props.style },
90
+ this.props.common.icon ? (react_1.default.createElement(Icon_1.default, { src: this.props.common.icon, style: {
91
+ padding: 8,
92
+ width: 64,
93
+ }, alt: "logo" })) : null,
94
+ this.props.common.readme ? (react_1.default.createElement(material_1.Fab, { size: "small", color: "primary", "aria-label": "Help", style: {
95
+ marginRight: 5,
96
+ marginTop: 5,
97
+ float: 'right',
98
+ }, onClick: () => {
99
+ const win = window.open(this.props.common.readme, '_blank');
100
+ win === null || win === void 0 ? void 0 : win.focus();
101
+ } },
102
+ react_1.default.createElement(icons_material_1.Help, null))) : null,
105
103
  react_1.default.createElement(material_1.Fab, { size: "small", color: "primary", "aria-label": "Load config", style: {
106
104
  marginRight: 5,
107
105
  marginTop: 5,
@@ -113,7 +111,7 @@ class Logo extends react_1.default.Component {
113
111
  marginTop: 5,
114
112
  float: 'right',
115
113
  }, title: i18n_1.default.t('ra_Save configuration to file'), onClick: () => this.download() },
116
- react_1.default.createElement(icons_material_1.VerticalAlignBottom, null)));
114
+ react_1.default.createElement(icons_material_1.VerticalAlignBottom, null))));
117
115
  }
118
116
  }
119
117
  exports.default = Logo;
@@ -1,7 +1,7 @@
1
1
  declare class MDUtils {
2
2
  static text2link(text: string): string;
3
3
  static openLink(url: string, target?: string): void;
4
- static getTitle(text: string): string | number | true;
4
+ static getTitle(text: string): string;
5
5
  static extractHeader(text: string): {
6
6
  header: Record<string, string | boolean | number>;
7
7
  body: string;
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  *
9
9
  * MIT License
10
10
  *
11
- * */
11
+ */
12
12
  const CopyToClipboard_1 = __importDefault(require("./CopyToClipboard"));
13
13
  class MDUtils {
14
14
  static text2link(text) {
@@ -16,7 +16,11 @@ class MDUtils {
16
16
  if (m) {
17
17
  text = text.replace(m[0], m[0].replace(/\s/, '&nbsp;'));
18
18
  }
19
- return text.replace(/[^a-zA-Zа-яА-Я0-9]/g, '').trim().replace(/\s/g, '').toLowerCase();
19
+ return text
20
+ .replace(/[^a-zA-Zа-яА-Я0-9]/g, '')
21
+ .trim()
22
+ .replace(/\s/g, '')
23
+ .toLowerCase();
20
24
  }
21
25
  static openLink(url, target) {
22
26
  // replace IPv6 Address with [ipv6]:port
@@ -44,7 +48,7 @@ class MDUtils {
44
48
  }
45
49
  return '';
46
50
  }
47
- return header.title;
51
+ return header.title.toString();
48
52
  }
49
53
  static extractHeader(text) {
50
54
  const attrs = {};
@@ -87,7 +91,7 @@ class MDUtils {
87
91
  static removeDocsify(text) {
88
92
  const m = text.match(/{docsify-[^}]*}/g);
89
93
  if (m) {
90
- m.forEach(doc => text = text.replace(doc, ''));
94
+ m.forEach(doc => (text = text.replace(doc, '')));
91
95
  }
92
96
  return text;
93
97
  }