@choiceform/os-client-core 3.6.82 → 3.7.1

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/index.d.ts CHANGED
@@ -2634,6 +2634,7 @@ interface CCFillNode extends CCBQuestionNode, CCMOptionGroupNode, CCMOtherOption
2634
2634
  origin: CFPDFillNode;
2635
2635
  layout: CFPDCommonNodeLayout;
2636
2636
  options: CCFillOption[];
2637
+ optionTextAsPlaceholder?: boolean;
2637
2638
  }
2638
2639
 
2639
2640
 
@@ -3537,6 +3538,14 @@ interface CCSelectIconNode extends CCBQuestionNode, CCMOptionGroupNode, CCMOther
3537
3538
  origin: CFPDSelectIconNode;
3538
3539
  layout: CFPDCommonNodeLayout;
3539
3540
  options: CCSelectIconOption[];
3541
+ /**
3542
+ * 选项图标icon的笔画宽度
3543
+ */
3544
+ iconStrokeWidth?: number;
3545
+ /**
3546
+ * 单选框或者多选框是否可见
3547
+ */
3548
+ radioOrCheckboxVisible?: boolean;
3540
3549
  }
3541
3550
 
3542
3551
 
@@ -3662,6 +3671,10 @@ interface CCSlideRateNode extends CCBQuestionNode, CCMOtherOptionNode {
3662
3671
  * 切换到指定选项
3663
3672
  */
3664
3673
  gotoOption: (option: CCSlideRateOption) => void;
3674
+ /**
3675
+ * 评分项的icon的笔画宽度
3676
+ */
3677
+ iconStrokeWidth?: number;
3665
3678
  }
3666
3679
 
3667
3680
 
@@ -9378,9 +9391,17 @@ interface CFPDEndNode
9378
9391
  /**
9379
9392
  * 填空题数据
9380
9393
  */
9381
- interface CFPDFillNode extends CFPDBQuestionNode, CFPDMFillableNode, CFPDMOptionGroupNode, CFPDMOtherOptionNode {
9394
+ interface CFPDFillNode
9395
+ extends CFPDBQuestionNode,
9396
+ CFPDMFillableNode,
9397
+ CFPDMOptionGroupNode,
9398
+ CFPDMOtherOptionNode {
9382
9399
  options: CFPDMValidateOption[];
9383
9400
  layout: CFPDCommonNodeLayout;
9401
+ /**
9402
+ * 是否将选项文本作为 placeholder 而不在填空框上方显示
9403
+ */
9404
+ optionTextAsPlaceholder?: boolean;
9384
9405
  }
9385
9406
 
9386
9407
 
@@ -10505,9 +10526,23 @@ interface CFPDRegionNode extends CFPDBQuestionNode, CFPDMOtherOptionNode {
10505
10526
  /**
10506
10527
  * 选择图标题
10507
10528
  */
10508
- interface CFPDSelectIconNode extends CFPDMMultiSelectNode, CFPDBQuestionNode, CFPDMOptionGroupNode, CFPDMOtherOptionNode {
10529
+ interface CFPDSelectIconNode
10530
+ extends CFPDMMultiSelectNode,
10531
+ CFPDBQuestionNode,
10532
+ CFPDMOptionGroupNode,
10533
+ CFPDMOtherOptionNode {
10509
10534
  layout: CFPDCommonNodeLayout;
10510
10535
  options: CFPDSelectIconOption[];
10536
+ /**
10537
+ * 选项 icon svg 的 stroke width
10538
+ * @default 1
10539
+ */
10540
+ iconStrokeWidth?: number;
10541
+ /**
10542
+ * 单选框或复选框是否可见
10543
+ * @default true
10544
+ */
10545
+ radioOrCheckboxVisible?: boolean;
10511
10546
  }
10512
10547
 
10513
10548
 
@@ -10580,6 +10615,11 @@ interface CFPDSlideRateNode extends CFPDBQuestionNode, CFPDMFillableNode, CFPDMO
10580
10615
  * 评分项
10581
10616
  */
10582
10617
  rateOptions: CFPDRateItem[];
10618
+ /**
10619
+ * 评分项 icon svg 的 stroke width
10620
+ * @default 1
10621
+ */
10622
+ iconStrokeWidth?: number;
10583
10623
  }
10584
10624
 
10585
10625
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.6.82",
3
+ "version": "3.7.1",
4
4
  "description": "choiceform survey client core",
5
5
  "main": "./dist/core.js",
6
6
  "repository": "https://github.com/choice-form/os-client-core",
@@ -77,7 +77,7 @@
77
77
  "vitest": "^2.0.5"
78
78
  },
79
79
  "dependencies": {
80
- "@choiceform/os-cfpd": "3.2.22",
80
+ "@choiceform/os-cfpd": "3.2.24",
81
81
  "ts-loader": "^9.5.1",
82
82
  "typescript": "^5.3.3",
83
83
  "webpack": "^5.90.1",