survey-core 1.12.21 → 1.12.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/default.css +8715 -0
- package/default.css.map +1 -0
- package/default.fontless.css +8495 -0
- package/default.fontless.css.map +1 -0
- package/default.fontless.min.css +6 -0
- package/default.min.css +6 -0
- package/defaultV2.css +1 -1
- package/defaultV2.fontless.css +1 -1
- package/defaultV2.fontless.min.css +1 -1
- package/defaultV2.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +5 -0
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/basque.min.js.LICENSE.txt +5 -0
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/bulgarian.min.js.LICENSE.txt +5 -0
- package/i18n/burmese.js +1 -1
- package/i18n/burmese.min.js +1 -1
- package/i18n/burmese.min.js.LICENSE.txt +5 -0
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/catalan.min.js.LICENSE.txt +5 -0
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +5 -0
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +5 -0
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +5 -0
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +5 -0
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +5 -0
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/estonian.min.js.LICENSE.txt +5 -0
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +5 -0
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +5 -0
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/georgian.min.js.LICENSE.txt +5 -0
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +5 -0
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/greek.min.js.LICENSE.txt +5 -0
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +5 -0
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hindi.min.js.LICENSE.txt +5 -0
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +5 -0
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/icelandic.min.js.LICENSE.txt +5 -0
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +5 -0
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +5 -0
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +5 -0
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +5 -0
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/kazakh.min.js.LICENSE.txt +5 -0
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +5 -0
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/latvian.min.js.LICENSE.txt +5 -0
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/lithuanian.min.js.LICENSE.txt +5 -0
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/macedonian.min.js.LICENSE.txt +5 -0
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +5 -0
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/nl-BE.min.js.LICENSE.txt +5 -0
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +5 -0
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +5 -0
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/philippines.min.js.LICENSE.txt +5 -0
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +5 -0
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese-br.min.js.LICENSE.txt +5 -0
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +5 -0
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +5 -0
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +5 -0
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/serbian.min.js.LICENSE.txt +5 -0
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +5 -0
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +5 -0
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/spanish.min.js.LICENSE.txt +5 -0
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swahili.min.js.LICENSE.txt +5 -0
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/swedish.min.js.LICENSE.txt +5 -0
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/tajik.min.js.LICENSE.txt +5 -0
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/telugu.min.js.LICENSE.txt +5 -0
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/thai.min.js.LICENSE.txt +5 -0
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/traditional-chinese.min.js.LICENSE.txt +5 -0
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/turkish.min.js.LICENSE.txt +5 -0
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/ukrainian.min.js.LICENSE.txt +5 -0
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/urdu.min.js.LICENSE.txt +5 -0
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/vietnamese.min.js.LICENSE.txt +5 -0
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/i18n/welsh.min.js.LICENSE.txt +5 -0
- package/icons/iconsV1.js +1 -1
- package/icons/iconsV1.min.js +1 -1
- package/icons/iconsV1.min.js.LICENSE.txt +5 -0
- package/icons/iconsV2.js +1 -1
- package/icons/iconsV2.min.js +1 -1
- package/icons/iconsV2.min.js.LICENSE.txt +5 -0
- package/modern.css +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +131 -46
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.core.min.js.LICENSE.txt +10 -0
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.i18n.min.js.LICENSE.txt +5 -0
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-dark.min.js.LICENSE.txt +5 -0
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light-panelless.js +156 -0
- package/themes/borderless-light-panelless.js.map +1 -0
- package/themes/borderless-light-panelless.min.js +2 -0
- package/themes/borderless-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/borderless-light.min.js.LICENSE.txt +5 -0
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-dark.min.js.LICENSE.txt +5 -0
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/contrast-light.min.js.LICENSE.txt +5 -0
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +5 -0
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/default-light.min.js.LICENSE.txt +5 -0
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-dark.min.js.LICENSE.txt +5 -0
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light-panelles.min.js.LICENSE.txt +5 -0
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/doubleborder-light.min.js.LICENSE.txt +5 -0
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-dark.min.js.LICENSE.txt +5 -0
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/flat-light.min.js.LICENSE.txt +5 -0
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/index.min.js.LICENSE.txt +5 -0
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-dark.min.js.LICENSE.txt +5 -0
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/layered-light.min.js.LICENSE.txt +5 -0
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-dark.min.js.LICENSE.txt +5 -0
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/plain-light.min.js.LICENSE.txt +5 -0
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-dark.min.js.LICENSE.txt +5 -0
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/sharp-light.min.js.LICENSE.txt +5 -0
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-dark.min.js.LICENSE.txt +5 -0
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/solid-light.min.js.LICENSE.txt +5 -0
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js.LICENSE.txt +5 -0
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-dark.min.js.LICENSE.txt +5 -0
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js.LICENSE.txt +5 -0
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/themes/three-dimensional-light.min.js.LICENSE.txt +5 -0
- package/ts3.4/typings/packages/survey-core/src/panel.d.ts +2 -1
- package/ts3.4/typings/packages/survey-core/src/question_custom.d.ts +3 -0
- package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +17 -6
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +11 -6
- package/ts3.4/typings/packages/survey-core/src/textPreProcessor.d.ts +1 -0
- package/typings/entries/chunks/core-wo-model.d.ts +10 -0
- package/typings/entries/chunks/model.d.ts +95 -95
- package/typings/entries/index.d.ts +2 -0
- package/typings/packages/survey-core/src/panel.d.ts +2 -1
- package/typings/packages/survey-core/src/question_custom.d.ts +3 -0
- package/typings/packages/survey-core/src/survey-events-api.d.ts +17 -6
- package/typings/packages/survey-core/src/survey.d.ts +11 -6
- package/typings/packages/survey-core/src/textPreProcessor.d.ts +1 -0
- package/typings/src/actions/action.d.ts +300 -0
- package/typings/src/actions/adaptive-container.d.ts +29 -0
- package/typings/src/actions/container.d.ts +59 -0
- package/typings/src/base-interfaces.d.ts +366 -0
- package/typings/src/base.d.ts +333 -0
- package/typings/src/calculatedValue.d.ts +49 -0
- package/typings/src/choicesRestful.d.ts +177 -0
- package/typings/src/conditionProcessValue.d.ts +25 -0
- package/typings/src/conditions.d.ts +98 -0
- package/typings/src/conditionsParser.d.ts +14 -0
- package/typings/src/console-warnings.d.ts +6 -0
- package/typings/src/defaultCss/defaultCss.d.ts +873 -0
- package/typings/src/defaultTitle.d.ts +3 -0
- package/typings/src/dragdrop/choices.d.ts +21 -0
- package/typings/src/dragdrop/core.d.ts +55 -0
- package/typings/src/dragdrop/dom-adapter.d.ts +49 -0
- package/typings/src/dragdrop/engine.d.ts +6 -0
- package/typings/src/dragdrop/matrix-rows.d.ts +19 -0
- package/typings/src/dragdrop/ranking-choices.d.ts +26 -0
- package/typings/src/dragdrop/ranking-select-to-rank.d.ts +17 -0
- package/typings/src/dropdownListModel.d.ts +97 -0
- package/typings/src/dropdownMultiSelectListModel.d.ts +37 -0
- package/typings/src/dxSurveyService.d.ts +18 -0
- package/typings/src/element-helper.d.ts +8 -0
- package/typings/src/error.d.ts +81 -0
- package/typings/src/expressionItems.d.ts +57 -0
- package/typings/src/expressions/expressionParser.d.ts +54 -0
- package/typings/src/expressions/expressions.d.ts +135 -0
- package/typings/src/flowpanel.d.ts +34 -0
- package/typings/src/functionsfactory.d.ts +14 -0
- package/typings/src/global_variables_utils.d.ts +30 -0
- package/typings/src/header.d.ts +87 -0
- package/typings/src/helpers.d.ts +44 -0
- package/typings/src/itemvalue.d.ts +93 -0
- package/typings/src/jsonobject.d.ts +378 -0
- package/typings/src/list.d.ts +144 -0
- package/typings/src/localizablestring.d.ts +125 -0
- package/typings/src/localization/english.d.ts +109 -0
- package/typings/src/martixBase.d.ts +133 -0
- package/typings/src/mask/input_element_adapter.d.ts +16 -0
- package/typings/src/mask/mask_base.d.ts +29 -0
- package/typings/src/mask/mask_currency.d.ts +41 -0
- package/typings/src/mask/mask_datetime.d.ts +91 -0
- package/typings/src/mask/mask_numeric.d.ts +90 -0
- package/typings/src/mask/mask_pattern.d.ts +78 -0
- package/typings/src/mask/mask_utils.d.ts +20 -0
- package/typings/src/multiSelectListModel.d.ts +17 -0
- package/typings/src/notifier.d.ts +30 -0
- package/typings/src/page.d.ts +133 -0
- package/typings/src/panel-layout-column.d.ts +9 -0
- package/typings/src/panel.d.ts +633 -0
- package/typings/src/popup-dropdown-view-model.d.ts +35 -0
- package/typings/src/popup-modal-view-model.d.ts +16 -0
- package/typings/src/popup-survey.d.ts +132 -0
- package/typings/src/popup-utils.d.ts +4 -0
- package/typings/src/popup-view-model.d.ts +81 -0
- package/typings/src/popup.d.ts +66 -0
- package/typings/src/progress-buttons.d.ts +44 -0
- package/typings/src/question.d.ts +949 -0
- package/typings/src/questionCustomWidgets.d.ts +46 -0
- package/typings/src/question_baseselect.d.ts +547 -0
- package/typings/src/question_boolean.d.ts +116 -0
- package/typings/src/question_buttongroup.d.ts +51 -0
- package/typings/src/question_checkbox.d.ts +158 -0
- package/typings/src/question_comment.d.ts +59 -0
- package/typings/src/question_custom.d.ts +454 -0
- package/typings/src/question_dropdown.d.ts +156 -0
- package/typings/src/question_empty.d.ts +8 -0
- package/typings/src/question_expression.d.ts +110 -0
- package/typings/src/question_file.d.ts +303 -0
- package/typings/src/question_html.d.ts +26 -0
- package/typings/src/question_image.d.ts +86 -0
- package/typings/src/question_imagepicker.d.ts +168 -0
- package/typings/src/question_matrix.d.ts +198 -0
- package/typings/src/question_matrixdropdown.d.ts +56 -0
- package/typings/src/question_matrixdropdownbase.d.ts +572 -0
- package/typings/src/question_matrixdropdowncolumn.d.ts +344 -0
- package/typings/src/question_matrixdropdownrendered.d.ts +171 -0
- package/typings/src/question_matrixdynamic.d.ts +299 -0
- package/typings/src/question_multipletext.d.ts +361 -0
- package/typings/src/question_paneldynamic.d.ts +719 -0
- package/typings/src/question_radiogroup.d.ts +40 -0
- package/typings/src/question_ranking.d.ts +135 -0
- package/typings/src/question_rating.d.ts +300 -0
- package/typings/src/question_signaturepad.d.ts +149 -0
- package/typings/src/question_tagbox.d.ts +98 -0
- package/typings/src/question_text.d.ts +206 -0
- package/typings/src/question_textbase.d.ts +62 -0
- package/typings/src/questionfactory.d.ts +27 -0
- package/typings/src/questionnonvalue.d.ts +22 -0
- package/typings/src/rendererFactory.d.ts +11 -0
- package/typings/src/settings.d.ts +641 -0
- package/typings/src/survey-element.d.ts +471 -0
- package/typings/src/survey-error.d.ts +18 -0
- package/typings/src/survey-events-api.d.ts +1152 -0
- package/typings/src/survey.d.ts +3126 -0
- package/typings/src/surveyProgress.d.ts +4 -0
- package/typings/src/surveyStrings.d.ts +151 -0
- package/typings/src/surveyTaskManager.d.ts +16 -0
- package/typings/src/surveyTimerModel.d.ts +47 -0
- package/typings/src/surveyToc.d.ts +23 -0
- package/typings/src/surveytimer.d.ts +22 -0
- package/typings/src/svgbundle.d.ts +23 -0
- package/typings/src/template-renderer.d.ts +10 -0
- package/typings/src/textPreProcessor.d.ts +43 -0
- package/typings/src/themes.d.ts +222 -0
- package/typings/src/trigger.d.ts +155 -0
- package/typings/src/utils/animation.d.ts +91 -0
- package/typings/src/utils/camera.d.ts +27 -0
- package/typings/src/utils/cssClassBuilder.d.ts +6 -0
- package/typings/src/utils/devices.d.ts +12 -0
- package/typings/src/utils/dragOrClickHelper.d.ts +16 -0
- package/typings/src/utils/popup.d.ts +45 -0
- package/typings/src/utils/responsivity-manager.d.ts +31 -0
- package/typings/src/utils/taskmanager.d.ts +28 -0
- package/typings/src/utils/text-area.d.ts +58 -0
- package/typings/src/utils/utils.d.ts +86 -0
- package/typings/src/validator.d.ts +204 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { HashTable } from "./helpers";
|
|
2
|
+
import { Question } from "./question";
|
|
3
|
+
import { LocalizableString } from "./localizablestring";
|
|
4
|
+
/**
|
|
5
|
+
* A class that describes the Expression question type. It is a read-only question type that calculates a value based on a specified expression.
|
|
6
|
+
*
|
|
7
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-expression/ (linkStyle))
|
|
8
|
+
*/
|
|
9
|
+
export declare class QuestionExpressionModel extends Question {
|
|
10
|
+
private expressionIsRunning;
|
|
11
|
+
private expressionRunner;
|
|
12
|
+
constructor(name: string);
|
|
13
|
+
getType(): string;
|
|
14
|
+
get hasInput(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* A string that formats a question value. Use `{0}` to reference the question value in the format string.
|
|
17
|
+
* @see displayStyle
|
|
18
|
+
*/
|
|
19
|
+
get format(): string;
|
|
20
|
+
set format(val: string);
|
|
21
|
+
get locFormat(): LocalizableString;
|
|
22
|
+
/**
|
|
23
|
+
* An expression used to calculate the question value.
|
|
24
|
+
*
|
|
25
|
+
* Refer to the following help topic for more information: [Expressions](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#expressions).
|
|
26
|
+
*/
|
|
27
|
+
get expression(): string;
|
|
28
|
+
set expression(val: string);
|
|
29
|
+
locCalculation(): void;
|
|
30
|
+
unlocCalculation(): void;
|
|
31
|
+
protected runConditionCore(values: HashTable<any>, properties: HashTable<any>): void;
|
|
32
|
+
protected canCollectErrors(): boolean;
|
|
33
|
+
hasRequiredError(): boolean;
|
|
34
|
+
private createRunner;
|
|
35
|
+
/**
|
|
36
|
+
* The maximum number of fraction digits. Applies only if the `displayStyle` property is not `"none"`. Accepts values in the range from -1 to 20, where -1 disables the property.
|
|
37
|
+
*
|
|
38
|
+
* Default value: -1
|
|
39
|
+
* @see displayStyle
|
|
40
|
+
* @see minimumFractionDigits
|
|
41
|
+
* @see precision
|
|
42
|
+
*/
|
|
43
|
+
get maximumFractionDigits(): number;
|
|
44
|
+
set maximumFractionDigits(val: number);
|
|
45
|
+
/**
|
|
46
|
+
* The minimum number of fraction digits. Applies only if the `displayStyle` property is not `"none"`. Accepts values in the range from -1 to 20, where -1 disables the property.
|
|
47
|
+
*
|
|
48
|
+
* Default value: -1
|
|
49
|
+
* @see displayStyle
|
|
50
|
+
* @see maximumFractionDigits
|
|
51
|
+
*/
|
|
52
|
+
get minimumFractionDigits(): number;
|
|
53
|
+
set minimumFractionDigits(val: number);
|
|
54
|
+
private runIfReadOnlyValue;
|
|
55
|
+
get runIfReadOnly(): boolean;
|
|
56
|
+
set runIfReadOnly(val: boolean);
|
|
57
|
+
get formatedValue(): string;
|
|
58
|
+
protected updateFormatedValue(): void;
|
|
59
|
+
protected onValueChanged(): void;
|
|
60
|
+
updateValueFromSurvey(newValue: any, clearData: boolean): void;
|
|
61
|
+
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies a display style for the question value.
|
|
64
|
+
*
|
|
65
|
+
* Possible values:
|
|
66
|
+
*
|
|
67
|
+
* - `"decimal"`
|
|
68
|
+
* - `"currency"`
|
|
69
|
+
* - `"percent"`
|
|
70
|
+
* - `"date"`
|
|
71
|
+
* - `"none"` (default)
|
|
72
|
+
*
|
|
73
|
+
* If you use the `"currency"` display style, you can also set the `currency` property to specify a currency other than USD.
|
|
74
|
+
* @see currency
|
|
75
|
+
* @see minimumFractionDigits
|
|
76
|
+
* @see maximumFractionDigits
|
|
77
|
+
* @see format
|
|
78
|
+
*/
|
|
79
|
+
get displayStyle(): string;
|
|
80
|
+
set displayStyle(val: string);
|
|
81
|
+
/**
|
|
82
|
+
* A three-letter currency code. Applies only if the `displayStyle` property is set to `"currency"`.
|
|
83
|
+
*
|
|
84
|
+
* Default value: "USD".
|
|
85
|
+
* @see displayStyle
|
|
86
|
+
* @see minimumFractionDigits
|
|
87
|
+
* @see maximumFractionDigits
|
|
88
|
+
* @see format
|
|
89
|
+
*/
|
|
90
|
+
get currency(): string;
|
|
91
|
+
set currency(val: string);
|
|
92
|
+
/**
|
|
93
|
+
* Specifies whether to use grouping separators in number representation. Separators depend on the selected [locale](https://surveyjs.io/form-library/documentation/surveymodel#locale).
|
|
94
|
+
*
|
|
95
|
+
* Default value: `true`
|
|
96
|
+
*/
|
|
97
|
+
get useGrouping(): boolean;
|
|
98
|
+
set useGrouping(val: boolean);
|
|
99
|
+
/**
|
|
100
|
+
* Specifies how many decimal digits to keep in the expression value.
|
|
101
|
+
*
|
|
102
|
+
* Default value: -1 (unlimited)
|
|
103
|
+
* @see maximumFractionDigits
|
|
104
|
+
*/
|
|
105
|
+
get precision(): number;
|
|
106
|
+
set precision(val: number);
|
|
107
|
+
private roundValue;
|
|
108
|
+
protected getValueAsStr(val: any): string;
|
|
109
|
+
}
|
|
110
|
+
export declare function getCurrecyCodes(): Array<string>;
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { IPlainDataOptions } from "./base-interfaces";
|
|
2
|
+
import { IQuestionPlainData, Question } from "./question";
|
|
3
|
+
import { EventBase, Base } from "./base";
|
|
4
|
+
import { SurveyError } from "./survey-error";
|
|
5
|
+
import { ActionContainer } from "./actions/container";
|
|
6
|
+
import { Action } from "./actions/action";
|
|
7
|
+
import { Camera } from "./utils/camera";
|
|
8
|
+
import { LocalizableString } from "./localizablestring";
|
|
9
|
+
export declare function dataUrl2File(dataUrl: string, fileName: string, type: string): File;
|
|
10
|
+
/**
|
|
11
|
+
* A base class for question types that support file upload: `QuestionFileModel` and `QuestionSignaturePadModel`.
|
|
12
|
+
*/
|
|
13
|
+
export declare class QuestionFileModelBase extends Question {
|
|
14
|
+
isUploading: boolean;
|
|
15
|
+
currentState: string;
|
|
16
|
+
/**
|
|
17
|
+
* An event that is raised after the upload state has changed.
|
|
18
|
+
*
|
|
19
|
+
* Parameters:
|
|
20
|
+
*
|
|
21
|
+
* - `sender`: `SurveyModel`\
|
|
22
|
+
* A survey instance that raised the event.
|
|
23
|
+
* - `options.state`: `string`\
|
|
24
|
+
* The current upload state: `"empty"`, `"loading"`, `"loaded"`, or `"error"`.
|
|
25
|
+
*/
|
|
26
|
+
onUploadStateChanged: EventBase<QuestionFileModelBase>;
|
|
27
|
+
onStateChanged: EventBase<QuestionFileModelBase>;
|
|
28
|
+
protected stateChanged(state: string): void;
|
|
29
|
+
get showLoadingIndicator(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies whether to store file or signature content as text in `SurveyModel`'s [`data`](https://surveyjs.io/form-library/documentation/surveymodel#data) property.
|
|
32
|
+
*
|
|
33
|
+
* If you disable this property, implement `SurveyModel`'s [`onUploadFiles`](https://surveyjs.io/form-library/documentation/surveymodel#onUploadFiles) event handler to specify how to store file content.
|
|
34
|
+
*/
|
|
35
|
+
get storeDataAsText(): boolean;
|
|
36
|
+
set storeDataAsText(val: boolean);
|
|
37
|
+
/**
|
|
38
|
+
* Enable this property if you want to wait until files are uploaded to complete the survey.
|
|
39
|
+
*
|
|
40
|
+
* Default value: `false`
|
|
41
|
+
*/
|
|
42
|
+
get waitForUpload(): boolean;
|
|
43
|
+
set waitForUpload(val: boolean);
|
|
44
|
+
clearValue(keepComment?: boolean): void;
|
|
45
|
+
clearOnDeletingContainer(): void;
|
|
46
|
+
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
|
|
47
|
+
protected uploadFiles(files: File[]): void;
|
|
48
|
+
protected loadPreview(newValue: any): void;
|
|
49
|
+
protected onChangeQuestionValue(newValue: any): void;
|
|
50
|
+
protected getIsQuestionReady(): boolean;
|
|
51
|
+
private isFileLoadingValue;
|
|
52
|
+
protected get isFileLoading(): boolean;
|
|
53
|
+
protected set isFileLoading(val: boolean);
|
|
54
|
+
}
|
|
55
|
+
export declare class QuestionFilePage extends Base {
|
|
56
|
+
private question;
|
|
57
|
+
private index;
|
|
58
|
+
private static pageCounter;
|
|
59
|
+
private static getId;
|
|
60
|
+
items: Array<any>;
|
|
61
|
+
id: string;
|
|
62
|
+
constructor(question: QuestionFileModel, index: number);
|
|
63
|
+
get css(): string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A class that describes the File Upload question type.
|
|
67
|
+
*
|
|
68
|
+
* [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
|
|
69
|
+
*/
|
|
70
|
+
export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
71
|
+
isDragging: boolean;
|
|
72
|
+
previewValue: any[];
|
|
73
|
+
pages: QuestionFilePage[];
|
|
74
|
+
navigationDirection: "left" | "right" | "left-delete";
|
|
75
|
+
indexToShow: number;
|
|
76
|
+
pageSize: number;
|
|
77
|
+
containsMultiplyFiles: boolean;
|
|
78
|
+
allowCameraAccess: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Specifies the source of uploaded files.
|
|
81
|
+
*
|
|
82
|
+
* Possible values:
|
|
83
|
+
*
|
|
84
|
+
* - `"file"` (default) - Allows respondents to select a local file.
|
|
85
|
+
* - `"camera"` - Allows respondents to capture and upload a photo.
|
|
86
|
+
* - `"file-camera"` - Allows respondents to select a local file or capture a photo.
|
|
87
|
+
* @see filePlaceholder
|
|
88
|
+
* @see photoPlaceholder
|
|
89
|
+
* @see fileOrPhotoPlaceholder
|
|
90
|
+
*/
|
|
91
|
+
sourceType: string;
|
|
92
|
+
fileNavigator: ActionContainer;
|
|
93
|
+
protected prevFileAction: Action;
|
|
94
|
+
protected nextFileAction: Action;
|
|
95
|
+
protected fileIndexAction: Action;
|
|
96
|
+
closeCameraAction: Action;
|
|
97
|
+
takePictureAction: Action;
|
|
98
|
+
changeCameraAction: Action;
|
|
99
|
+
chooseFileAction: Action;
|
|
100
|
+
startCameraAction: Action;
|
|
101
|
+
cleanAction: Action;
|
|
102
|
+
actionsContainer: ActionContainer;
|
|
103
|
+
get supportFileNavigator(): boolean;
|
|
104
|
+
get fileNavigatorVisible(): boolean;
|
|
105
|
+
private get pagesCount();
|
|
106
|
+
get actionsContainerVisible(): boolean;
|
|
107
|
+
constructor(name: string);
|
|
108
|
+
get videoId(): string;
|
|
109
|
+
get hasVideoUI(): boolean;
|
|
110
|
+
get hasFileUI(): boolean;
|
|
111
|
+
private videoStream;
|
|
112
|
+
startVideo(): void;
|
|
113
|
+
private get videoHtmlElement();
|
|
114
|
+
private startVideoInCamera;
|
|
115
|
+
stopVideo(): void;
|
|
116
|
+
snapPicture(): void;
|
|
117
|
+
private canFlipCameraValue;
|
|
118
|
+
canFlipCamera(): boolean;
|
|
119
|
+
flipCamera(): void;
|
|
120
|
+
private closeVideoStream;
|
|
121
|
+
onHidingContent(): void;
|
|
122
|
+
protected updateElementCssCore(cssClasses: any): void;
|
|
123
|
+
private getFileIndexCaption;
|
|
124
|
+
private updateFileNavigator;
|
|
125
|
+
private updateRenderedPages;
|
|
126
|
+
private updatePages;
|
|
127
|
+
private prevPreviewLength;
|
|
128
|
+
private previewValueChanged;
|
|
129
|
+
getType(): string;
|
|
130
|
+
protected onChangeQuestionValue(newValue: any): void;
|
|
131
|
+
/**
|
|
132
|
+
* Disable this property only to implement a custom preview.
|
|
133
|
+
*
|
|
134
|
+
* [View Demo](https://surveyjs.io/form-library/examples/file-custom-preview/ (linkStyle))
|
|
135
|
+
* @see allowImagesPreview
|
|
136
|
+
*/
|
|
137
|
+
get showPreview(): boolean;
|
|
138
|
+
set showPreview(val: boolean);
|
|
139
|
+
/**
|
|
140
|
+
* Specifies whether users can upload multiple files.
|
|
141
|
+
*
|
|
142
|
+
* Default value: `false`
|
|
143
|
+
*/
|
|
144
|
+
get allowMultiple(): boolean;
|
|
145
|
+
set allowMultiple(val: boolean);
|
|
146
|
+
/**
|
|
147
|
+
* The image height.
|
|
148
|
+
*/
|
|
149
|
+
get imageHeight(): string;
|
|
150
|
+
set imageHeight(val: string);
|
|
151
|
+
/**
|
|
152
|
+
* The image width.
|
|
153
|
+
*/
|
|
154
|
+
get imageWidth(): string;
|
|
155
|
+
set imageWidth(val: string);
|
|
156
|
+
/**
|
|
157
|
+
* An [accept](https://www.w3schools.com/tags/att_input_accept.asp) attribute value for the underlying `<input>` element.
|
|
158
|
+
*/
|
|
159
|
+
get acceptedTypes(): string;
|
|
160
|
+
set acceptedTypes(val: string);
|
|
161
|
+
/**
|
|
162
|
+
* Specifies whether to show a preview of image files.
|
|
163
|
+
*/
|
|
164
|
+
get allowImagesPreview(): boolean;
|
|
165
|
+
set allowImagesPreview(val: boolean);
|
|
166
|
+
/**
|
|
167
|
+
* Maximum allowed file size, measured in bytes.
|
|
168
|
+
*
|
|
169
|
+
* Default value: 0 (unlimited)
|
|
170
|
+
*/
|
|
171
|
+
get maxSize(): number;
|
|
172
|
+
set maxSize(val: number);
|
|
173
|
+
chooseFile(event: MouseEvent): void;
|
|
174
|
+
/**
|
|
175
|
+
* Specifies whether users should confirm file deletion.
|
|
176
|
+
*
|
|
177
|
+
* Default value: `false`
|
|
178
|
+
*/
|
|
179
|
+
get needConfirmRemoveFile(): boolean;
|
|
180
|
+
set needConfirmRemoveFile(val: boolean);
|
|
181
|
+
getConfirmRemoveMessage(fileName: string): string;
|
|
182
|
+
confirmRemoveMessage: string;
|
|
183
|
+
confirmRemoveAllMessage: string;
|
|
184
|
+
noFileChosenCaption: string;
|
|
185
|
+
chooseButtonCaption: string;
|
|
186
|
+
get takePhotoCaption(): string;
|
|
187
|
+
set takePhotoCaption(val: string);
|
|
188
|
+
get locTakePhotoCaption(): LocalizableString;
|
|
189
|
+
replaceButtonCaption: string;
|
|
190
|
+
removeFileCaption: string;
|
|
191
|
+
loadingFileTitle: string;
|
|
192
|
+
chooseFileTitle: string;
|
|
193
|
+
get clearButtonCaption(): string;
|
|
194
|
+
set clearButtonCaption(value: string);
|
|
195
|
+
get locClearButtonCaption(): LocalizableString;
|
|
196
|
+
/**
|
|
197
|
+
* A placeholder text displayed when the File Upload question doesn't contain any files or photos to upload. Applies only when [`sourceType`](#sourceType) value is `"file-camera"`.
|
|
198
|
+
* @see filePlaceholder
|
|
199
|
+
* @see photoPlaceholder
|
|
200
|
+
*/
|
|
201
|
+
fileOrPhotoPlaceholder: string;
|
|
202
|
+
/**
|
|
203
|
+
* A placeholder text displayed when the File Upload question doesn't contain any photos to upload. Applies only when the [`sourceType`](#sourceType) value is `"camera"`.
|
|
204
|
+
* @see filePlaceholder
|
|
205
|
+
* @see fileOrPhotoPlaceholder
|
|
206
|
+
*/
|
|
207
|
+
photoPlaceholder: string;
|
|
208
|
+
/**
|
|
209
|
+
* A placeholder text displayed when the File Upload question doesn't contain any files to upload. Applies only when the [`sourceType`](#sourceType) value is `"file"`.
|
|
210
|
+
* @see photoPlaceholder
|
|
211
|
+
* @see fileOrPhotoPlaceholder
|
|
212
|
+
*/
|
|
213
|
+
filePlaceholder: string;
|
|
214
|
+
locRenderedPlaceholderValue: LocalizableString;
|
|
215
|
+
get locRenderedPlaceholder(): LocalizableString;
|
|
216
|
+
get currentMode(): string;
|
|
217
|
+
get isPlayingVideo(): boolean;
|
|
218
|
+
private setIsPlayingVideo;
|
|
219
|
+
private updateCurrentMode;
|
|
220
|
+
private updateActionsVisibility;
|
|
221
|
+
get inputTitle(): string;
|
|
222
|
+
get chooseButtonText(): string;
|
|
223
|
+
clear(doneCallback?: () => void): void;
|
|
224
|
+
get renderCapture(): string;
|
|
225
|
+
get multipleRendered(): string;
|
|
226
|
+
get showChooseButton(): boolean;
|
|
227
|
+
get showFileDecorator(): boolean;
|
|
228
|
+
get allowShowPreview(): boolean;
|
|
229
|
+
get showPreviewContainer(): boolean;
|
|
230
|
+
get showRemoveButtonCore(): boolean;
|
|
231
|
+
get showRemoveButton(): boolean;
|
|
232
|
+
get showRemoveButtonBottom(): boolean;
|
|
233
|
+
defaultImage(data: any): boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Removes a file with a specified name.
|
|
236
|
+
*/
|
|
237
|
+
removeFile(name: string): void;
|
|
238
|
+
protected removeFileByContent(content: any): void;
|
|
239
|
+
protected setValueFromResult(arg: any): void;
|
|
240
|
+
/**
|
|
241
|
+
* Loads multiple files into the question.
|
|
242
|
+
* @param files An array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects.
|
|
243
|
+
*/
|
|
244
|
+
loadFiles(files: File[]): void;
|
|
245
|
+
private cameraValue;
|
|
246
|
+
protected get camera(): Camera;
|
|
247
|
+
canPreviewImage(fileItem: any): boolean;
|
|
248
|
+
private prevLoadedPreviewValue;
|
|
249
|
+
protected loadPreview(newValue: any): void;
|
|
250
|
+
private allFilesOk;
|
|
251
|
+
private isFileImage;
|
|
252
|
+
getPlainData(options?: IPlainDataOptions): IQuestionPlainData;
|
|
253
|
+
getImageWrapperCss(data: any): string;
|
|
254
|
+
protected getActionsContainerCss(css: any): string;
|
|
255
|
+
getRemoveButtonCss(): string;
|
|
256
|
+
getChooseFileCss(): string;
|
|
257
|
+
getReadOnlyFileCss(): string;
|
|
258
|
+
get fileRootCss(): string;
|
|
259
|
+
getFileDecoratorCss(): string;
|
|
260
|
+
private onChange;
|
|
261
|
+
protected calcCssClasses(css: any): any;
|
|
262
|
+
onSurveyLoad(): void;
|
|
263
|
+
protected needResponsiveness(): boolean;
|
|
264
|
+
protected supportResponsiveness(): boolean;
|
|
265
|
+
protected getObservedElementSelector(): string;
|
|
266
|
+
private getFileListSelector;
|
|
267
|
+
private _renderedPages;
|
|
268
|
+
get renderedPages(): Array<QuestionFilePage>;
|
|
269
|
+
set renderedPages(val: Array<QuestionFilePage>);
|
|
270
|
+
private getPagesAnimationOptions;
|
|
271
|
+
private pagesAnimation;
|
|
272
|
+
private calcAvailableItemsCount;
|
|
273
|
+
private calculatedGapBetweenItems;
|
|
274
|
+
private calculatedItemWidth;
|
|
275
|
+
private _width;
|
|
276
|
+
triggerResponsiveness(hard?: boolean): void;
|
|
277
|
+
protected processResponsiveness(_: number, availableWidth: number): boolean;
|
|
278
|
+
private rootElement;
|
|
279
|
+
private canDragDrop;
|
|
280
|
+
afterRenderQuestionElement(el: HTMLElement): void;
|
|
281
|
+
beforeDestroyQuestionElement(el: HTMLElement): void;
|
|
282
|
+
private dragCounter;
|
|
283
|
+
onDragEnter: (event: any) => void;
|
|
284
|
+
onDragOver: (event: any) => boolean;
|
|
285
|
+
onDrop: (event: any) => void;
|
|
286
|
+
onDragLeave: (event: any) => void;
|
|
287
|
+
doChange: (event: any) => void;
|
|
288
|
+
doClean: () => void;
|
|
289
|
+
private clearFilesCore;
|
|
290
|
+
doRemoveFile(data: any, event: any): void;
|
|
291
|
+
private removeFileCore;
|
|
292
|
+
doDownloadFileFromContainer: (event: MouseEvent) => void;
|
|
293
|
+
doDownloadFile: (event: any, data: any) => void;
|
|
294
|
+
dispose(): void;
|
|
295
|
+
}
|
|
296
|
+
export declare class FileLoader {
|
|
297
|
+
private fileQuestion;
|
|
298
|
+
private callback;
|
|
299
|
+
constructor(fileQuestion: QuestionFileModelBase, callback: (status: string, files: any[]) => void);
|
|
300
|
+
loaded: any[];
|
|
301
|
+
load(files: Array<any>): void;
|
|
302
|
+
dispose(): void;
|
|
303
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { QuestionNonValue } from "./questionnonvalue";
|
|
2
|
+
import { LocalizableString } from "./localizablestring";
|
|
3
|
+
/**
|
|
4
|
+
* A class that describes the HTML question type. Unlike other question types, HTML cannot have a title or value.
|
|
5
|
+
*
|
|
6
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-html/ (linkStyle))
|
|
7
|
+
*/
|
|
8
|
+
export declare class QuestionHtmlModel extends QuestionNonValue {
|
|
9
|
+
ignoreHtmlProgressing: boolean;
|
|
10
|
+
constructor(name: string);
|
|
11
|
+
getType(): string;
|
|
12
|
+
get isCompositeQuestion(): boolean;
|
|
13
|
+
getProcessedText(text: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* HTML markup to display.
|
|
16
|
+
*
|
|
17
|
+
* > IMPORTANT: If you get the markup from a third party, ensure that it does not contain malicious code.
|
|
18
|
+
*/
|
|
19
|
+
get html(): string;
|
|
20
|
+
set html(val: string);
|
|
21
|
+
get locHtml(): LocalizableString;
|
|
22
|
+
get processedHtml(): string;
|
|
23
|
+
private processHtml;
|
|
24
|
+
get isNewA11yStructure(): boolean;
|
|
25
|
+
get renderCssRoot(): string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { QuestionNonValue } from "./questionnonvalue";
|
|
2
|
+
import { LocalizableString } from "./localizablestring";
|
|
3
|
+
/**
|
|
4
|
+
* A class that describes the Image question type. Unlike other question types, Image cannot have a title or value.
|
|
5
|
+
*
|
|
6
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-image/ (linkStyle))
|
|
7
|
+
*/
|
|
8
|
+
export declare class QuestionImageModel extends QuestionNonValue {
|
|
9
|
+
contentNotLoaded: boolean;
|
|
10
|
+
constructor(name: string);
|
|
11
|
+
getType(): string;
|
|
12
|
+
get isCompositeQuestion(): boolean;
|
|
13
|
+
onSurveyLoad(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Specifies an image or video URL.
|
|
16
|
+
* @see contentMode
|
|
17
|
+
*/
|
|
18
|
+
get imageLink(): string;
|
|
19
|
+
set imageLink(val: string);
|
|
20
|
+
get locImageLink(): LocalizableString;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies a value for the `alt` attribute of the underlying `<img>` element.
|
|
23
|
+
*/
|
|
24
|
+
get altText(): string;
|
|
25
|
+
set altText(val: string);
|
|
26
|
+
get locAltText(): LocalizableString;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the height of a container for the image or video. Accepts positive numbers and CSS values.
|
|
29
|
+
*
|
|
30
|
+
* Default value: 150
|
|
31
|
+
*
|
|
32
|
+
* Use the `imageFit` property to specify how to fit the image or video into the container.
|
|
33
|
+
* @see imageWidth
|
|
34
|
+
* @see imageFit
|
|
35
|
+
*/
|
|
36
|
+
get imageHeight(): string;
|
|
37
|
+
set imageHeight(val: string);
|
|
38
|
+
get renderedStyleHeight(): string;
|
|
39
|
+
get renderedHeight(): number;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the width of a container for the image or video. Accepts positive numbers and CSS values.
|
|
42
|
+
*
|
|
43
|
+
* Default value: 200
|
|
44
|
+
*
|
|
45
|
+
* Use the `imageFit` property to specify how to fit the image or video into the container.
|
|
46
|
+
* @see imageHeight
|
|
47
|
+
* @see imageFit
|
|
48
|
+
*/
|
|
49
|
+
get imageWidth(): string;
|
|
50
|
+
set imageWidth(val: string);
|
|
51
|
+
get renderedStyleWidth(): string;
|
|
52
|
+
get renderedWidth(): number;
|
|
53
|
+
/**
|
|
54
|
+
* Specifies how to resize the image or video to fit it into its container.
|
|
55
|
+
*
|
|
56
|
+
* Refer to the [`object-fit`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property description for information on accepted values.
|
|
57
|
+
* @see imageHeight
|
|
58
|
+
* @see imageWidth
|
|
59
|
+
*/
|
|
60
|
+
get imageFit(): string;
|
|
61
|
+
set imageFit(val: string);
|
|
62
|
+
/**
|
|
63
|
+
* Specifies the type of content that the Image question displays.
|
|
64
|
+
*
|
|
65
|
+
* Possible values:
|
|
66
|
+
*
|
|
67
|
+
* - `"image"` - An image in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
|
|
68
|
+
* - `"video"` - A video in one of the following formats: MP4, MOV, WMV, FLV, AVI, MKV.
|
|
69
|
+
* - `"youtube"` - A link to a YouTube video.
|
|
70
|
+
* - `"auto"` (default) - Selects one of the above based on the [`imageLink`](https://surveyjs.io/form-library/documentation/questionimagemodel#imageLink) property.
|
|
71
|
+
*/
|
|
72
|
+
get contentMode(): string;
|
|
73
|
+
set contentMode(val: string);
|
|
74
|
+
/**
|
|
75
|
+
* Returns the type of content that the Image question displays: `"image"`, `"video"`, or `"youtube"`.
|
|
76
|
+
* @see contentMode
|
|
77
|
+
*/
|
|
78
|
+
get renderedMode(): string;
|
|
79
|
+
getImageCss(): string;
|
|
80
|
+
onLoadHandler(): void;
|
|
81
|
+
onErrorHandler(): void;
|
|
82
|
+
private setRenderedMode;
|
|
83
|
+
protected calculateRenderedMode(): void;
|
|
84
|
+
private isYoutubeVideo;
|
|
85
|
+
private isVideo;
|
|
86
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { QuestionCheckboxBase } from "./question_baseselect";
|
|
2
|
+
import { ItemValue } from "./itemvalue";
|
|
3
|
+
import { ILocalizableOwner, LocalizableString } from "./localizablestring";
|
|
4
|
+
export declare class ImageItemValue extends ItemValue implements ILocalizableOwner {
|
|
5
|
+
protected typeName: string;
|
|
6
|
+
private videoNotLoaded;
|
|
7
|
+
private imageNotLoaded;
|
|
8
|
+
constructor(value: any, text?: string, typeName?: string);
|
|
9
|
+
getType(): string;
|
|
10
|
+
/**
|
|
11
|
+
* The image or video link property.
|
|
12
|
+
*/
|
|
13
|
+
get imageLink(): string;
|
|
14
|
+
set imageLink(val: string);
|
|
15
|
+
private aspectRatio;
|
|
16
|
+
get locImageLink(): LocalizableString;
|
|
17
|
+
getLocale(): string;
|
|
18
|
+
getMarkdownHtml(text: string, name: string): string;
|
|
19
|
+
getRenderer(name: string): string;
|
|
20
|
+
getRendererContext(locStr: LocalizableString): any;
|
|
21
|
+
getProcessedText(text: string): string;
|
|
22
|
+
onErrorHandler(): void;
|
|
23
|
+
set contentNotLoaded(val: boolean);
|
|
24
|
+
get contentNotLoaded(): boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A class that describes the Image Picker question type.
|
|
28
|
+
*
|
|
29
|
+
* [View Demo](https://surveyjs.io/form-library/examples/image-picker-question/ (linkStyle))
|
|
30
|
+
*/
|
|
31
|
+
export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
32
|
+
constructor(name: string);
|
|
33
|
+
getType(): string;
|
|
34
|
+
supportAutoAdvance(): boolean;
|
|
35
|
+
get hasSingleInput(): boolean;
|
|
36
|
+
protected getItemValueType(): string;
|
|
37
|
+
get isCompositeQuestion(): boolean;
|
|
38
|
+
protected get itemFlowDirection(): string;
|
|
39
|
+
supportOther(): boolean;
|
|
40
|
+
supportNone(): boolean;
|
|
41
|
+
supportRefuse(): boolean;
|
|
42
|
+
supportDontKnow(): boolean;
|
|
43
|
+
isAnswerCorrect(): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Specifies whether users can select multiple images or videos.
|
|
46
|
+
*
|
|
47
|
+
* Default value: `false`
|
|
48
|
+
*/
|
|
49
|
+
get multiSelect(): boolean;
|
|
50
|
+
set multiSelect(newValue: boolean);
|
|
51
|
+
isItemSelected(item: ItemValue): boolean;
|
|
52
|
+
getItemEnabled(item: ItemValue): boolean;
|
|
53
|
+
clearIncorrectValues(): void;
|
|
54
|
+
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
|
55
|
+
/**
|
|
56
|
+
* Specifies whether to display labels under images or videos. Labels text are taken from the `text` property of each object in the `choices` array.
|
|
57
|
+
* @see choices
|
|
58
|
+
*/
|
|
59
|
+
get showLabel(): boolean;
|
|
60
|
+
set showLabel(newValue: boolean);
|
|
61
|
+
endLoadingFromJson(): void;
|
|
62
|
+
protected getValueCore(): any;
|
|
63
|
+
private convertValToArrayForMultSelect;
|
|
64
|
+
protected renderedValueFromDataCore(val: any): any;
|
|
65
|
+
protected rendredValueToDataCore(val: any): any;
|
|
66
|
+
/**
|
|
67
|
+
* Specifies the height of containers for images or videos. Accepts positive numbers and CSS values.
|
|
68
|
+
*
|
|
69
|
+
* Default value: `auto`
|
|
70
|
+
*
|
|
71
|
+
* This property allows you to specify the exact image height. If you do not set it, the height will be calculated automatically based on the [`minImageHeight`](#minImageHeight) and [`maxImageHeight`](#maxImageHeight) values and available screen height.
|
|
72
|
+
*
|
|
73
|
+
* Use the [`imageFit`](#imageFit) property to specify how to fit the images or videos into their containers.
|
|
74
|
+
* @see imageWidth
|
|
75
|
+
*/
|
|
76
|
+
get imageHeight(): number;
|
|
77
|
+
set imageHeight(val: number);
|
|
78
|
+
get imageScale(): number;
|
|
79
|
+
private responsiveImageHeight;
|
|
80
|
+
get renderedImageHeight(): number;
|
|
81
|
+
/**
|
|
82
|
+
* Specifies the width of containers for images or videos. Accepts positive numbers and CSS values.
|
|
83
|
+
*
|
|
84
|
+
* Default value: `auto`
|
|
85
|
+
*
|
|
86
|
+
* This property allows you to specify the exact image width. If you do not set it, the width will be calculated automatically based on the [`minImageWidth`](#minImageWidth) and [`maxImageWidth`](#maxImageWidth) values and available screen width.
|
|
87
|
+
*
|
|
88
|
+
* Use the [`imageFit`](#imageFit) property to specify how to fit the images or videos into their containers.
|
|
89
|
+
* @see imageHeight
|
|
90
|
+
*/
|
|
91
|
+
get imageWidth(): number;
|
|
92
|
+
set imageWidth(val: number);
|
|
93
|
+
private responsiveImageWidth;
|
|
94
|
+
get renderedImageWidth(): number;
|
|
95
|
+
/**
|
|
96
|
+
* Specifies how to resize images or videos to fit them into their containers.
|
|
97
|
+
*
|
|
98
|
+
* Refer to the [`object-fit`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property description for information on accepted values.
|
|
99
|
+
* @see imageHeight
|
|
100
|
+
* @see imageWidth
|
|
101
|
+
*/
|
|
102
|
+
get imageFit(): string;
|
|
103
|
+
set imageFit(val: string);
|
|
104
|
+
/**
|
|
105
|
+
* Specifies the type of content that choice items display.
|
|
106
|
+
*
|
|
107
|
+
* Possible values:
|
|
108
|
+
*
|
|
109
|
+
* - `"image"` (default) - Images in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
|
|
110
|
+
* - `"video"` - Videos in one of the following formats: MP4, MOV, WMV, FLV, AVI, MKV.
|
|
111
|
+
*/
|
|
112
|
+
get contentMode(): string;
|
|
113
|
+
set contentMode(val: string);
|
|
114
|
+
protected convertDefaultValue(val: any): any;
|
|
115
|
+
get inputType(): "checkbox" | "radio";
|
|
116
|
+
protected isBuiltInChoice(item: ItemValue): boolean;
|
|
117
|
+
protected addToVisibleChoices(items: Array<ItemValue>, isAddAll: boolean): void;
|
|
118
|
+
getSelectBaseRootCss(): string;
|
|
119
|
+
private isResponsiveValue;
|
|
120
|
+
/**
|
|
121
|
+
* Specifies a maximum width for image or video containers. Accepts positive numbers and CSS values.
|
|
122
|
+
*
|
|
123
|
+
* Default value: 3000
|
|
124
|
+
*
|
|
125
|
+
* The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
|
|
126
|
+
*/
|
|
127
|
+
maxImageWidth: number;
|
|
128
|
+
/**
|
|
129
|
+
* Specifies a minimum width for image or video containers. Accepts positive numbers and CSS values.
|
|
130
|
+
*
|
|
131
|
+
* Default value: 200
|
|
132
|
+
*
|
|
133
|
+
* The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
|
|
134
|
+
*/
|
|
135
|
+
minImageWidth: number;
|
|
136
|
+
/**
|
|
137
|
+
* Specifies a maximum height for image or video containers. Accepts positive numbers and CSS values.
|
|
138
|
+
*
|
|
139
|
+
* Default value: 3000
|
|
140
|
+
*
|
|
141
|
+
* The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
|
|
142
|
+
*/
|
|
143
|
+
maxImageHeight: number;
|
|
144
|
+
/**
|
|
145
|
+
* Specifies a minimum height for image or video containers. Accepts positive numbers and CSS values.
|
|
146
|
+
*
|
|
147
|
+
* Default value: 133
|
|
148
|
+
*
|
|
149
|
+
* The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
|
|
150
|
+
*/
|
|
151
|
+
minImageHeight: number;
|
|
152
|
+
private get isResponsive();
|
|
153
|
+
private get exactSizesAreEmpty();
|
|
154
|
+
private calcIsResponsive;
|
|
155
|
+
protected getObservedElementSelector(): string;
|
|
156
|
+
protected supportResponsiveness(): boolean;
|
|
157
|
+
protected needResponsiveness(): boolean;
|
|
158
|
+
needResponsiveWidth(): boolean;
|
|
159
|
+
private _width;
|
|
160
|
+
onContentLoaded: (item: ImageItemValue, event: any) => void;
|
|
161
|
+
private responsiveColCount;
|
|
162
|
+
protected getCurrentColCount(): number;
|
|
163
|
+
protected processResponsiveness(_: number, availableWidth: number): boolean;
|
|
164
|
+
triggerResponsiveness(hard?: boolean): void;
|
|
165
|
+
private gapBetweenItems;
|
|
166
|
+
private reCalcGapBetweenItemsCallback;
|
|
167
|
+
afterRender(el: HTMLElement): void;
|
|
168
|
+
}
|