@orangelogic/design-system 2.132.0 → 2.134.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.D_VITxRH.js → asset.CcxcYY9d.js} +2 -2
- package/library/chunks/{button.DcInI7IV.js → button.DYoFn504.js} +1 -1
- package/library/chunks/calendar-grid.CvdcwfTo.js +34 -0
- package/library/chunks/checkbox.BzbWmmJ0.js +198 -0
- package/library/chunks/{color-swatch-group.Cy-M_lbx.js → color-swatch-group.Dx6-kWC-.js} +3 -3
- package/library/chunks/{color-swatch.U-wztpLf.js → color-swatch.0zyBEfL_.js} +1 -1
- package/library/chunks/{confirm-popover.DfAd2F8S.js → confirm-popover.DpVYvK20.js} +3 -3
- package/library/chunks/{date-picker.D0SJADN6.js → date-picker.DTUICGb9.js} +2 -2
- package/library/chunks/date.dSYNLBVO.js +77 -0
- package/library/chunks/{dialog.BlKHLwFx.js → dialog.BwBD_hJi.js} +2 -2
- package/library/chunks/{document-viewer.CzGnnA_9.js → document-viewer.BM716ovi.js} +7 -7
- package/library/chunks/{dot-pagination.CNJWQ4zf.js → dot-pagination.B70lV5Av.js} +1 -1
- package/library/chunks/{file-on-demand.Dr05DdkU.js → file-on-demand.CsT96fvk.js} +9 -9
- package/library/chunks/{folder-select.CHzRsSGM.js → folder-select.DwZ7lczk.js} +4 -4
- package/library/chunks/{header.WRWyUU36.js → header.BMGvKrdP.js} +1 -1
- package/library/chunks/{i18n.NAH4U8Lw.js → i18n.DoMIwXr2.js} +61 -45
- package/library/chunks/{icon-button.COTH_z-J.js → icon-button.B-Jf9W3v.js} +1 -1
- package/library/chunks/{iframe.DvBR4KYU.js → iframe.Cdv6esyS.js} +1 -1
- package/library/chunks/{image.DAtx64Jj.js → image.SLqIVjqc.js} +2 -2
- package/library/chunks/{input.BRgVRr2i.js → input.CQNhMu4z.js} +1 -1
- package/library/chunks/{list-editor.CwCdVzMl.js → list-editor.BhMNYL8R.js} +9 -9
- package/library/chunks/{option.BH13eKSl.js → option.SCVixE2L.js} +1 -1
- package/library/chunks/{pagination.tSkuYrqk.js → pagination.BFE6Nk3_.js} +5 -5
- package/library/chunks/{resizable-component.styles.B5N-oYx6.js → resizable-component.styles.BVhOesNE.js} +1 -1
- package/library/chunks/{tab-group.GA4X3LL2.js → tab-group.C-p2Dljr.js} +3 -3
- package/library/chunks/{table.C6YsaNOh.js → table.DWcxLbq6.js} +3581 -2656
- package/library/chunks/{tree.CbeHY8pn.js → tree.C2mLhREj.js} +2 -2
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +7 -7
- package/library/components/atoms.js +22 -22
- package/library/components/audio.js +3 -3
- 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/checkbox.js +18 -195
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +4 -4
- 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 +10 -9
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +77 -51
- 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/file-on-demand.js +10 -10
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +38 -23
- 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 +3 -3
- package/library/components/input.js +2 -2
- 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 +1 -1
- package/library/components/molecules.js +4 -4
- 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/table.js +16 -16
- package/library/components/tag.js +2 -2
- 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 +38201 -38461
- package/library/components/video.js +3 -3
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +3 -0
- package/library/packages/atoms/src/components/diff/utils/diff-worker-client.d.ts +2 -1
- package/library/packages/atoms/src/components/format-date/format-date.d.ts +8 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-dropdown-filter.d.ts +1 -1
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-group-by-dropdown.d.ts +44 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-saved-search-dropdown.d.ts +1 -1
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +33 -1
- package/library/packages/atoms/src/components/table/controllers/ajax-facets/ajax-facet-data-controller.d.ts +39 -0
- package/library/packages/atoms/src/components/table/controllers/ajax-facets/ajax-facet-filter-controller.d.ts +27 -0
- package/library/packages/atoms/src/components/table/{filter-controller.d.ts → controllers/filter-controller.d.ts} +24 -3
- package/library/packages/atoms/src/components/table/controllers/select-all-controller.d.ts +55 -0
- package/library/packages/atoms/src/components/table/table.d.ts +70 -1
- package/library/packages/events/src/cx-table-dropdown-filter-change.d.ts +1 -1
- package/library/packages/events/src/cx-table-export.d.ts +1 -1
- package/library/packages/events/src/cx-table-group-by-change.d.ts +8 -0
- package/library/packages/events/src/cx-table-select-all-change.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/core/TabulatorFull.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/avatar.d.ts +5 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/date.d.ts +12 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/diff.d.ts +2 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters.d.ts +4 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/GroupRows/Group.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/GroupRows/GroupRows.d.ts +7 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/SelectRow/extensions/formatters/rowSelection.d.ts +1 -1
- package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +2 -0
- package/library/packages/types/src/faceted-filter.d.ts +11 -0
- package/library/packages/types/src/format-date.d.ts +12 -0
- package/library/packages/types/src/table.d.ts +40 -21
- package/library/packages/utils/src/custom-element/i18n-utils.d.ts +7 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/react-web-component.d.ts +278 -246
- package/library/utils.js +86 -85
- package/package.json +1 -1
- package/library/assets/diff.worker-ClilI1xm.js +0 -1
- package/library/chunks/calendar-grid.CXYoS6VA.js +0 -108
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DateFormatterParams } from '../../../../../../../../types/src/table';
|
|
2
|
+
import { default as CellComponent } from '../../../../core/cell/CellComponent';
|
|
3
|
+
import { default as Format } from '../../Format';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Formats the value of a cell as a date/time using cx-format-date.
|
|
7
|
+
* The cell value is the single source of truth for the date.
|
|
8
|
+
*
|
|
9
|
+
* When noDatetimeSeparator is true, cx-format-date removes the locale connector
|
|
10
|
+
* (e.g. " at " in en-US) that appears between date and time parts.
|
|
11
|
+
*/
|
|
12
|
+
export default function date(this: Format, cell: CellComponent, formatterParams: DateFormatterParams): HTMLElement | string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { default as CxLineClamp } from '../../../../../../../../atoms/src/components/line-clamp/line-clamp.ts';
|
|
1
2
|
import { DiffFormatterParams } from '../../../../../../../../types/src/table';
|
|
2
3
|
import { default as CellComponent } from '../../../../core/cell/CellComponent';
|
|
3
4
|
import { default as Format } from '../../Format';
|
|
4
5
|
|
|
5
|
-
export default function diff(this: Format, cell: CellComponent, formatterParams: DiffFormatterParams):
|
|
6
|
+
export default function diff(this: Format, cell: CellComponent, formatterParams: DiffFormatterParams): CxLineClamp;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { default as adaptable } from './formatters/adaptable';
|
|
2
2
|
import { default as array } from './formatters/array';
|
|
3
|
+
import { default as avatar } from './formatters/avatar';
|
|
3
4
|
import { default as buttonCross } from './formatters/buttonCross';
|
|
4
5
|
import { default as buttonTick } from './formatters/buttonTick';
|
|
5
6
|
import { default as color } from './formatters/color';
|
|
6
7
|
import { default as composite } from './formatters/composite';
|
|
8
|
+
import { default as date } from './formatters/date';
|
|
7
9
|
import { default as datetime } from './formatters/datetime';
|
|
8
10
|
import { default as datetimediff } from './formatters/datetimediff';
|
|
9
11
|
import { default as diff } from './formatters/diff';
|
|
@@ -32,10 +34,12 @@ import { default as typography } from './formatters/typography';
|
|
|
32
34
|
declare const defaultFormatters: {
|
|
33
35
|
adaptable: typeof adaptable;
|
|
34
36
|
array: typeof array;
|
|
37
|
+
avatar: typeof avatar;
|
|
35
38
|
buttonCross: typeof buttonCross;
|
|
36
39
|
buttonTick: typeof buttonTick;
|
|
37
40
|
color: typeof color;
|
|
38
41
|
composite: typeof composite;
|
|
42
|
+
date: typeof date;
|
|
39
43
|
datetime: typeof datetime;
|
|
40
44
|
datetimediff: typeof datetimediff;
|
|
41
45
|
diff: typeof diff;
|
package/library/packages/hybrid/table-core/src/tabulator-tables/modules/GroupRows/Group.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export default class Group {
|
|
|
59
59
|
getGroupLoadMoreEventPayload(): GroupLoadMoreEventPayload;
|
|
60
60
|
generateLoadMoreRow(): Row | false;
|
|
61
61
|
private applyGroupIndent;
|
|
62
|
+
private getGroupIndentTargetCell;
|
|
62
63
|
getHeadersAndRows(): Array<Group | Row>;
|
|
63
64
|
getData(visible?: boolean, transform?: string): any[];
|
|
64
65
|
getRowCount(): number;
|
package/library/packages/hybrid/table-core/src/tabulator-tables/modules/GroupRows/GroupRows.d.ts
CHANGED
|
@@ -30,6 +30,13 @@ export default class GroupRows extends Module {
|
|
|
30
30
|
_blockRedrawing(): void;
|
|
31
31
|
_restore_redrawing(): void;
|
|
32
32
|
configureGroupSetup(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Render the default group header by running the grouped column's formatter,
|
|
35
|
+
* reusing the same mock-cell pattern as `Format.formatHeader`. Returns a
|
|
36
|
+
* wrapper element, or `null` when the formatter cannot/should not run so the
|
|
37
|
+
* caller falls back to the plain-text header.
|
|
38
|
+
*/
|
|
39
|
+
buildFormattedGroupHeader(value: any, data: any[], component: GroupComponent): HTMLElement | null;
|
|
33
40
|
rowSample(rows: Row[], prevValue: Row[]): Row[];
|
|
34
41
|
virtualRenderFill(): Row[] | void;
|
|
35
42
|
rowAddingIndex(row: Row, index: Row | false, top: boolean): Row | false;
|
|
@@ -2,4 +2,4 @@ import { RowSelectionParams } from '../../../../../../../../types/src/table';
|
|
|
2
2
|
import { default as CellComponent } from '../../../../core/cell/CellComponent';
|
|
3
3
|
import { default as SelectRow } from '../../SelectRow';
|
|
4
4
|
|
|
5
|
-
export default function (this: SelectRow, cell: CellComponent, formatterParams: RowSelectionParams): string | HTMLElement;
|
|
5
|
+
export default function (this: SelectRow, cell: CellComponent, formatterParams: RowSelectionParams, onRendered: (callback: () => void) => void): string | HTMLElement;
|
|
@@ -18,6 +18,8 @@ import { CSSResultGroup } from 'lit';
|
|
|
18
18
|
*
|
|
19
19
|
* @event {{ selection: SelectedFacets }} cx-faceted-filter-change - Fired whenever
|
|
20
20
|
* the user changes a selection, removes a tag, or clears all filters.
|
|
21
|
+
*
|
|
22
|
+
* @cssproperty [--panel-max-height=600px] - The maximum height of the dropdown panel and its content.
|
|
21
23
|
*/
|
|
22
24
|
export default class CxFacetedFilter extends CortexElement {
|
|
23
25
|
static readonly styles: CSSResultGroup;
|
|
@@ -90,3 +90,14 @@ export type FacetRenderContext = {
|
|
|
90
90
|
/** Selected checkbox values for this facet (`internalSelection[field]`). */
|
|
91
91
|
selectionValues: string[];
|
|
92
92
|
};
|
|
93
|
+
/** The author-facing control token used in `cx-table`'s `facet-config` attribute. */
|
|
94
|
+
export declare enum FacetConfigTableType {
|
|
95
|
+
Checkbox = "checkbox",
|
|
96
|
+
DatePicker = "datePicker",
|
|
97
|
+
DateRangePicker = "dateRangePicker"
|
|
98
|
+
}
|
|
99
|
+
/** The author-facing option token used after a `facet-config` type. */
|
|
100
|
+
export declare enum FacetConfigTableOption {
|
|
101
|
+
ShowPreset = "showPreset",
|
|
102
|
+
ShowTime = "showTime"
|
|
103
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type FormatDateWeekday = 'long' | 'short' | 'narrow';
|
|
2
|
+
export type FormatDateEra = 'long' | 'short' | 'narrow';
|
|
3
|
+
export type FormatDateYear = 'numeric' | '2-digit';
|
|
4
|
+
export type FormatDateMonth = 'numeric' | '2-digit' | 'narrow' | 'short' | 'long';
|
|
5
|
+
export type FormatDateDay = 'numeric' | '2-digit';
|
|
6
|
+
export type FormatDateHour = 'numeric' | '2-digit';
|
|
7
|
+
export type FormatDateMinute = 'numeric' | '2-digit';
|
|
8
|
+
export type FormatDateSecond = 'numeric' | '2-digit';
|
|
9
|
+
export type FormatDateTimeZoneName = 'short' | 'long';
|
|
10
|
+
export type FormatDateTimeZoneHour = 'auto' | '12' | '24';
|
|
11
|
+
export declare const DATE_PART_TYPES: Set<string>;
|
|
12
|
+
export declare const TIME_PART_TYPES: Set<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ButtonVariant } from './button';
|
|
2
|
+
import { FormatDateDay, FormatDateEra, FormatDateHour, FormatDateMinute, FormatDateMonth, FormatDateSecond, FormatDateTimeZoneHour, FormatDateTimeZoneName, FormatDateWeekday, FormatDateYear } from './format-date';
|
|
2
3
|
import { FormatNumberCurrencyDisplay, FormatNumberType } from './format-number';
|
|
3
4
|
import { PaginationCounter } from './pagination';
|
|
4
5
|
import { SpaceJustifyContentProp, SpaceWrapProp, SpacingProp } from './space';
|
|
@@ -915,7 +916,7 @@ export interface IModule extends ICoreFeature {
|
|
|
915
916
|
}
|
|
916
917
|
export interface ITabulatorFull extends ITabulator {
|
|
917
918
|
setSheetData: (lookup: string | SpreadsheetComponent, data: unknown[][]) => void;
|
|
918
|
-
setGroupBy: (groups: GroupArg) => void;
|
|
919
|
+
setGroupBy: (groups: GroupArg | false) => void;
|
|
919
920
|
setGroupHeader: (values: Options['groupHeader']) => void;
|
|
920
921
|
setGroupLoadMoreMeta: (meta: GroupLoadMoreMeta | undefined) => void;
|
|
921
922
|
setGroupStartOpen: (values: Options['groupStartOpen']) => void;
|
|
@@ -1323,6 +1324,13 @@ export interface OptionsRowGrouping {
|
|
|
1323
1324
|
groupHeader?: ((value: any, count: number, data: any, group: IGroupComponent) => string) | Array<(value: any, count: number, data: any, group: IGroupComponent) => string>;
|
|
1324
1325
|
/** When true, displays the item count in the group header. */
|
|
1325
1326
|
groupHeaderCount?: boolean;
|
|
1327
|
+
/**
|
|
1328
|
+
* When true, the default group header reuses the grouped column's `formatter`
|
|
1329
|
+
* (e.g. composite avatar + name) to render the header value instead of plain
|
|
1330
|
+
* text. Defaults to false so existing grouped tables keep plain-text headers.
|
|
1331
|
+
* Ignored when a custom `groupHeader` function is supplied.
|
|
1332
|
+
*/
|
|
1333
|
+
groupHeaderUseFormatter?: boolean;
|
|
1326
1334
|
/** Indentation in pixels applied per group level. Defaults to 10. */
|
|
1327
1335
|
groupIndent?: number;
|
|
1328
1336
|
/** When printing you may want to apply a different group header from the one usually used in the table. You can now do this using the groupHeaderPrint table option, which takes the same inputs as the standard groupHeader property. */
|
|
@@ -2394,6 +2402,7 @@ export interface StarRatingParams {
|
|
|
2394
2402
|
}
|
|
2395
2403
|
export interface RowSelectionParams {
|
|
2396
2404
|
rowRange?: RowRangeLookup;
|
|
2405
|
+
disabled?: (rowData: Record<string, unknown>) => boolean;
|
|
2397
2406
|
}
|
|
2398
2407
|
export interface ToggleSwitchParams {
|
|
2399
2408
|
size?: number;
|
|
@@ -3155,6 +3164,31 @@ export type IconFormatterParams = {
|
|
|
3155
3164
|
* @property {Record<string, string>} [style] - Inline styles applied via Object.assign on the host style.
|
|
3156
3165
|
* @property {string} [unitsFormat] - d, d-h, d-h-m, d-h-m-s, h, h-m, h-m-s, m, m-s, s (cx-format-time units-format).
|
|
3157
3166
|
*/
|
|
3167
|
+
export type AvatarFormatterParams = {
|
|
3168
|
+
/** Initials to show when no image is available (1–2 characters). */
|
|
3169
|
+
initials?: string;
|
|
3170
|
+
/** Accessible label for the avatar. */
|
|
3171
|
+
label?: string;
|
|
3172
|
+
/** The shape of the avatar. */
|
|
3173
|
+
shape?: 'circle' | 'rounded' | 'square';
|
|
3174
|
+
/** CSS size override, e.g. '20px' or '2rem'. Defaults to '2rem'. */
|
|
3175
|
+
size?: string;
|
|
3176
|
+
};
|
|
3177
|
+
export type DateFormatterParams = {
|
|
3178
|
+
weekday?: FormatDateWeekday;
|
|
3179
|
+
era?: FormatDateEra;
|
|
3180
|
+
year?: FormatDateYear;
|
|
3181
|
+
month?: FormatDateMonth;
|
|
3182
|
+
day?: FormatDateDay;
|
|
3183
|
+
hour?: FormatDateHour;
|
|
3184
|
+
minute?: FormatDateMinute;
|
|
3185
|
+
second?: FormatDateSecond;
|
|
3186
|
+
timeZoneName?: FormatDateTimeZoneName;
|
|
3187
|
+
timeZone?: string;
|
|
3188
|
+
hourFormat?: FormatDateTimeZoneHour;
|
|
3189
|
+
/** When true, removes the locale separator (e.g. " at " in en-US) between date and time parts. */
|
|
3190
|
+
noDatetimeSeparator?: boolean;
|
|
3191
|
+
};
|
|
3158
3192
|
export type TimeFormatterParams = {
|
|
3159
3193
|
color?: string;
|
|
3160
3194
|
fontSize?: string;
|
|
@@ -3262,24 +3296,9 @@ export type DiffFormatterParams = {
|
|
|
3262
3296
|
/** Separator used when joining array values. Defaults to `', '`. */
|
|
3263
3297
|
arraySeparator?: string;
|
|
3264
3298
|
};
|
|
3265
|
-
export
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
}
|
|
3270
|
-
export type TableDropdownFilterData = {
|
|
3271
|
-
field: string;
|
|
3272
|
-
id: string;
|
|
3273
|
-
label: string;
|
|
3274
|
-
defaultOption?: string;
|
|
3275
|
-
options: TableDropdownFilterDataOption[];
|
|
3276
|
-
};
|
|
3277
|
-
export type SavedSearchItem = {
|
|
3278
|
-
recordID: string;
|
|
3279
|
-
name: string;
|
|
3280
|
-
};
|
|
3281
|
-
export type SavedSearchAPIResponse = {
|
|
3282
|
-
items: SavedSearchItem[];
|
|
3283
|
-
totalCount: number;
|
|
3284
|
-
};
|
|
3299
|
+
export declare enum DateFilterCompareFormat {
|
|
3300
|
+
IsoDate = "iso-date",
|
|
3301
|
+
IsoDateTime = "iso-datetime",
|
|
3302
|
+
Timestamp = "timestamp"
|
|
3303
|
+
}
|
|
3285
3304
|
export {};
|
|
@@ -65,6 +65,13 @@ export declare class LocalizeController<UserTranslation extends Translation = De
|
|
|
65
65
|
languageName(language: string): string;
|
|
66
66
|
/** Outputs a localized date in the specified format. */
|
|
67
67
|
date(dateToFormat: Date | string, options?: Intl.DateTimeFormatOptions): string;
|
|
68
|
+
/**
|
|
69
|
+
* Outputs a localized date/time without the locale connector literal
|
|
70
|
+
* (e.g. " at " in en-US) that Intl.DateTimeFormat inserts between date and
|
|
71
|
+
* time parts when both are present. Uses formatToParts() and replaces the
|
|
72
|
+
* connector literal with a plain space.
|
|
73
|
+
*/
|
|
74
|
+
dateWithoutConnector(dateToFormat: Date | string, options?: Intl.DateTimeFormatOptions): string;
|
|
68
75
|
/** Outputs a localized number in the specified format. */
|
|
69
76
|
number(numberToFormat: number | string, options?: Intl.NumberFormatOptions): string;
|
|
70
77
|
/** Outputs a localized time in relative format. */
|