survey-core 1.12.21 → 1.12.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +51 -5
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +51 -5
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- 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 +252 -151
- 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/base-interfaces.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/localizablestring.d.ts +1 -1
- 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/question_paneldynamic.d.ts +14 -6
- 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 +5 -2
- 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/base-interfaces.d.ts +1 -0
- package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +2 -0
- package/typings/packages/survey-core/src/localizablestring.d.ts +1 -1
- 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/question_paneldynamic.d.ts +14 -6
- 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 +5 -2
- 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,454 @@
|
|
|
1
|
+
import { Question, IConditionObject } from "./question";
|
|
2
|
+
import { JsonObjectProperty } from "./jsonobject";
|
|
3
|
+
import { Base } from "./base";
|
|
4
|
+
import { ISurveyImpl, ISurveyData, ITextProcessor, IPanel, IElement, IQuestion, IProgressInfo } from "./base-interfaces";
|
|
5
|
+
import { SurveyElement } from "./survey-element";
|
|
6
|
+
import { PanelModel } from "./panel";
|
|
7
|
+
import { PanelLayoutColumnModel } from "./panel-layout-column";
|
|
8
|
+
import { HashTable } from "./helpers";
|
|
9
|
+
import { ItemValue } from "./itemvalue";
|
|
10
|
+
import { SurveyError } from "./survey-error";
|
|
11
|
+
/**
|
|
12
|
+
* An interface used to create custom question types.
|
|
13
|
+
*
|
|
14
|
+
* Refer to the following articles for more information:
|
|
15
|
+
*
|
|
16
|
+
* - [Create Specialized Question Types](https://surveyjs.io/form-library/documentation/customize-question-types/create-specialized-question-types)
|
|
17
|
+
* - [Create Composite Question Types](https://surveyjs.io/form-library/documentation/customize-question-types/create-composite-question-types)
|
|
18
|
+
*/
|
|
19
|
+
export interface ICustomQuestionTypeConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* A name used to identify a custom question type.
|
|
22
|
+
*
|
|
23
|
+
* @see title
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* A title used for this custom question type in the UI. When `title` is not specified, the `name` property value is used.
|
|
28
|
+
*
|
|
29
|
+
* @see name
|
|
30
|
+
*/
|
|
31
|
+
title?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The name of an icon to use for the custom question type.
|
|
34
|
+
*
|
|
35
|
+
* [UI Icons](https://surveyjs.io/form-library/documentation/icons (linkStyle))
|
|
36
|
+
*/
|
|
37
|
+
iconName?: string;
|
|
38
|
+
internal?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* A function that is called when the custom question type is initialized. Use it to add, remove, or modify the type's properties (see [Override Base Question Properties](https://surveyjs.io/form-library/documentation/customize-question-types/create-composite-question-types#override-base-question-properties)).
|
|
41
|
+
*/
|
|
42
|
+
onInit?(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies whether the custom question type is available in the Toolbox and the Add Question menu in Survey Creator.
|
|
45
|
+
*
|
|
46
|
+
* Default value: `true`
|
|
47
|
+
*
|
|
48
|
+
* Set this property to `false` if your custom question type is used only to customize Property Grid content and is not meant for a survey.
|
|
49
|
+
*/
|
|
50
|
+
showInToolbox?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* A default title for questions created with this question type. Survey authors can change the default title in the JSON object or in Survey Creator's Property Grid.
|
|
53
|
+
*
|
|
54
|
+
* You can specify the question title with a string value or with an object that defines different titles for different locales:
|
|
55
|
+
*
|
|
56
|
+
* ```js
|
|
57
|
+
* import { ComponentCollection } from "survey-core";
|
|
58
|
+
*
|
|
59
|
+
* ComponentCollection.Instance.add({
|
|
60
|
+
* // ...
|
|
61
|
+
* defaultQuestionTitle: "Default title"
|
|
62
|
+
* });
|
|
63
|
+
* // ===== OR =====
|
|
64
|
+
* ComponentCollection.Instance.add({
|
|
65
|
+
* // ...
|
|
66
|
+
* defaultQuestionTitle: {
|
|
67
|
+
* en: "Default title",
|
|
68
|
+
* de: "Standardtitel",
|
|
69
|
+
* fr: "Titre par défaut"
|
|
70
|
+
* }
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
defaultQuestionTitle?: any;
|
|
75
|
+
/**
|
|
76
|
+
* An array of property names to inherit from a base question or a Boolean value that specifies whether or not to inherit all properties.
|
|
77
|
+
*
|
|
78
|
+
* Default value: `false`
|
|
79
|
+
*
|
|
80
|
+
* When you create a [custom specialized question type](https://surveyjs.io/form-library/documentation/customize-question-types/create-specialized-question-types), you base it on another question type configured within the [`questionJSON`](#questionJSON) object. If the custom question type should inherit all properties from the base type, set the `inheritBaseProps` property to `true`. If you want to inherit only certain properties, set the `inheritBaseProps` property to an array of their names.
|
|
81
|
+
*
|
|
82
|
+
* [Create Specialized Question Types](https://surveyjs.io/form-library/documentation/customize-question-types/create-specialized-question-types (linkStyle))
|
|
83
|
+
*/
|
|
84
|
+
inheritBaseProps?: false | true | Array<string>;
|
|
85
|
+
/**
|
|
86
|
+
* A function that is called when the custom question is created. Use it to access questions nested within a [composite question type](https://surveyjs.io/form-library/documentation/customize-question-types/create-composite-question-types).
|
|
87
|
+
*
|
|
88
|
+
* Parameters:
|
|
89
|
+
*
|
|
90
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
91
|
+
* The custom question.
|
|
92
|
+
*/
|
|
93
|
+
onCreated?(question: Question): void;
|
|
94
|
+
/**
|
|
95
|
+
* A function that is called when JSON schemas are loaded.
|
|
96
|
+
*
|
|
97
|
+
* Parameters:
|
|
98
|
+
*
|
|
99
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
100
|
+
* A custom question.
|
|
101
|
+
*/
|
|
102
|
+
onLoaded?(question: Question): void;
|
|
103
|
+
/**
|
|
104
|
+
* A function that is called after the entire question is rendered.
|
|
105
|
+
*
|
|
106
|
+
* Parameters:
|
|
107
|
+
*
|
|
108
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
109
|
+
* A custom question.
|
|
110
|
+
* - `htmlElement`: `any`\
|
|
111
|
+
* An HTML element that represents the custom question.
|
|
112
|
+
*/
|
|
113
|
+
onAfterRender?(question: Question, htmlElement: any): void;
|
|
114
|
+
/**
|
|
115
|
+
* A function that is called each time a question nested within a [composite question](https://surveyjs.io/form-library/documentation/customize-question-types/create-composite-question-types) is rendered.
|
|
116
|
+
*
|
|
117
|
+
* Parameters:
|
|
118
|
+
*
|
|
119
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
120
|
+
* A composite question.
|
|
121
|
+
* - `element`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
122
|
+
* A nested question.
|
|
123
|
+
* - `htmlElement`: `any`\
|
|
124
|
+
* An HTML element that represents a nested question.
|
|
125
|
+
*/
|
|
126
|
+
onAfterRenderContentElement?(question: Question, element: Question, htmlElement: any): void;
|
|
127
|
+
/**
|
|
128
|
+
* A function that is called each time a question nested within a [composite question](https://surveyjs.io/form-library/documentation/customize-question-types/create-composite-question-types) requires an update of its CSS classes.
|
|
129
|
+
*
|
|
130
|
+
* Parameters:
|
|
131
|
+
*
|
|
132
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
133
|
+
* A composite question.
|
|
134
|
+
* - `element`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
135
|
+
* A nested question.
|
|
136
|
+
* - `cssClasses`: `any`\
|
|
137
|
+
* An object with CSS classes applied to a nested question, for example, `{ root: "class1", button: "class2" }`. You can modify this object to apply custom CSS classes.
|
|
138
|
+
*/
|
|
139
|
+
onUpdateQuestionCssClasses?(question: Question, element: Question, cssClasses: any): void;
|
|
140
|
+
/**
|
|
141
|
+
* A function that is called when a custom question type property is changed. Use it to handle property changes.
|
|
142
|
+
*
|
|
143
|
+
* Parameters:
|
|
144
|
+
*
|
|
145
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
146
|
+
* A custom question.
|
|
147
|
+
* - `propertyName`: `string`\
|
|
148
|
+
* The name of the changed property.
|
|
149
|
+
* - `newValue`: `any`\
|
|
150
|
+
* A new value for the property.
|
|
151
|
+
*/
|
|
152
|
+
onPropertyChanged?(question: Question, propertyName: string, newValue: any): void;
|
|
153
|
+
/**
|
|
154
|
+
* A function that is called after the question value is changed in the UI.
|
|
155
|
+
*
|
|
156
|
+
* Parameters:
|
|
157
|
+
*
|
|
158
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
159
|
+
* A custom question.
|
|
160
|
+
* - `name`: `string`\
|
|
161
|
+
* The question's [name](https://surveyjs.io/Documentation/Library?id=Question#name).
|
|
162
|
+
* - `newValue`: `any`\
|
|
163
|
+
* A new value for the question.
|
|
164
|
+
*
|
|
165
|
+
* If you want to perform some actions when the value is changed in code as well as in the UI, implement the [`onValueSet`](https://surveyjs.io/form-library/documentation/api-reference/icustomquestiontypeconfiguration#onValueSet) function.
|
|
166
|
+
*/
|
|
167
|
+
onValueChanged?(question: Question, name: string, newValue: any): void;
|
|
168
|
+
/**
|
|
169
|
+
* A function that is called before a question value is changed in the UI.
|
|
170
|
+
*
|
|
171
|
+
* This function should return the value you want to save: `newValue`, a custom value, or `undefined` if you want to clear the question value.
|
|
172
|
+
*
|
|
173
|
+
* Parameters:
|
|
174
|
+
*
|
|
175
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
176
|
+
* A custom question.
|
|
177
|
+
* - `name`: `string`\
|
|
178
|
+
* The question's [name](https://surveyjs.io/Documentation/Library?id=Question#name).
|
|
179
|
+
* - `newValue`: `any`\
|
|
180
|
+
* A new value for the question.
|
|
181
|
+
*/
|
|
182
|
+
onValueChanging?(question: Question, name: string, newValue: any): any;
|
|
183
|
+
/**
|
|
184
|
+
* A function that is called when an [ItemValue](https://surveyjs.io/Documentation/Library?id=itemvalue) property is changed.
|
|
185
|
+
*
|
|
186
|
+
* Parameters:
|
|
187
|
+
*
|
|
188
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
189
|
+
* A custom question.
|
|
190
|
+
* - `options.obj`: [ItemValue](https://surveyjs.io/Documentation/Library?id=itemvalue)\
|
|
191
|
+
* An `ItemValue` object.
|
|
192
|
+
* - `options.propertyName`: `string`\
|
|
193
|
+
* The name of the property to which an array of `ItemValue` objects is assigned (for example, `"choices"` or `"rows"`).
|
|
194
|
+
* - `options.name`: `string`\
|
|
195
|
+
* The name of the changed property: `"text"` or `"value"`.
|
|
196
|
+
* - `options.newValue`: `any`\
|
|
197
|
+
* A new value for the property.
|
|
198
|
+
*/
|
|
199
|
+
onItemValuePropertyChanged?(question: Question, options: {
|
|
200
|
+
obj: ItemValue;
|
|
201
|
+
propertyName: string;
|
|
202
|
+
name: string;
|
|
203
|
+
newValue: any;
|
|
204
|
+
}): void;
|
|
205
|
+
/**
|
|
206
|
+
* A function that allows you to override the default `getDisplayValue()` implementation.
|
|
207
|
+
*/
|
|
208
|
+
getDisplayValue?: ((keyAsText: boolean, value: any) => any) | ((question: Question) => any);
|
|
209
|
+
/**
|
|
210
|
+
* JSON schemas of nested questions. Specify this property to create a [composite question type](https://surveyjs.io/form-library/documentation/customize-question-types/create-composite-question-types).
|
|
211
|
+
*/
|
|
212
|
+
elementsJSON?: any;
|
|
213
|
+
/**
|
|
214
|
+
* A function that allows you to create nested questions if you do not specify the `elementsJSON` property.
|
|
215
|
+
*
|
|
216
|
+
* @see elementsJSON
|
|
217
|
+
*/
|
|
218
|
+
createElements?: any;
|
|
219
|
+
/**
|
|
220
|
+
* A JSON schema for a built-in question type on which the custom question type is based.
|
|
221
|
+
*
|
|
222
|
+
* Refer to the [Create Specialized Question Types](https://surveyjs.io/form-library/documentation/customize-question-types/create-specialized-question-types) help topic for more information.
|
|
223
|
+
*/
|
|
224
|
+
questionJSON?: any;
|
|
225
|
+
/**
|
|
226
|
+
* A function that allows you to create a custom question if you do not specify the `questionJSON` property.
|
|
227
|
+
*
|
|
228
|
+
* @see questionJSON
|
|
229
|
+
*/
|
|
230
|
+
createQuestion?: any;
|
|
231
|
+
/**
|
|
232
|
+
* A function that allows you to display different error texts based on conditions.
|
|
233
|
+
* @param question A custom question. Use the `question.value` property to access the question's value.
|
|
234
|
+
* @returns An error text.
|
|
235
|
+
*/
|
|
236
|
+
getErrorText?: (question: Question) => string;
|
|
237
|
+
/**
|
|
238
|
+
* A function that is called after the question value is set.
|
|
239
|
+
*
|
|
240
|
+
* Parameters:
|
|
241
|
+
*
|
|
242
|
+
* - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question)\
|
|
243
|
+
* A custom question.
|
|
244
|
+
* - `newValue`: `any`\
|
|
245
|
+
* A new value for the question.
|
|
246
|
+
*
|
|
247
|
+
* Unlike the [`onValueChanged`](https://surveyjs.io/form-library/documentation/api-reference/icustomquestiontypeconfiguration#onValueChanged) function, which is called only when the question value is changed in the UI, `onValueSet` is called when the value is changed in code as well.
|
|
248
|
+
*
|
|
249
|
+
* [View Demo](https://surveyjs.io/survey-creator/examples/smart-search-input/ (linkStyle))
|
|
250
|
+
*/
|
|
251
|
+
onValueSet?: (question: Question, newValue: any) => void;
|
|
252
|
+
onSetQuestionValue?: (question: Question, newValue: any) => void;
|
|
253
|
+
valueToQuestion?: (val: any) => any;
|
|
254
|
+
valueFromQuestion?: (val: any) => any;
|
|
255
|
+
getValue?: (val: any) => any;
|
|
256
|
+
setValue?: (val: any) => any;
|
|
257
|
+
}
|
|
258
|
+
export declare class ComponentQuestionJSON {
|
|
259
|
+
name: string;
|
|
260
|
+
json: ICustomQuestionTypeConfiguration;
|
|
261
|
+
private dynamicProperties;
|
|
262
|
+
constructor(name: string, json: ICustomQuestionTypeConfiguration);
|
|
263
|
+
onInit(): void;
|
|
264
|
+
onCreated(question: Question): void;
|
|
265
|
+
onLoaded(question: Question): void;
|
|
266
|
+
onAfterRender(question: Question, htmlElement: any): void;
|
|
267
|
+
onAfterRenderContentElement(question: Question, element: Question, htmlElement: any): void;
|
|
268
|
+
onUpdateQuestionCssClasses(question: Question, element: Question, css: any): void;
|
|
269
|
+
onSetQuestionValue(question: Question, newValue: any): void;
|
|
270
|
+
onPropertyChanged(question: Question, propertyName: string, newValue: any): void;
|
|
271
|
+
onValueChanged(question: Question, name: string, newValue: any): void;
|
|
272
|
+
onValueChanging(question: Question, name: string, newValue: any): any;
|
|
273
|
+
onGetErrorText(question: Question): string;
|
|
274
|
+
onItemValuePropertyChanged(question: Question, item: ItemValue, propertyName: string, name: string, newValue: any): void;
|
|
275
|
+
getDisplayValue(keyAsText: boolean, value: any, question: Question): any;
|
|
276
|
+
get defaultQuestionTitle(): any;
|
|
277
|
+
setValueToQuestion(val: any): any;
|
|
278
|
+
getValueFromQuestion(val: any): any;
|
|
279
|
+
get isComposite(): boolean;
|
|
280
|
+
getDynamicProperties(): Array<JsonObjectProperty>;
|
|
281
|
+
private calcDynamicProperties;
|
|
282
|
+
}
|
|
283
|
+
export declare class ComponentCollection {
|
|
284
|
+
static Instance: ComponentCollection;
|
|
285
|
+
private customQuestionValues;
|
|
286
|
+
onCreateComposite: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCompositeModel;
|
|
287
|
+
onCreateCustom: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCustomModel;
|
|
288
|
+
onAddingJson: (name: string, isComposite: boolean) => void;
|
|
289
|
+
add(json: ICustomQuestionTypeConfiguration): void;
|
|
290
|
+
remove(componentName: string): boolean;
|
|
291
|
+
get items(): Array<ComponentQuestionJSON>;
|
|
292
|
+
getCustomQuestionByName(name: string): ComponentQuestionJSON;
|
|
293
|
+
private getCustomQuestionIndex;
|
|
294
|
+
private removeByIndex;
|
|
295
|
+
clear(includeInternal?: boolean): void;
|
|
296
|
+
createQuestion(name: string, questionJSON: ComponentQuestionJSON): Question;
|
|
297
|
+
protected createCompositeModel(name: string, questionJSON: ComponentQuestionJSON): QuestionCompositeModel;
|
|
298
|
+
protected createCustomModel(name: string, questionJSON: ComponentQuestionJSON): QuestionCustomModel;
|
|
299
|
+
}
|
|
300
|
+
export declare abstract class QuestionCustomModelBase extends Question implements ISurveyImpl, ISurveyData, IPanel {
|
|
301
|
+
customQuestion: ComponentQuestionJSON;
|
|
302
|
+
private locQuestionTitle;
|
|
303
|
+
constructor(name: string, customQuestion: ComponentQuestionJSON);
|
|
304
|
+
getType(): string;
|
|
305
|
+
locStrsChanged(): void;
|
|
306
|
+
localeChanged(): void;
|
|
307
|
+
protected getDefaultTitle(): string;
|
|
308
|
+
addUsedLocales(locales: Array<string>): void;
|
|
309
|
+
needResponsiveWidth(): boolean;
|
|
310
|
+
protected createWrapper(): void;
|
|
311
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
312
|
+
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
313
|
+
protected onFirstRenderingCore(): void;
|
|
314
|
+
onHidingContent(): void;
|
|
315
|
+
getProgressInfo(): IProgressInfo;
|
|
316
|
+
protected abstract getElement(): SurveyElement;
|
|
317
|
+
protected initElement(el: SurveyElement): void;
|
|
318
|
+
protected isSettingValOnLoading: boolean;
|
|
319
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
320
|
+
onSurveyLoad(): void;
|
|
321
|
+
afterRenderQuestionElement(el: HTMLElement): void;
|
|
322
|
+
afterRenderCore(el: any): void;
|
|
323
|
+
protected onUpdateQuestionCssClasses(element: Question, css: any): void;
|
|
324
|
+
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
325
|
+
protected setNewValue(newValue: any): void;
|
|
326
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
|
327
|
+
getSurveyData(): ISurveyData;
|
|
328
|
+
getTextProcessor(): ITextProcessor;
|
|
329
|
+
getValue(name: string): any;
|
|
330
|
+
setValue(name: string, newValue: any, locNotification: any, allowNotifyValueChanged?: boolean): any;
|
|
331
|
+
protected getQuestionByName(name: string): IQuestion;
|
|
332
|
+
protected isValueChanging(name: string, newValue: any): boolean;
|
|
333
|
+
protected convertDataName(name: string): string;
|
|
334
|
+
protected convertDataValue(name: string, newValue: any): any;
|
|
335
|
+
getVariable(name: string): any;
|
|
336
|
+
setVariable(name: string, newValue: any): void;
|
|
337
|
+
getComment(name: string): string;
|
|
338
|
+
setComment(name: string, newValue: string, locNotification: any): any;
|
|
339
|
+
getAllValues(): any;
|
|
340
|
+
getFilteredValues(): any;
|
|
341
|
+
getFilteredProperties(): any;
|
|
342
|
+
findQuestionByName(name: string): IQuestion;
|
|
343
|
+
getEditingSurveyElement(): Base;
|
|
344
|
+
addElement(element: IElement, index: number): void;
|
|
345
|
+
removeElement(element: IElement): boolean;
|
|
346
|
+
getQuestionTitleLocation(): string;
|
|
347
|
+
getQuestionTitleWidth(): string;
|
|
348
|
+
getColumsForElement(el: IElement): Array<PanelLayoutColumnModel>;
|
|
349
|
+
updateColumns(): void;
|
|
350
|
+
getQuestionStartIndex(): string;
|
|
351
|
+
getChildrenLayoutType(): string;
|
|
352
|
+
elementWidthChanged(el: IElement): void;
|
|
353
|
+
get elements(): Array<IElement>;
|
|
354
|
+
indexOf(el: IElement): number;
|
|
355
|
+
ensureRowsVisibility(): void;
|
|
356
|
+
validateContainerOnly(): void;
|
|
357
|
+
onQuestionValueChanged(el: IElement): void;
|
|
358
|
+
getQuestionErrorLocation(): string;
|
|
359
|
+
protected getContentDisplayValueCore(keyAsText: boolean, value: any, question: Question): any;
|
|
360
|
+
}
|
|
361
|
+
export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
362
|
+
private questionWrapper;
|
|
363
|
+
private hasJSONTitle;
|
|
364
|
+
getTemplate(): string;
|
|
365
|
+
getDynamicProperties(): Array<JsonObjectProperty>;
|
|
366
|
+
getDynamicType(): string;
|
|
367
|
+
getOriginalObj(): Base;
|
|
368
|
+
protected createWrapper(): void;
|
|
369
|
+
private getDynamicProperty;
|
|
370
|
+
protected getElement(): SurveyElement;
|
|
371
|
+
onAnyValueChanged(name: string, questionName: string): void;
|
|
372
|
+
protected getQuestionByName(name: string): IQuestion;
|
|
373
|
+
protected getDefaultTitle(): string;
|
|
374
|
+
setValue(name: string, newValue: any, locNotification: any, allowNotifyValueChanged?: boolean): any;
|
|
375
|
+
protected onSetData(): void;
|
|
376
|
+
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
|
377
|
+
focus(onError?: boolean): void;
|
|
378
|
+
afterRenderCore(el: any): void;
|
|
379
|
+
get contentQuestion(): Question;
|
|
380
|
+
protected createQuestion(): Question;
|
|
381
|
+
private checkCreatedQuestion;
|
|
382
|
+
onSurveyLoad(): void;
|
|
383
|
+
protected runConditionCore(values: HashTable<any>, properties: HashTable<any>): void;
|
|
384
|
+
protected convertDataName(name: string): string;
|
|
385
|
+
protected convertDataValue(name: string, newValue: any): any;
|
|
386
|
+
protected getContentQuestionValue(): any;
|
|
387
|
+
protected setContentQuestionValue(val: any): void;
|
|
388
|
+
protected canSetValueToSurvey(): boolean;
|
|
389
|
+
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
390
|
+
onSurveyValueChanged(newValue: any): void;
|
|
391
|
+
protected getValueCore(): any;
|
|
392
|
+
private isSettingValueChanged;
|
|
393
|
+
protected setValueChangedDirectly(val: boolean): void;
|
|
394
|
+
private createDynamicProperties;
|
|
395
|
+
protected initElement(el: SurveyElement): void;
|
|
396
|
+
updateElementCss(reNew?: boolean): void;
|
|
397
|
+
protected updateElementCssCore(cssClasses: any): void;
|
|
398
|
+
protected getDisplayValueCore(keyAsText: boolean, value: any): any;
|
|
399
|
+
}
|
|
400
|
+
export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
401
|
+
customQuestion: ComponentQuestionJSON;
|
|
402
|
+
static ItemVariableName: string;
|
|
403
|
+
private panelWrapper;
|
|
404
|
+
private textProcessing;
|
|
405
|
+
constructor(name: string, customQuestion: ComponentQuestionJSON);
|
|
406
|
+
protected createWrapper(): void;
|
|
407
|
+
getTemplate(): string;
|
|
408
|
+
protected getElement(): SurveyElement;
|
|
409
|
+
protected getCssRoot(cssClasses: any): string;
|
|
410
|
+
get contentPanel(): PanelModel;
|
|
411
|
+
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
|
412
|
+
updateElementCss(reNew?: boolean): void;
|
|
413
|
+
dispose(): void;
|
|
414
|
+
private editingObjValue;
|
|
415
|
+
private onEditingObjPropertyChanged;
|
|
416
|
+
private updateEditingObj;
|
|
417
|
+
private unConnectEditingObj;
|
|
418
|
+
getEditingSurveyElement(): Base;
|
|
419
|
+
getTextProcessor(): ITextProcessor;
|
|
420
|
+
findQuestionByName(name: string): IQuestion;
|
|
421
|
+
protected clearValueIfInvisibleCore(reason: string): void;
|
|
422
|
+
onAnyValueChanged(name: string, questionName: string): void;
|
|
423
|
+
get hasSingleInput(): boolean;
|
|
424
|
+
get isContainer(): boolean;
|
|
425
|
+
protected createPanel(): PanelModel;
|
|
426
|
+
protected onReadOnlyChanged(): void;
|
|
427
|
+
updateValueFromSurvey(newValue: any, clearData?: boolean): void;
|
|
428
|
+
onSurveyLoad(): void;
|
|
429
|
+
private setIsContentElement;
|
|
430
|
+
setVisibleIndex(val: number): number;
|
|
431
|
+
protected runConditionCore(values: HashTable<any>, properties: HashTable<any>): void;
|
|
432
|
+
onSurveyValueChanged(newValue: any): void;
|
|
433
|
+
getValue(name: string): any;
|
|
434
|
+
protected getQuestionByName(name: string): IQuestion;
|
|
435
|
+
private settingNewValue;
|
|
436
|
+
setValue(name: string, newValue: any, locNotification: any, allowNotifyValueChanged?: boolean): any;
|
|
437
|
+
setComment(name: string, newValue: string, locNotification: any): any;
|
|
438
|
+
getComment(name: string): string;
|
|
439
|
+
private getCommentName;
|
|
440
|
+
private runPanelTriggers;
|
|
441
|
+
getFilteredValues(): any;
|
|
442
|
+
private updateValueCoreWithPanelValue;
|
|
443
|
+
private getContentPanelValue;
|
|
444
|
+
private getValueForContentPanel;
|
|
445
|
+
private setNewValueIntoQuestion;
|
|
446
|
+
addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
|
|
447
|
+
protected collectNestedQuestionsCore(questions: Question[], visibleOnly: boolean): void;
|
|
448
|
+
protected convertDataValue(name: string, newValue: any): any;
|
|
449
|
+
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
450
|
+
private setValuesIntoQuestions;
|
|
451
|
+
protected getDisplayValueCore(keyAsText: boolean, value: any): any;
|
|
452
|
+
private setAfterRenderCallbacks;
|
|
453
|
+
get ariaRole(): string;
|
|
454
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { QuestionSelectBase } from "./question_baseselect";
|
|
2
|
+
import { LocalizableString } from "./localizablestring";
|
|
3
|
+
import { ItemValue } from "./itemvalue";
|
|
4
|
+
import { PopupModel } from "./popup";
|
|
5
|
+
import { EventBase } from "./base";
|
|
6
|
+
import { DropdownListModel } from "./dropdownListModel";
|
|
7
|
+
/**
|
|
8
|
+
* A class that describes the Dropdown question type.
|
|
9
|
+
*
|
|
10
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-dropdown/ (linkStyle))
|
|
11
|
+
*/
|
|
12
|
+
export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
13
|
+
dropdownListModelValue: DropdownListModel;
|
|
14
|
+
lastSelectedItemValue: ItemValue;
|
|
15
|
+
updateReadOnlyText(): void;
|
|
16
|
+
constructor(name: string);
|
|
17
|
+
locStrsChanged(): void;
|
|
18
|
+
get showOptionsCaption(): boolean;
|
|
19
|
+
set showOptionsCaption(val: boolean);
|
|
20
|
+
get showClearButton(): boolean;
|
|
21
|
+
get optionsCaption(): string;
|
|
22
|
+
set optionsCaption(val: string);
|
|
23
|
+
/**
|
|
24
|
+
* A placeholder for the input field.
|
|
25
|
+
*/
|
|
26
|
+
get placeholder(): string;
|
|
27
|
+
set placeholder(val: string);
|
|
28
|
+
get locPlaceholder(): LocalizableString;
|
|
29
|
+
get clearCaption(): string;
|
|
30
|
+
set clearCaption(value: string);
|
|
31
|
+
get locClearCaption(): LocalizableString;
|
|
32
|
+
getType(): string;
|
|
33
|
+
get ariaRole(): string;
|
|
34
|
+
get selectedItem(): ItemValue;
|
|
35
|
+
protected onGetSingleSelectedItem(selectedItemByValue: ItemValue): void;
|
|
36
|
+
supportAutoAdvance(): boolean;
|
|
37
|
+
private minMaxChoices;
|
|
38
|
+
protected getChoices(): Array<ItemValue>;
|
|
39
|
+
/**
|
|
40
|
+
* Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
|
|
41
|
+
*
|
|
42
|
+
* ```js
|
|
43
|
+
* "choicesMin": 10,
|
|
44
|
+
* "choicesMax": 30
|
|
45
|
+
* "choicesStep": 10
|
|
46
|
+
* ```
|
|
47
|
+
* @see choicesMax
|
|
48
|
+
* @see choicesStep
|
|
49
|
+
*/
|
|
50
|
+
get choicesMin(): number;
|
|
51
|
+
set choicesMin(val: number);
|
|
52
|
+
/**
|
|
53
|
+
* Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
|
|
54
|
+
*
|
|
55
|
+
* ```js
|
|
56
|
+
* "choicesMin": 10,
|
|
57
|
+
* "choicesMax": 30
|
|
58
|
+
* "choicesStep": 10
|
|
59
|
+
* ```
|
|
60
|
+
* @see choicesMin
|
|
61
|
+
* @see choicesStep
|
|
62
|
+
*/
|
|
63
|
+
get choicesMax(): number;
|
|
64
|
+
set choicesMax(val: number);
|
|
65
|
+
/**
|
|
66
|
+
* Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
|
|
67
|
+
*
|
|
68
|
+
* ```js
|
|
69
|
+
* "choicesMin": 10,
|
|
70
|
+
* "choicesMax": 30
|
|
71
|
+
* "choicesStep": 10
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* The default value of the `choicesStep` property is 1.
|
|
75
|
+
* @see choicesMin
|
|
76
|
+
* @see choicesMax
|
|
77
|
+
*/
|
|
78
|
+
get choicesStep(): number;
|
|
79
|
+
set choicesStep(val: number);
|
|
80
|
+
get autocomplete(): string;
|
|
81
|
+
set autocomplete(val: string);
|
|
82
|
+
/**
|
|
83
|
+
* Specifies whether to display a button that clears the selected value.
|
|
84
|
+
*/
|
|
85
|
+
allowClear: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Specifies whether users can enter a value into the input field to filter the drop-down list.
|
|
88
|
+
*
|
|
89
|
+
* [View Demo](https://surveyjs.io/form-library/examples/create-dropdown-menu-in-javascript/ (linkStyle))
|
|
90
|
+
* @see searchMode
|
|
91
|
+
* @see [SurveyModel.onChoicesSearch](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onChoicesSearch)
|
|
92
|
+
*/
|
|
93
|
+
searchEnabled: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Specifies a comparison operation used to filter the drop-down list. Applies only if [`searchEnabled`](#searchEnabled) is `true`.
|
|
96
|
+
*
|
|
97
|
+
* Possible values:
|
|
98
|
+
*
|
|
99
|
+
* - `"contains"` (default)
|
|
100
|
+
* - `"startsWith"`
|
|
101
|
+
* @see [SurveyModel.onChoicesSearch](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onChoicesSearch)
|
|
102
|
+
*/
|
|
103
|
+
searchMode: "contains" | "startsWith";
|
|
104
|
+
/**
|
|
105
|
+
* Specifies whether to wrap long texts in choice options onto a new line.
|
|
106
|
+
*
|
|
107
|
+
* Default value: `true`
|
|
108
|
+
*
|
|
109
|
+
* Disable this property if you want the texts to be truncated with ellipsis.
|
|
110
|
+
*/
|
|
111
|
+
textWrapEnabled: boolean;
|
|
112
|
+
inputHasValue: boolean;
|
|
113
|
+
readOnlyText: string;
|
|
114
|
+
/**
|
|
115
|
+
* Enables lazy loading. If you set this property to `true`, you should implement the Survey's [`onChoicesLazyLoad`](https://surveyjs.io/form-library/documentation/surveymodel#onChoicesLazyLoad) event handler.
|
|
116
|
+
* @see choicesLazyLoadPageSize
|
|
117
|
+
* @see SurveyModel.onChoicesLazyLoad
|
|
118
|
+
*/
|
|
119
|
+
choicesLazyLoadEnabled: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Specifies the number of choice items to load at a time when choices are loaded on demand.
|
|
122
|
+
* @see choicesLazyLoadEnabled
|
|
123
|
+
* @see SurveyModel.onChoicesLazyLoad
|
|
124
|
+
*/
|
|
125
|
+
choicesLazyLoadPageSize: number;
|
|
126
|
+
getControlClass(): string;
|
|
127
|
+
protected updateCssClasses(res: any, css: any): void;
|
|
128
|
+
protected calcCssClasses(css: any): any;
|
|
129
|
+
suggestedItem: ItemValue;
|
|
130
|
+
get selectedItemLocText(): LocalizableString;
|
|
131
|
+
get inputFieldComponentName(): string;
|
|
132
|
+
get showSelectedItemLocText(): boolean;
|
|
133
|
+
get showInputFieldComponent(): boolean;
|
|
134
|
+
private get selectedItemText();
|
|
135
|
+
private get useDropdownList();
|
|
136
|
+
get dropdownListModel(): DropdownListModel;
|
|
137
|
+
set dropdownListModel(val: DropdownListModel);
|
|
138
|
+
get popupModel(): PopupModel;
|
|
139
|
+
onOpened: EventBase<QuestionDropdownModel>;
|
|
140
|
+
onOpenedCallBack(): void;
|
|
141
|
+
protected onSelectedItemValuesChangedHandler(newValue: any): void;
|
|
142
|
+
protected hasUnknownValue(val: any, includeOther: boolean, isFilteredChoices: boolean, checkEmptyValue: boolean): boolean;
|
|
143
|
+
protected needConvertRenderedOtherToDataValue(): boolean;
|
|
144
|
+
protected getItemIfChoicesNotContainThisValue(value: any, text?: string): any;
|
|
145
|
+
protected onVisibleChoicesChanged(): void;
|
|
146
|
+
protected getFirstInputElementId(): string;
|
|
147
|
+
getInputId(): string;
|
|
148
|
+
clearValue(keepComment?: boolean): void;
|
|
149
|
+
afterRenderCore(el: any): void;
|
|
150
|
+
onClick(e: any): void;
|
|
151
|
+
onKeyUp(event: any): void;
|
|
152
|
+
protected supportEmptyValidation(): boolean;
|
|
153
|
+
protected onBlurCore(event: any): void;
|
|
154
|
+
protected onFocusCore(event: any): void;
|
|
155
|
+
dispose(): void;
|
|
156
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Question } from "./question";
|
|
2
|
+
/**
|
|
3
|
+
* A Model for an question that renders empty "div" tag. It used as a base class for some custom widgets
|
|
4
|
+
*/
|
|
5
|
+
export declare class QuestionEmptyModel extends Question {
|
|
6
|
+
constructor(name: string);
|
|
7
|
+
getType(): string;
|
|
8
|
+
}
|