survey-creator-core 1.9.80 → 1.9.81
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +18 -10
- package/survey-creator-core.d.ts +152 -0
- package/survey-creator-core.fontless.css +17 -9
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +4 -4
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +93 -83
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +5 -5
- package/survey-creator-core.min.js +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.81
|
|
3
3
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -36,9 +36,9 @@ svc-page-navigator-item,.svc-page-navigator-item{display:block;width:calc(5.5 *
|
|
|
36
36
|
|
|
37
37
|
svc-page{display:block}.svc-page{margin-top:calc(2 * var(--base-unit, 8px))}.svc-page .sd-page__title{margin:calc(2.5 * var(--base-unit, 8px)) 0 0 0}.svc-page__content{position:relative;padding:calc(1 * var(--base-unit, 8px)) calc(0 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));box-sizing:border-box;width:100%;outline:none}.svc-page__content .sd-page{margin:0;padding:calc(1 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px))}.svc-page__content-actions{position:absolute;display:none;top:calc(1 * var(--base-unit, 8px));inset-inline-end:0;padding:0 calc(1.5 * var(--base-unit, 8px));z-index:1}.svc-page__content:not(.svc-page__content--new):focus,.svc-hovered.svc-page__content:not(.svc-page__content--new){background:var(--secondary-back-light, rgba(255,152,20,0.1))}.svc-creator .svc-page .svc-page__content--selected,.svc-creator .svc-page .svc-page__content--selected:focus,.svc-hovered{border-radius:calc(.5 * var(--base-unit, 8px))}.svc-creator .svc-page .svc-page__content--selected.svc-page__content--selected,.svc-creator .svc-page .svc-page__content--selected:focus.svc-page__content--selected,.svc-hovered.svc-page__content--selected{box-shadow:0 0 0 2px var(--secondary, #ff9814) inset;background:var(--secondary-back-light, rgba(255,152,20,0.1))}.svc-creator .svc-page .svc-page__content--selected.svc-page__content--selected .svc-page__content-actions,.svc-creator .svc-page .svc-page__content--selected:focus.svc-page__content--selected .svc-page__content-actions,.svc-hovered.svc-page__content--selected .svc-page__content-actions{display:block}.svc-page__add-new-question{margin-left:calc(3 * var(--base-unit, 8px));margin-right:calc(3 * var(--base-unit, 8px))}.svc-page__add-new-question .svc-text{margin-left:calc(6 * var(--base-unit, 8px))}.svc-page__question-type-selector{appearance:none;display:flex;height:calc(5 * var(--base-unit, 8px));padding:calc(1 * var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:2px;background-color:transparent;cursor:pointer;margin-inline-end:calc(1 * var(--base-unit, 8px));outline:none}.svc-page__question-type-selector use{fill:var(--foreground-light, #909090)}.svc-page__question-type-selector:hover,.svc-page__question-type-selector:focus{background-color:var(--background-dim, #f3f3f3)}
|
|
38
38
|
|
|
39
|
-
.svc-row{width:100%}.svc-row .sd-row--multiple{padding:calc(1 * var(--base-unit, 8px));gap:calc(1 * var(--base-unit, 8px))}.svc-row .sd-row--multiple .sd-row--multiple{overflow:unset}.sd-panel .svc-row .sd-row--multiple{padding:calc(0 * var(--base-unit, 8px));box-shadow:none;border-radius:0;padding:2px;margin:-2px}.svc-row.svc-row--ghost .svc-question__content{padding:0;border:none;box-shadow:none}.svc-row.svc-row--ghost .sd-row{margin-top:calc(2 * var(--base-unit, 8px));margin-bottom:calc(2 * var(--base-unit, 8px))}
|
|
39
|
+
.svc-row{width:100%}.svc-row .sd-row--multiple{padding:calc(1 * var(--base-unit, 8px));gap:calc(1 * var(--base-unit, 8px))}.svc-row .sd-row--multiple .sd-row--multiple{overflow:unset}.sd-panel .svc-row .sd-row--multiple{padding:calc(0 * var(--base-unit, 8px));box-shadow:none;border-radius:0;padding:2px;margin:-2px}.svc-row.svc-row--ghost .svc-question__content{padding:0;border:none;box-shadow:none}.svc-row.svc-row--ghost .sd-row{height:calc(4 * var(--base-unit, 8px))}.svc-row.svc-row--ghost:last-child .sd-row{height:initial;margin-top:calc(2 * var(--base-unit, 8px));margin-bottom:calc(2 * var(--base-unit, 8px))}.svc-row.svc-row--ghost+.svc-row .sd-page__row{margin-top:0}.svc-panel .svc-row.svc-row--ghost.svc-row.svc-row--ghost .sd-row{height:initial;margin-top:calc(2 * var(--base-unit, 8px));margin-bottom:calc(2 * var(--base-unit, 8px))}
|
|
40
40
|
|
|
41
|
-
svc-question{display:block;position:absolute;top:1px;left:1px;right:1px;bottom:1px}.svc-question__adorner{position:relative;height:100%;width:100%}.svc-question__adorner .sv-action-bar{overflow:visible}.svc-question__adorner .sv-action-bar .sv-action:not(:first-child) .sv-action-bar-item{border:none}.svc-question__adorner .sv-action-bar .sv-action:not(:first-child) .sv-action-bar-item:active{opacity:0.5;background-color:var(--background-dim, #f3f3f3)}.svc-question__content{display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;height:100%;border-radius:calc(.5 * var(--base-unit, 8px));box-sizing:border-box;padding:calc(4 * var(--base-unit, 8px)) calc(5 * var(--base-unit, 8px)) calc(8 * var(--base-unit, 8px));background:var(--background, #fff);box-shadow:0px 1px 2px rgba(0,0,0,0.15);border:2px solid transparent;outline:none}.svc-question__content .sd-selectbase:not(.sd-imagepicker){overflow-x:auto;padding-left:calc(5 * var(--base-unit, 8px));margin-left:calc(-5 * var(--base-unit, 8px))}.svc-question__content .sd-table .sd-selectbase:not(.sd-imagepicker){overflow-x:visible;padding-left:0;margin-left:0}.svc-question__content .sd-multipletext__item-title{color:var(--foreground, #161616)}.svc-question__content .sd-multipletext__item-container.sd-input:focus-within{box-shadow:inset 0px 1px 2px rgba(0,0,0,0.15)}.svc-question__content .sd-matrixdynamic__btn.sd-matrixdynamic__add-btn{color:var(--foreground-disabled, rgba(22,22,22,0.25))}.svc-question__content>div{overflow:visible}.svc-panel__placeholder{color:var(--foreground-light, #909090)}.svc-question__content-actions{position:absolute;display:none;bottom:calc(2 * var(--base-unit, 8px));inset-inline-start:calc(4 * var(--base-unit, 8px));inset-inline-end:calc(3.5 * var(--base-unit, 8px))}.svc-question__content-actions .sv-action--convertTo{min-width:calc(13 * var(--base-unit, 8px));max-width:max-content;margin-inline-end:auto}.svc-question__content-actions .sv-action--convertTo .sv-action-bar-item{max-width:100%;flex-direction:row-reverse}.svc-question__content-actions .sv-action--convertTo .sv-action-bar-item__title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;justify-content:left}.svc-question__content-actions .sv-action--convertTo .sv-action-bar-item__title--with-icon{margin-inline-start:0;margin-inline-end:calc(.5 * var(--base-unit, 8px))}.svc-question__content:focus,.svc-creator .svc-page .svc-hovered>.svc-question__content{box-shadow:0 0 0 2px var(--secondary-light, rgba(255,152,20,0.25))}.svc-creator .svc-page .svc-question__content--selected:not(.svc-question__content--dragged).svc-question__content--selected,.svc-creator .svc-page .svc-hovered>.svc-question__content:not(.svc-question__content--dragged).svc-question__content--selected{box-shadow:0 0 0 2px var(--secondary, #ff9814)}.svc-creator .svc-page .svc-question__content--selected:not(.svc-question__content--dragged)>.svc-question__content-actions,.svc-creator .svc-page .svc-hovered>.svc-question__content:not(.svc-question__content--dragged)>.svc-question__content-actions{display:block}.svc-question__content--dragged{background:var(--background-for-editors, #f9f9f9)}.svc-question__content--dragged .sd-question__title{color:var(--foreground-light, #909090)}.svc-question__content--dragged.svc-question__content--selected .svc-question__content-actions{display:none}.svc-question__content .sd-question.sd-question--table{margin-top:calc(-1 * var(--base-unit, 8px));padding-top:calc(1 * var(--base-unit, 8px))}.svc-dragged-element-shortcut{min-width:100px;height:calc(3 * var(--base-unit, 8px));border-radius:calc(12.5 * var(--base-unit, 8px));background-color:var(--background, #fff);color:var(--foreground, #161616);padding:calc(1 * var(--base-unit, 8px)) calc(1.5 * var(--base-unit, 8px));cursor:grabbing;position:absolute;z-index:1000;box-shadow:0px 8px 16px rgba(0,0,0,0.1);-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.svc-dragged-element-shortcut .sv-svg-icon use{fill:var(--primary, #19b394)}.svc-dragged-element-shortcut--selected{border:2px solid var(--secondary, #ff9814)}.svc-dragged-element-shortcut__text{font-family:var(--font-family);font-style:normal;font-weight:600;font-size:calc(1.5 * var(--base-unit, 8px));line-height:calc(2 * var(--base-unit, 8px));margin-left:calc(4 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px))}.svc-dragged-element-shortcut__icon{position:absolute;width:calc(3 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.svc-question__content--drag-over-inside .svc-panel__placeholder_frame,.svc-hovered>.svc-question__content--drag-over-inside .svc-panel__placeholder_frame{box-shadow:0 0 0 2px var(--primary, #19b394);background:var(--primary-light, rgba(25,179,148,0.1))}.svc-question__content--drag-over-inside .svc-panel__placeholder_frame>.svc-question__content-actions,.svc-hovered>.svc-question__content--drag-over-inside .svc-panel__placeholder_frame>.svc-question__content-actions{display:block}.svc-question__content--drag-over-left:before{content:" ";position:absolute;left:-7px;background:var(--secondary, #ff9814);top:0;height:100%;width:4px}.svc-question__content--drag-over-right:after{content:" ";position:absolute;right:-7px;background:var(--secondary, #ff9814);top:0;height:100%;width:4px}.svc-question__content-actions .sv-action-bar{box-sizing:border-box;padding:0;justify-content:flex-end}svc-question sv-action-bar,svc-question .sv-action-bar,.svc-question sv-action-bar,.svc-question .sv-action-bar{padding:0}.svc-panel__edge{position:absolute;border:1px solid orange;height:10px;width:100%}.svc-panel__edge--top{top:0}.svc-panel__edge--bottom{bottom:0}.svc-question__adorner--start-with-new-line[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"]{height:100%;overflow:hidden;min-width:4px}.svc-question__adorner--start-with-new-line[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"] .svc-question__content.svc-question__content.svc-question__content{border:0;padding:0}[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"]{border:none;height:0}[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"] .svc-question__drag-area{display:none}[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"] .svc-question__drag-element{display:none}[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"] .svc-question__content{background:transparent;box-shadow:none}.svc-hovered>.svc-question__content>.svc-question__drag-area{visibility:visible}.svc-question__content.svc-question__content--selected>.svc-question__drag-area{visibility:visible;z-index:1}.svc-question__drag-area{position:absolute;cursor:move;top:0;left:0;visibility:hidden;height:calc(3.5 * var(--base-unit, 8px));width:100%;display:flex;align-items:center;justify-content:center}.svc-question__drag-element{width:100%;height:calc(4 * var(--base-unit, 8px));opacity:0.5}.svc-question__drag-element use{fill:var(--foreground-light, #909090)}.sd-panel :not(.svc-hovered)>.svc-question__content:not(.svc-question__content--selected),.sd-row--multiple :not(.svc-hovered)>.svc-question__content:not(.svc-question__content--selected){border:1px dashed var(--border, #d6d6d6);box-shadow:none}.sd-panel .svc-question__content,.sd-row--multiple .svc-question__content{border-radius:0}.sd-panel .svc-question__content.svc-question__content--selected,.sd-row--multiple .svc-question__content.svc-question__content--selected{border:1px solid transparent;box-shadow:none}.sd-panel .svc-question__content:hover,.sd-row--multiple .svc-question__content:hover{border:1px solid transparent;box-shadow:none}.sd-row--multiple .svc-hovered>.svc-question__content:not(.svc-question__content--selected){border:1px solid var(--secondary-light, rgba(255,152,20,0.25));box-shadow:0 0 0 1px var(--secondary-light, rgba(255,152,20,0.25))}.sd-panel .svc-row--ghost.svc-row--ghost .svc-question__content.svc-question__content{border:none}.svc-widget__content{width:100%}.svc-widget__content .sd-question__content{pointer-events:none}.svc-question__content .sd-paneldynamic__footer,.svc-question__content .sd-paneldynamic__separator{display:none}.svc-panel__placeholder_frame{border:1px dashed var(--border, #d6d6d6);width:100%;box-sizing:border-box;height:calc(30 * var(--base-unit, 8px));display:flex;align-items:center;justify-content:center;flex-direction:column;padding:calc(2 * var(--base-unit, 8px)) calc(8 * var(--base-unit, 8px))}.svc-panel__add-new-question-container{width:100%;display:flex;justify-content:center;position:relative}.svc-panel__add-new-question{align-items:center;margin-top:calc(2 * var(--base-unit, 8px));margin-left:0;margin-right:0;width:auto;height:calc(5 * var(--base-unit, 8px));line-height:calc(5 * var(--base-unit, 8px));vertical-align:baseline;text-align:center;background-color:var(--background, #fff);cursor:pointer;user-select:none;border:none;box-shadow:none}.svc-panel__add-new-question:hover{outline:none}.svc-panel__add-new-question .svc-text{display:flex;align-items:center;flex-grow:1;justify-content:center;margin:calc(1 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));line-height:calc(2 * var(--base-unit, 8px));color:var(--primary, #19b394)}.svc-panel__question-type-selector{appearance:none;display:flex;height:calc(5 * var(--base-unit, 8px));padding:calc(1 * var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:2px;background-color:transparent;cursor:pointer;margin-right:calc(1 * var(--base-unit, 8px));top:calc(2 * var(--base-unit, 8px));margin:0;position:absolute;right:0}.svc-panel__question-type-selector use{fill:var(--foreground-light, #909090)}.svc-panel__question-type-selector:hover{background-color:var(--background-dim, #f3f3f3)}.sd-panel .svc-row{margin-top:calc(1 * var(--base-unit, 8px))}.sd-panel .svc-row:first-of-type{margin-top:0}.sd-panel .svc-row .sd-row{margin-top:0;margin-bottom:0}.sd-panel .svc-row.svc-row--ghost{margin-top:calc(1 * var(--base-unit, 8px));margin-bottom:calc(1.5 * var(--base-unit, 8px))}.sd-panel .svc-row.svc-row--ghost .sv-drag-drop-ghost{top:0}
|
|
41
|
+
svc-question{display:block;position:absolute;top:1px;left:1px;right:1px;bottom:1px}.svc-question__adorner{position:relative;height:100%;width:100%}.svc-question__adorner .sv-action-bar{overflow:visible}.svc-question__adorner .sv-action-bar .sv-action:not(:first-child) .sv-action-bar-item{border:none}.svc-question__adorner .sv-action-bar .sv-action:not(:first-child) .sv-action-bar-item:active{opacity:0.5;background-color:var(--background-dim, #f3f3f3)}.svc-question__content{display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;height:100%;border-radius:calc(.5 * var(--base-unit, 8px));box-sizing:border-box;padding:calc(4 * var(--base-unit, 8px)) calc(5 * var(--base-unit, 8px)) calc(8 * var(--base-unit, 8px));background:var(--background, #fff);box-shadow:0px 1px 2px rgba(0,0,0,0.15);border:2px solid transparent;outline:none}.svc-question__content .sd-selectbase:not(.sd-imagepicker){overflow-x:auto;padding-left:calc(5 * var(--base-unit, 8px));margin-left:calc(-5 * var(--base-unit, 8px))}.svc-question__content .sd-table .sd-selectbase:not(.sd-imagepicker){overflow-x:visible;padding-left:0;margin-left:0}.svc-question__content .sd-multipletext__item-title{color:var(--foreground, #161616)}.svc-question__content .sd-multipletext__item-container.sd-input:focus-within{box-shadow:inset 0px 1px 2px rgba(0,0,0,0.15)}.svc-question__content .sd-matrixdynamic__btn.sd-matrixdynamic__add-btn{color:var(--foreground-disabled, rgba(22,22,22,0.25))}.svc-question__content>div{overflow:visible}.svc-panel__placeholder{color:var(--foreground-light, #909090)}.svc-question__content-actions{position:absolute;display:none;bottom:calc(2 * var(--base-unit, 8px));inset-inline-start:calc(4 * var(--base-unit, 8px));inset-inline-end:calc(3.5 * var(--base-unit, 8px))}.svc-question__content-actions .sv-action--convertTo{min-width:calc(13 * var(--base-unit, 8px));max-width:max-content;margin-inline-end:auto}.svc-question__content-actions .sv-action--convertTo .sv-action-bar-item{max-width:100%;flex-direction:row-reverse}.svc-question__content-actions .sv-action--convertTo .sv-action-bar-item__title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;justify-content:left}.svc-question__content-actions .sv-action--convertTo .sv-action-bar-item__title--with-icon{margin-inline-start:0;margin-inline-end:calc(.5 * var(--base-unit, 8px))}.svc-question__content:focus,.svc-creator .svc-page .svc-hovered>.svc-question__content{box-shadow:0 0 0 2px var(--secondary-light, rgba(255,152,20,0.25))}.svc-creator .svc-page .svc-question__content--selected:not(.svc-question__content--dragged).svc-question__content--selected,.svc-creator .svc-page .svc-hovered>.svc-question__content:not(.svc-question__content--dragged).svc-question__content--selected{box-shadow:0 0 0 2px var(--secondary, #ff9814)}.svc-creator .svc-page .svc-question__content--selected:not(.svc-question__content--dragged)>.svc-question__content-actions,.svc-creator .svc-page .svc-hovered>.svc-question__content:not(.svc-question__content--dragged)>.svc-question__content-actions{display:block}.svc-question__content--dragged{background:var(--background-for-editors, #f9f9f9)}.svc-question__content--dragged .sd-question__title{color:var(--foreground-light, #909090)}.svc-question__content--dragged.svc-question__content--selected .svc-question__content-actions{display:none}.svc-question__content .sd-question.sd-question--table{margin-top:calc(-1 * var(--base-unit, 8px));padding-top:calc(1 * var(--base-unit, 8px))}.svc-dragged-element-shortcut{min-width:100px;height:calc(3 * var(--base-unit, 8px));border-radius:calc(12.5 * var(--base-unit, 8px));background-color:var(--background, #fff);color:var(--foreground, #161616);padding:calc(1 * var(--base-unit, 8px)) calc(1.5 * var(--base-unit, 8px));cursor:grabbing;position:absolute;z-index:1000;box-shadow:0px 8px 16px rgba(0,0,0,0.1);-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.svc-dragged-element-shortcut .sv-svg-icon use{fill:var(--primary, #19b394)}.svc-dragged-element-shortcut--selected{border:2px solid var(--secondary, #ff9814)}.svc-dragged-element-shortcut__text{font-family:var(--font-family);font-style:normal;font-weight:600;font-size:calc(1.5 * var(--base-unit, 8px));line-height:calc(2 * var(--base-unit, 8px));margin-left:calc(4 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px))}.svc-dragged-element-shortcut__icon{position:absolute;width:calc(3 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.svc-question__content--drag-over-inside .svc-panel__placeholder_frame,.svc-hovered>.svc-question__content--drag-over-inside .svc-panel__placeholder_frame{box-shadow:0 0 0 2px var(--primary, #19b394);background:var(--primary-light, rgba(25,179,148,0.1))}.svc-question__content--drag-over-inside .svc-panel__placeholder_frame>.svc-question__content-actions,.svc-hovered>.svc-question__content--drag-over-inside .svc-panel__placeholder_frame>.svc-question__content-actions{display:block}.svc-question__content--drag-over-left:before{content:" ";position:absolute;left:-7px;background:var(--secondary, #ff9814);top:0;height:100%;width:4px}.svc-question__content--drag-over-right:after{content:" ";position:absolute;right:-7px;background:var(--secondary, #ff9814);top:0;height:100%;width:4px}.svc-question__content-actions .sv-action-bar{box-sizing:border-box;padding:0;justify-content:flex-end}svc-question sv-action-bar,svc-question .sv-action-bar,.svc-question sv-action-bar,.svc-question .sv-action-bar{padding:0}.svc-panel__edge{position:absolute;border:1px solid orange;height:10px;width:100%}.svc-panel__edge--top{top:0}.svc-panel__edge--bottom{bottom:0}.svc-question__adorner--start-with-new-line[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"]{height:100%;overflow:hidden;min-width:4px}.svc-question__adorner--start-with-new-line[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"] .svc-question__content.svc-question__content.svc-question__content{border:0;padding:0}[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"]{border:none;height:0}[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"] .svc-question__drag-area{display:none}[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"] .svc-question__drag-element{display:none}[data-sv-drop-target-survey-element="sv-drag-drop-ghost-survey-element-name"] .svc-question__content{background:transparent;box-shadow:none}.svc-hovered>.svc-question__content>.svc-question__drag-area{visibility:visible}.svc-question__content.svc-question__content--selected>.svc-question__drag-area{visibility:visible;z-index:1}.svc-question__drag-area{position:absolute;cursor:move;top:0;left:0;visibility:hidden;height:calc(3.5 * var(--base-unit, 8px));width:100%;display:flex;align-items:center;justify-content:center}.svc-question__drag-element{width:100%;height:calc(4 * var(--base-unit, 8px));opacity:0.5}.svc-question__drag-element use{fill:var(--foreground-light, #909090)}.sd-panel :not(.svc-hovered)>.svc-question__content:not(.svc-question__content--selected),.sd-row--multiple :not(.svc-hovered)>.svc-question__content:not(.svc-question__content--selected){border:1px dashed var(--border, #d6d6d6);box-shadow:none}.sd-panel .svc-question__content,.sd-row--multiple .svc-question__content{border-radius:0}.sd-panel .svc-question__content.svc-question__content--selected,.sd-row--multiple .svc-question__content.svc-question__content--selected{border:1px solid transparent;box-shadow:none}.sd-panel .svc-question__content:hover,.sd-row--multiple .svc-question__content:hover{border:1px solid transparent;box-shadow:none}.sd-row--multiple .svc-hovered>.svc-question__content:not(.svc-question__content--selected){border:1px solid var(--secondary-light, rgba(255,152,20,0.25));box-shadow:0 0 0 1px var(--secondary-light, rgba(255,152,20,0.25))}.sd-panel .svc-row--ghost.svc-row--ghost .svc-question__content.svc-question__content{border:none}.svc-widget__content{width:100%}.svc-widget__content .sd-question__content{pointer-events:none}.svc-question__content .sd-paneldynamic__footer,.svc-question__content .sd-paneldynamic__separator{display:none}.svc-panel__placeholder_frame{border:1px dashed var(--border, #d6d6d6);width:100%;box-sizing:border-box;height:calc(30 * var(--base-unit, 8px));display:flex;align-items:center;justify-content:center;flex-direction:column;padding:calc(2 * var(--base-unit, 8px)) calc(8 * var(--base-unit, 8px))}.svc-panel__add-new-question-container{width:100%;display:flex;justify-content:center;position:relative}.svc-panel__add-new-question{align-items:center;margin-top:calc(2 * var(--base-unit, 8px));margin-left:0;margin-right:0;width:auto;height:calc(5 * var(--base-unit, 8px));line-height:calc(5 * var(--base-unit, 8px));vertical-align:baseline;text-align:center;background-color:var(--background, #fff);cursor:pointer;user-select:none;border:none;box-shadow:none}.svc-panel__add-new-question:hover{outline:none}.svc-panel__add-new-question .svc-text{display:flex;align-items:center;flex-grow:1;justify-content:center;margin:calc(1 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));line-height:calc(2 * var(--base-unit, 8px));color:var(--primary, #19b394)}.svc-panel__question-type-selector{appearance:none;display:flex;height:calc(5 * var(--base-unit, 8px));padding:calc(1 * var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:2px;background-color:transparent;cursor:pointer;margin-right:calc(1 * var(--base-unit, 8px));top:calc(2 * var(--base-unit, 8px));margin:0;position:absolute;right:0}.svc-panel__question-type-selector use{fill:var(--foreground-light, #909090)}.svc-panel__question-type-selector:hover{background-color:var(--background-dim, #f3f3f3)}.sd-panel .svc-row{margin-top:calc(1 * var(--base-unit, 8px))}.sd-panel .svc-row:first-of-type{margin-top:0}.sd-panel .svc-row .sd-row{margin-top:0;margin-bottom:0}
|
|
42
42
|
|
|
43
43
|
.svc-question__dropdown-choices{margin-top:calc(2 * var(--base-unit, 8px))}.svc-question__dropdown-choice--collapsed:nth-last-child(1){opacity:0.25}.svc-question__dropdown-choice--collapsed:nth-last-child(2){opacity:0.5}.svc-question__dropdown-choice--collapsed:nth-last-child(3){opacity:0.75}.svc-question__dropdown-choices--wrapper .svc-action-button{margin-left:calc(6.75 * var(--base-unit, 8px));margin-top:calc(1 * var(--base-unit, 8px));cursor:pointer}
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ svc-question{display:block;position:absolute;top:1px;left:1px;right:1px;bottom:1
|
|
|
46
46
|
|
|
47
47
|
.svc-rating-question-controls{position:absolute}.svc-question__content--selected-no-border .svc-rating-question-controls.svc-item-value-controls{display:flex}.svc-question__content--selected .svc-rating-question-controls.svc-item-value-controls{display:flex}.svc-question__content .sd-rating{margin-inline-start:calc(9 * var(--base-unit, 8px));width:calc(100% - 9 * var(--base-unit, 8px))}.svc-question__content .svc-rating-question-controls{display:flex;width:calc(8 * var(--base-unit, 8px));min-width:auto;justify-content:flex-start}
|
|
48
48
|
|
|
49
|
-
.svc-item-value-wrapper{position:relative;display:flex;gap:calc(1 * var(--base-unit, 8px));align-items:center;margin-left:calc(-5 * var(--base-unit, 8px));min-width:calc(27 * var(--base-unit, 8px))}.svc-question__dropdown-choice .svc-item-value-wrapper,.sd-selectbase .svc-item-value-wrapper{align-items:flex-start}.svc-question__content .sd-selectbase__column:not(.sd-imagepicker__column):not(:first-of-type){margin-left:calc(5 * var(--base-unit, 8px))}.svc-question__content .sd-selectbase__column:not(:last-child){padding-right:0}.svc-item-value--dragging{background:var(--background, #fff);box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,0.1);border-radius:calc(12.5 * var(--base-unit, 8px));padding-right:calc(3 * var(--base-unit, 8px));padding-left:calc(.5 * var(--base-unit, 8px));-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.svc-item-value-controls{display:flex;margin:calc(1 * var(--base-unit, 8px)) 0;height:calc(4 * var(--base-unit, 8px));box-sizing:border-box;flex-shrink:0;min-width:72px;justify-content:flex-end}.svc-item-value-controls__button{border-radius:50%;padding:calc(1 * var(--base-unit, 8px));cursor:pointer;display:inline-block;outline:none;height:calc(2 * var(--base-unit, 8px));box-sizing:content-box}.svc-item-value-controls__button .sv-svg-icon{display:block}.svc-item-value-controls__button>span{display:block}.svc-item-value-controls__drag-icon{display:block}.svc-item-value-wrapper:hover:not(.svc-item-value--ghost) .svc-item-value-controls__drag-icon,.svc-item-value-controls__drag:hover:not(.svc-item-value--ghost) .svc-item-value-controls__drag-icon{visibility:visible}.svc-item-value-controls__drag{padding:calc(.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px));cursor:move;opacity:0.25}.svc-item-value-controls__drag .svc-item-value-controls__drag-icon{visibility:hidden}.svc-item-value-controls__drag use{fill:var(--foreground, #161616)}.svc-item-value-controls__remove use{fill:var(--red, #e60a3e)}.svc-item-value-controls__add use{fill:var(--primary, #19b394)}.svc-item-value-controls__add:hover,.svc-item-value-controls__add:focus{background-color:var(--primary-light, rgba(25,179,148,0.1))}.svc-item-value-controls__remove:hover,.svc-item-value-controls__remove:focus{background-color:var(--red-light, rgba(229,10,62,0.1))}.sv-string-editor{cursor:text}.svc-item-value--new .svc-item-value__item .sd-item__control-label,.svc-item-value--new .svc-item-value__item .sv-ranking-item__text{color:var(--foreground-light, #909090)}.svc-item-value--new .svc-item-value__item .sd-item__decorator{opacity:0.35}.svc-item-value--new .sv-ranking-item__index{background:var(--background-
|
|
49
|
+
.svc-item-value-wrapper{position:relative;display:flex;gap:calc(1 * var(--base-unit, 8px));align-items:center;margin-left:calc(-5 * var(--base-unit, 8px));min-width:calc(27 * var(--base-unit, 8px))}.svc-question__dropdown-choice .svc-item-value-wrapper,.sd-selectbase .svc-item-value-wrapper{align-items:flex-start}.svc-question__content .sd-selectbase__column:not(.sd-imagepicker__column):not(:first-of-type){margin-left:calc(5 * var(--base-unit, 8px))}.svc-question__content .sd-selectbase__column:not(:last-child){padding-right:0}.svc-item-value--dragging{background:var(--background, #fff);box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,0.1);border-radius:calc(12.5 * var(--base-unit, 8px));padding-right:calc(3 * var(--base-unit, 8px));padding-left:calc(.5 * var(--base-unit, 8px));-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.svc-item-value-controls{display:flex;margin:calc(1 * var(--base-unit, 8px)) 0;height:calc(4 * var(--base-unit, 8px));box-sizing:border-box;flex-shrink:0;min-width:72px;justify-content:flex-end}.svc-item-value-controls__button{border-radius:50%;padding:calc(1 * var(--base-unit, 8px));cursor:pointer;display:inline-block;outline:none;height:calc(2 * var(--base-unit, 8px));box-sizing:content-box}.svc-item-value-controls__button .sv-svg-icon{display:block}.svc-item-value-controls__button>span{display:block}.svc-item-value-controls__drag-icon{display:block}.svc-item-value-wrapper:hover:not(.svc-item-value--ghost) .svc-item-value-controls__drag-icon,.svc-item-value-controls__drag:hover:not(.svc-item-value--ghost) .svc-item-value-controls__drag-icon{visibility:visible}.svc-item-value-controls__drag{padding:calc(.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px));cursor:move;opacity:0.25}.svc-item-value-controls__drag .svc-item-value-controls__drag-icon{visibility:hidden}.svc-item-value-controls__drag use{fill:var(--foreground, #161616)}.svc-item-value-controls__remove use{fill:var(--red, #e60a3e)}.svc-item-value-controls__add use{fill:var(--primary, #19b394)}.svc-item-value-controls__add:hover,.svc-item-value-controls__add:focus{background-color:var(--primary-light, rgba(25,179,148,0.1))}.svc-item-value-controls__remove:hover,.svc-item-value-controls__remove:focus{background-color:var(--red-light, rgba(229,10,62,0.1))}.sv-string-editor{cursor:text}.svc-item-value--new .svc-item-value__item .sd-item__control-label,.svc-item-value--new .svc-item-value__item .sv-ranking-item__text{color:var(--foreground-light, #909090)}.svc-item-value--new .svc-item-value__item .sd-item__decorator{opacity:0.35}.svc-item-value--new .sv-ranking-item__index{background:var(--background-dim, #f3f3f3)}.svc-item-value--new .sv-ranking-item__index.sv-ranking-item__index--empty:empty{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAACCAYAAABhYU3QAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAaSURBVHgBjcABDQAACAKwa2X6b1Tghxi8UQEkAAB3NR3N2gAAAABJRU5ErkJggg==)}.sv-ranking .svc-item-value-wrapper{align-items:center}.svc-item-value__item .sv-ranking-item__content{padding-left:0}.svc-item-value__item .sv-ranking-item__icon-container{display:none}.svc-item-value__item .sv-ranking-item__text{overflow:visible}.svc-item-value--ghost .svc-item-value__ghost{display:block}.svc-item-value--ghost .svc-item-value-controls{visibility:hidden}.svc-item-value--movedown{transform:translate(0, 0);animation:svdragdropmovedown 0.1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translate(0, -50px)}100%{transform:translate(0, 0)}}.svc-item-value--moveup{transform:translate(0, 0);animation:svdragdropmoveup 0.1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translate(0, 50px)}100%{transform:translate(0, 0)}}.svc-item-value__ghost{display:none;background:var(--background-dim, #f3f3f3);border-radius:calc(12.5 * var(--base-unit, 8px));width:calc(25 * var(--base-unit, 8px));height:40px;z-index:11;position:absolute;left:35px}
|
|
50
50
|
|
|
51
51
|
.svc-image-item-value-wrapper{display:inline-block;position:relative}.svc-image-item-value--new{display:none;height:max-content}.svc-image-item-value--new .sd-imagepicker__image{box-sizing:border-box;border:1px dashed var(--border, #d6d6d6)}.svc-image-item-value--file-dragging .sd-imagepicker__image{border:2px solid var(--primary, #19b394);background-color:var(--primary-light, rgba(25,179,148,0.1))}.svc-image-item-value--file-dragging .svc-image-item-value__item{position:relative;z-index:2}.svc-question__content--selected .svc-image-item-value--new{display:inline-block}.svc-image-item-value-controls{position:absolute;top:calc(1 * var(--base-unit, 8px));right:calc(1 * var(--base-unit, 8px))}.svc-image-item-value--new .svc-image-item-value-controls{top:calc(50% - 3 * var(--base-unit, 8px));left:calc(50% - 3 * var(--base-unit, 8px))}.svc-image-item-value-controls{display:flex}.svc-image-item-value-controls__button{display:block;background-color:var(--background, #fff);border-radius:50%;width:calc(6 * var(--base-unit, 8px));height:calc(6 * var(--base-unit, 8px));cursor:pointer;outline:none}.svc-image-item-value-controls__button:not(:last-child){margin-right:calc(1 * var(--base-unit, 8px))}.svc-image-item-value-controls__button .sv-svg-icon{margin-top:calc(50% - 1.5 * var(--base-unit, 8px));margin-left:calc(50% - 1.5 * var(--base-unit, 8px))}.svc-image-item-value-controls__button use{fill:var(--foreground-light, #909090)}.svc-image-item-value--new .svc-image-item-value-controls__button{background-color:transparent}.svc-image-item-value-controls__choose-file:hover use,.svc-image-item-value-controls__choose-file:focus use{fill:var(--primary, #19b394)}.svc-image-item-value-controls__remove:hover use,.svc-image-item-value-controls__remove:focus use{fill:var(--red, #e60a3e)}.svc-image-item-value-controls__add use{fill:var(--primary, #19b394)}.svc-image-item-value-controls__add:hover,.svc-image-item-value-controls__add:focus{background-color:var(--primary-light, rgba(25,179,148,0.1))}.svc-choose-file-input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}.svc-image-item-value__item .sd-imagepicker__item.sd-imagepicker__item{width:100%}.svc-question__content--selected .svc-image-item-value-wrapper:hover .svc-image-item-value-controls__drag-area-indicator{display:block}.svc-image-item-value-controls__drag-area-indicator{cursor:move;position:absolute;top:calc(1 * var(--base-unit, 8px));left:calc(1 * var(--base-unit, 8px));display:none}.svc-image-item-value-wrapper--ghost .svc-image-item-value-wrapper__ghost{display:block}.svc-image-item-value-wrapper--ghost .svc-image-item-value-wrapper__content{display:none}.svc-image-item-value-wrapper__ghost{display:none;background:var(--background-dim, #f3f3f3)}.svc-image-item-value--single{width:100%}.svc-image-item-value--single .sd-imagepicker__image{height:calc(30 * var(--base-unit, 8px))}
|
|
52
52
|
|
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.81
|
|
3
3
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -111,14 +111,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
111
111
|
|
|
112
112
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* @license
|
|
113
113
|
Papa Parse
|
|
114
|
-
v5.4.
|
|
114
|
+
v5.4.1
|
|
115
115
|
https://github.com/mholt/PapaParse
|
|
116
116
|
License: MIT
|
|
117
117
|
*/
|
|
118
118
|
!function(e,t){ true?!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),
|
|
119
119
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
120
120
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
121
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):undefined}(this,function s(){"use strict";var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=f.IS_PAPA_WORKER||!1,a={},u=0,b={parse:function(e,t){var r=(t=t||{}).dynamicTyping||!1;J(r)&&(t.dynamicTypingFunction=r,r={});if(t.dynamicTyping=r,t.transform=!!J(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var i=function(){if(!b.WORKERS_SUPPORTED)return!1;var e=(r=f.URL||f.webkitURL||null,i=s.toString(),b.BLOB_URL||(b.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var r,i;return t.onmessage=_,t.id=u++,a[t.id]=t}();return i.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=J(t.step),t.chunk=J(t.chunk),t.complete=J(t.complete),t.error=J(t.error),delete t.worker,void i.postMessage({input:e,config:t,workerId:i.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?(e=function(e){if(65279===e.charCodeAt(0))return e.slice(1);return e}(e),n=t.download?new l(t):new p(t)):!0===e.readable&&J(e.read)&&J(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,r=!1,i=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(r=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");i=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+s);("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}();var u=new RegExp(Q(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,r);if("object"==typeof e[0])return h(i||Object.keys(e[0]),e,r)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||i),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],r);throw new Error("Unable to serialize unrecognized input");function h(e,t,r){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(i+=m),i+=v(e[a],a);0<t.length&&(i+=y)}for(var o=0;o<t.length;o++){var u=n?e.length:t[o].length,h=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(r&&!n&&(h="greedy"===r?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===r&&n){for(var d=[],l=0;l<u;l++){var c=s?e[l]:l;d.push(t[o][c])}h=""===d.join("").trim()}if(!h){for(var p=0;p<u;p++){0<p&&!f&&(i+=m);var g=n&&s?e[p]:p;i+=v(t[o][g],p)}o<t.length-1&&(!r||0<u&&!f)&&(i+=y)}}return i}function v(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;o&&"string"==typeof e&&o.test(e)&&(e="'"+e,r=!0);var i=e.toString().replace(u,a);return(r=r||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(i,b.BAD_DELIMITERS)||-1<i.indexOf(m)||" "===i.charAt(0)||" "===i.charAt(i.length-1))?s+i+s:i}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=r,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var r=o.config||{},u=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)u.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},r)})}),e(),this;function e(){if(0!==u.length){var e,t,r,i,n=u[0];if(J(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,r=n.inputElem,i=s.reason,void(J(o.error)&&o.error({name:e},t,r,i));if("skip"===s.action)return void h();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config))}else if("skip"===s)return void h()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){J(a)&&a(e,n.file,n.inputElem),h()},b.parse(n.file,n.instanceConfig)}else J(o.complete)&&o.complete()}function h(){u.splice(0,1),e()}}}function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new r(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&J(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e;this._partialLine="";var n=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=i.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(J(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!J(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0},this._sendError=function(e){J(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1})}}function l(e){var i;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),h.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(i=new XMLHttpRequest,this._config.withCredentials&&(i.withCredentials=this._config.withCredentials),n||(i.onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)),i.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)i.setRequestHeader(t,e[t])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;i.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{i.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===i.status&&this._chunkError()}},this._chunkLoaded=function(){4===i.readyState&&(i.status<200||400<=i.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:i.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return-1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(i),this.parseChunk(i.responseText)))},this._chunkError=function(e){var t=i.statusText||e;this._sendError(new Error(t))}}function c(e){var i,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),h.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((i=new FileReader).onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t)}var r=i.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:r}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(i.error)}}function p(e){var r;h.call(this,e=e||{}),this.stream=function(e){return r=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=r.substring(0,t),r=r.substring(t)):(e=r,r=""),this._finished=!r,this.parseChunk(e)}}}function g(e){h.call(this,e=e||{});var t=[],r=!0,i=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=v(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function r(m){var a,o,u,i=Math.pow(2,53),n=-i,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,h=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,t=this,r=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(J(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else{if(g(),0===c.data.length)return;r+=e.data.length,m.preview&&r>m.preview?o.abort():(c.data=c.data[0],p(c,t))}}}function y(e){return"greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){return c&&u&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),u=!1),m.skipEmptyLines&&(c.data=c.data.filter(function(e){return!y(e)})),_()&&function(){if(!c)return;function e(e,t){J(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e)}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1)}else c.data.forEach(e)}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var r,i=m.header?{}:[];for(r=0;r<e.length;r++){var n=r,s=e[r];m.header&&(n=r>=l.length?"__parsed_extra":l[r]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(i[n]=i[n]||[],i[n].push(s)):i[n]=s}return m.header&&(r>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+r,f+t):r<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+r,f+t)),i}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return r=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[r]&&(m.dynamicTyping[r]=m.dynamicTypingFunction(r)),!0===(m.dynamicTyping[r]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<i)return!0}return!1}(t)?parseFloat(t):h.test(t)?new Date(t):""===t?null:t):t;var r}function k(e,t,r,i){var n={type:e,code:t,message:r};void 0!==i&&(n.row=i),c.errors.push(n)}this.parse=function(e,t,r){var i=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var r=new RegExp(Q(t)+"([^]*?)"+Q(t),"gm"),i=(e=e.replace(r,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<i[0].length;if(1===i.length||s)return"\n";for(var a=0,o=0;o<i.length;o++)"\n"===i[o][0]&&a++;return a>=i.length/2?"\r\n":"\r"}(e,i)),u=!1,m.delimiter)J(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else{var n=function(e,t,r,i,n){var s,a,o,u;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var h=0;h<n.length;h++){var f=n[h],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:i,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(r&&y(p.data[g]))c++;else{var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===u||u<l)&&1.99<l&&(a=d,s=f,u=l)}return{successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(u=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,r),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=J(m.chunk)?"":a.substring(o.getCharIndex())},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3)},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,J(m.complete)&&m.complete(c),a=""}}function Q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(j){var z,M=(j=j||{}).delimiter,P=j.newline,U=j.comments,q=j.step,N=j.preview,B=j.fastMode,K=z=void 0===j.quoteChar||null===j.quoteChar?'"':j.quoteChar;if(void 0!==j.escapeChar&&(K=j.escapeChar),("string"!=typeof M||-1<b.BAD_DELIMITERS.indexOf(M))&&(M=","),U===M)throw new Error("Comment character same as delimiter");!0===U?U="#":("string"!=typeof U||-1<b.BAD_DELIMITERS.indexOf(U))&&(U=!1),"\n"!==P&&"\r"!==P&&"\r\n"!==P&&(P="\n");var W=0,H=!1;this.parse=function(i,t,r){if("string"!=typeof i)throw new Error("Input must be a string");var n=i.length,e=M.length,s=P.length,a=U.length,o=J(q),u=[],h=[],f=[],d=W=0;if(!i)return L();if(j.header){var l=i.split(P)[0].split(M),c=[],p={},g=!1;for(var _ in l){var m=l[_];J(j.transformHeader)&&(m=j.transformHeader(m,_));var y=m,v=p[m]||0;0<v&&(g=!0,y=m+"_"+v),p[m]=v+1,c.push(y)}if(g){var k=i.split(P);k[0]=c.join(M),i=k.join(P)}}if(B||!1!==B&&-1===i.indexOf(z)){for(var b=i.split(P),E=0;E<b.length;E++){if(f=b[E],W+=f.length,E!==b.length-1)W+=P.length;else if(r)return L();if(!U||f.substring(0,a)!==U){if(o){if(u=[],I(f.split(M)),F(),H)return L()}else I(f.split(M));if(N&&N<=E)return u=u.slice(0,N),L(!0)}}return L()}for(var w=i.indexOf(M,W),R=i.indexOf(P,W),C=new RegExp(Q(K)+Q(z),"g"),S=i.indexOf(z,W);;)if(i[W]!==z)if(U&&0===f.length&&i.substring(W,W+a)===U){if(-1===R)return L();W=R+s,R=i.indexOf(P,W),w=i.indexOf(M,W)}else if(-1!==w&&(w<R||-1===R))f.push(i.substring(W,w)),W=w+e,w=i.indexOf(M,W);else{if(-1===R)break;if(f.push(i.substring(W,R)),D(R+s),o&&(F(),H))return L();if(N&&u.length>=N)return L(!0)}else for(S=W,W++;;){if(-1===(S=i.indexOf(z,S+1)))return r||h.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:u.length,index:W}),T();if(S===n-1)return T(i.substring(W,S).replace(C,z));if(z!==K||i[S+1]!==K){if(z===K||0===S||i[S-1]!==K){-1!==w&&w<S+1&&(w=i.indexOf(M,S+1)),-1!==R&&R<S+1&&(R=i.indexOf(P,S+1));var O=A(-1===R?w:Math.min(w,R));if(i.substr(S+1+O,e)===M){f.push(i.substring(W,S).replace(C,z)),i[W=S+1+O+e]!==z&&(S=i.indexOf(z,W)),w=i.indexOf(M,W),R=i.indexOf(P,W);break}var x=A(R);if(i.substring(S+1+x,S+1+x+s)===P){if(f.push(i.substring(W,S).replace(C,z)),D(S+1+x+s),w=i.indexOf(M,W),S=i.indexOf(z,W),o&&(F(),H))return L();if(N&&u.length>=N)return L(!0);break}h.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:u.length,index:W}),S++}}else S++}return T();function I(e){u.push(e),d=W}function A(e){var t=0;if(-1!==e){var r=i.substring(S+1,e);r&&""===r.trim()&&(t=r.length)}return t}function T(e){return r||(void 0===e&&(e=i.substring(W)),f.push(e),W=n,I(f),o&&F()),L()}function D(e){W=e,I(f),f=[],R=i.indexOf(P,W)}function L(e){return{data:u,errors:h,meta:{delimiter:M,linebreak:P,aborted:H,truncated:!!e,cursor:d+(t||0)}}}function F(){q(L()),u=[],h=[]}},this.abort=function(){H=!0},this.getCharIndex=function(){return W}}function _(e){var t=e.data,r=a[t.workerId],i=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){i=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(J(r.userStep)){for(var s=0;s<t.results.data.length&&(r.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!i);s++);delete t.results}else J(r.userChunk)&&(r.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!i&&m(t.workerId,t.results)}function m(e,t){var r=a[e];J(r.userComplete)&&r.userComplete(t),r.terminate(),delete a[e]}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=w(e[r]);return t}function v(e,t){return function(){e.apply(t,arguments)}}function J(e){return"function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var r=b.parse(t.input,t.config);r&&f.postMessage({workerId:b.WORKER_ID,results:r,finished:!0})}}),(l.prototype=Object.create(h.prototype)).constructor=l,(c.prototype=Object.create(h.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(h.prototype)).constructor=g,b});
|
|
121
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):undefined}(this,function s(){"use strict";var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=f.IS_PAPA_WORKER||!1,a={},u=0,b={parse:function(e,t){var r=(t=t||{}).dynamicTyping||!1;J(r)&&(t.dynamicTypingFunction=r,r={});if(t.dynamicTyping=r,t.transform=!!J(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var i=function(){if(!b.WORKERS_SUPPORTED)return!1;var e=(r=f.URL||f.webkitURL||null,i=s.toString(),b.BLOB_URL||(b.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var r,i;return t.onmessage=_,t.id=u++,a[t.id]=t}();return i.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=J(t.step),t.chunk=J(t.chunk),t.complete=J(t.complete),t.error=J(t.error),delete t.worker,void i.postMessage({input:e,config:t,workerId:i.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?(e=function(e){if(65279===e.charCodeAt(0))return e.slice(1);return e}(e),n=t.download?new l(t):new p(t)):!0===e.readable&&J(e.read)&&J(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,r=!1,i=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(r=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");i=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+s);("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}();var u=new RegExp(Q(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,r);if("object"==typeof e[0])return h(i||Object.keys(e[0]),e,r)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||i),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],r);throw new Error("Unable to serialize unrecognized input");function h(e,t,r){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(i+=m),i+=v(e[a],a);0<t.length&&(i+=y)}for(var o=0;o<t.length;o++){var u=n?e.length:t[o].length,h=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(r&&!n&&(h="greedy"===r?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===r&&n){for(var d=[],l=0;l<u;l++){var c=s?e[l]:l;d.push(t[o][c])}h=""===d.join("").trim()}if(!h){for(var p=0;p<u;p++){0<p&&!f&&(i+=m);var g=n&&s?e[p]:p;i+=v(t[o][g],p)}o<t.length-1&&(!r||0<u&&!f)&&(i+=y)}}return i}function v(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;o&&"string"==typeof e&&o.test(e)&&(e="'"+e,r=!0);var i=e.toString().replace(u,a);return(r=r||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(i,b.BAD_DELIMITERS)||-1<i.indexOf(m)||" "===i.charAt(0)||" "===i.charAt(i.length-1))?s+i+s:i}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=r,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var r=o.config||{},u=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)u.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},r)})}),e(),this;function e(){if(0!==u.length){var e,t,r,i,n=u[0];if(J(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,r=n.inputElem,i=s.reason,void(J(o.error)&&o.error({name:e},t,r,i));if("skip"===s.action)return void h();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config))}else if("skip"===s)return void h()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){J(a)&&a(e,n.file,n.inputElem),h()},b.parse(n.file,n.instanceConfig)}else J(o.complete)&&o.complete()}function h(){u.splice(0,1),e()}}}function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new r(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&J(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e;this._partialLine="";var n=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=i.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(J(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!J(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0},this._sendError=function(e){J(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1})}}function l(e){var i;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),h.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(i=new XMLHttpRequest,this._config.withCredentials&&(i.withCredentials=this._config.withCredentials),n||(i.onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)),i.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)i.setRequestHeader(t,e[t])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;i.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{i.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===i.status&&this._chunkError()}},this._chunkLoaded=function(){4===i.readyState&&(i.status<200||400<=i.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:i.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return-1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(i),this.parseChunk(i.responseText)))},this._chunkError=function(e){var t=i.statusText||e;this._sendError(new Error(t))}}function c(e){var i,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),h.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((i=new FileReader).onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t)}var r=i.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:r}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(i.error)}}function p(e){var r;h.call(this,e=e||{}),this.stream=function(e){return r=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=r.substring(0,t),r=r.substring(t)):(e=r,r=""),this._finished=!r,this.parseChunk(e)}}}function g(e){h.call(this,e=e||{});var t=[],r=!0,i=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=v(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function r(m){var a,o,u,i=Math.pow(2,53),n=-i,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,h=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,t=this,r=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(J(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else{if(g(),0===c.data.length)return;r+=e.data.length,m.preview&&r>m.preview?o.abort():(c.data=c.data[0],p(c,t))}}}function y(e){return"greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){return c&&u&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),u=!1),m.skipEmptyLines&&(c.data=c.data.filter(function(e){return!y(e)})),_()&&function(){if(!c)return;function e(e,t){J(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e)}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1)}else c.data.forEach(e)}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var r,i=m.header?{}:[];for(r=0;r<e.length;r++){var n=r,s=e[r];m.header&&(n=r>=l.length?"__parsed_extra":l[r]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(i[n]=i[n]||[],i[n].push(s)):i[n]=s}return m.header&&(r>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+r,f+t):r<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+r,f+t)),i}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return r=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[r]&&(m.dynamicTyping[r]=m.dynamicTypingFunction(r)),!0===(m.dynamicTyping[r]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<i)return!0}return!1}(t)?parseFloat(t):h.test(t)?new Date(t):""===t?null:t):t;var r}function k(e,t,r,i){var n={type:e,code:t,message:r};void 0!==i&&(n.row=i),c.errors.push(n)}this.parse=function(e,t,r){var i=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var r=new RegExp(Q(t)+"([^]*?)"+Q(t),"gm"),i=(e=e.replace(r,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<i[0].length;if(1===i.length||s)return"\n";for(var a=0,o=0;o<i.length;o++)"\n"===i[o][0]&&a++;return a>=i.length/2?"\r\n":"\r"}(e,i)),u=!1,m.delimiter)J(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else{var n=function(e,t,r,i,n){var s,a,o,u;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var h=0;h<n.length;h++){var f=n[h],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:i,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(r&&y(p.data[g]))c++;else{var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===u||u<l)&&1.99<l&&(a=d,s=f,u=l)}return{successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(u=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,r),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=J(m.chunk)?"":a.substring(o.getCharIndex())},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3)},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,J(m.complete)&&m.complete(c),a=""}}function Q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(j){var z,M=(j=j||{}).delimiter,P=j.newline,U=j.comments,q=j.step,N=j.preview,B=j.fastMode,K=z=void 0===j.quoteChar||null===j.quoteChar?'"':j.quoteChar;if(void 0!==j.escapeChar&&(K=j.escapeChar),("string"!=typeof M||-1<b.BAD_DELIMITERS.indexOf(M))&&(M=","),U===M)throw new Error("Comment character same as delimiter");!0===U?U="#":("string"!=typeof U||-1<b.BAD_DELIMITERS.indexOf(U))&&(U=!1),"\n"!==P&&"\r"!==P&&"\r\n"!==P&&(P="\n");var W=0,H=!1;this.parse=function(i,t,r){if("string"!=typeof i)throw new Error("Input must be a string");var n=i.length,e=M.length,s=P.length,a=U.length,o=J(q),u=[],h=[],f=[],d=W=0;if(!i)return L();if(j.header&&!t){var l=i.split(P)[0].split(M),c=[],p={},g=!1;for(var _ in l){var m=l[_];J(j.transformHeader)&&(m=j.transformHeader(m,_));var y=m,v=p[m]||0;for(0<v&&(g=!0,y=m+"_"+v),p[m]=v+1;c.includes(y);)y=y+"_"+v;c.push(y)}if(g){var k=i.split(P);k[0]=c.join(M),i=k.join(P)}}if(B||!1!==B&&-1===i.indexOf(z)){for(var b=i.split(P),E=0;E<b.length;E++){if(f=b[E],W+=f.length,E!==b.length-1)W+=P.length;else if(r)return L();if(!U||f.substring(0,a)!==U){if(o){if(u=[],I(f.split(M)),F(),H)return L()}else I(f.split(M));if(N&&N<=E)return u=u.slice(0,N),L(!0)}}return L()}for(var w=i.indexOf(M,W),R=i.indexOf(P,W),C=new RegExp(Q(K)+Q(z),"g"),S=i.indexOf(z,W);;)if(i[W]!==z)if(U&&0===f.length&&i.substring(W,W+a)===U){if(-1===R)return L();W=R+s,R=i.indexOf(P,W),w=i.indexOf(M,W)}else if(-1!==w&&(w<R||-1===R))f.push(i.substring(W,w)),W=w+e,w=i.indexOf(M,W);else{if(-1===R)break;if(f.push(i.substring(W,R)),D(R+s),o&&(F(),H))return L();if(N&&u.length>=N)return L(!0)}else for(S=W,W++;;){if(-1===(S=i.indexOf(z,S+1)))return r||h.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:u.length,index:W}),T();if(S===n-1)return T(i.substring(W,S).replace(C,z));if(z!==K||i[S+1]!==K){if(z===K||0===S||i[S-1]!==K){-1!==w&&w<S+1&&(w=i.indexOf(M,S+1)),-1!==R&&R<S+1&&(R=i.indexOf(P,S+1));var O=A(-1===R?w:Math.min(w,R));if(i.substr(S+1+O,e)===M){f.push(i.substring(W,S).replace(C,z)),i[W=S+1+O+e]!==z&&(S=i.indexOf(z,W)),w=i.indexOf(M,W),R=i.indexOf(P,W);break}var x=A(R);if(i.substring(S+1+x,S+1+x+s)===P){if(f.push(i.substring(W,S).replace(C,z)),D(S+1+x+s),w=i.indexOf(M,W),S=i.indexOf(z,W),o&&(F(),H))return L();if(N&&u.length>=N)return L(!0);break}h.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:u.length,index:W}),S++}}else S++}return T();function I(e){u.push(e),d=W}function A(e){var t=0;if(-1!==e){var r=i.substring(S+1,e);r&&""===r.trim()&&(t=r.length)}return t}function T(e){return r||(void 0===e&&(e=i.substring(W)),f.push(e),W=n,I(f),o&&F()),L()}function D(e){W=e,I(f),f=[],R=i.indexOf(P,W)}function L(e){return{data:u,errors:h,meta:{delimiter:M,linebreak:P,aborted:H,truncated:!!e,cursor:d+(t||0)}}}function F(){q(L()),u=[],h=[]}},this.abort=function(){H=!0},this.getCharIndex=function(){return W}}function _(e){var t=e.data,r=a[t.workerId],i=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){i=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(J(r.userStep)){for(var s=0;s<t.results.data.length&&(r.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!i);s++);delete t.results}else J(r.userChunk)&&(r.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!i&&m(t.workerId,t.results)}function m(e,t){var r=a[e];J(r.userComplete)&&r.userComplete(t),r.terminate(),delete a[e]}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=w(e[r]);return t}function v(e,t){return function(){e.apply(t,arguments)}}function J(e){return"function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var r=b.parse(t.input,t.config);r&&f.postMessage({workerId:b.WORKER_ID,results:r,finished:!0})}}),(l.prototype=Object.create(h.prototype)).constructor=l,(c.prototype=Object.create(h.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(h.prototype)).constructor=g,b});
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
|
|
@@ -686,12 +686,15 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
686
686
|
}
|
|
687
687
|
_this.dragDropHelper.onGhostPositionChanged.add(_this.handleDragDropGhostPositionChanged);
|
|
688
688
|
_this.dragOrClickHelper = new survey_core__WEBPACK_IMPORTED_MODULE_1__["DragOrClickHelper"](_this.startDragItemValue);
|
|
689
|
-
_this.allowItemOperations = { allowDelete: undefined, allowEdit: undefined };
|
|
689
|
+
_this.allowItemOperations = { allowDelete: undefined, allowEdit: undefined, allowAdd: undefined };
|
|
690
690
|
_this.collectionProperty = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findProperty(question.getType(), _this.collectionPropertyName);
|
|
691
691
|
_this.creator.onCollectionItemAllowingCallback(question, _this.collectionProperty, question.visibleChoices, _this.item, _this.allowItemOperations);
|
|
692
692
|
if (_this.allowItemOperations.allowDelete === undefined) {
|
|
693
693
|
_this.allowItemOperations.allowDelete = true;
|
|
694
694
|
}
|
|
695
|
+
if (_this.allowItemOperations.allowAdd === undefined) {
|
|
696
|
+
_this.allowItemOperations.allowAdd = true;
|
|
697
|
+
}
|
|
695
698
|
if (!_this.creator.isCanModifyProperty(question, "choices")) {
|
|
696
699
|
_this.canTouchItems = false;
|
|
697
700
|
}
|
|
@@ -855,7 +858,7 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
855
858
|
Object.defineProperty(ItemValueWrapperViewModel.prototype, "allowAdd", {
|
|
856
859
|
get: function () {
|
|
857
860
|
var isNew = !this.question.isItemInList(this.item);
|
|
858
|
-
return !this.creator.readOnly && this.canTouchItems && isNew;
|
|
861
|
+
return !this.creator.readOnly && this.canTouchItems && (this.allowItemOperations.allowAdd) && isNew;
|
|
859
862
|
},
|
|
860
863
|
enumerable: false,
|
|
861
864
|
configurable: true
|
|
@@ -11528,6 +11531,7 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
11528
11531
|
*- options.collection a collection where a target item is located. It is can be Columns in Matrices or Choices in Dropdown question and so on.
|
|
11529
11532
|
*- options.item a target collection item
|
|
11530
11533
|
*- options.allowDelete a boolean value. It is `true` by default. Set it false to prevent an item from being removed from the collection
|
|
11534
|
+
*- options.allowAdd a boolean value. It is `true` by default. Set it false to prevent an item from being added to the collection
|
|
11531
11535
|
*- options.allowEdit a boolean value. It is `true` by default. Set it `false` to disable editing.
|
|
11532
11536
|
*/
|
|
11533
11537
|
_this.onCollectionItemAllowOperations = new CreatorEvent();
|
|
@@ -12802,7 +12806,7 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
12802
12806
|
var allowQuestionOperations = this.getElementAllowOperations(parentObj);
|
|
12803
12807
|
if (allowQuestionOperations.allowEdit === false)
|
|
12804
12808
|
return false;
|
|
12805
|
-
var options = { allowDelete: true, allowEdit: allowEdit };
|
|
12809
|
+
var options = { allowDelete: true, allowEdit: allowEdit, allowAdd: true };
|
|
12806
12810
|
this.onCollectionItemAllowingCallback(parentObj, property, parentObj.getPropertyValue(parentProperty === null || parentProperty === void 0 ? void 0 : parentProperty.name), obj, options);
|
|
12807
12811
|
if (options.allowEdit === false) {
|
|
12808
12812
|
return false;
|
|
@@ -14021,11 +14025,13 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14021
14025
|
collection: collection,
|
|
14022
14026
|
item: item,
|
|
14023
14027
|
allowEdit: itemOptions.allowEdit,
|
|
14024
|
-
allowDelete: itemOptions.allowDelete
|
|
14028
|
+
allowDelete: itemOptions.allowDelete,
|
|
14029
|
+
allowAdd: itemOptions.allowAdd
|
|
14025
14030
|
};
|
|
14026
14031
|
this.onCollectionItemAllowOperations.fire(this, options);
|
|
14027
14032
|
itemOptions.allowEdit = options.allowEdit;
|
|
14028
14033
|
itemOptions.allowDelete = options.allowDelete;
|
|
14034
|
+
itemOptions.allowAdd = options.allowAdd;
|
|
14029
14035
|
};
|
|
14030
14036
|
CreatorBase.prototype.onItemValueAddedCallback = function (obj, propertyName, itemValue, itemValues) {
|
|
14031
14037
|
var options = {
|
|
@@ -15920,7 +15926,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15920
15926
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
15921
15927
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_61___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_61__);
|
|
15922
15928
|
var Version;
|
|
15923
|
-
Version = "" + "1.9.
|
|
15929
|
+
Version = "" + "1.9.81";
|
|
15924
15930
|
|
|
15925
15931
|
|
|
15926
15932
|
|
|
@@ -15997,7 +16003,7 @@ __webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
|
15997
16003
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
15998
16004
|
|
|
15999
16005
|
survey_core__WEBPACK_IMPORTED_MODULE_61__["settings"].supportCreatorV2 = true;
|
|
16000
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_61__["checkLibraryVersion"])("" + "1.9.
|
|
16006
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_61__["checkLibraryVersion"])("" + "1.9.81", "survey-creator-core");
|
|
16001
16007
|
|
|
16002
16008
|
|
|
16003
16009
|
/***/ }),
|
|
@@ -18425,7 +18431,7 @@ var enStrings = {
|
|
|
18425
18431
|
maxTimeToFinishPage: "Time limit to finish one page (in seconds)",
|
|
18426
18432
|
image: {
|
|
18427
18433
|
imageHeight: "Image height (in CSS-accepted values)",
|
|
18428
|
-
imageWidth: "Image width (in CSS-accepted values)"
|
|
18434
|
+
imageWidth: "Image width (in CSS-accepted values)"
|
|
18429
18435
|
},
|
|
18430
18436
|
page: {
|
|
18431
18437
|
maxTimeToFinish: "Time limit to finish the page (in seconds)"
|
|
@@ -18869,78 +18875,81 @@ var enStrings = {
|
|
|
18869
18875
|
multiSelect: "Allow multiple selection",
|
|
18870
18876
|
showLabel: "Show image captions",
|
|
18871
18877
|
value: "Value",
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
|
|
18881
|
-
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
|
|
18888
|
-
|
|
18889
|
-
|
|
18890
|
-
|
|
18891
|
-
|
|
18892
|
-
|
|
18893
|
-
|
|
18894
|
-
|
|
18895
|
-
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
|
|
18900
|
-
|
|
18901
|
-
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
|
|
18921
|
-
|
|
18922
|
-
|
|
18923
|
-
|
|
18924
|
-
|
|
18925
|
-
|
|
18926
|
-
|
|
18927
|
-
|
|
18928
|
-
|
|
18929
|
-
|
|
18930
|
-
|
|
18931
|
-
|
|
18932
|
-
|
|
18933
|
-
|
|
18934
|
-
|
|
18935
|
-
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
|
|
18939
|
-
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18878
|
+
tabAlign: "Tab alignment",
|
|
18879
|
+
description: "Description",
|
|
18880
|
+
logoFit: "Logo fit",
|
|
18881
|
+
pages: "Pages",
|
|
18882
|
+
questions: "Questions",
|
|
18883
|
+
triggers: "Triggers",
|
|
18884
|
+
calculatedValues: "Calculated values",
|
|
18885
|
+
surveyId: "Survey id",
|
|
18886
|
+
surveyPostId: "Survey post id",
|
|
18887
|
+
surveyShowDataSaving: "Survey show data saving",
|
|
18888
|
+
questionDescriptionLocation: "Question description location",
|
|
18889
|
+
progressBarType: "Progress bar type",
|
|
18890
|
+
showTOC: "Show TOC",
|
|
18891
|
+
tocLocation: "Toc location",
|
|
18892
|
+
questionTitlePattern: "Question title pattern",
|
|
18893
|
+
widthMode: "Width mode",
|
|
18894
|
+
showBrandInfo: "Show brand info",
|
|
18895
|
+
useDisplayValuesInDynamicTexts: "Use display values in dynamic texts",
|
|
18896
|
+
visibleIf: "Visible if",
|
|
18897
|
+
titleLocation: "Title location",
|
|
18898
|
+
descriptionLocation: "Description location",
|
|
18899
|
+
defaultValueExpression: "Default value expression",
|
|
18900
|
+
requiredIf: "Required if",
|
|
18901
|
+
validators: "Validators",
|
|
18902
|
+
bindings: "Bindings",
|
|
18903
|
+
renderAs: "Render as",
|
|
18904
|
+
attachOriginalItems: "Attach original items",
|
|
18905
|
+
choices: "Choices",
|
|
18906
|
+
choicesByUrl: "Choices by url",
|
|
18907
|
+
currency: "Currency",
|
|
18908
|
+
cellHint: "Cell hint",
|
|
18909
|
+
isUnique: "Is unique",
|
|
18910
|
+
showInMultipleColumns: "Show in multiple columns",
|
|
18911
|
+
totalMaximumFractionDigits: "Total maximum fraction digits",
|
|
18912
|
+
totalMinimumFractionDigits: "Total minimum fraction digits",
|
|
18913
|
+
columns: "Columns",
|
|
18914
|
+
detailElements: "Detail elements",
|
|
18915
|
+
allowAdaptiveActions: "Allow adaptive actions",
|
|
18916
|
+
defaultRowValue: "Default row value",
|
|
18917
|
+
detailPanelShowOnAdding: "Detail panel show on adding",
|
|
18918
|
+
choicesLazyLoadEnabled: "Choices lazy load enabled",
|
|
18919
|
+
choicesLazyLoadPageSize: "Choices lazy load page size",
|
|
18920
|
+
inputFieldComponent: "Input field component",
|
|
18921
|
+
itemComponent: "Item component",
|
|
18922
|
+
min: "Min",
|
|
18923
|
+
max: "Max",
|
|
18924
|
+
minValueExpression: "Min value expression",
|
|
18925
|
+
maxValueExpression: "Max value expression",
|
|
18926
|
+
step: "Step",
|
|
18927
|
+
dataList: "Data list",
|
|
18928
|
+
itemSize: "Item size",
|
|
18929
|
+
elements: "Elements",
|
|
18930
|
+
content: "Content",
|
|
18931
|
+
navigationButtonsVisibility: "Navigation buttons visibility",
|
|
18932
|
+
navigationTitle: "Navigation title",
|
|
18933
|
+
navigationDescription: "Navigation description",
|
|
18934
|
+
longTap: "Long tap",
|
|
18935
|
+
autoGrow: "Auto grow",
|
|
18936
|
+
acceptCarriageReturn: "Accept carriage return",
|
|
18937
|
+
displayMode: "Display mode",
|
|
18938
|
+
rateType: "Rate type",
|
|
18939
|
+
label: "Label",
|
|
18940
|
+
contentMode: "Content mode",
|
|
18941
|
+
imageFit: "Image fit",
|
|
18942
|
+
altText: "Alt text",
|
|
18943
|
+
height: "Height",
|
|
18944
|
+
penColor: "Pen color",
|
|
18945
|
+
backgroundColor: "Background color",
|
|
18946
|
+
templateElements: "Template elements",
|
|
18947
|
+
operator: "Operator",
|
|
18948
|
+
isVariable: "Is variable",
|
|
18949
|
+
runExpression: "Run expression",
|
|
18950
|
+
showCaption: "Show caption",
|
|
18951
|
+
iconName: "Icon name",
|
|
18952
|
+
iconSize: "Icon size" // Auto-generated string
|
|
18944
18953
|
}
|
|
18945
18954
|
};
|
|
18946
18955
|
// Uncomment the line below if you create a custom dictionary.
|
|
@@ -22515,7 +22524,7 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
22515
22524
|
return row.allowEditRow;
|
|
22516
22525
|
};
|
|
22517
22526
|
PropertyGridModel.prototype.calculateMatrixAllowOperations = function (question, row) {
|
|
22518
|
-
var rowOptions = { allowDelete: this.onMatrixAllowRemoveRow(question, row), allowEdit: true };
|
|
22527
|
+
var rowOptions = { allowDelete: this.onMatrixAllowRemoveRow(question, row), allowEdit: true, allowAdd: undefined };
|
|
22519
22528
|
this.options.onCollectionItemAllowingCallback(this.obj, question.property, question.value, row.editingObj, rowOptions);
|
|
22520
22529
|
row.allowDeleteRow = rowOptions.allowDelete;
|
|
22521
22530
|
row.allowEditRow = rowOptions.allowEdit;
|
|
@@ -25017,6 +25026,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
25017
25026
|
paneldynamic: {
|
|
25018
25027
|
properties: [
|
|
25019
25028
|
"renderMode",
|
|
25029
|
+
"tabAlign",
|
|
25020
25030
|
"panelCount",
|
|
25021
25031
|
"minPanelCount",
|
|
25022
25032
|
"maxPanelCount",
|