qbs-react-grid 2.2.5 → 2.2.9
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/css/qbs-react-grid.css +1 -1
- package/dist/css/qbs-react-grid.min.css +1 -1
- package/dist/css/qbs-react-grid.min.css.map +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/es/less/qbs-table.less +58 -4
- package/es/qbsTable/CustomTableCell.js +27 -10
- package/es/qbsTable/QbsTable.js +42 -7
- package/es/qbsTable/TableCardList.js +40 -7
- package/es/qbsTable/Toolbar.js +87 -23
- package/es/qbsTable/commontypes.d.ts +19 -0
- package/es/qbsTable/labels.d.ts +25 -0
- package/es/qbsTable/labels.js +32 -0
- package/es/qbsTable/utilities/ColumShowHide.d.ts +3 -0
- package/es/qbsTable/utilities/ColumShowHide.js +112 -33
- package/es/qbsTable/utilities/VerticalDropDownMenu.d.ts +11 -0
- package/es/qbsTable/utilities/VerticalDropDownMenu.js +182 -0
- package/es/qbsTable/utilities/columnToggleCoordinator.d.ts +5 -0
- package/es/qbsTable/utilities/columnToggleCoordinator.js +9 -0
- package/es/qbsTable/utilities/icons.d.ts +3 -0
- package/es/qbsTable/utilities/icons.js +67 -3
- package/es/qbsTable/utilities/verticalMenuCoordinator.d.ts +5 -0
- package/es/qbsTable/utilities/verticalMenuCoordinator.js +9 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -2
- package/lib/less/qbs-table.less +58 -4
- package/lib/qbsTable/CustomTableCell.js +27 -10
- package/lib/qbsTable/QbsTable.js +42 -7
- package/lib/qbsTable/TableCardList.js +40 -7
- package/lib/qbsTable/Toolbar.js +85 -21
- package/lib/qbsTable/commontypes.d.ts +19 -0
- package/lib/qbsTable/labels.d.ts +25 -0
- package/lib/qbsTable/labels.js +40 -0
- package/lib/qbsTable/utilities/ColumShowHide.d.ts +3 -0
- package/lib/qbsTable/utilities/ColumShowHide.js +112 -32
- package/lib/qbsTable/utilities/VerticalDropDownMenu.d.ts +11 -0
- package/lib/qbsTable/utilities/VerticalDropDownMenu.js +190 -0
- package/lib/qbsTable/utilities/columnToggleCoordinator.d.ts +5 -0
- package/lib/qbsTable/utilities/columnToggleCoordinator.js +15 -0
- package/lib/qbsTable/utilities/icons.d.ts +3 -0
- package/lib/qbsTable/utilities/icons.js +72 -5
- package/lib/qbsTable/utilities/verticalMenuCoordinator.d.ts +5 -0
- package/lib/qbsTable/utilities/verticalMenuCoordinator.js +15 -0
- package/package.json +9 -1
- package/src/index.ts +6 -0
- package/src/less/qbs-table.less +58 -4
- package/src/qbsTable/CustomTableCell.tsx +28 -8
- package/src/qbsTable/QbsTable.tsx +32 -4
- package/src/qbsTable/TableCardList.tsx +30 -4
- package/src/qbsTable/Toolbar.tsx +99 -29
- package/src/qbsTable/commontypes.ts +20 -0
- package/src/qbsTable/labels.ts +55 -0
- package/src/qbsTable/utilities/ColumShowHide.tsx +170 -84
- package/src/qbsTable/utilities/VerticalDropDownMenu.tsx +216 -0
- package/src/qbsTable/utilities/columnToggleCoordinator.ts +14 -0
- package/src/qbsTable/utilities/icons.tsx +76 -3
- package/src/qbsTable/utilities/verticalMenuCoordinator.ts +14 -0
|
@@ -5,7 +5,7 @@ export const ThreeDotIcon: React.FC<any> = () => {
|
|
|
5
5
|
<svg width="4" height="16" viewBox="0 0 4 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
6
|
<path
|
|
7
7
|
d="M2 2.16665L2 2.17498M2 7.99998L2 8.00831M2 13.8333L2 13.8416M2 2.99998C1.53976 2.99998 1.16667 2.62688 1.16667 2.16665C1.16667 1.70641 1.53976 1.33331 2 1.33331C2.46024 1.33331 2.83333 1.70641 2.83333 2.16665C2.83333 2.62688 2.46024 2.99998 2 2.99998ZM2 8.83331C1.53976 8.83331 1.16667 8.46022 1.16667 7.99998C1.16667 7.53974 1.53976 7.16665 2 7.16665C2.46024 7.16665 2.83333 7.53974 2.83333 7.99998C2.83333 8.46022 2.46024 8.83331 2 8.83331ZM2 14.6666C1.53976 14.6666 1.16666 14.2935 1.16666 13.8333C1.16666 13.3731 1.53976 13 2 13C2.46024 13 2.83333 13.3731 2.83333 13.8333C2.83333 14.2935 2.46024 14.6666 2 14.6666Z"
|
|
8
|
-
stroke="
|
|
8
|
+
stroke="currentColor"
|
|
9
9
|
strokeWidth="1.5"
|
|
10
10
|
strokeLinecap="round"
|
|
11
11
|
strokeLinejoin="round"
|
|
@@ -21,14 +21,14 @@ export const SettingsIcon: React.FC<any> = () => {
|
|
|
21
21
|
fillRule="evenodd"
|
|
22
22
|
clipRule="evenodd"
|
|
23
23
|
d="M10 12.5C8.61929 12.5 7.5 11.3807 7.5 10C7.5 8.61929 8.61929 7.5 10 7.5C11.3807 7.5 12.5 8.61929 12.5 10C12.5 11.3807 11.3807 12.5 10 12.5Z"
|
|
24
|
-
stroke="
|
|
24
|
+
stroke="currentColor"
|
|
25
25
|
strokeWidth="1.5"
|
|
26
26
|
strokeLinecap="round"
|
|
27
27
|
strokeLinejoin="round"
|
|
28
28
|
/>
|
|
29
29
|
<path
|
|
30
30
|
d="M1.66797 9.26718C1.66797 8.40052 2.3763 7.68385 3.2513 7.68385C4.75964 7.68385 5.3763 6.61718 4.61797 5.30885C4.18464 4.55885 4.44297 3.58385 5.2013 3.15052L6.64297 2.32552C7.3013 1.93385 8.1513 2.16718 8.54297 2.82552L8.63463 2.98385C9.38463 4.29218 10.618 4.29218 11.3763 2.98385L11.468 2.82552C11.8596 2.16718 12.7096 1.93385 13.368 2.32552L14.8096 3.15052C15.568 3.58385 15.8263 4.55885 15.393 5.30885C14.6346 6.61718 15.2513 7.68385 16.7596 7.68385C17.6263 7.68385 18.343 8.39218 18.343 9.26718V10.7338C18.343 11.6005 17.6346 12.3172 16.7596 12.3172C15.2513 12.3172 14.6346 13.3838 15.393 14.6922C15.8263 15.4505 15.568 16.4172 14.8096 16.8505L13.368 17.6755C12.7096 18.0672 11.8596 17.8339 11.468 17.1755L11.3763 17.0172C10.6263 15.7089 9.39297 15.7089 8.63463 17.0172L8.54297 17.1755C8.1513 17.8339 7.3013 18.0672 6.64297 17.6755L5.2013 16.8505C4.44297 16.4172 4.18464 15.4422 4.61797 14.6922C5.3763 13.3838 4.75964 12.3172 3.2513 12.3172C2.3763 12.3172 1.66797 11.6005 1.66797 10.7338V9.26718Z"
|
|
31
|
-
stroke="
|
|
31
|
+
stroke="currentColor"
|
|
32
32
|
strokeWidth="1.5"
|
|
33
33
|
strokeLinecap="round"
|
|
34
34
|
strokeLinejoin="round"
|
|
@@ -134,3 +134,76 @@ export const TableView: React.FC<any> = ({ className }) => {
|
|
|
134
134
|
</svg>
|
|
135
135
|
);
|
|
136
136
|
};
|
|
137
|
+
|
|
138
|
+
export const ExpandIcon: React.FC<any> = ({ className }) => (
|
|
139
|
+
<svg
|
|
140
|
+
width="16"
|
|
141
|
+
height="16"
|
|
142
|
+
className={className}
|
|
143
|
+
viewBox="0 0 16 16"
|
|
144
|
+
fill="none"
|
|
145
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
146
|
+
>
|
|
147
|
+
<path
|
|
148
|
+
d="M2.66797 5.33073V2.66406M2.66797 2.66406H5.33464M2.66797 2.66406L6.0013 5.9974M13.3346 5.33073V2.66406M13.3346 2.66406H10.668M13.3346 2.66406L10.0013 5.9974M2.66797 10.6641V13.3307M2.66797 13.3307H5.33464M2.66797 13.3307L6.0013 9.9974M13.3346 13.3307L10.0013 9.9974M13.3346 13.3307V10.6641M13.3346 13.3307H10.668"
|
|
149
|
+
stroke="currentColor"
|
|
150
|
+
strokeWidth="1.5"
|
|
151
|
+
strokeLinecap="round"
|
|
152
|
+
strokeLinejoin="round"
|
|
153
|
+
/>
|
|
154
|
+
</svg>
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
export const ContentView: React.FC<any> = ({ className }) => (
|
|
158
|
+
<svg
|
|
159
|
+
width="16"
|
|
160
|
+
height="17"
|
|
161
|
+
className={className}
|
|
162
|
+
viewBox="0 0 16 17"
|
|
163
|
+
fill="none"
|
|
164
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
165
|
+
>
|
|
166
|
+
<path
|
|
167
|
+
d="M4.00344 9.48438C3.24485 9.48438 2.94141 9.80804 2.94141 10.6122V12.6553C2.94141 13.4594 3.24485 13.7831 4.00344 13.7831H11.994C12.7526 13.7831 13.056 13.4594 13.056 12.6553V10.6122C13.056 9.80804 12.7526 9.48438 11.994 9.48438H4.00344Z"
|
|
168
|
+
stroke="currentColor"
|
|
169
|
+
strokeLinecap="round"
|
|
170
|
+
strokeLinejoin="round"
|
|
171
|
+
/>
|
|
172
|
+
<path
|
|
173
|
+
d="M4.00344 3.66406C3.24485 3.66406 2.94141 3.98773 2.94141 4.79184V6.835C2.94141 7.63911 3.24485 7.96278 4.00344 7.96278H11.994C12.7526 7.96278 13.056 7.63911 13.056 6.835V4.79184C13.056 3.98773 12.7526 3.66406 11.994 3.66406H4.00344Z"
|
|
174
|
+
stroke="currentColor"
|
|
175
|
+
strokeLinecap="round"
|
|
176
|
+
strokeLinejoin="round"
|
|
177
|
+
/>
|
|
178
|
+
</svg>
|
|
179
|
+
);
|
|
180
|
+
|
|
181
|
+
export const DefaultView: React.FC<any> = ({ className }) => (
|
|
182
|
+
<svg
|
|
183
|
+
width="16"
|
|
184
|
+
height="17"
|
|
185
|
+
className={className}
|
|
186
|
+
viewBox="0 0 16 17"
|
|
187
|
+
fill="none"
|
|
188
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
189
|
+
>
|
|
190
|
+
<path
|
|
191
|
+
fillRule="evenodd"
|
|
192
|
+
clipRule="evenodd"
|
|
193
|
+
d="M2.39844 4.72969C2.39844 4.28786 2.75661 3.92969 3.19844 3.92969H12.7984C13.2403 3.92969 13.5984 4.28786 13.5984 4.72969C13.5984 5.17152 13.2403 5.52969 12.7984 5.52969H3.19844C2.75661 5.52969 2.39844 5.17152 2.39844 4.72969Z"
|
|
194
|
+
fill="currentColor"
|
|
195
|
+
/>
|
|
196
|
+
<path
|
|
197
|
+
fillRule="evenodd"
|
|
198
|
+
clipRule="evenodd"
|
|
199
|
+
d="M2.39844 8.72969C2.39844 8.28786 2.75661 7.92969 3.19844 7.92969H12.7984C13.2403 7.92969 13.5984 8.28786 13.5984 8.72969C13.5984 9.17152 13.2403 9.52969 12.7984 9.52969H3.19844C2.75661 9.52969 2.39844 9.17152 2.39844 8.72969Z"
|
|
200
|
+
fill="currentColor"
|
|
201
|
+
/>
|
|
202
|
+
<path
|
|
203
|
+
fillRule="evenodd"
|
|
204
|
+
clipRule="evenodd"
|
|
205
|
+
d="M2.39844 12.7297C2.39844 12.2879 2.75661 11.9297 3.19844 11.9297H12.7984C13.2403 11.9297 13.5984 12.2879 13.5984 12.7297C13.5984 13.1715 13.2403 13.5297 12.7984 13.5297H3.19844C2.75661 13.5297 2.39844 13.1715 2.39844 12.7297Z"
|
|
206
|
+
fill="currentColor"
|
|
207
|
+
/>
|
|
208
|
+
</svg>
|
|
209
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const VERTICAL_MENU_CLOSE_OTHERS = 'qbs-vertical-menu-close-others';
|
|
2
|
+
|
|
3
|
+
export type VerticalMenuCloseDetail = {
|
|
4
|
+
exceptId: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const closeOtherVerticalMenus = (exceptId: string) => {
|
|
8
|
+
if (typeof document === 'undefined') return;
|
|
9
|
+
document.dispatchEvent(
|
|
10
|
+
new CustomEvent<VerticalMenuCloseDetail>(VERTICAL_MENU_CLOSE_OTHERS, {
|
|
11
|
+
detail: { exceptId },
|
|
12
|
+
}),
|
|
13
|
+
);
|
|
14
|
+
};
|