Skip to content

Commit

Permalink
Merge branch 'master' into feature/vue3
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Jan 30, 2023
2 parents 749afb6 + 7f2536b commit ed06a9a
Show file tree
Hide file tree
Showing 313 changed files with 7,511 additions and 1,697 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.9.70](https://github.com/surveyjs/survey-library/compare/v1.9.69...v1.9.70) (2023-01-24)

### [1.9.69](https://github.com/surveyjs/survey-library/compare/v1.9.68...v1.9.69) (2023-01-17)

### [1.9.68](https://github.com/surveyjs/survey-library/compare/v1.9.67...v1.9.68) (2023-01-11)

### [1.9.67](https://github.com/surveyjs/survey-library/compare/v1.9.66...v1.9.67) (2023-01-05)

### [1.9.66](https://github.com/surveyjs/survey-library/compare/v1.9.65...v1.9.66) (2022-12-30)
Expand Down
3 changes: 1 addition & 2 deletions build-scripts/survey-angular/tsconfig.typing.angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": true,
"outFile": "../../build/survey-angular/survey-angular.d.ts"
"skipLibCheck": true
},
"include": [
"../../src/entries/angular.ts"
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/survey-angular/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const config = {
plugins: [
new DtsGeneratorPlugin({
tsConfigPath: "./build-scripts/survey-angular/tsconfig.typing.angular.json",
filePath: "build/survey-angular/survey-angular.d.ts",
filePath: "build/survey-angular/survey.angular.d.ts",
moduleName: "survey-angular",
importName: "entries/angular"
}),
Expand Down
12 changes: 6 additions & 6 deletions build-scripts/survey-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
"survey.core.min.js",
"survey.i18n.js",
"survey.i18n.min.js",
"bootstrap-integration.d.ts",
"bootstrap-integration.js",
"bootstrap-integration.min.js",
"bootstrap-material-integration.d.ts",
"bootstrap-material-integration.js",
"bootstrap-material-integration.min.js"
"plugins/bootstrap-integration.d.ts",
"plugins/bootstrap-integration.js",
"plugins/bootstrap-integration.min.js",
"plugins/bootstrap-material-integration.d.ts",
"plugins/bootstrap-material-integration.js",
"plugins/bootstrap-material-integration.min.js"
],
"main": "survey.core.js",
"repository": {
Expand Down
3 changes: 1 addition & 2 deletions build-scripts/survey-core/tsconfig.typing.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": true,
"outFile": "../../build/survey-core/survey.core.d.ts"
"skipLibCheck": true
},
"include": [
"../../src/entries/core.ts"
Expand Down
3 changes: 1 addition & 2 deletions build-scripts/survey-jquery/tsconfig.typing.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": true,
"outFile": "../../build/survey-jquery/survey-jquery.d.ts"
"skipLibCheck": true
},
"include": [
"../../src/entries/jquery.ts"
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/survey-jquery/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const config = {
plugins: [
new DtsGeneratorPlugin({
tsConfigPath: "./build-scripts/survey-jquery/tsconfig.typing.jquery.json",
filePath: "build/survey-jquery/survey-jquery.d.ts",
filePath: "build/survey-jquery/survey.jquery.d.ts",
moduleName: "survey-jquery",
importName: "entries/jquery"
}),
Expand Down
3 changes: 1 addition & 2 deletions build-scripts/survey-knockout-ui/tsconfig.typing.ko-ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": true,
"outFile": "../../build/survey-knockout-ui/survey-knockout-ui.d.ts"
"skipLibCheck": true
},
"include": [
"../../src/entries/knockout-ui-model.ts"
Expand Down
3 changes: 1 addition & 2 deletions build-scripts/survey-knockout/tsconfig.typing.ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": true,
"outFile": "../../build/survey-knockout/survey-knockout.d.ts"
"skipLibCheck": true
},
"include": [
"../../src/entries/knockout.ts"
Expand Down
4 changes: 2 additions & 2 deletions build-scripts/survey-knockout/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
entry: {
survey: path.resolve(__dirname, "../../src/main.scss"),
modern: path.resolve(__dirname, "../../src/modern.scss"),
defaultV2: path.resolve(__dirname, "../../src/defaultV2-theme/defaultV2.scss")
defaultV2: path.resolve(__dirname, "../../src/defaultV2-theme/defaultV2.scss")
},
externals: {
knockout: {
Expand All @@ -23,7 +23,7 @@ const config = {
plugins: [
new DtsGeneratorPlugin({
tsConfigPath: "./build-scripts/survey-knockout/tsconfig.typing.ko.json",
filePath: "build/survey-knockout/survey-knockout.d.ts",
filePath: "build/survey-knockout/survey.ko.d.ts",
moduleName: "survey-knockout",
importName: "entries/knockout"
}),
Expand Down
3 changes: 1 addition & 2 deletions build-scripts/survey-react-ui/tsconfig.typing.react-ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"jsx": "react",
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": true,
"outFile": "../../build/survey-react-ui/survey-react-ui.d.ts"
"skipLibCheck": true
},
"include": [
"../../src/entries/react-ui-model.ts"
Expand Down
3 changes: 1 addition & 2 deletions build-scripts/survey-react/tsconfig.typing.react.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"jsx": "react",
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": true,
"outFile": "../../build/survey-react/survey-react.d.ts"
"skipLibCheck": true
},
"include": [
"../../src/entries/react.ts"
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/survey-react/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
plugins: [
new DtsGeneratorPlugin({
tsConfigPath: "./build-scripts/survey-react/tsconfig.typing.react.json",
filePath: "build/survey-react/survey-react.d.ts",
filePath: "build/survey-react/survey.react.d.ts",
moduleName: "survey-react",
importName: "entries/react"
}),
Expand Down
3 changes: 1 addition & 2 deletions build-scripts/survey-vue-ui/tsconfig.typing.vue-ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"emitDeclarationOnly": true,
"skipLibCheck": true,
"experimentalDecorators": true,
"moduleResolution": "Node",
"outFile": "../../build/survey-vue-ui/survey-vue-ui.d.ts",
"moduleResolution": "Node"
},
"include": [
"../../src/entries/vue-ui-model.ts"
Expand Down
3 changes: 1 addition & 2 deletions build-scripts/survey-vue/tsconfig.typing.vue.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"skipLibCheck": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "Node",
"outFile": "../../build/survey-vue/survey-vue.d.ts",
"moduleResolution": "Node"
},
"include": [
"../../src/entries/vue.ts"
Expand Down
14 changes: 7 additions & 7 deletions build-scripts/survey-vue/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ const config = {
defaultV2: path.resolve(__dirname, "../../src/defaultV2-theme/defaultV2.scss")
},
externals: {
vue: {
root: "Vue",
commonjs2: "vue",
commonjs: "vue",
amd: "vue"
}
vue: {
root: "Vue",
commonjs2: "vue",
commonjs: "vue",
amd: "vue"
}
},
plugins: [
new DtsGeneratorPlugin({
tsCommand: "vue-tsc --project",
tsConfigPath: "./build-scripts/survey-vue/tsconfig.typing.vue.json",
filePath: "build/survey-vue/survey-vue.d.ts",
filePath: "build/survey-vue/survey.vue.d.ts",
moduleName: "survey-vue",
importName: "entries/vue"
}),
Expand Down
6 changes: 3 additions & 3 deletions build-scripts/webpack-dts-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ const fs = require('fs');
const child_process = require('child_process');

module.exports = function DtsGeneratorProgressPlugin(options) {
return new webpack.ProgressPlugin(function(progress) {
return new webpack.ProgressPlugin(function (progress) {
if (progress === 1) {
console.log("typescript start");
const tsConfigPath = options.tsConfigPath || "tsconfig.typing.json";
const tsCommand = options.tsCommand || "tsc --p";
const command = tsCommand + " " + tsConfigPath;
const command = tsCommand + " " + tsConfigPath + " --outFile " + options.filePath;
console.log("tsc command is \"" + command + "\"");
child_process.execSync(command);
console.log("typescript end");

const content = "\ndeclare module \"" + options.moduleName + "\" { import main = require(\"" + options.importName + "\"); export = main; }";
console.log("\"" + content + "\"");
fs.writeFile(options.filePath, content, { flag: 'a' }, err => { if(err) { console.error(err); } });
fs.writeFile(options.filePath, content, { flag: 'a' }, err => { if (err) { console.error(err); } });
}
});
};
2 changes: 1 addition & 1 deletion doc_generator/lib_docgenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ doc.setJsonObj(Survey.Serializer);

doc.generateDocumentation(process.argv.slice(2), {
target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
});
}, { generateJSONDefinition: true });
2 changes: 2 additions & 0 deletions docs/design-survey-conditional-logic.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ const surveyJson = {
};
```

In single- and multiple-selection question types (Dropdown, Checkbox, Radiogroup, Tag Box, Image Picker), items can contain a display value in addition to a question value. In this case, placeholders are replaced with display values. If you want to use question values instead, disable the [`useDisplayValuesInDynamicTexts`](https://surveyjs.io/form-library/documentation/api-reference/question#useDisplayValuesInDynamicTexts) property.

Certain question types can contain multiple values. Use a dot symbol to access a specific value (item or cell):

| Question Type | Syntax |
Expand Down
2 changes: 1 addition & 1 deletion docs/design-survey-create-a-simple-survey.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This article illustrates a SurveyJS survey structure and the different ways you

A survey consists of one or several pages. A page can contain panels and questions. Panels are used to group questions and control them as one. A panel can contain other panels and questions (nested panels are supported). The following image illustrates this structure:

<img src="images/survey-structure.svg" width="860" alt="SurveyJS: Survey Structure">
<img src="../images/survey-structure.svg" width="860" alt="SurveyJS: Survey Structure">

## Create a Survey Model

Expand Down
2 changes: 1 addition & 1 deletion docs/design-survey-pre-populate-form-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ survey.data = {
}
```

The code above *replaces* the old `data` object and erases entered data if there was any. If you want to *merge* the new and old objects, call the [`mergeData(newDataObj)`](https://surveyjs.io/form-library/documentation/surveymodel#mergeData) method:
The code above *replaces* the old `data` object and erases default question values and entered data. If you want to *merge* the new and old objects, call the [`mergeData(newDataObj)`](https://surveyjs.io/form-library/documentation/surveymodel#mergeData) method:

```js
import { Model } from "survey-core";
Expand Down
28 changes: 4 additions & 24 deletions docs/get-started-angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,7 @@ Open the `angular.json` file and reference a style sheet that implements the req
}
```

To apply the referenced theme, call the `applyTheme(themeName)` method. Depending on the theme, pass `"modern"` or `"defaultV2"` as the method's argument. For instance, the following code applies the Default V2 theme:

```js
import { Component } from '@angular/core';
import { StylesManager } from "survey-core";

StylesManager.applyTheme("defaultV2");

@Component({
// ...
})
export class AppComponent {
// ...
}
```
For more information about SurveyJS themes, refer to the following help topic: [Themes & Styles](https://surveyjs.io/form-library/documentation/manage-default-themes-and-styles).

## Create a Model

Expand Down Expand Up @@ -132,9 +118,7 @@ export class AppComponent implements OnInit {

```js
import { Component, OnInit } from '@angular/core';
import { Model, StylesManager } from "survey-core";

StylesManager.applyTheme("defaultV2");
import { Model } from "survey-core";

const surveyJson = {
elements: [{
Expand Down Expand Up @@ -207,9 +191,7 @@ If you replicate the code correctly, you should see the following survey:
```js
// app.component.ts
import { Component, OnInit } from '@angular/core';
import { Model, StylesManager } from "survey-core";

StylesManager.applyTheme("defaultV2");
import { Model } from "survey-core";

const surveyJson = {
elements: [{
Expand Down Expand Up @@ -341,9 +323,7 @@ To view the application, run `ng serve` in a command line and open [http://local
```js
// app.component.ts
import { Component, OnInit } from '@angular/core';
import { Model, StylesManager } from "survey-core";

StylesManager.applyTheme("defaultV2");
import { Model } from "survey-core";

const surveyJson = {
elements: [{
Expand Down
18 changes: 1 addition & 17 deletions docs/get-started-jquery.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ Insert links to the script and one of the style sheets within the `<head>` tag o
</head>
```

To apply the linked theme, call the `applyTheme(themeName)` method. Depending on the theme, pass `"modern"` or `"defaultV2"` as the method's argument. For instance, the following code applies the Default V2 theme:

```js
Survey.StylesManager.applyTheme("defaultV2");
```
For more information about SurveyJS themes, refer to the following help topic: [Themes & Styles](https://surveyjs.io/form-library/documentation/manage-default-themes-and-styles).

## Create a Model

Expand Down Expand Up @@ -104,10 +100,6 @@ const survey = new Survey.Model(surveyJson);
```

```js
Survey
.StylesManager
.applyTheme("defaultV2");

const surveyJson = {
elements: [{
name: "FirstName",
Expand Down Expand Up @@ -173,10 +165,6 @@ If you replicate the code correctly, you should see the following survey:
```

```js
Survey
.StylesManager
.applyTheme("defaultV2");

const surveyJson = {
elements: [{
name: "FirstName",
Expand Down Expand Up @@ -273,10 +261,6 @@ As you can see, survey results are saved in a JSON object. Its properties corres
```

```js
Survey
.StylesManager
.applyTheme("defaultV2");

const surveyJson = {
elements: [{
name: "FirstName",
Expand Down
18 changes: 1 addition & 17 deletions docs/get-started-knockout.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ Insert links to the scripts and style sheets within the `<head>` tag on your HTM
</head>
```

To apply the linked theme, call the `applyTheme(themeName)` method. Depending on the theme, pass `"modern"` or `"defaultV2"` as the method's argument. For instance, the following code applies the Default V2 theme:

```js
Survey.StylesManager.applyTheme("defaultV2");
```
For more information about SurveyJS themes, refer to the following help topic: [Themes & Styles](https://surveyjs.io/form-library/documentation/manage-default-themes-and-styles).

## Create a Model

Expand Down Expand Up @@ -105,10 +101,6 @@ const survey = new Survey.Model(surveyJson);
```

```js
Survey
.StylesManager
.applyTheme("defaultV2");

const surveyJson = {
elements: [{
name: "FirstName",
Expand Down Expand Up @@ -179,10 +171,6 @@ If you replicate the code correctly, you should see the following survey:
```

```js
Survey
.StylesManager
.applyTheme("defaultV2");

const surveyJson = {
elements: [{
name: "FirstName",
Expand Down Expand Up @@ -282,10 +270,6 @@ As you can see, survey results are saved in a JSON object. Its properties corres
```

```js
Survey
.StylesManager
.applyTheme("defaultV2");

const surveyJson = {
elements: [{
name: "FirstName",
Expand Down
Loading

0 comments on commit ed06a9a

Please sign in to comment.