survey-core 1.12.21 → 1.12.23

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 (463) hide show
  1. package/default.css +8715 -0
  2. package/default.css.map +1 -0
  3. package/default.fontless.css +8495 -0
  4. package/default.fontless.css.map +1 -0
  5. package/default.fontless.min.css +6 -0
  6. package/default.min.css +6 -0
  7. package/defaultV2.css +51 -5
  8. package/defaultV2.css.map +1 -1
  9. package/defaultV2.fontless.css +51 -5
  10. package/defaultV2.fontless.css.map +1 -1
  11. package/defaultV2.fontless.min.css +2 -2
  12. package/defaultV2.min.css +2 -2
  13. package/i18n/arabic.js +1 -1
  14. package/i18n/arabic.min.js +1 -1
  15. package/i18n/arabic.min.js.LICENSE.txt +5 -0
  16. package/i18n/basque.js +1 -1
  17. package/i18n/basque.min.js +1 -1
  18. package/i18n/basque.min.js.LICENSE.txt +5 -0
  19. package/i18n/bulgarian.js +1 -1
  20. package/i18n/bulgarian.min.js +1 -1
  21. package/i18n/bulgarian.min.js.LICENSE.txt +5 -0
  22. package/i18n/burmese.js +1 -1
  23. package/i18n/burmese.min.js +1 -1
  24. package/i18n/burmese.min.js.LICENSE.txt +5 -0
  25. package/i18n/catalan.js +1 -1
  26. package/i18n/catalan.min.js +1 -1
  27. package/i18n/catalan.min.js.LICENSE.txt +5 -0
  28. package/i18n/croatian.js +1 -1
  29. package/i18n/croatian.min.js +1 -1
  30. package/i18n/croatian.min.js.LICENSE.txt +5 -0
  31. package/i18n/czech.js +1 -1
  32. package/i18n/czech.min.js +1 -1
  33. package/i18n/czech.min.js.LICENSE.txt +5 -0
  34. package/i18n/danish.js +1 -1
  35. package/i18n/danish.min.js +1 -1
  36. package/i18n/danish.min.js.LICENSE.txt +5 -0
  37. package/i18n/dutch.js +1 -1
  38. package/i18n/dutch.min.js +1 -1
  39. package/i18n/dutch.min.js.LICENSE.txt +5 -0
  40. package/i18n/english.js +1 -1
  41. package/i18n/english.min.js +1 -1
  42. package/i18n/english.min.js.LICENSE.txt +5 -0
  43. package/i18n/estonian.js +1 -1
  44. package/i18n/estonian.min.js +1 -1
  45. package/i18n/estonian.min.js.LICENSE.txt +5 -0
  46. package/i18n/finnish.js +1 -1
  47. package/i18n/finnish.min.js +1 -1
  48. package/i18n/finnish.min.js.LICENSE.txt +5 -0
  49. package/i18n/french.js +1 -1
  50. package/i18n/french.min.js +1 -1
  51. package/i18n/french.min.js.LICENSE.txt +5 -0
  52. package/i18n/georgian.js +1 -1
  53. package/i18n/georgian.min.js +1 -1
  54. package/i18n/georgian.min.js.LICENSE.txt +5 -0
  55. package/i18n/german.js +1 -1
  56. package/i18n/german.min.js +1 -1
  57. package/i18n/german.min.js.LICENSE.txt +5 -0
  58. package/i18n/greek.js +1 -1
  59. package/i18n/greek.min.js +1 -1
  60. package/i18n/greek.min.js.LICENSE.txt +5 -0
  61. package/i18n/hebrew.js +1 -1
  62. package/i18n/hebrew.min.js +1 -1
  63. package/i18n/hebrew.min.js.LICENSE.txt +5 -0
  64. package/i18n/hindi.js +1 -1
  65. package/i18n/hindi.min.js +1 -1
  66. package/i18n/hindi.min.js.LICENSE.txt +5 -0
  67. package/i18n/hungarian.js +1 -1
  68. package/i18n/hungarian.min.js +1 -1
  69. package/i18n/hungarian.min.js.LICENSE.txt +5 -0
  70. package/i18n/icelandic.js +1 -1
  71. package/i18n/icelandic.min.js +1 -1
  72. package/i18n/icelandic.min.js.LICENSE.txt +5 -0
  73. package/i18n/index.js +1 -1
  74. package/i18n/index.min.js +1 -1
  75. package/i18n/index.min.js.LICENSE.txt +5 -0
  76. package/i18n/indonesian.js +1 -1
  77. package/i18n/indonesian.min.js +1 -1
  78. package/i18n/indonesian.min.js.LICENSE.txt +5 -0
  79. package/i18n/italian.js +1 -1
  80. package/i18n/italian.min.js +1 -1
  81. package/i18n/italian.min.js.LICENSE.txt +5 -0
  82. package/i18n/japanese.js +1 -1
  83. package/i18n/japanese.min.js +1 -1
  84. package/i18n/japanese.min.js.LICENSE.txt +5 -0
  85. package/i18n/kazakh.js +1 -1
  86. package/i18n/kazakh.min.js +1 -1
  87. package/i18n/kazakh.min.js.LICENSE.txt +5 -0
  88. package/i18n/korean.js +1 -1
  89. package/i18n/korean.min.js +1 -1
  90. package/i18n/korean.min.js.LICENSE.txt +5 -0
  91. package/i18n/latvian.js +1 -1
  92. package/i18n/latvian.min.js +1 -1
  93. package/i18n/latvian.min.js.LICENSE.txt +5 -0
  94. package/i18n/lithuanian.js +1 -1
  95. package/i18n/lithuanian.min.js +1 -1
  96. package/i18n/lithuanian.min.js.LICENSE.txt +5 -0
  97. package/i18n/macedonian.js +1 -1
  98. package/i18n/macedonian.min.js +1 -1
  99. package/i18n/macedonian.min.js.LICENSE.txt +5 -0
  100. package/i18n/malay.js +1 -1
  101. package/i18n/malay.min.js +1 -1
  102. package/i18n/malay.min.js.LICENSE.txt +5 -0
  103. package/i18n/nl-BE.js +1 -1
  104. package/i18n/nl-BE.min.js +1 -1
  105. package/i18n/nl-BE.min.js.LICENSE.txt +5 -0
  106. package/i18n/norwegian.js +1 -1
  107. package/i18n/norwegian.min.js +1 -1
  108. package/i18n/norwegian.min.js.LICENSE.txt +5 -0
  109. package/i18n/persian.js +1 -1
  110. package/i18n/persian.min.js +1 -1
  111. package/i18n/persian.min.js.LICENSE.txt +5 -0
  112. package/i18n/philippines.js +1 -1
  113. package/i18n/philippines.min.js +1 -1
  114. package/i18n/philippines.min.js.LICENSE.txt +5 -0
  115. package/i18n/polish.js +1 -1
  116. package/i18n/polish.min.js +1 -1
  117. package/i18n/polish.min.js.LICENSE.txt +5 -0
  118. package/i18n/portuguese-br.js +1 -1
  119. package/i18n/portuguese-br.min.js +1 -1
  120. package/i18n/portuguese-br.min.js.LICENSE.txt +5 -0
  121. package/i18n/portuguese.js +1 -1
  122. package/i18n/portuguese.min.js +1 -1
  123. package/i18n/portuguese.min.js.LICENSE.txt +5 -0
  124. package/i18n/romanian.js +1 -1
  125. package/i18n/romanian.min.js +1 -1
  126. package/i18n/romanian.min.js.LICENSE.txt +5 -0
  127. package/i18n/russian.js +1 -1
  128. package/i18n/russian.min.js +1 -1
  129. package/i18n/russian.min.js.LICENSE.txt +5 -0
  130. package/i18n/serbian.js +1 -1
  131. package/i18n/serbian.min.js +1 -1
  132. package/i18n/serbian.min.js.LICENSE.txt +5 -0
  133. package/i18n/simplified-chinese.js +1 -1
  134. package/i18n/simplified-chinese.min.js +1 -1
  135. package/i18n/simplified-chinese.min.js.LICENSE.txt +5 -0
  136. package/i18n/slovak.js +1 -1
  137. package/i18n/slovak.min.js +1 -1
  138. package/i18n/slovak.min.js.LICENSE.txt +5 -0
  139. package/i18n/spanish.js +1 -1
  140. package/i18n/spanish.min.js +1 -1
  141. package/i18n/spanish.min.js.LICENSE.txt +5 -0
  142. package/i18n/swahili.js +1 -1
  143. package/i18n/swahili.min.js +1 -1
  144. package/i18n/swahili.min.js.LICENSE.txt +5 -0
  145. package/i18n/swedish.js +1 -1
  146. package/i18n/swedish.min.js +1 -1
  147. package/i18n/swedish.min.js.LICENSE.txt +5 -0
  148. package/i18n/tajik.js +1 -1
  149. package/i18n/tajik.min.js +1 -1
  150. package/i18n/tajik.min.js.LICENSE.txt +5 -0
  151. package/i18n/telugu.js +1 -1
  152. package/i18n/telugu.min.js +1 -1
  153. package/i18n/telugu.min.js.LICENSE.txt +5 -0
  154. package/i18n/thai.js +1 -1
  155. package/i18n/thai.min.js +1 -1
  156. package/i18n/thai.min.js.LICENSE.txt +5 -0
  157. package/i18n/traditional-chinese.js +1 -1
  158. package/i18n/traditional-chinese.min.js +1 -1
  159. package/i18n/traditional-chinese.min.js.LICENSE.txt +5 -0
  160. package/i18n/turkish.js +1 -1
  161. package/i18n/turkish.min.js +1 -1
  162. package/i18n/turkish.min.js.LICENSE.txt +5 -0
  163. package/i18n/ukrainian.js +1 -1
  164. package/i18n/ukrainian.min.js +1 -1
  165. package/i18n/ukrainian.min.js.LICENSE.txt +5 -0
  166. package/i18n/urdu.js +1 -1
  167. package/i18n/urdu.min.js +1 -1
  168. package/i18n/urdu.min.js.LICENSE.txt +5 -0
  169. package/i18n/vietnamese.js +1 -1
  170. package/i18n/vietnamese.min.js +1 -1
  171. package/i18n/vietnamese.min.js.LICENSE.txt +5 -0
  172. package/i18n/welsh.js +1 -1
  173. package/i18n/welsh.min.js +1 -1
  174. package/i18n/welsh.min.js.LICENSE.txt +5 -0
  175. package/icons/iconsV1.js +1 -1
  176. package/icons/iconsV1.min.js +1 -1
  177. package/icons/iconsV1.min.js.LICENSE.txt +5 -0
  178. package/icons/iconsV2.js +1 -1
  179. package/icons/iconsV2.min.js +1 -1
  180. package/icons/iconsV2.min.js.LICENSE.txt +5 -0
  181. package/modern.css +1 -1
  182. package/modern.fontless.css +1 -1
  183. package/modern.fontless.min.css +1 -1
  184. package/modern.min.css +1 -1
  185. package/package.json +1 -1
  186. package/plugins/bootstrap-integration/index.js +1 -1
  187. package/plugins/bootstrap-integration/index.min.js +1 -1
  188. package/plugins/bootstrap-material-integration/index.js +1 -1
  189. package/plugins/bootstrap-material-integration/index.min.js +1 -1
  190. package/survey.core.js +252 -151
  191. package/survey.core.js.map +1 -1
  192. package/survey.core.min.js +3 -3
  193. package/survey.core.min.js.LICENSE.txt +10 -0
  194. package/survey.css +1 -1
  195. package/survey.i18n.js +1 -1
  196. package/survey.i18n.min.js +1 -1
  197. package/survey.i18n.min.js.LICENSE.txt +5 -0
  198. package/survey.min.css +1 -1
  199. package/themes/borderless-dark-panelless.js +1 -1
  200. package/themes/borderless-dark-panelless.min.js +1 -1
  201. package/themes/borderless-dark-panelless.min.js.LICENSE.txt +5 -0
  202. package/themes/borderless-dark.js +1 -1
  203. package/themes/borderless-dark.min.js +1 -1
  204. package/themes/borderless-dark.min.js.LICENSE.txt +5 -0
  205. package/themes/borderless-light-panelless..js +1 -1
  206. package/themes/borderless-light-panelless..min.js +1 -1
  207. package/themes/borderless-light-panelless.js +156 -0
  208. package/themes/borderless-light-panelless.js.map +1 -0
  209. package/themes/borderless-light-panelless.min.js +2 -0
  210. package/themes/borderless-light-panelless.min.js.LICENSE.txt +5 -0
  211. package/themes/borderless-light.js +1 -1
  212. package/themes/borderless-light.min.js +1 -1
  213. package/themes/borderless-light.min.js.LICENSE.txt +5 -0
  214. package/themes/contrast-dark-panelless.js +1 -1
  215. package/themes/contrast-dark-panelless.min.js +1 -1
  216. package/themes/contrast-dark-panelless.min.js.LICENSE.txt +5 -0
  217. package/themes/contrast-dark.js +1 -1
  218. package/themes/contrast-dark.min.js +1 -1
  219. package/themes/contrast-dark.min.js.LICENSE.txt +5 -0
  220. package/themes/contrast-light-panelless.js +1 -1
  221. package/themes/contrast-light-panelless.min.js +1 -1
  222. package/themes/contrast-light-panelless.min.js.LICENSE.txt +5 -0
  223. package/themes/contrast-light.js +1 -1
  224. package/themes/contrast-light.min.js +1 -1
  225. package/themes/contrast-light.min.js.LICENSE.txt +5 -0
  226. package/themes/default-dark-panelless.js +1 -1
  227. package/themes/default-dark-panelless.min.js +1 -1
  228. package/themes/default-dark-panelless.min.js.LICENSE.txt +5 -0
  229. package/themes/default-dark.js +1 -1
  230. package/themes/default-dark.min.js +1 -1
  231. package/themes/default-dark.min.js.LICENSE.txt +5 -0
  232. package/themes/default-light-panelless.js +1 -1
  233. package/themes/default-light-panelless.min.js +1 -1
  234. package/themes/default-light-panelless.min.js.LICENSE.txt +5 -0
  235. package/themes/default-light.js +1 -1
  236. package/themes/default-light.min.js +1 -1
  237. package/themes/default-light.min.js.LICENSE.txt +5 -0
  238. package/themes/doubleborder-dark-panelless.js +1 -1
  239. package/themes/doubleborder-dark-panelless.min.js +1 -1
  240. package/themes/doubleborder-dark-panelless.min.js.LICENSE.txt +5 -0
  241. package/themes/doubleborder-dark.js +1 -1
  242. package/themes/doubleborder-dark.min.js +1 -1
  243. package/themes/doubleborder-dark.min.js.LICENSE.txt +5 -0
  244. package/themes/doubleborder-light-panelles.js +1 -1
  245. package/themes/doubleborder-light-panelles.min.js +1 -1
  246. package/themes/doubleborder-light-panelles.min.js.LICENSE.txt +5 -0
  247. package/themes/doubleborder-light.js +1 -1
  248. package/themes/doubleborder-light.min.js +1 -1
  249. package/themes/doubleborder-light.min.js.LICENSE.txt +5 -0
  250. package/themes/flat-dark-panelless.js +1 -1
  251. package/themes/flat-dark-panelless.min.js +1 -1
  252. package/themes/flat-dark-panelless.min.js.LICENSE.txt +5 -0
  253. package/themes/flat-dark.js +1 -1
  254. package/themes/flat-dark.min.js +1 -1
  255. package/themes/flat-dark.min.js.LICENSE.txt +5 -0
  256. package/themes/flat-light-panelless.js +1 -1
  257. package/themes/flat-light-panelless.min.js +1 -1
  258. package/themes/flat-light-panelless.min.js.LICENSE.txt +5 -0
  259. package/themes/flat-light.js +1 -1
  260. package/themes/flat-light.min.js +1 -1
  261. package/themes/flat-light.min.js.LICENSE.txt +5 -0
  262. package/themes/index.js +1 -1
  263. package/themes/index.min.js +1 -1
  264. package/themes/index.min.js.LICENSE.txt +5 -0
  265. package/themes/layered-dark-panelless.js +1 -1
  266. package/themes/layered-dark-panelless.min.js +1 -1
  267. package/themes/layered-dark-panelless.min.js.LICENSE.txt +5 -0
  268. package/themes/layered-dark.js +1 -1
  269. package/themes/layered-dark.min.js +1 -1
  270. package/themes/layered-dark.min.js.LICENSE.txt +5 -0
  271. package/themes/layered-light-panelless.js +1 -1
  272. package/themes/layered-light-panelless.min.js +1 -1
  273. package/themes/layered-light-panelless.min.js.LICENSE.txt +5 -0
  274. package/themes/layered-light.js +1 -1
  275. package/themes/layered-light.min.js +1 -1
  276. package/themes/layered-light.min.js.LICENSE.txt +5 -0
  277. package/themes/plain-dark-panelless.js +1 -1
  278. package/themes/plain-dark-panelless.min.js +1 -1
  279. package/themes/plain-dark-panelless.min.js.LICENSE.txt +5 -0
  280. package/themes/plain-dark.js +1 -1
  281. package/themes/plain-dark.min.js +1 -1
  282. package/themes/plain-dark.min.js.LICENSE.txt +5 -0
  283. package/themes/plain-light-panelless.js +1 -1
  284. package/themes/plain-light-panelless.min.js +1 -1
  285. package/themes/plain-light-panelless.min.js.LICENSE.txt +5 -0
  286. package/themes/plain-light.js +1 -1
  287. package/themes/plain-light.min.js +1 -1
  288. package/themes/plain-light.min.js.LICENSE.txt +5 -0
  289. package/themes/sharp-dark-panelless.js +1 -1
  290. package/themes/sharp-dark-panelless.min.js +1 -1
  291. package/themes/sharp-dark-panelless.min.js.LICENSE.txt +5 -0
  292. package/themes/sharp-dark.js +1 -1
  293. package/themes/sharp-dark.min.js +1 -1
  294. package/themes/sharp-dark.min.js.LICENSE.txt +5 -0
  295. package/themes/sharp-light-panelless.js +1 -1
  296. package/themes/sharp-light-panelless.min.js +1 -1
  297. package/themes/sharp-light-panelless.min.js.LICENSE.txt +5 -0
  298. package/themes/sharp-light.js +1 -1
  299. package/themes/sharp-light.min.js +1 -1
  300. package/themes/sharp-light.min.js.LICENSE.txt +5 -0
  301. package/themes/solid-dark-panelless.js +1 -1
  302. package/themes/solid-dark-panelless.min.js +1 -1
  303. package/themes/solid-dark-panelless.min.js.LICENSE.txt +5 -0
  304. package/themes/solid-dark.js +1 -1
  305. package/themes/solid-dark.min.js +1 -1
  306. package/themes/solid-dark.min.js.LICENSE.txt +5 -0
  307. package/themes/solid-light-panelless.js +1 -1
  308. package/themes/solid-light-panelless.min.js +1 -1
  309. package/themes/solid-light-panelless.min.js.LICENSE.txt +5 -0
  310. package/themes/solid-light.js +1 -1
  311. package/themes/solid-light.min.js +1 -1
  312. package/themes/solid-light.min.js.LICENSE.txt +5 -0
  313. package/themes/three-dimensional-dark-panelless.js +1 -1
  314. package/themes/three-dimensional-dark-panelless.min.js +1 -1
  315. package/themes/three-dimensional-dark-panelless.min.js.LICENSE.txt +5 -0
  316. package/themes/three-dimensional-dark.js +1 -1
  317. package/themes/three-dimensional-dark.min.js +1 -1
  318. package/themes/three-dimensional-dark.min.js.LICENSE.txt +5 -0
  319. package/themes/three-dimensional-light-panelless.js +1 -1
  320. package/themes/three-dimensional-light-panelless.min.js +1 -1
  321. package/themes/three-dimensional-light-panelless.min.js.LICENSE.txt +5 -0
  322. package/themes/three-dimensional-light.js +1 -1
  323. package/themes/three-dimensional-light.min.js +1 -1
  324. package/themes/three-dimensional-light.min.js.LICENSE.txt +5 -0
  325. package/ts3.4/typings/packages/survey-core/src/base-interfaces.d.ts +1 -0
  326. package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +2 -0
  327. package/ts3.4/typings/packages/survey-core/src/localizablestring.d.ts +1 -1
  328. package/ts3.4/typings/packages/survey-core/src/panel.d.ts +2 -1
  329. package/ts3.4/typings/packages/survey-core/src/question_custom.d.ts +3 -0
  330. package/ts3.4/typings/packages/survey-core/src/question_paneldynamic.d.ts +14 -6
  331. package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +17 -6
  332. package/ts3.4/typings/packages/survey-core/src/survey.d.ts +11 -6
  333. package/ts3.4/typings/packages/survey-core/src/textPreProcessor.d.ts +5 -2
  334. package/typings/entries/chunks/core-wo-model.d.ts +10 -0
  335. package/typings/entries/chunks/model.d.ts +95 -95
  336. package/typings/entries/index.d.ts +2 -0
  337. package/typings/packages/survey-core/src/base-interfaces.d.ts +1 -0
  338. package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +2 -0
  339. package/typings/packages/survey-core/src/localizablestring.d.ts +1 -1
  340. package/typings/packages/survey-core/src/panel.d.ts +2 -1
  341. package/typings/packages/survey-core/src/question_custom.d.ts +3 -0
  342. package/typings/packages/survey-core/src/question_paneldynamic.d.ts +14 -6
  343. package/typings/packages/survey-core/src/survey-events-api.d.ts +17 -6
  344. package/typings/packages/survey-core/src/survey.d.ts +11 -6
  345. package/typings/packages/survey-core/src/textPreProcessor.d.ts +5 -2
  346. package/typings/src/actions/action.d.ts +300 -0
  347. package/typings/src/actions/adaptive-container.d.ts +29 -0
  348. package/typings/src/actions/container.d.ts +59 -0
  349. package/typings/src/base-interfaces.d.ts +366 -0
  350. package/typings/src/base.d.ts +333 -0
  351. package/typings/src/calculatedValue.d.ts +49 -0
  352. package/typings/src/choicesRestful.d.ts +177 -0
  353. package/typings/src/conditionProcessValue.d.ts +25 -0
  354. package/typings/src/conditions.d.ts +98 -0
  355. package/typings/src/conditionsParser.d.ts +14 -0
  356. package/typings/src/console-warnings.d.ts +6 -0
  357. package/typings/src/defaultCss/defaultCss.d.ts +873 -0
  358. package/typings/src/defaultTitle.d.ts +3 -0
  359. package/typings/src/dragdrop/choices.d.ts +21 -0
  360. package/typings/src/dragdrop/core.d.ts +55 -0
  361. package/typings/src/dragdrop/dom-adapter.d.ts +49 -0
  362. package/typings/src/dragdrop/engine.d.ts +6 -0
  363. package/typings/src/dragdrop/matrix-rows.d.ts +19 -0
  364. package/typings/src/dragdrop/ranking-choices.d.ts +26 -0
  365. package/typings/src/dragdrop/ranking-select-to-rank.d.ts +17 -0
  366. package/typings/src/dropdownListModel.d.ts +97 -0
  367. package/typings/src/dropdownMultiSelectListModel.d.ts +37 -0
  368. package/typings/src/dxSurveyService.d.ts +18 -0
  369. package/typings/src/element-helper.d.ts +8 -0
  370. package/typings/src/error.d.ts +81 -0
  371. package/typings/src/expressionItems.d.ts +57 -0
  372. package/typings/src/expressions/expressionParser.d.ts +54 -0
  373. package/typings/src/expressions/expressions.d.ts +135 -0
  374. package/typings/src/flowpanel.d.ts +34 -0
  375. package/typings/src/functionsfactory.d.ts +14 -0
  376. package/typings/src/global_variables_utils.d.ts +30 -0
  377. package/typings/src/header.d.ts +87 -0
  378. package/typings/src/helpers.d.ts +44 -0
  379. package/typings/src/itemvalue.d.ts +93 -0
  380. package/typings/src/jsonobject.d.ts +378 -0
  381. package/typings/src/list.d.ts +144 -0
  382. package/typings/src/localizablestring.d.ts +125 -0
  383. package/typings/src/localization/english.d.ts +109 -0
  384. package/typings/src/martixBase.d.ts +133 -0
  385. package/typings/src/mask/input_element_adapter.d.ts +16 -0
  386. package/typings/src/mask/mask_base.d.ts +29 -0
  387. package/typings/src/mask/mask_currency.d.ts +41 -0
  388. package/typings/src/mask/mask_datetime.d.ts +91 -0
  389. package/typings/src/mask/mask_numeric.d.ts +90 -0
  390. package/typings/src/mask/mask_pattern.d.ts +78 -0
  391. package/typings/src/mask/mask_utils.d.ts +20 -0
  392. package/typings/src/multiSelectListModel.d.ts +17 -0
  393. package/typings/src/notifier.d.ts +30 -0
  394. package/typings/src/page.d.ts +133 -0
  395. package/typings/src/panel-layout-column.d.ts +9 -0
  396. package/typings/src/panel.d.ts +633 -0
  397. package/typings/src/popup-dropdown-view-model.d.ts +35 -0
  398. package/typings/src/popup-modal-view-model.d.ts +16 -0
  399. package/typings/src/popup-survey.d.ts +132 -0
  400. package/typings/src/popup-utils.d.ts +4 -0
  401. package/typings/src/popup-view-model.d.ts +81 -0
  402. package/typings/src/popup.d.ts +66 -0
  403. package/typings/src/progress-buttons.d.ts +44 -0
  404. package/typings/src/question.d.ts +949 -0
  405. package/typings/src/questionCustomWidgets.d.ts +46 -0
  406. package/typings/src/question_baseselect.d.ts +547 -0
  407. package/typings/src/question_boolean.d.ts +116 -0
  408. package/typings/src/question_buttongroup.d.ts +51 -0
  409. package/typings/src/question_checkbox.d.ts +158 -0
  410. package/typings/src/question_comment.d.ts +59 -0
  411. package/typings/src/question_custom.d.ts +454 -0
  412. package/typings/src/question_dropdown.d.ts +156 -0
  413. package/typings/src/question_empty.d.ts +8 -0
  414. package/typings/src/question_expression.d.ts +110 -0
  415. package/typings/src/question_file.d.ts +303 -0
  416. package/typings/src/question_html.d.ts +26 -0
  417. package/typings/src/question_image.d.ts +86 -0
  418. package/typings/src/question_imagepicker.d.ts +168 -0
  419. package/typings/src/question_matrix.d.ts +198 -0
  420. package/typings/src/question_matrixdropdown.d.ts +56 -0
  421. package/typings/src/question_matrixdropdownbase.d.ts +572 -0
  422. package/typings/src/question_matrixdropdowncolumn.d.ts +344 -0
  423. package/typings/src/question_matrixdropdownrendered.d.ts +171 -0
  424. package/typings/src/question_matrixdynamic.d.ts +299 -0
  425. package/typings/src/question_multipletext.d.ts +361 -0
  426. package/typings/src/question_paneldynamic.d.ts +719 -0
  427. package/typings/src/question_radiogroup.d.ts +40 -0
  428. package/typings/src/question_ranking.d.ts +135 -0
  429. package/typings/src/question_rating.d.ts +300 -0
  430. package/typings/src/question_signaturepad.d.ts +149 -0
  431. package/typings/src/question_tagbox.d.ts +98 -0
  432. package/typings/src/question_text.d.ts +206 -0
  433. package/typings/src/question_textbase.d.ts +62 -0
  434. package/typings/src/questionfactory.d.ts +27 -0
  435. package/typings/src/questionnonvalue.d.ts +22 -0
  436. package/typings/src/rendererFactory.d.ts +11 -0
  437. package/typings/src/settings.d.ts +641 -0
  438. package/typings/src/survey-element.d.ts +471 -0
  439. package/typings/src/survey-error.d.ts +18 -0
  440. package/typings/src/survey-events-api.d.ts +1152 -0
  441. package/typings/src/survey.d.ts +3126 -0
  442. package/typings/src/surveyProgress.d.ts +4 -0
  443. package/typings/src/surveyStrings.d.ts +151 -0
  444. package/typings/src/surveyTaskManager.d.ts +16 -0
  445. package/typings/src/surveyTimerModel.d.ts +47 -0
  446. package/typings/src/surveyToc.d.ts +23 -0
  447. package/typings/src/surveytimer.d.ts +22 -0
  448. package/typings/src/svgbundle.d.ts +23 -0
  449. package/typings/src/template-renderer.d.ts +10 -0
  450. package/typings/src/textPreProcessor.d.ts +43 -0
  451. package/typings/src/themes.d.ts +222 -0
  452. package/typings/src/trigger.d.ts +155 -0
  453. package/typings/src/utils/animation.d.ts +91 -0
  454. package/typings/src/utils/camera.d.ts +27 -0
  455. package/typings/src/utils/cssClassBuilder.d.ts +6 -0
  456. package/typings/src/utils/devices.d.ts +12 -0
  457. package/typings/src/utils/dragOrClickHelper.d.ts +16 -0
  458. package/typings/src/utils/popup.d.ts +45 -0
  459. package/typings/src/utils/responsivity-manager.d.ts +31 -0
  460. package/typings/src/utils/taskmanager.d.ts +28 -0
  461. package/typings/src/utils/text-area.d.ts +58 -0
  462. package/typings/src/utils/utils.d.ts +86 -0
  463. package/typings/src/validator.d.ts +204 -0
@@ -0,0 +1,155 @@
1
+ import { HashTable } from "./helpers";
2
+ import { Base } from "./base";
3
+ import { ISurvey } from "./base-interfaces";
4
+ /**
5
+ * A base class for all triggers.
6
+ * A trigger calls a method when the expression change the result: from false to true or from true to false.
7
+ * Please note, it runs only one changing the expression result.
8
+ */
9
+ export declare class Trigger extends Base {
10
+ static idCounter: number;
11
+ static operatorsValue: HashTable<Function>;
12
+ static get operators(): HashTable<Function>;
13
+ private conditionRunner;
14
+ private idValue;
15
+ constructor();
16
+ get id(): number;
17
+ getType(): string;
18
+ toString(): string;
19
+ isGhost: boolean;
20
+ protected get isInternal(): boolean;
21
+ get operator(): string;
22
+ set operator(value: string);
23
+ get value(): any;
24
+ set value(val: any);
25
+ get name(): string;
26
+ set name(val: string);
27
+ get expression(): string;
28
+ set expression(val: string);
29
+ protected canBeExecuted(isOnNextPage: boolean): boolean;
30
+ protected canBeExecutedOnComplete(): boolean;
31
+ protected isExecutingOnNextPage: boolean;
32
+ checkExpression(isOnNextPage: boolean, isOnComplete: boolean, keys: any, values: HashTable<any>, properties?: HashTable<any>): void;
33
+ protected canSuccessOnEmptyExpression(): boolean;
34
+ check(value: any): void;
35
+ get requireValidQuestion(): boolean;
36
+ private perform;
37
+ private triggerResult;
38
+ protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void;
39
+ protected onFailure(): void;
40
+ protected onSuccessExecuted(): void;
41
+ endLoadingFromJson(): void;
42
+ private oldPropertiesChanged;
43
+ private onExpressionChanged;
44
+ buildExpression(): string;
45
+ private isCheckRequired;
46
+ protected getUsedVariables(): string[];
47
+ private createConditionRunner;
48
+ private get isRequireValue();
49
+ }
50
+ export interface ISurveyTriggerOwner {
51
+ getObjects(pages: string[], questions: string[]): any[];
52
+ setCompleted(trigger: Trigger): void;
53
+ canBeCompleted(trigger: Trigger, isCompleted: boolean): void;
54
+ triggerExecuted(trigger: Trigger): void;
55
+ setTriggerValue(name: string, value: any, isVariable: boolean): any;
56
+ copyTriggerValue(name: string, fromName: string, copyDisplayValue: boolean): void;
57
+ focusQuestion(name: string): boolean;
58
+ }
59
+ /**
60
+ * It extends the Trigger base class and add properties required for SurveyJS classes.
61
+ */
62
+ export declare class SurveyTrigger extends Trigger {
63
+ protected ownerValue: ISurveyTriggerOwner;
64
+ constructor();
65
+ get owner(): ISurveyTriggerOwner;
66
+ setOwner(owner: ISurveyTriggerOwner): void;
67
+ getSurvey(live?: boolean): ISurvey;
68
+ protected isRealExecution(): boolean;
69
+ protected onSuccessExecuted(): void;
70
+ }
71
+ /**
72
+ * If expression returns true, it makes questions/pages visible.
73
+ * Ohterwise it makes them invisible.
74
+ */
75
+ export declare class SurveyTriggerVisible extends SurveyTrigger {
76
+ pages: string[];
77
+ questions: string[];
78
+ constructor();
79
+ getType(): string;
80
+ protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void;
81
+ protected onFailure(): void;
82
+ private onTrigger;
83
+ protected onItemSuccess(item: any): void;
84
+ protected onItemFailure(item: any): void;
85
+ }
86
+ /**
87
+ * If expression returns true, it completes the survey.
88
+ */
89
+ export declare class SurveyTriggerComplete extends SurveyTrigger {
90
+ constructor();
91
+ getType(): string;
92
+ get requireValidQuestion(): boolean;
93
+ protected isRealExecution(): boolean;
94
+ protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void;
95
+ protected onFailure(): void;
96
+ }
97
+ /**
98
+ * If expression returns true, the value from property **setValue** will be set to **setToName**
99
+ */
100
+ export declare class SurveyTriggerSetValue extends SurveyTrigger {
101
+ constructor();
102
+ getType(): string;
103
+ protected canBeExecuted(isOnNextPage: boolean): boolean;
104
+ protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
105
+ get setToName(): string;
106
+ set setToName(val: string);
107
+ get setValue(): any;
108
+ set setValue(val: any);
109
+ get isVariable(): boolean;
110
+ set isVariable(val: boolean);
111
+ protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void;
112
+ }
113
+ /**
114
+ * If expression returns true, the survey go to question **gotoName** and focus it.
115
+ */
116
+ export declare class SurveyTriggerSkip extends SurveyTrigger {
117
+ constructor();
118
+ getType(): string;
119
+ get requireValidQuestion(): boolean;
120
+ get gotoName(): string;
121
+ set gotoName(val: string);
122
+ protected canBeExecuted(isOnNextPage: boolean): boolean;
123
+ protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void;
124
+ }
125
+ /**
126
+ * If expression returns true, the **runExpression** will be run. If **setToName** property is not empty then the result of **runExpression** will be set to it.
127
+ */
128
+ export declare class SurveyTriggerRunExpression extends SurveyTrigger {
129
+ constructor();
130
+ getType(): string;
131
+ get setToName(): string;
132
+ set setToName(val: string);
133
+ get runExpression(): string;
134
+ set runExpression(val: string);
135
+ protected canBeExecuted(isOnNextPage: boolean): boolean;
136
+ protected onSuccess(values: HashTable<any>, properties: HashTable<any>): boolean;
137
+ private onCompleteRunExpression;
138
+ }
139
+ /**
140
+ * If expression returns true, the value from question **fromName** will be set into **setToName**.
141
+ */
142
+ export declare class SurveyTriggerCopyValue extends SurveyTrigger {
143
+ constructor();
144
+ protected canBeExecuted(isOnNextPage: boolean): boolean;
145
+ get setToName(): string;
146
+ set setToName(val: string);
147
+ get fromName(): string;
148
+ set fromName(val: string);
149
+ get copyDisplayValue(): boolean;
150
+ set copyDisplayValue(val: boolean);
151
+ getType(): string;
152
+ protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void;
153
+ protected canSuccessOnEmptyExpression(): boolean;
154
+ protected getUsedVariables(): string[];
155
+ }
@@ -0,0 +1,91 @@
1
+ import { EventBase, Base } from "../base";
2
+ export interface AnimationOptions {
3
+ cssClass: string;
4
+ onBeforeRunAnimation?: (element: HTMLElement) => void;
5
+ onAfterRunAnimation?: (element: HTMLElement) => void;
6
+ }
7
+ export interface IAnimationConsumer<T extends Array<any> = []> {
8
+ getLeaveOptions?(...args: T): AnimationOptions;
9
+ getEnterOptions?(...args: T): AnimationOptions;
10
+ getAnimatedElement(...args: T): HTMLElement;
11
+ isAnimationEnabled(): boolean;
12
+ getRerenderEvent(): EventBase<Base>;
13
+ }
14
+ interface IGroupAnimationInfo {
15
+ isReorderingRunning: boolean;
16
+ isDeletingRunning: boolean;
17
+ isAddingRunning: boolean;
18
+ }
19
+ interface IGroupAnimationCompareInfo<T> {
20
+ addedItems: Array<T>;
21
+ deletedItems: Array<T>;
22
+ reorderedItems: Array<{
23
+ item: T;
24
+ movedForward: boolean;
25
+ }>;
26
+ mergedItems: Array<T>;
27
+ }
28
+ export interface IAnimationGroupConsumer<T> extends IAnimationConsumer<[T]> {
29
+ getLeaveOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
30
+ getEnterOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
31
+ getReorderOptions?(item: T, movedForward: boolean, info?: IGroupAnimationInfo): AnimationOptions;
32
+ getKey?: (item: T) => any;
33
+ onCompareArrays?(options: IGroupAnimationCompareInfo<T>): void;
34
+ allowSyncRemovalAddition?: boolean;
35
+ }
36
+ export declare class AnimationUtils {
37
+ private getMsFromRule;
38
+ private reflow;
39
+ private getAnimationsCount;
40
+ private getAnimationDuration;
41
+ private cancelQueue;
42
+ private addCancelCallback;
43
+ private removeCancelCallback;
44
+ protected onAnimationEnd(element: HTMLElement, callback: (isCancel?: boolean) => void, options: AnimationOptions): void;
45
+ protected afterAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
46
+ protected beforeAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
47
+ private getCssClasses;
48
+ protected runAnimation(element: HTMLElement, options: AnimationOptions, callback: (isCancel?: boolean) => void): void;
49
+ protected clearHtmlElement(element: HTMLElement, options: AnimationOptions): void;
50
+ protected onNextRender(callback: (isCancel?: boolean) => void, isCancel?: boolean): void;
51
+ cancel(): void;
52
+ }
53
+ export declare class AnimationPropertyUtils extends AnimationUtils {
54
+ onEnter(options: IAnimationConsumer): void;
55
+ onLeave(options: IAnimationConsumer, callback: () => void): void;
56
+ }
57
+ export declare class AnimationGroupUtils<T> extends AnimationUtils {
58
+ runGroupAnimation(options: IAnimationGroupConsumer<T>, addedItems: Array<T>, removedItems: Array<T>, reorderedItems: Array<{
59
+ item: T;
60
+ movedForward: boolean;
61
+ }>, callback?: () => void): void;
62
+ }
63
+ export declare abstract class AnimationProperty<T, S extends IAnimationConsumer<any> = IAnimationConsumer> {
64
+ protected animationOptions: S;
65
+ protected update: (val: T, isTempUpdate?: boolean) => void;
66
+ protected getCurrentValue: () => T;
67
+ constructor(animationOptions: S, update: (val: T, isTempUpdate?: boolean) => void, getCurrentValue: () => T);
68
+ protected animation: AnimationUtils;
69
+ protected onNextRender(callback: () => void, onCancel?: () => void): void;
70
+ protected abstract _sync(newValue: T): void;
71
+ private _debouncedSync;
72
+ sync(newValue: T): void;
73
+ private cancelCallback;
74
+ cancel(): void;
75
+ cancelAnimations(): void;
76
+ }
77
+ export declare class AnimationBoolean extends AnimationProperty<boolean> {
78
+ protected animation: AnimationPropertyUtils;
79
+ protected _sync(newValue: boolean): void;
80
+ }
81
+ export declare class AnimationGroup<T> extends AnimationProperty<Array<T>, IAnimationGroupConsumer<T>> {
82
+ protected animation: AnimationGroupUtils<T>;
83
+ protected _sync(newValue: Array<T>): void;
84
+ }
85
+ export declare class AnimationTab<T> extends AnimationProperty<Array<T>, IAnimationGroupConsumer<T>> {
86
+ protected mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>;
87
+ protected animation: AnimationGroupUtils<T>;
88
+ constructor(animationOptions: IAnimationGroupConsumer<T>, update: (val: Array<T>, isTempUpdate?: boolean) => void, getCurrentValue: () => Array<T>, mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>);
89
+ protected _sync(newValue: [T]): void;
90
+ }
91
+ export {};
@@ -0,0 +1,27 @@
1
+ export declare class Camera {
2
+ static mediaDevicesCallback: ((callback: (devices: Array<MediaDeviceInfo>) => void) => void) | undefined;
3
+ static clear(): void;
4
+ static setCameraList(list: Array<MediaDeviceInfo>): void;
5
+ private static cameraList;
6
+ private static cameraIndex;
7
+ private static cameraFacingMode;
8
+ private static canSwitchFacingMode;
9
+ hasCamera(callback: (res: boolean) => void): void;
10
+ getMediaConstraints(videoSize?: {
11
+ width?: number;
12
+ height?: number;
13
+ }): MediaStreamConstraints;
14
+ startVideo(videoElement: HTMLVideoElement, callback: (stream: MediaStream) => void, imageWidth?: number, imageHeight?: number): void;
15
+ getImageSize(videoEl: HTMLVideoElement): {
16
+ width: number;
17
+ height: number;
18
+ };
19
+ snap(videoElement: HTMLVideoElement, callback: BlobCallback): boolean;
20
+ private canFlipValue;
21
+ private updateCanFlipValue;
22
+ private onCanFlipChangedCallback?;
23
+ canFlip(onCanFlipChangedCallback?: (res: boolean) => void): boolean;
24
+ flip(): void;
25
+ private hasCameraCallback;
26
+ private setVideoInputs;
27
+ }
@@ -0,0 +1,6 @@
1
+ export declare class CssClassBuilder {
2
+ private classes;
3
+ isEmpty(): boolean;
4
+ append(value: string, condition?: boolean): CssClassBuilder;
5
+ toString(): string;
6
+ }
@@ -0,0 +1,12 @@
1
+ export declare const IsMobile: boolean;
2
+ export declare var mouseInfo: {
3
+ readonly isTouch: boolean;
4
+ readonly hasTouchEvent: boolean;
5
+ hasMouse: boolean;
6
+ };
7
+ export declare let IsTouch: boolean;
8
+ export declare function _setIsTouch(val: boolean): void;
9
+ export type MatchMediaMethod = ((query: string) => {
10
+ matches: boolean;
11
+ } | null) | null;
12
+ export declare function detectMouseSupport(matchMedia: MatchMediaMethod): boolean;
@@ -0,0 +1,16 @@
1
+ export declare class DragOrClickHelper {
2
+ private dragHandler;
3
+ private pointerDownEvent;
4
+ private currentTarget;
5
+ private startX;
6
+ private startY;
7
+ private currentX;
8
+ private currentY;
9
+ private itemModel;
10
+ constructor(dragHandler: any);
11
+ onPointerDown(pointerDownEvent: any, itemModel?: any): void;
12
+ private onPointerUp;
13
+ private tryToStartDrag;
14
+ private get isMicroMovement();
15
+ private clearListeners;
16
+ }
@@ -0,0 +1,45 @@
1
+ export type VerticalPosition = "top" | "bottom" | "middle";
2
+ export type HorizontalPosition = "left" | "right" | "center";
3
+ export type PositionMode = "flex" | "fixed";
4
+ export interface IPosition {
5
+ left?: number | string;
6
+ top?: number | string;
7
+ }
8
+ export interface INumberPosition extends IPosition {
9
+ left?: number;
10
+ top?: number;
11
+ }
12
+ export interface ISize {
13
+ width: number;
14
+ height: number;
15
+ }
16
+ export declare class Rect implements ISize, INumberPosition {
17
+ private x;
18
+ private y;
19
+ width: number;
20
+ height: number;
21
+ constructor(x: number, y: number, width: number, height: number);
22
+ get left(): number;
23
+ get top(): number;
24
+ get right(): number;
25
+ get bottom(): number;
26
+ }
27
+ export declare class PopupUtils {
28
+ static bottomIndent: number;
29
+ static calculatePosition(targetRect: Rect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, positionMode?: PositionMode): INumberPosition;
30
+ static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean, margins?: {
31
+ top: number;
32
+ bottom: number;
33
+ }): any;
34
+ static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
35
+ left: number;
36
+ right: number;
37
+ }): {
38
+ width: number;
39
+ left: number;
40
+ };
41
+ static updateVerticalPosition(targetRect: Rect, height: number, horizontalPosition: HorizontalPosition, verticalPosition: VerticalPosition, windowHeight: number): VerticalPosition;
42
+ static updateHorizontalPosition(targetRect: Rect, width: number, horizontalPosition: HorizontalPosition, windowWidth: number): HorizontalPosition;
43
+ static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
44
+ static calculatePointerTarget(targetRect: Rect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, marginLeft?: number, marginRight?: number): INumberPosition;
45
+ }
@@ -0,0 +1,31 @@
1
+ import { AdaptiveActionContainer } from "../actions/adaptive-container";
2
+ interface IDimensions {
3
+ scroll: number;
4
+ offset: number;
5
+ }
6
+ export declare class ResponsivityManager {
7
+ container: HTMLDivElement;
8
+ private model;
9
+ private resizeObserver;
10
+ private isInitialized;
11
+ getComputedStyle: (elt: Element) => CSSStyleDeclaration;
12
+ private debouncedProcess;
13
+ constructor(container: HTMLDivElement, model: AdaptiveActionContainer);
14
+ protected getDimensions(element: HTMLElement): IDimensions;
15
+ protected getAvailableSpace(): number;
16
+ protected getGap(): number;
17
+ protected calcItemSize(item: HTMLElement): number;
18
+ private updateItemsDimensions;
19
+ private get isContainerVisible();
20
+ private shouldProcessResponsiveness;
21
+ private process;
22
+ private isDisposed;
23
+ dispose(): void;
24
+ }
25
+ export declare class VerticalResponsivityManager extends ResponsivityManager {
26
+ constructor(container: HTMLDivElement, model: AdaptiveActionContainer);
27
+ protected getDimensions(): IDimensions;
28
+ protected getAvailableSpace(): number;
29
+ protected calcItemSize(item: HTMLDivElement): number;
30
+ }
31
+ export {};
@@ -0,0 +1,28 @@
1
+ export interface IExecutable {
2
+ id?: string;
3
+ execute: () => void;
4
+ isCompleted: boolean;
5
+ dispose?: () => void;
6
+ }
7
+ export declare class Task implements IExecutable {
8
+ private func;
9
+ private isMultiple;
10
+ private _isCompleted;
11
+ constructor(func: () => void, isMultiple?: boolean);
12
+ execute: () => void;
13
+ discard(): void;
14
+ get isCompleted(): boolean;
15
+ }
16
+ export declare class TaskManger {
17
+ private interval;
18
+ private static instance;
19
+ private static tasks;
20
+ private constructor();
21
+ static Instance(): TaskManger;
22
+ private tick;
23
+ static schedule(task: IExecutable): void;
24
+ }
25
+ export declare function debounce<T extends (...args: any) => void>(func: T): {
26
+ run: T;
27
+ cancel: () => void;
28
+ };
@@ -0,0 +1,58 @@
1
+ import { Question } from "../question";
2
+ export interface ITextArea {
3
+ question: any;
4
+ id: () => string;
5
+ propertyName: string;
6
+ className: () => string;
7
+ isDisabledAttr: () => boolean;
8
+ isReadOnlyAttr?: () => boolean;
9
+ placeholder: () => string;
10
+ autoGrow: () => boolean;
11
+ maxLength: () => number;
12
+ rows: () => number;
13
+ cols?: () => number;
14
+ getTextValue?: () => any;
15
+ onTextAreaChange?: (event: any) => void;
16
+ onTextAreaInput?: (event: any) => void;
17
+ onTextAreaKeyDown?: (event: any) => void;
18
+ onTextAreaBlur?: (event: any) => void;
19
+ onTextAreaFocus?: (event: any) => void;
20
+ ariaRequired: () => "true" | "false";
21
+ ariaLabel: () => string;
22
+ ariaInvalid?: () => "true" | "false";
23
+ ariaLabelledBy?: () => string;
24
+ ariaDescribedBy?: () => string;
25
+ ariaErrormessage?: () => string;
26
+ }
27
+ export declare class TextAreaModel {
28
+ private options;
29
+ private element;
30
+ updateElement(): void;
31
+ private onPropertyChangedCallback;
32
+ constructor(options: ITextArea);
33
+ setElement(element: HTMLTextAreaElement | null): void;
34
+ resetElement(): void;
35
+ getTextValue(): string;
36
+ onTextAreaChange(event: any): void;
37
+ onTextAreaInput(event: any): void;
38
+ onTextAreaKeyDown(event: any): void;
39
+ onTextAreaBlur(event: any): void;
40
+ onTextAreaFocus(event: any): void;
41
+ get question(): Question;
42
+ get id(): string;
43
+ get placeholder(): string;
44
+ get className(): string;
45
+ get maxLength(): number;
46
+ get autoGrow(): boolean;
47
+ get rows(): number;
48
+ get cols(): number | undefined;
49
+ get isDisabledAttr(): boolean;
50
+ get isReadOnlyAttr(): boolean | undefined;
51
+ get ariaRequired(): "true" | "false";
52
+ get ariaLabel(): string;
53
+ get ariaInvalid(): "true" | "false";
54
+ get ariaLabelledBy(): string;
55
+ get ariaDescribedBy(): string;
56
+ get ariaErrormessage(): string;
57
+ dispose(): void;
58
+ }
@@ -0,0 +1,86 @@
1
+ import { PopupBaseViewModel } from "../popup-view-model";
2
+ declare function compareVersions(a: any, b: any): number;
3
+ declare function confirmAction(message: string): boolean;
4
+ declare function confirmActionAsync(options: IConfirmDialogOptions): void;
5
+ declare function detectIEBrowser(): boolean;
6
+ declare function detectIEOrEdge(): boolean;
7
+ declare function loadFileFromBase64(b64Data: string, fileName: string): void;
8
+ declare function isMobile(): boolean;
9
+ declare const isShadowDOM: (rootElement: Document | ShadowRoot | HTMLElement) => rootElement is ShadowRoot;
10
+ declare const getElement: (element: HTMLElement | string) => HTMLElement;
11
+ declare function isElementVisible(element: HTMLElement, threshold?: number): boolean;
12
+ declare function findScrollableParent(element: HTMLElement): HTMLElement;
13
+ declare function activateLazyRenderingChecks(id: string): void;
14
+ declare function navigateToUrl(url: string): void;
15
+ declare function wrapUrlForBackgroundImage(url: string): string;
16
+ declare function isBase64URL(url: string): boolean;
17
+ declare const renamedIcons: any;
18
+ declare function getIconNameFromProxy(iconName: string): string;
19
+ export declare function getNewIconName(iconName: string): string;
20
+ export declare function getCustomNewIconNameIfExists(iconName: string): string;
21
+ declare function createSvg(size: number | string, width: number, height: number, iconName: string, svgElem: any, title: string): void;
22
+ export declare function getSafeUrl(url: string): string;
23
+ export declare function unwrap<T>(value: T | (() => T)): T;
24
+ export declare function getRenderedSize(val: string | number): number;
25
+ export declare function getRenderedStyleSize(val: string | number): string;
26
+ export interface IAttachKey2clickOptions {
27
+ processEsc?: boolean;
28
+ disableTabStop?: boolean;
29
+ __keyDownReceived?: boolean;
30
+ }
31
+ export declare function doKey2ClickBlur(evt: KeyboardEvent): void;
32
+ export declare function doKey2ClickUp(evt: KeyboardEvent, options?: IAttachKey2clickOptions): void;
33
+ export declare function doKey2ClickDown(evt: KeyboardEvent, options?: IAttachKey2clickOptions): void;
34
+ declare function increaseHeightByContent(element: HTMLElement, getComputedStyle?: (elt: Element) => any): void;
35
+ declare function getOriginalEvent(event: any): any;
36
+ declare function preventDefaults(event: any): void;
37
+ declare function classesToSelector(str: string): string;
38
+ declare function getElementWidth(el: HTMLElement): number;
39
+ declare function isContainerVisible(el: HTMLElement): boolean;
40
+ declare function getFirstVisibleChild(el: HTMLElement): any;
41
+ declare function findParentByClassNames(element: HTMLElement, classNames: Array<string>): Element;
42
+ export declare function sanitizeEditableContent(element: any, cleanLineBreaks?: boolean): void;
43
+ declare function mergeValues(src: any, dest: any): void;
44
+ declare function updateListCssValues(res: any, css: any): void;
45
+ export declare class Logger {
46
+ private _result;
47
+ log(action: string): void;
48
+ get result(): string;
49
+ }
50
+ export interface IConfirmDialogOptions {
51
+ message?: string;
52
+ funcOnYes?: () => void;
53
+ funcOnNo?: () => void;
54
+ applyTitle?: string;
55
+ locale?: string;
56
+ rootElement?: HTMLElement;
57
+ cssClass?: string;
58
+ }
59
+ export declare function showConfirmDialog(message: string, callback: (res: boolean) => void, options: IConfirmDialogOptions): boolean;
60
+ export declare function configConfirmDialog(popupViewModel: PopupBaseViewModel): void;
61
+ declare function chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void): void;
62
+ export declare function compareArrays<T>(oldValue: Array<T>, newValue: Array<T>, getKey: (item: T) => any): {
63
+ addedItems: Array<T>;
64
+ deletedItems: Array<T>;
65
+ reorderedItems: Array<{
66
+ item: T;
67
+ movedForward: boolean;
68
+ }>;
69
+ mergedItems: Array<T>;
70
+ };
71
+ interface IVerticalDimensions {
72
+ paddingTop: string;
73
+ paddingBottom: string;
74
+ marginTop: string;
75
+ marginBottom: string;
76
+ heightTo: string;
77
+ borderTopWidth: string;
78
+ borderBottomWidth: string;
79
+ heightFrom: string;
80
+ }
81
+ export declare function getVerticalDimensions(el: HTMLElement): IVerticalDimensions;
82
+ export declare function setPropertiesOnElementForAnimation(el: HTMLElement, styles: any, prefix?: string): void;
83
+ export declare function prepareElementForVerticalAnimation(el: HTMLElement): void;
84
+ export declare function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
85
+ export declare function floorTo2Decimals(number: number): number;
86
+ export { mergeValues, updateListCssValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles, isBase64URL, renamedIcons };