@next-bricks/form 0.17.11 → 0.17.13

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 (60) hide show
  1. package/dist/bricks.json +11 -2
  2. package/dist/chunks/{1646.38e38e59.js → 1646.abdc63b8.js} +2 -2
  3. package/dist/chunks/{1646.38e38e59.js.map → 1646.abdc63b8.js.map} +1 -1
  4. package/dist/chunks/2754.1313aa46.js +2 -0
  5. package/dist/chunks/2754.1313aa46.js.map +1 -0
  6. package/dist/chunks/2947.264ca47d.js +3 -0
  7. package/dist/chunks/2947.264ca47d.js.LICENSE.txt +16 -0
  8. package/dist/chunks/2947.264ca47d.js.map +1 -0
  9. package/dist/chunks/3438.5ef71b44.js +2 -0
  10. package/dist/chunks/3438.5ef71b44.js.map +1 -0
  11. package/dist/chunks/{7746.4034b92f.js → 7746.82d66abb.js} +2 -2
  12. package/dist/chunks/{7746.4034b92f.js.map → 7746.82d66abb.js.map} +1 -1
  13. package/dist/chunks/{9431.cabf049c.js → 9431.95901c72.js} +2 -2
  14. package/dist/chunks/{9431.cabf049c.js.map → 9431.95901c72.js.map} +1 -1
  15. package/dist/chunks/eo-date-picker.408fd0dd.js +2 -0
  16. package/dist/chunks/eo-date-picker.408fd0dd.js.map +1 -0
  17. package/dist/chunks/eo-select.417b1e64.js +3 -0
  18. package/dist/chunks/eo-select.417b1e64.js.map +1 -0
  19. package/dist/chunks/eo-time-picker.07845f46.js +2 -0
  20. package/dist/chunks/eo-time-picker.07845f46.js.map +1 -0
  21. package/dist/chunks/eo-upload-file.e6e8b159.js +3 -0
  22. package/dist/chunks/eo-upload-file.e6e8b159.js.map +1 -0
  23. package/dist/chunks/eo-upload-image.43ed58ea.js +3 -0
  24. package/dist/chunks/eo-upload-image.43ed58ea.js.LICENSE.txt +5 -0
  25. package/dist/chunks/eo-upload-image.43ed58ea.js.map +1 -0
  26. package/dist/chunks/main.fcfbb598.js +2 -0
  27. package/dist/chunks/main.fcfbb598.js.map +1 -0
  28. package/dist/examples.json +6 -0
  29. package/dist/index.b0a87121.js +2 -0
  30. package/dist/index.b0a87121.js.map +1 -0
  31. package/dist/manifest.json +173 -0
  32. package/dist/types.json +486 -0
  33. package/dist-types/bootstrap.d.ts +2 -0
  34. package/dist-types/date-picker/i18n.d.ts +30 -0
  35. package/dist-types/date-picker/index.d.ts +93 -0
  36. package/dist-types/date-picker/index.spec.d.ts +1 -0
  37. package/dist-types/interface.d.ts +11 -0
  38. package/dist-types/time-picker/index.d.ts +55 -0
  39. package/dist-types/time-picker/index.spec.d.ts +1 -0
  40. package/docs/eo-date-picker.md +105 -0
  41. package/docs/eo-time-picker.md +67 -0
  42. package/package.json +2 -2
  43. package/dist/chunks/443.3a28ae12.js +0 -2
  44. package/dist/chunks/443.3a28ae12.js.map +0 -1
  45. package/dist/chunks/7007.cb88c5ea.js +0 -3
  46. package/dist/chunks/7007.cb88c5ea.js.map +0 -1
  47. package/dist/chunks/8177.03b061cb.js +0 -2
  48. package/dist/chunks/8177.03b061cb.js.map +0 -1
  49. package/dist/chunks/eo-select.a011486e.js +0 -3
  50. package/dist/chunks/eo-select.a011486e.js.map +0 -1
  51. package/dist/chunks/eo-upload-file.16caa8ae.js +0 -2
  52. package/dist/chunks/eo-upload-file.16caa8ae.js.map +0 -1
  53. package/dist/chunks/eo-upload-image.0d644ef7.js +0 -2
  54. package/dist/chunks/eo-upload-image.0d644ef7.js.map +0 -1
  55. package/dist/chunks/main.cb2cf05c.js +0 -2
  56. package/dist/chunks/main.cb2cf05c.js.map +0 -1
  57. package/dist/index.320fcf51.js +0 -2
  58. package/dist/index.320fcf51.js.map +0 -1
  59. /package/dist/chunks/{7007.cb88c5ea.js.LICENSE.txt → eo-select.417b1e64.js.LICENSE.txt} +0 -0
  60. /package/dist/chunks/{eo-select.a011486e.js.LICENSE.txt → eo-upload-file.e6e8b159.js.LICENSE.txt} +0 -0
@@ -1299,6 +1299,179 @@
1299
1299
  "methods": [],
1300
1300
  "parts": [],
1301
1301
  "description": "构件 `eo-auto-complete`"
1302
+ },
1303
+ {
1304
+ "name": "eo-time-picker",
1305
+ "properties": [
1306
+ {
1307
+ "name": "name",
1308
+ "description": "时间选择器字段名",
1309
+ "type": "string"
1310
+ },
1311
+ {
1312
+ "name": "label",
1313
+ "description": "时间选择器说明",
1314
+ "type": "string"
1315
+ },
1316
+ {
1317
+ "name": "value",
1318
+ "description": "时间选择器的初始值",
1319
+ "type": "string"
1320
+ },
1321
+ {
1322
+ "name": "placeholder",
1323
+ "description": "时间选择器占位说明",
1324
+ "type": "string"
1325
+ },
1326
+ {
1327
+ "name": "message",
1328
+ "description": "校验文本信息",
1329
+ "attribute": false,
1330
+ "type": "Record<string, string>"
1331
+ },
1332
+ {
1333
+ "name": "disabled",
1334
+ "description": "是否禁用",
1335
+ "type": "boolean"
1336
+ },
1337
+ {
1338
+ "name": "required",
1339
+ "description": "是否必填",
1340
+ "type": "boolean"
1341
+ },
1342
+ {
1343
+ "name": "configProps",
1344
+ "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1345
+ "attribute": false,
1346
+ "type": "Partial<TimePickerProps>"
1347
+ }
1348
+ ],
1349
+ "events": [
1350
+ {
1351
+ "name": "change",
1352
+ "description": "时间变化时触发",
1353
+ "detail": {
1354
+ "type": "string"
1355
+ }
1356
+ },
1357
+ {
1358
+ "name": "open",
1359
+ "description": "面板打开时触发, 传出当前时间值",
1360
+ "detail": {
1361
+ "type": "string"
1362
+ }
1363
+ },
1364
+ {
1365
+ "name": "close",
1366
+ "description": "面板关闭时触发,传出当前时间值",
1367
+ "detail": {
1368
+ "type": "string"
1369
+ }
1370
+ }
1371
+ ],
1372
+ "slots": [],
1373
+ "methods": [],
1374
+ "parts": [],
1375
+ "description": "构件 `eo-time-picker`"
1376
+ },
1377
+ {
1378
+ "name": "eo-date-picker",
1379
+ "properties": [
1380
+ {
1381
+ "name": "name",
1382
+ "description": "日期选择器字段名",
1383
+ "type": "string"
1384
+ },
1385
+ {
1386
+ "name": "label",
1387
+ "description": "日期选择器说明",
1388
+ "type": "string"
1389
+ },
1390
+ {
1391
+ "name": "value",
1392
+ "description": "日期选择器的初始值",
1393
+ "type": "string"
1394
+ },
1395
+ {
1396
+ "name": "placeholder",
1397
+ "description": "日期选择器占位说明",
1398
+ "type": "string"
1399
+ },
1400
+ {
1401
+ "name": "message",
1402
+ "description": "校验文本信息",
1403
+ "attribute": false,
1404
+ "type": "Record<string, string>"
1405
+ },
1406
+ {
1407
+ "name": "disabled",
1408
+ "description": "是否禁用",
1409
+ "type": "boolean"
1410
+ },
1411
+ {
1412
+ "name": "required",
1413
+ "description": "是否必填",
1414
+ "type": "boolean"
1415
+ },
1416
+ {
1417
+ "name": "showTime",
1418
+ "description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
1419
+ "type": "boolean"
1420
+ },
1421
+ {
1422
+ "name": "format",
1423
+ "description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
1424
+ "type": "string"
1425
+ },
1426
+ {
1427
+ "name": "picker",
1428
+ "description": "设置选择器类型",
1429
+ "attribute": false,
1430
+ "type": "PickerMode"
1431
+ },
1432
+ {
1433
+ "name": "futureDateDisabled",
1434
+ "description": "不可选择未来日期,优先级高于disabledDate",
1435
+ "type": "boolean"
1436
+ },
1437
+ {
1438
+ "name": "disabledDate",
1439
+ "description": "不可选择的日期",
1440
+ "attribute": false,
1441
+ "type": "DisabledDateType"
1442
+ },
1443
+ {
1444
+ "name": "useFastSelectBtn",
1445
+ "description": "快速选项",
1446
+ "type": "boolean"
1447
+ },
1448
+ {
1449
+ "name": "inputBoxStyle",
1450
+ "description": "输入框样式",
1451
+ "attribute": false,
1452
+ "type": "CSSProperties"
1453
+ }
1454
+ ],
1455
+ "events": [
1456
+ {
1457
+ "name": "change",
1458
+ "description": "日期变化时触发",
1459
+ "detail": {
1460
+ "type": "string"
1461
+ }
1462
+ },
1463
+ {
1464
+ "name": "ok",
1465
+ "description": "点击确定按钮触发(showTime 为 true 使用)",
1466
+ "detail": {
1467
+ "type": "string"
1468
+ }
1469
+ }
1470
+ ],
1471
+ "slots": [],
1472
+ "methods": [],
1473
+ "parts": [],
1474
+ "description": "构件 `eo-date-picker`"
1302
1475
  }
1303
1476
  ],
1304
1477
  "providers": []
package/dist/types.json CHANGED
@@ -456,6 +456,127 @@
456
456
  }
457
457
  ]
458
458
  },
459
+ "eo-time-picker": {
460
+ "properties": [
461
+ {
462
+ "name": "name",
463
+ "annotation": {
464
+ "type": "keyword",
465
+ "value": "string"
466
+ }
467
+ },
468
+ {
469
+ "name": "label",
470
+ "annotation": {
471
+ "type": "keyword",
472
+ "value": "string"
473
+ }
474
+ },
475
+ {
476
+ "name": "value",
477
+ "annotation": {
478
+ "type": "keyword",
479
+ "value": "string"
480
+ }
481
+ },
482
+ {
483
+ "name": "placeholder",
484
+ "annotation": {
485
+ "type": "keyword",
486
+ "value": "string"
487
+ }
488
+ },
489
+ {
490
+ "name": "message",
491
+ "annotation": {
492
+ "type": "reference",
493
+ "typeName": {
494
+ "type": "identifier",
495
+ "name": "Record"
496
+ },
497
+ "typeParameters": {
498
+ "type": "typeParameterInstantiation",
499
+ "params": [
500
+ {
501
+ "type": "keyword",
502
+ "value": "string"
503
+ },
504
+ {
505
+ "type": "keyword",
506
+ "value": "string"
507
+ }
508
+ ]
509
+ }
510
+ }
511
+ },
512
+ {
513
+ "name": "disabled",
514
+ "annotation": {
515
+ "type": "keyword",
516
+ "value": "boolean"
517
+ }
518
+ },
519
+ {
520
+ "name": "required",
521
+ "annotation": {
522
+ "type": "keyword",
523
+ "value": "boolean"
524
+ }
525
+ },
526
+ {
527
+ "name": "configProps",
528
+ "annotation": {
529
+ "type": "reference",
530
+ "typeName": {
531
+ "type": "identifier",
532
+ "name": "Partial"
533
+ },
534
+ "typeParameters": {
535
+ "type": "typeParameterInstantiation",
536
+ "params": [
537
+ {
538
+ "type": "reference",
539
+ "typeName": {
540
+ "type": "identifier",
541
+ "name": "TimePickerProps"
542
+ }
543
+ }
544
+ ]
545
+ }
546
+ }
547
+ }
548
+ ],
549
+ "events": [
550
+ {
551
+ "name": "change",
552
+ "detail": {
553
+ "annotation": {
554
+ "type": "keyword",
555
+ "value": "string"
556
+ }
557
+ }
558
+ },
559
+ {
560
+ "name": "open",
561
+ "detail": {
562
+ "annotation": {
563
+ "type": "keyword",
564
+ "value": "string"
565
+ }
566
+ }
567
+ },
568
+ {
569
+ "name": "close",
570
+ "detail": {
571
+ "annotation": {
572
+ "type": "keyword",
573
+ "value": "string"
574
+ }
575
+ }
576
+ }
577
+ ],
578
+ "methods": []
579
+ },
459
580
  "eo-form": {
460
581
  "properties": [
461
582
  {
@@ -2764,6 +2885,371 @@
2764
2885
  }
2765
2886
  ]
2766
2887
  },
2888
+ "eo-date-picker": {
2889
+ "properties": [
2890
+ {
2891
+ "name": "name",
2892
+ "annotation": {
2893
+ "type": "keyword",
2894
+ "value": "string"
2895
+ }
2896
+ },
2897
+ {
2898
+ "name": "label",
2899
+ "annotation": {
2900
+ "type": "keyword",
2901
+ "value": "string"
2902
+ }
2903
+ },
2904
+ {
2905
+ "name": "value",
2906
+ "annotation": {
2907
+ "type": "keyword",
2908
+ "value": "string"
2909
+ }
2910
+ },
2911
+ {
2912
+ "name": "placeholder",
2913
+ "annotation": {
2914
+ "type": "keyword",
2915
+ "value": "string"
2916
+ }
2917
+ },
2918
+ {
2919
+ "name": "message",
2920
+ "annotation": {
2921
+ "type": "reference",
2922
+ "typeName": {
2923
+ "type": "identifier",
2924
+ "name": "Record"
2925
+ },
2926
+ "typeParameters": {
2927
+ "type": "typeParameterInstantiation",
2928
+ "params": [
2929
+ {
2930
+ "type": "keyword",
2931
+ "value": "string"
2932
+ },
2933
+ {
2934
+ "type": "keyword",
2935
+ "value": "string"
2936
+ }
2937
+ ]
2938
+ }
2939
+ }
2940
+ },
2941
+ {
2942
+ "name": "disabled",
2943
+ "annotation": {
2944
+ "type": "keyword",
2945
+ "value": "boolean"
2946
+ }
2947
+ },
2948
+ {
2949
+ "name": "required",
2950
+ "annotation": {
2951
+ "type": "keyword",
2952
+ "value": "boolean"
2953
+ }
2954
+ },
2955
+ {
2956
+ "name": "showTime",
2957
+ "annotation": {
2958
+ "type": "keyword",
2959
+ "value": "boolean"
2960
+ }
2961
+ },
2962
+ {
2963
+ "name": "format",
2964
+ "annotation": {
2965
+ "type": "keyword",
2966
+ "value": "string"
2967
+ }
2968
+ },
2969
+ {
2970
+ "name": "picker",
2971
+ "annotation": {
2972
+ "type": "reference",
2973
+ "typeName": {
2974
+ "type": "identifier",
2975
+ "name": "PickerMode"
2976
+ }
2977
+ }
2978
+ },
2979
+ {
2980
+ "name": "futureDateDisabled",
2981
+ "annotation": {
2982
+ "type": "keyword",
2983
+ "value": "boolean"
2984
+ }
2985
+ },
2986
+ {
2987
+ "name": "disabledDate",
2988
+ "annotation": {
2989
+ "type": "reference",
2990
+ "typeName": {
2991
+ "type": "identifier",
2992
+ "name": "DisabledDateType"
2993
+ }
2994
+ }
2995
+ },
2996
+ {
2997
+ "name": "useFastSelectBtn",
2998
+ "annotation": {
2999
+ "type": "keyword",
3000
+ "value": "boolean"
3001
+ }
3002
+ },
3003
+ {
3004
+ "name": "inputBoxStyle",
3005
+ "annotation": {
3006
+ "type": "reference",
3007
+ "typeName": {
3008
+ "type": "identifier",
3009
+ "name": "CSSProperties"
3010
+ }
3011
+ }
3012
+ }
3013
+ ],
3014
+ "events": [
3015
+ {
3016
+ "name": "change",
3017
+ "detail": {
3018
+ "annotation": {
3019
+ "type": "keyword",
3020
+ "value": "string"
3021
+ }
3022
+ }
3023
+ },
3024
+ {
3025
+ "name": "ok",
3026
+ "detail": {
3027
+ "annotation": {
3028
+ "type": "keyword",
3029
+ "value": "string"
3030
+ }
3031
+ }
3032
+ }
3033
+ ],
3034
+ "methods": [],
3035
+ "types": [
3036
+ {
3037
+ "type": "typeAlias",
3038
+ "name": "PickerMode",
3039
+ "annotation": {
3040
+ "type": "union",
3041
+ "types": [
3042
+ {
3043
+ "type": "jsLiteral",
3044
+ "value": "date"
3045
+ },
3046
+ {
3047
+ "type": "jsLiteral",
3048
+ "value": "week"
3049
+ },
3050
+ {
3051
+ "type": "jsLiteral",
3052
+ "value": "month"
3053
+ },
3054
+ {
3055
+ "type": "jsLiteral",
3056
+ "value": "year"
3057
+ },
3058
+ {
3059
+ "type": "jsLiteral",
3060
+ "value": "quarter"
3061
+ }
3062
+ ]
3063
+ }
3064
+ },
3065
+ {
3066
+ "type": "typeAlias",
3067
+ "name": "DisabledDateType",
3068
+ "annotation": {
3069
+ "type": "union",
3070
+ "types": [
3071
+ {
3072
+ "type": "reference",
3073
+ "typeName": {
3074
+ "type": "identifier",
3075
+ "name": "DisabledDate"
3076
+ }
3077
+ },
3078
+ {
3079
+ "type": "array",
3080
+ "elementType": {
3081
+ "type": "reference",
3082
+ "typeName": {
3083
+ "type": "identifier",
3084
+ "name": "DisabledDate"
3085
+ }
3086
+ }
3087
+ }
3088
+ ]
3089
+ }
3090
+ },
3091
+ {
3092
+ "type": "interface",
3093
+ "name": "DisabledDate",
3094
+ "body": [
3095
+ {
3096
+ "type": "propertySignature",
3097
+ "key": {
3098
+ "type": "identifier",
3099
+ "name": "second"
3100
+ },
3101
+ "annotation": {
3102
+ "type": "union",
3103
+ "types": [
3104
+ {
3105
+ "type": "keyword",
3106
+ "value": "string"
3107
+ },
3108
+ {
3109
+ "type": "keyword",
3110
+ "value": "number"
3111
+ }
3112
+ ]
3113
+ },
3114
+ "optional": true,
3115
+ "computed": false
3116
+ },
3117
+ {
3118
+ "type": "propertySignature",
3119
+ "key": {
3120
+ "type": "identifier",
3121
+ "name": "minute"
3122
+ },
3123
+ "annotation": {
3124
+ "type": "union",
3125
+ "types": [
3126
+ {
3127
+ "type": "keyword",
3128
+ "value": "string"
3129
+ },
3130
+ {
3131
+ "type": "keyword",
3132
+ "value": "number"
3133
+ }
3134
+ ]
3135
+ },
3136
+ "optional": true,
3137
+ "computed": false
3138
+ },
3139
+ {
3140
+ "type": "propertySignature",
3141
+ "key": {
3142
+ "type": "identifier",
3143
+ "name": "hour"
3144
+ },
3145
+ "annotation": {
3146
+ "type": "union",
3147
+ "types": [
3148
+ {
3149
+ "type": "keyword",
3150
+ "value": "string"
3151
+ },
3152
+ {
3153
+ "type": "keyword",
3154
+ "value": "number"
3155
+ }
3156
+ ]
3157
+ },
3158
+ "optional": true,
3159
+ "computed": false
3160
+ },
3161
+ {
3162
+ "type": "propertySignature",
3163
+ "key": {
3164
+ "type": "identifier",
3165
+ "name": "date"
3166
+ },
3167
+ "annotation": {
3168
+ "type": "union",
3169
+ "types": [
3170
+ {
3171
+ "type": "keyword",
3172
+ "value": "string"
3173
+ },
3174
+ {
3175
+ "type": "keyword",
3176
+ "value": "number"
3177
+ }
3178
+ ]
3179
+ },
3180
+ "optional": true,
3181
+ "computed": false
3182
+ },
3183
+ {
3184
+ "type": "propertySignature",
3185
+ "key": {
3186
+ "type": "identifier",
3187
+ "name": "month"
3188
+ },
3189
+ "annotation": {
3190
+ "type": "union",
3191
+ "types": [
3192
+ {
3193
+ "type": "keyword",
3194
+ "value": "string"
3195
+ },
3196
+ {
3197
+ "type": "keyword",
3198
+ "value": "number"
3199
+ }
3200
+ ]
3201
+ },
3202
+ "optional": true,
3203
+ "computed": false
3204
+ },
3205
+ {
3206
+ "type": "propertySignature",
3207
+ "key": {
3208
+ "type": "identifier",
3209
+ "name": "year"
3210
+ },
3211
+ "annotation": {
3212
+ "type": "union",
3213
+ "types": [
3214
+ {
3215
+ "type": "keyword",
3216
+ "value": "string"
3217
+ },
3218
+ {
3219
+ "type": "keyword",
3220
+ "value": "number"
3221
+ }
3222
+ ]
3223
+ },
3224
+ "optional": true,
3225
+ "computed": false
3226
+ },
3227
+ {
3228
+ "type": "propertySignature",
3229
+ "key": {
3230
+ "type": "identifier",
3231
+ "name": "weekday"
3232
+ },
3233
+ "annotation": {
3234
+ "type": "union",
3235
+ "types": [
3236
+ {
3237
+ "type": "keyword",
3238
+ "value": "string"
3239
+ },
3240
+ {
3241
+ "type": "keyword",
3242
+ "value": "number"
3243
+ }
3244
+ ]
3245
+ },
3246
+ "optional": true,
3247
+ "computed": false
3248
+ }
3249
+ ]
3250
+ }
3251
+ ]
3252
+ },
2767
3253
  "eo-radio": {
2768
3254
  "properties": [
2769
3255
  {
@@ -13,3 +13,5 @@ import "./upload/upload-image/index.js";
13
13
  import "./general-switch/index.js";
14
14
  import "./upload/upload-file/index.js";
15
15
  import "./auto-complete/index.js";
16
+ import "./time-picker/index.js";
17
+ import "./date-picker/index.js";