survey-core 1.9.138 → 1.9.139

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 (257) hide show
  1. package/defaultV2.css +352 -15
  2. package/defaultV2.css.map +1 -1
  3. package/defaultV2.fontless.css +352 -15
  4. package/defaultV2.fontless.css.map +1 -1
  5. package/defaultV2.fontless.min.css +2 -2
  6. package/defaultV2.min.css +2 -2
  7. package/i18n/arabic.js +1 -1
  8. package/i18n/arabic.min.js +1 -1
  9. package/i18n/basque.js +1 -1
  10. package/i18n/basque.min.js +1 -1
  11. package/i18n/bulgarian.js +1 -1
  12. package/i18n/bulgarian.min.js +1 -1
  13. package/i18n/catalan.js +1 -1
  14. package/i18n/catalan.min.js +1 -1
  15. package/i18n/croatian.js +1 -1
  16. package/i18n/croatian.min.js +1 -1
  17. package/i18n/czech.js +1 -1
  18. package/i18n/czech.min.js +1 -1
  19. package/i18n/danish.js +1 -1
  20. package/i18n/danish.min.js +1 -1
  21. package/i18n/dutch.js +1 -1
  22. package/i18n/dutch.min.js +1 -1
  23. package/i18n/english.js +4 -3
  24. package/i18n/english.js.map +1 -1
  25. package/i18n/english.min.js +2 -2
  26. package/i18n/estonian.js +1 -1
  27. package/i18n/estonian.min.js +1 -1
  28. package/i18n/finnish.js +1 -1
  29. package/i18n/finnish.min.js +1 -1
  30. package/i18n/french.js +1 -1
  31. package/i18n/french.min.js +1 -1
  32. package/i18n/georgian.js +1 -1
  33. package/i18n/georgian.min.js +1 -1
  34. package/i18n/german.js +1 -1
  35. package/i18n/german.min.js +1 -1
  36. package/i18n/greek.js +1 -1
  37. package/i18n/greek.min.js +1 -1
  38. package/i18n/hebrew.js +1 -1
  39. package/i18n/hebrew.min.js +1 -1
  40. package/i18n/hindi.js +1 -1
  41. package/i18n/hindi.min.js +1 -1
  42. package/i18n/hungarian.js +1 -1
  43. package/i18n/hungarian.min.js +1 -1
  44. package/i18n/icelandic.js +1 -1
  45. package/i18n/icelandic.min.js +1 -1
  46. package/i18n/index.js +1 -1
  47. package/i18n/index.min.js +1 -1
  48. package/i18n/indonesian.js +1 -1
  49. package/i18n/indonesian.min.js +1 -1
  50. package/i18n/italian.js +1 -1
  51. package/i18n/italian.min.js +1 -1
  52. package/i18n/japanese.js +1 -1
  53. package/i18n/japanese.min.js +1 -1
  54. package/i18n/kazakh.js +1 -1
  55. package/i18n/kazakh.min.js +1 -1
  56. package/i18n/korean.js +1 -1
  57. package/i18n/korean.min.js +1 -1
  58. package/i18n/latvian.js +1 -1
  59. package/i18n/latvian.min.js +1 -1
  60. package/i18n/lithuanian.js +1 -1
  61. package/i18n/lithuanian.min.js +1 -1
  62. package/i18n/macedonian.js +1 -1
  63. package/i18n/macedonian.min.js +1 -1
  64. package/i18n/malay.js +1 -1
  65. package/i18n/malay.min.js +1 -1
  66. package/i18n/nl-BE.js +1 -1
  67. package/i18n/nl-BE.min.js +1 -1
  68. package/i18n/norwegian.js +1 -1
  69. package/i18n/norwegian.min.js +1 -1
  70. package/i18n/persian.js +1 -1
  71. package/i18n/persian.min.js +1 -1
  72. package/i18n/polish.js +1 -1
  73. package/i18n/polish.min.js +1 -1
  74. package/i18n/portuguese-br.js +1 -1
  75. package/i18n/portuguese-br.min.js +1 -1
  76. package/i18n/portuguese.js +1 -1
  77. package/i18n/portuguese.min.js +1 -1
  78. package/i18n/romanian.js +1 -1
  79. package/i18n/romanian.min.js +1 -1
  80. package/i18n/russian.js +1 -1
  81. package/i18n/russian.min.js +1 -1
  82. package/i18n/serbian.js +1 -1
  83. package/i18n/serbian.min.js +1 -1
  84. package/i18n/simplified-chinese.js +1 -1
  85. package/i18n/simplified-chinese.min.js +1 -1
  86. package/i18n/slovak.js +1 -1
  87. package/i18n/slovak.min.js +1 -1
  88. package/i18n/spanish.js +1 -1
  89. package/i18n/spanish.min.js +1 -1
  90. package/i18n/swahili.js +1 -1
  91. package/i18n/swahili.min.js +1 -1
  92. package/i18n/swedish.js +1 -1
  93. package/i18n/swedish.min.js +1 -1
  94. package/i18n/tajik.js +1 -1
  95. package/i18n/tajik.min.js +1 -1
  96. package/i18n/telugu.js +1 -1
  97. package/i18n/telugu.min.js +1 -1
  98. package/i18n/thai.js +1 -1
  99. package/i18n/thai.min.js +1 -1
  100. package/i18n/traditional-chinese.js +1 -1
  101. package/i18n/traditional-chinese.min.js +1 -1
  102. package/i18n/turkish.js +1 -1
  103. package/i18n/turkish.min.js +1 -1
  104. package/i18n/ukrainian.js +1 -1
  105. package/i18n/ukrainian.min.js +1 -1
  106. package/i18n/urdu.js +1 -1
  107. package/i18n/urdu.min.js +1 -1
  108. package/i18n/vietnamese.js +1 -1
  109. package/i18n/vietnamese.min.js +1 -1
  110. package/i18n/welsh.js +1 -1
  111. package/i18n/welsh.min.js +1 -1
  112. package/modern.css +19 -3
  113. package/modern.css.map +1 -1
  114. package/modern.fontless.css +19 -3
  115. package/modern.fontless.css.map +1 -1
  116. package/modern.fontless.min.css +2 -2
  117. package/modern.min.css +2 -2
  118. package/package.json +1 -1
  119. package/plugins/bootstrap-integration.js +1 -1
  120. package/plugins/bootstrap-integration.min.js +1 -1
  121. package/plugins/bootstrap-material-integration.js +1 -1
  122. package/plugins/bootstrap-material-integration.min.js +1 -1
  123. package/survey.core.js +549 -89
  124. package/survey.core.js.map +1 -1
  125. package/survey.core.min.js +3 -3
  126. package/survey.css +1 -1
  127. package/survey.i18n.js +1 -1
  128. package/survey.i18n.min.js +1 -1
  129. package/survey.min.css +1 -1
  130. package/themes/borderless-dark-panelless.js +1 -1
  131. package/themes/borderless-dark-panelless.min.js +1 -1
  132. package/themes/borderless-dark.js +1 -1
  133. package/themes/borderless-dark.min.js +1 -1
  134. package/themes/borderless-light-panelless..js +1 -1
  135. package/themes/borderless-light-panelless..min.js +1 -1
  136. package/themes/borderless-light.js +1 -1
  137. package/themes/borderless-light.min.js +1 -1
  138. package/themes/contrast-dark-panelless.js +1 -1
  139. package/themes/contrast-dark-panelless.min.js +1 -1
  140. package/themes/contrast-dark.js +1 -1
  141. package/themes/contrast-dark.min.js +1 -1
  142. package/themes/contrast-light-panelless.js +1 -1
  143. package/themes/contrast-light-panelless.min.js +1 -1
  144. package/themes/contrast-light.js +1 -1
  145. package/themes/contrast-light.min.js +1 -1
  146. package/themes/default-dark-panelless.js +1 -1
  147. package/themes/default-dark-panelless.min.js +1 -1
  148. package/themes/default-dark.js +1 -1
  149. package/themes/default-dark.min.js +1 -1
  150. package/themes/default-light-panelless.js +1 -1
  151. package/themes/default-light-panelless.min.js +1 -1
  152. package/themes/default-light.js +1 -1
  153. package/themes/default-light.min.js +1 -1
  154. package/themes/doubleborder-dark-panelless.js +1 -1
  155. package/themes/doubleborder-dark-panelless.min.js +1 -1
  156. package/themes/doubleborder-dark.js +1 -1
  157. package/themes/doubleborder-dark.min.js +1 -1
  158. package/themes/doubleborder-light-panelles.js +1 -1
  159. package/themes/doubleborder-light-panelles.min.js +1 -1
  160. package/themes/doubleborder-light.js +1 -1
  161. package/themes/doubleborder-light.min.js +1 -1
  162. package/themes/flat-dark-panelless.js +1 -1
  163. package/themes/flat-dark-panelless.min.js +1 -1
  164. package/themes/flat-dark.js +1 -1
  165. package/themes/flat-dark.min.js +1 -1
  166. package/themes/flat-light-panelless.js +1 -1
  167. package/themes/flat-light-panelless.min.js +1 -1
  168. package/themes/flat-light.js +1 -1
  169. package/themes/flat-light.min.js +1 -1
  170. package/themes/index.js +1 -1
  171. package/themes/index.min.js +1 -1
  172. package/themes/layered-dark-panelless.js +1 -1
  173. package/themes/layered-dark-panelless.min.js +1 -1
  174. package/themes/layered-dark.js +1 -1
  175. package/themes/layered-dark.min.js +1 -1
  176. package/themes/layered-light-panelless.js +1 -1
  177. package/themes/layered-light-panelless.min.js +1 -1
  178. package/themes/layered-light.js +1 -1
  179. package/themes/layered-light.min.js +1 -1
  180. package/themes/plain-dark-panelless.js +1 -1
  181. package/themes/plain-dark-panelless.min.js +1 -1
  182. package/themes/plain-dark.js +1 -1
  183. package/themes/plain-dark.min.js +1 -1
  184. package/themes/plain-light-panelless.js +1 -1
  185. package/themes/plain-light-panelless.min.js +1 -1
  186. package/themes/plain-light.js +1 -1
  187. package/themes/plain-light.min.js +1 -1
  188. package/themes/sharp-dark-panelless.js +1 -1
  189. package/themes/sharp-dark-panelless.min.js +1 -1
  190. package/themes/sharp-dark.js +1 -1
  191. package/themes/sharp-dark.min.js +1 -1
  192. package/themes/sharp-light-panelless.js +1 -1
  193. package/themes/sharp-light-panelless.min.js +1 -1
  194. package/themes/sharp-light.js +1 -1
  195. package/themes/sharp-light.min.js +1 -1
  196. package/themes/solid-dark-panelless.js +1 -1
  197. package/themes/solid-dark-panelless.min.js +1 -1
  198. package/themes/solid-dark.js +1 -1
  199. package/themes/solid-dark.min.js +1 -1
  200. package/themes/solid-light-panelless.js +1 -1
  201. package/themes/solid-light-panelless.min.js +1 -1
  202. package/themes/solid-light.js +1 -1
  203. package/themes/solid-light.min.js +1 -1
  204. package/themes/three-dimensional-dark-panelless.js +1 -1
  205. package/themes/three-dimensional-dark-panelless.min.js +1 -1
  206. package/themes/three-dimensional-dark.js +1 -1
  207. package/themes/three-dimensional-dark.min.js +1 -1
  208. package/themes/three-dimensional-light-panelless.js +1 -1
  209. package/themes/three-dimensional-light-panelless.min.js +1 -1
  210. package/themes/three-dimensional-light.js +1 -1
  211. package/themes/three-dimensional-light.min.js +1 -1
  212. package/ts3.4/typings/actions/action.d.ts +6 -1
  213. package/ts3.4/typings/base-interfaces.d.ts +1 -1
  214. package/ts3.4/typings/defaultCss/cssmodern.d.ts +1 -1
  215. package/ts3.4/typings/defaultCss/cssstandard.d.ts +1 -1
  216. package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +52 -1
  217. package/ts3.4/typings/knockout/kobase.d.ts +8 -0
  218. package/ts3.4/typings/knockout/kopage.d.ts +37 -0
  219. package/ts3.4/typings/localization/english.d.ts +1 -0
  220. package/ts3.4/typings/mask/input_element_adapter.d.ts +1 -1
  221. package/ts3.4/typings/mask/mask_datetime.d.ts +16 -1
  222. package/ts3.4/typings/mask/mask_pattern.d.ts +9 -1
  223. package/ts3.4/typings/panel.d.ts +1 -1
  224. package/ts3.4/typings/popup.d.ts +1 -0
  225. package/ts3.4/typings/question.d.ts +1 -0
  226. package/ts3.4/typings/question_boolean.d.ts +8 -0
  227. package/ts3.4/typings/question_custom.d.ts +1 -0
  228. package/ts3.4/typings/question_matrix.d.ts +1 -0
  229. package/ts3.4/typings/question_paneldynamic.d.ts +1 -0
  230. package/ts3.4/typings/question_ranking.d.ts +1 -0
  231. package/ts3.4/typings/question_signaturepad.d.ts +9 -2
  232. package/ts3.4/typings/survey-element.d.ts +4 -0
  233. package/ts3.4/typings/survey.d.ts +1 -1
  234. package/ts3.4/typings/surveyStrings.d.ts +1 -0
  235. package/typings/actions/action.d.ts +7 -1
  236. package/typings/base-interfaces.d.ts +1 -1
  237. package/typings/defaultCss/cssmodern.d.ts +1 -1
  238. package/typings/defaultCss/cssstandard.d.ts +1 -1
  239. package/typings/defaultCss/defaultV2Css.d.ts +52 -1
  240. package/typings/knockout/kobase.d.ts +8 -0
  241. package/typings/knockout/kopage.d.ts +37 -0
  242. package/typings/localization/english.d.ts +1 -0
  243. package/typings/mask/input_element_adapter.d.ts +1 -1
  244. package/typings/mask/mask_datetime.d.ts +16 -1
  245. package/typings/mask/mask_pattern.d.ts +9 -1
  246. package/typings/panel.d.ts +1 -1
  247. package/typings/popup.d.ts +1 -0
  248. package/typings/question.d.ts +1 -0
  249. package/typings/question_boolean.d.ts +8 -0
  250. package/typings/question_custom.d.ts +1 -0
  251. package/typings/question_matrix.d.ts +1 -0
  252. package/typings/question_paneldynamic.d.ts +1 -0
  253. package/typings/question_ranking.d.ts +1 -0
  254. package/typings/question_signaturepad.d.ts +9 -2
  255. package/typings/survey-element.d.ts +4 -0
  256. package/typings/survey.d.ts +1 -1
  257. package/typings/surveyStrings.d.ts +1 -0
@@ -95,6 +95,7 @@ export declare var surveyStrings: {
95
95
  timerLimitSurvey: string;
96
96
  clearCaption: string;
97
97
  signaturePlaceHolder: string;
98
+ signaturePlaceHolderReadOnly: string;
98
99
  chooseFileCaption: string;
99
100
  takePhotoCaption: string;
100
101
  photoPlaceholder: string;
@@ -153,7 +153,11 @@ export declare function createDropdownActionModel(actionOptions: IAction, dropdo
153
153
  export declare function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase, locOwner?: ILocalizableOwner): Action;
154
154
  export declare function getActionDropdownButtonTarget(container: HTMLElement): HTMLElement;
155
155
  export declare abstract class BaseAction extends Base implements IAction {
156
+ private static renderedId;
157
+ private static getNextRendredId;
156
158
  private cssClassesValue;
159
+ private rendredIdValue;
160
+ private ownerValue;
157
161
  tooltip: string;
158
162
  showTitle: boolean;
159
163
  innerCss: string;
@@ -164,7 +168,6 @@ export declare abstract class BaseAction extends Base implements IAction {
164
168
  needSeparator: boolean;
165
169
  template: string;
166
170
  mode: actionModeType;
167
- owner: ILocalizableOwner;
168
171
  visibleIndex: number;
169
172
  disableTabStop: boolean;
170
173
  disableShrink: boolean;
@@ -180,6 +183,9 @@ export declare abstract class BaseAction extends Base implements IAction {
180
183
  css?: string;
181
184
  minDimension: number;
182
185
  maxDimension: number;
186
+ get renderedId(): number;
187
+ get owner(): ILocalizableOwner;
188
+ set owner(val: ILocalizableOwner);
183
189
  get visible(): boolean;
184
190
  set visible(val: boolean);
185
191
  get enabled(): boolean;
@@ -42,7 +42,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
42
42
  getQuestionByName(name: string): IQuestion;
43
43
  pageVisibilityChanged(page: IPage, newValue: boolean): any;
44
44
  panelVisibilityChanged(panel: IPanel, newValue: boolean): any;
45
- questionVisibilityChanged(question: IQuestion, newValue: boolean): any;
45
+ questionVisibilityChanged(question: IQuestion, newValue: boolean, resetIndexes: boolean): any;
46
46
  isEditingSurveyElement: boolean;
47
47
  getQuestionClearIfInvisible(questionClearIf: string): string;
48
48
  questionsOrder: string;
@@ -390,7 +390,7 @@ export declare var modernCss: {
390
390
  root: string;
391
391
  other: string;
392
392
  placeholderInput: string;
393
- preview: string;
393
+ previewItem: string;
394
394
  fileSignBottom: string;
395
395
  fileDecorator: string;
396
396
  fileInput: string;
@@ -330,7 +330,7 @@ export declare var defaultStandardCss: {
330
330
  file: {
331
331
  root: string;
332
332
  placeholderInput: string;
333
- preview: string;
333
+ previewItem: string;
334
334
  removeButton: string;
335
335
  fileInput: string;
336
336
  removeFile: string;
@@ -193,6 +193,7 @@ export declare var defaultV2Css: {
193
193
  titleExpanded: string;
194
194
  titleCollapsed: string;
195
195
  titleDisabled: string;
196
+ titleReadOnly: string;
196
197
  titleBar: string;
197
198
  requiredText: string;
198
199
  number: string;
@@ -217,6 +218,8 @@ export declare var defaultV2Css: {
217
218
  invisible: string;
218
219
  composite: string;
219
220
  disabled: string;
221
+ readOnly: string;
222
+ preview: string;
220
223
  errorsContainer: string;
221
224
  errorsContainerTop: string;
222
225
  errorsContainerBottom: string;
@@ -253,6 +256,9 @@ export declare var defaultV2Css: {
253
256
  itemSelectAll: string;
254
257
  itemNone: string;
255
258
  itemDisabled: string;
259
+ itemReadOnly: string;
260
+ itemPreview: string;
261
+ itemPreviewSvgIconId: string;
256
262
  itemChecked: string;
257
263
  itemHover: string;
258
264
  itemInline: string;
@@ -277,6 +283,9 @@ export declare var defaultV2Css: {
277
283
  label: string;
278
284
  labelChecked: string;
279
285
  itemDisabled: string;
286
+ itemReadOnly: string;
287
+ itemPreview: string;
288
+ itemPreviewSvgIconId: string;
280
289
  itemChecked: string;
281
290
  itemHover: string;
282
291
  itemControl: string;
@@ -298,17 +307,25 @@ export declare var defaultV2Css: {
298
307
  itemExchanged: string;
299
308
  itemIndeterminate: string;
300
309
  itemDisabled: string;
310
+ itemReadOnly: string;
311
+ itemPreview: string;
301
312
  itemHover: string;
302
313
  label: string;
303
314
  labelTrue: string;
304
315
  labelFalse: string;
305
316
  switch: string;
306
317
  disabledLabel: string;
318
+ labelReadOnly: string;
319
+ labelPreview: string;
307
320
  sliderText: string;
308
321
  slider: string;
309
322
  sliderGhost: string;
310
323
  radioItem: string;
311
324
  radioItemChecked: string;
325
+ radioItemDisabled: string;
326
+ radioItemReadOnly: string;
327
+ radioItemPreview: string;
328
+ itemPreviewSvgIconId: string;
312
329
  radioLabel: string;
313
330
  radioControlLabel: string;
314
331
  radioFieldset: string;
@@ -323,6 +340,8 @@ export declare var defaultV2Css: {
323
340
  checkboxItemChecked: string;
324
341
  checkboxItemDecorator: string;
325
342
  checkboxItemDisabled: string;
343
+ checkboxItemReadOnly: string;
344
+ checkboxItemPreview: string;
326
345
  controlCheckbox: string;
327
346
  checkboxMaterialDecorator: string;
328
347
  checkboxControlLabel: string;
@@ -332,6 +351,8 @@ export declare var defaultV2Css: {
332
351
  root: string;
333
352
  small: string;
334
353
  controlDisabled: string;
354
+ controlReadOnly: string;
355
+ controlPreview: string;
335
356
  constrolWithCharacterCounter: string;
336
357
  characterCounterBig: string;
337
358
  content: string;
@@ -342,6 +363,9 @@ export declare var defaultV2Css: {
342
363
  root: string;
343
364
  rootMobile: string;
344
365
  itemLabel: string;
366
+ itemLabelReadOnly: string;
367
+ itemLabelDisabled: string;
368
+ itemLabelPreview: string;
345
369
  itemLabelOnError: string;
346
370
  itemLabelAllowFocus: string;
347
371
  itemLabelAnswered: string;
@@ -379,6 +403,8 @@ export declare var defaultV2Css: {
379
403
  controlInputFieldComponent: string;
380
404
  controlValue: string;
381
405
  controlDisabled: string;
406
+ controlReadOnly: string;
407
+ controlPreview: string;
382
408
  controlEmpty: string;
383
409
  controlLabel: string;
384
410
  filterStringInput: string;
@@ -395,6 +421,8 @@ export declare var defaultV2Css: {
395
421
  itemInline: string;
396
422
  itemChecked: string;
397
423
  itemDisabled: string;
424
+ itemReadOnly: string;
425
+ itemPreview: string;
398
426
  itemHover: string;
399
427
  label: string;
400
428
  itemDecorator: string;
@@ -424,6 +452,7 @@ export declare var defaultV2Css: {
424
452
  cell: string;
425
453
  row: string;
426
454
  rowDisabled: string;
455
+ rowReadOnly: string;
427
456
  headerCell: string;
428
457
  rowTextCell: string;
429
458
  label: string;
@@ -431,6 +460,9 @@ export declare var defaultV2Css: {
431
460
  itemValue: string;
432
461
  itemChecked: string;
433
462
  itemDisabled: string;
463
+ itemReadOnly: string;
464
+ itemPreview: string;
465
+ itemPreviewSvgIconId: string;
434
466
  itemHover: string;
435
467
  materialDecorator: string;
436
468
  itemDecorator: string;
@@ -551,6 +583,8 @@ export declare var defaultV2Css: {
551
583
  itemStarHover: string;
552
584
  itemStarSelected: string;
553
585
  itemStarDisabled: string;
586
+ itemStarReadOnly: string;
587
+ itemStarPreview: string;
554
588
  itemStarHighlighted: string;
555
589
  itemStarUnhighlighted: string;
556
590
  itemStarSmall: string;
@@ -559,6 +593,8 @@ export declare var defaultV2Css: {
559
593
  itemSmileyHover: string;
560
594
  itemSmileySelected: string;
561
595
  itemSmileyDisabled: string;
596
+ itemSmileyReadOnly: string;
597
+ itemSmileyPreview: string;
562
598
  itemSmileyHighlighted: string;
563
599
  itemSmileyScaleColored: string;
564
600
  itemSmileyRateColored: string;
@@ -567,6 +603,8 @@ export declare var defaultV2Css: {
567
603
  itemText: string;
568
604
  maxText: string;
569
605
  itemDisabled: string;
606
+ itemReadOnly: string;
607
+ itemPreview: string;
570
608
  itemFixedSize: string;
571
609
  control: string;
572
610
  itemSmall: string;
@@ -585,6 +623,8 @@ export declare var defaultV2Css: {
585
623
  root: string;
586
624
  small: string;
587
625
  controlDisabled: string;
626
+ controlReadOnly: string;
627
+ controlPreview: string;
588
628
  content: string;
589
629
  remainingCharacterCounter: string;
590
630
  onError: string;
@@ -594,9 +634,12 @@ export declare var defaultV2Css: {
594
634
  root: string;
595
635
  rootDragging: string;
596
636
  rootAnswered: string;
637
+ rootDisabled: string;
638
+ rootReadOnly: string;
639
+ rootPreview: string;
597
640
  other: string;
598
641
  placeholderInput: string;
599
- preview: string;
642
+ previewItem: string;
600
643
  fileSign: string;
601
644
  fileList: string;
602
645
  fileSignBottom: string;
@@ -685,9 +728,12 @@ export declare var defaultV2Css: {
685
728
  rootMobileMod: string;
686
729
  rootDragMod: string;
687
730
  rootDisabled: string;
731
+ rootReadOnly: string;
732
+ rootPreview: string;
688
733
  rootDesignMode: string;
689
734
  rootDragHandleAreaIcon: string;
690
735
  rootSelectToRankMod: string;
736
+ rootSelectToRankEmptyValueMod: string;
691
737
  rootSelectToRankAlignVertical: string;
692
738
  rootSelectToRankAlignHorizontal: string;
693
739
  item: string;
@@ -695,6 +741,8 @@ export declare var defaultV2Css: {
695
741
  itemIndex: string;
696
742
  itemIndexEmptyMode: string;
697
743
  itemDisabled: string;
744
+ itemReadOnly: string;
745
+ itemPreview: string;
698
746
  controlLabel: string;
699
747
  itemGhostNode: string;
700
748
  itemIconContainer: string;
@@ -771,7 +819,10 @@ export declare var defaultV2Css: {
771
819
  controlValue: string;
772
820
  controlValueItems: string;
773
821
  placeholderInput: string;
822
+ controlEditable: string;
774
823
  controlDisabled: string;
824
+ controlReadOnly: string;
825
+ controlPreview: string;
775
826
  controlEmpty: string;
776
827
  controlLabel: string;
777
828
  filterStringInput: string;
@@ -0,0 +1,8 @@
1
+ import { Base } from "survey-core";
2
+ export declare class ImplementorBase {
3
+ element: Base;
4
+ private static doIterateProperties;
5
+ readonly implementedMark = "__surveyImplementedKo";
6
+ constructor(element: Base);
7
+ dispose(): void;
8
+ }
@@ -0,0 +1,37 @@
1
+ import { PageModel } from "survey-core";
2
+ import { PanelModelBase, PanelModel, QuestionRowModel } from "survey-core";
3
+ import { SurveyElement } from "survey-core";
4
+ import { ImplementorBase } from "./kobase";
5
+ export declare class QuestionRow extends QuestionRowModel {
6
+ panel: PanelModelBase;
7
+ koElementAfterRender: any;
8
+ constructor(panel: PanelModelBase);
9
+ getElementType(el: any): "survey-panel" | "survey-question";
10
+ koAfterRender(htmlElements: any, element: SurveyElement): void;
11
+ private elementAfterRender;
12
+ rowAfterRender(elements: HTMLElement[], model: QuestionRow): void;
13
+ dispose(): void;
14
+ }
15
+ export declare class PanelImplementorBase extends ImplementorBase {
16
+ panel: PanelModelBase;
17
+ constructor(panel: PanelModelBase);
18
+ }
19
+ export declare class Panel extends PanelModel {
20
+ private _implementor;
21
+ koElementType: any;
22
+ constructor(name?: string);
23
+ protected onBaseCreating(): void;
24
+ createRow(): QuestionRowModel;
25
+ protected onCreating(): void;
26
+ protected onNumChanged(value: number): void;
27
+ dispose(): void;
28
+ }
29
+ export declare class Page extends PageModel {
30
+ private _implementor;
31
+ constructor(name?: string);
32
+ protected onBaseCreating(): void;
33
+ createRow(): QuestionRowModel;
34
+ protected onCreating(): void;
35
+ protected onNumChanged(value: number): void;
36
+ dispose(): void;
37
+ }
@@ -78,6 +78,7 @@ export declare var englishStrings: {
78
78
  timerLimitSurvey: string;
79
79
  clearCaption: string;
80
80
  signaturePlaceHolder: string;
81
+ signaturePlaceHolderReadOnly: string;
81
82
  chooseFileCaption: string;
82
83
  takePhotoCaption: string;
83
84
  photoPlaceholder: string;
@@ -4,7 +4,7 @@ export declare class InputElementAdapter {
4
4
  private inputMaskInstance;
5
5
  private inputElement;
6
6
  private prevUnmaskedValue;
7
- constructor(inputMaskInstance: InputMaskBase, inputElement: HTMLInputElement, value?: string);
7
+ constructor(inputMaskInstance: InputMaskBase, inputElement: HTMLInputElement, value?: any);
8
8
  inputMaskInstancePropertyChangedHandler: (sender: any, options: any) => void;
9
9
  clickHandler: (event: any) => void;
10
10
  beforeInputHandler: (event: any) => void;
@@ -1,10 +1,12 @@
1
1
  import { InputMaskPattern } from "./mask_pattern";
2
2
  import { IMaskedInputResult, ITextInputParams } from "./mask_utils";
3
+ declare type DateTimeMaskLexemType = "month" | "day" | "year" | "hour" | "minute" | "second" | "timeMarker" | "separator";
3
4
  export interface IDateTimeMaskLexem {
4
- type: "month" | "day" | "year" | "separator";
5
+ type: DateTimeMaskLexemType;
5
6
  value: any;
6
7
  count: number;
7
8
  maxCount: number;
9
+ upperCase: boolean;
8
10
  }
9
11
  interface IDateTimeComposition {
10
12
  day: number;
@@ -13,6 +15,7 @@ interface IDateTimeComposition {
13
15
  hour?: number;
14
16
  minute?: number;
15
17
  second?: number;
18
+ timeMarker?: string;
16
19
  min?: Date;
17
20
  max?: Date;
18
21
  }
@@ -38,9 +41,12 @@ export declare function getDateTimeLexems(pattern: string): Array<IDateTimeMaskL
38
41
  * [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
39
42
  */
40
43
  export declare class InputMaskDateTime extends InputMaskPattern {
44
+ private defaultDate;
41
45
  private turnOfTheCentury;
46
+ private twelve;
42
47
  private lexems;
43
48
  private inputDateTimeData;
49
+ private validBeginningOfNumbers;
44
50
  /**
45
51
  * A minimum date and time value that respondents can enter.
46
52
  * @see max
@@ -51,6 +57,9 @@ export declare class InputMaskDateTime extends InputMaskPattern {
51
57
  * @see min
52
58
  */
53
59
  max: string;
60
+ get hasDatePart(): boolean;
61
+ get hasTimePart(): boolean;
62
+ private get is12Hours();
54
63
  getType(): string;
55
64
  protected updateLiterals(): void;
56
65
  private leaveOnlyNumbers;
@@ -58,13 +67,19 @@ export declare class InputMaskDateTime extends InputMaskPattern {
58
67
  private initInputDateTimeData;
59
68
  getISO_8601Format(dateTime: IDateTimeComposition): string;
60
69
  private isYearValid;
70
+ private createIDateTimeCompositionWithDefaults;
71
+ private getMaxDateForMonth;
61
72
  private isDateValid;
62
73
  private getPlaceholder;
74
+ private isDateValid12;
75
+ private updateTimeMarkerInputDateTimeData;
63
76
  private updateInputDateTimeData;
77
+ private checkValidationDateTimePart;
64
78
  private getCorrectDatePartFormat;
65
79
  private createIDateTimeComposition;
66
80
  private parseTwoDigitYear;
67
81
  private getFormatedString;
82
+ private cleanTimeMarker;
68
83
  private setInputDateTimeData;
69
84
  _getMaskedValue(src: string, matchWholeMask?: boolean): string;
70
85
  private getParts;
@@ -51,8 +51,16 @@ export declare class InputMaskPattern extends InputMaskBase {
51
51
  * - `dd` - Day of the month, with leading zero for single-digit values.
52
52
  * - `yy` - Last two digits of the year.
53
53
  * - `yyyy` - A four-digit year.
54
+ * - `H` - Hours in 24-hour format.
55
+ * - `HH` - Hours in 24-hour format, with leading zero for single-digit values.
56
+ * - `h` - Hours in 12-hour format.
57
+ * - `hh` - Hours in 12-hour format, with leading zero for single-digit values.
58
+ * - `MM` - Minutes.
59
+ * - `ss` - Seconds.
60
+ * - `TT` - 12-hour clock period in upper case (AM/PM).
61
+ * - `tt` - 12-hour clock period in lower case (am/pm).
54
62
  *
55
- * Example: `mm/dd/yyyy`
63
+ * Example: `mm/dd/yyyy HH:MM:ss`
56
64
  *
57
65
  * [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
58
66
  * @see [settings.maskSettings](https://surveyjs.io/form-library/documentation/api-reference/settings#maskSettings)
@@ -555,7 +555,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
555
555
  focusIn(): void;
556
556
  protected getHasFrameV2(): boolean;
557
557
  protected getIsNested(): boolean;
558
- private get showPanelAsPage();
558
+ get showPanelAsPage(): boolean;
559
559
  protected getCssRoot(cssClasses: {
560
560
  [index: string]: string;
561
561
  }): string;
@@ -28,6 +28,7 @@ export declare class PopupModel<T = any> extends Base {
28
28
  private onDispose;
29
29
  setWidthByTarget: boolean;
30
30
  focusFirstInputSelector: string;
31
+ locale: string;
31
32
  contentComponentName: string;
32
33
  contentComponentData: T;
33
34
  verticalPosition: VerticalPosition;
@@ -271,6 +271,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
271
271
  set titleLocation(value: string);
272
272
  getTitleOwner(): ITitleOwner;
273
273
  protected getIsTitleRenderedAsString(): boolean;
274
+ protected notifySurveyOnChildrenVisibilityChanged(): boolean;
274
275
  private notifySurveyVisibilityChanged;
275
276
  protected clearValueOnHidding(isClearOnHidden: boolean): void;
276
277
  /**
@@ -46,6 +46,13 @@ export declare class QuestionBooleanModel extends Question {
46
46
  set labelTrue(val: string);
47
47
  get locLabelTrue(): LocalizableString;
48
48
  get isDeterminated(): boolean;
49
+ /**
50
+ * Specifies whether to swap the order of the Yes and No answers.
51
+ *
52
+ * Default value: `false`
53
+ *
54
+ * By default, the order is [ "No", "Yes"]. Enable this property to reorder the answers as follows: [ "Yes", "No" ].
55
+ */
49
56
  swapOrder: boolean;
50
57
  get locLabelLeft(): LocalizableString;
51
58
  get locLabelRight(): LocalizableString;
@@ -85,6 +92,7 @@ export declare class QuestionBooleanModel extends Question {
85
92
  getCheckboxItemCss(): string;
86
93
  getLabelCss(checked: boolean): string;
87
94
  get svgIcon(): string;
95
+ get itemSvgIcon(): string;
88
96
  get allowClick(): boolean;
89
97
  getCheckedLabel(): LocalizableString;
90
98
  protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
@@ -355,6 +355,7 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
355
355
  afterRenderCore(el: any): void;
356
356
  get contentQuestion(): Question;
357
357
  protected createQuestion(): Question;
358
+ private checkCreatedQuestion;
358
359
  onSurveyLoad(): void;
359
360
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
360
361
  protected convertDataName(name: string): string;
@@ -10,6 +10,7 @@ export interface IMatrixData {
10
10
  onMatrixRowChanged(row: MatrixRowModel): void;
11
11
  getCorrectedRowValue(value: any): any;
12
12
  cssClasses: any;
13
+ isDisabledStyle: boolean;
13
14
  isInputReadOnly: boolean;
14
15
  hasErrorInRow(row: MatrixRowModel): boolean;
15
16
  }
@@ -398,6 +398,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
398
398
  */
399
399
  get showQuestionNumbers(): string;
400
400
  set showQuestionNumbers(val: string);
401
+ protected notifySurveyOnChildrenVisibilityChanged(): boolean;
401
402
  /**
402
403
  * Specifies the location of the Delete Panel button relative to panel content.
403
404
  *
@@ -17,6 +17,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
17
17
  getItemTabIndex(item: ItemValue): number;
18
18
  protected supportContainerQueries(): boolean;
19
19
  get rootClass(): string;
20
+ protected isItemSelectedCore(item: ItemValue): boolean;
20
21
  protected getItemClassCore(item: ItemValue, options: any): string;
21
22
  getContainerClasses(containerType?: string): string;
22
23
  protected isItemCurrentDropTarget(item: ItemValue): boolean;
@@ -119,17 +119,24 @@ export declare class QuestionSignaturePadModel extends QuestionFileModelBase {
119
119
  set backgroundImage(val: string);
120
120
  get clearButtonCaption(): string;
121
121
  /**
122
- * A Boolean value that specifies whether to show the [placeholder](#placeholder).
122
+ * A Boolean value that specifies whether to show the placeholder text in the signature area.
123
123
  *
124
124
  * Default value: `true`
125
+ *
126
+ * Use the [`placeholder`](#placeholder) and [`placeholderReadOnly`](#placeholderReadOnly) properties to specify placeholder texts for the signature area in edit mode and in read-only or preview mode.
125
127
  */
126
128
  showPlaceholder: boolean;
129
+ get locRenderedPlaceholder(): any;
127
130
  nothingIsDrawn(): boolean;
128
131
  needShowPlaceholder(): boolean;
129
132
  /**
130
- * A placeholder for the signature area. Applies when the [`showPlaceholder`](#showPlaceholder) property is `true`.
133
+ * A placeholder text for the signature area. Applies when the [`showPlaceholder`](#showPlaceholder) property is `true`.
131
134
  */
132
135
  placeholder: string;
136
+ /**
137
+ * A placeholder text for the signature area in read-only or preview mode. Applies when the [`showPlaceholder`](#showPlaceholder) property is `true`.
138
+ */
139
+ placeholderReadOnly: string;
133
140
  onBlur: (event: any) => void;
134
141
  protected uploadResultItemToValue(r: any): any;
135
142
  protected setValueFromResult(arg: any): void;
@@ -328,6 +328,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
328
328
  isSingleInRow: boolean;
329
329
  private shouldAddRunnerStyles;
330
330
  protected get isCompact(): boolean;
331
+ private canHaveFrameStyles;
331
332
  protected getHasFrameV2(): boolean;
332
333
  protected getIsNested(): boolean;
333
334
  protected getCssRoot(cssClasses: {
@@ -398,6 +399,9 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
398
399
  get additionalTitleToolbar(): ActionContainer;
399
400
  protected getAdditionalTitleToolbar(): ActionContainer | null;
400
401
  protected getCssTitle(cssClasses: any): string;
402
+ get isDisabledStyle(): boolean;
403
+ get isReadOnlyStyle(): boolean;
404
+ get isPreviewStyle(): boolean;
401
405
  localeChanged(): void;
402
406
  private wrapperElement?;
403
407
  setWrapperElement(element?: HTMLElement): void;
@@ -2557,7 +2557,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2557
2557
  get clearValueOnDisableItems(): boolean;
2558
2558
  set clearValueOnDisableItems(val: boolean);
2559
2559
  getQuestionClearIfInvisible(questionClearIf: string): string;
2560
- questionVisibilityChanged(question: Question, newValue: boolean): void;
2560
+ questionVisibilityChanged(question: Question, newValue: boolean, resetIndexes: boolean): void;
2561
2561
  pageVisibilityChanged(page: PageModel, newValue: boolean): void;
2562
2562
  panelVisibilityChanged(panel: PanelModel, newValue: boolean): void;
2563
2563
  questionCreated(question: Question): any;
@@ -95,6 +95,7 @@ export declare var surveyStrings: {
95
95
  timerLimitSurvey: string;
96
96
  clearCaption: string;
97
97
  signaturePlaceHolder: string;
98
+ signaturePlaceHolderReadOnly: string;
98
99
  chooseFileCaption: string;
99
100
  takePhotoCaption: string;
100
101
  photoPlaceholder: string;