@cloudtower/eagle 0.27.53 → 0.27.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/UIKitProvider/index.js +77 -0
- package/dist/cjs/core/AccordionCard/index.js +59 -0
- package/dist/cjs/core/Alert/index.js +80 -0
- package/dist/cjs/core/Arch/index.js +17 -0
- package/dist/cjs/core/Badge/index.js +51 -0
- package/dist/cjs/core/BaseIcon/index.js +76 -0
- package/dist/cjs/core/Bit/index.js +40 -0
- package/dist/cjs/core/BitPerSecond/index.js +40 -0
- package/dist/cjs/core/Bps/index.js +40 -0
- package/dist/cjs/core/Breadcrumb/index.js +58 -0
- package/dist/cjs/core/Button/HoverableElement.js +14 -0
- package/dist/cjs/core/Button/index.js +89 -0
- package/dist/cjs/core/ButtonGroup/index.js +110 -0
- package/dist/cjs/core/Byte/index.js +49 -0
- package/dist/cjs/core/Calendar/index.js +25 -0
- package/dist/cjs/core/Card/CardBody.js +12 -0
- package/dist/cjs/core/Card/CardTitle.js +12 -0
- package/dist/cjs/core/Card/CardWrapper.js +55 -0
- package/dist/cjs/core/Card/index.js +94 -0
- package/dist/cjs/core/Cascader/cascader.style.js +23 -0
- package/dist/cjs/core/Cascader/cascader.widget.js +86 -0
- package/dist/cjs/core/Cascader/index.js +74 -0
- package/dist/cjs/core/Checkbox/checkbox.style.js +5 -0
- package/dist/cjs/core/Checkbox/index.js +53 -0
- package/dist/cjs/core/DetailCard/index.js +23 -0
- package/dist/cjs/core/DonutChart/index.js +167 -0
- package/dist/cjs/core/DropdownMenu/index.js +66 -0
- package/dist/cjs/core/Empty/index.js +11 -0
- package/dist/cjs/core/ExpandableList/ExpandIcon.js +17 -0
- package/dist/cjs/core/ExpandableList/ExpandableContainer.js +17 -0
- package/dist/cjs/core/ExpandableList/ExpandableItem.js +48 -0
- package/dist/cjs/core/ExpandableList/RoundOrder.js +22 -0
- package/dist/cjs/core/FailedLoad/index.js +32 -0
- package/dist/cjs/core/Fields/FieldsBoolean/index.js +47 -0
- package/dist/cjs/core/Fields/FieldsDateTime/index.js +24 -0
- package/dist/cjs/core/Fields/FieldsDateTimeRange/index.js +50 -0
- package/dist/cjs/core/Fields/FieldsEnum/index.js +60 -0
- package/dist/cjs/core/Fields/FieldsFloat/index.js +60 -0
- package/dist/cjs/core/Fields/FieldsInt/index.js +78 -0
- package/dist/cjs/core/Fields/FieldsInteger/index.js +57 -0
- package/dist/cjs/core/Fields/FieldsString/index.js +116 -0
- package/dist/cjs/core/Fields/FieldsTextArea/index.js +64 -0
- package/dist/cjs/core/Fields/FieldsTimePicker/index.js +54 -0
- package/dist/cjs/core/Fields/index.js +28 -0
- package/dist/cjs/core/Form/index.js +10 -0
- package/dist/cjs/core/FormItem/index.js +38 -0
- package/dist/cjs/core/Frequency/index.js +40 -0
- package/dist/cjs/core/Icon/index.js +117 -0
- package/dist/cjs/core/Input/index.js +66 -0
- package/dist/cjs/core/InputGroup/index.js +14 -0
- package/dist/cjs/core/InputInteger/formatterInteger.js +15 -0
- package/dist/cjs/core/InputInteger/index.js +97 -0
- package/dist/cjs/core/InputNumber/index.js +90 -0
- package/dist/cjs/core/InputTagItem/index.js +12 -0
- package/dist/cjs/core/KitStoreProvider/index.js +23 -0
- package/dist/cjs/core/Link/index.js +56 -0
- package/dist/cjs/core/Loading/index.js +33 -0
- package/dist/cjs/core/Loading/style.js +11 -0
- package/dist/cjs/core/Metric/metric.js +21 -0
- package/dist/cjs/core/Modal/index.js +214 -0
- package/dist/cjs/core/ModalStack/index.js +47 -0
- package/dist/cjs/core/Overflow/index.js +117 -0
- package/dist/cjs/core/Pagination/index.js +120 -0
- package/dist/cjs/core/ParrotTrans/index.js +28 -0
- package/dist/cjs/core/Percent/index.js +41 -0
- package/dist/cjs/core/Progress/index.js +25 -0
- package/dist/cjs/core/Radio/index.js +142 -0
- package/dist/cjs/core/SearchInput/index.js +50 -0
- package/dist/cjs/core/Second/index.js +43 -0
- package/dist/cjs/core/SegmentControl/index.js +43 -0
- package/dist/cjs/core/Select/index.js +140 -0
- package/dist/cjs/core/SimplePagination/index.js +90 -0
- package/dist/cjs/core/Speed/index.js +40 -0
- package/dist/cjs/core/StatusCapsule/index.js +100 -0
- package/dist/cjs/core/StepProgress/index.js +44 -0
- package/dist/cjs/core/Steps/index.js +126 -0
- package/dist/cjs/core/Steps/style.js +13 -0
- package/dist/cjs/core/Styled/index.js +57 -0
- package/dist/cjs/core/Switch/index.js +61 -0
- package/dist/cjs/core/Table/TableWidget.js +47 -0
- package/dist/cjs/core/Table/common.js +46 -0
- package/dist/cjs/core/Table/index.js +112 -0
- package/dist/cjs/core/TableForm/AddRowButton.js +108 -0
- package/dist/cjs/core/TableForm/Columns/AffixColumn.js +48 -0
- package/dist/cjs/core/TableForm/Columns/CheckboxColumn.js +35 -0
- package/dist/cjs/core/TableForm/Columns/FormItem.js +20 -0
- package/dist/cjs/core/TableForm/Columns/InputColumn.js +117 -0
- package/dist/cjs/core/TableForm/Columns/TextColumn.js +44 -0
- package/dist/cjs/core/TableForm/Columns/index.js +24 -0
- package/dist/cjs/core/TableForm/TableFormBodyCell.js +165 -0
- package/dist/cjs/core/TableForm/TableFormBodyRows.js +215 -0
- package/dist/cjs/core/TableForm/TableFormHeaderCell.js +93 -0
- package/dist/cjs/core/TableForm/index.js +187 -0
- package/dist/cjs/core/TableForm/style.js +35 -0
- package/dist/cjs/core/TableForm/types.js +10 -0
- package/dist/cjs/core/TableForm/utils.js +36 -0
- package/dist/cjs/core/Tag/SplitTag.js +64 -0
- package/dist/cjs/core/Tag/const.js +12 -0
- package/dist/cjs/core/Tag/index.js +96 -0
- package/dist/cjs/core/Tag/style.js +14 -0
- package/dist/cjs/core/TextArea/index.js +72 -0
- package/dist/cjs/core/Time/index.js +31 -0
- package/dist/cjs/core/TimePicker/index.js +66 -0
- package/dist/cjs/core/TimeZoneSelect/index.js +165 -0
- package/dist/cjs/core/Token/index.js +86 -0
- package/dist/cjs/core/Token/style.js +5 -0
- package/dist/cjs/core/Tooltip/index.js +89 -0
- package/dist/cjs/core/Truncate/index.js +49 -0
- package/dist/cjs/core/Typo/index.js +130 -0
- package/dist/cjs/core/antd.js +208 -0
- package/dist/cjs/core/message/index.js +203 -0
- package/dist/cjs/core/message-group/index.js +147 -0
- package/dist/cjs/coreX/BarChart/index.js +39 -0
- package/dist/cjs/coreX/BatchOperation/index.js +149 -0
- package/dist/cjs/coreX/ChartWithTooltip/index.js +154 -0
- package/dist/cjs/coreX/Counting/index.js +22 -0
- package/dist/cjs/coreX/CronCalendar/index.js +105 -0
- package/dist/cjs/coreX/CronPlan/index.js +462 -0
- package/dist/cjs/coreX/DateRangePicker/AbsoluteDate.js +179 -0
- package/dist/cjs/coreX/DateRangePicker/Calendar.js +286 -0
- package/dist/cjs/coreX/DateRangePicker/DateRangePicker.style.js +84 -0
- package/dist/cjs/coreX/DateRangePicker/InputTime.js +151 -0
- package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +53 -0
- package/dist/cjs/coreX/DateRangePicker/common.js +195 -0
- package/dist/cjs/coreX/DateRangePicker/index.js +331 -0
- package/dist/cjs/coreX/DeprecatedDonutChart/index.js +39 -0
- package/dist/cjs/coreX/DropdownTransition/index.js +73 -0
- package/dist/cjs/coreX/GoBackButton/index.js +45 -0
- package/dist/cjs/coreX/I18nNameTag/index.js +37 -0
- package/dist/cjs/coreX/NamesTooltip/index.js +34 -0
- package/dist/cjs/coreX/OverflowTooltip/index.js +92 -0
- package/dist/cjs/coreX/SidebarSubtitle/index.js +13 -0
- package/dist/cjs/coreX/SortableList/index.js +33 -0
- package/dist/cjs/coreX/SummaryTable/index.js +113 -0
- package/dist/cjs/coreX/SwitchWithText/index.js +59 -0
- package/dist/cjs/coreX/TabMenu/index.js +152 -0
- package/dist/cjs/coreX/TruncatedTextWithTooltip/index.js +69 -0
- package/dist/cjs/coreX/UnitWithChart/index.js +118 -0
- package/dist/cjs/coreX/common/getCalendarTitle.js +26 -0
- package/dist/cjs/hooks/useElementIntersectionRatio.js +30 -0
- package/dist/cjs/hooks/useElementResize.js +69 -0
- package/dist/cjs/hooks/useElementsSize.js +58 -0
- package/dist/cjs/hooks/useMemoCompare.js +17 -0
- package/dist/cjs/hooks/useParrotTranslation.js +13 -0
- package/dist/cjs/index.js +120 -0
- package/dist/cjs/spec/type.js +9 -0
- package/dist/{umd → cjs}/stats1.html +1 -1
- package/dist/cjs/store/chart.js +65 -0
- package/dist/cjs/store/index.js +48 -0
- package/dist/cjs/store/modal.js +67 -0
- package/dist/cjs/styles/token/color.js +273 -0
- package/dist/cjs/utils/constants.js +8 -0
- package/dist/cjs/utils/cron-time.js +450 -0
- package/dist/cjs/utils/dom.js +16 -0
- package/dist/cjs/utils/icon.js +22 -0
- package/dist/cjs/utils/isEmpty.js +12 -0
- package/dist/cjs/utils/time.js +86 -0
- package/dist/cjs/utils/tower.js +188 -0
- package/dist/components.css +3101 -2209
- package/dist/esm/UIKitProvider/index.js +71 -0
- package/dist/esm/core/AccordionCard/index.js +57 -0
- package/dist/esm/core/Alert/index.js +78 -0
- package/dist/esm/core/Arch/index.js +15 -0
- package/dist/esm/core/Badge/index.js +49 -0
- package/dist/esm/core/BaseIcon/index.js +74 -0
- package/dist/esm/core/Bit/index.js +38 -0
- package/dist/esm/core/BitPerSecond/index.js +38 -0
- package/dist/esm/core/Bps/index.js +38 -0
- package/dist/esm/core/Breadcrumb/index.js +53 -0
- package/dist/esm/core/Button/HoverableElement.js +12 -0
- package/dist/esm/core/Button/index.js +87 -0
- package/dist/esm/core/ButtonGroup/index.js +105 -0
- package/dist/esm/core/Byte/index.js +47 -0
- package/dist/esm/core/Calendar/index.js +23 -0
- package/dist/esm/core/Card/CardBody.js +10 -0
- package/dist/esm/core/Card/CardTitle.js +10 -0
- package/dist/esm/core/Card/CardWrapper.js +53 -0
- package/dist/esm/core/Card/index.js +92 -0
- package/dist/esm/core/Cascader/cascader.style.js +12 -0
- package/dist/esm/core/Cascader/cascader.widget.js +79 -0
- package/dist/esm/core/Cascader/index.js +72 -0
- package/dist/esm/core/Checkbox/checkbox.style.js +3 -0
- package/dist/esm/core/Checkbox/index.js +51 -0
- package/dist/esm/core/DetailCard/index.js +21 -0
- package/dist/esm/core/DonutChart/index.js +161 -0
- package/dist/esm/core/DropdownMenu/index.js +61 -0
- package/dist/esm/core/Empty/index.js +9 -0
- package/dist/esm/core/ExpandableList/ExpandIcon.js +15 -0
- package/dist/esm/core/ExpandableList/ExpandableContainer.js +15 -0
- package/dist/esm/core/ExpandableList/ExpandableItem.js +46 -0
- package/dist/esm/core/ExpandableList/RoundOrder.js +20 -0
- package/dist/esm/core/FailedLoad/index.js +30 -0
- package/dist/esm/core/Fields/FieldsBoolean/index.js +45 -0
- package/dist/esm/core/Fields/FieldsDateTime/index.js +22 -0
- package/dist/esm/core/Fields/FieldsDateTimeRange/index.js +48 -0
- package/dist/esm/core/Fields/FieldsEnum/index.js +58 -0
- package/dist/esm/core/Fields/FieldsFloat/index.js +58 -0
- package/dist/esm/core/Fields/FieldsInt/index.js +76 -0
- package/dist/esm/core/Fields/FieldsInteger/index.js +55 -0
- package/dist/esm/core/Fields/FieldsString/index.js +114 -0
- package/dist/esm/core/Fields/FieldsTextArea/index.js +62 -0
- package/dist/esm/core/Fields/FieldsTimePicker/index.js +52 -0
- package/dist/esm/core/Fields/index.js +26 -0
- package/dist/esm/core/Form/index.js +8 -0
- package/dist/esm/core/FormItem/index.js +36 -0
- package/dist/esm/core/Frequency/index.js +38 -0
- package/dist/esm/core/Icon/index.js +115 -0
- package/dist/esm/core/Input/index.js +64 -0
- package/dist/esm/core/InputGroup/index.js +12 -0
- package/dist/esm/core/InputInteger/formatterInteger.js +13 -0
- package/dist/esm/core/InputInteger/index.js +92 -0
- package/dist/esm/core/InputNumber/index.js +85 -0
- package/dist/esm/core/InputTagItem/index.js +10 -0
- package/dist/esm/core/KitStoreProvider/index.js +17 -0
- package/dist/esm/core/Link/index.js +54 -0
- package/dist/esm/core/Loading/index.js +31 -0
- package/dist/esm/core/Loading/style.js +6 -0
- package/dist/esm/core/Metric/metric.js +19 -0
- package/dist/esm/core/Modal/index.js +212 -0
- package/dist/esm/core/ModalStack/index.js +45 -0
- package/dist/esm/core/Overflow/index.js +112 -0
- package/dist/esm/core/Pagination/index.js +115 -0
- package/dist/esm/core/ParrotTrans/index.js +26 -0
- package/dist/esm/core/Percent/index.js +39 -0
- package/dist/esm/core/Progress/index.js +23 -0
- package/dist/esm/core/Radio/index.js +136 -0
- package/dist/esm/core/SearchInput/index.js +48 -0
- package/dist/esm/core/Second/index.js +41 -0
- package/dist/esm/core/SegmentControl/index.js +41 -0
- package/dist/esm/core/Select/index.js +138 -0
- package/dist/esm/core/SimplePagination/index.js +88 -0
- package/dist/esm/core/Speed/index.js +38 -0
- package/dist/esm/core/StatusCapsule/index.js +94 -0
- package/dist/esm/core/StepProgress/index.js +42 -0
- package/dist/esm/core/Steps/index.js +124 -0
- package/dist/esm/core/Steps/style.js +7 -0
- package/dist/esm/core/Styled/index.js +45 -0
- package/dist/esm/core/Switch/index.js +59 -0
- package/dist/esm/core/Table/TableWidget.js +44 -0
- package/dist/esm/core/Table/common.js +44 -0
- package/dist/esm/core/Table/index.js +104 -0
- package/dist/esm/core/TableForm/AddRowButton.js +106 -0
- package/dist/esm/core/TableForm/Columns/AffixColumn.js +46 -0
- package/dist/esm/core/TableForm/Columns/CheckboxColumn.js +32 -0
- package/dist/esm/core/TableForm/Columns/FormItem.js +18 -0
- package/dist/esm/core/TableForm/Columns/InputColumn.js +114 -0
- package/dist/esm/core/TableForm/Columns/TextColumn.js +41 -0
- package/dist/esm/core/TableForm/Columns/index.js +21 -0
- package/dist/esm/core/TableForm/TableFormBodyCell.js +163 -0
- package/dist/esm/core/TableForm/TableFormBodyRows.js +213 -0
- package/dist/esm/core/TableForm/TableFormHeaderCell.js +91 -0
- package/dist/esm/core/TableForm/index.js +185 -0
- package/dist/esm/core/TableForm/style.js +27 -0
- package/dist/esm/core/TableForm/types.js +8 -0
- package/dist/esm/core/TableForm/utils.js +32 -0
- package/dist/esm/core/Tag/SplitTag.js +62 -0
- package/dist/esm/core/Tag/const.js +10 -0
- package/dist/esm/core/Tag/index.js +91 -0
- package/dist/esm/core/Tag/style.js +9 -0
- package/dist/esm/core/TextArea/index.js +70 -0
- package/dist/esm/core/Time/index.js +29 -0
- package/dist/esm/core/TimePicker/index.js +64 -0
- package/dist/esm/core/TimeZoneSelect/index.js +163 -0
- package/dist/esm/core/Token/index.js +81 -0
- package/dist/esm/core/Token/style.js +3 -0
- package/dist/esm/core/Tooltip/index.js +87 -0
- package/dist/esm/core/Truncate/index.js +47 -0
- package/dist/esm/core/Typo/index.js +128 -0
- package/dist/esm/core/antd.js +205 -0
- package/dist/esm/core/message/index.js +179 -0
- package/dist/esm/core/message-group/index.js +143 -0
- package/dist/esm/coreX/BarChart/index.js +34 -0
- package/dist/esm/coreX/BatchOperation/index.js +144 -0
- package/dist/esm/coreX/ChartWithTooltip/index.js +149 -0
- package/dist/esm/coreX/Counting/index.js +20 -0
- package/dist/esm/coreX/CronCalendar/index.js +103 -0
- package/dist/esm/coreX/CronPlan/index.js +457 -0
- package/dist/esm/coreX/DateRangePicker/AbsoluteDate.js +177 -0
- package/dist/esm/coreX/DateRangePicker/Calendar.js +284 -0
- package/dist/esm/coreX/DateRangePicker/DateRangePicker.style.js +77 -0
- package/dist/esm/coreX/DateRangePicker/InputTime.js +149 -0
- package/dist/esm/coreX/DateRangePicker/RelativeTime.js +51 -0
- package/dist/esm/coreX/DateRangePicker/common.js +183 -0
- package/dist/esm/coreX/DateRangePicker/index.js +325 -0
- package/dist/esm/coreX/DeprecatedDonutChart/index.js +37 -0
- package/dist/esm/coreX/DropdownTransition/index.js +71 -0
- package/dist/esm/coreX/GoBackButton/index.js +43 -0
- package/dist/esm/coreX/I18nNameTag/index.js +35 -0
- package/dist/esm/coreX/NamesTooltip/index.js +32 -0
- package/dist/esm/coreX/OverflowTooltip/index.js +90 -0
- package/dist/esm/coreX/SidebarSubtitle/index.js +11 -0
- package/dist/esm/coreX/SortableList/index.js +31 -0
- package/dist/esm/coreX/SummaryTable/index.js +108 -0
- package/dist/esm/coreX/SwitchWithText/index.js +57 -0
- package/dist/esm/coreX/TabMenu/index.js +150 -0
- package/dist/esm/coreX/TruncatedTextWithTooltip/index.js +67 -0
- package/dist/esm/coreX/UnitWithChart/index.js +113 -0
- package/dist/esm/coreX/common/getCalendarTitle.js +24 -0
- package/dist/esm/hooks/useElementIntersectionRatio.js +28 -0
- package/dist/esm/hooks/useElementResize.js +67 -0
- package/dist/esm/hooks/useElementsSize.js +56 -0
- package/dist/esm/hooks/useMemoCompare.js +15 -0
- package/dist/esm/hooks/useParrotTranslation.js +11 -0
- package/dist/esm/index.js +34 -10233
- package/dist/esm/spec/type.js +7 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/store/chart.js +62 -0
- package/dist/esm/store/index.js +37 -0
- package/dist/esm/store/modal.js +63 -0
- package/dist/esm/styles/token/color.js +271 -0
- package/dist/esm/utils/constants.js +5 -0
- package/dist/esm/utils/cron-time.js +448 -0
- package/dist/esm/utils/dom.js +14 -0
- package/dist/esm/utils/icon.js +20 -0
- package/dist/esm/utils/isEmpty.js +10 -0
- package/dist/esm/utils/time.js +76 -0
- package/dist/esm/utils/tower.js +173 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/style.css +2011 -2011
- package/dist/token.css +209 -415
- package/package.json +8 -6
- package/dist/src/styles/token/token.d.ts +0 -1
- package/dist/umd/index.js +0 -10322
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
const d1_bold_title = "dsnbhzf";
|
|
2
|
+
const d1s_bold_title = "d1mvo22k";
|
|
3
|
+
const d1_regular_title = "d1b444tr";
|
|
4
|
+
const d2_bold_title = "dvs0kue";
|
|
5
|
+
const d2_regular_title = "d1hcbfcq";
|
|
6
|
+
const d3_bold_title = "d1cz922v";
|
|
7
|
+
const d3_regular_title = "d3nzbrm";
|
|
8
|
+
const h1_bold_title = "h1g0p5ob";
|
|
9
|
+
const h1_regular_title = "hydo2ej";
|
|
10
|
+
const h2_bold_title = "h1hbuq0r";
|
|
11
|
+
const h2_regular_title = "h13bondg";
|
|
12
|
+
const h3_bold_title = "h1mhvdlx";
|
|
13
|
+
const h3_regular_title = "h1inmfq6";
|
|
14
|
+
const h3_bold_upper = "h1kfc0la";
|
|
15
|
+
const h3_regular_upper = "h10xnyuu";
|
|
16
|
+
const l1_regular = "lrcmi0v";
|
|
17
|
+
const l1_bold = "lzt43lp";
|
|
18
|
+
const l1_regular_title = "l5yc9nt";
|
|
19
|
+
const l1_bold_title = "l1fbkbzo";
|
|
20
|
+
const l1_regular_upper = "lahvcax";
|
|
21
|
+
const l1_bold_upper = "l11q3pxd";
|
|
22
|
+
const l2_regular = "lfuc2qu";
|
|
23
|
+
const l2_medium = "l1jmp8r0";
|
|
24
|
+
const l2_bold = "lcnm221";
|
|
25
|
+
const l2_regular_title = "lu1z2n5";
|
|
26
|
+
const l2_bold_title = "l1r59djn";
|
|
27
|
+
const l2_regular_upper = "ljm2911";
|
|
28
|
+
const l2_bold_upper = "l124mzmr";
|
|
29
|
+
const l3_regular = "lb3chel";
|
|
30
|
+
const l3_semibold = "lv9jstu";
|
|
31
|
+
const l3_bold = "lwqlh3x";
|
|
32
|
+
const l3_regular_title = "lalum9y";
|
|
33
|
+
const l3_semibold_title = "l1t6dj5o";
|
|
34
|
+
const l3_bold_title = "l12f6ic";
|
|
35
|
+
const l3_regular_upper = "l7gmukq";
|
|
36
|
+
const l3_bold_upper = "lkwl0yp";
|
|
37
|
+
const l4_regular = "l10knv48";
|
|
38
|
+
const l4_medium = "l6526ld";
|
|
39
|
+
const l4_bold = "l1j81vli";
|
|
40
|
+
const l4_regular_title = "l1x7n1mk";
|
|
41
|
+
const l4_medium_title = "l9fqufz";
|
|
42
|
+
const l4_bold_title = "l1iwnybd";
|
|
43
|
+
const l4_regular_upper = "lprtm1e";
|
|
44
|
+
const l4_bold_upper = "l1lln87h";
|
|
45
|
+
const f1_regular = "f2pb48l";
|
|
46
|
+
const f1_regular_title = "fi9emkw";
|
|
47
|
+
const f2_regular = "f1nrg7da";
|
|
48
|
+
const f2_regular_title = "f17k1i3n";
|
|
49
|
+
const t1_regular_mono = "t1tvuj2e";
|
|
50
|
+
const t1_regular_slash = "t17uajlu";
|
|
51
|
+
const t2_regular_mono = "t114zbyz";
|
|
52
|
+
const t2_medium_mono = "t1il0kvi";
|
|
53
|
+
const t2_regular_slash = "t10dv8p1";
|
|
54
|
+
const t2_medium_slash = "tc2oqpq";
|
|
55
|
+
const t16_bold_slash = "tzvddmc";
|
|
56
|
+
const u1 = "u18llj45";
|
|
57
|
+
const Typo = {
|
|
58
|
+
Display: {
|
|
59
|
+
d1_bold_title,
|
|
60
|
+
d1s_bold_title,
|
|
61
|
+
d1_regular_title,
|
|
62
|
+
d2_bold_title,
|
|
63
|
+
d2_regular_title,
|
|
64
|
+
d3_bold_title,
|
|
65
|
+
d3_regular_title
|
|
66
|
+
},
|
|
67
|
+
Heading: {
|
|
68
|
+
h1_bold_title,
|
|
69
|
+
h1_regular_title,
|
|
70
|
+
h2_bold_title,
|
|
71
|
+
h2_regular_title,
|
|
72
|
+
h3_bold_title,
|
|
73
|
+
h3_bold_upper,
|
|
74
|
+
h3_regular_title,
|
|
75
|
+
h3_regular_upper
|
|
76
|
+
},
|
|
77
|
+
Label: {
|
|
78
|
+
l1_bold,
|
|
79
|
+
l1_bold_title,
|
|
80
|
+
l1_bold_upper,
|
|
81
|
+
l1_regular,
|
|
82
|
+
l1_regular_title,
|
|
83
|
+
l1_regular_upper,
|
|
84
|
+
l2_bold,
|
|
85
|
+
l2_bold_title,
|
|
86
|
+
l2_bold_upper,
|
|
87
|
+
l2_regular,
|
|
88
|
+
l2_regular_title,
|
|
89
|
+
l2_regular_upper,
|
|
90
|
+
l2_medium,
|
|
91
|
+
l3_bold,
|
|
92
|
+
l3_semibold,
|
|
93
|
+
l3_bold_title,
|
|
94
|
+
l3_bold_upper,
|
|
95
|
+
l3_regular,
|
|
96
|
+
l3_regular_title,
|
|
97
|
+
l3_semibold_title,
|
|
98
|
+
l3_regular_upper,
|
|
99
|
+
l4_bold,
|
|
100
|
+
l4_bold_title,
|
|
101
|
+
l4_bold_upper,
|
|
102
|
+
l4_regular,
|
|
103
|
+
l4_medium,
|
|
104
|
+
l4_regular_title,
|
|
105
|
+
l4_medium_title,
|
|
106
|
+
l4_regular_upper
|
|
107
|
+
},
|
|
108
|
+
Footnote: {
|
|
109
|
+
f1_regular,
|
|
110
|
+
f1_regular_title,
|
|
111
|
+
f2_regular,
|
|
112
|
+
f2_regular_title
|
|
113
|
+
},
|
|
114
|
+
Tabular: {
|
|
115
|
+
t1_regular_mono,
|
|
116
|
+
t1_regular_slash,
|
|
117
|
+
t2_regular_mono,
|
|
118
|
+
t2_medium_mono,
|
|
119
|
+
t2_regular_slash,
|
|
120
|
+
t2_medium_slash,
|
|
121
|
+
t16_bold_slash
|
|
122
|
+
},
|
|
123
|
+
UNKNOWN: {
|
|
124
|
+
u1
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export { Typo };
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { Select as Select$1, Row, Col, Dropdown, Tree, Divider, Skeleton, List, Menu, Layout, AutoComplete, Popover, Space, Timeline, Checkbox as Checkbox$1, Typography, Upload, DatePicker, TimePicker, Tabs, Badge as Badge$1, message, Button as Button$1, Tooltip as Tooltip$1, Modal as Modal$1, Input as Input$1, Table as Table$1, Empty as Empty$1, Switch as Switch$1, Collapse, TreeSelect, Drawer, Steps as Steps$1 } from 'antd';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import AccordionCard from './AccordionCard/index.js';
|
|
4
|
+
import Breadcrumb from './Breadcrumb/index.js';
|
|
5
|
+
import DetailCard from './DetailCard/index.js';
|
|
6
|
+
import DonutChart from './DonutChart/index.js';
|
|
7
|
+
import DropdownMenu from './DropdownMenu/index.js';
|
|
8
|
+
import SegmentControl from './SegmentControl/index.js';
|
|
9
|
+
import { CircleProgress } from './StepProgress/index.js';
|
|
10
|
+
import BatchOperation from '../coreX/BatchOperation/index.js';
|
|
11
|
+
import ChartWithTooltip, { ChartWithUnit } from '../coreX/ChartWithTooltip/index.js';
|
|
12
|
+
import Counting from '../coreX/Counting/index.js';
|
|
13
|
+
import CronCalendar from '../coreX/CronCalendar/index.js';
|
|
14
|
+
import CronPlan from '../coreX/CronPlan/index.js';
|
|
15
|
+
import DeprecatedDonutChart from '../coreX/DeprecatedDonutChart/index.js';
|
|
16
|
+
import DropdownTransition from '../coreX/DropdownTransition/index.js';
|
|
17
|
+
import GoBackButton from '../coreX/GoBackButton/index.js';
|
|
18
|
+
import I18nNameTag from '../coreX/I18nNameTag/index.js';
|
|
19
|
+
import NamesTooltip from '../coreX/NamesTooltip/index.js';
|
|
20
|
+
import OverflowTooltip from '../coreX/OverflowTooltip/index.js';
|
|
21
|
+
import SidebarSubtitle from '../coreX/SidebarSubtitle/index.js';
|
|
22
|
+
import SortableList from '../coreX/SortableList/index.js';
|
|
23
|
+
import SummaryTable from '../coreX/SummaryTable/index.js';
|
|
24
|
+
import SwitchWithText from '../coreX/SwitchWithText/index.js';
|
|
25
|
+
import TruncatedTextWithTooltip from '../coreX/TruncatedTextWithTooltip/index.js';
|
|
26
|
+
import UnitWithChart from '../coreX/UnitWithChart/index.js';
|
|
27
|
+
import Alert from './Alert/index.js';
|
|
28
|
+
import Arch from './Arch/index.js';
|
|
29
|
+
import Badge from './Badge/index.js';
|
|
30
|
+
import Bit from './Bit/index.js';
|
|
31
|
+
import BitPerSecond from './BitPerSecond/index.js';
|
|
32
|
+
import Bps from './Bps/index.js';
|
|
33
|
+
import Button from './Button/index.js';
|
|
34
|
+
import ButtonGroup from './ButtonGroup/index.js';
|
|
35
|
+
import Byte from './Byte/index.js';
|
|
36
|
+
import Calendar from './Calendar/index.js';
|
|
37
|
+
import Card from './Card/index.js';
|
|
38
|
+
import Checkbox from './Checkbox/index.js';
|
|
39
|
+
import Empty from './Empty/index.js';
|
|
40
|
+
import ExpandableContainer from './ExpandableList/ExpandableContainer.js';
|
|
41
|
+
import ExpandableItem from './ExpandableList/ExpandableItem.js';
|
|
42
|
+
import fields from './Fields/index.js';
|
|
43
|
+
import Form from './Form/index.js';
|
|
44
|
+
import Frequency from './Frequency/index.js';
|
|
45
|
+
import Input from './Input/index.js';
|
|
46
|
+
import InputGroup from './InputGroup/index.js';
|
|
47
|
+
import Link from './Link/index.js';
|
|
48
|
+
import Loading from './Loading/index.js';
|
|
49
|
+
import _message from './message/index.js';
|
|
50
|
+
import Modal from './Modal/index.js';
|
|
51
|
+
import Pagination from './Pagination/index.js';
|
|
52
|
+
import Percent from './Percent/index.js';
|
|
53
|
+
import Progress from './Progress/index.js';
|
|
54
|
+
import Radio, { RadioGroup, RadioButton } from './Radio/index.js';
|
|
55
|
+
import SearchInput from './SearchInput/index.js';
|
|
56
|
+
import Second from './Second/index.js';
|
|
57
|
+
import Select from './Select/index.js';
|
|
58
|
+
import SimplePagination from './SimplePagination/index.js';
|
|
59
|
+
import Speed from './Speed/index.js';
|
|
60
|
+
import StatusCapsule from './StatusCapsule/index.js';
|
|
61
|
+
import Steps from './Steps/index.js';
|
|
62
|
+
import Switch from './Switch/index.js';
|
|
63
|
+
import Table from './Table/index.js';
|
|
64
|
+
import TableForm from './TableForm/index.js';
|
|
65
|
+
import Tag from './Tag/index.js';
|
|
66
|
+
import TextArea from './TextArea/index.js';
|
|
67
|
+
import Time from './Time/index.js';
|
|
68
|
+
import TimeZoneSelect from './TimeZoneSelect/index.js';
|
|
69
|
+
import Token from './Token/index.js';
|
|
70
|
+
import Tooltip from './Tooltip/index.js';
|
|
71
|
+
import Truncate from './Truncate/index.js';
|
|
72
|
+
import DateRangePicker from '../coreX/DateRangePicker/index.js';
|
|
73
|
+
|
|
74
|
+
function getAntdKit() {
|
|
75
|
+
const kit = {
|
|
76
|
+
loading: Loading,
|
|
77
|
+
error: ({ error }) => /* @__PURE__ */ React__default.createElement("div", { className: "error" }, String(error)),
|
|
78
|
+
pagination: Pagination,
|
|
79
|
+
select: Select,
|
|
80
|
+
option: Select$1.Option,
|
|
81
|
+
selectOptGroup: Select$1.OptGroup,
|
|
82
|
+
table: Table,
|
|
83
|
+
row: Row,
|
|
84
|
+
col: Col,
|
|
85
|
+
button: Button,
|
|
86
|
+
modal: Modal,
|
|
87
|
+
dropdown: Dropdown,
|
|
88
|
+
switch: Switch,
|
|
89
|
+
tooltip: Tooltip,
|
|
90
|
+
input: Input,
|
|
91
|
+
textArea: TextArea,
|
|
92
|
+
checkbox: Checkbox,
|
|
93
|
+
fields,
|
|
94
|
+
units: {
|
|
95
|
+
Percent,
|
|
96
|
+
Byte,
|
|
97
|
+
Frequency,
|
|
98
|
+
Speed,
|
|
99
|
+
Bps,
|
|
100
|
+
BitPerSecond,
|
|
101
|
+
Bit,
|
|
102
|
+
Second
|
|
103
|
+
},
|
|
104
|
+
inputGroup: InputGroup,
|
|
105
|
+
Empty: /* @__PURE__ */ React__default.createElement(Empty, null),
|
|
106
|
+
alert: Alert,
|
|
107
|
+
searchInput: SearchInput,
|
|
108
|
+
badge: Badge,
|
|
109
|
+
radio: Radio,
|
|
110
|
+
radioGroup: RadioGroup,
|
|
111
|
+
radioButton: RadioButton,
|
|
112
|
+
tree: Tree,
|
|
113
|
+
progress: Progress,
|
|
114
|
+
divider: Divider,
|
|
115
|
+
skeleton: Skeleton,
|
|
116
|
+
skeletonButton: Skeleton.Button,
|
|
117
|
+
list: List,
|
|
118
|
+
listItem: List.Item,
|
|
119
|
+
menu: Menu,
|
|
120
|
+
menuItem: Menu.Item,
|
|
121
|
+
menuItemGroup: Menu.ItemGroup,
|
|
122
|
+
layout: Layout,
|
|
123
|
+
autoComplete: AutoComplete,
|
|
124
|
+
message: _message,
|
|
125
|
+
tag: Tag,
|
|
126
|
+
popover: Popover,
|
|
127
|
+
arch: Arch,
|
|
128
|
+
buttonGroup: ButtonGroup,
|
|
129
|
+
steps: Steps,
|
|
130
|
+
form: Form,
|
|
131
|
+
simplePagination: SimplePagination,
|
|
132
|
+
space: Space,
|
|
133
|
+
timeZoneSelect: TimeZoneSelect,
|
|
134
|
+
timeline: Timeline,
|
|
135
|
+
timelineItem: Timeline.Item,
|
|
136
|
+
checkboxGroup: Checkbox$1.Group,
|
|
137
|
+
typographyText: Typography.Text,
|
|
138
|
+
upload: Upload,
|
|
139
|
+
datePickerRangePicker: DatePicker.RangePicker,
|
|
140
|
+
tableForm: TableForm,
|
|
141
|
+
token: Token,
|
|
142
|
+
statusCapsule: StatusCapsule,
|
|
143
|
+
uploadDragger: Upload.Dragger,
|
|
144
|
+
calendar: Calendar,
|
|
145
|
+
timePicker: TimePicker,
|
|
146
|
+
datePicker: DatePicker,
|
|
147
|
+
tabs: Tabs,
|
|
148
|
+
tabsTabPane: Tabs.TabPane,
|
|
149
|
+
antdBadge: Badge$1,
|
|
150
|
+
antdMessage: message,
|
|
151
|
+
antdButton: Button$1,
|
|
152
|
+
antdSelect: Select$1,
|
|
153
|
+
antdTooltip: Tooltip$1,
|
|
154
|
+
antdModal: Modal$1,
|
|
155
|
+
antdInput: Input$1,
|
|
156
|
+
antdTable: Table$1,
|
|
157
|
+
antdEmpty: Empty$1,
|
|
158
|
+
antdCheckbox: Checkbox$1,
|
|
159
|
+
antdSwitch: Switch$1,
|
|
160
|
+
antdCollapse: Collapse,
|
|
161
|
+
antdTreeSelect: TreeSelect,
|
|
162
|
+
antdDrawer: Drawer,
|
|
163
|
+
antdSteps: Steps$1,
|
|
164
|
+
card: Card,
|
|
165
|
+
overflowTooltip: OverflowTooltip,
|
|
166
|
+
I18nNameTag,
|
|
167
|
+
SwitchWithText,
|
|
168
|
+
CronPlan,
|
|
169
|
+
NamesTooltip,
|
|
170
|
+
CronCalendar,
|
|
171
|
+
truncate: Truncate,
|
|
172
|
+
expandableList: {
|
|
173
|
+
ExpandableContainer,
|
|
174
|
+
ExpandableItem
|
|
175
|
+
},
|
|
176
|
+
time: Time,
|
|
177
|
+
DropdownTransition,
|
|
178
|
+
AccordionCard,
|
|
179
|
+
DetailCard,
|
|
180
|
+
TruncatedTextWithTooltip,
|
|
181
|
+
Counting,
|
|
182
|
+
Breadcrumb,
|
|
183
|
+
CircleProgress,
|
|
184
|
+
ChartWithTooltip,
|
|
185
|
+
ChartWithUnit,
|
|
186
|
+
DonutChart,
|
|
187
|
+
DeprecatedDonutChart,
|
|
188
|
+
UnitWithChart,
|
|
189
|
+
GoBackButton,
|
|
190
|
+
SummaryTable,
|
|
191
|
+
SortableList,
|
|
192
|
+
SidebarSubtitle,
|
|
193
|
+
Link,
|
|
194
|
+
DropdownMenu,
|
|
195
|
+
BatchOperation,
|
|
196
|
+
DateRangePicker,
|
|
197
|
+
SegmentedControl: SegmentControl
|
|
198
|
+
};
|
|
199
|
+
kit.option.isSelectOption = true;
|
|
200
|
+
kit.button.__ANT_BUTTON = true;
|
|
201
|
+
return kit;
|
|
202
|
+
}
|
|
203
|
+
const antdKit = getAntdKit();
|
|
204
|
+
|
|
205
|
+
export { antdKit, getAntdKit };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
|
|
2
|
+
import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
|
|
3
|
+
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
|
|
4
|
+
import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled';
|
|
5
|
+
import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
|
|
6
|
+
import RCNotification from '@cloudtower/rc-notification';
|
|
7
|
+
import cs from 'classnames';
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __defProps = Object.defineProperties;
|
|
12
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
13
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
16
|
+
var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
17
|
+
var __spreadValues = (a, b) => {
|
|
18
|
+
for (var prop in b || (b = {}))
|
|
19
|
+
if (__hasOwnProp.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
if (__getOwnPropSymbols)
|
|
22
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
23
|
+
if (__propIsEnum.call(b, prop))
|
|
24
|
+
__defNormalProp(a, prop, b[prop]);
|
|
25
|
+
}
|
|
26
|
+
return a;
|
|
27
|
+
};
|
|
28
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
29
|
+
let messageInstance;
|
|
30
|
+
let defaultDuration = 3;
|
|
31
|
+
let defaultTop;
|
|
32
|
+
let key = 1;
|
|
33
|
+
let localPrefixCls = "ant-message";
|
|
34
|
+
let transitionName = "move-up";
|
|
35
|
+
let getContainer;
|
|
36
|
+
let maxCount;
|
|
37
|
+
let rtl = false;
|
|
38
|
+
function setMessageConfig(options) {
|
|
39
|
+
if (options.top !== void 0) {
|
|
40
|
+
defaultTop = options.top;
|
|
41
|
+
messageInstance = null;
|
|
42
|
+
}
|
|
43
|
+
if (options.duration !== void 0) {
|
|
44
|
+
defaultDuration = options.duration;
|
|
45
|
+
}
|
|
46
|
+
if (options.prefixCls !== void 0) {
|
|
47
|
+
localPrefixCls = options.prefixCls;
|
|
48
|
+
}
|
|
49
|
+
if (options.getContainer !== void 0) {
|
|
50
|
+
getContainer = options.getContainer;
|
|
51
|
+
}
|
|
52
|
+
if (options.transitionName !== void 0) {
|
|
53
|
+
transitionName = options.transitionName;
|
|
54
|
+
messageInstance = null;
|
|
55
|
+
}
|
|
56
|
+
if (options.maxCount !== void 0) {
|
|
57
|
+
maxCount = options.maxCount;
|
|
58
|
+
messageInstance = null;
|
|
59
|
+
}
|
|
60
|
+
if (options.rtl !== void 0) {
|
|
61
|
+
rtl = options.rtl;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function getRCNotificationInstance(args, callback) {
|
|
65
|
+
const prefixCls = args.prefixCls || localPrefixCls;
|
|
66
|
+
if (messageInstance) {
|
|
67
|
+
callback({
|
|
68
|
+
prefixCls,
|
|
69
|
+
instance: messageInstance
|
|
70
|
+
});
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
RCNotification.newInstance(
|
|
74
|
+
{
|
|
75
|
+
prefixCls,
|
|
76
|
+
transitionName,
|
|
77
|
+
style: { top: defaultTop },
|
|
78
|
+
// 覆盖原来的样式
|
|
79
|
+
getContainer,
|
|
80
|
+
maxCount
|
|
81
|
+
},
|
|
82
|
+
(instance) => {
|
|
83
|
+
if (messageInstance) {
|
|
84
|
+
callback({
|
|
85
|
+
prefixCls,
|
|
86
|
+
instance: messageInstance
|
|
87
|
+
});
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
messageInstance = instance;
|
|
91
|
+
callback({
|
|
92
|
+
prefixCls,
|
|
93
|
+
instance
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
const typeToIcon = {
|
|
99
|
+
info: InfoCircleFilled,
|
|
100
|
+
success: CheckCircleFilled,
|
|
101
|
+
error: CloseCircleFilled,
|
|
102
|
+
warning: ExclamationCircleFilled,
|
|
103
|
+
loading: LoadingOutlined
|
|
104
|
+
};
|
|
105
|
+
function getRCNoticeProps(args, prefixCls) {
|
|
106
|
+
const duration = args.duration !== void 0 ? args.duration : defaultDuration;
|
|
107
|
+
const IconComponent = args.type != null ? typeToIcon[args.type] : void 0;
|
|
108
|
+
const messageClass = cs(`${prefixCls}-custom-content`, {
|
|
109
|
+
[`${prefixCls}-${args.type}`]: args.type,
|
|
110
|
+
[`${prefixCls}-rtl`]: rtl === true
|
|
111
|
+
});
|
|
112
|
+
return {
|
|
113
|
+
key: args.key,
|
|
114
|
+
duration,
|
|
115
|
+
style: args.style || {},
|
|
116
|
+
className: args.className,
|
|
117
|
+
content: /* @__PURE__ */ React.createElement("div", { className: messageClass }, args.icon || IconComponent && /* @__PURE__ */ React.createElement(IconComponent, null), /* @__PURE__ */ React.createElement("span", null, args.content)),
|
|
118
|
+
onClose: args.onClose
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function notice(args) {
|
|
122
|
+
const target = args.key || key++;
|
|
123
|
+
const closePromise = new Promise((resolve) => {
|
|
124
|
+
const callback = () => {
|
|
125
|
+
if (typeof args.onClose === "function") {
|
|
126
|
+
args.onClose();
|
|
127
|
+
}
|
|
128
|
+
return resolve(true);
|
|
129
|
+
};
|
|
130
|
+
if (document.hidden) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
getRCNotificationInstance(args, ({ prefixCls, instance }) => {
|
|
134
|
+
instance.notice(
|
|
135
|
+
getRCNoticeProps(__spreadProps(__spreadValues({}, args), { key: target, onClose: callback }), prefixCls)
|
|
136
|
+
);
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
const result = () => {
|
|
140
|
+
if (messageInstance) {
|
|
141
|
+
messageInstance.removeNotice(target);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
result.then = (filled, rejected) => closePromise.then(filled, rejected);
|
|
145
|
+
result.promise = closePromise;
|
|
146
|
+
return result;
|
|
147
|
+
}
|
|
148
|
+
function isArgsProps(content) {
|
|
149
|
+
return Object.prototype.toString.call(content) === "[object Object]" && !!content.content;
|
|
150
|
+
}
|
|
151
|
+
const api = {
|
|
152
|
+
open: notice,
|
|
153
|
+
config: setMessageConfig,
|
|
154
|
+
destroy() {
|
|
155
|
+
if (messageInstance) {
|
|
156
|
+
messageInstance.destroy();
|
|
157
|
+
messageInstance = null;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
function attachTypeApi(originalApi, type) {
|
|
162
|
+
originalApi[type] = (content, duration, onClose) => {
|
|
163
|
+
if (isArgsProps(content)) {
|
|
164
|
+
return originalApi.open(__spreadProps(__spreadValues({}, content), { type }));
|
|
165
|
+
}
|
|
166
|
+
if (typeof duration === "function") {
|
|
167
|
+
onClose = duration;
|
|
168
|
+
duration = void 0;
|
|
169
|
+
}
|
|
170
|
+
return originalApi.open({ content, duration, type, onClose });
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
["success", "info", "warning", "error", "loading"].forEach(
|
|
174
|
+
(type) => attachTypeApi(api, type)
|
|
175
|
+
);
|
|
176
|
+
api.warn = api.warning;
|
|
177
|
+
var _message = api;
|
|
178
|
+
|
|
179
|
+
export { attachTypeApi, _message as default };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __publicField = (obj, key, value) => {
|
|
21
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
|
+
return value;
|
|
23
|
+
};
|
|
24
|
+
function makeUUID(length = 25) {
|
|
25
|
+
let result = "";
|
|
26
|
+
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
27
|
+
const charactersLength = characters.length;
|
|
28
|
+
for (let i = 0; i < length; i++) {
|
|
29
|
+
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
class Batcher {
|
|
34
|
+
constructor(originalMethod, batchHelper) {
|
|
35
|
+
__publicField(this, "batchSize", 2);
|
|
36
|
+
__publicField(this, "batchTime", 200);
|
|
37
|
+
__publicField(this, "scheduler", {});
|
|
38
|
+
__publicField(this, "originalMethod");
|
|
39
|
+
__publicField(this, "batchHelper");
|
|
40
|
+
this.originalMethod = originalMethod;
|
|
41
|
+
this.batchHelper = batchHelper;
|
|
42
|
+
}
|
|
43
|
+
addMessage(originContent) {
|
|
44
|
+
if (document.hidden) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const batchKey = this.batchHelper.getBatchKey(originContent.content);
|
|
48
|
+
if (batchKey == null) {
|
|
49
|
+
this.originalMethod(originContent);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (!this.scheduler[batchKey]) {
|
|
53
|
+
this.scheduler[batchKey] = {
|
|
54
|
+
firedHandlers: {},
|
|
55
|
+
pendingMessages: {}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const messageStore = this.scheduler[batchKey];
|
|
59
|
+
const { firedHandlers, pendingMessages, groupedCtx } = messageStore;
|
|
60
|
+
if (groupedCtx) {
|
|
61
|
+
groupedCtx.count++;
|
|
62
|
+
this.applyContent(batchKey, originContent, messageStore);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const messageCount = Object.keys(firedHandlers).length + Object.keys(pendingMessages).length;
|
|
66
|
+
if (messageCount + 1 > this.batchSize) {
|
|
67
|
+
for (const k in firedHandlers) {
|
|
68
|
+
try {
|
|
69
|
+
firedHandlers[k]();
|
|
70
|
+
} catch (e) {
|
|
71
|
+
}
|
|
72
|
+
delete firedHandlers[k];
|
|
73
|
+
}
|
|
74
|
+
for (const k in pendingMessages) {
|
|
75
|
+
delete pendingMessages[k];
|
|
76
|
+
}
|
|
77
|
+
messageStore.groupedCtx = {
|
|
78
|
+
key: originContent.key,
|
|
79
|
+
count: messageCount + 1
|
|
80
|
+
};
|
|
81
|
+
this.applyContent(batchKey, originContent, messageStore);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
pendingMessages[originContent.key] = originContent;
|
|
85
|
+
setTimeout(() => {
|
|
86
|
+
if (originContent.key in pendingMessages) {
|
|
87
|
+
delete pendingMessages[originContent.key];
|
|
88
|
+
originContent.onClose = () => {
|
|
89
|
+
delete firedHandlers[originContent.key];
|
|
90
|
+
};
|
|
91
|
+
const handler = this.originalMethod(originContent);
|
|
92
|
+
firedHandlers[originContent.key] = handler;
|
|
93
|
+
}
|
|
94
|
+
}, this.batchTime);
|
|
95
|
+
}
|
|
96
|
+
applyContent(batchKey, content, store) {
|
|
97
|
+
content.content = this.batchHelper.getBatchContent(
|
|
98
|
+
batchKey,
|
|
99
|
+
store.groupedCtx.count
|
|
100
|
+
);
|
|
101
|
+
content.key = store.groupedCtx.key;
|
|
102
|
+
content.onClose = () => {
|
|
103
|
+
delete store.groupedCtx;
|
|
104
|
+
};
|
|
105
|
+
this.originalMethod(content);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function createBatchMessageMethods(message, batchHelper) {
|
|
109
|
+
let _message = __spreadValues({}, message);
|
|
110
|
+
const methods = [
|
|
111
|
+
"success",
|
|
112
|
+
"error",
|
|
113
|
+
"info",
|
|
114
|
+
"warning",
|
|
115
|
+
"warn",
|
|
116
|
+
"loading"
|
|
117
|
+
];
|
|
118
|
+
for (const method of methods) {
|
|
119
|
+
const originalMethod = _message[method];
|
|
120
|
+
const batcher = new Batcher(originalMethod, batchHelper);
|
|
121
|
+
_message[method] = function(...args) {
|
|
122
|
+
const key = makeUUID();
|
|
123
|
+
const content = normalizeContent(args, method);
|
|
124
|
+
batcher.addMessage(__spreadProps(__spreadValues({}, content), { key }));
|
|
125
|
+
return () => {
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
return _message;
|
|
130
|
+
}
|
|
131
|
+
function normalizeContent(args, type) {
|
|
132
|
+
const c = args[0];
|
|
133
|
+
if (c && typeof c === "object" && "content" in c) {
|
|
134
|
+
return c;
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
content: c,
|
|
138
|
+
duration: typeof args[1] === "number" ? args[1] : 6,
|
|
139
|
+
type: type === "warn" ? "warning" : type
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export { Batcher, createBatchMessageMethods, makeUUID };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { formatPercent } from '../../utils/tower.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
const StackBar = "skwah65";
|
|
5
|
+
function getWidth(input) {
|
|
6
|
+
const {
|
|
7
|
+
value,
|
|
8
|
+
unit
|
|
9
|
+
} = formatPercent(input);
|
|
10
|
+
return value + unit;
|
|
11
|
+
}
|
|
12
|
+
const BarChart = ({
|
|
13
|
+
data,
|
|
14
|
+
total
|
|
15
|
+
}) => /* @__PURE__ */React__default.createElement("div", {
|
|
16
|
+
className: StackBar
|
|
17
|
+
}, (data || []).map(item => {
|
|
18
|
+
const {
|
|
19
|
+
value,
|
|
20
|
+
color
|
|
21
|
+
} = item;
|
|
22
|
+
const width = total === 0 ? 0 : getWidth(100 * value / total);
|
|
23
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
24
|
+
className: "stack-bar-item",
|
|
25
|
+
style: {
|
|
26
|
+
width,
|
|
27
|
+
background: color,
|
|
28
|
+
display: value === 0 || total === 0 ? "none" : "inline-block"
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}));
|
|
32
|
+
var BarChart$1 = BarChart;
|
|
33
|
+
|
|
34
|
+
export { BarChart$1 as default, getWidth };
|