@cloudtower/eagle 0.17.11

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 (87) hide show
  1. package/README.md +26 -0
  2. package/dist/components/BaseIcon/index.d.ts +13 -0
  3. package/dist/components/Button/index.d.ts +16 -0
  4. package/dist/components/ButtonGroup/index.d.ts +5 -0
  5. package/dist/components/ErrorBoundary/index.d.ts +7 -0
  6. package/dist/components/FailedLoad/index.d.ts +9 -0
  7. package/dist/components/Form/index.d.ts +154 -0
  8. package/dist/components/FormError/index.d.ts +29 -0
  9. package/dist/components/HoverableIcon/index.d.ts +10 -0
  10. package/dist/components/Icon/index.d.ts +39 -0
  11. package/dist/components/InputInteger/index.d.ts +12 -0
  12. package/dist/components/KitStoreProvider/index.d.ts +8 -0
  13. package/dist/components/Loading/index.d.ts +3 -0
  14. package/dist/components/Metric/MetricActions.d.ts +9 -0
  15. package/dist/components/Metric/MetricLegend.d.ts +16 -0
  16. package/dist/components/Metric/Pointer.d.ts +6 -0
  17. package/dist/components/Metric/RenderChart.d.ts +41 -0
  18. package/dist/components/Metric/TooltipFormatter.d.ts +10 -0
  19. package/dist/components/Metric/index.d.ts +29 -0
  20. package/dist/components/Metric/metric.d.ts +43 -0
  21. package/dist/components/Metric/styled.d.ts +18 -0
  22. package/dist/components/Metric/type.d.ts +39 -0
  23. package/dist/components/Modal/index.d.ts +4 -0
  24. package/dist/components/Modal2/Error.d.ts +14 -0
  25. package/dist/components/Modal2/InitializedModal.d.ts +4 -0
  26. package/dist/components/Modal2/Modal.d.ts +9 -0
  27. package/dist/components/Modal2/WizardModal.d.ts +4 -0
  28. package/dist/components/Modal2/index.d.ts +10 -0
  29. package/dist/components/ModalStack/index.d.ts +3 -0
  30. package/dist/components/Overflow/index.d.ts +14 -0
  31. package/dist/components/Pagination/index.d.ts +4 -0
  32. package/dist/components/Radio/index.d.ts +8 -0
  33. package/dist/components/Steps/index.d.ts +4 -0
  34. package/dist/components/Styled/index.d.ts +72 -0
  35. package/dist/components/Switch/index.d.ts +4 -0
  36. package/dist/components/Table/CustomizeColumn.d.ts +13 -0
  37. package/dist/components/Table/HeaderCell.d.ts +25 -0
  38. package/dist/components/Table/PendingTable.d.ts +3 -0
  39. package/dist/components/Table/SearchWidget.d.ts +20 -0
  40. package/dist/components/Table/SidebarTable.d.ts +7 -0
  41. package/dist/components/Table/TableSelection.d.ts +27 -0
  42. package/dist/components/Table/TableWidget.d.ts +50 -0
  43. package/dist/components/Table/common.d.ts +33 -0
  44. package/dist/components/Table/customize-column.d.ts +3 -0
  45. package/dist/components/Table/index.d.ts +20 -0
  46. package/dist/components/Tooltip/index.d.ts +4 -0
  47. package/dist/components/TowerTable/TableEmpty.d.ts +7 -0
  48. package/dist/components/TowerTable/TablePagination.d.ts +9 -0
  49. package/dist/components/TowerTable/WrapperComponent.d.ts +7 -0
  50. package/dist/components/TowerTable/index.d.ts +42 -0
  51. package/dist/components/Truncate/index.d.ts +12 -0
  52. package/dist/components/Typo/index.d.ts +70 -0
  53. package/dist/components/antd.d.ts +27 -0
  54. package/dist/components/images/images-type.d.ts +1 -0
  55. package/dist/components/images/index.d.ts +1123 -0
  56. package/dist/components/index.d.ts +35 -0
  57. package/dist/esm/index.js +9347 -0
  58. package/dist/esm/stats1.html +6177 -0
  59. package/dist/hooks/index.d.ts +10 -0
  60. package/dist/hooks/useElementResize.d.ts +2 -0
  61. package/dist/hooks/useElementsSize.d.ts +8 -0
  62. package/dist/hooks/useHistory.d.ts +2 -0
  63. package/dist/hooks/useLocalStorage.d.ts +61 -0
  64. package/dist/hooks/useMatchMediaQueries.d.ts +10 -0
  65. package/dist/hooks/useSearch.d.ts +12 -0
  66. package/dist/hooks/utils.d.ts +3 -0
  67. package/dist/index.d.ts +9 -0
  68. package/dist/spec/base.d.ts +478 -0
  69. package/dist/spec/emptyImpl.d.ts +3 -0
  70. package/dist/spec/index.d.ts +2 -0
  71. package/dist/spec/type.d.ts +35 -0
  72. package/dist/store/chart.d.ts +40 -0
  73. package/dist/store/index.d.ts +31 -0
  74. package/dist/store/modal.d.ts +55 -0
  75. package/dist/store/table.d.ts +54 -0
  76. package/dist/style.css +4407 -0
  77. package/dist/umd/index.js +10644 -0
  78. package/dist/umd/stats1.html +6177 -0
  79. package/dist/utils/constants.d.ts +15 -0
  80. package/dist/utils/dom.d.ts +6 -0
  81. package/dist/utils/formatValue.d.ts +2 -0
  82. package/dist/utils/history.d.ts +1 -0
  83. package/dist/utils/icon.d.ts +2 -0
  84. package/dist/utils/index.d.ts +7 -0
  85. package/dist/utils/router.d.ts +34 -0
  86. package/dist/utils/types.d.ts +84 -0
  87. package/package.json +66 -0
@@ -0,0 +1,40 @@
1
+ declare type Pointer = {
2
+ visible: boolean;
3
+ left?: number;
4
+ text?: string;
5
+ value?: number;
6
+ };
7
+ export declare type ChartState = {
8
+ pointers: Partial<Record<string, Pointer>>;
9
+ resourceData: Partial<Record<string, {
10
+ id: string;
11
+ name: string;
12
+ }[]>>;
13
+ averageData: Partial<Record<string, number>>;
14
+ };
15
+ export declare const enum ChartActions {
16
+ SET_POINTER = "SET_POINTER",
17
+ SET_RESOURCE_DATA = "SET_RESOURCE_DATA",
18
+ SET_AVERAGE_DATA = "SET_AVERAGE_DATA"
19
+ }
20
+ export declare type Actions = {
21
+ type: ChartActions.SET_POINTER;
22
+ payload: {
23
+ uuid: string;
24
+ } & Pointer;
25
+ } | {
26
+ type: ChartActions.SET_RESOURCE_DATA;
27
+ payload: {
28
+ data: ChartState["resourceData"];
29
+ uuid: string;
30
+ };
31
+ } | {
32
+ type: ChartActions.SET_AVERAGE_DATA;
33
+ payload: {
34
+ average: number;
35
+ uuid: string;
36
+ };
37
+ };
38
+ export declare const initialChartState: ChartState;
39
+ export declare const chartReducer: (state: ChartState | undefined, action: Actions) => ChartState;
40
+ export {};
@@ -0,0 +1,31 @@
1
+ import { Actions as ChartActionType, ChartState } from "./chart";
2
+ import { Actions as ModalActionType, CloseCb, IModalProps, ModalState, ModalType } from "./modal";
3
+ import { Actions as TableActionType, TableState } from "./table";
4
+ export { ChartActions } from "./chart";
5
+ export { ModalActions } from "./modal";
6
+ export { TableActions } from "./table";
7
+ export declare type KitRootState = {
8
+ chart: ChartState;
9
+ modal: ModalState;
10
+ table: TableState;
11
+ };
12
+ export declare type Actions = ModalActionType | ChartActionType | TableActionType | {
13
+ type: "RESET";
14
+ };
15
+ export declare const rootReducer: (state: KitRootState | undefined, action: Actions) => import("redux").CombinedState<{
16
+ chart: ChartState;
17
+ modal: ModalState;
18
+ table: TableState;
19
+ }>;
20
+ export declare const store: import("redux").Store<import("redux").EmptyObject & {
21
+ chart: ChartState;
22
+ modal: ModalState;
23
+ table: TableState;
24
+ }, Actions>;
25
+ export declare function pushModal<K extends keyof IModalProps>(modal: ModalType<IModalProps[K]>): void;
26
+ export declare function popModal(): void;
27
+ export declare function closeModal(id: number): void;
28
+ export declare type GetModalProps<K extends keyof IModalProps> = IModalProps[K] & CloseCb;
29
+ export * from "./chart";
30
+ export * from "./modal";
31
+ export * from "./table";
@@ -0,0 +1,55 @@
1
+ import React from "react";
2
+ export declare type CloseCb = {
3
+ onClose: () => void;
4
+ modalId: number;
5
+ };
6
+ export declare type ModalType<TProps> = TProps extends void ? {
7
+ component: React.FC<TProps & CloseCb>;
8
+ } : {
9
+ component: React.FC<TProps & CloseCb>;
10
+ props: TProps & {
11
+ onClose?: () => void;
12
+ };
13
+ };
14
+ export declare type ModalState = {
15
+ stack: Array<ModalType<unknown> & {
16
+ id: number;
17
+ }>;
18
+ closeId: number;
19
+ };
20
+ export declare enum ModalActions {
21
+ PUSH_MODAL = "PUSH_MODAL",
22
+ POP_MODAL = "POP_MODAL",
23
+ REMOVE_MODAL = "REMOVE_MODAL",
24
+ CLOSE_MODAL = "CLOSE_MODAL"
25
+ }
26
+ export declare enum EverouteOperationItem {
27
+ License = "License",
28
+ Image = "Image"
29
+ }
30
+ export declare enum BackupOperationItem {
31
+ License = "License",
32
+ Image = "Image"
33
+ }
34
+ declare type PUSH_MODAL<TProps> = {
35
+ type: ModalActions.PUSH_MODAL;
36
+ payload: ModalType<TProps>;
37
+ };
38
+ declare type POP_MODAL = {
39
+ type: ModalActions.POP_MODAL;
40
+ };
41
+ declare type REMOVE_MODAL = {
42
+ type: ModalActions.REMOVE_MODAL;
43
+ id: number;
44
+ };
45
+ declare type CLOSE_MODAL = {
46
+ type: ModalActions.CLOSE_MODAL;
47
+ id: number;
48
+ };
49
+ export declare type Actions = PUSH_MODAL<unknown> | POP_MODAL | REMOVE_MODAL | CLOSE_MODAL;
50
+ export declare const initialModalState: ModalState;
51
+ export declare const modalReducer: (state: ModalState | undefined, action: Actions) => ModalState;
52
+ export interface IModalProps {
53
+ }
54
+ export declare type GetModalProps<K extends keyof IModalProps> = IModalProps[K] & CloseCb;
55
+ export {};
@@ -0,0 +1,54 @@
1
+ export declare type TableState = {
2
+ [key: string]: {
3
+ selectRows?: {
4
+ id: string;
5
+ }[];
6
+ rows: {
7
+ id: string;
8
+ }[];
9
+ query?: {
10
+ where?: unknown;
11
+ orderBy?: unknown;
12
+ };
13
+ };
14
+ };
15
+ export declare enum TableActions {
16
+ SET_ROWS_SELECTION = "SET_ROWS_SELECTION",
17
+ REMOVE_ROW_SELECTION = "REMOVE_ROW_SELECTION",
18
+ SET_RESOURCE_DATA = "SET_RESOURCE_DATA",
19
+ SET_RESOURCE_QUERY = "SET_RESOURCE_QUERY"
20
+ }
21
+ export declare type Actions = {
22
+ type: TableActions.SET_ROWS_SELECTION;
23
+ payload: {
24
+ resource: string;
25
+ rows: {
26
+ id: string;
27
+ }[];
28
+ };
29
+ } | {
30
+ type: TableActions.REMOVE_ROW_SELECTION;
31
+ payload: {
32
+ resource: string;
33
+ id: string;
34
+ };
35
+ } | {
36
+ type: TableActions.SET_RESOURCE_DATA;
37
+ payload: {
38
+ resource: string;
39
+ rows: {
40
+ id: string;
41
+ }[];
42
+ };
43
+ } | {
44
+ type: TableActions.SET_RESOURCE_QUERY;
45
+ payload: {
46
+ resource: string;
47
+ query: {
48
+ where?: unknown;
49
+ orderBy?: unknown;
50
+ };
51
+ };
52
+ };
53
+ export declare const initialTableState: TableState;
54
+ export declare const tableReducer: (state: TableState | undefined, action: Actions) => TableState;