feffery_antd_components 0.1.8 → 0.1.9
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/NAMESPACE +1 -0
- package/Project.toml +1 -1
- package/feffery_antd_components/AntdPopconfirm.py +5 -3
- package/feffery_antd_components/AntdRadioGroup.py +3 -3
- package/{build/lib/feffery_antd_components/AntdCheckboxGroup.py → feffery_antd_components/AntdSegmented.py} +17 -11
- package/feffery_antd_components/AntdSwitch.py +5 -3
- package/feffery_antd_components/_imports_.py +2 -0
- package/feffery_antd_components/feffery_antd_components.min.js +143 -158
- package/feffery_antd_components/metadata.json +259 -4
- package/feffery_antd_components/package-info.json +3 -3
- package/package.json +3 -3
- package/src/FefferyAntdComponents.jl +4 -3
- package/src/jl/'feffery'_antdpopconfirm.jl +2 -1
- package/src/jl/'feffery'_antdradiogroup.jl +3 -3
- package/src/jl/'feffery'_antdsegmented.jl +48 -0
- package/src/jl/'feffery'_antdswitch.jl +2 -1
- package/src/lib/components/AntdMessage.react.js +2 -0
- package/src/lib/components/AntdPopconfirm.react.js +7 -2
- package/src/lib/components/AntdRadioGroup.react.js +10 -4
- package/src/lib/components/AntdSegmented.react.js +167 -0
- package/src/lib/components/AntdSwitch.react.js +9 -1
- package/src/lib/components/tabs/AntdTabs.react.js +0 -1
- package/src/lib/index.js +3 -1
- package/usage.py +28 -115
- package/build/lib/feffery_antd_components/AntdAffix.py +0 -54
- package/build/lib/feffery_antd_components/AntdAlert.py +0 -58
- package/build/lib/feffery_antd_components/AntdAnchor.py +0 -60
- package/build/lib/feffery_antd_components/AntdAvatar.py +0 -79
- package/build/lib/feffery_antd_components/AntdBackTop.py +0 -52
- package/build/lib/feffery_antd_components/AntdBadge.py +0 -70
- package/build/lib/feffery_antd_components/AntdBreadcrumb.py +0 -74
- package/build/lib/feffery_antd_components/AntdButton.py +0 -68
- package/build/lib/feffery_antd_components/AntdCalendar.py +0 -75
- package/build/lib/feffery_antd_components/AntdCard.py +0 -86
- package/build/lib/feffery_antd_components/AntdCardGrid.py +0 -52
- package/build/lib/feffery_antd_components/AntdCarousel.py +0 -56
- package/build/lib/feffery_antd_components/AntdCascader.py +0 -93
- package/build/lib/feffery_antd_components/AntdCheckbox.py +0 -71
- package/build/lib/feffery_antd_components/AntdCol.py +0 -146
- package/build/lib/feffery_antd_components/AntdCollapse.py +0 -79
- package/build/lib/feffery_antd_components/AntdComment.py +0 -88
- package/build/lib/feffery_antd_components/AntdContent.py +0 -50
- package/build/lib/feffery_antd_components/AntdCountdown.py +0 -72
- package/build/lib/feffery_antd_components/AntdDatePicker.py +0 -95
- package/build/lib/feffery_antd_components/AntdDateRangePicker.py +0 -91
- package/build/lib/feffery_antd_components/AntdDescriptionItem.py +0 -58
- package/build/lib/feffery_antd_components/AntdDescriptions.py +0 -76
- package/build/lib/feffery_antd_components/AntdDivider.py +0 -62
- package/build/lib/feffery_antd_components/AntdDraggerUpload.py +0 -84
- package/build/lib/feffery_antd_components/AntdDrawer.py +0 -72
- package/build/lib/feffery_antd_components/AntdDropdown.py +0 -84
- package/build/lib/feffery_antd_components/AntdEmpty.py +0 -54
- package/build/lib/feffery_antd_components/AntdFooter.py +0 -50
- package/build/lib/feffery_antd_components/AntdForm.py +0 -72
- package/build/lib/feffery_antd_components/AntdFormItem.py +0 -84
- package/build/lib/feffery_antd_components/AntdHeader.py +0 -50
- package/build/lib/feffery_antd_components/AntdIcon.py +0 -48
- package/build/lib/feffery_antd_components/AntdImage.py +0 -62
- package/build/lib/feffery_antd_components/AntdInput.py +0 -101
- package/build/lib/feffery_antd_components/AntdInputNumber.py +0 -101
- package/build/lib/feffery_antd_components/AntdLayout.py +0 -50
- package/build/lib/feffery_antd_components/AntdMentions.py +0 -76
- package/build/lib/feffery_antd_components/AntdMenu.py +0 -81
- package/build/lib/feffery_antd_components/AntdMessage.py +0 -56
- package/build/lib/feffery_antd_components/AntdModal.py +0 -88
- package/build/lib/feffery_antd_components/AntdNotification.py +0 -60
- package/build/lib/feffery_antd_components/AntdPageHeader.py +0 -62
- package/build/lib/feffery_antd_components/AntdPagination.py +0 -95
- package/build/lib/feffery_antd_components/AntdParagraph.py +0 -70
- package/build/lib/feffery_antd_components/AntdPasteImage.py +0 -52
- package/build/lib/feffery_antd_components/AntdPopconfirm.py +0 -80
- package/build/lib/feffery_antd_components/AntdPopover.py +0 -74
- package/build/lib/feffery_antd_components/AntdProgress.py +0 -88
- package/build/lib/feffery_antd_components/AntdRadio.py +0 -54
- package/build/lib/feffery_antd_components/AntdRadioGroup.py +0 -89
- package/build/lib/feffery_antd_components/AntdRate.py +0 -60
- package/build/lib/feffery_antd_components/AntdResult.py +0 -52
- package/build/lib/feffery_antd_components/AntdRibbon.py +0 -54
- package/build/lib/feffery_antd_components/AntdRow.py +0 -72
- package/build/lib/feffery_antd_components/AntdSelect.py +0 -121
- package/build/lib/feffery_antd_components/AntdSider.py +0 -68
- package/build/lib/feffery_antd_components/AntdSkeleton.py +0 -86
- package/build/lib/feffery_antd_components/AntdSlider.py +0 -68
- package/build/lib/feffery_antd_components/AntdSpace.py +0 -60
- package/build/lib/feffery_antd_components/AntdSpin.py +0 -68
- package/build/lib/feffery_antd_components/AntdStatistic.py +0 -74
- package/build/lib/feffery_antd_components/AntdSteps.py +0 -72
- package/build/lib/feffery_antd_components/AntdSwitch.py +0 -75
- package/build/lib/feffery_antd_components/AntdTabPane.py +0 -66
- package/build/lib/feffery_antd_components/AntdTable.py +0 -264
- package/build/lib/feffery_antd_components/AntdTabs.py +0 -81
- package/build/lib/feffery_antd_components/AntdTag.py +0 -54
- package/build/lib/feffery_antd_components/AntdTestLink.py +0 -58
- package/build/lib/feffery_antd_components/AntdText.py +0 -72
- package/build/lib/feffery_antd_components/AntdTimePicker.py +0 -95
- package/build/lib/feffery_antd_components/AntdTimeRangePicker.py +0 -95
- package/build/lib/feffery_antd_components/AntdTimeline.py +0 -68
- package/build/lib/feffery_antd_components/AntdTitle.py +0 -74
- package/build/lib/feffery_antd_components/AntdTooltip.py +0 -64
- package/build/lib/feffery_antd_components/AntdTransfer.py +0 -99
- package/build/lib/feffery_antd_components/AntdTree.py +0 -103
- package/build/lib/feffery_antd_components/AntdTreeSelect.py +0 -107
- package/build/lib/feffery_antd_components/AntdTypography.py +0 -50
- package/build/lib/feffery_antd_components/AntdUpload.py +0 -92
- package/build/lib/feffery_antd_components/AntdWatermark.py +0 -64
- package/build/lib/feffery_antd_components/Link.py +0 -58
- package/build/lib/feffery_antd_components/__init__.py +0 -53
- package/build/lib/feffery_antd_components/_imports_.py +0 -161
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +0 -344
- package/build/lib/feffery_antd_components/metadata.json +0 -15596
- package/build/lib/feffery_antd_components/package-info.json +0 -81
|
@@ -6745,6 +6745,27 @@
|
|
|
6745
6745
|
"computed": false
|
|
6746
6746
|
}
|
|
6747
6747
|
},
|
|
6748
|
+
"containerStrategy": {
|
|
6749
|
+
"type": {
|
|
6750
|
+
"name": "enum",
|
|
6751
|
+
"value": [
|
|
6752
|
+
{
|
|
6753
|
+
"value": "'parent'",
|
|
6754
|
+
"computed": false
|
|
6755
|
+
},
|
|
6756
|
+
{
|
|
6757
|
+
"value": "'body'",
|
|
6758
|
+
"computed": false
|
|
6759
|
+
}
|
|
6760
|
+
]
|
|
6761
|
+
},
|
|
6762
|
+
"required": false,
|
|
6763
|
+
"description": "",
|
|
6764
|
+
"defaultValue": {
|
|
6765
|
+
"value": "'parent'",
|
|
6766
|
+
"computed": false
|
|
6767
|
+
}
|
|
6768
|
+
},
|
|
6748
6769
|
"trigger": {
|
|
6749
6770
|
"type": {
|
|
6750
6771
|
"name": "union",
|
|
@@ -7374,11 +7395,19 @@
|
|
|
7374
7395
|
"value": {
|
|
7375
7396
|
"label": {
|
|
7376
7397
|
"name": "string",
|
|
7377
|
-
"required":
|
|
7398
|
+
"required": false
|
|
7378
7399
|
},
|
|
7379
7400
|
"value": {
|
|
7380
|
-
"name": "
|
|
7381
|
-
"
|
|
7401
|
+
"name": "union",
|
|
7402
|
+
"value": [
|
|
7403
|
+
{
|
|
7404
|
+
"name": "string"
|
|
7405
|
+
},
|
|
7406
|
+
{
|
|
7407
|
+
"name": "number"
|
|
7408
|
+
}
|
|
7409
|
+
],
|
|
7410
|
+
"required": false
|
|
7382
7411
|
},
|
|
7383
7412
|
"disabled": {
|
|
7384
7413
|
"name": "bool",
|
|
@@ -7407,7 +7436,15 @@
|
|
|
7407
7436
|
},
|
|
7408
7437
|
"defaultValue": {
|
|
7409
7438
|
"type": {
|
|
7410
|
-
"name": "
|
|
7439
|
+
"name": "union",
|
|
7440
|
+
"value": [
|
|
7441
|
+
{
|
|
7442
|
+
"name": "string"
|
|
7443
|
+
},
|
|
7444
|
+
{
|
|
7445
|
+
"name": "number"
|
|
7446
|
+
}
|
|
7447
|
+
]
|
|
7411
7448
|
},
|
|
7412
7449
|
"required": false,
|
|
7413
7450
|
"description": ""
|
|
@@ -7888,6 +7925,217 @@
|
|
|
7888
7925
|
}
|
|
7889
7926
|
}
|
|
7890
7927
|
},
|
|
7928
|
+
"src/lib/components/AntdSegmented.react.js": {
|
|
7929
|
+
"description": "",
|
|
7930
|
+
"displayName": "AntdSegmented",
|
|
7931
|
+
"methods": [],
|
|
7932
|
+
"props": {
|
|
7933
|
+
"id": {
|
|
7934
|
+
"type": {
|
|
7935
|
+
"name": "string"
|
|
7936
|
+
},
|
|
7937
|
+
"required": false,
|
|
7938
|
+
"description": ""
|
|
7939
|
+
},
|
|
7940
|
+
"className": {
|
|
7941
|
+
"type": {
|
|
7942
|
+
"name": "string"
|
|
7943
|
+
},
|
|
7944
|
+
"required": false,
|
|
7945
|
+
"description": ""
|
|
7946
|
+
},
|
|
7947
|
+
"style": {
|
|
7948
|
+
"type": {
|
|
7949
|
+
"name": "object"
|
|
7950
|
+
},
|
|
7951
|
+
"required": false,
|
|
7952
|
+
"description": ""
|
|
7953
|
+
},
|
|
7954
|
+
"options": {
|
|
7955
|
+
"type": {
|
|
7956
|
+
"name": "arrayOf",
|
|
7957
|
+
"value": {
|
|
7958
|
+
"name": "exact",
|
|
7959
|
+
"value": {
|
|
7960
|
+
"label": {
|
|
7961
|
+
"name": "string",
|
|
7962
|
+
"required": false
|
|
7963
|
+
},
|
|
7964
|
+
"value": {
|
|
7965
|
+
"name": "union",
|
|
7966
|
+
"value": [
|
|
7967
|
+
{
|
|
7968
|
+
"name": "string"
|
|
7969
|
+
},
|
|
7970
|
+
{
|
|
7971
|
+
"name": "number"
|
|
7972
|
+
}
|
|
7973
|
+
],
|
|
7974
|
+
"required": false
|
|
7975
|
+
},
|
|
7976
|
+
"disabled": {
|
|
7977
|
+
"name": "bool",
|
|
7978
|
+
"required": false
|
|
7979
|
+
}
|
|
7980
|
+
}
|
|
7981
|
+
}
|
|
7982
|
+
},
|
|
7983
|
+
"required": false,
|
|
7984
|
+
"description": ""
|
|
7985
|
+
},
|
|
7986
|
+
"value": {
|
|
7987
|
+
"type": {
|
|
7988
|
+
"name": "union",
|
|
7989
|
+
"value": [
|
|
7990
|
+
{
|
|
7991
|
+
"name": "string"
|
|
7992
|
+
},
|
|
7993
|
+
{
|
|
7994
|
+
"name": "number"
|
|
7995
|
+
}
|
|
7996
|
+
]
|
|
7997
|
+
},
|
|
7998
|
+
"required": false,
|
|
7999
|
+
"description": ""
|
|
8000
|
+
},
|
|
8001
|
+
"defaultValue": {
|
|
8002
|
+
"type": {
|
|
8003
|
+
"name": "union",
|
|
8004
|
+
"value": [
|
|
8005
|
+
{
|
|
8006
|
+
"name": "string"
|
|
8007
|
+
},
|
|
8008
|
+
{
|
|
8009
|
+
"name": "number"
|
|
8010
|
+
}
|
|
8011
|
+
]
|
|
8012
|
+
},
|
|
8013
|
+
"required": false,
|
|
8014
|
+
"description": ""
|
|
8015
|
+
},
|
|
8016
|
+
"block": {
|
|
8017
|
+
"type": {
|
|
8018
|
+
"name": "bool"
|
|
8019
|
+
},
|
|
8020
|
+
"required": false,
|
|
8021
|
+
"description": ""
|
|
8022
|
+
},
|
|
8023
|
+
"disabled": {
|
|
8024
|
+
"type": {
|
|
8025
|
+
"name": "bool"
|
|
8026
|
+
},
|
|
8027
|
+
"required": false,
|
|
8028
|
+
"description": ""
|
|
8029
|
+
},
|
|
8030
|
+
"size": {
|
|
8031
|
+
"type": {
|
|
8032
|
+
"name": "enum",
|
|
8033
|
+
"value": [
|
|
8034
|
+
{
|
|
8035
|
+
"value": "'large'",
|
|
8036
|
+
"computed": false
|
|
8037
|
+
},
|
|
8038
|
+
{
|
|
8039
|
+
"value": "'middle'",
|
|
8040
|
+
"computed": false
|
|
8041
|
+
},
|
|
8042
|
+
{
|
|
8043
|
+
"value": "'small'",
|
|
8044
|
+
"computed": false
|
|
8045
|
+
}
|
|
8046
|
+
]
|
|
8047
|
+
},
|
|
8048
|
+
"required": false,
|
|
8049
|
+
"description": ""
|
|
8050
|
+
},
|
|
8051
|
+
"loading_state": {
|
|
8052
|
+
"type": {
|
|
8053
|
+
"name": "shape",
|
|
8054
|
+
"value": {
|
|
8055
|
+
"is_loading": {
|
|
8056
|
+
"name": "bool",
|
|
8057
|
+
"description": "Determines if the component is loading or not",
|
|
8058
|
+
"required": false
|
|
8059
|
+
},
|
|
8060
|
+
"prop_name": {
|
|
8061
|
+
"name": "string",
|
|
8062
|
+
"description": "Holds which property is loading",
|
|
8063
|
+
"required": false
|
|
8064
|
+
},
|
|
8065
|
+
"component_name": {
|
|
8066
|
+
"name": "string",
|
|
8067
|
+
"description": "Holds the name of the component that is loading",
|
|
8068
|
+
"required": false
|
|
8069
|
+
}
|
|
8070
|
+
}
|
|
8071
|
+
},
|
|
8072
|
+
"required": false,
|
|
8073
|
+
"description": ""
|
|
8074
|
+
},
|
|
8075
|
+
"setProps": {
|
|
8076
|
+
"type": {
|
|
8077
|
+
"name": "func"
|
|
8078
|
+
},
|
|
8079
|
+
"required": false,
|
|
8080
|
+
"description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
|
|
8081
|
+
},
|
|
8082
|
+
"persistence": {
|
|
8083
|
+
"type": {
|
|
8084
|
+
"name": "union",
|
|
8085
|
+
"value": [
|
|
8086
|
+
{
|
|
8087
|
+
"name": "bool"
|
|
8088
|
+
},
|
|
8089
|
+
{
|
|
8090
|
+
"name": "string"
|
|
8091
|
+
},
|
|
8092
|
+
{
|
|
8093
|
+
"name": "number"
|
|
8094
|
+
}
|
|
8095
|
+
]
|
|
8096
|
+
},
|
|
8097
|
+
"required": false,
|
|
8098
|
+
"description": "Used to allow user interactions in this component to be persisted when\r\nthe component - or the page - is refreshed. If `persisted` is truthy and\r\nhasn't changed from its previous value, a `value` that the user has\r\nchanged while using the app will keep that change, as long as\r\nthe new `value` also matches what was given originally.\r\nUsed in conjunction with `persistence_type`."
|
|
8099
|
+
},
|
|
8100
|
+
"persisted_props": {
|
|
8101
|
+
"type": {
|
|
8102
|
+
"name": "arrayOf",
|
|
8103
|
+
"value": {
|
|
8104
|
+
"name": "enum",
|
|
8105
|
+
"value": [
|
|
8106
|
+
{
|
|
8107
|
+
"value": "'value'",
|
|
8108
|
+
"computed": false
|
|
8109
|
+
}
|
|
8110
|
+
]
|
|
8111
|
+
}
|
|
8112
|
+
},
|
|
8113
|
+
"required": false,
|
|
8114
|
+
"description": "Properties whose user interactions will persist after refreshing the\r\ncomponent or the page. Since only `value` is allowed this prop can\r\nnormally be ignored."
|
|
8115
|
+
},
|
|
8116
|
+
"persistence_type": {
|
|
8117
|
+
"type": {
|
|
8118
|
+
"name": "enum",
|
|
8119
|
+
"value": [
|
|
8120
|
+
{
|
|
8121
|
+
"value": "'local'",
|
|
8122
|
+
"computed": false
|
|
8123
|
+
},
|
|
8124
|
+
{
|
|
8125
|
+
"value": "'session'",
|
|
8126
|
+
"computed": false
|
|
8127
|
+
},
|
|
8128
|
+
{
|
|
8129
|
+
"value": "'memory'",
|
|
8130
|
+
"computed": false
|
|
8131
|
+
}
|
|
8132
|
+
]
|
|
8133
|
+
},
|
|
8134
|
+
"required": false,
|
|
8135
|
+
"description": "Where persisted user changes will be stored:\r\nmemory: only kept in memory, reset on page refresh.\r\nlocal: window.localStorage, data is kept after the browser quit.\r\nsession: window.sessionStorage, data is cleared once the browser quit."
|
|
8136
|
+
}
|
|
8137
|
+
}
|
|
8138
|
+
},
|
|
7891
8139
|
"src/lib/components/AntdSelect.react.js": {
|
|
7892
8140
|
"description": "",
|
|
7893
8141
|
"displayName": "AntdSelect",
|
|
@@ -9628,6 +9876,13 @@
|
|
|
9628
9876
|
"required": false,
|
|
9629
9877
|
"description": ""
|
|
9630
9878
|
},
|
|
9879
|
+
"loading": {
|
|
9880
|
+
"type": {
|
|
9881
|
+
"name": "bool"
|
|
9882
|
+
},
|
|
9883
|
+
"required": false,
|
|
9884
|
+
"description": ""
|
|
9885
|
+
},
|
|
9631
9886
|
"loading_state": {
|
|
9632
9887
|
"type": {
|
|
9633
9888
|
"name": "shape",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "feffery_antd_components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Best implementation of Antd components in Plotly Dash.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"email": "fefferypzy@gmail.com",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ant-design/charts": "1.3.
|
|
26
|
+
"@ant-design/charts": "1.3.6",
|
|
27
27
|
"@ant-design/icons": "4.7.0",
|
|
28
28
|
"@ant-design/pro-layout": "^6.34.7",
|
|
29
|
-
"antd": "4.
|
|
29
|
+
"antd": "^4.20.0",
|
|
30
30
|
"dash-extensions-js": "0.0.8",
|
|
31
31
|
"is-absolute-url": "4.0.1",
|
|
32
32
|
"md5": "2.3.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "feffery_antd_components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Best implementation of Antd components in Plotly Dash.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"email": "fefferypzy@gmail.com",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ant-design/charts": "1.3.
|
|
26
|
+
"@ant-design/charts": "1.3.6",
|
|
27
27
|
"@ant-design/icons": "4.7.0",
|
|
28
28
|
"@ant-design/pro-layout": "^6.34.7",
|
|
29
|
-
"antd": "4.
|
|
29
|
+
"antd": "^4.20.0",
|
|
30
30
|
"dash-extensions-js": "0.0.8",
|
|
31
31
|
"is-absolute-url": "4.0.1",
|
|
32
32
|
"md5": "2.3.0",
|
|
@@ -3,7 +3,7 @@ module FefferyAntdComponents
|
|
|
3
3
|
using Dash
|
|
4
4
|
|
|
5
5
|
const resources_path = realpath(joinpath( @__DIR__, "..", "deps"))
|
|
6
|
-
const version = "0.1.
|
|
6
|
+
const version = "0.1.9"
|
|
7
7
|
|
|
8
8
|
include("jl/'feffery'_antdaffix.jl")
|
|
9
9
|
include("jl/'feffery'_antdalert.jl")
|
|
@@ -47,6 +47,7 @@ include("jl/'feffery'_antdradiogroup.jl")
|
|
|
47
47
|
include("jl/'feffery'_antdrate.jl")
|
|
48
48
|
include("jl/'feffery'_antdresult.jl")
|
|
49
49
|
include("jl/'feffery'_antdribbon.jl")
|
|
50
|
+
include("jl/'feffery'_antdsegmented.jl")
|
|
50
51
|
include("jl/'feffery'_antdselect.jl")
|
|
51
52
|
include("jl/'feffery'_antdskeleton.jl")
|
|
52
53
|
include("jl/'feffery'_antdslider.jl")
|
|
@@ -94,14 +95,14 @@ function __init__()
|
|
|
94
95
|
[
|
|
95
96
|
DashBase.Resource(
|
|
96
97
|
relative_package_path = "feffery_antd_components.min.js",
|
|
97
|
-
external_url = "https://unpkg.com/feffery_antd_components@0.1.
|
|
98
|
+
external_url = "https://unpkg.com/feffery_antd_components@0.1.9/feffery_antd_components/feffery_antd_components.min.js",
|
|
98
99
|
dynamic = nothing,
|
|
99
100
|
async = nothing,
|
|
100
101
|
type = :js
|
|
101
102
|
),
|
|
102
103
|
DashBase.Resource(
|
|
103
104
|
relative_package_path = "feffery_antd_components.min.js.map",
|
|
104
|
-
external_url = "https://unpkg.com/feffery_antd_components@0.1.
|
|
105
|
+
external_url = "https://unpkg.com/feffery_antd_components@0.1.9/feffery_antd_components/feffery_antd_components.min.js.map",
|
|
105
106
|
dynamic = true,
|
|
106
107
|
async = nothing,
|
|
107
108
|
type = :js
|
|
@@ -18,6 +18,7 @@ Keyword arguments:
|
|
|
18
18
|
- `cancelText` (String; optional)
|
|
19
19
|
- `className` (String; optional)
|
|
20
20
|
- `confirmCounts` (Real; optional)
|
|
21
|
+
- `containerStrategy` (a value equal to: 'parent', 'body'; optional)
|
|
21
22
|
- `disabled` (Bool; optional)
|
|
22
23
|
- `loading_state` (optional): . loading_state has the following type: lists containing elements 'is_loading', 'prop_name', 'component_name'.
|
|
23
24
|
Those elements have the following types:
|
|
@@ -37,7 +38,7 @@ Those elements have the following types:
|
|
|
37
38
|
- `trigger` (a value equal to: 'hover', 'focus', 'click' | Array of a value equal to: 'hover', 'focus', 'click's; optional)
|
|
38
39
|
"""
|
|
39
40
|
function 'feffery'_antdpopconfirm(; kwargs...)
|
|
40
|
-
available_props = Symbol[:children, :id, :cancelButtonProps, :cancelCounts, :cancelText, :className, :confirmCounts, :disabled, :loading_state, :locale, :mouseEnterDelay, :mouseLeaveDelay, :okButtonProps, :okText, :overlayInnerStyle, :overlayStyle, :placement, :style, :title, :trigger]
|
|
41
|
+
available_props = Symbol[:children, :id, :cancelButtonProps, :cancelCounts, :cancelText, :className, :confirmCounts, :containerStrategy, :disabled, :loading_state, :locale, :mouseEnterDelay, :mouseLeaveDelay, :okButtonProps, :okText, :overlayInnerStyle, :overlayStyle, :placement, :style, :title, :trigger]
|
|
41
42
|
wild_props = Symbol[]
|
|
42
43
|
return Component("'feffery'_antdpopconfirm", "AntdPopconfirm", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
43
44
|
end
|
|
@@ -11,7 +11,7 @@ Keyword arguments:
|
|
|
11
11
|
- `id` (String; optional)
|
|
12
12
|
- `buttonStyle` (a value equal to: 'outline', 'solid'; optional)
|
|
13
13
|
- `className` (String; optional)
|
|
14
|
-
- `defaultValue` (String; optional)
|
|
14
|
+
- `defaultValue` (String | Real; optional)
|
|
15
15
|
- `direction` (a value equal to: 'horizontal', 'vertical'; optional)
|
|
16
16
|
- `disabled` (Bool; optional)
|
|
17
17
|
- `loading_state` (optional): . loading_state has the following type: lists containing elements 'is_loading', 'prop_name', 'component_name'.
|
|
@@ -22,8 +22,8 @@ Those elements have the following types:
|
|
|
22
22
|
- `optionType` (a value equal to: 'default', 'button'; optional)
|
|
23
23
|
- `options` (optional): . options has the following type: Array of lists containing elements 'label', 'value', 'disabled'.
|
|
24
24
|
Those elements have the following types:
|
|
25
|
-
- `label` (String;
|
|
26
|
-
- `value` (String;
|
|
25
|
+
- `label` (String; optional)
|
|
26
|
+
- `value` (String | Real; optional)
|
|
27
27
|
- `disabled` (Bool; optional)s
|
|
28
28
|
- `persisted_props` (Array of a value equal to: 'value's; optional): Properties whose user interactions will persist after refreshing the
|
|
29
29
|
component or the page. Since only `value` is allowed this prop can
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
export 'feffery'_antdsegmented
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
'feffery'_antdsegmented(;kwargs...)
|
|
7
|
+
|
|
8
|
+
An AntdSegmented component.
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
- `id` (String; optional)
|
|
12
|
+
- `block` (Bool; optional)
|
|
13
|
+
- `className` (String; optional)
|
|
14
|
+
- `defaultValue` (String | Real; optional)
|
|
15
|
+
- `disabled` (Bool; optional)
|
|
16
|
+
- `loading_state` (optional): . loading_state has the following type: lists containing elements 'is_loading', 'prop_name', 'component_name'.
|
|
17
|
+
Those elements have the following types:
|
|
18
|
+
- `is_loading` (Bool; optional): Determines if the component is loading or not
|
|
19
|
+
- `prop_name` (String; optional): Holds which property is loading
|
|
20
|
+
- `component_name` (String; optional): Holds the name of the component that is loading
|
|
21
|
+
- `options` (optional): . options has the following type: Array of lists containing elements 'label', 'value', 'disabled'.
|
|
22
|
+
Those elements have the following types:
|
|
23
|
+
- `label` (String; optional)
|
|
24
|
+
- `value` (String | Real; optional)
|
|
25
|
+
- `disabled` (Bool; optional)s
|
|
26
|
+
- `persisted_props` (Array of a value equal to: 'value's; optional): Properties whose user interactions will persist after refreshing the
|
|
27
|
+
component or the page. Since only `value` is allowed this prop can
|
|
28
|
+
normally be ignored.
|
|
29
|
+
- `persistence` (Bool | String | Real; optional): Used to allow user interactions in this component to be persisted when
|
|
30
|
+
the component - or the page - is refreshed. If `persisted` is truthy and
|
|
31
|
+
hasn't changed from its previous value, a `value` that the user has
|
|
32
|
+
changed while using the app will keep that change, as long as
|
|
33
|
+
the new `value` also matches what was given originally.
|
|
34
|
+
Used in conjunction with `persistence_type`.
|
|
35
|
+
- `persistence_type` (a value equal to: 'local', 'session', 'memory'; optional): Where persisted user changes will be stored:
|
|
36
|
+
memory: only kept in memory, reset on page refresh.
|
|
37
|
+
local: window.localStorage, data is kept after the browser quit.
|
|
38
|
+
session: window.sessionStorage, data is cleared once the browser quit.
|
|
39
|
+
- `size` (a value equal to: 'large', 'middle', 'small'; optional)
|
|
40
|
+
- `style` (Dict; optional)
|
|
41
|
+
- `value` (String | Real; optional)
|
|
42
|
+
"""
|
|
43
|
+
function 'feffery'_antdsegmented(; kwargs...)
|
|
44
|
+
available_props = Symbol[:id, :block, :className, :defaultValue, :disabled, :loading_state, :options, :persisted_props, :persistence, :persistence_type, :size, :style, :value]
|
|
45
|
+
wild_props = Symbol[]
|
|
46
|
+
return Component("'feffery'_antdsegmented", "AntdSegmented", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
47
|
+
end
|
|
48
|
+
|
|
@@ -13,6 +13,7 @@ Keyword arguments:
|
|
|
13
13
|
- `checkedChildren` (String; optional)
|
|
14
14
|
- `className` (String; optional)
|
|
15
15
|
- `disabled` (Bool; optional)
|
|
16
|
+
- `loading` (Bool; optional)
|
|
16
17
|
- `loading_state` (optional): . loading_state has the following type: lists containing elements 'is_loading', 'prop_name', 'component_name'.
|
|
17
18
|
Those elements have the following types:
|
|
18
19
|
- `is_loading` (Bool; optional): Determines if the component is loading or not
|
|
@@ -36,7 +37,7 @@ session: window.sessionStorage, data is cleared once the browser quit.
|
|
|
36
37
|
- `unCheckedChildren` (String; optional)
|
|
37
38
|
"""
|
|
38
39
|
function 'feffery'_antdswitch(; kwargs...)
|
|
39
|
-
available_props = Symbol[:id, :checked, :checkedChildren, :className, :disabled, :loading_state, :persisted_props, :persistence, :persistence_type, :size, :style, :unCheckedChildren]
|
|
40
|
+
available_props = Symbol[:id, :checked, :checkedChildren, :className, :disabled, :loading, :loading_state, :persisted_props, :persistence, :persistence_type, :size, :style, :unCheckedChildren]
|
|
40
41
|
wild_props = Symbol[]
|
|
41
42
|
return Component("'feffery'_antdswitch", "AntdSwitch", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
42
43
|
end
|
|
@@ -36,6 +36,7 @@ export default class AntdPopconfirm extends Component {
|
|
|
36
36
|
confirmCounts,
|
|
37
37
|
cancelCounts,
|
|
38
38
|
trigger,
|
|
39
|
+
containerStrategy,
|
|
39
40
|
setProps,
|
|
40
41
|
loading_state
|
|
41
42
|
} = this.props;
|
|
@@ -70,7 +71,7 @@ export default class AntdPopconfirm extends Component {
|
|
|
70
71
|
okButtonProps={okButtonProps}
|
|
71
72
|
cancelText={cancelText}
|
|
72
73
|
cancelButtonProps={cancelButtonProps}
|
|
73
|
-
getPopupContainer={(triggerNode) => triggerNode.parentNode}
|
|
74
|
+
getPopupContainer={containerStrategy === 'parent' ? (triggerNode) => triggerNode.parentNode : undefined}
|
|
74
75
|
onCancel={listenCancel}
|
|
75
76
|
onConfirm={listenConfirm}
|
|
76
77
|
data-dash-is-loading={
|
|
@@ -146,6 +147,9 @@ AntdPopconfirm.propTypes = {
|
|
|
146
147
|
// 记录取消按钮被点击的次数
|
|
147
148
|
cancelCounts: PropTypes.number,
|
|
148
149
|
|
|
150
|
+
// 设置绑定容器的策略,可选的有'parent'、'body',默认为'parent'
|
|
151
|
+
containerStrategy: PropTypes.oneOf(['parent', 'body']),
|
|
152
|
+
|
|
149
153
|
// 设置触发行为,可选的有'hover'、'focus'、'click',或是以上多个组成的数组,默认为'hover'
|
|
150
154
|
trigger: PropTypes.oneOfType(
|
|
151
155
|
[
|
|
@@ -180,5 +184,6 @@ AntdPopconfirm.propTypes = {
|
|
|
180
184
|
AntdPopconfirm.defaultProps = {
|
|
181
185
|
confirmCounts: 0,
|
|
182
186
|
cancelCounts: 0,
|
|
183
|
-
locale: 'zh-cn'
|
|
187
|
+
locale: 'zh-cn',
|
|
188
|
+
containerStrategy: 'parent',
|
|
184
189
|
}
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { Radio, Space } from 'antd';
|
|
4
4
|
import 'antd/dist/antd.css';
|
|
5
5
|
|
|
6
|
-
// 定义单选框组件
|
|
6
|
+
// 定义单选框组件AntdRadioGroup,api参数参考https://ant.design/components/radio-cn/
|
|
7
7
|
export default class AntdRadioGroup extends Component {
|
|
8
8
|
|
|
9
9
|
constructor(props) {
|
|
@@ -114,10 +114,13 @@ AntdRadioGroup.propTypes = {
|
|
|
114
114
|
options: PropTypes.arrayOf(
|
|
115
115
|
PropTypes.exact({
|
|
116
116
|
// 设置选项的标题内容
|
|
117
|
-
label: PropTypes.string
|
|
117
|
+
label: PropTypes.string,
|
|
118
118
|
|
|
119
119
|
// 设置选项的对应值
|
|
120
|
-
value: PropTypes.
|
|
120
|
+
value: PropTypes.oneOfType([
|
|
121
|
+
PropTypes.string,
|
|
122
|
+
PropTypes.number
|
|
123
|
+
]),
|
|
121
124
|
|
|
122
125
|
// 设置是否禁用当前选项
|
|
123
126
|
disabled: PropTypes.bool
|
|
@@ -131,7 +134,10 @@ AntdRadioGroup.propTypes = {
|
|
|
131
134
|
]),
|
|
132
135
|
|
|
133
136
|
// 设置初始化状态下被选中的值
|
|
134
|
-
defaultValue: PropTypes.
|
|
137
|
+
defaultValue: PropTypes.oneOfType([
|
|
138
|
+
PropTypes.string,
|
|
139
|
+
PropTypes.number
|
|
140
|
+
]),
|
|
135
141
|
|
|
136
142
|
// 设置选项的渲染方式,可选的有'default'和'button',默认为'default'
|
|
137
143
|
optionType: PropTypes.oneOf(['default', 'button']),
|