@gobolt/genesis 0.0.10 → 0.1.0
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/README.md +8 -2
- package/dist/AntdIcon-nCNB0J1E.js +192 -0
- package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
- package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
- package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
- package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
- package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
- package/dist/{Compact-CGY560JF.js → Compact-Du9689ax.js} +41 -44
- package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-BmfhJgG0.js} +2 -2
- package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-Dcq69ZKM.js} +42 -40
- package/dist/{index-C8haFnXI.js → EllipsisOutlined-DGMph0Bj.js} +138 -135
- package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
- package/dist/Keyframes-C9_aCDvn.js +17 -0
- package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
- package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
- package/dist/{Overflow-PBZD-PFm.js → Overflow-DWf4XIal.js} +62 -61
- package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
- package/dist/Skeleton-BVN4pcVe.js +560 -0
- package/dist/TextArea-Bkf9hh7l.js +708 -0
- package/dist/Typography-CoZ5qD-t.js +705 -0
- package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
- package/dist/{button-CDQgO1OK.js → button-BwqpCxVM.js} +127 -116
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/Avatar.js +61 -0
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
- package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
- package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +4 -0
- package/dist/components/Avatar/styles.d.ts +18 -0
- package/dist/components/Avatar/styles.js +326 -0
- package/dist/components/Badge/Badge.d.ts +5 -3
- package/dist/components/Badge/Badge.js +67 -100
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
- package/dist/components/Badge/__tests__/Badge.test.js +9 -10
- package/dist/components/Badge/styles.d.ts +12 -3
- package/dist/components/Badge/styles.js +30 -27
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +239 -2260
- package/dist/components/Button/Button.d.ts +4 -3
- package/dist/components/Button/Button.js +10 -6
- package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.d.ts +2 -2
- package/dist/components/Button/styles.js +20 -17
- package/dist/components/Card/Card.d.ts +9 -0
- package/dist/components/Card/Card.js +16 -0
- package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
- package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
- package/dist/components/Card/__tests__/Card.test.js +16 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Card/styles.d.ts +16 -0
- package/dist/components/Card/styles.js +12 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.js +28 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +22 -457
- package/dist/components/Dashboard/Dashboard.d.ts +5 -0
- package/dist/components/Dashboard/Dashboard.js +5 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
- package/dist/components/Dashboard/index.d.ts +2 -0
- package/dist/components/Dashboard/index.js +4 -0
- package/dist/components/Dashboard/styles.d.ts +14 -0
- package/dist/components/Dashboard/styles.js +11 -0
- package/dist/components/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/DatePicker/DatePicker.js +5 -0
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
- package/dist/components/ErrorBoundary/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/index.js +4 -0
- package/dist/components/ErrorBoundary/styles.d.ts +14 -0
- package/dist/components/ErrorBoundary/styles.js +11 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
- package/dist/components/Form/Form.js +3 -3
- package/dist/components/Form/__stories__/FormStory.js +127 -50
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Glyph/Glyph.d.ts +4 -0
- package/dist/components/Glyph/Glyph.js +9 -0
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
- package/dist/components/Glyph/index.d.ts +2 -0
- package/dist/components/Glyph/index.js +4 -0
- package/dist/components/Glyph/styles.d.ts +14 -0
- package/dist/components/Glyph/styles.js +11 -0
- package/dist/components/Input/Input.d.ts +1 -2
- package/dist/components/Input/Input.js +14 -10
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +58 -466
- package/dist/components/Layout/Content/Content.d.ts +11 -0
- package/dist/components/Layout/Content/Content.js +32 -0
- package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
- package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
- package/dist/components/Layout/Content/index.d.ts +2 -0
- package/dist/components/Layout/Content/index.js +4 -0
- package/dist/components/Layout/Content/styles.d.ts +11 -0
- package/dist/components/Layout/Content/styles.js +16 -0
- package/dist/components/Layout/Layout.d.ts +8 -0
- package/dist/components/Layout/Layout.js +6 -0
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
- package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
- package/dist/components/Layout/MainLayout/index.d.ts +2 -0
- package/dist/components/Layout/MainLayout/index.js +4 -0
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
- package/dist/components/Layout/MainLayout/styles.js +69 -0
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
- package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
- package/dist/components/Layout/__tests__/Layout.test.js +14 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Layout/index.js +4 -0
- package/dist/components/Message/Message.d.ts +6 -4
- package/dist/components/Message/Message.js +70 -43
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Message/styles.d.ts +1 -0
- package/dist/components/Message/styles.js +15 -11
- package/dist/components/Notification/Notification.js +145 -120
- package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
- package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
- package/dist/components/Notification/NotificationBadge/index.js +4 -0
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
- package/dist/components/Notification/NotificationBadge/styles.js +34 -0
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Notification/styles.d.ts +1 -1
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/Popover.js +21 -0
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
- package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
- package/dist/components/Popover/__tests__/Popover.test.js +40 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +4 -0
- package/dist/components/Popover/styles.d.ts +15 -0
- package/dist/components/Popover/styles.js +6 -0
- package/dist/components/Progress/Progress.d.ts +18 -0
- package/dist/components/Progress/Progress.js +91 -0
- package/dist/components/Progress/Progress.util.d.ts +4 -0
- package/dist/components/Progress/Progress.util.js +62 -0
- package/dist/components/Progress/ProgressText.d.ts +11 -0
- package/dist/components/Progress/ProgressText.js +67 -0
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
- package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
- package/dist/components/Progress/__tests__/Progress.test.js +21 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/Progress/styles.d.ts +17 -0
- package/dist/components/Progress/styles.js +793 -0
- package/dist/components/Radio/Radio.js +22 -6
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Row/Row.d.ts +14 -0
- package/dist/components/Row/Row.js +38 -0
- package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
- package/dist/components/Row/RowActions/RowActions.js +59 -0
- package/dist/components/Row/RowActions/styles.d.ts +2 -0
- package/dist/components/Row/RowActions/styles.js +32 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
- package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
- package/dist/components/Row/RowLabelValue/styles.js +25 -0
- package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
- package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
- package/dist/components/Row/__tests__/Row.test.js +16 -0
- package/dist/components/Row/index.d.ts +2 -0
- package/dist/components/Row/index.js +4 -0
- package/dist/components/Row/styles.d.ts +15 -0
- package/dist/components/Row/styles.js +15 -0
- package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
- package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
- package/dist/components/SegmentedControls/index.d.ts +2 -0
- package/dist/components/SegmentedControls/index.js +4 -0
- package/dist/components/SegmentedControls/styles.d.ts +12 -0
- package/dist/components/SegmentedControls/styles.js +511 -0
- package/dist/components/Select/Select.d.ts +2 -4
- package/dist/components/Select/Select.js +12 -11
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +39 -3654
- package/dist/components/Shapes/Shapes.d.ts +6 -0
- package/dist/components/Shapes/Shapes.js +8 -0
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
- package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
- package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
- package/dist/components/Shapes/index.d.ts +2 -0
- package/dist/components/Shapes/index.js +4 -0
- package/dist/components/Shapes/variants/Circle.d.ts +5 -0
- package/dist/components/Shapes/variants/Circle.js +23 -0
- package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Rectangle.js +23 -0
- package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Triangle.js +23 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
- package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/components/Switch/__tests__/Switch.test.js +25 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Switch/styles.d.ts +9 -0
- package/dist/components/Switch/styles.js +456 -0
- package/dist/components/Table/Table.d.ts +15 -0
- package/dist/components/Table/Table.js +23 -0
- package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
- package/dist/components/Table/__mocks__/table-mocks.js +321 -0
- package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
- package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
- package/dist/components/Table/__tests__/Table.test.js +34 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +4 -0
- package/dist/components/Table/styles.d.ts +8 -0
- package/dist/components/Table/styles.js +6 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +23 -0
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/Tabs/styles.d.ts +12 -0
- package/dist/components/Tabs/styles.js +102 -0
- package/dist/components/Tile/Tile.d.ts +10 -0
- package/dist/components/Tile/Tile.js +21 -0
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
- package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
- package/dist/components/Tile/__tests__/Tile.test.js +21 -0
- package/dist/components/Tile/index.d.ts +2 -0
- package/dist/components/Tile/index.js +4 -0
- package/dist/components/Tile/styles.d.ts +11 -0
- package/dist/components/Tile/styles.js +12 -0
- package/dist/components/Toast/Toast.js +23 -6
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.d.ts +0 -1
- package/dist/components/Toast/styles.js +14 -23
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.js +50 -0
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/components/Tooltip/styles.d.ts +20 -0
- package/dist/components/Tooltip/styles.js +11 -0
- package/dist/components/Typography/Typography.d.ts +5 -1
- package/dist/components/Typography/Typography.js +2 -2
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +1 -0
- package/dist/components/Typography/styles.js +53 -17
- package/dist/components/index.d.ts +35 -1
- package/dist/components/index.js +58 -24
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -2
- package/dist/{context-BMW3aJEf.js → context-DIFtNa4d.js} +230 -233
- package/dist/dropdown-Dp_PTQ2u.js +2045 -0
- package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
- package/dist/genesis/GenesisThemeBreakdown.js +101 -43
- package/dist/genesis/labs/Lab.stories.d.ts +6 -0
- package/dist/genesis/styles.js +7 -2923
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/index-BPVue1Yd.js +445 -0
- package/dist/{index-bKlRxQp4.js → index-BQM5OniU.js} +12 -12
- package/dist/index-BRUI9igj.js +11 -0
- package/dist/index-B_1Ge8na.js +1846 -0
- package/dist/{index-oK7z6jnz.js → index-BbTV2Cw5.js} +8641 -8798
- package/dist/index-BeGv28kJ.js +5173 -0
- package/dist/{index-1CBpubM3.js → index-BpZSuIUV.js} +45 -42
- package/dist/index-BvOLXELm.js +102 -0
- package/dist/index-CLSrpQRW.js +416 -0
- package/dist/index-CbVOl2U6.js +288 -0
- package/dist/index-D0U6r5O7.js +780 -0
- package/dist/index-DEu2PVzQ.js +538 -0
- package/dist/index-DLdU7Tpd.js +183 -0
- package/dist/index-DNQ-jnBx.js +3321 -0
- package/dist/index-DOsPeIWJ.js +1000 -0
- package/dist/{index-C0SmxWLS.js → index-DRGX1Wem.js} +136 -143
- package/dist/index-DWjq9XYj.js +899 -0
- package/dist/index.js +65 -31
- package/dist/interface/address.d.ts +10 -0
- package/dist/interface/address.js +1 -0
- package/dist/interface/appointment.d.ts +57 -0
- package/dist/interface/appointment.js +5 -0
- package/dist/interface/appointmentV2.d.ts +65 -0
- package/dist/interface/appointmentV2.js +1 -0
- package/dist/interface/appointmentsState.d.ts +21 -0
- package/dist/interface/appointmentsState.js +1 -0
- package/dist/interface/common.d.ts +2 -0
- package/dist/interface/common.js +1 -0
- package/dist/interface/completionData.d.ts +18 -0
- package/dist/interface/completionData.js +1 -0
- package/dist/interface/deliveryPartner.d.ts +25 -0
- package/dist/interface/deliveryPartner.js +1 -0
- package/dist/interface/organization.d.ts +9 -0
- package/dist/interface/organization.js +1 -0
- package/dist/interface/pagination.d.ts +8 -0
- package/dist/interface/pagination.js +1 -0
- package/dist/interface/roles.d.ts +9 -0
- package/dist/interface/roles.js +1 -0
- package/dist/interface/route.d.ts +73 -0
- package/dist/interface/route.js +1 -0
- package/dist/interface/routeAnalysis.d.ts +108 -0
- package/dist/interface/routeAnalysis.js +1 -0
- package/dist/interface/routeAutomationJob.d.ts +95 -0
- package/dist/interface/routeAutomationJob.js +10 -0
- package/dist/interface/routeAutomationLog.d.ts +10 -0
- package/dist/interface/routeAutomationLog.js +1 -0
- package/dist/interface/routeEvent.d.ts +55 -0
- package/dist/interface/routeEvent.js +5 -0
- package/dist/interface/serviceArea.d.ts +18 -0
- package/dist/interface/serviceArea.js +1 -0
- package/dist/interface/util.d.ts +3 -0
- package/dist/interface/util.js +1 -0
- package/dist/interface/vehicle.d.ts +120 -0
- package/dist/interface/vehicle.js +1 -0
- package/dist/interface/workOrder.d.ts +22 -0
- package/dist/interface/workOrder.js +1 -0
- package/dist/isVisible-D3-B85BJ.js +22 -0
- package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
- package/dist/motion-CUN72xsH.js +33 -0
- package/dist/omit-B_u6A-HL.js +9 -0
- package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
- package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
- package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
- package/dist/providers/BreakpointThemeProvider.js +21 -0
- package/dist/providers/GenesisProvider.js +3 -3
- package/dist/providers/ToastProvider.js +22 -6
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/responsiveObserver-dCkpy7Cb.js +73 -0
- package/dist/roundedArrow-DI_Q-xdU.js +65 -0
- package/dist/setup-CUbCc8fQ.js +24706 -0
- package/dist/setup.types-dBtAXXGp.js +8824 -0
- package/dist/shadow-BoMGMNn3.js +13 -0
- package/dist/styleChecker-Cotu61d0.js +21 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +29 -13
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +398 -331
- package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
- package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +1652 -0
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
- package/dist/styles-CWdUpZom.js +289 -0
- package/dist/{styles-CT_fyXBd.js → styles-D1vKDy9V.js} +587 -643
- package/dist/styles-qerRs7Rn.js +9196 -0
- package/dist/test/setup.d.ts +2 -3
- package/dist/test/setup.js +87 -4
- package/dist/test/setup.types.d.ts +7 -0
- package/dist/test/setup.types.js +1 -0
- package/dist/toArray-U3Az44CO.js +11 -0
- package/dist/useBreakpoint-TkMv121M.js +22 -0
- package/dist/useCSSVarCls-Dau77fzS.js +11 -0
- package/dist/useIcons-Ck4JP1m9.js +321 -0
- package/dist/useId-D2tzlufo.js +26 -0
- package/dist/useLocale-CTfNpakL.js +16 -0
- package/dist/useMergedState-D6toxSxh.js +23 -0
- package/dist/useSize-DSq4r6zy.js +9 -0
- package/dist/{useVariants-DvhXfgJY.js → useVariants-DrLzUVLU.js} +3 -3
- package/dist/useZIndex-DhyHuZTN.js +44 -0
- package/dist/utils/icon-util.d.ts +2 -0
- package/dist/utils/icon-util.js +89 -0
- package/package.json +27 -15
- package/dist/AntdIcon-BoLh1dP8.js +0 -202
- package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
- package/dist/TextArea-DKwCct3i.js +0 -1690
- package/dist/Typography-aGoDUl4R.js +0 -710
- package/dist/index-BZAhCB_K.js +0 -97
- package/dist/index-CfDY25LP.js +0 -873
- package/dist/index-DPW8XdWj.js +0 -952
- package/dist/isVisible-A-IfeFoT.js +0 -367
- package/dist/providers/ThemeProvider.d.ts +0 -9
- package/dist/providers/ThemeProvider.js +0 -21
- package/dist/setup-BvfREoHl.js +0 -33891
- package/dist/useLocale-DT-z_vQ6.js +0 -16
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { d as ft } from "./styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as Se, u as
|
|
2
|
+
import { j as we, m as Xe, f as Q, C as ce, k as ke, o as Y, s as mt, Q as pt, T as gt, g as be, D as ht, U as bt, W as yt, S as $t, F as _e, A as xt, t as Ct, N as vt, X as Re, Y as wt, h as Ke, l as St, u as Et, z as Ot, H as It } from "./index-BbTV2Cw5.js";
|
|
3
|
+
import { a as Se, u as Ft, V as Nt, b as Ye, c as ne, R as jt, F as pe, d as Ue, C as Mt, L as _t, W as Rt, e as Vt, f as Pt } from "./context-DIFtNa4d.js";
|
|
4
4
|
import * as l from "react";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const Ve = (e) => typeof e == "object" && e != null && e.nodeType === 1, Le = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", fe = (e, t) => {
|
|
5
|
+
import { createContext as Dt } from "react";
|
|
6
|
+
import { e as J, d as Lt } from "./presets-Djh_L_6R.js";
|
|
7
|
+
import { i as Ve } from "./motion-CUN72xsH.js";
|
|
8
|
+
import { u as Ee } from "./useCSSVarCls-Dau77fzS.js";
|
|
9
|
+
import { g as Tt } from "./collapse-Dtpt-6W_.js";
|
|
10
|
+
import { z as Qe, T as Wt } from "./index-DWjq9XYj.js";
|
|
11
|
+
import "./index-DLdU7Tpd.js";
|
|
12
|
+
import { u as Ht } from "./useSize-DSq4r6zy.js";
|
|
13
|
+
import { c as At } from "./reactNode-sKPeiqPL.js";
|
|
14
|
+
import { t as zt } from "./toArray-U3Az44CO.js";
|
|
15
|
+
import { i as qt } from "./isVisible-D3-B85BJ.js";
|
|
16
|
+
import { o as Bt } from "./omit-B_u6A-HL.js";
|
|
17
|
+
import { u as Gt, r as ge } from "./responsiveObserver-dCkpy7Cb.js";
|
|
18
|
+
import { I as Xt } from "./AntdIcon-nCNB0J1E.js";
|
|
19
|
+
import { u as kt } from "./useLocale-CTfNpakL.js";
|
|
20
|
+
import { R as Kt } from "./CheckCircleFilled-BKgizvyl.js";
|
|
21
|
+
import { R as Yt } from "./CloseCircleFilled-B9e7yFwo.js";
|
|
22
|
+
import { R as Ut } from "./ExclamationCircleFilled-BHELVsTg.js";
|
|
23
|
+
import { R as Qt } from "./LoadingOutlined-C1qu6ymP.js";
|
|
24
|
+
const Pe = (e) => typeof e == "object" && e != null && e.nodeType === 1, De = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", de = (e, t) => {
|
|
26
25
|
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
27
26
|
const r = getComputedStyle(e, null);
|
|
28
|
-
return
|
|
27
|
+
return De(r.overflowY, t) || De(r.overflowX, t) || ((n) => {
|
|
29
28
|
const o = ((s) => {
|
|
30
29
|
if (!s.ownerDocument || !s.ownerDocument.defaultView) return null;
|
|
31
30
|
try {
|
|
@@ -38,46 +37,46 @@ const Ve = (e) => typeof e == "object" && e != null && e.nodeType === 1, Le = (e
|
|
|
38
37
|
})(e);
|
|
39
38
|
}
|
|
40
39
|
return !1;
|
|
41
|
-
},
|
|
40
|
+
}, fe = (e, t, r, n, o, s, a, c) => s < e && a > t || s > e && a < t ? 0 : s <= e && c <= r || a >= t && c >= r ? s - e - n : a > t && c < r || s < e && c > r ? a - t + o : 0, Jt = (e) => {
|
|
42
41
|
const t = e.parentElement;
|
|
43
42
|
return t ?? (e.getRootNode().host || null);
|
|
44
|
-
},
|
|
43
|
+
}, Le = (e, t) => {
|
|
45
44
|
var r, n, o, s;
|
|
46
45
|
if (typeof document > "u") return [];
|
|
47
|
-
const { scrollMode:
|
|
48
|
-
if (!
|
|
46
|
+
const { scrollMode: a, block: c, inline: u, boundary: m, skipOverflowHiddenElements: E } = t, y = typeof m == "function" ? m : (A) => A !== m;
|
|
47
|
+
if (!Pe(e)) throw new TypeError("Invalid target");
|
|
49
48
|
const O = document.scrollingElement || document.documentElement, R = [];
|
|
50
|
-
let
|
|
51
|
-
for (;
|
|
52
|
-
if (
|
|
53
|
-
R.push(
|
|
49
|
+
let w = e;
|
|
50
|
+
for (; Pe(w) && y(w); ) {
|
|
51
|
+
if (w = Jt(w), w === O) {
|
|
52
|
+
R.push(w);
|
|
54
53
|
break;
|
|
55
54
|
}
|
|
56
|
-
|
|
55
|
+
w != null && w === document.body && de(w) && !de(document.documentElement) || w != null && de(w, E) && R.push(w);
|
|
57
56
|
}
|
|
58
|
-
const
|
|
57
|
+
const S = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth, I = (s = (o = window.visualViewport) == null ? void 0 : o.height) != null ? s : innerHeight, { scrollX: f, scrollY: j } = window, { height: i, width: h, top: p, right: b, bottom: V, left: C } = e.getBoundingClientRect(), { top: $, right: g, bottom: M, left: H } = ((A) => {
|
|
59
58
|
const d = window.getComputedStyle(A);
|
|
60
59
|
return { top: parseFloat(d.scrollMarginTop) || 0, right: parseFloat(d.scrollMarginRight) || 0, bottom: parseFloat(d.scrollMarginBottom) || 0, left: parseFloat(d.scrollMarginLeft) || 0 };
|
|
61
60
|
})(e);
|
|
62
|
-
let
|
|
63
|
-
const
|
|
61
|
+
let N = c === "start" || c === "nearest" ? p - $ : c === "end" ? V + M : p + i / 2 - $ + M, x = u === "center" ? C + h / 2 - H + g : u === "end" ? b + g : C - H;
|
|
62
|
+
const P = [];
|
|
64
63
|
for (let A = 0; A < R.length; A++) {
|
|
65
|
-
const d = R[A], { height: z, width:
|
|
66
|
-
if (
|
|
67
|
-
const
|
|
68
|
-
let _ = 0,
|
|
69
|
-
const B = "offsetWidth" in d ? d.offsetWidth - d.clientWidth - Z -
|
|
70
|
-
if (O === d) _ =
|
|
64
|
+
const d = R[A], { height: z, width: v, top: q, right: T, bottom: G, left: X } = d.getBoundingClientRect();
|
|
65
|
+
if (a === "if-needed" && p >= 0 && C >= 0 && V <= I && b <= S && (d === O && !de(d) || p >= q && V <= G && C >= X && b <= T)) return P;
|
|
66
|
+
const K = getComputedStyle(d), Z = parseInt(K.borderLeftWidth, 10), ee = parseInt(K.borderTopWidth, 10), L = parseInt(K.borderRightWidth, 10), F = parseInt(K.borderBottomWidth, 10);
|
|
67
|
+
let _ = 0, D = 0;
|
|
68
|
+
const B = "offsetWidth" in d ? d.offsetWidth - d.clientWidth - Z - L : 0, k = "offsetHeight" in d ? d.offsetHeight - d.clientHeight - ee - F : 0, te = "offsetWidth" in d ? d.offsetWidth === 0 ? 0 : v / d.offsetWidth : 0, oe = "offsetHeight" in d ? d.offsetHeight === 0 ? 0 : z / d.offsetHeight : 0;
|
|
69
|
+
if (O === d) _ = c === "start" ? N : c === "end" ? N - I : c === "nearest" ? fe(j, j + I, I, ee, F, j + N, j + N + i, i) : N - I / 2, D = u === "start" ? x : u === "center" ? x - S / 2 : u === "end" ? x - S : fe(f, f + S, S, Z, L, f + x, f + x + h, h), _ = Math.max(0, _ + j), D = Math.max(0, D + f);
|
|
71
70
|
else {
|
|
72
|
-
_ =
|
|
73
|
-
const { scrollLeft:
|
|
74
|
-
_ = oe === 0 ? 0 : Math.max(0, Math.min(W + _ / oe, d.scrollHeight - z / oe + k)),
|
|
71
|
+
_ = c === "start" ? N - q - ee : c === "end" ? N - G + F + k : c === "nearest" ? fe(q, G, z, ee, F + k, N, N + i, i) : N - (q + z / 2) + k / 2, D = u === "start" ? x - X - Z : u === "center" ? x - (X + v / 2) + B / 2 : u === "end" ? x - T + L + B : fe(X, T, v, Z, L + B, x, x + h, h);
|
|
72
|
+
const { scrollLeft: le, scrollTop: W } = d;
|
|
73
|
+
_ = oe === 0 ? 0 : Math.max(0, Math.min(W + _ / oe, d.scrollHeight - z / oe + k)), D = te === 0 ? 0 : Math.max(0, Math.min(le + D / te, d.scrollWidth - v / te + B)), N += W - _, x += le - D;
|
|
75
74
|
}
|
|
76
|
-
|
|
75
|
+
P.push({ el: d, top: _, left: D });
|
|
77
76
|
}
|
|
78
|
-
return
|
|
79
|
-
},
|
|
80
|
-
function
|
|
77
|
+
return P;
|
|
78
|
+
}, Zt = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
|
|
79
|
+
function en(e, t) {
|
|
81
80
|
if (!e.isConnected || !((o) => {
|
|
82
81
|
let s = o;
|
|
83
82
|
for (; s && s.parentNode; ) {
|
|
@@ -90,14 +89,14 @@ function rn(e, t) {
|
|
|
90
89
|
const s = window.getComputedStyle(o);
|
|
91
90
|
return { top: parseFloat(s.scrollMarginTop) || 0, right: parseFloat(s.scrollMarginRight) || 0, bottom: parseFloat(s.scrollMarginBottom) || 0, left: parseFloat(s.scrollMarginLeft) || 0 };
|
|
92
91
|
})(e);
|
|
93
|
-
if (((o) => typeof o == "object" && typeof o.behavior == "function")(t)) return t.behavior(
|
|
92
|
+
if (((o) => typeof o == "object" && typeof o.behavior == "function")(t)) return t.behavior(Le(e, t));
|
|
94
93
|
const n = typeof t == "boolean" || t == null ? void 0 : t.behavior;
|
|
95
|
-
for (const { el: o, top: s, left:
|
|
96
|
-
const
|
|
97
|
-
o.scroll({ top:
|
|
94
|
+
for (const { el: o, top: s, left: a } of Le(e, Zt(t))) {
|
|
95
|
+
const c = s - r.top + r.bottom, u = a - r.left + r.right;
|
|
96
|
+
o.scroll({ top: c, left: u, behavior: n });
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
|
-
const
|
|
99
|
+
const tn = (e) => {
|
|
101
100
|
const {
|
|
102
101
|
componentCls: t
|
|
103
102
|
} = e;
|
|
@@ -147,7 +146,7 @@ const on = (e) => {
|
|
|
147
146
|
}
|
|
148
147
|
}
|
|
149
148
|
};
|
|
150
|
-
},
|
|
149
|
+
}, nn = (e) => {
|
|
151
150
|
const {
|
|
152
151
|
componentCls: t
|
|
153
152
|
} = e;
|
|
@@ -160,28 +159,28 @@ const on = (e) => {
|
|
|
160
159
|
minHeight: 1
|
|
161
160
|
}
|
|
162
161
|
};
|
|
163
|
-
},
|
|
162
|
+
}, rn = (e, t) => {
|
|
164
163
|
const {
|
|
165
164
|
prefixCls: r,
|
|
166
165
|
componentCls: n,
|
|
167
166
|
gridColumns: o
|
|
168
167
|
} = e, s = {};
|
|
169
|
-
for (let
|
|
170
|
-
|
|
168
|
+
for (let a = o; a >= 0; a--)
|
|
169
|
+
a === 0 ? (s[`${n}${t}-${a}`] = {
|
|
171
170
|
display: "none"
|
|
172
|
-
}, s[`${n}-push-${
|
|
171
|
+
}, s[`${n}-push-${a}`] = {
|
|
173
172
|
insetInlineStart: "auto"
|
|
174
|
-
}, s[`${n}-pull-${
|
|
173
|
+
}, s[`${n}-pull-${a}`] = {
|
|
175
174
|
insetInlineEnd: "auto"
|
|
176
|
-
}, s[`${n}${t}-push-${
|
|
175
|
+
}, s[`${n}${t}-push-${a}`] = {
|
|
177
176
|
insetInlineStart: "auto"
|
|
178
|
-
}, s[`${n}${t}-pull-${
|
|
177
|
+
}, s[`${n}${t}-pull-${a}`] = {
|
|
179
178
|
insetInlineEnd: "auto"
|
|
180
|
-
}, s[`${n}${t}-offset-${
|
|
179
|
+
}, s[`${n}${t}-offset-${a}`] = {
|
|
181
180
|
marginInlineStart: 0
|
|
182
|
-
}, s[`${n}${t}-order-${
|
|
181
|
+
}, s[`${n}${t}-order-${a}`] = {
|
|
183
182
|
order: 0
|
|
184
|
-
}) : (s[`${n}${t}-${
|
|
183
|
+
}) : (s[`${n}${t}-${a}`] = [
|
|
185
184
|
// https://github.com/ant-design/ant-design/issues/44456
|
|
186
185
|
// Form set `display: flex` on Col which will override `display: block`.
|
|
187
186
|
// Let's get it from css variable to support override.
|
|
@@ -192,103 +191,38 @@ const on = (e) => {
|
|
|
192
191
|
},
|
|
193
192
|
{
|
|
194
193
|
display: "var(--ant-display)",
|
|
195
|
-
flex: `0 0 ${
|
|
196
|
-
maxWidth: `${
|
|
194
|
+
flex: `0 0 ${a / o * 100}%`,
|
|
195
|
+
maxWidth: `${a / o * 100}%`
|
|
197
196
|
}
|
|
198
|
-
], s[`${n}${t}-push-${
|
|
199
|
-
insetInlineStart: `${
|
|
200
|
-
}, s[`${n}${t}-pull-${
|
|
201
|
-
insetInlineEnd: `${
|
|
202
|
-
}, s[`${n}${t}-offset-${
|
|
203
|
-
marginInlineStart: `${
|
|
204
|
-
}, s[`${n}${t}-order-${
|
|
205
|
-
order:
|
|
197
|
+
], s[`${n}${t}-push-${a}`] = {
|
|
198
|
+
insetInlineStart: `${a / o * 100}%`
|
|
199
|
+
}, s[`${n}${t}-pull-${a}`] = {
|
|
200
|
+
insetInlineEnd: `${a / o * 100}%`
|
|
201
|
+
}, s[`${n}${t}-offset-${a}`] = {
|
|
202
|
+
marginInlineStart: `${a / o * 100}%`
|
|
203
|
+
}, s[`${n}${t}-order-${a}`] = {
|
|
204
|
+
order: a
|
|
206
205
|
});
|
|
207
206
|
return s[`${n}${t}-flex`] = {
|
|
208
207
|
flex: `var(--${r}${t}-flex)`
|
|
209
208
|
}, s;
|
|
210
|
-
}, ve = (e, t) =>
|
|
209
|
+
}, ve = (e, t) => rn(e, t), on = (e, t, r) => ({
|
|
211
210
|
[`@media (min-width: ${Q(t)})`]: Object.assign({}, ve(e, r))
|
|
212
|
-
}),
|
|
211
|
+
}), ln = () => ({}), sn = () => ({}), an = we("Grid", tn, ln), cn = (e) => ({
|
|
213
212
|
xs: e.screenXSMin,
|
|
214
213
|
sm: e.screenSMMin,
|
|
215
214
|
md: e.screenMDMin,
|
|
216
215
|
lg: e.screenLGMin,
|
|
217
216
|
xl: e.screenXLMin,
|
|
218
217
|
xxl: e.screenXXLMin
|
|
219
|
-
}),
|
|
218
|
+
}), un = we("Grid", (e) => {
|
|
220
219
|
const t = Xe(e, {
|
|
221
220
|
gridColumns: 24
|
|
222
221
|
// Row is divided into 24 parts in Grid
|
|
223
|
-
}), r =
|
|
224
|
-
return delete r.xs, [
|
|
225
|
-
},
|
|
226
|
-
|
|
227
|
-
sm: `(min-width: ${e.screenSM}px)`,
|
|
228
|
-
md: `(min-width: ${e.screenMD}px)`,
|
|
229
|
-
lg: `(min-width: ${e.screenLG}px)`,
|
|
230
|
-
xl: `(min-width: ${e.screenXL}px)`,
|
|
231
|
-
xxl: `(min-width: ${e.screenXXL}px)`
|
|
232
|
-
}), gn = (e) => {
|
|
233
|
-
const t = e, r = [].concat(ce).reverse();
|
|
234
|
-
return r.forEach((n, o) => {
|
|
235
|
-
const s = n.toUpperCase(), i = `screen${s}Min`, a = `screen${s}`;
|
|
236
|
-
if (!(t[i] <= t[a]))
|
|
237
|
-
throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);
|
|
238
|
-
if (o < r.length - 1) {
|
|
239
|
-
const c = `screen${s}Max`;
|
|
240
|
-
if (!(t[a] <= t[c]))
|
|
241
|
-
throw new Error(`${a}<=${c} fails : !(${t[a]}<=${t[c]})`);
|
|
242
|
-
const y = `screen${r[o + 1].toUpperCase()}Min`;
|
|
243
|
-
if (!(t[c] <= t[y]))
|
|
244
|
-
throw new Error(`${c}<=${y} fails : !(${t[c]}<=${t[y]})`);
|
|
245
|
-
}
|
|
246
|
-
}), e;
|
|
247
|
-
};
|
|
248
|
-
function hn() {
|
|
249
|
-
const [, e] = mt(), t = pn(gn(e));
|
|
250
|
-
return Dt.useMemo(() => {
|
|
251
|
-
const r = /* @__PURE__ */ new Map();
|
|
252
|
-
let n = -1, o = {};
|
|
253
|
-
return {
|
|
254
|
-
matchHandlers: {},
|
|
255
|
-
dispatch(s) {
|
|
256
|
-
return o = s, r.forEach((i) => i(o)), r.size >= 1;
|
|
257
|
-
},
|
|
258
|
-
subscribe(s) {
|
|
259
|
-
return r.size || this.register(), n += 1, r.set(n, s), s(o), n;
|
|
260
|
-
},
|
|
261
|
-
unsubscribe(s) {
|
|
262
|
-
r.delete(s), r.size || this.unregister();
|
|
263
|
-
},
|
|
264
|
-
unregister() {
|
|
265
|
-
Object.keys(t).forEach((s) => {
|
|
266
|
-
const i = t[s], a = this.matchHandlers[i];
|
|
267
|
-
a == null || a.mql.removeListener(a == null ? void 0 : a.listener);
|
|
268
|
-
}), r.clear();
|
|
269
|
-
},
|
|
270
|
-
register() {
|
|
271
|
-
Object.keys(t).forEach((s) => {
|
|
272
|
-
const i = t[s], a = (f) => {
|
|
273
|
-
let {
|
|
274
|
-
matches: y
|
|
275
|
-
} = f;
|
|
276
|
-
this.dispatch(Object.assign(Object.assign({}, o), {
|
|
277
|
-
[s]: y
|
|
278
|
-
}));
|
|
279
|
-
}, c = window.matchMedia(i);
|
|
280
|
-
c.addListener(a), this.matchHandlers[i] = {
|
|
281
|
-
mql: c,
|
|
282
|
-
listener: a
|
|
283
|
-
}, a(c);
|
|
284
|
-
});
|
|
285
|
-
},
|
|
286
|
-
responsiveMap: t
|
|
287
|
-
};
|
|
288
|
-
}, [e]);
|
|
289
|
-
}
|
|
290
|
-
const Ze = /* @__PURE__ */ Tt({});
|
|
291
|
-
var bn = function(e, t) {
|
|
222
|
+
}), r = cn(t);
|
|
223
|
+
return delete r.xs, [nn(t), ve(t, ""), ve(t, "-xs"), Object.keys(r).map((n) => on(t, r[n], `-${n}`)).reduce((n, o) => Object.assign(Object.assign({}, n), o), {})];
|
|
224
|
+
}, sn), Je = /* @__PURE__ */ Dt({});
|
|
225
|
+
var dn = function(e, t) {
|
|
292
226
|
var r = {};
|
|
293
227
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
294
228
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
@@ -298,57 +232,57 @@ var bn = function(e, t) {
|
|
|
298
232
|
function Te(e) {
|
|
299
233
|
return typeof e == "number" ? `${e} ${e} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(e) ? `0 0 ${e}` : e;
|
|
300
234
|
}
|
|
301
|
-
const
|
|
235
|
+
const fn = ["xs", "sm", "md", "lg", "xl", "xxl"], Oe = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
302
236
|
const {
|
|
303
237
|
getPrefixCls: r,
|
|
304
238
|
direction: n
|
|
305
|
-
} = l.useContext(
|
|
239
|
+
} = l.useContext(ce), {
|
|
306
240
|
gutter: o,
|
|
307
241
|
wrap: s
|
|
308
|
-
} = l.useContext(
|
|
309
|
-
prefixCls:
|
|
310
|
-
span:
|
|
311
|
-
order:
|
|
312
|
-
offset:
|
|
313
|
-
push:
|
|
314
|
-
pull:
|
|
242
|
+
} = l.useContext(Je), {
|
|
243
|
+
prefixCls: a,
|
|
244
|
+
span: c,
|
|
245
|
+
order: u,
|
|
246
|
+
offset: m,
|
|
247
|
+
push: E,
|
|
248
|
+
pull: y,
|
|
315
249
|
className: O,
|
|
316
250
|
children: R,
|
|
317
|
-
flex:
|
|
318
|
-
style:
|
|
319
|
-
} = e, I =
|
|
251
|
+
flex: w,
|
|
252
|
+
style: S
|
|
253
|
+
} = e, I = dn(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), f = r("col", a), [j, i, h] = un(f), p = {};
|
|
320
254
|
let b = {};
|
|
321
|
-
|
|
255
|
+
fn.forEach(($) => {
|
|
322
256
|
let g = {};
|
|
323
|
-
const
|
|
324
|
-
typeof
|
|
325
|
-
[`${
|
|
326
|
-
[`${
|
|
327
|
-
[`${
|
|
328
|
-
[`${
|
|
329
|
-
[`${
|
|
330
|
-
[`${
|
|
331
|
-
}), g.flex && (b[`${
|
|
257
|
+
const M = e[$];
|
|
258
|
+
typeof M == "number" ? g.span = M : typeof M == "object" && (g = M || {}), delete I[$], b = Object.assign(Object.assign({}, b), {
|
|
259
|
+
[`${f}-${$}-${g.span}`]: g.span !== void 0,
|
|
260
|
+
[`${f}-${$}-order-${g.order}`]: g.order || g.order === 0,
|
|
261
|
+
[`${f}-${$}-offset-${g.offset}`]: g.offset || g.offset === 0,
|
|
262
|
+
[`${f}-${$}-push-${g.push}`]: g.push || g.push === 0,
|
|
263
|
+
[`${f}-${$}-pull-${g.pull}`]: g.pull || g.pull === 0,
|
|
264
|
+
[`${f}-rtl`]: n === "rtl"
|
|
265
|
+
}), g.flex && (b[`${f}-${$}-flex`] = !0, p[`--${f}-${$}-flex`] = Te(g.flex));
|
|
332
266
|
});
|
|
333
|
-
const
|
|
334
|
-
[`${
|
|
335
|
-
[`${
|
|
336
|
-
[`${
|
|
337
|
-
[`${
|
|
338
|
-
[`${
|
|
339
|
-
}, O, b,
|
|
267
|
+
const V = J(f, {
|
|
268
|
+
[`${f}-${c}`]: c !== void 0,
|
|
269
|
+
[`${f}-order-${u}`]: u,
|
|
270
|
+
[`${f}-offset-${m}`]: m,
|
|
271
|
+
[`${f}-push-${E}`]: E,
|
|
272
|
+
[`${f}-pull-${y}`]: y
|
|
273
|
+
}, O, b, i, h), C = {};
|
|
340
274
|
if (o && o[0] > 0) {
|
|
341
|
-
const
|
|
342
|
-
|
|
275
|
+
const $ = o[0] / 2;
|
|
276
|
+
C.paddingLeft = $, C.paddingRight = $;
|
|
343
277
|
}
|
|
344
|
-
return
|
|
345
|
-
style: Object.assign(Object.assign(Object.assign({},
|
|
346
|
-
className:
|
|
278
|
+
return w && (C.flex = Te(w), s === !1 && !C.minWidth && (C.minWidth = 0)), j(/* @__PURE__ */ l.createElement("div", Object.assign({}, I, {
|
|
279
|
+
style: Object.assign(Object.assign(Object.assign({}, C), S), p),
|
|
280
|
+
className: V,
|
|
347
281
|
ref: t
|
|
348
282
|
}), R));
|
|
349
283
|
});
|
|
350
284
|
process.env.NODE_ENV !== "production" && (Oe.displayName = "Col");
|
|
351
|
-
var
|
|
285
|
+
var mn = function(e, t) {
|
|
352
286
|
var r = {};
|
|
353
287
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
354
288
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
@@ -358,13 +292,13 @@ var $n = function(e, t) {
|
|
|
358
292
|
function We(e, t) {
|
|
359
293
|
const [r, n] = l.useState(typeof e == "string" ? e : ""), o = () => {
|
|
360
294
|
if (typeof e == "string" && n(e), typeof e == "object")
|
|
361
|
-
for (let s = 0; s <
|
|
362
|
-
const
|
|
363
|
-
if (!t[
|
|
295
|
+
for (let s = 0; s < ge.length; s++) {
|
|
296
|
+
const a = ge[s];
|
|
297
|
+
if (!t[a])
|
|
364
298
|
continue;
|
|
365
|
-
const
|
|
366
|
-
if (
|
|
367
|
-
n(
|
|
299
|
+
const c = e[a];
|
|
300
|
+
if (c !== void 0) {
|
|
301
|
+
n(c);
|
|
368
302
|
return;
|
|
369
303
|
}
|
|
370
304
|
}
|
|
@@ -373,78 +307,78 @@ function We(e, t) {
|
|
|
373
307
|
o();
|
|
374
308
|
}, [JSON.stringify(e), t]), r;
|
|
375
309
|
}
|
|
376
|
-
const
|
|
310
|
+
const Ze = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
377
311
|
const {
|
|
378
312
|
prefixCls: r,
|
|
379
313
|
justify: n,
|
|
380
314
|
align: o,
|
|
381
315
|
className: s,
|
|
382
|
-
style:
|
|
383
|
-
children:
|
|
384
|
-
gutter:
|
|
385
|
-
wrap:
|
|
386
|
-
} = e,
|
|
387
|
-
getPrefixCls:
|
|
316
|
+
style: a,
|
|
317
|
+
children: c,
|
|
318
|
+
gutter: u = 0,
|
|
319
|
+
wrap: m
|
|
320
|
+
} = e, E = mn(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), {
|
|
321
|
+
getPrefixCls: y,
|
|
388
322
|
direction: O
|
|
389
|
-
} = l.useContext(
|
|
323
|
+
} = l.useContext(ce), [R, w] = l.useState({
|
|
390
324
|
xs: !0,
|
|
391
325
|
sm: !0,
|
|
392
326
|
md: !0,
|
|
393
327
|
lg: !0,
|
|
394
328
|
xl: !0,
|
|
395
329
|
xxl: !0
|
|
396
|
-
}), [
|
|
330
|
+
}), [S, I] = l.useState({
|
|
397
331
|
xs: !1,
|
|
398
332
|
sm: !1,
|
|
399
333
|
md: !1,
|
|
400
334
|
lg: !1,
|
|
401
335
|
xl: !1,
|
|
402
336
|
xxl: !1
|
|
403
|
-
}),
|
|
337
|
+
}), f = We(o, S), j = We(n, S), i = l.useRef(u), h = Gt();
|
|
404
338
|
l.useEffect(() => {
|
|
405
339
|
const d = h.subscribe((z) => {
|
|
406
340
|
I(z);
|
|
407
|
-
const
|
|
408
|
-
(!Array.isArray(
|
|
341
|
+
const v = i.current || 0;
|
|
342
|
+
(!Array.isArray(v) && typeof v == "object" || Array.isArray(v) && (typeof v[0] == "object" || typeof v[1] == "object")) && w(z);
|
|
409
343
|
});
|
|
410
344
|
return () => h.unsubscribe(d);
|
|
411
345
|
}, []);
|
|
412
346
|
const p = () => {
|
|
413
347
|
const d = [void 0, void 0];
|
|
414
|
-
return (Array.isArray(
|
|
415
|
-
if (typeof
|
|
416
|
-
for (let T = 0; T <
|
|
417
|
-
const G =
|
|
418
|
-
if (R[G] &&
|
|
419
|
-
d[q] =
|
|
348
|
+
return (Array.isArray(u) ? u : [u, void 0]).forEach((v, q) => {
|
|
349
|
+
if (typeof v == "object")
|
|
350
|
+
for (let T = 0; T < ge.length; T++) {
|
|
351
|
+
const G = ge[T];
|
|
352
|
+
if (R[G] && v[G] !== void 0) {
|
|
353
|
+
d[q] = v[G];
|
|
420
354
|
break;
|
|
421
355
|
}
|
|
422
356
|
}
|
|
423
357
|
else
|
|
424
|
-
d[q] =
|
|
358
|
+
d[q] = v;
|
|
425
359
|
}), d;
|
|
426
|
-
}, b =
|
|
427
|
-
[`${b}-no-wrap`]:
|
|
428
|
-
[`${b}-${
|
|
429
|
-
[`${b}-${
|
|
360
|
+
}, b = y("row", r), [V, C, $] = an(b), g = p(), M = J(b, {
|
|
361
|
+
[`${b}-no-wrap`]: m === !1,
|
|
362
|
+
[`${b}-${j}`]: j,
|
|
363
|
+
[`${b}-${f}`]: f,
|
|
430
364
|
[`${b}-rtl`]: O === "rtl"
|
|
431
|
-
}, s,
|
|
432
|
-
|
|
433
|
-
const [
|
|
434
|
-
H.rowGap =
|
|
365
|
+
}, s, C, $), H = {}, N = g[0] != null && g[0] > 0 ? g[0] / -2 : void 0;
|
|
366
|
+
N && (H.marginLeft = N, H.marginRight = N);
|
|
367
|
+
const [x, P] = g;
|
|
368
|
+
H.rowGap = P;
|
|
435
369
|
const A = l.useMemo(() => ({
|
|
436
|
-
gutter: [
|
|
437
|
-
wrap:
|
|
438
|
-
}), [
|
|
439
|
-
return
|
|
370
|
+
gutter: [x, P],
|
|
371
|
+
wrap: m
|
|
372
|
+
}), [x, P, m]);
|
|
373
|
+
return V(/* @__PURE__ */ l.createElement(Je.Provider, {
|
|
440
374
|
value: A
|
|
441
|
-
}, /* @__PURE__ */ l.createElement("div", Object.assign({},
|
|
442
|
-
className:
|
|
443
|
-
style: Object.assign(Object.assign({}, H),
|
|
375
|
+
}, /* @__PURE__ */ l.createElement("div", Object.assign({}, E, {
|
|
376
|
+
className: M,
|
|
377
|
+
style: Object.assign(Object.assign({}, H), a),
|
|
444
378
|
ref: t
|
|
445
|
-
}),
|
|
379
|
+
}), c)));
|
|
446
380
|
});
|
|
447
|
-
process.env.NODE_ENV !== "production" && (
|
|
381
|
+
process.env.NODE_ENV !== "production" && (Ze.displayName = "Row");
|
|
448
382
|
function he(e) {
|
|
449
383
|
const [t, r] = l.useState(e);
|
|
450
384
|
return l.useEffect(() => {
|
|
@@ -456,7 +390,7 @@ function he(e) {
|
|
|
456
390
|
};
|
|
457
391
|
}, [e]), t;
|
|
458
392
|
}
|
|
459
|
-
const
|
|
393
|
+
const pn = (e) => {
|
|
460
394
|
const {
|
|
461
395
|
componentCls: t
|
|
462
396
|
} = e, r = `${t}-show-help`, n = `${t}-show-help-item`;
|
|
@@ -496,7 +430,7 @@ const xn = (e) => {
|
|
|
496
430
|
}
|
|
497
431
|
}
|
|
498
432
|
};
|
|
499
|
-
},
|
|
433
|
+
}, gn = (e) => ({
|
|
500
434
|
legend: {
|
|
501
435
|
display: "block",
|
|
502
436
|
width: "100%",
|
|
@@ -554,12 +488,12 @@ const xn = (e) => {
|
|
|
554
488
|
}
|
|
555
489
|
}
|
|
556
490
|
};
|
|
557
|
-
},
|
|
491
|
+
}, hn = (e) => {
|
|
558
492
|
const {
|
|
559
493
|
componentCls: t
|
|
560
494
|
} = e;
|
|
561
495
|
return {
|
|
562
|
-
[e.componentCls]: Object.assign(Object.assign(Object.assign({}, ke(e)),
|
|
496
|
+
[e.componentCls]: Object.assign(Object.assign(Object.assign({}, ke(e)), gn(e)), {
|
|
563
497
|
[`${t}-text`]: {
|
|
564
498
|
display: "inline-block",
|
|
565
499
|
paddingInlineEnd: e.paddingSM
|
|
@@ -571,19 +505,19 @@ const xn = (e) => {
|
|
|
571
505
|
"&-large": Object.assign({}, He(e, e.controlHeightLG))
|
|
572
506
|
})
|
|
573
507
|
};
|
|
574
|
-
},
|
|
508
|
+
}, bn = (e) => {
|
|
575
509
|
const {
|
|
576
510
|
formItemCls: t,
|
|
577
511
|
iconCls: r,
|
|
578
512
|
componentCls: n,
|
|
579
513
|
rootPrefixCls: o,
|
|
580
514
|
antCls: s,
|
|
581
|
-
labelRequiredMarkColor:
|
|
582
|
-
labelColor:
|
|
583
|
-
labelFontSize:
|
|
584
|
-
labelHeight:
|
|
585
|
-
labelColonMarginInlineStart:
|
|
586
|
-
labelColonMarginInlineEnd:
|
|
515
|
+
labelRequiredMarkColor: a,
|
|
516
|
+
labelColor: c,
|
|
517
|
+
labelFontSize: u,
|
|
518
|
+
labelHeight: m,
|
|
519
|
+
labelColonMarginInlineStart: E,
|
|
520
|
+
labelColonMarginInlineEnd: y,
|
|
587
521
|
itemMarginBottom: O
|
|
588
522
|
} = e;
|
|
589
523
|
return {
|
|
@@ -630,9 +564,9 @@ const xn = (e) => {
|
|
|
630
564
|
display: "inline-flex",
|
|
631
565
|
alignItems: "center",
|
|
632
566
|
maxWidth: "100%",
|
|
633
|
-
height:
|
|
634
|
-
color:
|
|
635
|
-
fontSize:
|
|
567
|
+
height: m,
|
|
568
|
+
color: c,
|
|
569
|
+
fontSize: u,
|
|
636
570
|
[`> ${r}`]: {
|
|
637
571
|
fontSize: e.fontSize,
|
|
638
572
|
verticalAlign: "top"
|
|
@@ -641,7 +575,7 @@ const xn = (e) => {
|
|
|
641
575
|
[`&${t}-required:not(${t}-required-mark-optional)::before`]: {
|
|
642
576
|
display: "inline-block",
|
|
643
577
|
marginInlineEnd: e.marginXXS,
|
|
644
|
-
color:
|
|
578
|
+
color: a,
|
|
645
579
|
fontSize: e.fontSize,
|
|
646
580
|
fontFamily: "SimSun, sans-serif",
|
|
647
581
|
lineHeight: 1,
|
|
@@ -670,8 +604,8 @@ const xn = (e) => {
|
|
|
670
604
|
content: '":"',
|
|
671
605
|
position: "relative",
|
|
672
606
|
marginBlock: 0,
|
|
673
|
-
marginInlineStart:
|
|
674
|
-
marginInlineEnd:
|
|
607
|
+
marginInlineStart: E,
|
|
608
|
+
marginInlineEnd: y
|
|
675
609
|
},
|
|
676
610
|
[`&${t}-no-colon::after`]: {
|
|
677
611
|
content: '"\\a0"'
|
|
@@ -786,7 +720,7 @@ const xn = (e) => {
|
|
|
786
720
|
}
|
|
787
721
|
}
|
|
788
722
|
};
|
|
789
|
-
},
|
|
723
|
+
}, yn = (e) => {
|
|
790
724
|
const {
|
|
791
725
|
componentCls: t,
|
|
792
726
|
formItemCls: r,
|
|
@@ -820,7 +754,7 @@ const xn = (e) => {
|
|
|
820
754
|
}
|
|
821
755
|
}
|
|
822
756
|
};
|
|
823
|
-
},
|
|
757
|
+
}, U = (e) => ({
|
|
824
758
|
padding: e.verticalLabelPadding,
|
|
825
759
|
margin: e.verticalLabelMargin,
|
|
826
760
|
whiteSpace: "initial",
|
|
@@ -832,14 +766,14 @@ const xn = (e) => {
|
|
|
832
766
|
visibility: "hidden"
|
|
833
767
|
}
|
|
834
768
|
}
|
|
835
|
-
}),
|
|
769
|
+
}), et = (e) => {
|
|
836
770
|
const {
|
|
837
771
|
componentCls: t,
|
|
838
772
|
formItemCls: r,
|
|
839
773
|
rootPrefixCls: n
|
|
840
774
|
} = e;
|
|
841
775
|
return {
|
|
842
|
-
[`${r} ${r}-label`]:
|
|
776
|
+
[`${r} ${r}-label`]: U(e),
|
|
843
777
|
// ref: https://github.com/ant-design/ant-design/issues/45122
|
|
844
778
|
[`${t}:not(${t}-inline)`]: {
|
|
845
779
|
[r]: {
|
|
@@ -856,7 +790,7 @@ const xn = (e) => {
|
|
|
856
790
|
}
|
|
857
791
|
}
|
|
858
792
|
};
|
|
859
|
-
},
|
|
793
|
+
}, $n = (e) => {
|
|
860
794
|
const {
|
|
861
795
|
componentCls: t,
|
|
862
796
|
formItemCls: r,
|
|
@@ -876,39 +810,39 @@ const xn = (e) => {
|
|
|
876
810
|
},
|
|
877
811
|
[`${r}-label,
|
|
878
812
|
${n}-col-24${r}-label,
|
|
879
|
-
${n}-col-xl-24${r}-label`]:
|
|
813
|
+
${n}-col-xl-24${r}-label`]: U(e)
|
|
880
814
|
}
|
|
881
815
|
},
|
|
882
|
-
[`@media (max-width: ${Q(e.screenXSMax)})`]: [
|
|
816
|
+
[`@media (max-width: ${Q(e.screenXSMax)})`]: [et(e), {
|
|
883
817
|
[t]: {
|
|
884
818
|
[`${r}:not(${r}-horizontal)`]: {
|
|
885
|
-
[`${n}-col-xs-24${r}-label`]:
|
|
819
|
+
[`${n}-col-xs-24${r}-label`]: U(e)
|
|
886
820
|
}
|
|
887
821
|
}
|
|
888
822
|
}],
|
|
889
823
|
[`@media (max-width: ${Q(e.screenSMMax)})`]: {
|
|
890
824
|
[t]: {
|
|
891
825
|
[`${r}:not(${r}-horizontal)`]: {
|
|
892
|
-
[`${n}-col-sm-24${r}-label`]:
|
|
826
|
+
[`${n}-col-sm-24${r}-label`]: U(e)
|
|
893
827
|
}
|
|
894
828
|
}
|
|
895
829
|
},
|
|
896
830
|
[`@media (max-width: ${Q(e.screenMDMax)})`]: {
|
|
897
831
|
[t]: {
|
|
898
832
|
[`${r}:not(${r}-horizontal)`]: {
|
|
899
|
-
[`${n}-col-md-24${r}-label`]:
|
|
833
|
+
[`${n}-col-md-24${r}-label`]: U(e)
|
|
900
834
|
}
|
|
901
835
|
}
|
|
902
836
|
},
|
|
903
837
|
[`@media (max-width: ${Q(e.screenLGMax)})`]: {
|
|
904
838
|
[t]: {
|
|
905
839
|
[`${r}:not(${r}-horizontal)`]: {
|
|
906
|
-
[`${n}-col-lg-24${r}-label`]:
|
|
840
|
+
[`${n}-col-lg-24${r}-label`]: U(e)
|
|
907
841
|
}
|
|
908
842
|
}
|
|
909
843
|
}
|
|
910
844
|
};
|
|
911
|
-
},
|
|
845
|
+
}, xn = (e) => {
|
|
912
846
|
const {
|
|
913
847
|
formItemCls: t,
|
|
914
848
|
antCls: r
|
|
@@ -927,29 +861,29 @@ const xn = (e) => {
|
|
|
927
861
|
},
|
|
928
862
|
[`${t}-vertical ${t}-label,
|
|
929
863
|
${r}-col-24${t}-label,
|
|
930
|
-
${r}-col-xl-24${t}-label`]:
|
|
931
|
-
[`@media (max-width: ${Q(e.screenXSMax)})`]: [
|
|
864
|
+
${r}-col-xl-24${t}-label`]: U(e),
|
|
865
|
+
[`@media (max-width: ${Q(e.screenXSMax)})`]: [et(e), {
|
|
932
866
|
[t]: {
|
|
933
|
-
[`${r}-col-xs-24${t}-label`]:
|
|
867
|
+
[`${r}-col-xs-24${t}-label`]: U(e)
|
|
934
868
|
}
|
|
935
869
|
}],
|
|
936
870
|
[`@media (max-width: ${Q(e.screenSMMax)})`]: {
|
|
937
871
|
[t]: {
|
|
938
|
-
[`${r}-col-sm-24${t}-label`]:
|
|
872
|
+
[`${r}-col-sm-24${t}-label`]: U(e)
|
|
939
873
|
}
|
|
940
874
|
},
|
|
941
875
|
[`@media (max-width: ${Q(e.screenMDMax)})`]: {
|
|
942
876
|
[t]: {
|
|
943
|
-
[`${r}-col-md-24${t}-label`]:
|
|
877
|
+
[`${r}-col-md-24${t}-label`]: U(e)
|
|
944
878
|
}
|
|
945
879
|
},
|
|
946
880
|
[`@media (max-width: ${Q(e.screenLGMax)})`]: {
|
|
947
881
|
[t]: {
|
|
948
|
-
[`${r}-col-lg-24${t}-label`]:
|
|
882
|
+
[`${r}-col-lg-24${t}-label`]: U(e)
|
|
949
883
|
}
|
|
950
884
|
}
|
|
951
885
|
};
|
|
952
|
-
},
|
|
886
|
+
}, Cn = (e) => ({
|
|
953
887
|
labelRequiredMarkColor: e.colorError,
|
|
954
888
|
labelColor: e.colorTextHeading,
|
|
955
889
|
labelFontSize: e.fontSize,
|
|
@@ -960,16 +894,16 @@ const xn = (e) => {
|
|
|
960
894
|
verticalLabelPadding: `0 0 ${e.paddingXS}px`,
|
|
961
895
|
verticalLabelMargin: 0,
|
|
962
896
|
inlineItemMarginBottom: 0
|
|
963
|
-
}),
|
|
897
|
+
}), tt = (e, t) => Xe(e, {
|
|
964
898
|
formItemCls: `${e.componentCls}-item`,
|
|
965
899
|
rootPrefixCls: t
|
|
966
900
|
}), Ie = we("Form", (e, t) => {
|
|
967
901
|
let {
|
|
968
902
|
rootPrefixCls: r
|
|
969
903
|
} = t;
|
|
970
|
-
const n =
|
|
971
|
-
return [
|
|
972
|
-
},
|
|
904
|
+
const n = tt(e, r);
|
|
905
|
+
return [hn(n), bn(n), pn(n), Ae(n, n.componentCls), Ae(n, n.formItemCls), yn(n), $n(n), xn(n), Tt(n), Qe];
|
|
906
|
+
}, Cn, {
|
|
973
907
|
// Let From style before the Grid
|
|
974
908
|
// ref https://github.com/ant-design/ant-design/issues/44386
|
|
975
909
|
order: -1e3
|
|
@@ -982,110 +916,110 @@ function Ce(e, t, r) {
|
|
|
982
916
|
errorStatus: r
|
|
983
917
|
};
|
|
984
918
|
}
|
|
985
|
-
const
|
|
919
|
+
const nt = (e) => {
|
|
986
920
|
let {
|
|
987
921
|
help: t,
|
|
988
922
|
helpStatus: r,
|
|
989
923
|
errors: n = ze,
|
|
990
924
|
warnings: o = ze,
|
|
991
925
|
className: s,
|
|
992
|
-
fieldId:
|
|
993
|
-
onVisibleChanged:
|
|
926
|
+
fieldId: a,
|
|
927
|
+
onVisibleChanged: c
|
|
994
928
|
} = e;
|
|
995
929
|
const {
|
|
996
|
-
prefixCls:
|
|
997
|
-
} = l.useContext(Se),
|
|
930
|
+
prefixCls: u
|
|
931
|
+
} = l.useContext(Se), m = `${u}-item-explain`, E = Ee(u), [y, O, R] = Ie(u, E), w = l.useMemo(() => Ve(u), [u]), S = he(n), I = he(o), f = l.useMemo(() => t != null ? [Ce(t, "help", r)] : [].concat(Y(S.map((h, p) => Ce(h, "error", "error", p))), Y(I.map((h, p) => Ce(h, "warning", "warning", p)))), [t, r, S, I]), j = l.useMemo(() => {
|
|
998
932
|
const h = {};
|
|
999
|
-
return
|
|
933
|
+
return f.forEach((p) => {
|
|
1000
934
|
let {
|
|
1001
935
|
key: b
|
|
1002
936
|
} = p;
|
|
1003
937
|
h[b] = (h[b] || 0) + 1;
|
|
1004
|
-
}),
|
|
938
|
+
}), f.map((p, b) => Object.assign(Object.assign({}, p), {
|
|
1005
939
|
key: h[p.key] > 1 ? `${p.key}-fallback-${b}` : p.key
|
|
1006
940
|
}));
|
|
1007
|
-
}, [
|
|
1008
|
-
return
|
|
1009
|
-
motionDeadline:
|
|
1010
|
-
motionName: `${
|
|
1011
|
-
visible: !!
|
|
1012
|
-
onVisibleChanged:
|
|
941
|
+
}, [f]), i = {};
|
|
942
|
+
return a && (i.id = `${a}_help`), y(/* @__PURE__ */ l.createElement(mt, {
|
|
943
|
+
motionDeadline: w.motionDeadline,
|
|
944
|
+
motionName: `${u}-show-help`,
|
|
945
|
+
visible: !!j.length,
|
|
946
|
+
onVisibleChanged: c
|
|
1013
947
|
}, (h) => {
|
|
1014
948
|
const {
|
|
1015
949
|
className: p,
|
|
1016
950
|
style: b
|
|
1017
951
|
} = h;
|
|
1018
|
-
return /* @__PURE__ */ l.createElement("div", Object.assign({},
|
|
1019
|
-
className: J(
|
|
952
|
+
return /* @__PURE__ */ l.createElement("div", Object.assign({}, i, {
|
|
953
|
+
className: J(m, p, R, E, s, O),
|
|
1020
954
|
style: b,
|
|
1021
955
|
role: "alert"
|
|
1022
|
-
}), /* @__PURE__ */ l.createElement(
|
|
1023
|
-
keys:
|
|
1024
|
-
},
|
|
1025
|
-
motionName: `${
|
|
956
|
+
}), /* @__PURE__ */ l.createElement(pt, Object.assign({
|
|
957
|
+
keys: j
|
|
958
|
+
}, Ve(u), {
|
|
959
|
+
motionName: `${u}-show-help-item`,
|
|
1026
960
|
component: !1
|
|
1027
|
-
}), (
|
|
961
|
+
}), (V) => {
|
|
1028
962
|
const {
|
|
1029
|
-
key:
|
|
1030
|
-
error:
|
|
963
|
+
key: C,
|
|
964
|
+
error: $,
|
|
1031
965
|
errorStatus: g,
|
|
1032
|
-
className:
|
|
966
|
+
className: M,
|
|
1033
967
|
style: H
|
|
1034
|
-
} =
|
|
968
|
+
} = V;
|
|
1035
969
|
return /* @__PURE__ */ l.createElement("div", {
|
|
1036
|
-
key:
|
|
1037
|
-
className: J(
|
|
1038
|
-
[`${
|
|
970
|
+
key: C,
|
|
971
|
+
className: J(M, {
|
|
972
|
+
[`${m}-${g}`]: g
|
|
1039
973
|
}),
|
|
1040
974
|
style: H
|
|
1041
|
-
},
|
|
975
|
+
}, $);
|
|
1042
976
|
}));
|
|
1043
977
|
}));
|
|
1044
|
-
},
|
|
1045
|
-
function
|
|
978
|
+
}, vn = ["parentNode"], wn = "form_item";
|
|
979
|
+
function ie(e) {
|
|
1046
980
|
return e === void 0 || e === !1 ? [] : Array.isArray(e) ? e : [e];
|
|
1047
981
|
}
|
|
1048
|
-
function
|
|
982
|
+
function rt(e, t) {
|
|
1049
983
|
if (!e.length)
|
|
1050
984
|
return;
|
|
1051
985
|
const r = e.join("_");
|
|
1052
|
-
return t ? `${t}_${r}` :
|
|
986
|
+
return t ? `${t}_${r}` : vn.includes(r) ? `${wn}_${r}` : r;
|
|
1053
987
|
}
|
|
1054
|
-
function
|
|
1055
|
-
let
|
|
1056
|
-
return s !== void 0 ?
|
|
988
|
+
function ot(e, t, r, n, o, s) {
|
|
989
|
+
let a = n;
|
|
990
|
+
return s !== void 0 ? a = s : r.validating ? a = "validating" : e.length ? a = "error" : t.length ? a = "warning" : (r.touched || o && r.validated) && (a = "success"), a;
|
|
1057
991
|
}
|
|
1058
992
|
function qe(e) {
|
|
1059
|
-
return
|
|
993
|
+
return ie(e).join("_");
|
|
1060
994
|
}
|
|
1061
995
|
function Be(e, t) {
|
|
1062
|
-
const r = t.getFieldInstance(e), n =
|
|
996
|
+
const r = t.getFieldInstance(e), n = gt(r);
|
|
1063
997
|
if (n)
|
|
1064
998
|
return n;
|
|
1065
|
-
const o =
|
|
999
|
+
const o = rt(ie(e), t.__INTERNAL__.name);
|
|
1066
1000
|
if (o)
|
|
1067
1001
|
return document.getElementById(o);
|
|
1068
1002
|
}
|
|
1069
1003
|
function lt(e) {
|
|
1070
|
-
const [t] =
|
|
1004
|
+
const [t] = Ft(), r = l.useRef({}), n = l.useMemo(() => e ?? Object.assign(Object.assign({}, t), {
|
|
1071
1005
|
__INTERNAL__: {
|
|
1072
1006
|
itemRef: (o) => (s) => {
|
|
1073
|
-
const
|
|
1074
|
-
s ? r.current[
|
|
1007
|
+
const a = qe(o);
|
|
1008
|
+
s ? r.current[a] = s : delete r.current[a];
|
|
1075
1009
|
}
|
|
1076
1010
|
},
|
|
1077
1011
|
scrollToField: function(o) {
|
|
1078
1012
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1079
|
-
const
|
|
1080
|
-
|
|
1013
|
+
const a = Be(o, n);
|
|
1014
|
+
a && en(a, Object.assign({
|
|
1081
1015
|
scrollMode: "if-needed",
|
|
1082
1016
|
block: "nearest"
|
|
1083
1017
|
}, s));
|
|
1084
1018
|
},
|
|
1085
1019
|
focusField: (o) => {
|
|
1086
1020
|
var s;
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1021
|
+
const a = Be(o, n);
|
|
1022
|
+
a && ((s = a.focus) === null || s === void 0 || s.call(a));
|
|
1089
1023
|
},
|
|
1090
1024
|
getFieldInstance: (o) => {
|
|
1091
1025
|
const s = qe(o);
|
|
@@ -1094,105 +1028,105 @@ function lt(e) {
|
|
|
1094
1028
|
}), [e, t]);
|
|
1095
1029
|
return [n];
|
|
1096
1030
|
}
|
|
1097
|
-
const
|
|
1098
|
-
function
|
|
1031
|
+
const me = {};
|
|
1032
|
+
function Sn(e) {
|
|
1099
1033
|
let {
|
|
1100
1034
|
name: t
|
|
1101
1035
|
} = e;
|
|
1102
1036
|
const r = be("Form");
|
|
1103
1037
|
l.useEffect(() => {
|
|
1104
1038
|
if (t)
|
|
1105
|
-
return
|
|
1106
|
-
|
|
1039
|
+
return me[t] = (me[t] || 0) + 1, process.env.NODE_ENV !== "production" && r(me[t] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
|
|
1040
|
+
me[t] -= 1;
|
|
1107
1041
|
};
|
|
1108
1042
|
}, [t]);
|
|
1109
1043
|
}
|
|
1110
|
-
var
|
|
1044
|
+
var En = function(e, t) {
|
|
1111
1045
|
var r = {};
|
|
1112
1046
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1113
1047
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1114
1048
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1115
1049
|
return r;
|
|
1116
1050
|
};
|
|
1117
|
-
const
|
|
1118
|
-
const r = l.useContext(
|
|
1051
|
+
const On = (e, t) => {
|
|
1052
|
+
const r = l.useContext(ht), {
|
|
1119
1053
|
getPrefixCls: n,
|
|
1120
1054
|
direction: o,
|
|
1121
1055
|
form: s
|
|
1122
|
-
} = l.useContext(
|
|
1123
|
-
prefixCls:
|
|
1124
|
-
className:
|
|
1125
|
-
rootClassName:
|
|
1126
|
-
size:
|
|
1127
|
-
disabled:
|
|
1128
|
-
form:
|
|
1056
|
+
} = l.useContext(ce), {
|
|
1057
|
+
prefixCls: a,
|
|
1058
|
+
className: c,
|
|
1059
|
+
rootClassName: u,
|
|
1060
|
+
size: m,
|
|
1061
|
+
disabled: E = r,
|
|
1062
|
+
form: y,
|
|
1129
1063
|
colon: O,
|
|
1130
1064
|
labelAlign: R,
|
|
1131
|
-
labelWrap:
|
|
1132
|
-
labelCol:
|
|
1065
|
+
labelWrap: w,
|
|
1066
|
+
labelCol: S,
|
|
1133
1067
|
wrapperCol: I,
|
|
1134
|
-
hideRequiredMark:
|
|
1135
|
-
layout:
|
|
1136
|
-
scrollToFirstError:
|
|
1068
|
+
hideRequiredMark: f,
|
|
1069
|
+
layout: j = "horizontal",
|
|
1070
|
+
scrollToFirstError: i,
|
|
1137
1071
|
requiredMark: h,
|
|
1138
1072
|
onFinishFailed: p,
|
|
1139
1073
|
name: b,
|
|
1140
|
-
style:
|
|
1141
|
-
feedbackIcons:
|
|
1142
|
-
variant:
|
|
1143
|
-
} = e, g =
|
|
1144
|
-
process.env.NODE_ENV !== "production" &&
|
|
1145
|
-
const
|
|
1146
|
-
[`${
|
|
1147
|
-
[`${
|
|
1148
|
-
[`${
|
|
1149
|
-
},
|
|
1074
|
+
style: V,
|
|
1075
|
+
feedbackIcons: C,
|
|
1076
|
+
variant: $
|
|
1077
|
+
} = e, g = En(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]), M = Ht(m), H = l.useContext(bt);
|
|
1078
|
+
process.env.NODE_ENV !== "production" && Sn(e);
|
|
1079
|
+
const N = l.useMemo(() => h !== void 0 ? h : f ? !1 : s && s.requiredMark !== void 0 ? s.requiredMark : !0, [f, h, s]), x = O ?? (s == null ? void 0 : s.colon), P = n("form", a), A = Ee(P), [d, z, v] = Ie(P, A), q = J(P, `${P}-${j}`, {
|
|
1080
|
+
[`${P}-hide-required-mark`]: N === !1,
|
|
1081
|
+
[`${P}-rtl`]: o === "rtl",
|
|
1082
|
+
[`${P}-${M}`]: M
|
|
1083
|
+
}, v, A, z, s == null ? void 0 : s.className, c, u), [T] = lt(y), {
|
|
1150
1084
|
__INTERNAL__: G
|
|
1151
1085
|
} = T;
|
|
1152
1086
|
G.name = b;
|
|
1153
1087
|
const X = l.useMemo(() => ({
|
|
1154
1088
|
name: b,
|
|
1155
1089
|
labelAlign: R,
|
|
1156
|
-
labelCol:
|
|
1157
|
-
labelWrap:
|
|
1090
|
+
labelCol: S,
|
|
1091
|
+
labelWrap: w,
|
|
1158
1092
|
wrapperCol: I,
|
|
1159
|
-
vertical:
|
|
1160
|
-
colon:
|
|
1161
|
-
requiredMark:
|
|
1093
|
+
vertical: j === "vertical",
|
|
1094
|
+
colon: x,
|
|
1095
|
+
requiredMark: N,
|
|
1162
1096
|
itemRef: G.itemRef,
|
|
1163
1097
|
form: T,
|
|
1164
|
-
feedbackIcons:
|
|
1165
|
-
}), [b, R,
|
|
1098
|
+
feedbackIcons: C
|
|
1099
|
+
}), [b, R, S, I, j, x, N, T, C]), K = l.useRef(null);
|
|
1166
1100
|
l.useImperativeHandle(t, () => {
|
|
1167
|
-
var
|
|
1101
|
+
var L;
|
|
1168
1102
|
return Object.assign(Object.assign({}, T), {
|
|
1169
|
-
nativeElement: (
|
|
1103
|
+
nativeElement: (L = K.current) === null || L === void 0 ? void 0 : L.nativeElement
|
|
1170
1104
|
});
|
|
1171
1105
|
});
|
|
1172
|
-
const Z = (
|
|
1173
|
-
if (
|
|
1106
|
+
const Z = (L, F) => {
|
|
1107
|
+
if (L) {
|
|
1174
1108
|
let _ = {
|
|
1175
1109
|
block: "nearest"
|
|
1176
1110
|
};
|
|
1177
|
-
typeof
|
|
1111
|
+
typeof L == "object" && (_ = Object.assign(Object.assign({}, _), L)), T.scrollToField(F, _), _.focus && T.focusField(F);
|
|
1178
1112
|
}
|
|
1179
|
-
}, ee = (
|
|
1180
|
-
if (p == null || p(
|
|
1181
|
-
const F =
|
|
1182
|
-
if (
|
|
1183
|
-
Z(
|
|
1113
|
+
}, ee = (L) => {
|
|
1114
|
+
if (p == null || p(L), L.errorFields.length) {
|
|
1115
|
+
const F = L.errorFields[0].name;
|
|
1116
|
+
if (i !== void 0) {
|
|
1117
|
+
Z(i, F);
|
|
1184
1118
|
return;
|
|
1185
1119
|
}
|
|
1186
1120
|
s && s.scrollToFirstError !== void 0 && Z(s.scrollToFirstError, F);
|
|
1187
1121
|
}
|
|
1188
1122
|
};
|
|
1189
1123
|
return d(/* @__PURE__ */ l.createElement(Nt.Provider, {
|
|
1190
|
-
value:
|
|
1191
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1192
|
-
disabled:
|
|
1193
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1194
|
-
value:
|
|
1195
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1124
|
+
value: $
|
|
1125
|
+
}, /* @__PURE__ */ l.createElement(yt, {
|
|
1126
|
+
disabled: E
|
|
1127
|
+
}, /* @__PURE__ */ l.createElement($t.Provider, {
|
|
1128
|
+
value: M
|
|
1129
|
+
}, /* @__PURE__ */ l.createElement(Ye, {
|
|
1196
1130
|
// This is not list in API, we pass with spread
|
|
1197
1131
|
validateMessages: H
|
|
1198
1132
|
}, /* @__PURE__ */ l.createElement(ne.Provider, {
|
|
@@ -1203,16 +1137,16 @@ const _n = (e, t) => {
|
|
|
1203
1137
|
name: b,
|
|
1204
1138
|
onFinishFailed: ee,
|
|
1205
1139
|
form: T,
|
|
1206
|
-
ref:
|
|
1207
|
-
style: Object.assign(Object.assign({}, s == null ? void 0 : s.style),
|
|
1140
|
+
ref: K,
|
|
1141
|
+
style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), V),
|
|
1208
1142
|
className: q
|
|
1209
1143
|
}))))))));
|
|
1210
|
-
},
|
|
1211
|
-
process.env.NODE_ENV !== "production" && (
|
|
1212
|
-
function
|
|
1144
|
+
}, st = /* @__PURE__ */ l.forwardRef(On);
|
|
1145
|
+
process.env.NODE_ENV !== "production" && (st.displayName = "Form");
|
|
1146
|
+
function In(e) {
|
|
1213
1147
|
if (typeof e == "function")
|
|
1214
1148
|
return e;
|
|
1215
|
-
const t =
|
|
1149
|
+
const t = zt(e);
|
|
1216
1150
|
return t.length <= 1 ? t[0] : t;
|
|
1217
1151
|
}
|
|
1218
1152
|
const at = () => {
|
|
@@ -1220,7 +1154,7 @@ const at = () => {
|
|
|
1220
1154
|
status: e,
|
|
1221
1155
|
errors: t = [],
|
|
1222
1156
|
warnings: r = []
|
|
1223
|
-
} = l.useContext(
|
|
1157
|
+
} = l.useContext(pe);
|
|
1224
1158
|
if (process.env.NODE_ENV !== "production") {
|
|
1225
1159
|
const n = be("Form.Item");
|
|
1226
1160
|
process.env.NODE_ENV !== "production" && n(e !== void 0, "usage", "Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus");
|
|
@@ -1231,35 +1165,35 @@ const at = () => {
|
|
|
1231
1165
|
warnings: r
|
|
1232
1166
|
};
|
|
1233
1167
|
};
|
|
1234
|
-
at.Context =
|
|
1235
|
-
function
|
|
1168
|
+
at.Context = pe;
|
|
1169
|
+
function Fn(e) {
|
|
1236
1170
|
const [t, r] = l.useState(e), n = l.useRef(null), o = l.useRef([]), s = l.useRef(!1);
|
|
1237
1171
|
l.useEffect(() => (s.current = !1, () => {
|
|
1238
1172
|
s.current = !0, _e.cancel(n.current), n.current = null;
|
|
1239
1173
|
}), []);
|
|
1240
|
-
function
|
|
1174
|
+
function a(c) {
|
|
1241
1175
|
s.current || (n.current === null && (o.current = [], n.current = _e(() => {
|
|
1242
|
-
n.current = null, r((
|
|
1243
|
-
let
|
|
1244
|
-
return o.current.forEach((
|
|
1245
|
-
|
|
1246
|
-
}),
|
|
1176
|
+
n.current = null, r((u) => {
|
|
1177
|
+
let m = u;
|
|
1178
|
+
return o.current.forEach((E) => {
|
|
1179
|
+
m = E(m);
|
|
1180
|
+
}), m;
|
|
1247
1181
|
});
|
|
1248
|
-
})), o.current.push(
|
|
1182
|
+
})), o.current.push(c));
|
|
1249
1183
|
}
|
|
1250
|
-
return [t,
|
|
1184
|
+
return [t, a];
|
|
1251
1185
|
}
|
|
1252
|
-
function
|
|
1186
|
+
function Nn() {
|
|
1253
1187
|
const {
|
|
1254
1188
|
itemRef: e
|
|
1255
1189
|
} = l.useContext(ne), t = l.useRef({});
|
|
1256
1190
|
function r(n, o) {
|
|
1257
|
-
const s = o && typeof o == "object" &&
|
|
1258
|
-
return (t.current.name !==
|
|
1191
|
+
const s = o && typeof o == "object" && xt(o), a = n.join("_");
|
|
1192
|
+
return (t.current.name !== a || t.current.originRef !== s) && (t.current.name = a, t.current.originRef = s, t.current.ref = Ct(e(n), s)), t.current.ref;
|
|
1259
1193
|
}
|
|
1260
1194
|
return r;
|
|
1261
1195
|
}
|
|
1262
|
-
const
|
|
1196
|
+
const jn = (e) => {
|
|
1263
1197
|
const {
|
|
1264
1198
|
formItemCls: t
|
|
1265
1199
|
} = e;
|
|
@@ -1271,164 +1205,171 @@ const Ln = (e) => {
|
|
|
1271
1205
|
}
|
|
1272
1206
|
}
|
|
1273
1207
|
};
|
|
1274
|
-
},
|
|
1208
|
+
}, Mn = vt(["Form", "item-item"], (e, t) => {
|
|
1275
1209
|
let {
|
|
1276
1210
|
rootPrefixCls: r
|
|
1277
1211
|
} = t;
|
|
1278
|
-
const n =
|
|
1279
|
-
return [
|
|
1212
|
+
const n = tt(e, r);
|
|
1213
|
+
return [jn(n)];
|
|
1280
1214
|
});
|
|
1281
|
-
var
|
|
1215
|
+
var _n = function(e, t) {
|
|
1282
1216
|
var r = {};
|
|
1283
1217
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1284
1218
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1285
1219
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1286
1220
|
return r;
|
|
1287
1221
|
};
|
|
1288
|
-
const
|
|
1222
|
+
const Rn = 24, Vn = (e) => {
|
|
1289
1223
|
const {
|
|
1290
1224
|
prefixCls: t,
|
|
1291
1225
|
status: r,
|
|
1292
1226
|
labelCol: n,
|
|
1293
1227
|
wrapperCol: o,
|
|
1294
1228
|
children: s,
|
|
1295
|
-
errors:
|
|
1296
|
-
warnings:
|
|
1297
|
-
_internalItemRender:
|
|
1298
|
-
extra:
|
|
1299
|
-
help:
|
|
1300
|
-
fieldId:
|
|
1229
|
+
errors: a,
|
|
1230
|
+
warnings: c,
|
|
1231
|
+
_internalItemRender: u,
|
|
1232
|
+
extra: m,
|
|
1233
|
+
help: E,
|
|
1234
|
+
fieldId: y,
|
|
1301
1235
|
marginBottom: O,
|
|
1302
1236
|
onErrorVisibleChanged: R,
|
|
1303
|
-
label:
|
|
1304
|
-
} = e,
|
|
1305
|
-
let
|
|
1306
|
-
return
|
|
1307
|
-
const d = A ? [A] : [], z = Re(I.labelCol, d),
|
|
1308
|
-
"span" in
|
|
1309
|
-
}),
|
|
1310
|
-
}, [o, I]),
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
}, [
|
|
1314
|
-
const
|
|
1315
|
-
className: `${
|
|
1237
|
+
label: w
|
|
1238
|
+
} = e, S = `${t}-item`, I = l.useContext(ne), f = l.useMemo(() => {
|
|
1239
|
+
let x = Object.assign({}, o || I.wrapperCol || {});
|
|
1240
|
+
return w === null && !n && !o && I.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((A) => {
|
|
1241
|
+
const d = A ? [A] : [], z = Re(I.labelCol, d), v = typeof z == "object" ? z : {}, q = Re(x, d), T = typeof q == "object" ? q : {};
|
|
1242
|
+
"span" in v && !("offset" in T) && v.span < Rn && (x = wt(x, [].concat(d, ["offset"]), v.span));
|
|
1243
|
+
}), x;
|
|
1244
|
+
}, [o, I]), j = J(`${S}-control`, f.className), i = l.useMemo(() => _n(I, ["labelCol", "wrapperCol"]), [I]), h = l.useRef(null), [p, b] = l.useState(0);
|
|
1245
|
+
Ke(() => {
|
|
1246
|
+
m && h.current ? b(h.current.clientHeight) : b(0);
|
|
1247
|
+
}, [m]);
|
|
1248
|
+
const V = /* @__PURE__ */ l.createElement("div", {
|
|
1249
|
+
className: `${S}-control-input`
|
|
1316
1250
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
1317
|
-
className: `${
|
|
1318
|
-
}, s)),
|
|
1251
|
+
className: `${S}-control-input-content`
|
|
1252
|
+
}, s)), C = l.useMemo(() => ({
|
|
1319
1253
|
prefixCls: t,
|
|
1320
1254
|
status: r
|
|
1321
|
-
}), [t, r]),
|
|
1322
|
-
value:
|
|
1323
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1324
|
-
fieldId:
|
|
1325
|
-
errors:
|
|
1326
|
-
warnings:
|
|
1327
|
-
help:
|
|
1255
|
+
}), [t, r]), $ = O !== null || a.length || c.length ? /* @__PURE__ */ l.createElement(Se.Provider, {
|
|
1256
|
+
value: C
|
|
1257
|
+
}, /* @__PURE__ */ l.createElement(nt, {
|
|
1258
|
+
fieldId: y,
|
|
1259
|
+
errors: a,
|
|
1260
|
+
warnings: c,
|
|
1261
|
+
help: E,
|
|
1328
1262
|
helpStatus: r,
|
|
1329
|
-
className: `${
|
|
1263
|
+
className: `${S}-explain-connected`,
|
|
1330
1264
|
onVisibleChanged: R
|
|
1331
1265
|
})) : null, g = {};
|
|
1332
|
-
|
|
1333
|
-
const
|
|
1334
|
-
className: `${
|
|
1266
|
+
y && (g.id = `${y}_extra`);
|
|
1267
|
+
const M = m ? /* @__PURE__ */ l.createElement("div", Object.assign({}, g, {
|
|
1268
|
+
className: `${S}-extra`,
|
|
1335
1269
|
ref: h
|
|
1336
|
-
}),
|
|
1337
|
-
className: `${
|
|
1270
|
+
}), m) : null, H = $ || M ? /* @__PURE__ */ l.createElement("div", {
|
|
1271
|
+
className: `${S}-additional`,
|
|
1338
1272
|
style: O ? {
|
|
1339
1273
|
minHeight: O + p
|
|
1340
1274
|
} : {}
|
|
1341
|
-
},
|
|
1342
|
-
input:
|
|
1343
|
-
errorList:
|
|
1344
|
-
extra:
|
|
1345
|
-
}) : /* @__PURE__ */ l.createElement(l.Fragment, null,
|
|
1275
|
+
}, $, M) : null, N = u && u.mark === "pro_table_render" && u.render ? u.render(e, {
|
|
1276
|
+
input: V,
|
|
1277
|
+
errorList: $,
|
|
1278
|
+
extra: M
|
|
1279
|
+
}) : /* @__PURE__ */ l.createElement(l.Fragment, null, V, H);
|
|
1346
1280
|
return /* @__PURE__ */ l.createElement(ne.Provider, {
|
|
1347
|
-
value:
|
|
1348
|
-
}, /* @__PURE__ */ l.createElement(Oe, Object.assign({},
|
|
1349
|
-
className:
|
|
1350
|
-
}),
|
|
1281
|
+
value: i
|
|
1282
|
+
}, /* @__PURE__ */ l.createElement(Oe, Object.assign({}, f, {
|
|
1283
|
+
className: j
|
|
1284
|
+
}), N), /* @__PURE__ */ l.createElement(Mn, {
|
|
1351
1285
|
prefixCls: t
|
|
1352
1286
|
}));
|
|
1353
1287
|
};
|
|
1354
|
-
var
|
|
1288
|
+
var Pn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" }, Dn = function(t, r) {
|
|
1289
|
+
return /* @__PURE__ */ l.createElement(Xt, Lt({}, t, {
|
|
1290
|
+
ref: r,
|
|
1291
|
+
icon: Pn
|
|
1292
|
+
}));
|
|
1293
|
+
}, it = /* @__PURE__ */ l.forwardRef(Dn);
|
|
1294
|
+
process.env.NODE_ENV !== "production" && (it.displayName = "QuestionCircleOutlined");
|
|
1295
|
+
var Ln = function(e, t) {
|
|
1355
1296
|
var r = {};
|
|
1356
1297
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1357
1298
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1358
1299
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1359
1300
|
return r;
|
|
1360
1301
|
};
|
|
1361
|
-
function
|
|
1302
|
+
function Tn(e) {
|
|
1362
1303
|
return e ? typeof e == "object" && !/* @__PURE__ */ l.isValidElement(e) ? e : {
|
|
1363
1304
|
title: e
|
|
1364
1305
|
} : null;
|
|
1365
1306
|
}
|
|
1366
|
-
const
|
|
1307
|
+
const Wn = (e) => {
|
|
1367
1308
|
let {
|
|
1368
1309
|
prefixCls: t,
|
|
1369
1310
|
label: r,
|
|
1370
1311
|
htmlFor: n,
|
|
1371
1312
|
labelCol: o,
|
|
1372
1313
|
labelAlign: s,
|
|
1373
|
-
colon:
|
|
1374
|
-
required:
|
|
1375
|
-
requiredMark:
|
|
1376
|
-
tooltip:
|
|
1377
|
-
vertical:
|
|
1314
|
+
colon: a,
|
|
1315
|
+
required: c,
|
|
1316
|
+
requiredMark: u,
|
|
1317
|
+
tooltip: m,
|
|
1318
|
+
vertical: E
|
|
1378
1319
|
} = e;
|
|
1379
|
-
var
|
|
1380
|
-
const [O] =
|
|
1320
|
+
var y;
|
|
1321
|
+
const [O] = kt("Form"), {
|
|
1381
1322
|
labelAlign: R,
|
|
1382
|
-
labelCol:
|
|
1383
|
-
labelWrap:
|
|
1323
|
+
labelCol: w,
|
|
1324
|
+
labelWrap: S,
|
|
1384
1325
|
colon: I
|
|
1385
1326
|
} = l.useContext(ne);
|
|
1386
1327
|
if (!r)
|
|
1387
1328
|
return null;
|
|
1388
|
-
const
|
|
1389
|
-
[`${
|
|
1329
|
+
const f = o || w || {}, j = s || R, i = `${t}-item-label`, h = J(i, j === "left" && `${i}-left`, f.className, {
|
|
1330
|
+
[`${i}-wrap`]: !!S
|
|
1390
1331
|
});
|
|
1391
1332
|
let p = r;
|
|
1392
|
-
const b =
|
|
1393
|
-
b && !
|
|
1394
|
-
const
|
|
1395
|
-
if (
|
|
1333
|
+
const b = a === !0 || I !== !1 && a !== !1;
|
|
1334
|
+
b && !E && typeof r == "string" && r.trim() && (p = r.replace(/[:|:]\s*$/, ""));
|
|
1335
|
+
const C = Tn(m);
|
|
1336
|
+
if (C) {
|
|
1396
1337
|
const {
|
|
1397
|
-
icon: H = /* @__PURE__ */ l.createElement(
|
|
1398
|
-
} =
|
|
1338
|
+
icon: H = /* @__PURE__ */ l.createElement(it, null)
|
|
1339
|
+
} = C, N = Ln(C, ["icon"]), x = /* @__PURE__ */ l.createElement(Wt, Object.assign({}, N), /* @__PURE__ */ l.cloneElement(H, {
|
|
1399
1340
|
className: `${t}-item-tooltip`,
|
|
1400
1341
|
title: "",
|
|
1401
|
-
onClick: (
|
|
1402
|
-
|
|
1342
|
+
onClick: (P) => {
|
|
1343
|
+
P.preventDefault();
|
|
1403
1344
|
},
|
|
1404
1345
|
tabIndex: null
|
|
1405
1346
|
}));
|
|
1406
|
-
p = /* @__PURE__ */ l.createElement(l.Fragment, null, p,
|
|
1347
|
+
p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, x);
|
|
1407
1348
|
}
|
|
1408
|
-
const
|
|
1409
|
-
g ? p =
|
|
1410
|
-
required: !!
|
|
1411
|
-
}) :
|
|
1349
|
+
const $ = u === "optional", g = typeof u == "function";
|
|
1350
|
+
g ? p = u(p, {
|
|
1351
|
+
required: !!c
|
|
1352
|
+
}) : $ && !c && (p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, /* @__PURE__ */ l.createElement("span", {
|
|
1412
1353
|
className: `${t}-item-optional`,
|
|
1413
1354
|
title: ""
|
|
1414
|
-
}, (O == null ? void 0 : O.optional) || ((
|
|
1415
|
-
const
|
|
1416
|
-
[`${t}-item-required`]:
|
|
1417
|
-
[`${t}-item-required-mark-optional`]:
|
|
1355
|
+
}, (O == null ? void 0 : O.optional) || ((y = St.Form) === null || y === void 0 ? void 0 : y.optional))));
|
|
1356
|
+
const M = J({
|
|
1357
|
+
[`${t}-item-required`]: c,
|
|
1358
|
+
[`${t}-item-required-mark-optional`]: $ || g,
|
|
1418
1359
|
[`${t}-item-no-colon`]: !b
|
|
1419
1360
|
});
|
|
1420
|
-
return /* @__PURE__ */ l.createElement(Oe, Object.assign({},
|
|
1361
|
+
return /* @__PURE__ */ l.createElement(Oe, Object.assign({}, f, {
|
|
1421
1362
|
className: h
|
|
1422
1363
|
}), /* @__PURE__ */ l.createElement("label", {
|
|
1423
1364
|
htmlFor: n,
|
|
1424
|
-
className:
|
|
1365
|
+
className: M,
|
|
1425
1366
|
title: typeof r == "string" ? r : ""
|
|
1426
1367
|
}, p));
|
|
1427
|
-
},
|
|
1368
|
+
}, Hn = {
|
|
1428
1369
|
success: Kt,
|
|
1429
|
-
warning:
|
|
1430
|
-
error:
|
|
1431
|
-
validating:
|
|
1370
|
+
warning: Ut,
|
|
1371
|
+
error: Yt,
|
|
1372
|
+
validating: Qt
|
|
1432
1373
|
};
|
|
1433
1374
|
function ct(e) {
|
|
1434
1375
|
let {
|
|
@@ -1437,105 +1378,105 @@ function ct(e) {
|
|
|
1437
1378
|
warnings: n,
|
|
1438
1379
|
hasFeedback: o,
|
|
1439
1380
|
validateStatus: s,
|
|
1440
|
-
prefixCls:
|
|
1441
|
-
meta:
|
|
1442
|
-
noStyle:
|
|
1381
|
+
prefixCls: a,
|
|
1382
|
+
meta: c,
|
|
1383
|
+
noStyle: u
|
|
1443
1384
|
} = e;
|
|
1444
|
-
const
|
|
1445
|
-
feedbackIcons:
|
|
1446
|
-
} = l.useContext(ne),
|
|
1385
|
+
const m = `${a}-item`, {
|
|
1386
|
+
feedbackIcons: E
|
|
1387
|
+
} = l.useContext(ne), y = ot(r, n, c, null, !!o, s), {
|
|
1447
1388
|
isFormItemInput: O,
|
|
1448
1389
|
status: R,
|
|
1449
|
-
hasFeedback:
|
|
1450
|
-
feedbackIcon:
|
|
1451
|
-
} = l.useContext(
|
|
1452
|
-
var
|
|
1453
|
-
let
|
|
1390
|
+
hasFeedback: w,
|
|
1391
|
+
feedbackIcon: S
|
|
1392
|
+
} = l.useContext(pe), I = l.useMemo(() => {
|
|
1393
|
+
var f;
|
|
1394
|
+
let j;
|
|
1454
1395
|
if (o) {
|
|
1455
|
-
const h = o !== !0 && o.icons ||
|
|
1456
|
-
status:
|
|
1396
|
+
const h = o !== !0 && o.icons || E, p = y && ((f = h == null ? void 0 : h({
|
|
1397
|
+
status: y,
|
|
1457
1398
|
errors: r,
|
|
1458
1399
|
warnings: n
|
|
1459
|
-
})) === null ||
|
|
1460
|
-
|
|
1461
|
-
className: J(`${
|
|
1400
|
+
})) === null || f === void 0 ? void 0 : f[y]), b = y && Hn[y];
|
|
1401
|
+
j = p !== !1 && b ? /* @__PURE__ */ l.createElement("span", {
|
|
1402
|
+
className: J(`${m}-feedback-icon`, `${m}-feedback-icon-${y}`)
|
|
1462
1403
|
}, p || /* @__PURE__ */ l.createElement(b, null)) : null;
|
|
1463
1404
|
}
|
|
1464
|
-
const
|
|
1465
|
-
status:
|
|
1405
|
+
const i = {
|
|
1406
|
+
status: y || "",
|
|
1466
1407
|
errors: r,
|
|
1467
1408
|
warnings: n,
|
|
1468
1409
|
hasFeedback: !!o,
|
|
1469
|
-
feedbackIcon:
|
|
1410
|
+
feedbackIcon: j,
|
|
1470
1411
|
isFormItemInput: !0
|
|
1471
1412
|
};
|
|
1472
|
-
return
|
|
1473
|
-
}, [
|
|
1474
|
-
return /* @__PURE__ */ l.createElement(
|
|
1413
|
+
return u && (i.status = (y ?? R) || "", i.isFormItemInput = O, i.hasFeedback = !!(o ?? w), i.feedbackIcon = o !== void 0 ? i.feedbackIcon : S), i;
|
|
1414
|
+
}, [y, o, u, O, R]);
|
|
1415
|
+
return /* @__PURE__ */ l.createElement(pe.Provider, {
|
|
1475
1416
|
value: I
|
|
1476
1417
|
}, t);
|
|
1477
1418
|
}
|
|
1478
|
-
var
|
|
1419
|
+
var An = function(e, t) {
|
|
1479
1420
|
var r = {};
|
|
1480
1421
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1481
1422
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1482
1423
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1483
1424
|
return r;
|
|
1484
1425
|
};
|
|
1485
|
-
function
|
|
1426
|
+
function zn(e) {
|
|
1486
1427
|
const {
|
|
1487
1428
|
prefixCls: t,
|
|
1488
1429
|
className: r,
|
|
1489
1430
|
rootClassName: n,
|
|
1490
1431
|
style: o,
|
|
1491
1432
|
help: s,
|
|
1492
|
-
errors:
|
|
1493
|
-
warnings:
|
|
1494
|
-
validateStatus:
|
|
1495
|
-
meta:
|
|
1496
|
-
hasFeedback:
|
|
1497
|
-
hidden:
|
|
1433
|
+
errors: a,
|
|
1434
|
+
warnings: c,
|
|
1435
|
+
validateStatus: u,
|
|
1436
|
+
meta: m,
|
|
1437
|
+
hasFeedback: E,
|
|
1438
|
+
hidden: y,
|
|
1498
1439
|
children: O,
|
|
1499
1440
|
fieldId: R,
|
|
1500
|
-
required:
|
|
1501
|
-
isRequired:
|
|
1441
|
+
required: w,
|
|
1442
|
+
isRequired: S,
|
|
1502
1443
|
onSubItemMetaChange: I,
|
|
1503
|
-
layout:
|
|
1504
|
-
} = e,
|
|
1444
|
+
layout: f
|
|
1445
|
+
} = e, j = An(e, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout"]), i = `${t}-item`, {
|
|
1505
1446
|
requiredMark: h,
|
|
1506
1447
|
vertical: p
|
|
1507
|
-
} = l.useContext(ne), b = p ||
|
|
1508
|
-
|
|
1509
|
-
if (
|
|
1510
|
-
const
|
|
1511
|
-
|
|
1448
|
+
} = l.useContext(ne), b = p || f === "vertical", V = l.useRef(null), C = he(a), $ = he(c), g = s != null, M = !!(g || a.length || c.length), H = !!V.current && qt(V.current), [N, x] = l.useState(null);
|
|
1449
|
+
Ke(() => {
|
|
1450
|
+
if (M && V.current) {
|
|
1451
|
+
const v = getComputedStyle(V.current);
|
|
1452
|
+
x(parseInt(v.marginBottom, 10));
|
|
1512
1453
|
}
|
|
1513
|
-
}, [
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1454
|
+
}, [M, H]);
|
|
1455
|
+
const P = (v) => {
|
|
1456
|
+
v || x(null);
|
|
1516
1457
|
}, d = function() {
|
|
1517
|
-
let
|
|
1518
|
-
const q =
|
|
1519
|
-
return
|
|
1520
|
-
}(), z = J(
|
|
1521
|
-
[`${
|
|
1458
|
+
let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1459
|
+
const q = v ? C : m.errors, T = v ? $ : m.warnings;
|
|
1460
|
+
return ot(q, T, m, "", !!E, u);
|
|
1461
|
+
}(), z = J(i, r, n, {
|
|
1462
|
+
[`${i}-with-help`]: g || C.length || $.length,
|
|
1522
1463
|
// Status
|
|
1523
|
-
[`${
|
|
1524
|
-
[`${
|
|
1525
|
-
[`${
|
|
1526
|
-
[`${
|
|
1527
|
-
[`${
|
|
1528
|
-
[`${
|
|
1464
|
+
[`${i}-has-feedback`]: d && E,
|
|
1465
|
+
[`${i}-has-success`]: d === "success",
|
|
1466
|
+
[`${i}-has-warning`]: d === "warning",
|
|
1467
|
+
[`${i}-has-error`]: d === "error",
|
|
1468
|
+
[`${i}-is-validating`]: d === "validating",
|
|
1469
|
+
[`${i}-hidden`]: y,
|
|
1529
1470
|
// Layout
|
|
1530
|
-
[`${
|
|
1471
|
+
[`${i}-${f}`]: f
|
|
1531
1472
|
});
|
|
1532
1473
|
return /* @__PURE__ */ l.createElement("div", {
|
|
1533
1474
|
className: z,
|
|
1534
1475
|
style: o,
|
|
1535
|
-
ref:
|
|
1536
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1537
|
-
className: `${
|
|
1538
|
-
},
|
|
1476
|
+
ref: V
|
|
1477
|
+
}, /* @__PURE__ */ l.createElement(Ze, Object.assign({
|
|
1478
|
+
className: `${i}-row`
|
|
1479
|
+
}, Bt(j, [
|
|
1539
1480
|
"_internalItemRender",
|
|
1540
1481
|
"colon",
|
|
1541
1482
|
"dependencies",
|
|
@@ -1567,52 +1508,52 @@ function Xn(e) {
|
|
|
1567
1508
|
"valuePropName",
|
|
1568
1509
|
"wrapperCol",
|
|
1569
1510
|
"validateDebounce"
|
|
1570
|
-
])), /* @__PURE__ */ l.createElement(
|
|
1511
|
+
])), /* @__PURE__ */ l.createElement(Wn, Object.assign({
|
|
1571
1512
|
htmlFor: R
|
|
1572
1513
|
}, e, {
|
|
1573
1514
|
requiredMark: h,
|
|
1574
|
-
required:
|
|
1515
|
+
required: w ?? S,
|
|
1575
1516
|
prefixCls: t,
|
|
1576
1517
|
vertical: b
|
|
1577
|
-
})), /* @__PURE__ */ l.createElement(
|
|
1578
|
-
errors:
|
|
1579
|
-
warnings:
|
|
1518
|
+
})), /* @__PURE__ */ l.createElement(Vn, Object.assign({}, e, m, {
|
|
1519
|
+
errors: C,
|
|
1520
|
+
warnings: $,
|
|
1580
1521
|
prefixCls: t,
|
|
1581
1522
|
status: d,
|
|
1582
1523
|
help: s,
|
|
1583
|
-
marginBottom:
|
|
1584
|
-
onErrorVisibleChanged:
|
|
1585
|
-
}), /* @__PURE__ */ l.createElement(
|
|
1524
|
+
marginBottom: N,
|
|
1525
|
+
onErrorVisibleChanged: P
|
|
1526
|
+
}), /* @__PURE__ */ l.createElement(Ue.Provider, {
|
|
1586
1527
|
value: I
|
|
1587
1528
|
}, /* @__PURE__ */ l.createElement(ct, {
|
|
1588
1529
|
prefixCls: t,
|
|
1589
|
-
meta:
|
|
1590
|
-
errors:
|
|
1591
|
-
warnings:
|
|
1592
|
-
hasFeedback:
|
|
1530
|
+
meta: m,
|
|
1531
|
+
errors: m.errors,
|
|
1532
|
+
warnings: m.warnings,
|
|
1533
|
+
hasFeedback: E,
|
|
1593
1534
|
// Already calculated
|
|
1594
1535
|
validateStatus: d
|
|
1595
|
-
}, O)))), !!
|
|
1596
|
-
className: `${
|
|
1536
|
+
}, O)))), !!N && /* @__PURE__ */ l.createElement("div", {
|
|
1537
|
+
className: `${i}-margin-offset`,
|
|
1597
1538
|
style: {
|
|
1598
|
-
marginBottom: -
|
|
1539
|
+
marginBottom: -N
|
|
1599
1540
|
}
|
|
1600
1541
|
}));
|
|
1601
1542
|
}
|
|
1602
|
-
const
|
|
1603
|
-
function
|
|
1543
|
+
const qn = "__SPLIT__";
|
|
1544
|
+
function Bn(e, t) {
|
|
1604
1545
|
const r = Object.keys(e), n = Object.keys(t);
|
|
1605
1546
|
return r.length === n.length && r.every((o) => {
|
|
1606
|
-
const s = e[o],
|
|
1607
|
-
return s ===
|
|
1547
|
+
const s = e[o], a = t[o];
|
|
1548
|
+
return s === a || typeof s == "function" || typeof a == "function";
|
|
1608
1549
|
});
|
|
1609
1550
|
}
|
|
1610
|
-
const
|
|
1551
|
+
const Gn = /* @__PURE__ */ l.memo((e) => {
|
|
1611
1552
|
let {
|
|
1612
1553
|
children: t
|
|
1613
1554
|
} = e;
|
|
1614
1555
|
return t;
|
|
1615
|
-
}, (e, t) =>
|
|
1556
|
+
}, (e, t) => Bn(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((r, n) => r === t.childProps[n]));
|
|
1616
1557
|
function Ge() {
|
|
1617
1558
|
return {
|
|
1618
1559
|
errors: [],
|
|
@@ -1623,178 +1564,178 @@ function Ge() {
|
|
|
1623
1564
|
validated: !1
|
|
1624
1565
|
};
|
|
1625
1566
|
}
|
|
1626
|
-
function
|
|
1567
|
+
function Xn(e) {
|
|
1627
1568
|
const {
|
|
1628
1569
|
name: t,
|
|
1629
1570
|
noStyle: r,
|
|
1630
1571
|
className: n,
|
|
1631
1572
|
dependencies: o,
|
|
1632
1573
|
prefixCls: s,
|
|
1633
|
-
shouldUpdate:
|
|
1634
|
-
rules:
|
|
1635
|
-
children:
|
|
1636
|
-
required:
|
|
1637
|
-
label:
|
|
1638
|
-
messageVariables:
|
|
1574
|
+
shouldUpdate: a,
|
|
1575
|
+
rules: c,
|
|
1576
|
+
children: u,
|
|
1577
|
+
required: m,
|
|
1578
|
+
label: E,
|
|
1579
|
+
messageVariables: y,
|
|
1639
1580
|
trigger: O = "onChange",
|
|
1640
1581
|
validateTrigger: R,
|
|
1641
|
-
hidden:
|
|
1642
|
-
help:
|
|
1582
|
+
hidden: w,
|
|
1583
|
+
help: S,
|
|
1643
1584
|
layout: I
|
|
1644
1585
|
} = e, {
|
|
1645
|
-
getPrefixCls:
|
|
1646
|
-
} = l.useContext(
|
|
1647
|
-
name:
|
|
1648
|
-
} = l.useContext(ne),
|
|
1586
|
+
getPrefixCls: f
|
|
1587
|
+
} = l.useContext(ce), {
|
|
1588
|
+
name: j
|
|
1589
|
+
} = l.useContext(ne), i = In(u), h = typeof i == "function", p = l.useContext(Ue), {
|
|
1649
1590
|
validateTrigger: b
|
|
1650
|
-
} = l.useContext(
|
|
1651
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" &&
|
|
1652
|
-
const
|
|
1653
|
-
const _ =
|
|
1654
|
-
if (q(F.destroy ? Ge() : F, !0), r &&
|
|
1655
|
-
let
|
|
1591
|
+
} = l.useContext(Mt), V = R !== void 0 ? R : b, C = t != null, $ = f("form", s), g = Ee($), [M, H, N] = Ie($, g), x = be("Form.Item");
|
|
1592
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && x(t !== null, "usage", "`null` is passed as `name` property");
|
|
1593
|
+
const P = l.useContext(_t), A = l.useRef(null), [d, z] = Fn({}), [v, q] = Et(() => Ge()), T = (F) => {
|
|
1594
|
+
const _ = P == null ? void 0 : P.getKey(F.name);
|
|
1595
|
+
if (q(F.destroy ? Ge() : F, !0), r && S !== !1 && p) {
|
|
1596
|
+
let D = F.name;
|
|
1656
1597
|
if (F.destroy)
|
|
1657
|
-
|
|
1598
|
+
D = A.current || D;
|
|
1658
1599
|
else if (_ !== void 0) {
|
|
1659
1600
|
const [B, k] = _;
|
|
1660
|
-
|
|
1601
|
+
D = [B].concat(Y(k)), A.current = D;
|
|
1661
1602
|
}
|
|
1662
|
-
p(F,
|
|
1603
|
+
p(F, D);
|
|
1663
1604
|
}
|
|
1664
1605
|
}, G = (F, _) => {
|
|
1665
|
-
z((
|
|
1666
|
-
const B = Object.assign({},
|
|
1606
|
+
z((D) => {
|
|
1607
|
+
const B = Object.assign({}, D), te = [].concat(Y(F.name.slice(0, -1)), Y(_)).join(qn);
|
|
1667
1608
|
return F.destroy ? delete B[te] : B[te] = F, B;
|
|
1668
1609
|
});
|
|
1669
|
-
}, [X,
|
|
1670
|
-
const F =
|
|
1671
|
-
return Object.values(d).forEach((
|
|
1672
|
-
F.push.apply(F,
|
|
1610
|
+
}, [X, K] = l.useMemo(() => {
|
|
1611
|
+
const F = Y(v.errors), _ = Y(v.warnings);
|
|
1612
|
+
return Object.values(d).forEach((D) => {
|
|
1613
|
+
F.push.apply(F, Y(D.errors || [])), _.push.apply(_, Y(D.warnings || []));
|
|
1673
1614
|
}), [F, _];
|
|
1674
|
-
}, [d,
|
|
1675
|
-
function ee(F, _,
|
|
1676
|
-
return r && !
|
|
1677
|
-
prefixCls:
|
|
1615
|
+
}, [d, v.errors, v.warnings]), Z = Nn();
|
|
1616
|
+
function ee(F, _, D) {
|
|
1617
|
+
return r && !w ? /* @__PURE__ */ l.createElement(ct, {
|
|
1618
|
+
prefixCls: $,
|
|
1678
1619
|
hasFeedback: e.hasFeedback,
|
|
1679
1620
|
validateStatus: e.validateStatus,
|
|
1680
|
-
meta:
|
|
1621
|
+
meta: v,
|
|
1681
1622
|
errors: X,
|
|
1682
|
-
warnings:
|
|
1623
|
+
warnings: K,
|
|
1683
1624
|
noStyle: !0
|
|
1684
|
-
}, F) : /* @__PURE__ */ l.createElement(
|
|
1625
|
+
}, F) : /* @__PURE__ */ l.createElement(zn, Object.assign({
|
|
1685
1626
|
key: "row"
|
|
1686
1627
|
}, e, {
|
|
1687
|
-
className: J(n,
|
|
1688
|
-
prefixCls:
|
|
1628
|
+
className: J(n, N, g, H),
|
|
1629
|
+
prefixCls: $,
|
|
1689
1630
|
fieldId: _,
|
|
1690
|
-
isRequired:
|
|
1631
|
+
isRequired: D,
|
|
1691
1632
|
errors: X,
|
|
1692
|
-
warnings:
|
|
1693
|
-
meta:
|
|
1633
|
+
warnings: K,
|
|
1634
|
+
meta: v,
|
|
1694
1635
|
onSubItemMetaChange: G,
|
|
1695
1636
|
layout: I
|
|
1696
1637
|
}), F);
|
|
1697
1638
|
}
|
|
1698
|
-
if (!
|
|
1699
|
-
return
|
|
1700
|
-
let
|
|
1701
|
-
return typeof
|
|
1702
|
-
messageVariables:
|
|
1639
|
+
if (!C && !h && !o)
|
|
1640
|
+
return M(ee(i));
|
|
1641
|
+
let L = {};
|
|
1642
|
+
return typeof E == "string" ? L.label = E : t && (L.label = String(t)), y && (L = Object.assign(Object.assign({}, L), y)), M(/* @__PURE__ */ l.createElement(Rt, Object.assign({}, e, {
|
|
1643
|
+
messageVariables: L,
|
|
1703
1644
|
trigger: O,
|
|
1704
|
-
validateTrigger:
|
|
1645
|
+
validateTrigger: V,
|
|
1705
1646
|
onMetaChange: T
|
|
1706
|
-
}), (F, _,
|
|
1707
|
-
const B =
|
|
1647
|
+
}), (F, _, D) => {
|
|
1648
|
+
const B = ie(t).length && _ ? _.name : [], k = rt(B, j), te = m !== void 0 ? m : !!(c != null && c.some((W) => {
|
|
1708
1649
|
if (W && typeof W == "object" && W.required && !W.warningOnly)
|
|
1709
1650
|
return !0;
|
|
1710
1651
|
if (typeof W == "function") {
|
|
1711
|
-
const
|
|
1712
|
-
return (
|
|
1652
|
+
const se = W(D);
|
|
1653
|
+
return (se == null ? void 0 : se.required) && !(se != null && se.warningOnly);
|
|
1713
1654
|
}
|
|
1714
1655
|
return !1;
|
|
1715
1656
|
})), oe = Object.assign({}, F);
|
|
1716
|
-
let
|
|
1717
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1718
|
-
process.env.NODE_ENV !== "production" &&
|
|
1719
|
-
else if (h && (!(
|
|
1720
|
-
process.env.NODE_ENV !== "production" &&
|
|
1721
|
-
else if (o && !h && !
|
|
1722
|
-
process.env.NODE_ENV !== "production" &&
|
|
1723
|
-
else if (/* @__PURE__ */ l.isValidElement(
|
|
1724
|
-
process.env.NODE_ENV !== "production" &&
|
|
1725
|
-
const W = Object.assign(Object.assign({},
|
|
1726
|
-
if (W.id || (W.id = k),
|
|
1727
|
-
const
|
|
1728
|
-
(
|
|
1657
|
+
let le = null;
|
|
1658
|
+
if (process.env.NODE_ENV !== "production" && x(!(a && o), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(i) && C)
|
|
1659
|
+
process.env.NODE_ENV !== "production" && x(!1, "usage", "A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."), le = i;
|
|
1660
|
+
else if (h && (!(a || o) || C))
|
|
1661
|
+
process.env.NODE_ENV !== "production" && x(!!(a || o), "usage", "A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."), process.env.NODE_ENV !== "production" && x(!C, "usage", "A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");
|
|
1662
|
+
else if (o && !h && !C)
|
|
1663
|
+
process.env.NODE_ENV !== "production" && x(!1, "usage", "Must set `name` or use a render function when `dependencies` is set.");
|
|
1664
|
+
else if (/* @__PURE__ */ l.isValidElement(i)) {
|
|
1665
|
+
process.env.NODE_ENV !== "production" && x(i.props.defaultValue === void 0, "usage", "`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");
|
|
1666
|
+
const W = Object.assign(Object.assign({}, i.props), oe);
|
|
1667
|
+
if (W.id || (W.id = k), S || X.length > 0 || K.length > 0 || e.extra) {
|
|
1668
|
+
const ae = [];
|
|
1669
|
+
(S || X.length > 0) && ae.push(`${k}_help`), e.extra && ae.push(`${k}_extra`), W["aria-describedby"] = ae.join(" ");
|
|
1729
1670
|
}
|
|
1730
|
-
X.length > 0 && (W["aria-invalid"] = "true"), te && (W["aria-required"] = "true"),
|
|
1731
|
-
W[
|
|
1732
|
-
for (var Fe,
|
|
1733
|
-
xe[
|
|
1734
|
-
(ye = oe[
|
|
1671
|
+
X.length > 0 && (W["aria-invalid"] = "true"), te && (W["aria-required"] = "true"), Ot(i) && (W.ref = Z(B, i)), new Set([].concat(Y(ie(O)), Y(ie(V)))).forEach((ae) => {
|
|
1672
|
+
W[ae] = function() {
|
|
1673
|
+
for (var Fe, Ne, ye, je, $e, Me = arguments.length, xe = new Array(Me), ue = 0; ue < Me; ue++)
|
|
1674
|
+
xe[ue] = arguments[ue];
|
|
1675
|
+
(ye = oe[ae]) === null || ye === void 0 || (Fe = ye).call.apply(Fe, [oe].concat(xe)), ($e = (je = i.props)[ae]) === null || $e === void 0 || (Ne = $e).call.apply(Ne, [je].concat(xe));
|
|
1735
1676
|
};
|
|
1736
1677
|
});
|
|
1737
1678
|
const dt = [W["aria-required"], W["aria-invalid"], W["aria-describedby"]];
|
|
1738
|
-
|
|
1679
|
+
le = /* @__PURE__ */ l.createElement(Gn, {
|
|
1739
1680
|
control: oe,
|
|
1740
|
-
update:
|
|
1681
|
+
update: i,
|
|
1741
1682
|
childProps: dt
|
|
1742
|
-
},
|
|
1743
|
-
} else h && (
|
|
1744
|
-
return ee(
|
|
1683
|
+
}, At(i, W));
|
|
1684
|
+
} else h && (a || o) && !C ? le = i(D) : (process.env.NODE_ENV !== "production" && x(!B.length || !!r, "usage", "`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."), le = i);
|
|
1685
|
+
return ee(le, k, te);
|
|
1745
1686
|
}));
|
|
1746
1687
|
}
|
|
1747
|
-
const ut =
|
|
1688
|
+
const ut = Xn;
|
|
1748
1689
|
ut.useStatus = at;
|
|
1749
|
-
var
|
|
1690
|
+
var kn = function(e, t) {
|
|
1750
1691
|
var r = {};
|
|
1751
1692
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1752
1693
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1753
1694
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1754
1695
|
return r;
|
|
1755
1696
|
};
|
|
1756
|
-
const
|
|
1697
|
+
const Kn = (e) => {
|
|
1757
1698
|
var {
|
|
1758
1699
|
prefixCls: t,
|
|
1759
1700
|
children: r
|
|
1760
|
-
} = e, n =
|
|
1701
|
+
} = e, n = kn(e, ["prefixCls", "children"]);
|
|
1761
1702
|
if (process.env.NODE_ENV !== "production") {
|
|
1762
|
-
const
|
|
1763
|
-
process.env.NODE_ENV !== "production" &&
|
|
1703
|
+
const c = be("Form.List");
|
|
1704
|
+
process.env.NODE_ENV !== "production" && c(typeof n.name == "number" || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
|
|
1764
1705
|
}
|
|
1765
1706
|
const {
|
|
1766
1707
|
getPrefixCls: o
|
|
1767
|
-
} = l.useContext(
|
|
1708
|
+
} = l.useContext(ce), s = o("form", t), a = l.useMemo(() => ({
|
|
1768
1709
|
prefixCls: s,
|
|
1769
1710
|
status: "error"
|
|
1770
1711
|
}), [s]);
|
|
1771
|
-
return /* @__PURE__ */ l.createElement(Vt, Object.assign({}, n), (
|
|
1772
|
-
value:
|
|
1773
|
-
}, r(
|
|
1774
|
-
fieldKey:
|
|
1775
|
-
})),
|
|
1776
|
-
errors:
|
|
1777
|
-
warnings:
|
|
1712
|
+
return /* @__PURE__ */ l.createElement(Vt, Object.assign({}, n), (c, u, m) => /* @__PURE__ */ l.createElement(Se.Provider, {
|
|
1713
|
+
value: a
|
|
1714
|
+
}, r(c.map((E) => Object.assign(Object.assign({}, E), {
|
|
1715
|
+
fieldKey: E.key
|
|
1716
|
+
})), u, {
|
|
1717
|
+
errors: m.errors,
|
|
1718
|
+
warnings: m.warnings
|
|
1778
1719
|
})));
|
|
1779
1720
|
};
|
|
1780
|
-
function
|
|
1721
|
+
function Yn() {
|
|
1781
1722
|
const {
|
|
1782
1723
|
form: e
|
|
1783
1724
|
} = l.useContext(ne);
|
|
1784
1725
|
return e;
|
|
1785
1726
|
}
|
|
1786
|
-
const re =
|
|
1727
|
+
const re = st;
|
|
1787
1728
|
re.Item = ut;
|
|
1788
|
-
re.List =
|
|
1789
|
-
re.ErrorList =
|
|
1729
|
+
re.List = Kn;
|
|
1730
|
+
re.ErrorList = nt;
|
|
1790
1731
|
re.useForm = lt;
|
|
1791
|
-
re.useFormInstance =
|
|
1792
|
-
re.useWatch =
|
|
1793
|
-
re.Provider =
|
|
1732
|
+
re.useFormInstance = Yn;
|
|
1733
|
+
re.useWatch = Pt;
|
|
1734
|
+
re.Provider = Ye;
|
|
1794
1735
|
re.create = () => {
|
|
1795
|
-
process.env.NODE_ENV !== "production" &&
|
|
1736
|
+
process.env.NODE_ENV !== "production" && It(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
|
|
1796
1737
|
};
|
|
1797
|
-
const
|
|
1738
|
+
const yr = ft(re)`
|
|
1798
1739
|
label,
|
|
1799
1740
|
.ant-form-item-label > label,
|
|
1800
1741
|
.ant-form-item-required,
|
|
@@ -1803,6 +1744,9 @@ const hr = ft(re)`
|
|
|
1803
1744
|
}
|
|
1804
1745
|
`;
|
|
1805
1746
|
export {
|
|
1747
|
+
Oe as C,
|
|
1806
1748
|
re as F,
|
|
1807
|
-
|
|
1749
|
+
Ze as R,
|
|
1750
|
+
yr as a,
|
|
1751
|
+
cn as g
|
|
1808
1752
|
};
|