File tree 2 files changed +11
-6
lines changed
components/workflow/search-attribute-input
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 76
76
{:else if attribute .type === SEARCH_ATTRIBUTE_TYPE .DATETIME }
77
77
<DatetimeInput bind:value ={attribute .value } />
78
78
{:else if attribute .type === SEARCH_ATTRIBUTE_TYPE .INT || attribute .type === SEARCH_ATTRIBUTE_TYPE .DOUBLE }
79
- <NumberInput
80
- label ={translate (' common.value' )}
81
- id =" attribute-value"
82
- bind:value ={attribute .value }
83
- />
79
+ <div >
80
+ <NumberInput
81
+ label ={translate (' common.value' )}
82
+ id =" attribute-value"
83
+ valid ={attribute .value < Number .MAX_SAFE_INTEGER}
84
+ hintText =" Number is too large"
85
+ bind:value ={attribute .value }
86
+ max ={Number .MAX_SAFE_INTEGER}
87
+ />
88
+ </div >
84
89
{:else if attribute .type === SEARCH_ATTRIBUTE_TYPE .KEYWORDLIST }
85
90
<ChipInput
86
91
label ={translate (' common.value' )}
Original file line number Diff line number Diff line change 39
39
<Label {required } {label } hidden ={labelHidden } for ={id } />
40
40
<div class =" flex items-center gap-2" >
41
41
<div
42
- class =" surface-primary relative box-border flex h-10 w-16 items-center border border-subtle text-sm focus-within:outline-none focus-within:ring-2 focus-within:ring-primary/70"
42
+ class =" surface-primary relative box-border flex h-10 min- w-16 items-center border border-subtle text-sm focus-within:outline-none focus-within:ring-2 focus-within:ring-primary/70"
43
43
class:opacity- 50={disabled }
44
44
class:search
45
45
class:invalid ={! valid }
You can’t perform that action at this time.
0 commit comments