@linzjs/step-ag-grid 29.4.0 → 29.5.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/dist/GridTheme.scss +21 -19
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +1 -0
- package/dist/step-ag-grid.cjs +1 -1
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +1 -1
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +14 -14
- package/src/components/gridForm/GridFormDropDown.tsx +7 -0
- package/src/styles/GridTheme.scss +21 -19
package/dist/GridTheme.scss
CHANGED
|
@@ -58,31 +58,30 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
58
58
|
)
|
|
59
59
|
);
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
.ag-theme-step-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
.ag-theme-step-default.theme-specific,
|
|
62
|
+
.ag-theme-step-compact.theme-specific {
|
|
63
|
+
// Don't hide the drag handle
|
|
64
|
+
.ag-drag-handle.ag-row-drag {
|
|
65
|
+
opacity: 1 !important;
|
|
66
|
+
}
|
|
65
67
|
|
|
66
|
-
.ag-header-hide-default-select .ag-labeled {
|
|
67
|
-
|
|
68
|
-
}
|
|
68
|
+
.ag-header-hide-default-select .ag-labeled {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
69
71
|
|
|
70
|
-
.ag-header-
|
|
71
|
-
|
|
72
|
-
}
|
|
72
|
+
div.ag-header-cell.ag-header-select-draggable[col-id='ag-Grid-SelectionColumn'] {
|
|
73
|
+
padding-left: 40px;
|
|
74
|
+
}
|
|
73
75
|
|
|
74
|
-
div.ag-header-cell.ag-header-select-draggable[col-id='ag-Grid-SelectionColumn'] {
|
|
75
|
-
|
|
76
|
-
}
|
|
76
|
+
div.ag-header-cell:not(.ag-header-select-draggable)[col-id='ag-Grid-SelectionColumn'] {
|
|
77
|
+
padding-left: 12px;
|
|
78
|
+
}
|
|
77
79
|
|
|
78
|
-
.ag-
|
|
79
|
-
|
|
80
|
-
margin:
|
|
80
|
+
div.ag-cell-wrapper {
|
|
81
|
+
margin-left: 4px;
|
|
82
|
+
margin-right: 4px;
|
|
81
83
|
}
|
|
82
|
-
}
|
|
83
84
|
|
|
84
|
-
.ag-theme-step-default.theme-specific,
|
|
85
|
-
.ag-theme-step-compact.theme-specific {
|
|
86
85
|
div.ag-center-cols-viewport {
|
|
87
86
|
// when using domLayout={"autoHeight"}, ag grid has a default min-height
|
|
88
87
|
// set to 150px so the !important is necessary here
|
|
@@ -158,6 +157,9 @@ div.ag-header-cell.ag-header-select-draggable[col-id='ag-Grid-SelectionColumn']
|
|
|
158
157
|
}
|
|
159
158
|
}
|
|
160
159
|
|
|
160
|
+
div.ag-cell-wrapper .ag-selection-checkbox {
|
|
161
|
+
margin: 0;
|
|
162
|
+
}
|
|
161
163
|
|
|
162
164
|
.ag-cell {
|
|
163
165
|
display: flex;
|
|
@@ -35,6 +35,7 @@ export interface GridFormDropDownProps<TData extends GridBaseRow, TOptionValue>
|
|
|
35
35
|
onSelectedItem?: (props: GridPopoutEditDropDownSelectedItem<TData, TOptionValue>) => Promise<void> | void;
|
|
36
36
|
onSelectFilter?: (props: GridPopoutEditDropDownSelectedItem<TData, TOptionValue>) => Promise<void> | void;
|
|
37
37
|
options: FinalSelectOption<TOptionValue>[] | ((selectedRows: TData[], filter?: string) => MaybePromise<FinalSelectOption<TOptionValue>[] | undefined>) | undefined;
|
|
38
|
+
topComponent?: () => ReactElement;
|
|
38
39
|
}
|
|
39
40
|
export declare const GridFormDropDown: <TData extends GridBaseRow, TOptionValue>(props: GridFormDropDownProps<TData, TOptionValue>) => import("react/jsx-runtime").JSX.Element;
|
|
40
41
|
export {};
|
package/dist/step-ag-grid.cjs
CHANGED
|
@@ -4258,7 +4258,7 @@ const GridFormDropDown = (props) => {
|
|
|
4258
4258
|
setSubSelectedValue(null);
|
|
4259
4259
|
subComponentIsValid.current = true;
|
|
4260
4260
|
}, children: ({ ref }) => (jsxRuntime.jsxs("div", { style: { display: 'flex', flexDirection: 'column', width: '100%' }, children: [jsxRuntime.jsx("input", { className: 'LuiTextInput-input', ref: ref, type: "text", placeholder: props.filterPlaceholder ?? 'Filter...', "data-testid": 'filteredMenu-free-text-input', defaultValue: filter, "data-allowtabtosave": true, "data-disableenterautosave": !props.onSelectFilter &&
|
|
4261
|
-
!(filteredValues && filteredValues.length === 1 && !filteredValues[0].subComponent), onChange: (e) => setFilter(e.target.value.trim()) }), props.filterHelpText && isNotEmpty(filter) && (jsxRuntime.jsx(FormError, { error: null, helpText: props.filterHelpText }))] })) }), jsxRuntime.jsx(MenuDivider, {}, `$$divider_filter`)] })), jsxRuntime.jsx(ComponentLoadingWrapper, { loading: !options, className: 'GridFormDropDown-options', children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [options && (lodashEs.isEmpty(options) || (filteredValues && lodashEs.isEmpty(filteredValues))) && (jsxRuntime.jsx(MenuItem, { className: 'GridPopoverEditDropDown-noOptions', disabled: true, children: props.noOptionsMessage ?? 'No Options' }, `${fieldToString(field)}-empty`)), options?.map((item, index) => {
|
|
4261
|
+
!(filteredValues && filteredValues.length === 1 && !filteredValues[0].subComponent), onChange: (e) => setFilter(e.target.value.trim()) }), props.filterHelpText && isNotEmpty(filter) && (jsxRuntime.jsx(FormError, { error: null, helpText: props.filterHelpText }))] })) }), jsxRuntime.jsx(MenuDivider, {}, `$$divider_filter`), props.topComponent && (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(props.topComponent, {}), jsxRuntime.jsx(MenuDivider, {}, `$$divider_filter`)] }))] })), jsxRuntime.jsx(ComponentLoadingWrapper, { loading: !options, className: 'GridFormDropDown-options', children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [options && (lodashEs.isEmpty(options) || (filteredValues && lodashEs.isEmpty(filteredValues))) && (jsxRuntime.jsx(MenuItem, { className: 'GridPopoverEditDropDown-noOptions', disabled: true, children: props.noOptionsMessage ?? 'No Options' }, `${fieldToString(field)}-empty`)), options?.map((item, index) => {
|
|
4262
4262
|
showHeader = null;
|
|
4263
4263
|
if (item.value === MenuSeparatorString) {
|
|
4264
4264
|
return jsxRuntime.jsx(MenuDivider, {}, `$$divider_${index}`);
|