@cloudscape-design/components 3.0.836 → 3.0.838
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/app-layout/utils/use-drawers.d.ts.map +1 -1
- package/app-layout/utils/use-drawers.js +40 -51
- package/app-layout/utils/use-drawers.js.map +1 -1
- package/cards/index.d.ts.map +1 -1
- package/cards/index.js +1 -0
- package/cards/index.js.map +1 -1
- package/collection-preferences/index.d.ts.map +1 -1
- package/collection-preferences/index.js +2 -1
- package/collection-preferences/index.js.map +1 -1
- package/collection-preferences/interfaces.d.ts +15 -8
- package/collection-preferences/interfaces.d.ts.map +1 -1
- package/collection-preferences/interfaces.js.map +1 -1
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +6 -3
- package/container/internal.js.map +1 -1
- package/container/styles.css.js +31 -30
- package/container/styles.scoped.css +59 -56
- package/container/styles.selectors.js +31 -30
- package/container/test-classes/styles.css.js +6 -0
- package/container/test-classes/styles.scoped.css +7 -0
- package/container/test-classes/styles.selectors.js +7 -0
- package/date-range-picker/index.d.ts.map +1 -1
- package/date-range-picker/index.js +23 -17
- package/date-range-picker/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/date-time/format-date-time-with-offset.d.ts +9 -0
- package/internal/utils/date-time/format-date-time-with-offset.d.ts.map +1 -0
- package/internal/utils/date-time/format-date-time-with-offset.js +17 -0
- package/internal/utils/date-time/format-date-time-with-offset.js.map +1 -0
- package/internal/utils/date-time/index.d.ts +1 -1
- package/internal/utils/date-time/index.d.ts.map +1 -1
- package/internal/utils/date-time/index.js +1 -1
- package/internal/utils/date-time/index.js.map +1 -1
- package/package.json +1 -1
- package/table/body-cell/disabled-inline-editor.d.ts +1 -1
- package/table/body-cell/disabled-inline-editor.d.ts.map +1 -1
- package/table/body-cell/disabled-inline-editor.js +2 -2
- package/table/body-cell/disabled-inline-editor.js.map +1 -1
- package/table/body-cell/index.d.ts +1 -5
- package/table/body-cell/index.d.ts.map +1 -1
- package/table/body-cell/index.js +11 -13
- package/table/body-cell/index.js.map +1 -1
- package/table/body-cell/td-element.d.ts +6 -2
- package/table/body-cell/td-element.d.ts.map +1 -1
- package/table/body-cell/td-element.js +5 -2
- package/table/body-cell/td-element.js.map +1 -1
- package/table/header-cell/index.d.ts +5 -2
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +2 -2
- package/table/header-cell/index.js.map +1 -1
- package/table/header-cell/th-element.d.ts +8 -4
- package/table/header-cell/th-element.d.ts.map +1 -1
- package/table/header-cell/th-element.js +5 -2
- package/table/header-cell/th-element.js.map +1 -1
- package/table/index.d.ts.map +1 -1
- package/table/index.js +2 -0
- package/table/index.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +6 -8
- package/table/internal.js.map +1 -1
- package/table/progressive-loading/items-loader.d.ts +1 -2
- package/table/progressive-loading/items-loader.d.ts.map +1 -1
- package/table/progressive-loading/items-loader.js.map +1 -1
- package/table/progressive-loading/loader-cell.d.ts +7 -0
- package/table/progressive-loading/loader-cell.d.ts.map +1 -0
- package/table/progressive-loading/loader-cell.js +11 -0
- package/table/progressive-loading/loader-cell.js.map +1 -0
- package/table/selection/selection-cell.d.ts +18 -0
- package/table/selection/selection-cell.d.ts.map +1 -0
- package/table/selection/selection-cell.js +23 -0
- package/table/selection/selection-cell.js.map +1 -0
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js +16 -18
- package/table/thead.js.map +1 -1
- package/test-utils/dom/expandable-section/index.js +11 -10
- package/test-utils/dom/expandable-section/index.js.map +1 -1
- package/test-utils/dom/index.d.ts +1343 -0
- package/test-utils/dom/index.js +237 -0
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/selectors/expandable-section/index.js +11 -10
- package/test-utils/selectors/expandable-section/index.js.map +1 -1
- package/test-utils/selectors/index.d.ts +1185 -0
- package/test-utils/selectors/index.js +237 -0
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/internal/utils/date-time/format-date-range.d.ts +0 -13
- package/internal/utils/date-time/format-date-range.d.ts.map +0 -1
- package/internal/utils/date-time/format-date-range.js +0 -36
- package/internal/utils/date-time/format-date-range.js.map +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DateRangePickerProps } from '../../../date-range-picker/interfaces';
|
|
2
|
-
export declare function formatDateRange({ startDate, endDate, timeOffset, hideTimeOffset, format, locale, }: {
|
|
3
|
-
startDate: string;
|
|
4
|
-
endDate: string;
|
|
5
|
-
hideTimeOffset?: boolean;
|
|
6
|
-
timeOffset: {
|
|
7
|
-
startDate?: number;
|
|
8
|
-
endDate?: number;
|
|
9
|
-
};
|
|
10
|
-
format: DateRangePickerProps.AbsoluteFormat;
|
|
11
|
-
locale?: string;
|
|
12
|
-
}): string;
|
|
13
|
-
//# sourceMappingURL=format-date-range.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-date-range.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-range.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAK7E,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,OAAO,EACP,UAAU,EACV,cAAc,EACd,MAAM,EACN,MAAM,GACP,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,MAAM,EAAE,oBAAoB,CAAC,cAAc,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAqBT"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import formatDateIso from './format-date-iso';
|
|
4
|
-
import formatDateLocalized from './format-date-localized';
|
|
5
|
-
import { isIsoDateOnly } from './is-iso-date-only';
|
|
6
|
-
export function formatDateRange({ startDate, endDate, timeOffset, hideTimeOffset, format, locale, }) {
|
|
7
|
-
const isDateOnly = isIsoDateOnly(startDate) && isIsoDateOnly(endDate);
|
|
8
|
-
return (formatDate({
|
|
9
|
-
date: startDate,
|
|
10
|
-
format,
|
|
11
|
-
hideTimeOffset,
|
|
12
|
-
isDateOnly,
|
|
13
|
-
timeOffset: timeOffset.startDate,
|
|
14
|
-
locale,
|
|
15
|
-
}) +
|
|
16
|
-
' — ' +
|
|
17
|
-
formatDate({
|
|
18
|
-
date: endDate,
|
|
19
|
-
format,
|
|
20
|
-
hideTimeOffset,
|
|
21
|
-
isDateOnly,
|
|
22
|
-
timeOffset: timeOffset.endDate,
|
|
23
|
-
locale,
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
function formatDate({ date, format, hideTimeOffset, isDateOnly, timeOffset, locale, }) {
|
|
27
|
-
switch (format) {
|
|
28
|
-
case 'long-localized': {
|
|
29
|
-
return formatDateLocalized({ date, hideTimeOffset, isDateOnly, locale, timeOffset });
|
|
30
|
-
}
|
|
31
|
-
default: {
|
|
32
|
-
return formatDateIso({ date, hideTimeOffset, isDateOnly, timeOffset });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=format-date-range.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-date-range.js","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-range.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAGtC,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,mBAAmB,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,UAAU,eAAe,CAAC,EAC9B,SAAS,EACT,OAAO,EACP,UAAU,EACV,cAAc,EACd,MAAM,EACN,MAAM,GAQP;IACC,MAAM,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;IACtE,OAAO,CACL,UAAU,CAAC;QACT,IAAI,EAAE,SAAS;QACf,MAAM;QACN,cAAc;QACd,UAAU;QACV,UAAU,EAAE,UAAU,CAAC,SAAS;QAChC,MAAM;KACP,CAAC;QACF,KAAK;QACL,UAAU,CAAC;YACT,IAAI,EAAE,OAAO;YACb,MAAM;YACN,cAAc;YACd,UAAU;YACV,UAAU,EAAE,UAAU,CAAC,OAAO;YAC9B,MAAM;SACP,CAAC,CACH,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAClB,IAAI,EACJ,MAAM,EACN,cAAc,EACd,UAAU,EACV,UAAU,EACV,MAAM,GAQP;IACC,QAAQ,MAAM,EAAE;QACd,KAAK,gBAAgB,CAAC,CAAC;YACrB,OAAO,mBAAmB,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;SACtF;QACD,OAAO,CAAC,CAAC;YACP,OAAO,aAAa,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;SACxE;KACF;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { DateRangePickerProps } from '../../../date-range-picker/interfaces';\nimport formatDateIso from './format-date-iso';\nimport formatDateLocalized from './format-date-localized';\nimport { isIsoDateOnly } from './is-iso-date-only';\n\nexport function formatDateRange({\n startDate,\n endDate,\n timeOffset,\n hideTimeOffset,\n format,\n locale,\n}: {\n startDate: string;\n endDate: string;\n hideTimeOffset?: boolean;\n timeOffset: { startDate?: number; endDate?: number };\n format: DateRangePickerProps.AbsoluteFormat;\n locale?: string;\n}): string {\n const isDateOnly = isIsoDateOnly(startDate) && isIsoDateOnly(endDate);\n return (\n formatDate({\n date: startDate,\n format,\n hideTimeOffset,\n isDateOnly,\n timeOffset: timeOffset.startDate,\n locale,\n }) +\n ' — ' +\n formatDate({\n date: endDate,\n format,\n hideTimeOffset,\n isDateOnly,\n timeOffset: timeOffset.endDate,\n locale,\n })\n );\n}\n\nfunction formatDate({\n date,\n format,\n hideTimeOffset,\n isDateOnly,\n timeOffset,\n locale,\n}: {\n date: string;\n format: DateRangePickerProps.AbsoluteFormat;\n hideTimeOffset?: boolean;\n isDateOnly: boolean;\n timeOffset?: number;\n locale?: string;\n}) {\n switch (format) {\n case 'long-localized': {\n return formatDateLocalized({ date, hideTimeOffset, isDateOnly, locale, timeOffset });\n }\n default: {\n return formatDateIso({ date, hideTimeOffset, isDateOnly, timeOffset });\n }\n }\n}\n"]}
|