@adaptabletools/adaptable 24.0.0-canary.3 → 24.0.0-canary.5

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.
@@ -7,6 +7,7 @@ import * as ModuleConstants from '../../../Utilities/Constants/ModuleConstants';
7
7
  import { cn } from '../../../lib/utils';
8
8
  import { useAdaptable } from '../../../View/AdaptableContext';
9
9
  import AdaptableInput from '../../../View/Components/AdaptableInput';
10
+ import { AdaptableDateInlineInput } from '../../../View/Components/AdaptableInput/AdaptableDateInlineInput';
10
11
  import { FloatingFilterValues } from '../../../View/Filter/ColumnFilter/components/FloatingFilterValues';
11
12
  import { QueryBuilderColumnSelector } from './QueryBuilderColumnSelector';
12
13
  import { FieldSelector } from '../../../View/Components/Selectors/FieldSelector';
@@ -155,8 +156,12 @@ export const PrimitiveColumnOrFieldSelector = (props) => {
155
156
  };
156
157
  export const PrimitiveValueInput = (props) => {
157
158
  const adaptable = useAdaptable();
158
- const { layout } = useQueryBuilder();
159
+ const { layout, module } = useQueryBuilder();
159
160
  const isStackedLayout = layout === 'stacked';
161
+ const showDatePicker = adaptable.api.optionsApi.getFilterOptions().showDatePicker;
162
+ const useInlineDateInput = !showDatePicker &&
163
+ (module === ModuleConstants.ColumnFilterModuleId ||
164
+ module === ModuleConstants.GridFilterModuleId);
160
165
  const allowedModes = props.allowedModes ?? DEFAULT_QUERY_BUILDER_INPUT_MODES;
161
166
  const hasFields = React.useMemo(() => {
162
167
  return adaptable.api.expressionApi.internalApi.getAvailableFields()?.length > 0;
@@ -218,6 +223,11 @@ export const PrimitiveValueInput = (props) => {
218
223
  } }));
219
224
  case 'date': {
220
225
  const dateStr = typeof currentLiteralValue === 'string' ? currentLiteralValue : '';
226
+ if (useInlineDateInput) {
227
+ return (_jsx(AdaptableDateInlineInput, { ...common, value: dateStr, onChange: (value) => {
228
+ props.onChange(value ? literalOf('date', value) : undefined);
229
+ } }));
230
+ }
221
231
  return (_jsx(AdaptableInput, { ...common, type: "date", value: dateStr, onChange: (event) => {
222
232
  const raw = event.target.value;
223
233
  props.onChange(literalOf('date', raw));
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  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" || '',
3
- PUBLISH_TIMESTAMP: 1791384749154 || Date.now(),
4
- VERSION: "24.0.0-canary.3" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1791809119255 || Date.now(),
4
+ VERSION: "24.0.0-canary.5" || '--current-version--',
5
5
  };