survey-core 1.12.21 → 1.12.22
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.
- package/default.css +8715 -0
- package/default.css.map +1 -0
- package/default.fontless.css +8495 -0
- package/default.fontless.css.map +1 -0
- package/default.fontless.min.css +6 -0
- package/default.min.css +6 -0
- package/defaultV2.css +1 -1
- package/defaultV2.fontless.css +1 -1
- package/defaultV2.fontless.min.css +1 -1
- package/defaultV2.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +5 -0
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/basque.min.js.LICENSE.txt +5 -0
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/bulgarian.min.js.LICENSE.txt +5 -0
- package/i18n/burmese.js +1 -1
- package/i18n/burmese.min.js +1 -1
- package/i18n/burmese.min.js.LICENSE.txt +5 -0
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/catalan.min.js.LICENSE.txt +5 -0
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +5 -0
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +5 -0
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +5 -0
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +5 -0
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +5 -0
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/estonian.min.js.LICENSE.txt +5 -0
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +5 -0
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +5 -0
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/georgian.min.js.LICENSE.txt +5 -0
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +5 -0
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/greek.min.js.LICENSE.txt +5 -0
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +5 -0
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hindi.min.js.LICENSE.txt +5 -0
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +5 -0
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/icelandic.min.js.LICENSE.txt +5 -0
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +5 -0
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +5 -0
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +5 -0
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +5 -0
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/kazakh.min.js.LICENSE.txt +5 -0
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +5 -0
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/latvian.min.js.LICENSE.txt +5 -0
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/lithuanian.min.js.LICENSE.txt +5 -0
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/macedonian.min.js.LICENSE.txt +5 -0
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +5 -0
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/nl-BE.min.js.LICENSE.txt +5 -0
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +5 -0
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +5 -0
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/philippines.min.js.LICENSE.txt +5 -0
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +5 -0
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese-br.min.js.LICENSE.txt +5 -0
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +5 -0
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +5 -0
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +5 -0
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/serbian.min.js.LICENSE.txt +5 -0
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +5 -0
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +5 -0
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/spanish.min.js.LICENSE.txt +5 -0
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swahili.min.js.LICENSE.txt +5 -0
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/swedish.min.js.LICENSE.txt +5 -0
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/tajik.min.js.LICENSE.txt +5 -0
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/telugu.min.js.LICENSE.txt +5 -0
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/thai.min.js.LICENSE.txt +5 -0
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/traditional-chinese.min.js.LICENSE.txt +5 -0
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/turkish.min.js.LICENSE.txt +5 -0
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/ukrainian.min.js.LICENSE.txt +5 -0
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/urdu.min.js.LICENSE.txt +5 -0
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/vietnamese.min.js.LICENSE.txt +5 -0
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/i18n/welsh.min.js.LICENSE.txt +5 -0
- package/icons/iconsV1.js +1 -1
- package/icons/iconsV1.min.js +1 -1
- package/icons/iconsV1.min.js.LICENSE.txt +5 -0
- package/icons/iconsV2.js +1 -1
- package/icons/iconsV2.min.js +1 -1
- package/icons/iconsV2.min.js.LICENSE.txt +5 -0
- package/modern.css +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +131 -46
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.core.min.js.LICENSE.txt +10 -0
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.i18n.min.js.LICENSE.txt +5 -0
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-dark.min.js.LICENSE.txt +5 -0
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light-panelless.js +156 -0
- package/themes/borderless-light-panelless.js.map +1 -0
- package/themes/borderless-light-panelless.min.js +2 -0
- package/themes/borderless-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/borderless-light.min.js.LICENSE.txt +5 -0
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-dark.min.js.LICENSE.txt +5 -0
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/contrast-light.min.js.LICENSE.txt +5 -0
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +5 -0
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/default-light.min.js.LICENSE.txt +5 -0
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-dark.min.js.LICENSE.txt +5 -0
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light-panelles.min.js.LICENSE.txt +5 -0
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/doubleborder-light.min.js.LICENSE.txt +5 -0
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-dark.min.js.LICENSE.txt +5 -0
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/flat-light.min.js.LICENSE.txt +5 -0
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/index.min.js.LICENSE.txt +5 -0
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-dark.min.js.LICENSE.txt +5 -0
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/layered-light.min.js.LICENSE.txt +5 -0
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-dark.min.js.LICENSE.txt +5 -0
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/plain-light.min.js.LICENSE.txt +5 -0
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-dark.min.js.LICENSE.txt +5 -0
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/sharp-light.min.js.LICENSE.txt +5 -0
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-dark.min.js.LICENSE.txt +5 -0
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/solid-light.min.js.LICENSE.txt +5 -0
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-dark.min.js.LICENSE.txt +5 -0
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/themes/three-dimensional-light.min.js.LICENSE.txt +5 -0
- package/ts3.4/typings/packages/survey-core/src/panel.d.ts +2 -1
- package/ts3.4/typings/packages/survey-core/src/question_custom.d.ts +3 -0
- package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +17 -6
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +11 -6
- package/ts3.4/typings/packages/survey-core/src/textPreProcessor.d.ts +1 -0
- package/typings/entries/chunks/core-wo-model.d.ts +10 -0
- package/typings/entries/chunks/model.d.ts +95 -95
- package/typings/entries/index.d.ts +2 -0
- package/typings/packages/survey-core/src/panel.d.ts +2 -1
- package/typings/packages/survey-core/src/question_custom.d.ts +3 -0
- package/typings/packages/survey-core/src/survey-events-api.d.ts +17 -6
- package/typings/packages/survey-core/src/survey.d.ts +11 -6
- package/typings/packages/survey-core/src/textPreProcessor.d.ts +1 -0
- package/typings/src/actions/action.d.ts +300 -0
- package/typings/src/actions/adaptive-container.d.ts +29 -0
- package/typings/src/actions/container.d.ts +59 -0
- package/typings/src/base-interfaces.d.ts +366 -0
- package/typings/src/base.d.ts +333 -0
- package/typings/src/calculatedValue.d.ts +49 -0
- package/typings/src/choicesRestful.d.ts +177 -0
- package/typings/src/conditionProcessValue.d.ts +25 -0
- package/typings/src/conditions.d.ts +98 -0
- package/typings/src/conditionsParser.d.ts +14 -0
- package/typings/src/console-warnings.d.ts +6 -0
- package/typings/src/defaultCss/defaultCss.d.ts +873 -0
- package/typings/src/defaultTitle.d.ts +3 -0
- package/typings/src/dragdrop/choices.d.ts +21 -0
- package/typings/src/dragdrop/core.d.ts +55 -0
- package/typings/src/dragdrop/dom-adapter.d.ts +49 -0
- package/typings/src/dragdrop/engine.d.ts +6 -0
- package/typings/src/dragdrop/matrix-rows.d.ts +19 -0
- package/typings/src/dragdrop/ranking-choices.d.ts +26 -0
- package/typings/src/dragdrop/ranking-select-to-rank.d.ts +17 -0
- package/typings/src/dropdownListModel.d.ts +97 -0
- package/typings/src/dropdownMultiSelectListModel.d.ts +37 -0
- package/typings/src/dxSurveyService.d.ts +18 -0
- package/typings/src/element-helper.d.ts +8 -0
- package/typings/src/error.d.ts +81 -0
- package/typings/src/expressionItems.d.ts +57 -0
- package/typings/src/expressions/expressionParser.d.ts +54 -0
- package/typings/src/expressions/expressions.d.ts +135 -0
- package/typings/src/flowpanel.d.ts +34 -0
- package/typings/src/functionsfactory.d.ts +14 -0
- package/typings/src/global_variables_utils.d.ts +30 -0
- package/typings/src/header.d.ts +87 -0
- package/typings/src/helpers.d.ts +44 -0
- package/typings/src/itemvalue.d.ts +93 -0
- package/typings/src/jsonobject.d.ts +378 -0
- package/typings/src/list.d.ts +144 -0
- package/typings/src/localizablestring.d.ts +125 -0
- package/typings/src/localization/english.d.ts +109 -0
- package/typings/src/martixBase.d.ts +133 -0
- package/typings/src/mask/input_element_adapter.d.ts +16 -0
- package/typings/src/mask/mask_base.d.ts +29 -0
- package/typings/src/mask/mask_currency.d.ts +41 -0
- package/typings/src/mask/mask_datetime.d.ts +91 -0
- package/typings/src/mask/mask_numeric.d.ts +90 -0
- package/typings/src/mask/mask_pattern.d.ts +78 -0
- package/typings/src/mask/mask_utils.d.ts +20 -0
- package/typings/src/multiSelectListModel.d.ts +17 -0
- package/typings/src/notifier.d.ts +30 -0
- package/typings/src/page.d.ts +133 -0
- package/typings/src/panel-layout-column.d.ts +9 -0
- package/typings/src/panel.d.ts +633 -0
- package/typings/src/popup-dropdown-view-model.d.ts +35 -0
- package/typings/src/popup-modal-view-model.d.ts +16 -0
- package/typings/src/popup-survey.d.ts +132 -0
- package/typings/src/popup-utils.d.ts +4 -0
- package/typings/src/popup-view-model.d.ts +81 -0
- package/typings/src/popup.d.ts +66 -0
- package/typings/src/progress-buttons.d.ts +44 -0
- package/typings/src/question.d.ts +949 -0
- package/typings/src/questionCustomWidgets.d.ts +46 -0
- package/typings/src/question_baseselect.d.ts +547 -0
- package/typings/src/question_boolean.d.ts +116 -0
- package/typings/src/question_buttongroup.d.ts +51 -0
- package/typings/src/question_checkbox.d.ts +158 -0
- package/typings/src/question_comment.d.ts +59 -0
- package/typings/src/question_custom.d.ts +454 -0
- package/typings/src/question_dropdown.d.ts +156 -0
- package/typings/src/question_empty.d.ts +8 -0
- package/typings/src/question_expression.d.ts +110 -0
- package/typings/src/question_file.d.ts +303 -0
- package/typings/src/question_html.d.ts +26 -0
- package/typings/src/question_image.d.ts +86 -0
- package/typings/src/question_imagepicker.d.ts +168 -0
- package/typings/src/question_matrix.d.ts +198 -0
- package/typings/src/question_matrixdropdown.d.ts +56 -0
- package/typings/src/question_matrixdropdownbase.d.ts +572 -0
- package/typings/src/question_matrixdropdowncolumn.d.ts +344 -0
- package/typings/src/question_matrixdropdownrendered.d.ts +171 -0
- package/typings/src/question_matrixdynamic.d.ts +299 -0
- package/typings/src/question_multipletext.d.ts +361 -0
- package/typings/src/question_paneldynamic.d.ts +719 -0
- package/typings/src/question_radiogroup.d.ts +40 -0
- package/typings/src/question_ranking.d.ts +135 -0
- package/typings/src/question_rating.d.ts +300 -0
- package/typings/src/question_signaturepad.d.ts +149 -0
- package/typings/src/question_tagbox.d.ts +98 -0
- package/typings/src/question_text.d.ts +206 -0
- package/typings/src/question_textbase.d.ts +62 -0
- package/typings/src/questionfactory.d.ts +27 -0
- package/typings/src/questionnonvalue.d.ts +22 -0
- package/typings/src/rendererFactory.d.ts +11 -0
- package/typings/src/settings.d.ts +641 -0
- package/typings/src/survey-element.d.ts +471 -0
- package/typings/src/survey-error.d.ts +18 -0
- package/typings/src/survey-events-api.d.ts +1152 -0
- package/typings/src/survey.d.ts +3126 -0
- package/typings/src/surveyProgress.d.ts +4 -0
- package/typings/src/surveyStrings.d.ts +151 -0
- package/typings/src/surveyTaskManager.d.ts +16 -0
- package/typings/src/surveyTimerModel.d.ts +47 -0
- package/typings/src/surveyToc.d.ts +23 -0
- package/typings/src/surveytimer.d.ts +22 -0
- package/typings/src/svgbundle.d.ts +23 -0
- package/typings/src/template-renderer.d.ts +10 -0
- package/typings/src/textPreProcessor.d.ts +43 -0
- package/typings/src/themes.d.ts +222 -0
- package/typings/src/trigger.d.ts +155 -0
- package/typings/src/utils/animation.d.ts +91 -0
- package/typings/src/utils/camera.d.ts +27 -0
- package/typings/src/utils/cssClassBuilder.d.ts +6 -0
- package/typings/src/utils/devices.d.ts +12 -0
- package/typings/src/utils/dragOrClickHelper.d.ts +16 -0
- package/typings/src/utils/popup.d.ts +45 -0
- package/typings/src/utils/responsivity-manager.d.ts +31 -0
- package/typings/src/utils/taskmanager.d.ts +28 -0
- package/typings/src/utils/text-area.d.ts +58 -0
- package/typings/src/utils/utils.d.ts +86 -0
- package/typings/src/validator.d.ts +204 -0
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
import { IDialogOptions } from "./popup";
|
|
2
|
+
import { IConfirmDialogOptions } from "./utils/utils";
|
|
3
|
+
export type ISurveyEnvironment = {
|
|
4
|
+
root: Document | ShadowRoot;
|
|
5
|
+
rootElement: HTMLElement | ShadowRoot;
|
|
6
|
+
popupMountContainer: HTMLElement | string;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
10
|
+
svgMountContainer: HTMLElement | string;
|
|
11
|
+
stylesSheetsMountContainer: HTMLElement;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Global settings that apply to all surveys on the page. To specify one of the settings, use the code below:
|
|
15
|
+
*
|
|
16
|
+
* ```js
|
|
17
|
+
* import { settings } from "survey-core";
|
|
18
|
+
*
|
|
19
|
+
* settings.settingName = "value";
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare var settings: {
|
|
23
|
+
version: string;
|
|
24
|
+
/**
|
|
25
|
+
* An object that configures survey appearance when the survey is being designed in Survey Creator.
|
|
26
|
+
*
|
|
27
|
+
* Nested properties:
|
|
28
|
+
*
|
|
29
|
+
* - `showEmptyDescriptions`: `boolean`\
|
|
30
|
+
* Specifies whether to display an empty description for pages and panels. Default value: `true`.
|
|
31
|
+
*
|
|
32
|
+
* - `showEmptyTitles`: `boolean`\
|
|
33
|
+
* Specifies whether to display an empty title for pages and panels. Default value: `true`.
|
|
34
|
+
*/
|
|
35
|
+
designMode: {
|
|
36
|
+
showEmptyDescriptions: boolean;
|
|
37
|
+
showEmptyTitles: boolean;
|
|
38
|
+
};
|
|
39
|
+
allowShowEmptyDescriptionInDesignMode: boolean;
|
|
40
|
+
allowShowEmptyTitleInDesignMode: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* An object that contains properties related to localization.
|
|
43
|
+
*
|
|
44
|
+
* Nested properties:
|
|
45
|
+
*
|
|
46
|
+
* - `useLocalTimeZone`: `boolean`\
|
|
47
|
+
* Disable this property if you want internal SurveyJS functions to use methods that work with UTC date and time (`setUTCDate()` `setUTCHours()`, etc.) instead of methods that work with local date and time (`setYear()`, `setHours()`, etc.). Default value: `true`.
|
|
48
|
+
*
|
|
49
|
+
* - `defaultLocaleName`: `string`\
|
|
50
|
+
* A property key that stores a translation for the default locale. Default value: `"default"`.
|
|
51
|
+
*
|
|
52
|
+
* - `storeDuplicatedTranslations`: `boolean`\
|
|
53
|
+
* Specifies whether surveys should store translation strings that equal the translation strings in the default locale. Default value: `false`.
|
|
54
|
+
*/
|
|
55
|
+
localization: {
|
|
56
|
+
useLocalTimeZone: boolean;
|
|
57
|
+
storeDuplicatedTranslations: boolean;
|
|
58
|
+
defaultLocaleName: string;
|
|
59
|
+
};
|
|
60
|
+
useLocalTimeZone: boolean;
|
|
61
|
+
storeDuplicatedTranslations: boolean;
|
|
62
|
+
defaultLocaleName: string;
|
|
63
|
+
/**
|
|
64
|
+
* An object with properties that configure surveys when they work with a web service.
|
|
65
|
+
*
|
|
66
|
+
* Nested properties:
|
|
67
|
+
*
|
|
68
|
+
* - `encodeUrlParams`: `boolean`\
|
|
69
|
+
* Specifies whether to encode URL parameters when you access a web service. Default value: `true`.
|
|
70
|
+
*
|
|
71
|
+
* - `cacheLoadedChoices`: `boolean`\
|
|
72
|
+
* Specifies whether to cache [choices loaded from a web service](https://surveyjs.io/form-library/documentation/api-reference/questionselectbase#choicesByUrl). Default value: `true`.
|
|
73
|
+
*
|
|
74
|
+
* - `disableQuestionWhileLoadingChoices`: `boolean`\
|
|
75
|
+
* Disables a question while its choices are being loaded from a web service. Default value: `false`.
|
|
76
|
+
*
|
|
77
|
+
* - `surveyServiceUrl`: `string`\
|
|
78
|
+
* The URL of the SurveyJS Service API endpoint.
|
|
79
|
+
*
|
|
80
|
+
* - `onBeforeRequestChoices`: `(sender: ChoicesRestful, options: { request: XMLHttpRequest })`\
|
|
81
|
+
* An event that is raised before a request for choices is send. Applies to questions with a specified [`choiceByUrl`](https://surveyjs.io/form-library/documentation/api-reference/questionselectbase#choicesByUrl) property. Use the `options.request` parameter to access and modify the `XMLHttpRequest` object. For instance, you can add authentication headers to it:
|
|
82
|
+
*
|
|
83
|
+
* ```js
|
|
84
|
+
* import { settings } from "survey-core";
|
|
85
|
+
*
|
|
86
|
+
* settings.web.onBeforeSendRequest = (sender, options) => {
|
|
87
|
+
* options.request.setRequestHeader('RequestVerificationToken', requestVerificationToken);
|
|
88
|
+
* };
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
web: {
|
|
92
|
+
onBeforeRequestChoices: (sender: any, options: {
|
|
93
|
+
request: XMLHttpRequest;
|
|
94
|
+
}) => void;
|
|
95
|
+
encodeUrlParams: boolean;
|
|
96
|
+
cacheLoadedChoices: boolean;
|
|
97
|
+
disableQuestionWhileLoadingChoices: boolean;
|
|
98
|
+
surveyServiceUrl: string;
|
|
99
|
+
};
|
|
100
|
+
webserviceEncodeParameters: boolean;
|
|
101
|
+
useCachingForChoicesRestful: boolean;
|
|
102
|
+
useCachingForChoicesRestfull: boolean;
|
|
103
|
+
disableOnGettingChoicesFromWeb: boolean;
|
|
104
|
+
surveyServiceUrl: string;
|
|
105
|
+
/**
|
|
106
|
+
* An object that contains properties related to [triggers](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#conditional-survey-logic-triggers).
|
|
107
|
+
*
|
|
108
|
+
* Nested properties:
|
|
109
|
+
*
|
|
110
|
+
* - `changeNavigationButtonsOnComplete`: `boolean`\
|
|
111
|
+
* Specifies whether to re-evaluate an expression associated with the [Complete trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete) immediately when a question value changes. If the expression evaluates to `true`, the trigger is executed. Default value: `false`.\
|
|
112
|
+
* Keep this property set to `false` if you want to re-evaluate the Complete trigger's expression only when the respondents navigate to another page.
|
|
113
|
+
*
|
|
114
|
+
* - `executeCompleteOnValueChanged`: `boolean`\
|
|
115
|
+
* Specifies whether to replace the Next button with the Complete button when the [Complete trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete) is going to be executed. Default value: `true`.
|
|
116
|
+
*
|
|
117
|
+
* - `executeSkipOnValueChanged`: `boolean`\
|
|
118
|
+
* Specifies whether to re-evaluate an expression associated with the [Skip trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#skip) immediately when a question value changes. If the expression evaluates to `true`, the trigger is executed. Default value: `true`.\
|
|
119
|
+
* Disable this property if you want to re-evaluate the Skip trigger's expression only when respondents navigate to another page.
|
|
120
|
+
*/
|
|
121
|
+
triggers: {
|
|
122
|
+
changeNavigationButtonsOnComplete: boolean;
|
|
123
|
+
executeCompleteOnValueChanged: boolean;
|
|
124
|
+
executeSkipOnValueChanged: boolean;
|
|
125
|
+
};
|
|
126
|
+
executeCompleteTriggerOnValueChanged: boolean;
|
|
127
|
+
changeNavigationButtonsOnCompleteTrigger: boolean;
|
|
128
|
+
executeSkipTriggerOnValueChanged: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* An object that contains properties related to JSON serialization.
|
|
131
|
+
*
|
|
132
|
+
* Nested properties:
|
|
133
|
+
*
|
|
134
|
+
* - `itemValueSerializeAsObject`: `boolean`\
|
|
135
|
+
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances (choice options, matrix rows, columns in a [Single-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model)) as objects even when they include only the `value` property. Default value: `false`.
|
|
136
|
+
*
|
|
137
|
+
* - `itemValueSerializeDisplayText`: `boolean`\
|
|
138
|
+
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
|
|
139
|
+
*
|
|
140
|
+
* - `localizableStringSerializeAsObject`: `boolean`\
|
|
141
|
+
* Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
|
|
142
|
+
*
|
|
143
|
+
* - `matrixDropdownColumnSerializeTitle`: `boolean`\
|
|
144
|
+
* Enable this property if you want to serialize the `title` property of [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) objects even when it is empty or equal to the `name` property. Default value: `false`.
|
|
145
|
+
* @see [settings.parseNumber](https://surveyjs.io/form-library/documentation/api-reference/settings#parseNumber)
|
|
146
|
+
*/
|
|
147
|
+
serialization: {
|
|
148
|
+
itemValueSerializeAsObject: boolean;
|
|
149
|
+
itemValueSerializeDisplayText: boolean;
|
|
150
|
+
localizableStringSerializeAsObject: boolean;
|
|
151
|
+
matrixDropdownColumnSerializeTitle: boolean;
|
|
152
|
+
};
|
|
153
|
+
itemValueAlwaysSerializeAsObject: boolean;
|
|
154
|
+
itemValueAlwaysSerializeText: boolean;
|
|
155
|
+
serializeLocalizableStringAsObject: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* An object that configures lazy rendering.
|
|
158
|
+
*
|
|
159
|
+
* Nested properties:
|
|
160
|
+
*
|
|
161
|
+
* - `enabled`: `boolean`\
|
|
162
|
+
* Specifies whether to add questions to the DOM only when they get into the viewport. Default value: `false`.
|
|
163
|
+
*
|
|
164
|
+
* [View Demo](https://surveyjs.io/form-library/examples/survey-lazy/ (linkStyle))
|
|
165
|
+
* @see [SurveyModel.lazyRenderEnabled](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#lazyRenderEnabled)
|
|
166
|
+
*/
|
|
167
|
+
lazyRender: {
|
|
168
|
+
enabled: boolean;
|
|
169
|
+
firstBatchSize: number;
|
|
170
|
+
};
|
|
171
|
+
lazyRowsRendering: boolean;
|
|
172
|
+
lazyRowsRenderingStartRow: number;
|
|
173
|
+
/**
|
|
174
|
+
* An object with properties that apply to [Single-Choice](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model), [Multiple-Choice](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list), and [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model) questions.
|
|
175
|
+
*
|
|
176
|
+
* Nested properties:
|
|
177
|
+
*
|
|
178
|
+
* - `defaultRowName`: `string`\
|
|
179
|
+
* A property key that stores an object with default cell values. Default value: "default".
|
|
180
|
+
*
|
|
181
|
+
* - `defaultCellType`: `string`\
|
|
182
|
+
* The default type of matrix cells. Default value: `"dropdown"`.\
|
|
183
|
+
* You can specify this setting for individual questions or matrix columns: [`cellType`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#cellType). Refer to the `cellType` property description for information on possible values.
|
|
184
|
+
*
|
|
185
|
+
* - `totalsSuffix`: `string`\
|
|
186
|
+
* A suffix added to the name of the property that stores total values. The resulting property name consists of the matrix name and the suffix. Default value: `"-total"`.
|
|
187
|
+
*
|
|
188
|
+
* - `maxRowCount`: `number`\
|
|
189
|
+
* A maximum number of rows in a Dynamic Matrix. Default value: 1000.\
|
|
190
|
+
* You can specify this setting for an individual Dynamic Matrix: [`maxRowCount`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#maxRowCount).
|
|
191
|
+
*
|
|
192
|
+
* - `maxRowCountInCondition`: `number`\
|
|
193
|
+
* A maximum number of matrix rows included in the Condition drop-down menu in Survey Creator. This menu is used to configure conditional survey logic. Default value: 1.\
|
|
194
|
+
* If you set this property to 0, the Condition menu does not include any matrix rows. Users still can specify conditions that use matrix rows but only with Manual Entry.
|
|
195
|
+
*
|
|
196
|
+
* - `renderRemoveAsIcon`: `boolean`\
|
|
197
|
+
* Disable this property if you want to render the Remove action in Dynamic Matrix as a button. Otherwise, the action is rendered as an icon. Default value: `true`.
|
|
198
|
+
*
|
|
199
|
+
* - `columnWidthsByType`: `object`\
|
|
200
|
+
* An object that specifies fixed and minimum column width based on the column type.\
|
|
201
|
+
* Example: `settings.matrix.columnWidthsByType = { "tagbox": { minWidth: "240px", width: "300px" } }`
|
|
202
|
+
*
|
|
203
|
+
* - `rateSize`: `"small"` (default) | `"normal"`\
|
|
204
|
+
* Specifies the size of rate values. Applies to [Rating Scale](https://surveyjs.io/form-library/examples/rating-scale/) questions within matrixes.
|
|
205
|
+
*/
|
|
206
|
+
matrix: {
|
|
207
|
+
defaultCellType: string;
|
|
208
|
+
defaultRowName: string;
|
|
209
|
+
totalsSuffix: string;
|
|
210
|
+
maxRowCount: number;
|
|
211
|
+
maxRowCountInCondition: number;
|
|
212
|
+
renderRemoveAsIcon: boolean;
|
|
213
|
+
columnWidthsByType: {
|
|
214
|
+
[index: string]: {
|
|
215
|
+
minWidth?: string;
|
|
216
|
+
width?: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
rateSize: "small" | "normal";
|
|
220
|
+
};
|
|
221
|
+
matrixDefaultRowName: string;
|
|
222
|
+
matrixDefaultCellType: string;
|
|
223
|
+
matrixTotalValuePostFix: string;
|
|
224
|
+
matrixMaximumRowCount: number;
|
|
225
|
+
matrixMaxRowCountInCondition: number;
|
|
226
|
+
matrixRenderRemoveAsIcon: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* An object with properties that apply to [Dynamic Panel](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model) questions.
|
|
229
|
+
*
|
|
230
|
+
* Nested properties:
|
|
231
|
+
*
|
|
232
|
+
* - `maxPanelCount`: `number`\
|
|
233
|
+
* A maximum number of panels in Dynamic Panel. Default value: 100.\
|
|
234
|
+
* You can specify this setting for an individual Dynamic Panel: [`maxPanelCount`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#maxPanelCount).
|
|
235
|
+
*
|
|
236
|
+
* - `maxPanelCountInCondition`: `number`\
|
|
237
|
+
* A maximum number of Dynamic Panel panels included in the Condition drop-down menu in Survey Creator. This menu is used to configure conditional survey logic. Default value: 1.\
|
|
238
|
+
* If you set this property to 0, the Condition menu does not include any panel questions. Users still can specify conditions that use panel questions but only with Manual Entry.
|
|
239
|
+
*/
|
|
240
|
+
panel: {
|
|
241
|
+
maxPanelCount: number;
|
|
242
|
+
maxPanelCountInCondition: number;
|
|
243
|
+
};
|
|
244
|
+
panelDynamicMaxPanelCountInCondition: number;
|
|
245
|
+
panelMaximumPanelCount: number;
|
|
246
|
+
/**
|
|
247
|
+
* An object with properties that configure questions in read-only mode.
|
|
248
|
+
*
|
|
249
|
+
* Nested properties:
|
|
250
|
+
*
|
|
251
|
+
* - `commentRenderMode`: `"textarea"` (default) | `"div"`\
|
|
252
|
+
* Specifies how to render the input field of [Comment](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model) questions in [read-only](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model#readOnly) mode: as a disabled `<textarea>` element or as a `<div>` element with a non-editable question value within it.
|
|
253
|
+
*
|
|
254
|
+
* - `textRenderMode`: `"input"` (default) | `"div"`\
|
|
255
|
+
* Specifies how to render the input field of [Text](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model) questions in [read-only](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#readOnly) mode: as a disabled `<input>` element or as a `<div>` element with a non-editable question value within it.
|
|
256
|
+
*/
|
|
257
|
+
readOnly: {
|
|
258
|
+
enableValidation: boolean;
|
|
259
|
+
commentRenderMode: string;
|
|
260
|
+
textRenderMode: string;
|
|
261
|
+
};
|
|
262
|
+
readOnlyCommentRenderMode: string;
|
|
263
|
+
readOnlyTextRenderMode: string;
|
|
264
|
+
/**
|
|
265
|
+
* An object with properties that configure question numbering.
|
|
266
|
+
*
|
|
267
|
+
* Nested properties:
|
|
268
|
+
*
|
|
269
|
+
* - `includeQuestionsWithHiddenNumber`: `boolean`\
|
|
270
|
+
* Specifies whether to number questions whose [`showNumber`](https://surveyjs.io/form-library/documentation/api-reference/question#showNumber) property is disabled. Default value: `false`.
|
|
271
|
+
*
|
|
272
|
+
* - `includeQuestionsWithHiddenTitle`: `boolean`\
|
|
273
|
+
* Specifies whether to number questions whose [`titleLocation`](https://surveyjs.io/form-library/documentation/api-reference/question#titleLocation) property is set to `"hidden"`. Default value: `false`.
|
|
274
|
+
*/
|
|
275
|
+
numbering: {
|
|
276
|
+
includeQuestionsWithHiddenNumber: boolean;
|
|
277
|
+
includeQuestionsWithHiddenTitle: boolean;
|
|
278
|
+
};
|
|
279
|
+
setQuestionVisibleIndexForHiddenTitle: boolean;
|
|
280
|
+
setQuestionVisibleIndexForHiddenNumber: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Specifies an action to perform when users press the Enter key within a survey.
|
|
283
|
+
*
|
|
284
|
+
* Possible values:
|
|
285
|
+
*
|
|
286
|
+
* - `"moveToNextEditor"` - Moves focus to the next editor.
|
|
287
|
+
* - `"loseFocus"` - Removes focus from the current editor.
|
|
288
|
+
* - `"default"` - Behaves as a standard `<input>` element.
|
|
289
|
+
*/
|
|
290
|
+
enterKeyAction: "moveToNextEditor" | "loseFocus" | "default";
|
|
291
|
+
/**
|
|
292
|
+
* An object that configures string comparison.
|
|
293
|
+
*
|
|
294
|
+
* Nested properties:
|
|
295
|
+
*
|
|
296
|
+
* - `trimStrings`: `boolean`\
|
|
297
|
+
* Specifies whether to remove whitespace from both ends of a string before the comparison. Default value: `true`.
|
|
298
|
+
*
|
|
299
|
+
* - `caseSensitive`: `boolean`\
|
|
300
|
+
* Specifies whether to differentiate between capital and lower-case letters. Default value: `false`.
|
|
301
|
+
*/
|
|
302
|
+
comparator: {
|
|
303
|
+
trimStrings: boolean;
|
|
304
|
+
caseSensitive: boolean;
|
|
305
|
+
normalizeTextCallback: (str: string, reason: string) => string;
|
|
306
|
+
};
|
|
307
|
+
expressionDisableConversionChar: string;
|
|
308
|
+
commentPrefix: string;
|
|
309
|
+
/**
|
|
310
|
+
* A suffix added to the name of the property that stores comments.
|
|
311
|
+
*
|
|
312
|
+
* Default value: "-Comment"
|
|
313
|
+
*
|
|
314
|
+
* You can specify this setting for an individual survey: [`commentSuffix`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#commentSuffix).
|
|
315
|
+
*/
|
|
316
|
+
commentSuffix: string;
|
|
317
|
+
/**
|
|
318
|
+
* A separator used in a shorthand notation that specifies a value and display text for an [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) object: `"value|text"`.
|
|
319
|
+
*
|
|
320
|
+
* Default value: `"|"`
|
|
321
|
+
* @see [settings.choicesSeparator](https://surveyjs.io/form-library/documentation/api-reference/settings#choicesSeparator)
|
|
322
|
+
*/
|
|
323
|
+
itemValueSeparator: string;
|
|
324
|
+
/**
|
|
325
|
+
* A maximum number of rate values in a [Rating](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model) question.
|
|
326
|
+
*
|
|
327
|
+
* Default value: 20
|
|
328
|
+
*/
|
|
329
|
+
ratingMaximumRateValueCount: number;
|
|
330
|
+
/**
|
|
331
|
+
* Specifies whether to close the drop-down menu of a [Multi-Select Dropdown (Tag Box)](https://surveyjs.io/form-library/examples/how-to-create-multiselect-tag-box/) question after a user selects a value.
|
|
332
|
+
*
|
|
333
|
+
* This setting applies to all Multi-Select Dropdown questions on a web page. You can use the [`closeOnSelect`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model#closeOnSelect) property to specify the same setting for an individual Multi-Select Dropdown question.
|
|
334
|
+
*/
|
|
335
|
+
tagboxCloseOnSelect: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* A time interval in milliseconds between the last entered character and the beginning of search in [Single-](https://surveyjs.io/form-library/examples/create-dropdown-menu-in-javascript/) and [Multi-Select Dropdown](https://surveyjs.io/form-library/examples/how-to-create-multiselect-tag-box/) questions. Applies only to questions with the [`choicesLazyLoadEnabled`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model#choicesLazyLoadEnabled) property set to `true`.
|
|
338
|
+
*
|
|
339
|
+
* Default value: 500
|
|
340
|
+
*
|
|
341
|
+
* [View Demo](https://surveyjs.io/form-library/examples/lazy-loading-dropdown/ (linkStyle))
|
|
342
|
+
*/
|
|
343
|
+
dropdownSearchDelay: number;
|
|
344
|
+
/**
|
|
345
|
+
* A function that activates a browser confirm dialog.
|
|
346
|
+
*
|
|
347
|
+
* Use the following code to execute this function:
|
|
348
|
+
*
|
|
349
|
+
* ```js
|
|
350
|
+
* import { settings } from "survey-core";
|
|
351
|
+
*
|
|
352
|
+
* // `result` contains `true` if the action was confirmed or `false` otherwise
|
|
353
|
+
* const result = settings.confirmActionFunc("Are you sure?");
|
|
354
|
+
* ```
|
|
355
|
+
*
|
|
356
|
+
* You can redefine the `confirmActionFunc` function if you want to display a custom dialog window. Your function should return `true` if a user confirms an action or `false` otherwise.
|
|
357
|
+
* @param message A message to be displayed in the confirm dialog window.
|
|
358
|
+
*/
|
|
359
|
+
confirmActionFunc: (message: string) => boolean;
|
|
360
|
+
/**
|
|
361
|
+
* A function that activates a proprietary SurveyJS confirm dialog.
|
|
362
|
+
*
|
|
363
|
+
* Use the following code to execute this function:
|
|
364
|
+
*
|
|
365
|
+
* ```js
|
|
366
|
+
* import { settings } from "survey-core";
|
|
367
|
+
*
|
|
368
|
+
* settings.confirmActionAsync("Are you sure?", (confirmed) => {
|
|
369
|
+
* if (confirmed) {
|
|
370
|
+
* // ...
|
|
371
|
+
* // Proceed with the action
|
|
372
|
+
* // ...
|
|
373
|
+
* } else {
|
|
374
|
+
* // ...
|
|
375
|
+
* // Cancel the action
|
|
376
|
+
* // ...
|
|
377
|
+
* }
|
|
378
|
+
* });
|
|
379
|
+
* ```
|
|
380
|
+
*
|
|
381
|
+
* You can redefine the `confirmActionAsync` function if you want to display a custom dialog window. Your function should return `true` to be enabled; otherwise, a survey executes the [`confirmActionFunc`](#confirmActionFunc) function. Pass the dialog result as the `callback` parameter: `true` if a user confirms an action, `false` otherwise.
|
|
382
|
+
* @param message A message to be displayed in the confirm dialog window.
|
|
383
|
+
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
|
384
|
+
*/
|
|
385
|
+
confirmActionAsync: (message: string, callback: (res: boolean) => void, options?: IConfirmDialogOptions) => boolean;
|
|
386
|
+
/**
|
|
387
|
+
* A minimum width value for all survey elements.
|
|
388
|
+
*
|
|
389
|
+
* Default value: `"300px"`
|
|
390
|
+
*
|
|
391
|
+
* You can override this setting for individual elements: [`minWidth`](https://surveyjs.io/form-library/documentation/api-reference/surveyelement#minWidth).
|
|
392
|
+
*/
|
|
393
|
+
minWidth: string;
|
|
394
|
+
/**
|
|
395
|
+
* A maximum width value for all survey elements.
|
|
396
|
+
*
|
|
397
|
+
* Default value: `"100%"`
|
|
398
|
+
*
|
|
399
|
+
* You can override this setting for individual elements: [`maxWidth`](https://surveyjs.io/form-library/documentation/api-reference/surveyelement#maxWidth).
|
|
400
|
+
*/
|
|
401
|
+
maxWidth: string;
|
|
402
|
+
/**
|
|
403
|
+
* Specifies how many times surveys can re-evaluate expressions when a question value changes. This limit helps avoid recursions in expressions.
|
|
404
|
+
*
|
|
405
|
+
* Default value: 10
|
|
406
|
+
*/
|
|
407
|
+
maxConditionRunCountOnValueChanged: number;
|
|
408
|
+
/**
|
|
409
|
+
* An object that configures notifications.
|
|
410
|
+
*
|
|
411
|
+
* Nested properties:
|
|
412
|
+
*
|
|
413
|
+
* - `lifetime`: `number`\
|
|
414
|
+
* Specifies a time period during which a notification is displayed; measured in milliseconds. Default value: 2000.
|
|
415
|
+
*/
|
|
416
|
+
notifications: {
|
|
417
|
+
lifetime: number;
|
|
418
|
+
};
|
|
419
|
+
/**
|
|
420
|
+
* Specifies how many milliseconds a survey should wait before it automatically switches to the next page. Applies only when [auto-advance](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#autoAdvanceEnabled) is enabled.
|
|
421
|
+
*
|
|
422
|
+
* Default value: 300
|
|
423
|
+
*/
|
|
424
|
+
autoAdvanceDelay: number;
|
|
425
|
+
/**
|
|
426
|
+
* Specifies the direction in which to lay out Checkbox and Radio Button Group items. This setting affects the resulting UI when items are arranged in [more than one column](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model#colCount).
|
|
427
|
+
*
|
|
428
|
+
* Possible values:
|
|
429
|
+
*
|
|
430
|
+
* - `"column"` (default) - Items fill the current column, then move on to the next column.
|
|
431
|
+
* - `"row"` - Items fill the current row, then move on to the next row.
|
|
432
|
+
*/
|
|
433
|
+
itemFlowDirection: string;
|
|
434
|
+
/**
|
|
435
|
+
* @deprecated Use the [`itemFlowDirection`](https://surveyjs.io/form-library/documentation/api-reference/settings#itemFlowDirection) property instead.
|
|
436
|
+
*/
|
|
437
|
+
showItemsInOrder: string;
|
|
438
|
+
/**
|
|
439
|
+
* A value to save in survey results when respondents select the "None" choice item.
|
|
440
|
+
*
|
|
441
|
+
* Default value: `"none"`
|
|
442
|
+
*/
|
|
443
|
+
noneItemValue: string;
|
|
444
|
+
/**
|
|
445
|
+
* A value to save in survey results when respondents select the "Refuse to answer" choice item.
|
|
446
|
+
*
|
|
447
|
+
* Default value: `"refused"`
|
|
448
|
+
*/
|
|
449
|
+
refuseItemValue: string;
|
|
450
|
+
/**
|
|
451
|
+
* A value to save in survey results when respondents select the "Don't know" choice item.
|
|
452
|
+
*
|
|
453
|
+
* Default value: `"dontknow"`
|
|
454
|
+
*/
|
|
455
|
+
dontKnowItemValue: string;
|
|
456
|
+
/**
|
|
457
|
+
* An object whose properties specify the order of the special choice items ("None", "Other", "Select All", "Refuse to answer", "Don't know") in select-based questions.
|
|
458
|
+
*
|
|
459
|
+
* Default value: `{ selectAllItem: [-1], noneItem: [1], otherItem: [2], dontKnowItem: [3], otherItem: [4] }`
|
|
460
|
+
*
|
|
461
|
+
* Use this object to reorder special choices. Each property accepts an array of integer numbers. Negative numbers place a special choice item above regular choice items, positive numbers place it below them. For instance, the code below specifies the following order of choices: None, Select All, regular choices, Other.
|
|
462
|
+
*
|
|
463
|
+
* ```js
|
|
464
|
+
* import { settings } from "survey-core";
|
|
465
|
+
*
|
|
466
|
+
* settings.specialChoicesOrder.noneItem = [-2];
|
|
467
|
+
* settings.specialChoicesOrder.selectAllItem = [-1];
|
|
468
|
+
* settings.specialChoicesOrder.otherItem = [1];
|
|
469
|
+
* ```
|
|
470
|
+
*
|
|
471
|
+
* If you want to duplicate a special choice item above and below other choices, add two numbers to the corresponding array:
|
|
472
|
+
*
|
|
473
|
+
* ```js
|
|
474
|
+
* settings.specialChoicesOrder.selectAllItem = [-1, 3] // Displays Select All above and below other choices
|
|
475
|
+
* ```
|
|
476
|
+
*/
|
|
477
|
+
specialChoicesOrder: {
|
|
478
|
+
selectAllItem: number[];
|
|
479
|
+
noneItem: number[];
|
|
480
|
+
refuseItem: number[];
|
|
481
|
+
dontKnowItem: number[];
|
|
482
|
+
otherItem: number[];
|
|
483
|
+
};
|
|
484
|
+
/**
|
|
485
|
+
* One or several characters used to separate choice options in a list.
|
|
486
|
+
*
|
|
487
|
+
* Default value: `", "`
|
|
488
|
+
* @see [settings.itemValueSeparator](https://surveyjs.io/form-library/documentation/api-reference/settings#itemValueSeparator)
|
|
489
|
+
*/
|
|
490
|
+
choicesSeparator: string;
|
|
491
|
+
/**
|
|
492
|
+
* A list of supported validators by question type.
|
|
493
|
+
*/
|
|
494
|
+
supportedValidators: {
|
|
495
|
+
question: string[];
|
|
496
|
+
comment: string[];
|
|
497
|
+
text: string[];
|
|
498
|
+
checkbox: string[];
|
|
499
|
+
imagepicker: string[];
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* Specifies a minimum date that users can enter into a [Text](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model) question with [`inputType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#inputType) set to `"date"` or `"datetime-local"`. Set this property to a string with the folllowing format: `"yyyy-mm-dd"`.
|
|
503
|
+
*/
|
|
504
|
+
minDate: string;
|
|
505
|
+
/**
|
|
506
|
+
* Specifies a maximum date that users can enter into a [Text](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model) question with [`inputType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#inputType) set to `"date"` or `"datetime-local"`. Set this property to a string with the folllowing format: `"yyyy-mm-dd"`.
|
|
507
|
+
*/
|
|
508
|
+
maxDate: string;
|
|
509
|
+
showDialog: (options: IDialogOptions, rootElement?: HTMLElement) => any;
|
|
510
|
+
showDefaultItemsInCreator: boolean;
|
|
511
|
+
/**
|
|
512
|
+
* An object that specifies icon replacements. Object keys are built-in icon names. To use a custom icon, assign its name to the key of the icon you want to replace:
|
|
513
|
+
*
|
|
514
|
+
* ```js
|
|
515
|
+
* import { settings } from "survey-core";
|
|
516
|
+
*
|
|
517
|
+
* settings.customIcons["icon-redo"] = "custom-redo-icon";
|
|
518
|
+
* ```
|
|
519
|
+
*
|
|
520
|
+
* For more information about icons in SurveyJS, refer to the following help topic: [UI Icons](https://surveyjs.io/form-library/documentation/icons).
|
|
521
|
+
*/
|
|
522
|
+
customIcons: {};
|
|
523
|
+
/**
|
|
524
|
+
* Specifies which part of a choice item responds to a drag gesture in Ranking questions.
|
|
525
|
+
*
|
|
526
|
+
* Possible values:
|
|
527
|
+
*
|
|
528
|
+
* - `"entireItem"` (default) - Users can use the entire choice item as a drag handle.
|
|
529
|
+
* - `"icon"` - Users can only use the choice item icon as a drag handle.
|
|
530
|
+
*/
|
|
531
|
+
rankingDragHandleArea: string;
|
|
532
|
+
environment: ISurveyEnvironment;
|
|
533
|
+
/**
|
|
534
|
+
* Allows you to hide the maximum length indicator in text input questions.
|
|
535
|
+
*
|
|
536
|
+
* If you specify a question's [`maxLength`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maxLength) property or a survey's [`maxTextLength`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#maxTextLength) property, text input questions indicate the number of entered characters and the character limit. Assign `false` to the `settings.showMaxLengthIndicator` property if you want to hide this indicator.
|
|
537
|
+
*
|
|
538
|
+
* Default value: `true`
|
|
539
|
+
*/
|
|
540
|
+
showMaxLengthIndicator: boolean;
|
|
541
|
+
/**
|
|
542
|
+
* Specifies whether to animate survey elements.
|
|
543
|
+
*
|
|
544
|
+
* Default value: `true`
|
|
545
|
+
*/
|
|
546
|
+
animationEnabled: boolean;
|
|
547
|
+
/**
|
|
548
|
+
* An object that specifies HTML tags to use when rendering survey, page, panel, and question titles.
|
|
549
|
+
*
|
|
550
|
+
* Default value: `{ survey: "h3", page: "h4", panel: "h4", question: "h5" }`
|
|
551
|
+
*
|
|
552
|
+
* If you want to modify HTML tags for individual titles, handle `SurveyModel`'s [`onGetTitleTagName`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetTitleTagName) event.
|
|
553
|
+
*/
|
|
554
|
+
titleTags: {
|
|
555
|
+
survey: string;
|
|
556
|
+
page: string;
|
|
557
|
+
panel: string;
|
|
558
|
+
question: string;
|
|
559
|
+
};
|
|
560
|
+
questions: {
|
|
561
|
+
inputTypes: string[];
|
|
562
|
+
dataList: string[];
|
|
563
|
+
};
|
|
564
|
+
legacyProgressBarView: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* An object with properties that configure input masks.
|
|
567
|
+
*
|
|
568
|
+
* Nested properties:
|
|
569
|
+
*
|
|
570
|
+
* - `patternPlaceholderChar`: `string`\
|
|
571
|
+
* A symbol used as a placeholder for characters to be entered in [pattern masks](https://surveyjs.io/form-library/documentation/api-reference/inputmaskpattern). Default value: `"_"`.
|
|
572
|
+
*
|
|
573
|
+
* - `patternEscapeChar`: `string`\
|
|
574
|
+
* A symbol used to insert literal representations of special characters in [pattern masks](https://surveyjs.io/form-library/documentation/api-reference/inputmaskpattern). Default value: `"\\"`.
|
|
575
|
+
*
|
|
576
|
+
* - `patternDefinitions`: `<{ [key: string]: RegExp }>`\
|
|
577
|
+
* An object that maps placeholder symbols to regular expressions in [pattern masks](https://surveyjs.io/form-library/documentation/api-reference/inputmaskpattern). Default value: `{ "9": /[0-9]/, "a": /[a-zA-Z]/, "#": /[a-zA-Z0-9]/ }`.
|
|
578
|
+
*/
|
|
579
|
+
maskSettings: {
|
|
580
|
+
patternPlaceholderChar: string;
|
|
581
|
+
patternEscapeChar: string;
|
|
582
|
+
patternDefinitions: {
|
|
583
|
+
[key: string]: RegExp;
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* Specifies whether to store date-time values in the following format: `"YYYY-MM-DDThh:mm:ss.sssZ"`. Applies only to form fields with [`inputType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#inputType) set to `"datetime-local"`.
|
|
588
|
+
*
|
|
589
|
+
* Default value: `false`
|
|
590
|
+
*
|
|
591
|
+
* If you enable this setting, date-time values are converted from local time to UTC when they are saved to the survey's [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data) object, while the question values remain in local time. Therefore, when you specify default values using a question's [`defaultValue`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#defaultValue) property, you need to use local time, but if you specify them using the `data` object, use a UTC date-time value in the following format: `"YYYY-MM-DDThh:mm:ss.sssZ"`.
|
|
592
|
+
*
|
|
593
|
+
* ```js
|
|
594
|
+
* const surveyJson = {
|
|
595
|
+
* "elements": [{
|
|
596
|
+
* "name": "datetime",
|
|
597
|
+
* "type": "text",
|
|
598
|
+
* "title": "Select a date and time",
|
|
599
|
+
* "inputType": "datetime-local",
|
|
600
|
+
* "defaultValue": "2024-07-16T12:15:00" // Local date-time value
|
|
601
|
+
* }]
|
|
602
|
+
* }
|
|
603
|
+
* ```
|
|
604
|
+
*
|
|
605
|
+
* ```js
|
|
606
|
+
* import { Model } from "survey-core";
|
|
607
|
+
* const surveyJson = { ... }
|
|
608
|
+
* const survey = new Model(surveyJson);
|
|
609
|
+
*
|
|
610
|
+
* survey.data = {
|
|
611
|
+
* datetime: "2024-07-16T12:15:00.000Z" // UTC date-time value
|
|
612
|
+
* }
|
|
613
|
+
* ```
|
|
614
|
+
*/
|
|
615
|
+
storeUtcDates: boolean;
|
|
616
|
+
onDateCreated: (newDate: Date, reason: string, val?: number | string | Date) => Date;
|
|
617
|
+
/**
|
|
618
|
+
* A function that allows you to define custom parsing rules for numbers represented as string values.
|
|
619
|
+
*
|
|
620
|
+
* The following code shows a template that you can use to implement the `parseNumber` function:
|
|
621
|
+
*
|
|
622
|
+
* ```js
|
|
623
|
+
* import { settings } from "survey-core";
|
|
624
|
+
*
|
|
625
|
+
* settings.parseNumber = (stringValue, numericValue) => {
|
|
626
|
+
* if (typeof stringValue !== "string" || !stringValue)
|
|
627
|
+
* return numericValue;
|
|
628
|
+
* let parsedNumber = numericValue;
|
|
629
|
+
* // ...
|
|
630
|
+
* // Parsing the number according to custom parsing rules
|
|
631
|
+
* // ...
|
|
632
|
+
* return parsedNumber;
|
|
633
|
+
* };
|
|
634
|
+
* ```
|
|
635
|
+
* @param stringValue A number represented as a string value.
|
|
636
|
+
* @param numericValue A number parsed using a default parsing function. `NaN` if the original string is not a number.
|
|
637
|
+
* @returns A number that results from parsing the string value.
|
|
638
|
+
* @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
|
|
639
|
+
*/
|
|
640
|
+
parseNumber: (stringValue: any, numericValue: number) => number;
|
|
641
|
+
};
|