survey-creator-core 1.9.79 → 1.9.80

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.79
2
+ * SurveyJS Creator v1.9.80
3
3
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.79
2
+ * SurveyJS Creator v1.9.80
3
3
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-core",
3
- "version": "1.9.79",
3
+ "version": "1.9.80",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -29,7 +29,7 @@
29
29
  "ace-builds": "^1.4.12"
30
30
  },
31
31
  "dependencies": {
32
- "survey-core": "1.9.79"
32
+ "survey-core": "1.9.80"
33
33
  },
34
34
  "devDependencies": {}
35
35
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.79
2
+ * SurveyJS Creator v1.9.80
3
3
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -225,7 +225,7 @@
225
225
 
226
226
 
227
227
  /*# sourceMappingURL=fonts.fontless.css.map*//*!
228
- * SurveyJS Creator v1.9.79
228
+ * SurveyJS Creator v1.9.80
229
229
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
230
230
  * Github: https://github.com/surveyjs/survey-creator
231
231
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1400,7 +1400,7 @@ survey-creator,
1400
1400
  left: calc(-0.5 * var(--base-unit, 8px));
1401
1401
  right: calc(-0.5 * var(--base-unit, 8px));
1402
1402
  border-radius: 3px;
1403
- box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1), 0px 0px 0px calc(0.25 * var(--base-unit, 8px)) rgba(0, 0, 0, 0.16); }
1403
+ box-shadow: 0px 0px 0px calc(0.25 * var(--base-unit, 8px)) rgba(0, 0, 0, 0.16); }
1404
1404
 
1405
1405
  .svc-string-editor:focus-within .svc-string-editor__border {
1406
1406
  display: flex;
@@ -1431,6 +1431,9 @@ survey-creator,
1431
1431
  left: calc(-0.7 * var(--base-unit, 8px));
1432
1432
  right: calc(-0.7 * var(--base-unit, 8px)); }
1433
1433
 
1434
+ .svc-string-editor:hover ~ .sd-question__required-text, .svc-string-editor:focus-within ~ .sd-question__required-text {
1435
+ visibility: hidden; }
1436
+
1434
1437
  .svc-btn {
1435
1438
  display: flex;
1436
1439
  align-items: center;
@@ -3484,22 +3487,35 @@ button.spg-action-button--large {
3484
3487
  .spg-table__cell--detail-panel .spg-panel__content {
3485
3488
  box-shadow: none; }
3486
3489
 
3490
+ .spg-table__cell:not(.spg-table__cell--detail-panel):not(.spg-table__cell--actions):first-of-type {
3491
+ padding-left: 8px; }
3492
+
3487
3493
  .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-input {
3488
3494
  appearance: none;
3489
3495
  line-height: calc(3 * var(--base-unit, 8px));
3490
3496
  font-size: calc(2 * var(--base-unit, 8px));
3491
3497
  border: none;
3498
+ border-radius: calc(0.5 * var(--base-unit, 8px));
3492
3499
  background-color: transparent;
3493
- padding: calc(1.5 * var(--base-unit, 8px)) 0;
3494
- padding-right: calc(2 * var(--base-unit, 8px)); }
3500
+ padding: calc(1 * var(--base-unit, 8px));
3501
+ height: auto; }
3495
3502
  .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-input[type="color"] {
3496
3503
  padding-right: 0; }
3504
+ .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-input:focus, .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-input:focus-within {
3505
+ box-shadow: inset 0 0 0 2px var(--primary, #19b394); }
3506
+
3507
+ .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-dropdown {
3508
+ width: max-content;
3509
+ padding-right: calc(4 * var(--base-unit, 8px));
3510
+ background-size: calc(3 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));
3511
+ background-position: right calc(0.5 * var(--base-unit, 8px)) top 50%, 0 0;
3512
+ background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 15L17 10H7L12 15Z' fill='%2390909080'/%3E%3C/svg%3E%0A"); }
3497
3513
 
3498
3514
  .spg-table__cell:not(.spg-table__cell--detail-panel):first-of-type .spg-text {
3499
3515
  padding-left: calc(2 * var(--base-unit, 8px)); }
3500
3516
 
3501
3517
  .spg-table__cell--actions:first-of-type {
3502
- width: calc(6 * var(--base-unit, 8px)); }
3518
+ width: calc(5 * var(--base-unit, 8px)); }
3503
3519
 
3504
3520
  .spg-table__cell--actions:last-of-type .spg-action-bar {
3505
3521
  justify-content: flex-end; }
@@ -3521,6 +3537,9 @@ button.spg-action-button--large {
3521
3537
  overflow: hidden;
3522
3538
  max-width: 100px; }
3523
3539
 
3540
+ .spg-table__question-wrapper {
3541
+ padding: calc(0.5 * var(--base-unit, 8px)) 0; }
3542
+
3524
3543
  .spg-question-group .spg-row {
3525
3544
  margin-top: 0; }
3526
3545
  .spg-question-group .spg-row:not(:first-of-type) {
@@ -2708,6 +2708,7 @@ declare module "property-grid-theme/property-grid" {
2708
2708
  root: string;
2709
2709
  item: string;
2710
2710
  itemTitle: string;
2711
+ content: string;
2711
2712
  row: string;
2712
2713
  cell: string;
2713
2714
  };
@@ -2761,6 +2762,7 @@ declare module "property-grid-theme/property-grid" {
2761
2762
  matrixdynamic: {
2762
2763
  tableWrapper: string;
2763
2764
  root: string;
2765
+ content: string;
2764
2766
  cell: string;
2765
2767
  headerCell: string;
2766
2768
  button: string;
@@ -2783,6 +2785,7 @@ declare module "property-grid-theme/property-grid" {
2783
2785
  dragDropGhostPositionBottom: string;
2784
2786
  emptyRowsSection: string;
2785
2787
  emptyRowsText: string;
2788
+ cellQuestionWrapper: string;
2786
2789
  };
2787
2790
  rating: {
2788
2791
  root: string;
@@ -6865,7 +6868,38 @@ declare module "creator-base" {
6865
6868
  protected initSurveyWithJSON(json: any, clearState: boolean): void;
6866
6869
  private updatePlugin;
6867
6870
  protected initDragDrop(): void;
6871
+ /**
6872
+ * An event that is raised when users start to drag a survey element within the design surface.
6873
+ *
6874
+ * Parameters:
6875
+ *
6876
+ * - `sender`: `CreatorBase`\
6877
+ * A Survey Creator instance that raised the event.
6878
+ * - `options.draggedElement`: `any`\
6879
+ * A survey element being dragged.
6880
+ * - `options.fromElement`: `any`\
6881
+ * A survey element from which `draggedElement` is being dragged.
6882
+ * - `options.toElement`: `any`\
6883
+ * A survey element to which `draggedElement` is being dragged.
6884
+ * @see onDragEnd
6885
+ */
6886
+ onDragStart: Survey.Event<() => any, any, any>;
6868
6887
  onBeforeDrop: Survey.Event<() => any, any, any>;
6888
+ /**
6889
+ * An event that is raised when users finish dragging a survey element within the design surface.
6890
+ *
6891
+ * Parameters:
6892
+ *
6893
+ * - `sender`: `CreatorBase`\
6894
+ * A Survey Creator instance that raised the event.
6895
+ * - `options.draggedElement`: `any`\
6896
+ * A survey element that was dragged.
6897
+ * - `options.fromElement`: `any`\
6898
+ * A survey element from which `draggedElement` was dragged.
6899
+ * - `options.toElement`: `any`\
6900
+ * A survey element to which `draggedElement` was dragged.
6901
+ */
6902
+ onDragEnd: Survey.Event<() => any, any, any>;
6869
6903
  onAfterDrop: Survey.Event<() => any, any, any>;
6870
6904
  private initDragDropSurveyElements;
6871
6905
  private initDragDropChoices;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.79
2
+ * SurveyJS Creator v1.9.80
3
3
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1174,7 +1174,7 @@ survey-creator,
1174
1174
  left: calc(-0.5 * var(--base-unit, 8px));
1175
1175
  right: calc(-0.5 * var(--base-unit, 8px));
1176
1176
  border-radius: 3px;
1177
- box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1), 0px 0px 0px calc(0.25 * var(--base-unit, 8px)) rgba(0, 0, 0, 0.16); }
1177
+ box-shadow: 0px 0px 0px calc(0.25 * var(--base-unit, 8px)) rgba(0, 0, 0, 0.16); }
1178
1178
 
1179
1179
  .svc-string-editor:focus-within .svc-string-editor__border {
1180
1180
  display: flex;
@@ -1205,6 +1205,9 @@ survey-creator,
1205
1205
  left: calc(-0.7 * var(--base-unit, 8px));
1206
1206
  right: calc(-0.7 * var(--base-unit, 8px)); }
1207
1207
 
1208
+ .svc-string-editor:hover ~ .sd-question__required-text, .svc-string-editor:focus-within ~ .sd-question__required-text {
1209
+ visibility: hidden; }
1210
+
1208
1211
  .svc-btn {
1209
1212
  display: flex;
1210
1213
  align-items: center;
@@ -3258,22 +3261,35 @@ button.spg-action-button--large {
3258
3261
  .spg-table__cell--detail-panel .spg-panel__content {
3259
3262
  box-shadow: none; }
3260
3263
 
3264
+ .spg-table__cell:not(.spg-table__cell--detail-panel):not(.spg-table__cell--actions):first-of-type {
3265
+ padding-left: 8px; }
3266
+
3261
3267
  .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-input {
3262
3268
  appearance: none;
3263
3269
  line-height: calc(3 * var(--base-unit, 8px));
3264
3270
  font-size: calc(2 * var(--base-unit, 8px));
3265
3271
  border: none;
3272
+ border-radius: calc(0.5 * var(--base-unit, 8px));
3266
3273
  background-color: transparent;
3267
- padding: calc(1.5 * var(--base-unit, 8px)) 0;
3268
- padding-right: calc(2 * var(--base-unit, 8px)); }
3274
+ padding: calc(1 * var(--base-unit, 8px));
3275
+ height: auto; }
3269
3276
  .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-input[type="color"] {
3270
3277
  padding-right: 0; }
3278
+ .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-input:focus, .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-input:focus-within {
3279
+ box-shadow: inset 0 0 0 2px var(--primary, #19b394); }
3280
+
3281
+ .spg-table__cell:not(.spg-table__cell--detail-panel) .spg-dropdown {
3282
+ width: max-content;
3283
+ padding-right: calc(4 * var(--base-unit, 8px));
3284
+ background-size: calc(3 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));
3285
+ background-position: right calc(0.5 * var(--base-unit, 8px)) top 50%, 0 0;
3286
+ background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 15L17 10H7L12 15Z' fill='%2390909080'/%3E%3C/svg%3E%0A"); }
3271
3287
 
3272
3288
  .spg-table__cell:not(.spg-table__cell--detail-panel):first-of-type .spg-text {
3273
3289
  padding-left: calc(2 * var(--base-unit, 8px)); }
3274
3290
 
3275
3291
  .spg-table__cell--actions:first-of-type {
3276
- width: calc(6 * var(--base-unit, 8px)); }
3292
+ width: calc(5 * var(--base-unit, 8px)); }
3277
3293
 
3278
3294
  .spg-table__cell--actions:last-of-type .spg-action-bar {
3279
3295
  justify-content: flex-end; }
@@ -3295,6 +3311,9 @@ button.spg-action-button--large {
3295
3311
  overflow: hidden;
3296
3312
  max-width: 100px; }
3297
3313
 
3314
+ .spg-table__question-wrapper {
3315
+ padding: calc(0.5 * var(--base-unit, 8px)) 0; }
3316
+
3298
3317
  .spg-question-group .spg-row {
3299
3318
  margin-top: 0; }
3300
3319
  .spg-question-group .spg-row:not(:first-of-type) {