@sebgroup/green-core 2.23.0 → 2.24.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/components/datepicker/datepicker.component.js +7 -4
- package/components/datepicker/datepicker.styles.js +1 -1
- package/components/pagination/pagination.component.d.ts +4 -0
- package/components/pagination/pagination.component.js +9 -1
- package/components/table/table.component.d.ts +12 -0
- package/components/table/table.component.js +48 -3
- package/components/table/table.imports.d.ts +2 -2
- package/components/table/table.imports.js +2 -0
- package/components/table/table.styles.js +3 -3
- package/custom-elements.json +238 -149
- package/gds-element.js +1 -1
- package/generated/react/index.d.ts +1 -1
- package/generated/react/index.js +1 -1
- package/generated/react/pagination/index.d.ts +1 -0
- package/generated/react/table/index.d.ts +3 -0
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -15,6 +15,7 @@ import { repeat } from "lit/directives/repeat.js";
|
|
|
15
15
|
import { until } from "lit/directives/until.js";
|
|
16
16
|
import { when } from "lit/directives/when.js";
|
|
17
17
|
import { isSameDay } from "date-fns";
|
|
18
|
+
import lastDayOfMonth from "date-fns/lastDayOfMonth";
|
|
18
19
|
import { GdsButton } from "../../components/button/button.component.js";
|
|
19
20
|
import { GdsDropdown } from "../../components/dropdown/dropdown.component.js";
|
|
20
21
|
import { GdsFlex } from "../../components/flex/flex.component.js";
|
|
@@ -192,11 +193,13 @@ let Datepicker = class extends GdsFormControlElement {
|
|
|
192
193
|
});
|
|
193
194
|
__privateAdd(this, _handleSpinnerChange, (val, name) => {
|
|
194
195
|
__privateGet(this, _spinnerState)[name] = val;
|
|
195
|
-
const newDate = /* @__PURE__ */ new Date();
|
|
196
|
-
newDate.setFullYear(parseInt(__privateGet(this, _spinnerState).year));
|
|
197
|
-
newDate.setMonth(parseInt(__privateGet(this, _spinnerState).month) - 1);
|
|
198
|
-
newDate.setDate(parseInt(__privateGet(this, _spinnerState).day));
|
|
196
|
+
const newDate = /* @__PURE__ */ new Date("0000-01-01");
|
|
199
197
|
newDate.setUTCHours(this.utcHours, 0, 0, 0);
|
|
198
|
+
newDate.setUTCFullYear(parseInt(__privateGet(this, _spinnerState).year));
|
|
199
|
+
newDate.setUTCMonth(parseInt(__privateGet(this, _spinnerState).month) - 1);
|
|
200
|
+
const lastOfMonth = lastDayOfMonth(newDate).getDate();
|
|
201
|
+
const setDay = lastOfMonth < parseInt(__privateGet(this, _spinnerState).day) ? lastOfMonth : parseInt(__privateGet(this, _spinnerState).day);
|
|
202
|
+
newDate.setUTCDate(isNaN(setDay) ? 1 : setDay);
|
|
200
203
|
if (newDate.toString() === "Invalid Date") return;
|
|
201
204
|
this.value = newDate;
|
|
202
205
|
__privateMethod(this, _Datepicker_instances, dispatchChangeEvent_fn).call(this);
|
|
@@ -63,6 +63,10 @@ export declare class GdsPagination extends GdsPagination_base {
|
|
|
63
63
|
* Enables first and last button
|
|
64
64
|
*/
|
|
65
65
|
jump: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Hide options
|
|
68
|
+
*/
|
|
69
|
+
hideOptions: boolean;
|
|
66
70
|
/**
|
|
67
71
|
* Controls density mode on pagination
|
|
68
72
|
* Accepts: `comfortable`, `compact`, `spacious`
|
|
@@ -77,6 +77,7 @@ let GdsPagination = class extends withMarginProps(
|
|
|
77
77
|
this.total = 0;
|
|
78
78
|
this.options = [5, 10, 25, 50];
|
|
79
79
|
this.jump = false;
|
|
80
|
+
this.hideOptions = false;
|
|
80
81
|
this.density = "comfortable";
|
|
81
82
|
this.label = "";
|
|
82
83
|
this._isMobile = false;
|
|
@@ -295,7 +296,7 @@ renderPageSizeOption_fn = function(size) {
|
|
|
295
296
|
`;
|
|
296
297
|
};
|
|
297
298
|
renderPageSizeMenu_fn = function() {
|
|
298
|
-
if (this._isMobile) return null;
|
|
299
|
+
if (this._isMobile || this.hideOptions) return null;
|
|
299
300
|
const rowsLabel = `${msg("Rows per page")}, ${this.rows} ${msg("selected")}`;
|
|
300
301
|
return html`
|
|
301
302
|
<gds-flex align-items="center" gap="s">
|
|
@@ -394,6 +395,13 @@ __decorateClass([
|
|
|
394
395
|
__decorateClass([
|
|
395
396
|
property({ type: Boolean })
|
|
396
397
|
], GdsPagination.prototype, "jump", 2);
|
|
398
|
+
__decorateClass([
|
|
399
|
+
property({
|
|
400
|
+
attribute: "hide-options",
|
|
401
|
+
type: Boolean,
|
|
402
|
+
reflect: false
|
|
403
|
+
})
|
|
404
|
+
], GdsPagination.prototype, "hideOptions", 2);
|
|
397
405
|
__decorateClass([
|
|
398
406
|
property({ reflect: false })
|
|
399
407
|
], GdsPagination.prototype, "density", 2);
|
|
@@ -19,6 +19,18 @@ import * as Types from './table.types';
|
|
|
19
19
|
export declare class GdsTable<T extends Types.Row = Types.Row> extends GdsElement {
|
|
20
20
|
#private;
|
|
21
21
|
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
22
|
+
/**
|
|
23
|
+
* The main headline text displayed at the top of the table.
|
|
24
|
+
*/
|
|
25
|
+
headline?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The HTML tag to use for the headline (e.g., 'h1', 'h2', etc.).
|
|
28
|
+
*/
|
|
29
|
+
headlineTag: string;
|
|
30
|
+
/**
|
|
31
|
+
* A brief description or summary displayed below the headline.
|
|
32
|
+
*/
|
|
33
|
+
summary?: string;
|
|
22
34
|
/**
|
|
23
35
|
* Configurable options for rows per page.
|
|
24
36
|
* Accepts: number array (e.g., `[5, 10, 20, 50, 100]`)
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__privateMethod,
|
|
6
6
|
__privateSet
|
|
7
7
|
} from "../../chunks/chunk.QU3DSPNU.js";
|
|
8
|
-
var _cache, _cacheDuration, _templateCache, _GdsTable_instances, Density_get, hasSelection_get, isAllSelected_get, isPartialSelection_get, getCacheKey_fn, isCacheValid_fn, loadData_fn, getSlotContent_fn, renderCell_fn, renderCellContent_fn, renderSortIcon_fn, hasHeaderContent_fn, renderHeaderControls_fn, renderColumnHeader_fn, renderActionsHeader_fn, renderSelectableHeader_fn, renderColumnHeaders_fn, renderTableHeader_fn, renderTableCell_fn, renderSelectableCell_fn, renderRowCells_fn, renderActionsCell_fn, renderTableRow_fn, renderCheckbox_fn, renderSkeletonCell_fn, renderSkeletonRow_fn, renderTableBody_fn, renderTable_fn, renderErrorState_fn, renderEmptyState_fn, renderFooter_fn, handleSearch_fn, handleSearchClear_fn, handleSort_fn, handlePageChange_fn, handlePageSizeChange_fn, handleColumnVisibility_fn, handleSelectAll_fn, handleRowSelect_fn, selectAllInternal_fn, clearSelectionInternal_fn, emitSelectionChange_fn, initializeScrollTracking_fn, updateVerticalScrollState_fn, updateHorizontalScrollState_fn;
|
|
8
|
+
var _cache, _cacheDuration, _templateCache, _GdsTable_instances, Density_get, hasSelection_get, isAllSelected_get, isPartialSelection_get, getCacheKey_fn, isCacheValid_fn, loadData_fn, getSlotContent_fn, renderCell_fn, renderCellContent_fn, renderSortIcon_fn, hasHeaderContent_fn, renderHeaderControls_fn, renderColumnHeader_fn, renderActionsHeader_fn, renderSelectableHeader_fn, renderColumnHeaders_fn, renderTableHeader_fn, renderTableCell_fn, renderSelectableCell_fn, renderRowCells_fn, renderActionsCell_fn, renderTableRow_fn, renderCheckbox_fn, renderSkeletonCell_fn, renderSkeletonRow_fn, renderTableBody_fn, renderTable_fn, renderErrorState_fn, renderEmptyState_fn, renderFooter_fn, renderHeadline_fn, handleSearch_fn, handleSearchClear_fn, handleSort_fn, handlePageChange_fn, handlePageSizeChange_fn, handleColumnVisibility_fn, handleSelectAll_fn, handleRowSelect_fn, selectAllInternal_fn, clearSelectionInternal_fn, emitSelectionChange_fn, initializeScrollTracking_fn, updateVerticalScrollState_fn, updateHorizontalScrollState_fn;
|
|
9
9
|
import { localized, msg } from "@lit/localize";
|
|
10
10
|
import { property, state } from "lit/decorators.js";
|
|
11
11
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -30,6 +30,7 @@ let GdsTable = class extends GdsElement {
|
|
|
30
30
|
__privateAdd(this, _cache, {});
|
|
31
31
|
__privateAdd(this, _cacheDuration, 5 * 60 * 1e3);
|
|
32
32
|
__privateAdd(this, _templateCache, /* @__PURE__ */ new Map());
|
|
33
|
+
this.headlineTag = "h2";
|
|
33
34
|
this.options = [5, 10, 20, 50, 100];
|
|
34
35
|
this.page = 1;
|
|
35
36
|
this.rows = 10;
|
|
@@ -91,6 +92,7 @@ let GdsTable = class extends GdsElement {
|
|
|
91
92
|
return html`
|
|
92
93
|
<div class="${classMap(classes)}">
|
|
93
94
|
${[
|
|
95
|
+
__privateMethod(this, _GdsTable_instances, renderHeadline_fn).call(this),
|
|
94
96
|
__privateMethod(this, _GdsTable_instances, renderHeaderControls_fn).call(this),
|
|
95
97
|
when(
|
|
96
98
|
this._error,
|
|
@@ -742,7 +744,7 @@ renderTable_fn = function() {
|
|
|
742
744
|
loading: this._loading,
|
|
743
745
|
loaded: !this._loading && !this._loaded
|
|
744
746
|
});
|
|
745
|
-
const caption = `${msg("Data table with")} ${this._total} ${msg("rows")}`;
|
|
747
|
+
const caption = `${this.summary}, ${msg("Data table with")} ${this._total} ${msg("rows")}`;
|
|
746
748
|
return html`
|
|
747
749
|
<gds-card
|
|
748
750
|
variant="${this.variant}"
|
|
@@ -817,7 +819,7 @@ renderFooter_fn = function() {
|
|
|
817
819
|
if (this.plain || this._total < 1) return null;
|
|
818
820
|
const start = (this._view.page - 1) * this._view.rows + 1;
|
|
819
821
|
const end = Math.min(this._view.page * this._view.rows, this._total);
|
|
820
|
-
const summaryString = `${start}
|
|
822
|
+
const summaryString = `${start}\u2013${end} ${msg("of")} ${this._total}`;
|
|
821
823
|
return html`
|
|
822
824
|
<gds-pagination
|
|
823
825
|
.page=${this._view.page}
|
|
@@ -833,6 +835,36 @@ renderFooter_fn = function() {
|
|
|
833
835
|
</gds-pagination>
|
|
834
836
|
`;
|
|
835
837
|
};
|
|
838
|
+
renderHeadline_fn = function() {
|
|
839
|
+
if (this.plain) return null;
|
|
840
|
+
if (this.headline || this.summary) {
|
|
841
|
+
return html`
|
|
842
|
+
<gds-flex flex-direction="column" gap="4xs">
|
|
843
|
+
<gds-text
|
|
844
|
+
tag="${this.headlineTag}"
|
|
845
|
+
font="heading-s"
|
|
846
|
+
text-wrap="balance"
|
|
847
|
+
max-width="80ch"
|
|
848
|
+
>
|
|
849
|
+
${this.headline}
|
|
850
|
+
</gds-text>
|
|
851
|
+
<gds-text
|
|
852
|
+
tag="p"
|
|
853
|
+
font=${this.density === "compact" ? "body-regular-s" : "body-regular-m"}
|
|
854
|
+
text-wrap="balance"
|
|
855
|
+
max-width="80ch"
|
|
856
|
+
>
|
|
857
|
+
${this.summary}
|
|
858
|
+
</gds-text>
|
|
859
|
+
</gds-flex>
|
|
860
|
+
${when(
|
|
861
|
+
this.searchable || this.settings,
|
|
862
|
+
() => html`<gds-divider color="subtle-01"></gds-divider>`,
|
|
863
|
+
() => html``
|
|
864
|
+
)}
|
|
865
|
+
`;
|
|
866
|
+
}
|
|
867
|
+
};
|
|
836
868
|
handleSearch_fn = async function(e) {
|
|
837
869
|
const input = e.target;
|
|
838
870
|
this._view = {
|
|
@@ -988,6 +1020,19 @@ updateHorizontalScrollState_fn = function(container) {
|
|
|
988
1020
|
}
|
|
989
1021
|
};
|
|
990
1022
|
GdsTable.styles = Table.Styles;
|
|
1023
|
+
__decorateClass([
|
|
1024
|
+
property()
|
|
1025
|
+
], GdsTable.prototype, "headline", 2);
|
|
1026
|
+
__decorateClass([
|
|
1027
|
+
property({
|
|
1028
|
+
attribute: "headline-tag",
|
|
1029
|
+
type: String,
|
|
1030
|
+
reflect: true
|
|
1031
|
+
})
|
|
1032
|
+
], GdsTable.prototype, "headlineTag", 2);
|
|
1033
|
+
__decorateClass([
|
|
1034
|
+
property()
|
|
1035
|
+
], GdsTable.prototype, "summary", 2);
|
|
991
1036
|
__decorateClass([
|
|
992
1037
|
property({ type: Array })
|
|
993
1038
|
], GdsTable.prototype, "options", 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GdsBadge, GdsButton, GdsContextMenu, GdsDropdown, GdsFlex, GdsImg, GdsInput, GdsLink, GdsMenuItem, IconCrossSmall } from '../../pure';
|
|
1
|
+
import { GdsBadge, GdsButton, GdsContextMenu, GdsDivider, GdsDropdown, GdsFlex, GdsImg, GdsInput, GdsLink, GdsMenuItem, IconCrossSmall } from '../../pure';
|
|
2
2
|
import { GdsPagination } from '../pagination/pagination.component';
|
|
3
3
|
export { checkboxToggle as Checkbox } from '../../shared-styles/rbcb-toggle.template';
|
|
4
4
|
export { accountsFormats as FormatAccount, dateTimeFormats as FormatDate, numberFormats as FormatNumber, } from '../formatted-text/formatters';
|
|
5
5
|
export declare const Styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
6
|
-
export declare const Dependencies: (typeof GdsMenuItem | typeof GdsButton | typeof IconCrossSmall | typeof GdsFlex | typeof GdsBadge | typeof GdsLink | typeof GdsContextMenu | typeof GdsDropdown | typeof GdsImg | typeof GdsPagination | typeof GdsInput)[];
|
|
6
|
+
export declare const Dependencies: (typeof GdsMenuItem | typeof GdsButton | typeof IconCrossSmall | typeof GdsFlex | typeof GdsBadge | typeof GdsLink | typeof GdsContextMenu | typeof GdsDropdown | typeof GdsDivider | typeof GdsImg | typeof GdsPagination | typeof GdsInput)[];
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
GdsButton,
|
|
5
5
|
GdsCard,
|
|
6
6
|
GdsContextMenu,
|
|
7
|
+
GdsDivider,
|
|
7
8
|
GdsDropdown,
|
|
8
9
|
GdsFlex,
|
|
9
10
|
GdsImg,
|
|
@@ -34,6 +35,7 @@ const Styles = [tokens, checkboxStyles, TableStyles];
|
|
|
34
35
|
const Dependencies = [
|
|
35
36
|
GdsButton,
|
|
36
37
|
GdsCard,
|
|
38
|
+
GdsDivider,
|
|
37
39
|
GdsImg,
|
|
38
40
|
GdsContextMenu,
|
|
39
41
|
GdsMenuItem,
|
|
@@ -34,7 +34,7 @@ const TableStyles = css`
|
|
|
34
34
|
--table-header-padding-x: var(--gds-sys-space-m);
|
|
35
35
|
--table-row-min-height: var(--gds-sys-space-4xl);
|
|
36
36
|
--table-font-size: var(--gds-sys-text-detail-book-s);
|
|
37
|
-
--table-gap: var(--gds-sys-space-
|
|
37
|
+
--table-gap: var(--gds-sys-space-l);
|
|
38
38
|
--table-border-spacing: 0 var(--gds-sys-space-4xs);
|
|
39
39
|
--table-data-padding: var(--gds-sys-space-3xs) var(--gds-sys-space-2xs);
|
|
40
40
|
}
|
|
@@ -47,7 +47,7 @@ const TableStyles = css`
|
|
|
47
47
|
--table-header-padding-x: var(--gds-sys-space-l);
|
|
48
48
|
--table-row-min-height: var(--gds-sys-space-5xl);
|
|
49
49
|
--table-font-size: var(--gds-sys-text-detail-book-m);
|
|
50
|
-
--table-gap: var(--gds-sys-space-
|
|
50
|
+
--table-gap: var(--gds-sys-space-xl);
|
|
51
51
|
--table-border-spacing: 0 var(--gds-sys-space-3xs);
|
|
52
52
|
--table-data-padding: var(--gds-sys-space-3xs) var(--gds-sys-space-xs);
|
|
53
53
|
}
|
|
@@ -268,7 +268,6 @@ const TableStyles = css`
|
|
|
268
268
|
|
|
269
269
|
/* Striped */
|
|
270
270
|
.striped tbody tr:not(.selected, :hover):nth-child(even) td {
|
|
271
|
-
/* background-color: var(--gds-sys-color-l2-neutral-01); */
|
|
272
271
|
background-color: var(--_table-row-striped);
|
|
273
272
|
}
|
|
274
273
|
|
|
@@ -277,6 +276,7 @@ const TableStyles = css`
|
|
|
277
276
|
}
|
|
278
277
|
|
|
279
278
|
/* Header & Footer Layout */
|
|
279
|
+
|
|
280
280
|
.header {
|
|
281
281
|
display: flex;
|
|
282
282
|
justify-content: space-between;
|
package/custom-elements.json
CHANGED
|
@@ -11180,7 +11180,7 @@
|
|
|
11180
11180
|
{
|
|
11181
11181
|
"kind": "variable",
|
|
11182
11182
|
"name": "style",
|
|
11183
|
-
"default": "css` @layer base, reset; @layer base { #calendar-button::part(_button) { outline-offset: -1px; } .spinners { display: flex; align-items: center; justify-content: flex-start; inline-size: 12ch; gap: var(--gds-sys-space-5xs); font: var(--gds-sys-text-detail-regular-m); } :host([size='small']) .spinners { font: var(--gds-sys-text-detail-regular-s); } .spinner { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; box-sizing: border-box; outline: none; padding-block: var(--gds-sys-space-4xs); text-transform: uppercase; line-height: 1; text-align: center; padding: var(--gds-sys-space-4xs); margin: calc(-1 * var(--gds-sys-space-4xs)); border-radius: var(--gds-sys-radius-3xs); &:focus
|
|
11183
|
+
"default": "css` @layer base, reset; @layer base { #calendar-button::part(_button) { outline-offset: -1px; } .spinners { display: flex; align-items: center; justify-content: flex-start; inline-size: 12ch; gap: var(--gds-sys-space-5xs); font: var(--gds-sys-text-detail-regular-m); } :host([size='small']) .spinners { font: var(--gds-sys-text-detail-regular-s); } .spinner { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; box-sizing: border-box; outline: none; padding-block: var(--gds-sys-space-4xs); text-transform: uppercase; line-height: 1; text-align: center; padding: var(--gds-sys-space-4xs); margin: calc(-1 * var(--gds-sys-space-4xs)); border-radius: var(--gds-sys-radius-3xs); &:focus { background-color: var(--gds-sys-color-l3-neutral-01); color: var(--gds-sys-color-content-inversed); } } } `"
|
|
11184
11184
|
}
|
|
11185
11185
|
],
|
|
11186
11186
|
"exports": [
|
|
@@ -27054,6 +27054,16 @@
|
|
|
27054
27054
|
"description": "Enables first and last button",
|
|
27055
27055
|
"attribute": "jump"
|
|
27056
27056
|
},
|
|
27057
|
+
{
|
|
27058
|
+
"kind": "field",
|
|
27059
|
+
"name": "hideOptions",
|
|
27060
|
+
"type": {
|
|
27061
|
+
"text": "boolean"
|
|
27062
|
+
},
|
|
27063
|
+
"default": "false",
|
|
27064
|
+
"description": "Hide options",
|
|
27065
|
+
"attribute": "hide-options"
|
|
27066
|
+
},
|
|
27057
27067
|
{
|
|
27058
27068
|
"kind": "field",
|
|
27059
27069
|
"name": "density",
|
|
@@ -27510,6 +27520,15 @@
|
|
|
27510
27520
|
"description": "Enables first and last button",
|
|
27511
27521
|
"fieldName": "jump"
|
|
27512
27522
|
},
|
|
27523
|
+
{
|
|
27524
|
+
"name": "hide-options",
|
|
27525
|
+
"type": {
|
|
27526
|
+
"text": "boolean"
|
|
27527
|
+
},
|
|
27528
|
+
"default": "false",
|
|
27529
|
+
"description": "Hide options",
|
|
27530
|
+
"fieldName": "hideOptions"
|
|
27531
|
+
},
|
|
27513
27532
|
{
|
|
27514
27533
|
"name": "density",
|
|
27515
27534
|
"type": {
|
|
@@ -27594,7 +27613,7 @@
|
|
|
27594
27613
|
"type": {
|
|
27595
27614
|
"text": "Story"
|
|
27596
27615
|
},
|
|
27597
|
-
"default": "{ args: { page: 1, rows: 10, total: 2000, options: [5, 10, 20, 50, 100], }, render: (args) => { const handlePageChange = (e: CustomEvent) => { args.page = e.detail.page document.querySelector('[data-page]')!.innerHTML = String(args.page) document .querySelector('[data-pagination]')! .setAttribute('page', String(args.page)) } const handleRowsChange = (e: CustomEvent) => { args.rows = e.detail.rows args.page = 1 document.querySelector('[data-rows]')!.innerHTML = String(args.rows) document.querySelector('[data-page]')!.innerHTML = '1' document.querySelector('[data-pagination]')!.setAttribute('page', '1') document .querySelector('[data-pagination]')! .setAttribute('rows', String(args.rows)) } return html` <gds-flex flex-direction=\"column\" gap=\"2xl\"> <gds-card variant=\"secondary\" flex-direction=\"row\" gap=\"4xl\"> <gds-flex gap=\"s\"> <gds-text tag=\"strong\">Page:</gds-text> <gds-text data-page>${args.page}</gds-text> </gds-flex> <gds-flex gap=\"s\"> <gds-text tag=\"strong\">Rows:</gds-text> <gds-text data-rows>${args.rows}</gds-text> </gds-flex> <gds-flex gap=\"s\"> <gds-text tag=\"strong\">Total:</gds-text> <gds-text>${args.total}</gds-text> </gds-flex> </gds-card> <gds-pagination data-pagination page=\"${args.page}\" rows=\"${args.rows}\" .total=${args.total} .options=${args.options} @gds-page-change=${handlePageChange} @gds-rows-change=${handleRowsChange} ></gds-pagination> </gds-flex> ` }, }"
|
|
27616
|
+
"default": "{ args: { page: 1, rows: 10, total: 2000, options: [5, 10, 20, 50, 100], hideOptions: false, }, render: (args) => { const handlePageChange = (e: CustomEvent) => { args.page = e.detail.page document.querySelector('[data-page]')!.innerHTML = String(args.page) document .querySelector('[data-pagination]')! .setAttribute('page', String(args.page)) } const handleRowsChange = (e: CustomEvent) => { args.rows = e.detail.rows args.page = 1 document.querySelector('[data-rows]')!.innerHTML = String(args.rows) document.querySelector('[data-page]')!.innerHTML = '1' document.querySelector('[data-pagination]')!.setAttribute('page', '1') document .querySelector('[data-pagination]')! .setAttribute('rows', String(args.rows)) } return html` <gds-flex flex-direction=\"column\" gap=\"2xl\"> <gds-card variant=\"secondary\" flex-direction=\"row\" gap=\"4xl\"> <gds-flex gap=\"s\"> <gds-text tag=\"strong\">Page:</gds-text> <gds-text data-page>${args.page}</gds-text> </gds-flex> <gds-flex gap=\"s\"> <gds-text tag=\"strong\">Rows:</gds-text> <gds-text data-rows>${args.rows}</gds-text> </gds-flex> <gds-flex gap=\"s\"> <gds-text tag=\"strong\">Total:</gds-text> <gds-text>${args.total}</gds-text> </gds-flex> </gds-card> <gds-pagination data-pagination page=\"${args.page}\" rows=\"${args.rows}\" .total=${args.total} .options=${args.options} ?hide-options=\"${args.hideOptions}\" @gds-page-change=${handlePageChange} @gds-rows-change=${handleRowsChange} ></gds-pagination> </gds-flex> ` }, }"
|
|
27598
27617
|
}
|
|
27599
27618
|
],
|
|
27600
27619
|
"exports": [
|
|
@@ -32626,6 +32645,35 @@
|
|
|
32626
32645
|
}
|
|
32627
32646
|
],
|
|
32628
32647
|
"members": [
|
|
32648
|
+
{
|
|
32649
|
+
"kind": "field",
|
|
32650
|
+
"name": "headline",
|
|
32651
|
+
"type": {
|
|
32652
|
+
"text": "string | undefined"
|
|
32653
|
+
},
|
|
32654
|
+
"description": "The main headline text displayed at the top of the table.",
|
|
32655
|
+
"attribute": "headline"
|
|
32656
|
+
},
|
|
32657
|
+
{
|
|
32658
|
+
"kind": "field",
|
|
32659
|
+
"name": "headlineTag",
|
|
32660
|
+
"type": {
|
|
32661
|
+
"text": "string"
|
|
32662
|
+
},
|
|
32663
|
+
"default": "'h2'",
|
|
32664
|
+
"description": "The HTML tag to use for the headline (e.g., 'h1', 'h2', etc.).",
|
|
32665
|
+
"attribute": "headline-tag",
|
|
32666
|
+
"reflects": true
|
|
32667
|
+
},
|
|
32668
|
+
{
|
|
32669
|
+
"kind": "field",
|
|
32670
|
+
"name": "summary",
|
|
32671
|
+
"type": {
|
|
32672
|
+
"text": "string | undefined"
|
|
32673
|
+
},
|
|
32674
|
+
"description": "A brief description or summary displayed below the headline.",
|
|
32675
|
+
"attribute": "summary"
|
|
32676
|
+
},
|
|
32629
32677
|
{
|
|
32630
32678
|
"kind": "field",
|
|
32631
32679
|
"name": "options",
|
|
@@ -33024,6 +33072,31 @@
|
|
|
33024
33072
|
}
|
|
33025
33073
|
],
|
|
33026
33074
|
"attributes": [
|
|
33075
|
+
{
|
|
33076
|
+
"name": "headline",
|
|
33077
|
+
"type": {
|
|
33078
|
+
"text": "string | undefined"
|
|
33079
|
+
},
|
|
33080
|
+
"description": "The main headline text displayed at the top of the table.",
|
|
33081
|
+
"fieldName": "headline"
|
|
33082
|
+
},
|
|
33083
|
+
{
|
|
33084
|
+
"name": "headline-tag",
|
|
33085
|
+
"type": {
|
|
33086
|
+
"text": "string"
|
|
33087
|
+
},
|
|
33088
|
+
"default": "'h2'",
|
|
33089
|
+
"description": "The HTML tag to use for the headline (e.g., 'h1', 'h2', etc.).",
|
|
33090
|
+
"fieldName": "headlineTag"
|
|
33091
|
+
},
|
|
33092
|
+
{
|
|
33093
|
+
"name": "summary",
|
|
33094
|
+
"type": {
|
|
33095
|
+
"text": "string | undefined"
|
|
33096
|
+
},
|
|
33097
|
+
"description": "A brief description or summary displayed below the headline.",
|
|
33098
|
+
"fieldName": "summary"
|
|
33099
|
+
},
|
|
33027
33100
|
{
|
|
33028
33101
|
"name": "options",
|
|
33029
33102
|
"type": {
|
|
@@ -33217,7 +33290,7 @@
|
|
|
33217
33290
|
"type": {
|
|
33218
33291
|
"text": "array"
|
|
33219
33292
|
},
|
|
33220
|
-
"default": "[ GdsButton, GdsCard, GdsImg, GdsContextMenu, GdsMenuItem, GdsDropdown, GdsInput, GdsPagination, GdsText, GdsBadge, GdsLink, GdsFlex, IconCopy, IconCrossSmall, IconMinusSmall, IconMagnifyingGlass, IconSort, IconSortDown, IconSortUp, IconDotGridOneHorizontal, ]"
|
|
33293
|
+
"default": "[ GdsButton, GdsCard, GdsDivider, GdsImg, GdsContextMenu, GdsMenuItem, GdsDropdown, GdsInput, GdsPagination, GdsText, GdsBadge, GdsLink, GdsFlex, IconCopy, IconCrossSmall, IconMinusSmall, IconMagnifyingGlass, IconSort, IconSortDown, IconSortUp, IconDotGridOneHorizontal, ]"
|
|
33221
33294
|
}
|
|
33222
33295
|
],
|
|
33223
33296
|
"exports": [
|
|
@@ -33387,6 +33460,14 @@
|
|
|
33387
33460
|
},
|
|
33388
33461
|
"default": "{ args: { columns: Feedback.Columns, actions: Feedback.MultipleActions, data: Feedback.Data, }, parameters: { docs: { description: { story: ` The \\`actions\\` property defines row interactions shown as the last cell of each row. Supports all cell types (button, link, context-menu, badge, etc.) and can contain multiple actions. Column content justification can be controlled via the \\`justify\\` property. `, }, }, }, render: (args) => html` <gds-table plain .rows=${2} .page=${2} .columns=\"${args.columns}\" .data=\"${args.data}\" .actions=\"${args.actions}\" > <template name=\"actions-activate\"> <gds-icon-pin></gds-icon-pin> </template> <template name=\"actions-delete\"> <gds-icon-cross-small></gds-icon-cross-small> </template> </gds-table> <br /> <br /> <br /> <gds-table plain .rows=${2} .page=${2} .columns=\"${args.columns}\" .data=\"${args.data}\" .actions=\"${Feedback.ActionContextMenu}\" > </gds-table> <br /> <br /> <br /> <gds-table plain .rows=${2} .page=${2} .columns=\"${args.columns}\" .data=\"${args.data}\" .actions=\"${Feedback.ActionLink}\" > </gds-table> `, }"
|
|
33389
33462
|
},
|
|
33463
|
+
{
|
|
33464
|
+
"kind": "variable",
|
|
33465
|
+
"name": "Headline",
|
|
33466
|
+
"type": {
|
|
33467
|
+
"text": "Story"
|
|
33468
|
+
},
|
|
33469
|
+
"default": "{ args: { columns: Users.Columns, data: Users.Data, headline: 'User Management', headlineTag: 'h2', summary: 'Overview of all users in the system', }, parameters: { docs: { description: { story: ` When the \\`headline\\` and \\`summary\\` properties are set, they will be displayed at the top of the table. You can change the \\`headline-tag\\` to any valid heading tag (e.g., 'h1-h5') to customize the semantic structure without altering the appearance. `, }, }, }, render: (args) => html` <gds-table headline=\"${args.headline}\" headline-tag=\"${args.headlineTag}\" summary=\"${args.summary}\" .columns=\"${args.columns}\" .data=\"${args.data}\" > <template name=\"email-copy\"> <gds-icon-copy></gds-icon-copy> </template> <template name=\"download-image\"> <gds-icon-cloud-download slot=\"trail\"></gds-icon-cloud-download> </template> </gds-table> `, }"
|
|
33470
|
+
},
|
|
33390
33471
|
{
|
|
33391
33472
|
"kind": "variable",
|
|
33392
33473
|
"name": "Plain",
|
|
@@ -33409,7 +33490,7 @@
|
|
|
33409
33490
|
"type": {
|
|
33410
33491
|
"text": "Story"
|
|
33411
33492
|
},
|
|
33412
|
-
"default": "{ args: { columns: Users.Columns, data: Users.Data, density: 'compact', }, parameters: { docs: { description: { story: ` The \\`density\\` property allows customizing the table's visual spacing with these options: - **\\`comfortable\\`** (Default) · Standard spacing for balanced readability - **\\`compact\\`** · Reduced spacing to maximize information density - **\\`spacious\\`** · Increased spacing for enhanced readability `, }, }, }, render: (args) => html` <gds-table .density=\"${args.density}\" .columns=\"${args.columns}\" .data=\"${args.data}\" > <template name=\"email-copy\"> <gds-icon-copy></gds-icon-copy> </template> <template name=\"download-image\"> <gds-icon-cloud-download slot=\"trail\"></gds-icon-cloud-download> </template> </gds-table> `, }"
|
|
33493
|
+
"default": "{ args: { columns: Users.Columns, data: Users.Data, density: 'compact', headline: 'User Management', summary: 'Overview of all users in the system', }, parameters: { docs: { description: { story: ` The \\`density\\` property allows customizing the table's visual spacing with these options: - **\\`comfortable\\`** (Default) · Standard spacing for balanced readability - **\\`compact\\`** · Reduced spacing to maximize information density - **\\`spacious\\`** · Increased spacing for enhanced readability `, }, }, }, render: (args) => html` <gds-table headline=\"${args.headline}\" summary=\"${args.summary}\" searchable settings .density=\"${args.density}\" .columns=\"${args.columns}\" .data=\"${args.data}\" > <template name=\"email-copy\"> <gds-icon-copy></gds-icon-copy> </template> <template name=\"download-image\"> <gds-icon-cloud-download slot=\"trail\"></gds-icon-cloud-download> </template> </gds-table> `, }"
|
|
33413
33494
|
},
|
|
33414
33495
|
{
|
|
33415
33496
|
"kind": "variable",
|
|
@@ -33525,6 +33606,14 @@
|
|
|
33525
33606
|
"module": "src/components/table/table.stories.ts"
|
|
33526
33607
|
}
|
|
33527
33608
|
},
|
|
33609
|
+
{
|
|
33610
|
+
"kind": "js",
|
|
33611
|
+
"name": "Headline",
|
|
33612
|
+
"declaration": {
|
|
33613
|
+
"name": "Headline",
|
|
33614
|
+
"module": "src/components/table/table.stories.ts"
|
|
33615
|
+
}
|
|
33616
|
+
},
|
|
33528
33617
|
{
|
|
33529
33618
|
"kind": "js",
|
|
33530
33619
|
"name": "Plain",
|
|
@@ -33598,7 +33687,7 @@
|
|
|
33598
33687
|
{
|
|
33599
33688
|
"kind": "variable",
|
|
33600
33689
|
"name": "TableStyles",
|
|
33601
|
-
"default": "css` /* Host & Container */ :host { display: block; font: var(--gds-sys-text-detail-book-s); color: var(--gds-sys-color-content-neutral-01); text-align: left; --_table-height: 80vh; --_table-border-width: var(--gds-sys-space-5xs); --_table-border-color: var(--gds-sys-color-border-subtle-01); } /* Density Modes */ /* Compact density */ .table.compact { --table-cell-padding-y: var(--gds-sys-space-xs); --table-cell-padding-x: var(--gds-sys-space-s); --table-header-padding-y: var(--gds-sys-space-xs); --table-header-padding-x: var(--gds-sys-space-s); --table-row-min-height: var(--gds-sys-space-xl); --table-font-size: var(--gds-sys-text-detail-book-xs); --table-gap: var(--gds-sys-space-m); --table-border-spacing: 0 var(--gds-sys-space-5xs); --table-data-padding: var(--gds-sys-space-5xs) var(--gds-sys-space-4xs); } /* Comfortable default */ .table.comfortable { --table-cell-padding-y: var(--gds-sys-space-s); --table-cell-padding-x: var(--gds-sys-space-m); --table-header-padding-y: var(--gds-sys-space-s); --table-header-padding-x: var(--gds-sys-space-m); --table-row-min-height: var(--gds-sys-space-4xl); --table-font-size: var(--gds-sys-text-detail-book-s); --table-gap: var(--gds-sys-space-xl); --table-border-spacing: 0 var(--gds-sys-space-4xs); --table-data-padding: var(--gds-sys-space-3xs) var(--gds-sys-space-2xs); } /* Spacious density */ .table.spacious { --table-cell-padding-y: var(--gds-sys-space-l); --table-cell-padding-x: var(--gds-sys-space-l); --table-header-padding-y: var(--gds-sys-space-l); --table-header-padding-x: var(--gds-sys-space-l); --table-row-min-height: var(--gds-sys-space-5xl); --table-font-size: var(--gds-sys-text-detail-book-m); --table-gap: var(--gds-sys-space-2xl); --table-border-spacing: 0 var(--gds-sys-space-3xs); --table-data-padding: var(--gds-sys-space-3xs) var(--gds-sys-space-xs); } /* Secondary and Tertiary */ .data.variant-secondary, .data.variant-tertiary { --_table-header-bg: var(--gds-sys-color-l2-neutral-01); --_table-header-hover: var(--gds-sys-color-l3-neutral-02); --_table-header-active: var(--gds-sys-color-l3-neutral-03); --_table-row-hover: var(--gds-sys-color-l2-neutral-01); --_table-row-selected-hover: var(--gds-sys-color-l3-neutral-03); --_table-row-striped: var(--gds-sys-color-l2-neutral-01); } /* Primary variant */ .data.variant-primary { --_table-header-bg: var(--gds-sys-color-l2-neutral-02); --_table-header-hover: var(--gds-sys-color-l3-neutral-02); --_table-header-active: var(--gds-sys-color-l3-neutral-03); --_table-row-hover: color-mix( in srgb, var(--gds-sys-color-l3-neutral-02), var(--gds-sys-color-state-neutral-01) ); --_table-row-selected-hover: var(--gds-sys-color-l3-neutral-03); --_table-row-striped: var(--gds-sys-color-l2-neutral-01); } /* Apply density variables */ .table { display: flex; flex-direction: column; gap: var(--table-gap); font: var(--table-font-size); width: 100%; } /* Container that enables horizontal scroll */ .data { width: 100%; overflow-x: auto; overflow-y: auto; max-height: var(--_table-height); box-sizing: border-box; padding: var(--table-data-padding); position: relative; border-radius: var(--gds-sys-radius-m); } .data:focus { outline: none; } .table-card { outline-color: transparent; outline-offset: var(--gds-sys-space-4xs); outline-style: solid; outline-width: var(--gds-sys-space-4xs); } .table-card:has(.data:focus-visible) { outline-color: var(--gds-sys-color-content-neutral-01); } .table-card:has(.data:focus-within:not(:focus-visible)) { outline-color: transparent; } table { width: max-content; min-width: 100%; table-layout: auto; border: none; border-collapse: separate; border-spacing: var(--table-border-spacing); } tbody td { font-weight: normal; padding-block: var(--table-cell-padding-y); padding-inline: var(--table-cell-padding-x); } thead tr th:first-child, tbody tr:hover td:first-child, tbody tr.selected td:first-child, .striped tbody tr td:first-child { border-top-left-radius: var(--gds-sys-radius-s); border-bottom-left-radius: var(--gds-sys-radius-s); } thead tr th:last-child, tbody tr:hover td:last-child, tbody tr.selected td:last-child, .striped tbody tr td:last-child { border-top-right-radius: var(--gds-sys-radius-s); border-bottom-right-radius: var(--gds-sys-radius-s); } /* Table Header */ thead tr th { padding-block: var(--gds-sys-space-3xs); background: var(--_table-header-bg); } thead th.sortable { cursor: pointer; user-select: none; } /* Column header content layout */ .column-header { display: flex; align-items: center; position: relative; justify-content: space-between; min-height: var(--gds-sys-space-l); gap: var(--table-gap); padding: calc(var(--table-cell-padding-y) / 2) var(--table-cell-padding-x); border-radius: var(--gds-sys-radius-xs); transition: all var(--gds-sys-motion-duration-fast); } th.sortable .column-header:hover { background-color: var(--_table-header-hover); } th.sortable:active .column-header { background-color: var(--_table-header-active); } .column-label { font-weight: var(--gds-sys-text-weight-book); } .sort-icon { display: flex; align-items: center; justify-content: center; transition-property: opacity; transition-duration: var(--gds-sys-motion-duration-fast); transition-timing-function: var(--gds-sys-motion-easing-ease); opacity: 0; } @media (hover: hover) and (min-width: 768px) { thead th.sortable:hover:not(.sorted) .sort-icon { opacity: 0.8; } } thead th.sorted .sort-icon { opacity: 1; } /* Table Body */ tbody tr td { border-top-style: solid; border-top-width: var(--_table-border-width); border-top-color: var(--_table-border-color); } tbody tr.loading { opacity: 0.3; pointer-events: none; } tbody tr.loading:not(:first-child) td { border-color: var(--gds-sys-color-border-subtle-02); } /* Row Selection */ .checkbox-cell { min-width: var(--gds-sys-space-l); width: var(--gds-sys-space-l); max-width: var(--gds-sys-space-l); padding: var(--table-cell-padding-y) var(--table-cell-padding-x); } tbody tr:hover td, tbody tr.selected td, tbody tr:first-child td { border-color: transparent; } tbody tr:hover + tr td, tbody tr.selected + tr td { border-color: transparent; } tbody tr.selected:last-child td { border-bottom-color: transparent; } tbody tr.selected { background-color: var(--gds-sys-color-l3-neutral-02); } @media (hover: hover) and (min-width: 768px) { tbody tr.selected:hover { background-color: var(--_table-row-selected-hover); } tbody tr:hover:not(.selected) { background-color: var(--_table-row-hover); } } tbody tr:hover, tbody tr:hover + tr { border-color: transparent; } /* Striped */ .striped tbody tr:not(.selected, :hover):nth-child(even) td { /* background-color: var(--gds-sys-color-l2-neutral-01); */ background-color: var(--_table-row-striped); } .striped tbody tr td { border-color: transparent; } /* Header & Footer Layout */ .header { display: flex; justify-content: space-between; transition-property: opacity, translate; transition-duration: var(--gds-sys-motion-duration-fast); transition-timing-function: var(--gds-sys-motion-easing-ease); @starting-style { opacity: 0; translate: 0 -2px; } } /* Shared layout for header and footer sections */ .header .lead, .header .trail { display: flex; align-items: center; gap: calc(var(--table-gap) * 0.8); width: max-content; } /* Cell Content & Alignment */ .cell-content { width: 100%; height: 100%; display: flex; align-items: center; gap: 10px; } /* Wrapping utilities */ td.wrap .cell-content { white-space: normal; word-wrap: break-word; overflow-wrap: break-word; } td.wrap { max-width: var(--cell-width); } /* Justify utilities */ .justify-start .cell-content { text-align: left; justify-content: start; } .justify-center .cell-content { text-align: center; justify-content: center; } .justify-space-between .cell-content { text-align: left; justify-content: space-between; } .justify-end .cell-content { text-align: right; justify-content: flex-end; } .sortable.justify-end .column-header { flex-direction: row-reverse; } th.actions { padding-inline: 0; } th.actions.justify-end .column-header { justify-content: flex-end; } /* Align utilities */ td { height: 100%; } .align-start { vertical-align: top; } .align-end { vertical-align: bottom; } .align-center { vertical-align: middle; } .align-start .cell-content { align-items: start; } .align-center .cell-content { align-items: center; } .align-stretch .cell-content { align-items: stretch; } .align-end .cell-content { align-items: end; } /* Responsive Design */ @media (max-width: 760px) { .responsive.data { display: contents; } .responsive thead { position: sticky; top: var(--gds-sys-space-s); z-index: 2; border-radius: var(--gds-sys-radius-s); } .responsive thead { display: none; } .responsive tbody { display: flex; flex-direction: column; gap: var(--table-gap); } .responsive tbody tr { display: flex; flex-direction: column; padding: var(--table-cell-padding-x); border: var(--gds-sys-space-5xs) solid var(--gds-sys-color-border-subtle-01); border-radius: var(--gds-sys-space-s); margin: 0; } .responsive tbody tr:hover, .responsive tbody tr:hover + tr { border-color: var(--gds-sys-color-border-subtle-01); } .responsive tr.selected { border-color: transparent; } .responsive td { width: 100%; max-width: 100%; box-sizing: border-box; display: flex; justify-content: flex-start; align-items: center; padding: var(--gds-sys-space-xs) 0; border: none; } .responsive td .column-label { text-align: left; margin-right: auto; } .responsive td .cell-content { flex: 1; } .responsive tr:hover, .responsive tr td:hover { background: none; } } /* Medium screens: input and dropdown side by side */ /* Medium screens: side by side layout */ @media (max-width: 760px) and (min-width: 480px) { .header { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'input dropdown' 'lead trail'; gap: calc(var(--table-gap) / 2); } .header .lead [gds-element='gds-input'] { grid-area: input; } .header .trail [gds-element='gds-dropdown'] { grid-area: dropdown; } .header .lead ::slotted(*:not([gds-element='gds-input'])) { grid-area: lead; } .header .trail ::slotted(*:not([gds-element='gds-dropdown'])) { grid-area: trail; } .header .lead, .header .trail { display: contents; } } /* Small screens: fully stacked */ @media (max-width: 479px) { .header { display: grid; grid-template-columns: 1fr; grid-template-areas: 'input' 'dropdown' 'lead' 'trail'; gap: calc(var(--table-gap) / 2); } .header .lead [gds-element='gds-input'] { grid-area: input; } .header .trail [gds-element='gds-dropdown'] { grid-area: dropdown; } .header .lead ::slotted(*:not([gds-element='gds-input'])) { grid-area: lead; } .header .trail ::slotted(*:not([gds-element='gds-dropdown'])) { grid-area: trail; } .header .lead, .header .trail { display: contents; } } /* Skeleton Loading State */ .skeleton { display: inline-block; background: linear-gradient( 90deg, var(--gds-sys-color-l3-neutral-01) 25%, var(--gds-sys-color-l2-neutral-01) 50%, var(--gds-sys-color-l3-neutral-01) 75% ); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; border-radius: var(--gds-sys-space-max); opacity: 0.1; } @keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* Skeleton elements */ .skeleton-text { height: 14px; width: 80%; min-width: 60px; } .skeleton-checkbox { height: 18px; width: 18px; border-radius: var(--gds-sys-radius-3xs); } .skeleton-action { height: 24px; width: 24px; border-radius: var(--gds-sys-radius-max); } /* Skeleton row styling */ .skeleton-row { opacity: 1; pointer-events: none; } .skeleton-row td { padding: var(--table-cell-padding-y) var(--table-cell-padding-x); } /* Different skeleton text widths for more natural look */ .skeleton-row:nth-child(odd) .skeleton-text { width: 70%; } .skeleton-row:nth-child(3n) .skeleton-text { width: 90%; } .skeleton-row:nth-child(4n) .skeleton-text { width: 60%; } /* Visually hidden */ .visually-hidden { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; } /* Scroll driven animation */ @supports (animation-timeline: scroll()) { @media (prefers-reduced-motion: no-preference) { tbody tr { animation-name: ROW_ANIMATION_VERTICAL, ROW_ANIMATION_VERTICAL; animation-fill-mode: both; animation-timing-function: ease-in-out; animation-direction: normal, reverse; animation-timeline: view(block); animation-range: entry -40px, exit -40px; } @keyframes ROW_ANIMATION_VERTICAL { 0% { opacity: 0; filter: blur(12px); translate: 0 12px; } } thead { position: sticky; top: 4px; z-index: 10; transition: box-shadow 200ms ease; border-radius: var(--gds-sys-radius-s); will-change: transform; } thead { background-color: var(--gds-sys-color-l1-neutral-01); } .data.scrolled thead { box-shadow: var(--gds-sys-shadow-l-01), var(--gds-sys-shadow-l-02), inset 0 -4px 6px var(--gds-sys-color-l1-neutral-01); backdrop-filter: blur(8px); background: color-mix( in srgb, var(--gds-sys-color-l2-neutral-01), transparent 30% ); } @media (prefers-reduced-transparency: no-preference) { .data.scrolled thead tr th { background: transparent; } } /* Horizontal scroll */ @property --_start-fade { syntax: '<length>'; inherits: false; initial-value: 0; } @property --_end-fade { syntax: '<length>'; inherits: false; initial-value: 0; } @keyframes scroll-fade { 0% { --_start-fade: 0; } 10%, 100% { --_start-fade: var(--gds-sys-space-4xl); } 0%, 90% { --_end-fade: var(--gds-sys-space-4xl); } 100% { --_end-fade: 0; } } .data { overflow-x: auto; mask: linear-gradient( to right, #0000, #ffff var(--_start-fade) calc(100% - var(--_end-fade)), #0000 ); animation: scroll-fade; animation-timeline: --scroll-fade; scroll-timeline: --scroll-fade x; } } } @media (max-width: 760px) { .responsive, .responsive tbody tr { animation: none; } } @supports not (animation-timeline: scroll()) { tbody tr { will-change: opacity, filter, translate; transition: all 242ms cubic-bezier(0.22, 0.61, 0.36, 1); @starting-style { opacity: 0; filter: blur(20px); translate: 0 10px; } } } /* Scrollbar */ .data { --_scrollbar-color-thumb: var(--gds-sys-color-content-neutral-02); --_scrollbar-color-track: var(--gds-sys-color-l3-neutral-02); --_scrollbar-width: var(--gds-sys-space-2xs); } @supports (scrollbar-width: auto) { .data { scrollbar-color: var(--_scrollbar-color-thumb) transparent; scrollbar-width: var(--_scrollbar-width); } } @supports selector(::-webkit-scrollbar) { .data::-webkit-scrollbar { width: var(--_scrollbar-width); height: var(--_scrollbar-width); } .data::-webkit-scrollbar-track { background: transparent; } .data::-webkit-scrollbar-thumb { background: var(--_scrollbar-color-thumb); border-radius: var(--gds-sys-radius-max); } } /* Reduced motion */ @media (prefers-reduced-motion: reduce) { tbody tr, tbody td .cell-content, thead th .column-header, .sort-icon, .column-header, .header { transition: none; animation: none; } } `"
|
|
33690
|
+
"default": "css` /* Host & Container */ :host { display: block; font: var(--gds-sys-text-detail-book-s); color: var(--gds-sys-color-content-neutral-01); text-align: left; --_table-height: 80vh; --_table-border-width: var(--gds-sys-space-5xs); --_table-border-color: var(--gds-sys-color-border-subtle-01); } /* Density Modes */ /* Compact density */ .table.compact { --table-cell-padding-y: var(--gds-sys-space-xs); --table-cell-padding-x: var(--gds-sys-space-s); --table-header-padding-y: var(--gds-sys-space-xs); --table-header-padding-x: var(--gds-sys-space-s); --table-row-min-height: var(--gds-sys-space-xl); --table-font-size: var(--gds-sys-text-detail-book-xs); --table-gap: var(--gds-sys-space-m); --table-border-spacing: 0 var(--gds-sys-space-5xs); --table-data-padding: var(--gds-sys-space-5xs) var(--gds-sys-space-4xs); } /* Comfortable default */ .table.comfortable { --table-cell-padding-y: var(--gds-sys-space-s); --table-cell-padding-x: var(--gds-sys-space-m); --table-header-padding-y: var(--gds-sys-space-s); --table-header-padding-x: var(--gds-sys-space-m); --table-row-min-height: var(--gds-sys-space-4xl); --table-font-size: var(--gds-sys-text-detail-book-s); --table-gap: var(--gds-sys-space-l); --table-border-spacing: 0 var(--gds-sys-space-4xs); --table-data-padding: var(--gds-sys-space-3xs) var(--gds-sys-space-2xs); } /* Spacious density */ .table.spacious { --table-cell-padding-y: var(--gds-sys-space-l); --table-cell-padding-x: var(--gds-sys-space-l); --table-header-padding-y: var(--gds-sys-space-l); --table-header-padding-x: var(--gds-sys-space-l); --table-row-min-height: var(--gds-sys-space-5xl); --table-font-size: var(--gds-sys-text-detail-book-m); --table-gap: var(--gds-sys-space-xl); --table-border-spacing: 0 var(--gds-sys-space-3xs); --table-data-padding: var(--gds-sys-space-3xs) var(--gds-sys-space-xs); } /* Secondary and Tertiary */ .data.variant-secondary, .data.variant-tertiary { --_table-header-bg: var(--gds-sys-color-l2-neutral-01); --_table-header-hover: var(--gds-sys-color-l3-neutral-02); --_table-header-active: var(--gds-sys-color-l3-neutral-03); --_table-row-hover: var(--gds-sys-color-l2-neutral-01); --_table-row-selected-hover: var(--gds-sys-color-l3-neutral-03); --_table-row-striped: var(--gds-sys-color-l2-neutral-01); } /* Primary variant */ .data.variant-primary { --_table-header-bg: var(--gds-sys-color-l2-neutral-02); --_table-header-hover: var(--gds-sys-color-l3-neutral-02); --_table-header-active: var(--gds-sys-color-l3-neutral-03); --_table-row-hover: color-mix( in srgb, var(--gds-sys-color-l3-neutral-02), var(--gds-sys-color-state-neutral-01) ); --_table-row-selected-hover: var(--gds-sys-color-l3-neutral-03); --_table-row-striped: var(--gds-sys-color-l2-neutral-01); } /* Apply density variables */ .table { display: flex; flex-direction: column; gap: var(--table-gap); font: var(--table-font-size); width: 100%; } /* Container that enables horizontal scroll */ .data { width: 100%; overflow-x: auto; overflow-y: auto; max-height: var(--_table-height); box-sizing: border-box; padding: var(--table-data-padding); position: relative; border-radius: var(--gds-sys-radius-m); } .data:focus { outline: none; } .table-card { outline-color: transparent; outline-offset: var(--gds-sys-space-4xs); outline-style: solid; outline-width: var(--gds-sys-space-4xs); } .table-card:has(.data:focus-visible) { outline-color: var(--gds-sys-color-content-neutral-01); } .table-card:has(.data:focus-within:not(:focus-visible)) { outline-color: transparent; } table { width: max-content; min-width: 100%; table-layout: auto; border: none; border-collapse: separate; border-spacing: var(--table-border-spacing); } tbody td { font-weight: normal; padding-block: var(--table-cell-padding-y); padding-inline: var(--table-cell-padding-x); } thead tr th:first-child, tbody tr:hover td:first-child, tbody tr.selected td:first-child, .striped tbody tr td:first-child { border-top-left-radius: var(--gds-sys-radius-s); border-bottom-left-radius: var(--gds-sys-radius-s); } thead tr th:last-child, tbody tr:hover td:last-child, tbody tr.selected td:last-child, .striped tbody tr td:last-child { border-top-right-radius: var(--gds-sys-radius-s); border-bottom-right-radius: var(--gds-sys-radius-s); } /* Table Header */ thead tr th { padding-block: var(--gds-sys-space-3xs); background: var(--_table-header-bg); } thead th.sortable { cursor: pointer; user-select: none; } /* Column header content layout */ .column-header { display: flex; align-items: center; position: relative; justify-content: space-between; min-height: var(--gds-sys-space-l); gap: var(--table-gap); padding: calc(var(--table-cell-padding-y) / 2) var(--table-cell-padding-x); border-radius: var(--gds-sys-radius-xs); transition: all var(--gds-sys-motion-duration-fast); } th.sortable .column-header:hover { background-color: var(--_table-header-hover); } th.sortable:active .column-header { background-color: var(--_table-header-active); } .column-label { font-weight: var(--gds-sys-text-weight-book); } .sort-icon { display: flex; align-items: center; justify-content: center; transition-property: opacity; transition-duration: var(--gds-sys-motion-duration-fast); transition-timing-function: var(--gds-sys-motion-easing-ease); opacity: 0; } @media (hover: hover) and (min-width: 768px) { thead th.sortable:hover:not(.sorted) .sort-icon { opacity: 0.8; } } thead th.sorted .sort-icon { opacity: 1; } /* Table Body */ tbody tr td { border-top-style: solid; border-top-width: var(--_table-border-width); border-top-color: var(--_table-border-color); } tbody tr.loading { opacity: 0.3; pointer-events: none; } tbody tr.loading:not(:first-child) td { border-color: var(--gds-sys-color-border-subtle-02); } /* Row Selection */ .checkbox-cell { min-width: var(--gds-sys-space-l); width: var(--gds-sys-space-l); max-width: var(--gds-sys-space-l); padding: var(--table-cell-padding-y) var(--table-cell-padding-x); } tbody tr:hover td, tbody tr.selected td, tbody tr:first-child td { border-color: transparent; } tbody tr:hover + tr td, tbody tr.selected + tr td { border-color: transparent; } tbody tr.selected:last-child td { border-bottom-color: transparent; } tbody tr.selected { background-color: var(--gds-sys-color-l3-neutral-02); } @media (hover: hover) and (min-width: 768px) { tbody tr.selected:hover { background-color: var(--_table-row-selected-hover); } tbody tr:hover:not(.selected) { background-color: var(--_table-row-hover); } } tbody tr:hover, tbody tr:hover + tr { border-color: transparent; } /* Striped */ .striped tbody tr:not(.selected, :hover):nth-child(even) td { background-color: var(--_table-row-striped); } .striped tbody tr td { border-color: transparent; } /* Header & Footer Layout */ .header { display: flex; justify-content: space-between; transition-property: opacity, translate; transition-duration: var(--gds-sys-motion-duration-fast); transition-timing-function: var(--gds-sys-motion-easing-ease); @starting-style { opacity: 0; translate: 0 -2px; } } /* Shared layout for header and footer sections */ .header .lead, .header .trail { display: flex; align-items: center; gap: calc(var(--table-gap) * 0.8); width: max-content; } /* Cell Content & Alignment */ .cell-content { width: 100%; height: 100%; display: flex; align-items: center; gap: 10px; } /* Wrapping utilities */ td.wrap .cell-content { white-space: normal; word-wrap: break-word; overflow-wrap: break-word; } td.wrap { max-width: var(--cell-width); } /* Justify utilities */ .justify-start .cell-content { text-align: left; justify-content: start; } .justify-center .cell-content { text-align: center; justify-content: center; } .justify-space-between .cell-content { text-align: left; justify-content: space-between; } .justify-end .cell-content { text-align: right; justify-content: flex-end; } .sortable.justify-end .column-header { flex-direction: row-reverse; } th.actions { padding-inline: 0; } th.actions.justify-end .column-header { justify-content: flex-end; } /* Align utilities */ td { height: 100%; } .align-start { vertical-align: top; } .align-end { vertical-align: bottom; } .align-center { vertical-align: middle; } .align-start .cell-content { align-items: start; } .align-center .cell-content { align-items: center; } .align-stretch .cell-content { align-items: stretch; } .align-end .cell-content { align-items: end; } /* Responsive Design */ @media (max-width: 760px) { .responsive.data { display: contents; } .responsive thead { position: sticky; top: var(--gds-sys-space-s); z-index: 2; border-radius: var(--gds-sys-radius-s); } .responsive thead { display: none; } .responsive tbody { display: flex; flex-direction: column; gap: var(--table-gap); } .responsive tbody tr { display: flex; flex-direction: column; padding: var(--table-cell-padding-x); border: var(--gds-sys-space-5xs) solid var(--gds-sys-color-border-subtle-01); border-radius: var(--gds-sys-space-s); margin: 0; } .responsive tbody tr:hover, .responsive tbody tr:hover + tr { border-color: var(--gds-sys-color-border-subtle-01); } .responsive tr.selected { border-color: transparent; } .responsive td { width: 100%; max-width: 100%; box-sizing: border-box; display: flex; justify-content: flex-start; align-items: center; padding: var(--gds-sys-space-xs) 0; border: none; } .responsive td .column-label { text-align: left; margin-right: auto; } .responsive td .cell-content { flex: 1; } .responsive tr:hover, .responsive tr td:hover { background: none; } } /* Medium screens: input and dropdown side by side */ /* Medium screens: side by side layout */ @media (max-width: 760px) and (min-width: 480px) { .header { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'input dropdown' 'lead trail'; gap: calc(var(--table-gap) / 2); } .header .lead [gds-element='gds-input'] { grid-area: input; } .header .trail [gds-element='gds-dropdown'] { grid-area: dropdown; } .header .lead ::slotted(*:not([gds-element='gds-input'])) { grid-area: lead; } .header .trail ::slotted(*:not([gds-element='gds-dropdown'])) { grid-area: trail; } .header .lead, .header .trail { display: contents; } } /* Small screens: fully stacked */ @media (max-width: 479px) { .header { display: grid; grid-template-columns: 1fr; grid-template-areas: 'input' 'dropdown' 'lead' 'trail'; gap: calc(var(--table-gap) / 2); } .header .lead [gds-element='gds-input'] { grid-area: input; } .header .trail [gds-element='gds-dropdown'] { grid-area: dropdown; } .header .lead ::slotted(*:not([gds-element='gds-input'])) { grid-area: lead; } .header .trail ::slotted(*:not([gds-element='gds-dropdown'])) { grid-area: trail; } .header .lead, .header .trail { display: contents; } } /* Skeleton Loading State */ .skeleton { display: inline-block; background: linear-gradient( 90deg, var(--gds-sys-color-l3-neutral-01) 25%, var(--gds-sys-color-l2-neutral-01) 50%, var(--gds-sys-color-l3-neutral-01) 75% ); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; border-radius: var(--gds-sys-space-max); opacity: 0.1; } @keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* Skeleton elements */ .skeleton-text { height: 14px; width: 80%; min-width: 60px; } .skeleton-checkbox { height: 18px; width: 18px; border-radius: var(--gds-sys-radius-3xs); } .skeleton-action { height: 24px; width: 24px; border-radius: var(--gds-sys-radius-max); } /* Skeleton row styling */ .skeleton-row { opacity: 1; pointer-events: none; } .skeleton-row td { padding: var(--table-cell-padding-y) var(--table-cell-padding-x); } /* Different skeleton text widths for more natural look */ .skeleton-row:nth-child(odd) .skeleton-text { width: 70%; } .skeleton-row:nth-child(3n) .skeleton-text { width: 90%; } .skeleton-row:nth-child(4n) .skeleton-text { width: 60%; } /* Visually hidden */ .visually-hidden { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; } /* Scroll driven animation */ @supports (animation-timeline: scroll()) { @media (prefers-reduced-motion: no-preference) { tbody tr { animation-name: ROW_ANIMATION_VERTICAL, ROW_ANIMATION_VERTICAL; animation-fill-mode: both; animation-timing-function: ease-in-out; animation-direction: normal, reverse; animation-timeline: view(block); animation-range: entry -40px, exit -40px; } @keyframes ROW_ANIMATION_VERTICAL { 0% { opacity: 0; filter: blur(12px); translate: 0 12px; } } thead { position: sticky; top: 4px; z-index: 10; transition: box-shadow 200ms ease; border-radius: var(--gds-sys-radius-s); will-change: transform; } thead { background-color: var(--gds-sys-color-l1-neutral-01); } .data.scrolled thead { box-shadow: var(--gds-sys-shadow-l-01), var(--gds-sys-shadow-l-02), inset 0 -4px 6px var(--gds-sys-color-l1-neutral-01); backdrop-filter: blur(8px); background: color-mix( in srgb, var(--gds-sys-color-l2-neutral-01), transparent 30% ); } @media (prefers-reduced-transparency: no-preference) { .data.scrolled thead tr th { background: transparent; } } /* Horizontal scroll */ @property --_start-fade { syntax: '<length>'; inherits: false; initial-value: 0; } @property --_end-fade { syntax: '<length>'; inherits: false; initial-value: 0; } @keyframes scroll-fade { 0% { --_start-fade: 0; } 10%, 100% { --_start-fade: var(--gds-sys-space-4xl); } 0%, 90% { --_end-fade: var(--gds-sys-space-4xl); } 100% { --_end-fade: 0; } } .data { overflow-x: auto; mask: linear-gradient( to right, #0000, #ffff var(--_start-fade) calc(100% - var(--_end-fade)), #0000 ); animation: scroll-fade; animation-timeline: --scroll-fade; scroll-timeline: --scroll-fade x; } } } @media (max-width: 760px) { .responsive, .responsive tbody tr { animation: none; } } @supports not (animation-timeline: scroll()) { tbody tr { will-change: opacity, filter, translate; transition: all 242ms cubic-bezier(0.22, 0.61, 0.36, 1); @starting-style { opacity: 0; filter: blur(20px); translate: 0 10px; } } } /* Scrollbar */ .data { --_scrollbar-color-thumb: var(--gds-sys-color-content-neutral-02); --_scrollbar-color-track: var(--gds-sys-color-l3-neutral-02); --_scrollbar-width: var(--gds-sys-space-2xs); } @supports (scrollbar-width: auto) { .data { scrollbar-color: var(--_scrollbar-color-thumb) transparent; scrollbar-width: var(--_scrollbar-width); } } @supports selector(::-webkit-scrollbar) { .data::-webkit-scrollbar { width: var(--_scrollbar-width); height: var(--_scrollbar-width); } .data::-webkit-scrollbar-track { background: transparent; } .data::-webkit-scrollbar-thumb { background: var(--_scrollbar-color-thumb); border-radius: var(--gds-sys-radius-max); } } /* Reduced motion */ @media (prefers-reduced-motion: reduce) { tbody tr, tbody td .cell-content, thead th .column-header, .sort-icon, .column-header, .header { transition: none; animation: none; } } `"
|
|
33602
33691
|
}
|
|
33603
33692
|
],
|
|
33604
33693
|
"exports": [
|
|
@@ -224664,7 +224753,7 @@
|
|
|
224664
224753
|
},
|
|
224665
224754
|
{
|
|
224666
224755
|
"kind": "javascript-module",
|
|
224667
|
-
"path": "src/components/sensitive/
|
|
224756
|
+
"path": "src/components/sensitive/number/index.ts",
|
|
224668
224757
|
"declarations": [],
|
|
224669
224758
|
"exports": [
|
|
224670
224759
|
{
|
|
@@ -224672,19 +224761,19 @@
|
|
|
224672
224761
|
"name": "*",
|
|
224673
224762
|
"declaration": {
|
|
224674
224763
|
"name": "*",
|
|
224675
|
-
"module": "src/components/sensitive/
|
|
224764
|
+
"module": "src/components/sensitive/number/sensitive-number"
|
|
224676
224765
|
}
|
|
224677
224766
|
}
|
|
224678
224767
|
]
|
|
224679
224768
|
},
|
|
224680
224769
|
{
|
|
224681
224770
|
"kind": "javascript-module",
|
|
224682
|
-
"path": "src/components/sensitive/
|
|
224771
|
+
"path": "src/components/sensitive/number/sensitive-number.component.ts",
|
|
224683
224772
|
"declarations": [
|
|
224684
224773
|
{
|
|
224685
224774
|
"kind": "class",
|
|
224686
224775
|
"description": "",
|
|
224687
|
-
"name": "
|
|
224776
|
+
"name": "GdsSensitiveNumber",
|
|
224688
224777
|
"members": [
|
|
224689
224778
|
{
|
|
224690
224779
|
"kind": "field",
|
|
@@ -224693,33 +224782,31 @@
|
|
|
224693
224782
|
"text": "boolean"
|
|
224694
224783
|
},
|
|
224695
224784
|
"default": "false",
|
|
224696
|
-
"description": "When true, hides the sensitive
|
|
224785
|
+
"description": "When true, hides the sensitive number.",
|
|
224697
224786
|
"attribute": "hide"
|
|
224698
224787
|
},
|
|
224699
224788
|
{
|
|
224700
224789
|
"kind": "field",
|
|
224701
|
-
"name": "
|
|
224790
|
+
"name": "formattedValue",
|
|
224702
224791
|
"type": {
|
|
224703
|
-
"text": "
|
|
224792
|
+
"text": "string"
|
|
224704
224793
|
},
|
|
224705
|
-
"
|
|
224794
|
+
"readonly": true,
|
|
224706
224795
|
"inheritedFrom": {
|
|
224707
|
-
"name": "
|
|
224708
|
-
"module": "src/components/formatted-text/
|
|
224796
|
+
"name": "GdsFormattedText",
|
|
224797
|
+
"module": "src/components/formatted-text/formatted-text.ts"
|
|
224709
224798
|
}
|
|
224710
224799
|
},
|
|
224711
224800
|
{
|
|
224712
224801
|
"kind": "field",
|
|
224713
|
-
"name": "
|
|
224802
|
+
"name": "value",
|
|
224714
224803
|
"type": {
|
|
224715
|
-
"text": "
|
|
224804
|
+
"text": "number | string | undefined"
|
|
224716
224805
|
},
|
|
224717
|
-
"
|
|
224718
|
-
"description": "Specifies the date format.",
|
|
224719
|
-
"attribute": "format",
|
|
224806
|
+
"description": "The numerical value to display.",
|
|
224720
224807
|
"inheritedFrom": {
|
|
224721
|
-
"name": "
|
|
224722
|
-
"module": "src/components/formatted-text/
|
|
224808
|
+
"name": "GdsFormattedNumber",
|
|
224809
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
224723
224810
|
}
|
|
224724
224811
|
},
|
|
224725
224812
|
{
|
|
@@ -224728,23 +224815,37 @@
|
|
|
224728
224815
|
"type": {
|
|
224729
224816
|
"text": "string | undefined"
|
|
224730
224817
|
},
|
|
224731
|
-
"description": "The locale used for
|
|
224818
|
+
"description": "The locale used for number formatting.",
|
|
224732
224819
|
"attribute": "locale",
|
|
224733
224820
|
"inheritedFrom": {
|
|
224734
|
-
"name": "
|
|
224735
|
-
"module": "src/components/formatted-text/
|
|
224821
|
+
"name": "GdsFormattedNumber",
|
|
224822
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
224736
224823
|
}
|
|
224737
224824
|
},
|
|
224738
224825
|
{
|
|
224739
224826
|
"kind": "field",
|
|
224740
|
-
"name": "
|
|
224827
|
+
"name": "currency",
|
|
224741
224828
|
"type": {
|
|
224742
|
-
"text": "string"
|
|
224829
|
+
"text": "string | undefined"
|
|
224743
224830
|
},
|
|
224744
|
-
"
|
|
224831
|
+
"description": "The currency used when formatting numbers.",
|
|
224832
|
+
"attribute": "currency",
|
|
224745
224833
|
"inheritedFrom": {
|
|
224746
|
-
"name": "
|
|
224747
|
-
"module": "src/components/formatted-text/formatted-
|
|
224834
|
+
"name": "GdsFormattedNumber",
|
|
224835
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
224836
|
+
}
|
|
224837
|
+
},
|
|
224838
|
+
{
|
|
224839
|
+
"kind": "field",
|
|
224840
|
+
"name": "decimals",
|
|
224841
|
+
"type": {
|
|
224842
|
+
"text": "number | undefined"
|
|
224843
|
+
},
|
|
224844
|
+
"description": "The number of decimal places to display.",
|
|
224845
|
+
"attribute": "decimals",
|
|
224846
|
+
"inheritedFrom": {
|
|
224847
|
+
"name": "GdsFormattedNumber",
|
|
224848
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
224748
224849
|
}
|
|
224749
224850
|
},
|
|
224750
224851
|
{
|
|
@@ -225722,32 +225823,56 @@
|
|
|
225722
225823
|
"text": "boolean"
|
|
225723
225824
|
},
|
|
225724
225825
|
"default": "false",
|
|
225725
|
-
"description": "When true, hides the sensitive
|
|
225826
|
+
"description": "When true, hides the sensitive number.",
|
|
225726
225827
|
"fieldName": "hide"
|
|
225727
225828
|
},
|
|
225728
225829
|
{
|
|
225729
|
-
"name": "
|
|
225830
|
+
"name": "locale",
|
|
225730
225831
|
"type": {
|
|
225731
|
-
"text": "
|
|
225832
|
+
"text": "string | undefined"
|
|
225732
225833
|
},
|
|
225733
|
-
"
|
|
225734
|
-
"
|
|
225735
|
-
"fieldName": "format",
|
|
225834
|
+
"description": "The locale used for number formatting.",
|
|
225835
|
+
"fieldName": "locale",
|
|
225736
225836
|
"inheritedFrom": {
|
|
225737
|
-
"name": "
|
|
225738
|
-
"module": "src/components/formatted-text/
|
|
225837
|
+
"name": "GdsFormattedNumber",
|
|
225838
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
225739
225839
|
}
|
|
225740
225840
|
},
|
|
225741
225841
|
{
|
|
225742
|
-
"name": "
|
|
225842
|
+
"name": "currency",
|
|
225743
225843
|
"type": {
|
|
225744
225844
|
"text": "string | undefined"
|
|
225745
225845
|
},
|
|
225746
|
-
"description": "The
|
|
225747
|
-
"fieldName": "
|
|
225846
|
+
"description": "The currency used when formatting numbers.",
|
|
225847
|
+
"fieldName": "currency",
|
|
225748
225848
|
"inheritedFrom": {
|
|
225749
|
-
"name": "
|
|
225750
|
-
"module": "src/components/formatted-text/
|
|
225849
|
+
"name": "GdsFormattedNumber",
|
|
225850
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
225851
|
+
}
|
|
225852
|
+
},
|
|
225853
|
+
{
|
|
225854
|
+
"name": "decimals",
|
|
225855
|
+
"type": {
|
|
225856
|
+
"text": "number | undefined"
|
|
225857
|
+
},
|
|
225858
|
+
"description": "The number of decimal places to display.",
|
|
225859
|
+
"fieldName": "decimals",
|
|
225860
|
+
"inheritedFrom": {
|
|
225861
|
+
"name": "GdsFormattedNumber",
|
|
225862
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
225863
|
+
}
|
|
225864
|
+
},
|
|
225865
|
+
{
|
|
225866
|
+
"name": "format",
|
|
225867
|
+
"type": {
|
|
225868
|
+
"text": "NumberFormats"
|
|
225869
|
+
},
|
|
225870
|
+
"default": "'decimalsAndThousands'",
|
|
225871
|
+
"description": "Specifies the number format.",
|
|
225872
|
+
"fieldName": "format",
|
|
225873
|
+
"inheritedFrom": {
|
|
225874
|
+
"name": "GdsFormattedNumber",
|
|
225875
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
225751
225876
|
}
|
|
225752
225877
|
},
|
|
225753
225878
|
{
|
|
@@ -225791,10 +225916,10 @@
|
|
|
225791
225916
|
}
|
|
225792
225917
|
],
|
|
225793
225918
|
"superclass": {
|
|
225794
|
-
"name": "
|
|
225795
|
-
"module": "/src/components/formatted-text/
|
|
225919
|
+
"name": "GdsFormattedNumber",
|
|
225920
|
+
"module": "/src/components/formatted-text/number/formatted-number.component"
|
|
225796
225921
|
},
|
|
225797
|
-
"tagName": "gds-sensitive-
|
|
225922
|
+
"tagName": "gds-sensitive-number",
|
|
225798
225923
|
"customElement": true,
|
|
225799
225924
|
"events": [
|
|
225800
225925
|
{
|
|
@@ -225833,17 +225958,17 @@
|
|
|
225833
225958
|
"exports": [
|
|
225834
225959
|
{
|
|
225835
225960
|
"kind": "js",
|
|
225836
|
-
"name": "
|
|
225961
|
+
"name": "GdsSensitiveNumber",
|
|
225837
225962
|
"declaration": {
|
|
225838
|
-
"name": "
|
|
225839
|
-
"module": "src/components/sensitive/
|
|
225963
|
+
"name": "GdsSensitiveNumber",
|
|
225964
|
+
"module": "src/components/sensitive/number/sensitive-number.component.ts"
|
|
225840
225965
|
}
|
|
225841
225966
|
}
|
|
225842
225967
|
]
|
|
225843
225968
|
},
|
|
225844
225969
|
{
|
|
225845
225970
|
"kind": "javascript-module",
|
|
225846
|
-
"path": "src/components/sensitive/
|
|
225971
|
+
"path": "src/components/sensitive/number/sensitive-number.stories.ts",
|
|
225847
225972
|
"declarations": [
|
|
225848
225973
|
{
|
|
225849
225974
|
"kind": "variable",
|
|
@@ -225851,8 +225976,8 @@
|
|
|
225851
225976
|
"type": {
|
|
225852
225977
|
"text": "Meta"
|
|
225853
225978
|
},
|
|
225854
|
-
"default": "{ title: 'Components/Sensitive/
|
|
225855
|
-
"description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/
|
|
225979
|
+
"default": "{ title: 'Components/Sensitive/Number', component: 'gds-sensitive-number', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-number'), format: { control: { type: 'select' }, options: Object.keys(numberFormats), }, currency: { type: 'string', }, decimals: { type: 'number', }, }, }",
|
|
225980
|
+
"description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/number)\n\nGdsSensitiveNumber displays a formatted number and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
|
|
225856
225981
|
},
|
|
225857
225982
|
{
|
|
225858
225983
|
"kind": "variable",
|
|
@@ -225860,7 +225985,7 @@
|
|
|
225860
225985
|
"type": {
|
|
225861
225986
|
"text": "Story"
|
|
225862
225987
|
},
|
|
225863
|
-
"default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-
|
|
225988
|
+
"default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-number .hide=${args.hide} .value=${args.value} .locale=${args.locale} .currency=${args.currency} .decimals=${args.decimals} ></gds-sensitive-number>`, }"
|
|
225864
225989
|
}
|
|
225865
225990
|
],
|
|
225866
225991
|
"exports": [
|
|
@@ -225869,7 +225994,7 @@
|
|
|
225869
225994
|
"name": "default",
|
|
225870
225995
|
"declaration": {
|
|
225871
225996
|
"name": "meta",
|
|
225872
|
-
"module": "src/components/sensitive/
|
|
225997
|
+
"module": "src/components/sensitive/number/sensitive-number.stories.ts"
|
|
225873
225998
|
}
|
|
225874
225999
|
},
|
|
225875
226000
|
{
|
|
@@ -225877,29 +226002,29 @@
|
|
|
225877
226002
|
"name": "Default",
|
|
225878
226003
|
"declaration": {
|
|
225879
226004
|
"name": "Default",
|
|
225880
|
-
"module": "src/components/sensitive/
|
|
226005
|
+
"module": "src/components/sensitive/number/sensitive-number.stories.ts"
|
|
225881
226006
|
}
|
|
225882
226007
|
}
|
|
225883
226008
|
]
|
|
225884
226009
|
},
|
|
225885
226010
|
{
|
|
225886
226011
|
"kind": "javascript-module",
|
|
225887
|
-
"path": "src/components/sensitive/
|
|
226012
|
+
"path": "src/components/sensitive/number/sensitive-number.ts",
|
|
225888
226013
|
"declarations": [],
|
|
225889
226014
|
"exports": [
|
|
225890
226015
|
{
|
|
225891
226016
|
"kind": "js",
|
|
225892
|
-
"name": "
|
|
226017
|
+
"name": "GdsSensitiveNumber",
|
|
225893
226018
|
"declaration": {
|
|
225894
|
-
"name": "
|
|
225895
|
-
"module": "src/components/sensitive/
|
|
226019
|
+
"name": "GdsSensitiveNumber",
|
|
226020
|
+
"module": "src/components/sensitive/number/sensitive-number.ts"
|
|
225896
226021
|
}
|
|
225897
226022
|
}
|
|
225898
226023
|
]
|
|
225899
226024
|
},
|
|
225900
226025
|
{
|
|
225901
226026
|
"kind": "javascript-module",
|
|
225902
|
-
"path": "src/components/sensitive/
|
|
226027
|
+
"path": "src/components/sensitive/date/index.ts",
|
|
225903
226028
|
"declarations": [],
|
|
225904
226029
|
"exports": [
|
|
225905
226030
|
{
|
|
@@ -225907,19 +226032,19 @@
|
|
|
225907
226032
|
"name": "*",
|
|
225908
226033
|
"declaration": {
|
|
225909
226034
|
"name": "*",
|
|
225910
|
-
"module": "src/components/sensitive/
|
|
226035
|
+
"module": "src/components/sensitive/date/sensitive-date"
|
|
225911
226036
|
}
|
|
225912
226037
|
}
|
|
225913
226038
|
]
|
|
225914
226039
|
},
|
|
225915
226040
|
{
|
|
225916
226041
|
"kind": "javascript-module",
|
|
225917
|
-
"path": "src/components/sensitive/
|
|
226042
|
+
"path": "src/components/sensitive/date/sensitive-date.component.ts",
|
|
225918
226043
|
"declarations": [
|
|
225919
226044
|
{
|
|
225920
226045
|
"kind": "class",
|
|
225921
226046
|
"description": "",
|
|
225922
|
-
"name": "
|
|
226047
|
+
"name": "GdsSensitiveDate",
|
|
225923
226048
|
"members": [
|
|
225924
226049
|
{
|
|
225925
226050
|
"kind": "field",
|
|
@@ -225928,31 +226053,33 @@
|
|
|
225928
226053
|
"text": "boolean"
|
|
225929
226054
|
},
|
|
225930
226055
|
"default": "false",
|
|
225931
|
-
"description": "When true, hides the sensitive
|
|
226056
|
+
"description": "When true, hides the sensitive date.",
|
|
225932
226057
|
"attribute": "hide"
|
|
225933
226058
|
},
|
|
225934
226059
|
{
|
|
225935
226060
|
"kind": "field",
|
|
225936
|
-
"name": "
|
|
226061
|
+
"name": "value",
|
|
225937
226062
|
"type": {
|
|
225938
|
-
"text": "string"
|
|
226063
|
+
"text": "Date | string | undefined"
|
|
225939
226064
|
},
|
|
225940
|
-
"
|
|
226065
|
+
"description": "The date value to be formatted, either Date or ISO string.",
|
|
225941
226066
|
"inheritedFrom": {
|
|
225942
|
-
"name": "
|
|
225943
|
-
"module": "src/components/formatted-text/formatted-
|
|
226067
|
+
"name": "GdsFormattedDate",
|
|
226068
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
225944
226069
|
}
|
|
225945
226070
|
},
|
|
225946
226071
|
{
|
|
225947
226072
|
"kind": "field",
|
|
225948
|
-
"name": "
|
|
226073
|
+
"name": "format",
|
|
225949
226074
|
"type": {
|
|
225950
|
-
"text": "
|
|
226075
|
+
"text": "DateTimeFormat"
|
|
225951
226076
|
},
|
|
225952
|
-
"
|
|
226077
|
+
"default": "'dateOnlyNumbers'",
|
|
226078
|
+
"description": "Specifies the date format.",
|
|
226079
|
+
"attribute": "format",
|
|
225953
226080
|
"inheritedFrom": {
|
|
225954
|
-
"name": "
|
|
225955
|
-
"module": "src/components/formatted-text/
|
|
226081
|
+
"name": "GdsFormattedDate",
|
|
226082
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
225956
226083
|
}
|
|
225957
226084
|
},
|
|
225958
226085
|
{
|
|
@@ -225961,37 +226088,23 @@
|
|
|
225961
226088
|
"type": {
|
|
225962
226089
|
"text": "string | undefined"
|
|
225963
226090
|
},
|
|
225964
|
-
"description": "The locale used for
|
|
226091
|
+
"description": "The locale used for date formatting.",
|
|
225965
226092
|
"attribute": "locale",
|
|
225966
226093
|
"inheritedFrom": {
|
|
225967
|
-
"name": "
|
|
225968
|
-
"module": "src/components/formatted-text/
|
|
225969
|
-
}
|
|
225970
|
-
},
|
|
225971
|
-
{
|
|
225972
|
-
"kind": "field",
|
|
225973
|
-
"name": "currency",
|
|
225974
|
-
"type": {
|
|
225975
|
-
"text": "string | undefined"
|
|
225976
|
-
},
|
|
225977
|
-
"description": "The currency used when formatting numbers.",
|
|
225978
|
-
"attribute": "currency",
|
|
225979
|
-
"inheritedFrom": {
|
|
225980
|
-
"name": "GdsFormattedNumber",
|
|
225981
|
-
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
226094
|
+
"name": "GdsFormattedDate",
|
|
226095
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
225982
226096
|
}
|
|
225983
226097
|
},
|
|
225984
226098
|
{
|
|
225985
226099
|
"kind": "field",
|
|
225986
|
-
"name": "
|
|
226100
|
+
"name": "formattedValue",
|
|
225987
226101
|
"type": {
|
|
225988
|
-
"text": "
|
|
226102
|
+
"text": "string"
|
|
225989
226103
|
},
|
|
225990
|
-
"
|
|
225991
|
-
"attribute": "decimals",
|
|
226104
|
+
"readonly": true,
|
|
225992
226105
|
"inheritedFrom": {
|
|
225993
|
-
"name": "
|
|
225994
|
-
"module": "src/components/formatted-text/
|
|
226106
|
+
"name": "GdsFormattedText",
|
|
226107
|
+
"module": "src/components/formatted-text/formatted-text.ts"
|
|
225995
226108
|
}
|
|
225996
226109
|
},
|
|
225997
226110
|
{
|
|
@@ -226969,56 +227082,32 @@
|
|
|
226969
227082
|
"text": "boolean"
|
|
226970
227083
|
},
|
|
226971
227084
|
"default": "false",
|
|
226972
|
-
"description": "When true, hides the sensitive
|
|
227085
|
+
"description": "When true, hides the sensitive date.",
|
|
226973
227086
|
"fieldName": "hide"
|
|
226974
227087
|
},
|
|
226975
227088
|
{
|
|
226976
|
-
"name": "
|
|
227089
|
+
"name": "format",
|
|
226977
227090
|
"type": {
|
|
226978
|
-
"text": "
|
|
227091
|
+
"text": "DateTimeFormat"
|
|
226979
227092
|
},
|
|
226980
|
-
"
|
|
226981
|
-
"
|
|
227093
|
+
"default": "'dateOnlyNumbers'",
|
|
227094
|
+
"description": "Specifies the date format.",
|
|
227095
|
+
"fieldName": "format",
|
|
226982
227096
|
"inheritedFrom": {
|
|
226983
|
-
"name": "
|
|
226984
|
-
"module": "src/components/formatted-text/
|
|
227097
|
+
"name": "GdsFormattedDate",
|
|
227098
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
226985
227099
|
}
|
|
226986
227100
|
},
|
|
226987
227101
|
{
|
|
226988
|
-
"name": "
|
|
227102
|
+
"name": "locale",
|
|
226989
227103
|
"type": {
|
|
226990
227104
|
"text": "string | undefined"
|
|
226991
227105
|
},
|
|
226992
|
-
"description": "The
|
|
226993
|
-
"fieldName": "
|
|
226994
|
-
"inheritedFrom": {
|
|
226995
|
-
"name": "GdsFormattedNumber",
|
|
226996
|
-
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
226997
|
-
}
|
|
226998
|
-
},
|
|
226999
|
-
{
|
|
227000
|
-
"name": "decimals",
|
|
227001
|
-
"type": {
|
|
227002
|
-
"text": "number | undefined"
|
|
227003
|
-
},
|
|
227004
|
-
"description": "The number of decimal places to display.",
|
|
227005
|
-
"fieldName": "decimals",
|
|
227006
|
-
"inheritedFrom": {
|
|
227007
|
-
"name": "GdsFormattedNumber",
|
|
227008
|
-
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
227009
|
-
}
|
|
227010
|
-
},
|
|
227011
|
-
{
|
|
227012
|
-
"name": "format",
|
|
227013
|
-
"type": {
|
|
227014
|
-
"text": "NumberFormats"
|
|
227015
|
-
},
|
|
227016
|
-
"default": "'decimalsAndThousands'",
|
|
227017
|
-
"description": "Specifies the number format.",
|
|
227018
|
-
"fieldName": "format",
|
|
227106
|
+
"description": "The locale used for date formatting.",
|
|
227107
|
+
"fieldName": "locale",
|
|
227019
227108
|
"inheritedFrom": {
|
|
227020
|
-
"name": "
|
|
227021
|
-
"module": "src/components/formatted-text/
|
|
227109
|
+
"name": "GdsFormattedDate",
|
|
227110
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
227022
227111
|
}
|
|
227023
227112
|
},
|
|
227024
227113
|
{
|
|
@@ -227062,10 +227151,10 @@
|
|
|
227062
227151
|
}
|
|
227063
227152
|
],
|
|
227064
227153
|
"superclass": {
|
|
227065
|
-
"name": "
|
|
227066
|
-
"module": "/src/components/formatted-text/
|
|
227154
|
+
"name": "GdsFormattedDate",
|
|
227155
|
+
"module": "/src/components/formatted-text/date/formatted-date.component"
|
|
227067
227156
|
},
|
|
227068
|
-
"tagName": "gds-sensitive-
|
|
227157
|
+
"tagName": "gds-sensitive-date",
|
|
227069
227158
|
"customElement": true,
|
|
227070
227159
|
"events": [
|
|
227071
227160
|
{
|
|
@@ -227104,17 +227193,17 @@
|
|
|
227104
227193
|
"exports": [
|
|
227105
227194
|
{
|
|
227106
227195
|
"kind": "js",
|
|
227107
|
-
"name": "
|
|
227196
|
+
"name": "GdsSensitiveDate",
|
|
227108
227197
|
"declaration": {
|
|
227109
|
-
"name": "
|
|
227110
|
-
"module": "src/components/sensitive/
|
|
227198
|
+
"name": "GdsSensitiveDate",
|
|
227199
|
+
"module": "src/components/sensitive/date/sensitive-date.component.ts"
|
|
227111
227200
|
}
|
|
227112
227201
|
}
|
|
227113
227202
|
]
|
|
227114
227203
|
},
|
|
227115
227204
|
{
|
|
227116
227205
|
"kind": "javascript-module",
|
|
227117
|
-
"path": "src/components/sensitive/
|
|
227206
|
+
"path": "src/components/sensitive/date/sensitive-date.stories.ts",
|
|
227118
227207
|
"declarations": [
|
|
227119
227208
|
{
|
|
227120
227209
|
"kind": "variable",
|
|
@@ -227122,8 +227211,8 @@
|
|
|
227122
227211
|
"type": {
|
|
227123
227212
|
"text": "Meta"
|
|
227124
227213
|
},
|
|
227125
|
-
"default": "{ title: 'Components/Sensitive/
|
|
227126
|
-
"description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/
|
|
227214
|
+
"default": "{ title: 'Components/Sensitive/Date', component: 'gds-sensitive-date', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-date'), format: { control: { type: 'select' }, options: Object.keys(dateTimeFormats), }, }, }",
|
|
227215
|
+
"description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/date)\n\nGdsSensitiveDate displays a formatted date and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
|
|
227127
227216
|
},
|
|
227128
227217
|
{
|
|
227129
227218
|
"kind": "variable",
|
|
@@ -227131,7 +227220,7 @@
|
|
|
227131
227220
|
"type": {
|
|
227132
227221
|
"text": "Story"
|
|
227133
227222
|
},
|
|
227134
|
-
"default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-
|
|
227223
|
+
"default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-date .hide=${args.hide} .value=${args.value} .locale=${args.locale} .format=${args.format} ></gds-sensitive-date>`, }"
|
|
227135
227224
|
}
|
|
227136
227225
|
],
|
|
227137
227226
|
"exports": [
|
|
@@ -227140,7 +227229,7 @@
|
|
|
227140
227229
|
"name": "default",
|
|
227141
227230
|
"declaration": {
|
|
227142
227231
|
"name": "meta",
|
|
227143
|
-
"module": "src/components/sensitive/
|
|
227232
|
+
"module": "src/components/sensitive/date/sensitive-date.stories.ts"
|
|
227144
227233
|
}
|
|
227145
227234
|
},
|
|
227146
227235
|
{
|
|
@@ -227148,22 +227237,22 @@
|
|
|
227148
227237
|
"name": "Default",
|
|
227149
227238
|
"declaration": {
|
|
227150
227239
|
"name": "Default",
|
|
227151
|
-
"module": "src/components/sensitive/
|
|
227240
|
+
"module": "src/components/sensitive/date/sensitive-date.stories.ts"
|
|
227152
227241
|
}
|
|
227153
227242
|
}
|
|
227154
227243
|
]
|
|
227155
227244
|
},
|
|
227156
227245
|
{
|
|
227157
227246
|
"kind": "javascript-module",
|
|
227158
|
-
"path": "src/components/sensitive/
|
|
227247
|
+
"path": "src/components/sensitive/date/sensitive-date.ts",
|
|
227159
227248
|
"declarations": [],
|
|
227160
227249
|
"exports": [
|
|
227161
227250
|
{
|
|
227162
227251
|
"kind": "js",
|
|
227163
|
-
"name": "
|
|
227252
|
+
"name": "GdsSensitiveDate",
|
|
227164
227253
|
"declaration": {
|
|
227165
|
-
"name": "
|
|
227166
|
-
"module": "src/components/sensitive/
|
|
227254
|
+
"name": "GdsSensitiveDate",
|
|
227255
|
+
"module": "src/components/sensitive/date/sensitive-date.ts"
|
|
227167
227256
|
}
|
|
227168
227257
|
}
|
|
227169
227258
|
]
|
package/gds-element.js
CHANGED
|
@@ -14,7 +14,7 @@ class GdsElement extends LitElement {
|
|
|
14
14
|
/**
|
|
15
15
|
* The semantic version of this element. Can be used for troubleshooting to verify the version being used.
|
|
16
16
|
*/
|
|
17
|
-
this.semanticVersion = "2.
|
|
17
|
+
this.semanticVersion = "2.24.0";
|
|
18
18
|
this._isUsingTransitionalStyles = false;
|
|
19
19
|
this._dynamicStylesController = new DynamicStylesController(this);
|
|
20
20
|
}
|
|
@@ -385,8 +385,8 @@ export * from './icons/icon-zoom-out/index.js';
|
|
|
385
385
|
export * from './radio-group/index.js';
|
|
386
386
|
export * from './segment/index.js';
|
|
387
387
|
export * from './sensitive-account/index.js';
|
|
388
|
-
export * from './sensitive-date/index.js';
|
|
389
388
|
export * from './sensitive-number/index.js';
|
|
389
|
+
export * from './sensitive-date/index.js';
|
|
390
390
|
export * from './option/index.js';
|
|
391
391
|
export * from './menu-heading/index.js';
|
|
392
392
|
export * from './menu-item/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -385,8 +385,8 @@ export * from "./icons/icon-zoom-out/index.js";
|
|
|
385
385
|
export * from "./radio-group/index.js";
|
|
386
386
|
export * from "./segment/index.js";
|
|
387
387
|
export * from "./sensitive-account/index.js";
|
|
388
|
-
export * from "./sensitive-date/index.js";
|
|
389
388
|
export * from "./sensitive-number/index.js";
|
|
389
|
+
export * from "./sensitive-date/index.js";
|
|
390
390
|
export * from "./option/index.js";
|
|
391
391
|
export * from "./menu-heading/index.js";
|
|
392
392
|
export * from "./menu-item/index.js";
|
|
@@ -15,6 +15,7 @@ export declare const GdsPagination: {
|
|
|
15
15
|
total?: number | undefined;
|
|
16
16
|
options?: number[] | undefined;
|
|
17
17
|
jump?: boolean | undefined;
|
|
18
|
+
hideOptions?: boolean | undefined;
|
|
18
19
|
density?: "compact" | "comfortable" | "spacious" | undefined;
|
|
19
20
|
label?: string | undefined;
|
|
20
21
|
render?: (() => any) | undefined;
|
|
@@ -12,6 +12,9 @@ export declare const GdsTable: {
|
|
|
12
12
|
(props: GdsTableProps & {
|
|
13
13
|
ref?: React.Ref<GdsTableClass>;
|
|
14
14
|
}): import("react").ReactElement<Omit<{
|
|
15
|
+
headline?: string | undefined;
|
|
16
|
+
headlineTag?: string | undefined;
|
|
17
|
+
summary?: string | undefined;
|
|
15
18
|
options?: number[] | undefined;
|
|
16
19
|
page?: number | undefined;
|
|
17
20
|
rows?: number | undefined;
|
package/package.json
CHANGED