smart-webcomponents-react 13.1.1 → 13.1.26

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 (278) hide show
  1. package/alertwindow/alertwindow.d.ts +10 -0
  2. package/alertwindow/alertwindow.esm.js +23 -1
  3. package/alertwindow/alertwindow.umd.js +23 -1
  4. package/barcode/barcode.d.ts +4 -2
  5. package/datetimepicker/datetimepicker.d.ts +8 -0
  6. package/datetimepicker/datetimepicker.esm.js +55 -0
  7. package/datetimepicker/datetimepicker.umd.js +860 -805
  8. package/dialogwindow/dialogwindow.d.ts +10 -0
  9. package/dialogwindow/dialogwindow.esm.js +23 -1
  10. package/dialogwindow/dialogwindow.umd.js +23 -1
  11. package/dockinglayout/dockinglayout.d.ts +6 -0
  12. package/dockinglayout/dockinglayout.esm.js +15 -0
  13. package/dockinglayout/dockinglayout.umd.js +15 -0
  14. package/grid/grid.d.ts +16 -1
  15. package/grid/grid.esm.js +29 -0
  16. package/grid/grid.umd.js +29 -0
  17. package/index.d.ts +225 -7
  18. package/kanban/kanban.d.ts +26 -1
  19. package/kanban/kanban.esm.js +56 -1
  20. package/kanban/kanban.umd.js +56 -1
  21. package/layout/dockinglayout.d.ts +6 -0
  22. package/multilinewindow/multilinewindow.d.ts +10 -0
  23. package/multilinewindow/multilinewindow.esm.js +23 -1
  24. package/multilinewindow/multilinewindow.umd.js +23 -1
  25. package/package.json +1 -1
  26. package/progresswindow/progresswindow.d.ts +10 -0
  27. package/progresswindow/progresswindow.esm.js +23 -1
  28. package/progresswindow/progresswindow.umd.js +23 -1
  29. package/promptwindow/promptwindow.d.ts +10 -0
  30. package/promptwindow/promptwindow.esm.js +23 -1
  31. package/promptwindow/promptwindow.umd.js +23 -1
  32. package/qrcode/package.json +7 -0
  33. package/qrcode/qrcode.d.ts +141 -0
  34. package/qrcode/qrcode.esm.js +376 -0
  35. package/qrcode/qrcode.umd.js +387 -0
  36. package/source/modules/smart.accordion.js +1 -1
  37. package/source/modules/smart.array.js +1 -1
  38. package/source/modules/smart.barcode.js +2 -2
  39. package/source/modules/smart.breadcrumb.js +1 -1
  40. package/source/modules/smart.button.js +1 -1
  41. package/source/modules/smart.buttongroup.js +1 -1
  42. package/source/modules/smart.calendar.js +2 -2
  43. package/source/modules/smart.card.js +1 -1
  44. package/source/modules/smart.cardview.js +5 -5
  45. package/source/modules/smart.carousel.js +1 -1
  46. package/source/modules/smart.chart.js +2 -2
  47. package/source/modules/smart.checkbox.js +1 -1
  48. package/source/modules/smart.checkinput.js +1 -1
  49. package/source/modules/smart.chip.js +1 -1
  50. package/source/modules/smart.colorinput.js +1 -1
  51. package/source/modules/smart.colorpanel.js +1 -1
  52. package/source/modules/smart.colorpicker.js +1 -1
  53. package/source/modules/smart.combobox.js +1 -1
  54. package/source/modules/smart.common.js +3 -3
  55. package/source/modules/smart.countryinput.js +1 -1
  56. package/source/modules/smart.dateinput.js +3 -3
  57. package/source/modules/smart.daterangeinput.js +3 -3
  58. package/source/modules/smart.datetimepicker.js +3 -3
  59. package/source/modules/smart.dockinglayout.js +4 -4
  60. package/source/modules/smart.dropdownbutton.js +1 -1
  61. package/source/modules/smart.dropdownlist.js +1 -1
  62. package/source/modules/smart.editor.js +3 -3
  63. package/source/modules/smart.element.js +1 -1
  64. package/source/modules/smart.fileupload.js +1 -1
  65. package/source/modules/smart.form.js +1 -1
  66. package/source/modules/smart.formulaparser.js +1 -1
  67. package/source/modules/smart.ganttchart.js +7 -7
  68. package/source/modules/smart.gauge.js +2 -2
  69. package/source/modules/smart.grid.js +16 -16
  70. package/source/modules/smart.gridpanel.js +5 -5
  71. package/source/modules/smart.input.js +1 -1
  72. package/source/modules/smart.kanban.js +6 -6
  73. package/source/modules/smart.layout.js +1 -1
  74. package/source/modules/smart.led.js +1 -1
  75. package/source/modules/smart.listbox.js +1 -1
  76. package/source/modules/smart.listmenu.js +1 -1
  77. package/source/modules/smart.map.js +1 -1
  78. package/source/modules/smart.maskedtextbox.js +1 -1
  79. package/source/modules/smart.menu.js +1 -1
  80. package/source/modules/smart.multicomboinput.js +1 -1
  81. package/source/modules/smart.multiinput.js +1 -1
  82. package/source/modules/smart.multilinetextbox.js +1 -1
  83. package/source/modules/smart.multisplitbutton.js +1 -1
  84. package/source/modules/smart.numberinput.js +1 -1
  85. package/source/modules/smart.numerictextbox.js +1 -1
  86. package/source/modules/smart.pager.js +1 -1
  87. package/source/modules/smart.passwordinput.js +1 -1
  88. package/source/modules/smart.passwordtextbox.js +1 -1
  89. package/source/modules/smart.path.js +1 -1
  90. package/source/modules/smart.phoneinput.js +1 -1
  91. package/source/modules/smart.pivottable.js +6 -6
  92. package/source/modules/smart.progressbar.js +1 -1
  93. package/source/modules/smart.qrcode.js +117 -0
  94. package/source/modules/smart.querybuilder.js +3 -3
  95. package/source/modules/smart.radiobutton.js +1 -1
  96. package/source/modules/smart.rating.js +1 -1
  97. package/source/modules/smart.router.js +2 -2
  98. package/source/modules/smart.scheduler.js +5 -5
  99. package/source/modules/smart.scrollbar.js +1 -1
  100. package/source/modules/smart.slider.js +2 -2
  101. package/source/modules/smart.sortable.js +1 -1
  102. package/source/modules/smart.splitter.js +1 -1
  103. package/source/modules/smart.switchbutton.js +1 -1
  104. package/source/modules/smart.table.js +5 -5
  105. package/source/modules/smart.tabs.js +2 -2
  106. package/source/modules/smart.tank.js +2 -2
  107. package/source/modules/smart.textarea.js +1 -1
  108. package/source/modules/smart.textbox.js +1 -1
  109. package/source/modules/smart.timeinput.js +1 -1
  110. package/source/modules/smart.timepicker.js +1 -1
  111. package/source/modules/smart.toast.js +1 -1
  112. package/source/modules/smart.tooltip.js +1 -1
  113. package/source/modules/smart.tree.js +2 -2
  114. package/source/modules/smart.validator.js +1 -1
  115. package/source/modules/smart.window.js +2 -2
  116. package/source/smart.accordion.js +1 -1
  117. package/source/smart.ajax.js +1 -1
  118. package/source/smart.array.js +1 -1
  119. package/source/smart.barcode.js +2 -2
  120. package/source/smart.bootstrap.js +1 -1
  121. package/source/smart.breadcrumb.js +1 -1
  122. package/source/smart.button.js +1 -1
  123. package/source/smart.buttongroup.js +1 -1
  124. package/source/smart.calendar.js +1 -1
  125. package/source/smart.card.js +1 -1
  126. package/source/smart.cardview.js +1 -1
  127. package/source/smart.carousel.js +1 -1
  128. package/source/smart.chart.annotations.js +1 -1
  129. package/source/smart.chart.api.js +1 -1
  130. package/source/smart.chart.core.js +1 -1
  131. package/source/smart.chart.js +1 -1
  132. package/source/smart.chart.rangeselector.js +1 -1
  133. package/source/smart.chart.waterfall.js +1 -1
  134. package/source/smart.checkbox.js +1 -1
  135. package/source/smart.checkinput.js +1 -1
  136. package/source/smart.chip.js +1 -1
  137. package/source/smart.colorinput.js +1 -1
  138. package/source/smart.colorpanel.js +1 -1
  139. package/source/smart.colorpicker.js +1 -1
  140. package/source/smart.combobox.js +1 -1
  141. package/source/smart.complex.js +1 -1
  142. package/source/smart.core.js +1 -1
  143. package/source/smart.countryinput.js +1 -1
  144. package/source/smart.data.js +2 -2
  145. package/source/smart.date.js +2 -2
  146. package/source/smart.dateformatpanel.js +1 -1
  147. package/source/smart.dateinput.js +2 -2
  148. package/source/smart.daterangeinput.js +1 -1
  149. package/source/smart.datetimepicker.js +2 -2
  150. package/source/smart.dockinglayout.js +2 -2
  151. package/source/smart.draw.js +1 -1
  152. package/source/smart.dropdownbutton.js +1 -1
  153. package/source/smart.dropdownlist.js +1 -1
  154. package/source/smart.editor.js +2 -2
  155. package/source/smart.element.js +1 -1
  156. package/source/smart.elements.js +21 -21
  157. package/source/smart.export.js +1 -1
  158. package/source/smart.fileupload.js +1 -1
  159. package/source/smart.filter.js +1 -1
  160. package/source/smart.filterbuilder.js +1 -1
  161. package/source/smart.filterpanel.js +1 -1
  162. package/source/smart.form.js +1 -1
  163. package/source/smart.format.js +1 -1
  164. package/source/smart.formulaparser.js +1 -1
  165. package/source/smart.ganttchart.js +1 -1
  166. package/source/smart.gauge.js +1 -1
  167. package/source/smart.grid.cell.js +2 -2
  168. package/source/smart.grid.chart.js +1 -1
  169. package/source/smart.grid.column.js +2 -2
  170. package/source/smart.grid.core.js +2 -2
  171. package/source/smart.grid.dialog.js +2 -2
  172. package/source/smart.grid.edit.js +2 -2
  173. package/source/smart.grid.export.js +1 -1
  174. package/source/smart.grid.filter.js +2 -2
  175. package/source/smart.grid.group.js +1 -1
  176. package/source/smart.grid.js +1 -1
  177. package/source/smart.grid.menu.js +1 -1
  178. package/source/smart.grid.pager.js +1 -1
  179. package/source/smart.grid.reorder.js +2 -2
  180. package/source/smart.grid.resize.js +1 -1
  181. package/source/smart.grid.row.js +1 -1
  182. package/source/smart.grid.select.js +2 -2
  183. package/source/smart.grid.sort.js +2 -2
  184. package/source/smart.grid.toolbar.js +1 -1
  185. package/source/smart.grid.tree.js +1 -1
  186. package/source/smart.grid.view.js +2 -2
  187. package/source/smart.gridpanel.js +1 -1
  188. package/source/smart.input.js +1 -1
  189. package/source/smart.kanban.js +2 -2
  190. package/source/smart.layout.js +1 -1
  191. package/source/smart.led.js +1 -1
  192. package/source/smart.listbox.js +1 -1
  193. package/source/smart.listmenu.js +1 -1
  194. package/source/smart.map.js +1 -1
  195. package/source/smart.maskedtextbox.js +1 -1
  196. package/source/smart.math.js +1 -1
  197. package/source/smart.menu.js +1 -1
  198. package/source/smart.multicomboinput.js +1 -1
  199. package/source/smart.multiinput.js +1 -1
  200. package/source/smart.multilinetextbox.js +1 -1
  201. package/source/smart.multisplitbutton.js +1 -1
  202. package/source/smart.numberformatpanel.js +1 -1
  203. package/source/smart.numberinput.js +1 -1
  204. package/source/smart.numeric.js +1 -1
  205. package/source/smart.numerictextbox.js +1 -1
  206. package/source/smart.pager.js +1 -1
  207. package/source/smart.passwordinput.js +1 -1
  208. package/source/smart.passwordtextbox.js +1 -1
  209. package/source/smart.path.js +1 -1
  210. package/source/smart.phoneinput.js +1 -1
  211. package/source/smart.pivottable.js +1 -1
  212. package/source/smart.powerbutton.js +1 -1
  213. package/source/smart.progressbar.js +1 -1
  214. package/source/smart.qrcode.js +6 -0
  215. package/source/smart.radiobutton.js +1 -1
  216. package/source/smart.rating.js +1 -1
  217. package/source/smart.router.js +1 -1
  218. package/source/smart.scheduler.js +1 -1
  219. package/source/smart.scrollbar.js +1 -1
  220. package/source/smart.slider.js +1 -1
  221. package/source/smart.sortable.js +1 -1
  222. package/source/smart.splitter.js +1 -1
  223. package/source/smart.switchbutton.js +1 -1
  224. package/source/smart.table.js +2 -2
  225. package/source/smart.tabs.js +2 -2
  226. package/source/smart.tank.js +1 -1
  227. package/source/smart.textarea.js +1 -1
  228. package/source/smart.textbox.js +1 -1
  229. package/source/smart.tickintervalhandler.js +1 -1
  230. package/source/smart.timeinput.js +1 -1
  231. package/source/smart.timepicker.js +1 -1
  232. package/source/smart.toast.js +1 -1
  233. package/source/smart.tooltip.js +1 -1
  234. package/source/smart.tree.js +2 -2
  235. package/source/smart.validationpanel.js +1 -1
  236. package/source/smart.validator.js +1 -1
  237. package/source/smart.window.js +2 -2
  238. package/source/styles/components/smart.base.css +1 -1
  239. package/source/styles/components/smart.grid.css +1 -1
  240. package/source/styles/components/smart.kanban.css +1 -1
  241. package/source/styles/default/scss/smart.grid.scss +13 -17
  242. package/source/styles/default/scss/smart.kanban.scss +289 -233
  243. package/source/styles/default/scss/smart.qrcode.scss +6 -0
  244. package/source/styles/default/smart.grid.css +15 -16
  245. package/source/styles/default/smart.kanban.css +247 -200
  246. package/source/styles/default/smart.qrcode.css +6 -0
  247. package/source/styles/default/smart.variables.css +2 -2
  248. package/source/styles/smart.default.css +3 -3
  249. package/source/typescript/smart.barcode.d.ts +4 -2
  250. package/source/typescript/smart.datetimepicker.d.ts +10 -0
  251. package/source/typescript/smart.dockinglayout.d.ts +7 -0
  252. package/source/typescript/smart.elements.d.ts +225 -7
  253. package/source/typescript/smart.grid.d.ts +18 -1
  254. package/source/typescript/smart.kanban.d.ts +27 -2
  255. package/source/typescript/smart.qrcode.d.ts +134 -0
  256. package/source/typescript/smart.tree.d.ts +17 -2
  257. package/source/typescript/smart.window.d.ts +10 -0
  258. package/tabs/tabswindow.d.ts +10 -0
  259. package/tabswindow/tabswindow.d.ts +10 -0
  260. package/tabswindow/tabswindow.esm.js +23 -1
  261. package/tabswindow/tabswindow.umd.js +23 -1
  262. package/timepicker/datetimepicker.d.ts +8 -0
  263. package/tree/tree.d.ts +14 -2
  264. package/tree/tree.esm.js +45 -2
  265. package/tree/tree.umd.js +45 -2
  266. package/waitwindow/waitwindow.d.ts +10 -0
  267. package/waitwindow/waitwindow.esm.js +23 -1
  268. package/waitwindow/waitwindow.umd.js +23 -1
  269. package/window/alertwindow.d.ts +10 -0
  270. package/window/dialogwindow.d.ts +10 -0
  271. package/window/multilinewindow.d.ts +10 -0
  272. package/window/progresswindow.d.ts +10 -0
  273. package/window/promptwindow.d.ts +10 -0
  274. package/window/tabswindow.d.ts +10 -0
  275. package/window/waitwindow.d.ts +10 -0
  276. package/window/window.d.ts +10 -0
  277. package/window/window.esm.js +23 -1
  278. package/window/window.umd.js +23 -1
@@ -0,0 +1,387 @@
1
+
2
+ require('../source/modules/smart.qrcode');
3
+
4
+ (function (global, factory) {
5
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
6
+ typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
7
+ (factory((global.qrcode = {}),global.React));
8
+ }(this, (function (exports,React) { 'use strict';
9
+
10
+ React = React && React.hasOwnProperty('default') ? React['default'] : React;
11
+
12
+ /*! *****************************************************************************
13
+ Copyright (c) Microsoft Corporation. All rights reserved.
14
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
15
+ this file except in compliance with the License. You may obtain a copy of the
16
+ License at http://www.apache.org/licenses/LICENSE-2.0
17
+
18
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
20
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
21
+ MERCHANTABLITY OR NON-INFRINGEMENT.
22
+
23
+ See the Apache Version 2.0 License for specific language governing permissions
24
+ and limitations under the License.
25
+ ***************************************************************************** */
26
+
27
+ function __awaiter(thisArg, _arguments, P, generator) {
28
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29
+ return new (P || (P = Promise))(function (resolve, reject) {
30
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
33
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
34
+ });
35
+ }
36
+
37
+ const Smart = window.Smart;
38
+ /**
39
+ QR Codes encode text values in a two-dimensional pattern.
40
+ */
41
+ class QRcode extends React.Component {
42
+ constructor(props) {
43
+ super(props);
44
+ this.componentRef = React.createRef();
45
+ }
46
+ // Gets the id of the React component.
47
+ get id() {
48
+ if (!this._id) {
49
+ this._id = 'QRcode' + Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
50
+ }
51
+ return this._id;
52
+ }
53
+ /** Sets the background color of the QR Code element.
54
+ * Property type: string
55
+ */
56
+ get backgroundColor() {
57
+ return this.nativeElement ? this.nativeElement.backgroundColor : undefined;
58
+ }
59
+ set backgroundColor(value) {
60
+ if (this.nativeElement) {
61
+ this.nativeElement.backgroundColor = value;
62
+ }
63
+ }
64
+ /** Sets whether the QR Code label is visible.
65
+ * Property type: boolean
66
+ */
67
+ get disaplyLabel() {
68
+ return this.nativeElement ? this.nativeElement.disaplyLabel : undefined;
69
+ }
70
+ set disaplyLabel(value) {
71
+ if (this.nativeElement) {
72
+ this.nativeElement.disaplyLabel = value;
73
+ }
74
+ }
75
+ /** Sets an embedded image.
76
+ * Property type: string
77
+ */
78
+ get embedImage() {
79
+ return this.nativeElement ? this.nativeElement.embedImage : undefined;
80
+ }
81
+ set embedImage(value) {
82
+ if (this.nativeElement) {
83
+ this.nativeElement.embedImage = value;
84
+ }
85
+ }
86
+ /** Sets the height of the embedded image.
87
+ * Property type: number
88
+ */
89
+ get imageHeight() {
90
+ return this.nativeElement ? this.nativeElement.imageHeight : undefined;
91
+ }
92
+ set imageHeight(value) {
93
+ if (this.nativeElement) {
94
+ this.nativeElement.imageHeight = value;
95
+ }
96
+ }
97
+ /** Sets the width of the embedded image.
98
+ * Property type: number
99
+ */
100
+ get imageWidth() {
101
+ return this.nativeElement ? this.nativeElement.imageWidth : undefined;
102
+ }
103
+ set imageWidth(value) {
104
+ if (this.nativeElement) {
105
+ this.nativeElement.imageWidth = value;
106
+ }
107
+ }
108
+ /** Sets the color of the QR Code label.
109
+ * Property type: string
110
+ */
111
+ get labelCOlor() {
112
+ return this.nativeElement ? this.nativeElement.labelCOlor : undefined;
113
+ }
114
+ set labelCOlor(value) {
115
+ if (this.nativeElement) {
116
+ this.nativeElement.labelCOlor = value;
117
+ }
118
+ }
119
+ /** Sets the font family of the QR Code label.
120
+ * Property type: string
121
+ */
122
+ get labelFont() {
123
+ return this.nativeElement ? this.nativeElement.labelFont : undefined;
124
+ }
125
+ set labelFont(value) {
126
+ if (this.nativeElement) {
127
+ this.nativeElement.labelFont = value;
128
+ }
129
+ }
130
+ /** Sets the font size of the QR Code label.
131
+ * Property type: number
132
+ */
133
+ get labelFontSize() {
134
+ return this.nativeElement ? this.nativeElement.labelFontSize : undefined;
135
+ }
136
+ set labelFontSize(value) {
137
+ if (this.nativeElement) {
138
+ this.nativeElement.labelFontSize = value;
139
+ }
140
+ }
141
+ /** Sets the bottom margin of the QR Code label.
142
+ * Property type: number
143
+ */
144
+ get labelMarginBottom() {
145
+ return this.nativeElement ? this.nativeElement.labelMarginBottom : undefined;
146
+ }
147
+ set labelMarginBottom(value) {
148
+ if (this.nativeElement) {
149
+ this.nativeElement.labelMarginBottom = value;
150
+ }
151
+ }
152
+ /** Sets the top margin of the QR Code label.
153
+ * Property type: number
154
+ */
155
+ get labelMarginTop() {
156
+ return this.nativeElement ? this.nativeElement.labelMarginTop : undefined;
157
+ }
158
+ set labelMarginTop(value) {
159
+ if (this.nativeElement) {
160
+ this.nativeElement.labelMarginTop = value;
161
+ }
162
+ }
163
+ /** Sets the position of the QR Code label.
164
+ * Property type: QRcodeLabelPosition
165
+ */
166
+ get labelPosition() {
167
+ return this.nativeElement ? this.nativeElement.labelPosition : undefined;
168
+ }
169
+ set labelPosition(value) {
170
+ if (this.nativeElement) {
171
+ this.nativeElement.labelPosition = value;
172
+ }
173
+ }
174
+ /** Sets the color of the QR Code lines.
175
+ * Property type: string
176
+ */
177
+ get lineColor() {
178
+ return this.nativeElement ? this.nativeElement.lineColor : undefined;
179
+ }
180
+ set lineColor(value) {
181
+ if (this.nativeElement) {
182
+ this.nativeElement.lineColor = value;
183
+ }
184
+ }
185
+ /** Sets the width of the QR Code square.
186
+ * Property type: number
187
+ */
188
+ get squareWidth() {
189
+ return this.nativeElement ? this.nativeElement.squareWidth : undefined;
190
+ }
191
+ set squareWidth(value) {
192
+ if (this.nativeElement) {
193
+ this.nativeElement.squareWidth = value;
194
+ }
195
+ }
196
+ /** Sets the rendering mode of the QR Code.
197
+ * Property type: QRcodeRenderAs
198
+ */
199
+ get renderAs() {
200
+ return this.nativeElement ? this.nativeElement.renderAs : undefined;
201
+ }
202
+ set renderAs(value) {
203
+ if (this.nativeElement) {
204
+ this.nativeElement.renderAs = value;
205
+ }
206
+ }
207
+ /** Sets or gets the value of the QR Code.
208
+ * Property type: string
209
+ */
210
+ get value() {
211
+ return this.nativeElement ? this.nativeElement.value : undefined;
212
+ }
213
+ set value(value) {
214
+ if (this.nativeElement) {
215
+ this.nativeElement.value = value;
216
+ }
217
+ }
218
+ // Gets the properties of the React component.
219
+ get properties() {
220
+ return ["backgroundColor", "disaplyLabel", "embedImage", "imageHeight", "imageWidth", "labelCOlor", "labelFont", "labelFontSize", "labelMarginBottom", "labelMarginTop", "labelPosition", "lineColor", "squareWidth", "renderAs", "value"];
221
+ }
222
+ // Gets the events of the React component.
223
+ get eventListeners() {
224
+ return ["onInvalid", "onCreate", "onReady"];
225
+ }
226
+ /** Exports the QR Code.
227
+ * @param {string} format. The format of the exported file - svg, png, jpg
228
+ * @param {string} fileName?. The name of the exported file
229
+ */
230
+ export(format, fileName) {
231
+ if (this.nativeElement.isRendered) {
232
+ this.nativeElement.export(format, fileName);
233
+ }
234
+ else {
235
+ this.nativeElement.whenRendered(() => {
236
+ this.nativeElement.export(format, fileName);
237
+ });
238
+ }
239
+ }
240
+ /** Gets the base64 string of the QR Code
241
+ * @param {string} format. The dataURL format of the string - svg, png, jpg
242
+ * @returns {string}
243
+ */
244
+ getDataURL(format) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ const getResultOnRender = () => {
247
+ return new Promise(resolve => {
248
+ this.nativeElement.whenRendered(() => {
249
+ const result = this.nativeElement.getDataURL(format);
250
+ resolve(result);
251
+ });
252
+ });
253
+ };
254
+ const result = yield getResultOnRender();
255
+ return result;
256
+ });
257
+ }
258
+ /** Gets the base64 string of the QR Code
259
+ * @param {string} format. The dataURL format of the string - svg, png, jpg
260
+ * @returns {any}
261
+ */
262
+ getDataURLAsync(format) {
263
+ return __awaiter(this, void 0, void 0, function* () {
264
+ const getResultOnRender = () => {
265
+ return new Promise(resolve => {
266
+ this.nativeElement.whenRendered(() => {
267
+ const result = this.nativeElement.getDataURLAsync(format);
268
+ resolve(result);
269
+ });
270
+ });
271
+ };
272
+ const result = yield getResultOnRender();
273
+ return result;
274
+ });
275
+ }
276
+ /** Gets the validity of the QR Code
277
+ * @returns {boolean}
278
+ */
279
+ isValid() {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ const getResultOnRender = () => {
282
+ return new Promise(resolve => {
283
+ this.nativeElement.whenRendered(() => {
284
+ const result = this.nativeElement.isValid();
285
+ resolve(result);
286
+ });
287
+ });
288
+ };
289
+ const result = yield getResultOnRender();
290
+ return result;
291
+ });
292
+ }
293
+ componentDidRender(initialize) {
294
+ const that = this;
295
+ const props = {};
296
+ const events = {};
297
+ let styles = null;
298
+ for (let prop in that.props) {
299
+ if (prop === 'children') {
300
+ continue;
301
+ }
302
+ if (prop === 'style') {
303
+ styles = that.props[prop];
304
+ continue;
305
+ }
306
+ if (prop.startsWith('on') && that.properties.indexOf(prop) === -1) {
307
+ events[prop] = that.props[prop];
308
+ continue;
309
+ }
310
+ props[prop] = that.props[prop];
311
+ }
312
+ if (initialize) {
313
+ that.nativeElement = this.componentRef.current;
314
+ }
315
+ for (let prop in props) {
316
+ if (prop === 'class') {
317
+ const classNames = props[prop].trim().split(' ');
318
+ for (let className in classNames) {
319
+ if (!that.nativeElement.classList.contains(classNames[className]) && classNames[className] !== "") {
320
+ that.nativeElement.classList.add(classNames[className]);
321
+ }
322
+ }
323
+ continue;
324
+ }
325
+ if (props[prop] !== that.nativeElement[prop]) {
326
+ const normalizeProp = (str) => {
327
+ return str.replace(/-([a-z])/g, function (g) {
328
+ return g[1].toUpperCase();
329
+ });
330
+ };
331
+ if (prop === 'hover' || prop === 'active' || prop === 'focus' || prop === 'selected') {
332
+ that.nativeElement.setAttribute(prop, '');
333
+ }
334
+ const normalizedProp = normalizeProp(prop);
335
+ that.nativeElement[normalizedProp] = props[prop];
336
+ }
337
+ }
338
+ for (let eventName in events) {
339
+ that[eventName] = events[eventName];
340
+ that.nativeElement[eventName.toLowerCase()] = events[eventName];
341
+ }
342
+ if (initialize) {
343
+ if (that.onCreate) {
344
+ that.onCreate();
345
+ }
346
+ that.nativeElement.whenRendered(() => {
347
+ if (that.onReady) {
348
+ that.onReady();
349
+ }
350
+ });
351
+ }
352
+ // setup styles.
353
+ if (styles) {
354
+ for (let styleName in styles) {
355
+ that.nativeElement.style[styleName] = styles[styleName];
356
+ }
357
+ }
358
+ }
359
+ componentDidMount() {
360
+ this.componentDidRender(true);
361
+ }
362
+ componentDidUpdate() {
363
+ this.componentDidRender(false);
364
+ }
365
+ componentWillUnmount() {
366
+ const that = this;
367
+ if (!that.nativeElement) {
368
+ return;
369
+ }
370
+ that.nativeElement.whenRenderedCallbacks = [];
371
+ for (let i = 0; i < that.eventListeners.length; i++) {
372
+ const eventName = that.eventListeners[i];
373
+ that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
374
+ }
375
+ }
376
+ render() {
377
+ return (React.createElement("smart-qrcode", { ref: this.componentRef }, this.props.children));
378
+ }
379
+ }
380
+
381
+ exports.Smart = Smart;
382
+ exports.QRcode = QRcode;
383
+ exports.default = QRcode;
384
+
385
+ Object.defineProperty(exports, '__esModule', { value: true });
386
+
387
+ })));
@@ -106,7 +106,7 @@ var __webpack_exports__ = {};
106
106
  /* harmony import */ var _smart_accordion_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1471);
107
107
  /* harmony import */ var _smart_accordion_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_smart_accordion_js__WEBPACK_IMPORTED_MODULE_3__);
108
108
 
109
- /* Smart UI v13.1.1 (2022-03-23)
109
+ /* Smart UI v13.1.26 (2022-04-05)
110
110
  Copyright (c) 2011-2021 jQWidgets.
111
111
  License: https://htmlelements.com/license/ */ //
112
112
 
@@ -187,7 +187,7 @@ var __webpack_exports__ = {};
187
187
  /* harmony import */ var _smart_array_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2973);
188
188
  /* harmony import */ var _smart_array_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_smart_array_js__WEBPACK_IMPORTED_MODULE_12__);
189
189
 
190
- /* Smart UI v13.1.1 (2022-03-23)
190
+ /* Smart UI v13.1.26 (2022-04-05)
191
191
  Copyright (c) 2011-2021 jQWidgets.
192
192
  License: https://htmlelements.com/license/ */ //
193
193
 
@@ -10,7 +10,7 @@ License: https://htmlelements.com/license/ */
10
10
  /***/ 2895:
11
11
  /***/ (() => {
12
12
 
13
- Smart("smart-barcode",class extends Smart.ContentElement{static get properties(){return{value:{type:"string",value:""},type:{value:"codabar",type:"string",allowedValues:["pharmacode","codabar","code128a","code128b","code128c","msi","msi10","msi11","msi1010","msi1110","ean13","ean8","code39","code93"]},backgroundColor:{value:"white",type:"string"},lineWidth:{value:4,type:"number"},lineHeight:{value:50,type:"number"},lineColor:{value:"black",type:"string"},displayLabel:{value:!0,type:"boolean"},labelPosition:{value:"bottom",type:"string",allowedValues:["top","bottom"]},labelFontSize:{value:14,type:"number"},labelMarginTop:{value:5,type:"number"},labelMarginBottom:{value:5,type:"number"},labelColor:{value:"black",type:"string"},labelFont:{value:"monospace",type:"string"},renderAs:{value:"svg",type:"string",allowedValues:["svg","canvas"]}}}static get styleUrls(){return[]}template(){return'<div class="smart-barcode-container"></div>'}refresh(){this._generateCode(this.renderAs)}static get listeners(){return{}}_generateCode(e,t=!1){const a=this,l=this._getEncoded(a.type,a.value),r=l.length*a.lineWidth,s=a.lineHeight+a.displayLabel*(a.labelMarginTop+a.labelMarginBottom+a.labelFontSize);let n,o=0,i=0;if(a.isValid(),"svg"===e)n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.setAttribute("width",r),n.setAttribute("height",s),n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:svg","http://www.w3.org/2000/svg"),n.style.backgroundColor=a.backgroundColor;else if("canvas"===e){n=document.createElement("canvas"),n.setAttribute("width",r),n.setAttribute("height",s);let e=n.getContext("2d");e.fillStyle=a.backgroundColor,e.fillRect(0,0,r,s)}t&&(n.style.display="none"),n.classList.add("smart-barcode"),a.firstChild.appendChild(n),a.displayLabel&&"top"===a.labelPosition&&(i+=a.labelMarginTop+a.labelFontSize,"svg"===e?a._drawTextSVG(r/2,i,n):a._drawTextCanvas(r/2,i,n),i+=a.labelMarginBottom);for(let t of l)"1"===t?"svg"===e?a._drawStepSVG(a.lineColor,1,o,i,n):a._drawStepCanvas(a.lineColor,1,o,i,n):"svg"===e?a._drawStepSVG("white",0,o,i,n):a._drawStepCanvas("white",0,o,i,n),o+=a.lineWidth;a.displayLabel&&"bottom"===a.labelPosition&&(i+=a.lineHeight+a.labelMarginTop+a.labelFontSize,"svg"===e?a._drawTextSVG(r/2,i,n):a._drawTextCanvas(r/2,i,n)),2===a.firstChild.children.length&&"none"!==a.firstChild.children[1].style.display&&a.firstChild.removeChild(a.firstChild.firstChild)}_getEncoded(e,t){const a=this;let l;switch(e){case"pharmacode":l=a._getEncodedPharmacode(t);break;case"codabar":l=a._getEncodedCodabar(t);break;case"code128a":l=a._getEncodedCode128(t,"A");break;case"code128b":l=a._getEncodedCode128(t,"B");break;case"code128c":l=a._getEncodedCode128(a.value,"C");break;case"msi":l=a._getEncodedMSI(a.value,"");break;case"msi10":l=a._getEncodedMSI(a.value,"10");break;case"msi11":l=a._getEncodedMSI(a.value,"11");break;case"msi1010":case"msi1110":l=a._getEncodedMSI(a.value,"1010");break;case"ean13":l=a._getEncodedEAN(a.value,"13");break;case"ean8":l=a._getEncodedEAN(a.value,"8");break;case"code39":l=a._getEncodedCode39(a.value);break;case"code93":l=a._getEncodedCode93(a.value)}return l}isValid(){const e=this.type,t=this.value;let a,l=!0,r=!0,s=[];switch(e){case"pharmacode":a=/[^\d]/gm,r=t.length>=1&&t.length<=6,l=+t>=3&&+t<=131070;break;case"codabar":a=/[^ABCD\d\$-]/gm,l=/^[A-D]\d+[A-D]$/gm.test(t);break;case"code128a":a=/[^\x20-\x5F]/gm;break;case"code128b":a=/[^\x20-\x7F]/gm;break;case"code128c":a=/[^\d]/gm;break;case"msi":case"msi10":case"msi11":case"msi1010":case"msi1110":a=/[^\d]/gm;break;case"ean13":a=/[^\d]/gm,r=13===t.length||12===t.length;break;case"ean8":a=/[^\d]/gm,r=7===t.length||8===t.length;break;case"code39":a=/[^\w\*.]/gm,l=/^\*\*$/gm.test(t);break;case"code93":a=/[^\w\*.\-\* \$+\/%]/gm,l=/^\*\*$/gm.test(t)}return s=t.match(a),!(!l||s||!r)||(this.context.$.fireEvent("invalid",{value:t,invalidCharacters:s,patternValidity:l,lengthValidity:r}),!1)}_drawTextSVG(e,t,a){const l=this;let r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("x",e),r.setAttribute("y",t),r.setAttribute("text-anchor","middle"),r.classList.add("smart-barcode-label"),r.style.fill=l.labelColor,r.style.fontFamily=l.labelFont,r.style.fontSize=l.labelFontSize+"px",r.textContent=l.value,a.appendChild(r)}_drawTextCanvas(e,t,a){const l=this;let r=a.getContext("2d");r.font=`${l.labelFontSize}px ${l.labelFont}`,r.fillStyle=l.labelColor,r.textAlign="center",r.fillText(l.value,e,t)}_drawStepSVG(e,t,a,l,r){let s=document.createElementNS("http://www.w3.org/2000/svg","rect");s.setAttribute("x",a),s.setAttribute("y",l),s.setAttribute("width",this.lineWidth),s.setAttribute("height",this.lineHeight),s.setAttribute("fill-opacity",t),s.style.fill=e,r.appendChild(s)}_drawStepCanvas(e,t,a,l,r){let s=r.getContext("2d");s.beginPath(),s.globalAlpha=t,s.strokeStyle=e,s.fillStyle=e,s.rect(a,l,this.lineWidth,this.lineHeight),s.fill()}_getEncodedPharmacode(e){let t="";for(;0!==e;)e%2==0?(t="11100"+t,e=(e-2)/2):(t="100"+t,e=(e-1)/2);return t=t.slice(0,-2),t}_getEncodedCodabar(e){let t="";const a={0:1010100110,1:1010110010,2:1010010110,3:1100101010,4:1011010010,5:1101010010,6:1001010110,7:1001011010,8:1001101010,9:1101001010,"-":1010011010,$:1011001010,":":11010110110,"/":11011010110,".":11011011010,"+":10110110110,A:10110010010,B:10010010110,C:10100100110,D:10100110010};for(let l of e)t+=a[l];return t=t.slice(0,-1),t}_getEncodedCode39(e){let t="";const a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],l=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];for(let r of e)t+=l[a.indexOf(r)].toString(2)+"0";return t=t.slice(0,-1),t}_getEncodedCode93(e){let t="";const a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],l=[100010100,101001e3,101000100,101000010,100101e3,100100100,100100010,10101e4,100010010,100001010,110101e3,110100100,110100010,110010100,110010010,110001010,101101e3,101100100,101100010,100110100,100011010,101011e3,101001100,101000110,100101100,100010110,110110100,110110010,110101100,110100110,110010110,110011010,101101100,101100110,100110110,100111010,100101110,111010100,111010010,111001010,111010110,100110010,111011010,101011110];for(let r of e)t+=l[a.indexOf(r)]+"0";return t=t.slice(0,-1),t}_getEncodedMSI(e,t){let a="";const l={0:100100100100,1:100100100110,2:100100110100,3:100100110110,4:100110100100,5:100110100110,6:100110110100,7:100110110110,8:110100100100,9:110100100110};a+="110","10"===t?e+=this._getMSIMod10(e):"11"===t?e+=this._getMSIMod11(e):"1010"===t?(e+=this._getMSIMod10(e),e+=this._getMSIMod10(e)):"1110"===t&&(e+=this._getMSIMod11(e),e+=this._getMSIMod10(e));for(let t of e)a+=l[t];return a+="1001",a}_getEncodedEAN(e,t){let a="";const l=[["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"]],r=["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"];if(12===e.length||7===e.length){let t,a,l=0,r=0;a=7===e.length?5:12;for(let t=0;t<a;t+=2)l+=parseInt(e[t]),r+=parseInt(e[t+1]);t=(3*r+l)%10,t>0&&(t=10-t),e+=t}if("13"===t){a+="101";let t=r[e[0]];for(let r=1;r<7;r++)a+=l[t[r-1]][e[r]];a+="01010";for(let t=0;t<6;t++)a+=l[2][e[t+7]];a+="101"}else if("8"===t){a+="101";for(let t=0;t<4;t++)a+=l[0][e[t]];a+="01010";for(let t=0;t<4;t++)a+=l[2][e[t+4]];a+="101"}return a}_getMSIMod10(e){let t=0;for(var a=0;a<e.length;a++){var l=parseInt(e[a]);(a+e.length)%2==0?t+=l:t+=2*l%10+Math.floor(2*l/10)}return(10-t%10)%10}_getMSIMod11(e){let t=0;for(var a=[2,3,4,5,6,7],l=0;l<e.length;l++){var r=parseInt(e[e.length-1-l]);t+=a[l%a.length]*r}return(11-t%11)%11}_getEncodedCode128(e,t){let a,l="",r=[],s=0;const n=[[" "," ","00","11011001100"],["!","!","01","11001101100"],["'","'","02","11001100110"],["#","#","03","10010011000"],["$","$","04","10010001100"],["%","%","05","10001001100"],["&","&","06","10011001000"],["'","'","07","10011000100"],["(","(","08","10001100100"],[")",")","09","11001001000"],["*","*","10","11001000100"],["+","+","11","11000100100"],[",",",","12","10110011100"],["-","-","13","10011011100"],[".",".","14","10011001110"],["/","/","15","10111001100"],["0","0","16","10011101100"],["1","1","17","10011100110"],["2","2","18","11001110010"],["3","3","19","11001011100"],["4","4","20","11001001110"],["5","5","21","11011100100"],["6","6","22","11001110100"],["7","7","23","11101101110"],["8","8","24","11101001100"],["9","9","25","11100101100"],[":",":","26","11100100110"],[";",";","27","11101100100"],["<","<","28","11100110100"],["=","=","29","11100110010"],[">",">","30","11011011000"],["?","?","31","11011000110"],["@","@","32","11000110110"],["A","A","33","10100011000"],["B","B","34","10001011000"],["C","C","35","10001000110"],["D","D","36","10110001000"],["E","E","37","10001101000"],["F","F","38","10001100010"],["G","G","39","11010001000"],["H","H","40","11000101000"],["I","I","41","11000100010"],["J","J","42","10110111000"],["K","K","43","10110001110"],["L","L","44","10001101110"],["M","M","45","10111011000"],["N","N","46","10111000110"],["O","O","47","10001110110"],["P","P","48","11101110110"],["Q","Q","49","11010001110"],["R","R","50","11000101110"],["S","S","51","11011101000"],["T","T","52","11011100010"],["U","U","53","11011101110"],["V","V","54","11101011000"],["W","W","55","11101000110"],["X","X","56","11100010110"],["Y","Y","57","11101101000"],["Z","Z","58","11101100010"],["[","[","59","11100011010"],["\\","\\","60","11101111010"],["]","]","61","11001000010"],["^","^","62","11110001010"],["_","_","63","10100110000"],["NUL","`","64","10100001100"],["SOH","a","65","10010110000"],["STX","b","66","10010000110"],["ETX","c","67","10000101100"],["EOT","d","68","10000100110"],["ENQ","e","69","10110010000"],["ACK","f","70","10110000100"],["BEL","g","71","10011010000"],["BS","h","72","10011000010"],["HT","i","73","10000110100"],["LF","j","74","10000110010"],["VT","k","75","11000010010"],["FF","l","76","11001010000"],["CR","m","77","11110111010"],["SO","n","78","11000010100"],["SI","o","79","10001111010"],["DLE","p","80","10100111100"],["DC1","q","81","10010111100"],["DC2","r","82","10010011110"],["DC3","s","83","10111100100"],["DC4","t","84","10011110100"],["NAK","u","85","10011110010"],["SYN","v","86","11110100100"],["ETB","w","87","11110010100"],["CAN","x","88","11110010010"],["EM","y","89","11011011110"],["SUB","z","90","11011110110"],["ESC","[","91","11110110110"],["FS","|","92","10101111000"],["GS","]","93","10100011110"],["RS","~","94","10001011110"],["US","DEL","95","10111101000"],["FNC3","FNC3","96","10111100010"],["FNC2","FNC2","97","11110101000"],["SHIFT","SHIFT","98","11110100010"],["CODEC","CODEC","99","10111011110"],["CODEB","FNC4","CODEB","10111101110"],["FNC4","CODEA","CODEA","11101011110"],["FNC1","FNC1","FNC1","11110101110"],["StartA","StartA","StartA","11010000100"],["StartB","StartB","StartB","11010010000"],["StartC","StartC","StartC","11010011100"],["Stop","Stop","Stop","1100011101011"]];if("A"===t){a=103;for(const[t,a]of e.split("").entries()){let e=n.find((e=>e[0]===a));e&&(r.push(e),s+=t*e.length)}}else if("B"===t){a=104;for(const[t,a]of e.split("").entries()){let e=n.find((e=>e[1]===a));e&&(r.push(e),s+=t*e.length)}}else if("C"===t){a=105;for(let t=0;t<e.length-1;t+=2){let a=e.substring(t,2),l=n.find((e=>e[2]===a));l&&(r.push(l),s+=a*l.length)}}return s+=a,r.push(n[s%103]),r.unshift(n[a]),r.push(n[106]),r.forEach((e=>l+=e[3])),l}getDataURL(e){const t=this;if("svg"===e){"svg"!==t.renderAs&&t._generateCode("svg",!0);let e=t.querySelector("svg"),a=(new XMLSerializer).serializeToString(e),l=new Blob([a],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(l)}if("png"===e||"jpg"===e){let a="png"===e?"png":"jpeg";return"canvas"!==t.renderAs&&t._generateCode("canvas",!0),t.querySelector("canvas").toDataURL(`image/${a}`)}}getDataURLAsync(e){const t=this;return new Promise(((a,l)=>{let r=t.getDataURL(e);r?a(r):l()}))}export(e="png",t="barcode"){this.getDataURLAsync(e).then((a=>{let l=document.createElement("a");l.setAttribute("download",`${t}.${e}`),l.setAttribute("href",a),l.setAttribute("target","_blank"),l.click()}))}propertyChangedHandler(e,t,a){super.propertyChangedHandler(e,t,a),this.refresh()}ready(){this._generateCode(this.renderAs),super.ready()}});
13
+ Smart("smart-barcode",class extends Smart.ContentElement{static get properties(){return{value:{type:"string",value:""},type:{value:"codabar",type:"string",allowedValues:["pharmacode","codabar","code128a","code128b","code128c","msi","msi10","msi11","msi1010","msi1110","ean13","ean8","code39","code93"]},backgroundColor:{value:"white",type:"string"},lineWidth:{value:4,type:"number"},lineHeight:{value:50,type:"number"},lineColor:{value:"black",type:"string"},displayLabel:{value:!0,type:"boolean"},labelPosition:{value:"bottom",type:"string",allowedValues:["top","bottom"]},labelFontSize:{value:14,type:"number"},labelMarginTop:{value:5,type:"number"},labelMarginBottom:{value:5,type:"number"},labelColor:{value:"black",type:"string"},labelFont:{value:"monospace",type:"string"},renderAs:{value:"svg",type:"string",allowedValues:["svg","canvas"]}}}static get styleUrls(){return[]}template(){return'<div class="smart-barcode-container"></div>'}refresh(){this._generateCode(this.renderAs)}static get listeners(){return{}}_generateCode(e,t=!1){const a=this,l=this._getEncoded(a.type,a.value),r=l.length*a.lineWidth,s=a.lineHeight+a.displayLabel*(a.labelMarginTop+a.labelMarginBottom+a.labelFontSize);let n,i=0,o=0;if(a.isValid(),"svg"===e)n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.setAttribute("width",r),n.setAttribute("height",s),n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:svg","http://www.w3.org/2000/svg"),n.style.backgroundColor=a.backgroundColor;else if("canvas"===e){n=document.createElement("canvas"),n.setAttribute("width",r),n.setAttribute("height",s);let e=n.getContext("2d");e.fillStyle=a.backgroundColor,e.fillRect(0,0,r,s)}t&&(n.style.display="none"),n.classList.add("smart-barcode"),a.firstChild.appendChild(n),a.displayLabel&&"top"===a.labelPosition&&(o+=a.labelMarginTop+a.labelFontSize,"svg"===e?a._drawTextSVG(r/2,o,n):a._drawTextCanvas(r/2,o,n),o+=a.labelMarginBottom);for(let t of l)"1"===t?"svg"===e?a._drawStepSVG(a.lineColor,1,i,o,n):a._drawStepCanvas(a.lineColor,1,i,o,n):"svg"===e?a._drawStepSVG("white",0,i,o,n):a._drawStepCanvas("white",0,i,o,n),i+=a.lineWidth;a.displayLabel&&"bottom"===a.labelPosition&&(o+=a.lineHeight+a.labelMarginTop+a.labelFontSize,"svg"===e?a._drawTextSVG(r/2,o,n):a._drawTextCanvas(r/2,o,n)),2===a.firstChild.children.length&&"none"!==a.firstChild.children[1].style.display&&a.firstChild.removeChild(a.firstChild.firstChild)}_getEncoded(e,t){const a=this;let l;switch(e){case"pharmacode":l=a._getEncodedPharmacode(t);break;case"codabar":l=a._getEncodedCodabar(t);break;case"code128a":l=a._getEncodedCode128(t,"A");break;case"code128b":l=a._getEncodedCode128(t,"B");break;case"code128c":l=a._getEncodedCode128(a.value,"C");break;case"msi":l=a._getEncodedMSI(a.value,"");break;case"msi10":l=a._getEncodedMSI(a.value,"10");break;case"msi11":l=a._getEncodedMSI(a.value,"11");break;case"msi1010":case"msi1110":l=a._getEncodedMSI(a.value,"1010");break;case"ean13":l=a._getEncodedEAN(a.value,"13");break;case"ean8":l=a._getEncodedEAN(a.value,"8");break;case"code39":l=a._getEncodedCode39(a.value);break;case"code93":l=a._getEncodedCode93(a.value)}return l}isValid(e=!1){const t=this.type,a=this.value;let l=/[^@!(一-龠)(ぁ-ゔ)(ァ-ヴー)\d0-9A-Z \$\%\*\+\-\.\/\:\=\?\^\{\|\}\~]/gm,r=!0,s=!0,n=[];if(!e)switch(t){case"pharmacode":l=/[^\d]/gm,s=a.length>=1&&a.length<=6,r=+a>=3&&+a<=131070;break;case"codabar":l=/[^ABCD\d\$-]/gm,r=/^[A-D]\d+[A-D]$/gm.test(a);break;case"code128a":l=/[^\x20-\x5F]/gm;break;case"code128b":l=/[^\x20-\x7F]/gm;break;case"code128c":l=/[^\d]/gm;break;case"msi":case"msi10":case"msi11":case"msi1010":case"msi1110":l=/[^\d]/gm;break;case"ean13":l=/[^\d]/gm,s=13===a.length||12===a.length;break;case"ean8":l=/[^\d]/gm,s=7===a.length||8===a.length;break;case"code39":l=/[^\w\*.]/gm,r=/^\*\*$/gm.test(a);break;case"code93":l=/[^\w\*.\-\* \$+\/%]/gm,r=/^\*\*$/gm.test(a)}return n=a.match(l),!(!r||n||!s)||(this.context.$.fireEvent("invalid",{value:a,invalidCharacters:n,patternValidity:r,lengthValidity:s}),!1)}_drawTextSVG(e,t,a){const l=this;let r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("x",e),r.setAttribute("y",t),r.setAttribute("text-anchor","middle"),r.classList.add("smart-barcode-label"),r.style.fill=l.labelColor,r.style.fontFamily=l.labelFont,r.style.fontSize=l.labelFontSize+"px",r.textContent=l.value,a.appendChild(r)}_drawTextCanvas(e,t,a){const l=this;let r=a.getContext("2d");r.font=`${l.labelFontSize}px ${l.labelFont}`,r.fillStyle=l.labelColor,r.textAlign="center",r.fillText(l.value,e,t)}_drawStepSVG(e,t,a,l,r){const s=this;s.squareWidth&&(s.lineWidth=s.squareWidth,s.lineHeight=s.squareWidth);let n=document.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("x",a),n.setAttribute("y",l),n.setAttribute("width",s.lineWidth),n.setAttribute("height",s.lineHeight),n.setAttribute("fill-opacity",t),n.style.fill=e,r.appendChild(n)}_drawStepCanvas(e,t,a,l,r){const s=this;s.squareWidth&&(s.lineWidth=s.squareWidth,s.lineHeight=s.squareWidth);let n=r.getContext("2d");n.beginPath(),n.globalAlpha=t,n.strokeStyle=e,n.fillStyle=e,n.rect(a,l,s.lineWidth,s.lineHeight),n.fill()}_getEncodedPharmacode(e){let t="";for(;0!==e;)e%2==0?(t="11100"+t,e=(e-2)/2):(t="100"+t,e=(e-1)/2);return t=t.slice(0,-2),t}_getEncodedCodabar(e){let t="";const a={0:1010100110,1:1010110010,2:1010010110,3:1100101010,4:1011010010,5:1101010010,6:1001010110,7:1001011010,8:1001101010,9:1101001010,"-":1010011010,$:1011001010,":":11010110110,"/":11011010110,".":11011011010,"+":10110110110,A:10110010010,B:10010010110,C:10100100110,D:10100110010};for(let l of e)t+=a[l];return t=t.slice(0,-1),t}_getEncodedCode39(e){let t="";const a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],l=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];for(let r of e)t+=l[a.indexOf(r)].toString(2)+"0";return t=t.slice(0,-1),t}_getEncodedCode93(e){let t="";const a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],l=[100010100,101001e3,101000100,101000010,100101e3,100100100,100100010,10101e4,100010010,100001010,110101e3,110100100,110100010,110010100,110010010,110001010,101101e3,101100100,101100010,100110100,100011010,101011e3,101001100,101000110,100101100,100010110,110110100,110110010,110101100,110100110,110010110,110011010,101101100,101100110,100110110,100111010,100101110,111010100,111010010,111001010,111010110,100110010,111011010,101011110];for(let r of e)t+=l[a.indexOf(r)]+"0";return t=t.slice(0,-1),t}_getEncodedMSI(e,t){let a="";const l={0:100100100100,1:100100100110,2:100100110100,3:100100110110,4:100110100100,5:100110100110,6:100110110100,7:100110110110,8:110100100100,9:110100100110};a+="110","10"===t?e+=this._getMSIMod10(e):"11"===t?e+=this._getMSIMod11(e):"1010"===t?(e+=this._getMSIMod10(e),e+=this._getMSIMod10(e)):"1110"===t&&(e+=this._getMSIMod11(e),e+=this._getMSIMod10(e));for(let t of e)a+=l[t];return a+="1001",a}_getEncodedEAN(e,t){let a="";const l=[["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"]],r=["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"];if(12===e.length||7===e.length){let t,a,l=0,r=0;a=7===e.length?5:12;for(let t=0;t<a;t+=2)l+=parseInt(e[t]),r+=parseInt(e[t+1]);t=(3*r+l)%10,t>0&&(t=10-t),e+=t}if("13"===t){a+="101";let t=r[e[0]];for(let r=1;r<7;r++)a+=l[t[r-1]][e[r]];a+="01010";for(let t=0;t<6;t++)a+=l[2][e[t+7]];a+="101"}else if("8"===t){a+="101";for(let t=0;t<4;t++)a+=l[0][e[t]];a+="01010";for(let t=0;t<4;t++)a+=l[2][e[t+4]];a+="101"}return a}_getMSIMod10(e){let t=0;for(var a=0;a<e.length;a++){var l=parseInt(e[a]);(a+e.length)%2==0?t+=l:t+=2*l%10+Math.floor(2*l/10)}return(10-t%10)%10}_getMSIMod11(e){let t=0;for(var a=[2,3,4,5,6,7],l=0;l<e.length;l++){var r=parseInt(e[e.length-1-l]);t+=a[l%a.length]*r}return(11-t%11)%11}_getEncodedCode128(e,t){let a,l="",r=[],s=0;const n=[[" "," ","00","11011001100"],["!","!","01","11001101100"],['"','"',"02","11001100110"],["#","#","03","10010011000"],["$","$","04","10010001100"],["%","%","05","10001001100"],["&","&","06","10011001000"],["'","'","07","10011000100"],["(","(","08","10001100100"],[")",")","09","11001001000"],["*","*","10","11001000100"],["+","+","11","11000100100"],[",",",","12","10110011100"],["-","-","13","10011011100"],[".",".","14","10011001110"],["/","/","15","10111001100"],["0","0","16","10011101100"],["1","1","17","10011100110"],["2","2","18","11001110010"],["3","3","19","11001011100"],["4","4","20","11001001110"],["5","5","21","11011100100"],["6","6","22","11001110100"],["7","7","23","11101101110"],["8","8","24","11101001100"],["9","9","25","11100101100"],[":",":","26","11100100110"],[";",";","27","11101100100"],["<","<","28","11100110100"],["=","=","29","11100110010"],[">",">","30","11011011000"],["?","?","31","11011000110"],["@","@","32","11000110110"],["A","A","33","10100011000"],["B","B","34","10001011000"],["C","C","35","10001000110"],["D","D","36","10110001000"],["E","E","37","10001101000"],["F","F","38","10001100010"],["G","G","39","11010001000"],["H","H","40","11000101000"],["I","I","41","11000100010"],["J","J","42","10110111000"],["K","K","43","10110001110"],["L","L","44","10001101110"],["M","M","45","10111011000"],["N","N","46","10111000110"],["O","O","47","10001110110"],["P","P","48","11101110110"],["Q","Q","49","11010001110"],["R","R","50","11000101110"],["S","S","51","11011101000"],["T","T","52","11011100010"],["U","U","53","11011101110"],["V","V","54","11101011000"],["W","W","55","11101000110"],["X","X","56","11100010110"],["Y","Y","57","11101101000"],["Z","Z","58","11101100010"],["[","[","59","11100011010"],["\\","\\","60","11101111010"],["]","]","61","11001000010"],["^","^","62","11110001010"],["_","_","63","10100110000"],["NUL","`","64","10100001100"],["SOH","a","65","10010110000"],["STX","b","66","10010000110"],["ETX","c","67","10000101100"],["EOT","d","68","10000100110"],["ENQ","e","69","10110010000"],["ACK","f","70","10110000100"],["BEL","g","71","10011010000"],["BS","h","72","10011000010"],["HT","i","73","10000110100"],["LF","j","74","10000110010"],["VT","k","75","11000010010"],["FF","l","76","11001010000"],["CR","m","77","11110111010"],["SO","n","78","11000010100"],["SI","o","79","10001111010"],["DLE","p","80","10100111100"],["DC1","q","81","10010111100"],["DC2","r","82","10010011110"],["DC3","s","83","10111100100"],["DC4","t","84","10011110100"],["NAK","u","85","10011110010"],["SYN","v","86","11110100100"],["ETB","w","87","11110010100"],["CAN","x","88","11110010010"],["EM","y","89","11011011110"],["SUB","z","90","11011110110"],["ESC","[","91","11110110110"],["FS","|","92","10101111000"],["GS","]","93","10100011110"],["RS","~","94","10001011110"],["US","DEL","95","10111101000"],["FNC3","FNC3","96","10111100010"],["FNC2","FNC2","97","11110101000"],["SHIFT","SHIFT","98","11110100010"],["CODEC","CODEC","99","10111011110"],["CODEB","FNC4","CODEB","10111101110"],["FNC4","CODEA","CODEA","11101011110"],["FNC1","FNC1","FNC1","11110101110"],["StartA","StartA","StartA","11010000100"],["StartB","StartB","StartB","11010010000"],["StartC","StartC","StartC","11010011100"],["Stop","Stop","Stop","1100011101011"]];if("A"===t){a=103;for(const[t,a]of e.split("").entries()){let e=n.find((e=>e[0]===a));e&&(r.push(e),s+=t*e.length)}}else if("B"===t){a=104;for(const[t,a]of e.split("").entries()){let e=n.find((e=>e[1]===a));e&&(r.push(e),s+=t*e.length)}}else if("C"===t){a=105;for(let t=0;t<e.length-1;t+=2){let a=e.substring(t,2),l=n.find((e=>e[2]===a));l&&(r.push(l),s+=a*l.length)}}return s+=a,r.push(n[s%103]),r.unshift(n[a]),r.push(n[106]),r.forEach((e=>l+=e[3])),l}getDataURL(e){const t=this;if("svg"===e){"svg"!==t.renderAs&&t._generateCode("svg",!0);let e=t.querySelector("svg"),a=(new XMLSerializer).serializeToString(e),l=new Blob([a],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(l)}if("png"===e||"jpg"===e){let a="png"===e?"png":"jpeg";return"canvas"!==t.renderAs&&t._generateCode("canvas",!0),t.querySelector("canvas").toDataURL(`image/${a}`)}}getDataURLAsync(e){const t=this;return new Promise(((a,l)=>{let r=t.getDataURL(e);r?a(r):l()}))}export(e="png",t="barcode"){this.getDataURLAsync(e).then((a=>{let l=document.createElement("a");l.setAttribute("download",`${t}.${e}`),l.setAttribute("href",a),l.setAttribute("target","_blank"),l.click()}))}propertyChangedHandler(e,t,a){super.propertyChangedHandler(e,t,a),this.refresh()}ready(){this._generateCode(this.renderAs),super.ready()}});
14
14
 
15
15
  /***/ }),
16
16
 
@@ -88,7 +88,7 @@ var __webpack_exports__ = {};
88
88
  /* harmony import */ var _smart_barcode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2895);
89
89
  /* harmony import */ var _smart_barcode_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_smart_barcode_js__WEBPACK_IMPORTED_MODULE_1__);
90
90
 
91
- /* Smart UI v13.1.1 (2022-03-23)
91
+ /* Smart UI v13.1.26 (2022-04-05)
92
92
  Copyright (c) 2011-2021 jQWidgets.
93
93
  License: https://htmlelements.com/license/ */ //
94
94
 
@@ -106,7 +106,7 @@ var __webpack_exports__ = {};
106
106
  /* harmony import */ var _smart_breadcrumb_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1731);
107
107
  /* harmony import */ var _smart_breadcrumb_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_smart_breadcrumb_js__WEBPACK_IMPORTED_MODULE_3__);
108
108
 
109
- /* Smart UI v13.1.1 (2022-03-23)
109
+ /* Smart UI v13.1.26 (2022-04-05)
110
110
  Copyright (c) 2011-2021 jQWidgets.
111
111
  License: https://htmlelements.com/license/ */ //
112
112
 
@@ -142,7 +142,7 @@ var __webpack_exports__ = {};
142
142
  /* harmony import */ var _smart_led_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9894);
143
143
  /* harmony import */ var _smart_led_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_smart_led_js__WEBPACK_IMPORTED_MODULE_7__);
144
144
 
145
- /* Smart UI v13.1.1 (2022-03-23)
145
+ /* Smart UI v13.1.26 (2022-04-05)
146
146
  Copyright (c) 2011-2021 jQWidgets.
147
147
  License: https://htmlelements.com/license/ */ //
148
148
 
@@ -88,7 +88,7 @@ var __webpack_exports__ = {};
88
88
  /* harmony import */ var _smart_buttongroup_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6867);
89
89
  /* harmony import */ var _smart_buttongroup_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_smart_buttongroup_js__WEBPACK_IMPORTED_MODULE_1__);
90
90
 
91
- /* Smart UI v13.1.1 (2022-03-23)
91
+ /* Smart UI v13.1.26 (2022-04-05)
92
92
  Copyright (c) 2011-2021 jQWidgets.
93
93
  License: https://htmlelements.com/license/ */ //
94
94