@next-bricks/form 1.13.15 → 1.14.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/dist/bricks.json +14 -14
- package/dist/chunks/{9259.e2fc3b35.js → 9259.c9118789.js} +3 -3
- package/dist/chunks/9259.c9118789.js.map +1 -0
- package/dist/chunks/eo-time-range-picker.bf6d37b2.js +2 -0
- package/dist/chunks/eo-time-range-picker.bf6d37b2.js.map +1 -0
- package/dist/chunks/{main.a4ade901.js → main.697a615b.js} +2 -2
- package/dist/chunks/{main.a4ade901.js.map → main.697a615b.js.map} +1 -1
- package/dist/examples.json +6 -6
- package/dist/{index.0610ed74.js → index.165dd6bf.js} +2 -2
- package/dist/{index.0610ed74.js.map → index.165dd6bf.js.map} +1 -1
- package/dist/manifest.json +208 -196
- package/dist/types.json +230 -188
- package/dist-types/time-range-picker/index.d.ts +11 -1
- package/package.json +2 -2
- package/dist/chunks/9259.e2fc3b35.js.map +0 -1
- package/dist/chunks/eo-time-range-picker.9bc8a20e.js +0 -2
- package/dist/chunks/eo-time-range-picker.9bc8a20e.js.map +0 -1
- /package/dist/chunks/{9259.e2fc3b35.js.LICENSE.txt → 9259.c9118789.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -2127,6 +2127,194 @@
|
|
|
2127
2127
|
}
|
|
2128
2128
|
]
|
|
2129
2129
|
},
|
|
2130
|
+
"eo-textarea": {
|
|
2131
|
+
"properties": [
|
|
2132
|
+
{
|
|
2133
|
+
"name": "name",
|
|
2134
|
+
"annotation": {
|
|
2135
|
+
"type": "keyword",
|
|
2136
|
+
"value": "string"
|
|
2137
|
+
}
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
"name": "label",
|
|
2141
|
+
"annotation": {
|
|
2142
|
+
"type": "keyword",
|
|
2143
|
+
"value": "string"
|
|
2144
|
+
}
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"name": "value",
|
|
2148
|
+
"annotation": {
|
|
2149
|
+
"type": "keyword",
|
|
2150
|
+
"value": "string"
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"name": "placeholder",
|
|
2155
|
+
"annotation": {
|
|
2156
|
+
"type": "keyword",
|
|
2157
|
+
"value": "string"
|
|
2158
|
+
}
|
|
2159
|
+
},
|
|
2160
|
+
{
|
|
2161
|
+
"name": "disabled",
|
|
2162
|
+
"annotation": {
|
|
2163
|
+
"type": "keyword",
|
|
2164
|
+
"value": "boolean"
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"name": "minLength",
|
|
2169
|
+
"annotation": {
|
|
2170
|
+
"type": "keyword",
|
|
2171
|
+
"value": "number"
|
|
2172
|
+
}
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"name": "maxLength",
|
|
2176
|
+
"annotation": {
|
|
2177
|
+
"type": "keyword",
|
|
2178
|
+
"value": "number"
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
"name": "autoSize",
|
|
2183
|
+
"annotation": {
|
|
2184
|
+
"type": "reference",
|
|
2185
|
+
"typeName": {
|
|
2186
|
+
"type": "identifier",
|
|
2187
|
+
"name": "AutoSize"
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
"name": "required",
|
|
2193
|
+
"annotation": {
|
|
2194
|
+
"type": "keyword",
|
|
2195
|
+
"value": "boolean"
|
|
2196
|
+
}
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
"name": "max",
|
|
2200
|
+
"annotation": {
|
|
2201
|
+
"type": "keyword",
|
|
2202
|
+
"value": "number"
|
|
2203
|
+
}
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
"name": "min",
|
|
2207
|
+
"annotation": {
|
|
2208
|
+
"type": "keyword",
|
|
2209
|
+
"value": "number"
|
|
2210
|
+
}
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
"name": "message",
|
|
2214
|
+
"annotation": {
|
|
2215
|
+
"type": "reference",
|
|
2216
|
+
"typeName": {
|
|
2217
|
+
"type": "identifier",
|
|
2218
|
+
"name": "Record"
|
|
2219
|
+
},
|
|
2220
|
+
"typeParameters": {
|
|
2221
|
+
"type": "typeParameterInstantiation",
|
|
2222
|
+
"params": [
|
|
2223
|
+
{
|
|
2224
|
+
"type": "keyword",
|
|
2225
|
+
"value": "string"
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"type": "keyword",
|
|
2229
|
+
"value": "string"
|
|
2230
|
+
}
|
|
2231
|
+
]
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"name": "textareaStyle",
|
|
2237
|
+
"annotation": {
|
|
2238
|
+
"type": "reference",
|
|
2239
|
+
"typeName": {
|
|
2240
|
+
"type": "qualifiedName",
|
|
2241
|
+
"left": {
|
|
2242
|
+
"type": "identifier",
|
|
2243
|
+
"name": "React"
|
|
2244
|
+
},
|
|
2245
|
+
"right": {
|
|
2246
|
+
"type": "identifier",
|
|
2247
|
+
"name": "CSSProperties"
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
],
|
|
2253
|
+
"events": [
|
|
2254
|
+
{
|
|
2255
|
+
"name": "change",
|
|
2256
|
+
"detail": {
|
|
2257
|
+
"annotation": {
|
|
2258
|
+
"type": "keyword",
|
|
2259
|
+
"value": "string"
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
],
|
|
2264
|
+
"methods": [
|
|
2265
|
+
{
|
|
2266
|
+
"name": "focusTextarea",
|
|
2267
|
+
"params": [],
|
|
2268
|
+
"returns": {}
|
|
2269
|
+
}
|
|
2270
|
+
],
|
|
2271
|
+
"types": [
|
|
2272
|
+
{
|
|
2273
|
+
"type": "typeAlias",
|
|
2274
|
+
"name": "AutoSize",
|
|
2275
|
+
"annotation": {
|
|
2276
|
+
"type": "union",
|
|
2277
|
+
"types": [
|
|
2278
|
+
{
|
|
2279
|
+
"type": "keyword",
|
|
2280
|
+
"value": "boolean"
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
"type": "typeLiteral",
|
|
2284
|
+
"members": [
|
|
2285
|
+
{
|
|
2286
|
+
"type": "propertySignature",
|
|
2287
|
+
"key": {
|
|
2288
|
+
"type": "identifier",
|
|
2289
|
+
"name": "minRows"
|
|
2290
|
+
},
|
|
2291
|
+
"annotation": {
|
|
2292
|
+
"type": "keyword",
|
|
2293
|
+
"value": "number"
|
|
2294
|
+
},
|
|
2295
|
+
"optional": true,
|
|
2296
|
+
"computed": false
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
"type": "propertySignature",
|
|
2300
|
+
"key": {
|
|
2301
|
+
"type": "identifier",
|
|
2302
|
+
"name": "maxRows"
|
|
2303
|
+
},
|
|
2304
|
+
"annotation": {
|
|
2305
|
+
"type": "keyword",
|
|
2306
|
+
"value": "number"
|
|
2307
|
+
},
|
|
2308
|
+
"optional": true,
|
|
2309
|
+
"computed": false
|
|
2310
|
+
}
|
|
2311
|
+
]
|
|
2312
|
+
}
|
|
2313
|
+
]
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
]
|
|
2317
|
+
},
|
|
2130
2318
|
"eo-input": {
|
|
2131
2319
|
"properties": [
|
|
2132
2320
|
{
|
|
@@ -2462,194 +2650,6 @@
|
|
|
2462
2650
|
}
|
|
2463
2651
|
]
|
|
2464
2652
|
},
|
|
2465
|
-
"eo-textarea": {
|
|
2466
|
-
"properties": [
|
|
2467
|
-
{
|
|
2468
|
-
"name": "name",
|
|
2469
|
-
"annotation": {
|
|
2470
|
-
"type": "keyword",
|
|
2471
|
-
"value": "string"
|
|
2472
|
-
}
|
|
2473
|
-
},
|
|
2474
|
-
{
|
|
2475
|
-
"name": "label",
|
|
2476
|
-
"annotation": {
|
|
2477
|
-
"type": "keyword",
|
|
2478
|
-
"value": "string"
|
|
2479
|
-
}
|
|
2480
|
-
},
|
|
2481
|
-
{
|
|
2482
|
-
"name": "value",
|
|
2483
|
-
"annotation": {
|
|
2484
|
-
"type": "keyword",
|
|
2485
|
-
"value": "string"
|
|
2486
|
-
}
|
|
2487
|
-
},
|
|
2488
|
-
{
|
|
2489
|
-
"name": "placeholder",
|
|
2490
|
-
"annotation": {
|
|
2491
|
-
"type": "keyword",
|
|
2492
|
-
"value": "string"
|
|
2493
|
-
}
|
|
2494
|
-
},
|
|
2495
|
-
{
|
|
2496
|
-
"name": "disabled",
|
|
2497
|
-
"annotation": {
|
|
2498
|
-
"type": "keyword",
|
|
2499
|
-
"value": "boolean"
|
|
2500
|
-
}
|
|
2501
|
-
},
|
|
2502
|
-
{
|
|
2503
|
-
"name": "minLength",
|
|
2504
|
-
"annotation": {
|
|
2505
|
-
"type": "keyword",
|
|
2506
|
-
"value": "number"
|
|
2507
|
-
}
|
|
2508
|
-
},
|
|
2509
|
-
{
|
|
2510
|
-
"name": "maxLength",
|
|
2511
|
-
"annotation": {
|
|
2512
|
-
"type": "keyword",
|
|
2513
|
-
"value": "number"
|
|
2514
|
-
}
|
|
2515
|
-
},
|
|
2516
|
-
{
|
|
2517
|
-
"name": "autoSize",
|
|
2518
|
-
"annotation": {
|
|
2519
|
-
"type": "reference",
|
|
2520
|
-
"typeName": {
|
|
2521
|
-
"type": "identifier",
|
|
2522
|
-
"name": "AutoSize"
|
|
2523
|
-
}
|
|
2524
|
-
}
|
|
2525
|
-
},
|
|
2526
|
-
{
|
|
2527
|
-
"name": "required",
|
|
2528
|
-
"annotation": {
|
|
2529
|
-
"type": "keyword",
|
|
2530
|
-
"value": "boolean"
|
|
2531
|
-
}
|
|
2532
|
-
},
|
|
2533
|
-
{
|
|
2534
|
-
"name": "max",
|
|
2535
|
-
"annotation": {
|
|
2536
|
-
"type": "keyword",
|
|
2537
|
-
"value": "number"
|
|
2538
|
-
}
|
|
2539
|
-
},
|
|
2540
|
-
{
|
|
2541
|
-
"name": "min",
|
|
2542
|
-
"annotation": {
|
|
2543
|
-
"type": "keyword",
|
|
2544
|
-
"value": "number"
|
|
2545
|
-
}
|
|
2546
|
-
},
|
|
2547
|
-
{
|
|
2548
|
-
"name": "message",
|
|
2549
|
-
"annotation": {
|
|
2550
|
-
"type": "reference",
|
|
2551
|
-
"typeName": {
|
|
2552
|
-
"type": "identifier",
|
|
2553
|
-
"name": "Record"
|
|
2554
|
-
},
|
|
2555
|
-
"typeParameters": {
|
|
2556
|
-
"type": "typeParameterInstantiation",
|
|
2557
|
-
"params": [
|
|
2558
|
-
{
|
|
2559
|
-
"type": "keyword",
|
|
2560
|
-
"value": "string"
|
|
2561
|
-
},
|
|
2562
|
-
{
|
|
2563
|
-
"type": "keyword",
|
|
2564
|
-
"value": "string"
|
|
2565
|
-
}
|
|
2566
|
-
]
|
|
2567
|
-
}
|
|
2568
|
-
}
|
|
2569
|
-
},
|
|
2570
|
-
{
|
|
2571
|
-
"name": "textareaStyle",
|
|
2572
|
-
"annotation": {
|
|
2573
|
-
"type": "reference",
|
|
2574
|
-
"typeName": {
|
|
2575
|
-
"type": "qualifiedName",
|
|
2576
|
-
"left": {
|
|
2577
|
-
"type": "identifier",
|
|
2578
|
-
"name": "React"
|
|
2579
|
-
},
|
|
2580
|
-
"right": {
|
|
2581
|
-
"type": "identifier",
|
|
2582
|
-
"name": "CSSProperties"
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
],
|
|
2588
|
-
"events": [
|
|
2589
|
-
{
|
|
2590
|
-
"name": "change",
|
|
2591
|
-
"detail": {
|
|
2592
|
-
"annotation": {
|
|
2593
|
-
"type": "keyword",
|
|
2594
|
-
"value": "string"
|
|
2595
|
-
}
|
|
2596
|
-
}
|
|
2597
|
-
}
|
|
2598
|
-
],
|
|
2599
|
-
"methods": [
|
|
2600
|
-
{
|
|
2601
|
-
"name": "focusTextarea",
|
|
2602
|
-
"params": [],
|
|
2603
|
-
"returns": {}
|
|
2604
|
-
}
|
|
2605
|
-
],
|
|
2606
|
-
"types": [
|
|
2607
|
-
{
|
|
2608
|
-
"type": "typeAlias",
|
|
2609
|
-
"name": "AutoSize",
|
|
2610
|
-
"annotation": {
|
|
2611
|
-
"type": "union",
|
|
2612
|
-
"types": [
|
|
2613
|
-
{
|
|
2614
|
-
"type": "keyword",
|
|
2615
|
-
"value": "boolean"
|
|
2616
|
-
},
|
|
2617
|
-
{
|
|
2618
|
-
"type": "typeLiteral",
|
|
2619
|
-
"members": [
|
|
2620
|
-
{
|
|
2621
|
-
"type": "propertySignature",
|
|
2622
|
-
"key": {
|
|
2623
|
-
"type": "identifier",
|
|
2624
|
-
"name": "minRows"
|
|
2625
|
-
},
|
|
2626
|
-
"annotation": {
|
|
2627
|
-
"type": "keyword",
|
|
2628
|
-
"value": "number"
|
|
2629
|
-
},
|
|
2630
|
-
"optional": true,
|
|
2631
|
-
"computed": false
|
|
2632
|
-
},
|
|
2633
|
-
{
|
|
2634
|
-
"type": "propertySignature",
|
|
2635
|
-
"key": {
|
|
2636
|
-
"type": "identifier",
|
|
2637
|
-
"name": "maxRows"
|
|
2638
|
-
},
|
|
2639
|
-
"annotation": {
|
|
2640
|
-
"type": "keyword",
|
|
2641
|
-
"value": "number"
|
|
2642
|
-
},
|
|
2643
|
-
"optional": true,
|
|
2644
|
-
"computed": false
|
|
2645
|
-
}
|
|
2646
|
-
]
|
|
2647
|
-
}
|
|
2648
|
-
]
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
]
|
|
2652
|
-
},
|
|
2653
2653
|
"eo-form-item": {
|
|
2654
2654
|
"properties": [
|
|
2655
2655
|
{
|
|
@@ -3809,6 +3809,48 @@
|
|
|
3809
3809
|
}
|
|
3810
3810
|
}
|
|
3811
3811
|
},
|
|
3812
|
+
{
|
|
3813
|
+
"name": "placeholder",
|
|
3814
|
+
"annotation": {
|
|
3815
|
+
"type": "union",
|
|
3816
|
+
"types": [
|
|
3817
|
+
{
|
|
3818
|
+
"type": "keyword",
|
|
3819
|
+
"value": "string"
|
|
3820
|
+
},
|
|
3821
|
+
{
|
|
3822
|
+
"type": "tuple",
|
|
3823
|
+
"elementTypes": [
|
|
3824
|
+
{
|
|
3825
|
+
"type": "keyword",
|
|
3826
|
+
"value": "string"
|
|
3827
|
+
},
|
|
3828
|
+
{
|
|
3829
|
+
"type": "keyword",
|
|
3830
|
+
"value": "string"
|
|
3831
|
+
}
|
|
3832
|
+
]
|
|
3833
|
+
}
|
|
3834
|
+
]
|
|
3835
|
+
}
|
|
3836
|
+
},
|
|
3837
|
+
{
|
|
3838
|
+
"name": "inputStyle",
|
|
3839
|
+
"annotation": {
|
|
3840
|
+
"type": "reference",
|
|
3841
|
+
"typeName": {
|
|
3842
|
+
"type": "qualifiedName",
|
|
3843
|
+
"left": {
|
|
3844
|
+
"type": "identifier",
|
|
3845
|
+
"name": "React"
|
|
3846
|
+
},
|
|
3847
|
+
"right": {
|
|
3848
|
+
"type": "identifier",
|
|
3849
|
+
"name": "CSSProperties"
|
|
3850
|
+
}
|
|
3851
|
+
}
|
|
3852
|
+
}
|
|
3853
|
+
},
|
|
3812
3854
|
{
|
|
3813
3855
|
"name": "selectNearDays",
|
|
3814
3856
|
"annotation": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
2
|
import { FormItemElementBase, MessageBody } from "@next-shared/form";
|
|
3
3
|
import type { FormItemProps } from "../form-item/index.jsx";
|
|
4
4
|
import "@next-core/theme";
|
|
@@ -22,6 +22,8 @@ export interface EoTimeRangePickerProps extends FormItemProps {
|
|
|
22
22
|
value?: TimeRange;
|
|
23
23
|
format: string;
|
|
24
24
|
rangeType?: RangeType;
|
|
25
|
+
placeholder?: string | [string, string];
|
|
26
|
+
inputStyle?: CSSProperties;
|
|
25
27
|
onChange?: (range: TimeRange) => void;
|
|
26
28
|
emitChangeOnInit?: boolean;
|
|
27
29
|
selectNearDays?: number;
|
|
@@ -56,6 +58,14 @@ export declare class EoTimeRangePicker extends FormItemElementBase {
|
|
|
56
58
|
* 时间段类型
|
|
57
59
|
*/
|
|
58
60
|
accessor rangeType: RangeType | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* 输入框提示文字,单时间段时为string,范围时间段时为[string, string]
|
|
63
|
+
*/
|
|
64
|
+
accessor placeholder: string | [string, string] | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* 输入框样式
|
|
67
|
+
*/
|
|
68
|
+
accessor inputStyle: React.CSSProperties | undefined;
|
|
59
69
|
/**
|
|
60
70
|
* 只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)
|
|
61
71
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/form",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@next-bricks/icons": "*",
|
|
45
45
|
"@next-bricks/illustrations": "*"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "2b9945f1217b2732610b6f4af72a9c0bff7f6803"
|
|
48
48
|
}
|