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,40 @@
|
|
|
1
|
+
import { QuestionCheckboxBase } from "./question_baseselect";
|
|
2
|
+
import { ItemValue } from "./itemvalue";
|
|
3
|
+
import { Action } from "./actions/action";
|
|
4
|
+
/**
|
|
5
|
+
* A class that describes the Radio Button Group question type.
|
|
6
|
+
*
|
|
7
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-radiogroup/ (linkStyle))
|
|
8
|
+
*/
|
|
9
|
+
export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
|
|
10
|
+
constructor(name: string);
|
|
11
|
+
protected getDefaultItemComponent(): string;
|
|
12
|
+
getType(): string;
|
|
13
|
+
protected getFirstInputElementId(): string;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the selected choice item. If no item is selected, returns `null`.
|
|
16
|
+
*/
|
|
17
|
+
get selectedItem(): ItemValue;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies whether to display a button that clears the question value.
|
|
20
|
+
*
|
|
21
|
+
* Default value: `false`
|
|
22
|
+
*/
|
|
23
|
+
get allowClear(): boolean;
|
|
24
|
+
set allowClear(val: boolean);
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Use the [`allowClear`](https://surveyjs.io/form-library/documentation/api-reference/radio-button-question-model#allowClear) property instead.
|
|
27
|
+
*/
|
|
28
|
+
get showClearButton(): boolean;
|
|
29
|
+
set showClearButton(val: boolean);
|
|
30
|
+
get canShowClearButton(): boolean;
|
|
31
|
+
get clearButtonCaption(): string;
|
|
32
|
+
supportAutoAdvance(): boolean;
|
|
33
|
+
getConditionJson(operator?: string, path?: string): any;
|
|
34
|
+
protected setNewComment(newValue: string): void;
|
|
35
|
+
get showClearButtonInContent(): boolean;
|
|
36
|
+
clickItemHandler(item: ItemValue): void;
|
|
37
|
+
protected getDefaultTitleActions(): Array<Action>;
|
|
38
|
+
get isNewA11yStructure(): boolean;
|
|
39
|
+
get a11y_input_ariaRole(): string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { ISurveyImpl } from "./base-interfaces";
|
|
2
|
+
import { DragDropRankingChoices } from "./dragdrop/ranking-choices";
|
|
3
|
+
import { ItemValue } from "./itemvalue";
|
|
4
|
+
import { QuestionCheckboxModel } from "./question_checkbox";
|
|
5
|
+
import { AnimationGroup } from "./utils/animation";
|
|
6
|
+
/**
|
|
7
|
+
* A class that describes the Ranking question type.
|
|
8
|
+
*
|
|
9
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-ranking/ (linkStyle))
|
|
10
|
+
*/
|
|
11
|
+
export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
12
|
+
private domNode;
|
|
13
|
+
private dragOrClickHelper;
|
|
14
|
+
constructor(name: string);
|
|
15
|
+
getType(): string;
|
|
16
|
+
getItemTabIndex(item: ItemValue): number;
|
|
17
|
+
protected supportContainerQueries(): boolean;
|
|
18
|
+
get rootClass(): string;
|
|
19
|
+
protected isItemSelectedCore(item: ItemValue): boolean;
|
|
20
|
+
protected getItemClassCore(item: ItemValue, options: any): string;
|
|
21
|
+
getContainerClasses(containerType?: string): string;
|
|
22
|
+
protected isItemCurrentDropTarget(item: ItemValue): boolean;
|
|
23
|
+
get ghostPositionCssClass(): string;
|
|
24
|
+
getItemIndexClasses(item: ItemValue): string;
|
|
25
|
+
getNumberByIndex(index: number): string;
|
|
26
|
+
private updateRankingChoicesSync;
|
|
27
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
28
|
+
isAnswerCorrect(): boolean;
|
|
29
|
+
get requireStrictCompare(): boolean;
|
|
30
|
+
onSurveyValueChanged(newValue: any): void;
|
|
31
|
+
onSurveyLoad(): void;
|
|
32
|
+
protected onVisibleChoicesChanged: () => void;
|
|
33
|
+
updateValueFromSurvey(newValue: any, clearData: boolean): void;
|
|
34
|
+
localeChanged: () => void;
|
|
35
|
+
private addToValueByVisibleChoices;
|
|
36
|
+
private removeFromValueByVisibleChoices;
|
|
37
|
+
private getChoicesAnimationOptions;
|
|
38
|
+
private _rankingChoicesAnimation;
|
|
39
|
+
get rankingChoicesAnimation(): AnimationGroup<ItemValue>;
|
|
40
|
+
private _unRankingChoicesAnimation;
|
|
41
|
+
get unRankingChoicesAnimation(): AnimationGroup<ItemValue>;
|
|
42
|
+
rankingChoices: Array<ItemValue>;
|
|
43
|
+
unRankingChoices: Array<ItemValue>;
|
|
44
|
+
private _renderedRankingChoices;
|
|
45
|
+
private _renderedUnRankingChoices;
|
|
46
|
+
get renderedRankingChoices(): Array<ItemValue>;
|
|
47
|
+
set renderedRankingChoices(val: Array<ItemValue>);
|
|
48
|
+
get renderedUnRankingChoices(): Array<ItemValue>;
|
|
49
|
+
set renderedUnRankingChoices(val: Array<ItemValue>);
|
|
50
|
+
private updateRenderedRankingChoices;
|
|
51
|
+
private updateRenderedUnRankingChoices;
|
|
52
|
+
private updateRankingChoices;
|
|
53
|
+
updateUnRankingChoices(newRankingChoices: Array<ItemValue>): void;
|
|
54
|
+
private updateRankingChoicesSelectToRankMode;
|
|
55
|
+
dragDropRankingChoices: DragDropRankingChoices;
|
|
56
|
+
currentDropTarget: ItemValue;
|
|
57
|
+
endLoadingFromJson(): void;
|
|
58
|
+
private setDragDropRankingChoices;
|
|
59
|
+
protected createDragDropRankingChoices(): DragDropRankingChoices;
|
|
60
|
+
private draggedChoiceValue;
|
|
61
|
+
private draggedTargetNode;
|
|
62
|
+
handlePointerDown: (event: PointerEvent, choice: ItemValue, node: HTMLElement) => void;
|
|
63
|
+
startDrag: (event: PointerEvent) => void;
|
|
64
|
+
handlePointerUp: (event: PointerEvent, choice: ItemValue, node: HTMLElement) => void;
|
|
65
|
+
private isDragStartNodeValid;
|
|
66
|
+
private isAllowStartDrag;
|
|
67
|
+
private canStartDragDueMaxSelectedChoices;
|
|
68
|
+
private canStartDragDueItemEnabled;
|
|
69
|
+
checkMaxSelectedChoicesUnreached(): boolean;
|
|
70
|
+
afterRenderQuestionElement(el: HTMLElement): void;
|
|
71
|
+
beforeDestroyQuestionElement(el: HTMLElement): void;
|
|
72
|
+
handleKeydown: (event: KeyboardEvent, choice: ItemValue) => void;
|
|
73
|
+
protected supportSelectAll(): boolean;
|
|
74
|
+
supportOther(): boolean;
|
|
75
|
+
supportNone(): boolean;
|
|
76
|
+
supportRefuse(): boolean;
|
|
77
|
+
supportDontKnow(): boolean;
|
|
78
|
+
handleKeydownSelectToRank(event: KeyboardEvent, movedElement: ItemValue, hardKey?: string, isNeedFocus?: boolean): void;
|
|
79
|
+
private setValueAfterKeydown;
|
|
80
|
+
private focusItem;
|
|
81
|
+
isValueSetByUser: boolean;
|
|
82
|
+
setValue: () => void;
|
|
83
|
+
getIconHoverCss(): string;
|
|
84
|
+
getIconFocusCss(): string;
|
|
85
|
+
/**
|
|
86
|
+
* Specifies whether to use a long tap (press and hold) gesture to start dragging.
|
|
87
|
+
*
|
|
88
|
+
* Default value: `true`
|
|
89
|
+
*
|
|
90
|
+
* Disable this property if you want to start dragging when users perform a scroll gesture.
|
|
91
|
+
*/
|
|
92
|
+
get longTap(): boolean;
|
|
93
|
+
set longTap(val: boolean);
|
|
94
|
+
protected getDefaultItemComponent(): string;
|
|
95
|
+
/**
|
|
96
|
+
* Specifies whether users can select choices they want to rank.
|
|
97
|
+
*
|
|
98
|
+
* When you enable this property, the Ranking question displays two areas for ranked and unranked choices. To order choices, users should first drag them from the unranked to the ranked area. Use this mode if you want to let users order only the choices they select.
|
|
99
|
+
*
|
|
100
|
+
* Default value: `false`
|
|
101
|
+
* @see selectToRankAreasLayout
|
|
102
|
+
*/
|
|
103
|
+
get selectToRankEnabled(): boolean;
|
|
104
|
+
set selectToRankEnabled(val: boolean);
|
|
105
|
+
get selectToRankSwapAreas(): boolean;
|
|
106
|
+
set selectToRankSwapAreas(val: boolean);
|
|
107
|
+
carryForwardStartUnranked: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Specifies the layout of the ranked and unranked areas. Applies when [`selectToRankEnabled`](https://surveyjs.io/form-library/documentation/api-reference/ranking-question-model#selectToRankEnabled) is `true`.
|
|
110
|
+
*
|
|
111
|
+
* Possible values:
|
|
112
|
+
*
|
|
113
|
+
* - `"horizontal"` (default) - The ranked and unranked areas are positioned next to each other. Users drag and drop choices between them in the horizontal direction.
|
|
114
|
+
* - `"vertical"`- The ranked area is positioned above the unranked area. Users drag and drop choices between them in the vertical direction.
|
|
115
|
+
* @see selectToRankAreasLayout
|
|
116
|
+
*/
|
|
117
|
+
get selectToRankAreasLayout(): string;
|
|
118
|
+
set selectToRankAreasLayout(val: string);
|
|
119
|
+
get renderedSelectToRankAreasLayout(): string;
|
|
120
|
+
isMobileMode(): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* A placeholder displayed in the area for ranked choices. Applies when [`selectToRankEnabled`](https://surveyjs.io/form-library/documentation/api-reference/ranking-question-model#selectToRankEnabled) is `true`.
|
|
123
|
+
*/
|
|
124
|
+
selectToRankEmptyRankedAreaText: string;
|
|
125
|
+
/**
|
|
126
|
+
* A placeholder displayed in the area for unranked choices. Applies when [`selectToRankEnabled`](https://surveyjs.io/form-library/documentation/api-reference/ranking-question-model#selectToRankEnabled) is `true`.
|
|
127
|
+
*/
|
|
128
|
+
selectToRankEmptyUnrankedAreaText: string;
|
|
129
|
+
get useFullItemSizeForShortcut(): boolean;
|
|
130
|
+
set useFullItemSizeForShortcut(val: boolean);
|
|
131
|
+
get dragDropSvgIcon(): string;
|
|
132
|
+
get arrowsSvgIcon(): string;
|
|
133
|
+
get dashSvgIcon(): string;
|
|
134
|
+
get isNewA11yStructure(): boolean;
|
|
135
|
+
}
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { ItemValue } from "./itemvalue";
|
|
2
|
+
import { Question } from "./question";
|
|
3
|
+
import { LocalizableString } from "./localizablestring";
|
|
4
|
+
import { Base } from "./base";
|
|
5
|
+
import { DropdownListModel } from "./dropdownListModel";
|
|
6
|
+
import { ISurveyImpl } from "./base-interfaces";
|
|
7
|
+
import { ITheme } from "./themes";
|
|
8
|
+
import { HashTable } from "./helpers";
|
|
9
|
+
export declare class RenderedRatingItem extends Base {
|
|
10
|
+
itemValue: ItemValue;
|
|
11
|
+
private locString;
|
|
12
|
+
private onStringChangedCallback;
|
|
13
|
+
get value(): number;
|
|
14
|
+
highlight: "none" | "highlighted" | "unhighlighted";
|
|
15
|
+
get locText(): LocalizableString;
|
|
16
|
+
text: string;
|
|
17
|
+
style: any;
|
|
18
|
+
constructor(itemValue: ItemValue, locString?: LocalizableString);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A class that describes the Rating Scale question type.
|
|
22
|
+
*
|
|
23
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
24
|
+
*/
|
|
25
|
+
export declare class QuestionRatingModel extends Question {
|
|
26
|
+
constructor(name: string);
|
|
27
|
+
private setIconsToRateValues;
|
|
28
|
+
endLoadingFromJson(): void;
|
|
29
|
+
private _syncPropertiesChanging;
|
|
30
|
+
private registerSychProperties;
|
|
31
|
+
private useRateValues;
|
|
32
|
+
private updateRateMax;
|
|
33
|
+
private updateRateMin;
|
|
34
|
+
private updateRateCount;
|
|
35
|
+
initPropertyDependencies(): void;
|
|
36
|
+
inputHasValue: boolean;
|
|
37
|
+
get showSelectedItemLocText(): boolean;
|
|
38
|
+
get selectedItemLocText(): LocalizableString;
|
|
39
|
+
autoGenerate: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* A list of rate values.
|
|
42
|
+
*
|
|
43
|
+
* This property accepts an array of objects with the following structure:
|
|
44
|
+
*
|
|
45
|
+
* ```js
|
|
46
|
+
* {
|
|
47
|
+
* "value": any, // A value to be saved in survey results
|
|
48
|
+
* "text": String, // A display text. This property supports Markdown. When `text` is undefined, `value` is used.
|
|
49
|
+
* "customProperty": any // Any property that you find useful.
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* If you add custom properties, refer to the following help topic to learn how to serialize them into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
|
|
54
|
+
*
|
|
55
|
+
* To enable Markdown support for the `text` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with markdown-it](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
|
56
|
+
*
|
|
57
|
+
* If you need to specify only the `value` property, you can set the `rateValues` property to an array of numbers, for example, `[ 3, 6, 10 ]`. These values are both saved in survey results and used as display text.
|
|
58
|
+
*
|
|
59
|
+
* If you do not specify the `rateValues` property, rate values are generated automatically based upon the [`rateMin`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMin), [`rateMax`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMax), [`rateStep`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateStep), and [`rateCount`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateCount) property values.
|
|
60
|
+
*
|
|
61
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
62
|
+
*/
|
|
63
|
+
get rateValues(): Array<any>;
|
|
64
|
+
set rateValues(val: Array<any>);
|
|
65
|
+
/**
|
|
66
|
+
* Specifies the first rate value in the generated sequence of rate values. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
|
|
67
|
+
*
|
|
68
|
+
* Default value: 1
|
|
69
|
+
*
|
|
70
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
71
|
+
* @see rateMax
|
|
72
|
+
* @see rateStep
|
|
73
|
+
* @see rateCount
|
|
74
|
+
*/
|
|
75
|
+
get rateMin(): number;
|
|
76
|
+
set rateMin(val: number);
|
|
77
|
+
/**
|
|
78
|
+
* Specifies the last rate value in the generated sequence of rate values. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
|
|
79
|
+
*
|
|
80
|
+
* Default value: 5
|
|
81
|
+
*
|
|
82
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
83
|
+
* @see rateMin
|
|
84
|
+
* @see rateStep
|
|
85
|
+
* @see rateCount
|
|
86
|
+
*/
|
|
87
|
+
get rateMax(): number;
|
|
88
|
+
set rateMax(val: number);
|
|
89
|
+
/**
|
|
90
|
+
* Specifies a step with which to generate rate values. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
|
|
91
|
+
*
|
|
92
|
+
* Default value: 1
|
|
93
|
+
*
|
|
94
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
95
|
+
* @see rateMin
|
|
96
|
+
* @see rateMax
|
|
97
|
+
* @see rateCount
|
|
98
|
+
*/
|
|
99
|
+
get rateStep(): number;
|
|
100
|
+
set rateStep(val: number);
|
|
101
|
+
/**
|
|
102
|
+
* Specifies the number of rate values you want to generate. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
|
|
103
|
+
*
|
|
104
|
+
* Set the [`rateMin`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMin) or [`rateMax`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMax) property to specify the first or the last rate value. Use the [`rateStep`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateStep) property to specify a step with which to generate rate values.
|
|
105
|
+
*
|
|
106
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
107
|
+
*/
|
|
108
|
+
rateCount: number;
|
|
109
|
+
private static colorsCalculated;
|
|
110
|
+
private static badColor;
|
|
111
|
+
private static normalColor;
|
|
112
|
+
private static goodColor;
|
|
113
|
+
private static badColorLight;
|
|
114
|
+
private static normalColorLight;
|
|
115
|
+
private static goodColorLight;
|
|
116
|
+
private updateColors;
|
|
117
|
+
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
|
118
|
+
get visibleRateValues(): ItemValue[];
|
|
119
|
+
protected supportEmptyValidation(): boolean;
|
|
120
|
+
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
121
|
+
protected runConditionCore(values: HashTable<any>, properties: HashTable<any>): void;
|
|
122
|
+
protected runRateItesmCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
123
|
+
private getRateValuesCore;
|
|
124
|
+
private calculateRateValues;
|
|
125
|
+
private calculateRenderedRateItems;
|
|
126
|
+
private calculateVisibleChoices;
|
|
127
|
+
private iCounter;
|
|
128
|
+
private resetRenderedItems;
|
|
129
|
+
get renderedRateItems(): Array<RenderedRatingItem>;
|
|
130
|
+
get visibleChoices(): ItemValue[];
|
|
131
|
+
private createRateValues;
|
|
132
|
+
private getRatingItemValue;
|
|
133
|
+
private correctValue;
|
|
134
|
+
getType(): string;
|
|
135
|
+
protected getFirstInputElementId(): string;
|
|
136
|
+
getInputId(index: number): string;
|
|
137
|
+
get questionName(): string;
|
|
138
|
+
supportAutoAdvance(): boolean;
|
|
139
|
+
supportOther(): boolean;
|
|
140
|
+
protected getPlainDataCalculatedValue(propName: string): any;
|
|
141
|
+
/**
|
|
142
|
+
* Specifies a description for the minimum (first) rate value.
|
|
143
|
+
* @see rateDescriptionLocation
|
|
144
|
+
* @see displayRateDescriptionsAsExtremeItems
|
|
145
|
+
* @see rateValues
|
|
146
|
+
* @see rateMin
|
|
147
|
+
*/
|
|
148
|
+
get minRateDescription(): string;
|
|
149
|
+
set minRateDescription(val: string);
|
|
150
|
+
get locMinRateDescription(): LocalizableString;
|
|
151
|
+
/**
|
|
152
|
+
* Specifies a description for the maximum (last) rate value.
|
|
153
|
+
* @see rateDescriptionLocation
|
|
154
|
+
* @see displayRateDescriptionsAsExtremeItems
|
|
155
|
+
* @see rateValues
|
|
156
|
+
* @see rateMax
|
|
157
|
+
*/
|
|
158
|
+
get maxRateDescription(): string;
|
|
159
|
+
set maxRateDescription(val: string);
|
|
160
|
+
get locMaxRateDescription(): LocalizableString;
|
|
161
|
+
hasMinRateDescription: boolean;
|
|
162
|
+
hasMaxRateDescription: boolean;
|
|
163
|
+
get hasMinLabel(): boolean;
|
|
164
|
+
get hasMaxLabel(): boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Specifies whether to display [`minRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#minRateDescription) and [`maxRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#maxRateDescription) values as captions for buttons that correspond to the extreme (first and last) rate values.
|
|
167
|
+
*
|
|
168
|
+
* Default value: `false`
|
|
169
|
+
*
|
|
170
|
+
* If this property is disabled, the `minRateDescription` and `maxRateDescription` values are displayed as plain non-clickable texts.
|
|
171
|
+
*
|
|
172
|
+
* If any of the `minRateDescription` and `maxRateDescription` properties is empty, the corresponding rate value's `value` or `text` is displayed as a button caption.
|
|
173
|
+
* @see rateDescriptionLocation
|
|
174
|
+
* @see rateMin
|
|
175
|
+
* @see rateMax
|
|
176
|
+
* @see rateValues
|
|
177
|
+
*/
|
|
178
|
+
displayRateDescriptionsAsExtremeItems: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Specifies whether to display rate values as buttons or items in a drop-down list.
|
|
181
|
+
*
|
|
182
|
+
* Possible values:
|
|
183
|
+
*
|
|
184
|
+
* - `"buttons"` - Displays rate values as buttons in a row.
|
|
185
|
+
* - `"dropdown"` - Displays rate values as items in a drop-down list.
|
|
186
|
+
* - `"auto"` (default) - Selects between the `"buttons"` and `"dropdown"` modes based on the available width. When the width is insufficient to display buttons, the question displays a dropdown.
|
|
187
|
+
*
|
|
188
|
+
* [View Demo](https://surveyjs.io/form-library/examples/ui-adaptation-modes-for-rating-scale/ (linkStyle))
|
|
189
|
+
* @see rateType
|
|
190
|
+
*/
|
|
191
|
+
displayMode: "dropdown" | "buttons" | "auto";
|
|
192
|
+
private updateRenderAsBasedOnDisplayMode;
|
|
193
|
+
onSurveyLoad(): void;
|
|
194
|
+
/**
|
|
195
|
+
* Specifies the alignment of [`minRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#minRateDescription) and [`maxRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#maxRateDescription) texts.
|
|
196
|
+
*
|
|
197
|
+
* Possible values:
|
|
198
|
+
*
|
|
199
|
+
* - `"leftRight"` (default) - Aligns `minRateDescription` to the left of rate values and `maxRateDescription` to their right.
|
|
200
|
+
* - `"top"` - Displays the descriptions above the minimum and maximum rate values.
|
|
201
|
+
* - `"bottom"` - Displays both descriptions below the minimum and maximum rate values.
|
|
202
|
+
* - `"topBottom"` - Displays `minRateDescription` above the minimum rate value and `maxRateDescription` below the maximum rate value.
|
|
203
|
+
* @see displayRateDescriptionsAsExtremeItems
|
|
204
|
+
*/
|
|
205
|
+
rateDescriptionLocation: "leftRight" | "top" | "bottom" | "topBottom";
|
|
206
|
+
/**
|
|
207
|
+
* Specifies the visual representation of rate values.
|
|
208
|
+
*
|
|
209
|
+
* Possible values:
|
|
210
|
+
*
|
|
211
|
+
* - `"labels"` (default) - Displays rate values as buttons with labels.
|
|
212
|
+
* - `"stars"` - Displays rate values as stars.
|
|
213
|
+
* - `"smileys"` - Displays rate values as smiley faces.
|
|
214
|
+
*
|
|
215
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
216
|
+
* @see scaleColorMode
|
|
217
|
+
* @see rateColorMode
|
|
218
|
+
* @see displayMode
|
|
219
|
+
*/
|
|
220
|
+
rateType: "labels" | "stars" | "smileys";
|
|
221
|
+
get rateDisplayMode(): "labels" | "stars" | "smileys";
|
|
222
|
+
set rateDisplayMode(val: "labels" | "stars" | "smileys");
|
|
223
|
+
/**
|
|
224
|
+
* Specifies how to colorize the smiley face rating scale. Applies only if [`rateType`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateType) is `"smileys"`.
|
|
225
|
+
*
|
|
226
|
+
* Possible values:
|
|
227
|
+
*
|
|
228
|
+
* - `"monochrome"` (default) - Displays emojis in monochrome.
|
|
229
|
+
* - `"colored"` - Displays emojis in color.
|
|
230
|
+
*
|
|
231
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
232
|
+
* @see rateColorMode
|
|
233
|
+
*/
|
|
234
|
+
scaleColorMode: "monochrome" | "colored";
|
|
235
|
+
/**
|
|
236
|
+
* Specifies how to colorize the selected emoji. Applies only if [`rateType`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateType) is `"smileys"`.
|
|
237
|
+
*
|
|
238
|
+
* Possible values:
|
|
239
|
+
*
|
|
240
|
+
* - `"default"` - Displays the selected emoji in default survey color.
|
|
241
|
+
* - `"scale"` (default) - Inherits the color from the scale.
|
|
242
|
+
* @see scaleColorMode
|
|
243
|
+
*/
|
|
244
|
+
rateColorMode: "default" | "scale";
|
|
245
|
+
get isStar(): boolean;
|
|
246
|
+
get isSmiley(): boolean;
|
|
247
|
+
getDefaultItemComponent(): string;
|
|
248
|
+
/**
|
|
249
|
+
* The name of a component used to render items.
|
|
250
|
+
*/
|
|
251
|
+
get itemComponent(): string;
|
|
252
|
+
set itemComponent(value: string);
|
|
253
|
+
protected valueToData(val: any): any;
|
|
254
|
+
setValueFromClick(value: any): void;
|
|
255
|
+
onItemMouseIn(item: RenderedRatingItem): void;
|
|
256
|
+
onItemMouseOut(item: RenderedRatingItem): void;
|
|
257
|
+
get itemSmallMode(): boolean;
|
|
258
|
+
get ratingRootCss(): string;
|
|
259
|
+
get itemStarIcon(): string;
|
|
260
|
+
get itemStarIconAlt(): string;
|
|
261
|
+
getItemSmiley(item: ItemValue): string;
|
|
262
|
+
getItemSmileyIconName(item: ItemValue): string;
|
|
263
|
+
getItemClassByText(item: ItemValue, text: string): string;
|
|
264
|
+
private getRenderedItemColor;
|
|
265
|
+
getItemStyle(item: ItemValue, highlight?: "none" | "highlighted" | "unhighlighted"): {
|
|
266
|
+
"--sd-rating-item-color"?: undefined;
|
|
267
|
+
"--sd-rating-item-color-light"?: undefined;
|
|
268
|
+
} | {
|
|
269
|
+
"--sd-rating-item-color": string;
|
|
270
|
+
"--sd-rating-item-color-light": string;
|
|
271
|
+
} | {
|
|
272
|
+
"--sd-rating-item-color": string;
|
|
273
|
+
"--sd-rating-item-color-light"?: undefined;
|
|
274
|
+
};
|
|
275
|
+
getItemClass(item: ItemValue, highlight?: "none" | "highlighted" | "unhighlighted"): string;
|
|
276
|
+
getControlClass(): string;
|
|
277
|
+
get placeholder(): string;
|
|
278
|
+
set placeholder(val: string);
|
|
279
|
+
get locPlaceholder(): LocalizableString;
|
|
280
|
+
get allowClear(): boolean;
|
|
281
|
+
get searchEnabled(): boolean;
|
|
282
|
+
get renderedValue(): any;
|
|
283
|
+
set renderedValue(val: any);
|
|
284
|
+
isItemSelected(item: ItemValue): boolean;
|
|
285
|
+
get readOnlyText(): any;
|
|
286
|
+
needResponsiveWidth(): boolean;
|
|
287
|
+
protected supportResponsiveness(): boolean;
|
|
288
|
+
protected onBeforeSetCompactRenderer(): void;
|
|
289
|
+
protected getCompactRenderAs(): string;
|
|
290
|
+
protected getDesktopRenderAs(): string;
|
|
291
|
+
private dropdownListModelValue;
|
|
292
|
+
set dropdownListModel(val: DropdownListModel);
|
|
293
|
+
get dropdownListModel(): DropdownListModel;
|
|
294
|
+
protected onBlurCore(event: any): void;
|
|
295
|
+
protected updateCssClasses(res: any, css: any): void;
|
|
296
|
+
protected calcCssClasses(css: any): any;
|
|
297
|
+
themeChanged(theme: ITheme): void;
|
|
298
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
299
|
+
dispose(): void;
|
|
300
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { ITheme } from "./themes";
|
|
2
|
+
import { QuestionFileModelBase } from "./question_file";
|
|
3
|
+
/**
|
|
4
|
+
* A class that describes the Signature question type.
|
|
5
|
+
*
|
|
6
|
+
* [View Demo](https://surveyjs.io/form-library/examples/signature-pad-widget-javascript/ (linkStyle))
|
|
7
|
+
*/
|
|
8
|
+
export declare class QuestionSignaturePadModel extends QuestionFileModelBase {
|
|
9
|
+
isDrawingValue: boolean;
|
|
10
|
+
isReadyForUpload: boolean;
|
|
11
|
+
private getPenColorFromTheme;
|
|
12
|
+
private updateColors;
|
|
13
|
+
protected getCssRoot(cssClasses: any): string;
|
|
14
|
+
protected getFormat(): "" | "image/svg+xml" | "image/jpeg";
|
|
15
|
+
protected updateValue(): void;
|
|
16
|
+
constructor(name: string);
|
|
17
|
+
getType(): string;
|
|
18
|
+
afterRenderQuestionElement(el: HTMLElement): void;
|
|
19
|
+
beforeDestroyQuestionElement(el: HTMLElement): void;
|
|
20
|
+
themeChanged(theme: ITheme): void;
|
|
21
|
+
private canvas;
|
|
22
|
+
private element;
|
|
23
|
+
private scale;
|
|
24
|
+
private valueIsUpdatingInternally;
|
|
25
|
+
valueWasChangedFromLastUpload: boolean;
|
|
26
|
+
private resizeCanvas;
|
|
27
|
+
private scaleCanvas;
|
|
28
|
+
private fromUrl;
|
|
29
|
+
private fromDataUrl;
|
|
30
|
+
private _loadedData;
|
|
31
|
+
get loadedData(): string;
|
|
32
|
+
protected loadPreview(newValue: any): void;
|
|
33
|
+
protected onChangeQuestionValue(newValue: any): void;
|
|
34
|
+
onSurveyLoad(): void;
|
|
35
|
+
private updateValueHandler;
|
|
36
|
+
initSignaturePad(el: HTMLElement): void;
|
|
37
|
+
destroySignaturePad(el: HTMLElement): void;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the format in which to store the signature image.
|
|
40
|
+
*
|
|
41
|
+
* Possible values:
|
|
42
|
+
*
|
|
43
|
+
* - `"png"` (default)
|
|
44
|
+
* - `"jpeg"`
|
|
45
|
+
* - `"svg"`
|
|
46
|
+
*/
|
|
47
|
+
get dataFormat(): string;
|
|
48
|
+
set dataFormat(val: string);
|
|
49
|
+
/**
|
|
50
|
+
* Specifies the width of the signature area. Accepts positive integer numbers.
|
|
51
|
+
*/
|
|
52
|
+
get signatureWidth(): number;
|
|
53
|
+
set signatureWidth(val: number);
|
|
54
|
+
/**
|
|
55
|
+
* Specifies the height of the signature area. Accepts positive integer numbers.
|
|
56
|
+
*/
|
|
57
|
+
get signatureHeight(): number;
|
|
58
|
+
set signatureHeight(val: number);
|
|
59
|
+
/**
|
|
60
|
+
* Specifies whether the signature area should be scaled to fit into the question width.
|
|
61
|
+
*
|
|
62
|
+
* Default value: `false`
|
|
63
|
+
*
|
|
64
|
+
* This property auto-scales the signature area to fill all available width within the question box while maintaining the default 3:2 aspect ratio. If you set [custom width](#signatureWidth) and [height](#signatureHeight) values, the setting will keep the aspect ratio of these dimensions.
|
|
65
|
+
*
|
|
66
|
+
* > The signature area is scaled only for display. The image saved in survey results will have dimensions specified by the [`signatureHeight`](#signatureHeight) and [`signatureWidth`](#signatureWidth) properties.
|
|
67
|
+
*/
|
|
68
|
+
signatureAutoScaleEnabled: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Speicifies the minimum width of pen strokes, measured in pixels.
|
|
71
|
+
*
|
|
72
|
+
* Default value: 0.5
|
|
73
|
+
*/
|
|
74
|
+
penMinWidth: number;
|
|
75
|
+
/**
|
|
76
|
+
* Speicifies the maximum width of pen strokes, measured in pixels.
|
|
77
|
+
*
|
|
78
|
+
* Default value: 2.5
|
|
79
|
+
*/
|
|
80
|
+
penMaxWidth: number;
|
|
81
|
+
private get containerHeight();
|
|
82
|
+
private get containerWidth();
|
|
83
|
+
get renderedCanvasWidth(): string;
|
|
84
|
+
get height(): number;
|
|
85
|
+
set height(val: number);
|
|
86
|
+
/**
|
|
87
|
+
* Specifies whether to display a button that clears the signature area.
|
|
88
|
+
*
|
|
89
|
+
* Default value: `true`
|
|
90
|
+
*/
|
|
91
|
+
get allowClear(): boolean;
|
|
92
|
+
set allowClear(val: boolean);
|
|
93
|
+
get canShowClearButton(): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Specifies a color for the pen.
|
|
96
|
+
*
|
|
97
|
+
* This property accepts color values in the following formats:
|
|
98
|
+
*
|
|
99
|
+
* - Hexadecimal colors (`"#FF0000"`)
|
|
100
|
+
* - RGB colors (`"rgb(255,0,0)"`)
|
|
101
|
+
* - Color names (`"red"`)
|
|
102
|
+
* @see backgroundColor
|
|
103
|
+
*/
|
|
104
|
+
get penColor(): string;
|
|
105
|
+
set penColor(val: string);
|
|
106
|
+
/**
|
|
107
|
+
* Specifies a color for the signature area background. Ignored if [`backgroundImage`](#backgroundImage) is set.
|
|
108
|
+
*
|
|
109
|
+
* This property accepts color values in the following formats:
|
|
110
|
+
*
|
|
111
|
+
* - Hexadecimal colors (`"#FF0000"`)
|
|
112
|
+
* - RGB colors (`"rgb(255,0,0)"`)
|
|
113
|
+
* - Color names (`"red"`)
|
|
114
|
+
* @see penColor
|
|
115
|
+
*/
|
|
116
|
+
get backgroundColor(): string;
|
|
117
|
+
set backgroundColor(val: string);
|
|
118
|
+
/**
|
|
119
|
+
* An image to display in the background of the signature area. Accepts a base64 or URL string value.
|
|
120
|
+
* @see backgroundColor
|
|
121
|
+
*/
|
|
122
|
+
get backgroundImage(): string;
|
|
123
|
+
set backgroundImage(val: string);
|
|
124
|
+
get clearButtonCaption(): string;
|
|
125
|
+
/**
|
|
126
|
+
* A Boolean value that specifies whether to show the placeholder text in the signature area.
|
|
127
|
+
*
|
|
128
|
+
* Default value: `true`
|
|
129
|
+
*
|
|
130
|
+
* Use the [`placeholder`](#placeholder) and [`placeholderReadOnly`](#placeholderReadOnly) properties to specify placeholder texts for the signature area in edit mode and in read-only or preview mode.
|
|
131
|
+
*/
|
|
132
|
+
showPlaceholder: boolean;
|
|
133
|
+
get locRenderedPlaceholder(): any;
|
|
134
|
+
nothingIsDrawn(): boolean;
|
|
135
|
+
needShowPlaceholder(): boolean;
|
|
136
|
+
/**
|
|
137
|
+
* A placeholder text for the signature area. Applies when the [`showPlaceholder`](#showPlaceholder) property is `true`.
|
|
138
|
+
*/
|
|
139
|
+
placeholder: string;
|
|
140
|
+
/**
|
|
141
|
+
* A placeholder text for the signature area in read-only or preview mode. Applies when the [`showPlaceholder`](#showPlaceholder) property is `true`.
|
|
142
|
+
*/
|
|
143
|
+
placeholderReadOnly: string;
|
|
144
|
+
protected onBlurCore(event: any): void;
|
|
145
|
+
protected uploadResultItemToValue(r: any): any;
|
|
146
|
+
protected setValueFromResult(arg: any): void;
|
|
147
|
+
clearValue(keepComment?: boolean): void;
|
|
148
|
+
endLoadingFromJson(): void;
|
|
149
|
+
}
|