@linzjs/step-ag-grid 2.0.0 → 2.1.0
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 +463 -212
- package/dist/index.js.map +1 -1
- package/dist/src/components/ComponentLoadingWrapper.d.ts +1 -0
- package/dist/src/components/Grid.d.ts +0 -3
- package/dist/src/components/GridCell.d.ts +3 -0
- package/dist/src/components/GridPopoverHook.d.ts +2 -1
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +4 -3
- package/dist/src/components/gridForm/GridFormEditBearing.d.ts +3 -2
- package/dist/src/components/gridForm/GridFormMessage.d.ts +2 -2
- package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +4 -2
- package/dist/src/components/gridForm/GridFormPopoutMenu.d.ts +2 -1
- package/dist/src/components/gridForm/GridFormTextArea.d.ts +2 -1
- package/dist/src/components/gridForm/GridFormTextInput.d.ts +2 -1
- package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +2 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +2 -3
- package/dist/src/components/gridPopoverEdit/GridPopoverMessage.d.ts +2 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverTextArea.d.ts +2 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverTextInput.d.ts +2 -2
- package/dist/src/components/gridRender/GridRenderGenericCell.d.ts +4 -3
- package/dist/src/contexts/GridContext.d.ts +1 -1
- package/dist/src/contexts/GridPopoverContext.d.ts +1 -1
- 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 +462 -193
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +48 -26
- package/src/components/ComponentLoadingWrapper.tsx +2 -1
- package/src/components/Grid.tsx +2 -9
- package/src/components/GridCell.tsx +5 -0
- package/src/components/GridLoadableCell.tsx +0 -4
- package/src/components/GridPopoverHook.tsx +13 -7
- package/src/components/gridForm/GridFormDropDown.tsx +17 -13
- package/src/components/gridForm/GridFormEditBearing.tsx +4 -4
- package/src/components/gridForm/GridFormMessage.tsx +6 -7
- package/src/components/gridForm/GridFormMultiSelect.tsx +73 -63
- package/src/components/gridForm/GridFormPopoutMenu.tsx +6 -6
- package/src/components/gridForm/GridFormTextArea.tsx +4 -4
- package/src/components/gridForm/GridFormTextInput.tsx +3 -3
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts +4 -0
- package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +4 -4
- package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +7 -2
- package/src/components/gridPopoverEdit/GridPopoverMenu.scss +4 -4
- package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +2 -3
- package/src/components/gridPopoverEdit/GridPopoverMessage.ts +2 -2
- package/src/components/gridPopoverEdit/GridPopoverTextArea.ts +2 -2
- package/src/components/gridPopoverEdit/GridPopoverTextInput.ts +2 -2
- package/src/components/gridRender/GridRenderGenericCell.tsx +3 -2
- package/src/contexts/GridContext.tsx +1 -1
- package/src/contexts/GridPopoverContext.tsx +1 -7
- package/src/contexts/GridPopoverContextProvider.tsx +23 -22
- 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 +3 -3
- package/src/stories/components/GridPopoutBearing.stories.tsx +4 -4
- package/src/stories/components/GridPopoutEditDropDown.stories.tsx +6 -5
- package/src/stories/components/GridPopoutEditGeneric.stories.tsx +5 -7
- package/src/stories/components/GridPopoutEditGenericTextArea.stories.tsx +4 -4
- package/src/stories/components/GridPopoutEditMultiSelect.stories.tsx +4 -4
- package/src/stories/components/GridReadOnly.stories.tsx +14 -18
- 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/stories/components/FormTest.d.ts +0 -12
- 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
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use "../react-menu3/styles/index";
|
|
2
|
+
@use "./react-menu-customisations";
|
|
3
|
+
@use "../../node_modules/@linzjs/lui/dist/scss/Foundation/Variables/ColorVars" as colors;
|
|
2
4
|
|
|
3
5
|
.Grid-container {
|
|
4
6
|
flex: 1;
|
|
@@ -6,11 +8,11 @@
|
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
.Grid-sortIsStale {
|
|
9
|
-
span.ag-icon.ag-icon-desc
|
|
11
|
+
span.ag-icon.ag-icon-desc::after {
|
|
10
12
|
content: "*";
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
span.ag-icon.ag-icon-asc
|
|
15
|
+
span.ag-icon.ag-icon-asc::after {
|
|
14
16
|
content: "*";
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
.Grid-quickFilterBox {
|
|
24
26
|
width: 100%;
|
|
25
27
|
height: 48px;
|
|
26
|
-
border: 0.06rem solid
|
|
28
|
+
border: 0.06rem solid colors.$silver;
|
|
27
29
|
border-radius: 3px;
|
|
28
30
|
padding-left: 0.75rem;
|
|
29
31
|
padding-right: 0.75rem;
|
|
@@ -33,6 +35,7 @@
|
|
|
33
35
|
padding: 4px 8px;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
|
-
.
|
|
37
|
-
padding: 4px
|
|
38
|
+
.GridFormMessage-container {
|
|
39
|
+
padding: 4px 8px;
|
|
40
|
+
max-width: 400px;
|
|
38
41
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.GridPopoverEditDropDown-containerSmall .GridFormDropDown-options {
|
|
2
|
+
max-height: 120px;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.GridPopoverEditDropDown-containerMedium .GridFormDropDown-options {
|
|
7
|
+
max-height: 200px;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.GridPopoverEditDropDown-containerLarge .GridFormDropDown-options {
|
|
12
|
+
max-height: 400px;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.GridPopoverEditDropDown-containerUnlimited .GridFormDropDown-options {
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.GridMultiSelect-containerSmall .GridFormMultiSelect-options {
|
|
2
|
+
max-height: 130px;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.GridMultiSelect-containerMedium .GridFormMultiSelect-options {
|
|
7
|
+
max-height: 190px;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.GridMultiSelect-containerLarge .GridFormMultiSelect-options {
|
|
12
|
+
max-height: 320px;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.GridMultiSelect-containerUnlimited .GridFormMultiSelect-options {
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use "../../node_modules/@linzjs/lui/dist/scss/Foundation/Variables/ColorVars" as colors;
|
|
2
|
+
|
|
3
|
+
.AgGridGenericCellRenderer-icon {
|
|
4
|
+
margin-right: 4px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.AgGridGenericCellRenderer-ic_infoIcon {
|
|
8
|
+
margin-right: 4px;
|
|
9
|
+
fill: colors.$info;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.AgGridGenericCellRenderer-ic_warningIcon {
|
|
13
|
+
margin-right: 4px;
|
|
14
|
+
fill: colors.$warning;
|
|
15
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@use "@linzjs/lui/dist/scss/Foundation/Variables/ColorVars" as lui;
|
|
2
|
+
|
|
3
|
+
// These break if we use urls so ignore stylelint
|
|
4
|
+
/* stylelint-disable-next-line */
|
|
5
|
+
@import "ag-grid-community/src/styles/ag-grid";
|
|
6
|
+
/* stylelint-disable-next-line */
|
|
7
|
+
@import "ag-grid-community/src/styles/ag-theme-alpine/sass/ag-theme-alpine-mixin";
|
|
8
|
+
|
|
9
|
+
.ag-theme-alpine {
|
|
10
|
+
// AG Grid themes can be customized using theme parameters, which are arguments that change its appearance. Refer to
|
|
11
|
+
// https://www.ag-grid.com/javascript-data-grid/themes-customising/#full-list-of-theme-parameters for a full list of
|
|
12
|
+
// the available theme parameters, which should be used whenever possible.
|
|
13
|
+
@include ag-theme-alpine(
|
|
14
|
+
(
|
|
15
|
+
alpine-active-color: lui.$sea,
|
|
16
|
+
foreground-color: lui.$grey-80,
|
|
17
|
+
data-color: lui.$grey-80,
|
|
18
|
+
// ag-grid-community >=28
|
|
19
|
+
selected-row-background-color: lui.$polar,
|
|
20
|
+
header-foreground-color: lui.$surfie,
|
|
21
|
+
background-color: lui.$white,
|
|
22
|
+
odd-row-background-color: lui.$white,
|
|
23
|
+
header-background-color: lui.$white,
|
|
24
|
+
border-color: lui.$lily,
|
|
25
|
+
secondary-border-color: lui.$lily,
|
|
26
|
+
row-hover-color: lui.$lily,
|
|
27
|
+
font-family: (
|
|
28
|
+
"Open Sans",
|
|
29
|
+
system-ui,
|
|
30
|
+
sans-serif,
|
|
31
|
+
),
|
|
32
|
+
font-size: 0.875rem !important,
|
|
33
|
+
borders: false,
|
|
34
|
+
borders-critical: true,
|
|
35
|
+
borders-secondary: false,
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
// Fix that when you click below checkbox it doesn't process a click
|
|
40
|
+
.ag-cell[col-id="selection"] {
|
|
41
|
+
display: flex;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Fix that when you click below checkbox it doesn't process a click
|
|
45
|
+
.ag-cell-wrapper > *:not(.ag-cell-value, .ag-group-value) {
|
|
46
|
+
height: auto;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ag-row:last-of-type {
|
|
50
|
+
border-bottom: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// ag-grid-community 27.x.x needs this vs 28 using the selected-row-background-color above
|
|
54
|
+
// You can set a background _color_ with theme parameters, but for something like a gradient, you need to override CSS.
|
|
55
|
+
.ag-row-selected {
|
|
56
|
+
background-color: lui.$polar;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ag-header-cell {
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
padding: 7px 0 7px 8px;
|
|
62
|
+
|
|
63
|
+
.LuiIcon {
|
|
64
|
+
fill: lui.$surfie;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ag-cell {
|
|
69
|
+
padding-left: 7px;
|
|
70
|
+
padding-right: 4px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ag-cell-more {
|
|
76
|
+
padding: 0;
|
|
77
|
+
display: flex;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ag-cell-wrap-text {
|
|
82
|
+
word-break: break-word;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ag-cell-popup-editing,
|
|
86
|
+
.ag-selected-for-edit,
|
|
87
|
+
.ag-cell-inline-editing {
|
|
88
|
+
background: rgb(72 160 244 / 20%);
|
|
89
|
+
// These are important, it needs to override ag-grid to work
|
|
90
|
+
border: 3px solid #48a0f4 !important;
|
|
91
|
+
border-right: 3px solid #48a0f4 !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ag-row .ag-cell-data-changed {
|
|
95
|
+
// ag-grid natively has !important on this style so we have to use it here :(
|
|
96
|
+
background-color: lightgoldenrodyellow !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ag-center-cols-clipper {
|
|
100
|
+
// when using domLayout={"autoHeight"}, ag grid has a default min-height set to 150px so the !important is necessary here
|
|
101
|
+
min-height: 40px !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ag-body-horizontal-scroll-viewport {
|
|
105
|
+
// It's set to scroll by default, but this causes issues with selecting the last row
|
|
106
|
+
overflow-x: auto;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.step-ag-grid-react-menu {
|
|
2
|
+
/**
|
|
3
|
+
* Scrollbar (Only Chrome)
|
|
4
|
+
*/
|
|
5
|
+
::-webkit-scrollbar {
|
|
6
|
+
width: 20px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
::-webkit-scrollbar-track {
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
::-webkit-scrollbar-thumb {
|
|
14
|
+
background-color: #d6dee1;
|
|
15
|
+
border-radius: 20px;
|
|
16
|
+
border: 6px solid transparent;
|
|
17
|
+
background-clip: content-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
::-webkit-scrollbar-thumb:hover {
|
|
21
|
+
background-color: #a8bbbf;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.szh-menu__item,
|
|
25
|
+
.szh-menu__header {
|
|
26
|
+
padding: 0.375rem 1.5rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.LuiCheckboxInput {
|
|
30
|
+
margin-bottom: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Free text input */
|
|
34
|
+
.free-text-input {
|
|
35
|
+
border: transparent;
|
|
36
|
+
outline: transparent;
|
|
37
|
+
line-height: 33px;
|
|
38
|
+
padding-left: 4px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
textarea.free-text-input {
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
line-height: 1.5;
|
|
44
|
+
width: 300px;
|
|
45
|
+
height: 150px;
|
|
46
|
+
resize: none;
|
|
47
|
+
border: 0.06rem solid #beb9b4;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -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/GridUpdatingContext";
|
|
4
|
-
export * from "./src/contexts/GridUpdatingContextProvider";
|
|
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,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./FormTest.scss";
|
|
3
|
-
import { GridBaseRow } from "@components/Grid";
|
|
4
|
-
export interface IFormTestRow {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
nameType: string;
|
|
8
|
-
numba: string;
|
|
9
|
-
plan: string;
|
|
10
|
-
distance: number | null;
|
|
11
|
-
}
|
|
12
|
-
export declare const FormTest: <RowType extends GridBaseRow>(_props: any) => 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
|
-
}
|