@adaptabletools/adaptable-cjs 21.0.0-canary.0 → 21.0.0-canary.2

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 (50) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -2
  3. package/src/AdaptableOptions/DefaultAdaptableOptions.js +0 -1
  4. package/src/AdaptableOptions/EditOptions.d.ts +6 -1
  5. package/src/AdaptableOptions/FilterOptions.d.ts +20 -8
  6. package/src/AdaptableOptions/LayoutOptions.d.ts +35 -1
  7. package/src/AdaptableState/Common/AdaptableColumn.d.ts +2 -2
  8. package/src/Api/ColumnFilterApi.d.ts +5 -5
  9. package/src/Api/Implementation/ColumnApiImpl.js +1 -1
  10. package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +3 -3
  11. package/src/Api/Implementation/ColumnFilterApiImpl.js +6 -6
  12. package/src/Api/Implementation/LayoutApiImpl.js +6 -6
  13. package/src/Api/Internal/ColumnFilterInternalApi.d.ts +2 -3
  14. package/src/Api/Internal/ColumnFilterInternalApi.js +17 -25
  15. package/src/Api/Internal/ColumnInternalApi.js +1 -1
  16. package/src/Api/Internal/GridInternalApi.d.ts +3 -2
  17. package/src/Api/Internal/GridInternalApi.js +3 -2
  18. package/src/Api/Internal/LayoutInternalApi.d.ts +5 -0
  19. package/src/Api/Internal/LayoutInternalApi.js +43 -0
  20. package/src/Api/Internal/PredicateInternalApi.js +0 -1
  21. package/src/Redux/Store/AdaptableStore.js +0 -2
  22. package/src/Strategy/ColumnFilterModule.js +8 -1
  23. package/src/Utilities/Helpers/AdaptableHelper.d.ts +1 -0
  24. package/src/Utilities/Helpers/AdaptableHelper.js +1 -0
  25. package/src/Utilities/ObjectFactory.d.ts +7 -3
  26. package/src/Utilities/ObjectFactory.js +27 -18
  27. package/src/Utilities/adaptableQlUtils.js +1 -1
  28. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.d.ts +2 -0
  29. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +20 -5
  30. package/src/View/Components/ColumnFilter/utils.js +0 -1
  31. package/src/View/Components/PredicateEditor/PredicateEditor.js +14 -0
  32. package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +2 -4
  33. package/src/View/Components/Selectors/PermittedValuesSelector.js +6 -5
  34. package/src/View/Layout/Wizard/LayoutWizard.js +5 -7
  35. package/src/agGrid/AdaptableAgGrid.d.ts +3 -2
  36. package/src/agGrid/AdaptableAgGrid.js +20 -10
  37. package/src/agGrid/AdaptableFilterHandler.d.ts +9 -4
  38. package/src/agGrid/AdaptableFilterHandler.js +28 -11
  39. package/src/agGrid/AgGridColumnAdapter.js +5 -2
  40. package/src/agGrid/AgGridExportAdapter.js +2 -4
  41. package/src/agGrid/AgGridModulesAdapter.js +5 -1
  42. package/src/agGrid/agGridDataTypeDefinitions.js +1 -8
  43. package/src/components/Select/Select.d.ts +1 -0
  44. package/src/components/Select/Select.js +5 -4
  45. package/src/env.js +2 -2
  46. package/src/metamodel/adaptable.metamodel.d.ts +49 -22
  47. package/src/metamodel/adaptable.metamodel.js +1 -1
  48. package/src/migration/VersionUpgrade20.js +1 -2
  49. package/src/types.d.ts +3 -3
  50. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -144,6 +144,7 @@ const Select = function (props) {
144
144
  const renderMultipleValues = props.renderMultipleValues;
145
145
  const isMulti = props.isMulti ?? Array.isArray(props.value);
146
146
  const showHeaderSelectionCheckbox = isMulti && (props.showHeaderSelectionCheckbox ?? false);
147
+ const skipDefaultFiltering = props.skipDefaultFiltering ?? false;
147
148
  let selectedOption = null;
148
149
  if (isMulti) {
149
150
  selectedOption =
@@ -198,7 +199,7 @@ const Select = function (props) {
198
199
  },
199
200
  } }));
200
201
  };
201
- }, []);
202
+ }, [isSelectMenuOpen]);
202
203
  const resizable = props.resizable ?? false;
203
204
  const ValueContainer = React.useMemo(() => {
204
205
  return (props) => {
@@ -293,7 +294,7 @@ const Select = function (props) {
293
294
  const MenuList = React.useMemo(() => {
294
295
  return (props) => {
295
296
  const { setValue, getValue, focusedOption, options, selectProps } = props;
296
- const { filterOption, inputValue, options: selectOptions, isLoading } = selectProps;
297
+ const { filterOption, inputValue, isLoading } = selectProps;
297
298
  // Focus the input when MenuList mounts
298
299
  React.useEffect(() => {
299
300
  if (menulistInputRef.current) {
@@ -301,7 +302,7 @@ const Select = function (props) {
301
302
  }
302
303
  }, []);
303
304
  const filterFunction = React.useCallback(({ data }) => filterOption({ data, label: `${data.label}`, value: data.value }, inputValue), [filterOption, inputValue]);
304
- const hasFilter = inputValue !== '';
305
+ const hasFilter = inputValue !== '' && !skipDefaultFiltering;
305
306
  const filteredOptionsValues = new Set();
306
307
  const filteredOptions = !hasFilter
307
308
  ? options
@@ -458,7 +459,7 @@ const Select = function (props) {
458
459
  }, placeholder: "Search..." }))),
459
460
  React.createElement(infinite_react_1.InfiniteTable, { header: isMulti && showHeaderSelectionCheckbox ? true : false, rowClassName: rowClassName, showZebraRows: false, rowHeight: '--ab-grid-row-height', onCellClick: isLoading ? null : onCellClick, keyboardNavigation: isLoading ? false : 'row', activeRowIndex: focusedOptionIndex, keyboardSelection: true, columns: isMulti ? INFINITE_COLUMNS_WITH_CHECKBOX : INFINITE_COLUMNS_WITH_RADIO, domProps: INFINITE_DOM_PROPS })));
460
461
  };
461
- }, [isMulti, showHeaderSelectionCheckbox]);
462
+ }, [isMulti, skipDefaultFiltering, showHeaderSelectionCheckbox]);
462
463
  const DropdownIndicator = React.useMemo(() => {
463
464
  return (dropdownIndicatorProps) => {
464
465
  return (React.createElement(react_select_1.components.DropdownIndicator, { ...dropdownIndicatorProps, innerProps: {
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
5
- PUBLISH_TIMESTAMP: 1756391432518 || Date.now(),
6
- VERSION: "21.0.0-canary.0" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1756992492609 || Date.now(),
6
+ VERSION: "21.0.0-canary.2" || '--current-version--',
7
7
  };
@@ -2412,17 +2412,6 @@ export declare const ADAPTABLE_METAMODEL: {
2412
2412
  name: string;
2413
2413
  kind: string;
2414
2414
  desc: string;
2415
- props: ({
2416
- name: string;
2417
- kind: string;
2418
- desc: string;
2419
- isOpt: boolean;
2420
- } | {
2421
- name: string;
2422
- kind: string;
2423
- desc: string;
2424
- isOpt?: undefined;
2425
- })[];
2426
2415
  };
2427
2416
  CustomEditColumnValuesContext: {
2428
2417
  name: string;
@@ -3024,6 +3013,33 @@ export declare const ADAPTABLE_METAMODEL: {
3024
3013
  kind: string;
3025
3014
  desc: string;
3026
3015
  };
3016
+ DefaultLayoutProperties: {
3017
+ name: string;
3018
+ kind: string;
3019
+ desc: string;
3020
+ props: {
3021
+ name: string;
3022
+ kind: string;
3023
+ desc: string;
3024
+ isOpt: boolean;
3025
+ ref: string;
3026
+ }[];
3027
+ };
3028
+ DefaultLayoutPropertiesContext: {
3029
+ name: string;
3030
+ kind: string;
3031
+ desc: string;
3032
+ props: {
3033
+ name: string;
3034
+ kind: string;
3035
+ desc: string;
3036
+ }[];
3037
+ };
3038
+ DefaultPivotLayoutProperties: {
3039
+ name: string;
3040
+ kind: string;
3041
+ desc: string;
3042
+ };
3027
3043
  DefaultPredicateFilterContext: {
3028
3044
  name: string;
3029
3045
  kind: string;
@@ -3040,6 +3056,11 @@ export declare const ADAPTABLE_METAMODEL: {
3040
3056
  ref: string;
3041
3057
  })[];
3042
3058
  };
3059
+ DefaultTableLayoutProperties: {
3060
+ name: string;
3061
+ kind: string;
3062
+ desc: string;
3063
+ };
3043
3064
  DetailInitContext: {
3044
3065
  name: string;
3045
3066
  kind: string;
@@ -3056,6 +3077,11 @@ export declare const ADAPTABLE_METAMODEL: {
3056
3077
  ref: string;
3057
3078
  })[];
3058
3079
  };
3080
+ EditColumnValueInfo: {
3081
+ name: string;
3082
+ kind: string;
3083
+ desc: string;
3084
+ };
3059
3085
  EditOptions: {
3060
3086
  name: string;
3061
3087
  kind: string;
@@ -4037,27 +4063,28 @@ export declare const ADAPTABLE_METAMODEL: {
4037
4063
  name: string;
4038
4064
  kind: string;
4039
4065
  desc: string;
4040
- props: {
4066
+ props: ({
4041
4067
  name: string;
4042
4068
  kind: string;
4043
4069
  desc: string;
4044
- }[];
4070
+ isOpt?: undefined;
4071
+ } | {
4072
+ name: string;
4073
+ kind: string;
4074
+ desc: string;
4075
+ isOpt: boolean;
4076
+ })[];
4045
4077
  };
4046
4078
  InFilterValueInfo: {
4047
4079
  name: string;
4048
4080
  kind: string;
4049
4081
  desc: string;
4050
- props: ({
4082
+ props: {
4051
4083
  name: string;
4052
4084
  kind: string;
4053
4085
  desc: string;
4054
4086
  isOpt: boolean;
4055
- } | {
4056
- name: string;
4057
- kind: string;
4058
- desc: string;
4059
- isOpt?: undefined;
4060
- })[];
4087
+ }[];
4061
4088
  };
4062
4089
  InitialState: {
4063
4090
  name: string;
@@ -4244,13 +4271,13 @@ export declare const ADAPTABLE_METAMODEL: {
4244
4271
  kind: string;
4245
4272
  desc: string;
4246
4273
  isOpt: boolean;
4247
- ref: string;
4274
+ ref?: undefined;
4248
4275
  } | {
4249
4276
  name: string;
4250
4277
  kind: string;
4251
4278
  desc: string;
4252
4279
  isOpt: boolean;
4253
- ref?: undefined;
4280
+ ref: string;
4254
4281
  })[];
4255
4282
  };
4256
4283
  LayoutState: {