cnhis-design-vue 3.1.46-beta.35 → 3.1.46-beta.37
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/es/components/form-config/index.d.ts +51 -7
- package/es/components/form-config/src/FormConfig.vue.d.ts +51 -7
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +22 -3
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +14 -2
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +28 -4
- package/es/components/form-render/src/components/renderer/select.d.ts +14 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +5 -0
- package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +7 -1
- package/es/components/info-header/index.d.ts +2 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +8 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +8 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
|
@@ -134,15 +134,21 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
134
134
|
name?: string | undefined;
|
|
135
135
|
render_key?: string[] | undefined;
|
|
136
136
|
search_key?: string[] | undefined;
|
|
137
|
+
value_key?: string | undefined;
|
|
137
138
|
primary_key?: string | undefined;
|
|
138
139
|
type?: string | undefined;
|
|
139
|
-
value_key?: string | undefined;
|
|
140
140
|
level_key?: string | undefined;
|
|
141
141
|
link_key?: string | undefined;
|
|
142
142
|
link_key_split?: string | undefined;
|
|
143
143
|
show_key?: string[] | undefined;
|
|
144
144
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
145
145
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
146
|
+
setting?: {
|
|
147
|
+
cascading?: {
|
|
148
|
+
'form.name': string;
|
|
149
|
+
value: string;
|
|
150
|
+
}[] | undefined;
|
|
151
|
+
} | undefined;
|
|
146
152
|
} | undefined;
|
|
147
153
|
open?: {
|
|
148
154
|
value?: any;
|
|
@@ -1847,15 +1853,21 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1847
1853
|
name?: string | undefined;
|
|
1848
1854
|
render_key?: string[] | undefined;
|
|
1849
1855
|
search_key?: string[] | undefined;
|
|
1856
|
+
value_key?: string | undefined;
|
|
1850
1857
|
primary_key?: string | undefined;
|
|
1851
1858
|
type?: string | undefined;
|
|
1852
|
-
value_key?: string | undefined;
|
|
1853
1859
|
level_key?: string | undefined;
|
|
1854
1860
|
link_key?: string | undefined;
|
|
1855
1861
|
link_key_split?: string | undefined;
|
|
1856
1862
|
show_key?: string[] | undefined;
|
|
1857
1863
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
1858
1864
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
1865
|
+
setting?: {
|
|
1866
|
+
cascading?: {
|
|
1867
|
+
'form.name': string;
|
|
1868
|
+
value: string;
|
|
1869
|
+
}[] | undefined;
|
|
1870
|
+
} | undefined;
|
|
1859
1871
|
} | undefined;
|
|
1860
1872
|
open?: {
|
|
1861
1873
|
value?: any;
|
|
@@ -3569,15 +3581,21 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3569
3581
|
name?: string | undefined;
|
|
3570
3582
|
render_key?: string[] | undefined;
|
|
3571
3583
|
search_key?: string[] | undefined;
|
|
3584
|
+
value_key?: string | undefined;
|
|
3572
3585
|
primary_key?: string | undefined;
|
|
3573
3586
|
type?: string | undefined;
|
|
3574
|
-
value_key?: string | undefined;
|
|
3575
3587
|
level_key?: string | undefined;
|
|
3576
3588
|
link_key?: string | undefined;
|
|
3577
3589
|
link_key_split?: string | undefined;
|
|
3578
3590
|
show_key?: string[] | undefined;
|
|
3579
3591
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
3580
3592
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
3593
|
+
setting?: {
|
|
3594
|
+
cascading?: {
|
|
3595
|
+
'form.name': string;
|
|
3596
|
+
value: string;
|
|
3597
|
+
}[] | undefined;
|
|
3598
|
+
} | undefined;
|
|
3581
3599
|
} | undefined;
|
|
3582
3600
|
open?: {
|
|
3583
3601
|
value?: any;
|
|
@@ -5282,15 +5300,21 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5282
5300
|
name?: string | undefined;
|
|
5283
5301
|
render_key?: string[] | undefined;
|
|
5284
5302
|
search_key?: string[] | undefined;
|
|
5303
|
+
value_key?: string | undefined;
|
|
5285
5304
|
primary_key?: string | undefined;
|
|
5286
5305
|
type?: string | undefined;
|
|
5287
|
-
value_key?: string | undefined;
|
|
5288
5306
|
level_key?: string | undefined;
|
|
5289
5307
|
link_key?: string | undefined;
|
|
5290
5308
|
link_key_split?: string | undefined;
|
|
5291
5309
|
show_key?: string[] | undefined;
|
|
5292
5310
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
5293
5311
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
5312
|
+
setting?: {
|
|
5313
|
+
cascading?: {
|
|
5314
|
+
'form.name': string;
|
|
5315
|
+
value: string;
|
|
5316
|
+
}[] | undefined;
|
|
5317
|
+
} | undefined;
|
|
5294
5318
|
} | undefined;
|
|
5295
5319
|
open?: {
|
|
5296
5320
|
value?: any;
|
|
@@ -7333,6 +7357,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7333
7357
|
triggerAllReactionsHandler: () => void;
|
|
7334
7358
|
operationalFormHandler: (field: string) => void;
|
|
7335
7359
|
triggerAllOperationalFormHandler: () => void;
|
|
7360
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
7336
7361
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
7337
7362
|
[key: symbol]: any;
|
|
7338
7363
|
[key: `x-${string}`]: any;
|
|
@@ -7970,15 +7995,21 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7970
7995
|
name?: string | undefined;
|
|
7971
7996
|
render_key?: string[] | undefined;
|
|
7972
7997
|
search_key?: string[] | undefined;
|
|
7998
|
+
value_key?: string | undefined;
|
|
7973
7999
|
primary_key?: string | undefined;
|
|
7974
8000
|
type?: string | undefined;
|
|
7975
|
-
value_key?: string | undefined;
|
|
7976
8001
|
level_key?: string | undefined;
|
|
7977
8002
|
link_key?: string | undefined;
|
|
7978
8003
|
link_key_split?: string | undefined;
|
|
7979
8004
|
show_key?: string[] | undefined;
|
|
7980
8005
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
7981
8006
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
8007
|
+
setting?: {
|
|
8008
|
+
cascading?: {
|
|
8009
|
+
'form.name': string;
|
|
8010
|
+
value: string;
|
|
8011
|
+
}[] | undefined;
|
|
8012
|
+
} | undefined;
|
|
7982
8013
|
} | undefined;
|
|
7983
8014
|
open?: {
|
|
7984
8015
|
value?: any;
|
|
@@ -9694,15 +9725,21 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9694
9725
|
name?: string | undefined;
|
|
9695
9726
|
render_key?: string[] | undefined;
|
|
9696
9727
|
search_key?: string[] | undefined;
|
|
9728
|
+
value_key?: string | undefined;
|
|
9697
9729
|
primary_key?: string | undefined;
|
|
9698
9730
|
type?: string | undefined;
|
|
9699
|
-
value_key?: string | undefined;
|
|
9700
9731
|
level_key?: string | undefined;
|
|
9701
9732
|
link_key?: string | undefined;
|
|
9702
9733
|
link_key_split?: string | undefined;
|
|
9703
9734
|
show_key?: string[] | undefined;
|
|
9704
9735
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
9705
9736
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
9737
|
+
setting?: {
|
|
9738
|
+
cascading?: {
|
|
9739
|
+
'form.name': string;
|
|
9740
|
+
value: string;
|
|
9741
|
+
}[] | undefined;
|
|
9742
|
+
} | undefined;
|
|
9706
9743
|
} | undefined;
|
|
9707
9744
|
open?: {
|
|
9708
9745
|
value?: any;
|
|
@@ -11391,15 +11428,21 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11391
11428
|
name?: string | undefined;
|
|
11392
11429
|
render_key?: string[] | undefined;
|
|
11393
11430
|
search_key?: string[] | undefined;
|
|
11431
|
+
value_key?: string | undefined;
|
|
11394
11432
|
primary_key?: string | undefined;
|
|
11395
11433
|
type?: string | undefined;
|
|
11396
|
-
value_key?: string | undefined;
|
|
11397
11434
|
level_key?: string | undefined;
|
|
11398
11435
|
link_key?: string | undefined;
|
|
11399
11436
|
link_key_split?: string | undefined;
|
|
11400
11437
|
show_key?: string[] | undefined;
|
|
11401
11438
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
11402
11439
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
11440
|
+
setting?: {
|
|
11441
|
+
cascading?: {
|
|
11442
|
+
'form.name': string;
|
|
11443
|
+
value: string;
|
|
11444
|
+
}[] | undefined;
|
|
11445
|
+
} | undefined;
|
|
11403
11446
|
} | undefined;
|
|
11404
11447
|
open?: {
|
|
11405
11448
|
value?: any;
|
|
@@ -13360,6 +13403,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13360
13403
|
triggerAllReactionsHandler: () => void;
|
|
13361
13404
|
operationalFormHandler: (field: string) => void;
|
|
13362
13405
|
triggerAllOperationalFormHandler: () => void;
|
|
13406
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
13363
13407
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
13364
13408
|
[key: symbol]: any;
|
|
13365
13409
|
[key: `x-${string}`]: any;
|
|
@@ -136,15 +136,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
136
136
|
name?: string | undefined;
|
|
137
137
|
render_key?: string[] | undefined;
|
|
138
138
|
search_key?: string[] | undefined;
|
|
139
|
+
value_key?: string | undefined;
|
|
139
140
|
primary_key?: string | undefined;
|
|
140
141
|
type?: string | undefined;
|
|
141
|
-
value_key?: string | undefined;
|
|
142
142
|
level_key?: string | undefined;
|
|
143
143
|
link_key?: string | undefined;
|
|
144
144
|
link_key_split?: string | undefined;
|
|
145
145
|
show_key?: string[] | undefined;
|
|
146
146
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
147
147
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
148
|
+
setting?: {
|
|
149
|
+
cascading?: {
|
|
150
|
+
'form.name': string;
|
|
151
|
+
value: string;
|
|
152
|
+
}[] | undefined;
|
|
153
|
+
} | undefined;
|
|
148
154
|
} | undefined;
|
|
149
155
|
open?: {
|
|
150
156
|
value?: any;
|
|
@@ -1849,15 +1855,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1849
1855
|
name?: string | undefined;
|
|
1850
1856
|
render_key?: string[] | undefined;
|
|
1851
1857
|
search_key?: string[] | undefined;
|
|
1858
|
+
value_key?: string | undefined;
|
|
1852
1859
|
primary_key?: string | undefined;
|
|
1853
1860
|
type?: string | undefined;
|
|
1854
|
-
value_key?: string | undefined;
|
|
1855
1861
|
level_key?: string | undefined;
|
|
1856
1862
|
link_key?: string | undefined;
|
|
1857
1863
|
link_key_split?: string | undefined;
|
|
1858
1864
|
show_key?: string[] | undefined;
|
|
1859
1865
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
1860
1866
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
1867
|
+
setting?: {
|
|
1868
|
+
cascading?: {
|
|
1869
|
+
'form.name': string;
|
|
1870
|
+
value: string;
|
|
1871
|
+
}[] | undefined;
|
|
1872
|
+
} | undefined;
|
|
1861
1873
|
} | undefined;
|
|
1862
1874
|
open?: {
|
|
1863
1875
|
value?: any;
|
|
@@ -3571,15 +3583,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3571
3583
|
name?: string | undefined;
|
|
3572
3584
|
render_key?: string[] | undefined;
|
|
3573
3585
|
search_key?: string[] | undefined;
|
|
3586
|
+
value_key?: string | undefined;
|
|
3574
3587
|
primary_key?: string | undefined;
|
|
3575
3588
|
type?: string | undefined;
|
|
3576
|
-
value_key?: string | undefined;
|
|
3577
3589
|
level_key?: string | undefined;
|
|
3578
3590
|
link_key?: string | undefined;
|
|
3579
3591
|
link_key_split?: string | undefined;
|
|
3580
3592
|
show_key?: string[] | undefined;
|
|
3581
3593
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
3582
3594
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
3595
|
+
setting?: {
|
|
3596
|
+
cascading?: {
|
|
3597
|
+
'form.name': string;
|
|
3598
|
+
value: string;
|
|
3599
|
+
}[] | undefined;
|
|
3600
|
+
} | undefined;
|
|
3583
3601
|
} | undefined;
|
|
3584
3602
|
open?: {
|
|
3585
3603
|
value?: any;
|
|
@@ -5284,15 +5302,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5284
5302
|
name?: string | undefined;
|
|
5285
5303
|
render_key?: string[] | undefined;
|
|
5286
5304
|
search_key?: string[] | undefined;
|
|
5305
|
+
value_key?: string | undefined;
|
|
5287
5306
|
primary_key?: string | undefined;
|
|
5288
5307
|
type?: string | undefined;
|
|
5289
|
-
value_key?: string | undefined;
|
|
5290
5308
|
level_key?: string | undefined;
|
|
5291
5309
|
link_key?: string | undefined;
|
|
5292
5310
|
link_key_split?: string | undefined;
|
|
5293
5311
|
show_key?: string[] | undefined;
|
|
5294
5312
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
5295
5313
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
5314
|
+
setting?: {
|
|
5315
|
+
cascading?: {
|
|
5316
|
+
'form.name': string;
|
|
5317
|
+
value: string;
|
|
5318
|
+
}[] | undefined;
|
|
5319
|
+
} | undefined;
|
|
5296
5320
|
} | undefined;
|
|
5297
5321
|
open?: {
|
|
5298
5322
|
value?: any;
|
|
@@ -7335,6 +7359,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7335
7359
|
triggerAllReactionsHandler: () => void;
|
|
7336
7360
|
operationalFormHandler: (field: string) => void;
|
|
7337
7361
|
triggerAllOperationalFormHandler: () => void;
|
|
7362
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
7338
7363
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
7339
7364
|
[key: symbol]: any;
|
|
7340
7365
|
[key: `x-${string}`]: any;
|
|
@@ -7972,15 +7997,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7972
7997
|
name?: string | undefined;
|
|
7973
7998
|
render_key?: string[] | undefined;
|
|
7974
7999
|
search_key?: string[] | undefined;
|
|
8000
|
+
value_key?: string | undefined;
|
|
7975
8001
|
primary_key?: string | undefined;
|
|
7976
8002
|
type?: string | undefined;
|
|
7977
|
-
value_key?: string | undefined;
|
|
7978
8003
|
level_key?: string | undefined;
|
|
7979
8004
|
link_key?: string | undefined;
|
|
7980
8005
|
link_key_split?: string | undefined;
|
|
7981
8006
|
show_key?: string[] | undefined;
|
|
7982
8007
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
7983
8008
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
8009
|
+
setting?: {
|
|
8010
|
+
cascading?: {
|
|
8011
|
+
'form.name': string;
|
|
8012
|
+
value: string;
|
|
8013
|
+
}[] | undefined;
|
|
8014
|
+
} | undefined;
|
|
7984
8015
|
} | undefined;
|
|
7985
8016
|
open?: {
|
|
7986
8017
|
value?: any;
|
|
@@ -9696,15 +9727,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9696
9727
|
name?: string | undefined;
|
|
9697
9728
|
render_key?: string[] | undefined;
|
|
9698
9729
|
search_key?: string[] | undefined;
|
|
9730
|
+
value_key?: string | undefined;
|
|
9699
9731
|
primary_key?: string | undefined;
|
|
9700
9732
|
type?: string | undefined;
|
|
9701
|
-
value_key?: string | undefined;
|
|
9702
9733
|
level_key?: string | undefined;
|
|
9703
9734
|
link_key?: string | undefined;
|
|
9704
9735
|
link_key_split?: string | undefined;
|
|
9705
9736
|
show_key?: string[] | undefined;
|
|
9706
9737
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
9707
9738
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
9739
|
+
setting?: {
|
|
9740
|
+
cascading?: {
|
|
9741
|
+
'form.name': string;
|
|
9742
|
+
value: string;
|
|
9743
|
+
}[] | undefined;
|
|
9744
|
+
} | undefined;
|
|
9708
9745
|
} | undefined;
|
|
9709
9746
|
open?: {
|
|
9710
9747
|
value?: any;
|
|
@@ -11393,15 +11430,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11393
11430
|
name?: string | undefined;
|
|
11394
11431
|
render_key?: string[] | undefined;
|
|
11395
11432
|
search_key?: string[] | undefined;
|
|
11433
|
+
value_key?: string | undefined;
|
|
11396
11434
|
primary_key?: string | undefined;
|
|
11397
11435
|
type?: string | undefined;
|
|
11398
|
-
value_key?: string | undefined;
|
|
11399
11436
|
level_key?: string | undefined;
|
|
11400
11437
|
link_key?: string | undefined;
|
|
11401
11438
|
link_key_split?: string | undefined;
|
|
11402
11439
|
show_key?: string[] | undefined;
|
|
11403
11440
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
11404
11441
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
11442
|
+
setting?: {
|
|
11443
|
+
cascading?: {
|
|
11444
|
+
'form.name': string;
|
|
11445
|
+
value: string;
|
|
11446
|
+
}[] | undefined;
|
|
11447
|
+
} | undefined;
|
|
11405
11448
|
} | undefined;
|
|
11406
11449
|
open?: {
|
|
11407
11450
|
value?: any;
|
|
@@ -13362,6 +13405,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13362
13405
|
triggerAllReactionsHandler: () => void;
|
|
13363
13406
|
operationalFormHandler: (field: string) => void;
|
|
13364
13407
|
triggerAllOperationalFormHandler: () => void;
|
|
13408
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
13365
13409
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
13366
13410
|
[key: symbol]: any;
|
|
13367
13411
|
[key: `x-${string}`]: any;
|
|
@@ -348,6 +348,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
348
348
|
triggerAllReactionsHandler: () => void;
|
|
349
349
|
operationalFormHandler: (field: string) => void;
|
|
350
350
|
triggerAllOperationalFormHandler: () => void;
|
|
351
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
351
352
|
schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
352
353
|
[key: symbol]: any;
|
|
353
354
|
[key: `x-${string}`]: any;
|
|
@@ -89,15 +89,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
89
|
name?: string | undefined;
|
|
90
90
|
render_key?: string[] | undefined;
|
|
91
91
|
search_key?: string[] | undefined;
|
|
92
|
+
value_key?: string | undefined;
|
|
92
93
|
primary_key?: string | undefined;
|
|
93
94
|
type?: string | undefined;
|
|
94
|
-
value_key?: string | undefined;
|
|
95
95
|
level_key?: string | undefined;
|
|
96
96
|
link_key?: string | undefined;
|
|
97
97
|
link_key_split?: string | undefined;
|
|
98
98
|
show_key?: string[] | undefined;
|
|
99
99
|
conObj?: import("../../../../../es/shared/types").AnyObject[] | undefined;
|
|
100
100
|
conObjFirstLevel?: import("../../../../../es/shared/types").AnyObject[] | undefined;
|
|
101
|
+
setting?: {
|
|
102
|
+
cascading?: {
|
|
103
|
+
'form.name': string;
|
|
104
|
+
value: string;
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
} | undefined;
|
|
101
107
|
} | undefined;
|
|
102
108
|
open?: {
|
|
103
109
|
value?: any;
|
|
@@ -1813,15 +1819,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1813
1819
|
name?: string | undefined;
|
|
1814
1820
|
render_key?: string[] | undefined;
|
|
1815
1821
|
search_key?: string[] | undefined;
|
|
1822
|
+
value_key?: string | undefined;
|
|
1816
1823
|
primary_key?: string | undefined;
|
|
1817
1824
|
type?: string | undefined;
|
|
1818
|
-
value_key?: string | undefined;
|
|
1819
1825
|
level_key?: string | undefined;
|
|
1820
1826
|
link_key?: string | undefined;
|
|
1821
1827
|
link_key_split?: string | undefined;
|
|
1822
1828
|
show_key?: string[] | undefined;
|
|
1823
1829
|
conObj?: import("../../../../../es/shared/types").AnyObject[] | undefined;
|
|
1824
1830
|
conObjFirstLevel?: import("../../../../../es/shared/types").AnyObject[] | undefined;
|
|
1831
|
+
setting?: {
|
|
1832
|
+
cascading?: {
|
|
1833
|
+
'form.name': string;
|
|
1834
|
+
value: string;
|
|
1835
|
+
}[] | undefined;
|
|
1836
|
+
} | undefined;
|
|
1825
1837
|
} | undefined;
|
|
1826
1838
|
open?: {
|
|
1827
1839
|
value?: any;
|
|
@@ -3510,15 +3522,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3510
3522
|
name?: string | undefined;
|
|
3511
3523
|
render_key?: string[] | undefined;
|
|
3512
3524
|
search_key?: string[] | undefined;
|
|
3525
|
+
value_key?: string | undefined;
|
|
3513
3526
|
primary_key?: string | undefined;
|
|
3514
3527
|
type?: string | undefined;
|
|
3515
|
-
value_key?: string | undefined;
|
|
3516
3528
|
level_key?: string | undefined;
|
|
3517
3529
|
link_key?: string | undefined;
|
|
3518
3530
|
link_key_split?: string | undefined;
|
|
3519
3531
|
show_key?: string[] | undefined;
|
|
3520
3532
|
conObj?: import("../../../../../es/shared/types").AnyObject[] | undefined;
|
|
3521
3533
|
conObjFirstLevel?: import("../../../../../es/shared/types").AnyObject[] | undefined;
|
|
3534
|
+
setting?: {
|
|
3535
|
+
cascading?: {
|
|
3536
|
+
'form.name': string;
|
|
3537
|
+
value: string;
|
|
3538
|
+
}[] | undefined;
|
|
3539
|
+
} | undefined;
|
|
3522
3540
|
} | undefined;
|
|
3523
3541
|
open?: {
|
|
3524
3542
|
value?: any;
|
|
@@ -5479,6 +5497,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5479
5497
|
triggerAllReactionsHandler: () => void;
|
|
5480
5498
|
operationalFormHandler: (field: string) => void;
|
|
5481
5499
|
triggerAllOperationalFormHandler: () => void;
|
|
5500
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
5482
5501
|
schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
5483
5502
|
[key: symbol]: any;
|
|
5484
5503
|
[key: `x-${string}`]: any;
|
|
@@ -335,6 +335,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
335
335
|
triggerAllReactionsHandler: () => void;
|
|
336
336
|
operationalFormHandler: (field: string) => void;
|
|
337
337
|
triggerAllOperationalFormHandler: () => void;
|
|
338
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
338
339
|
schemaAdaptor: (fieldList: import("./src/types").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
339
340
|
[key: symbol]: any;
|
|
340
341
|
[key: `x-${string}`]: any;
|
|
@@ -329,6 +329,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
329
329
|
triggerAllReactionsHandler: () => void;
|
|
330
330
|
operationalFormHandler: (field: string) => void;
|
|
331
331
|
triggerAllOperationalFormHandler: () => void;
|
|
332
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
332
333
|
schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/vue").Stringify<{
|
|
333
334
|
[key: symbol]: any;
|
|
334
335
|
[key: `x-${string}`]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,nextTick as i,openBlock as l,createBlock as n,unref as m,normalizeClass as d,normalizeStyle as p,withCtx as u,createElementBlock as c,createVNode as f,isRef as h,Fragment as y,renderList as
|
|
1
|
+
import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,nextTick as i,openBlock as l,createBlock as n,unref as m,normalizeClass as d,normalizeStyle as p,withCtx as u,createElementBlock as c,createVNode as f,isRef as h,Fragment as y,renderList as g,createCommentVNode as j,createElementVNode as b,withKeys as k,withModifiers as v,toDisplayString as F,renderSlot as C}from"vue";import{useTheme as H}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as S,cloneDeep as x}from"lodash-es";import{createForm as A,onFieldValueChange as L,onFieldMount as O,onFieldUnmount as R,onFieldReact as w,onFormMount as B}from"@formily/core";import{FormProvider as _,FormConsumer as V}from"@formily/vue";import{NForm as D,NTabs as I,NTabPane as N,NConfigProvider as q}from"naive-ui";import{InjectionFormLifeCycleCaller as W,InjectionFormGraph as T}from"./constants/index.js";import{useAutoHidden as U}from"./hooks/useAutoHidden.js";import{useComplexOptionsSpan as E}from"./hooks/useComplexOptions.js";import{useFormDomEvent as G,useFormExposeEvent as K}from"./hooks/useFormEvent.js";import{useFormGraph as M}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as P}from"./hooks/useFormRenderLifeCycle.js";import{useLowCodeEvent as J}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as $}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as z}from"./hooks/useNuiThemeOverrides.js";import{useOperationalForm as Q}from"./hooks/useOperationalForm.js";import{useWordbookSetting as X}from"./hooks/useWordbookSetting.js";import"./utils/index.js";import{useFieldListAdaptor as Y}from"./hooks/useFieldListAdaptor.js";import"../../../shared/utils/index.js";import"../index.js";import{useFieldVisitor as Z}from"./hooks/useFieldVisitor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{validateMessageLocale as ee}from"./hooks/useFormValidator.js";import{useAnchor as oe}from"./hooks/useAnchor.js";import{useFormContext as te}from"./hooks/useFormContext.js";import"./hooks/useFormRenderOptions.js";import{createObjSchema as re}from"./utils/schema.js";const se={key:0,style:{height:"54px"}},ae={style:{"white-space":"pre"}};var ie=e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},operationalForm:{type:Object},linebarAutoHidden:{type:Boolean},bordered:{type:[Boolean,String],default:!0},uniqueCacheData:{type:Boolean,default:!1}},emits:["formChange","annotationChange","scroll"],setup(e,{expose:ie,emit:le}){const ne=e,me=H(),{nuiThemeOverrides:de}=z();ee();const pe=o(),ue=t((()=>S(ne.maxHeight)?ne.maxHeight+"px":ne.maxHeight)),{SchemaField:ce,businessCollector:fe,formItemDepsCollector:he,changeContextCollector:ye,formUUID:ge}=te(ne,le),{anchorBarRef:je,currentAnchor:be,updateAnchorList:ke,anchorIdList:ve,onScroll:Fe}=oe(ne,le,pe,he),{callLifeCycle:Ce}=P(ne);r(W,Ce),Ce("onSetup");const{trigger:He}=U(),{observeFormGraph:Se,setGraph:xe,removeGraph:Ae}=M();r(T,Se);const{lowCodeEventTrigger:Le}=J(),Oe=A({initialValues:ne.initialData,effects(e){L("*",(o=>{const t=o.props.name.toString();fe.trigger(e,t),he.trigger(t),le("formChange",{fieldInstance:o,fieldKey:t,fieldName:o.title,value:o.value,context:ye.getContext(t,o.value)}),Le(o),Re(t,o.value),Be(t),Ve(t,o.value)})),O("*",xe),R("*",Ae),ne.linebarAutoHidden&&(w("*",He),B((e=>e.query("*").forEach(He)))),ne.anchor&&w("*",ke)}}),{lowCodeReactionsHandler:Re,triggerAllReactionsHandler:we}=$(t((()=>ne.lowCodeReactions)),Oe),{operationalFormHandler:Be,triggerAllOperationalFormHandler:_e}=Q(t((()=>ne.operationalForm)),Oe),{wordbookSettingHandler:Ve}=X(Oe,ye);s(we),s(_e);const{schemaAdaptor:De}=Y(fe);let Ie=ne.fieldList||[];const Ne=t((()=>ne.schema?ne.schema:ne.fieldList?(Ie=Z().traverse(x(ne.fieldList),ne.fieldVisitor),re(De(Ie))):re({}))),{onKeydown:qe}=G({formModel:Oe,formRenderRef:pe,props:ne}),{clearSpan:We}=E();a((()=>We(ge)));const Te=K({formModel:Oe,formRenderRef:pe,formItemDepsCollector:he,getFieldList:()=>Ie,formUUID:ge});return ie({formModel:Oe,validate:(e="*")=>Te.validate(e),getFormValues:(e=!0)=>Te.getFormValues(e),async setFormValues(e,o=!0,t=!1,r=!0){t&&(fe.triggerLock=!0),Te.setFormValues(e,o,r),await i(),fe.triggerLock=!1},setFieldState(e,o){Te.setFieldState(e,o)},resetFields(e="*"){Te.resetFields(e)},queryWidget:async e=>Te.queryWidget(e),getFieldList:()=>Ie,async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(l(),n(m(D),{class:d(["form-render",{"form-render--no-border":!e.bordered,"form-render--underline":"underline"===e.bordered}]),"require-mark-placement":"left",style:p(m(me))},{default:u((()=>[e.anchor?(l(),c("section",se,[f(m(I),{value:m(be),"onUpdate:value":t[0]||(t[0]=e=>h(be)?be.value=e:null),type:"line",ref_key:"anchorBarRef",ref:je},{default:u((()=>[(l(!0),c(y,null,g(m(ve),(e=>(l(),n(m(N),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):j("v-if",!0),f(m(q),{"theme-overrides":m(de)},{default:u((()=>[b("section",{class:"form-render__wrapper",style:p({"--column":e.column,"--form-height":m(ue)}),ref_key:"formRenderRef",ref:pe,onScroll:t[1]||(t[1]=(...e)=>m(Fe)&&m(Fe)(...e)),onKeydownCapture:t[2]||(t[2]=k(v(((...e)=>m(qe)&&m(qe)(...e)),["prevent"]),["enter"]))},[f(m(_),{form:m(Oe)},{default:u((()=>[f(m(ce),{schema:m(Ne)},null,8,["schema"]),e.consumer?(l(),n(m(V),{key:0},{default:u((({form:e})=>[b("div",ae,F(JSON.stringify(e.values,null,2)),1)])),_:1})):j("v-if",!0),C(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},8,["class","style"]))}});export{ie as default};
|
|
@@ -333,6 +333,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
333
333
|
triggerAllReactionsHandler: () => void;
|
|
334
334
|
operationalFormHandler: (field: string) => void;
|
|
335
335
|
triggerAllOperationalFormHandler: () => void;
|
|
336
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
336
337
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
337
338
|
[key: symbol]: any;
|
|
338
339
|
[key: `x-${string}`]: any;
|
|
@@ -33,15 +33,21 @@ export declare const LEVEL_SEARCH_CASCADER: import("vue").DefineComponent<{
|
|
|
33
33
|
name: string;
|
|
34
34
|
render_key: string[];
|
|
35
35
|
search_key: string[];
|
|
36
|
+
value_key: string;
|
|
36
37
|
primary_key: string;
|
|
37
38
|
type: string;
|
|
38
|
-
value_key: string;
|
|
39
39
|
level_key: string;
|
|
40
40
|
link_key: string;
|
|
41
41
|
link_key_split: string;
|
|
42
42
|
show_key: string[];
|
|
43
43
|
conObj: AnyObject[];
|
|
44
44
|
conObjFirstLevel: AnyObject[];
|
|
45
|
+
setting: Partial<{
|
|
46
|
+
cascading: {
|
|
47
|
+
'form.name': string;
|
|
48
|
+
value: string;
|
|
49
|
+
}[];
|
|
50
|
+
}>;
|
|
45
51
|
}>>;
|
|
46
52
|
required: true;
|
|
47
53
|
};
|
|
@@ -81,15 +87,21 @@ export declare const LEVEL_SEARCH_CASCADER: import("vue").DefineComponent<{
|
|
|
81
87
|
name: string;
|
|
82
88
|
render_key: string[];
|
|
83
89
|
search_key: string[];
|
|
90
|
+
value_key: string;
|
|
84
91
|
primary_key: string;
|
|
85
92
|
type: string;
|
|
86
|
-
value_key: string;
|
|
87
93
|
level_key: string;
|
|
88
94
|
link_key: string;
|
|
89
95
|
link_key_split: string;
|
|
90
96
|
show_key: string[];
|
|
91
97
|
conObj: AnyObject[];
|
|
92
98
|
conObjFirstLevel: AnyObject[];
|
|
99
|
+
setting: Partial<{
|
|
100
|
+
cascading: {
|
|
101
|
+
'form.name': string;
|
|
102
|
+
value: string;
|
|
103
|
+
}[];
|
|
104
|
+
}>;
|
|
93
105
|
}>>;
|
|
94
106
|
required: true;
|
|
95
107
|
};
|
|
@@ -34,15 +34,21 @@ export declare const RADIO: import("vue").DefineComponent<{
|
|
|
34
34
|
name: string;
|
|
35
35
|
render_key: string[];
|
|
36
36
|
search_key: string[];
|
|
37
|
+
value_key: string;
|
|
37
38
|
primary_key: string;
|
|
38
39
|
type: string;
|
|
39
|
-
value_key: string;
|
|
40
40
|
level_key: string;
|
|
41
41
|
link_key: string;
|
|
42
42
|
link_key_split: string;
|
|
43
43
|
show_key: string[];
|
|
44
44
|
conObj: AnyObject[];
|
|
45
45
|
conObjFirstLevel: AnyObject[];
|
|
46
|
+
setting: Partial<{
|
|
47
|
+
cascading: {
|
|
48
|
+
'form.name': string;
|
|
49
|
+
value: string;
|
|
50
|
+
}[];
|
|
51
|
+
}>;
|
|
46
52
|
}>>;
|
|
47
53
|
};
|
|
48
54
|
vertical: {
|
|
@@ -89,15 +95,21 @@ export declare const RADIO: import("vue").DefineComponent<{
|
|
|
89
95
|
name: string;
|
|
90
96
|
render_key: string[];
|
|
91
97
|
search_key: string[];
|
|
98
|
+
value_key: string;
|
|
92
99
|
primary_key: string;
|
|
93
100
|
type: string;
|
|
94
|
-
value_key: string;
|
|
95
101
|
level_key: string;
|
|
96
102
|
link_key: string;
|
|
97
103
|
link_key_split: string;
|
|
98
104
|
show_key: string[];
|
|
99
105
|
conObj: AnyObject[];
|
|
100
106
|
conObjFirstLevel: AnyObject[];
|
|
107
|
+
setting: Partial<{
|
|
108
|
+
cascading: {
|
|
109
|
+
'form.name': string;
|
|
110
|
+
value: string;
|
|
111
|
+
}[];
|
|
112
|
+
}>;
|
|
101
113
|
}>>;
|
|
102
114
|
};
|
|
103
115
|
vertical: {
|
|
@@ -156,15 +168,21 @@ export declare const CHECKBOX: import("vue").DefineComponent<{
|
|
|
156
168
|
name: string;
|
|
157
169
|
render_key: string[];
|
|
158
170
|
search_key: string[];
|
|
171
|
+
value_key: string;
|
|
159
172
|
primary_key: string;
|
|
160
173
|
type: string;
|
|
161
|
-
value_key: string;
|
|
162
174
|
level_key: string;
|
|
163
175
|
link_key: string;
|
|
164
176
|
link_key_split: string;
|
|
165
177
|
show_key: string[];
|
|
166
178
|
conObj: AnyObject[];
|
|
167
179
|
conObjFirstLevel: AnyObject[];
|
|
180
|
+
setting: Partial<{
|
|
181
|
+
cascading: {
|
|
182
|
+
'form.name': string;
|
|
183
|
+
value: string;
|
|
184
|
+
}[];
|
|
185
|
+
}>;
|
|
168
186
|
}>>;
|
|
169
187
|
};
|
|
170
188
|
vertical: {
|
|
@@ -211,15 +229,21 @@ export declare const CHECKBOX: import("vue").DefineComponent<{
|
|
|
211
229
|
name: string;
|
|
212
230
|
render_key: string[];
|
|
213
231
|
search_key: string[];
|
|
232
|
+
value_key: string;
|
|
214
233
|
primary_key: string;
|
|
215
234
|
type: string;
|
|
216
|
-
value_key: string;
|
|
217
235
|
level_key: string;
|
|
218
236
|
link_key: string;
|
|
219
237
|
link_key_split: string;
|
|
220
238
|
show_key: string[];
|
|
221
239
|
conObj: AnyObject[];
|
|
222
240
|
conObjFirstLevel: AnyObject[];
|
|
241
|
+
setting: Partial<{
|
|
242
|
+
cascading: {
|
|
243
|
+
'form.name': string;
|
|
244
|
+
value: string;
|
|
245
|
+
}[];
|
|
246
|
+
}>;
|
|
223
247
|
}>>;
|
|
224
248
|
};
|
|
225
249
|
vertical: {
|
|
@@ -42,15 +42,21 @@ export declare const SELECT: import("vue").DefineComponent<{
|
|
|
42
42
|
name: string;
|
|
43
43
|
render_key: string[];
|
|
44
44
|
search_key: string[];
|
|
45
|
+
value_key: string;
|
|
45
46
|
primary_key: string;
|
|
46
47
|
type: string;
|
|
47
|
-
value_key: string;
|
|
48
48
|
level_key: string;
|
|
49
49
|
link_key: string;
|
|
50
50
|
link_key_split: string;
|
|
51
51
|
show_key: string[];
|
|
52
52
|
conObj: AnyObject[];
|
|
53
53
|
conObjFirstLevel: AnyObject[];
|
|
54
|
+
setting: Partial<{
|
|
55
|
+
cascading: {
|
|
56
|
+
'form.name': string;
|
|
57
|
+
value: string;
|
|
58
|
+
}[];
|
|
59
|
+
}>;
|
|
54
60
|
}>>;
|
|
55
61
|
};
|
|
56
62
|
recommend: {
|
|
@@ -117,15 +123,21 @@ export declare const SELECT: import("vue").DefineComponent<{
|
|
|
117
123
|
name: string;
|
|
118
124
|
render_key: string[];
|
|
119
125
|
search_key: string[];
|
|
126
|
+
value_key: string;
|
|
120
127
|
primary_key: string;
|
|
121
128
|
type: string;
|
|
122
|
-
value_key: string;
|
|
123
129
|
level_key: string;
|
|
124
130
|
link_key: string;
|
|
125
131
|
link_key_split: string;
|
|
126
132
|
show_key: string[];
|
|
127
133
|
conObj: AnyObject[];
|
|
128
134
|
conObjFirstLevel: AnyObject[];
|
|
135
|
+
setting: Partial<{
|
|
136
|
+
cascading: {
|
|
137
|
+
'form.name': string;
|
|
138
|
+
value: string;
|
|
139
|
+
}[];
|
|
140
|
+
}>;
|
|
129
141
|
}>>;
|
|
130
142
|
};
|
|
131
143
|
recommend: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,pick as n}from"lodash-es";import"../../index.js";import{parseNumberFromMaybeString as r,formRenderLog as i}from"../utils/index.js";import{useFieldNormalize as s}from"./useFieldNormalize.js";import{fieldKeyEscape as a,createLinebarId as p}from"../utils/schema.js";import{useFormValidator as l}from"./useFormValidator.js";import{transformDateFormat as c}from"../utils/business.js";function m(e,o){Object.assign(e["x-component-props"],{...n(o,["wordbook","autograph"])})}function d(d){const{createValidatorSchema:u}=l(),x=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:"0"===e.is_empty,...e.componentProps||{}},"x-content":e.slots,"x-display":"0"===e.is_show?"hidden":"visible","x-pattern":"0"===e.is_edit?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,span:2*(e.elem_width||3),showLabel:"1"!==e.hide_title,remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=u(e);return n&&(t["x-validator"]=n),"0"===e.is_null&&(t.required=!0),t},f=e=>{var o;const t=x(e);e.urlConfig?function(e,o){Object.assign(e["x-component-props"],{...n(o,["urlConfig"])})}(t,e):e.autograph&&m(t,e);const i=!!e.__multiple;return Object.assign(t["x-component-props"],{multiple:i,options:e.option||(null==(o=e.componentProps)?void 0:o.options),allowCreate:"1"===e.free_entry||!!t["x-component-props"].allowCreate,maxTagCount:r(e.multi_select_value),...n(e,["lazyRequest","requestCache"])}),i&&(t.type="array"),t},_=e=>{const o=x(e);return Object.assign(o["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,vertical:e.__vertical}),m(o,e),o},h=e=>{const t=x(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},g=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{disabled:"1"===e.is_not_fold,id:p(e.val_key),show:"0"!==e.is_show,remark:e.remark}}),b=new Map([["LINEBAR",g],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-display":"0"===e.is_show?"hidden":"visible"})],["INPUT",e=>{const o=x(e);return Object.assign(o["x-component-props"],{...n(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=x(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=x(e),{decimal_length:t,validate:n}=e;return Object.assign(o["x-component-props"],{precision:null!=t?t:null==n?void 0:n.decimal_length,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",f],["REMOTE_SEARCH",f],["DATE",e=>{const o=x(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:c(e.date_format),validate:e.validate}),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=x(e);return Object.assign(o["x-component-props"],{...n(e,["wordbook","lazyRequest","autograph"])}),o}],["SEARCH_CASCADER",e=>{var o;const t=x(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=x(e);return o.type="array",!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",_],["CHECKBOX",_],["SWITCH",e=>{const o=x(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close}),o}],["SLIDER",e=>{const o=x(e);return Object.assign(o["x-component-props"],{step:r(e.step_length),max:r(e.max_length),min:r(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=x(e);Array.isArray(e.properties)&&i("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?C(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],n(e,["wrapperStyle","display"])),o}]]),y=e=>{if(e.suffixConfig)return v(e);return(b.get(e.html_type)||h)(e)},v=o=>{if(!o.suffixConfig)return y(o);const t=e(o.suffixConfig),n=[{...o,is_show:"1",hide_title:"1",suffixConfig:void 0}].concat(t.map((e=>({...e,hide_title:"1",is_show:"1"})))),r=x(o);return Object.assign(r,{type:"void",name:a(n),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:2*(o.elem_width||3)},"x-decorator-props":{...r["x-decorator-props"],showFeedback:!1,suffixFields:n.map((e=>e.val_key))},properties:C(n)}),r},{FieldNormalizeWaterfallHook:O}=s();function C(o){let n=null;return o.reduce(((e,o,s)=>{var a;const p=null==(a=(o=O.call(t(o))).validate)?void 0:a.obj_type;return p&&d&&d.collect(p,t(o)),"LINEBAR"===o.html_type?(e[i(o)]=r(g(o),s),n=e[i(o)].properties={}):n?n[i(o)]=r(y(o),s):(n=null,e[i(o)]=r(y(o),s)),e}),{});function r(e,o){return e["x-index"]=o,e}function i(o){return o.suffixConfig?a([o,...e(o.suffixConfig)]):o.val_key}}return{schemaAdaptor:C}}export{d as useFieldListAdaptor};
|
|
1
|
+
import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,pick as n}from"lodash-es";import"../../index.js";import{parseNumberFromMaybeString as r,formRenderLog as i}from"../utils/index.js";import{useFieldNormalize as s}from"./useFieldNormalize.js";import{fieldKeyEscape as a,createLinebarId as p}from"../utils/schema.js";import{useFormValidator as l}from"./useFormValidator.js";import{transformDateFormat as c}from"../utils/business.js";function m(e,o){Object.assign(e["x-component-props"],{...n(o,["wordbook","autograph"])})}function d(d){const{createValidatorSchema:u}=l(),x=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:"0"===e.is_empty,...e.componentProps||{}},"x-content":e.slots,"x-display":"0"===e.is_show?"hidden":"visible","x-pattern":"0"===e.is_edit?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,span:2*(e.elem_width||3),showLabel:"1"!==e.hide_title,remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=u(e);return n&&(t["x-validator"]=n),"0"===e.is_null&&(t.required=!0),t},f=e=>{var o;const t=x(e);e.urlConfig?function(e,o){Object.assign(e["x-component-props"],{...n(o,["urlConfig","wordbook"])})}(t,e):e.autograph&&m(t,e);const i=!!e.__multiple;return Object.assign(t["x-component-props"],{multiple:i,options:e.option||(null==(o=e.componentProps)?void 0:o.options),allowCreate:"1"===e.free_entry||!!t["x-component-props"].allowCreate,maxTagCount:r(e.multi_select_value),...n(e,["lazyRequest","requestCache"])}),i&&(t.type="array"),t},_=e=>{const o=x(e);return Object.assign(o["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,vertical:e.__vertical}),m(o,e),o},h=e=>{const t=x(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},g=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{disabled:"1"===e.is_not_fold,id:p(e.val_key),show:"0"!==e.is_show,remark:e.remark}}),b=new Map([["LINEBAR",g],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-display":"0"===e.is_show?"hidden":"visible"})],["INPUT",e=>{const o=x(e);return Object.assign(o["x-component-props"],{...n(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=x(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=x(e),{decimal_length:t,validate:n}=e;return Object.assign(o["x-component-props"],{precision:null!=t?t:null==n?void 0:n.decimal_length,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",f],["REMOTE_SEARCH",f],["DATE",e=>{const o=x(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:c(e.date_format),validate:e.validate}),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=x(e);return Object.assign(o["x-component-props"],{...n(e,["wordbook","lazyRequest","autograph"])}),o}],["SEARCH_CASCADER",e=>{var o;const t=x(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=x(e);return o.type="array",!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",_],["CHECKBOX",_],["SWITCH",e=>{const o=x(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close}),o}],["SLIDER",e=>{const o=x(e);return Object.assign(o["x-component-props"],{step:r(e.step_length),max:r(e.max_length),min:r(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=x(e);Array.isArray(e.properties)&&i("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?C(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],n(e,["wrapperStyle","display"])),o}]]),y=e=>{if(e.suffixConfig)return v(e);return(b.get(e.html_type)||h)(e)},v=o=>{if(!o.suffixConfig)return y(o);const t=e(o.suffixConfig),n=[{...o,is_show:"1",hide_title:"1",suffixConfig:void 0}].concat(t.map((e=>({...e,hide_title:"1",is_show:"1"})))),r=x(o);return Object.assign(r,{type:"void",name:a(n),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:2*(o.elem_width||3)},"x-decorator-props":{...r["x-decorator-props"],showFeedback:!1,suffixFields:n.map((e=>e.val_key))},properties:C(n)}),r},{FieldNormalizeWaterfallHook:O}=s();function C(o){let n=null;return o.reduce(((e,o,s)=>{var a;const p=null==(a=(o=O.call(t(o))).validate)?void 0:a.obj_type;return p&&d&&d.collect(p,t(o)),"LINEBAR"===o.html_type?(e[i(o)]=r(g(o),s),n=e[i(o)].properties={}):n?n[i(o)]=r(y(o),s):(n=null,e[i(o)]=r(y(o),s)),e}),{});function r(e,o){return e["x-index"]=o,e}function i(o){return o.suffixConfig?a([o,...e(o.suffixConfig)]):o.val_key}}return{schemaAdaptor:C}}export{d as useFieldListAdaptor};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Form } from '@formily/core';
|
|
2
|
+
import { ContextCollector } from '../../../../../es/components/form-render';
|
|
3
|
+
export declare function useWordbookSetting(formModel: Form, changeContextCollector: ContextCollector): {
|
|
4
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isField as n}from"@formily/core";function t(t,o){return{wordbookSettingHandler:function(r,e){var i,l;const u=t.query(r).take();if(!n(u))return;const c=function(n){var t,o;return null==(o=null==(t=n.decoratorProps)?void 0:t.fieldItem)?void 0:o.wordbook}(u);(null==(l=null==(i=null==c?void 0:c.setting)?void 0:i.cascading)?void 0:l.length)&&c.setting.cascading.forEach((i=>{var l;const u=function(n,t){return Object.values(n.fields).find((n=>n.title===t))}(t,i["form.name"]);if(!u||!n(u))return;const c=null==(l=o.getContext(r,e))?void 0:l.currentOption;c&&u.setValue(c[i.value])}))}}}export{t as useWordbookSetting};
|
|
@@ -78,15 +78,21 @@ export declare type FormWordbook = Partial<{
|
|
|
78
78
|
name: string;
|
|
79
79
|
render_key: string[];
|
|
80
80
|
search_key: string[];
|
|
81
|
+
value_key: string;
|
|
81
82
|
primary_key: string;
|
|
82
83
|
type: string;
|
|
83
|
-
value_key: string;
|
|
84
84
|
level_key: string;
|
|
85
85
|
link_key: string;
|
|
86
86
|
link_key_split: string;
|
|
87
87
|
show_key: string[];
|
|
88
88
|
conObj: AnyObject[];
|
|
89
89
|
conObjFirstLevel: AnyObject[];
|
|
90
|
+
setting: Partial<{
|
|
91
|
+
cascading: {
|
|
92
|
+
'form.name': string;
|
|
93
|
+
value: string;
|
|
94
|
+
}[];
|
|
95
|
+
}>;
|
|
90
96
|
}>;
|
|
91
97
|
export declare type CombinationItemDeletableFn = (itemData: AnyObject, index: number) => boolean;
|
|
92
98
|
export declare type FieldItem = {
|
|
@@ -2802,6 +2802,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2802
2802
|
triggerAllReactionsHandler: () => void;
|
|
2803
2803
|
operationalFormHandler: (field: string) => void;
|
|
2804
2804
|
triggerAllOperationalFormHandler: () => void;
|
|
2805
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2805
2806
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2806
2807
|
[key: symbol]: any;
|
|
2807
2808
|
[key: `x-${string}`]: any;
|
|
@@ -3689,6 +3690,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3689
3690
|
triggerAllReactionsHandler: () => void;
|
|
3690
3691
|
operationalFormHandler: (field: string) => void;
|
|
3691
3692
|
triggerAllOperationalFormHandler: () => void;
|
|
3693
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
3692
3694
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
3693
3695
|
[key: symbol]: any;
|
|
3694
3696
|
[key: `x-${string}`]: any;
|
|
@@ -2796,6 +2796,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2796
2796
|
triggerAllReactionsHandler: () => void;
|
|
2797
2797
|
operationalFormHandler: (field: string) => void;
|
|
2798
2798
|
triggerAllOperationalFormHandler: () => void;
|
|
2799
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2799
2800
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2800
2801
|
[key: symbol]: any;
|
|
2801
2802
|
[key: `x-${string}`]: any;
|
|
@@ -3683,6 +3684,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3683
3684
|
triggerAllReactionsHandler: () => void;
|
|
3684
3685
|
operationalFormHandler: (field: string) => void;
|
|
3685
3686
|
triggerAllOperationalFormHandler: () => void;
|
|
3687
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
3686
3688
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
3687
3689
|
[key: symbol]: any;
|
|
3688
3690
|
[key: `x-${string}`]: any;
|
|
@@ -2369,6 +2369,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2369
2369
|
triggerAllReactionsHandler: () => void;
|
|
2370
2370
|
operationalFormHandler: (field: string) => void;
|
|
2371
2371
|
triggerAllOperationalFormHandler: () => void;
|
|
2372
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2372
2373
|
schemaAdaptor: (fieldList: import("../../../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2373
2374
|
[key: symbol]: any;
|
|
2374
2375
|
[key: `x-${string}`]: any;
|
|
@@ -381,6 +381,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
381
381
|
triggerAllReactionsHandler: () => void;
|
|
382
382
|
operationalFormHandler: (field: string) => void;
|
|
383
383
|
triggerAllOperationalFormHandler: () => void;
|
|
384
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
384
385
|
schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
385
386
|
[key: symbol]: any;
|
|
386
387
|
[key: `x-${string}`]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cloneDeep as n}from"lodash-es";import{SearchTypeConfig as i}from"../types/enums.js";function e(e,
|
|
1
|
+
import{cloneDeep as n}from"lodash-es";import{SearchTypeConfig as i}from"../types/enums.js";function e(e,l,u){const o=n(l);if(u.trim()){let n=[];switch(e){case i.SEARCH_ORG_STAFF:n=function(n,i){return c(n,i,[])}(o,u);break;case i.SEARCH_ORG:n=function(n,i){return t(n,[]).filter((n=>{var e;return null==(e=n.title)?void 0:e.includes(i.trim())}))}(o,u);break;default:n=r(o,u)}return n}return r(o,u)}function r(n,i){return l(n,i),o(n)}function l(n,i){n.forEach((n=>{var e,r;if(n.visible=null==(e=n.title)?void 0:e.includes(i.trim()),null==(r=n.children)?void 0:r.length)if(l(n.children,i),n.visible)u(n.children);else{n.children.some((n=>n.visible))&&(n.visible=!0)}}))}function t(n,i){return n.forEach((n=>{var e;(null==(e=n.children)?void 0:e.length)?t(n.children,i):i.push(n)})),i}function c(n,i,e){return n.forEach((n=>{var r,l;(null==(r=n.title)?void 0:r.includes(i.trim()))&&!n.disabled&&e.push(n),(null==(l=n.children)?void 0:l.length)&&c(n.children,i,e)})),e}function u(n){n.forEach((n=>{var i;n.visible=!0,(null==(i=n.children)?void 0:i.length)&&u(n.children)}))}function o(n){return n.filter((n=>{var i;return!!n.visible&&((null==(i=n.children)?void 0:i.length)&&(n.children=o(n.children)),!0)}))}function d(n){const i=[];return function n(e){for(let r=0,l=e.length;r<l;r++){const l=e[r];l.children&&(i.push(l.key),n(l.children))}}(n),i}export{d as getExpandedKeys,e as searchFilterTree};
|
|
@@ -102,15 +102,21 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
102
102
|
name?: string | undefined;
|
|
103
103
|
render_key?: string[] | undefined;
|
|
104
104
|
search_key?: string[] | undefined;
|
|
105
|
+
value_key?: string | undefined;
|
|
105
106
|
primary_key?: string | undefined;
|
|
106
107
|
type?: string | undefined;
|
|
107
|
-
value_key?: string | undefined;
|
|
108
108
|
level_key?: string | undefined;
|
|
109
109
|
link_key?: string | undefined;
|
|
110
110
|
link_key_split?: string | undefined;
|
|
111
111
|
show_key?: string[] | undefined;
|
|
112
112
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
113
113
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
114
|
+
setting?: {
|
|
115
|
+
cascading?: {
|
|
116
|
+
'form.name': string;
|
|
117
|
+
value: string;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
} | undefined;
|
|
114
120
|
} | undefined;
|
|
115
121
|
open?: {
|
|
116
122
|
value?: any;
|
|
@@ -2069,6 +2075,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2069
2075
|
triggerAllReactionsHandler: () => void;
|
|
2070
2076
|
operationalFormHandler: (field: string) => void;
|
|
2071
2077
|
triggerAllOperationalFormHandler: () => void;
|
|
2078
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2072
2079
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2073
2080
|
[key: symbol]: any;
|
|
2074
2081
|
[key: `x-${string}`]: any;
|
|
@@ -104,15 +104,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
name?: string | undefined;
|
|
105
105
|
render_key?: string[] | undefined;
|
|
106
106
|
search_key?: string[] | undefined;
|
|
107
|
+
value_key?: string | undefined;
|
|
107
108
|
primary_key?: string | undefined;
|
|
108
109
|
type?: string | undefined;
|
|
109
|
-
value_key?: string | undefined;
|
|
110
110
|
level_key?: string | undefined;
|
|
111
111
|
link_key?: string | undefined;
|
|
112
112
|
link_key_split?: string | undefined;
|
|
113
113
|
show_key?: string[] | undefined;
|
|
114
114
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
115
115
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
116
|
+
setting?: {
|
|
117
|
+
cascading?: {
|
|
118
|
+
'form.name': string;
|
|
119
|
+
value: string;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
} | undefined;
|
|
116
122
|
} | undefined;
|
|
117
123
|
open?: {
|
|
118
124
|
value?: any;
|
|
@@ -2071,6 +2077,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2071
2077
|
triggerAllReactionsHandler: () => void;
|
|
2072
2078
|
operationalFormHandler: (field: string) => void;
|
|
2073
2079
|
triggerAllOperationalFormHandler: () => void;
|
|
2080
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2074
2081
|
schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2075
2082
|
[key: symbol]: any;
|
|
2076
2083
|
[key: `x-${string}`]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.46-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.46-beta.37",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.46-beta.37",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useMemoize as t}from"@vueuse/core";import{isObject as e,isString as n,isNumber as r,isArray as o,isFunction as i}from"lodash-es";import{getCurrentInstance as
|
|
1
|
+
import{useMemoize as t}from"@vueuse/core";import{isObject as e,isString as n,isNumber as r,isArray as o,isFunction as i}from"lodash-es";import{getCurrentInstance as u}from"vue";import c from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition}from"./business.js";function s(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=l(r),e=l(e);for(let c=0;c<e.length;c++){if(n(e[c],i,u),o)return;for(let i=0;i<r.length;i++){const u=e[c][r[i]];if(Array.isArray(u)&&t(u,n,r,e[c]),o)return}}}(t,e,n,r)}function f(t,n,r=n.name,o){if(!r)throw new Error(`[CUI]: invalid component name for ${n}`);const{components:i={}}=t._context;i[r]||(!Reflect.get(t,"__cnhis_version")&&e(c)&&Reflect.set(t,"__cnhis_version",c.version),o?o():t.component(r,n))}function a(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function l(t){return Array.isArray(t)?t:[t]}function x(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const d=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),m=Object.seal(Object.create(null));function p(t,n){return function t(n,r){return e(n)?o(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((n,[o,u])=>(r.includes(o)||(e(u)&&!i(u)?n[o]=t(u,r):n[o]=u),n)),{}):n}(t,n)}function h(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function g(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function v(t,e="px"){if(r(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function y(t,e){return t.some((t=>e.includes(t)))}const b=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function j(t,n){if(!e(t))return t;const r={...t};for(let t=0;t<n.length;t++)Reflect.deleteProperty(r,n[t]);return r}function w(t){if(!u())throw new Error(t||"can't use this hook out of setup environment")}function $(t,e=1){const[n,o,i,u,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const s=c&&parseInt(c,16)/255;return[parseInt(o,16),parseInt(i,16),parseInt(u,16),+(r(s)?s.toFixed(2):e)]}export{m as DMZ,l as arrayed,w as checkInSetupEnv,p as deepOmit,g as findAncestor,a as generateTimeFormat,d as getStringWidth,$ as hex2rgba,b as jsonParse,f as safeComponentRegister,h as separateMetaModule,j as shallowOmit,y as targetStringIncludes,s as traverse,x as uuidGenerator,v as widthAppend};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.46-beta.
|
|
3
|
+
"version": "3.1.46-beta.37",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "9ae5297f9c7bdc479fdaa5ccd805153fede484a1"
|
|
65
65
|
}
|