tdesign-react 0.35.2-alpha.1 → 0.35.2-alpha.4
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/tdesign.css +35 -1
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +1503 -1249
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +3 -3
- package/dist/tdesign.min.js.map +1 -1
- package/{esm/_chunks/dep-77304ace.js → es/_chunks/dep-30c0a7bc.js} +2 -2
- package/es/_chunks/{dep-77304ace.js.map → dep-30c0a7bc.js.map} +1 -1
- package/es/_chunks/{dep-daaa76c2.js → dep-7cc0a2e2.js} +2 -2
- package/es/_chunks/{dep-daaa76c2.js.map → dep-7cc0a2e2.js.map} +1 -1
- package/es/_chunks/{dep-2dcbb9b7.js → dep-85b223d3.js} +2 -2
- package/{esm/_chunks/dep-2dcbb9b7.js.map → es/_chunks/dep-85b223d3.js.map} +1 -1
- package/es/_chunks/{dep-16cb7f3b.js → dep-aa5a02ef.js} +6 -3
- package/es/_chunks/dep-aa5a02ef.js.map +1 -0
- package/es/_chunks/{dep-5bfc1a42.js → dep-e97e29d5.js} +22 -4
- package/es/_chunks/dep-e97e29d5.js.map +1 -0
- package/es/_common/js/tabs/base.js +1 -1
- package/es/_common/js/tabs/base.js.map +1 -1
- package/es/_common/js/tree/tree-node-model.js +2 -3
- package/es/_common/js/tree/tree-node-model.js.map +1 -1
- package/es/_common/js/tree/tree-node.d.ts +1 -1
- package/es/_common/js/tree/tree-node.js +4 -5
- package/es/_common/js/tree/tree-node.js.map +1 -1
- package/es/_common/js/tree/tree-store.d.ts +1 -1
- package/es/_common/js/tree/tree-store.js +7 -8
- package/es/_common/js/tree/tree-store.js.map +1 -1
- package/es/_common/js/upload/xhr.js +1 -1
- package/es/_common/js/upload/xhr.js.map +1 -1
- package/es/calendar/Calendar.js +3 -4
- package/es/calendar/Calendar.js.map +1 -1
- package/es/calendar/index.js +3 -4
- package/es/calendar/index.js.map +1 -1
- package/es/cascader/Cascader.js +3 -4
- package/es/cascader/Cascader.js.map +1 -1
- package/es/cascader/index.js +3 -4
- package/es/cascader/index.js.map +1 -1
- package/es/cascader/interface.js +2 -3
- package/es/cascader/interface.js.map +1 -1
- package/es/color-picker/ColorPicker.js +3 -4
- package/es/color-picker/ColorPicker.js.map +1 -1
- package/es/color-picker/ColorPickerPanel.js +3 -4
- package/es/color-picker/ColorPickerPanel.js.map +1 -1
- package/es/color-picker/components/panel/format/index.js +2 -3
- package/es/color-picker/components/panel/format/index.js.map +1 -1
- package/es/color-picker/components/panel/header.js +1 -1
- package/es/color-picker/components/panel/index.js +3 -4
- package/es/color-picker/components/panel/index.js.map +1 -1
- package/es/color-picker/index.js +3 -4
- package/es/color-picker/index.js.map +1 -1
- package/es/date-picker/DatePicker.js +2 -3
- package/es/date-picker/DatePicker.js.map +1 -1
- package/es/date-picker/DatePickerPanel.js +2 -3
- package/es/date-picker/DatePickerPanel.js.map +1 -1
- package/es/date-picker/DateRangePicker.js +2 -3
- package/es/date-picker/DateRangePicker.js.map +1 -1
- package/es/date-picker/DateRangePickerPanel.js +2 -3
- package/es/date-picker/DateRangePickerPanel.js.map +1 -1
- package/es/date-picker/base/Header.js +2 -3
- package/es/date-picker/base/Header.js.map +1 -1
- package/es/date-picker/index.js +2 -3
- package/es/date-picker/index.js.map +1 -1
- package/es/date-picker/panel/PanelContent.js +2 -3
- package/es/date-picker/panel/PanelContent.js.map +1 -1
- package/es/date-picker/panel/RangePanel.js +2 -3
- package/es/date-picker/panel/RangePanel.js.map +1 -1
- package/es/date-picker/panel/SinglePanel.js +2 -3
- package/es/date-picker/panel/SinglePanel.js.map +1 -1
- package/es/dropdown/Dropdown.js +2 -3
- package/es/dropdown/Dropdown.js.map +1 -1
- package/es/dropdown/index.js +2 -3
- package/es/dropdown/index.js.map +1 -1
- package/es/form/Form.js +11 -8
- package/es/form/Form.js.map +1 -1
- package/es/form/FormItem.d.ts +1 -5
- package/es/form/FormItem.js +1188 -34
- package/es/form/FormItem.js.map +1 -1
- package/es/form/const.d.ts +5 -0
- package/es/form/const.js +15 -0
- package/es/form/const.js.map +1 -0
- package/es/form/defaultProps.d.ts +2 -1
- package/es/form/defaultProps.js +2 -1
- package/es/form/defaultProps.js.map +1 -1
- package/es/form/formModel.d.ts +23 -1
- package/es/form/formModel.js +21 -33
- package/es/form/formModel.js.map +1 -1
- package/es/form/hooks/useFormItemStyle.js +103 -225
- package/es/form/hooks/useFormItemStyle.js.map +1 -1
- package/es/form/hooks/useInstance.d.ts +2 -1
- package/es/form/hooks/useInstance.js +120 -65
- package/es/form/hooks/useInstance.js.map +1 -1
- package/es/form/index.js +9 -8
- package/es/form/index.js.map +1 -1
- package/es/form/type.d.ts +22 -11
- package/es/form/useInitialData.js +4 -5
- package/es/form/useInitialData.js.map +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +12 -7
- package/es/index.js.map +1 -1
- package/es/pagination/Pagination.js +3 -4
- package/es/pagination/Pagination.js.map +1 -1
- package/es/pagination/index.js +3 -4
- package/es/pagination/index.js.map +1 -1
- package/es/radio/Radio.js +1 -1
- package/es/radio/RadioGroup.d.ts +2 -1
- package/es/radio/RadioGroup.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/select/base/Select.js +2 -3
- package/es/select/base/Select.js.map +1 -1
- package/es/select/index.js +2 -3
- package/es/select/index.js.map +1 -1
- package/es/select-input/SelectInput.js +2 -3
- package/es/select-input/SelectInput.js.map +1 -1
- package/es/select-input/index.js +2 -3
- package/es/select-input/index.js.map +1 -1
- package/es/select-input/useSingle.js +2 -3
- package/es/select-input/useSingle.js.map +1 -1
- package/es/space/Space.d.ts +8 -0
- package/{esm/addon/Addon.js → es/space/Space.js} +53 -44
- package/es/space/Space.js.map +1 -0
- package/es/space/defaultProps.d.ts +5 -0
- package/es/space/defaultProps.js +14 -0
- package/es/space/defaultProps.js.map +1 -0
- package/es/space/index.d.ts +6 -0
- package/es/space/index.js +45 -0
- package/es/space/index.js.map +1 -0
- package/es/space/style/css.d.ts +1 -0
- package/es/space/style/css.js +1 -0
- package/es/space/style/index.css +31 -0
- package/es/space/style/index.d.ts +1 -0
- package/es/space/style/index.js +7 -0
- package/es/space/style/index.js.map +1 -0
- package/es/space/type.d.ts +30 -0
- package/es/space/type.js +7 -0
- package/es/space/type.js.map +1 -0
- package/es/style/index.css +3 -1
- package/es/table/BaseTable.js +3 -4
- package/es/table/BaseTable.js.map +1 -1
- package/es/table/EnhancedTable.js +4 -5
- package/es/table/EnhancedTable.js.map +1 -1
- package/es/table/FilterController.js +1 -1
- package/es/table/PrimaryTable.js +4 -5
- package/es/table/PrimaryTable.js.map +1 -1
- package/es/table/TBody.js +2 -3
- package/es/table/TBody.js.map +1 -1
- package/es/table/hooks/useAsyncLoading.js +1 -0
- package/es/table/hooks/useAsyncLoading.js.map +1 -1
- package/es/table/hooks/useFilter.js +1 -1
- package/es/table/hooks/usePagination.js +3 -4
- package/es/table/hooks/usePagination.js.map +1 -1
- package/es/table/hooks/useRowSelect.js +1 -1
- package/es/table/index.js +4 -5
- package/es/table/index.js.map +1 -1
- package/es/time-picker/TimePicker.js +2 -3
- package/es/time-picker/TimePicker.js.map +1 -1
- package/es/time-picker/index.js +2 -3
- package/es/time-picker/index.js.map +1 -1
- package/es/transfer/Transfer.js +5 -6
- package/es/transfer/Transfer.js.map +1 -1
- package/es/transfer/TransferList.js +3 -4
- package/es/transfer/TransferList.js.map +1 -1
- package/es/transfer/index.js +5 -6
- package/es/transfer/index.js.map +1 -1
- package/es/tree/Tree.js +3 -4
- package/es/tree/Tree.js.map +1 -1
- package/es/tree/index.js +3 -4
- package/es/tree/index.js.map +1 -1
- package/es/tree/useStore.js +3 -4
- package/es/tree/useStore.js.map +1 -1
- package/es/tree-select/TreeSelect.js +3 -4
- package/es/tree-select/TreeSelect.js.map +1 -1
- package/es/tree-select/index.js +3 -4
- package/es/tree-select/index.js.map +1 -1
- package/es/tree-select/useTreeSelectPassthoughProps.js +2 -3
- package/es/tree-select/useTreeSelectPassthoughProps.js.map +1 -1
- package/es/tree-select/useTreeSelectUtils.js +4 -5
- package/es/tree-select/useTreeSelectUtils.js.map +1 -1
- package/{es/_chunks/dep-77304ace.js → esm/_chunks/dep-30c0a7bc.js} +2 -2
- package/esm/_chunks/{dep-77304ace.js.map → dep-30c0a7bc.js.map} +1 -1
- package/esm/_chunks/{dep-daaa76c2.js → dep-7cc0a2e2.js} +2 -2
- package/esm/_chunks/{dep-daaa76c2.js.map → dep-7cc0a2e2.js.map} +1 -1
- package/esm/_chunks/{dep-2dcbb9b7.js → dep-85b223d3.js} +2 -2
- package/{es/_chunks/dep-2dcbb9b7.js.map → esm/_chunks/dep-85b223d3.js.map} +1 -1
- package/esm/_chunks/{dep-16cb7f3b.js → dep-aa5a02ef.js} +6 -3
- package/esm/_chunks/dep-aa5a02ef.js.map +1 -0
- package/esm/_chunks/{dep-5bfc1a42.js → dep-e97e29d5.js} +22 -4
- package/esm/_chunks/dep-e97e29d5.js.map +1 -0
- package/esm/_common/js/tabs/base.js +1 -1
- package/esm/_common/js/tabs/base.js.map +1 -1
- package/esm/_common/js/tree/tree-node-model.js +2 -3
- package/esm/_common/js/tree/tree-node-model.js.map +1 -1
- package/esm/_common/js/tree/tree-node.d.ts +1 -1
- package/esm/_common/js/tree/tree-node.js +4 -5
- package/esm/_common/js/tree/tree-node.js.map +1 -1
- package/esm/_common/js/tree/tree-store.d.ts +1 -1
- package/esm/_common/js/tree/tree-store.js +7 -8
- package/esm/_common/js/tree/tree-store.js.map +1 -1
- package/esm/_common/js/upload/xhr.js +1 -1
- package/esm/_common/js/upload/xhr.js.map +1 -1
- package/esm/_common/style/web/_reset.less +3 -1
- package/esm/_common/style/web/components/space/_index.less +27 -0
- package/esm/_common/style/web/components/space/_var.less +0 -0
- package/esm/_common/style/web/components/swiper/_docs.less +2 -2
- package/esm/calendar/Calendar.js +3 -4
- package/esm/calendar/Calendar.js.map +1 -1
- package/esm/calendar/index.js +3 -4
- package/esm/calendar/index.js.map +1 -1
- package/esm/cascader/Cascader.js +3 -4
- package/esm/cascader/Cascader.js.map +1 -1
- package/esm/cascader/index.js +3 -4
- package/esm/cascader/index.js.map +1 -1
- package/esm/cascader/interface.js +2 -3
- package/esm/cascader/interface.js.map +1 -1
- package/esm/color-picker/ColorPicker.js +3 -4
- package/esm/color-picker/ColorPicker.js.map +1 -1
- package/esm/color-picker/ColorPickerPanel.js +3 -4
- package/esm/color-picker/ColorPickerPanel.js.map +1 -1
- package/esm/color-picker/components/panel/format/index.js +2 -3
- package/esm/color-picker/components/panel/format/index.js.map +1 -1
- package/esm/color-picker/components/panel/header.js +1 -1
- package/esm/color-picker/components/panel/index.js +3 -4
- package/esm/color-picker/components/panel/index.js.map +1 -1
- package/esm/color-picker/index.js +3 -4
- package/esm/color-picker/index.js.map +1 -1
- package/esm/date-picker/DatePicker.js +2 -3
- package/esm/date-picker/DatePicker.js.map +1 -1
- package/esm/date-picker/DatePickerPanel.js +2 -3
- package/esm/date-picker/DatePickerPanel.js.map +1 -1
- package/esm/date-picker/DateRangePicker.js +2 -3
- package/esm/date-picker/DateRangePicker.js.map +1 -1
- package/esm/date-picker/DateRangePickerPanel.js +2 -3
- package/esm/date-picker/DateRangePickerPanel.js.map +1 -1
- package/esm/date-picker/base/Header.js +2 -3
- package/esm/date-picker/base/Header.js.map +1 -1
- package/esm/date-picker/index.js +2 -3
- package/esm/date-picker/index.js.map +1 -1
- package/esm/date-picker/panel/PanelContent.js +2 -3
- package/esm/date-picker/panel/PanelContent.js.map +1 -1
- package/esm/date-picker/panel/RangePanel.js +2 -3
- package/esm/date-picker/panel/RangePanel.js.map +1 -1
- package/esm/date-picker/panel/SinglePanel.js +2 -3
- package/esm/date-picker/panel/SinglePanel.js.map +1 -1
- package/esm/dropdown/Dropdown.js +2 -3
- package/esm/dropdown/Dropdown.js.map +1 -1
- package/esm/dropdown/index.js +2 -3
- package/esm/dropdown/index.js.map +1 -1
- package/esm/form/Form.js +11 -8
- package/esm/form/Form.js.map +1 -1
- package/esm/form/FormItem.d.ts +1 -5
- package/esm/form/FormItem.js +1188 -34
- package/esm/form/FormItem.js.map +1 -1
- package/esm/form/const.d.ts +5 -0
- package/esm/form/const.js +15 -0
- package/esm/form/const.js.map +1 -0
- package/esm/form/defaultProps.d.ts +2 -1
- package/esm/form/defaultProps.js +2 -1
- package/esm/form/defaultProps.js.map +1 -1
- package/esm/form/formModel.d.ts +23 -1
- package/esm/form/formModel.js +21 -33
- package/esm/form/formModel.js.map +1 -1
- package/esm/form/hooks/useFormItemStyle.js +103 -237
- package/esm/form/hooks/useFormItemStyle.js.map +1 -1
- package/esm/form/hooks/useInstance.d.ts +2 -1
- package/esm/form/hooks/useInstance.js +120 -65
- package/esm/form/hooks/useInstance.js.map +1 -1
- package/esm/form/index.js +9 -8
- package/esm/form/index.js.map +1 -1
- package/esm/form/type.d.ts +22 -11
- package/esm/form/useInitialData.js +4 -5
- package/esm/form/useInitialData.js.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +13 -7
- package/esm/index.js.map +1 -1
- package/esm/pagination/Pagination.js +3 -4
- package/esm/pagination/Pagination.js.map +1 -1
- package/esm/pagination/index.js +3 -4
- package/esm/pagination/index.js.map +1 -1
- package/esm/radio/Radio.js +1 -1
- package/esm/radio/RadioGroup.d.ts +2 -1
- package/esm/radio/RadioGroup.js +1 -1
- package/esm/radio/index.js +1 -1
- package/esm/select/base/Select.js +2 -3
- package/esm/select/base/Select.js.map +1 -1
- package/esm/select/index.js +2 -3
- package/esm/select/index.js.map +1 -1
- package/esm/select-input/SelectInput.js +2 -3
- package/esm/select-input/SelectInput.js.map +1 -1
- package/esm/select-input/index.js +2 -3
- package/esm/select-input/index.js.map +1 -1
- package/esm/select-input/useSingle.js +2 -3
- package/esm/select-input/useSingle.js.map +1 -1
- package/esm/space/Space.d.ts +8 -0
- package/{es/addon/Addon.js → esm/space/Space.js} +53 -44
- package/esm/space/Space.js.map +1 -0
- package/esm/space/defaultProps.d.ts +5 -0
- package/esm/space/defaultProps.js +14 -0
- package/esm/space/defaultProps.js.map +1 -0
- package/esm/space/index.d.ts +6 -0
- package/esm/space/index.js +45 -0
- package/esm/space/index.js.map +1 -0
- package/esm/space/style/css.d.ts +1 -0
- package/esm/space/style/index.d.ts +1 -0
- package/esm/space/style/index.js +1 -0
- package/esm/space/type.d.ts +30 -0
- package/esm/space/type.js +7 -0
- package/esm/space/type.js.map +1 -0
- package/esm/table/BaseTable.js +3 -4
- package/esm/table/BaseTable.js.map +1 -1
- package/esm/table/EnhancedTable.js +4 -5
- package/esm/table/EnhancedTable.js.map +1 -1
- package/esm/table/FilterController.js +1 -1
- package/esm/table/PrimaryTable.js +4 -5
- package/esm/table/PrimaryTable.js.map +1 -1
- package/esm/table/TBody.js +2 -3
- package/esm/table/TBody.js.map +1 -1
- package/esm/table/hooks/useAsyncLoading.js +1 -0
- package/esm/table/hooks/useAsyncLoading.js.map +1 -1
- package/esm/table/hooks/useFilter.js +1 -1
- package/esm/table/hooks/usePagination.js +3 -4
- package/esm/table/hooks/usePagination.js.map +1 -1
- package/esm/table/hooks/useRowSelect.js +1 -1
- package/esm/table/index.js +4 -5
- package/esm/table/index.js.map +1 -1
- package/esm/time-picker/TimePicker.js +2 -3
- package/esm/time-picker/TimePicker.js.map +1 -1
- package/esm/time-picker/index.js +2 -3
- package/esm/time-picker/index.js.map +1 -1
- package/esm/transfer/Transfer.js +5 -6
- package/esm/transfer/Transfer.js.map +1 -1
- package/esm/transfer/TransferList.js +3 -4
- package/esm/transfer/TransferList.js.map +1 -1
- package/esm/transfer/index.js +5 -6
- package/esm/transfer/index.js.map +1 -1
- package/esm/tree/Tree.js +3 -4
- package/esm/tree/Tree.js.map +1 -1
- package/esm/tree/index.js +3 -4
- package/esm/tree/index.js.map +1 -1
- package/esm/tree/useStore.js +3 -4
- package/esm/tree/useStore.js.map +1 -1
- package/esm/tree-select/TreeSelect.js +3 -4
- package/esm/tree-select/TreeSelect.js.map +1 -1
- package/esm/tree-select/index.js +3 -4
- package/esm/tree-select/index.js.map +1 -1
- package/esm/tree-select/useTreeSelectPassthoughProps.js +2 -3
- package/esm/tree-select/useTreeSelectPassthoughProps.js.map +1 -1
- package/esm/tree-select/useTreeSelectUtils.js +4 -5
- package/esm/tree-select/useTreeSelectUtils.js.map +1 -1
- package/lib/_chunks/{dep-18b29c2a.js → dep-024a8c51.js} +2 -2
- package/lib/_chunks/{dep-18b29c2a.js.map → dep-024a8c51.js.map} +1 -1
- package/lib/_chunks/{dep-94a90ff2.js → dep-0ad41c40.js} +6 -3
- package/lib/_chunks/dep-0ad41c40.js.map +1 -0
- package/lib/_chunks/{dep-85d2b8ba.js → dep-66ed1106.js} +2 -2
- package/lib/_chunks/{dep-85d2b8ba.js.map → dep-66ed1106.js.map} +1 -1
- package/lib/_chunks/{dep-fec505b6.js → dep-67a31200.js} +3 -3
- package/lib/_chunks/{dep-fec505b6.js.map → dep-67a31200.js.map} +1 -1
- package/lib/_chunks/{dep-d66dd060.js → dep-dbc0d9a3.js} +22 -4
- package/lib/_chunks/dep-dbc0d9a3.js.map +1 -0
- package/lib/_common/js/tabs/base.js +1 -1
- package/lib/_common/js/tabs/base.js.map +1 -1
- package/lib/_common/js/tree/tree-node-model.js +2 -3
- package/lib/_common/js/tree/tree-node-model.js.map +1 -1
- package/lib/_common/js/tree/tree-node.d.ts +1 -1
- package/lib/_common/js/tree/tree-node.js +4 -5
- package/lib/_common/js/tree/tree-node.js.map +1 -1
- package/lib/_common/js/tree/tree-store.d.ts +1 -1
- package/lib/_common/js/tree/tree-store.js +7 -8
- package/lib/_common/js/tree/tree-store.js.map +1 -1
- package/lib/_common/js/upload/xhr.js +1 -1
- package/lib/_common/js/upload/xhr.js.map +1 -1
- package/lib/calendar/Calendar.js +3 -4
- package/lib/calendar/Calendar.js.map +1 -1
- package/lib/calendar/index.js +3 -4
- package/lib/calendar/index.js.map +1 -1
- package/lib/cascader/Cascader.js +3 -4
- package/lib/cascader/Cascader.js.map +1 -1
- package/lib/cascader/index.js +3 -4
- package/lib/cascader/index.js.map +1 -1
- package/lib/cascader/interface.js +2 -3
- package/lib/cascader/interface.js.map +1 -1
- package/lib/color-picker/ColorPicker.js +3 -4
- package/lib/color-picker/ColorPicker.js.map +1 -1
- package/lib/color-picker/ColorPickerPanel.js +3 -4
- package/lib/color-picker/ColorPickerPanel.js.map +1 -1
- package/lib/color-picker/components/panel/format/index.js +2 -3
- package/lib/color-picker/components/panel/format/index.js.map +1 -1
- package/lib/color-picker/components/panel/header.js +1 -1
- package/lib/color-picker/components/panel/index.js +3 -4
- package/lib/color-picker/components/panel/index.js.map +1 -1
- package/lib/color-picker/index.js +3 -4
- package/lib/color-picker/index.js.map +1 -1
- package/lib/date-picker/DatePicker.js +2 -3
- package/lib/date-picker/DatePicker.js.map +1 -1
- package/lib/date-picker/DatePickerPanel.js +2 -3
- package/lib/date-picker/DatePickerPanel.js.map +1 -1
- package/lib/date-picker/DateRangePicker.js +2 -3
- package/lib/date-picker/DateRangePicker.js.map +1 -1
- package/lib/date-picker/DateRangePickerPanel.js +2 -3
- package/lib/date-picker/DateRangePickerPanel.js.map +1 -1
- package/lib/date-picker/base/Header.js +2 -3
- package/lib/date-picker/base/Header.js.map +1 -1
- package/lib/date-picker/index.js +2 -3
- package/lib/date-picker/index.js.map +1 -1
- package/lib/date-picker/panel/PanelContent.js +2 -3
- package/lib/date-picker/panel/PanelContent.js.map +1 -1
- package/lib/date-picker/panel/RangePanel.js +2 -3
- package/lib/date-picker/panel/RangePanel.js.map +1 -1
- package/lib/date-picker/panel/SinglePanel.js +2 -3
- package/lib/date-picker/panel/SinglePanel.js.map +1 -1
- package/lib/dropdown/Dropdown.js +2 -3
- package/lib/dropdown/Dropdown.js.map +1 -1
- package/lib/dropdown/index.js +2 -3
- package/lib/dropdown/index.js.map +1 -1
- package/lib/form/Form.js +12 -9
- package/lib/form/Form.js.map +1 -1
- package/lib/form/FormItem.d.ts +1 -5
- package/lib/form/FormItem.js +1188 -35
- package/lib/form/FormItem.js.map +1 -1
- package/lib/form/const.d.ts +5 -0
- package/lib/form/const.js +19 -0
- package/lib/form/const.js.map +1 -0
- package/lib/form/defaultProps.d.ts +2 -1
- package/lib/form/defaultProps.js +2 -0
- package/lib/form/defaultProps.js.map +1 -1
- package/lib/form/formModel.d.ts +23 -1
- package/lib/form/formModel.js +21 -33
- package/lib/form/formModel.js.map +1 -1
- package/lib/form/hooks/useFormItemStyle.js +108 -213
- package/lib/form/hooks/useFormItemStyle.js.map +1 -1
- package/lib/form/hooks/useInstance.d.ts +2 -1
- package/lib/form/hooks/useInstance.js +119 -64
- package/lib/form/hooks/useInstance.js.map +1 -1
- package/lib/form/index.js +9 -8
- package/lib/form/index.js.map +1 -1
- package/lib/form/type.d.ts +22 -11
- package/lib/form/useInitialData.js +4 -5
- package/lib/form/useInitialData.js.map +1 -1
- package/lib/index-lib.js +12 -7
- package/lib/index-lib.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +12 -7
- package/lib/index.js.map +1 -1
- package/lib/pagination/Pagination.js +3 -4
- package/lib/pagination/Pagination.js.map +1 -1
- package/lib/pagination/index.js +3 -4
- package/lib/pagination/index.js.map +1 -1
- package/lib/radio/Radio.js +1 -1
- package/lib/radio/RadioGroup.d.ts +2 -1
- package/lib/radio/RadioGroup.js +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/select/base/Select.js +2 -3
- package/lib/select/base/Select.js.map +1 -1
- package/lib/select/index.js +2 -3
- package/lib/select/index.js.map +1 -1
- package/lib/select-input/SelectInput.js +2 -3
- package/lib/select-input/SelectInput.js.map +1 -1
- package/lib/select-input/index.js +2 -3
- package/lib/select-input/index.js.map +1 -1
- package/lib/select-input/useSingle.js +2 -3
- package/lib/select-input/useSingle.js.map +1 -1
- package/lib/space/Space.d.ts +8 -0
- package/lib/{addon/Addon.js → space/Space.js} +52 -43
- package/lib/space/Space.js.map +1 -0
- package/lib/space/defaultProps.d.ts +5 -0
- package/lib/space/defaultProps.js +18 -0
- package/lib/space/defaultProps.js.map +1 -0
- package/lib/space/index.d.ts +6 -0
- package/lib/space/index.js +44 -0
- package/lib/space/index.js.map +1 -0
- package/lib/space/style/css.d.ts +1 -0
- package/lib/space/style/index.d.ts +1 -0
- package/lib/space/type.d.ts +30 -0
- package/lib/space/type.js +9 -0
- package/lib/space/type.js.map +1 -0
- package/lib/table/BaseTable.js +3 -4
- package/lib/table/BaseTable.js.map +1 -1
- package/lib/table/EnhancedTable.js +4 -5
- package/lib/table/EnhancedTable.js.map +1 -1
- package/lib/table/FilterController.js +1 -1
- package/lib/table/PrimaryTable.js +4 -5
- package/lib/table/PrimaryTable.js.map +1 -1
- package/lib/table/TBody.js +2 -3
- package/lib/table/TBody.js.map +1 -1
- package/lib/table/hooks/useAsyncLoading.js +1 -0
- package/lib/table/hooks/useAsyncLoading.js.map +1 -1
- package/lib/table/hooks/useFilter.js +1 -1
- package/lib/table/hooks/usePagination.js +3 -4
- package/lib/table/hooks/usePagination.js.map +1 -1
- package/lib/table/hooks/useRowSelect.js +1 -1
- package/lib/table/index.js +4 -5
- package/lib/table/index.js.map +1 -1
- package/lib/time-picker/TimePicker.js +2 -3
- package/lib/time-picker/TimePicker.js.map +1 -1
- package/lib/time-picker/index.js +2 -3
- package/lib/time-picker/index.js.map +1 -1
- package/lib/transfer/Transfer.js +5 -6
- package/lib/transfer/Transfer.js.map +1 -1
- package/lib/transfer/TransferList.js +3 -4
- package/lib/transfer/TransferList.js.map +1 -1
- package/lib/transfer/index.js +5 -6
- package/lib/transfer/index.js.map +1 -1
- package/lib/tree/Tree.js +3 -4
- package/lib/tree/Tree.js.map +1 -1
- package/lib/tree/index.js +3 -4
- package/lib/tree/index.js.map +1 -1
- package/lib/tree/useStore.js +3 -4
- package/lib/tree/useStore.js.map +1 -1
- package/lib/tree-select/TreeSelect.js +3 -4
- package/lib/tree-select/TreeSelect.js.map +1 -1
- package/lib/tree-select/index.js +3 -4
- package/lib/tree-select/index.js.map +1 -1
- package/lib/tree-select/useTreeSelectPassthoughProps.js +2 -3
- package/lib/tree-select/useTreeSelectPassthoughProps.js.map +1 -1
- package/lib/tree-select/useTreeSelectUtils.js +4 -5
- package/lib/tree-select/useTreeSelectUtils.js.map +1 -1
- package/package.json +1 -1
- package/es/_chunks/dep-16cb7f3b.js.map +0 -1
- package/es/_chunks/dep-5bfc1a42.js.map +0 -1
- package/es/_chunks/dep-d44068e2.js +0 -1159
- package/es/_chunks/dep-d44068e2.js.map +0 -1
- package/es/_chunks/dep-f8eff6be.js +0 -29
- package/es/_chunks/dep-f8eff6be.js.map +0 -1
- package/es/addon/Addon.d.ts +0 -8
- package/es/addon/Addon.js.map +0 -1
- package/esm/_chunks/dep-16cb7f3b.js.map +0 -1
- package/esm/_chunks/dep-5bfc1a42.js.map +0 -1
- package/esm/_chunks/dep-df0d5d91.js +0 -1159
- package/esm/_chunks/dep-df0d5d91.js.map +0 -1
- package/esm/_chunks/dep-f8eff6be.js +0 -29
- package/esm/_chunks/dep-f8eff6be.js.map +0 -1
- package/esm/addon/Addon.d.ts +0 -8
- package/esm/addon/Addon.js.map +0 -1
- package/lib/_chunks/dep-94a90ff2.js.map +0 -1
- package/lib/_chunks/dep-956bf12a.js +0 -30
- package/lib/_chunks/dep-956bf12a.js.map +0 -1
- package/lib/_chunks/dep-d66dd060.js.map +0 -1
- package/lib/_chunks/dep-e683283d.js +0 -1167
- package/lib/_chunks/dep-e683283d.js.map +0 -1
- package/lib/addon/Addon.d.ts +0 -8
- package/lib/addon/Addon.js.map +0 -1
|
@@ -1,1159 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* tdesign v0.35.1
|
|
3
|
-
* (c) 2022 tdesign
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { _ as _typeof } from './dep-b0f791fb.js';
|
|
8
|
-
import { _ as _defineProperty } from './dep-97eca916.js';
|
|
9
|
-
import { _ as _slicedToArray } from './dep-8e632784.js';
|
|
10
|
-
import React, { useMemo, forwardRef, useState, useRef, useEffect, useImperativeHandle } from 'react';
|
|
11
|
-
import { i as isObject_1 } from './dep-3a29f498.js';
|
|
12
|
-
import './dep-ef5213a2.js';
|
|
13
|
-
import { _ as _copyObject, k as keysIn_1 } from './dep-49f15787.js';
|
|
14
|
-
import { a as _createAssigner } from './dep-66333179.js';
|
|
15
|
-
import { a as _apply } from './dep-1e4b6d87.js';
|
|
16
|
-
import { a as isPlainObject_1, _ as _baseRest } from './dep-019fd669.js';
|
|
17
|
-
import { a as _baseGetTag } from './dep-f27bc188.js';
|
|
18
|
-
import { i as isObjectLike_1 } from './dep-f3cc8383.js';
|
|
19
|
-
import { _ as _arrayMap, t as toString_1 } from './dep-85ebe7c6.js';
|
|
20
|
-
import { e as eq_1 } from './dep-7678a0f2.js';
|
|
21
|
-
import { _ as _isIterateeCall } from './dep-84196be1.js';
|
|
22
|
-
import { k as keys_1 } from './dep-3214d550.js';
|
|
23
|
-
import { _ as _basePropertyOf } from './dep-a4b40e9d.js';
|
|
24
|
-
import { CheckCircleFilledIcon, CloseCircleFilledIcon, ErrorCircleFilledIcon } from 'tdesign-icons-react';
|
|
25
|
-
import useConfig from '../_util/useConfig.js';
|
|
26
|
-
import { validate, isValueEmpty } from '../form/formModel.js';
|
|
27
|
-
import { useFormContext, useFormListContext } from '../form/FormContext.js';
|
|
28
|
-
import classNames from 'classnames';
|
|
29
|
-
import renderTNode from '../_util/renderTNode.js';
|
|
30
|
-
import { formItemDefaultProps } from '../form/defaultProps.js';
|
|
31
|
-
import { getDefaultInitialData, ctrlKeyMap } from '../form/useInitialData.js';
|
|
32
|
-
|
|
33
|
-
var copyObject = _copyObject,
|
|
34
|
-
createAssigner = _createAssigner,
|
|
35
|
-
keysIn = keysIn_1;
|
|
36
|
-
/**
|
|
37
|
-
* This method is like `_.assignIn` except that it accepts `customizer`
|
|
38
|
-
* which is invoked to produce the assigned values. If `customizer` returns
|
|
39
|
-
* `undefined`, assignment is handled by the method instead. The `customizer`
|
|
40
|
-
* is invoked with five arguments: (objValue, srcValue, key, object, source).
|
|
41
|
-
*
|
|
42
|
-
* **Note:** This method mutates `object`.
|
|
43
|
-
*
|
|
44
|
-
* @static
|
|
45
|
-
* @memberOf _
|
|
46
|
-
* @since 4.0.0
|
|
47
|
-
* @alias extendWith
|
|
48
|
-
* @category Object
|
|
49
|
-
* @param {Object} object The destination object.
|
|
50
|
-
* @param {...Object} sources The source objects.
|
|
51
|
-
* @param {Function} [customizer] The function to customize assigned values.
|
|
52
|
-
* @returns {Object} Returns `object`.
|
|
53
|
-
* @see _.assignWith
|
|
54
|
-
* @example
|
|
55
|
-
*
|
|
56
|
-
* function customizer(objValue, srcValue) {
|
|
57
|
-
* return _.isUndefined(objValue) ? srcValue : objValue;
|
|
58
|
-
* }
|
|
59
|
-
*
|
|
60
|
-
* var defaults = _.partialRight(_.assignInWith, customizer);
|
|
61
|
-
*
|
|
62
|
-
* defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
|
63
|
-
* // => { 'a': 1, 'b': 2 }
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
|
-
var assignInWith$1 = createAssigner(function (object, source, srcIndex, customizer) {
|
|
67
|
-
copyObject(source, keysIn(source), object, customizer);
|
|
68
|
-
});
|
|
69
|
-
var assignInWith_1 = assignInWith$1;
|
|
70
|
-
|
|
71
|
-
var baseGetTag = _baseGetTag,
|
|
72
|
-
isObjectLike = isObjectLike_1,
|
|
73
|
-
isPlainObject = isPlainObject_1;
|
|
74
|
-
/** `Object#toString` result references. */
|
|
75
|
-
|
|
76
|
-
var domExcTag = '[object DOMException]',
|
|
77
|
-
errorTag = '[object Error]';
|
|
78
|
-
/**
|
|
79
|
-
* Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
|
|
80
|
-
* `SyntaxError`, `TypeError`, or `URIError` object.
|
|
81
|
-
*
|
|
82
|
-
* @static
|
|
83
|
-
* @memberOf _
|
|
84
|
-
* @since 3.0.0
|
|
85
|
-
* @category Lang
|
|
86
|
-
* @param {*} value The value to check.
|
|
87
|
-
* @returns {boolean} Returns `true` if `value` is an error object, else `false`.
|
|
88
|
-
* @example
|
|
89
|
-
*
|
|
90
|
-
* _.isError(new Error);
|
|
91
|
-
* // => true
|
|
92
|
-
*
|
|
93
|
-
* _.isError(Error);
|
|
94
|
-
* // => false
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
function isError$2(value) {
|
|
98
|
-
if (!isObjectLike(value)) {
|
|
99
|
-
return false;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
var tag = baseGetTag(value);
|
|
103
|
-
return tag == errorTag || tag == domExcTag || typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
var isError_1 = isError$2;
|
|
107
|
-
|
|
108
|
-
var apply = _apply,
|
|
109
|
-
baseRest = _baseRest,
|
|
110
|
-
isError$1 = isError_1;
|
|
111
|
-
/**
|
|
112
|
-
* Attempts to invoke `func`, returning either the result or the caught error
|
|
113
|
-
* object. Any additional arguments are provided to `func` when it's invoked.
|
|
114
|
-
*
|
|
115
|
-
* @static
|
|
116
|
-
* @memberOf _
|
|
117
|
-
* @since 3.0.0
|
|
118
|
-
* @category Util
|
|
119
|
-
* @param {Function} func The function to attempt.
|
|
120
|
-
* @param {...*} [args] The arguments to invoke `func` with.
|
|
121
|
-
* @returns {*} Returns the `func` result or error object.
|
|
122
|
-
* @example
|
|
123
|
-
*
|
|
124
|
-
* // Avoid throwing errors for invalid selectors.
|
|
125
|
-
* var elements = _.attempt(function(selector) {
|
|
126
|
-
* return document.querySelectorAll(selector);
|
|
127
|
-
* }, '>_>');
|
|
128
|
-
*
|
|
129
|
-
* if (_.isError(elements)) {
|
|
130
|
-
* elements = [];
|
|
131
|
-
* }
|
|
132
|
-
*/
|
|
133
|
-
|
|
134
|
-
var attempt$1 = baseRest(function (func, args) {
|
|
135
|
-
try {
|
|
136
|
-
return apply(func, undefined, args);
|
|
137
|
-
} catch (e) {
|
|
138
|
-
return isError$1(e) ? e : new Error(e);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
var attempt_1 = attempt$1;
|
|
142
|
-
|
|
143
|
-
var arrayMap = _arrayMap;
|
|
144
|
-
/**
|
|
145
|
-
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
|
146
|
-
* array of `object` property values corresponding to the property names
|
|
147
|
-
* of `props`.
|
|
148
|
-
*
|
|
149
|
-
* @private
|
|
150
|
-
* @param {Object} object The object to query.
|
|
151
|
-
* @param {Array} props The property names to get values for.
|
|
152
|
-
* @returns {Object} Returns the array of property values.
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
function baseValues$1(object, props) {
|
|
156
|
-
return arrayMap(props, function (key) {
|
|
157
|
-
return object[key];
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
var _baseValues = baseValues$1;
|
|
162
|
-
|
|
163
|
-
var eq = eq_1;
|
|
164
|
-
/** Used for built-in method references. */
|
|
165
|
-
|
|
166
|
-
var objectProto$1 = Object.prototype;
|
|
167
|
-
/** Used to check objects for own properties. */
|
|
168
|
-
|
|
169
|
-
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
170
|
-
/**
|
|
171
|
-
* Used by `_.defaults` to customize its `_.assignIn` use to assign properties
|
|
172
|
-
* of source objects to the destination object for all destination properties
|
|
173
|
-
* that resolve to `undefined`.
|
|
174
|
-
*
|
|
175
|
-
* @private
|
|
176
|
-
* @param {*} objValue The destination value.
|
|
177
|
-
* @param {*} srcValue The source value.
|
|
178
|
-
* @param {string} key The key of the property to assign.
|
|
179
|
-
* @param {Object} object The parent object of `objValue`.
|
|
180
|
-
* @returns {*} Returns the value to assign.
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
function customDefaultsAssignIn$1(objValue, srcValue, key, object) {
|
|
184
|
-
if (objValue === undefined || eq(objValue, objectProto$1[key]) && !hasOwnProperty$1.call(object, key)) {
|
|
185
|
-
return srcValue;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
return objValue;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
var _customDefaultsAssignIn = customDefaultsAssignIn$1;
|
|
192
|
-
|
|
193
|
-
/** Used to escape characters for inclusion in compiled string literals. */
|
|
194
|
-
var stringEscapes = {
|
|
195
|
-
'\\': '\\',
|
|
196
|
-
"'": "'",
|
|
197
|
-
'\n': 'n',
|
|
198
|
-
'\r': 'r',
|
|
199
|
-
"\u2028": 'u2028',
|
|
200
|
-
"\u2029": 'u2029'
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* Used by `_.template` to escape characters for inclusion in compiled string literals.
|
|
204
|
-
*
|
|
205
|
-
* @private
|
|
206
|
-
* @param {string} chr The matched character to escape.
|
|
207
|
-
* @returns {string} Returns the escaped character.
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
|
-
function escapeStringChar$1(chr) {
|
|
211
|
-
return '\\' + stringEscapes[chr];
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
var _escapeStringChar = escapeStringChar$1;
|
|
215
|
-
|
|
216
|
-
/** Used to match template delimiters. */
|
|
217
|
-
var reInterpolate$2 = /<%=([\s\S]+?)%>/g;
|
|
218
|
-
var _reInterpolate = reInterpolate$2;
|
|
219
|
-
|
|
220
|
-
var basePropertyOf = _basePropertyOf;
|
|
221
|
-
/** Used to map characters to HTML entities. */
|
|
222
|
-
|
|
223
|
-
var htmlEscapes = {
|
|
224
|
-
'&': '&',
|
|
225
|
-
'<': '<',
|
|
226
|
-
'>': '>',
|
|
227
|
-
'"': '"',
|
|
228
|
-
"'": '''
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* Used by `_.escape` to convert characters to HTML entities.
|
|
232
|
-
*
|
|
233
|
-
* @private
|
|
234
|
-
* @param {string} chr The matched character to escape.
|
|
235
|
-
* @returns {string} Returns the escaped character.
|
|
236
|
-
*/
|
|
237
|
-
|
|
238
|
-
var escapeHtmlChar$1 = basePropertyOf(htmlEscapes);
|
|
239
|
-
var _escapeHtmlChar = escapeHtmlChar$1;
|
|
240
|
-
|
|
241
|
-
var escapeHtmlChar = _escapeHtmlChar,
|
|
242
|
-
toString$1 = toString_1;
|
|
243
|
-
/** Used to match HTML entities and HTML characters. */
|
|
244
|
-
|
|
245
|
-
var reUnescapedHtml = /[&<>"']/g,
|
|
246
|
-
reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
|
|
247
|
-
/**
|
|
248
|
-
* Converts the characters "&", "<", ">", '"', and "'" in `string` to their
|
|
249
|
-
* corresponding HTML entities.
|
|
250
|
-
*
|
|
251
|
-
* **Note:** No other characters are escaped. To escape additional
|
|
252
|
-
* characters use a third-party library like [_he_](https://mths.be/he).
|
|
253
|
-
*
|
|
254
|
-
* Though the ">" character is escaped for symmetry, characters like
|
|
255
|
-
* ">" and "/" don't need escaping in HTML and have no special meaning
|
|
256
|
-
* unless they're part of a tag or unquoted attribute value. See
|
|
257
|
-
* [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
|
|
258
|
-
* (under "semi-related fun fact") for more details.
|
|
259
|
-
*
|
|
260
|
-
* When working with HTML you should always
|
|
261
|
-
* [quote attribute values](http://wonko.com/post/html-escaping) to reduce
|
|
262
|
-
* XSS vectors.
|
|
263
|
-
*
|
|
264
|
-
* @static
|
|
265
|
-
* @since 0.1.0
|
|
266
|
-
* @memberOf _
|
|
267
|
-
* @category String
|
|
268
|
-
* @param {string} [string=''] The string to escape.
|
|
269
|
-
* @returns {string} Returns the escaped string.
|
|
270
|
-
* @example
|
|
271
|
-
*
|
|
272
|
-
* _.escape('fred, barney, & pebbles');
|
|
273
|
-
* // => 'fred, barney, & pebbles'
|
|
274
|
-
*/
|
|
275
|
-
|
|
276
|
-
function escape$1(string) {
|
|
277
|
-
string = toString$1(string);
|
|
278
|
-
return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
var _escape = escape$1;
|
|
282
|
-
|
|
283
|
-
/** Used to match template delimiters. */
|
|
284
|
-
var reEscape$1 = /<%-([\s\S]+?)%>/g;
|
|
285
|
-
var _reEscape = reEscape$1;
|
|
286
|
-
|
|
287
|
-
/** Used to match template delimiters. */
|
|
288
|
-
var reEvaluate$1 = /<%([\s\S]+?)%>/g;
|
|
289
|
-
var _reEvaluate = reEvaluate$1;
|
|
290
|
-
|
|
291
|
-
var escape = _escape,
|
|
292
|
-
reEscape = _reEscape,
|
|
293
|
-
reEvaluate = _reEvaluate,
|
|
294
|
-
reInterpolate$1 = _reInterpolate;
|
|
295
|
-
/**
|
|
296
|
-
* By default, the template delimiters used by lodash are like those in
|
|
297
|
-
* embedded Ruby (ERB) as well as ES2015 template strings. Change the
|
|
298
|
-
* following template settings to use alternative delimiters.
|
|
299
|
-
*
|
|
300
|
-
* @static
|
|
301
|
-
* @memberOf _
|
|
302
|
-
* @type {Object}
|
|
303
|
-
*/
|
|
304
|
-
|
|
305
|
-
var templateSettings$1 = {
|
|
306
|
-
/**
|
|
307
|
-
* Used to detect `data` property values to be HTML-escaped.
|
|
308
|
-
*
|
|
309
|
-
* @memberOf _.templateSettings
|
|
310
|
-
* @type {RegExp}
|
|
311
|
-
*/
|
|
312
|
-
'escape': reEscape,
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Used to detect code to be evaluated.
|
|
316
|
-
*
|
|
317
|
-
* @memberOf _.templateSettings
|
|
318
|
-
* @type {RegExp}
|
|
319
|
-
*/
|
|
320
|
-
'evaluate': reEvaluate,
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Used to detect `data` property values to inject.
|
|
324
|
-
*
|
|
325
|
-
* @memberOf _.templateSettings
|
|
326
|
-
* @type {RegExp}
|
|
327
|
-
*/
|
|
328
|
-
'interpolate': reInterpolate$1,
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* Used to reference the data object in the template text.
|
|
332
|
-
*
|
|
333
|
-
* @memberOf _.templateSettings
|
|
334
|
-
* @type {string}
|
|
335
|
-
*/
|
|
336
|
-
'variable': '',
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Used to import variables into the compiled template.
|
|
340
|
-
*
|
|
341
|
-
* @memberOf _.templateSettings
|
|
342
|
-
* @type {Object}
|
|
343
|
-
*/
|
|
344
|
-
'imports': {
|
|
345
|
-
/**
|
|
346
|
-
* A reference to the `lodash` function.
|
|
347
|
-
*
|
|
348
|
-
* @memberOf _.templateSettings.imports
|
|
349
|
-
* @type {Function}
|
|
350
|
-
*/
|
|
351
|
-
'_': {
|
|
352
|
-
'escape': escape
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
var templateSettings_1 = templateSettings$1;
|
|
357
|
-
|
|
358
|
-
var assignInWith = assignInWith_1,
|
|
359
|
-
attempt = attempt_1,
|
|
360
|
-
baseValues = _baseValues,
|
|
361
|
-
customDefaultsAssignIn = _customDefaultsAssignIn,
|
|
362
|
-
escapeStringChar = _escapeStringChar,
|
|
363
|
-
isError = isError_1,
|
|
364
|
-
isIterateeCall = _isIterateeCall,
|
|
365
|
-
keys = keys_1,
|
|
366
|
-
reInterpolate = _reInterpolate,
|
|
367
|
-
templateSettings = templateSettings_1,
|
|
368
|
-
toString = toString_1;
|
|
369
|
-
/** Error message constants. */
|
|
370
|
-
|
|
371
|
-
var INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';
|
|
372
|
-
/** Used to match empty string literals in compiled template source. */
|
|
373
|
-
|
|
374
|
-
var reEmptyStringLeading = /\b__p \+= '';/g,
|
|
375
|
-
reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
|
|
376
|
-
reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
|
|
377
|
-
/**
|
|
378
|
-
* Used to validate the `validate` option in `_.template` variable.
|
|
379
|
-
*
|
|
380
|
-
* Forbids characters which could potentially change the meaning of the function argument definition:
|
|
381
|
-
* - "()," (modification of function parameters)
|
|
382
|
-
* - "=" (default value)
|
|
383
|
-
* - "[]{}" (destructuring of function parameters)
|
|
384
|
-
* - "/" (beginning of a comment)
|
|
385
|
-
* - whitespace
|
|
386
|
-
*/
|
|
387
|
-
|
|
388
|
-
var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/;
|
|
389
|
-
/**
|
|
390
|
-
* Used to match
|
|
391
|
-
* [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
|
|
392
|
-
*/
|
|
393
|
-
|
|
394
|
-
var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
|
|
395
|
-
/** Used to ensure capturing order of template delimiters. */
|
|
396
|
-
|
|
397
|
-
var reNoMatch = /($^)/;
|
|
398
|
-
/** Used to match unescaped characters in compiled string literals. */
|
|
399
|
-
|
|
400
|
-
var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
|
|
401
|
-
/** Used for built-in method references. */
|
|
402
|
-
|
|
403
|
-
var objectProto = Object.prototype;
|
|
404
|
-
/** Used to check objects for own properties. */
|
|
405
|
-
|
|
406
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
407
|
-
/**
|
|
408
|
-
* Creates a compiled template function that can interpolate data properties
|
|
409
|
-
* in "interpolate" delimiters, HTML-escape interpolated data properties in
|
|
410
|
-
* "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
|
|
411
|
-
* properties may be accessed as free variables in the template. If a setting
|
|
412
|
-
* object is given, it takes precedence over `_.templateSettings` values.
|
|
413
|
-
*
|
|
414
|
-
* **Note:** In the development build `_.template` utilizes
|
|
415
|
-
* [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
|
416
|
-
* for easier debugging.
|
|
417
|
-
*
|
|
418
|
-
* For more information on precompiling templates see
|
|
419
|
-
* [lodash's custom builds documentation](https://lodash.com/custom-builds).
|
|
420
|
-
*
|
|
421
|
-
* For more information on Chrome extension sandboxes see
|
|
422
|
-
* [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
|
|
423
|
-
*
|
|
424
|
-
* @static
|
|
425
|
-
* @since 0.1.0
|
|
426
|
-
* @memberOf _
|
|
427
|
-
* @category String
|
|
428
|
-
* @param {string} [string=''] The template string.
|
|
429
|
-
* @param {Object} [options={}] The options object.
|
|
430
|
-
* @param {RegExp} [options.escape=_.templateSettings.escape]
|
|
431
|
-
* The HTML "escape" delimiter.
|
|
432
|
-
* @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
|
|
433
|
-
* The "evaluate" delimiter.
|
|
434
|
-
* @param {Object} [options.imports=_.templateSettings.imports]
|
|
435
|
-
* An object to import into the template as free variables.
|
|
436
|
-
* @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
|
|
437
|
-
* The "interpolate" delimiter.
|
|
438
|
-
* @param {string} [options.sourceURL='templateSources[n]']
|
|
439
|
-
* The sourceURL of the compiled template.
|
|
440
|
-
* @param {string} [options.variable='obj']
|
|
441
|
-
* The data object variable name.
|
|
442
|
-
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
443
|
-
* @returns {Function} Returns the compiled template function.
|
|
444
|
-
* @example
|
|
445
|
-
*
|
|
446
|
-
* // Use the "interpolate" delimiter to create a compiled template.
|
|
447
|
-
* var compiled = _.template('hello <%= user %>!');
|
|
448
|
-
* compiled({ 'user': 'fred' });
|
|
449
|
-
* // => 'hello fred!'
|
|
450
|
-
*
|
|
451
|
-
* // Use the HTML "escape" delimiter to escape data property values.
|
|
452
|
-
* var compiled = _.template('<b><%- value %></b>');
|
|
453
|
-
* compiled({ 'value': '<script>' });
|
|
454
|
-
* // => '<b><script></b>'
|
|
455
|
-
*
|
|
456
|
-
* // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
|
|
457
|
-
* var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
|
|
458
|
-
* compiled({ 'users': ['fred', 'barney'] });
|
|
459
|
-
* // => '<li>fred</li><li>barney</li>'
|
|
460
|
-
*
|
|
461
|
-
* // Use the internal `print` function in "evaluate" delimiters.
|
|
462
|
-
* var compiled = _.template('<% print("hello " + user); %>!');
|
|
463
|
-
* compiled({ 'user': 'barney' });
|
|
464
|
-
* // => 'hello barney!'
|
|
465
|
-
*
|
|
466
|
-
* // Use the ES template literal delimiter as an "interpolate" delimiter.
|
|
467
|
-
* // Disable support by replacing the "interpolate" delimiter.
|
|
468
|
-
* var compiled = _.template('hello ${ user }!');
|
|
469
|
-
* compiled({ 'user': 'pebbles' });
|
|
470
|
-
* // => 'hello pebbles!'
|
|
471
|
-
*
|
|
472
|
-
* // Use backslashes to treat delimiters as plain text.
|
|
473
|
-
* var compiled = _.template('<%= "\\<%- value %\\>" %>');
|
|
474
|
-
* compiled({ 'value': 'ignored' });
|
|
475
|
-
* // => '<%- value %>'
|
|
476
|
-
*
|
|
477
|
-
* // Use the `imports` option to import `jQuery` as `jq`.
|
|
478
|
-
* var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
|
|
479
|
-
* var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
|
|
480
|
-
* compiled({ 'users': ['fred', 'barney'] });
|
|
481
|
-
* // => '<li>fred</li><li>barney</li>'
|
|
482
|
-
*
|
|
483
|
-
* // Use the `sourceURL` option to specify a custom sourceURL for the template.
|
|
484
|
-
* var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
|
|
485
|
-
* compiled(data);
|
|
486
|
-
* // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
|
|
487
|
-
*
|
|
488
|
-
* // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
|
|
489
|
-
* var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
|
|
490
|
-
* compiled.source;
|
|
491
|
-
* // => function(data) {
|
|
492
|
-
* // var __t, __p = '';
|
|
493
|
-
* // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
|
|
494
|
-
* // return __p;
|
|
495
|
-
* // }
|
|
496
|
-
*
|
|
497
|
-
* // Use custom template delimiters.
|
|
498
|
-
* _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
|
|
499
|
-
* var compiled = _.template('hello {{ user }}!');
|
|
500
|
-
* compiled({ 'user': 'mustache' });
|
|
501
|
-
* // => 'hello mustache!'
|
|
502
|
-
*
|
|
503
|
-
* // Use the `source` property to inline compiled templates for meaningful
|
|
504
|
-
* // line numbers in error messages and stack traces.
|
|
505
|
-
* fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
|
|
506
|
-
* var JST = {\
|
|
507
|
-
* "main": ' + _.template(mainText).source + '\
|
|
508
|
-
* };\
|
|
509
|
-
* ');
|
|
510
|
-
*/
|
|
511
|
-
|
|
512
|
-
function template(string, options, guard) {
|
|
513
|
-
// Based on John Resig's `tmpl` implementation
|
|
514
|
-
// (http://ejohn.org/blog/javascript-micro-templating/)
|
|
515
|
-
// and Laura Doktorova's doT.js (https://github.com/olado/doT).
|
|
516
|
-
var settings = templateSettings.imports._.templateSettings || templateSettings;
|
|
517
|
-
|
|
518
|
-
if (guard && isIterateeCall(string, options, guard)) {
|
|
519
|
-
options = undefined;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
string = toString(string);
|
|
523
|
-
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
524
|
-
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
|
|
525
|
-
importsKeys = keys(imports),
|
|
526
|
-
importsValues = baseValues(imports, importsKeys);
|
|
527
|
-
var isEscaping,
|
|
528
|
-
isEvaluating,
|
|
529
|
-
index = 0,
|
|
530
|
-
interpolate = options.interpolate || reNoMatch,
|
|
531
|
-
source = "__p += '"; // Compile the regexp to match each delimiter.
|
|
532
|
-
|
|
533
|
-
var reDelimiters = RegExp((options.escape || reNoMatch).source + '|' + interpolate.source + '|' + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' + (options.evaluate || reNoMatch).source + '|$', 'g'); // Use a sourceURL for easier debugging.
|
|
534
|
-
// The sourceURL gets injected into the source that's eval-ed, so be careful
|
|
535
|
-
// to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
|
|
536
|
-
// and escape the comment, thus injecting code that gets evaled.
|
|
537
|
-
|
|
538
|
-
var sourceURL = hasOwnProperty.call(options, 'sourceURL') ? '//# sourceURL=' + (options.sourceURL + '').replace(/\s/g, ' ') + '\n' : '';
|
|
539
|
-
string.replace(reDelimiters, function (match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
540
|
-
interpolateValue || (interpolateValue = esTemplateValue); // Escape characters that can't be included in string literals.
|
|
541
|
-
|
|
542
|
-
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar); // Replace delimiters with snippets.
|
|
543
|
-
|
|
544
|
-
if (escapeValue) {
|
|
545
|
-
isEscaping = true;
|
|
546
|
-
source += "' +\n__e(" + escapeValue + ") +\n'";
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
if (evaluateValue) {
|
|
550
|
-
isEvaluating = true;
|
|
551
|
-
source += "';\n" + evaluateValue + ";\n__p += '";
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
if (interpolateValue) {
|
|
555
|
-
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
index = offset + match.length; // The JS engine embedded in Adobe products needs `match` returned in
|
|
559
|
-
// order to produce the correct `offset` value.
|
|
560
|
-
|
|
561
|
-
return match;
|
|
562
|
-
});
|
|
563
|
-
source += "';\n"; // If `variable` is not specified wrap a with-statement around the generated
|
|
564
|
-
// code to add the data object to the top of the scope chain.
|
|
565
|
-
|
|
566
|
-
var variable = hasOwnProperty.call(options, 'variable') && options.variable;
|
|
567
|
-
|
|
568
|
-
if (!variable) {
|
|
569
|
-
source = 'with (obj) {\n' + source + '\n}\n';
|
|
570
|
-
} // Throw an error if a forbidden character was found in `variable`, to prevent
|
|
571
|
-
// potential command injection attacks.
|
|
572
|
-
else if (reForbiddenIdentifierChars.test(variable)) {
|
|
573
|
-
throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);
|
|
574
|
-
} // Cleanup code by stripping empty strings.
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source).replace(reEmptyStringMiddle, '$1').replace(reEmptyStringTrailing, '$1;'); // Frame code as the function body.
|
|
578
|
-
|
|
579
|
-
source = 'function(' + (variable || 'obj') + ') {\n' + (variable ? '' : 'obj || (obj = {});\n') + "var __t, __p = ''" + (isEscaping ? ', __e = _.escape' : '') + (isEvaluating ? ', __j = Array.prototype.join;\n' + "function print() { __p += __j.call(arguments, '') }\n" : ';\n') + source + 'return __p\n}';
|
|
580
|
-
var result = attempt(function () {
|
|
581
|
-
return Function(importsKeys, sourceURL + 'return ' + source).apply(undefined, importsValues);
|
|
582
|
-
}); // Provide the compiled function's source by its `toString` method or
|
|
583
|
-
// the `source` property as a convenience for inlining compiled templates.
|
|
584
|
-
|
|
585
|
-
result.source = source;
|
|
586
|
-
|
|
587
|
-
if (isError(result)) {
|
|
588
|
-
throw result;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
return result;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
var template_1 = template;
|
|
595
|
-
|
|
596
|
-
function useFormItemStyle(props) {
|
|
597
|
-
var _classNames, _classNames2;
|
|
598
|
-
|
|
599
|
-
var _useConfig = useConfig(),
|
|
600
|
-
classPrefix = _useConfig.classPrefix;
|
|
601
|
-
|
|
602
|
-
var className = props.className,
|
|
603
|
-
help = props.help,
|
|
604
|
-
name = props.name,
|
|
605
|
-
successBorder = props.successBorder,
|
|
606
|
-
errorList = props.errorList,
|
|
607
|
-
successList = props.successList,
|
|
608
|
-
layout = props.layout,
|
|
609
|
-
verifyStatus = props.verifyStatus,
|
|
610
|
-
colon = props.colon,
|
|
611
|
-
label = props.label,
|
|
612
|
-
labelWidth = props.labelWidth,
|
|
613
|
-
labelAlign = props.labelAlign,
|
|
614
|
-
requiredMark = props.requiredMark,
|
|
615
|
-
showErrorMessage = props.showErrorMessage,
|
|
616
|
-
innerRules = props.innerRules;
|
|
617
|
-
var renderName = Array.isArray(name) ? name.join("-") : name;
|
|
618
|
-
var helpNode = help && /* @__PURE__ */React.createElement("div", {
|
|
619
|
-
className: "".concat(classPrefix, "-input__help")
|
|
620
|
-
}, renderTNode(help));
|
|
621
|
-
var extraNode = useMemo(function () {
|
|
622
|
-
var extra = null;
|
|
623
|
-
var list = errorList;
|
|
624
|
-
|
|
625
|
-
if (showErrorMessage && list && list[0] && list[0].message) {
|
|
626
|
-
extra = /* @__PURE__ */React.createElement("div", {
|
|
627
|
-
className: "".concat(classPrefix, "-input__extra"),
|
|
628
|
-
title: list[0].message
|
|
629
|
-
}, list[0].message);
|
|
630
|
-
} else if (successList.length) {
|
|
631
|
-
extra = /* @__PURE__ */React.createElement("div", {
|
|
632
|
-
className: "".concat(classPrefix, "-input__extra"),
|
|
633
|
-
title: successList[0].message
|
|
634
|
-
}, successList[0].message);
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
return extra;
|
|
638
|
-
}, [showErrorMessage, errorList, successList, classPrefix]);
|
|
639
|
-
var formItemClass = classNames("".concat(classPrefix, "-form__item"), className, (_classNames = {}, _defineProperty(_classNames, "".concat(classPrefix, "-form-item__").concat(renderName), renderName), _defineProperty(_classNames, "".concat(classPrefix, "-form__item-with-help"), helpNode), _defineProperty(_classNames, "".concat(classPrefix, "-form__item-with-extra"), extraNode), _classNames));
|
|
640
|
-
var formItemLabelClass = classNames("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(classPrefix, "-form__label--required"), requiredMark && innerRules.filter(function (rule) {
|
|
641
|
-
return rule.required;
|
|
642
|
-
}).length > 0), _defineProperty(_classNames2, "".concat(classPrefix, "-form__label--colon"), colon && label), _defineProperty(_classNames2, "".concat(classPrefix, "-form__label--top"), labelAlign === "top" || !labelWidth), _defineProperty(_classNames2, "".concat(classPrefix, "-form__label--left"), labelAlign === "left" && labelWidth), _defineProperty(_classNames2, "".concat(classPrefix, "-form__label--right"), labelAlign === "right" && labelWidth), _classNames2));
|
|
643
|
-
|
|
644
|
-
var contentClass = function contentClass() {
|
|
645
|
-
var _classNames4;
|
|
646
|
-
|
|
647
|
-
var controlCls = "".concat(classPrefix, "-form__controls");
|
|
648
|
-
if (!showErrorMessage) return controlCls;
|
|
649
|
-
var isSuccess = verifyStatus === VALIDATE_STATUS.SUCCESS;
|
|
650
|
-
|
|
651
|
-
if (isSuccess) {
|
|
652
|
-
return classNames(controlCls, "".concat(classPrefix, "-is-success"), _defineProperty({}, "".concat(classPrefix, "-form--success-border"), successBorder));
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
var firstErrorType = errorList.length && (errorList[0].type || "error");
|
|
656
|
-
return classNames(controlCls, (_classNames4 = {}, _defineProperty(_classNames4, "".concat(classPrefix, "-is-warning"), firstErrorType === "warning"), _defineProperty(_classNames4, "".concat(classPrefix, "-is-error"), firstErrorType === "error"), _classNames4));
|
|
657
|
-
};
|
|
658
|
-
|
|
659
|
-
var labelStyle = {};
|
|
660
|
-
var contentStyle = {};
|
|
661
|
-
|
|
662
|
-
if (label && labelWidth && labelAlign !== "top") {
|
|
663
|
-
if (typeof labelWidth === "number") {
|
|
664
|
-
labelStyle = {
|
|
665
|
-
width: "".concat(labelWidth, "px")
|
|
666
|
-
};
|
|
667
|
-
contentStyle = {
|
|
668
|
-
marginLeft: layout !== "inline" ? "".concat(labelWidth, "px") : ""
|
|
669
|
-
};
|
|
670
|
-
} else {
|
|
671
|
-
labelStyle = {
|
|
672
|
-
width: labelWidth
|
|
673
|
-
};
|
|
674
|
-
contentStyle = {
|
|
675
|
-
marginLeft: layout !== "inline" ? labelWidth : ""
|
|
676
|
-
};
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
return {
|
|
681
|
-
formItemClass: formItemClass,
|
|
682
|
-
formItemLabelClass: formItemLabelClass,
|
|
683
|
-
contentClass: contentClass,
|
|
684
|
-
labelStyle: labelStyle,
|
|
685
|
-
contentStyle: contentStyle,
|
|
686
|
-
helpNode: helpNode,
|
|
687
|
-
extraNode: extraNode
|
|
688
|
-
};
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
692
|
-
|
|
693
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
694
|
-
var VALIDATE_STATUS = /* @__PURE__ */function (VALIDATE_STATUS2) {
|
|
695
|
-
VALIDATE_STATUS2["TO_BE_VALIDATED"] = "not";
|
|
696
|
-
VALIDATE_STATUS2["SUCCESS"] = "success";
|
|
697
|
-
VALIDATE_STATUS2["FAIL"] = "fail";
|
|
698
|
-
return VALIDATE_STATUS2;
|
|
699
|
-
}(VALIDATE_STATUS || {});
|
|
700
|
-
var FormItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
701
|
-
var _useConfig = useConfig(),
|
|
702
|
-
classPrefix = _useConfig.classPrefix;
|
|
703
|
-
|
|
704
|
-
var _useFormContext = useFormContext(),
|
|
705
|
-
colon = _useFormContext.colon,
|
|
706
|
-
layout = _useFormContext.layout,
|
|
707
|
-
requiredMarkFromContext = _useFormContext.requiredMark,
|
|
708
|
-
labelAlignFromContext = _useFormContext.labelAlign,
|
|
709
|
-
labelWidthFromContext = _useFormContext.labelWidth,
|
|
710
|
-
showErrorMessageFromContext = _useFormContext.showErrorMessage,
|
|
711
|
-
disabledFromContext = _useFormContext.disabled,
|
|
712
|
-
resetTypeFromContext = _useFormContext.resetType,
|
|
713
|
-
rulesFromContext = _useFormContext.rules,
|
|
714
|
-
statusIconFromContext = _useFormContext.statusIcon,
|
|
715
|
-
errorMessage = _useFormContext.errorMessage,
|
|
716
|
-
formMapRef = _useFormContext.formMapRef,
|
|
717
|
-
onFormItemValueChange = _useFormContext.onFormItemValueChange;
|
|
718
|
-
|
|
719
|
-
var _useFormListContext = useFormListContext(),
|
|
720
|
-
formListName = _useFormListContext.name,
|
|
721
|
-
formListRules = _useFormListContext.rules,
|
|
722
|
-
formListMapRef = _useFormListContext.formListMapRef;
|
|
723
|
-
|
|
724
|
-
var children = props.children,
|
|
725
|
-
style = props.style,
|
|
726
|
-
label = props.label,
|
|
727
|
-
name = props.name,
|
|
728
|
-
help = props.help,
|
|
729
|
-
initialData = props.initialData,
|
|
730
|
-
className = props.className,
|
|
731
|
-
successBorder = props.successBorder,
|
|
732
|
-
_props$statusIcon = props.statusIcon,
|
|
733
|
-
statusIcon = _props$statusIcon === void 0 ? statusIconFromContext : _props$statusIcon,
|
|
734
|
-
_props$rules = props.rules,
|
|
735
|
-
innerRules = _props$rules === void 0 ? getInnerRules(name, rulesFromContext, formListName, formListRules) : _props$rules,
|
|
736
|
-
_props$labelWidth = props.labelWidth,
|
|
737
|
-
labelWidth = _props$labelWidth === void 0 ? labelWidthFromContext : _props$labelWidth,
|
|
738
|
-
_props$labelAlign = props.labelAlign,
|
|
739
|
-
labelAlign = _props$labelAlign === void 0 ? labelAlignFromContext : _props$labelAlign,
|
|
740
|
-
_props$requiredMark = props.requiredMark,
|
|
741
|
-
requiredMark = _props$requiredMark === void 0 ? requiredMarkFromContext : _props$requiredMark,
|
|
742
|
-
_props$showErrorMessa = props.showErrorMessage,
|
|
743
|
-
showErrorMessage = _props$showErrorMessa === void 0 ? showErrorMessageFromContext : _props$showErrorMessa;
|
|
744
|
-
|
|
745
|
-
var _useState = useState([]),
|
|
746
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
747
|
-
errorList = _useState2[0],
|
|
748
|
-
setErrorList = _useState2[1];
|
|
749
|
-
|
|
750
|
-
var _useState3 = useState([]),
|
|
751
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
752
|
-
successList = _useState4[0],
|
|
753
|
-
setSuccessList = _useState4[1];
|
|
754
|
-
|
|
755
|
-
var _useState5 = useState("not"
|
|
756
|
-
/* TO_BE_VALIDATED */
|
|
757
|
-
),
|
|
758
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
759
|
-
verifyStatus = _useState6[0],
|
|
760
|
-
setVerifyStatus = _useState6[1];
|
|
761
|
-
|
|
762
|
-
var _useState7 = useState(false),
|
|
763
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
764
|
-
resetValidating = _useState8[0],
|
|
765
|
-
setResetValidating = _useState8[1];
|
|
766
|
-
|
|
767
|
-
var _useState9 = useState(false),
|
|
768
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
769
|
-
needResetField = _useState10[0],
|
|
770
|
-
setNeedResetField = _useState10[1];
|
|
771
|
-
|
|
772
|
-
var _useState11 = useState(getDefaultInitialData(children, initialData)),
|
|
773
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
774
|
-
formValue = _useState12[0],
|
|
775
|
-
setFormValue = _useState12[1];
|
|
776
|
-
|
|
777
|
-
var currentFormItemRef = useRef();
|
|
778
|
-
var innerFormItemsRef = useRef([]);
|
|
779
|
-
var shouldValidate = useRef(null);
|
|
780
|
-
var isMounted = useRef(false);
|
|
781
|
-
|
|
782
|
-
var _useFormItemStyle = useFormItemStyle({
|
|
783
|
-
className: className,
|
|
784
|
-
help: help,
|
|
785
|
-
name: name,
|
|
786
|
-
successBorder: successBorder,
|
|
787
|
-
errorList: errorList,
|
|
788
|
-
successList: successList,
|
|
789
|
-
layout: layout,
|
|
790
|
-
verifyStatus: verifyStatus,
|
|
791
|
-
colon: colon,
|
|
792
|
-
label: label,
|
|
793
|
-
labelWidth: labelWidth,
|
|
794
|
-
labelAlign: labelAlign,
|
|
795
|
-
requiredMark: requiredMark,
|
|
796
|
-
showErrorMessage: showErrorMessage,
|
|
797
|
-
innerRules: innerRules
|
|
798
|
-
}),
|
|
799
|
-
formItemClass = _useFormItemStyle.formItemClass,
|
|
800
|
-
formItemLabelClass = _useFormItemStyle.formItemLabelClass,
|
|
801
|
-
contentClass = _useFormItemStyle.contentClass,
|
|
802
|
-
labelStyle = _useFormItemStyle.labelStyle,
|
|
803
|
-
contentStyle = _useFormItemStyle.contentStyle,
|
|
804
|
-
helpNode = _useFormItemStyle.helpNode,
|
|
805
|
-
extraNode = _useFormItemStyle.extraNode;
|
|
806
|
-
|
|
807
|
-
function getInnerRules(name2, formRules, formListName2, formListRules2) {
|
|
808
|
-
if (Array.isArray(name2)) {
|
|
809
|
-
var _formRules$formListNa;
|
|
810
|
-
|
|
811
|
-
var _name = _slicedToArray(name2, 2),
|
|
812
|
-
itemKey = _name[1];
|
|
813
|
-
|
|
814
|
-
return (formRules === null || formRules === void 0 ? void 0 : (_formRules$formListNa = formRules[formListName2]) === null || _formRules$formListNa === void 0 ? void 0 : _formRules$formListNa[itemKey]) || (formListRules2 === null || formListRules2 === void 0 ? void 0 : formListRules2[itemKey]) || [];
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
return (formRules === null || formRules === void 0 ? void 0 : formRules[name2]) || formListRules2 || [];
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
var renderSuffixIcon = function renderSuffixIcon() {
|
|
821
|
-
if (statusIcon === false) return null;
|
|
822
|
-
|
|
823
|
-
var resultIcon = function resultIcon(iconSlot) {
|
|
824
|
-
return /* @__PURE__ */React.createElement("span", {
|
|
825
|
-
className: "".concat(classPrefix, "-form__status")
|
|
826
|
-
}, iconSlot);
|
|
827
|
-
};
|
|
828
|
-
|
|
829
|
-
var getDefaultIcon = function getDefaultIcon() {
|
|
830
|
-
var iconMap = {
|
|
831
|
-
success: /* @__PURE__ */React.createElement(CheckCircleFilledIcon, {
|
|
832
|
-
size: "25px"
|
|
833
|
-
}),
|
|
834
|
-
error: /* @__PURE__ */React.createElement(CloseCircleFilledIcon, {
|
|
835
|
-
size: "25px"
|
|
836
|
-
}),
|
|
837
|
-
warning: /* @__PURE__ */React.createElement(ErrorCircleFilledIcon, {
|
|
838
|
-
size: "25px"
|
|
839
|
-
})
|
|
840
|
-
};
|
|
841
|
-
|
|
842
|
-
if (verifyStatus === "success"
|
|
843
|
-
/* SUCCESS */
|
|
844
|
-
) {
|
|
845
|
-
return resultIcon(iconMap[verifyStatus]);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
if (errorList && errorList[0]) {
|
|
849
|
-
var type = errorList[0].type || "error";
|
|
850
|
-
return resultIcon(iconMap[type]);
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
return null;
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
if ( /*#__PURE__*/React.isValidElement(statusIcon)) {
|
|
857
|
-
return resultIcon( /*#__PURE__*/React.cloneElement(statusIcon, _objectSpread({
|
|
858
|
-
style: {
|
|
859
|
-
color: "unset"
|
|
860
|
-
}
|
|
861
|
-
}, statusIcon.props)));
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
if (statusIcon === true) {
|
|
865
|
-
return getDefaultIcon();
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
return null;
|
|
869
|
-
};
|
|
870
|
-
|
|
871
|
-
function validate$1(trigger) {
|
|
872
|
-
if (innerFormItemsRef.current.length) {
|
|
873
|
-
return innerFormItemsRef.current.map(function (innerFormItem) {
|
|
874
|
-
return innerFormItem === null || innerFormItem === void 0 ? void 0 : innerFormItem.validate();
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
var rules = trigger === "all" ? innerRules : innerRules.filter(function (item) {
|
|
879
|
-
return (item.trigger || "change") === trigger;
|
|
880
|
-
});
|
|
881
|
-
setResetValidating(true);
|
|
882
|
-
return new Promise(function (resolve) {
|
|
883
|
-
validate(formValue, rules).then(function (r) {
|
|
884
|
-
var filterErrorList = r.filter(function (item) {
|
|
885
|
-
return item.result !== true;
|
|
886
|
-
}).map(function (item) {
|
|
887
|
-
Object.keys(item).forEach(function (key) {
|
|
888
|
-
if (!item.message && errorMessage[key]) {
|
|
889
|
-
var compiled = template_1(errorMessage[key]);
|
|
890
|
-
item.message = compiled({
|
|
891
|
-
name: label,
|
|
892
|
-
validate: item[key]
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
});
|
|
896
|
-
return item;
|
|
897
|
-
});
|
|
898
|
-
setErrorList(filterErrorList);
|
|
899
|
-
setSuccessList(r.filter(function (item) {
|
|
900
|
-
return item.result === true && item.message && item.type === "success";
|
|
901
|
-
}));
|
|
902
|
-
var nextVerifyStatus = filterErrorList.length && rules.length ? "fail"
|
|
903
|
-
/* FAIL */
|
|
904
|
-
: "success"
|
|
905
|
-
/* SUCCESS */
|
|
906
|
-
;
|
|
907
|
-
|
|
908
|
-
if (!rules.some(function (rule) {
|
|
909
|
-
return rule.required;
|
|
910
|
-
}) && isValueEmpty(formValue) || !rules.length) {
|
|
911
|
-
nextVerifyStatus = "not"
|
|
912
|
-
/* TO_BE_VALIDATED */
|
|
913
|
-
;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
setVerifyStatus(nextVerifyStatus);
|
|
917
|
-
needResetField && resetHandler();
|
|
918
|
-
setResetValidating(false);
|
|
919
|
-
resolve(_defineProperty({}, name, !filterErrorList.length ? true : r));
|
|
920
|
-
});
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
function handleItemBlur() {
|
|
925
|
-
var filterRules = innerRules.filter(function (item) {
|
|
926
|
-
return item.trigger === "blur";
|
|
927
|
-
});
|
|
928
|
-
filterRules.length && validate$1("blur");
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
function getResetValue(resetType) {
|
|
932
|
-
if (resetType === "initial") {
|
|
933
|
-
return getDefaultInitialData(children, initialData);
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
var emptyValue = "";
|
|
937
|
-
|
|
938
|
-
if (Array.isArray(formValue)) {
|
|
939
|
-
emptyValue = [];
|
|
940
|
-
} else if (isObject_1(formValue)) {
|
|
941
|
-
emptyValue = {};
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
return emptyValue;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
function resetField(type) {
|
|
948
|
-
if (typeof name === "undefined") return;
|
|
949
|
-
var resetType = type || resetTypeFromContext;
|
|
950
|
-
var resetValue = getResetValue(resetType);
|
|
951
|
-
|
|
952
|
-
if (resetValue !== formValue) {
|
|
953
|
-
shouldValidate.current = false;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
setFormValue(resetValue);
|
|
957
|
-
|
|
958
|
-
if (resetValidating) {
|
|
959
|
-
setNeedResetField(true);
|
|
960
|
-
} else {
|
|
961
|
-
resetHandler();
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
function resetHandler() {
|
|
966
|
-
setNeedResetField(false);
|
|
967
|
-
setErrorList([]);
|
|
968
|
-
setSuccessList([]);
|
|
969
|
-
setVerifyStatus("not"
|
|
970
|
-
/* TO_BE_VALIDATED */
|
|
971
|
-
);
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
function setField(field) {
|
|
975
|
-
var value = field.value,
|
|
976
|
-
status = field.status;
|
|
977
|
-
|
|
978
|
-
if (typeof status !== "undefined") {
|
|
979
|
-
shouldValidate.current = false;
|
|
980
|
-
setErrorList([]);
|
|
981
|
-
setSuccessList([]);
|
|
982
|
-
setNeedResetField(false);
|
|
983
|
-
setVerifyStatus(status);
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
if (typeof value !== "undefined") {
|
|
987
|
-
setFormValue(value);
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
function setValidateMessage(validateMessage) {
|
|
992
|
-
if (!validateMessage || !Array.isArray(validateMessage)) return;
|
|
993
|
-
|
|
994
|
-
if (validateMessage.length === 0) {
|
|
995
|
-
setErrorList([]);
|
|
996
|
-
setVerifyStatus("success"
|
|
997
|
-
/* SUCCESS */
|
|
998
|
-
);
|
|
999
|
-
return;
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
setErrorList(validateMessage);
|
|
1003
|
-
setVerifyStatus("fail"
|
|
1004
|
-
/* FAIL */
|
|
1005
|
-
);
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
useEffect(function () {
|
|
1009
|
-
if (!shouldValidate.current || !isMounted.current) {
|
|
1010
|
-
isMounted.current = true;
|
|
1011
|
-
shouldValidate.current = true;
|
|
1012
|
-
return;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
if (typeof name !== "undefined") {
|
|
1016
|
-
if (formListName) {
|
|
1017
|
-
var formListValue = [];
|
|
1018
|
-
|
|
1019
|
-
if (Array.isArray(name)) {
|
|
1020
|
-
var _name2 = _slicedToArray(name, 2),
|
|
1021
|
-
index = _name2[0],
|
|
1022
|
-
itemKey = _name2[1];
|
|
1023
|
-
|
|
1024
|
-
formListValue[index] = _defineProperty({}, itemKey, formValue);
|
|
1025
|
-
} else {
|
|
1026
|
-
formListValue[name] = formValue;
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
onFormItemValueChange === null || onFormItemValueChange === void 0 ? void 0 : onFormItemValueChange(_defineProperty({}, formListName, formListValue));
|
|
1030
|
-
} else if (Array.isArray(name)) {
|
|
1031
|
-
var fieldValue = name.reduceRight(function (prev, curr) {
|
|
1032
|
-
return _defineProperty({}, curr, prev);
|
|
1033
|
-
}, formValue);
|
|
1034
|
-
onFormItemValueChange === null || onFormItemValueChange === void 0 ? void 0 : onFormItemValueChange(_objectSpread({}, fieldValue));
|
|
1035
|
-
} else {
|
|
1036
|
-
onFormItemValueChange === null || onFormItemValueChange === void 0 ? void 0 : onFormItemValueChange(_defineProperty({}, name, formValue));
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
var filterRules = innerRules.filter(function (item) {
|
|
1041
|
-
return (item.trigger || "change") === "change";
|
|
1042
|
-
});
|
|
1043
|
-
filterRules.length && validate$1("change");
|
|
1044
|
-
}, [formValue]);
|
|
1045
|
-
useEffect(function () {
|
|
1046
|
-
if (typeof name === "undefined") return;
|
|
1047
|
-
|
|
1048
|
-
if (formListName) {
|
|
1049
|
-
formListMapRef.current.set(name, currentFormItemRef);
|
|
1050
|
-
return function () {
|
|
1051
|
-
formListMapRef.current["delete"](name);
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
if (!formMapRef) return;
|
|
1056
|
-
formMapRef.current.set(name, currentFormItemRef);
|
|
1057
|
-
return function () {
|
|
1058
|
-
formMapRef.current["delete"](name);
|
|
1059
|
-
};
|
|
1060
|
-
}, [name, formListName]);
|
|
1061
|
-
var instance = {
|
|
1062
|
-
name: name,
|
|
1063
|
-
value: formValue,
|
|
1064
|
-
setValue: setFormValue,
|
|
1065
|
-
setField: setField,
|
|
1066
|
-
validate: validate$1,
|
|
1067
|
-
resetField: resetField,
|
|
1068
|
-
setValidateMessage: setValidateMessage,
|
|
1069
|
-
resetValidate: resetHandler
|
|
1070
|
-
};
|
|
1071
|
-
useImperativeHandle(ref, function () {
|
|
1072
|
-
return instance;
|
|
1073
|
-
});
|
|
1074
|
-
useImperativeHandle(currentFormItemRef, function () {
|
|
1075
|
-
return instance;
|
|
1076
|
-
});
|
|
1077
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
1078
|
-
className: formItemClass,
|
|
1079
|
-
style: style
|
|
1080
|
-
}, label && /* @__PURE__ */React.createElement("div", {
|
|
1081
|
-
className: formItemLabelClass,
|
|
1082
|
-
style: labelStyle
|
|
1083
|
-
}, /* @__PURE__ */React.createElement("label", {
|
|
1084
|
-
htmlFor: props === null || props === void 0 ? void 0 : props["for"]
|
|
1085
|
-
}, label)), /* @__PURE__ */React.createElement("div", {
|
|
1086
|
-
className: contentClass(),
|
|
1087
|
-
style: contentStyle
|
|
1088
|
-
}, /* @__PURE__ */React.createElement("div", {
|
|
1089
|
-
className: "".concat(classPrefix, "-form__controls-content")
|
|
1090
|
-
}, React.Children.map(children, function (child, index) {
|
|
1091
|
-
if (!child) return null;
|
|
1092
|
-
|
|
1093
|
-
var onChangeFromProps = function onChangeFromProps() {
|
|
1094
|
-
return {};
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
var onBlurFromProps = function onBlurFromProps() {
|
|
1098
|
-
return {};
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
|
-
var ctrlKey = "value";
|
|
1102
|
-
|
|
1103
|
-
if ( /*#__PURE__*/React.isValidElement(child)) {
|
|
1104
|
-
var _objectSpread2;
|
|
1105
|
-
|
|
1106
|
-
if (child.type === FormItem) {
|
|
1107
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
1108
|
-
ref: function ref(el) {
|
|
1109
|
-
if (!el) return;
|
|
1110
|
-
innerFormItemsRef.current[index] = el;
|
|
1111
|
-
}
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
if (typeof child.props.onChange === "function") {
|
|
1116
|
-
onChangeFromProps = child.props.onChange;
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
if (typeof child.props.onBlur === "function") {
|
|
1120
|
-
onBlurFromProps = child.props.onBlur;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
if (_typeof(child.type) === "object") {
|
|
1124
|
-
ctrlKey = ctrlKeyMap.get(child.type) || "value";
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
return /*#__PURE__*/React.cloneElement(child, _objectSpread(_objectSpread({
|
|
1128
|
-
disabled: disabledFromContext
|
|
1129
|
-
}, child.props), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, ctrlKey, formValue), _defineProperty(_objectSpread2, "onChange", function onChange(value) {
|
|
1130
|
-
var _onChangeFromProps;
|
|
1131
|
-
|
|
1132
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1133
|
-
args[_key - 1] = arguments[_key];
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
(_onChangeFromProps = onChangeFromProps).call.apply(_onChangeFromProps, [null, value].concat(args));
|
|
1137
|
-
|
|
1138
|
-
setFormValue(value);
|
|
1139
|
-
}), _defineProperty(_objectSpread2, "onBlur", function onBlur(value) {
|
|
1140
|
-
var _onBlurFromProps;
|
|
1141
|
-
|
|
1142
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
1143
|
-
args[_key2 - 1] = arguments[_key2];
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
(_onBlurFromProps = onBlurFromProps).call.apply(_onBlurFromProps, [null, value].concat(args));
|
|
1147
|
-
|
|
1148
|
-
handleItemBlur();
|
|
1149
|
-
}), _objectSpread2)));
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
return child;
|
|
1153
|
-
}), renderSuffixIcon()), helpNode, extraNode));
|
|
1154
|
-
});
|
|
1155
|
-
FormItem.displayName = "FormItem";
|
|
1156
|
-
FormItem.defaultProps = formItemDefaultProps;
|
|
1157
|
-
|
|
1158
|
-
export { FormItem as F, VALIDATE_STATUS as V, useFormItemStyle as u };
|
|
1159
|
-
//# sourceMappingURL=dep-df0d5d91.js.map
|