mig-schema-table 3.0.65 → 3.0.66
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { oas31 } from "openapi3-ts";
|
|
2
2
|
import React, { CSSProperties, Dispatch, SetStateAction } from "react";
|
|
3
3
|
import { IColumnConfig } from "../../types";
|
|
4
|
-
import "./index.scss";
|
|
5
4
|
import { ISchemaTableThMenuConfig } from "../SchemaTableThMenu";
|
|
6
5
|
export declare enum EColumnFilterStatus {
|
|
7
6
|
UNAVAILABLE = "UNAVAILABLE",
|
|
@@ -3,7 +3,6 @@ import React from "react";
|
|
|
3
3
|
import { t, uncamel } from "../../inc/string";
|
|
4
4
|
import { SELECT_ALL_COLUMN_NAME } from "../constants";
|
|
5
5
|
import { timeZone } from "../../inc/date";
|
|
6
|
-
import "./index.scss";
|
|
7
6
|
export var EColumnFilterStatus;
|
|
8
7
|
(function (EColumnFilterStatus) {
|
|
9
8
|
EColumnFilterStatus["UNAVAILABLE"] = "UNAVAILABLE";
|
|
@@ -2,7 +2,6 @@ import React, { Dispatch, SetStateAction } from "react";
|
|
|
2
2
|
import { oas31 } from "openapi3-ts";
|
|
3
3
|
import { TColumnFilterValue } from "../index";
|
|
4
4
|
import { IColumnConfig } from "../../types";
|
|
5
|
-
import "./index.scss";
|
|
6
5
|
export interface ISchemaTableThMenuConfig {
|
|
7
6
|
referenceElement: HTMLElement;
|
|
8
7
|
propName: string;
|
|
@@ -2,7 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import FilterMenuComponent from "./FilterMenuComponent";
|
|
4
4
|
import { usePopper } from "react-popper";
|
|
5
|
-
import "./index.scss";
|
|
6
5
|
const SchemaTableThMenu = ({ onChange, onClose, onInputKeyDown, propConfig, propIsRequired, propName, propSchema, referenceElement, setSortAsc, setSortColumn, value, }) => {
|
|
7
6
|
const [menu, setMenu] = React.useState(null);
|
|
8
7
|
const [subMenu, setSubMenu] = React.useState(null);
|
package/dist/index.css
CHANGED
|
@@ -64,3 +64,98 @@
|
|
|
64
64
|
flex-direction: row;
|
|
65
65
|
padding-bottom: 1rem;
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
.schema-table-th {
|
|
69
|
+
border-right: 1px solid #ddd;
|
|
70
|
+
border-top: 1px solid #ddd;
|
|
71
|
+
border-bottom: 1px solid #ddd;
|
|
72
|
+
color: #666;
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
padding-left: 8px;
|
|
76
|
+
padding-right: 8px;
|
|
77
|
+
user-select: none;
|
|
78
|
+
}
|
|
79
|
+
.schema-table-th div {
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
text-overflow: ellipsis;
|
|
83
|
+
}
|
|
84
|
+
.schema-table-th--sorted {
|
|
85
|
+
background-color: #eff6fb;
|
|
86
|
+
}
|
|
87
|
+
.schema-table-th--filter-ACTIVE .schema-table-th__label-body-text {
|
|
88
|
+
text-decoration: underline;
|
|
89
|
+
font-style: italic;
|
|
90
|
+
}
|
|
91
|
+
.schema-table-th__label-body {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex: 1;
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
align-items: center;
|
|
96
|
+
}
|
|
97
|
+
.schema-table-th__trigger-el {
|
|
98
|
+
display: none;
|
|
99
|
+
position: absolute;
|
|
100
|
+
border: 1px solid #ddd;
|
|
101
|
+
top: 0;
|
|
102
|
+
right: 0;
|
|
103
|
+
bottom: 0;
|
|
104
|
+
width: 24px;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
background-color: #eff6fb;
|
|
107
|
+
color: #666;
|
|
108
|
+
font-size: 28px;
|
|
109
|
+
text-align: center;
|
|
110
|
+
padding: 0 0 5px !important;
|
|
111
|
+
}
|
|
112
|
+
.schema-table-th__sort-icon {
|
|
113
|
+
font-size: 24px;
|
|
114
|
+
width: 32px;
|
|
115
|
+
display: block;
|
|
116
|
+
text-align: center;
|
|
117
|
+
}
|
|
118
|
+
.schema-table-th:hover {
|
|
119
|
+
background-color: #eff6fb;
|
|
120
|
+
}
|
|
121
|
+
.schema-table-th:hover .schema-table-th__trigger-el {
|
|
122
|
+
display: block !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.schema-table-th-menu {
|
|
126
|
+
background-color: white;
|
|
127
|
+
}
|
|
128
|
+
.schema-table-th-menu label {
|
|
129
|
+
flex: 1;
|
|
130
|
+
}
|
|
131
|
+
.schema-table-th-menu .schema-table-th-menu__sub-menu-indicator {
|
|
132
|
+
padding-left: 8px;
|
|
133
|
+
margin-left: 8px;
|
|
134
|
+
}
|
|
135
|
+
.schema-table-th-menu__icon {
|
|
136
|
+
display: block;
|
|
137
|
+
width: 24px;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
text-align: center;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.schema-table-th-menu__sub-menu {
|
|
143
|
+
background-color: white;
|
|
144
|
+
border: 1px solid #ddd;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.schema-table-menu {
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
list-style: none outside;
|
|
150
|
+
padding: 0;
|
|
151
|
+
margin: 0;
|
|
152
|
+
}
|
|
153
|
+
.schema-table-menu li {
|
|
154
|
+
display: flex;
|
|
155
|
+
border: 1px solid #ddd;
|
|
156
|
+
align-items: center;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
}
|
|
159
|
+
.schema-table-menu li:hover {
|
|
160
|
+
background-color: #eff6fb;
|
|
161
|
+
}
|