feffery_antd_components 0.2.0 → 0.2.2
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/DESCRIPTION +1 -1
- package/Project.toml +1 -1
- package/README-en_US.md +1 -3
- package/README.md +1 -3
- package/build/lib/feffery_antd_components/AntdDatePicker.py +5 -3
- package/build/lib/feffery_antd_components/AntdDateRangePicker.py +5 -3
- package/build/lib/feffery_antd_components/AntdDraggerUpload.py +5 -3
- package/build/lib/feffery_antd_components/AntdPictureUpload.py +5 -3
- package/build/lib/feffery_antd_components/AntdSlider.py +5 -3
- package/build/lib/feffery_antd_components/AntdTable.py +45 -5
- package/build/lib/feffery_antd_components/AntdUpload.py +5 -3
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/build/lib/feffery_antd_components/metadata.json +261 -0
- package/build/lib/feffery_antd_components/package-info.json +1 -1
- package/feffery_antd_components/AntdDatePicker.py +5 -3
- package/feffery_antd_components/AntdDateRangePicker.py +5 -3
- package/feffery_antd_components/AntdDraggerUpload.py +5 -3
- package/feffery_antd_components/AntdPictureUpload.py +5 -3
- package/feffery_antd_components/AntdSlider.py +5 -3
- package/feffery_antd_components/AntdTable.py +45 -5
- package/feffery_antd_components/AntdUpload.py +5 -3
- package/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/feffery_antd_components/metadata.json +261 -0
- package/feffery_antd_components/package-info.json +1 -1
- package/package.json +1 -1
- package/setup.py +1 -1
- package/src/jl/'feffery'_antddatepicker.jl +2 -1
- package/src/jl/'feffery'_antddaterangepicker.jl +2 -1
- package/src/jl/'feffery'_antddraggerupload.jl +2 -1
- package/src/jl/'feffery'_antdpictureupload.jl +2 -1
- package/src/jl/'feffery'_antdslider.jl +2 -1
- package/src/jl/'feffery'_antdtable.jl +24 -3
- package/src/jl/'feffery'_antdupload.jl +2 -1
- package/src/lib/components/AntdDatePicker.react.js +19 -0
- package/src/lib/components/AntdDateRangePicker.react.js +18 -0
- package/src/lib/components/AntdSlider.react.js +5 -0
- package/src/lib/components/AntdTable.react.js +136 -2
- package/src/lib/components/upload/AntdDraggerUpload.react.js +5 -0
- package/src/lib/components/upload/AntdPictureUpload.react.js +5 -0
- package/src/lib/components/upload/AntdUpload.react.js +5 -0
- package/usage.py +60 -25
|
@@ -4118,6 +4118,13 @@
|
|
|
4118
4118
|
"computed": false
|
|
4119
4119
|
}
|
|
4120
4120
|
},
|
|
4121
|
+
"firstDayOfWeek": {
|
|
4122
|
+
"type": {
|
|
4123
|
+
"name": "number"
|
|
4124
|
+
},
|
|
4125
|
+
"required": false,
|
|
4126
|
+
"description": ""
|
|
4127
|
+
},
|
|
4121
4128
|
"disabled": {
|
|
4122
4129
|
"type": {
|
|
4123
4130
|
"name": "bool"
|
|
@@ -4603,6 +4610,13 @@
|
|
|
4603
4610
|
"computed": false
|
|
4604
4611
|
}
|
|
4605
4612
|
},
|
|
4613
|
+
"firstDayOfWeek": {
|
|
4614
|
+
"type": {
|
|
4615
|
+
"name": "number"
|
|
4616
|
+
},
|
|
4617
|
+
"required": false,
|
|
4618
|
+
"description": ""
|
|
4619
|
+
},
|
|
4606
4620
|
"disabled": {
|
|
4607
4621
|
"type": {
|
|
4608
4622
|
"name": "arrayOf",
|
|
@@ -12182,6 +12196,13 @@
|
|
|
12182
12196
|
"required": false,
|
|
12183
12197
|
"description": ""
|
|
12184
12198
|
},
|
|
12199
|
+
"railStyle": {
|
|
12200
|
+
"type": {
|
|
12201
|
+
"name": "object"
|
|
12202
|
+
},
|
|
12203
|
+
"required": false,
|
|
12204
|
+
"description": ""
|
|
12205
|
+
},
|
|
12185
12206
|
"key": {
|
|
12186
12207
|
"type": {
|
|
12187
12208
|
"name": "string"
|
|
@@ -13811,6 +13832,10 @@
|
|
|
13811
13832
|
{
|
|
13812
13833
|
"value": "'switch'",
|
|
13813
13834
|
"computed": false
|
|
13835
|
+
},
|
|
13836
|
+
{
|
|
13837
|
+
"value": "'select'",
|
|
13838
|
+
"computed": false
|
|
13814
13839
|
}
|
|
13815
13840
|
],
|
|
13816
13841
|
"required": false
|
|
@@ -14546,6 +14571,173 @@
|
|
|
14546
14571
|
"required": false
|
|
14547
14572
|
}
|
|
14548
14573
|
}
|
|
14574
|
+
},
|
|
14575
|
+
{
|
|
14576
|
+
"name": "exact",
|
|
14577
|
+
"value": {
|
|
14578
|
+
"className": {
|
|
14579
|
+
"name": "string",
|
|
14580
|
+
"required": false
|
|
14581
|
+
},
|
|
14582
|
+
"style": {
|
|
14583
|
+
"name": "object",
|
|
14584
|
+
"required": false
|
|
14585
|
+
},
|
|
14586
|
+
"options": {
|
|
14587
|
+
"name": "arrayOf",
|
|
14588
|
+
"value": {
|
|
14589
|
+
"name": "exact",
|
|
14590
|
+
"value": {
|
|
14591
|
+
"label": {
|
|
14592
|
+
"name": "string",
|
|
14593
|
+
"required": false
|
|
14594
|
+
},
|
|
14595
|
+
"value": {
|
|
14596
|
+
"name": "string",
|
|
14597
|
+
"required": false
|
|
14598
|
+
}
|
|
14599
|
+
}
|
|
14600
|
+
},
|
|
14601
|
+
"required": false
|
|
14602
|
+
},
|
|
14603
|
+
"listHeight": {
|
|
14604
|
+
"name": "number",
|
|
14605
|
+
"required": false
|
|
14606
|
+
},
|
|
14607
|
+
"mode": {
|
|
14608
|
+
"name": "enum",
|
|
14609
|
+
"value": [
|
|
14610
|
+
{
|
|
14611
|
+
"value": "'multiple'",
|
|
14612
|
+
"computed": false
|
|
14613
|
+
},
|
|
14614
|
+
{
|
|
14615
|
+
"value": "'tags'",
|
|
14616
|
+
"computed": false
|
|
14617
|
+
}
|
|
14618
|
+
],
|
|
14619
|
+
"required": false
|
|
14620
|
+
},
|
|
14621
|
+
"disabled": {
|
|
14622
|
+
"name": "bool",
|
|
14623
|
+
"required": false
|
|
14624
|
+
},
|
|
14625
|
+
"size": {
|
|
14626
|
+
"name": "enum",
|
|
14627
|
+
"value": [
|
|
14628
|
+
{
|
|
14629
|
+
"value": "'small'",
|
|
14630
|
+
"computed": false
|
|
14631
|
+
},
|
|
14632
|
+
{
|
|
14633
|
+
"value": "'middle'",
|
|
14634
|
+
"computed": false
|
|
14635
|
+
},
|
|
14636
|
+
{
|
|
14637
|
+
"value": "'large'",
|
|
14638
|
+
"computed": false
|
|
14639
|
+
}
|
|
14640
|
+
],
|
|
14641
|
+
"required": false
|
|
14642
|
+
},
|
|
14643
|
+
"bordered": {
|
|
14644
|
+
"name": "bool",
|
|
14645
|
+
"required": false
|
|
14646
|
+
},
|
|
14647
|
+
"placeholder": {
|
|
14648
|
+
"name": "string",
|
|
14649
|
+
"required": false
|
|
14650
|
+
},
|
|
14651
|
+
"placement": {
|
|
14652
|
+
"name": "enum",
|
|
14653
|
+
"value": [
|
|
14654
|
+
{
|
|
14655
|
+
"value": "'bottomLeft'",
|
|
14656
|
+
"computed": false
|
|
14657
|
+
},
|
|
14658
|
+
{
|
|
14659
|
+
"value": "'bottomRight'",
|
|
14660
|
+
"computed": false
|
|
14661
|
+
},
|
|
14662
|
+
{
|
|
14663
|
+
"value": "'topLeft'",
|
|
14664
|
+
"computed": false
|
|
14665
|
+
},
|
|
14666
|
+
{
|
|
14667
|
+
"value": "'topRight'",
|
|
14668
|
+
"computed": false
|
|
14669
|
+
}
|
|
14670
|
+
],
|
|
14671
|
+
"required": false
|
|
14672
|
+
},
|
|
14673
|
+
"value": {
|
|
14674
|
+
"name": "union",
|
|
14675
|
+
"value": [
|
|
14676
|
+
{
|
|
14677
|
+
"name": "union",
|
|
14678
|
+
"value": [
|
|
14679
|
+
{
|
|
14680
|
+
"name": "string"
|
|
14681
|
+
},
|
|
14682
|
+
{
|
|
14683
|
+
"name": "number"
|
|
14684
|
+
}
|
|
14685
|
+
]
|
|
14686
|
+
},
|
|
14687
|
+
{
|
|
14688
|
+
"name": "arrayOf",
|
|
14689
|
+
"value": {
|
|
14690
|
+
"name": "union",
|
|
14691
|
+
"value": [
|
|
14692
|
+
{
|
|
14693
|
+
"name": "string"
|
|
14694
|
+
},
|
|
14695
|
+
{
|
|
14696
|
+
"name": "number"
|
|
14697
|
+
}
|
|
14698
|
+
]
|
|
14699
|
+
}
|
|
14700
|
+
}
|
|
14701
|
+
],
|
|
14702
|
+
"required": false
|
|
14703
|
+
},
|
|
14704
|
+
"maxTagCount": {
|
|
14705
|
+
"name": "union",
|
|
14706
|
+
"value": [
|
|
14707
|
+
{
|
|
14708
|
+
"name": "number"
|
|
14709
|
+
},
|
|
14710
|
+
{
|
|
14711
|
+
"name": "enum",
|
|
14712
|
+
"value": [
|
|
14713
|
+
{
|
|
14714
|
+
"value": "'responsive'",
|
|
14715
|
+
"computed": false
|
|
14716
|
+
}
|
|
14717
|
+
]
|
|
14718
|
+
}
|
|
14719
|
+
],
|
|
14720
|
+
"required": false
|
|
14721
|
+
},
|
|
14722
|
+
"optionFilterProp": {
|
|
14723
|
+
"name": "enum",
|
|
14724
|
+
"value": [
|
|
14725
|
+
{
|
|
14726
|
+
"value": "'value'",
|
|
14727
|
+
"computed": false
|
|
14728
|
+
},
|
|
14729
|
+
{
|
|
14730
|
+
"value": "'label'",
|
|
14731
|
+
"computed": false
|
|
14732
|
+
}
|
|
14733
|
+
],
|
|
14734
|
+
"required": false
|
|
14735
|
+
},
|
|
14736
|
+
"allowClear": {
|
|
14737
|
+
"name": "bool",
|
|
14738
|
+
"required": false
|
|
14739
|
+
}
|
|
14740
|
+
}
|
|
14549
14741
|
}
|
|
14550
14742
|
]
|
|
14551
14743
|
}
|
|
@@ -15440,6 +15632,54 @@
|
|
|
15440
15632
|
"required": false,
|
|
15441
15633
|
"description": ""
|
|
15442
15634
|
},
|
|
15635
|
+
"recentlySelectRow": {
|
|
15636
|
+
"type": {
|
|
15637
|
+
"name": "object"
|
|
15638
|
+
},
|
|
15639
|
+
"required": false,
|
|
15640
|
+
"description": ""
|
|
15641
|
+
},
|
|
15642
|
+
"recentlySelectDataIndex": {
|
|
15643
|
+
"type": {
|
|
15644
|
+
"name": "string"
|
|
15645
|
+
},
|
|
15646
|
+
"required": false,
|
|
15647
|
+
"description": ""
|
|
15648
|
+
},
|
|
15649
|
+
"recentlySelectValue": {
|
|
15650
|
+
"type": {
|
|
15651
|
+
"name": "union",
|
|
15652
|
+
"value": [
|
|
15653
|
+
{
|
|
15654
|
+
"name": "union",
|
|
15655
|
+
"value": [
|
|
15656
|
+
{
|
|
15657
|
+
"name": "number"
|
|
15658
|
+
},
|
|
15659
|
+
{
|
|
15660
|
+
"name": "string"
|
|
15661
|
+
}
|
|
15662
|
+
]
|
|
15663
|
+
},
|
|
15664
|
+
{
|
|
15665
|
+
"name": "arrayOf",
|
|
15666
|
+
"value": {
|
|
15667
|
+
"name": "union",
|
|
15668
|
+
"value": [
|
|
15669
|
+
{
|
|
15670
|
+
"name": "number"
|
|
15671
|
+
},
|
|
15672
|
+
{
|
|
15673
|
+
"name": "string"
|
|
15674
|
+
}
|
|
15675
|
+
]
|
|
15676
|
+
}
|
|
15677
|
+
}
|
|
15678
|
+
]
|
|
15679
|
+
},
|
|
15680
|
+
"required": false,
|
|
15681
|
+
"description": ""
|
|
15682
|
+
},
|
|
15443
15683
|
"hiddenRowKeys": {
|
|
15444
15684
|
"type": {
|
|
15445
15685
|
"name": "arrayOf",
|
|
@@ -22927,6 +23167,13 @@
|
|
|
22927
23167
|
"required": false,
|
|
22928
23168
|
"description": ""
|
|
22929
23169
|
},
|
|
23170
|
+
"headers": {
|
|
23171
|
+
"type": {
|
|
23172
|
+
"name": "object"
|
|
23173
|
+
},
|
|
23174
|
+
"required": false,
|
|
23175
|
+
"description": ""
|
|
23176
|
+
},
|
|
22930
23177
|
"downloadUrl": {
|
|
22931
23178
|
"type": {
|
|
22932
23179
|
"name": "string"
|
|
@@ -23440,6 +23687,13 @@
|
|
|
23440
23687
|
"required": false,
|
|
23441
23688
|
"description": ""
|
|
23442
23689
|
},
|
|
23690
|
+
"headers": {
|
|
23691
|
+
"type": {
|
|
23692
|
+
"name": "object"
|
|
23693
|
+
},
|
|
23694
|
+
"required": false,
|
|
23695
|
+
"description": ""
|
|
23696
|
+
},
|
|
23443
23697
|
"downloadUrl": {
|
|
23444
23698
|
"type": {
|
|
23445
23699
|
"name": "string"
|
|
@@ -23979,6 +24233,13 @@
|
|
|
23979
24233
|
"required": false,
|
|
23980
24234
|
"description": ""
|
|
23981
24235
|
},
|
|
24236
|
+
"headers": {
|
|
24237
|
+
"type": {
|
|
24238
|
+
"name": "object"
|
|
24239
|
+
},
|
|
24240
|
+
"required": false,
|
|
24241
|
+
"description": ""
|
|
24242
|
+
},
|
|
23982
24243
|
"downloadUrl": {
|
|
23983
24244
|
"type": {
|
|
23984
24245
|
"name": "string"
|
package/package.json
CHANGED
package/setup.py
CHANGED
|
@@ -20,6 +20,7 @@ Those elements have the following types:
|
|
|
20
20
|
- `mode` (a value equal to: 'eq', 'ne', 'le', 'lt', 'ge', 'gt', 'in', 'not-in', 'in-enumerate-dates', 'not-in-enumerate-dates'; optional)
|
|
21
21
|
- `target` (a value equal to: 'day', 'month', 'quarter', 'year', 'dayOfYear', 'dayOfWeek', 'specific-date'; optional)
|
|
22
22
|
- `value` (Real | String | Array of Reals | Array of Strings; optional)s
|
|
23
|
+
- `firstDayOfWeek` (Real; optional)
|
|
23
24
|
- `format` (String; optional)
|
|
24
25
|
- `key` (String; optional)
|
|
25
26
|
- `loading_state` (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: lists containing elements 'is_loading', 'prop_name', 'component_name'.
|
|
@@ -53,7 +54,7 @@ session: window.sessionStorage, data is cleared once the browser quit.
|
|
|
53
54
|
- `value` (String; optional)
|
|
54
55
|
"""
|
|
55
56
|
function 'feffery'_antddatepicker(; kwargs...)
|
|
56
|
-
available_props = Symbol[:id, :allowClear, :bordered, :className, :defaultPickerValue, :defaultValue, :disabled, :disabledDatesStrategy, :format, :key, :loading_state, :locale, :persisted_props, :persistence, :persistence_type, :picker, :placeholder, :placement, :popupContainer, :readOnly, :showTime, :size, :status, :style, :value]
|
|
57
|
+
available_props = Symbol[:id, :allowClear, :bordered, :className, :defaultPickerValue, :defaultValue, :disabled, :disabledDatesStrategy, :firstDayOfWeek, :format, :key, :loading_state, :locale, :persisted_props, :persistence, :persistence_type, :picker, :placeholder, :placement, :popupContainer, :readOnly, :showTime, :size, :status, :style, :value]
|
|
57
58
|
wild_props = Symbol[]
|
|
58
59
|
return Component("'feffery'_antddatepicker", "AntdDatePicker", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
59
60
|
end
|
|
@@ -20,6 +20,7 @@ Those elements have the following types:
|
|
|
20
20
|
- `mode` (a value equal to: 'eq', 'ne', 'le', 'lt', 'ge', 'gt', 'in', 'not-in', 'in-enumerate-dates', 'not-in-enumerate-dates'; optional)
|
|
21
21
|
- `target` (a value equal to: 'day', 'month', 'quarter', 'year', 'dayOfYear', 'dayOfWeek', 'specific-date'; optional)
|
|
22
22
|
- `value` (Real | String | Array of Reals | Array of Strings; optional)s
|
|
23
|
+
- `firstDayOfWeek` (Real; optional)
|
|
23
24
|
- `format` (String; optional)
|
|
24
25
|
- `key` (String; optional)
|
|
25
26
|
- `loading_state` (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: lists containing elements 'is_loading', 'prop_name', 'component_name'.
|
|
@@ -53,7 +54,7 @@ session: window.sessionStorage, data is cleared once the browser quit.
|
|
|
53
54
|
- `value` (Array of Strings; optional)
|
|
54
55
|
"""
|
|
55
56
|
function 'feffery'_antddaterangepicker(; kwargs...)
|
|
56
|
-
available_props = Symbol[:id, :allowClear, :bordered, :className, :defaultPickerValue, :defaultValue, :disabled, :disabledDatesStrategy, :format, :key, :loading_state, :locale, :persisted_props, :persistence, :persistence_type, :picker, :placeholder, :placement, :popupContainer, :readOnly, :showTime, :size, :status, :style, :value]
|
|
57
|
+
available_props = Symbol[:id, :allowClear, :bordered, :className, :defaultPickerValue, :defaultValue, :disabled, :disabledDatesStrategy, :firstDayOfWeek, :format, :key, :loading_state, :locale, :persisted_props, :persistence, :persistence_type, :picker, :placeholder, :placement, :popupContainer, :readOnly, :showTime, :size, :status, :style, :value]
|
|
57
58
|
wild_props = Symbol[]
|
|
58
59
|
return Component("'feffery'_antddaterangepicker", "AntdDateRangePicker", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
59
60
|
end
|
|
@@ -27,6 +27,7 @@ Those elements have the following types:
|
|
|
27
27
|
- `fileListMaxLength` (Real; optional)
|
|
28
28
|
- `fileMaxSize` (Real; optional)
|
|
29
29
|
- `fileTypes` (Array of Strings; optional)
|
|
30
|
+
- `headers` (Dict; optional)
|
|
30
31
|
- `hint` (a list of or a singular dash component, string or number; optional)
|
|
31
32
|
- `key` (String; optional)
|
|
32
33
|
- `lastUploadTaskRecord` (optional): . lastUploadTaskRecord has the following type: lists containing elements 'fileName', 'fileSize', 'completeTimestamp', 'taskStatus', 'taskId'.
|
|
@@ -87,7 +88,7 @@ Those elements have the following types:
|
|
|
87
88
|
- `uploadId` (String; optional)
|
|
88
89
|
"""
|
|
89
90
|
function 'feffery'_antddraggerupload(; kwargs...)
|
|
90
|
-
available_props = Symbol[:id, :apiUrl, :className, :confirmBeforeDelete, :defaultFileList, :directory, :disabled, :downloadUrl, :draggerClassName, :draggerStyle, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :hint, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :multiple, :progressProps, :showErrorMessage, :showPercent, :showSuccessMessage, :showUploadList, :status, :style, :text, :uploadId]
|
|
91
|
+
available_props = Symbol[:id, :apiUrl, :className, :confirmBeforeDelete, :defaultFileList, :directory, :disabled, :downloadUrl, :draggerClassName, :draggerStyle, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :headers, :hint, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :multiple, :progressProps, :showErrorMessage, :showPercent, :showSuccessMessage, :showUploadList, :status, :style, :text, :uploadId]
|
|
91
92
|
wild_props = Symbol[]
|
|
92
93
|
return Component("'feffery'_antddraggerupload", "AntdDraggerUpload", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
93
94
|
end
|
|
@@ -40,6 +40,7 @@ Those elements have the following types:
|
|
|
40
40
|
- `fileListMaxLength` (Real; optional)
|
|
41
41
|
- `fileMaxSize` (Real; optional)
|
|
42
42
|
- `fileTypes` (Array of Strings; optional)
|
|
43
|
+
- `headers` (Dict; optional)
|
|
43
44
|
- `key` (String; optional)
|
|
44
45
|
- `lastUploadTaskRecord` (optional): . lastUploadTaskRecord has the following type: lists containing elements 'fileName', 'fileSize', 'completeTimestamp', 'taskStatus', 'taskId'.
|
|
45
46
|
Those elements have the following types:
|
|
@@ -90,7 +91,7 @@ Those elements have the following types:
|
|
|
90
91
|
- `uploadId` (String; optional)
|
|
91
92
|
"""
|
|
92
93
|
function 'feffery'_antdpictureupload(; kwargs...)
|
|
93
|
-
available_props = Symbol[:id, :apiUrl, :buttonContent, :className, :confirmBeforeDelete, :defaultFileList, :disabled, :downloadUrl, :editConfig, :editable, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :progressProps, :showErrorMessage, :showPercent, :showPreviewIcon, :showRemoveIcon, :showSuccessMessage, :status, :style, :uploadId]
|
|
94
|
+
available_props = Symbol[:id, :apiUrl, :buttonContent, :className, :confirmBeforeDelete, :defaultFileList, :disabled, :downloadUrl, :editConfig, :editable, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :headers, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :progressProps, :showErrorMessage, :showPercent, :showPreviewIcon, :showRemoveIcon, :showSuccessMessage, :status, :style, :uploadId]
|
|
94
95
|
wild_props = Symbol[]
|
|
95
96
|
return Component("'feffery'_antdpictureupload", "AntdPictureUpload", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
96
97
|
end
|
|
@@ -35,6 +35,7 @@ memory: only kept in memory, reset on page refresh.
|
|
|
35
35
|
local: window.localStorage, data is kept after the browser quit.
|
|
36
36
|
session: window.sessionStorage, data is cleared once the browser quit.
|
|
37
37
|
- `popupContainer` (a value equal to: 'parent', 'body'; optional)
|
|
38
|
+
- `railStyle` (Dict; optional)
|
|
38
39
|
- `range` (Bool; optional)
|
|
39
40
|
- `step` (Real; optional)
|
|
40
41
|
- `style` (Dict; optional)
|
|
@@ -45,7 +46,7 @@ session: window.sessionStorage, data is cleared once the browser quit.
|
|
|
45
46
|
- `vertical` (Bool; optional)
|
|
46
47
|
"""
|
|
47
48
|
function 'feffery'_antdslider(; kwargs...)
|
|
48
|
-
available_props = Symbol[:id, :className, :defaultValue, :disabled, :key, :loading_state, :marks, :max, :min, :persisted_props, :persistence, :persistence_type, :popupContainer, :range, :step, :style, :tooltipPrefix, :tooltipSuffix, :tooltipVisible, :value, :vertical]
|
|
49
|
+
available_props = Symbol[:id, :className, :defaultValue, :disabled, :key, :loading_state, :marks, :max, :min, :persisted_props, :persistence, :persistence_type, :popupContainer, :railStyle, :range, :step, :style, :tooltipPrefix, :tooltipSuffix, :tooltipVisible, :value, :vertical]
|
|
49
50
|
wild_props = Symbol[]
|
|
50
51
|
return Component("'feffery'_antdslider", "AntdSlider", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
51
52
|
end
|
|
@@ -20,7 +20,7 @@ Those elements have the following types:
|
|
|
20
20
|
- `group` (String; optional)
|
|
21
21
|
- `renderOptions` (optional): . renderOptions has the following type: lists containing elements 'renderType', 'renderLinkText', 'renderButtonPopConfirmProps', 'tooltipCustomContent', 'progressOneHundredPercentColor', 'ringProgressFontSize', 'dropdownProps'.
|
|
22
22
|
Those elements have the following types:
|
|
23
|
-
- `renderType` (a value equal to: "link", 'ellipsis', 'copyable', 'ellipsis-copyable', 'tags', 'status-badge', 'image', 'custom-format', 'corner-mark', 'row-merge', 'dropdown', 'dropdown-links', 'image-avatar', "mini-line", 'mini-bar', 'mini-progress', 'mini-ring-progress', 'mini-area', "button", 'checkbox', 'switch'; optional)
|
|
23
|
+
- `renderType` (a value equal to: "link", 'ellipsis', 'copyable', 'ellipsis-copyable', 'tags', 'status-badge', 'image', 'custom-format', 'corner-mark', 'row-merge', 'dropdown', 'dropdown-links', 'image-avatar', "mini-line", 'mini-bar', 'mini-progress', 'mini-ring-progress', 'mini-area', "button", 'checkbox', 'switch', 'select'; optional)
|
|
24
24
|
- `renderLinkText` (String; optional)
|
|
25
25
|
- `renderButtonPopConfirmProps` (optional): . renderButtonPopConfirmProps has the following type: lists containing elements 'title', 'okText', 'cancelText'.
|
|
26
26
|
Those elements have the following types:
|
|
@@ -138,7 +138,25 @@ Those elements have the following types:
|
|
|
138
138
|
- `lg` (Real; optional)
|
|
139
139
|
- `xl` (Real; optional)
|
|
140
140
|
- `xxl` (Real; optional)
|
|
141
|
-
- `shape` (a value equal to: 'circle', 'square'; optional)
|
|
141
|
+
- `shape` (a value equal to: 'circle', 'square'; optional) | lists containing elements 'className', 'style', 'options', 'listHeight', 'mode', 'disabled', 'size', 'bordered', 'placeholder', 'placement', 'value', 'maxTagCount', 'optionFilterProp', 'allowClear'.
|
|
142
|
+
Those elements have the following types:
|
|
143
|
+
- `className` (String; optional)
|
|
144
|
+
- `style` (Dict; optional)
|
|
145
|
+
- `options` (optional): . options has the following type: Array of lists containing elements 'label', 'value'.
|
|
146
|
+
Those elements have the following types:
|
|
147
|
+
- `label` (String; optional)
|
|
148
|
+
- `value` (String; optional)s
|
|
149
|
+
- `listHeight` (Real; optional)
|
|
150
|
+
- `mode` (a value equal to: 'multiple', 'tags'; optional)
|
|
151
|
+
- `disabled` (Bool; optional)
|
|
152
|
+
- `size` (a value equal to: 'small', 'middle', 'large'; optional)
|
|
153
|
+
- `bordered` (Bool; optional)
|
|
154
|
+
- `placeholder` (String; optional)
|
|
155
|
+
- `placement` (a value equal to: 'bottomLeft', 'bottomRight', 'topLeft', 'topRight'; optional)
|
|
156
|
+
- `value` (String | Real | Array of String | Reals; optional)
|
|
157
|
+
- `maxTagCount` (Real | a value equal to: 'responsive'; optional)
|
|
158
|
+
- `optionFilterProp` (a value equal to: 'value', 'label'; optional)
|
|
159
|
+
- `allowClear` (Bool; optional)s
|
|
142
160
|
- `defaultExpandedRowKeys` (Array of Strings; optional)
|
|
143
161
|
- `emptyContent` (a list of or a singular dash component, string or number; optional)
|
|
144
162
|
- `enableCellClickListenColumns` (Array of Strings; optional)
|
|
@@ -203,6 +221,9 @@ Those elements have the following types:
|
|
|
203
221
|
- `recentlyMouseEnterColumnDataIndex` (String; optional)
|
|
204
222
|
- `recentlyMouseEnterRow` (Dict; optional)
|
|
205
223
|
- `recentlyMouseEnterRowKey` (String | Real; optional)
|
|
224
|
+
- `recentlySelectDataIndex` (String; optional)
|
|
225
|
+
- `recentlySelectRow` (Dict; optional)
|
|
226
|
+
- `recentlySelectValue` (Real | String | Array of Real | Strings; optional)
|
|
206
227
|
- `recentlySwitchDataIndex` (String; optional)
|
|
207
228
|
- `recentlySwitchRow` (Dict; optional)
|
|
208
229
|
- `recentlySwitchStatus` (Bool; optional)
|
|
@@ -237,7 +258,7 @@ Those elements have the following types:
|
|
|
237
258
|
- `overlayStyle` (Dict; optional)
|
|
238
259
|
"""
|
|
239
260
|
function 'feffery'_antdtable(; kwargs...)
|
|
240
|
-
available_props = Symbol[:id, :bordered, :cellUpdateOptimize, :className, :clickedContent, :columns, :columnsFormatConstraint, :conditionalStyleFuncs, :containerId, :currentData, :customFormatFuncs, :data, :defaultExpandedRowKeys, :emptyContent, :enableCellClickListenColumns, :enableHoverListen, :expandRowByClick, :expandedRowKeyToContent, :expandedRowWidth, :filter, :filterOptions, :hiddenRowKeys, :key, :loading_state, :locale, :maxHeight, :maxWidth, :miniChartAnimation, :miniChartHeight, :mode, :nClicksButton, :nClicksCell, :nClicksDropdownItem, :pagination, :recentlyButtonClickedDataIndex, :recentlyButtonClickedRow, :recentlyCellClickColumn, :recentlyCellClickRecord, :recentlyChangedRow, :recentlyCheckedDataIndex, :recentlyCheckedLabel, :recentlyCheckedRow, :recentlyCheckedStatus, :recentlyClickedDropdownItemTitle, :recentlyDropdownItemClickedDataIndex, :recentlyDropdownItemClickedRow, :recentlyMouseEnterColumnDataIndex, :recentlyMouseEnterRow, :recentlyMouseEnterRowKey, :recentlySwitchDataIndex, :recentlySwitchRow, :recentlySwitchStatus, :rowSelectionType, :rowSelectionWidth, :selectedRowKeys, :selectedRows, :size, :sortOptions, :sorter, :sticky, :style, :summaryRowContents, :summaryRowFixed, :titlePopoverInfo]
|
|
261
|
+
available_props = Symbol[:id, :bordered, :cellUpdateOptimize, :className, :clickedContent, :columns, :columnsFormatConstraint, :conditionalStyleFuncs, :containerId, :currentData, :customFormatFuncs, :data, :defaultExpandedRowKeys, :emptyContent, :enableCellClickListenColumns, :enableHoverListen, :expandRowByClick, :expandedRowKeyToContent, :expandedRowWidth, :filter, :filterOptions, :hiddenRowKeys, :key, :loading_state, :locale, :maxHeight, :maxWidth, :miniChartAnimation, :miniChartHeight, :mode, :nClicksButton, :nClicksCell, :nClicksDropdownItem, :pagination, :recentlyButtonClickedDataIndex, :recentlyButtonClickedRow, :recentlyCellClickColumn, :recentlyCellClickRecord, :recentlyChangedRow, :recentlyCheckedDataIndex, :recentlyCheckedLabel, :recentlyCheckedRow, :recentlyCheckedStatus, :recentlyClickedDropdownItemTitle, :recentlyDropdownItemClickedDataIndex, :recentlyDropdownItemClickedRow, :recentlyMouseEnterColumnDataIndex, :recentlyMouseEnterRow, :recentlyMouseEnterRowKey, :recentlySelectDataIndex, :recentlySelectRow, :recentlySelectValue, :recentlySwitchDataIndex, :recentlySwitchRow, :recentlySwitchStatus, :rowSelectionType, :rowSelectionWidth, :selectedRowKeys, :selectedRows, :size, :sortOptions, :sorter, :sticky, :style, :summaryRowContents, :summaryRowFixed, :titlePopoverInfo]
|
|
241
262
|
wild_props = Symbol[]
|
|
242
263
|
return Component("'feffery'_antdtable", "AntdTable", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
243
264
|
end
|
|
@@ -26,6 +26,7 @@ Those elements have the following types:
|
|
|
26
26
|
- `fileListMaxLength` (Real; optional)
|
|
27
27
|
- `fileMaxSize` (Real; optional)
|
|
28
28
|
- `fileTypes` (Array of Strings; optional)
|
|
29
|
+
- `headers` (Dict; optional)
|
|
29
30
|
- `key` (String; optional)
|
|
30
31
|
- `lastUploadTaskRecord` (optional): . lastUploadTaskRecord has the following type: lists containing elements 'fileName', 'fileSize', 'completeTimestamp', 'taskStatus', 'taskId'.
|
|
31
32
|
Those elements have the following types:
|
|
@@ -76,7 +77,7 @@ Those elements have the following types:
|
|
|
76
77
|
- `uploadId` (String; optional)
|
|
77
78
|
"""
|
|
78
79
|
function 'feffery'_antdupload(; kwargs...)
|
|
79
|
-
available_props = Symbol[:id, :apiUrl, :buttonContent, :className, :confirmBeforeDelete, :defaultFileList, :directory, :disabled, :downloadUrl, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :multiple, :progressProps, :showErrorMessage, :showPercent, :showSuccessMessage, :showUploadList, :status, :style, :uploadId]
|
|
80
|
+
available_props = Symbol[:id, :apiUrl, :buttonContent, :className, :confirmBeforeDelete, :defaultFileList, :directory, :disabled, :downloadUrl, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :headers, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :multiple, :progressProps, :showErrorMessage, :showPercent, :showSuccessMessage, :showUploadList, :status, :style, :uploadId]
|
|
80
81
|
wild_props = Symbol[]
|
|
81
82
|
return Component("'feffery'_antdupload", "AntdUpload", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
82
83
|
end
|
|
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { DatePicker, ConfigProvider } from 'antd';
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import { isString, isUndefined } from 'lodash';
|
|
6
|
+
import "moment/locale/zh-cn";
|
|
6
7
|
import { str2Locale } from './locales.react';
|
|
7
8
|
import useCss from '../hooks/useCss';
|
|
8
9
|
import PropsContext from '../contexts/PropsContext';
|
|
@@ -19,6 +20,7 @@ const AntdDatePicker = (props) => {
|
|
|
19
20
|
setProps,
|
|
20
21
|
picker,
|
|
21
22
|
format,
|
|
23
|
+
firstDayOfWeek,
|
|
22
24
|
disabled,
|
|
23
25
|
showTime,
|
|
24
26
|
allowClear,
|
|
@@ -68,6 +70,19 @@ const AntdDatePicker = (props) => {
|
|
|
68
70
|
}
|
|
69
71
|
}, [])
|
|
70
72
|
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
if (!isUndefined(firstDayOfWeek)) {
|
|
75
|
+
moment.locale(
|
|
76
|
+
locale === 'en-us' ? 'en' : locale,
|
|
77
|
+
{
|
|
78
|
+
week: {
|
|
79
|
+
dow: firstDayOfWeek
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
}, [firstDayOfWeek])
|
|
85
|
+
|
|
71
86
|
const onChange = (date, dateString) => {
|
|
72
87
|
if (isString(dateString)) {
|
|
73
88
|
setProps({ value: dateString })
|
|
@@ -350,6 +365,7 @@ const AntdDatePicker = (props) => {
|
|
|
350
365
|
format={format}
|
|
351
366
|
onChange={onChange}
|
|
352
367
|
picker={picker}
|
|
368
|
+
calendarStartDay={firstDayOfWeek}
|
|
353
369
|
disabled={
|
|
354
370
|
context && !isUndefined(context.componentDisabled) ?
|
|
355
371
|
context.componentDisabled :
|
|
@@ -415,6 +431,9 @@ AntdDatePicker.propTypes = {
|
|
|
415
431
|
// 设置日期选择的粒度(date:精确到天,week:精确到周,month:精确到月,quarter:精确到季度,year:精确到年。默认为date)
|
|
416
432
|
picker: PropTypes.oneOf(['date', 'week', 'month', 'quarter', 'year']),
|
|
417
433
|
|
|
434
|
+
// 设置每一周的起始日
|
|
435
|
+
firstDayOfWeek: PropTypes.number,
|
|
436
|
+
|
|
418
437
|
// 设置是否禁用组件,默认为false
|
|
419
438
|
disabled: PropTypes.bool,
|
|
420
439
|
|
|
@@ -2,6 +2,7 @@ import React, { useEffect, useContext } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { DatePicker, ConfigProvider } from 'antd';
|
|
4
4
|
import moment from 'moment';
|
|
5
|
+
import "moment/locale/zh-cn";
|
|
5
6
|
import { isString, isUndefined } from 'lodash';
|
|
6
7
|
import { str2Locale } from './locales.react';
|
|
7
8
|
import useCss from '../hooks/useCss';
|
|
@@ -20,6 +21,7 @@ const AntdDateRangePicker = (props) => {
|
|
|
20
21
|
locale,
|
|
21
22
|
setProps,
|
|
22
23
|
picker,
|
|
24
|
+
firstDayOfWeek,
|
|
23
25
|
format,
|
|
24
26
|
showTime,
|
|
25
27
|
allowClear,
|
|
@@ -70,6 +72,19 @@ const AntdDateRangePicker = (props) => {
|
|
|
70
72
|
}
|
|
71
73
|
}, [])
|
|
72
74
|
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
if (!isUndefined(firstDayOfWeek)) {
|
|
77
|
+
moment.locale(
|
|
78
|
+
locale === 'en-us' ? 'en' : locale,
|
|
79
|
+
{
|
|
80
|
+
week: {
|
|
81
|
+
dow: firstDayOfWeek
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
}
|
|
86
|
+
}, [firstDayOfWeek])
|
|
87
|
+
|
|
73
88
|
const onChange = (date, dateString) => {
|
|
74
89
|
if (Array.isArray(dateString)) {
|
|
75
90
|
if (dateString[0] !== '' && dateString[1] !== '') {
|
|
@@ -435,6 +450,9 @@ AntdDateRangePicker.propTypes = {
|
|
|
435
450
|
// 设置日期选择的粒度(date:精确到天,week:精确到周,month:精确到月,quarter:精确到季度,year:精确到年。默认为date)
|
|
436
451
|
picker: PropTypes.oneOf(['date', 'week', 'month', 'quarter', 'year']),
|
|
437
452
|
|
|
453
|
+
// 设置每一周的起始日
|
|
454
|
+
firstDayOfWeek: PropTypes.number,
|
|
455
|
+
|
|
438
456
|
// 分别设置开始日期与结束日期的输入框是否禁用
|
|
439
457
|
disabled: PropTypes.arrayOf(PropTypes.bool),
|
|
440
458
|
|
|
@@ -13,6 +13,7 @@ const AntdSlider = (props) => {
|
|
|
13
13
|
id,
|
|
14
14
|
className,
|
|
15
15
|
style,
|
|
16
|
+
railStyle,
|
|
16
17
|
key,
|
|
17
18
|
value,
|
|
18
19
|
defaultValue,
|
|
@@ -77,6 +78,7 @@ const AntdSlider = (props) => {
|
|
|
77
78
|
(className ? useCss(className) : undefined)
|
|
78
79
|
}
|
|
79
80
|
style={style}
|
|
81
|
+
railStyle={railStyle}
|
|
80
82
|
key={key}
|
|
81
83
|
value={value}
|
|
82
84
|
defaultValue={defaultValue}
|
|
@@ -123,6 +125,9 @@ AntdSlider.propTypes = {
|
|
|
123
125
|
// 自定义css字典
|
|
124
126
|
style: PropTypes.object,
|
|
125
127
|
|
|
128
|
+
// 用于设置slider滑轨的css样式
|
|
129
|
+
railStyle: PropTypes.object,
|
|
130
|
+
|
|
126
131
|
// 辅助刷新用唯一标识key值
|
|
127
132
|
key: PropTypes.string,
|
|
128
133
|
|