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,21 @@
|
|
|
1
|
+
import { ItemValue } from "../itemvalue";
|
|
2
|
+
import { QuestionSelectBase } from "../question_baseselect";
|
|
3
|
+
import { DragDropCore } from "./core";
|
|
4
|
+
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
|
5
|
+
private imagepickerControlsNode;
|
|
6
|
+
protected get draggedElementType(): string;
|
|
7
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
|
8
|
+
onShortcutCreated: (node: HTMLElement) => void;
|
|
9
|
+
private createImagePickerShortcut;
|
|
10
|
+
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
|
11
|
+
private getVisibleChoices;
|
|
12
|
+
protected doDragOver: () => any;
|
|
13
|
+
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
|
|
14
|
+
protected doBanDropHere: () => any;
|
|
15
|
+
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
|
16
|
+
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
|
17
|
+
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
|
18
|
+
protected doDrop(): any;
|
|
19
|
+
clear(): void;
|
|
20
|
+
private updateVisibleChoices;
|
|
21
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { SurveyModel } from "../survey";
|
|
2
|
+
import { EventBase } from "../base";
|
|
3
|
+
import { IShortcutText, ISurvey } from "../base-interfaces";
|
|
4
|
+
import { IDragDropEngine } from "./engine";
|
|
5
|
+
import { IDragDropDOMAdapter } from "./dom-adapter";
|
|
6
|
+
export declare abstract class DragDropCore<T> implements IDragDropEngine {
|
|
7
|
+
private surveyValue?;
|
|
8
|
+
private creator?;
|
|
9
|
+
private _isBottom;
|
|
10
|
+
get isBottom(): boolean;
|
|
11
|
+
set isBottom(val: boolean);
|
|
12
|
+
onGhostPositionChanged: EventBase<{}>;
|
|
13
|
+
protected ghostPositionChanged(): void;
|
|
14
|
+
onDragStart: EventBase<DragDropCore<T>>;
|
|
15
|
+
onDragEnd: EventBase<DragDropCore<T>>;
|
|
16
|
+
onDragClear: EventBase<DragDropCore<T>>;
|
|
17
|
+
onBeforeDrop: EventBase<DragDropCore<T>, any>;
|
|
18
|
+
onAfterDrop: EventBase<DragDropCore<T>, any>;
|
|
19
|
+
draggedElement: any;
|
|
20
|
+
protected abstract get draggedElementType(): string;
|
|
21
|
+
protected parentElement: T;
|
|
22
|
+
dropTarget: any;
|
|
23
|
+
protected get dropTargetDataAttributeName(): string;
|
|
24
|
+
protected get survey(): SurveyModel;
|
|
25
|
+
prevDropTarget: any;
|
|
26
|
+
protected allowDropHere: boolean;
|
|
27
|
+
protected domAdapter: IDragDropDOMAdapter;
|
|
28
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean, domAdapter?: IDragDropDOMAdapter);
|
|
29
|
+
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement, preventSaveTargetNode?: boolean): void;
|
|
30
|
+
private getRootElement;
|
|
31
|
+
dragInit(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
|
|
32
|
+
protected onStartDrag(event?: PointerEvent): void;
|
|
33
|
+
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
|
34
|
+
protected getShortcutText(draggedElement: IShortcutText): string;
|
|
35
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
|
36
|
+
protected getDraggedElementClass(): string;
|
|
37
|
+
protected doDragOver(): void;
|
|
38
|
+
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
|
39
|
+
protected abstract isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
|
|
40
|
+
protected banDropHere: () => void;
|
|
41
|
+
protected doBanDropHere: () => void;
|
|
42
|
+
protected findDropTargetNodeFromPoint(clientX: number, clientY: number): HTMLElement;
|
|
43
|
+
protected getDataAttributeValueByNode(node: HTMLElement): string;
|
|
44
|
+
protected getDropTargetByNode(dropTargetNode: HTMLElement, event: PointerEvent): any;
|
|
45
|
+
private capitalizeFirstLetter;
|
|
46
|
+
protected abstract getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode?: HTMLElement, event?: PointerEvent): any;
|
|
47
|
+
protected calculateVerticalMiddleOfHTMLElement(HTMLElement: HTMLElement): number;
|
|
48
|
+
protected calculateHorizontalMiddleOfHTMLElement(HTMLElement: HTMLElement): number;
|
|
49
|
+
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
|
50
|
+
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
|
51
|
+
dragOver(event: PointerEvent): void;
|
|
52
|
+
protected abstract doDrop(): any;
|
|
53
|
+
drop(): void;
|
|
54
|
+
clear(): void;
|
|
55
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IDragDropEngine } from "./engine";
|
|
2
|
+
export interface IDragDropDOMAdapter {
|
|
3
|
+
startDrag(event: PointerEvent, draggedElement: any, parentElement: any, draggedElementNode: HTMLElement, preventSaveTargetNode: boolean): void;
|
|
4
|
+
draggedElementShortcut: HTMLElement;
|
|
5
|
+
rootContainer: HTMLElement;
|
|
6
|
+
documentOrShadowRoot: Document | ShadowRoot;
|
|
7
|
+
rootElement?: HTMLElement;
|
|
8
|
+
}
|
|
9
|
+
export declare class DragDropDOMAdapter implements IDragDropDOMAdapter {
|
|
10
|
+
private dd;
|
|
11
|
+
private longTap;
|
|
12
|
+
private fitToContainer;
|
|
13
|
+
static PreventScrolling: boolean;
|
|
14
|
+
private timeoutID;
|
|
15
|
+
private startX;
|
|
16
|
+
private startY;
|
|
17
|
+
private currentX;
|
|
18
|
+
private currentY;
|
|
19
|
+
private savedTargetNode;
|
|
20
|
+
private savedTargetNodeParent;
|
|
21
|
+
private savedTargetNodeIndex;
|
|
22
|
+
private scrollIntervalId;
|
|
23
|
+
constructor(dd: IDragDropEngine, longTap?: boolean, fitToContainer?: boolean);
|
|
24
|
+
get documentOrShadowRoot(): Document | ShadowRoot;
|
|
25
|
+
get rootElement(): any;
|
|
26
|
+
private stopLongTapIfMoveEnough;
|
|
27
|
+
private get isMicroMovement();
|
|
28
|
+
private stopLongTap;
|
|
29
|
+
private startLongTapProcessing;
|
|
30
|
+
private handlePointerCancel;
|
|
31
|
+
private handleEscapeButton;
|
|
32
|
+
private onContextMenu;
|
|
33
|
+
private moveShortcutElement;
|
|
34
|
+
private getShortcutBottomCoordinate;
|
|
35
|
+
private getShortcutRightCoordinate;
|
|
36
|
+
protected requestAnimationFrame(callback: any): number;
|
|
37
|
+
protected scrollByDrag(scrollableParentNode: HTMLElement, clientY: number, clientX: number): void;
|
|
38
|
+
private doScroll;
|
|
39
|
+
private dragOver;
|
|
40
|
+
private clear;
|
|
41
|
+
private drop;
|
|
42
|
+
private doStartDrag;
|
|
43
|
+
private returnUserSelectBack;
|
|
44
|
+
draggedElementShortcut: any;
|
|
45
|
+
rootContainer: HTMLElement;
|
|
46
|
+
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement, preventSaveTargetNode?: boolean): void;
|
|
47
|
+
private getNodeIndexInParent;
|
|
48
|
+
private insertNodeToParentAtIndex;
|
|
49
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MatrixDropdownRowModelBase } from "../question_matrixdropdownbase";
|
|
2
|
+
import { QuestionMatrixDynamicModel, MatrixDynamicRowModel } from "../question_matrixdynamic";
|
|
3
|
+
import { DragDropCore } from "./core";
|
|
4
|
+
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
|
5
|
+
protected get draggedElementType(): string;
|
|
6
|
+
protected restoreUserSelectValue: string;
|
|
7
|
+
protected onStartDrag(): void;
|
|
8
|
+
private get shortcutClass();
|
|
9
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
|
10
|
+
private fromIndex;
|
|
11
|
+
private toIndex;
|
|
12
|
+
protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
|
|
13
|
+
canInsertIntoThisRow(row: MatrixDynamicRowModel): boolean;
|
|
14
|
+
protected isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
|
|
15
|
+
protected calculateIsBottom(clientY: number): boolean;
|
|
16
|
+
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
|
17
|
+
protected doDrop: () => QuestionMatrixDynamicModel;
|
|
18
|
+
clear(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ItemValue } from "../itemvalue";
|
|
2
|
+
import { DragDropChoices } from "./choices";
|
|
3
|
+
import { QuestionRankingModel } from "../question_ranking";
|
|
4
|
+
export declare class DragDropRankingChoices extends DragDropChoices {
|
|
5
|
+
protected get draggedElementType(): string;
|
|
6
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
|
7
|
+
private get shortcutClass();
|
|
8
|
+
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
|
9
|
+
private isDragOverRootNode;
|
|
10
|
+
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
|
11
|
+
private getIsDragOverRootNode;
|
|
12
|
+
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
|
|
13
|
+
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
|
14
|
+
protected doDragOver: () => any;
|
|
15
|
+
getIndices(model: any, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>): {
|
|
16
|
+
fromIndex: number;
|
|
17
|
+
toIndex: number;
|
|
18
|
+
};
|
|
19
|
+
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
|
20
|
+
reorderRankedItem: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void;
|
|
21
|
+
protected updateDraggedElementShortcut(newIndex: number): void;
|
|
22
|
+
protected ghostPositionChanged(): void;
|
|
23
|
+
protected doBanDropHere: () => any;
|
|
24
|
+
protected doDrop(): any;
|
|
25
|
+
clear(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ItemValue } from "../itemvalue";
|
|
2
|
+
import { DragDropRankingChoices } from "./ranking-choices";
|
|
3
|
+
import { QuestionRankingModel } from "../question_ranking";
|
|
4
|
+
export declare class DragDropRankingSelectToRank extends DragDropRankingChoices {
|
|
5
|
+
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
|
6
|
+
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
|
7
|
+
protected getDropTargetByNode(dropTargetNode: HTMLElement, event: PointerEvent): any;
|
|
8
|
+
protected isDropTargetValid(dropTarget: ItemValue | string, dropTargetNode?: HTMLElement): boolean;
|
|
9
|
+
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
|
10
|
+
doRankBetween(dropTargetNode: HTMLElement, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>, rankFunction: Function): void;
|
|
11
|
+
private get isDraggedElementRanked();
|
|
12
|
+
private get isDropTargetRanked();
|
|
13
|
+
private get isDraggedElementUnranked();
|
|
14
|
+
private updateChoices;
|
|
15
|
+
selectToRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void;
|
|
16
|
+
unselectFromRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex?: number) => void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { IAction } from "./actions/action";
|
|
2
|
+
import { Base } from "./base";
|
|
3
|
+
import { ItemValue } from "./itemvalue";
|
|
4
|
+
import { ListModel } from "./list";
|
|
5
|
+
import { PopupModel } from "./popup";
|
|
6
|
+
import { Question } from "./question";
|
|
7
|
+
export declare class DropdownListModel extends Base {
|
|
8
|
+
protected question: Question;
|
|
9
|
+
protected onSelectionChanged?: (item: IAction, ...params: any[]) => void;
|
|
10
|
+
readonly minPageSize = 25;
|
|
11
|
+
readonly loadingItemHeight = 40;
|
|
12
|
+
timer: any;
|
|
13
|
+
private htmlCleanerElement;
|
|
14
|
+
private _markdownMode;
|
|
15
|
+
private _popupModel;
|
|
16
|
+
private filteredItems;
|
|
17
|
+
focused: boolean;
|
|
18
|
+
private get focusFirstInputSelector();
|
|
19
|
+
protected readonly selectedItemSelector = ".sv-list__item--selected";
|
|
20
|
+
protected readonly itemSelector = ".sv-list__item";
|
|
21
|
+
protected getFocusFirstInputSelector(): string;
|
|
22
|
+
private itemsSettings;
|
|
23
|
+
protected listModel: ListModel<ItemValue>;
|
|
24
|
+
protected listModelFilterStringChanged: (newValue: string) => void;
|
|
25
|
+
private resetItemsSettings;
|
|
26
|
+
private setItems;
|
|
27
|
+
private loadQuestionChoices;
|
|
28
|
+
private updateQuestionChoices;
|
|
29
|
+
private resetTimer;
|
|
30
|
+
private updatePopupFocusFirstInputSelector;
|
|
31
|
+
private getDropdownMenuOptions;
|
|
32
|
+
protected createPopup(): void;
|
|
33
|
+
private setFilterStringToListModel;
|
|
34
|
+
private setTextWrapEnabled;
|
|
35
|
+
protected popupRecalculatePosition(isResetHeight: boolean): void;
|
|
36
|
+
protected onHidePopup(): void;
|
|
37
|
+
protected getAvailableItems(): Array<ItemValue>;
|
|
38
|
+
protected setOnTextSearchCallbackForListModel(listModel: ListModel<ItemValue>): void;
|
|
39
|
+
protected createListModel(): ListModel<ItemValue>;
|
|
40
|
+
protected updateAfterListModelCreated(model: ListModel<ItemValue>): void;
|
|
41
|
+
protected getPopupCssClasses(): string;
|
|
42
|
+
updateCssClasses(popupCssClass: string, listCssClasses: any): void;
|
|
43
|
+
protected resetFilterString(): void;
|
|
44
|
+
clear(): void;
|
|
45
|
+
protected onSetFilterString(): void;
|
|
46
|
+
get isAllDataLoaded(): boolean;
|
|
47
|
+
get canShowSelectedItem(): boolean;
|
|
48
|
+
searchEnabled: boolean;
|
|
49
|
+
filterString: string;
|
|
50
|
+
inputString: string;
|
|
51
|
+
showInputFieldComponent: boolean;
|
|
52
|
+
ariaActivedescendant: string;
|
|
53
|
+
private applyInputString;
|
|
54
|
+
private cleanHtml;
|
|
55
|
+
protected fixInputCase(): void;
|
|
56
|
+
protected applyHintString(item: ItemValue): void;
|
|
57
|
+
get inputStringRendered(): string;
|
|
58
|
+
set inputStringRendered(val: string);
|
|
59
|
+
get placeholderRendered(): any;
|
|
60
|
+
get listElementId(): string;
|
|
61
|
+
hasScroll: boolean;
|
|
62
|
+
hintString: string;
|
|
63
|
+
private get hintStringLC();
|
|
64
|
+
private get inputStringLC();
|
|
65
|
+
get showHintPrefix(): boolean;
|
|
66
|
+
get hintStringPrefix(): string;
|
|
67
|
+
get showHintString(): boolean;
|
|
68
|
+
get hintStringSuffix(): string;
|
|
69
|
+
get hintStringMiddle(): string;
|
|
70
|
+
private questionPropertyChangedHandler;
|
|
71
|
+
constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any[]) => void);
|
|
72
|
+
get popupModel(): PopupModel;
|
|
73
|
+
get noTabIndex(): boolean;
|
|
74
|
+
get filterReadOnly(): boolean;
|
|
75
|
+
get filterStringEnabled(): boolean;
|
|
76
|
+
get inputMode(): "none" | "text";
|
|
77
|
+
setSearchEnabled(newValue: boolean): void;
|
|
78
|
+
setChoicesLazyLoadEnabled(newValue: boolean): void;
|
|
79
|
+
updateItems(): void;
|
|
80
|
+
onClick(event: any): void;
|
|
81
|
+
chevronPointerDown(event: any): void;
|
|
82
|
+
protected onPropertyChangedHandler(sender: any, options: any): void;
|
|
83
|
+
protected focusItemOnClickAndPopup(): void;
|
|
84
|
+
onClear(event: any): void;
|
|
85
|
+
getSelectedAction(): ItemValue;
|
|
86
|
+
changeSelectionWithKeyboard(reverse: boolean): void;
|
|
87
|
+
protected beforeScrollToFocusedItem(focusedItem: ItemValue): void;
|
|
88
|
+
protected afterScrollToFocusedItem(): void;
|
|
89
|
+
keyHandler(event: any): void;
|
|
90
|
+
protected onEscape(): void;
|
|
91
|
+
onScroll(event: Event): void;
|
|
92
|
+
onBlur(event: any): void;
|
|
93
|
+
onFocus(event: any): void;
|
|
94
|
+
setInputStringFromSelectedItem(newValue: any): void;
|
|
95
|
+
dispose(): void;
|
|
96
|
+
scrollToFocusedItem(): void;
|
|
97
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IAction } from "./actions/action";
|
|
2
|
+
import { DropdownListModel } from "./dropdownListModel";
|
|
3
|
+
import { ItemValue } from "./itemvalue";
|
|
4
|
+
import { MultiSelectListModel } from "./multiSelectListModel";
|
|
5
|
+
import { Question } from "./question";
|
|
6
|
+
export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
|
7
|
+
filterStringPlaceholder: string;
|
|
8
|
+
closeOnSelect: boolean;
|
|
9
|
+
locStrsChanged(): void;
|
|
10
|
+
private updateListState;
|
|
11
|
+
private syncFilterStringPlaceholder;
|
|
12
|
+
private getSelectedActions;
|
|
13
|
+
protected getFocusFirstInputSelector(): string;
|
|
14
|
+
protected getPopupCssClasses(): string;
|
|
15
|
+
protected createListModel(): MultiSelectListModel<ItemValue>;
|
|
16
|
+
protected resetFilterString(): void;
|
|
17
|
+
previousValue: any;
|
|
18
|
+
doneButtonCaption: string;
|
|
19
|
+
private get shouldResetAfterCancel();
|
|
20
|
+
protected createPopup(): void;
|
|
21
|
+
selectAllItems(): void;
|
|
22
|
+
selectNoneItem(): void;
|
|
23
|
+
selectItem(id: string): void;
|
|
24
|
+
deselectItem(id: string): void;
|
|
25
|
+
clear(): void;
|
|
26
|
+
onClear(event: any): void;
|
|
27
|
+
setHideSelectedItems(newValue: boolean): void;
|
|
28
|
+
removeLastSelectedItem(): void;
|
|
29
|
+
constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any[]) => void);
|
|
30
|
+
inputKeyHandler(event: any): void;
|
|
31
|
+
setInputStringFromSelectedItem(newValue: any): void;
|
|
32
|
+
protected focusItemOnClickAndPopup(): void;
|
|
33
|
+
protected onEscape(): void;
|
|
34
|
+
protected beforeScrollToFocusedItem(focusedItem: ItemValue): void;
|
|
35
|
+
protected afterScrollToFocusedItem(): void;
|
|
36
|
+
protected onPropertyChangedHandler(sender: any, options: any): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The class contains methods to work with api.surveyjs.io service.
|
|
3
|
+
*/
|
|
4
|
+
export declare class dxSurveyService {
|
|
5
|
+
locale: string;
|
|
6
|
+
static get serviceUrl(): string;
|
|
7
|
+
static set serviceUrl(val: string);
|
|
8
|
+
loadSurvey(surveyId: string, onLoad: (success: boolean, result: string, response: any) => void): void;
|
|
9
|
+
getSurveyJsonAndIsCompleted(surveyId: string, clientId: string, onLoad: (success: boolean, surveyJson: any, result: string, response: any) => void): void;
|
|
10
|
+
canSendResult(result: JSON): boolean;
|
|
11
|
+
get isSurveJSIOService(): boolean;
|
|
12
|
+
sendResult(postId: string, result: JSON, onSendResult: (success: boolean, response: any, request?: any) => void, clientId?: string, isPartialCompleted?: boolean): void;
|
|
13
|
+
protected sendResultCore(postId: string, result: JSON, onSendResult: (success: boolean, response: any, request?: any) => void, clientId?: string, isPartialCompleted?: boolean): void;
|
|
14
|
+
sendFile(postId: string, file: File, onSendFile: (success: boolean, response: any) => void): void;
|
|
15
|
+
getResult(resultId: string, name: string, onGetResult: (success: boolean, data: any, dataList: Array<any>, response: any) => void): void;
|
|
16
|
+
isCompleted(resultId: string, clientId: string, onIsCompleted: (success: boolean, result: string, response: any) => void): void;
|
|
17
|
+
private get serviceUrl();
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class ElementHelper {
|
|
2
|
+
static focusElement(element: Element): void;
|
|
3
|
+
static visibility(node: Element): boolean;
|
|
4
|
+
static getNextElementPreorder(element: Element): Element;
|
|
5
|
+
static getNextElementPostorder(element: Element): Element;
|
|
6
|
+
static hasHorizontalScroller(element: HTMLElement): boolean;
|
|
7
|
+
static hasVerticalScroller(element: HTMLElement): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { SurveyError } from "./survey-error";
|
|
2
|
+
import { ISurveyErrorOwner } from "./base-interfaces";
|
|
3
|
+
export declare class AnswerRequiredError extends SurveyError {
|
|
4
|
+
text: string;
|
|
5
|
+
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
|
6
|
+
getErrorType(): string;
|
|
7
|
+
protected getDefaultText(): string;
|
|
8
|
+
}
|
|
9
|
+
export declare class OneAnswerRequiredError extends SurveyError {
|
|
10
|
+
text: string;
|
|
11
|
+
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
|
12
|
+
getErrorType(): string;
|
|
13
|
+
protected getDefaultText(): string;
|
|
14
|
+
}
|
|
15
|
+
export declare class RequreNumericError extends SurveyError {
|
|
16
|
+
text: string;
|
|
17
|
+
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
|
18
|
+
getErrorType(): string;
|
|
19
|
+
protected getDefaultText(): string;
|
|
20
|
+
}
|
|
21
|
+
export declare class ExceedSizeError extends SurveyError {
|
|
22
|
+
private maxSize;
|
|
23
|
+
constructor(maxSize: number, errorOwner?: ISurveyErrorOwner);
|
|
24
|
+
getErrorType(): string;
|
|
25
|
+
getDefaultText(): string;
|
|
26
|
+
private getTextSize;
|
|
27
|
+
}
|
|
28
|
+
export declare class WebRequestError extends SurveyError {
|
|
29
|
+
status: string;
|
|
30
|
+
response: string;
|
|
31
|
+
constructor(status: string, response: string, errorOwner?: ISurveyErrorOwner);
|
|
32
|
+
getErrorType(): string;
|
|
33
|
+
protected getDefaultText(): string;
|
|
34
|
+
}
|
|
35
|
+
export declare class WebRequestEmptyError extends SurveyError {
|
|
36
|
+
text: string;
|
|
37
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
|
38
|
+
getErrorType(): string;
|
|
39
|
+
protected getDefaultText(): string;
|
|
40
|
+
}
|
|
41
|
+
export declare class OtherEmptyError extends SurveyError {
|
|
42
|
+
text: string;
|
|
43
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
|
44
|
+
getErrorType(): string;
|
|
45
|
+
protected getDefaultText(): string;
|
|
46
|
+
}
|
|
47
|
+
export declare class UploadingFileError extends SurveyError {
|
|
48
|
+
text: string;
|
|
49
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
|
50
|
+
getErrorType(): string;
|
|
51
|
+
protected getDefaultText(): string;
|
|
52
|
+
}
|
|
53
|
+
export declare class RequiredInAllRowsError extends SurveyError {
|
|
54
|
+
text: string;
|
|
55
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
|
56
|
+
getErrorType(): string;
|
|
57
|
+
protected getDefaultText(): string;
|
|
58
|
+
}
|
|
59
|
+
export declare class EachRowUniqueError extends SurveyError {
|
|
60
|
+
text: string;
|
|
61
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
|
62
|
+
getErrorType(): string;
|
|
63
|
+
protected getDefaultText(): string;
|
|
64
|
+
}
|
|
65
|
+
export declare class MinRowCountError extends SurveyError {
|
|
66
|
+
minRowCount: number;
|
|
67
|
+
constructor(minRowCount: number, errorOwner?: ISurveyErrorOwner);
|
|
68
|
+
getErrorType(): string;
|
|
69
|
+
protected getDefaultText(): string;
|
|
70
|
+
}
|
|
71
|
+
export declare class KeyDuplicationError extends SurveyError {
|
|
72
|
+
text: string;
|
|
73
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
|
74
|
+
getErrorType(): string;
|
|
75
|
+
protected getDefaultText(): string;
|
|
76
|
+
}
|
|
77
|
+
export declare class CustomError extends SurveyError {
|
|
78
|
+
text: string;
|
|
79
|
+
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
|
80
|
+
getErrorType(): string;
|
|
81
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Base } from "./base";
|
|
2
|
+
import { ISurvey } from "./base-interfaces";
|
|
3
|
+
import { ILocalizableOwner, LocalizableString } from "./localizablestring";
|
|
4
|
+
/**
|
|
5
|
+
* Base class for HtmlConditionItem and UrlConditionItem classes.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ExpressionItem extends Base implements ILocalizableOwner {
|
|
8
|
+
locOwner: ILocalizableOwner;
|
|
9
|
+
constructor(expression?: string);
|
|
10
|
+
getType(): string;
|
|
11
|
+
runCondition(values: any, properties: any): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The expression property. If this expression returns true, then survey will use html property to show on complete page.
|
|
14
|
+
*/
|
|
15
|
+
get expression(): string;
|
|
16
|
+
set expression(val: string);
|
|
17
|
+
get locHtml(): LocalizableString;
|
|
18
|
+
getLocale(): string;
|
|
19
|
+
getMarkdownHtml(text: string, name: string): string;
|
|
20
|
+
getRenderer(name: string): string;
|
|
21
|
+
getRendererContext(locStr: LocalizableString): any;
|
|
22
|
+
getProcessedText(text: string): string;
|
|
23
|
+
getSurvey(isLive?: boolean): ISurvey;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A class that contains expression and html propeties. It uses in survey.completedHtmlOnCondition array.
|
|
27
|
+
* If the expression returns true then html of this item uses instead of survey.completedHtml property
|
|
28
|
+
* @see SurveyModel.completedHtmlOnCondition
|
|
29
|
+
* @see SurveyModel.completedHtml
|
|
30
|
+
*/
|
|
31
|
+
export declare class HtmlConditionItem extends ExpressionItem {
|
|
32
|
+
constructor(expression?: string, html?: string);
|
|
33
|
+
getType(): string;
|
|
34
|
+
/**
|
|
35
|
+
* The html that shows on completed ('Thank you') page. The expression should return true
|
|
36
|
+
* @see expression
|
|
37
|
+
*/
|
|
38
|
+
get html(): string;
|
|
39
|
+
set html(value: string);
|
|
40
|
+
get locHtml(): LocalizableString;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A class that contains expression and url propeties. It uses in survey.navigateToUrlOnCondition array.
|
|
44
|
+
* If the expression returns true then url of this item uses instead of survey.navigateToUrl property
|
|
45
|
+
* @see SurveyModel.navigateToUrl
|
|
46
|
+
*/
|
|
47
|
+
export declare class UrlConditionItem extends ExpressionItem {
|
|
48
|
+
constructor(expression?: string, url?: string);
|
|
49
|
+
getType(): string;
|
|
50
|
+
/**
|
|
51
|
+
* The url that survey navigates to on completing the survey. The expression should return true
|
|
52
|
+
* @see expression
|
|
53
|
+
*/
|
|
54
|
+
get url(): string;
|
|
55
|
+
set url(value: string);
|
|
56
|
+
get locUrl(): LocalizableString;
|
|
57
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface IFilePosition {
|
|
2
|
+
offset: number;
|
|
3
|
+
line: number;
|
|
4
|
+
column: number;
|
|
5
|
+
}
|
|
6
|
+
export interface IFileRange {
|
|
7
|
+
start: IFilePosition;
|
|
8
|
+
end: IFilePosition;
|
|
9
|
+
}
|
|
10
|
+
export interface ILiteralExpectation {
|
|
11
|
+
type: "literal";
|
|
12
|
+
text: string;
|
|
13
|
+
ignoreCase: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface IClassParts extends Array<string | IClassParts> {
|
|
16
|
+
}
|
|
17
|
+
export interface IClassExpectation {
|
|
18
|
+
type: "class";
|
|
19
|
+
parts: IClassParts;
|
|
20
|
+
inverted: boolean;
|
|
21
|
+
ignoreCase: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface IAnyExpectation {
|
|
24
|
+
type: "any";
|
|
25
|
+
}
|
|
26
|
+
export interface IEndExpectation {
|
|
27
|
+
type: "end";
|
|
28
|
+
}
|
|
29
|
+
export interface IOtherExpectation {
|
|
30
|
+
type: "other";
|
|
31
|
+
description: string;
|
|
32
|
+
}
|
|
33
|
+
export type Expectation = ILiteralExpectation | IClassExpectation | IAnyExpectation | IEndExpectation | IOtherExpectation;
|
|
34
|
+
export declare class SyntaxError extends Error {
|
|
35
|
+
static buildMessage(expected: Expectation[], found: string | null): string;
|
|
36
|
+
message: string;
|
|
37
|
+
expected: Expectation[];
|
|
38
|
+
found: string | null;
|
|
39
|
+
location: IFileRange;
|
|
40
|
+
name: string;
|
|
41
|
+
constructor(message: string, expected: Expectation[], found: string | null, location: IFileRange);
|
|
42
|
+
}
|
|
43
|
+
export interface ICached {
|
|
44
|
+
nextPos: number;
|
|
45
|
+
result: any;
|
|
46
|
+
}
|
|
47
|
+
export interface IParseOptions {
|
|
48
|
+
filename?: string;
|
|
49
|
+
startRule?: string;
|
|
50
|
+
tracer?: any;
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}
|
|
53
|
+
export type ParseFunction = (input: string, options?: IParseOptions) => any;
|
|
54
|
+
export declare const parse: ParseFunction;
|