@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.
@@ -58,31 +58,30 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
58
58
  )
59
59
  );
60
60
 
61
- // Don't hide the drag handle
62
- .ag-theme-step-default.theme-specific .ag-drag-handle.ag-row-drag, .ag-theme-step-compact.theme-specific div.ag-drag-handle.ag-row-drag {
63
- opacity: 1 !important;
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
- display: none;
68
- }
68
+ .ag-header-hide-default-select .ag-labeled {
69
+ display: none;
70
+ }
69
71
 
70
- .ag-header-hide-default-select .ag-wrapper.ag-checkbox-input-wrapper {
71
- margin-right: 9px;
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
- padding-left: 40px;
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-drag-handle.ag-row-drag {
79
- .ag-icon.ag-icon-grip {
80
- margin: auto;
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 {};
@@ -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}`);