Skip to content

Commit 9dc507c

Browse files
author
Dmitry Kuzin (DevExpress)
committed
Merge branch 'master' of https://github.com/surveyjs/widgets
2 parents 3f23ab2 + 215155f commit 9dc507c

File tree

9 files changed

+48
-20
lines changed

9 files changed

+48
-20
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
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.
44

5+
### [1.8.17](https://github.com/surveyjs/custom-widgets/compare/v1.8.16...v1.8.17) (2020-11-26)
6+
7+
### [1.8.16](https://github.com/surveyjs/custom-widgets/compare/v1.8.14...v1.8.16) (2020-11-24)
8+
9+
### [1.8.14](https://github.com/surveyjs/custom-widgets/compare/v1.8.13...v1.8.14) (2020-11-19)
10+
11+
### [1.8.13](https://github.com/surveyjs/custom-widgets/compare/v1.8.12...v1.8.13) (2020-11-09)
12+
513
### [1.8.12](https://github.com/surveyjs/custom-widgets/compare/v1.8.11...v1.8.12) (2020-10-28)
614

715
### [1.8.11](https://github.com/surveyjs/custom-widgets/compare/v1.8.10...v1.8.11) (2020-10-23)

devops-integration.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pool:
1515
steps:
1616
- task: NodeTool@0
1717
inputs:
18-
versionSpec: "12.x"
18+
versionSpec: "14.x"
1919
displayName: "Install Node.js"
2020

2121
- script: |
@@ -39,6 +39,28 @@ steps:
3939
Contents: "**"
4040
TargetFolder: "$(Build.Repository.LocalPath)/node_modules/survey-core"
4141
OverWrite: true
42+
43+
# npm run release with version
44+
- task: CopyFiles@2
45+
inputs:
46+
SourceFolder: '$(System.ArtifactsDirectory)/SurveyJSLibraryBuild/'
47+
Contents: 'version.txt'
48+
TargetFolder: '$(Build.SourcesDirectory)/'
49+
OverWrite: true
50+
displayName: 'Copy Build Artifact - SurveyJSVersion File'
51+
52+
- powershell: |
53+
$version = Get-Content $(Build.SourcesDirectory)/version.txt
54+
Write-Host "##vso[task.setvariable variable=SurveyJSVersion;]$version"
55+
displayName: 'setup SurveyJSVersion variable from SurveyJSVersionFile'
56+
57+
- powershell: |
58+
$env:GIT_REDIRECT_STDERR = '2>&1'
59+
git config --global user.email "[email protected]"
60+
git config --global user.name "dmitrykurmanov"
61+
npm run release -- --release-as $(SurveyJSVersion)
62+
displayName: 'npm run release specific version'
63+
#####################################################
4264

4365
- script: |
4466
npm run build

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "surveyjs-widgets",
3-
"version": "1.8.12",
3+
"version": "1.8.17",
44
"scripts": {
55
"start": "npm run build && live-server",
66
"watch": "webpack --env.buildType dev --watch",

release-azure-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ steps:
6262
displayName: "build"
6363

6464
- powershell: |
65+
git pull origin master
6566
git push --follow-tags origin master;
6667
displayName: 'push release commit to github'
6768

src/bootstrapdatepicker.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,16 @@ function init(Survey, $) {
102102
daysOfWeekHighlighted: question.daysOfWeekHighlighted,
103103
disableTouchKeyboard: question.disableTouchKeyboard,
104104
})
105-
// .on("changeDate", function (e) {
106-
// question.value = moment(e.date).format("DD/MM/YYYY");
107-
// // `e` here contains the extra attributes
108-
// })
109105
.on("change", function (e) {
110-
var newValue = pickerWidget.val();
106+
var newDate = pickerWidget.bootstrapDP("getUTCDate");
107+
var newValue = newDate && newDate.toUTCString();
111108
if (question.value != newValue) {
112109
question.value = newValue;
113110
}
114111
});
115112

116113
question.valueChangedCallback = function () {
117-
pickerWidget.val(question.value);
118-
// $el.bootstrapDP('update', moment(question.value, "DD/MM/YYYY").toDate());
114+
pickerWidget.bootstrapDP("setUTCDate", !!question.value ? new Date(question.value) : "");
119115
};
120116
question.valueChangedCallback();
121117
question.readOnlyChangedCallback = function () {

src/pretty-checkbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ function init(Survey) {
5353
Survey.JsonObject.metaData.addProperty(supportedType, {
5454
name: "renderAs",
5555
category: "general",
56-
default: "standard",
57-
choices: ["standard", "prettycheckbox"],
56+
default: "default",
57+
choices: ["default", "prettycheckbox"],
5858
});
5959
}
6060
});

src/select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ function init(Survey, $) {
2626
Survey.JsonObject.metaData.addProperty("dropdown", {
2727
name: "renderAs",
2828
category: "general",
29-
default: "standard",
30-
choices: ["select2", "standard"],
29+
default: "default",
30+
choices: ["select2", "default"],
3131
});
3232
Survey.JsonObject.metaData.addProperty("dropdown", {
3333
dependsOn: "renderAs",

src/sortablejs.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,11 @@ function init(Survey) {
141141
disabled: question.isReadOnly,
142142
group: {
143143
name: question.name,
144-
put: function (to) {
144+
put: function (to, from) {
145145
return (
146-
question.maxAnswersCount < 0 ||
147-
to.el.children.length <= question.maxAnswersCount
146+
to.options.group && from.options.group && to.options.group.name === from.options.group.name &&
147+
(question.maxAnswersCount < 0 ||
148+
to.el.children.length <= question.maxAnswersCount)
148149
);
149150
},
150151
},

0 commit comments

Comments
 (0)