@cloudtower/eagle 0.27.3-alpha.0 → 0.27.3

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.
Files changed (33) hide show
  1. package/dist/components/Metric/metric.d.ts +1 -1
  2. package/dist/components/index.d.ts +0 -10
  3. package/dist/components.css +607 -531
  4. package/dist/coreX/CronPlan/CronPlan.stories.d.ts +9 -0
  5. package/dist/coreX/CronPlan/index.d.ts +18 -0
  6. package/dist/coreX/NamesTooltip/NamesTooltip.stories.d.ts +7 -0
  7. package/dist/coreX/NamesTooltip/__test__/index.test.d.ts +1 -0
  8. package/dist/coreX/NamesTooltip/index.d.ts +4 -0
  9. package/dist/coreX/index.d.ts +1 -0
  10. package/dist/esm/index.js +3408 -2726
  11. package/dist/esm/stats1.html +1 -1
  12. package/dist/index.d.ts +1 -0
  13. package/dist/spec/base.d.ts +21 -7
  14. package/dist/style.css +1294 -1218
  15. package/dist/umd/index.js +3413 -2731
  16. package/dist/umd/stats1.html +1 -1
  17. package/dist/utils/__test__/compute.spec.d.ts +1 -0
  18. package/dist/utils/__test__/cron-time.spec.d.ts +1 -0
  19. package/dist/utils/__test__/time.spec.d.ts +1 -0
  20. package/dist/utils/compute.d.ts +1 -0
  21. package/dist/utils/cron-time.d.ts +65 -0
  22. package/dist/utils/index.d.ts +3 -0
  23. package/dist/utils/time.d.ts +25 -0
  24. package/dist/utils/tower.d.ts +0 -1
  25. package/package.json +6 -6
  26. package/dist/coreX/BarChart/BarChart.stories.d.ts +0 -6
  27. package/dist/coreX/BarChart/index.d.ts +0 -10
  28. package/dist/coreX/ChartWithTooltip/ChartWithTooltip.stories.d.ts +0 -7
  29. package/dist/coreX/ChartWithTooltip/index.d.ts +0 -40
  30. package/dist/coreX/DonutChart/DonutChart.stories.d.ts +0 -6
  31. package/dist/coreX/DonutChart/index.d.ts +0 -12
  32. package/dist/coreX/UnitWithChart/UnitWithChart.stories.d.ts +0 -7
  33. package/dist/coreX/UnitWithChart/index.d.ts +0 -30
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import "./styles/index.scss";
2
2
  export type { CardProps, DateRange, GraphType, IconProps, IDataPoint, } from "./components";
3
3
  export { antdKit, BaseIcon, Button, ButtonStyle, createBatchMessageMethods, FailedLoad, FullView, Icon, InputTagItem, KitStoreProvider, ModalStack, tableStyleCover, tickFormatter, Truncate, Typo, useKitDispatch, useKitSelector, WizardBody, } from "./components";
4
4
  export * from "./components/TableForm/types";
5
+ export * from "./coreX";
5
6
  export { useElementsSize } from "./hooks";
6
7
  export type { AntdInputComponentType, AntdTreeSelectComponentType, BaseEnumProps, ButtonProps, DateTimeRangeProps, EnumProps, FloatProps, InputSize, IntegerFieldProps, IntFieldProps, IntProps, Kit, KitSelectProps, ModalProps, RequiredColumnProps, SorterOrder, StringProps, TableProps, TagColor, TextAreaProps, TooltipProps, WizardSteps, } from "./spec";
7
8
  export * from "./spec/type";
@@ -48,6 +48,7 @@ import { TreeProps as AntdTreeProps } from "antd/lib/tree";
48
48
  import type TreeSelect from "antd/lib/tree-select";
49
49
  import { TextProps } from "antd/lib/typography/Text";
50
50
  import { DraggerProps, UploadProps } from "antd/lib/upload";
51
+ import type { Dayjs } from "dayjs";
51
52
  import type { Moment } from "moment";
52
53
  import React, { ForwardRefExoticComponent, PropsWithChildren, PropsWithoutRef, ReactNode, RefAttributes } from "react";
53
54
  import { CardProps } from "../components/Card";
@@ -56,9 +57,6 @@ import { MessageApi } from "../components/message";
56
57
  import { TableFormHandle, TableFormProps } from "../components/TableForm/types";
57
58
  import { TruncatePropTypes } from "../components/Truncate";
58
59
  import type { CloseButtonProps } from "../core/AccordionCard";
59
- import { IChartWithUnitProps, ICWTProps } from "../coreX/ChartWithTooltip";
60
- import { IDonutChartProps } from "../coreX/DonutChart";
61
- import { IUnitWithChartProps } from "../coreX/UnitWithChart";
62
60
  import { SerializableObject } from "../utils/tower";
63
61
  import { FieldRenderProps } from "./react-final-form";
64
62
  import { Architecture, DropdownTransitionProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, ICountingProps, IDetailCardProps, ISpaceProps, ITimeProps, ITimeZoneSelectProps, PropsFrom } from "./type";
@@ -530,10 +528,8 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
530
528
  Breadcrumb: React.FC<IBreadcrumbProps>;
531
529
  CircleProgress: React.FC<ICircleProgressProps>;
532
530
  SwitchWithText: React.FC<SwitchWithTextProps>;
533
- ChartWithTooltip: React.FC<ICWTProps>;
534
- ChartWithUnit: React.FC<IChartWithUnitProps>;
535
- DonutChart: React.FC<IDonutChartProps>;
536
- UnitWithChart: React.FC<IUnitWithChartProps>;
531
+ CronPlan: React.FC<CronPlanProps>;
532
+ NamesTooltip: React.FC<NamesTooltipType>;
537
533
  }
538
534
  export type ArchComponentType = React.FC<{
539
535
  architecture?: Architecture;
@@ -616,6 +612,24 @@ export type I18nNameTagType = {
616
612
  i18nKey: string;
617
613
  [key: string]: unknown;
618
614
  };
615
+ export type CronPlanState = {
616
+ expression: string;
617
+ retain: number;
618
+ startAt: Dayjs;
619
+ enabled: boolean;
620
+ empty: boolean;
621
+ };
622
+ export type CronPlanProps = {
623
+ value: CronPlanState;
624
+ onChange: (value: CronPlanState) => unknown;
625
+ onRemove?: () => void;
626
+ };
627
+ export type NamesTooltipType = {
628
+ names: {
629
+ id: string;
630
+ name?: string;
631
+ }[];
632
+ };
619
633
  export type SwitchWithTextProps = PropsFrom<Kit["switch"]> & {
620
634
  text?: {
621
635
  checked: React.ReactNode;