survey-creator-angular 1.9.73 → 1.9.75
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/README.md +14 -205
- package/bundles/survey-creator-angular.umd.js +2536 -0
- package/bundles/survey-creator-angular.umd.js.map +1 -0
- package/esm2015/adorners/cell-question-dropdown.component.js +34 -0
- package/esm2015/adorners/cell-question.component.js +28 -0
- package/esm2015/adorners/image-item-value.component.js +64 -0
- package/esm2015/adorners/item-value.component.js +48 -0
- package/esm2015/adorners/matrix-cell.component.js +50 -0
- package/esm2015/adorners/question-dropdown.component.js +62 -0
- package/esm2015/adorners/question-image.component.js +54 -0
- package/esm2015/adorners/question-rating.component.js +54 -0
- package/esm2015/angular-ui.js +53 -0
- package/esm2015/angular-ui.module.js +92 -0
- package/esm2015/components/action-button.component.js +48 -0
- package/esm2015/creator-model.component.js +40 -0
- package/esm2015/creator.component.js +52 -0
- package/esm2015/header/logo-image.component.js +44 -0
- package/esm2015/page-navigator/page-navigator-item.component.js +29 -0
- package/esm2015/page-navigator/page-navigator.component.js +59 -0
- package/esm2015/page.component.js +54 -0
- package/esm2015/panel.component.js +20 -0
- package/esm2015/property-panel/object-selector.component.js +24 -0
- package/esm2015/property-panel/property-grid.component.js +28 -0
- package/esm2015/question-editor.component.js +49 -0
- package/esm2015/question-widget.component.js +26 -0
- package/esm2015/question.component.js +55 -0
- package/esm2015/questions/logic-operator.component.js +40 -0
- package/esm2015/questions/question-embedded-survey.component.js +30 -0
- package/esm2015/questions/question-link-value.component.js +23 -0
- package/esm2015/row.component.js +36 -0
- package/esm2015/side-bar/side-bar-tab.component.js +23 -0
- package/esm2015/side-bar/side-bar.component.js +34 -0
- package/esm2015/string-editor.component.js +105 -0
- package/esm2015/survey-creator-angular.js +5 -0
- package/esm2015/svg-bundle.component.js +22 -0
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu-item-wrapper.component.js +22 -0
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu-item.component.js +23 -0
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu.component.js +35 -0
- package/esm2015/tabs/designer/designer-pages.component.js +28 -0
- package/esm2015/tabs/designer/designer-survey.component.js +32 -0
- package/esm2015/tabs/designer/designer.component.js +33 -0
- package/esm2015/tabs/json/json-editor-ace.component.js +29 -0
- package/esm2015/tabs/json/json-editor-textarea.component.js +28 -0
- package/esm2015/tabs/logic/logic-add-btn.component.js +26 -0
- package/esm2015/tabs/logic/logic.component.js +25 -0
- package/esm2015/tabs/preview/simulator.component.js +36 -0
- package/esm2015/tabs/preview/survey-results-row.component.js +23 -0
- package/esm2015/tabs/preview/survey-results.component.js +34 -0
- package/esm2015/tabs/preview/test-again.component.js +22 -0
- package/esm2015/tabs/preview/test.component.js +27 -0
- package/esm2015/tabs/translation/translation-line-skeleton.component.js +17 -0
- package/esm2015/tabs/translation/translation.component.js +24 -0
- package/esm2015/toolbox/adaptive-toolbox.component.js +40 -0
- package/esm2015/toolbox/toolbox-category.component.js +26 -0
- package/esm2015/toolbox/toolbox-item.component.js +41 -0
- package/esm2015/toolbox/toolbox-tool.component.js +41 -0
- package/esm2015/toolbox/toolbox.component.js +28 -0
- package/esm2020/adorners/cell-question-dropdown.component.mjs +29 -29
- package/esm2020/adorners/cell-question.component.mjs +23 -23
- package/esm2020/adorners/image-item-value.component.mjs +59 -59
- package/esm2020/adorners/item-value.component.mjs +43 -43
- package/esm2020/adorners/matrix-cell.component.mjs +45 -45
- package/esm2020/adorners/question-dropdown.component.mjs +53 -53
- package/esm2020/adorners/question-image.component.mjs +44 -44
- package/esm2020/adorners/question-rating.component.mjs +45 -45
- package/esm2020/angular-ui.mjs +52 -52
- package/esm2020/angular-ui.module.mjs +91 -91
- package/esm2020/components/action-button.component.mjs +43 -43
- package/esm2020/creator-model.component.mjs +39 -39
- package/esm2020/creator.component.mjs +48 -48
- package/esm2020/header/logo-image.component.mjs +39 -39
- package/esm2020/page-navigator/page-navigator-item.component.mjs +24 -24
- package/esm2020/page-navigator/page-navigator.component.mjs +52 -52
- package/esm2020/page.component.mjs +48 -48
- package/esm2020/panel.component.mjs +15 -15
- package/esm2020/property-panel/object-selector.component.mjs +19 -19
- package/esm2020/property-panel/property-grid.component.mjs +23 -23
- package/esm2020/question-editor.component.mjs +45 -45
- package/esm2020/question-widget.component.mjs +21 -21
- package/esm2020/question.component.mjs +49 -49
- package/esm2020/questions/logic-operator.component.mjs +32 -32
- package/esm2020/questions/question-embedded-survey.component.mjs +25 -25
- package/esm2020/questions/question-link-value.component.mjs +18 -18
- package/esm2020/row.component.mjs +32 -32
- package/esm2020/side-bar/side-bar-tab.component.mjs +18 -18
- package/esm2020/side-bar/side-bar.component.mjs +29 -29
- package/esm2020/string-editor.component.mjs +98 -98
- package/esm2020/survey-creator-angular.mjs +4 -4
- package/esm2020/svg-bundle.component.mjs +21 -21
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu-item-wrapper.component.mjs +17 -17
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu-item.component.mjs +18 -18
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu.component.mjs +30 -30
- package/esm2020/tabs/designer/designer-pages.component.mjs +23 -23
- package/esm2020/tabs/designer/designer-survey.component.mjs +27 -27
- package/esm2020/tabs/designer/designer.component.mjs +28 -28
- package/esm2020/tabs/json/json-editor-ace.component.mjs +24 -24
- package/esm2020/tabs/json/json-editor-textarea.component.mjs +23 -23
- package/esm2020/tabs/logic/logic-add-btn.component.mjs +21 -21
- package/esm2020/tabs/logic/logic.component.mjs +20 -20
- package/esm2020/tabs/preview/simulator.component.mjs +31 -31
- package/esm2020/tabs/preview/survey-results-row.component.mjs +18 -18
- package/esm2020/tabs/preview/survey-results.component.mjs +29 -29
- package/esm2020/tabs/preview/test-again.component.mjs +17 -17
- package/esm2020/tabs/preview/test.component.mjs +22 -22
- package/esm2020/tabs/translation/translation-line-skeleton.component.mjs +12 -12
- package/esm2020/tabs/translation/translation.component.mjs +19 -19
- package/esm2020/toolbox/adaptive-toolbox.component.mjs +34 -34
- package/esm2020/toolbox/toolbox-category.component.mjs +21 -21
- package/esm2020/toolbox/toolbox-item.component.mjs +36 -36
- package/esm2020/toolbox/toolbox-tool.component.mjs +36 -36
- package/esm2020/toolbox/toolbox.component.mjs +23 -23
- package/fesm2015/survey-creator-angular.js +1635 -0
- package/fesm2015/survey-creator-angular.js.map +1 -0
- package/fesm2015/survey-creator-angular.mjs +1430 -1430
- package/fesm2020/survey-creator-angular.mjs +1419 -1419
- package/package.json +10 -18
|
@@ -0,0 +1,2536 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('survey-angular-ui'), require('survey-core'), require('survey-creator-core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('survey-creator-angular', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'survey-angular-ui', 'survey-core', 'survey-creator-core'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["survey-creator-angular"] = {}, global.ng.core, global.ng.common, global.ng.forms, global.i1, global.surveyCore, global.surveyCreatorCore));
|
|
5
|
+
})(this, (function (exports, i0, i2, i1$1, i1, surveyCore, surveyCreatorCore) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
+
|
|
30
|
+
/******************************************************************************
|
|
31
|
+
Copyright (c) Microsoft Corporation.
|
|
32
|
+
|
|
33
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
34
|
+
purpose with or without fee is hereby granted.
|
|
35
|
+
|
|
36
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
37
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
38
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
39
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
40
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
41
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
42
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
43
|
+
***************************************************************************** */
|
|
44
|
+
/* global Reflect, Promise */
|
|
45
|
+
var extendStatics = function (d, b) {
|
|
46
|
+
extendStatics = Object.setPrototypeOf ||
|
|
47
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
48
|
+
function (d, b) { for (var p in b)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
50
|
+
d[p] = b[p]; };
|
|
51
|
+
return extendStatics(d, b);
|
|
52
|
+
};
|
|
53
|
+
function __extends(d, b) {
|
|
54
|
+
if (typeof b !== "function" && b !== null)
|
|
55
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56
|
+
extendStatics(d, b);
|
|
57
|
+
function __() { this.constructor = d; }
|
|
58
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59
|
+
}
|
|
60
|
+
var __assign = function () {
|
|
61
|
+
__assign = Object.assign || function __assign(t) {
|
|
62
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
63
|
+
s = arguments[i];
|
|
64
|
+
for (var p in s)
|
|
65
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
66
|
+
t[p] = s[p];
|
|
67
|
+
}
|
|
68
|
+
return t;
|
|
69
|
+
};
|
|
70
|
+
return __assign.apply(this, arguments);
|
|
71
|
+
};
|
|
72
|
+
function __rest(s, e) {
|
|
73
|
+
var t = {};
|
|
74
|
+
for (var p in s)
|
|
75
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
76
|
+
t[p] = s[p];
|
|
77
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
78
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
79
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
80
|
+
t[p[i]] = s[p[i]];
|
|
81
|
+
}
|
|
82
|
+
return t;
|
|
83
|
+
}
|
|
84
|
+
function __decorate(decorators, target, key, desc) {
|
|
85
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
86
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
87
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
88
|
+
else
|
|
89
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
90
|
+
if (d = decorators[i])
|
|
91
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
92
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
93
|
+
}
|
|
94
|
+
function __param(paramIndex, decorator) {
|
|
95
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
96
|
+
}
|
|
97
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
98
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
99
|
+
throw new TypeError("Function expected"); return f; }
|
|
100
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
101
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
102
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
103
|
+
var _, done = false;
|
|
104
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
105
|
+
var context = {};
|
|
106
|
+
for (var p in contextIn)
|
|
107
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
108
|
+
for (var p in contextIn.access)
|
|
109
|
+
context.access[p] = contextIn.access[p];
|
|
110
|
+
context.addInitializer = function (f) { if (done)
|
|
111
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
112
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
113
|
+
if (kind === "accessor") {
|
|
114
|
+
if (result === void 0)
|
|
115
|
+
continue;
|
|
116
|
+
if (result === null || typeof result !== "object")
|
|
117
|
+
throw new TypeError("Object expected");
|
|
118
|
+
if (_ = accept(result.get))
|
|
119
|
+
descriptor.get = _;
|
|
120
|
+
if (_ = accept(result.set))
|
|
121
|
+
descriptor.set = _;
|
|
122
|
+
if (_ = accept(result.init))
|
|
123
|
+
initializers.push(_);
|
|
124
|
+
}
|
|
125
|
+
else if (_ = accept(result)) {
|
|
126
|
+
if (kind === "field")
|
|
127
|
+
initializers.push(_);
|
|
128
|
+
else
|
|
129
|
+
descriptor[key] = _;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (target)
|
|
133
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
134
|
+
done = true;
|
|
135
|
+
}
|
|
136
|
+
;
|
|
137
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
138
|
+
var useValue = arguments.length > 2;
|
|
139
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
140
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
141
|
+
}
|
|
142
|
+
return useValue ? value : void 0;
|
|
143
|
+
}
|
|
144
|
+
;
|
|
145
|
+
function __propKey(x) {
|
|
146
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
147
|
+
}
|
|
148
|
+
;
|
|
149
|
+
function __setFunctionName(f, name, prefix) {
|
|
150
|
+
if (typeof name === "symbol")
|
|
151
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
152
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
153
|
+
}
|
|
154
|
+
;
|
|
155
|
+
function __metadata(metadataKey, metadataValue) {
|
|
156
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
157
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
158
|
+
}
|
|
159
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
160
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
161
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
162
|
+
function fulfilled(value) { try {
|
|
163
|
+
step(generator.next(value));
|
|
164
|
+
}
|
|
165
|
+
catch (e) {
|
|
166
|
+
reject(e);
|
|
167
|
+
} }
|
|
168
|
+
function rejected(value) { try {
|
|
169
|
+
step(generator["throw"](value));
|
|
170
|
+
}
|
|
171
|
+
catch (e) {
|
|
172
|
+
reject(e);
|
|
173
|
+
} }
|
|
174
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
175
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
function __generator(thisArg, body) {
|
|
179
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
180
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
181
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
182
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
183
|
+
function step(op) {
|
|
184
|
+
if (f)
|
|
185
|
+
throw new TypeError("Generator is already executing.");
|
|
186
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
187
|
+
try {
|
|
188
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
189
|
+
return t;
|
|
190
|
+
if (y = 0, t)
|
|
191
|
+
op = [op[0] & 2, t.value];
|
|
192
|
+
switch (op[0]) {
|
|
193
|
+
case 0:
|
|
194
|
+
case 1:
|
|
195
|
+
t = op;
|
|
196
|
+
break;
|
|
197
|
+
case 4:
|
|
198
|
+
_.label++;
|
|
199
|
+
return { value: op[1], done: false };
|
|
200
|
+
case 5:
|
|
201
|
+
_.label++;
|
|
202
|
+
y = op[1];
|
|
203
|
+
op = [0];
|
|
204
|
+
continue;
|
|
205
|
+
case 7:
|
|
206
|
+
op = _.ops.pop();
|
|
207
|
+
_.trys.pop();
|
|
208
|
+
continue;
|
|
209
|
+
default:
|
|
210
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
211
|
+
_ = 0;
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
215
|
+
_.label = op[1];
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
219
|
+
_.label = t[1];
|
|
220
|
+
t = op;
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
if (t && _.label < t[2]) {
|
|
224
|
+
_.label = t[2];
|
|
225
|
+
_.ops.push(op);
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
if (t[2])
|
|
229
|
+
_.ops.pop();
|
|
230
|
+
_.trys.pop();
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
op = body.call(thisArg, _);
|
|
234
|
+
}
|
|
235
|
+
catch (e) {
|
|
236
|
+
op = [6, e];
|
|
237
|
+
y = 0;
|
|
238
|
+
}
|
|
239
|
+
finally {
|
|
240
|
+
f = t = 0;
|
|
241
|
+
}
|
|
242
|
+
if (op[0] & 5)
|
|
243
|
+
throw op[1];
|
|
244
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
248
|
+
if (k2 === undefined)
|
|
249
|
+
k2 = k;
|
|
250
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
251
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
252
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
253
|
+
}
|
|
254
|
+
Object.defineProperty(o, k2, desc);
|
|
255
|
+
}) : (function (o, m, k, k2) {
|
|
256
|
+
if (k2 === undefined)
|
|
257
|
+
k2 = k;
|
|
258
|
+
o[k2] = m[k];
|
|
259
|
+
});
|
|
260
|
+
function __exportStar(m, o) {
|
|
261
|
+
for (var p in m)
|
|
262
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
263
|
+
__createBinding(o, m, p);
|
|
264
|
+
}
|
|
265
|
+
function __values(o) {
|
|
266
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
267
|
+
if (m)
|
|
268
|
+
return m.call(o);
|
|
269
|
+
if (o && typeof o.length === "number")
|
|
270
|
+
return {
|
|
271
|
+
next: function () {
|
|
272
|
+
if (o && i >= o.length)
|
|
273
|
+
o = void 0;
|
|
274
|
+
return { value: o && o[i++], done: !o };
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
278
|
+
}
|
|
279
|
+
function __read(o, n) {
|
|
280
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
281
|
+
if (!m)
|
|
282
|
+
return o;
|
|
283
|
+
var i = m.call(o), r, ar = [], e;
|
|
284
|
+
try {
|
|
285
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
286
|
+
ar.push(r.value);
|
|
287
|
+
}
|
|
288
|
+
catch (error) {
|
|
289
|
+
e = { error: error };
|
|
290
|
+
}
|
|
291
|
+
finally {
|
|
292
|
+
try {
|
|
293
|
+
if (r && !r.done && (m = i["return"]))
|
|
294
|
+
m.call(i);
|
|
295
|
+
}
|
|
296
|
+
finally {
|
|
297
|
+
if (e)
|
|
298
|
+
throw e.error;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return ar;
|
|
302
|
+
}
|
|
303
|
+
/** @deprecated */
|
|
304
|
+
function __spread() {
|
|
305
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
306
|
+
ar = ar.concat(__read(arguments[i]));
|
|
307
|
+
return ar;
|
|
308
|
+
}
|
|
309
|
+
/** @deprecated */
|
|
310
|
+
function __spreadArrays() {
|
|
311
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
312
|
+
s += arguments[i].length;
|
|
313
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
314
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
315
|
+
r[k] = a[j];
|
|
316
|
+
return r;
|
|
317
|
+
}
|
|
318
|
+
function __spreadArray(to, from, pack) {
|
|
319
|
+
if (pack || arguments.length === 2)
|
|
320
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
321
|
+
if (ar || !(i in from)) {
|
|
322
|
+
if (!ar)
|
|
323
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
324
|
+
ar[i] = from[i];
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
328
|
+
}
|
|
329
|
+
function __await(v) {
|
|
330
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
331
|
+
}
|
|
332
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
333
|
+
if (!Symbol.asyncIterator)
|
|
334
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
335
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
336
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
337
|
+
function verb(n) { if (g[n])
|
|
338
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
339
|
+
function resume(n, v) { try {
|
|
340
|
+
step(g[n](v));
|
|
341
|
+
}
|
|
342
|
+
catch (e) {
|
|
343
|
+
settle(q[0][3], e);
|
|
344
|
+
} }
|
|
345
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
346
|
+
function fulfill(value) { resume("next", value); }
|
|
347
|
+
function reject(value) { resume("throw", value); }
|
|
348
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
349
|
+
resume(q[0][0], q[0][1]); }
|
|
350
|
+
}
|
|
351
|
+
function __asyncDelegator(o) {
|
|
352
|
+
var i, p;
|
|
353
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
354
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
355
|
+
}
|
|
356
|
+
function __asyncValues(o) {
|
|
357
|
+
if (!Symbol.asyncIterator)
|
|
358
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
359
|
+
var m = o[Symbol.asyncIterator], i;
|
|
360
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
361
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
362
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
363
|
+
}
|
|
364
|
+
function __makeTemplateObject(cooked, raw) {
|
|
365
|
+
if (Object.defineProperty) {
|
|
366
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
cooked.raw = raw;
|
|
370
|
+
}
|
|
371
|
+
return cooked;
|
|
372
|
+
}
|
|
373
|
+
;
|
|
374
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
375
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
376
|
+
}) : function (o, v) {
|
|
377
|
+
o["default"] = v;
|
|
378
|
+
};
|
|
379
|
+
function __importStar(mod) {
|
|
380
|
+
if (mod && mod.__esModule)
|
|
381
|
+
return mod;
|
|
382
|
+
var result = {};
|
|
383
|
+
if (mod != null)
|
|
384
|
+
for (var k in mod)
|
|
385
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
386
|
+
__createBinding(result, mod, k);
|
|
387
|
+
__setModuleDefault(result, mod);
|
|
388
|
+
return result;
|
|
389
|
+
}
|
|
390
|
+
function __importDefault(mod) {
|
|
391
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
392
|
+
}
|
|
393
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
394
|
+
if (kind === "a" && !f)
|
|
395
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
396
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
397
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
398
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
399
|
+
}
|
|
400
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
401
|
+
if (kind === "m")
|
|
402
|
+
throw new TypeError("Private method is not writable");
|
|
403
|
+
if (kind === "a" && !f)
|
|
404
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
405
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
406
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
407
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
408
|
+
}
|
|
409
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
410
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
411
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
412
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
var SvgBundleComponent = /** @class */ (function () {
|
|
416
|
+
function SvgBundleComponent() {
|
|
417
|
+
}
|
|
418
|
+
SvgBundleComponent.prototype.ngOnInit = function () {
|
|
419
|
+
this.svgContainer.nativeElement.innerHTML = surveyCore.SvgRegistry.iconsRenderedHtml();
|
|
420
|
+
};
|
|
421
|
+
return SvgBundleComponent;
|
|
422
|
+
}());
|
|
423
|
+
SvgBundleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SvgBundleComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
424
|
+
SvgBundleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SvgBundleComponent, selector: "svc-svg-bundle", viewQueries: [{ propertyName: "svgContainer", first: true, predicate: ["svgContainer"], descendants: true, static: true }], ngImport: i0__namespace, template: "<svg id='sv-icon-holder-global-container' #svgContainer></svg>", isInline: true, styles: [":host { display: none; }"] });
|
|
425
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SvgBundleComponent, decorators: [{
|
|
426
|
+
type: i0.Component,
|
|
427
|
+
args: [{
|
|
428
|
+
selector: "svc-svg-bundle",
|
|
429
|
+
template: "<svg id='sv-icon-holder-global-container' #svgContainer></svg>",
|
|
430
|
+
styles: [":host { display: none; }"]
|
|
431
|
+
}]
|
|
432
|
+
}], propDecorators: { svgContainer: [{
|
|
433
|
+
type: i0.ViewChild,
|
|
434
|
+
args: ["svgContainer", { static: true }]
|
|
435
|
+
}] } });
|
|
436
|
+
|
|
437
|
+
var TabbedMenuItemWrapperComponent = /** @class */ (function (_super) {
|
|
438
|
+
__extends(TabbedMenuItemWrapperComponent, _super);
|
|
439
|
+
function TabbedMenuItemWrapperComponent() {
|
|
440
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
441
|
+
}
|
|
442
|
+
TabbedMenuItemWrapperComponent.prototype.getModel = function () {
|
|
443
|
+
return this.model;
|
|
444
|
+
};
|
|
445
|
+
return TabbedMenuItemWrapperComponent;
|
|
446
|
+
}(i1.BaseAngular));
|
|
447
|
+
TabbedMenuItemWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TabbedMenuItemWrapperComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
448
|
+
TabbedMenuItemWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TabbedMenuItemWrapperComponent, selector: "svc-tabbed-menu-item-wrapper", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <span class=\"svc-tabbed-menu-item-container\" [class.sv-action--hidden]=\"!model.isVisible\" [class]=\"model.css\">\n <div class=\"sv-action__content\">\n <ng-template [component]=\"{ name: model.component || 'svc-tabbed-menu-item', data: { model } }\"></ng-template>\n </div>\n </span>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
449
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TabbedMenuItemWrapperComponent, decorators: [{
|
|
450
|
+
type: i0.Component,
|
|
451
|
+
args: [{
|
|
452
|
+
selector: "svc-tabbed-menu-item-wrapper",
|
|
453
|
+
templateUrl: "./tabbed-menu-item-wrapper.component.html",
|
|
454
|
+
styles: [":host { display: none; }"]
|
|
455
|
+
}]
|
|
456
|
+
}], propDecorators: { model: [{
|
|
457
|
+
type: i0.Input
|
|
458
|
+
}] } });
|
|
459
|
+
|
|
460
|
+
var TabbledMenuComponent = /** @class */ (function (_super) {
|
|
461
|
+
__extends(TabbledMenuComponent, _super);
|
|
462
|
+
function TabbledMenuComponent() {
|
|
463
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
464
|
+
}
|
|
465
|
+
TabbledMenuComponent.prototype.getModel = function () {
|
|
466
|
+
return this.model;
|
|
467
|
+
};
|
|
468
|
+
TabbledMenuComponent.prototype.ngAfterViewInit = function () {
|
|
469
|
+
this.responsivityManager = new surveyCore.ResponsivityManager(this.container.nativeElement, this.model, ".svc-tabbed-menu-item-container:not(.sv-dots)>.sv-action__content");
|
|
470
|
+
};
|
|
471
|
+
TabbledMenuComponent.prototype.ngOnDestroy = function () {
|
|
472
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
473
|
+
this.responsivityManager.dispose();
|
|
474
|
+
};
|
|
475
|
+
return TabbledMenuComponent;
|
|
476
|
+
}(i1.BaseAngular));
|
|
477
|
+
TabbledMenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TabbledMenuComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
478
|
+
TabbledMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TabbledMenuComponent, selector: "svc-tabbed-menu", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-tabbed-menu\" #container>\n <ng-container *ngFor=\"let action of model.renderedActions\"> \n <svc-tabbed-menu-item-wrapper [model]=\"action\"></svc-tabbed-menu-item-wrapper>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: TabbedMenuItemWrapperComponent, selector: "svc-tabbed-menu-item-wrapper", inputs: ["model"] }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
479
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TabbledMenuComponent, decorators: [{
|
|
480
|
+
type: i0.Component,
|
|
481
|
+
args: [{
|
|
482
|
+
selector: "svc-tabbed-menu",
|
|
483
|
+
templateUrl: "./tabbed-menu.component.html",
|
|
484
|
+
styles: [":host { display: none; }"]
|
|
485
|
+
}]
|
|
486
|
+
}], propDecorators: { model: [{
|
|
487
|
+
type: i0.Input
|
|
488
|
+
}], container: [{
|
|
489
|
+
type: i0.ViewChild,
|
|
490
|
+
args: ["container"]
|
|
491
|
+
}] } });
|
|
492
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-tabbed-menu", TabbledMenuComponent);
|
|
493
|
+
|
|
494
|
+
var SidebarTabComponent = /** @class */ (function (_super) {
|
|
495
|
+
__extends(SidebarTabComponent, _super);
|
|
496
|
+
function SidebarTabComponent() {
|
|
497
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
498
|
+
}
|
|
499
|
+
SidebarTabComponent.prototype.getModel = function () {
|
|
500
|
+
return this.model;
|
|
501
|
+
};
|
|
502
|
+
return SidebarTabComponent;
|
|
503
|
+
}(i1.BaseAngular));
|
|
504
|
+
SidebarTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SidebarTabComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
505
|
+
SidebarTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SidebarTabComponent, selector: "svc-side-bar-tab", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-container *ngIf=\"model.visible\">\n <ng-template [component]=\"{ name: model.componentName, data: { model: model.model } }\"></ng-template>\n </ng-container>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
506
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SidebarTabComponent, decorators: [{
|
|
507
|
+
type: i0.Component,
|
|
508
|
+
args: [{
|
|
509
|
+
selector: "svc-side-bar-tab",
|
|
510
|
+
templateUrl: "./side-bar-tab.component.html",
|
|
511
|
+
styles: [":host { display: none; }"]
|
|
512
|
+
}]
|
|
513
|
+
}], propDecorators: { model: [{
|
|
514
|
+
type: i0.Input
|
|
515
|
+
}] } });
|
|
516
|
+
|
|
517
|
+
var SidebarComponent = /** @class */ (function (_super) {
|
|
518
|
+
__extends(SidebarComponent, _super);
|
|
519
|
+
function SidebarComponent() {
|
|
520
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
521
|
+
}
|
|
522
|
+
SidebarComponent.prototype.getModel = function () {
|
|
523
|
+
return this.model;
|
|
524
|
+
};
|
|
525
|
+
SidebarComponent.prototype.ngOnDestroy = function () {
|
|
526
|
+
this.model.resetResizeManager();
|
|
527
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
528
|
+
};
|
|
529
|
+
SidebarComponent.prototype.ngAfterViewInit = function () {
|
|
530
|
+
this.model.initResizeManager(this.container.nativeElement);
|
|
531
|
+
};
|
|
532
|
+
return SidebarComponent;
|
|
533
|
+
}(i1.BaseAngular));
|
|
534
|
+
SidebarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SidebarComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
535
|
+
SidebarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SidebarComponent, selector: "svc-side-bar", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-side-bar\" [class.svc-flyout-side-bar]=\"model.flyoutPanelMode\" [visible]=\"model.hasVisibleTabs\">\n <div class=\"svc-side-bar__shadow\" (click)=\"model.collapseSidebar()\"></div>\n <div class=\"svc-flex-column svc-side-bar__wrapper\">\n <div class=\"svc-side-bar__container\" [visible]=\"model.visible\" #container>\n <div class=\"svc-side-bar__container-header\">\n <div class=\"svc-side-bar__container-actions\">\n <sv-action-bar [model]=\"model.toolbar\"></sv-action-bar>\n </div>\n <div *ngIf=\"!!model.headerText\" class=\"svc-side-bar__container-title\">{{model.headerText}}</div>\n </div>\n <div class=\"svc-side-bar__container-content\">\n <ng-container *ngFor=\"let tab of model.tabs\">\n <svc-side-bar-tab [model]=\"tab\"></svc-side-bar-tab> \n </ng-container>\n </div>\n <div class=\"svc-side-bar__container-close\">\n <div class=\"sd-btn sd-btn--action svc-side-bar__container-close-button\"\n (click)=\"model.collapseSidebar()\"> {{ model.closeText }}</div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }, { type: SidebarTabComponent, selector: "svc-side-bar-tab", inputs: ["model"] }], directives: [{ type: i1__namespace.VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
536
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SidebarComponent, decorators: [{
|
|
537
|
+
type: i0.Component,
|
|
538
|
+
args: [{
|
|
539
|
+
selector: "svc-side-bar",
|
|
540
|
+
templateUrl: "./side-bar.component.html",
|
|
541
|
+
styles: [":host { display: none; }"]
|
|
542
|
+
}]
|
|
543
|
+
}], propDecorators: { model: [{
|
|
544
|
+
type: i0.Input
|
|
545
|
+
}], container: [{
|
|
546
|
+
type: i0.ViewChild,
|
|
547
|
+
args: ["container"]
|
|
548
|
+
}] } });
|
|
549
|
+
|
|
550
|
+
var CreatorComponent = /** @class */ (function (_super) {
|
|
551
|
+
__extends(CreatorComponent, _super);
|
|
552
|
+
function CreatorComponent(changeDetectorRef) {
|
|
553
|
+
var _this = _super.call(this, changeDetectorRef) || this;
|
|
554
|
+
changeDetectorRef.detach();
|
|
555
|
+
return _this;
|
|
556
|
+
}
|
|
557
|
+
CreatorComponent.prototype.getModel = function () {
|
|
558
|
+
return this.model;
|
|
559
|
+
};
|
|
560
|
+
Object.defineProperty(CreatorComponent.prototype, "creator", {
|
|
561
|
+
get: function () {
|
|
562
|
+
return this.model;
|
|
563
|
+
},
|
|
564
|
+
enumerable: false,
|
|
565
|
+
configurable: true
|
|
566
|
+
});
|
|
567
|
+
CreatorComponent.prototype.getShouldReattachChangeDetector = function () {
|
|
568
|
+
return false;
|
|
569
|
+
};
|
|
570
|
+
CreatorComponent.prototype.onModelChanged = function () {
|
|
571
|
+
this.changeDetectorRef.detectChanges();
|
|
572
|
+
};
|
|
573
|
+
CreatorComponent.prototype.ngAfterViewInit = function () {
|
|
574
|
+
this.creator.initKeyboardShortcuts(this.container.nativeElement);
|
|
575
|
+
this.creator.initResponsivityManager(this.container.nativeElement);
|
|
576
|
+
_super.prototype.ngOnInit.call(this);
|
|
577
|
+
};
|
|
578
|
+
CreatorComponent.prototype.ngOnDestroy = function () {
|
|
579
|
+
this.creator.removeKeyboardShortcuts(this.container.nativeElement);
|
|
580
|
+
this.creator.resetResponsivityManager();
|
|
581
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
582
|
+
};
|
|
583
|
+
return CreatorComponent;
|
|
584
|
+
}(i1.BaseAngular));
|
|
585
|
+
CreatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
586
|
+
CreatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CreatorComponent, selector: "survey-creator", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"!creator.isCreatorDisposed\">\n <sv-ng-modal-container></sv-ng-modal-container>\n <div class=\"svc-creator\" [class.svc-creator--mobile]=\"creator.isMobileView\" #container>\n <div>\n <svc-svg-bundle></svc-svg-bundle>\n </div>\n <div class=\"svc-full-container svc-creator__area svc-flex-column\"\n [class.svc-creator__area--with-banner]=\"!creator.haveCommercialLicense\">\n <div class=\"svc-flex-row svc-full-container\"\n [class.svc-creator__side-bar--left]=\"creator.sidebarLocation == 'left'\">\n <div class=\"svc-flex-column svc-flex-row__element svc-flex-row__element--growing\">\n <div class=\"svc-top-bar\">\n <div class=\"svc-tabbed-menu-wrapper\" [visible]=\"creator.showTabs\">\n <svc-tabbed-menu [model]=\"creator.tabbedMenu\"></svc-tabbed-menu>\n </div>\n <div *ngIf=\"creator.showToolbar\" class=\"svc-toolbar-wrapper\" [visible]=\"creator.showToolbar\">\n <sv-action-bar [model]=\"creator.toolbar\"></sv-action-bar>\n </div>\n </div>\n <div class=\"svc-creator__content-wrapper svc-flex-row\"\n [class.svc-creator__content-wrapper--footer-toolbar]=\"creator.isMobileView\">\n <div class=\"svc-creator__content-holder svc-flex-column\">\n <ng-container *ngFor=\"let tab of creator.tabs\">\n <div class=\"svc-creator-tab\" *ngIf=\"creator.viewType == tab.id && tab.visible\"\n [attr.id]=\"'scrollableDiv-' + tab.id\" [class.svc-creator__toolbox--right]=\"creator.toolboxLocation == 'right'\">\n <ng-template [component]=\"{ name: tab.componentContent, data: { model: tab.data.model } }\"></ng-template>\n </div>\n </ng-container>\n </div>\n </div>\n <div *ngIf=\"creator.isMobileView\" class=\"svc-footer-bar\">\n <div class=\"svc-toolbar-wrapper\" [visible]=\"creator.isMobileView\">\n <sv-action-bar [model]=\"creator.footerToolbar\"></sv-action-bar>\n </div>\n </div>\n </div>\n <div *ngIf=\"creator.sidebar\" [class.sv-mobile-side-bar]=\"creator.isMobileView\">\n <svc-side-bar [model]=\"creator.sidebar\"></svc-side-bar>\n </div>\n </div>\n <div class=\"svc-creator__banner\" *ngIf=\"!creator.haveCommercialLicense\">\n <span class=\"svc-creator__non-commercial-text\">\n <a href=\"https://surveyjs.io/buy\">\n {{creator.licenseText}}\n </a>\n </span>\n </div>\n <sv-notifier [notifier]=\"creator.notifier\"></sv-notifier>\n </div>\n </div>\n</ng-container>", components: [{ type: i1__namespace.ModalComponent, selector: "sv-ng-modal-container" }, { type: SvgBundleComponent, selector: "svc-svg-bundle" }, { type: TabbledMenuComponent, selector: "svc-tabbed-menu", inputs: ["model"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }, { type: SidebarComponent, selector: "svc-side-bar", inputs: ["model"] }, { type: i1__namespace.NotifierComponent, selector: "sv-notifier", inputs: ["notifier"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
587
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorComponent, decorators: [{
|
|
588
|
+
type: i0.Component,
|
|
589
|
+
args: [{
|
|
590
|
+
selector: "survey-creator",
|
|
591
|
+
templateUrl: "./creator.component.html"
|
|
592
|
+
}]
|
|
593
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { model: [{
|
|
594
|
+
type: i0.Input
|
|
595
|
+
}], container: [{
|
|
596
|
+
type: i0.ViewChild,
|
|
597
|
+
args: ["container", { read: i0.ElementRef }]
|
|
598
|
+
}] } });
|
|
599
|
+
i1.AngularComponentFactory.Instance.registerComponent("survey-widget", i1.SurveyContentComponent);
|
|
600
|
+
|
|
601
|
+
var CreatorModelComponent = /** @class */ (function (_super) {
|
|
602
|
+
__extends(CreatorModelComponent, _super);
|
|
603
|
+
function CreatorModelComponent() {
|
|
604
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
605
|
+
}
|
|
606
|
+
CreatorModelComponent.prototype.createHash = function () {
|
|
607
|
+
var _this = this;
|
|
608
|
+
this.hash = {};
|
|
609
|
+
this.getPropertiesToTrack().forEach(function (prop) {
|
|
610
|
+
_this.hash[prop] = _this[prop];
|
|
611
|
+
});
|
|
612
|
+
};
|
|
613
|
+
CreatorModelComponent.prototype.ngOnInit = function () {
|
|
614
|
+
this.createModel();
|
|
615
|
+
this.createHash();
|
|
616
|
+
_super.prototype.ngOnInit.call(this);
|
|
617
|
+
};
|
|
618
|
+
CreatorModelComponent.prototype.ngDoCheck = function () {
|
|
619
|
+
if (this.needUpdateModel())
|
|
620
|
+
this.createModel();
|
|
621
|
+
_super.prototype.ngDoCheck.call(this);
|
|
622
|
+
};
|
|
623
|
+
CreatorModelComponent.prototype.needUpdateModel = function () {
|
|
624
|
+
var _this = this;
|
|
625
|
+
var res = false;
|
|
626
|
+
Object.keys(this.hash).forEach(function (key) {
|
|
627
|
+
if (_this.hash[key] != _this[key]) {
|
|
628
|
+
_this.hash[key] = _this[key];
|
|
629
|
+
res = true;
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
return res;
|
|
633
|
+
};
|
|
634
|
+
return CreatorModelComponent;
|
|
635
|
+
}(i1.BaseAngular));
|
|
636
|
+
CreatorModelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorModelComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
637
|
+
CreatorModelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CreatorModelComponent, selector: "ng-component", usesInheritance: true, ngImport: i0__namespace, template: "", isInline: true });
|
|
638
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorModelComponent, decorators: [{
|
|
639
|
+
type: i0.Component,
|
|
640
|
+
args: [{
|
|
641
|
+
template: ""
|
|
642
|
+
}]
|
|
643
|
+
}] });
|
|
644
|
+
|
|
645
|
+
var ToolboxToolComponent = /** @class */ (function (_super) {
|
|
646
|
+
__extends(ToolboxToolComponent, _super);
|
|
647
|
+
function ToolboxToolComponent() {
|
|
648
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
649
|
+
_this.isCompact = false;
|
|
650
|
+
return _this;
|
|
651
|
+
}
|
|
652
|
+
ToolboxToolComponent.prototype.createModel = function () {
|
|
653
|
+
this.model = new surveyCreatorCore.ToolboxToolViewModel(this.item, this.creator);
|
|
654
|
+
};
|
|
655
|
+
ToolboxToolComponent.prototype.getPropertiesToTrack = function () {
|
|
656
|
+
return ["creator", "item"];
|
|
657
|
+
};
|
|
658
|
+
ToolboxToolComponent.prototype.getModel = function () {
|
|
659
|
+
return this.item;
|
|
660
|
+
};
|
|
661
|
+
ToolboxToolComponent.prototype.getPropertiesToUpdateSync = function () {
|
|
662
|
+
return ["mode"];
|
|
663
|
+
};
|
|
664
|
+
return ToolboxToolComponent;
|
|
665
|
+
}(CreatorModelComponent));
|
|
666
|
+
ToolboxToolComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxToolComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
667
|
+
ToolboxToolComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: { creator: "creator", item: "item", isCompact: "isCompact" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-toolbox__tool\"\n [class.sv-action--hidden]=\"!item.isVisible\" [class]=\"item.css\" (pointerdown)=\"model.onPointerDown($event)\">\n <div class=\"sv-action__content\">\n <div class=\"svc-toolbox__category-separator\" *ngIf=\"item.needSeparator && !creator.toolbox.showCategoryTitles\"></div>\n <ng-template [component]=\"{ name: item.component || 'svc-toolbox-item', default: 'svc-toolbox-item', data: { model: item, viewModel: model, creator: creator, isCompact: isCompact } }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
668
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxToolComponent, decorators: [{
|
|
669
|
+
type: i0.Component,
|
|
670
|
+
args: [{
|
|
671
|
+
selector: "svc-toolbox-tool",
|
|
672
|
+
templateUrl: "./toolbox-tool.component.html",
|
|
673
|
+
styles: [":host { display: none; }"]
|
|
674
|
+
}]
|
|
675
|
+
}], propDecorators: { creator: [{
|
|
676
|
+
type: i0.Input
|
|
677
|
+
}], item: [{
|
|
678
|
+
type: i0.Input
|
|
679
|
+
}], isCompact: [{
|
|
680
|
+
type: i0.Input
|
|
681
|
+
}] } });
|
|
682
|
+
|
|
683
|
+
var ToolboxCategoryComponent = /** @class */ (function (_super) {
|
|
684
|
+
__extends(ToolboxCategoryComponent, _super);
|
|
685
|
+
function ToolboxCategoryComponent() {
|
|
686
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
687
|
+
}
|
|
688
|
+
ToolboxCategoryComponent.prototype.getModel = function () {
|
|
689
|
+
return this.category;
|
|
690
|
+
};
|
|
691
|
+
return ToolboxCategoryComponent;
|
|
692
|
+
}(i1.BaseAngular));
|
|
693
|
+
ToolboxCategoryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxCategoryComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
694
|
+
ToolboxCategoryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ToolboxCategoryComponent, selector: "svc-toolbox-category ", inputs: { category: "category", toolbox: "toolbox" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-toolbox__category\" [class.svc-toolbox__category--collapsed]=\"category.collapsed\">\n <div class=\"svc-toolbox__category-header\"\n (click)=\"category.toggleState()\" [key2click] [class.svc-toolbox__category-header--collapsed]=\"toolbox.canCollapseCategories\">\n <span class=\"svc-toolbox__category-title\">{{category.name}}</span>\n <div *ngIf=\"toolbox.canCollapseCategories\" class=\"svc-toolbox__category-header__controls\">\n <svg [iconName]=\"'icon-arrow-down'\" class=\"svc-toolbox__category-header__button svc-string-editor__button--expand\" [size]=\"24\" sv-ng-svg-icon [visible]=\"category.collapsed\"></svg>\n <svg [iconName]=\"'icon-arrow-up'\" class=\"svc-toolbox__category-header__button svc-string-editor__button--collapse\" [size]=\"24\" sv-ng-svg-icon [visible]=\"!category.collapsed\"></svg>\n </div>\n </div>\n <ng-container *ngFor=\"let item of category.items\">\n <svc-toolbox-tool [item]=\"item\" [creator]=\"toolbox.creator\" [isCompact]=\"false\" ></svc-toolbox-tool>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: ["creator", "item", "isCompact"] }], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
695
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxCategoryComponent, decorators: [{
|
|
696
|
+
type: i0.Component,
|
|
697
|
+
args: [{
|
|
698
|
+
selector: "svc-toolbox-category ",
|
|
699
|
+
templateUrl: "./toolbox-category.component.html",
|
|
700
|
+
styles: [":host { display: none; }"]
|
|
701
|
+
}]
|
|
702
|
+
}], propDecorators: { category: [{
|
|
703
|
+
type: i0.Input
|
|
704
|
+
}], toolbox: [{
|
|
705
|
+
type: i0.Input
|
|
706
|
+
}] } });
|
|
707
|
+
|
|
708
|
+
var AdaptiveToolboxComponent = /** @class */ (function (_super) {
|
|
709
|
+
__extends(AdaptiveToolboxComponent, _super);
|
|
710
|
+
function AdaptiveToolboxComponent() {
|
|
711
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
712
|
+
}
|
|
713
|
+
Object.defineProperty(AdaptiveToolboxComponent.prototype, "model", {
|
|
714
|
+
get: function () {
|
|
715
|
+
return this.creator.toolbox;
|
|
716
|
+
},
|
|
717
|
+
enumerable: false,
|
|
718
|
+
configurable: true
|
|
719
|
+
});
|
|
720
|
+
AdaptiveToolboxComponent.prototype.ngAfterViewInit = function () {
|
|
721
|
+
this.responsivityManager =
|
|
722
|
+
new surveyCore.VerticalResponsivityManager(this.container.nativeElement, this.model, ".svc-toolbox__tool:not(.sv-dots)");
|
|
723
|
+
};
|
|
724
|
+
AdaptiveToolboxComponent.prototype.getModel = function () {
|
|
725
|
+
return this.model;
|
|
726
|
+
};
|
|
727
|
+
AdaptiveToolboxComponent.prototype.ngOnDestroy = function () {
|
|
728
|
+
var _a;
|
|
729
|
+
(_a = this.responsivityManager) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
730
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
731
|
+
};
|
|
732
|
+
return AdaptiveToolboxComponent;
|
|
733
|
+
}(i1.BaseAngular));
|
|
734
|
+
AdaptiveToolboxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AdaptiveToolboxComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
735
|
+
AdaptiveToolboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AdaptiveToolboxComponent, selector: "svc-adaptive-toolbox", inputs: { creator: "creator" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-toolbox\" [class.svc-toolbox--compact]=\"model.isCompact\" #container>\n <div class=\"svc-toolbox__container\">\n <ng-container *ngIf=\"!(model.isCompact || model.categories.length == 1 || !model.showCategoryTitles)\">\n <svc-toolbox-category *ngFor=\"let category of model.categories\" [category]=\"category\" [toolbox]=\"model\"></svc-toolbox-category>\n </ng-container>\n <ng-container *ngIf=\"model.isCompact || model.categories.length == 1 || !model.showCategoryTitles\">\n <div class=\"svc-toolbox__category\">\n <svc-toolbox-tool *ngFor=\"let item of model.renderedActions\" [creator]=\"creator\" [item]=\"item\" [isCompact]=\"model.isCompact\"></svc-toolbox-tool>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: ToolboxCategoryComponent, selector: "svc-toolbox-category ", inputs: ["category", "toolbox"] }, { type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: ["creator", "item", "isCompact"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
736
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AdaptiveToolboxComponent, decorators: [{
|
|
737
|
+
type: i0.Component,
|
|
738
|
+
args: [{
|
|
739
|
+
selector: "svc-adaptive-toolbox",
|
|
740
|
+
templateUrl: "./adaptive-toolbox.component.html",
|
|
741
|
+
styles: [":host { display: none; }"]
|
|
742
|
+
}]
|
|
743
|
+
}], propDecorators: { creator: [{
|
|
744
|
+
type: i0.Input
|
|
745
|
+
}], container: [{
|
|
746
|
+
type: i0.ViewChild,
|
|
747
|
+
args: ["container"]
|
|
748
|
+
}] } });
|
|
749
|
+
|
|
750
|
+
var PageDesignerComponent = /** @class */ (function (_super) {
|
|
751
|
+
__extends(PageDesignerComponent, _super);
|
|
752
|
+
function PageDesignerComponent() {
|
|
753
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
754
|
+
}
|
|
755
|
+
PageDesignerComponent.prototype.createModel = function () {
|
|
756
|
+
var _a;
|
|
757
|
+
if (this.model) {
|
|
758
|
+
(_a = this.previousModel) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
759
|
+
this.adorner = new surveyCreatorCore.PageAdorner(this.creator, this.model);
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
PageDesignerComponent.prototype.getModel = function () {
|
|
763
|
+
return this.adorner;
|
|
764
|
+
};
|
|
765
|
+
PageDesignerComponent.prototype.getPropertiesToTrack = function () {
|
|
766
|
+
return ["creator", "model"];
|
|
767
|
+
};
|
|
768
|
+
PageDesignerComponent.prototype.addNewQuestion = function (event) {
|
|
769
|
+
event.stopPropagation();
|
|
770
|
+
this.adorner.addNewQuestion(this.adorner, event);
|
|
771
|
+
};
|
|
772
|
+
PageDesignerComponent.prototype.selectQuestionType = function (event) {
|
|
773
|
+
event.stopPropagation();
|
|
774
|
+
this.adorner.questionTypeSelectorModel.action();
|
|
775
|
+
};
|
|
776
|
+
PageDesignerComponent.prototype.ngOnDestroy = function () {
|
|
777
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
778
|
+
this.adorner.dispose();
|
|
779
|
+
};
|
|
780
|
+
return PageDesignerComponent;
|
|
781
|
+
}(CreatorModelComponent));
|
|
782
|
+
PageDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
783
|
+
PageDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PageDesignerComponent, selector: "svc-page", inputs: { model: "model", survey: "survey", creator: "creator", isGhost: "isGhost" }, usesInheritance: true, ngImport: i0__namespace, template: "<div *ngIf=\"model && adorner && (isGhost === undefined || isGhost === adorner.isGhost)\" class=\"svc-page__content\" [class]=\"adorner.css\" [key2click]\n (click)=\"adorner.select(adorner, $event)\" (mouseover)=\"adorner.hover($event, $event.currentTarget)\"\n (mouseleave)=\"adorner.hover($event, $event.target)\" [id]=\"adorner.page.id\" data-bind=\"clickBubble: false\">\n <div class=\"svc-page__content-actions\">\n <sv-action-bar [model]=\"adorner.actionContainer\"></sv-action-bar>\n </div>\n <page [model]=\"model\" [survey]=\"survey\"></page>\n <div *ngIf=\"adorner.showAddQuestionButton\" class=\"svc-page__add-new-question svc-btn\" [key2click]\n (click)=\"addNewQuestion($event)\" (mouseover)=\"adorner.hoverStopper($event, $event.currentTarget)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [key2click] (click)=\"selectQuestionType($event)\"\n [attr.title]=\"adorner.questionTypeSelectorModel.title\" [attr.aria-label]=\"adorner.questionTypeSelectorModel.title\"\n class=\"svc-page__question-type-selector\">\n <svg class=\"svc-page__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n</div>", components: [{ type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }, { type: i1__namespace.PageComponent, selector: "page, sv-ng-page", inputs: ["model", "survey"] }, { type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
784
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageDesignerComponent, decorators: [{
|
|
785
|
+
type: i0.Component,
|
|
786
|
+
args: [{
|
|
787
|
+
selector: "svc-page",
|
|
788
|
+
templateUrl: "./page.component.html",
|
|
789
|
+
styles: []
|
|
790
|
+
}]
|
|
791
|
+
}], propDecorators: { model: [{
|
|
792
|
+
type: i0.Input
|
|
793
|
+
}], survey: [{
|
|
794
|
+
type: i0.Input
|
|
795
|
+
}], creator: [{
|
|
796
|
+
type: i0.Input
|
|
797
|
+
}], isGhost: [{
|
|
798
|
+
type: i0.Input
|
|
799
|
+
}] } });
|
|
800
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-page", PageDesignerComponent);
|
|
801
|
+
|
|
802
|
+
var DesignerPagesComponent = /** @class */ (function (_super) {
|
|
803
|
+
__extends(DesignerPagesComponent, _super);
|
|
804
|
+
function DesignerPagesComponent() {
|
|
805
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
806
|
+
}
|
|
807
|
+
DesignerPagesComponent.prototype.getModel = function () {
|
|
808
|
+
return this.model.pagesController;
|
|
809
|
+
};
|
|
810
|
+
Object.defineProperty(DesignerPagesComponent.prototype, "creator", {
|
|
811
|
+
get: function () {
|
|
812
|
+
return this.model.creator;
|
|
813
|
+
},
|
|
814
|
+
enumerable: false,
|
|
815
|
+
configurable: true
|
|
816
|
+
});
|
|
817
|
+
Object.defineProperty(DesignerPagesComponent.prototype, "survey", {
|
|
818
|
+
get: function () {
|
|
819
|
+
return this.creator.survey;
|
|
820
|
+
},
|
|
821
|
+
enumerable: false,
|
|
822
|
+
configurable: true
|
|
823
|
+
});
|
|
824
|
+
return DesignerPagesComponent;
|
|
825
|
+
}(i1.BaseAngular));
|
|
826
|
+
DesignerPagesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerPagesComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
827
|
+
DesignerPagesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerPagesComponent, selector: "svc-designer-pages", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <svc-page class=\"svc-page\" [attr.data-sv-drop-target-survey-element]=\"'newGhostPage'\" [attr.data-sv-drop-target-page]=\"model.pagesController.page2Display.name\" [model]=\"model.pagesController.page2Display\" [survey]=\"survey\" [creator]=\"creator\"></svc-page>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: PageDesignerComponent, selector: "svc-page", inputs: ["model", "survey", "creator", "isGhost"] }] });
|
|
828
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerPagesComponent, decorators: [{
|
|
829
|
+
type: i0.Component,
|
|
830
|
+
args: [{
|
|
831
|
+
selector: "svc-designer-pages",
|
|
832
|
+
templateUrl: "./designer-pages.component.html",
|
|
833
|
+
styles: [":host { display: none; }"]
|
|
834
|
+
}]
|
|
835
|
+
}], propDecorators: { model: [{
|
|
836
|
+
type: i0.Input
|
|
837
|
+
}] } });
|
|
838
|
+
|
|
839
|
+
var PageNavigatorItemComponent = /** @class */ (function (_super) {
|
|
840
|
+
__extends(PageNavigatorItemComponent, _super);
|
|
841
|
+
function PageNavigatorItemComponent() {
|
|
842
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
843
|
+
}
|
|
844
|
+
PageNavigatorItemComponent.prototype.getModel = function () {
|
|
845
|
+
return this.model;
|
|
846
|
+
};
|
|
847
|
+
Object.defineProperty(PageNavigatorItemComponent.prototype, "anyModel", {
|
|
848
|
+
get: function () {
|
|
849
|
+
return this.model;
|
|
850
|
+
},
|
|
851
|
+
enumerable: false,
|
|
852
|
+
configurable: true
|
|
853
|
+
});
|
|
854
|
+
PageNavigatorItemComponent.prototype.click = function (event) {
|
|
855
|
+
event.stopPropagation();
|
|
856
|
+
this.getModel().action();
|
|
857
|
+
};
|
|
858
|
+
return PageNavigatorItemComponent;
|
|
859
|
+
}(i1.BaseAngular));
|
|
860
|
+
PageNavigatorItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageNavigatorItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
861
|
+
PageNavigatorItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PageNavigatorItemComponent, selector: "svc-page-navigator-item", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-page-navigator-item\">\n <div class=\"svc-page-navigator-item-content\" (click)=\"click($event)\" [key2click]\n [class.svc-page-navigator-item--selected]=\"model.active\"\n [class.svc-page-navigator-item--disabled]=\"anyModel.disabled\">\n <div class=\"svc-page-navigator-item__dot\" [attr.title]=\"model.title\"></div>\n\n <div class=\"svc-page-navigator-item__banner svc-item__banner\">\n <span class=\"svc-text svc-text--small svc-text--bold\">{{model.title}}</span>\n <span class=\"svc-page-navigator-item__dot\"></span>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
862
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageNavigatorItemComponent, decorators: [{
|
|
863
|
+
type: i0.Component,
|
|
864
|
+
args: [{
|
|
865
|
+
selector: "svc-page-navigator-item",
|
|
866
|
+
templateUrl: "./page-navigator-item.component.html",
|
|
867
|
+
styles: [":host { display: none; }"]
|
|
868
|
+
}]
|
|
869
|
+
}], propDecorators: { model: [{
|
|
870
|
+
type: i0.Input
|
|
871
|
+
}] } });
|
|
872
|
+
|
|
873
|
+
var PageNavigatorComponent = /** @class */ (function (_super) {
|
|
874
|
+
__extends(PageNavigatorComponent, _super);
|
|
875
|
+
function PageNavigatorComponent() {
|
|
876
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
877
|
+
}
|
|
878
|
+
PageNavigatorComponent.prototype.createModel = function () {
|
|
879
|
+
this.model = new surveyCreatorCore.PageNavigatorViewModel(this.pagesController, this.pageEditMode);
|
|
880
|
+
};
|
|
881
|
+
PageNavigatorComponent.prototype.getModel = function () {
|
|
882
|
+
return this.model;
|
|
883
|
+
};
|
|
884
|
+
PageNavigatorComponent.prototype.getPropertiesToTrack = function () {
|
|
885
|
+
return ["pagesController", "pageEditMode"];
|
|
886
|
+
};
|
|
887
|
+
PageNavigatorComponent.prototype.ngAfterViewInit = function () {
|
|
888
|
+
var _a, _b;
|
|
889
|
+
if (this.pageEditMode !== "bypage") {
|
|
890
|
+
var el = this.container.nativeElement;
|
|
891
|
+
if (!!el && !!((_b = (_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement)) {
|
|
892
|
+
var self_1 = this;
|
|
893
|
+
el.parentElement.parentElement.parentElement.onscroll = function (ev) {
|
|
894
|
+
return self_1.model.onContainerScroll(ev.currentTarget);
|
|
895
|
+
};
|
|
896
|
+
self_1.model.setItemsContainer(el.parentElement);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
};
|
|
900
|
+
PageNavigatorComponent.prototype.ngOnDestroy = function () {
|
|
901
|
+
var _a, _b;
|
|
902
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
903
|
+
var el = this.container.nativeElement;
|
|
904
|
+
if (!!el && !!((_b = (_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement)) {
|
|
905
|
+
el.parentElement.parentElement.parentElement.onscroll = undefined;
|
|
906
|
+
}
|
|
907
|
+
this.model.stopItemsContainerHeightObserver();
|
|
908
|
+
this.model.dispose();
|
|
909
|
+
};
|
|
910
|
+
return PageNavigatorComponent;
|
|
911
|
+
}(CreatorModelComponent));
|
|
912
|
+
PageNavigatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageNavigatorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
913
|
+
PageNavigatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PageNavigatorComponent, selector: "svc-page-navigator", inputs: { pagesController: "pagesController", pageEditMode: "pageEditMode" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-page-navigator\" #container>\n <ng-container *ngIf=\"model.visible\">\n <div class=\"svc-page-navigator__selector\"\n (click)=\"model.togglePageSelector($event)\" [key2click] [attr.title]=\"model.pageSelectorCaption\" [class.svc-page-navigator__selector--opened]=\"model.isPopupOpened\">\n <svg class=\"svc-page-navigator__navigator-icon\" [iconName]=\"model.icon\" [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"model.popupModel\"></sv-ng-popup>\n </div>\n <div>\n <svc-page-navigator-item *ngFor=\"let item of model.visibleItems\" [model]=\"item\"></svc-page-navigator-item>\n </div>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }, { type: PageNavigatorItemComponent, selector: "svc-page-navigator-item", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
914
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageNavigatorComponent, decorators: [{
|
|
915
|
+
type: i0.Component,
|
|
916
|
+
args: [{
|
|
917
|
+
selector: "svc-page-navigator",
|
|
918
|
+
templateUrl: "./page-navigator.component.html",
|
|
919
|
+
styles: [":host { display: none; }"]
|
|
920
|
+
}]
|
|
921
|
+
}], propDecorators: { pagesController: [{
|
|
922
|
+
type: i0.Input
|
|
923
|
+
}], pageEditMode: [{
|
|
924
|
+
type: i0.Input
|
|
925
|
+
}], container: [{
|
|
926
|
+
type: i0.ViewChild,
|
|
927
|
+
args: ["container"]
|
|
928
|
+
}] } });
|
|
929
|
+
|
|
930
|
+
var DesignerSurveyComponent = /** @class */ (function (_super) {
|
|
931
|
+
__extends(DesignerSurveyComponent, _super);
|
|
932
|
+
function DesignerSurveyComponent() {
|
|
933
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
934
|
+
}
|
|
935
|
+
DesignerSurveyComponent.prototype.getModel = function () {
|
|
936
|
+
return this.model.survey;
|
|
937
|
+
};
|
|
938
|
+
Object.defineProperty(DesignerSurveyComponent.prototype, "creator", {
|
|
939
|
+
get: function () {
|
|
940
|
+
return this.model.creator;
|
|
941
|
+
},
|
|
942
|
+
enumerable: false,
|
|
943
|
+
configurable: true
|
|
944
|
+
});
|
|
945
|
+
Object.defineProperty(DesignerSurveyComponent.prototype, "survey", {
|
|
946
|
+
get: function () {
|
|
947
|
+
return this.creator.survey;
|
|
948
|
+
},
|
|
949
|
+
enumerable: false,
|
|
950
|
+
configurable: true
|
|
951
|
+
});
|
|
952
|
+
return DesignerSurveyComponent;
|
|
953
|
+
}(i1.BaseAngular));
|
|
954
|
+
DesignerSurveyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerSurveyComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
955
|
+
DesignerSurveyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerSurveyComponent, selector: "svc-designer-survey", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.designerCss\" [style.maxWidth]=\"survey.renderedWidth\">\n <div *ngIf=\"creator.allowEditSurveyTitle\" class=\"svc-designer-header\">\n <div *ngIf=\"survey.renderedHasHeader\" [class]=\"survey.css.header\" [survey]=\"survey\" sv-ng-survey-header></div>\n </div>\n\n <!-- ko if: survey.isShowProgressBarOnTop -->\n <!-- ko component: { name: 'sv-progress-' + survey.progressBarType, params: { model: survey } } -->\n <!-- /ko -->\n <!-- /ko -->\n <ng-container *ngIf=\"creator.pageEditMode !== 'bypage'\">\n <ng-container *ngFor=\"let page of survey.pages\">\n <svc-page class=\"svc-page\" *ngIf=\"!model.showNewPage || page !== model.newPage\"\n [attr.data-sv-drop-target-survey-element]=\"page.name\" [attr.data-sv-drop-target-page]=\"page.name\"\n [model]=\"page\" [survey]=\"survey\" [creator]=\"creator\"></svc-page>\n </ng-container>\n <svc-page *ngIf=\"model.showNewPage && model.newPage\" class=\"svc-page\"\n [attr.data-sv-drop-target-survey-element]=\"'newGhostPage'\" [model]=\"model.newPage\" [survey]=\"survey\"\n [creator]=\"creator\" [isGhost]=\"true\"></svc-page>\n </ng-container>\n <ng-container *ngIf=\"model.pagesController.page2Display && creator.pageEditMode === 'bypage'\">\n <svc-designer-pages [model]=\"model\"></svc-designer-pages>\n </ng-container>\n\n <!-- ko if: survey.isShowProgressBarOnBottom -->\n <!-- ko component: { name: 'sv-progress-' + survey.progressBarType, params: { model: survey } } -->\n <!-- /ko -->\n <!-- /ko -->\n </div>\n\n <div *ngIf=\"creator.showPageNavigator\" class=\"svc-tab-designer__page-navigator\">\n <svc-page-navigator [pagesController]=\"model.pagesController\" [pageEditMode]=\"creator.pageEditMode\">\n </svc-page-navigator>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: PageDesignerComponent, selector: "svc-page", inputs: ["model", "survey", "creator", "isGhost"] }, { type: DesignerPagesComponent, selector: "svc-designer-pages", inputs: ["model"] }, { type: PageNavigatorComponent, selector: "svc-page-navigator", inputs: ["pagesController", "pageEditMode"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
956
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerSurveyComponent, decorators: [{
|
|
957
|
+
type: i0.Component,
|
|
958
|
+
args: [{
|
|
959
|
+
selector: "svc-designer-survey",
|
|
960
|
+
templateUrl: "./designer-survey.component.html",
|
|
961
|
+
styles: [":host { display: none; }"]
|
|
962
|
+
}]
|
|
963
|
+
}], propDecorators: { model: [{
|
|
964
|
+
type: i0.Input
|
|
965
|
+
}] } });
|
|
966
|
+
|
|
967
|
+
var DesignerTabComponent = /** @class */ (function (_super) {
|
|
968
|
+
__extends(DesignerTabComponent, _super);
|
|
969
|
+
function DesignerTabComponent() {
|
|
970
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
971
|
+
}
|
|
972
|
+
Object.defineProperty(DesignerTabComponent.prototype, "survey", {
|
|
973
|
+
get: function () {
|
|
974
|
+
return this.creator.survey;
|
|
975
|
+
},
|
|
976
|
+
enumerable: false,
|
|
977
|
+
configurable: true
|
|
978
|
+
});
|
|
979
|
+
Object.defineProperty(DesignerTabComponent.prototype, "creator", {
|
|
980
|
+
get: function () {
|
|
981
|
+
return this.model.creator;
|
|
982
|
+
},
|
|
983
|
+
enumerable: false,
|
|
984
|
+
configurable: true
|
|
985
|
+
});
|
|
986
|
+
DesignerTabComponent.prototype.getModel = function () {
|
|
987
|
+
return this.model;
|
|
988
|
+
};
|
|
989
|
+
return DesignerTabComponent;
|
|
990
|
+
}(i1.BaseAngular));
|
|
991
|
+
DesignerTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerTabComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
992
|
+
DesignerTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerTabComponent, selector: "svc-tab-designer", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-flex-column\">\n <svc-adaptive-toolbox *ngIf=\"model.isToolboxVisible\" [creator]=\"creator\"></svc-adaptive-toolbox>\n </div>\n <div class=\"svc-tab-designer\" [class]=\"model.getRootCss()\" (click)=\"model.clickDesigner()\">\n <div class=\"svc-tab-designer_content\">\n <ng-container *ngIf=\"model.showPlaceholder\">\n <div *ngIf=\"creator.showHeaderInEmptySurvey && creator.allowEditSurveyTitle\" class=\"svc-designer-header\">\n <div *ngIf=\"survey.renderedHasHeader\" [class]=\"survey.css.header\" [survey]=\"survey\" sv-ng-survey-header></div>\n </div>\n <div class=\"svc-designer__placeholder-container\" [attr.data-sv-drop-target-survey-element]=\"'newGhostPage'\">\n <span class=\"svc-designer-placeholder-text svc-text svc-text--normal\">\n {{ model.placeholderText }}\n </span>\n <svc-page class=\"svc-designer-placeholder-page\" [model]=\"model.newPage\" [survey]=\"survey\" [creator]=\"creator\"></svc-page>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!model.showPlaceholder\">\n <svc-designer-survey [model]=\"model\"></svc-designer-survey>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: AdaptiveToolboxComponent, selector: "svc-adaptive-toolbox", inputs: ["creator"] }, { type: i1__namespace.SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: PageDesignerComponent, selector: "svc-page", inputs: ["model", "survey", "creator", "isGhost"] }, { type: DesignerSurveyComponent, selector: "svc-designer-survey", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
993
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerTabComponent, decorators: [{
|
|
994
|
+
type: i0.Component,
|
|
995
|
+
args: [{
|
|
996
|
+
selector: "svc-tab-designer",
|
|
997
|
+
templateUrl: "./designer.component.html",
|
|
998
|
+
styles: [":host { display: none; }"]
|
|
999
|
+
}]
|
|
1000
|
+
}], propDecorators: { model: [{
|
|
1001
|
+
type: i0.Input
|
|
1002
|
+
}] } });
|
|
1003
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-tab-designer", DesignerTabComponent);
|
|
1004
|
+
|
|
1005
|
+
var TabbedMenuItemComponent = /** @class */ (function (_super) {
|
|
1006
|
+
__extends(TabbedMenuItemComponent, _super);
|
|
1007
|
+
function TabbedMenuItemComponent() {
|
|
1008
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1009
|
+
}
|
|
1010
|
+
TabbedMenuItemComponent.prototype.getModel = function () {
|
|
1011
|
+
return this.model;
|
|
1012
|
+
};
|
|
1013
|
+
return TabbedMenuItemComponent;
|
|
1014
|
+
}(i1.BaseAngular));
|
|
1015
|
+
TabbedMenuItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TabbedMenuItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1016
|
+
TabbedMenuItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TabbedMenuItemComponent, selector: "svc-tabbed-menu-item", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div\n class=\"svc-tabbed-menu-item\"\n [class.svc-tabbed-menu-item--selected]=\"model.active\"\n [class.svc-tabbed-menu-item--disabled]=\"model.disabled\"\n (click)=\"model.action()\" [key2click]\n >\n <span\n class=\"svc-text svc-text--normal svc-tabbed-menu-item__text\"\n [class.svc-text--bold]=\"model.active\"\n >\n {{model.title}}\n </span>\n </div>\n</ng-template>\n", styles: [":host { display: none; }"], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
1017
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TabbedMenuItemComponent, decorators: [{
|
|
1018
|
+
type: i0.Component,
|
|
1019
|
+
args: [{
|
|
1020
|
+
selector: "svc-tabbed-menu-item",
|
|
1021
|
+
templateUrl: "./tabbed-menu-item.component.html",
|
|
1022
|
+
styles: [":host { display: none; }"]
|
|
1023
|
+
}]
|
|
1024
|
+
}], propDecorators: { model: [{
|
|
1025
|
+
type: i0.Input
|
|
1026
|
+
}] } });
|
|
1027
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-tabbed-menu-item", TabbedMenuItemComponent);
|
|
1028
|
+
|
|
1029
|
+
var ObjectSelectorComponent = /** @class */ (function (_super) {
|
|
1030
|
+
__extends(ObjectSelectorComponent, _super);
|
|
1031
|
+
function ObjectSelectorComponent() {
|
|
1032
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1033
|
+
}
|
|
1034
|
+
ObjectSelectorComponent.prototype.getModel = function () {
|
|
1035
|
+
return this.model;
|
|
1036
|
+
};
|
|
1037
|
+
return ObjectSelectorComponent;
|
|
1038
|
+
}(i1.BaseAngular));
|
|
1039
|
+
ObjectSelectorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ObjectSelectorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1040
|
+
ObjectSelectorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ObjectSelectorComponent, selector: "svc-object-selector", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-object-selector\" *ngIf=\"model.isVisible\">\n <sv-ng-list [model]=\"model.list\"></sv-ng-list>\n </div>\n</ng-template>\n", styles: [":host { display: none; }"], components: [{ type: i1__namespace.ListComponent, selector: "sv-ng-list, '[sv-ng-list]'", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1041
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ObjectSelectorComponent, decorators: [{
|
|
1042
|
+
type: i0.Component,
|
|
1043
|
+
args: [{
|
|
1044
|
+
selector: "svc-object-selector",
|
|
1045
|
+
templateUrl: "./object-selector.component.html",
|
|
1046
|
+
styles: [":host { display: none; }"]
|
|
1047
|
+
}]
|
|
1048
|
+
}], propDecorators: { model: [{
|
|
1049
|
+
type: i0.Input
|
|
1050
|
+
}] } });
|
|
1051
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-object-selector", ObjectSelectorComponent);
|
|
1052
|
+
|
|
1053
|
+
var PropertyGridComponent = /** @class */ (function (_super) {
|
|
1054
|
+
__extends(PropertyGridComponent, _super);
|
|
1055
|
+
function PropertyGridComponent() {
|
|
1056
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1057
|
+
}
|
|
1058
|
+
PropertyGridComponent.prototype.getModel = function () {
|
|
1059
|
+
return this.model;
|
|
1060
|
+
};
|
|
1061
|
+
PropertyGridComponent.prototype.getPropertiesToUpdateSync = function () {
|
|
1062
|
+
return ["survey"];
|
|
1063
|
+
};
|
|
1064
|
+
return PropertyGridComponent;
|
|
1065
|
+
}(i1.BaseAngular));
|
|
1066
|
+
PropertyGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PropertyGridComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1067
|
+
PropertyGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PropertyGridComponent, selector: "svc-property-grid", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <survey-content *ngIf=\"!!model.survey\" [model]=\"model.survey\"></survey-content>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SurveyContentComponent, selector: "survey-content", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1068
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PropertyGridComponent, decorators: [{
|
|
1069
|
+
type: i0.Component,
|
|
1070
|
+
args: [{
|
|
1071
|
+
selector: "svc-property-grid",
|
|
1072
|
+
templateUrl: "./property-grid.component.html",
|
|
1073
|
+
styles: [":host { display: none; }"]
|
|
1074
|
+
}]
|
|
1075
|
+
}], propDecorators: { model: [{
|
|
1076
|
+
type: i0.Input
|
|
1077
|
+
}] } });
|
|
1078
|
+
i1.AngularComponentFactory.Instance.registerComponent("buttongroup-question", i1.ButtonGroupQuestionComponent);
|
|
1079
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-property-grid", PropertyGridComponent);
|
|
1080
|
+
|
|
1081
|
+
var TextareaJsonEditorComponent = /** @class */ (function (_super) {
|
|
1082
|
+
__extends(TextareaJsonEditorComponent, _super);
|
|
1083
|
+
function TextareaJsonEditorComponent() {
|
|
1084
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1085
|
+
}
|
|
1086
|
+
TextareaJsonEditorComponent.prototype.getModel = function () {
|
|
1087
|
+
return this.model;
|
|
1088
|
+
};
|
|
1089
|
+
TextareaJsonEditorComponent.prototype.ngOnInit = function () {
|
|
1090
|
+
this.model.canShowErrors = false;
|
|
1091
|
+
_super.prototype.ngOnInit.call(this);
|
|
1092
|
+
};
|
|
1093
|
+
return TextareaJsonEditorComponent;
|
|
1094
|
+
}(i1.BaseAngular));
|
|
1095
|
+
TextareaJsonEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextareaJsonEditorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1096
|
+
TextareaJsonEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TextareaJsonEditorComponent, selector: "svc-tab-json-editor-textarea", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-creator-tab__content\">\n <div class=\"svc-json-editor-tab__content\">\n <textarea class=\"svc-json-editor-tab__content-area\"\n [attr.aria-label]=\"model.ariaLabel\"\n [disabled]=\"model.readOnly\"\n [(ngModel)]=\"model.text\"\n (keydown)=\"model.checkKey(model, $event)\">\n </textarea>\n <button type=\"button\" *ngIf=\"model.userFriendlyErrors.length !== 0\" class=\"svc-json-editor-tab__errros_button\"\n (click)=\"model.toggleErrors()\">{{model.errorButtonText}}</button>\n <ng-container *ngIf=\"model.canShowErrors\">\n <div class=\"svc-json-editor-tab__content-errors\" *ngFor=\"let error of model.userFriendlyErrors\">\n <span><b>Error:</b></span>\n <span>{{error}}</span>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i1__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1097
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextareaJsonEditorComponent, decorators: [{
|
|
1098
|
+
type: i0.Component,
|
|
1099
|
+
args: [{
|
|
1100
|
+
selector: "svc-tab-json-editor-textarea",
|
|
1101
|
+
templateUrl: "./json-editor-textarea.component.html",
|
|
1102
|
+
styles: [":host { display: none; }"]
|
|
1103
|
+
}]
|
|
1104
|
+
}], propDecorators: { model: [{
|
|
1105
|
+
type: i0.Input
|
|
1106
|
+
}] } });
|
|
1107
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-tab-json-editor-textarea", TextareaJsonEditorComponent);
|
|
1108
|
+
|
|
1109
|
+
var AceJsonEditorComponent = /** @class */ (function (_super) {
|
|
1110
|
+
__extends(AceJsonEditorComponent, _super);
|
|
1111
|
+
function AceJsonEditorComponent() {
|
|
1112
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1113
|
+
}
|
|
1114
|
+
AceJsonEditorComponent.prototype.getModel = function () {
|
|
1115
|
+
return this.model;
|
|
1116
|
+
};
|
|
1117
|
+
AceJsonEditorComponent.prototype.ngAfterViewInit = function () {
|
|
1118
|
+
//todo fix ts
|
|
1119
|
+
this.model.init(window.ace.edit(this.inputEl.nativeElement));
|
|
1120
|
+
};
|
|
1121
|
+
return AceJsonEditorComponent;
|
|
1122
|
+
}(i1.BaseAngular));
|
|
1123
|
+
AceJsonEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AceJsonEditorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1124
|
+
AceJsonEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AceJsonEditorComponent, selector: "svc-tab-json-editor-ace", inputs: { model: "model" }, viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-creator-tab__content\">\n <div class=\"svc-json-editor-tab__content\">\n <div class=\"svc-json-editor-tab__ace-editor\" #inputEl></div>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"] });
|
|
1125
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AceJsonEditorComponent, decorators: [{
|
|
1126
|
+
type: i0.Component,
|
|
1127
|
+
args: [{
|
|
1128
|
+
selector: "svc-tab-json-editor-ace",
|
|
1129
|
+
templateUrl: "./json-editor-ace.component.html",
|
|
1130
|
+
styles: [":host { display: none; }"]
|
|
1131
|
+
}]
|
|
1132
|
+
}], propDecorators: { model: [{
|
|
1133
|
+
type: i0.Input
|
|
1134
|
+
}], inputEl: [{
|
|
1135
|
+
type: i0.ViewChild,
|
|
1136
|
+
args: ["inputEl"]
|
|
1137
|
+
}] } });
|
|
1138
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-tab-json-editor-ace", AceJsonEditorComponent);
|
|
1139
|
+
|
|
1140
|
+
var LogicAddButtonComponent = /** @class */ (function (_super) {
|
|
1141
|
+
__extends(LogicAddButtonComponent, _super);
|
|
1142
|
+
function LogicAddButtonComponent() {
|
|
1143
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1144
|
+
}
|
|
1145
|
+
LogicAddButtonComponent.prototype.getModel = function () {
|
|
1146
|
+
return this.model;
|
|
1147
|
+
};
|
|
1148
|
+
LogicAddButtonComponent.prototype.onClick = function (event) {
|
|
1149
|
+
event.stopPropagation();
|
|
1150
|
+
this.model.action();
|
|
1151
|
+
};
|
|
1152
|
+
return LogicAddButtonComponent;
|
|
1153
|
+
}(i1.BaseAngular));
|
|
1154
|
+
LogicAddButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogicAddButtonComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1155
|
+
LogicAddButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LogicAddButtonComponent, selector: "svc-tab-logic-add-btn", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div role=\"button\" class=\"svc-logic-tab__content-action svc-btn\"\n (click)=\"onClick($event)\" [key2click] [class.svc-logic-tab__content-action--disabled]=\"model.enabled !== undefined && !model.enabled\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{model.title}}\n </span>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
1156
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogicAddButtonComponent, decorators: [{
|
|
1157
|
+
type: i0.Component,
|
|
1158
|
+
args: [{
|
|
1159
|
+
selector: "svc-tab-logic-add-btn",
|
|
1160
|
+
templateUrl: "./logic-add-btn.component.html",
|
|
1161
|
+
styles: [":host { display: none; }"]
|
|
1162
|
+
}]
|
|
1163
|
+
}], propDecorators: { model: [{
|
|
1164
|
+
type: i0.Input
|
|
1165
|
+
}] } });
|
|
1166
|
+
|
|
1167
|
+
var LogicTabComponent = /** @class */ (function (_super) {
|
|
1168
|
+
__extends(LogicTabComponent, _super);
|
|
1169
|
+
function LogicTabComponent() {
|
|
1170
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1171
|
+
}
|
|
1172
|
+
LogicTabComponent.prototype.getModel = function () {
|
|
1173
|
+
return this.model;
|
|
1174
|
+
};
|
|
1175
|
+
return LogicTabComponent;
|
|
1176
|
+
}(i1.BaseAngular));
|
|
1177
|
+
LogicTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogicTabComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1178
|
+
LogicTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LogicTabComponent, selector: "svc-tab-logic", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-creator-tab__content\">\n <div class=\"svc-plugin-tab__content svc-logic-tab__content\" [class.svc-logic-tab__empty]=\"!model.hasItems\">\n <survey-content [model]=\"model.itemsSurvey\"></survey-content>\n <div *ngIf=\"!model.hasItems\" class=\"svc-logic-tab__content-empty\">\n <span class=\"svc-text\">{{model.emptyTabPlaceholder}}</span>\n </div>\n <ng-container *ngIf=\"!model.readOnly\">\n <svc-tab-logic-add-btn [model]=\"model.addNewButton\"></svc-tab-logic-add-btn>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SurveyContentComponent, selector: "survey-content", inputs: ["model"] }, { type: LogicAddButtonComponent, selector: "svc-tab-logic-add-btn", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1179
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogicTabComponent, decorators: [{
|
|
1180
|
+
type: i0.Component,
|
|
1181
|
+
args: [{
|
|
1182
|
+
selector: "svc-tab-logic",
|
|
1183
|
+
templateUrl: "./logic.component.html",
|
|
1184
|
+
styles: [":host { display: none; }"]
|
|
1185
|
+
}]
|
|
1186
|
+
}], propDecorators: { model: [{
|
|
1187
|
+
type: i0.Input
|
|
1188
|
+
}] } });
|
|
1189
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-tab-logic", LogicTabComponent);
|
|
1190
|
+
|
|
1191
|
+
var ActionButtonComponent = /** @class */ (function (_super) {
|
|
1192
|
+
__extends(ActionButtonComponent, _super);
|
|
1193
|
+
function ActionButtonComponent() {
|
|
1194
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1195
|
+
_this.classes = "";
|
|
1196
|
+
_this.selected = false;
|
|
1197
|
+
_this.disabled = false;
|
|
1198
|
+
_this.text = "";
|
|
1199
|
+
_this.title = "";
|
|
1200
|
+
_this.allowBubble = false;
|
|
1201
|
+
return _this;
|
|
1202
|
+
}
|
|
1203
|
+
ActionButtonComponent.prototype.onClick = function (event) {
|
|
1204
|
+
this.click();
|
|
1205
|
+
if (!this.allowBubble) {
|
|
1206
|
+
event.stopPropagation();
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
return ActionButtonComponent;
|
|
1210
|
+
}(i1.EmbeddedViewContentComponent));
|
|
1211
|
+
ActionButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionButtonComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1212
|
+
ActionButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ActionButtonComponent, selector: "svc-action-button", inputs: { classes: "classes", click: "click", selected: "selected", disabled: "disabled", text: "text", title: "title", allowBubble: "allowBubble" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <span *ngIf=\"disabled\" class=\"svc-action-button svc-action-button--disabled\"\n [class]=\"classes\" [attr.title]=\"title\">{{text}}</span>\n <span *ngIf=\"!disabled\" role=\"button\" class=\"svc-action-button\"\n (click)=\"onClick($event)\" [key2click] [attr.title]=\"title\" [class.svc-action-button--selected]=\"selected\" [class]=\"classes\">{{text}}</span>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
1213
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionButtonComponent, decorators: [{
|
|
1214
|
+
type: i0.Component,
|
|
1215
|
+
args: [{
|
|
1216
|
+
selector: "svc-action-button",
|
|
1217
|
+
templateUrl: "./action-button.component.html",
|
|
1218
|
+
styles: [":host { display: none; }"]
|
|
1219
|
+
}]
|
|
1220
|
+
}], propDecorators: { classes: [{
|
|
1221
|
+
type: i0.Input
|
|
1222
|
+
}], click: [{
|
|
1223
|
+
type: i0.Input
|
|
1224
|
+
}], selected: [{
|
|
1225
|
+
type: i0.Input
|
|
1226
|
+
}], disabled: [{
|
|
1227
|
+
type: i0.Input
|
|
1228
|
+
}], text: [{
|
|
1229
|
+
type: i0.Input
|
|
1230
|
+
}], title: [{
|
|
1231
|
+
type: i0.Input
|
|
1232
|
+
}], allowBubble: [{
|
|
1233
|
+
type: i0.Input
|
|
1234
|
+
}] } });
|
|
1235
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-action-button", ActionButtonComponent);
|
|
1236
|
+
|
|
1237
|
+
var LinkValueQuestionComponent = /** @class */ (function (_super) {
|
|
1238
|
+
__extends(LinkValueQuestionComponent, _super);
|
|
1239
|
+
function LinkValueQuestionComponent() {
|
|
1240
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1241
|
+
}
|
|
1242
|
+
Object.defineProperty(LinkValueQuestionComponent.prototype, "clearCaption", {
|
|
1243
|
+
get: function () {
|
|
1244
|
+
return surveyCreatorCore.editorLocalization.getString("pe.clear");
|
|
1245
|
+
},
|
|
1246
|
+
enumerable: false,
|
|
1247
|
+
configurable: true
|
|
1248
|
+
});
|
|
1249
|
+
return LinkValueQuestionComponent;
|
|
1250
|
+
}(i1.QuestionAngular));
|
|
1251
|
+
LinkValueQuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LinkValueQuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1252
|
+
LinkValueQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LinkValueQuestionComponent, selector: "svc-link-value", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <svc-action-button [text]=\"model.linkValueText\" [click]=\"model.doLinkClick.bind(model)\" [selected]=\"model.isSelected\" [disabled]=\"model.isReadOnly\" [classes]=\"model.linkSetButtonCssClasses\" [title]=\"model.tooltip\">\n </svc-action-button>\n <ng-container *ngIf=\"!model.isReadOnly && model.showClear\">\n <svc-action-button\n [text]=\"clearCaption\" [click]=\"model.doClearClick.bind(model)\" [selected]=\"model.isSelected\" [disabled]=\"false\" [classes]=\"model.linkClearButtonCssClasses\">\n </svc-action-button>\n </ng-container>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: ActionButtonComponent, selector: "svc-action-button", inputs: ["classes", "click", "selected", "disabled", "text", "title", "allowBubble"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1253
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LinkValueQuestionComponent, decorators: [{
|
|
1254
|
+
type: i0.Component,
|
|
1255
|
+
args: [{
|
|
1256
|
+
selector: "svc-link-value",
|
|
1257
|
+
templateUrl: "./question-link-value.component.html",
|
|
1258
|
+
styles: [":host { display: none; }"]
|
|
1259
|
+
}]
|
|
1260
|
+
}] });
|
|
1261
|
+
i1.AngularComponentFactory.Instance.registerComponent("linkvalue-question", LinkValueQuestionComponent);
|
|
1262
|
+
|
|
1263
|
+
var EmbeddedSurveyQuestionComponent = /** @class */ (function (_super) {
|
|
1264
|
+
__extends(EmbeddedSurveyQuestionComponent, _super);
|
|
1265
|
+
function EmbeddedSurveyQuestionComponent() {
|
|
1266
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1267
|
+
}
|
|
1268
|
+
Object.defineProperty(EmbeddedSurveyQuestionComponent.prototype, "survey", {
|
|
1269
|
+
get: function () {
|
|
1270
|
+
return this.model.embeddedSurvey;
|
|
1271
|
+
},
|
|
1272
|
+
enumerable: false,
|
|
1273
|
+
configurable: true
|
|
1274
|
+
});
|
|
1275
|
+
EmbeddedSurveyQuestionComponent.prototype.onModelChanged = function () {
|
|
1276
|
+
var _this = this;
|
|
1277
|
+
_super.prototype.onModelChanged.call(this);
|
|
1278
|
+
if (!!this.model) {
|
|
1279
|
+
this.model.onEmbeddedSurveyValueChanged = function () {
|
|
1280
|
+
_this.detectChanges();
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
return EmbeddedSurveyQuestionComponent;
|
|
1285
|
+
}(i1.QuestionAngular));
|
|
1286
|
+
EmbeddedSurveyQuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EmbeddedSurveyQuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1287
|
+
EmbeddedSurveyQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: EmbeddedSurveyQuestionComponent, selector: "svc-embeddedsurvey-question", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-container *ngIf=\"!!model && !!survey && survey.currentPage\">\n <page [model]=\"survey.currentPage\" [survey]=\"survey\"></page>\n </ng-container>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.PageComponent, selector: "page, sv-ng-page", inputs: ["model", "survey"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1288
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EmbeddedSurveyQuestionComponent, decorators: [{
|
|
1289
|
+
type: i0.Component,
|
|
1290
|
+
args: [{
|
|
1291
|
+
selector: "svc-embeddedsurvey-question",
|
|
1292
|
+
templateUrl: "./question-embedded-survey.component.html",
|
|
1293
|
+
styles: [":host { display: none; }"]
|
|
1294
|
+
}]
|
|
1295
|
+
}] });
|
|
1296
|
+
i1.AngularComponentFactory.Instance.registerComponent("embeddedsurvey-question", EmbeddedSurveyQuestionComponent);
|
|
1297
|
+
|
|
1298
|
+
var TranslationTabComponent = /** @class */ (function (_super) {
|
|
1299
|
+
__extends(TranslationTabComponent, _super);
|
|
1300
|
+
function TranslationTabComponent() {
|
|
1301
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1302
|
+
}
|
|
1303
|
+
TranslationTabComponent.prototype.getModel = function () {
|
|
1304
|
+
return this.model;
|
|
1305
|
+
};
|
|
1306
|
+
return TranslationTabComponent;
|
|
1307
|
+
}(i1.BaseAngular));
|
|
1308
|
+
TranslationTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TranslationTabComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1309
|
+
TranslationTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TranslationTabComponent, selector: "svc-tab-translation", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-creator-tab__content svc-translation-tab\">\n <div class=\"st-content\">\n <div *ngIf=\"model.isEmpty\" class=\"st-no-strings\">\n <span>{{model.noStringsText}}</span>\n </div>\n <div *ngIf=\"!model.isEmpty\" class=\"svc-flex-column st-strings-wrapper\">\n <div class=\"svc-flex-row st-strings-header\">\n <survey-content [model]=\"model.stringsHeaderSurvey\"></survey-content>\n </div>\n <div class=\"svc-flex-row svc-plugin-tab__content st-strings\">\n <survey-content [model]=\"model.stringsSurvey\"></survey-content>\n </div>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SurveyContentComponent, selector: "survey-content", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1310
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TranslationTabComponent, decorators: [{
|
|
1311
|
+
type: i0.Component,
|
|
1312
|
+
args: [{
|
|
1313
|
+
selector: "svc-tab-translation",
|
|
1314
|
+
templateUrl: "./translation.component.html",
|
|
1315
|
+
styles: [":host { display: none; }"]
|
|
1316
|
+
}]
|
|
1317
|
+
}], propDecorators: { model: [{
|
|
1318
|
+
type: i0.Input
|
|
1319
|
+
}] } });
|
|
1320
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-tab-translation", TranslationTabComponent);
|
|
1321
|
+
|
|
1322
|
+
var TranslationSkeletonComponent = /** @class */ (function (_super) {
|
|
1323
|
+
__extends(TranslationSkeletonComponent, _super);
|
|
1324
|
+
function TranslationSkeletonComponent() {
|
|
1325
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1326
|
+
}
|
|
1327
|
+
return TranslationSkeletonComponent;
|
|
1328
|
+
}(i1.EmbeddedViewContentComponent));
|
|
1329
|
+
TranslationSkeletonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TranslationSkeletonComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1330
|
+
TranslationSkeletonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TranslationSkeletonComponent, selector: "sd-translation-line-skeleton", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"sd-translation-line-skeleton\"></div>\n</ng-template>", styles: [":host { display: none; }"] });
|
|
1331
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TranslationSkeletonComponent, decorators: [{
|
|
1332
|
+
type: i0.Component,
|
|
1333
|
+
args: [{
|
|
1334
|
+
selector: "sd-translation-line-skeleton",
|
|
1335
|
+
templateUrl: "./translation-line-skeleton.component.html",
|
|
1336
|
+
styles: [":host { display: none; }"]
|
|
1337
|
+
}]
|
|
1338
|
+
}] });
|
|
1339
|
+
i1.AngularComponentFactory.Instance.registerComponent("sd-translation-line-skeleton", TranslationSkeletonComponent);
|
|
1340
|
+
|
|
1341
|
+
var SimulatorComponent = /** @class */ (function (_super) {
|
|
1342
|
+
__extends(SimulatorComponent, _super);
|
|
1343
|
+
function SimulatorComponent() {
|
|
1344
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1345
|
+
}
|
|
1346
|
+
SimulatorComponent.prototype.getModel = function () {
|
|
1347
|
+
return this.model;
|
|
1348
|
+
};
|
|
1349
|
+
Object.defineProperty(SimulatorComponent.prototype, "simulatorFrame", {
|
|
1350
|
+
get: function () {
|
|
1351
|
+
return this.model.simulatorFrame;
|
|
1352
|
+
},
|
|
1353
|
+
enumerable: false,
|
|
1354
|
+
configurable: true
|
|
1355
|
+
});
|
|
1356
|
+
SimulatorComponent.prototype.activateZoom = function () {
|
|
1357
|
+
if (this.model.device !== "desktop") {
|
|
1358
|
+
this.model.activateZoom();
|
|
1359
|
+
}
|
|
1360
|
+
};
|
|
1361
|
+
SimulatorComponent.prototype.deactivateZoom = function () {
|
|
1362
|
+
if (this.model.device !== "desktop") {
|
|
1363
|
+
this.model.deactivateZoom();
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
return SimulatorComponent;
|
|
1367
|
+
}(i1.BaseAngular));
|
|
1368
|
+
SimulatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SimulatorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1369
|
+
SimulatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SimulatorComponent, selector: "survey-simulator", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.getRootCss()\" (keydown)=\"model.tryToZoom($event, $event)\" (mouseover)=\"activateZoom()\" (mouseout)=\"deactivateZoom()\">\n <div *ngIf=\"model.hasFrame\" class=\"svd-simulator-wrapper\" id=\"svd-simulator-wrapper\" [style.width]=\"simulatorFrame.frameWidth + 'px'\" [style.height]=\"simulatorFrame.frameHeight + 'px'\">\n <div class=\"svd-simulator-frame\" [style.width]=\"simulatorFrame.landscapedFrameWidth + 'px'\" [style.height]=\"simulatorFrame.landscapedFrameHeight + 'px'\" [class]=\"simulatorFrame.cssClass\"></div>\n <div class=\"svd-simulator\" [style.width]=\"simulatorFrame.deviceWidth + 'px'\" [style.height]=\"simulatorFrame.deviceHeight + 'px'\" [style.transform]=\"'scale(' + simulatorFrame.scale + ') translate(-50%, -50%)'\">\n <div class=\"svd-simulator-content\">\n <ng-template [component]=\"{ name: 'survey-widget', data: { model: model.survey } }\"></ng-template>\n </div>\n </div>\n </div>\n <div *ngIf=\"!model.hasFrame\" class=\"svd-simulator-content\">\n <ng-template [component]=\"{ name: 'survey-widget', data: { model: model.survey } }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1370
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SimulatorComponent, decorators: [{
|
|
1371
|
+
type: i0.Component,
|
|
1372
|
+
args: [{
|
|
1373
|
+
selector: "survey-simulator",
|
|
1374
|
+
templateUrl: "./simulator.component.html",
|
|
1375
|
+
styles: [":host { display: none; }"]
|
|
1376
|
+
}]
|
|
1377
|
+
}], propDecorators: { model: [{
|
|
1378
|
+
type: i0.Input
|
|
1379
|
+
}] } });
|
|
1380
|
+
|
|
1381
|
+
var TestAgainActionComponent = /** @class */ (function (_super) {
|
|
1382
|
+
__extends(TestAgainActionComponent, _super);
|
|
1383
|
+
function TestAgainActionComponent() {
|
|
1384
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1385
|
+
}
|
|
1386
|
+
TestAgainActionComponent.prototype.getModel = function () {
|
|
1387
|
+
return this.model;
|
|
1388
|
+
};
|
|
1389
|
+
return TestAgainActionComponent;
|
|
1390
|
+
}(i1.BaseAngular));
|
|
1391
|
+
TestAgainActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TestAgainActionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1392
|
+
TestAgainActionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TestAgainActionComponent, selector: "survey-test-again", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div role=\"button\" class=\"svc-preview__test-again svc-btn\" (click)=\"model.action()\" [key2click]>\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{model.title}}\n </span>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
1393
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TestAgainActionComponent, decorators: [{
|
|
1394
|
+
type: i0.Component,
|
|
1395
|
+
args: [{
|
|
1396
|
+
selector: "survey-test-again",
|
|
1397
|
+
templateUrl: "./test-again.component.html",
|
|
1398
|
+
styles: [":host { display: none; }"]
|
|
1399
|
+
}]
|
|
1400
|
+
}], propDecorators: { model: [{
|
|
1401
|
+
type: i0.Input
|
|
1402
|
+
}] } });
|
|
1403
|
+
|
|
1404
|
+
var SurveyResultsTableRowComponent = /** @class */ (function (_super) {
|
|
1405
|
+
__extends(SurveyResultsTableRowComponent, _super);
|
|
1406
|
+
function SurveyResultsTableRowComponent() {
|
|
1407
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1408
|
+
}
|
|
1409
|
+
SurveyResultsTableRowComponent.prototype.getModel = function () {
|
|
1410
|
+
return this.model;
|
|
1411
|
+
};
|
|
1412
|
+
return SurveyResultsTableRowComponent;
|
|
1413
|
+
}(i1.BaseAngular));
|
|
1414
|
+
SurveyResultsTableRowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyResultsTableRowComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1415
|
+
SurveyResultsTableRowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurveyResultsTableRowComponent, selector: "survey-results-table-row", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <tr (click)=\"model.toggle()\" [key2click]>\n <td class=\"svd-dark-border-color\"\n [style.paddingLeft]=\"model.textMargin \">\n <span *ngIf=\"model.isNode\" class=\"svd-test-results__marker\"\n [class.svd-test-results__marker--expanded]=\"!model.collapsed\"\n [style.left]=\"model.markerMargin\">\n <svg [iconName]=\"'icon-expand_16x16'\" [size]=\"16\" sv-ng-svg-icon></svg>\n </span>\n <span >{{model.title}}</span></td>\n <td [class.svd-test-results__node-value]=\"model.isNode\" [class.svd-dark-border-color]=\"!model.isNode\">\n {{model.getString(model.displayValue)}}\n </td>\n </tr>\n <ng-container *ngIf=\"model.isNode && !model.collapsed\">\n <ng-container *ngFor=\"let row of model.data\">\n <survey-results-table-row [model]=\"row\"></survey-results-table-row>\n </ng-container>\n </ng-container>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: SurveyResultsTableRowComponent, selector: "survey-results-table-row", inputs: ["model"] }], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1416
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyResultsTableRowComponent, decorators: [{
|
|
1417
|
+
type: i0.Component,
|
|
1418
|
+
args: [{
|
|
1419
|
+
selector: "survey-results-table-row",
|
|
1420
|
+
templateUrl: "./survey-results-row.component.html",
|
|
1421
|
+
styles: [":host { display: none; }"]
|
|
1422
|
+
}]
|
|
1423
|
+
}], propDecorators: { model: [{
|
|
1424
|
+
type: i0.Input
|
|
1425
|
+
}] } });
|
|
1426
|
+
|
|
1427
|
+
var SurveyResultsComponent = /** @class */ (function (_super) {
|
|
1428
|
+
__extends(SurveyResultsComponent, _super);
|
|
1429
|
+
function SurveyResultsComponent() {
|
|
1430
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1431
|
+
}
|
|
1432
|
+
SurveyResultsComponent.prototype.createModel = function () {
|
|
1433
|
+
if (!!this.survey) {
|
|
1434
|
+
this.model = new surveyCreatorCore.SurveyResultsModel(this.survey);
|
|
1435
|
+
}
|
|
1436
|
+
};
|
|
1437
|
+
SurveyResultsComponent.prototype.getModel = function () {
|
|
1438
|
+
return this.model;
|
|
1439
|
+
};
|
|
1440
|
+
SurveyResultsComponent.prototype.getPropertiesToTrack = function () {
|
|
1441
|
+
return ["survey"];
|
|
1442
|
+
};
|
|
1443
|
+
return SurveyResultsComponent;
|
|
1444
|
+
}(CreatorModelComponent));
|
|
1445
|
+
SurveyResultsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyResultsComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1446
|
+
SurveyResultsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurveyResultsComponent, selector: "survey-results", inputs: { survey: "survey" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n<div class=\"svd-test-results\">\n <div class=\"svd-test-results__header\">\n <div class=\"svd-test-results__header-text\">{{model.surveyResultsText}}</div>\n <div class=\"svd-test-results__header-types\">\n <svc-action-button [text]=\"model.surveyResultsTableText\" [click]=\"model.selectTableClick\" [disabled]=\"false\" [selected]=\"model.isTableSelected\"></svc-action-button>\n <svc-action-button [text]=\"model.surveyResultsJsonText\" [click]=\"model.selectJsonClick\" [disabled]=\"false\" [selected]=\"model.isJsonSelected\"></svc-action-button>\n </div>\n </div>\n <div class=\"svd-test-results__text svd-light-bg-color\" [visible]=\"model.resultViewType === 'text'\">\n <div>{{model.resultText}}</div>\n </div>\n <div class=\"svd-test-results__table svd-light-bg-color\" [visible]=\"model.resultViewType === 'table'\">\n <table>\n <thead>\n <tr class=\"svd-light-background-color\">\n <th class=\"svd-dark-border-color\">{{model.resultsTitle}}</th>\n <th class=\"svd-dark-border-color\">{{model.resultsDisplayValue}}</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let row of model.resultData\">\n <survey-results-table-row [model]=\"row\"></survey-results-table-row>\n </ng-container>\n </tbody>\n </table>\n </div>\n</div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: ActionButtonComponent, selector: "svc-action-button", inputs: ["classes", "click", "selected", "disabled", "text", "title", "allowBubble"] }, { type: SurveyResultsTableRowComponent, selector: "survey-results-table-row", inputs: ["model"] }], directives: [{ type: i1__namespace.VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1447
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyResultsComponent, decorators: [{
|
|
1448
|
+
type: i0.Component,
|
|
1449
|
+
args: [{
|
|
1450
|
+
selector: "survey-results",
|
|
1451
|
+
templateUrl: "./survey-results.component.html",
|
|
1452
|
+
styles: [":host { display: none; }"]
|
|
1453
|
+
}]
|
|
1454
|
+
}], propDecorators: { survey: [{
|
|
1455
|
+
type: i0.Input
|
|
1456
|
+
}] } });
|
|
1457
|
+
|
|
1458
|
+
var TestTabComponent = /** @class */ (function (_super) {
|
|
1459
|
+
__extends(TestTabComponent, _super);
|
|
1460
|
+
function TestTabComponent() {
|
|
1461
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1462
|
+
}
|
|
1463
|
+
TestTabComponent.prototype.getModel = function () {
|
|
1464
|
+
return this.model;
|
|
1465
|
+
};
|
|
1466
|
+
return TestTabComponent;
|
|
1467
|
+
}(i1.BaseAngular));
|
|
1468
|
+
TestTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TestTabComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1469
|
+
TestTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TestTabComponent, selector: "svc-tab-test", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-creator-tab__content svc-test-tab__content\" [class.svc-creator-tab__content--with-toolbar]=\"model.isPageToolbarVisible\">\n <div class=\"svc-plugin-tab__content\">\n <survey-simulator [model]=\"model.simulator\"></survey-simulator>\n <ng-container *ngIf=\"!model.isRunning\">\n <survey-test-again [model]=\"model.testAgainAction\"></survey-test-again>\n <survey-results [survey]=\"model.survey\"></survey-results>\n </ng-container>\n </div>\n <div *ngIf=\"model.isPageToolbarVisible\" class=\"svc-plugin-tab__content-actions svc-test-tab__content-actions\">\n <sv-action-bar [model]=\"model.pages\"></sv-action-bar>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: SimulatorComponent, selector: "survey-simulator", inputs: ["model"] }, { type: TestAgainActionComponent, selector: "survey-test-again", inputs: ["model"] }, { type: SurveyResultsComponent, selector: "survey-results", inputs: ["survey"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1470
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TestTabComponent, decorators: [{
|
|
1471
|
+
type: i0.Component,
|
|
1472
|
+
args: [{
|
|
1473
|
+
selector: "svc-tab-test",
|
|
1474
|
+
templateUrl: "./test.component.html",
|
|
1475
|
+
styles: [":host { display: none; }"]
|
|
1476
|
+
}]
|
|
1477
|
+
}], propDecorators: { model: [{
|
|
1478
|
+
type: i0.Input
|
|
1479
|
+
}] } });
|
|
1480
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-tab-test", TestTabComponent);
|
|
1481
|
+
|
|
1482
|
+
var QuestionDesignerComponent = /** @class */ (function (_super) {
|
|
1483
|
+
__extends(QuestionDesignerComponent, _super);
|
|
1484
|
+
function QuestionDesignerComponent() {
|
|
1485
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1486
|
+
_this.adornerComponent = "";
|
|
1487
|
+
return _this;
|
|
1488
|
+
}
|
|
1489
|
+
Object.defineProperty(QuestionDesignerComponent.prototype, "creator", {
|
|
1490
|
+
get: function () {
|
|
1491
|
+
return this.componentData.data;
|
|
1492
|
+
},
|
|
1493
|
+
enumerable: false,
|
|
1494
|
+
configurable: true
|
|
1495
|
+
});
|
|
1496
|
+
Object.defineProperty(QuestionDesignerComponent.prototype, "model", {
|
|
1497
|
+
get: function () {
|
|
1498
|
+
return this.componentData.model;
|
|
1499
|
+
},
|
|
1500
|
+
enumerable: false,
|
|
1501
|
+
configurable: true
|
|
1502
|
+
});
|
|
1503
|
+
QuestionDesignerComponent.prototype.createModel = function () {
|
|
1504
|
+
if (this.componentData) {
|
|
1505
|
+
this.adorner = new surveyCreatorCore.QuestionAdornerViewModel(this.creator, this.model, null);
|
|
1506
|
+
}
|
|
1507
|
+
};
|
|
1508
|
+
QuestionDesignerComponent.prototype.getPropertiesToTrack = function () {
|
|
1509
|
+
return ["model", "creator"];
|
|
1510
|
+
};
|
|
1511
|
+
QuestionDesignerComponent.prototype.getModel = function () {
|
|
1512
|
+
return this.adorner;
|
|
1513
|
+
};
|
|
1514
|
+
QuestionDesignerComponent.prototype.selectQuestionType = function (event) {
|
|
1515
|
+
var _a;
|
|
1516
|
+
event.stopPropagation();
|
|
1517
|
+
(_a = this.adorner.questionTypeSelectorModel) === null || _a === void 0 ? void 0 : _a.action(this.adorner.questionTypeSelectorModel, event);
|
|
1518
|
+
};
|
|
1519
|
+
QuestionDesignerComponent.prototype.addNewQuestion = function (event) {
|
|
1520
|
+
event.stopPropagation();
|
|
1521
|
+
this.adorner.addNewQuestion();
|
|
1522
|
+
};
|
|
1523
|
+
return QuestionDesignerComponent;
|
|
1524
|
+
}(CreatorModelComponent));
|
|
1525
|
+
QuestionDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1526
|
+
QuestionDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionDesignerComponent, selector: "svc-question", inputs: { componentName: "componentName", componentData: "componentData" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"adorner\" class=\"svc-question__adorner\" [class]=\"adorner.rootCss()\"\n (mouseover)=\"adorner.hover($event, $event.currentTarget)\" (mouseleave)=\"adorner.hover($event, $event.currentTarget)\"\n [attr.data-sv-drop-target-survey-element]=\"adorner.element.name || null\" #container>\n\n <div *ngIf=\"adorner.element.isInteractiveDesignElement\" class=\"svc-question__content\" [class]=\"adorner.css()\"\n [key2click] (click)=\"adorner.select(adorner, $event)\" data-bind=\"clickBubble: false\">\n <div *ngIf=\"adorner.allowDragging\" class=\"svc-question__drag-area\" (pointerdown)=\"adorner.onPointerDown($event)\">\n <svg class=\"svc-question__drag-element\" [iconName]=\"'icon-drag-area-indicator_24x16'\" [size]=\"24\"\n sv-ng-svg-icon></svg>\n </div>\n\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.element.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <ng-template *ngIf=\"adornerComponent\"\n [component]=\"{ name: adornerComponent, data: { adorner: adorner, question: model } }\">\n </ng-template>\n <!-- ko if: adornerComponent -->\n <!-- ko component: { name: adornerComponent, params: { model: $data } } -->\n <!-- /ko -->\n <!-- /ko -->\n\n <div *ngIf=\"!adorner.isEmptyElement && model.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n <div class=\"svc-question__content-actions\">\n <sv-action-bar [model]=\"adorner.actionContainer\" [handleClick]=\"false\"></sv-action-bar>\n </div>\n </div>\n\n <ng-container *ngIf=\"!adorner.element.isInteractiveDesignElement\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.showAddQuestionButton\" class=\"svc-panel__add-new-question svc-action-button\" [key2click]\n (click)=\"addNewQuestion($event)\" data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <div *ngIf=\"!adorner.isEmptyElement\" class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1527
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionDesignerComponent, decorators: [{
|
|
1528
|
+
type: i0.Component,
|
|
1529
|
+
args: [{
|
|
1530
|
+
selector: "svc-question",
|
|
1531
|
+
templateUrl: "./question.component.html",
|
|
1532
|
+
styles: [":host { display: none; }"]
|
|
1533
|
+
}]
|
|
1534
|
+
}], propDecorators: { componentName: [{
|
|
1535
|
+
type: i0.Input
|
|
1536
|
+
}], componentData: [{
|
|
1537
|
+
type: i0.Input
|
|
1538
|
+
}] } });
|
|
1539
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-question", QuestionDesignerComponent);
|
|
1540
|
+
|
|
1541
|
+
var ItemValueDesignerComponent = /** @class */ (function (_super) {
|
|
1542
|
+
__extends(ItemValueDesignerComponent, _super);
|
|
1543
|
+
function ItemValueDesignerComponent() {
|
|
1544
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1545
|
+
}
|
|
1546
|
+
Object.defineProperty(ItemValueDesignerComponent.prototype, "creator", {
|
|
1547
|
+
get: function () {
|
|
1548
|
+
return this.componentData.data.creator;
|
|
1549
|
+
},
|
|
1550
|
+
enumerable: false,
|
|
1551
|
+
configurable: true
|
|
1552
|
+
});
|
|
1553
|
+
Object.defineProperty(ItemValueDesignerComponent.prototype, "question", {
|
|
1554
|
+
get: function () {
|
|
1555
|
+
return this.componentData.question;
|
|
1556
|
+
},
|
|
1557
|
+
enumerable: false,
|
|
1558
|
+
configurable: true
|
|
1559
|
+
});
|
|
1560
|
+
Object.defineProperty(ItemValueDesignerComponent.prototype, "item", {
|
|
1561
|
+
get: function () {
|
|
1562
|
+
return this.componentData.model;
|
|
1563
|
+
},
|
|
1564
|
+
enumerable: false,
|
|
1565
|
+
configurable: true
|
|
1566
|
+
});
|
|
1567
|
+
ItemValueDesignerComponent.prototype.onBlur = function (event) {
|
|
1568
|
+
this.adorner.onFocusOut(event);
|
|
1569
|
+
};
|
|
1570
|
+
ItemValueDesignerComponent.prototype.createModel = function () {
|
|
1571
|
+
if (this.componentData) {
|
|
1572
|
+
this.adorner = new surveyCreatorCore.ItemValueWrapperViewModel(this.creator, this.question, this.item);
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
ItemValueDesignerComponent.prototype.getPropertiesToTrack = function () {
|
|
1576
|
+
return ["creator", "question", "item"];
|
|
1577
|
+
};
|
|
1578
|
+
ItemValueDesignerComponent.prototype.getModel = function () {
|
|
1579
|
+
return this.adorner;
|
|
1580
|
+
};
|
|
1581
|
+
return ItemValueDesignerComponent;
|
|
1582
|
+
}(CreatorModelComponent));
|
|
1583
|
+
ItemValueDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ItemValueDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1584
|
+
ItemValueDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ItemValueDesignerComponent, selector: "svc-item-value", inputs: { componentName: "componentName", componentData: "componentData" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-item-value-wrapper\" (pointerdown)=\"adorner.onPointerDown($event)\"\n [attr.data-sv-drop-target-item-value]=\"adorner.isDraggable ? item.value : null\"\n [ngClass]=\"{'svc-item-value--new': adorner.isNew, 'svc-item-value--dragging': adorner.isDragging, 'svc-item-value--ghost': adorner.isDragDropGhost, 'svc-item-value--movedown': adorner.isDragDropMoveDown, 'svc-item-value--moveup': adorner.isDragDropMoveUp}\">\n <div class=\"svc-item-value__ghost\"></div>\n <div class=\"svc-item-value-controls\">\n <span *ngIf=\"adorner.isDraggable\" class=\"svc-item-value-controls__button svc-item-value-controls__drag\">\n <svg class=\"svc-item-value-controls__drag-icon\" [iconName]=\"'icon-drag-area-indicator'\" [size]=\"24\"\n [attr.title]=\"adorner.dragTooltip\" sv-ng-svg-icon></svg>\n </span>\n <span *ngIf=\"adorner.allowAdd\" class=\"svc-item-value-controls__button svc-item-value-controls__add\" [key2click]\n (click)=\"adorner.add(adorner)\" [attr.aria-label]=\"undefined\"><svg [iconName]=\"'icon-add_16x16'\" [size]=\"16\"\n [attr.title]=\"undefined\" sv-ng-svg-icon></svg></span>\n <span *ngIf=\"adorner.allowRemove\" class=\"svc-item-value-controls__button svc-item-value-controls__remove\"\n [key2click] (click)=\"adorner.remove(adorner)\" (blur)=\"onBlur($event)\" [attr.aria-label]=\"undefined\"><svg\n [iconName]=\"'icon-remove_16x16'\" [size]=\"16\" [attr.title]=\"undefined\" sv-ng-svg-icon></svg></span>\n </div>\n\n <div class=\"svc-item-value__item\" (click)=\"adorner.select(adorner, $event)\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1585
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ItemValueDesignerComponent, decorators: [{
|
|
1586
|
+
type: i0.Component,
|
|
1587
|
+
args: [{
|
|
1588
|
+
selector: "svc-item-value",
|
|
1589
|
+
templateUrl: "./item-value.component.html",
|
|
1590
|
+
styles: [":host { display: none; }"]
|
|
1591
|
+
}]
|
|
1592
|
+
}], propDecorators: { componentName: [{
|
|
1593
|
+
type: i0.Input
|
|
1594
|
+
}], componentData: [{
|
|
1595
|
+
type: i0.Input
|
|
1596
|
+
}] } });
|
|
1597
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-item-value", ItemValueDesignerComponent);
|
|
1598
|
+
|
|
1599
|
+
var ImageItemValueDesignerComponent = /** @class */ (function (_super) {
|
|
1600
|
+
__extends(ImageItemValueDesignerComponent, _super);
|
|
1601
|
+
function ImageItemValueDesignerComponent() {
|
|
1602
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1603
|
+
}
|
|
1604
|
+
Object.defineProperty(ImageItemValueDesignerComponent.prototype, "creator", {
|
|
1605
|
+
get: function () {
|
|
1606
|
+
return this.componentData.data.creator;
|
|
1607
|
+
},
|
|
1608
|
+
enumerable: false,
|
|
1609
|
+
configurable: true
|
|
1610
|
+
});
|
|
1611
|
+
Object.defineProperty(ImageItemValueDesignerComponent.prototype, "question", {
|
|
1612
|
+
get: function () {
|
|
1613
|
+
return this.componentData.question;
|
|
1614
|
+
},
|
|
1615
|
+
enumerable: false,
|
|
1616
|
+
configurable: true
|
|
1617
|
+
});
|
|
1618
|
+
Object.defineProperty(ImageItemValueDesignerComponent.prototype, "item", {
|
|
1619
|
+
get: function () {
|
|
1620
|
+
return this.componentData.model;
|
|
1621
|
+
},
|
|
1622
|
+
enumerable: false,
|
|
1623
|
+
configurable: true
|
|
1624
|
+
});
|
|
1625
|
+
ImageItemValueDesignerComponent.prototype.createModel = function () {
|
|
1626
|
+
if (this.componentData) {
|
|
1627
|
+
this.adorner = new surveyCreatorCore.ImageItemValueWrapperViewModel(this.creator, this.question, this.item, null, null);
|
|
1628
|
+
}
|
|
1629
|
+
};
|
|
1630
|
+
ImageItemValueDesignerComponent.prototype.getPropertiesToTrack = function () {
|
|
1631
|
+
return ["creator", "question", "item"];
|
|
1632
|
+
};
|
|
1633
|
+
ImageItemValueDesignerComponent.prototype.getModel = function () {
|
|
1634
|
+
return this.adorner;
|
|
1635
|
+
};
|
|
1636
|
+
Object.defineProperty(ImageItemValueDesignerComponent.prototype, "showDragDropGhostOnTop", {
|
|
1637
|
+
get: function () {
|
|
1638
|
+
return this.adorner.ghostPosition === "top";
|
|
1639
|
+
},
|
|
1640
|
+
enumerable: false,
|
|
1641
|
+
configurable: true
|
|
1642
|
+
});
|
|
1643
|
+
Object.defineProperty(ImageItemValueDesignerComponent.prototype, "showDragDropGhostOnBottom", {
|
|
1644
|
+
get: function () {
|
|
1645
|
+
return this.adorner.ghostPosition === "bottom";
|
|
1646
|
+
},
|
|
1647
|
+
enumerable: false,
|
|
1648
|
+
configurable: true
|
|
1649
|
+
});
|
|
1650
|
+
ImageItemValueDesignerComponent.prototype.blockEvent = function (event) {
|
|
1651
|
+
event.stopPropagation();
|
|
1652
|
+
};
|
|
1653
|
+
ImageItemValueDesignerComponent.prototype.getNewItemStyle = function () {
|
|
1654
|
+
var needStyle = !this.adorner.getIsNewItemSingle();
|
|
1655
|
+
return { width: needStyle ? this.question.renderedImageWidth : undefined, height: needStyle ? this.question.renderedImageHeight : undefined };
|
|
1656
|
+
};
|
|
1657
|
+
ImageItemValueDesignerComponent.prototype.ngAfterViewInit = function () {
|
|
1658
|
+
this.adorner.itemsRoot = this.container.nativeElement;
|
|
1659
|
+
};
|
|
1660
|
+
return ImageItemValueDesignerComponent;
|
|
1661
|
+
}(CreatorModelComponent));
|
|
1662
|
+
ImageItemValueDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageItemValueDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1663
|
+
ImageItemValueDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImageItemValueDesignerComponent, selector: "svc-image-item-value", inputs: { componentName: "componentName", componentData: "componentData" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div (pointerdown)=\"adorner.onPointerDown($event)\" [class]=\"adorner.getRootCss()\" [attr.data-sv-drop-target-item-value]=\"adorner.isDraggable ? this.item.value : null\" #container>\n <div class=\"svc-image-item-value-wrapper__ghost\" [style]=\"getNewItemStyle()\"></div>\n\n <div class=\"svc-image-item-value-wrapper__content\">\n <input type=\"file\" aria-hidden=\"true\" tabindex=\"-1\" accept=\"image/*\" class=\"svc-choose-file-input\" />\n\n <ng-container *ngIf=\"!adorner.isNew\">\n <div *ngIf=\"!adorner.isNew\" class=\"svc-image-item-value__item\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__drag-area-indicator\" (pointerdown)=\"adorner.onPointerDown($event)\" [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-drag-area-indicator'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n <div class=\"svc-image-item-value-controls\" data-bind=\"event: { pointerdown: blockEvent }\">\n <ng-container *ngIf=\"adorner.allowRemove\">\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__choose-file\" (click)=\"adorner.chooseFile(adorner)\" [key2click] [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-file'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__remove\" (click)=\"adorner.remove(adorner)\" [key2click] [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-delete'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"adorner.isNew\">\n <div class=\"svc-image-item-value__item\"\n data-bind=\"event: { dragover: dragover, drop: drop, dragleave: dragleave }\">\n <div class=\"sd-imagepicker__item sd-imagepicker__item--inline\">\n <label class=\"sd-imagepicker__label\">\n <div [style]=\"getNewItemStyle()\" class=\"sd-imagepicker__image\"></div>\n </label>\n </div>\n </div>\n\n <div class=\"svc-image-item-value-controls\" data-bind=\"event: { pointerdown: blockEvent }\">\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__add\" [key2click] (click)=\"adorner.chooseNewFile(adorner)\" [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg *ngIf=\"adorner.allowAdd\" [iconName]=\"'icon-add-lg'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
1664
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageItemValueDesignerComponent, decorators: [{
|
|
1665
|
+
type: i0.Component,
|
|
1666
|
+
args: [{
|
|
1667
|
+
selector: "svc-image-item-value",
|
|
1668
|
+
templateUrl: "./image-item-value.component.html",
|
|
1669
|
+
styles: [":host { display: none; }"]
|
|
1670
|
+
}]
|
|
1671
|
+
}], propDecorators: { componentName: [{
|
|
1672
|
+
type: i0.Input
|
|
1673
|
+
}], componentData: [{
|
|
1674
|
+
type: i0.Input
|
|
1675
|
+
}], container: [{
|
|
1676
|
+
type: i0.ViewChild,
|
|
1677
|
+
args: ["container", { read: i0.ElementRef }]
|
|
1678
|
+
}] } });
|
|
1679
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-image-item-value", ImageItemValueDesignerComponent);
|
|
1680
|
+
|
|
1681
|
+
var QuestionDropdownDesignerComponent = /** @class */ (function (_super) {
|
|
1682
|
+
__extends(QuestionDropdownDesignerComponent, _super);
|
|
1683
|
+
function QuestionDropdownDesignerComponent() {
|
|
1684
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1685
|
+
_this.adornerComponent = "svc-dropdown-question-adorner";
|
|
1686
|
+
return _this;
|
|
1687
|
+
}
|
|
1688
|
+
QuestionDropdownDesignerComponent.prototype.createModel = function () {
|
|
1689
|
+
if (this.componentData) {
|
|
1690
|
+
this.adorner = new surveyCreatorCore.QuestionDropdownAdornerViewModel(this.creator, this.model, null);
|
|
1691
|
+
}
|
|
1692
|
+
};
|
|
1693
|
+
return QuestionDropdownDesignerComponent;
|
|
1694
|
+
}(QuestionDesignerComponent));
|
|
1695
|
+
QuestionDropdownDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionDropdownDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1696
|
+
QuestionDropdownDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionDropdownDesignerComponent, selector: "svc-dropdown-question", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"adorner\" class=\"svc-question__adorner\" [class]=\"adorner.rootCss()\"\n (mouseover)=\"adorner.hover($event, $event.currentTarget)\" (mouseleave)=\"adorner.hover($event, $event.currentTarget)\"\n [attr.data-sv-drop-target-survey-element]=\"adorner.element.name || null\" #container>\n\n <div *ngIf=\"adorner.element.isInteractiveDesignElement\" class=\"svc-question__content\" [class]=\"adorner.css()\"\n [key2click] (click)=\"adorner.select(adorner, $event)\" data-bind=\"clickBubble: false\">\n <div *ngIf=\"adorner.allowDragging\" class=\"svc-question__drag-area\" (pointerdown)=\"adorner.onPointerDown($event)\">\n <svg class=\"svc-question__drag-element\" [iconName]=\"'icon-drag-area-indicator_24x16'\" [size]=\"24\"\n sv-ng-svg-icon></svg>\n </div>\n\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.element.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <ng-template *ngIf=\"adornerComponent\"\n [component]=\"{ name: adornerComponent, data: { adorner: adorner, question: model } }\">\n </ng-template>\n <!-- ko if: adornerComponent -->\n <!-- ko component: { name: adornerComponent, params: { model: $data } } -->\n <!-- /ko -->\n <!-- /ko -->\n\n <div *ngIf=\"!adorner.isEmptyElement && model.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n <div class=\"svc-question__content-actions\">\n <sv-action-bar [model]=\"adorner.actionContainer\" [handleClick]=\"false\"></sv-action-bar>\n </div>\n </div>\n\n <ng-container *ngIf=\"!adorner.element.isInteractiveDesignElement\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.showAddQuestionButton\" class=\"svc-panel__add-new-question svc-action-button\" [key2click]\n (click)=\"addNewQuestion($event)\" data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <div *ngIf=\"!adorner.isEmptyElement\" class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1697
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionDropdownDesignerComponent, decorators: [{
|
|
1698
|
+
type: i0.Component,
|
|
1699
|
+
args: [{
|
|
1700
|
+
selector: "svc-dropdown-question",
|
|
1701
|
+
templateUrl: "../question.component.html",
|
|
1702
|
+
styles: [":host { display: none; }"]
|
|
1703
|
+
}]
|
|
1704
|
+
}] });
|
|
1705
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-dropdown-question", QuestionDropdownDesignerComponent);
|
|
1706
|
+
var QuestionDropdownAdornerDesignerComponent = /** @class */ (function (_super) {
|
|
1707
|
+
__extends(QuestionDropdownAdornerDesignerComponent, _super);
|
|
1708
|
+
function QuestionDropdownAdornerDesignerComponent() {
|
|
1709
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1710
|
+
}
|
|
1711
|
+
QuestionDropdownAdornerDesignerComponent.prototype.getItemValueComponentName = function (item) {
|
|
1712
|
+
return this.question.getItemValueWrapperComponentName(item) || "sv-ng-selectbase-item";
|
|
1713
|
+
};
|
|
1714
|
+
QuestionDropdownAdornerDesignerComponent.prototype.getItemValueComponentData = function (item) {
|
|
1715
|
+
return {
|
|
1716
|
+
componentName: "sv-ng-selectbase-item",
|
|
1717
|
+
componentData: {
|
|
1718
|
+
question: this.question,
|
|
1719
|
+
model: item,
|
|
1720
|
+
inputType: "radio",
|
|
1721
|
+
data: this.question.getItemValueWrapperComponentData(item)
|
|
1722
|
+
}
|
|
1723
|
+
};
|
|
1724
|
+
};
|
|
1725
|
+
return QuestionDropdownAdornerDesignerComponent;
|
|
1726
|
+
}(i1.EmbeddedViewContentComponent));
|
|
1727
|
+
QuestionDropdownAdornerDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionDropdownAdornerDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1728
|
+
QuestionDropdownAdornerDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionDropdownAdornerDesignerComponent, selector: "svc-dropdown-question-adorner", inputs: { adorner: "adorner", question: "question" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-question__dropdown-choices--wrapper\">\n <div class=\"svc-question__dropdown-choices\">\n <div *ngFor=\"let item of adorner.getRenderedItems()\" [class]=\"adorner.getChoiceCss()\"\n data-bind=\"css: $parent.getChoiceCss()\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\">\n </ng-template>\n </div>\n </div>\n <svc-action-button *ngIf=\"adorner.needToCollapse\" [text]=\"adorner.getButtonText()\"\n [click]=\"adorner.switchCollapse.bind(adorner)\" [allowBubble]=\"true\"> \n </svc-action-button>\n <!-- ko if: needToCollapse -->\n <!-- <svc-action-button params=\"text: getButtonText(), click: switchCollapse, allowBubble: true\">\n </svc-action-button> -->\n <!-- /ko -->\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: ActionButtonComponent, selector: "svc-action-button", inputs: ["classes", "click", "selected", "disabled", "text", "title", "allowBubble"] }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1729
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionDropdownAdornerDesignerComponent, decorators: [{
|
|
1730
|
+
type: i0.Component,
|
|
1731
|
+
args: [{
|
|
1732
|
+
selector: "svc-dropdown-question-adorner",
|
|
1733
|
+
templateUrl: "./question-dropdown.component.html",
|
|
1734
|
+
styles: [":host { display: none; }"]
|
|
1735
|
+
}]
|
|
1736
|
+
}], propDecorators: { adorner: [{
|
|
1737
|
+
type: i0.Input
|
|
1738
|
+
}], question: [{
|
|
1739
|
+
type: i0.Input
|
|
1740
|
+
}] } });
|
|
1741
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-dropdown-question-adorner", QuestionDropdownAdornerDesignerComponent);
|
|
1742
|
+
|
|
1743
|
+
var QuestionImageDesignerComponent = /** @class */ (function (_super) {
|
|
1744
|
+
__extends(QuestionImageDesignerComponent, _super);
|
|
1745
|
+
function QuestionImageDesignerComponent() {
|
|
1746
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1747
|
+
_this.adornerComponent = "svc-image-question-adorner";
|
|
1748
|
+
return _this;
|
|
1749
|
+
}
|
|
1750
|
+
QuestionImageDesignerComponent.prototype.createModel = function () {
|
|
1751
|
+
var _a;
|
|
1752
|
+
if (this.componentData) {
|
|
1753
|
+
this.adorner = new surveyCreatorCore.QuestionImageAdornerViewModel(this.creator, this.model, null, (_a = this.viewContainerRef) === null || _a === void 0 ? void 0 : _a.element.nativeElement.nextSibling);
|
|
1754
|
+
}
|
|
1755
|
+
};
|
|
1756
|
+
QuestionImageDesignerComponent.prototype.ngAfterViewInit = function () {
|
|
1757
|
+
this.adorner.questionRoot = this.container.nativeElement;
|
|
1758
|
+
};
|
|
1759
|
+
return QuestionImageDesignerComponent;
|
|
1760
|
+
}(QuestionDesignerComponent));
|
|
1761
|
+
QuestionImageDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionImageDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1762
|
+
QuestionImageDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionImageDesignerComponent, selector: "svc-image-question", viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"adorner\" class=\"svc-question__adorner\" [class]=\"adorner.rootCss()\"\n (mouseover)=\"adorner.hover($event, $event.currentTarget)\" (mouseleave)=\"adorner.hover($event, $event.currentTarget)\"\n [attr.data-sv-drop-target-survey-element]=\"adorner.element.name || null\" #container>\n\n <div *ngIf=\"adorner.element.isInteractiveDesignElement\" class=\"svc-question__content\" [class]=\"adorner.css()\"\n [key2click] (click)=\"adorner.select(adorner, $event)\" data-bind=\"clickBubble: false\">\n <div *ngIf=\"adorner.allowDragging\" class=\"svc-question__drag-area\" (pointerdown)=\"adorner.onPointerDown($event)\">\n <svg class=\"svc-question__drag-element\" [iconName]=\"'icon-drag-area-indicator_24x16'\" [size]=\"24\"\n sv-ng-svg-icon></svg>\n </div>\n\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.element.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <ng-template *ngIf=\"adornerComponent\"\n [component]=\"{ name: adornerComponent, data: { adorner: adorner, question: model } }\">\n </ng-template>\n <!-- ko if: adornerComponent -->\n <!-- ko component: { name: adornerComponent, params: { model: $data } } -->\n <!-- /ko -->\n <!-- /ko -->\n\n <div *ngIf=\"!adorner.isEmptyElement && model.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n <div class=\"svc-question__content-actions\">\n <sv-action-bar [model]=\"adorner.actionContainer\" [handleClick]=\"false\"></sv-action-bar>\n </div>\n </div>\n\n <ng-container *ngIf=\"!adorner.element.isInteractiveDesignElement\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.showAddQuestionButton\" class=\"svc-panel__add-new-question svc-action-button\" [key2click]\n (click)=\"addNewQuestion($event)\" data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <div *ngIf=\"!adorner.isEmptyElement\" class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1763
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionImageDesignerComponent, decorators: [{
|
|
1764
|
+
type: i0.Component,
|
|
1765
|
+
args: [{
|
|
1766
|
+
selector: "svc-image-question",
|
|
1767
|
+
templateUrl: "../question.component.html",
|
|
1768
|
+
styles: [":host { display: none; }"]
|
|
1769
|
+
}]
|
|
1770
|
+
}], propDecorators: { container: [{
|
|
1771
|
+
type: i0.ViewChild,
|
|
1772
|
+
args: ["container", { read: i0.ElementRef }]
|
|
1773
|
+
}] } });
|
|
1774
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-image-question", QuestionImageDesignerComponent);
|
|
1775
|
+
var QuestionImageAdornerDesignerComponent = /** @class */ (function (_super) {
|
|
1776
|
+
__extends(QuestionImageAdornerDesignerComponent, _super);
|
|
1777
|
+
function QuestionImageAdornerDesignerComponent() {
|
|
1778
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1779
|
+
}
|
|
1780
|
+
return QuestionImageAdornerDesignerComponent;
|
|
1781
|
+
}(i1.EmbeddedViewContentComponent));
|
|
1782
|
+
QuestionImageAdornerDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionImageAdornerDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1783
|
+
QuestionImageAdornerDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionImageAdornerDesignerComponent, selector: "svc-image-question-adorner", inputs: { adorner: "adorner", question: "question" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-image-question-controls\">\n <ng-container *ngIf=\"adorner.allowEdit\">\n <input type=\"file\" aria-hidden=\"true\" tabindex=\"-1\" accept=\"image/*\" class=\"svc-choose-file-input\" />\n <span class=\"svc-image-question-controls__button\" [key2click] [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-file'\" [size]=\"24\" (click)=\"adorner.chooseFile(adorner)\" sv-ng-svg-icon></svg>\n </span>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
1784
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionImageAdornerDesignerComponent, decorators: [{
|
|
1785
|
+
type: i0.Component,
|
|
1786
|
+
args: [{
|
|
1787
|
+
selector: "svc-image-question-adorner",
|
|
1788
|
+
templateUrl: "./question-image.component.html",
|
|
1789
|
+
styles: [":host { display: none; }"]
|
|
1790
|
+
}]
|
|
1791
|
+
}], propDecorators: { adorner: [{
|
|
1792
|
+
type: i0.Input
|
|
1793
|
+
}], question: [{
|
|
1794
|
+
type: i0.Input
|
|
1795
|
+
}] } });
|
|
1796
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-image-question-adorner", QuestionImageAdornerDesignerComponent);
|
|
1797
|
+
|
|
1798
|
+
var PanelDesignerComponent = /** @class */ (function (_super) {
|
|
1799
|
+
__extends(PanelDesignerComponent, _super);
|
|
1800
|
+
function PanelDesignerComponent() {
|
|
1801
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1802
|
+
}
|
|
1803
|
+
return PanelDesignerComponent;
|
|
1804
|
+
}(QuestionDesignerComponent));
|
|
1805
|
+
PanelDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1806
|
+
PanelDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelDesignerComponent, selector: "svc-panel", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"adorner\" class=\"svc-question__adorner\" [class]=\"adorner.rootCss()\"\n (mouseover)=\"adorner.hover($event, $event.currentTarget)\" (mouseleave)=\"adorner.hover($event, $event.currentTarget)\"\n [attr.data-sv-drop-target-survey-element]=\"adorner.element.name || null\" #container>\n\n <div *ngIf=\"adorner.element.isInteractiveDesignElement\" class=\"svc-question__content\" [class]=\"adorner.css()\"\n [key2click] (click)=\"adorner.select(adorner, $event)\" data-bind=\"clickBubble: false\">\n <div *ngIf=\"adorner.allowDragging\" class=\"svc-question__drag-area\" (pointerdown)=\"adorner.onPointerDown($event)\">\n <svg class=\"svc-question__drag-element\" [iconName]=\"'icon-drag-area-indicator_24x16'\" [size]=\"24\"\n sv-ng-svg-icon></svg>\n </div>\n\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.element.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <ng-template *ngIf=\"adornerComponent\"\n [component]=\"{ name: adornerComponent, data: { adorner: adorner, question: model } }\">\n </ng-template>\n <!-- ko if: adornerComponent -->\n <!-- ko component: { name: adornerComponent, params: { model: $data } } -->\n <!-- /ko -->\n <!-- /ko -->\n\n <div *ngIf=\"!adorner.isEmptyElement && model.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n <div class=\"svc-question__content-actions\">\n <sv-action-bar [model]=\"adorner.actionContainer\" [handleClick]=\"false\"></sv-action-bar>\n </div>\n </div>\n\n <ng-container *ngIf=\"!adorner.element.isInteractiveDesignElement\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.showAddQuestionButton\" class=\"svc-panel__add-new-question svc-action-button\" [key2click]\n (click)=\"addNewQuestion($event)\" data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <div *ngIf=\"!adorner.isEmptyElement\" class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1807
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelDesignerComponent, decorators: [{
|
|
1808
|
+
type: i0.Component,
|
|
1809
|
+
args: [{
|
|
1810
|
+
selector: "svc-panel",
|
|
1811
|
+
templateUrl: "./question.component.html",
|
|
1812
|
+
styles: [":host { display: none; }"]
|
|
1813
|
+
}]
|
|
1814
|
+
}] });
|
|
1815
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-panel", PanelDesignerComponent);
|
|
1816
|
+
|
|
1817
|
+
var ToolboxItemComponent = /** @class */ (function (_super) {
|
|
1818
|
+
__extends(ToolboxItemComponent, _super);
|
|
1819
|
+
function ToolboxItemComponent() {
|
|
1820
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1821
|
+
_this.isCompact = false;
|
|
1822
|
+
return _this;
|
|
1823
|
+
}
|
|
1824
|
+
ToolboxItemComponent.prototype.getModel = function () {
|
|
1825
|
+
return this.viewModel;
|
|
1826
|
+
};
|
|
1827
|
+
Object.defineProperty(ToolboxItemComponent.prototype, "item", {
|
|
1828
|
+
get: function () {
|
|
1829
|
+
return this.model;
|
|
1830
|
+
},
|
|
1831
|
+
enumerable: false,
|
|
1832
|
+
configurable: true
|
|
1833
|
+
});
|
|
1834
|
+
Object.defineProperty(ToolboxItemComponent.prototype, "ariaLabel", {
|
|
1835
|
+
get: function () {
|
|
1836
|
+
return this.item.tooltip + " " + surveyCreatorCore.editorLocalization.getString("toolbox") + " item";
|
|
1837
|
+
},
|
|
1838
|
+
enumerable: false,
|
|
1839
|
+
configurable: true
|
|
1840
|
+
});
|
|
1841
|
+
return ToolboxItemComponent;
|
|
1842
|
+
}(i1.BaseAngular));
|
|
1843
|
+
ToolboxItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1844
|
+
ToolboxItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ToolboxItemComponent, selector: "svc-toolbox-item", inputs: { creator: "creator", model: "model", isCompact: "isCompact", viewModel: "viewModel" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-toolbox__item\" role=\"button\" [attr.aria-label]=\"ariaLabel\"\n [class]=\"'svc-toolbox__item--' + item.iconName\" (click)=\"viewModel.click($event)\" [key2click]>\n <span class=\"svc-toolbox__item-container\">\n <svg [iconName]=\"item.iconName\" [size]=\"24\" [title]=\"ariaLabel\" sv-ng-svg-icon></svg>\n </span>\n <span *ngIf=\"isCompact\" class=\"svc-toolbox__item-banner svc-item__banner\">\n <svg [iconName]=\"item.iconName\" [size]=\"24\" [title]=\"ariaLabel\" class=\"svc-toolbox__item-icon\" sv-ng-svg-icon></svg>\n <span class=\"svc-toolbox__item-title\">{{item.title}}</span>\n </span>\n <span *ngIf=\"!isCompact\" class=\"svc-toolbox__item-title\">\n {{item.title}}\n </span>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1845
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxItemComponent, decorators: [{
|
|
1846
|
+
type: i0.Component,
|
|
1847
|
+
args: [{
|
|
1848
|
+
selector: "svc-toolbox-item",
|
|
1849
|
+
templateUrl: "./toolbox-item.component.html",
|
|
1850
|
+
styles: [":host { display: none; }"]
|
|
1851
|
+
}]
|
|
1852
|
+
}], propDecorators: { creator: [{
|
|
1853
|
+
type: i0.Input
|
|
1854
|
+
}], model: [{
|
|
1855
|
+
type: i0.Input
|
|
1856
|
+
}], isCompact: [{
|
|
1857
|
+
type: i0.Input
|
|
1858
|
+
}], viewModel: [{
|
|
1859
|
+
type: i0.Input
|
|
1860
|
+
}] } });
|
|
1861
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-toolbox-item", ToolboxItemComponent);
|
|
1862
|
+
|
|
1863
|
+
var StringEditorComponent = /** @class */ (function (_super) {
|
|
1864
|
+
__extends(StringEditorComponent, _super);
|
|
1865
|
+
function StringEditorComponent(cdr, vcr, ngZone) {
|
|
1866
|
+
var _this = _super.call(this, cdr, vcr) || this;
|
|
1867
|
+
_this.ngZone = ngZone;
|
|
1868
|
+
_this.justFocused = false;
|
|
1869
|
+
_this.onChangeHandler = function () {
|
|
1870
|
+
_this.detectChanges();
|
|
1871
|
+
};
|
|
1872
|
+
return _this;
|
|
1873
|
+
}
|
|
1874
|
+
StringEditorComponent.prototype.createModel = function () {
|
|
1875
|
+
var _this = this;
|
|
1876
|
+
this.baseModel = new surveyCreatorCore.StringEditorViewModelBase(this.locString, this.creator);
|
|
1877
|
+
this.baseModel.blurEditor = function () {
|
|
1878
|
+
_this.container.nativeElement.blur();
|
|
1879
|
+
_this.container.nativeElement.spellcheck = false;
|
|
1880
|
+
};
|
|
1881
|
+
this.baseModel.getEditorElement = function () { return _this.container.nativeElement; };
|
|
1882
|
+
this.ngZone.runOutsideAngular(function () {
|
|
1883
|
+
setTimeout(function () { return _this.baseModel.afterRender(); });
|
|
1884
|
+
});
|
|
1885
|
+
};
|
|
1886
|
+
Object.defineProperty(StringEditorComponent.prototype, "locString", {
|
|
1887
|
+
get: function () {
|
|
1888
|
+
return this.model.locStr;
|
|
1889
|
+
},
|
|
1890
|
+
enumerable: false,
|
|
1891
|
+
configurable: true
|
|
1892
|
+
});
|
|
1893
|
+
Object.defineProperty(StringEditorComponent.prototype, "creator", {
|
|
1894
|
+
get: function () {
|
|
1895
|
+
return this.model.creator;
|
|
1896
|
+
},
|
|
1897
|
+
enumerable: false,
|
|
1898
|
+
configurable: true
|
|
1899
|
+
});
|
|
1900
|
+
StringEditorComponent.prototype.getModel = function () {
|
|
1901
|
+
return this.baseModel;
|
|
1902
|
+
};
|
|
1903
|
+
StringEditorComponent.prototype.getPropertiesToTrack = function () {
|
|
1904
|
+
return ["creator", "locString"];
|
|
1905
|
+
};
|
|
1906
|
+
Object.defineProperty(StringEditorComponent.prototype, "placeholder", {
|
|
1907
|
+
get: function () {
|
|
1908
|
+
return this.baseModel.placeholder;
|
|
1909
|
+
},
|
|
1910
|
+
enumerable: false,
|
|
1911
|
+
configurable: true
|
|
1912
|
+
});
|
|
1913
|
+
Object.defineProperty(StringEditorComponent.prototype, "contentEditable", {
|
|
1914
|
+
get: function () {
|
|
1915
|
+
return this.baseModel.contentEditable;
|
|
1916
|
+
},
|
|
1917
|
+
enumerable: false,
|
|
1918
|
+
configurable: true
|
|
1919
|
+
});
|
|
1920
|
+
Object.defineProperty(StringEditorComponent.prototype, "className", {
|
|
1921
|
+
get: function () {
|
|
1922
|
+
return this.baseModel.className(this.locString.renderedHtml);
|
|
1923
|
+
},
|
|
1924
|
+
enumerable: false,
|
|
1925
|
+
configurable: true
|
|
1926
|
+
});
|
|
1927
|
+
Object.defineProperty(StringEditorComponent.prototype, "errorText", {
|
|
1928
|
+
get: function () {
|
|
1929
|
+
return this.baseModel.errorText;
|
|
1930
|
+
},
|
|
1931
|
+
enumerable: false,
|
|
1932
|
+
configurable: true
|
|
1933
|
+
});
|
|
1934
|
+
Object.defineProperty(StringEditorComponent.prototype, "editValue", {
|
|
1935
|
+
get: function () {
|
|
1936
|
+
return this.baseModel.focused && this.baseModel.editAsText && this.locString.text || this.locString.renderedHtml;
|
|
1937
|
+
},
|
|
1938
|
+
enumerable: false,
|
|
1939
|
+
configurable: true
|
|
1940
|
+
});
|
|
1941
|
+
StringEditorComponent.prototype.onBlur = function (event) {
|
|
1942
|
+
this.container.nativeElement.spellcheck = false;
|
|
1943
|
+
this.locString.__isEditing = false;
|
|
1944
|
+
this.justFocused = false;
|
|
1945
|
+
this.baseModel.onBlur(event);
|
|
1946
|
+
return this.baseModel.errorText;
|
|
1947
|
+
};
|
|
1948
|
+
StringEditorComponent.prototype.onFocus = function (event) {
|
|
1949
|
+
this.baseModel.onFocus(event);
|
|
1950
|
+
this.justFocused = true;
|
|
1951
|
+
};
|
|
1952
|
+
StringEditorComponent.prototype.done = function (event) {
|
|
1953
|
+
this.baseModel.done(event);
|
|
1954
|
+
this.locString.__isEditing = false;
|
|
1955
|
+
};
|
|
1956
|
+
StringEditorComponent.prototype.edit = function (event) {
|
|
1957
|
+
this.container.nativeElement.focus();
|
|
1958
|
+
this.locString.__isEditing = true;
|
|
1959
|
+
this.baseModel.onClick(event);
|
|
1960
|
+
};
|
|
1961
|
+
StringEditorComponent.prototype.ngOnInit = function () {
|
|
1962
|
+
var _a;
|
|
1963
|
+
_super.prototype.ngOnInit.call(this);
|
|
1964
|
+
if (this.locString.__isEditing) {
|
|
1965
|
+
this.container.nativeElement.focus();
|
|
1966
|
+
}
|
|
1967
|
+
(_a = this.locString) === null || _a === void 0 ? void 0 : _a.onStringChanged.add(this.onChangeHandler);
|
|
1968
|
+
};
|
|
1969
|
+
StringEditorComponent.prototype.ngOnDestroy = function () {
|
|
1970
|
+
var _a;
|
|
1971
|
+
(_a = this.locString) === null || _a === void 0 ? void 0 : _a.onStringChanged.remove(this.onChangeHandler);
|
|
1972
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
1973
|
+
};
|
|
1974
|
+
return StringEditorComponent;
|
|
1975
|
+
}(CreatorModelComponent));
|
|
1976
|
+
StringEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StringEditorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1977
|
+
StringEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: StringEditorComponent, selector: "svc-string-edtior", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <span [class]=\"className\">\n <span class=\"svc-string-editor__content\">\n <div class=\"svc-string-editor__border\">\n <svg [iconName]=\"'icon-arrow-up'\" class=\"svc-string-editor__button svc-string-editor__button--edit\" [size]=\"24\" sv-ng-svg-icon \n (click)=\"edit($event)\" [iconName]=\"'icon-edit'\" [size]=\"16\"></svg>\n </div>\n <span role=\"textbox\" *ngIf=\"!locString.hasHtml\" class=\"sv-string-editor\" spellcheck=\"false\"\n (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\" (input)=\"baseModel.onInput($event)\" (keydown)=\"baseModel.onKeyDown($event)\" (keyup)=\"baseModel.onKeyUp($event)\" (mouseup)=\"baseModel.onMouseUp($event)\" (click)=\"edit($event)\" [attr.aria-placeholder]=\"placeholder\" [attr.contenteditable]=\"contentEditable\" [innerText]=\"editValue\" #container></span>\n <span role=\"textbox\" *ngIf=\"locString.hasHtml\" class=\"sv-string-editor\" spellcheck=\"false\"\n (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\" (keydown)=\"baseModel.onKeyDown($event)\" (keyup)=\"baseModel.onKeyUp($event)\" (mouseup)=\"baseModel.onMouseUp($event)\"\n (click)=\"edit($event)\" [attr.aria-placeholder]=\"placeholder\" [attr.contenteditable]=\"contentEditable\" [innerHtml]=\"editValue\" #container></span>\n </span>\n <span *ngIf=\"errorText\" class=\"svc-string-editor__error\">{{errorText}}</span>\n </span>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1978
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StringEditorComponent, decorators: [{
|
|
1979
|
+
type: i0.Component,
|
|
1980
|
+
args: [{
|
|
1981
|
+
selector: "svc-string-edtior",
|
|
1982
|
+
templateUrl: "./string-editor.component.html",
|
|
1983
|
+
styles: [":host { display: none; }"]
|
|
1984
|
+
}]
|
|
1985
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { model: [{
|
|
1986
|
+
type: i0.Input
|
|
1987
|
+
}], container: [{
|
|
1988
|
+
type: i0.ViewChild,
|
|
1989
|
+
args: ["container"]
|
|
1990
|
+
}] } });
|
|
1991
|
+
i1.AngularComponentFactory.Instance.registerComponent(surveyCreatorCore.editableStringRendererName, StringEditorComponent);
|
|
1992
|
+
|
|
1993
|
+
var LogicOperatorComponent = /** @class */ (function (_super) {
|
|
1994
|
+
__extends(LogicOperatorComponent, _super);
|
|
1995
|
+
function LogicOperatorComponent() {
|
|
1996
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1997
|
+
}
|
|
1998
|
+
Object.defineProperty(LogicOperatorComponent.prototype, "dropdownModel", {
|
|
1999
|
+
get: function () {
|
|
2000
|
+
return this.dropdownListModel;
|
|
2001
|
+
},
|
|
2002
|
+
enumerable: false,
|
|
2003
|
+
configurable: true
|
|
2004
|
+
});
|
|
2005
|
+
LogicOperatorComponent.prototype.click = function (event) {
|
|
2006
|
+
var _a;
|
|
2007
|
+
(_a = this.dropdownListModel) === null || _a === void 0 ? void 0 : _a.onClick(event);
|
|
2008
|
+
};
|
|
2009
|
+
LogicOperatorComponent.prototype.clear = function (event) {
|
|
2010
|
+
var _a;
|
|
2011
|
+
(_a = this.dropdownListModel) === null || _a === void 0 ? void 0 : _a.onClear(event);
|
|
2012
|
+
};
|
|
2013
|
+
LogicOperatorComponent.prototype.keyup = function (event) {
|
|
2014
|
+
var _a;
|
|
2015
|
+
(_a = this.dropdownListModel) === null || _a === void 0 ? void 0 : _a.keyHandler(event);
|
|
2016
|
+
};
|
|
2017
|
+
LogicOperatorComponent.prototype.ngOnInit = function () {
|
|
2018
|
+
_super.prototype.ngOnInit.call(this);
|
|
2019
|
+
this.dropdownListModel = this.model.dropdownListModel || new surveyCore.DropdownListModel(this.model);
|
|
2020
|
+
};
|
|
2021
|
+
return LogicOperatorComponent;
|
|
2022
|
+
}(i1.QuestionAngular));
|
|
2023
|
+
LogicOperatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogicOperatorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2024
|
+
LogicOperatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LogicOperatorComponent, selector: "svc-logic-operator", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.cssClasses.selectWrapper\">\n <ng-container *ngIf=\"!model.isReadOnly\">\n <div [class]=\"model.getControlClass()\" (click)=\"click($event)\" (keyup)=\"keyup($event)\"\n [attr.id]=\"model.inputId\" \n [attr.required]=\"model.isRequired\" \n [attr.tabindex]= \"model.isInputReadOnly ? undefined : 0\"\n [attr.disabled]=\"model.isInputReadOnly\"\n [attr.role]=\"model.ariaRole\"\n [attr.aria-required]=\"model.ariaRequired\" \n [attr.aria-label]=\"model.ariaLabel\" \n [attr.aria-invalid]=\"model.ariaInvalid\" \n [attr.aria-describedby]= \"model.ariaDescribedBy\" \n >\n <div [class]=\"model.cssClasses.controlValue\">\n <sv-ng-string *ngIf=\"model.selectedItemLocText\" [model]=\"model.selectedItemLocText\"></sv-ng-string>\n <div>{{model.readOnlyText}}</div>\n </div>\n <div *ngIf=\"model.allowClear && model.cssClasses.cleanButtonIconId\" [class]=\"model.cssClasses.cleanButton\" (click)=\"clear\" [visible]=\"!model.isEmpty()\">\n <svg [class]=\"model.cssClasses.cleanButtonSvg\" [iconName]=\"model.cssClasses.cleanButtonIconId\" [size]=\"'auto'\" [title]=\"model.clearCaption\" [size]=\"24\" sv-ng-svg-icon></svg>\n </div>\n </div>\n <sv-ng-popup [popupModel]=\"model.popupModel\"></sv-ng-popup>\n </ng-container>\n <div disabled *ngIf=\"model.isReadOnly\" [class]=\"model.getControlClass()\" [attr.id]=\"model.inputId\">\n <sv-ng-string *ngIf=\"model.selectedItemLocText\" [model]=\"model.selectedItemLocText\"></sv-ng-string>\n <div>{{model.readOnlyText}}</div>\n </div>\n </div>\n</ng-template>\n", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.VisibleDirective, selector: "[visible]", inputs: ["visible"] }] });
|
|
2025
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogicOperatorComponent, decorators: [{
|
|
2026
|
+
type: i0.Component,
|
|
2027
|
+
args: [{
|
|
2028
|
+
selector: "svc-logic-operator",
|
|
2029
|
+
templateUrl: "./logic-operator.component.html",
|
|
2030
|
+
styles: [":host { display: none; }"]
|
|
2031
|
+
}]
|
|
2032
|
+
}] });
|
|
2033
|
+
i1.AngularComponentFactory.Instance.registerComponent("sv-logic-operator", LogicOperatorComponent);
|
|
2034
|
+
surveyCore.RendererFactory.Instance.registerRenderer("dropdown", "logicoperator", "sv-logic-operator");
|
|
2035
|
+
|
|
2036
|
+
var MatrixCellComponent = /** @class */ (function (_super) {
|
|
2037
|
+
__extends(MatrixCellComponent, _super);
|
|
2038
|
+
function MatrixCellComponent() {
|
|
2039
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2040
|
+
}
|
|
2041
|
+
Object.defineProperty(MatrixCellComponent.prototype, "creator", {
|
|
2042
|
+
get: function () {
|
|
2043
|
+
return this.componentData.creator;
|
|
2044
|
+
},
|
|
2045
|
+
enumerable: false,
|
|
2046
|
+
configurable: true
|
|
2047
|
+
});
|
|
2048
|
+
Object.defineProperty(MatrixCellComponent.prototype, "question", {
|
|
2049
|
+
get: function () {
|
|
2050
|
+
return this.componentData.question;
|
|
2051
|
+
},
|
|
2052
|
+
enumerable: false,
|
|
2053
|
+
configurable: true
|
|
2054
|
+
});
|
|
2055
|
+
Object.defineProperty(MatrixCellComponent.prototype, "column", {
|
|
2056
|
+
get: function () {
|
|
2057
|
+
return this.componentData.column;
|
|
2058
|
+
},
|
|
2059
|
+
enumerable: false,
|
|
2060
|
+
configurable: true
|
|
2061
|
+
});
|
|
2062
|
+
Object.defineProperty(MatrixCellComponent.prototype, "row", {
|
|
2063
|
+
get: function () {
|
|
2064
|
+
return this.componentData.row;
|
|
2065
|
+
},
|
|
2066
|
+
enumerable: false,
|
|
2067
|
+
configurable: true
|
|
2068
|
+
});
|
|
2069
|
+
MatrixCellComponent.prototype.createModel = function () {
|
|
2070
|
+
if (this.componentData) {
|
|
2071
|
+
this.adorner = new surveyCreatorCore.MatrixCellWrapperViewModel(this.creator, null, this.question, this.row, this.column);
|
|
2072
|
+
}
|
|
2073
|
+
};
|
|
2074
|
+
MatrixCellComponent.prototype.getPropertiesToTrack = function () {
|
|
2075
|
+
return ["creator", "row", "column", "question"];
|
|
2076
|
+
};
|
|
2077
|
+
MatrixCellComponent.prototype.getModel = function () {
|
|
2078
|
+
return this.adorner;
|
|
2079
|
+
};
|
|
2080
|
+
return MatrixCellComponent;
|
|
2081
|
+
}(CreatorModelComponent));
|
|
2082
|
+
MatrixCellComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MatrixCellComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2083
|
+
MatrixCellComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixCellComponent, selector: "svc-matrix-cell", inputs: { componentName: "componentName", componentData: "componentData", contentTempl: "contentTempl" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div tabindex=\"-1\" class=\"svc-matrix-cell\" (click)=\"adorner.selectContext(adorner, $event)\" (mouseover)=\"adorner.hover($event, $event.currentTarget)\" (mouseleave)=\"adorner.hover($event, $event.currentTarget)\">\n <div class=\"svc-matrix-cell--selected\" [class.svc-visible]=\"adorner.isSelected\"></div>\n <ng-container *ngTemplateOutlet=\"contentTempl\"></ng-container>\n <div *ngIf=\"question\" class=\"svc-matrix-cell__question-controls\">\n <span class=\"svc-matrix-cell__question-controls-button\" (click)=\"adorner.editQuestion(adorner)\" [key2click]>\n <svg [iconName]=\"'icon-edit'\" [size]=\"24\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
2084
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MatrixCellComponent, decorators: [{
|
|
2085
|
+
type: i0.Component,
|
|
2086
|
+
args: [{
|
|
2087
|
+
selector: "svc-matrix-cell",
|
|
2088
|
+
templateUrl: "./matrix-cell.component.html",
|
|
2089
|
+
styles: [":host { display: none; }"]
|
|
2090
|
+
}]
|
|
2091
|
+
}], propDecorators: { componentName: [{
|
|
2092
|
+
type: i0.Input
|
|
2093
|
+
}], componentData: [{
|
|
2094
|
+
type: i0.Input
|
|
2095
|
+
}], contentTempl: [{
|
|
2096
|
+
type: i0.Input
|
|
2097
|
+
}] } });
|
|
2098
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-matrix-cell", MatrixCellComponent);
|
|
2099
|
+
|
|
2100
|
+
var QuestionEditorComponent = /** @class */ (function (_super) {
|
|
2101
|
+
__extends(QuestionEditorComponent, _super);
|
|
2102
|
+
function QuestionEditorComponent() {
|
|
2103
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2104
|
+
}
|
|
2105
|
+
Object.defineProperty(QuestionEditorComponent.prototype, "question", {
|
|
2106
|
+
get: function () {
|
|
2107
|
+
return this.survey.getAllQuestions()[0];
|
|
2108
|
+
},
|
|
2109
|
+
enumerable: false,
|
|
2110
|
+
configurable: true
|
|
2111
|
+
});
|
|
2112
|
+
Object.defineProperty(QuestionEditorComponent.prototype, "elementComponentName", {
|
|
2113
|
+
get: function () {
|
|
2114
|
+
return this.question.isPanel ? "panel" : "question";
|
|
2115
|
+
},
|
|
2116
|
+
enumerable: false,
|
|
2117
|
+
configurable: true
|
|
2118
|
+
});
|
|
2119
|
+
Object.defineProperty(QuestionEditorComponent.prototype, "componentName", {
|
|
2120
|
+
get: function () {
|
|
2121
|
+
var survey = this.survey;
|
|
2122
|
+
if (!!survey) {
|
|
2123
|
+
var name = survey.getElementWrapperComponentName(this.question);
|
|
2124
|
+
if (!!name) {
|
|
2125
|
+
return name;
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
return this.elementComponentName;
|
|
2129
|
+
},
|
|
2130
|
+
enumerable: false,
|
|
2131
|
+
configurable: true
|
|
2132
|
+
});
|
|
2133
|
+
Object.defineProperty(QuestionEditorComponent.prototype, "componentData", {
|
|
2134
|
+
get: function () {
|
|
2135
|
+
var survey = this.survey;
|
|
2136
|
+
var data;
|
|
2137
|
+
if (!!survey) {
|
|
2138
|
+
data = survey.getElementWrapperComponentData(this.question);
|
|
2139
|
+
}
|
|
2140
|
+
return {
|
|
2141
|
+
componentName: this.elementComponentName,
|
|
2142
|
+
componentData: {
|
|
2143
|
+
model: this.question,
|
|
2144
|
+
data: data
|
|
2145
|
+
}
|
|
2146
|
+
};
|
|
2147
|
+
},
|
|
2148
|
+
enumerable: false,
|
|
2149
|
+
configurable: true
|
|
2150
|
+
});
|
|
2151
|
+
return QuestionEditorComponent;
|
|
2152
|
+
}(i1.EmbeddedViewContentComponent));
|
|
2153
|
+
QuestionEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionEditorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2154
|
+
QuestionEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionEditorComponent, selector: "svc-question-editor-content", inputs: { survey: "survey" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n</ng-template>", directives: [{ type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2155
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionEditorComponent, decorators: [{
|
|
2156
|
+
type: i0.Component,
|
|
2157
|
+
args: [{
|
|
2158
|
+
selector: "svc-question-editor-content",
|
|
2159
|
+
templateUrl: "./question-editor.component.html"
|
|
2160
|
+
}]
|
|
2161
|
+
}], propDecorators: { survey: [{
|
|
2162
|
+
type: i0.Input
|
|
2163
|
+
}] } });
|
|
2164
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-question-editor-content", QuestionEditorComponent);
|
|
2165
|
+
|
|
2166
|
+
var CellQuestionComponent = /** @class */ (function (_super) {
|
|
2167
|
+
__extends(CellQuestionComponent, _super);
|
|
2168
|
+
function CellQuestionComponent() {
|
|
2169
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2170
|
+
}
|
|
2171
|
+
CellQuestionComponent.prototype.getModel = function () {
|
|
2172
|
+
return this.model;
|
|
2173
|
+
};
|
|
2174
|
+
Object.defineProperty(CellQuestionComponent.prototype, "model", {
|
|
2175
|
+
get: function () {
|
|
2176
|
+
return this.componentData.model;
|
|
2177
|
+
},
|
|
2178
|
+
enumerable: false,
|
|
2179
|
+
configurable: true
|
|
2180
|
+
});
|
|
2181
|
+
return CellQuestionComponent;
|
|
2182
|
+
}(i1.BaseAngular));
|
|
2183
|
+
CellQuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CellQuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2184
|
+
CellQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CellQuestionComponent, selector: "svc-cell-question", inputs: { componentName: "componentName", componentData: "componentData" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-question__adorner\">\n <div class=\"svc-question__content svc-question__content--selected-no-border\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2185
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CellQuestionComponent, decorators: [{
|
|
2186
|
+
type: i0.Component,
|
|
2187
|
+
args: [{
|
|
2188
|
+
selector: "svc-cell-question",
|
|
2189
|
+
templateUrl: "./cell-question.component.html",
|
|
2190
|
+
styles: [":host { display: none; }"]
|
|
2191
|
+
}]
|
|
2192
|
+
}], propDecorators: { componentName: [{
|
|
2193
|
+
type: i0.Input
|
|
2194
|
+
}], componentData: [{
|
|
2195
|
+
type: i0.Input
|
|
2196
|
+
}] } });
|
|
2197
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-cell-question", CellQuestionComponent);
|
|
2198
|
+
|
|
2199
|
+
var CellQuestionDropdownComponent = /** @class */ (function (_super) {
|
|
2200
|
+
__extends(CellQuestionDropdownComponent, _super);
|
|
2201
|
+
function CellQuestionDropdownComponent() {
|
|
2202
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2203
|
+
}
|
|
2204
|
+
CellQuestionDropdownComponent.prototype.getItemValueComponentName = function (item) {
|
|
2205
|
+
return this.model.getItemValueWrapperComponentName(item) || "sv-ng-selectbase-item";
|
|
2206
|
+
};
|
|
2207
|
+
CellQuestionDropdownComponent.prototype.getItemValueComponentData = function (item) {
|
|
2208
|
+
return {
|
|
2209
|
+
componentName: "sv-ng-selectbase-item",
|
|
2210
|
+
componentData: {
|
|
2211
|
+
question: this.model,
|
|
2212
|
+
model: item,
|
|
2213
|
+
inputType: "radio",
|
|
2214
|
+
data: this.model.getItemValueWrapperComponentData(item)
|
|
2215
|
+
}
|
|
2216
|
+
};
|
|
2217
|
+
};
|
|
2218
|
+
return CellQuestionDropdownComponent;
|
|
2219
|
+
}(CellQuestionComponent));
|
|
2220
|
+
CellQuestionDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CellQuestionDropdownComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2221
|
+
CellQuestionDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CellQuestionDropdownComponent, selector: "svc-cell-dropdown-question", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-question__adorner\">\n <div class=\"svc-question__content svc-question__content--selected-no-border\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n <div class=\"svc-question__dropdown-choices\">\n <div *ngFor=\"let item of model.visibleChoices\"class=\"svc-question__dropdown-choice\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </div>\n </div>\n\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2222
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CellQuestionDropdownComponent, decorators: [{
|
|
2223
|
+
type: i0.Component,
|
|
2224
|
+
args: [{
|
|
2225
|
+
selector: "svc-cell-dropdown-question",
|
|
2226
|
+
templateUrl: "./cell-question-dropdown.component.html",
|
|
2227
|
+
styles: [":host { display: none; }"]
|
|
2228
|
+
}]
|
|
2229
|
+
}] });
|
|
2230
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-cell-dropdown-question", CellQuestionDropdownComponent);
|
|
2231
|
+
|
|
2232
|
+
var CreatorRowComponent = /** @class */ (function (_super) {
|
|
2233
|
+
__extends(CreatorRowComponent, _super);
|
|
2234
|
+
function CreatorRowComponent() {
|
|
2235
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2236
|
+
}
|
|
2237
|
+
Object.defineProperty(CreatorRowComponent.prototype, "row", {
|
|
2238
|
+
get: function () {
|
|
2239
|
+
return this.componentData.row;
|
|
2240
|
+
},
|
|
2241
|
+
enumerable: false,
|
|
2242
|
+
configurable: true
|
|
2243
|
+
});
|
|
2244
|
+
Object.defineProperty(CreatorRowComponent.prototype, "creator", {
|
|
2245
|
+
get: function () {
|
|
2246
|
+
return this.componentData.creator;
|
|
2247
|
+
},
|
|
2248
|
+
enumerable: false,
|
|
2249
|
+
configurable: true
|
|
2250
|
+
});
|
|
2251
|
+
CreatorRowComponent.prototype.getModel = function () {
|
|
2252
|
+
return this.model;
|
|
2253
|
+
};
|
|
2254
|
+
CreatorRowComponent.prototype.createModel = function () {
|
|
2255
|
+
this.model = new surveyCreatorCore.RowViewModel(this.creator, this.row, undefined);
|
|
2256
|
+
};
|
|
2257
|
+
CreatorRowComponent.prototype.getPropertiesToTrack = function () {
|
|
2258
|
+
return ["creator", "row"];
|
|
2259
|
+
};
|
|
2260
|
+
return CreatorRowComponent;
|
|
2261
|
+
}(CreatorModelComponent));
|
|
2262
|
+
CreatorRowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorRowComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2263
|
+
CreatorRowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CreatorRowComponent, selector: "svc-row", inputs: { componentData: "componentData" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.cssClasses\">\n <sv-ng-row [row]=\"row\"></sv-ng-row>\n </div>\n</ng-template>", components: [{ type: i1__namespace.RowComponent, selector: "sv-ng-row", inputs: ["row"] }] });
|
|
2264
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorRowComponent, decorators: [{
|
|
2265
|
+
type: i0.Component,
|
|
2266
|
+
args: [{
|
|
2267
|
+
selector: "svc-row",
|
|
2268
|
+
templateUrl: "./row.component.html"
|
|
2269
|
+
}]
|
|
2270
|
+
}], propDecorators: { componentData: [{
|
|
2271
|
+
type: i0.Input
|
|
2272
|
+
}] } });
|
|
2273
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-row", CreatorRowComponent);
|
|
2274
|
+
|
|
2275
|
+
var QuestionWidgetDesignerComponent = /** @class */ (function (_super) {
|
|
2276
|
+
__extends(QuestionWidgetDesignerComponent, _super);
|
|
2277
|
+
function QuestionWidgetDesignerComponent() {
|
|
2278
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2279
|
+
}
|
|
2280
|
+
QuestionWidgetDesignerComponent.prototype.createModel = function () {
|
|
2281
|
+
if (this.componentData) {
|
|
2282
|
+
this.adorner = new surveyCreatorCore.QuestionAdornerViewModel(this.creator, this.model, null);
|
|
2283
|
+
}
|
|
2284
|
+
};
|
|
2285
|
+
return QuestionWidgetDesignerComponent;
|
|
2286
|
+
}(QuestionDesignerComponent));
|
|
2287
|
+
QuestionWidgetDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionWidgetDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2288
|
+
QuestionWidgetDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionWidgetDesignerComponent, selector: "svc-widget-question", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"adorner\" class=\"svc-question__adorner\" [class]=\"adorner.rootCss()\" (mouseover)=\"adorner.hover($event, $event.currentTarget)\" (mouseleave)=\"adorner.hover($event, $event.currentTarget)\" [attr.data-sv-drop-target-survey-element]=\"adorner.element.name || null\">\n <div *ngIf=\"adorner.element.isInteractiveDesignElement\" class=\"svc-question__content\" [class]=\"adorner.css()\" [key2click] (click)=\"adorner.select(adorner, $event)\" data-bind=\"clickBubble: false\">\n <div *ngIf=\"adorner.allowDragging\" class=\"svc-question__drag-area\" (pointerdown)=\"adorner.onPointerDown($event)\">\n <svg class=\"svc-question__drag-element\" [iconName]=\"'icon-drag-area-indicator_24x16'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </div>\n <div class=\"svc-widget__content\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n <div class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\" data-bind=\"text: placeholderText\"></div>\n </div>\n <div class=\"svc-question__content-actions\">\n <sv-action-bar [model]=\"adorner.actionContainer\" [handleClick]=\"false\"></sv-action-bar>\n </div>\n </div>\n\n <ng-container *ngIf=\"!adorner.element.isInteractiveDesignElement\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n </div>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2289
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionWidgetDesignerComponent, decorators: [{
|
|
2290
|
+
type: i0.Component,
|
|
2291
|
+
args: [{
|
|
2292
|
+
selector: "svc-widget-question",
|
|
2293
|
+
templateUrl: "./question-widget.component.html",
|
|
2294
|
+
styles: [":host { display: none; }"]
|
|
2295
|
+
}]
|
|
2296
|
+
}] });
|
|
2297
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-widget-question", QuestionWidgetDesignerComponent);
|
|
2298
|
+
|
|
2299
|
+
var ToolboxComponent = /** @class */ (function (_super) {
|
|
2300
|
+
__extends(ToolboxComponent, _super);
|
|
2301
|
+
function ToolboxComponent() {
|
|
2302
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2303
|
+
}
|
|
2304
|
+
Object.defineProperty(ToolboxComponent.prototype, "toolbox", {
|
|
2305
|
+
get: function () {
|
|
2306
|
+
return this.model.toolbox;
|
|
2307
|
+
},
|
|
2308
|
+
enumerable: false,
|
|
2309
|
+
configurable: true
|
|
2310
|
+
});
|
|
2311
|
+
ToolboxComponent.prototype.getModel = function () {
|
|
2312
|
+
return this.toolbox;
|
|
2313
|
+
};
|
|
2314
|
+
return ToolboxComponent;
|
|
2315
|
+
}(i1.BaseAngular));
|
|
2316
|
+
ToolboxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2317
|
+
ToolboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ToolboxComponent, selector: "svc-toolbox", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-toolbox\">\n <div class=\"svc-toolbox__container\">\n <ng-container *ngIf=\"!(toolbox.categories.length == 1 || !toolbox.showCategoryTitles)\">\n <svc-toolbox-category *ngFor=\"let category of toolbox.categories\" [category]=\"category\" [toolbox]=\"toolbox\"></svc-toolbox-category>\n </ng-container>\n <ng-container *ngIf=\"toolbox.categories.length == 1 || !toolbox.showCategoryTitles\">\n <div class=\"svc-toolbox__category\">\n <svc-toolbox-tool *ngFor=\"let item of toolbox.visibleActions\" [creator]=\"model\" [item]=\"item\" [isCompact]=\"toolbox.isCompact\"></svc-toolbox-tool>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: ToolboxCategoryComponent, selector: "svc-toolbox-category ", inputs: ["category", "toolbox"] }, { type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: ["creator", "item", "isCompact"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2318
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ToolboxComponent, decorators: [{
|
|
2319
|
+
type: i0.Component,
|
|
2320
|
+
args: [{
|
|
2321
|
+
selector: "svc-toolbox",
|
|
2322
|
+
templateUrl: "./toolbox.component.html",
|
|
2323
|
+
styles: [":host { display: none; }"]
|
|
2324
|
+
}]
|
|
2325
|
+
}], propDecorators: { model: [{
|
|
2326
|
+
type: i0.Input
|
|
2327
|
+
}] } });
|
|
2328
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-toolbox", ToolboxComponent);
|
|
2329
|
+
|
|
2330
|
+
var QuestionRatingDesignerComponent = /** @class */ (function (_super) {
|
|
2331
|
+
__extends(QuestionRatingDesignerComponent, _super);
|
|
2332
|
+
function QuestionRatingDesignerComponent() {
|
|
2333
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2334
|
+
_this.adornerComponent = "";
|
|
2335
|
+
return _this;
|
|
2336
|
+
}
|
|
2337
|
+
return QuestionRatingDesignerComponent;
|
|
2338
|
+
}(QuestionDesignerComponent));
|
|
2339
|
+
QuestionRatingDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionRatingDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2340
|
+
QuestionRatingDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionRatingDesignerComponent, selector: "svc-rating-question", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"adorner\" class=\"svc-question__adorner\" [class]=\"adorner.rootCss()\"\n (mouseover)=\"adorner.hover($event, $event.currentTarget)\" (mouseleave)=\"adorner.hover($event, $event.currentTarget)\"\n [attr.data-sv-drop-target-survey-element]=\"adorner.element.name || null\" #container>\n\n <div *ngIf=\"adorner.element.isInteractiveDesignElement\" class=\"svc-question__content\" [class]=\"adorner.css()\"\n [key2click] (click)=\"adorner.select(adorner, $event)\" data-bind=\"clickBubble: false\">\n <div *ngIf=\"adorner.allowDragging\" class=\"svc-question__drag-area\" (pointerdown)=\"adorner.onPointerDown($event)\">\n <svg class=\"svc-question__drag-element\" [iconName]=\"'icon-drag-area-indicator_24x16'\" [size]=\"24\"\n sv-ng-svg-icon></svg>\n </div>\n\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.element.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <ng-template *ngIf=\"adornerComponent\"\n [component]=\"{ name: adornerComponent, data: { adorner: adorner, question: model } }\">\n </ng-template>\n <!-- ko if: adornerComponent -->\n <!-- ko component: { name: adornerComponent, params: { model: $data } } -->\n <!-- /ko -->\n <!-- /ko -->\n\n <div *ngIf=\"!adorner.isEmptyElement && model.isPanel && adorner.showAddQuestionButton\"\n class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n <div class=\"svc-question__content-actions\">\n <sv-action-bar [model]=\"adorner.actionContainer\" [handleClick]=\"false\"></sv-action-bar>\n </div>\n </div>\n\n <ng-container *ngIf=\"!adorner.element.isInteractiveDesignElement\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n <div *ngIf=\"adorner.isEmptyElement\" class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{ adorner.placeholderText }}</div>\n <div *ngIf=\"adorner.showAddQuestionButton\" class=\"svc-panel__add-new-question svc-action-button\" [key2click]\n (click)=\"addNewQuestion($event)\" data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n </div>\n\n <div *ngIf=\"!adorner.isEmptyElement\" class=\"svc-panel__add-new-question-container\">\n <div class=\"svc-panel__add-new-question svc-action-button\" [key2click] (click)=\"addNewQuestion($event)\"\n data-bind=\"clickBubble: false\">\n <span class=\"svc-text svc-text--normal svc-text--bold\">\n {{ adorner.addNewQuestionText }}\n </span>\n </div>\n <!-- ko with: questionTypeSelectorModel -->\n <button type=\"button\" [attr.title]=\"adorner.addNewQuestionText\" [key2click] (click)=\"selectQuestionType($event)\"\n class=\"svc-panel__question-type-selector\">\n <svg class=\"svc-panel__question-type-selector-icon\" [iconName]=\"adorner.questionTypeSelectorModel.iconName\"\n [size]=\"24\" sv-ng-svg-icon></svg>\n <sv-ng-popup [popupModel]=\"adorner.questionTypeSelectorModel.popupModel\"></sv-ng-popup>\n </button>\n <!-- /ko -->\n </div>\n\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2341
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionRatingDesignerComponent, decorators: [{
|
|
2342
|
+
type: i0.Component,
|
|
2343
|
+
args: [{
|
|
2344
|
+
selector: "svc-rating-question",
|
|
2345
|
+
templateUrl: "../question.component.html",
|
|
2346
|
+
styles: [":host { display: none; }"]
|
|
2347
|
+
}]
|
|
2348
|
+
}] });
|
|
2349
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-rating-question", QuestionRatingDesignerComponent);
|
|
2350
|
+
var QuestionRatingAdornerDesignerComponent = /** @class */ (function (_super) {
|
|
2351
|
+
__extends(QuestionRatingAdornerDesignerComponent, _super);
|
|
2352
|
+
function QuestionRatingAdornerDesignerComponent() {
|
|
2353
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2354
|
+
}
|
|
2355
|
+
QuestionRatingAdornerDesignerComponent.prototype.createModel = function () {
|
|
2356
|
+
if (this.componentData) {
|
|
2357
|
+
this.adorner = new surveyCreatorCore.QuestionRatingAdornerViewModel(this.componentData.data, this.componentData.model, null);
|
|
2358
|
+
}
|
|
2359
|
+
};
|
|
2360
|
+
QuestionRatingAdornerDesignerComponent.prototype.getPropertiesToTrack = function () {
|
|
2361
|
+
return ["model", "creator"];
|
|
2362
|
+
};
|
|
2363
|
+
QuestionRatingAdornerDesignerComponent.prototype.getModel = function () {
|
|
2364
|
+
return this.adorner;
|
|
2365
|
+
};
|
|
2366
|
+
return QuestionRatingAdornerDesignerComponent;
|
|
2367
|
+
}(CreatorModelComponent));
|
|
2368
|
+
QuestionRatingAdornerDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionRatingAdornerDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2369
|
+
QuestionRatingAdornerDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionRatingAdornerDesignerComponent, selector: "svc-rating-question-content", inputs: { componentName: "componentName", componentData: "componentData" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-rating-question-content\">\n <div class=\"svc-rating-question-controls svc-item-value-controls\">\n <svg *ngIf=\"adorner.allowRemove\" [iconName]=\"'icon-remove_16x16'\" [size]=\"16\" [key2click] (click)=\"adorner.removeItem(adorner)\"\n class=\"svc-item-value-controls__button svc-item-value-controls__remove\" [attr.title]=\"adorner.removeTooltip\" [attr.aria-label]=\"adorner.removeTooltip\" sv-ng-svg-icon></svg>\n <svg *ngIf=\"adorner.allowAdd\" [iconName]=\"'icon-add_16x16'\" [size]=\"16\" [key2click] (click)=\"adorner.addItem(adorner)\"\n class=\"svc-item-value-controls__button svc-item-value-controls__add\" [attr.title]=\"adorner.addTooltip\" [attr.aria-label]=\"adorner.addTooltip\"sv-ng-svg-icon></svg>\n </div>\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2370
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionRatingAdornerDesignerComponent, decorators: [{
|
|
2371
|
+
type: i0.Component,
|
|
2372
|
+
args: [{
|
|
2373
|
+
selector: "svc-rating-question-content",
|
|
2374
|
+
templateUrl: "./question-rating.component.html",
|
|
2375
|
+
styles: [":host { display: none; }"]
|
|
2376
|
+
}]
|
|
2377
|
+
}], propDecorators: { componentName: [{
|
|
2378
|
+
type: i0.Input
|
|
2379
|
+
}], componentData: [{
|
|
2380
|
+
type: i0.Input
|
|
2381
|
+
}] } });
|
|
2382
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-rating-question-content", QuestionRatingAdornerDesignerComponent);
|
|
2383
|
+
|
|
2384
|
+
var CreatorLogoImageComponent = /** @class */ (function (_super) {
|
|
2385
|
+
__extends(CreatorLogoImageComponent, _super);
|
|
2386
|
+
function CreatorLogoImageComponent() {
|
|
2387
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2388
|
+
}
|
|
2389
|
+
CreatorLogoImageComponent.prototype.createModel = function () {
|
|
2390
|
+
this.model = new surveyCreatorCore.LogoImageViewModel(this.creator, null);
|
|
2391
|
+
};
|
|
2392
|
+
CreatorLogoImageComponent.prototype.getModel = function () {
|
|
2393
|
+
return this.model;
|
|
2394
|
+
};
|
|
2395
|
+
CreatorLogoImageComponent.prototype.getPropertiesToTrack = function () {
|
|
2396
|
+
return ["data"];
|
|
2397
|
+
};
|
|
2398
|
+
Object.defineProperty(CreatorLogoImageComponent.prototype, "creator", {
|
|
2399
|
+
get: function () {
|
|
2400
|
+
return this.data;
|
|
2401
|
+
},
|
|
2402
|
+
enumerable: false,
|
|
2403
|
+
configurable: true
|
|
2404
|
+
});
|
|
2405
|
+
Object.defineProperty(CreatorLogoImageComponent.prototype, "survey", {
|
|
2406
|
+
get: function () {
|
|
2407
|
+
return this.creator.survey;
|
|
2408
|
+
},
|
|
2409
|
+
enumerable: false,
|
|
2410
|
+
configurable: true
|
|
2411
|
+
});
|
|
2412
|
+
CreatorLogoImageComponent.prototype.ngAfterViewInit = function () {
|
|
2413
|
+
this.model.root = this.container.nativeElement;
|
|
2414
|
+
};
|
|
2415
|
+
return CreatorLogoImageComponent;
|
|
2416
|
+
}(CreatorModelComponent));
|
|
2417
|
+
CreatorLogoImageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorLogoImageComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2418
|
+
CreatorLogoImageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CreatorLogoImageComponent, selector: "svc-logo-image", inputs: { data: "data" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-logo-image\" #container>\n <input type=\"file\" aria-hidden=\"true\" tabindex=\"-1\" accept=\"image/*\" class=\"svc-choose-file-input\" />\n <ng-container *ngIf=\"!survey.locLogo.renderedHtml\">\n <ng-container *ngIf=\"model.allowEdit\">\n <div class=\"svc-logo-image-placeholder\" (click)=\"model.chooseFile(model)\" [key2click]>\n <svg>\n <use xlink:href=\"#icon-logo\"></use>\n </svg>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"survey.locLogo.renderedHtml\">\n <div [class]=\"model.containerCss\" (click)=\"model.chooseFile(model)\" [key2click]>\n <sv-logo-image [data]=\"survey\"></sv-logo-image>\n </div>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.LogoImageComponent, selector: "sv-logo-image", inputs: ["data"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
2419
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorLogoImageComponent, decorators: [{
|
|
2420
|
+
type: i0.Component,
|
|
2421
|
+
args: [{
|
|
2422
|
+
selector: "svc-logo-image",
|
|
2423
|
+
templateUrl: "./logo-image.component.html",
|
|
2424
|
+
styles: [":host { display: none; }"]
|
|
2425
|
+
}]
|
|
2426
|
+
}], propDecorators: { data: [{
|
|
2427
|
+
type: i0.Input
|
|
2428
|
+
}], container: [{
|
|
2429
|
+
type: i0.ViewChild,
|
|
2430
|
+
args: ["container", { read: i0.ElementRef }]
|
|
2431
|
+
}] } });
|
|
2432
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-logo-image", CreatorLogoImageComponent);
|
|
2433
|
+
|
|
2434
|
+
var SurveyCreatorModule = /** @class */ (function () {
|
|
2435
|
+
function SurveyCreatorModule() {
|
|
2436
|
+
}
|
|
2437
|
+
return SurveyCreatorModule;
|
|
2438
|
+
}());
|
|
2439
|
+
SurveyCreatorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2440
|
+
SurveyCreatorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, declarations: [CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, SvgBundleComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarTabComponent, ObjectSelectorComponent, PropertyGridComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent,
|
|
2441
|
+
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
2442
|
+
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
2443
|
+
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
|
|
2444
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent], imports: [i2.CommonModule, i1$1.FormsModule, i1.SurveyModule], exports: [CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, SvgBundleComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarTabComponent, ObjectSelectorComponent, PropertyGridComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent,
|
|
2445
|
+
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
2446
|
+
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
2447
|
+
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
|
|
2448
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent] });
|
|
2449
|
+
SurveyCreatorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, providers: [], imports: [[
|
|
2450
|
+
i2.CommonModule, i1$1.FormsModule, i1.SurveyModule
|
|
2451
|
+
]] });
|
|
2452
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, decorators: [{
|
|
2453
|
+
type: i0.NgModule,
|
|
2454
|
+
args: [{
|
|
2455
|
+
declarations: [CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, SvgBundleComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarTabComponent, ObjectSelectorComponent, PropertyGridComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent,
|
|
2456
|
+
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
2457
|
+
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
2458
|
+
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
|
|
2459
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent],
|
|
2460
|
+
imports: [
|
|
2461
|
+
i2.CommonModule, i1$1.FormsModule, i1.SurveyModule
|
|
2462
|
+
],
|
|
2463
|
+
exports: [
|
|
2464
|
+
CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, SvgBundleComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarTabComponent, ObjectSelectorComponent, PropertyGridComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent,
|
|
2465
|
+
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
2466
|
+
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
2467
|
+
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
|
|
2468
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent
|
|
2469
|
+
],
|
|
2470
|
+
providers: [],
|
|
2471
|
+
}]
|
|
2472
|
+
}] });
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* Generated bundle index. Do not edit.
|
|
2476
|
+
*/
|
|
2477
|
+
|
|
2478
|
+
exports.AceJsonEditorComponent = AceJsonEditorComponent;
|
|
2479
|
+
exports.ActionButtonComponent = ActionButtonComponent;
|
|
2480
|
+
exports.AdaptiveToolboxComponent = AdaptiveToolboxComponent;
|
|
2481
|
+
exports.CellQuestionComponent = CellQuestionComponent;
|
|
2482
|
+
exports.CellQuestionDropdownComponent = CellQuestionDropdownComponent;
|
|
2483
|
+
exports.CreatorComponent = CreatorComponent;
|
|
2484
|
+
exports.CreatorLogoImageComponent = CreatorLogoImageComponent;
|
|
2485
|
+
exports.CreatorRowComponent = CreatorRowComponent;
|
|
2486
|
+
exports.DesignerPagesComponent = DesignerPagesComponent;
|
|
2487
|
+
exports.DesignerSurveyComponent = DesignerSurveyComponent;
|
|
2488
|
+
exports.DesignerTabComponent = DesignerTabComponent;
|
|
2489
|
+
exports.EmbeddedSurveyQuestionComponent = EmbeddedSurveyQuestionComponent;
|
|
2490
|
+
exports.ImageItemValueDesignerComponent = ImageItemValueDesignerComponent;
|
|
2491
|
+
exports.ItemValueDesignerComponent = ItemValueDesignerComponent;
|
|
2492
|
+
exports.LinkValueQuestionComponent = LinkValueQuestionComponent;
|
|
2493
|
+
exports.LogicAddButtonComponent = LogicAddButtonComponent;
|
|
2494
|
+
exports.LogicOperatorComponent = LogicOperatorComponent;
|
|
2495
|
+
exports.LogicTabComponent = LogicTabComponent;
|
|
2496
|
+
exports.MatrixCellComponent = MatrixCellComponent;
|
|
2497
|
+
exports.ObjectSelectorComponent = ObjectSelectorComponent;
|
|
2498
|
+
exports.PageDesignerComponent = PageDesignerComponent;
|
|
2499
|
+
exports.PageNavigatorComponent = PageNavigatorComponent;
|
|
2500
|
+
exports.PageNavigatorItemComponent = PageNavigatorItemComponent;
|
|
2501
|
+
exports.PanelDesignerComponent = PanelDesignerComponent;
|
|
2502
|
+
exports.PropertyGridComponent = PropertyGridComponent;
|
|
2503
|
+
exports.QuestionDesignerComponent = QuestionDesignerComponent;
|
|
2504
|
+
exports.QuestionDropdownAdornerDesignerComponent = QuestionDropdownAdornerDesignerComponent;
|
|
2505
|
+
exports.QuestionDropdownDesignerComponent = QuestionDropdownDesignerComponent;
|
|
2506
|
+
exports.QuestionEditorComponent = QuestionEditorComponent;
|
|
2507
|
+
exports.QuestionImageAdornerDesignerComponent = QuestionImageAdornerDesignerComponent;
|
|
2508
|
+
exports.QuestionImageDesignerComponent = QuestionImageDesignerComponent;
|
|
2509
|
+
exports.QuestionRatingAdornerDesignerComponent = QuestionRatingAdornerDesignerComponent;
|
|
2510
|
+
exports.QuestionRatingDesignerComponent = QuestionRatingDesignerComponent;
|
|
2511
|
+
exports.QuestionWidgetDesignerComponent = QuestionWidgetDesignerComponent;
|
|
2512
|
+
exports.SidebarComponent = SidebarComponent;
|
|
2513
|
+
exports.SidebarTabComponent = SidebarTabComponent;
|
|
2514
|
+
exports.SimulatorComponent = SimulatorComponent;
|
|
2515
|
+
exports.StringEditorComponent = StringEditorComponent;
|
|
2516
|
+
exports.SurveyCreatorModule = SurveyCreatorModule;
|
|
2517
|
+
exports.SurveyResultsComponent = SurveyResultsComponent;
|
|
2518
|
+
exports.SurveyResultsTableRowComponent = SurveyResultsTableRowComponent;
|
|
2519
|
+
exports.SvgBundleComponent = SvgBundleComponent;
|
|
2520
|
+
exports.TabbedMenuItemComponent = TabbedMenuItemComponent;
|
|
2521
|
+
exports.TabbedMenuItemWrapperComponent = TabbedMenuItemWrapperComponent;
|
|
2522
|
+
exports.TabbledMenuComponent = TabbledMenuComponent;
|
|
2523
|
+
exports.TestAgainActionComponent = TestAgainActionComponent;
|
|
2524
|
+
exports.TestTabComponent = TestTabComponent;
|
|
2525
|
+
exports.TextareaJsonEditorComponent = TextareaJsonEditorComponent;
|
|
2526
|
+
exports.ToolboxCategoryComponent = ToolboxCategoryComponent;
|
|
2527
|
+
exports.ToolboxComponent = ToolboxComponent;
|
|
2528
|
+
exports.ToolboxItemComponent = ToolboxItemComponent;
|
|
2529
|
+
exports.ToolboxToolComponent = ToolboxToolComponent;
|
|
2530
|
+
exports.TranslationSkeletonComponent = TranslationSkeletonComponent;
|
|
2531
|
+
exports.TranslationTabComponent = TranslationTabComponent;
|
|
2532
|
+
|
|
2533
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2534
|
+
|
|
2535
|
+
}));
|
|
2536
|
+
//# sourceMappingURL=survey-creator-angular.umd.js.map
|