@orangelogic/design-system 2.110.0 → 2.112.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.Ci6rP56l.js +458 -0
- package/library/chunks/{button.i88sSbTZ.js → button.BvBgxmvw.js} +3 -3
- package/library/chunks/calendar-grid.CXYoS6VA.js +108 -0
- package/library/chunks/{color-swatch-group.mIHaCJsh.js → color-swatch-group.D8KPblw2.js} +3 -3
- package/library/chunks/{color-swatch.D9vkPoV2.js → color-swatch.DQxReKYX.js} +2 -2
- package/library/chunks/{color.vLD2sNTs.js → color.LzSGBy7o.js} +2 -2
- package/library/chunks/{confirm-popover.UuBhn8GA.js → confirm-popover.dyPIFLWa.js} +3 -3
- package/library/chunks/date-picker.D0SJADN6.js +77 -0
- package/library/chunks/{dialog.Bso6gK-8.js → dialog.BoCFGpPO.js} +2 -2
- package/library/chunks/{document-viewer.C6eclRvd.js → document-viewer.B90s20gM.js} +8 -7
- package/library/chunks/{dot-pagination.CNnUuI-Z.js → dot-pagination.uz9GFrMP.js} +1 -1
- package/library/chunks/{file-on-demand.Cf2ujTeF.js → file-on-demand.DLVH0DID.js} +10 -10
- package/library/chunks/{folder-select.ByNUfTia.js → folder-select.C2ruplAB.js} +5 -5
- package/library/chunks/{form.Ch1cwYzO.js → form.B-5nQJva.js} +46 -34
- package/library/chunks/{header.hj2Kw-N7.js → header.By_Mfx47.js} +1 -1
- package/library/chunks/{i18n.D6AYDPK-.js → i18n.BcD4Ohsq.js} +46 -13
- package/library/chunks/{icon-button.ztYU-DHy.js → icon-button.DO6DHXwo.js} +2 -2
- package/library/chunks/icon.DnBh6-56.js +111 -0
- package/library/chunks/{iframe.uLxZ6LsL.js → iframe.C4jZSmOr.js} +1 -1
- package/library/chunks/{image.DKB6yEQO.js → image.Cx4hbc4L.js} +2 -2
- package/library/chunks/input.B7SaYNrr.js +2855 -0
- package/library/chunks/{list-editor.GT2kQsmR.js → list-editor.Hag-nXN-.js} +86 -86
- package/library/chunks/{option.BAYtHIvG.js → option.CA-HtVdP.js} +2 -2
- package/library/chunks/{pagination.CCJD61IB.js → pagination.jgAGwDyt.js} +5 -5
- package/library/chunks/{tab-group.BsR8tdVY.js → tab-group.DyxpVNOn.js} +3 -3
- package/library/chunks/{table.DL_CEeYh.js → table.Crb35At8.js} +2905 -2306
- package/library/chunks/{tree.KmZRWZ0F.js → tree.jg0MjIB8.js} +2 -2
- package/library/components/alert.js +2 -2
- package/library/components/animated-image.js +15 -15
- package/library/components/asset-link-format.js +7 -7
- package/library/components/atoms.js +194 -180
- package/library/components/audio.js +2 -2
- package/library/components/avatar.js +1 -1
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +4 -4
- package/library/components/button.js +4 -4
- package/library/components/checkbox.js +2 -2
- package/library/components/color-picker.js +5 -5
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.d.ts +3 -0
- package/library/components/date-calendar.js +107 -0
- package/library/components/details.js +12 -12
- package/library/components/dialog.js +3 -3
- package/library/components/document-viewer.js +4 -4
- 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/faceted-filter.d.ts +3 -0
- package/library/components/faceted-filter.js +295 -0
- package/library/components/file-on-demand.js +11 -11
- package/library/components/folder-select.js +5 -5
- 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 +3 -3
- package/library/components/icon.js +10 -109
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +2 -2
- package/library/components/image.js +3 -3
- package/library/components/input.js +19 -2852
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +7 -7
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +2 -2
- package/library/components/molecules.js +4 -4
- package/library/components/option.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +9 -9
- 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/radio-group.js +1 -1
- package/library/components/radio.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +6 -6
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +5 -5
- package/library/components/shadow-input-group.js +5 -5
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +2 -2
- 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/step.js +1 -1
- package/library/components/stepper-wizard.js +16 -16
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/table.js +5 -5
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +3 -3
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +25339 -24757
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/date-calendar/date-calendar.d.ts +61 -0
- package/library/packages/atoms/src/components/date-calendar/date-calendar.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/details/details.d.ts +1 -0
- package/library/packages/atoms/src/components/faceted-filter/components/facet/facet.d.ts +58 -0
- package/library/packages/atoms/src/components/faceted-filter/components/facet/facet.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/faceted-filter/faceted-filter.d.ts +71 -0
- package/library/packages/atoms/src/components/faceted-filter/faceted-filter.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/icon/font-awesome-icons.d.ts +1 -0
- package/library/packages/atoms/src/components/icon/icon.d.ts +1 -0
- package/library/packages/atoms/src/components/image/image.d.ts +1 -1
- package/library/packages/atoms/src/components/table/table-data-loader.d.ts +13 -0
- package/library/packages/atoms/src/components/table/table.d.ts +13 -1
- package/library/packages/atoms/src/index.d.ts +3 -0
- package/library/packages/events/src/cx-date-select.d.ts +9 -0
- package/library/packages/events/src/cx-faceted-filter-change.d.ts +8 -0
- package/library/packages/events/src/cx-table-data-load.d.ts +17 -0
- package/library/packages/events/src/events.d.ts +3 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ClickableCell/ClickableCell.d.ts +5 -0
- package/library/packages/molecules/src/asset-data-display/asset-data-display.d.ts +1 -1
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +73 -13
- package/library/packages/molecules/src/index.d.ts +2 -0
- package/library/packages/molecules/src/input-date-picker/input-date-picker.d.ts +127 -0
- package/library/packages/molecules/src/input-date-picker/input-date-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/input-date-range-picker/input-date-range-picker.d.ts +90 -0
- package/library/packages/molecules/src/input-date-range-picker/input-date-range-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/timeline/timeline.d.ts +1 -1
- package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +0 -1
- package/library/packages/organisms/src/template-switcher/template-switcher.d.ts +6 -0
- package/library/packages/services/src/api/asset/asset.d.ts +3 -3
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -2
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +4 -4
- package/library/packages/types/src/date-picker.d.ts +45 -0
- package/library/packages/types/src/faceted-filter.d.ts +23 -0
- package/library/packages/types/src/icon-picker.d.ts +8 -0
- package/library/packages/types/src/index.d.ts +1 -1
- package/library/packages/types/src/table.d.ts +12 -0
- package/library/packages/utils/src/custom-element/form.d.ts +5 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +33 -0
- package/library/packages/utils/src/date/calendar-grid.d.ts +40 -0
- package/library/packages/utils/src/date/date-range-preset.d.ts +12 -0
- package/library/packages/utils/src/date/date.d.ts +42 -0
- package/library/packages/utils/src/date/index.d.ts +3 -0
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/react-web-component.d.ts +495 -195
- package/library/utils.js +539 -332
- package/package.json +1 -1
- package/library/chunks/asset.NgymQ3Zx.js +0 -454
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { default as CxDateCalendar } from '../../../atoms/src/components/date-calendar/date-calendar.ts';
|
|
2
|
+
import { default as CxIcon } from '../../../atoms/src/components/icon/icon.ts';
|
|
3
|
+
import { default as CxIconButton } from '../../../atoms/src/components/icon-button/icon-button.ts';
|
|
4
|
+
import { default as CxInput } from '../../../atoms/src/components/input/input.ts';
|
|
5
|
+
import { default as CxOption } from '../../../atoms/src/components/option/option.ts';
|
|
6
|
+
import { default as CxPopup } from '../../../atoms/src/components/popup/popup.ts';
|
|
7
|
+
import { default as CxSelect } from '../../../atoms/src/components/select/select.ts';
|
|
8
|
+
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
9
|
+
import { CSSResultGroup } from 'lit';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @summary A date input field with a calendar picker and an optional time selector.
|
|
13
|
+
* Renders a label inside the input, a calendar popup, and optional
|
|
14
|
+
* hour/minute/second selects.
|
|
15
|
+
*
|
|
16
|
+
* @event cx-change - Emitted when the user commits a date or changes the time. Read `el.value` for the date and `el.timeValue` for the time.
|
|
17
|
+
*
|
|
18
|
+
* @csspart field - The outer wrapper element.
|
|
19
|
+
* @csspart calendar-panel - The popup panel wrapping the calendar.
|
|
20
|
+
* @csspart time-row - The row containing the time selects.
|
|
21
|
+
*
|
|
22
|
+
* @cssproperty [--input-date-picker-width] - Explicit field width. Overrides date-only and show-time default widths.
|
|
23
|
+
* @cssproperty [--date-field-width=15rem] - Default width when time selects are hidden.
|
|
24
|
+
* @cssproperty [--time-select-width=5.75rem] - Width of each time select.
|
|
25
|
+
*/
|
|
26
|
+
export default class CxInputDatePicker extends CortexElement {
|
|
27
|
+
static readonly styles: CSSResultGroup;
|
|
28
|
+
static readonly dependencies: {
|
|
29
|
+
'cx-date-calendar': typeof CxDateCalendar;
|
|
30
|
+
'cx-icon': typeof CxIcon;
|
|
31
|
+
'cx-icon-button': typeof CxIconButton;
|
|
32
|
+
'cx-input': typeof CxInput;
|
|
33
|
+
'cx-option': typeof CxOption;
|
|
34
|
+
'cx-popup': typeof CxPopup;
|
|
35
|
+
'cx-select': typeof CxSelect;
|
|
36
|
+
};
|
|
37
|
+
private readonly localize;
|
|
38
|
+
private readonly dateInputEl;
|
|
39
|
+
/** Display label for the field. */
|
|
40
|
+
label: string;
|
|
41
|
+
/** The name submitted as a name/value pair with form data. */
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* The associated form element. Accepts a form `id` string or an `HTMLFormElement`.
|
|
45
|
+
* When set, overrides `closest('form')` lookup.
|
|
46
|
+
*/
|
|
47
|
+
form: string | HTMLElement | undefined;
|
|
48
|
+
/** The selected date in YYYY-MM-DD format. Used internally for calendar and event detail. */
|
|
49
|
+
value: string;
|
|
50
|
+
/** The selected time in 24-hour `HH:mm:ss` format (e.g. `14:30:00`). Values outside this format are not parsed. */
|
|
51
|
+
timeValue: string;
|
|
52
|
+
/** Placeholder for the date input. Defaults to DD-MM-YYYY. */
|
|
53
|
+
placeholder: string;
|
|
54
|
+
/** Shows the hour/minute/second time selects below the date row. */
|
|
55
|
+
showTime: boolean;
|
|
56
|
+
/** The name submitted as a name/value pair for the time field. */
|
|
57
|
+
timeName: string;
|
|
58
|
+
/** Disables all inputs and the calendar picker. */
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
/** Makes all inputs read-only. */
|
|
61
|
+
readonly: boolean;
|
|
62
|
+
/** Marks the field as required. */
|
|
63
|
+
required: boolean;
|
|
64
|
+
/** Minimum selectable date in YYYY-MM-DD format. */
|
|
65
|
+
min: string;
|
|
66
|
+
/** Maximum selectable date in YYYY-MM-DD format. */
|
|
67
|
+
max: string;
|
|
68
|
+
/**
|
|
69
|
+
* Custom validation message when the typed date is before `min`.
|
|
70
|
+
* Falls back to the localized `dateBeforeMin` term when omitted.
|
|
71
|
+
*/
|
|
72
|
+
maskMinMessage: string;
|
|
73
|
+
/**
|
|
74
|
+
* Custom validation message when the typed date is after `max`.
|
|
75
|
+
* Falls back to the localized `dateAfterMax` term when omitted.
|
|
76
|
+
*/
|
|
77
|
+
maskMaxMessage: string;
|
|
78
|
+
/** Controls whether the calendar popup is visible. */
|
|
79
|
+
private calendarOpen;
|
|
80
|
+
/** Date shown in the text input formatted as DD-MM-YYYY. */
|
|
81
|
+
private displayValue;
|
|
82
|
+
constructor();
|
|
83
|
+
connectedCallback(): void;
|
|
84
|
+
disconnectedCallback(): void;
|
|
85
|
+
runFirstUpdated(): Promise<void>;
|
|
86
|
+
private readonly dateMaskBlocks;
|
|
87
|
+
private get datePlaceholder();
|
|
88
|
+
getForm(): HTMLFormElement | undefined;
|
|
89
|
+
private get minDate();
|
|
90
|
+
private get maxDate();
|
|
91
|
+
/** Sets a custom validation message on the inner date input. Pass an empty string to restore validity. */
|
|
92
|
+
setCustomValidity(message: string): void;
|
|
93
|
+
private addOpenListeners;
|
|
94
|
+
private removeOpenListeners;
|
|
95
|
+
private validateInRange;
|
|
96
|
+
private emitTimeChange;
|
|
97
|
+
private get timeParts();
|
|
98
|
+
private updateTimePart;
|
|
99
|
+
private renderTimeSelects;
|
|
100
|
+
private renderHiddenTimeInput;
|
|
101
|
+
private handleTimePartChange;
|
|
102
|
+
handleValueChange(): void;
|
|
103
|
+
handleMinMaxChange(): void;
|
|
104
|
+
handleAccessStateChange(): void;
|
|
105
|
+
private resetDateValue;
|
|
106
|
+
private handleDateInput;
|
|
107
|
+
private handleDateKeydown;
|
|
108
|
+
private handleDateChange;
|
|
109
|
+
private handleDateBlur;
|
|
110
|
+
private handleShowCalender;
|
|
111
|
+
private handleCalendarPanelPointerDown;
|
|
112
|
+
private handleDocumentPointerDown;
|
|
113
|
+
private handleDocumentKeyDown;
|
|
114
|
+
private handleClearClick;
|
|
115
|
+
private handleCalendarDateSelect;
|
|
116
|
+
private commitFromCalendar;
|
|
117
|
+
private commitValue;
|
|
118
|
+
private closeCalendar;
|
|
119
|
+
private renderCalendarIcon;
|
|
120
|
+
private renderShowtime;
|
|
121
|
+
render(): import('lit').TemplateResult<1>;
|
|
122
|
+
}
|
|
123
|
+
declare global {
|
|
124
|
+
interface HTMLElementTagNameMap {
|
|
125
|
+
'cx-input-date-picker': CxInputDatePicker;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { default as CxOption } from '../../../atoms/src/components/option/option.ts';
|
|
2
|
+
import { default as CxSelect } from '../../../atoms/src/components/select/select.ts';
|
|
3
|
+
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
4
|
+
import { default as CxInputDatePicker } from '../input-date-picker/input-date-picker.ts';
|
|
5
|
+
import { CSSResultGroup } from 'lit';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @summary A date range input composed of two date pickers and an optional preset selector.
|
|
9
|
+
* Validates that the from date is not after the to date.
|
|
10
|
+
*
|
|
11
|
+
* @event cx-change - Emitted when the user commits any range value change. Read `el.fromDate`, `el.toDate`, `el.fromTime`, `el.toTime`, `el.preset` for the updated values.
|
|
12
|
+
*
|
|
13
|
+
* @csspart pickers-row - The row containing both date pickers.
|
|
14
|
+
* @csspart preset-row - The row containing the preset select.
|
|
15
|
+
*
|
|
16
|
+
* @cssproperty [--date-range-picker-width] - Explicit component width. Overrides date-only and show-time default widths.
|
|
17
|
+
* @cssproperty [--date-field-width=15rem] - Default width for each date picker when time selects are hidden.
|
|
18
|
+
* @cssproperty [--time-select-width=5.75rem] - Width of each child time select.
|
|
19
|
+
* @cssproperty [--date-range-picker-gap=var(--cx-spacing-small)] - Gap between the from and to date pickers.
|
|
20
|
+
*/
|
|
21
|
+
export default class CxInputDateRangePicker extends CortexElement {
|
|
22
|
+
static readonly styles: CSSResultGroup;
|
|
23
|
+
static readonly dependencies: {
|
|
24
|
+
'cx-input-date-picker': typeof CxInputDatePicker;
|
|
25
|
+
'cx-option': typeof CxOption;
|
|
26
|
+
'cx-select': typeof CxSelect;
|
|
27
|
+
};
|
|
28
|
+
private readonly localize;
|
|
29
|
+
/** Form submission key for the from date. */
|
|
30
|
+
fromName: string;
|
|
31
|
+
/** Form submission key for the to date. */
|
|
32
|
+
toName: string;
|
|
33
|
+
/** Form submission key for the from time. */
|
|
34
|
+
fromTimeName: string;
|
|
35
|
+
/** Form submission key for the to time. */
|
|
36
|
+
toTimeName: string;
|
|
37
|
+
/** The from date in YYYY-MM-DD format. */
|
|
38
|
+
fromDate: string;
|
|
39
|
+
/** The to date in YYYY-MM-DD format. */
|
|
40
|
+
toDate: string;
|
|
41
|
+
/** The from time in 24-hour `HH:mm:ss` format (e.g. `14:30:00`). Values outside this format are not parsed. */
|
|
42
|
+
fromTime: string;
|
|
43
|
+
/** The to time in 24-hour `HH:mm:ss` format (e.g. `14:30:00`). Values outside this format are not parsed. */
|
|
44
|
+
toTime: string;
|
|
45
|
+
/** The selected preset value. */
|
|
46
|
+
preset: string;
|
|
47
|
+
/** Label for the from date picker. */
|
|
48
|
+
fromLabel: string;
|
|
49
|
+
/** Label for the to date picker. */
|
|
50
|
+
toLabel: string;
|
|
51
|
+
/** Shared placeholder for both child date pickers. */
|
|
52
|
+
placeholder: string;
|
|
53
|
+
/** Shows the time selects on both child date pickers. */
|
|
54
|
+
showTime: boolean;
|
|
55
|
+
/** Shows the preset selector. */
|
|
56
|
+
showPreset: boolean;
|
|
57
|
+
/** Disables all inputs. */
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
/** Makes all inputs read-only. */
|
|
60
|
+
readonly: boolean;
|
|
61
|
+
/** Marks the range as required — both dates must be filled. */
|
|
62
|
+
required: boolean;
|
|
63
|
+
/** Minimum selectable date in YYYY-MM-DD format. */
|
|
64
|
+
min: string;
|
|
65
|
+
/** Maximum selectable date in YYYY-MM-DD format. */
|
|
66
|
+
max: string;
|
|
67
|
+
/** The associated form target passed to child date pickers. */
|
|
68
|
+
form: string | HTMLElement | undefined;
|
|
69
|
+
handleShowTimeChange(): void;
|
|
70
|
+
handlePresetValueChange(): void;
|
|
71
|
+
getForm(): HTMLFormElement | undefined;
|
|
72
|
+
private get isTimeRangeInvalid();
|
|
73
|
+
private isDateRangePreset;
|
|
74
|
+
private get nextFromDate();
|
|
75
|
+
private clearRangeData;
|
|
76
|
+
private applyPreset;
|
|
77
|
+
private handlePresetChange;
|
|
78
|
+
private get resolvedFromLabel();
|
|
79
|
+
private get resolvedToLabel();
|
|
80
|
+
private handleFromDateChange;
|
|
81
|
+
private handleToDateChange;
|
|
82
|
+
private emitRangeChange;
|
|
83
|
+
private renderPresets;
|
|
84
|
+
render(): import('lit').TemplateResult<1>;
|
|
85
|
+
}
|
|
86
|
+
declare global {
|
|
87
|
+
interface HTMLElementTagNameMap {
|
|
88
|
+
'cx-input-date-range-picker': CxInputDateRangePicker;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -23,7 +23,6 @@ export default class CxTimeline extends CortexElement {
|
|
|
23
23
|
};
|
|
24
24
|
private readonly localize;
|
|
25
25
|
private apiSearchAssets;
|
|
26
|
-
private readonly searchToken;
|
|
27
26
|
private thumbnailRequestVersion;
|
|
28
27
|
private get isInEditMode();
|
|
29
28
|
tabGroup?: CxTabGroup;
|
|
@@ -56,6 +55,7 @@ export default class CxTimeline extends CortexElement {
|
|
|
56
55
|
* Asset transformations applied to the image.
|
|
57
56
|
*/
|
|
58
57
|
transformations: Transformation[];
|
|
58
|
+
siteBuilderToken: string;
|
|
59
59
|
/** Proxy URLs resolved from apiSearchAssets, keyed by item.id. */
|
|
60
60
|
private resolvedThumbnails;
|
|
61
61
|
handleDataChange(): Promise<void>;
|
|
@@ -7,7 +7,6 @@ export declare class ConfigFormController implements ReactiveController {
|
|
|
7
7
|
host: ReactiveControllerHost & CxConfigForm;
|
|
8
8
|
private readonly localize;
|
|
9
9
|
private apiSearchAssets;
|
|
10
|
-
private readonly searchToken;
|
|
11
10
|
private readonly pendingGalleryPickerSaves;
|
|
12
11
|
constructor(host: ReactiveControllerHost & CxConfigForm);
|
|
13
12
|
hostConnected(): void;
|
|
@@ -24,6 +24,7 @@ export default class CxTemplateSwitcher extends CortexElement {
|
|
|
24
24
|
'cx-view-and-sort': typeof CxViewAndSort;
|
|
25
25
|
};
|
|
26
26
|
private readonly localize;
|
|
27
|
+
private readonly hasSlotController;
|
|
27
28
|
viewAndSort: CxViewAndSort;
|
|
28
29
|
data: TemplateSwitcherProps;
|
|
29
30
|
forcedSortOrder: boolean | null;
|
|
@@ -31,6 +32,11 @@ export default class CxTemplateSwitcher extends CortexElement {
|
|
|
31
32
|
label: string;
|
|
32
33
|
triggerButtonVariant: ButtonVariant;
|
|
33
34
|
triggerButtonSize: ButtonSize;
|
|
35
|
+
/**
|
|
36
|
+
* When present, items with submenus are rendered inline — no hover required.
|
|
37
|
+
|
|
38
|
+
*/
|
|
39
|
+
flattenSubmenu: boolean;
|
|
34
40
|
private _loading;
|
|
35
41
|
private _menu;
|
|
36
42
|
get menu(): MenuData;
|
|
@@ -27,7 +27,7 @@ export declare const SEARCH_FIELDS: {
|
|
|
27
27
|
ORIGINAL_VIEW_SIZE: string;
|
|
28
28
|
};
|
|
29
29
|
export declare function resolveAssetExtraFilters(selectedFacets?: Record<string, string[]>): Record<string, string[]>;
|
|
30
|
-
export declare function apiSearchAssets({
|
|
30
|
+
export declare function apiSearchAssets({ countPerPage, fields, getPermanentAssetsPaths, pageNumber, query, securityByPassToken, siteUrl, sort, token, useSession, }: SearchAssetsParams): Promise<SearchAssetsResponse>;
|
|
31
31
|
export declare function apiGetTransformAssetLink({ assetId, extension, format, siteUrl, token, transformations, useSession, }: {
|
|
32
32
|
assetId: string;
|
|
33
33
|
extension?: string;
|
|
@@ -37,8 +37,8 @@ export declare function apiGetTransformAssetLink({ assetId, extension, format, s
|
|
|
37
37
|
transformations?: string;
|
|
38
38
|
useSession?: string;
|
|
39
39
|
}): Promise<GetTransformAssetLinkResponse | null>;
|
|
40
|
-
export declare function apiGetAssets({
|
|
41
|
-
export declare function apiGetAssetsInFolder({
|
|
40
|
+
export declare function apiGetAssets({ extraFields, getPermanentAssetsPaths, recordIds, securityByPassToken, token, }: GetAssetsRequest): Promise<GetAssetsResponse>;
|
|
41
|
+
export declare function apiGetAssetsInFolder({ countPerPage, directParentFolderIdentifier, extraFields, getPermanentAssetsPaths, limitedDocTypes, pageNumber, parentFolderIdentifier, searchTerm, securityByPassToken, sortOrder, token, }: GetAssetsInFolderRequest): Promise<GetAssetsInFolderResponse>;
|
|
42
42
|
export declare function apiGetCropFocusMode({ autoCropMode, cropHeight, cropWidth, imageUrl, useSession, }: GetCropZoneSuggestionRequest): Promise<GetCropZoneSuggestionResponse | null>;
|
|
43
43
|
export declare function apiGetAvailableProxies({ assetRecordId, siteUrl, token, useSession, }: {
|
|
44
44
|
assetRecordId: string;
|
|
@@ -4,10 +4,10 @@ export declare class FetchAssetController implements ReactiveController {
|
|
|
4
4
|
private readonly host;
|
|
5
5
|
private data;
|
|
6
6
|
constructor(host: ReactiveElement);
|
|
7
|
-
fetchAssetByID({
|
|
8
|
-
cms5Token?: string;
|
|
7
|
+
fetchAssetByID({ extraFields, recordId, securityByPassToken, token, }: {
|
|
9
8
|
extraFields?: string[];
|
|
10
9
|
recordId: string;
|
|
10
|
+
securityByPassToken?: string;
|
|
11
11
|
token?: string;
|
|
12
12
|
}): Promise<Record<string, string>>;
|
|
13
13
|
hostConnected?(): void;
|
|
@@ -6,9 +6,9 @@ export type ExtendedGalleryItem = GalleryItem & {
|
|
|
6
6
|
[key: string]: string | undefined;
|
|
7
7
|
};
|
|
8
8
|
type FetchImageControllerOptions = {
|
|
9
|
-
cms5Token?: string;
|
|
10
9
|
maxEnd?: number;
|
|
11
10
|
pageSize?: number;
|
|
11
|
+
securityByPassToken?: string;
|
|
12
12
|
token?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare function isSupportedImageExtension(extension: string): boolean;
|
|
@@ -16,15 +16,16 @@ export declare class FetchImageController implements ReactiveController {
|
|
|
16
16
|
private readonly host;
|
|
17
17
|
private data;
|
|
18
18
|
private folderId;
|
|
19
|
-
private parentFolderIdentifier;
|
|
20
19
|
private readonly fetchedPages;
|
|
21
20
|
private totalCount;
|
|
22
21
|
private maxEnd;
|
|
23
22
|
private pageSize;
|
|
24
23
|
private readonly authToken;
|
|
25
|
-
private
|
|
24
|
+
private securityByPassToken;
|
|
25
|
+
private requestEpoch;
|
|
26
26
|
constructor(host: ReactiveElement, options?: FetchImageControllerOptions);
|
|
27
27
|
get totalDataCount(): number;
|
|
28
|
+
setSecurityByPassToken(token: string | undefined): void;
|
|
28
29
|
fetchImages({ end, extraFields, format, start, transformations, }: {
|
|
29
30
|
end: number;
|
|
30
31
|
extraFields: string[];
|
|
@@ -70,7 +71,6 @@ export declare class FetchImageController implements ReactiveController {
|
|
|
70
71
|
}): AsyncGenerator<ExtendedGalleryItem[], void, unknown>;
|
|
71
72
|
hostConnected?(): void;
|
|
72
73
|
hostDisconnected?(): void;
|
|
73
|
-
private resolveParentFolderIdentifier;
|
|
74
74
|
private resetPageCache;
|
|
75
75
|
private resetFolderState;
|
|
76
76
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface TimeOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const DEFAULT_TIME_PART = "00";
|
|
6
|
+
export declare const DEFAULT_FROM_TIME = "00:00:00";
|
|
7
|
+
export declare const DEFAULT_TO_TIME = "23:59:59";
|
|
8
|
+
/** Hour options in 12-hour AM/PM display, mapping to 24-hour internal values. */
|
|
9
|
+
export declare const HOUR_OPTIONS: readonly TimeOption[];
|
|
10
|
+
/** 00-59 padded strings for minute and second selects. */
|
|
11
|
+
export declare const PAD_OPTIONS: readonly string[];
|
|
12
|
+
export declare const DATE_RANGE_PRESET: {
|
|
13
|
+
readonly last2Days: "last-2-days";
|
|
14
|
+
readonly last30Days: "last-30-days";
|
|
15
|
+
readonly last30Minutes: "last-30-minutes";
|
|
16
|
+
readonly last3Days: "last-3-days";
|
|
17
|
+
readonly lastDay: "last-day";
|
|
18
|
+
readonly lastHalfYear: "last-half-year";
|
|
19
|
+
readonly lastMonth: "last-month";
|
|
20
|
+
readonly lastQuarter: "last-quarter";
|
|
21
|
+
readonly lastWeek: "last-week";
|
|
22
|
+
readonly lastYear: "last-year";
|
|
23
|
+
readonly next30Days: "next-30-days";
|
|
24
|
+
readonly thisHalfYear: "this-half-year";
|
|
25
|
+
readonly thisMonth: "this-month";
|
|
26
|
+
readonly thisQuarter: "this-quarter";
|
|
27
|
+
readonly thisWeek: "this-week";
|
|
28
|
+
readonly thisYear: "this-year";
|
|
29
|
+
readonly today: "today";
|
|
30
|
+
};
|
|
31
|
+
export type DateRangePreset = (typeof DATE_RANGE_PRESET)[keyof typeof DATE_RANGE_PRESET];
|
|
32
|
+
export declare const DATE_RANGE_PRESETS: readonly ["last-30-minutes", "today", "last-day", "last-2-days", "last-3-days", "last-30-days", "next-30-days", "this-week", "last-week", "this-month", "last-month", "last-quarter", "last-half-year", "this-quarter", "this-half-year", "this-year", "last-year"];
|
|
33
|
+
/** Maps each preset value to the i18n translation key used for its label. */
|
|
34
|
+
export declare const PRESET_TRANSLATION_KEY: Record<DateRangePreset, string>;
|
|
35
|
+
export interface DateRangeResult {
|
|
36
|
+
fromDate: string;
|
|
37
|
+
fromTime: string;
|
|
38
|
+
toDate: string;
|
|
39
|
+
toTime: string;
|
|
40
|
+
}
|
|
41
|
+
export type DateParts = {
|
|
42
|
+
day: number;
|
|
43
|
+
month: number;
|
|
44
|
+
year: number;
|
|
45
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum FacetSelectionMode {
|
|
2
|
+
Multiple = "multiple",
|
|
3
|
+
Single = "single"
|
|
4
|
+
}
|
|
5
|
+
export type FacetDetails = {
|
|
6
|
+
displayName: string;
|
|
7
|
+
facetFieldName: string;
|
|
8
|
+
facetIndexedFieldName?: string;
|
|
9
|
+
/** Controls whether the facet allows single or multi-select. Defaults to single. */
|
|
10
|
+
selection?: FacetSelectionMode;
|
|
11
|
+
};
|
|
12
|
+
export type FacetValue = {
|
|
13
|
+
count: number;
|
|
14
|
+
displayValue: string;
|
|
15
|
+
/** Supports two-level hierarchical values using ">>" separator, e.g. "image>>png". */
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
export type Facet = {
|
|
19
|
+
facetDetails: FacetDetails;
|
|
20
|
+
values: FacetValue[];
|
|
21
|
+
};
|
|
22
|
+
/** Selected filter values keyed by facetFieldName. e.g. `{ status: ['active'], category: ['image>>png'] }` */
|
|
23
|
+
export type SelectedFacets = Record<string, string[]>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type FakeString = string & Record<string, never>;
|
|
2
2
|
export type EnumOrString<T> = T | FakeString;
|
|
3
|
+
export * from './icon-picker';
|
|
3
4
|
export type BaseVariant = 'primary' | 'success' | 'neutral' | 'warning' | 'danger';
|
|
4
5
|
export declare enum ObjectFit {
|
|
5
6
|
Contain = "contain",
|
|
@@ -55,4 +56,3 @@ export declare enum GsapEasing {
|
|
|
55
56
|
'quad-in-out' = "power2.inOut",
|
|
56
57
|
'quad-out' = "power2.out"
|
|
57
58
|
}
|
|
58
|
-
export {};
|
|
@@ -35,6 +35,12 @@ export declare enum TableClipboardAction {
|
|
|
35
35
|
Copy = "copy",
|
|
36
36
|
Paste = "paste"
|
|
37
37
|
}
|
|
38
|
+
export declare enum TableDataFormat {
|
|
39
|
+
Auto = "auto",
|
|
40
|
+
Csv = "csv",
|
|
41
|
+
Json = "json",
|
|
42
|
+
Xml = "xml"
|
|
43
|
+
}
|
|
38
44
|
/**
|
|
39
45
|
* Tabulator Interface
|
|
40
46
|
*/
|
|
@@ -2237,6 +2243,12 @@ export interface ColumnDefinition extends ColumnLayout, CellCallbacks, Formatter
|
|
|
2237
2243
|
* is found the click is a no-op.
|
|
2238
2244
|
*/
|
|
2239
2245
|
clickableActionName?: string;
|
|
2246
|
+
/**
|
|
2247
|
+
* When set, clicking the cell fires `cx-table-row-action-click` directly with
|
|
2248
|
+
* `detail.name` equal to this value — no hover menu is required. Takes
|
|
2249
|
+
* priority over `clickableActionName` when both are set.
|
|
2250
|
+
*/
|
|
2251
|
+
clickableEventName?: string;
|
|
2240
2252
|
}
|
|
2241
2253
|
export interface CellCallbacks {
|
|
2242
2254
|
/** callback for when user clicks on a cell in this column. */
|
|
@@ -77,3 +77,8 @@ export declare class FormControlController implements ReactiveController {
|
|
|
77
77
|
export declare const validValidityState: ValidityState;
|
|
78
78
|
export declare const valueMissingValidityState: ValidityState;
|
|
79
79
|
export declare const customErrorValidityState: ValidityState;
|
|
80
|
+
/**
|
|
81
|
+
* Resolves the form associated with a custom element.
|
|
82
|
+
* Accepts an HTMLFormElement directly, a form `id` string, or falls back to `closest('form')`.
|
|
83
|
+
*/
|
|
84
|
+
export declare function getAssociatedForm(element: HTMLElement, form: string | HTMLElement | undefined): HTMLFormElement | undefined;
|
|
@@ -233,7 +233,13 @@ export interface Translation extends DefaultTranslation {
|
|
|
233
233
|
dashSpacing: string;
|
|
234
234
|
dashWidth: string;
|
|
235
235
|
dashed: string;
|
|
236
|
+
date: string;
|
|
237
|
+
dateAfterMax: string;
|
|
238
|
+
dateBeforeMin: string;
|
|
236
239
|
dateFormat: string;
|
|
240
|
+
dateInvalid: string;
|
|
241
|
+
dateRangeRequired: string;
|
|
242
|
+
dateRequired: string;
|
|
237
243
|
decreaseFontSize: string;
|
|
238
244
|
default: string;
|
|
239
245
|
defaultDownloadLocation: string;
|
|
@@ -370,6 +376,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
370
376
|
folderCollection: string;
|
|
371
377
|
folders: string;
|
|
372
378
|
font: string;
|
|
379
|
+
fontAwesome: string;
|
|
373
380
|
fontColor: string;
|
|
374
381
|
fontKit: string;
|
|
375
382
|
fontKitPreview: string;
|
|
@@ -380,8 +387,10 @@ export interface Translation extends DefaultTranslation {
|
|
|
380
387
|
fontWeight: string;
|
|
381
388
|
fonts: string;
|
|
382
389
|
format: string;
|
|
390
|
+
formatDDMMYYYY: string;
|
|
383
391
|
formats: string;
|
|
384
392
|
forward: string;
|
|
393
|
+
fromLabel: string;
|
|
385
394
|
fullscreen: string;
|
|
386
395
|
gallery: string;
|
|
387
396
|
galleryCardNthOfCards: (index: number, count: number) => string;
|
|
@@ -412,6 +421,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
412
421
|
history: string;
|
|
413
422
|
hollowBullet: string;
|
|
414
423
|
horizontalGap: string;
|
|
424
|
+
hour: string;
|
|
415
425
|
hugContent: string;
|
|
416
426
|
hugContentOnDesktopAndStretchesToFullWidthOnMobile: string;
|
|
417
427
|
icon: string;
|
|
@@ -514,6 +524,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
514
524
|
minHeight: string;
|
|
515
525
|
minWidth: string;
|
|
516
526
|
minimize: string;
|
|
527
|
+
minute: string;
|
|
517
528
|
more: string;
|
|
518
529
|
moreOptions: string;
|
|
519
530
|
moveBlockDown: string;
|
|
@@ -554,6 +565,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
554
565
|
numOptionsSelected: (num: number) => string;
|
|
555
566
|
numberedListStyle: string;
|
|
556
567
|
of: string;
|
|
568
|
+
off: string;
|
|
557
569
|
ok: string;
|
|
558
570
|
onHover: string;
|
|
559
571
|
onThisPage: string;
|
|
@@ -617,6 +629,24 @@ export interface Translation extends DefaultTranslation {
|
|
|
617
629
|
popOut: string;
|
|
618
630
|
position: string;
|
|
619
631
|
preserveMetadata: string;
|
|
632
|
+
preset: string;
|
|
633
|
+
presetLast2Days: string;
|
|
634
|
+
presetLast30Days: string;
|
|
635
|
+
presetLast30Minutes: string;
|
|
636
|
+
presetLast3Days: string;
|
|
637
|
+
presetLastDay: string;
|
|
638
|
+
presetLastHalfYear: string;
|
|
639
|
+
presetLastMonth: string;
|
|
640
|
+
presetLastQuarter: string;
|
|
641
|
+
presetLastWeek: string;
|
|
642
|
+
presetLastYear: string;
|
|
643
|
+
presetNext30Days: string;
|
|
644
|
+
presetThisHalfYear: string;
|
|
645
|
+
presetThisMonth: string;
|
|
646
|
+
presetThisQuarter: string;
|
|
647
|
+
presetThisWeek: string;
|
|
648
|
+
presetThisYear: string;
|
|
649
|
+
presetToday: string;
|
|
620
650
|
pressEnterOrCtrlCToCopy: string;
|
|
621
651
|
preview: string;
|
|
622
652
|
previewText: string;
|
|
@@ -690,6 +720,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
690
720
|
searchFolders: string;
|
|
691
721
|
searchOptions: string;
|
|
692
722
|
searching: string;
|
|
723
|
+
second: string;
|
|
693
724
|
secondary: string;
|
|
694
725
|
sectionBackground: string;
|
|
695
726
|
seeThru: string;
|
|
@@ -802,6 +833,8 @@ export interface Translation extends DefaultTranslation {
|
|
|
802
833
|
timeline: string;
|
|
803
834
|
title: string;
|
|
804
835
|
titleImage: string;
|
|
836
|
+
toDateMustBeSameOrLaterThanFromDate: string;
|
|
837
|
+
toLabel: string;
|
|
805
838
|
toViewAssetRetrieveFromColdStorage: string;
|
|
806
839
|
today: string;
|
|
807
840
|
toggleColorFormat: string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CalendarDate } from './date';
|
|
2
|
+
|
|
3
|
+
export interface CalendarCell {
|
|
4
|
+
/** YYYY-MM-DD of this cell. */
|
|
5
|
+
date: CalendarDate;
|
|
6
|
+
/** Numeric day of the month (1-31). */
|
|
7
|
+
day: number;
|
|
8
|
+
isDisabled: boolean;
|
|
9
|
+
/** True when this cell belongs to a month other than viewMonth. */
|
|
10
|
+
isOutside: boolean;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
isToday: boolean;
|
|
13
|
+
/** 1-based month of this cell. May differ from viewMonth for outside cells. */
|
|
14
|
+
month: number;
|
|
15
|
+
year: number;
|
|
16
|
+
}
|
|
17
|
+
export interface CalendarGridParams {
|
|
18
|
+
/** Maximum selectable date. Empty string means no maximum. */
|
|
19
|
+
maxDate: CalendarDate;
|
|
20
|
+
/** Minimum selectable date. Empty string means no minimum. */
|
|
21
|
+
minDate: CalendarDate;
|
|
22
|
+
/** Currently selected date. Empty string means no selection. */
|
|
23
|
+
selectedDate: CalendarDate;
|
|
24
|
+
/** Today's date used to highlight the current day. */
|
|
25
|
+
todayDate: CalendarDate;
|
|
26
|
+
/** 1-based month to render (1 = January … 12 = December). */
|
|
27
|
+
viewMonth: number;
|
|
28
|
+
viewYear: number;
|
|
29
|
+
}
|
|
30
|
+
export declare class CalendarGrid {
|
|
31
|
+
/**
|
|
32
|
+
* Generates a fixed 35-cell (5 weeks × 7 days) grid for the given month.
|
|
33
|
+
* The grid always starts on Sunday. Days before the 1st and after the last
|
|
34
|
+
* day of viewMonth are marked isOutside = true but remain selectable.
|
|
35
|
+
*
|
|
36
|
+
* Note: months that span more than 5 weeks (start on Fri/Sat with 30/31 days)
|
|
37
|
+
* will have their last 1-2 days truncated. This matches the fixed-height design.
|
|
38
|
+
*/
|
|
39
|
+
static generate(params: CalendarGridParams): CalendarCell[];
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DateRangePreset, DateRangeResult } from '../../../types/src/date-picker';
|
|
2
|
+
|
|
3
|
+
export declare class DateRangePresets {
|
|
4
|
+
/**
|
|
5
|
+
* Computes a date range from a preset value.
|
|
6
|
+
*
|
|
7
|
+
* @param preset - One of the DATE_RANGE_PRESET values.
|
|
8
|
+
* @param now - Injectable reference to the current moment; use `new Date()` in production.
|
|
9
|
+
* @returns fromDate, toDate (YYYY-MM-DD) and fromTime, toTime (HH:mm:ss).
|
|
10
|
+
*/
|
|
11
|
+
static getRange(preset: DateRangePreset, now: Date): DateRangeResult;
|
|
12
|
+
}
|