@orangelogic/design-system 2.148.0 → 2.149.0
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/library/chunks/{asset-link-format.DyUDG8er.js → asset-link-format.Cfj8l9X6.js} +6 -6
- package/library/chunks/{button.W0tW1LJ-.js → button.Dxb7AACZ.js} +1 -1
- package/library/chunks/{calendar-grid.CvdcwfTo.js → calendar-grid.BWjcZL5W.js} +1 -1
- package/library/chunks/{color-swatch-group.BQYOjoiA.js → color-swatch-group.CLoDU6aG.js} +1160 -1129
- package/library/chunks/{color-swatch.B7X9wSl2.js → color-swatch.D1HqWocK.js} +1 -1
- package/library/chunks/{confirm-popover.DWLFTk2n.js → confirm-popover.Cb-pC5oI.js} +3 -3
- package/library/chunks/{date-picker.DTUICGb9.js → date-picker.BGHn6qg8.js} +27 -16
- package/library/chunks/date.iWq_pkIk.js +97 -0
- package/library/chunks/{dialog.yZCtJRtl.js → dialog.DK0ZZQY3.js} +2 -2
- package/library/chunks/{document-viewer.Cr-tkwYo.js → document-viewer.Cr7ARRer.js} +6 -6
- package/library/chunks/{dot-pagination.C8dxu87e.js → dot-pagination.CjZm-pju.js} +1 -1
- package/library/chunks/{folder-select.CLDy4FKy.js → folder-select.DHnp7EO0.js} +4 -4
- package/library/chunks/{header.BJnsijee.js → header.B4IwSY-l.js} +1 -1
- package/library/chunks/{i18n.D07sG_CU.js → i18n.S781IU3H.js} +0 -1
- package/library/chunks/{icon-button.CaUkGny9.js → icon-button.B-GBGmBo.js} +1 -1
- package/library/chunks/{iframe.Bj3JzA9b.js → iframe.BLb7TAM7.js} +1 -1
- package/library/chunks/{image.DaYfKRf4.js → image.C1a_eXtI.js} +1 -1
- package/library/chunks/{input.CtpPKmen.js → input.eQ-tc3ew.js} +1 -1
- package/library/chunks/{option.DoCfNbP9.js → option.Bo4ryyg8.js} +1 -1
- package/library/chunks/{pagination.B0VIa8Pm.js → pagination.vaTRiEs-.js} +5 -5
- package/library/chunks/{tab-group.CRIY9Wby.js → tab-group.Owu-XQzM.js} +3 -3
- package/library/chunks/{tree.uSEgW--4.js → tree.BYD88cAs.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +3 -3
- package/library/components/atoms.js +13 -13
- package/library/components/audio.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +4 -4
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +3 -3
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +2 -2
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +15677 -15654
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.d.ts +3 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-range/facet-date-range.d.ts +3 -0
- package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +9 -1
- package/library/packages/molecules/src/input-date-picker/input-date-picker.d.ts +14 -3
- package/library/packages/molecules/src/input-date-range-picker/input-date-range-picker.d.ts +8 -0
- package/library/packages/types/src/date-picker.d.ts +20 -0
- package/library/packages/types/src/faceted-filter.d.ts +6 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +0 -1
- package/library/packages/utils/src/date/date.d.ts +12 -4
- package/library/react-web-component.d.ts +19 -3
- package/library/utils.js +104 -103
- package/package.json +1 -1
- package/library/chunks/date.dSYNLBVO.js +0 -77
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { _ as kd, a as Sa, b as Be, c as Je } from "../chunks/inheritsLoose.BuSn_CvZ.js";
|
|
2
2
|
import { c as ps, a as Bn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
|
|
3
3
|
import { r as Sb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
|
|
4
|
-
import { C as Cb } from "../chunks/image.
|
|
4
|
+
import { C as Cb } from "../chunks/image.C1a_eXtI.js";
|
|
5
5
|
import Mb from "./resize-observer.js";
|
|
6
6
|
import { r as Db, R as Pb, a as Rp, b as Lb } from "../chunks/resizable-component.styles.CAfXABBc.js";
|
|
7
7
|
import { c as Rb } from "../chunks/component.styles.CRO4Odto.js";
|
|
8
8
|
import { b as Ib } from "../chunks/browser.BHOCIF_A.js";
|
|
9
9
|
import { c as Ob } from "../chunks/custom-element.L4WJXn1j.js";
|
|
10
|
-
import { L as kb } from "../chunks/i18n.
|
|
10
|
+
import { L as kb } from "../chunks/i18n.S781IU3H.js";
|
|
11
11
|
import { w as Ki } from "../chunks/watch.K-dbDP6P.js";
|
|
12
12
|
import { i as Bb, x as Qc } from "../chunks/lit-element.jLBm65_O.js";
|
|
13
13
|
import { n as Ri } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
package/library/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as CxDetails } from '../../../../../atoms/src/components/details/details.ts';
|
|
2
2
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
3
3
|
import { default as CxInputDatePicker } from '../../../input-date-picker/input-date-picker.ts';
|
|
4
|
+
import { DateDisplayFormat } from '../../../../../types/src/date-picker';
|
|
4
5
|
import { CSSResultGroup } from 'lit';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -32,6 +33,8 @@ export default class CxFacetDatePicker extends CortexElement {
|
|
|
32
33
|
min: string;
|
|
33
34
|
/** Maximum selectable date in `YYYY-MM-DD`. */
|
|
34
35
|
max: string;
|
|
36
|
+
/** How the date is shown/typed in the picker. Committed value stays ISO. */
|
|
37
|
+
displayFormat: DateDisplayFormat;
|
|
35
38
|
private handleChange;
|
|
36
39
|
private emitFacetChange;
|
|
37
40
|
render(): import('lit').TemplateResult<1>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as CxDetails } from '../../../../../atoms/src/components/details/details.ts';
|
|
2
2
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
3
3
|
import { default as CxInputDateRangePicker } from '../../../input-date-range-picker/input-date-range-picker.ts';
|
|
4
|
+
import { DateDisplayFormat } from '../../../../../types/src/date-picker';
|
|
4
5
|
import { CSSResultGroup } from 'lit';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -40,6 +41,8 @@ export default class CxFacetDateRange extends CortexElement {
|
|
|
40
41
|
min: string;
|
|
41
42
|
/** Maximum selectable date in `YYYY-MM-DD`. */
|
|
42
43
|
max: string;
|
|
44
|
+
/** How the date is shown/typed in both pickers. Committed value stays ISO. */
|
|
45
|
+
displayFormat: DateDisplayFormat;
|
|
43
46
|
private handleChange;
|
|
44
47
|
private emitFacetChange;
|
|
45
48
|
render(): import('lit').TemplateResult<1>;
|
|
@@ -67,7 +67,10 @@ export default class CxFacetedFilter extends CortexElement {
|
|
|
67
67
|
private internalDateRanges;
|
|
68
68
|
/** Maps facetFieldName → (value → displayValue) for rendering applied-filter tags. */
|
|
69
69
|
private mappedDisplayNames;
|
|
70
|
+
/** field → facet config from both bound sources (availableFacets wins). Rebuilt only when the sources change, not per render. */
|
|
71
|
+
private facetDetailsByField;
|
|
70
72
|
handleFacetsChange(): void;
|
|
73
|
+
rebuildFacetDetailsByField(): void;
|
|
71
74
|
handleSelectedFacetsChange(): void;
|
|
72
75
|
handleSelectedDateRangesChange(): void;
|
|
73
76
|
handleInternalSelectionChange(): void;
|
|
@@ -81,7 +84,12 @@ export default class CxFacetedFilter extends CortexElement {
|
|
|
81
84
|
private handleClearAllClick;
|
|
82
85
|
private emitChange;
|
|
83
86
|
private renderAppliedFilters;
|
|
84
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Resolves the display pattern (e.g. `DD/MM/YYYY`) configured for a date facet,
|
|
89
|
+
* so chip labels match how the facet's picker renders dates. Falls back to the
|
|
90
|
+
* default format when the facet has none.
|
|
91
|
+
*/
|
|
92
|
+
private getDateFacetPattern;
|
|
85
93
|
private formatDateRangeDisplay;
|
|
86
94
|
private renderDateTags;
|
|
87
95
|
private renderExternalFilterTags;
|
|
@@ -6,6 +6,7 @@ import { default as CxOption } from '../../../atoms/src/components/option/option
|
|
|
6
6
|
import { default as CxPopup } from '../../../atoms/src/components/popup/popup.ts';
|
|
7
7
|
import { default as CxSelect } from '../../../atoms/src/components/select/select.ts';
|
|
8
8
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
9
|
+
import { DateDisplayFormat } from '../../../types/src/date-picker';
|
|
9
10
|
import { CSSResultGroup } from 'lit';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -49,8 +50,15 @@ export default class CxInputDatePicker extends CortexElement {
|
|
|
49
50
|
value: string;
|
|
50
51
|
/** The selected time in 24-hour `HH:mm:ss` format (e.g. `14:30:00`). Values outside this format are not parsed. */
|
|
51
52
|
timeValue: string;
|
|
52
|
-
/** Placeholder for the date input. Defaults to
|
|
53
|
+
/** Placeholder for the date input. Defaults to the current `displayFormat`. */
|
|
53
54
|
placeholder: string;
|
|
55
|
+
/**
|
|
56
|
+
* Controls how the date is shown and parsed in the text field. Accepts a
|
|
57
|
+
* `DateDisplayFormat` token or a literal pattern (e.g. `MM/DD/YYYY` from the
|
|
58
|
+
* backend). Defaults to `DD/MM/YYYY`. The committed `value` (read via
|
|
59
|
+
* `el.value` when `cx-change` fires) always stays ISO `YYYY-MM-DD`.
|
|
60
|
+
*/
|
|
61
|
+
displayFormat: DateDisplayFormat;
|
|
54
62
|
/** Shows the hour/minute/second time selects below the date row. */
|
|
55
63
|
showTime: boolean;
|
|
56
64
|
/** The name submitted as a name/value pair for the time field. */
|
|
@@ -77,15 +85,17 @@ export default class CxInputDatePicker extends CortexElement {
|
|
|
77
85
|
maskMaxMessage: string;
|
|
78
86
|
/** Controls whether the calendar popup is visible. */
|
|
79
87
|
private calendarOpen;
|
|
80
|
-
/** Date shown in the text input formatted
|
|
88
|
+
/** Date shown in the text input, formatted according to `displayFormat`. */
|
|
81
89
|
private displayValue;
|
|
82
90
|
constructor();
|
|
83
91
|
connectedCallback(): void;
|
|
84
92
|
disconnectedCallback(): void;
|
|
85
93
|
runFirstUpdated(): Promise<void>;
|
|
86
94
|
private readonly dateMaskBlocks;
|
|
87
|
-
private get datePlaceholder();
|
|
88
95
|
getForm(): HTMLFormElement | undefined;
|
|
96
|
+
/** The concrete pattern (e.g. `DD/MM/YYYY`) resolved from `displayFormat`. */
|
|
97
|
+
private get datePattern();
|
|
98
|
+
private get datePlaceholder();
|
|
89
99
|
private get minDate();
|
|
90
100
|
private get maxDate();
|
|
91
101
|
/** Sets a custom validation message on the inner date input. Pass an empty string to restore validity. */
|
|
@@ -100,6 +110,7 @@ export default class CxInputDatePicker extends CortexElement {
|
|
|
100
110
|
private renderHiddenTimeInput;
|
|
101
111
|
private handleTimePartChange;
|
|
102
112
|
handleValueChange(): void;
|
|
113
|
+
handleDisplayFormatChange(): void;
|
|
103
114
|
handleMinMaxChange(): void;
|
|
104
115
|
handleAccessStateChange(): void;
|
|
105
116
|
private resetDateValue;
|
|
@@ -2,6 +2,7 @@ import { default as CxOption } from '../../../atoms/src/components/option/option
|
|
|
2
2
|
import { default as CxSelect } from '../../../atoms/src/components/select/select.ts';
|
|
3
3
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
4
4
|
import { default as CxInputDatePicker } from '../input-date-picker/input-date-picker.ts';
|
|
5
|
+
import { DateDisplayFormat } from '../../../types/src/date-picker';
|
|
5
6
|
import { CSSResultGroup } from 'lit';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -50,6 +51,13 @@ export default class CxInputDateRangePicker extends CortexElement {
|
|
|
50
51
|
toLabel: string;
|
|
51
52
|
/** Shared placeholder for both child date pickers. */
|
|
52
53
|
placeholder: string;
|
|
54
|
+
/**
|
|
55
|
+
* Shared date display format for both child date pickers. Accepts a
|
|
56
|
+
* `DateDisplayFormat` token or a literal pattern (e.g. `MM/DD/YYYY` from the
|
|
57
|
+
* backend). Defaults to `DD/MM/YYYY`. The committed `fromDate`/`toDate` stay
|
|
58
|
+
* ISO `YYYY-MM-DD`.
|
|
59
|
+
*/
|
|
60
|
+
displayFormat: DateDisplayFormat;
|
|
53
61
|
/** Shows the time selects on both child date pickers. */
|
|
54
62
|
showTime: boolean;
|
|
55
63
|
/** Shows the preset selector. */
|
|
@@ -43,3 +43,23 @@ export type DateParts = {
|
|
|
43
43
|
month: number;
|
|
44
44
|
year: number;
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Selectable date display formats. The enum value is a separator-neutral token
|
|
48
|
+
* (safe to embed in packed config strings like `cx-table`'s `facet-config`); the
|
|
49
|
+
* concrete pattern — including the separator — lives only in
|
|
50
|
+
* `DATE_DISPLAY_PATTERN`. New formats or a different separator are added there
|
|
51
|
+
* without touching parsers or config strings.
|
|
52
|
+
*/
|
|
53
|
+
export declare enum DateDisplayFormat {
|
|
54
|
+
DdMmYyyy = "ddmmyyyy",
|
|
55
|
+
MmDdYyyy = "mmddyyyy",
|
|
56
|
+
YyyyMmDd = "yyyymmdd"
|
|
57
|
+
}
|
|
58
|
+
/** Maps each format token to its concrete display pattern. Separators live only here. */
|
|
59
|
+
export declare const DATE_DISPLAY_PATTERN: Record<DateDisplayFormat, string>;
|
|
60
|
+
/**
|
|
61
|
+
* Resolves a display format to its concrete pattern. Accepts either a
|
|
62
|
+
* `DateDisplayFormat` token or an already-literal pattern (e.g. a value the
|
|
63
|
+
* backend sends such as `MM/DD/YYYY`), which is returned unchanged.
|
|
64
|
+
*/
|
|
65
|
+
export declare function toDatePattern(format: string): string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { DateDisplayFormat } from './date-picker';
|
|
2
|
+
|
|
1
3
|
export declare enum FacetSelectionMode {
|
|
2
4
|
Multiple = "multiple",
|
|
3
5
|
Single = "single"
|
|
@@ -21,6 +23,8 @@ export type CheckboxFacetDetails = {
|
|
|
21
23
|
};
|
|
22
24
|
/** Single date-picker facet. */
|
|
23
25
|
export type DatePickerFacetDetails = {
|
|
26
|
+
/** How the date is shown/typed in the picker. Committed value stays ISO. */
|
|
27
|
+
displayFormat?: DateDisplayFormat;
|
|
24
28
|
displayName: string;
|
|
25
29
|
facetFieldName: string;
|
|
26
30
|
facetIndexedFieldName?: string;
|
|
@@ -35,6 +39,8 @@ export type DatePickerFacetDetails = {
|
|
|
35
39
|
};
|
|
36
40
|
/** From/to date-range facet. */
|
|
37
41
|
export type DateRangeFacetDetails = {
|
|
42
|
+
/** How the date is shown/typed in both pickers. Committed value stays ISO. */
|
|
43
|
+
displayFormat?: DateDisplayFormat;
|
|
38
44
|
displayName: string;
|
|
39
45
|
facetFieldName: string;
|
|
40
46
|
facetIndexedFieldName?: string;
|
|
@@ -12,10 +12,18 @@ export declare function parseIsoDate(date: CalendarDate): {
|
|
|
12
12
|
};
|
|
13
13
|
/** Converts a valid CalendarDate into a local Date object. */
|
|
14
14
|
export declare function isoToDate(value: string): Date | undefined;
|
|
15
|
-
/**
|
|
16
|
-
export declare function
|
|
17
|
-
/**
|
|
18
|
-
|
|
15
|
+
/** Returns the IMask pattern for a display format, e.g. `DD/MM/YYYY` -> `d{/}m{/}Y`. */
|
|
16
|
+
export declare function getDateMask(format: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a YYYY-MM-DD value to the given display format, e.g.
|
|
19
|
+
* `2026-06-08` + `MM/DD/YYYY` -> `06/08/2026`. Returns empty for empty input.
|
|
20
|
+
*/
|
|
21
|
+
export declare function formatIsoToDisplay(value: string, format: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Converts a complete display-format string back to YYYY-MM-DD, honoring the
|
|
24
|
+
* part order of `format`. Returns empty for partial input.
|
|
25
|
+
*/
|
|
26
|
+
export declare function parseDisplayToIso(value: string, format: string): CalendarDate | '';
|
|
19
27
|
/** Returns today's date as a CalendarDate in the browser's local timezone. */
|
|
20
28
|
export declare function getTodayIsoDate(): CalendarDate;
|
|
21
29
|
/**
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
export type CxDetailsGroupDetailsItem = { id: string; label: string; };
|
|
10
10
|
export type CxFacetedFilterFacet = { facetDetails: CxFacetedFilterCheckboxFacetDetails | CxFacetedFilterDatePickerFacetDetails | CxFacetedFilterDateRangeFacetDetails; values: CxFacetedFilterFacetValue[]; };
|
|
11
11
|
export type CxFacetedFilterCheckboxFacetDetails = { displayName: string; facetFieldName: string; facetIndexedFieldName: string; selection: 'multiple' | 'single'; type: 'checkbox'; };
|
|
12
|
-
export type CxFacetedFilterDatePickerFacetDetails = { displayName: string; facetFieldName: string; facetIndexedFieldName: string; max: string; min: string; selection: 'multiple' | 'single'; showTime: boolean; type: 'date-picker'; };
|
|
13
|
-
export type CxFacetedFilterDateRangeFacetDetails = { displayName: string; facetFieldName: string; facetIndexedFieldName: string; max: string; min: string; selection: 'multiple' | 'single'; showPreset: boolean; showTime: boolean; type: 'date-range'; };
|
|
12
|
+
export type CxFacetedFilterDatePickerFacetDetails = { displayFormat: 'ddmmyyyy' | 'mmddyyyy' | 'yyyymmdd'; displayName: string; facetFieldName: string; facetIndexedFieldName: string; max: string; min: string; selection: 'multiple' | 'single'; showTime: boolean; type: 'date-picker'; };
|
|
13
|
+
export type CxFacetedFilterDateRangeFacetDetails = { displayFormat: 'ddmmyyyy' | 'mmddyyyy' | 'yyyymmdd'; displayName: string; facetFieldName: string; facetIndexedFieldName: string; max: string; min: string; selection: 'multiple' | 'single'; showPreset: boolean; showTime: boolean; type: 'date-range'; };
|
|
14
14
|
export type CxFacetedFilterFacetValue = { count: number; displayValue: string; value: string; };
|
|
15
15
|
export type CxFacetedFilterDateRangeValue = { fromDate: string; fromTime: string; preset: string; showTime: boolean; toDate: string; toTime: string; type: 'date-picker' | 'date-range'; };
|
|
16
16
|
export type CxGraphViewWorkflow = { data: CxGraphViewData; description: string; id: string; links: CxGraphViewEdge[]; name: string; node_types: dictionary; nodes: CxGraphViewNode[]; type: string; };
|
|
@@ -6076,9 +6076,13 @@
|
|
|
6076
6076
|
*/
|
|
6077
6077
|
timeValue?: string;
|
|
6078
6078
|
/**
|
|
6079
|
-
* Placeholder for the date input. Defaults to
|
|
6079
|
+
* Placeholder for the date input. Defaults to the current `displayFormat`.
|
|
6080
6080
|
*/
|
|
6081
6081
|
placeholder?: string;
|
|
6082
|
+
/**
|
|
6083
|
+
* Controls how the date is shown and parsed in the text field. Accepts a `DateDisplayFormat` token or a literal pattern (e.g. `MM/DD/YYYY` from the backend). Defaults to `DD/MM/YYYY`. The committed `value` (read via `el.value` when `cx-change` fires) always stays ISO `YYYY-MM-DD`.
|
|
6084
|
+
*/
|
|
6085
|
+
displayFormat?: 'ddmmyyyy' | 'mmddyyyy' | 'yyyymmdd';
|
|
6082
6086
|
/**
|
|
6083
6087
|
* Shows the hour/minute/second time selects below the date row.
|
|
6084
6088
|
*/
|
|
@@ -6165,6 +6169,10 @@
|
|
|
6165
6169
|
* Maximum selectable date in `YYYY-MM-DD`.
|
|
6166
6170
|
*/
|
|
6167
6171
|
max?: string;
|
|
6172
|
+
/**
|
|
6173
|
+
* How the date is shown/typed in the picker. Committed value stays ISO.
|
|
6174
|
+
*/
|
|
6175
|
+
displayFormat?: 'ddmmyyyy' | 'mmddyyyy' | 'yyyymmdd';
|
|
6168
6176
|
/**
|
|
6169
6177
|
* Make localization attributes reactive eslint-disable-next-line lit/no-native-attributes
|
|
6170
6178
|
*/
|
|
@@ -6235,6 +6243,10 @@
|
|
|
6235
6243
|
* Shared placeholder for both child date pickers.
|
|
6236
6244
|
*/
|
|
6237
6245
|
placeholder?: string;
|
|
6246
|
+
/**
|
|
6247
|
+
* Shared date display format for both child date pickers. Accepts a `DateDisplayFormat` token or a literal pattern (e.g. `MM/DD/YYYY` from the backend). Defaults to `DD/MM/YYYY`. The committed `fromDate`/`toDate` stay ISO `YYYY-MM-DD`.
|
|
6248
|
+
*/
|
|
6249
|
+
displayFormat?: 'ddmmyyyy' | 'mmddyyyy' | 'yyyymmdd';
|
|
6238
6250
|
/**
|
|
6239
6251
|
* Shows the time selects on both child date pickers.
|
|
6240
6252
|
*/
|
|
@@ -6333,6 +6345,10 @@
|
|
|
6333
6345
|
* Maximum selectable date in `YYYY-MM-DD`.
|
|
6334
6346
|
*/
|
|
6335
6347
|
max?: string;
|
|
6348
|
+
/**
|
|
6349
|
+
* How the date is shown/typed in both pickers. Committed value stays ISO.
|
|
6350
|
+
*/
|
|
6351
|
+
displayFormat?: 'ddmmyyyy' | 'mmddyyyy' | 'yyyymmdd';
|
|
6336
6352
|
/**
|
|
6337
6353
|
* Make localization attributes reactive eslint-disable-next-line lit/no-native-attributes
|
|
6338
6354
|
*/
|