@linzjs/step-ag-grid 1.5.4 → 2.0.1
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/README.md +117 -2
- package/{src/components → dist}/GridTheme.scss +37 -23
- package/dist/index.css +351 -0
- package/dist/index.js +625 -332
- package/dist/index.js.map +1 -1
- package/dist/src/components/ComponentLoadingWrapper.d.ts +1 -0
- package/dist/src/components/Grid.d.ts +0 -2
- package/dist/src/components/GridCell.d.ts +21 -27
- package/dist/src/components/GridPopoverHook.d.ts +5 -2
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +10 -4
- package/dist/src/components/gridForm/GridFormEditBearing.d.ts +5 -5
- package/dist/src/components/gridForm/GridFormMessage.d.ts +4 -5
- package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +5 -4
- package/dist/src/components/gridForm/GridFormPopoutMenu.d.ts +3 -3
- package/dist/src/components/gridForm/GridFormTextArea.d.ts +3 -3
- package/dist/src/components/gridForm/GridFormTextInput.d.ts +3 -3
- package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.d.ts +3 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +5 -270
- package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +3 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +3 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverMessage.d.ts +3 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverTextArea.d.ts +3 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverTextInput.d.ts +3 -2
- package/dist/src/components/gridRender/GridRenderGenericCell.d.ts +4 -5
- package/dist/src/contexts/GridContext.d.ts +1 -1
- package/dist/src/contexts/GridPopoverContext.d.ts +17 -0
- package/dist/src/contexts/GridPopoverContextProvider.d.ts +6 -0
- package/dist/src/contexts/{UpdatingContext.d.ts → GridUpdatingContext.d.ts} +2 -2
- package/dist/src/contexts/GridUpdatingContextProvider.d.ts +7 -0
- package/dist/src/index.d.ts +31 -0
- package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +2 -21
- package/dist/src/react-menu3/contexts/EventHandlersContext.d.ts +7 -0
- package/dist/src/react-menu3/contexts/HoverItemContext.d.ts +2 -0
- package/dist/src/react-menu3/contexts/ItemSettingsContext.d.ts +5 -0
- package/dist/src/react-menu3/contexts/MenuListContext.d.ts +9 -0
- package/dist/src/react-menu3/contexts/MenuListItemContext.d.ts +11 -0
- package/dist/src/react-menu3/contexts/RadioGroupContext.d.ts +7 -0
- package/dist/src/react-menu3/contexts/SettingsContext.d.ts +20 -0
- package/dist/src/react-menu3/index.d.ts +0 -1
- package/dist/src/react-menu3/utils/constants.d.ts +1 -50
- package/dist/step-ag-grid.esm.js +622 -312
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +39 -26
- package/src/components/ComponentLoadingWrapper.tsx +2 -1
- package/src/components/Grid.tsx +3 -8
- package/src/components/GridCell.tsx +62 -79
- package/src/components/GridLoadableCell.tsx +0 -1
- package/src/components/GridPopoverHook.tsx +18 -16
- package/src/components/gridForm/GridFormDropDown.tsx +47 -32
- package/src/components/gridForm/GridFormEditBearing.tsx +14 -14
- package/src/components/gridForm/GridFormMessage.tsx +11 -17
- package/src/components/gridForm/GridFormMultiSelect.tsx +89 -79
- package/src/components/gridForm/GridFormPopoutMenu.tsx +10 -11
- package/src/components/gridForm/GridFormTextArea.tsx +16 -17
- package/src/components/gridForm/GridFormTextInput.tsx +17 -17
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts +20 -15
- package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +53 -45
- package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +21 -15
- package/src/components/gridPopoverEdit/GridPopoverMenu.scss +4 -4
- package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +21 -23
- package/src/components/gridPopoverEdit/GridPopoverMessage.ts +18 -16
- package/src/components/gridPopoverEdit/GridPopoverTextArea.ts +12 -16
- package/src/components/gridPopoverEdit/GridPopoverTextInput.ts +15 -15
- package/src/components/gridRender/GridRenderGenericCell.tsx +5 -6
- package/src/components/gridRender/GridRenderPopoutMenuCell.tsx +2 -2
- package/src/contexts/GridContext.tsx +1 -1
- package/src/contexts/GridContextProvider.tsx +3 -5
- package/src/contexts/GridPopoverContext.tsx +26 -0
- package/src/contexts/GridPopoverContextProvider.tsx +54 -0
- package/src/contexts/{UpdatingContext.tsx → GridUpdatingContext.tsx} +2 -2
- package/src/contexts/{UpdatingContextProvider.tsx → GridUpdatingContextProvider.tsx} +8 -6
- package/src/index.ts +38 -0
- package/src/lui/TextInputFormatted.scss +1 -1
- package/src/react-menu3/README.md +66 -0
- package/src/react-menu3/components/ControlledMenu.tsx +9 -17
- package/src/react-menu3/components/FocusableItem.tsx +2 -9
- package/src/react-menu3/components/MenuGroup.tsx +2 -1
- package/src/react-menu3/components/MenuItem.tsx +3 -12
- package/src/react-menu3/components/MenuList.tsx +4 -4
- package/src/react-menu3/components/MenuRadioGroup.tsx +3 -22
- package/src/react-menu3/components/SubMenu.tsx +4 -4
- package/src/react-menu3/contexts/EventHandlersContext.ts +11 -0
- package/src/react-menu3/contexts/HoverItemContext.ts +3 -0
- package/src/react-menu3/contexts/ItemSettingsContext.ts +6 -0
- package/src/react-menu3/contexts/MenuListContext.ts +10 -0
- package/src/react-menu3/contexts/MenuListItemContext.ts +16 -0
- package/src/react-menu3/contexts/RadioGroupContext.ts +8 -0
- package/src/react-menu3/contexts/SettingsContext.ts +20 -0
- package/src/react-menu3/hooks/useItemState.ts +3 -1
- package/src/react-menu3/index.ts +0 -1
- package/src/react-menu3/styles/_var.scss +4 -4
- package/src/react-menu3/styles/core.scss +6 -6
- package/src/react-menu3/styles/index.scss +10 -7
- package/src/react-menu3/styles/theme-dark.scss +4 -2
- package/src/react-menu3/styles/transitions/slide.scss +8 -8
- package/src/react-menu3/utils/constants.ts +1 -74
- package/src/react-menu3/utils/withHovering.tsx +1 -1
- package/src/stories/components/FormTest.scss +1 -2
- package/src/stories/components/FormTest.tsx +4 -3
- package/src/stories/components/GridPopoutBearing.stories.tsx +30 -26
- package/src/stories/components/GridPopoutEditDropDown.stories.tsx +94 -51
- package/src/stories/components/GridPopoutEditGeneric.stories.tsx +18 -14
- package/src/stories/components/GridPopoutEditGenericTextArea.stories.tsx +78 -62
- package/src/stories/components/GridPopoutEditMultiSelect.stories.tsx +60 -52
- package/src/stories/components/GridReadOnly.stories.tsx +77 -64
- package/src/stories/components/ReactMenu.stories.tsx +0 -4
- package/src/{components → styles}/Grid.scss +9 -6
- package/src/styles/GridFormDropDown.scss +18 -0
- package/src/{components/gridForm → styles}/GridFormEditBearing.scss +0 -0
- package/src/styles/GridFormMultiSelect.scss +18 -0
- package/src/styles/GridRenderGenericCell.scss +15 -0
- package/src/styles/GridTheme.scss +108 -0
- package/src/styles/index.scss +2 -0
- package/src/styles/lui-overrides.scss +49 -0
- package/src/styles/react-menu-customisations.scss +135 -0
- package/dist/index.d.ts +0 -38
- package/dist/src/contexts/UpdatingContextProvider.d.ts +0 -7
- package/dist/src/stories/components/FormTest.d.ts +0 -13
- package/dist/src/stories/components/GridPopoutBearing.stories.d.ts +0 -9
- package/dist/src/stories/components/GridPopoutEditDropDown.stories.d.ts +0 -9
- package/dist/src/stories/components/GridPopoutEditGeneric.stories.d.ts +0 -9
- package/dist/src/stories/components/GridPopoutEditGenericTextArea.stories.d.ts +0 -9
- package/dist/src/stories/components/GridPopoutEditMultiSelect.stories.d.ts +0 -9
- package/dist/src/stories/components/GridReadOnly.stories.d.ts +0 -9
- package/dist/src/stories/components/ReactMenu.stories.d.ts +0 -8
- package/src/components/gridRender/GridRenderGenericCell.scss +0 -15
- package/src/lui-overrides.scss +0 -163
- package/src/react-menu3/style-utils.d.ts +0 -110
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
@use "../../node_modules/@linzjs/lui/dist/scss/Foundation/Variables/ColorVars" as colors;
|
|
2
|
+
@use "../../node_modules/@linzjs/lui/dist/scss/Foundation/Variables/FontVars" as fonts;
|
|
3
|
+
@use "../../node_modules/@linzjs/lui/dist/scss/Foundation/Variables/SpacingVars" as spacing;
|
|
4
|
+
@use "../../node_modules/@linzjs/lui/dist/scss/Foundation/Utilities" as *;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Here is where we can override the styles of react-menu
|
|
8
|
+
*/
|
|
9
|
+
.step-ag-grid-react-menu.szh-menu {
|
|
10
|
+
z-index: 900;
|
|
11
|
+
color: colors.$base-type-color;
|
|
12
|
+
@include fonts.font-light();
|
|
13
|
+
|
|
14
|
+
div,
|
|
15
|
+
a[role="menuitem"] {
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
color: colors.$base-type-color;
|
|
18
|
+
@include fonts.font-light();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
li[role="menuitem"]:hover {
|
|
22
|
+
background-color: colors.$polar;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.szh-menu__header {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Here are styles for lui select menu
|
|
33
|
+
*/
|
|
34
|
+
.lui-select-menu.szh-menu-container {
|
|
35
|
+
@include breakpoint(sm) {
|
|
36
|
+
position: absolute;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.lui-select-menu.szh-menu {
|
|
41
|
+
z-index: 900;
|
|
42
|
+
width: 92vw;
|
|
43
|
+
overflow-y: scroll;
|
|
44
|
+
|
|
45
|
+
@include breakpoint(sm) {
|
|
46
|
+
overflow: visible;
|
|
47
|
+
height: auto;
|
|
48
|
+
width: 240px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
color: colors.$base-type-color;
|
|
52
|
+
@include fonts.font-light();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.lui-select-menuItem {
|
|
56
|
+
padding: spacing.$unit-xs spacing.$unit-sm spacing.$unit-xs spacing.$unit-xs;
|
|
57
|
+
display: flex;
|
|
58
|
+
line-height: 1;
|
|
59
|
+
transition: all 0.2s ease-in-out;
|
|
60
|
+
fill: colors.$fuscous;
|
|
61
|
+
|
|
62
|
+
&:hover {
|
|
63
|
+
background-color: colors.$polar;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.lui-select-menuItem--error {
|
|
68
|
+
p {
|
|
69
|
+
color: colors.$error;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.LuiIcon {
|
|
73
|
+
fill: colors.$error;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.lui-select-menuItemText {
|
|
78
|
+
@include fonts.font-regular();
|
|
79
|
+
color: colors.$charcoal;
|
|
80
|
+
margin: 0;
|
|
81
|
+
padding-left: spacing.$unit-lg;
|
|
82
|
+
|
|
83
|
+
// if no icon, give it 4px to align with the group header
|
|
84
|
+
&--noPadding {
|
|
85
|
+
padding-left: spacing.$unit-xxs;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.lui-select-icon + .lui-select-menuItemText {
|
|
90
|
+
padding-left: spacing.$unit-xs;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.lui-select-menu-group {
|
|
94
|
+
height: 32px;
|
|
95
|
+
color: colors.$fuscous;
|
|
96
|
+
padding-left: 0.75rem;
|
|
97
|
+
text-transform: none;
|
|
98
|
+
@include fonts.font-semibold();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.lui-select-submenu {
|
|
102
|
+
flex: 1;
|
|
103
|
+
|
|
104
|
+
div[role="menuitem"] {
|
|
105
|
+
padding: spacing.$unit-xs spacing.$unit-xs spacing.$unit-xs 2.5rem;
|
|
106
|
+
text-decoration: none;
|
|
107
|
+
@include fonts.font-regular();
|
|
108
|
+
height: 40px;
|
|
109
|
+
}
|
|
110
|
+
// overwrite the hover color
|
|
111
|
+
.szh-menu__item--hover {
|
|
112
|
+
background-color: colors.$polar;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.lui-select-submenu-with-icon {
|
|
117
|
+
flex: 1;
|
|
118
|
+
// width: 200px;
|
|
119
|
+
div[role="menuitem"] {
|
|
120
|
+
padding-left: 0;
|
|
121
|
+
text-decoration: none;
|
|
122
|
+
@include fonts.font-regular();
|
|
123
|
+
height: 40px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.lui-select-divider {
|
|
128
|
+
margin: 0.25rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
.step-ag-grid-react-menu-sub-header-icon {
|
|
133
|
+
margin: spacing.$unit-xs;
|
|
134
|
+
fill: colors.$fuscous;
|
|
135
|
+
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export * from "./src/react-menu3/index";
|
|
2
|
-
export * from "./src/react-menu3/types";
|
|
3
|
-
export * from "./src/contexts/UpdatingContext";
|
|
4
|
-
export * from "./src/contexts/UpdatingContextProvider";
|
|
5
|
-
export * from "./src/contexts/GridContext";
|
|
6
|
-
export * from "./src/contexts/GridContextProvider";
|
|
7
|
-
export type { GridBaseRow } from "./src/components/Grid";
|
|
8
|
-
export { Grid } from "./src/components/Grid";
|
|
9
|
-
export * from "./src/components/GridCell";
|
|
10
|
-
export { GridIcon } from "./src/components/GridIcon";
|
|
11
|
-
export { ComponentLoadingWrapper } from "./src/components/ComponentLoadingWrapper";
|
|
12
|
-
export { GenericMultiEditCellClass } from "./src/components/GenericCellClass";
|
|
13
|
-
export { GridLoadableCell } from "./src/components/GridLoadableCell";
|
|
14
|
-
export { useGridPopoverHook } from "./src/components/GridPopoverHook";
|
|
15
|
-
export { usePostSortRowsHook } from "./src/components/PostSortRowsHook";
|
|
16
|
-
export { GridRendererGenericCell } from "./src/components/gridRender/GridRenderGenericCell";
|
|
17
|
-
export { GridRenderPopoutMenuCell } from "./src/components/gridRender/GridRenderPopoutMenuCell";
|
|
18
|
-
export { GridPopoutEditMultiSelect } from "./src/components/gridPopoverEdit/GridPopoutEditMultiSelect";
|
|
19
|
-
export { GridPopoverMenu } from "./src/components/gridPopoverEdit/GridPopoverMenu";
|
|
20
|
-
export { GridPopoverEditBearing } from "./src/components/gridPopoverEdit/GridPopoverEditBearing";
|
|
21
|
-
export { GridPopoverEditBearingCorrection } from "./src/components/gridPopoverEdit/GridPopoverEditBearing";
|
|
22
|
-
export { GridPopoverEditDropDown } from "./src/components/gridPopoverEdit/GridPopoverEditDropDown";
|
|
23
|
-
export { GridPopoverMessage } from "./src/components/gridPopoverEdit/GridPopoverMessage";
|
|
24
|
-
export { GridPopoverTextArea } from "./src/components/gridPopoverEdit/GridPopoverTextArea";
|
|
25
|
-
export { GridPopoverTextInput } from "./src/components/gridPopoverEdit/GridPopoverTextInput";
|
|
26
|
-
export { GridHeaderSelect } from "./src/components/gridHeader/GridHeaderSelect";
|
|
27
|
-
export * from "./src/components/gridForm/GridFormEditBearing";
|
|
28
|
-
export * from "./src/components/gridForm/GridFormDropDown";
|
|
29
|
-
export * from "./src/components/gridForm/GridFormMessage";
|
|
30
|
-
export * from "./src/components/gridForm/GridFormMultiSelect";
|
|
31
|
-
export * from "./src/components/gridForm/GridFormPopoutMenu";
|
|
32
|
-
export * from "./src/components/gridForm/GridFormTextArea";
|
|
33
|
-
export * from "./src/components/gridForm/GridFormTextInput";
|
|
34
|
-
export { TextAreaInput } from "./src/lui/TextAreaInput";
|
|
35
|
-
export { TextInputFormatted } from "./src/lui/TextInputFormatted";
|
|
36
|
-
export { GridSubComponentTextArea } from "./src/components/GridSubComponentTextArea";
|
|
37
|
-
export * from "./src/utils/bearing";
|
|
38
|
-
export * from "./src/utils/util";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
interface UpdatingContextProviderProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare type UpdatingContextStatus = Record<string, (number | string)[] | undefined>;
|
|
6
|
-
export declare const UpdatingContextProvider: (props: UpdatingContextProviderProps) => JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./FormTest.scss";
|
|
3
|
-
import { GridFormProps } from "@components/GridCell";
|
|
4
|
-
import { GridBaseRow } from "@components/Grid";
|
|
5
|
-
export interface IFormTestRow {
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
nameType: string;
|
|
9
|
-
numba: string;
|
|
10
|
-
plan: string;
|
|
11
|
-
distance: number | null;
|
|
12
|
-
}
|
|
13
|
-
export declare const FormTest: <RowType extends GridBaseRow>(props: GridFormProps<RowType>) => JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
3
|
-
import "@linzjs/lui/dist/fonts";
|
|
4
|
-
import "../../lui-overrides.scss";
|
|
5
|
-
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
6
|
-
import { GridProps } from "@components/Grid";
|
|
7
|
-
declare const _default: ComponentMeta<(params: GridProps) => JSX.Element>;
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Bearings: ComponentStory<(params: GridProps) => JSX.Element>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
3
|
-
import "@linzjs/lui/dist/fonts";
|
|
4
|
-
import "../../lui-overrides.scss";
|
|
5
|
-
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
6
|
-
import { GridProps } from "@components/Grid";
|
|
7
|
-
declare const _default: ComponentMeta<(params: GridProps) => JSX.Element>;
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const EditDropdown: ComponentStory<(params: GridProps) => JSX.Element>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
3
|
-
import "@linzjs/lui/dist/fonts";
|
|
4
|
-
import "../../lui-overrides.scss";
|
|
5
|
-
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
6
|
-
import { GridProps } from "@components/Grid";
|
|
7
|
-
declare const _default: ComponentMeta<(params: GridProps) => JSX.Element>;
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const EditGeneric: ComponentStory<(params: GridProps) => JSX.Element>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
3
|
-
import "@linzjs/lui/dist/fonts";
|
|
4
|
-
import "../../lui-overrides.scss";
|
|
5
|
-
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
6
|
-
import { GridProps } from "@components/Grid";
|
|
7
|
-
declare const _default: ComponentMeta<(params: GridProps) => JSX.Element>;
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const EditGenericTextArea: ComponentStory<(params: GridProps) => JSX.Element>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
3
|
-
import "@linzjs/lui/dist/fonts";
|
|
4
|
-
import "../../lui-overrides.scss";
|
|
5
|
-
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
6
|
-
import { GridProps } from "@components/Grid";
|
|
7
|
-
declare const _default: ComponentMeta<(params: GridProps) => JSX.Element>;
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const EditMultiSelect: ComponentStory<(params: GridProps) => JSX.Element>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
3
|
-
import "@linzjs/lui/dist/fonts";
|
|
4
|
-
import "../../lui-overrides.scss";
|
|
5
|
-
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
6
|
-
import { GridProps } from "@components/Grid";
|
|
7
|
-
declare const _default: ComponentMeta<(params: GridProps) => JSX.Element>;
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const ReadOnly: ComponentStory<(params: GridProps) => JSX.Element>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
3
|
-
import "@linzjs/lui/dist/fonts";
|
|
4
|
-
import "../../lui-overrides.scss";
|
|
5
|
-
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
6
|
-
declare const _default: ComponentMeta<(params: import("@components/Grid").GridProps) => JSX.Element>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const ReactMenuControlled: ComponentStory<(params: import("@components/Grid").GridProps) => JSX.Element>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@use 'node_modules/@linzjs/lui/dist/scss/Core' as lui;
|
|
2
|
-
|
|
3
|
-
.AgGridGenericCellRenderer-icon {
|
|
4
|
-
margin-right: 4px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.AgGridGenericCellRenderer-ic_infoIcon {
|
|
8
|
-
@extend .AgGridGenericCellRenderer-icon;
|
|
9
|
-
fill: lui.$info;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.AgGridGenericCellRenderer-ic_warningIcon {
|
|
13
|
-
@extend .AgGridGenericCellRenderer-icon;
|
|
14
|
-
fill: lui.$warning;
|
|
15
|
-
}
|
package/src/lui-overrides.scss
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lui Table additions, to be brought into Lui
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
.lui-base-table.lui-table-bold-headings th {
|
|
6
|
-
font-weight: 600;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.lui-base-table.lui-table-nowrap-headings th {
|
|
10
|
-
white-space: nowrap;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.lui-base-table.lui-compact-table th,
|
|
14
|
-
.lui-base-table.lui-compact-table td {
|
|
15
|
-
padding-top: 7px;
|
|
16
|
-
padding-bottom: 7px;
|
|
17
|
-
font-size: 0.875rem;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.lui-base-table.lui-compact-table th.lui-table-heading-dark,
|
|
21
|
-
.lui-base-table.lui-compact-table td.lui-table-heading-dark {
|
|
22
|
-
background-color: #55504b; /* $grey-60 */
|
|
23
|
-
color: white;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.lui-base-table.lui-table-no-top-line thead {
|
|
27
|
-
border-top: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Lui Button additions, to be brought into Lui
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
.lui-button.lui-button-toolbar,
|
|
35
|
-
a.lui-button.lui-button-toolbar {
|
|
36
|
-
border-color: transparent;
|
|
37
|
-
padding: 4px;
|
|
38
|
-
line-height: 12px;
|
|
39
|
-
margin: 2px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.lui-compact-table .lui-bearing-input-wrapper .lui-bearing-display {
|
|
43
|
-
line-height: 25px !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* Until LUI fix comes (For different font weights) */
|
|
47
|
-
input,
|
|
48
|
-
select .survey-information {
|
|
49
|
-
font-weight: 400 !important;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.table-select input {
|
|
53
|
-
line-height: 25px !important;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.lui-standard-form .lui-compact-table .lui-input-error input {
|
|
57
|
-
border-left-width: 28px !important;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.lui-standard-form .lui-compact-table .lui-input-error .lui-form-status-icon {
|
|
61
|
-
font-size: 1rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* To be replaced by Darrell's changes */
|
|
65
|
-
.lui-standard-form .temporary-tighter-form-style label {
|
|
66
|
-
margin-top: 20px !important;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/** Survey map header */
|
|
70
|
-
.lui-header.lui-header-white::after {
|
|
71
|
-
height: 2px;
|
|
72
|
-
background: linear-gradient(270deg, #bbb 1%, #ccc 100%);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/** Context Menu for the tables */
|
|
76
|
-
.edit-cell {
|
|
77
|
-
width: 100%;
|
|
78
|
-
height: 100%;
|
|
79
|
-
display: flex;
|
|
80
|
-
align-items: center;
|
|
81
|
-
border: none;
|
|
82
|
-
text-align: left;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/** Free text input */
|
|
86
|
-
|
|
87
|
-
.lui-menu .free-text-input {
|
|
88
|
-
border: transparent;
|
|
89
|
-
outline: transparent;
|
|
90
|
-
line-height: 33px;
|
|
91
|
-
padding-left: 4px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.lui-menu textarea.free-text-input {
|
|
95
|
-
font-weight: 400;
|
|
96
|
-
line-height: 1.5;
|
|
97
|
-
width: 300px;
|
|
98
|
-
height: 150px;
|
|
99
|
-
resize: none;
|
|
100
|
-
border: 0.06rem solid #beb9b4;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.LuiCheckboxInput:focus {
|
|
104
|
-
border: 1px solid black;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.LuiCheckboxInput-group:focus {
|
|
108
|
-
border: 1px solid black;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/* Bounding box in a popout - any menus will be placed in the space of this div */
|
|
112
|
-
div.menu-bounding-box {
|
|
113
|
-
position: absolute;
|
|
114
|
-
height: 100%;
|
|
115
|
-
width: 95%;
|
|
116
|
-
z-index: -9999;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.lui-button-icon {
|
|
120
|
-
display: flex;
|
|
121
|
-
justify-content: center;
|
|
122
|
-
align-items: center;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.lui-button.lui-button-lg.lui-button-icon .LuiIcon.LuiIcon--sm {
|
|
126
|
-
margin-bottom: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.lui-button.lui-button-med.lui-button-icon .LuiIcon.LuiIcon--md {
|
|
130
|
-
margin-bottom: -1px;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.lui-menu {
|
|
134
|
-
/**
|
|
135
|
-
* Scrollbar (Only Chrome)
|
|
136
|
-
*/
|
|
137
|
-
::-webkit-scrollbar {
|
|
138
|
-
width: 20px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
::-webkit-scrollbar-track {
|
|
142
|
-
background-color: transparent;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
::-webkit-scrollbar-thumb {
|
|
146
|
-
background-color: #d6dee1;
|
|
147
|
-
border-radius: 20px;
|
|
148
|
-
border: 6px solid transparent;
|
|
149
|
-
background-clip: content-box;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
::-webkit-scrollbar-thumb:hover {
|
|
153
|
-
background-color: #a8bbbf;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.szh-menu__item {
|
|
157
|
-
padding: 2px 1rem;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.LuiCheckboxInput {
|
|
161
|
-
margin-bottom: 0;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
interface Base {
|
|
2
|
-
/**
|
|
3
|
-
* CSS selector for the element itself
|
|
4
|
-
*/
|
|
5
|
-
name: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface Directions {
|
|
9
|
-
/**
|
|
10
|
-
* Menu opens to the left
|
|
11
|
-
*/
|
|
12
|
-
dirLeft: string;
|
|
13
|
-
/**
|
|
14
|
-
* Menu opens to the right
|
|
15
|
-
*/
|
|
16
|
-
dirRight: string;
|
|
17
|
-
/**
|
|
18
|
-
* Menu opens to the top
|
|
19
|
-
*/
|
|
20
|
-
dirTop: string;
|
|
21
|
-
/**
|
|
22
|
-
* Menu opens to the bottom
|
|
23
|
-
*/
|
|
24
|
-
dirBottom: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const menuSelector: Readonly<
|
|
28
|
-
Base &
|
|
29
|
-
Directions & {
|
|
30
|
-
/**
|
|
31
|
-
* Menu transitions from closed to open
|
|
32
|
-
*/
|
|
33
|
-
stateOpening: string;
|
|
34
|
-
/**
|
|
35
|
-
* Menu is open
|
|
36
|
-
*/
|
|
37
|
-
stateOpen: string;
|
|
38
|
-
/**
|
|
39
|
-
* Menu transitions from open to closed
|
|
40
|
-
*/
|
|
41
|
-
stateClosing: string;
|
|
42
|
-
/**
|
|
43
|
-
* Menu is closed
|
|
44
|
-
*/
|
|
45
|
-
stateClosed: string;
|
|
46
|
-
}
|
|
47
|
-
>;
|
|
48
|
-
|
|
49
|
-
export const menuArrowSelector: Readonly<Base & Directions>;
|
|
50
|
-
|
|
51
|
-
export const menuItemSelector: Readonly<
|
|
52
|
-
Base & {
|
|
53
|
-
/**
|
|
54
|
-
* Menu item is hovered and focused
|
|
55
|
-
*/
|
|
56
|
-
hover: string;
|
|
57
|
-
/**
|
|
58
|
-
* Menu item is disabled
|
|
59
|
-
*/
|
|
60
|
-
disabled: string;
|
|
61
|
-
/**
|
|
62
|
-
* Menu item is a URL link (when the `href` prop is set)
|
|
63
|
-
*/
|
|
64
|
-
anchor: string;
|
|
65
|
-
/**
|
|
66
|
-
* Menu item is checked (only for a radio or checkbox item)
|
|
67
|
-
*/
|
|
68
|
-
checked: string;
|
|
69
|
-
/**
|
|
70
|
-
* Present on a submenu item when it's submenu is open
|
|
71
|
-
*/
|
|
72
|
-
open: string;
|
|
73
|
-
/**
|
|
74
|
-
* Present on a submenu item, which is set by the `label` prop on `SubMenu` component
|
|
75
|
-
*/
|
|
76
|
-
submenu: string;
|
|
77
|
-
/**
|
|
78
|
-
* Present on a `FocusableItem`
|
|
79
|
-
*/
|
|
80
|
-
focusable: string;
|
|
81
|
-
/**
|
|
82
|
-
* Menu item is a radio item
|
|
83
|
-
*/
|
|
84
|
-
typeRadio: string;
|
|
85
|
-
/**
|
|
86
|
-
* Menu item is a checkbox item
|
|
87
|
-
*/
|
|
88
|
-
typeCheckbox: string;
|
|
89
|
-
}
|
|
90
|
-
>;
|
|
91
|
-
|
|
92
|
-
export const menuDividerSelector: Readonly<Base>;
|
|
93
|
-
export const menuHeaderSelector: Readonly<Base>;
|
|
94
|
-
export const menuGroupSelector: Readonly<Base>;
|
|
95
|
-
export const radioGroupSelector: Readonly<Base>;
|
|
96
|
-
export const submenuSelector: Readonly<Base>;
|
|
97
|
-
|
|
98
|
-
export const menuContainerSelector: Readonly<
|
|
99
|
-
Base & {
|
|
100
|
-
itemTransition: string;
|
|
101
|
-
}
|
|
102
|
-
>;
|
|
103
|
-
|
|
104
|
-
export const menuButtonSelector: Readonly<
|
|
105
|
-
Base & {
|
|
106
|
-
open: string;
|
|
107
|
-
}
|
|
108
|
-
>;
|
|
109
|
-
|
|
110
|
-
export {};
|