@linzjs/step-ag-grid 2.0.0 → 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.
Files changed (119) hide show
  1. package/README.md +117 -2
  2. package/{src/components → dist}/GridTheme.scss +37 -23
  3. package/dist/index.css +351 -0
  4. package/dist/index.js +462 -210
  5. package/dist/index.js.map +1 -1
  6. package/dist/src/components/ComponentLoadingWrapper.d.ts +1 -0
  7. package/dist/src/components/Grid.d.ts +0 -2
  8. package/dist/src/components/GridCell.d.ts +3 -0
  9. package/dist/src/components/GridPopoverHook.d.ts +2 -1
  10. package/dist/src/components/gridForm/GridFormDropDown.d.ts +4 -3
  11. package/dist/src/components/gridForm/GridFormEditBearing.d.ts +3 -2
  12. package/dist/src/components/gridForm/GridFormMessage.d.ts +2 -2
  13. package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +4 -2
  14. package/dist/src/components/gridForm/GridFormPopoutMenu.d.ts +2 -1
  15. package/dist/src/components/gridForm/GridFormTextArea.d.ts +2 -1
  16. package/dist/src/components/gridForm/GridFormTextInput.d.ts +2 -1
  17. package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +4 -4
  18. package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +2 -2
  19. package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +2 -3
  20. package/dist/src/components/gridPopoverEdit/GridPopoverMessage.d.ts +2 -2
  21. package/dist/src/components/gridPopoverEdit/GridPopoverTextArea.d.ts +2 -2
  22. package/dist/src/components/gridPopoverEdit/GridPopoverTextInput.d.ts +2 -2
  23. package/dist/src/components/gridRender/GridRenderGenericCell.d.ts +4 -3
  24. package/dist/src/contexts/GridContext.d.ts +1 -1
  25. package/dist/src/contexts/GridPopoverContext.d.ts +1 -1
  26. package/dist/src/index.d.ts +31 -0
  27. package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +2 -21
  28. package/dist/src/react-menu3/contexts/EventHandlersContext.d.ts +7 -0
  29. package/dist/src/react-menu3/contexts/HoverItemContext.d.ts +2 -0
  30. package/dist/src/react-menu3/contexts/ItemSettingsContext.d.ts +5 -0
  31. package/dist/src/react-menu3/contexts/MenuListContext.d.ts +9 -0
  32. package/dist/src/react-menu3/contexts/MenuListItemContext.d.ts +11 -0
  33. package/dist/src/react-menu3/contexts/RadioGroupContext.d.ts +7 -0
  34. package/dist/src/react-menu3/contexts/SettingsContext.d.ts +20 -0
  35. package/dist/src/react-menu3/index.d.ts +0 -1
  36. package/dist/src/react-menu3/utils/constants.d.ts +1 -50
  37. package/dist/step-ag-grid.esm.js +461 -191
  38. package/dist/step-ag-grid.esm.js.map +1 -1
  39. package/package.json +39 -26
  40. package/src/components/ComponentLoadingWrapper.tsx +2 -1
  41. package/src/components/Grid.tsx +1 -6
  42. package/src/components/GridCell.tsx +5 -0
  43. package/src/components/GridLoadableCell.tsx +0 -4
  44. package/src/components/GridPopoverHook.tsx +13 -7
  45. package/src/components/gridForm/GridFormDropDown.tsx +17 -13
  46. package/src/components/gridForm/GridFormEditBearing.tsx +4 -4
  47. package/src/components/gridForm/GridFormMessage.tsx +6 -7
  48. package/src/components/gridForm/GridFormMultiSelect.tsx +73 -63
  49. package/src/components/gridForm/GridFormPopoutMenu.tsx +6 -6
  50. package/src/components/gridForm/GridFormTextArea.tsx +4 -4
  51. package/src/components/gridForm/GridFormTextInput.tsx +3 -3
  52. package/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts +4 -0
  53. package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +4 -4
  54. package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +7 -2
  55. package/src/components/gridPopoverEdit/GridPopoverMenu.scss +4 -4
  56. package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +2 -3
  57. package/src/components/gridPopoverEdit/GridPopoverMessage.ts +2 -2
  58. package/src/components/gridPopoverEdit/GridPopoverTextArea.ts +2 -2
  59. package/src/components/gridPopoverEdit/GridPopoverTextInput.ts +2 -2
  60. package/src/components/gridRender/GridRenderGenericCell.tsx +3 -2
  61. package/src/contexts/GridContext.tsx +1 -1
  62. package/src/contexts/GridPopoverContext.tsx +1 -7
  63. package/src/contexts/GridPopoverContextProvider.tsx +23 -22
  64. package/src/index.ts +38 -0
  65. package/src/lui/TextInputFormatted.scss +1 -1
  66. package/src/react-menu3/README.md +66 -0
  67. package/src/react-menu3/components/ControlledMenu.tsx +9 -17
  68. package/src/react-menu3/components/FocusableItem.tsx +2 -9
  69. package/src/react-menu3/components/MenuGroup.tsx +2 -1
  70. package/src/react-menu3/components/MenuItem.tsx +3 -12
  71. package/src/react-menu3/components/MenuList.tsx +4 -4
  72. package/src/react-menu3/components/MenuRadioGroup.tsx +3 -22
  73. package/src/react-menu3/components/SubMenu.tsx +4 -4
  74. package/src/react-menu3/contexts/EventHandlersContext.ts +11 -0
  75. package/src/react-menu3/contexts/HoverItemContext.ts +3 -0
  76. package/src/react-menu3/contexts/ItemSettingsContext.ts +6 -0
  77. package/src/react-menu3/contexts/MenuListContext.ts +10 -0
  78. package/src/react-menu3/contexts/MenuListItemContext.ts +16 -0
  79. package/src/react-menu3/contexts/RadioGroupContext.ts +8 -0
  80. package/src/react-menu3/contexts/SettingsContext.ts +20 -0
  81. package/src/react-menu3/hooks/useItemState.ts +3 -1
  82. package/src/react-menu3/index.ts +0 -1
  83. package/src/react-menu3/styles/_var.scss +4 -4
  84. package/src/react-menu3/styles/core.scss +6 -6
  85. package/src/react-menu3/styles/index.scss +10 -7
  86. package/src/react-menu3/styles/theme-dark.scss +4 -2
  87. package/src/react-menu3/styles/transitions/slide.scss +8 -8
  88. package/src/react-menu3/utils/constants.ts +1 -74
  89. package/src/react-menu3/utils/withHovering.tsx +1 -1
  90. package/src/stories/components/FormTest.scss +1 -2
  91. package/src/stories/components/FormTest.tsx +3 -3
  92. package/src/stories/components/GridPopoutBearing.stories.tsx +2 -1
  93. package/src/stories/components/GridPopoutEditDropDown.stories.tsx +4 -2
  94. package/src/stories/components/GridPopoutEditGeneric.stories.tsx +3 -4
  95. package/src/stories/components/GridPopoutEditGenericTextArea.stories.tsx +2 -1
  96. package/src/stories/components/GridPopoutEditMultiSelect.stories.tsx +2 -1
  97. package/src/stories/components/GridReadOnly.stories.tsx +10 -13
  98. package/src/stories/components/ReactMenu.stories.tsx +0 -4
  99. package/src/{components → styles}/Grid.scss +9 -6
  100. package/src/styles/GridFormDropDown.scss +18 -0
  101. package/src/{components/gridForm → styles}/GridFormEditBearing.scss +0 -0
  102. package/src/styles/GridFormMultiSelect.scss +18 -0
  103. package/src/styles/GridRenderGenericCell.scss +15 -0
  104. package/src/styles/GridTheme.scss +108 -0
  105. package/src/styles/index.scss +2 -0
  106. package/src/styles/lui-overrides.scss +49 -0
  107. package/src/styles/react-menu-customisations.scss +135 -0
  108. package/dist/index.d.ts +0 -38
  109. package/dist/src/stories/components/FormTest.d.ts +0 -12
  110. package/dist/src/stories/components/GridPopoutBearing.stories.d.ts +0 -9
  111. package/dist/src/stories/components/GridPopoutEditDropDown.stories.d.ts +0 -9
  112. package/dist/src/stories/components/GridPopoutEditGeneric.stories.d.ts +0 -9
  113. package/dist/src/stories/components/GridPopoutEditGenericTextArea.stories.d.ts +0 -9
  114. package/dist/src/stories/components/GridPopoutEditMultiSelect.stories.d.ts +0 -9
  115. package/dist/src/stories/components/GridReadOnly.stories.d.ts +0 -9
  116. package/dist/src/stories/components/ReactMenu.stories.d.ts +0 -8
  117. package/src/components/gridRender/GridRenderGenericCell.scss +0 -15
  118. package/src/lui-overrides.scss +0 -163
  119. package/src/react-menu3/style-utils.d.ts +0 -110
@@ -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,2 @@
1
+ @use "./lui-overrides";
2
+ @use "./Grid";
@@ -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
- }
@@ -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
- }