cloud-web-corejs 1.0.54-dev.150 → 1.0.54-dev.152

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.
Files changed (19) hide show
  1. package/package.json +1 -1
  2. package/src/components/baseAttachment/index.vue +2 -2
  3. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +0 -1
  4. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +2 -2
  5. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +135 -6
  6. package/src/components/xform/form-designer/indexMixin.js +0 -1
  7. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +1 -3
  8. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +15 -0
  9. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  10. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  11. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  12. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  13. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  14. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  15. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +170 -20
  16. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +40 -106
  17. package/src/components/xform/form-render/container-item/data-table-mixin.js +3 -0
  18. package/src/components/xform/form-render/indexMixin.js +2 -2
  19. package/src/components/xform/utils/util.js +1631 -1
@@ -778,6 +778,19 @@ export const defaultWfConfig = {
778
778
  wfModifyDataConfig: [],
779
779
  }
780
780
 
781
+ export const defaultTextFlagConfig = {
782
+ textFlag: 1,
783
+ showTextEnabled: false,
784
+ showEncryptTextEnabled: false,
785
+ userTextRuleEnabled: false,
786
+ userTextRuleConfig: [],
787
+ textRule1: true,
788
+ textRule2: false,
789
+ textRule2Number: null,
790
+ textRule3: false,
791
+ textRule3Number: null
792
+ }
793
+
781
794
  export const basicFields = [
782
795
  {
783
796
  type: "input",
@@ -837,12 +850,8 @@ export const basicFields = [
837
850
  showRuleFlag: 1,
838
851
  showRuleEnabled: 1,
839
852
  showRules: [],
840
- textFlag: 1,
841
- textRule1: false,
842
- textRule2: false,
843
- textRule3: false,
844
- textRule2Number: null,
845
- textRule3Number: null
853
+
854
+ ...defaultTextFlagConfig
846
855
  }
847
856
  },
848
857
  {
@@ -902,12 +911,7 @@ export const basicFields = [
902
911
  showRuleFlag: 1,
903
912
  showRuleEnabled: 1,
904
913
  showRules: [],
905
- textFlag: 1,
906
- textRule1: false,
907
- textRule2: false,
908
- textRule3: false,
909
- textRule2Number: null,
910
- textRule3Number: null
914
+
911
915
 
912
916
  }
913
917
  },
@@ -959,12 +963,8 @@ export const basicFields = [
959
963
  showRuleFlag: 1,
960
964
  showRuleEnabled: 1,
961
965
  showRules: [],
962
- textFlag: 1,
963
- textRule1: false,
964
- textRule2: false,
965
- textRule3: false,
966
- textRule2Number: null,
967
- textRule3Number: null
966
+
967
+ ...defaultTextFlagConfig
968
968
  }
969
969
  },
970
970
  {
@@ -994,8 +994,8 @@ export const basicFields = [
994
994
  requiredHint: "",
995
995
  validation: "",
996
996
  validationHint: "",
997
- // formulaEnabled: !1,
998
- // formula: "",
997
+ formulaEnabled: !1,
998
+ formula: "",
999
999
  customClass: "",
1000
1000
  labelIconClass: null,
1001
1001
  labelIconPosition: "rear",
@@ -1017,12 +1017,8 @@ export const basicFields = [
1017
1017
  showRuleFlag: 1,
1018
1018
  showRuleEnabled: 1,
1019
1019
  showRules: [],
1020
- textFlag: 1,
1021
- textRule1: false,
1022
- textRule2: false,
1023
- textRule3: false,
1024
- textRule2Number: null,
1025
- textRule3Number: null
1020
+
1021
+ ...defaultTextFlagConfig
1026
1022
 
1027
1023
  }
1028
1024
  },
@@ -1092,12 +1088,7 @@ export const basicFields = [
1092
1088
  showRuleFlag: 1,
1093
1089
  showRuleEnabled: 1,
1094
1090
  showRules: [],
1095
- textFlag: 1,
1096
- textRule1: false,
1097
- textRule2: false,
1098
- textRule3: false,
1099
- textRule2Number: null,
1100
- textRule3Number: null
1091
+
1101
1092
  }
1102
1093
  },
1103
1094
  {
@@ -1166,12 +1157,7 @@ export const basicFields = [
1166
1157
  showRuleFlag: 1,
1167
1158
  showRuleEnabled: 1,
1168
1159
  showRules: [],
1169
- textFlag: 1,
1170
- textRule1: false,
1171
- textRule2: false,
1172
- textRule3: false,
1173
- textRule2Number: null,
1174
- textRule3Number: null
1160
+
1175
1161
 
1176
1162
  }
1177
1163
  },
@@ -1251,12 +1237,6 @@ export const basicFields = [
1251
1237
  showRuleFlag: 1,
1252
1238
  showRuleEnabled: 1,
1253
1239
  showRules: [],
1254
- textFlag: 1,
1255
- textRule1: false,
1256
- textRule2: false,
1257
- textRule3: false,
1258
- textRule2Number: null,
1259
- textRule3Number: null
1260
1240
  }
1261
1241
  },
1262
1242
  {
@@ -1306,12 +1286,8 @@ export const basicFields = [
1306
1286
  showRuleFlag: 1,
1307
1287
  showRuleEnabled: 1,
1308
1288
  showRules: [],
1309
- textFlag: 1,
1310
- textRule1: false,
1311
- textRule2: false,
1312
- textRule3: false,
1313
- textRule2Number: null,
1314
- textRule3Number: null
1289
+
1290
+ ...defaultTextFlagConfig
1315
1291
 
1316
1292
  }
1317
1293
  },
@@ -1362,12 +1338,7 @@ export const basicFields = [
1362
1338
  showRuleFlag: 1,
1363
1339
  showRuleEnabled: 1,
1364
1340
  showRules: [],
1365
- textFlag: 1,
1366
- textRule1: false,
1367
- textRule2: false,
1368
- textRule3: false,
1369
- textRule2Number: null,
1370
- textRule3Number: null
1341
+
1371
1342
 
1372
1343
  }
1373
1344
  },
@@ -1420,12 +1391,8 @@ export const basicFields = [
1420
1391
  showRuleFlag: 1,
1421
1392
  showRuleEnabled: 1,
1422
1393
  showRules: [],
1423
- textFlag: 1,
1424
- textRule1: false,
1425
- textRule2: false,
1426
- textRule3: false,
1427
- textRule2Number: null,
1428
- textRule3Number: null
1394
+
1395
+ ...defaultTextFlagConfig
1429
1396
 
1430
1397
  }
1431
1398
  },
@@ -1479,12 +1446,6 @@ export const basicFields = [
1479
1446
  showRuleFlag: 1,
1480
1447
  showRuleEnabled: 1,
1481
1448
  showRules: [],
1482
- textFlag: 1,
1483
- textRule1: false,
1484
- textRule2: false,
1485
- textRule3: false,
1486
- textRule2Number: null,
1487
- textRule3Number: null
1488
1449
 
1489
1450
  }
1490
1451
  },
@@ -1632,12 +1593,8 @@ export const basicFields = [
1632
1593
  showRuleFlag: 1,
1633
1594
  showRuleEnabled: 1,
1634
1595
  showRules: [],
1635
- textFlag: 1,
1636
- textRule1: false,
1637
- textRule2: false,
1638
- textRule3: false,
1639
- textRule2Number: null,
1640
- textRule3Number: null
1596
+
1597
+ ...defaultTextFlagConfig
1641
1598
 
1642
1599
  }
1643
1600
  },
@@ -1660,12 +1617,6 @@ export const basicFields = [
1660
1617
  showRuleFlag: 1,
1661
1618
  showRuleEnabled: 1,
1662
1619
  showRules: [],
1663
- textFlag: 1,
1664
- textRule1: false,
1665
- textRule2: false,
1666
- textRule3: false,
1667
- textRule2Number: null,
1668
- textRule3Number: null
1669
1620
 
1670
1621
  }
1671
1622
  },
@@ -1722,12 +1673,7 @@ export const basicFields = [
1722
1673
  showRuleFlag: 1,
1723
1674
  showRuleEnabled: 1,
1724
1675
  showRules: [],
1725
- textFlag: 1,
1726
- textRule1: false,
1727
- textRule2: false,
1728
- textRule3: false,
1729
- textRule2Number: null,
1730
- textRule3Number: null
1676
+
1731
1677
  }
1732
1678
  },
1733
1679
  {
@@ -1828,18 +1774,14 @@ export const basicFields = [
1828
1774
  labelColor: '#555555',
1829
1775
  ...defaultWfConfig,
1830
1776
 
1831
- autoValueEnabled:false,
1832
- autoValueHanlde:null,
1777
+ autoValueEnabled: false,
1778
+ autoValueHanlde: null,
1833
1779
 
1834
1780
  showRuleFlag: 1,
1835
1781
  showRuleEnabled: 1,
1836
1782
  showRules: [],
1837
- textFlag: 1,
1838
- textRule1: false,
1839
- textRule2: false,
1840
- textRule3: false,
1841
- textRule2Number: null,
1842
- textRule3Number: null
1783
+
1784
+ ...defaultTextFlagConfig
1843
1785
  }
1844
1786
  },
1845
1787
  {
@@ -1885,12 +1827,8 @@ export const basicFields = [
1885
1827
  showRuleFlag: 1,
1886
1828
  showRuleEnabled: 1,
1887
1829
  showRules: [],
1888
- textFlag: 1,
1889
- textRule1: false,
1890
- textRule2: false,
1891
- textRule3: false,
1892
- textRule2Number: null,
1893
- textRule3Number: null
1830
+
1831
+ ...defaultTextFlagConfig
1894
1832
  }
1895
1833
  },
1896
1834
  {
@@ -1931,12 +1869,8 @@ export const basicFields = [
1931
1869
  showRuleFlag: 1,
1932
1870
  showRuleEnabled: 1,
1933
1871
  showRules: [],
1934
- textFlag: 1,
1935
- textRule1: false,
1936
- textRule2: false,
1937
- textRule3: false,
1938
- textRule2Number: null,
1939
- textRule3Number: null
1872
+
1873
+ ...defaultTextFlagConfig
1940
1874
  }
1941
1875
  },
1942
1876
 
@@ -95,6 +95,9 @@ modules = {
95
95
  moveUpRow: "a-link",
96
96
  moveDownRow: "a-link",
97
97
  removeTreeRow: "a-link",
98
+ text: "text",
99
+ checkbox: "checkbox",
100
+ radio: "radio",
98
101
  },
99
102
  dataTableConfig: {},
100
103
  widgets: [],
@@ -225,8 +225,8 @@ modules = {
225
225
  this.registerFormToRefList()
226
226
  this.currentFormData = this.formData;
227
227
  let formConfig = this.formConfig;
228
- // await this.getSaleOrgData();
229
- // await this.getUserRoleData();
228
+ await this.getSaleOrgData();
229
+ await this.getUserRoleData();
230
230
  await this.getBdService();
231
231
  this.buildFormModel(!this.formJsonObj ? null : this.formJsonObj.widgetList);
232
232
  if (formConfig.isLoadEntity) {