Skip to content

Commit 846406b

Browse files
committed
Merge remote-tracking branch 'origin/master' into issue/6917-Property-Grid-can-be-stretched-to-completely-overlap-the-design-area
2 parents c077d6f + c07852b commit 846406b

File tree

62 files changed

+374
-229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+374
-229
lines changed
290 KB
Loading

packages/survey-creator-angular/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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+
## [2.1.0](https://github.com/surveyjs/survey-creator/compare/v2.0.10...v2.1.0) (2025-05-27)
6+
57
### [2.0.10](https://github.com/surveyjs/survey-creator/compare/v2.0.9...v2.0.10) (2025-05-20)
68

79
### [2.0.9](https://github.com/surveyjs/survey-creator/compare/v2.0.8...v2.0.9) (2025-05-14)

packages/survey-creator-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "survey-creator-angular",
3-
"version": "2.0.10",
3+
"version": "2.1.0",
44
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
55
"homepage": "https://surveyjs.io/Overview/Survey-Creator",
66
"license": "https://surveyjs.io/Licenses#SurveyCreator",

packages/survey-creator-angular/src/questions/logic-operator.component.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@
66
[attr.required]="model.isRequired"
77
[attr.tabindex]= "model.isInputReadOnly ? undefined : 0"
88
[attr.disabled]="model.isInputReadOnly"
9-
[attr.role]="model.ariaRole"
10-
[attr.aria-required]="model.ariaRequired"
11-
[attr.aria-label]="model.ariaLabel"
12-
[attr.aria-labelledby]="model.ariaLabelledBy"
13-
[attr.aria-invalid]="model.ariaInvalid"
14-
[attr.aria-errormessage]="model.ariaErrormessage"
15-
[attr.aria-expanded]="model.ariaExpanded"
9+
[attr.role]="dropdownModel.ariaQuestionRole"
10+
[attr.aria-required]="dropdownModel.ariaQuestionRequired"
11+
[attr.aria-invalid]="dropdownModel.ariaQuestionInvalid"
12+
[attr.aria-errormessage]="dropdownModel.ariaQuestionErrorMessage"
13+
[attr.aria-expanded]="dropdownModel.ariaQuestionExpanded"
14+
[attr.aria-label]="dropdownModel.ariaQuestionLabel"
15+
[attr.aria-labelledby]="dropdownModel.ariaQuestionLabelledby"
16+
[attr.aria-controls]="dropdownModel.ariaQuestionControls"
1617
>
1718
<div [class]="model.cssClasses.controlValue">
1819
<sv-ng-string *ngIf="model.locReadOnlyText" [model]="model.locReadOnlyText"></sv-ng-string>
1920
</div>
20-
<div *ngIf="model.allowClear && model.cssClasses.cleanButtonIconId" [class]="model.cssClasses.cleanButton" (click)="clear($event)" [visible]="!model.isEmpty()">
21-
<svg [class]="model.cssClasses.cleanButtonSvg" [iconName]="model.cssClasses.cleanButtonIconId" [size]="'auto'" [title]="model.clearCaption" sv-ng-svg-icon></svg>
22-
</div>
2321
</div>
2422
<sv-ng-popup [popupModel]="model.popupModel"></sv-ng-popup>
2523
</ng-container>

packages/survey-creator-angular/src/questions/logic-operator.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import { initLogicOperator } from "survey-creator-core";
1010
})
1111
export class LogicOperatorComponent extends QuestionAngular<QuestionDropdownModel> {
1212
private dropdownListModel?: DropdownListModel;
13-
get dropdownModel(): DropdownListModel | undefined {
13+
get dropdownModel(): DropdownListModel {
14+
if (!this.dropdownListModel) {
15+
this.dropdownListModel = new DropdownListModel(this.model);
16+
}
1417
return this.dropdownListModel;
1518
}
1619
click(event: any) {
1720
this.dropdownListModel?.onClick(event);
1821
}
19-
clear(event: any) {
20-
this.dropdownListModel?.onClear(event);
21-
}
2222
keyup(event: any) {
2323
this.dropdownListModel?.keyHandler(event);
2424
}

packages/survey-creator-core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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+
## [2.1.0](https://github.com/surveyjs/survey-creator/compare/v2.0.10...v2.1.0) (2025-05-27)
6+
57
### [2.0.10](https://github.com/surveyjs/survey-creator/compare/v2.0.9...v2.0.10) (2025-05-20)
68

79
### [2.0.9](https://github.com/surveyjs/survey-creator/compare/v2.0.8...v2.0.9) (2025-05-14)

packages/survey-creator-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.0.10",
2+
"version": "2.1.0",
33
"name": "survey-creator-core",
44
"homepage": "https://surveyjs.io/Overview/Survey-Creator",
55
"license": "SEE LICENSE IN LICENSE",

packages/survey-creator-core/src/components/matrix-cell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class MatrixCellWrapperViewModel extends Base {
131131
return;
132132
}
133133
const contextType = model.context.getType();
134-
if (contextType === "itemvalue") {
134+
if (Serializer.isDescendantOf(contextType, "itemvalue")) {
135135
model.creator.selectElement(model.context.locOwner, model.context.ownerPropertyName, false);
136136
} else {
137137
model.creator.selectElement(model.context);
@@ -143,7 +143,7 @@ export class MatrixCellWrapperViewModel extends Base {
143143
return SurveyHelper.isSupportCellEditor(this.question.getType());
144144
}
145145
public hover(event: MouseEvent, element: HTMLElement | any) {
146-
if (!this.row && this.context && this.context.getPropertyValue && this.context.getType && this.context.getType() !== "itemvalue") {
146+
if (!this.row && this.context && this.context.getPropertyValue && this.context.getType && !this.context.isDescendantOf("itemvalue")) {
147147
toggleHovered(event, element);
148148
}
149149
}

packages/survey-creator-core/src/creator-base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,7 +2734,7 @@ export class SurveyCreatorModel extends Base
27342734
if ((el.isQuestion || Serializer.isDescendantOf(el.getType(), "matrixdropdowncolumn")) && name === "name") {
27352735
this.clearNonDefaultLocalesInStrByValue(el.locTitle);
27362736
} else {
2737-
if (Serializer.isDescendantOf(el.getType(), "itemvalue") && name === "value") {
2737+
if (el.isDescendantOf("itemvalue") && name === "value") {
27382738
this.clearNonDefaultLocalesInStrByValue(el.locText);
27392739
} else {
27402740
const prop = Serializer.findProperty(el.getType(), name);
@@ -4568,7 +4568,7 @@ export function initializeDesignTimeSurveyModel(model: any, creator: SurveyCreat
45684568
if (opt.wrapperName === "row") {
45694569
opt.componentName = "svc-row";
45704570
}
4571-
if (opt.wrapperName === "itemvalue") {
4571+
if (Serializer.isDescendantOf(opt.wrapperName, "itemvalue")) {
45724572
opt.componentName = getItemValueWrapperComponentName(opt.item, opt.element);
45734573
}
45744574
opt.componentName = opt.componentName || compName;
@@ -4581,7 +4581,7 @@ export function initializeDesignTimeSurveyModel(model: any, creator: SurveyCreat
45814581
if (opt.wrapperName === "row") {
45824582
opt.data = { creator: creator, row: opt.element };
45834583
}
4584-
if (opt.wrapperName === "itemvalue") {
4584+
if (Serializer.isDescendantOf(opt.wrapperName, "itemvalue")) {
45854585
opt.data = getItemValueWrapperComponentData(opt.item, opt.element, creator);
45864586
}
45874587
opt.data = opt.data || data;
Lines changed: 20 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading

packages/survey-creator-core/src/localization/english.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export var enStrings = {
4747
paneldynamic: "Dynamic Panel",
4848
radiogroup: "Radio Button Group",
4949
rating: "Rating Scale",
50+
slider: "Slider",
5051
text: "Single-Line Input",
5152
boolean: "Yes/No (Boolean)",
5253
expression: "Expression (read-only)",
@@ -744,6 +745,19 @@ export var enStrings = {
744745
rateValues: "Custom rating values",
745746
rateCount: "Rating count",
746747
autoGenerate: "Rating configuration",
748+
slider: {
749+
min: "Min value",
750+
max: "Max value",
751+
step: "Step value",
752+
showLabels: "Show scale labels",
753+
// segmentCount: "Number of segments",
754+
tooltipVisibilityPG: "Show tooltips",
755+
allowSwap: "Allow thumb crossing",
756+
labelCount: "Number of auto-generated labels",
757+
minValueExpression: "Min value expression",
758+
maxValueExpression: "Max value expression",
759+
autoGenerate: "Scale labels configuration"
760+
},
747761
hideIfChoicesEmpty: "Hide the question if it has no choices",
748762
minWidth: "Minimum width",
749763
maxWidth: "Maximum width",
@@ -826,6 +840,7 @@ export var enStrings = {
826840
enableIf: "Editable If",
827841
requiredIf: "Required If",
828842
rateValues: "Rating Values",
843+
sliderSettings: "Slider Settings",
829844
choicesByUrl: "Choices from a Web Service",
830845
matrixChoices: "Default Choices",
831846
multipleTextItems: "Text Inputs",
@@ -1048,6 +1063,10 @@ export var enStrings = {
10481063
url: "URL",
10491064
week: "Week"
10501065
},
1066+
sliderType: {
1067+
single: "Single-Value",
1068+
range: "Range"
1069+
},
10511070
autocomplete: {
10521071
"name": "Full Name",
10531072
"honorific-prefix": "Prefix",

0 commit comments

Comments
 (0)