@sebgroup/green-core 3.24.1 → 3.24.2
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/bin/context-cli/framework.js +1 -1
- package/bin/context-cli/index.js +1 -1
- package/bin/context-cli/migrate/engine.js +4 -7
- package/bin/context-cli/migrate/index.js +1 -1
- package/bin/context-cli/migrate/registry.js +7 -13
- package/bin/context-cli/migrate/units/0/example.js +2 -3
- package/bin/context-cli/migrate/units/2/badge-disabled-to-variant.js +2 -3
- package/bin/context-cli/migrate/units/2/button-default-brand-review.js +3 -5
- package/bin/context-cli/migrate/units/2/card-shadow-to-box-shadow.js +4 -7
- package/bin/context-cli/migrate/units/2/color-token-renames.js +7 -13
- package/bin/context-cli/migrate/units/2/divider-levels-to-color.js +1 -1
- package/bin/context-cli/migrate/units/2/icon-width-height-to-size.js +7 -13
- package/bin/context-cli/migrate/units/2/replace-container-with-div.js +1 -1
- package/bin/context-cli/migrate/units/2/replace-spacer-with-div-height.js +3 -5
- package/bin/context-cli/migrate/units/2/text-font-size-to-font.js +4 -7
- package/bin/context-cli/migrate/units/2/theme-design-version-review.js +3 -5
- package/bin/context-cli/migrate/units/3/card-variant-renames.js +10 -19
- package/bin/context-cli/migrate/units/3/color-token-renames.js +2 -3
- package/bin/context-cli/migrate/units/3/rename-group-direction-to-flex-direction.js +5 -9
- package/bin/context-cli/migrate/units/3/typography-token-renames.js +1 -1
- package/bin/context-cli/parse-args.js +1 -1
- package/bin/mcp-server/constants.js +1 -1
- package/bin/mcp-server/errors.js +1 -1
- package/bin/mcp-server/handlers.js +1 -1
- package/bin/mcp-server/resources.js +1 -1
- package/bin/mcp-server/search.js +2 -3
- package/bin/mcp-server/tools.js +1 -1
- package/bin/mcp-server/utils.js +6 -11
- package/bin/mcp-server/validation.js +1 -1
- package/chunks/chunk.QU3DSPNU.js +26 -0
- package/components/alert/alert.component.js +46 -85
- package/components/alert/alert.js +1 -1
- package/components/alert/alert.styles.js +25 -21
- package/components/avatar/avatar-group/avatar-group.component.js +1 -1
- package/components/avatar/avatar-group/avatar-group.js +1 -1
- package/components/avatar/avatar-group/avatar-group.styles.js +1 -1
- package/components/avatar/avatar.component.js +7 -11
- package/components/avatar/avatar.js +1 -1
- package/components/avatar/avatar.styles.js +3 -3
- package/components/badge/badge.component.js +9 -15
- package/components/badge/badge.js +1 -1
- package/components/badge/badge.styles.js +1 -1
- package/components/blur/blur.component.js +1 -1
- package/components/blur/blur.js +1 -1
- package/components/blur/blur.styles.js +1 -1
- package/components/breadcrumbs/breadcrumb/breadcrumb.component.js +10 -22
- package/components/breadcrumbs/breadcrumb/breadcrumb.js +1 -1
- package/components/breadcrumbs/breadcrumb/breadcrumb.styles.js +1 -1
- package/components/breadcrumbs/breadcrumbs.component.js +1 -1
- package/components/breadcrumbs/breadcrumbs.js +1 -1
- package/components/breadcrumbs/breadcrumbs.styles.js +1 -1
- package/components/button/button.component.js +12 -15
- package/components/button/button.js +1 -1
- package/components/button/button.styles.js +86 -86
- package/components/button/button.trans.styles.js +1 -1
- package/components/calendar/calendar.component.js +8 -11
- package/components/calendar/calendar.js +1 -1
- package/components/calendar/calendar.styles.js +29 -30
- package/components/calendar/calendar.trans.styles.js +1 -1
- package/components/calendar/functions.js +1 -1
- package/components/card/card.component.js +1 -1
- package/components/card/card.js +1 -1
- package/components/card/card.styles.js +1 -1
- package/components/card/index.js +1 -1
- package/components/card-linked/card-linked.component.js +1 -1
- package/components/card-linked/card-linked.js +1 -1
- package/components/card-linked/card-linked.styles.js +8 -8
- package/components/checkbox/checkbox-group/checkbox-group.component.js +12 -24
- package/components/checkbox/checkbox-group/checkbox-group.js +1 -1
- package/components/checkbox/checkbox-group/checkbox-group.styles.js +1 -1
- package/components/checkbox/checkbox.component.js +9 -14
- package/components/checkbox/checkbox.js +1 -1
- package/components/checkbox/checkbox.styles.js +1 -1
- package/components/coachmark/coachmark.component.js +24 -45
- package/components/coachmark/coachmark.js +1 -1
- package/components/coachmark/coachmark.styles.js +1 -1
- package/components/context-menu/context-menu.component.js +6 -6
- package/components/context-menu/context-menu.js +1 -1
- package/components/context-menu/context-menu.trans.styles.js +1 -1
- package/components/datepicker/date-part-spinner.js +19 -28
- package/components/datepicker/datepicker.component.js +109 -171
- package/components/datepicker/datepicker.js +1 -1
- package/components/datepicker/datepicker.styles.js +3 -3
- package/components/datepicker/datepicker.trans.styles.js +1 -1
- package/components/details/details-icon/details-icon.component.js +1 -1
- package/components/details/details-icon/details-icon.js +1 -1
- package/components/details/details-icon/details-icon.style.js +1 -1
- package/components/details/details.component.js +2 -3
- package/components/details/details.js +1 -1
- package/components/details/details.styles.js +3 -3
- package/components/dialog/dialog.component.js +6 -6
- package/components/dialog/dialog.js +1 -1
- package/components/dialog/dialog.styles.js +35 -15
- package/components/dialog/scroll-lock.js +1 -1
- package/components/div/div.component.js +1 -1
- package/components/div/div.js +1 -1
- package/components/div/div.styles.js +1 -1
- package/components/divider/divider.component.js +1 -1
- package/components/divider/divider.js +1 -1
- package/components/divider/divider.styles.js +1 -1
- package/components/dropdown/dropdown.component.js +37 -59
- package/components/dropdown/dropdown.js +1 -1
- package/components/dropdown/dropdown.styles.js +4 -4
- package/components/dropdown/dropdown.trans.styles.js +1 -1
- package/components/dropdown/option.component.js +9 -12
- package/components/dropdown/option.js +1 -1
- package/components/fab/fab.component.js +1 -1
- package/components/fab/fab.js +1 -1
- package/components/fab/fab.styles.js +1 -1
- package/components/filter-chips/filter-chip/filter-chip.component.js +1 -1
- package/components/filter-chips/filter-chip/filter-chip.js +1 -1
- package/components/filter-chips/filter-chip/filter-chip.styles.js +1 -1
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +1 -1
- package/components/filter-chips/filter-chips.component.js +10 -16
- package/components/filter-chips/filter-chips.js +1 -1
- package/components/filter-chips/filter-chips.styles.js +1 -1
- package/components/filter-chips/filter-chips.trans.styles.js +1 -1
- package/components/flex/flex.component.js +1 -1
- package/components/flex/flex.js +1 -1
- package/components/flex/flex.styles.js +1 -1
- package/components/form/form-control.js +7 -12
- package/components/form/form-request-submit-polyfill.js +1 -2
- package/components/form-summary/summary.component.js +14 -22
- package/components/form-summary/summary.js +1 -1
- package/components/form-summary/summary.styles.js +1 -1
- package/components/formatted-text/account/account-formatter.js +1 -1
- package/components/formatted-text/account/formatted-account.component.js +1 -1
- package/components/formatted-text/account/formatted-account.js +1 -1
- package/components/formatted-text/date/date-time-formatter.js +1 -1
- package/components/formatted-text/date/formatted-date.component.js +1 -1
- package/components/formatted-text/date/formatted-date.js +1 -1
- package/components/formatted-text/formatted-text.js +1 -1
- package/components/formatted-text/number/formatted-number.component.js +1 -1
- package/components/formatted-text/number/formatted-number.js +1 -1
- package/components/formatted-text/number/number-formatter.js +1 -1
- package/components/grid/grid.component.js +1 -1
- package/components/grid/grid.js +1 -1
- package/components/grid/grid.styles.js +1 -1
- package/components/grouped-list/grouped-list.component.js +1 -1
- package/components/grouped-list/grouped-list.js +1 -1
- package/components/grouped-list/grouped-list.styles.js +1 -1
- package/components/grouped-list/grouped-list.trans.styles.js +1 -1
- package/components/grouped-list/list-item.component.js +1 -1
- package/components/grouped-list/list-item.js +1 -1
- package/components/icon/icon.component.js +2 -3
- package/components/icon/icon.deprecated.js +1 -1
- package/components/icon/icon.js +1 -1
- package/components/icon/icon.styles.js +1 -1
- package/components/icon/icons/ai.component.js +1 -1
- package/components/icon/icons/ai.js +1 -1
- package/components/icon/icons/airplane-up.component.js +1 -1
- package/components/icon/icons/airplane-up.js +1 -1
- package/components/icon/icons/archive.component.js +1 -1
- package/components/icon/icons/archive.js +1 -1
- package/components/icon/icons/arrow-bottom-top.component.js +1 -1
- package/components/icon/icons/arrow-bottom-top.js +1 -1
- package/components/icon/icons/arrow-box-left-alt.component.js +1 -1
- package/components/icon/icons/arrow-box-left-alt.js +1 -1
- package/components/icon/icons/arrow-box-left.component.js +1 -1
- package/components/icon/icons/arrow-box-left.js +1 -1
- package/components/icon/icons/arrow-box-right.component.js +1 -1
- package/components/icon/icons/arrow-box-right.js +1 -1
- package/components/icon/icons/arrow-down.component.js +1 -1
- package/components/icon/icons/arrow-down.js +1 -1
- package/components/icon/icons/arrow-inbox.component.js +1 -1
- package/components/icon/icons/arrow-inbox.js +1 -1
- package/components/icon/icons/arrow-left-right.component.js +1 -1
- package/components/icon/icons/arrow-left-right.js +1 -1
- package/components/icon/icons/arrow-left.component.js +1 -1
- package/components/icon/icons/arrow-left.js +1 -1
- package/components/icon/icons/arrow-out-of-box.component.js +1 -1
- package/components/icon/icons/arrow-out-of-box.js +1 -1
- package/components/icon/icons/arrow-right-circle.component.js +1 -1
- package/components/icon/icons/arrow-right-circle.js +1 -1
- package/components/icon/icons/arrow-right-down-circle.component.js +1 -1
- package/components/icon/icons/arrow-right-down-circle.js +1 -1
- package/components/icon/icons/arrow-right-up-circle.component.js +1 -1
- package/components/icon/icons/arrow-right-up-circle.js +1 -1
- package/components/icon/icons/arrow-right.component.js +1 -1
- package/components/icon/icons/arrow-right.js +1 -1
- package/components/icon/icons/arrow-rotate-clockwise.component.js +1 -1
- package/components/icon/icons/arrow-rotate-clockwise.js +1 -1
- package/components/icon/icons/arrow-rotate-counter-clockwise.component.js +1 -1
- package/components/icon/icons/arrow-rotate-counter-clockwise.js +1 -1
- package/components/icon/icons/arrow-rotate-left-right.component.js +1 -1
- package/components/icon/icons/arrow-rotate-left-right.js +1 -1
- package/components/icon/icons/arrow-rotate-right-left.component.js +1 -1
- package/components/icon/icons/arrow-rotate-right-left.js +1 -1
- package/components/icon/icons/arrow-share-left.component.js +1 -1
- package/components/icon/icons/arrow-share-left.js +1 -1
- package/components/icon/icons/arrow-share-right.component.js +1 -1
- package/components/icon/icons/arrow-share-right.js +1 -1
- package/components/icon/icons/arrow-split.component.js +1 -1
- package/components/icon/icons/arrow-split.js +1 -1
- package/components/icon/icons/arrow-up.component.js +1 -1
- package/components/icon/icons/arrow-up.js +1 -1
- package/components/icon/icons/arrow-wall-down.component.js +1 -1
- package/components/icon/icons/arrow-wall-down.js +1 -1
- package/components/icon/icons/arrow-wall-left.component.js +1 -1
- package/components/icon/icons/arrow-wall-left.js +1 -1
- package/components/icon/icons/arrow-wall-right.component.js +1 -1
- package/components/icon/icons/arrow-wall-right.js +1 -1
- package/components/icon/icons/arrow-wall-up.component.js +1 -1
- package/components/icon/icons/arrow-wall-up.js +1 -1
- package/components/icon/icons/arrow.component.js +1 -1
- package/components/icon/icons/arrow.js +1 -1
- package/components/icon/icons/arrows-repeat-right.component.js +1 -1
- package/components/icon/icons/arrows-repeat-right.js +1 -1
- package/components/icon/icons/asterisk.component.js +1 -1
- package/components/icon/icons/asterisk.js +1 -1
- package/components/icon/icons/at.component.js +1 -1
- package/components/icon/icons/at.js +1 -1
- package/components/icon/icons/back.component.js +1 -1
- package/components/icon/icons/back.js +1 -1
- package/components/icon/icons/backward.component.js +1 -1
- package/components/icon/icons/backward.js +1 -1
- package/components/icon/icons/bag.component.js +1 -1
- package/components/icon/icons/bag.js +1 -1
- package/components/icon/icons/bank.component.js +1 -1
- package/components/icon/icons/bank.js +1 -1
- package/components/icon/icons/banknote-2.component.js +1 -1
- package/components/icon/icons/banknote-2.js +1 -1
- package/components/icon/icons/banknote.component.js +1 -1
- package/components/icon/icons/banknote.js +1 -1
- package/components/icon/icons/barcode.component.js +1 -1
- package/components/icon/icons/barcode.js +1 -1
- package/components/icon/icons/bars-three.component.js +1 -1
- package/components/icon/icons/bars-three.js +1 -1
- package/components/icon/icons/bars-two.component.js +1 -1
- package/components/icon/icons/bars-two.js +1 -1
- package/components/icon/icons/basket.component.js +1 -1
- package/components/icon/icons/basket.js +1 -1
- package/components/icon/icons/battery-loading.component.js +1 -1
- package/components/icon/icons/battery-loading.js +1 -1
- package/components/icon/icons/bell.component.js +1 -1
- package/components/icon/icons/bell.js +1 -1
- package/components/icon/icons/block.component.js +1 -1
- package/components/icon/icons/block.js +1 -1
- package/components/icon/icons/book.component.js +1 -1
- package/components/icon/icons/book.js +1 -1
- package/components/icon/icons/bookmark-check.component.js +1 -1
- package/components/icon/icons/bookmark-check.js +1 -1
- package/components/icon/icons/bookmark-delete.component.js +1 -1
- package/components/icon/icons/bookmark-delete.js +1 -1
- package/components/icon/icons/bookmark-plus.component.js +1 -1
- package/components/icon/icons/bookmark-plus.js +1 -1
- package/components/icon/icons/bookmark-remove.component.js +1 -1
- package/components/icon/icons/bookmark-remove.js +1 -1
- package/components/icon/icons/bookmark.component.js +1 -1
- package/components/icon/icons/bookmark.js +1 -1
- package/components/icon/icons/books.component.js +1 -1
- package/components/icon/icons/books.js +1 -1
- package/components/icon/icons/brand-app-store.component.js +1 -1
- package/components/icon/icons/brand-app-store.js +1 -1
- package/components/icon/icons/brand-apple-music.component.js +1 -1
- package/components/icon/icons/brand-apple-music.js +1 -1
- package/components/icon/icons/brand-bankid.component.js +1 -1
- package/components/icon/icons/brand-bankid.js +1 -1
- package/components/icon/icons/brand-chrome.component.js +1 -1
- package/components/icon/icons/brand-chrome.js +1 -1
- package/components/icon/icons/brand-facebook.component.js +1 -1
- package/components/icon/icons/brand-facebook.js +1 -1
- package/components/icon/icons/brand-figma.component.js +1 -1
- package/components/icon/icons/brand-figma.js +1 -1
- package/components/icon/icons/brand-firefox.component.js +1 -1
- package/components/icon/icons/brand-firefox.js +1 -1
- package/components/icon/icons/brand-github.component.js +1 -1
- package/components/icon/icons/brand-github.js +1 -1
- package/components/icon/icons/brand-green.component.js +1 -1
- package/components/icon/icons/brand-green.js +1 -1
- package/components/icon/icons/brand-instagram.component.js +1 -1
- package/components/icon/icons/brand-instagram.js +1 -1
- package/components/icon/icons/brand-linkedin.component.js +1 -1
- package/components/icon/icons/brand-linkedin.js +1 -1
- package/components/icon/icons/brand-play-store.component.js +1 -1
- package/components/icon/icons/brand-play-store.js +1 -1
- package/components/icon/icons/brand-rss-feed.component.js +1 -1
- package/components/icon/icons/brand-rss-feed.js +1 -1
- package/components/icon/icons/brand-seb.component.js +1 -1
- package/components/icon/icons/brand-seb.js +1 -1
- package/components/icon/icons/brand-spotify.component.js +1 -1
- package/components/icon/icons/brand-spotify.js +1 -1
- package/components/icon/icons/brand-storybook.component.js +1 -1
- package/components/icon/icons/brand-storybook.js +1 -1
- package/components/icon/icons/brand-swish-word.component.js +1 -1
- package/components/icon/icons/brand-swish-word.js +1 -1
- package/components/icon/icons/brand-x.component.js +1 -1
- package/components/icon/icons/brand-x.js +1 -1
- package/components/icon/icons/brush.component.js +1 -1
- package/components/icon/icons/brush.js +1 -1
- package/components/icon/icons/bubble-annotation.component.js +1 -1
- package/components/icon/icons/bubble-annotation.js +1 -1
- package/components/icon/icons/bubbles.component.js +1 -1
- package/components/icon/icons/bubbles.js +1 -1
- package/components/icon/icons/buildings.component.js +1 -1
- package/components/icon/icons/buildings.js +1 -1
- package/components/icon/icons/bullet-list.component.js +1 -1
- package/components/icon/icons/bullet-list.js +1 -1
- package/components/icon/icons/calculator.component.js +1 -1
- package/components/icon/icons/calculator.js +1 -1
- package/components/icon/icons/calendar-check.component.js +1 -1
- package/components/icon/icons/calendar-check.js +1 -1
- package/components/icon/icons/calendar-repeat.component.js +1 -1
- package/components/icon/icons/calendar-repeat.js +1 -1
- package/components/icon/icons/calendar.component.js +1 -1
- package/components/icon/icons/calendar.js +1 -1
- package/components/icon/icons/calender-add.component.js +1 -1
- package/components/icon/icons/calender-add.js +1 -1
- package/components/icon/icons/call.component.js +1 -1
- package/components/icon/icons/call.js +1 -1
- package/components/icon/icons/car.component.js +1 -1
- package/components/icon/icons/car.js +1 -1
- package/components/icon/icons/carussel.component.js +1 -1
- package/components/icon/icons/carussel.js +1 -1
- package/components/icon/icons/chain-link-broken.component.js +1 -1
- package/components/icon/icons/chain-link-broken.js +1 -1
- package/components/icon/icons/chain-link.component.js +1 -1
- package/components/icon/icons/chain-link.js +1 -1
- package/components/icon/icons/chart-two.component.js +1 -1
- package/components/icon/icons/chart-two.js +1 -1
- package/components/icon/icons/checklist.component.js +1 -1
- package/components/icon/icons/checklist.js +1 -1
- package/components/icon/icons/checkmark.component.js +1 -1
- package/components/icon/icons/checkmark.js +1 -1
- package/components/icon/icons/chevron-bottom.component.js +1 -1
- package/components/icon/icons/chevron-bottom.js +1 -1
- package/components/icon/icons/chevron-double-down.component.js +1 -1
- package/components/icon/icons/chevron-double-down.js +1 -1
- package/components/icon/icons/chevron-double-left.component.js +1 -1
- package/components/icon/icons/chevron-double-left.js +1 -1
- package/components/icon/icons/chevron-double-right.component.js +1 -1
- package/components/icon/icons/chevron-double-right.js +1 -1
- package/components/icon/icons/chevron-double-up.component.js +1 -1
- package/components/icon/icons/chevron-double-up.js +1 -1
- package/components/icon/icons/chevron-down-small.component.js +1 -1
- package/components/icon/icons/chevron-down-small.js +1 -1
- package/components/icon/icons/chevron-grabber-vertical-reversed.component.js +1 -1
- package/components/icon/icons/chevron-grabber-vertical-reversed.js +1 -1
- package/components/icon/icons/chevron-grabber-vertical.component.js +1 -1
- package/components/icon/icons/chevron-grabber-vertical.js +1 -1
- package/components/icon/icons/chevron-left-small.component.js +1 -1
- package/components/icon/icons/chevron-left-small.js +1 -1
- package/components/icon/icons/chevron-left.component.js +1 -1
- package/components/icon/icons/chevron-left.js +1 -1
- package/components/icon/icons/chevron-right-small.component.js +1 -1
- package/components/icon/icons/chevron-right-small.js +1 -1
- package/components/icon/icons/chevron-right.component.js +1 -1
- package/components/icon/icons/chevron-right.js +1 -1
- package/components/icon/icons/chevron-top-small.component.js +1 -1
- package/components/icon/icons/chevron-top-small.js +1 -1
- package/components/icon/icons/chevron-top.component.js +1 -1
- package/components/icon/icons/chevron-top.js +1 -1
- package/components/icon/icons/circle-ban.component.js +1 -1
- package/components/icon/icons/circle-ban.js +1 -1
- package/components/icon/icons/circle-check.component.js +1 -1
- package/components/icon/icons/circle-check.js +1 -1
- package/components/icon/icons/circle-dots.component.js +1 -1
- package/components/icon/icons/circle-dots.js +1 -1
- package/components/icon/icons/circle-info.component.js +1 -1
- package/components/icon/icons/circle-info.js +1 -1
- package/components/icon/icons/circle-minus.component.js +1 -1
- package/components/icon/icons/circle-minus.js +1 -1
- package/components/icon/icons/circle-placeholder-on.component.js +1 -1
- package/components/icon/icons/circle-placeholder-on.js +1 -1
- package/components/icon/icons/circle-plus.component.js +1 -1
- package/components/icon/icons/circle-plus.js +1 -1
- package/components/icon/icons/circle-questionmark.component.js +1 -1
- package/components/icon/icons/circle-questionmark.js +1 -1
- package/components/icon/icons/circle-x.component.js +1 -1
- package/components/icon/icons/circle-x.js +1 -1
- package/components/icon/icons/circles-three.component.js +1 -1
- package/components/icon/icons/circles-three.js +1 -1
- package/components/icon/icons/clock.component.js +1 -1
- package/components/icon/icons/clock.js +1 -1
- package/components/icon/icons/cloud-download.component.js +1 -1
- package/components/icon/icons/cloud-download.js +1 -1
- package/components/icon/icons/cloud-upload.component.js +1 -1
- package/components/icon/icons/cloud-upload.js +1 -1
- package/components/icon/icons/cloudy-sun.component.js +1 -1
- package/components/icon/icons/cloudy-sun.js +1 -1
- package/components/icon/icons/code-brackets.component.js +1 -1
- package/components/icon/icons/code-brackets.js +1 -1
- package/components/icon/icons/code.component.js +1 -1
- package/components/icon/icons/code.js +1 -1
- package/components/icon/icons/compass-round.component.js +1 -1
- package/components/icon/icons/compass-round.js +1 -1
- package/components/icon/icons/cookies.component.js +1 -1
- package/components/icon/icons/cookies.js +1 -1
- package/components/icon/icons/copy.component.js +1 -1
- package/components/icon/icons/copy.js +1 -1
- package/components/icon/icons/credit-card-add.component.js +1 -1
- package/components/icon/icons/credit-card-add.js +1 -1
- package/components/icon/icons/credit-card.component.js +1 -1
- package/components/icon/icons/credit-card.js +1 -1
- package/components/icon/icons/cross-large.component.js +1 -1
- package/components/icon/icons/cross-large.js +1 -1
- package/components/icon/icons/cross-small.component.js +1 -1
- package/components/icon/icons/cross-small.js +1 -1
- package/components/icon/icons/cup-hot.component.js +1 -1
- package/components/icon/icons/cup-hot.js +1 -1
- package/components/icon/icons/cursor.component.js +1 -1
- package/components/icon/icons/cursor.js +1 -1
- package/components/icon/icons/devices.component.js +1 -1
- package/components/icon/icons/devices.js +1 -1
- package/components/icon/icons/direction.component.js +1 -1
- package/components/icon/icons/direction.js +1 -1
- package/components/icon/icons/dollar.component.js +1 -1
- package/components/icon/icons/dollar.js +1 -1
- package/components/icon/icons/dot-grid-one-horizontal.component.js +1 -1
- package/components/icon/icons/dot-grid-one-horizontal.js +1 -1
- package/components/icon/icons/dot-grid-one-vertical.component.js +1 -1
- package/components/icon/icons/dot-grid-one-vertical.js +1 -1
- package/components/icon/icons/dot-grid-three.component.js +1 -1
- package/components/icon/icons/dot-grid-three.js +1 -1
- package/components/icon/icons/dot-grid-two.component.js +1 -1
- package/components/icon/icons/dot-grid-two.js +1 -1
- package/components/icon/icons/email.component.js +1 -1
- package/components/icon/icons/email.js +1 -1
- package/components/icon/icons/emoji-angry.component.js +1 -1
- package/components/icon/icons/emoji-angry.js +1 -1
- package/components/icon/icons/emoji-neutral.component.js +1 -1
- package/components/icon/icons/emoji-neutral.js +1 -1
- package/components/icon/icons/emoji-sad.component.js +1 -1
- package/components/icon/icons/emoji-sad.js +1 -1
- package/components/icon/icons/emoji-smile.component.js +1 -1
- package/components/icon/icons/emoji-smile.js +1 -1
- package/components/icon/icons/emoji-smiley.component.js +1 -1
- package/components/icon/icons/emoji-smiley.js +1 -1
- package/components/icon/icons/euro.component.js +1 -1
- package/components/icon/icons/euro.js +1 -1
- package/components/icon/icons/expand.component.js +1 -1
- package/components/icon/icons/expand.js +1 -1
- package/components/icon/icons/eye-open.component.js +1 -1
- package/components/icon/icons/eye-open.js +1 -1
- package/components/icon/icons/eye-slash.component.js +1 -1
- package/components/icon/icons/eye-slash.js +1 -1
- package/components/icon/icons/fashion.component.js +1 -1
- package/components/icon/icons/fashion.js +1 -1
- package/components/icon/icons/fast-forward.component.js +1 -1
- package/components/icon/icons/fast-forward.js +1 -1
- package/components/icon/icons/file-bend.component.js +1 -1
- package/components/icon/icons/file-bend.js +1 -1
- package/components/icon/icons/file-chart.component.js +1 -1
- package/components/icon/icons/file-chart.js +1 -1
- package/components/icon/icons/file-text.component.js +1 -1
- package/components/icon/icons/file-text.js +1 -1
- package/components/icon/icons/files.component.js +1 -1
- package/components/icon/icons/files.js +1 -1
- package/components/icon/icons/filter.component.js +1 -1
- package/components/icon/icons/filter.js +1 -1
- package/components/icon/icons/flag.component.js +1 -1
- package/components/icon/icons/flag.js +1 -1
- package/components/icon/icons/floppy-disk.component.js +1 -1
- package/components/icon/icons/floppy-disk.js +1 -1
- package/components/icon/icons/focus.component.js +1 -1
- package/components/icon/icons/focus.js +1 -1
- package/components/icon/icons/folder-add-right.component.js +1 -1
- package/components/icon/icons/folder-add-right.js +1 -1
- package/components/icon/icons/folder.component.js +1 -1
- package/components/icon/icons/folder.js +1 -1
- package/components/icon/icons/fullscreen.component.js +1 -1
- package/components/icon/icons/fullscreen.js +1 -1
- package/components/icon/icons/gift.component.js +1 -1
- package/components/icon/icons/gift.js +1 -1
- package/components/icon/icons/globus.component.js +1 -1
- package/components/icon/icons/globus.js +1 -1
- package/components/icon/icons/graduate-cap.component.js +1 -1
- package/components/icon/icons/graduate-cap.js +1 -1
- package/components/icon/icons/green-power.component.js +1 -1
- package/components/icon/icons/green-power.js +1 -1
- package/components/icon/icons/group.component.js +1 -1
- package/components/icon/icons/group.js +1 -1
- package/components/icon/icons/growth.component.js +1 -1
- package/components/icon/icons/growth.js +1 -1
- package/components/icon/icons/headphones.component.js +1 -1
- package/components/icon/icons/headphones.js +1 -1
- package/components/icon/icons/heart-beat.component.js +1 -1
- package/components/icon/icons/heart-beat.js +1 -1
- package/components/icon/icons/heart.component.js +1 -1
- package/components/icon/icons/heart.js +1 -1
- package/components/icon/icons/history.component.js +1 -1
- package/components/icon/icons/history.js +1 -1
- package/components/icon/icons/home-energy-one.component.js +1 -1
- package/components/icon/icons/home-energy-one.js +1 -1
- package/components/icon/icons/home-energy-two.component.js +1 -1
- package/components/icon/icons/home-energy-two.js +1 -1
- package/components/icon/icons/home-open.component.js +1 -1
- package/components/icon/icons/home-open.js +1 -1
- package/components/icon/icons/home-roof.component.js +1 -1
- package/components/icon/icons/home-roof.js +1 -1
- package/components/icon/icons/horizontal-alignment-bottom.component.js +1 -1
- package/components/icon/icons/horizontal-alignment-bottom.js +1 -1
- package/components/icon/icons/hourglass.component.js +1 -1
- package/components/icon/icons/hourglass.js +1 -1
- package/components/icon/icons/images.component.js +1 -1
- package/components/icon/icons/images.js +1 -1
- package/components/icon/icons/inbox-empty.component.js +1 -1
- package/components/icon/icons/inbox-empty.js +1 -1
- package/components/icon/icons/industry.component.js +1 -1
- package/components/icon/icons/industry.js +1 -1
- package/components/icon/icons/jpg.component.js +1 -1
- package/components/icon/icons/jpg.js +1 -1
- package/components/icon/icons/key.component.js +1 -1
- package/components/icon/icons/key.js +1 -1
- package/components/icon/icons/knife-spoon.component.js +1 -1
- package/components/icon/icons/knife-spoon.js +1 -1
- package/components/icon/icons/lab.component.js +1 -1
- package/components/icon/icons/lab.js +1 -1
- package/components/icon/icons/law.component.js +1 -1
- package/components/icon/icons/law.js +1 -1
- package/components/icon/icons/leisure.component.js +1 -1
- package/components/icon/icons/leisure.js +1 -1
- package/components/icon/icons/light-bulb-simple.component.js +1 -1
- package/components/icon/icons/light-bulb-simple.js +1 -1
- package/components/icon/icons/lightning.component.js +1 -1
- package/components/icon/icons/lightning.js +1 -1
- package/components/icon/icons/line-chart-four.component.js +1 -1
- package/components/icon/icons/line-chart-four.js +1 -1
- package/components/icon/icons/line-chart-one.component.js +1 -1
- package/components/icon/icons/line-chart-one.js +1 -1
- package/components/icon/icons/line-chart-three.component.js +1 -1
- package/components/icon/icons/line-chart-three.js +1 -1
- package/components/icon/icons/line-chart-two.component.js +1 -1
- package/components/icon/icons/line-chart-two.js +1 -1
- package/components/icon/icons/lock.component.js +1 -1
- package/components/icon/icons/lock.js +1 -1
- package/components/icon/icons/macbook-air.component.js +1 -1
- package/components/icon/icons/macbook-air.js +1 -1
- package/components/icon/icons/magnifying-glass.component.js +1 -1
- package/components/icon/icons/magnifying-glass.js +1 -1
- package/components/icon/icons/map-pin.component.js +1 -1
- package/components/icon/icons/map-pin.js +1 -1
- package/components/icon/icons/megaphone.component.js +1 -1
- package/components/icon/icons/megaphone.js +1 -1
- package/components/icon/icons/menu-sidebar.component.js +1 -1
- package/components/icon/icons/menu-sidebar.js +1 -1
- package/components/icon/icons/mic-off.component.js +1 -1
- package/components/icon/icons/mic-off.js +1 -1
- package/components/icon/icons/mic-on.component.js +1 -1
- package/components/icon/icons/mic-on.js +1 -1
- package/components/icon/icons/minimize.component.js +1 -1
- package/components/icon/icons/minimize.js +1 -1
- package/components/icon/icons/minus-large.component.js +1 -1
- package/components/icon/icons/minus-large.js +1 -1
- package/components/icon/icons/minus-small.component.js +1 -1
- package/components/icon/icons/minus-small.js +1 -1
- package/components/icon/icons/money-hand.component.js +1 -1
- package/components/icon/icons/money-hand.js +1 -1
- package/components/icon/icons/moneybag.component.js +1 -1
- package/components/icon/icons/moneybag.js +1 -1
- package/components/icon/icons/moon.component.js +1 -1
- package/components/icon/icons/moon.js +1 -1
- package/components/icon/icons/mute.component.js +1 -1
- package/components/icon/icons/mute.js +1 -1
- package/components/icon/icons/newspaper.component.js +1 -1
- package/components/icon/icons/newspaper.js +1 -1
- package/components/icon/icons/office.component.js +1 -1
- package/components/icon/icons/office.js +1 -1
- package/components/icon/icons/page-add.component.js +1 -1
- package/components/icon/icons/page-add.js +1 -1
- package/components/icon/icons/paper-plane-top-right.component.js +1 -1
- package/components/icon/icons/paper-plane-top-right.js +1 -1
- package/components/icon/icons/paperclip.component.js +1 -1
- package/components/icon/icons/paperclip.js +1 -1
- package/components/icon/icons/pause.component.js +1 -1
- package/components/icon/icons/pause.js +1 -1
- package/components/icon/icons/pdf.component.js +1 -1
- package/components/icon/icons/pdf.js +1 -1
- package/components/icon/icons/pencil-sign.component.js +1 -1
- package/components/icon/icons/pencil-sign.js +1 -1
- package/components/icon/icons/pencil-sparkle.component.js +1 -1
- package/components/icon/icons/pencil-sparkle.js +1 -1
- package/components/icon/icons/pencil-wave.component.js +1 -1
- package/components/icon/icons/pencil-wave.js +1 -1
- package/components/icon/icons/pension.component.js +1 -1
- package/components/icon/icons/pension.js +1 -1
- package/components/icon/icons/people-a11y.component.js +1 -1
- package/components/icon/icons/people-a11y.js +1 -1
- package/components/icon/icons/people-add.component.js +1 -1
- package/components/icon/icons/people-add.js +1 -1
- package/components/icon/icons/people-added.component.js +1 -1
- package/components/icon/icons/people-added.js +1 -1
- package/components/icon/icons/people-circle.component.js +1 -1
- package/components/icon/icons/people-circle.js +1 -1
- package/components/icon/icons/people-copy.component.js +1 -1
- package/components/icon/icons/people-copy.js +1 -1
- package/components/icon/icons/people-profile.component.js +1 -1
- package/components/icon/icons/people-profile.js +1 -1
- package/components/icon/icons/people-remove.component.js +1 -1
- package/components/icon/icons/people-remove.js +1 -1
- package/components/icon/icons/people.component.js +1 -1
- package/components/icon/icons/people.js +1 -1
- package/components/icon/icons/percent.component.js +1 -1
- package/components/icon/icons/percent.js +1 -1
- package/components/icon/icons/phone.component.js +1 -1
- package/components/icon/icons/phone.js +1 -1
- package/components/icon/icons/pie-chart.component.js +1 -1
- package/components/icon/icons/pie-chart.js +1 -1
- package/components/icon/icons/piggy-bank.component.js +1 -1
- package/components/icon/icons/piggy-bank.js +1 -1
- package/components/icon/icons/pin.component.js +1 -1
- package/components/icon/icons/pin.js +1 -1
- package/components/icon/icons/pinch.component.js +1 -1
- package/components/icon/icons/pinch.js +1 -1
- package/components/icon/icons/play-circle.component.js +1 -1
- package/components/icon/icons/play-circle.js +1 -1
- package/components/icon/icons/play.component.js +1 -1
- package/components/icon/icons/play.js +1 -1
- package/components/icon/icons/plus-large.component.js +1 -1
- package/components/icon/icons/plus-large.js +1 -1
- package/components/icon/icons/plus-small.component.js +1 -1
- package/components/icon/icons/plus-small.js +1 -1
- package/components/icon/icons/png.component.js +1 -1
- package/components/icon/icons/png.js +1 -1
- package/components/icon/icons/poop.component.js +1 -1
- package/components/icon/icons/poop.js +1 -1
- package/components/icon/icons/postcard.component.js +1 -1
- package/components/icon/icons/postcard.js +1 -1
- package/components/icon/icons/pound.component.js +1 -1
- package/components/icon/icons/pound.js +1 -1
- package/components/icon/icons/power-plant.component.js +1 -1
- package/components/icon/icons/power-plant.js +1 -1
- package/components/icon/icons/power.component.js +1 -1
- package/components/icon/icons/power.js +1 -1
- package/components/icon/icons/printer.component.js +1 -1
- package/components/icon/icons/printer.js +1 -1
- package/components/icon/icons/push.component.js +1 -1
- package/components/icon/icons/push.js +1 -1
- package/components/icon/icons/qr-code.component.js +1 -1
- package/components/icon/icons/qr-code.js +1 -1
- package/components/icon/icons/rainy.component.js +1 -1
- package/components/icon/icons/rainy.js +1 -1
- package/components/icon/icons/raising-hand.component.js +1 -1
- package/components/icon/icons/raising-hand.js +1 -1
- package/components/icon/icons/reading-list.component.js +1 -1
- package/components/icon/icons/reading-list.js +1 -1
- package/components/icon/icons/receipt-bill.component.js +1 -1
- package/components/icon/icons/receipt-bill.js +1 -1
- package/components/icon/icons/receiption-bell.component.js +1 -1
- package/components/icon/icons/receiption-bell.js +1 -1
- package/components/icon/icons/record.component.js +1 -1
- package/components/icon/icons/record.js +1 -1
- package/components/icon/icons/refund.component.js +1 -1
- package/components/icon/icons/refund.js +1 -1
- package/components/icon/icons/robot.component.js +1 -1
- package/components/icon/icons/robot.js +1 -1
- package/components/icon/icons/rocket.component.js +1 -1
- package/components/icon/icons/rocket.js +1 -1
- package/components/icon/icons/run-shortcut.component.js +1 -1
- package/components/icon/icons/run-shortcut.js +1 -1
- package/components/icon/icons/safari.component.js +1 -1
- package/components/icon/icons/safari.js +1 -1
- package/components/icon/icons/satellite.component.js +1 -1
- package/components/icon/icons/satellite.js +1 -1
- package/components/icon/icons/school.component.js +1 -1
- package/components/icon/icons/school.js +1 -1
- package/components/icon/icons/scissors.component.js +1 -1
- package/components/icon/icons/scissors.js +1 -1
- package/components/icon/icons/search-menu.component.js +1 -1
- package/components/icon/icons/search-menu.js +1 -1
- package/components/icon/icons/settings-gear.component.js +1 -1
- package/components/icon/icons/settings-gear.js +1 -1
- package/components/icon/icons/settings-slider-hor.component.js +1 -1
- package/components/icon/icons/settings-slider-hor.js +1 -1
- package/components/icon/icons/settings-slider-ver.component.js +1 -1
- package/components/icon/icons/settings-slider-ver.js +1 -1
- package/components/icon/icons/shapes.component.js +1 -1
- package/components/icon/icons/shapes.js +1 -1
- package/components/icon/icons/share.component.js +1 -1
- package/components/icon/icons/share.js +1 -1
- package/components/icon/icons/shield-checked.component.js +1 -1
- package/components/icon/icons/shield-checked.js +1 -1
- package/components/icon/icons/shield-crossed.component.js +1 -1
- package/components/icon/icons/shield-crossed.js +1 -1
- package/components/icon/icons/shield.component.js +1 -1
- package/components/icon/icons/shield.js +1 -1
- package/components/icon/icons/shopping-bag.component.js +1 -1
- package/components/icon/icons/shopping-bag.js +1 -1
- package/components/icon/icons/signature.component.js +1 -1
- package/components/icon/icons/signature.js +1 -1
- package/components/icon/icons/smartwatch.component.js +1 -1
- package/components/icon/icons/smartwatch.js +1 -1
- package/components/icon/icons/solar.component.js +1 -1
- package/components/icon/icons/solar.js +1 -1
- package/components/icon/icons/sort-ascending.component.js +1 -1
- package/components/icon/icons/sort-ascending.js +1 -1
- package/components/icon/icons/sort-descending.component.js +1 -1
- package/components/icon/icons/sort-descending.js +1 -1
- package/components/icon/icons/sort-down.component.js +1 -1
- package/components/icon/icons/sort-down.js +1 -1
- package/components/icon/icons/sort-up.component.js +1 -1
- package/components/icon/icons/sort-up.js +1 -1
- package/components/icon/icons/sort.component.js +1 -1
- package/components/icon/icons/sort.js +1 -1
- package/components/icon/icons/square-arrow-top-right.component.js +1 -1
- package/components/icon/icons/square-arrow-top-right.js +1 -1
- package/components/icon/icons/square-behind-square.component.js +1 -1
- package/components/icon/icons/square-behind-square.js +1 -1
- package/components/icon/icons/square-grid-circle.component.js +1 -1
- package/components/icon/icons/square-grid-circle.js +1 -1
- package/components/icon/icons/square-placeholder.component.js +1 -1
- package/components/icon/icons/square-placeholder.js +1 -1
- package/components/icon/icons/star.component.js +1 -1
- package/components/icon/icons/star.js +1 -1
- package/components/icon/icons/store.component.js +1 -1
- package/components/icon/icons/store.js +1 -1
- package/components/icon/icons/sun.component.js +1 -1
- package/components/icon/icons/sun.js +1 -1
- package/components/icon/icons/sunset-arrow-down.component.js +1 -1
- package/components/icon/icons/sunset-arrow-down.js +1 -1
- package/components/icon/icons/tag.component.js +1 -1
- package/components/icon/icons/tag.js +1 -1
- package/components/icon/icons/target-arrow.component.js +1 -1
- package/components/icon/icons/target-arrow.js +1 -1
- package/components/icon/icons/television.component.js +1 -1
- package/components/icon/icons/television.js +1 -1
- package/components/icon/icons/tennis.component.js +1 -1
- package/components/icon/icons/tennis.js +1 -1
- package/components/icon/icons/text-edit.component.js +1 -1
- package/components/icon/icons/text-edit.js +1 -1
- package/components/icon/icons/thermostat.component.js +1 -1
- package/components/icon/icons/thermostat.js +1 -1
- package/components/icon/icons/thumbs-down.component.js +1 -1
- package/components/icon/icons/thumbs-down.js +1 -1
- package/components/icon/icons/thumbs-up.component.js +1 -1
- package/components/icon/icons/thumbs-up.js +1 -1
- package/components/icon/icons/ticket.component.js +1 -1
- package/components/icon/icons/ticket.js +1 -1
- package/components/icon/icons/trading-view-candles.component.js +1 -1
- package/components/icon/icons/trading-view-candles.js +1 -1
- package/components/icon/icons/trash-can.component.js +1 -1
- package/components/icon/icons/trash-can.js +1 -1
- package/components/icon/icons/tree.component.js +1 -1
- package/components/icon/icons/tree.js +1 -1
- package/components/icon/icons/trending-five.component.js +1 -1
- package/components/icon/icons/trending-five.js +1 -1
- package/components/icon/icons/trending-four.component.js +1 -1
- package/components/icon/icons/trending-four.js +1 -1
- package/components/icon/icons/trending-one.component.js +1 -1
- package/components/icon/icons/trending-one.js +1 -1
- package/components/icon/icons/trending-three.component.js +1 -1
- package/components/icon/icons/trending-three.js +1 -1
- package/components/icon/icons/trending-two.component.js +1 -1
- package/components/icon/icons/trending-two.js +1 -1
- package/components/icon/icons/triangle-exclamation.component.js +1 -1
- package/components/icon/icons/triangle-exclamation.js +1 -1
- package/components/icon/icons/truck.component.js +1 -1
- package/components/icon/icons/truck.js +1 -1
- package/components/icon/icons/umbrella-security.component.js +1 -1
- package/components/icon/icons/umbrella-security.js +1 -1
- package/components/icon/icons/unlocked.component.js +1 -1
- package/components/icon/icons/unlocked.js +1 -1
- package/components/icon/icons/volume-full.component.js +1 -1
- package/components/icon/icons/volume-full.js +1 -1
- package/components/icon/icons/volume-half.component.js +1 -1
- package/components/icon/icons/volume-half.js +1 -1
- package/components/icon/icons/volume-off.component.js +1 -1
- package/components/icon/icons/volume-off.js +1 -1
- package/components/icon/icons/wallet.component.js +1 -1
- package/components/icon/icons/wallet.js +1 -1
- package/components/icon/icons/warning-sign.component.js +1 -1
- package/components/icon/icons/warning-sign.js +1 -1
- package/components/icon/icons/wifi-full.component.js +1 -1
- package/components/icon/icons/wifi-full.js +1 -1
- package/components/icon/icons/youtube.component.js +1 -1
- package/components/icon/icons/youtube.js +1 -1
- package/components/icon/icons/zap.component.js +1 -1
- package/components/icon/icons/zap.js +1 -1
- package/components/icon/icons/zoom-in.component.js +1 -1
- package/components/icon/icons/zoom-in.js +1 -1
- package/components/icon/icons/zoom-out.component.js +1 -1
- package/components/icon/icons/zoom-out.js +1 -1
- package/components/img/img.component.js +1 -1
- package/components/img/img.js +1 -1
- package/components/img/img.styles.js +1 -1
- package/components/input/input.component.js +21 -42
- package/components/input/input.js +1 -1
- package/components/input/input.styles.js +1 -1
- package/components/input/input.trans.styles.js +1 -1
- package/components/link/link.component.js +5 -5
- package/components/link/link.js +1 -1
- package/components/link/link.styles.js +5 -5
- package/components/list/list-item/list-item.component.js +1 -1
- package/components/list/list-item/list-item.js +1 -1
- package/components/list/list.component.js +3 -5
- package/components/list/list.js +1 -1
- package/components/list/list.styles.js +1 -1
- package/components/mask/mask.component.js +1 -1
- package/components/mask/mask.js +1 -1
- package/components/mask/mask.styles.js +1 -1
- package/components/menu-button/menu-button.component.js +9 -11
- package/components/menu-button/menu-button.js +1 -1
- package/components/menu-button/menu-button.styles.js +11 -11
- package/components/pagination/pagination.component.js +54 -91
- package/components/pagination/pagination.js +1 -1
- package/components/pagination/pagination.styles.js +1 -1
- package/components/popover/backdrop.component.js +1 -1
- package/components/popover/backdrop.js +1 -1
- package/components/popover/popover.component.js +27 -47
- package/components/popover/popover.js +1 -1
- package/components/popover/popover.styles.js +9 -4
- package/components/popover/popover.trans.styles.js +1 -1
- package/components/radio/radio-group/radio-group.component.js +25 -51
- package/components/radio/radio-group/radio-group.js +1 -1
- package/components/radio/radio-group/radio-group.styles.js +1 -1
- package/components/radio/radio.component.js +3 -5
- package/components/radio/radio.js +1 -1
- package/components/radio/radio.styles.js +1 -1
- package/components/rich-text/rich-text.component.js +5 -9
- package/components/rich-text/rich-text.js +1 -1
- package/components/rich-text/rich-text.styles.js +1 -1
- package/components/segmented-control/segment/segment.component.js +1 -1
- package/components/segmented-control/segment/segment.js +1 -1
- package/components/segmented-control/segment/segment.styles.js +5 -5
- package/components/segmented-control/segment/segment.trans.styles.js +1 -1
- package/components/segmented-control/segmented-control.component.js +10 -14
- package/components/segmented-control/segmented-control.js +1 -1
- package/components/segmented-control/segmented-control.styles.js +3 -3
- package/components/segmented-control/segmented-control.trans.styles.js +1 -1
- package/components/select/select.component.js +36 -54
- package/components/select/select.js +1 -1
- package/components/select/select.styles.js +3 -3
- package/components/select/select.trans.styles.js +1 -1
- package/components/sensitive/account/sensitive-account.component.js +1 -1
- package/components/sensitive/account/sensitive-account.js +1 -1
- package/components/sensitive/date/sensitive-date.component.js +1 -1
- package/components/sensitive/date/sensitive-date.js +1 -1
- package/components/sensitive/number/sensitive-number.component.js +1 -1
- package/components/sensitive/number/sensitive-number.js +1 -1
- package/components/signal/signal.component.js +1 -1
- package/components/signal/signal.js +1 -1
- package/components/signal/signal.styles.js +3 -3
- package/components/spinner/spinner.component.js +14 -23
- package/components/spinner/spinner.js +1 -1
- package/components/spinner/spinner.styles.js +9 -7
- package/components/switch/switch.component.js +12 -27
- package/components/switch/switch.js +1 -1
- package/components/switch/switch.styles.js +5 -7
- package/components/table/index.js +1 -1
- package/components/table/table.component.js +245 -480
- package/components/table/table.imports.js +1 -1
- package/components/table/table.js +1 -1
- package/components/table/table.stories.data.js +7 -13
- package/components/table/table.styles.js +19 -8
- package/components/table/table.types.js +3 -5
- package/components/tabs/tab/tab.component.js +11 -13
- package/components/tabs/tab/tab.js +1 -1
- package/components/tabs/tab/tab.styles.js +6 -6
- package/components/tabs/tab-panel/tab-panel.component.js +8 -8
- package/components/tabs/tab-panel/tab-panel.js +1 -1
- package/components/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/components/tabs/tabs.component.js +43 -71
- package/components/tabs/tabs.js +1 -1
- package/components/tabs/tabs.styles.js +5 -5
- package/components/text/default-typography.styles.js +1 -1
- package/components/text/text.component.js +1 -1
- package/components/text/text.js +1 -1
- package/components/text/text.styles.js +1 -1
- package/components/textarea/textarea.component.js +13 -26
- package/components/textarea/textarea.js +1 -1
- package/components/textarea/textarea.styles.js +5 -8
- package/components/theme/theme.component.js +1 -1
- package/components/theme/theme.js +1 -1
- package/components/theme/theme.trans.styles.js +1 -1
- package/components/video/video.component.js +1 -1
- package/components/video/video.js +1 -1
- package/components/video/video.styles.js +1 -1
- package/custom-elements.json +11724 -11724
- package/gds-element.js +6 -6
- package/generated/locale-codes.js +1 -1
- package/generated/locales/da.js +1 -1
- package/generated/locales/de.js +1 -1
- package/generated/locales/fi.js +1 -1
- package/generated/locales/fr.js +1 -1
- package/generated/locales/it.js +1 -1
- package/generated/locales/nl.js +1 -1
- package/generated/locales/no.js +1 -1
- package/generated/locales/sv.js +1 -1
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/mcp/tokens.json +1 -1
- package/generated/react/alert/index.js +1 -1
- package/generated/react/avatar/index.js +1 -1
- package/generated/react/avatar-group/index.js +1 -1
- package/generated/react/backdrop/index.js +1 -1
- package/generated/react/badge/index.js +1 -1
- package/generated/react/blur/index.js +1 -1
- package/generated/react/breadcrumb/index.js +1 -1
- package/generated/react/breadcrumbs/index.js +1 -1
- package/generated/react/button/index.js +1 -1
- package/generated/react/calendar/index.js +1 -1
- package/generated/react/card/index.js +1 -1
- package/generated/react/card-linked/index.js +1 -1
- package/generated/react/card-pattern-01/index.js +1 -1
- package/generated/react/checkbox/index.js +1 -1
- package/generated/react/checkbox-group/index.js +1 -1
- package/generated/react/coachmark/index.js +1 -1
- package/generated/react/context-menu/index.js +1 -1
- package/generated/react/datepicker/index.js +1 -1
- package/generated/react/details/index.js +1 -1
- package/generated/react/dialog/index.js +1 -1
- package/generated/react/div/index.js +1 -1
- package/generated/react/divider/index.js +1 -1
- package/generated/react/dropdown/index.js +1 -1
- package/generated/react/fab/index.js +1 -1
- package/generated/react/filter-chip/index.js +1 -1
- package/generated/react/filter-chips/index.js +1 -1
- package/generated/react/flex/index.js +1 -1
- package/generated/react/form-summary/index.js +1 -1
- package/generated/react/formatted-account/index.js +1 -1
- package/generated/react/formatted-date/index.js +1 -1
- package/generated/react/formatted-number/index.js +1 -1
- package/generated/react/grid/index.js +1 -1
- package/generated/react/grouped-list/index.js +1 -1
- package/generated/react/icons/icon-ai/index.js +1 -1
- package/generated/react/icons/icon-airplane-up/index.js +1 -1
- package/generated/react/icons/icon-archive/index.js +1 -1
- package/generated/react/icons/icon-arrow/index.js +1 -1
- package/generated/react/icons/icon-arrow-bottom-top/index.js +1 -1
- package/generated/react/icons/icon-arrow-box-left/index.js +1 -1
- package/generated/react/icons/icon-arrow-box-left-alt/index.js +1 -1
- package/generated/react/icons/icon-arrow-box-right/index.js +1 -1
- package/generated/react/icons/icon-arrow-down/index.js +1 -1
- package/generated/react/icons/icon-arrow-inbox/index.js +1 -1
- package/generated/react/icons/icon-arrow-left/index.js +1 -1
- package/generated/react/icons/icon-arrow-left-right/index.js +1 -1
- package/generated/react/icons/icon-arrow-out-of-box/index.js +1 -1
- package/generated/react/icons/icon-arrow-right/index.js +1 -1
- package/generated/react/icons/icon-arrow-right-circle/index.js +1 -1
- package/generated/react/icons/icon-arrow-right-down-circle/index.js +1 -1
- package/generated/react/icons/icon-arrow-right-up-circle/index.js +1 -1
- package/generated/react/icons/icon-arrow-rotate-clockwise/index.js +1 -1
- package/generated/react/icons/icon-arrow-rotate-counter-clockwise/index.js +1 -1
- package/generated/react/icons/icon-arrow-rotate-left-right/index.js +1 -1
- package/generated/react/icons/icon-arrow-rotate-right-left/index.js +1 -1
- package/generated/react/icons/icon-arrow-share-left/index.js +1 -1
- package/generated/react/icons/icon-arrow-share-right/index.js +1 -1
- package/generated/react/icons/icon-arrow-split/index.js +1 -1
- package/generated/react/icons/icon-arrow-up/index.js +1 -1
- package/generated/react/icons/icon-arrow-wall-down/index.js +1 -1
- package/generated/react/icons/icon-arrow-wall-left/index.js +1 -1
- package/generated/react/icons/icon-arrow-wall-right/index.js +1 -1
- package/generated/react/icons/icon-arrow-wall-up/index.js +1 -1
- package/generated/react/icons/icon-arrows-repeat-right/index.js +1 -1
- package/generated/react/icons/icon-asterisk/index.js +1 -1
- package/generated/react/icons/icon-at/index.js +1 -1
- package/generated/react/icons/icon-back/index.js +1 -1
- package/generated/react/icons/icon-backward/index.js +1 -1
- package/generated/react/icons/icon-bag/index.js +1 -1
- package/generated/react/icons/icon-bank/index.js +1 -1
- package/generated/react/icons/icon-banknote/index.js +1 -1
- package/generated/react/icons/icon-banknote-2/index.js +1 -1
- package/generated/react/icons/icon-barcode/index.js +1 -1
- package/generated/react/icons/icon-bars-three/index.js +1 -1
- package/generated/react/icons/icon-bars-two/index.js +1 -1
- package/generated/react/icons/icon-basket/index.js +1 -1
- package/generated/react/icons/icon-battery-loading/index.js +1 -1
- package/generated/react/icons/icon-bell/index.js +1 -1
- package/generated/react/icons/icon-block/index.js +1 -1
- package/generated/react/icons/icon-book/index.js +1 -1
- package/generated/react/icons/icon-bookmark/index.js +1 -1
- package/generated/react/icons/icon-bookmark-check/index.js +1 -1
- package/generated/react/icons/icon-bookmark-delete/index.js +1 -1
- package/generated/react/icons/icon-bookmark-plus/index.js +1 -1
- package/generated/react/icons/icon-bookmark-remove/index.js +1 -1
- package/generated/react/icons/icon-books/index.js +1 -1
- package/generated/react/icons/icon-brand-app-store/index.js +1 -1
- package/generated/react/icons/icon-brand-apple-music/index.js +1 -1
- package/generated/react/icons/icon-brand-bankid/index.js +1 -1
- package/generated/react/icons/icon-brand-chrome/index.js +1 -1
- package/generated/react/icons/icon-brand-facebook/index.js +1 -1
- package/generated/react/icons/icon-brand-figma/index.js +1 -1
- package/generated/react/icons/icon-brand-firefox/index.js +1 -1
- package/generated/react/icons/icon-brand-github/index.js +1 -1
- package/generated/react/icons/icon-brand-green/index.js +1 -1
- package/generated/react/icons/icon-brand-instagram/index.js +1 -1
- package/generated/react/icons/icon-brand-linkedin/index.js +1 -1
- package/generated/react/icons/icon-brand-play-store/index.js +1 -1
- package/generated/react/icons/icon-brand-rss-feed/index.js +1 -1
- package/generated/react/icons/icon-brand-seb/index.js +1 -1
- package/generated/react/icons/icon-brand-spotify/index.js +1 -1
- package/generated/react/icons/icon-brand-storybook/index.js +1 -1
- package/generated/react/icons/icon-brand-swish-word/index.js +1 -1
- package/generated/react/icons/icon-brand-x/index.js +1 -1
- package/generated/react/icons/icon-brush/index.js +1 -1
- package/generated/react/icons/icon-bubble-annotation/index.js +1 -1
- package/generated/react/icons/icon-bubbles/index.js +1 -1
- package/generated/react/icons/icon-buildings/index.js +1 -1
- package/generated/react/icons/icon-bullet-list/index.js +1 -1
- package/generated/react/icons/icon-calculator/index.js +1 -1
- package/generated/react/icons/icon-calendar/index.js +1 -1
- package/generated/react/icons/icon-calendar-check/index.js +1 -1
- package/generated/react/icons/icon-calendar-repeat/index.js +1 -1
- package/generated/react/icons/icon-calender-add/index.js +1 -1
- package/generated/react/icons/icon-call/index.js +1 -1
- package/generated/react/icons/icon-car/index.js +1 -1
- package/generated/react/icons/icon-carussel/index.js +1 -1
- package/generated/react/icons/icon-chain-link/index.js +1 -1
- package/generated/react/icons/icon-chain-link-broken/index.js +1 -1
- package/generated/react/icons/icon-chart-two/index.js +1 -1
- package/generated/react/icons/icon-checklist/index.js +1 -1
- package/generated/react/icons/icon-checkmark/index.js +1 -1
- package/generated/react/icons/icon-chevron-bottom/index.js +1 -1
- package/generated/react/icons/icon-chevron-double-down/index.js +1 -1
- package/generated/react/icons/icon-chevron-double-left/index.js +1 -1
- package/generated/react/icons/icon-chevron-double-right/index.js +1 -1
- package/generated/react/icons/icon-chevron-double-up/index.js +1 -1
- package/generated/react/icons/icon-chevron-down-small/index.js +1 -1
- package/generated/react/icons/icon-chevron-grabber-vertical/index.js +1 -1
- package/generated/react/icons/icon-chevron-grabber-vertical-reversed/index.js +1 -1
- package/generated/react/icons/icon-chevron-left/index.js +1 -1
- package/generated/react/icons/icon-chevron-left-small/index.js +1 -1
- package/generated/react/icons/icon-chevron-right/index.js +1 -1
- package/generated/react/icons/icon-chevron-right-small/index.js +1 -1
- package/generated/react/icons/icon-chevron-top/index.js +1 -1
- package/generated/react/icons/icon-chevron-top-small/index.js +1 -1
- package/generated/react/icons/icon-circle-ban/index.js +1 -1
- package/generated/react/icons/icon-circle-check/index.js +1 -1
- package/generated/react/icons/icon-circle-dots/index.js +1 -1
- package/generated/react/icons/icon-circle-info/index.js +1 -1
- package/generated/react/icons/icon-circle-minus/index.js +1 -1
- package/generated/react/icons/icon-circle-placeholder-on/index.js +1 -1
- package/generated/react/icons/icon-circle-plus/index.js +1 -1
- package/generated/react/icons/icon-circle-questionmark/index.js +1 -1
- package/generated/react/icons/icon-circle-x/index.js +1 -1
- package/generated/react/icons/icon-circles-three/index.js +1 -1
- package/generated/react/icons/icon-clock/index.js +1 -1
- package/generated/react/icons/icon-cloud-download/index.js +1 -1
- package/generated/react/icons/icon-cloud-upload/index.js +1 -1
- package/generated/react/icons/icon-cloudy-sun/index.js +1 -1
- package/generated/react/icons/icon-code/index.js +1 -1
- package/generated/react/icons/icon-code-brackets/index.js +1 -1
- package/generated/react/icons/icon-compass-round/index.js +1 -1
- package/generated/react/icons/icon-cookies/index.js +1 -1
- package/generated/react/icons/icon-copy/index.js +1 -1
- package/generated/react/icons/icon-credit-card/index.js +1 -1
- package/generated/react/icons/icon-credit-card-add/index.js +1 -1
- package/generated/react/icons/icon-cross-large/index.js +1 -1
- package/generated/react/icons/icon-cross-small/index.js +1 -1
- package/generated/react/icons/icon-cup-hot/index.js +1 -1
- package/generated/react/icons/icon-cursor/index.js +1 -1
- package/generated/react/icons/icon-details/index.js +1 -1
- package/generated/react/icons/icon-devices/index.js +1 -1
- package/generated/react/icons/icon-direction/index.js +1 -1
- package/generated/react/icons/icon-dollar/index.js +1 -1
- package/generated/react/icons/icon-dot-grid-one-horizontal/index.js +1 -1
- package/generated/react/icons/icon-dot-grid-one-vertical/index.js +1 -1
- package/generated/react/icons/icon-dot-grid-three/index.js +1 -1
- package/generated/react/icons/icon-dot-grid-two/index.js +1 -1
- package/generated/react/icons/icon-email/index.js +1 -1
- package/generated/react/icons/icon-emoji-angry/index.js +1 -1
- package/generated/react/icons/icon-emoji-neutral/index.js +1 -1
- package/generated/react/icons/icon-emoji-sad/index.js +1 -1
- package/generated/react/icons/icon-emoji-smile/index.js +1 -1
- package/generated/react/icons/icon-emoji-smiley/index.js +1 -1
- package/generated/react/icons/icon-euro/index.js +1 -1
- package/generated/react/icons/icon-expand/index.js +1 -1
- package/generated/react/icons/icon-eye-open/index.js +1 -1
- package/generated/react/icons/icon-eye-slash/index.js +1 -1
- package/generated/react/icons/icon-fashion/index.js +1 -1
- package/generated/react/icons/icon-fast-forward/index.js +1 -1
- package/generated/react/icons/icon-file-bend/index.js +1 -1
- package/generated/react/icons/icon-file-chart/index.js +1 -1
- package/generated/react/icons/icon-file-text/index.js +1 -1
- package/generated/react/icons/icon-files/index.js +1 -1
- package/generated/react/icons/icon-filter/index.js +1 -1
- package/generated/react/icons/icon-flag/index.js +1 -1
- package/generated/react/icons/icon-floppy-disk/index.js +1 -1
- package/generated/react/icons/icon-focus/index.js +1 -1
- package/generated/react/icons/icon-folder/index.js +1 -1
- package/generated/react/icons/icon-folder-add-right/index.js +1 -1
- package/generated/react/icons/icon-fullscreen/index.js +1 -1
- package/generated/react/icons/icon-gift/index.js +1 -1
- package/generated/react/icons/icon-globus/index.js +1 -1
- package/generated/react/icons/icon-graduate-cap/index.js +1 -1
- package/generated/react/icons/icon-green-power/index.js +1 -1
- package/generated/react/icons/icon-group/index.js +1 -1
- package/generated/react/icons/icon-growth/index.js +1 -1
- package/generated/react/icons/icon-headphones/index.js +1 -1
- package/generated/react/icons/icon-heart/index.js +1 -1
- package/generated/react/icons/icon-heart-beat/index.js +1 -1
- package/generated/react/icons/icon-history/index.js +1 -1
- package/generated/react/icons/icon-home-energy-one/index.js +1 -1
- package/generated/react/icons/icon-home-energy-two/index.js +1 -1
- package/generated/react/icons/icon-home-open/index.js +1 -1
- package/generated/react/icons/icon-home-roof/index.js +1 -1
- package/generated/react/icons/icon-horizontal-alignment-bottom/index.js +1 -1
- package/generated/react/icons/icon-hourglass/index.js +1 -1
- package/generated/react/icons/icon-images/index.js +1 -1
- package/generated/react/icons/icon-inbox-empty/index.js +1 -1
- package/generated/react/icons/icon-industry/index.js +1 -1
- package/generated/react/icons/icon-jpg/index.js +1 -1
- package/generated/react/icons/icon-key/index.js +1 -1
- package/generated/react/icons/icon-knife-spoon/index.js +1 -1
- package/generated/react/icons/icon-lab/index.js +1 -1
- package/generated/react/icons/icon-law/index.js +1 -1
- package/generated/react/icons/icon-leisure/index.js +1 -1
- package/generated/react/icons/icon-light-bulb-simple/index.js +1 -1
- package/generated/react/icons/icon-lightning/index.js +1 -1
- package/generated/react/icons/icon-line-chart-four/index.js +1 -1
- package/generated/react/icons/icon-line-chart-one/index.js +1 -1
- package/generated/react/icons/icon-line-chart-three/index.js +1 -1
- package/generated/react/icons/icon-line-chart-two/index.js +1 -1
- package/generated/react/icons/icon-lock/index.js +1 -1
- package/generated/react/icons/icon-macbook-air/index.js +1 -1
- package/generated/react/icons/icon-magnifying-glass/index.js +1 -1
- package/generated/react/icons/icon-map-pin/index.js +1 -1
- package/generated/react/icons/icon-megaphone/index.js +1 -1
- package/generated/react/icons/icon-menu-sidebar/index.js +1 -1
- package/generated/react/icons/icon-mic-off/index.js +1 -1
- package/generated/react/icons/icon-mic-on/index.js +1 -1
- package/generated/react/icons/icon-minimize/index.js +1 -1
- package/generated/react/icons/icon-minus-large/index.js +1 -1
- package/generated/react/icons/icon-minus-small/index.js +1 -1
- package/generated/react/icons/icon-money-hand/index.js +1 -1
- package/generated/react/icons/icon-moneybag/index.js +1 -1
- package/generated/react/icons/icon-moon/index.js +1 -1
- package/generated/react/icons/icon-mute/index.js +1 -1
- package/generated/react/icons/icon-newspaper/index.js +1 -1
- package/generated/react/icons/icon-office/index.js +1 -1
- package/generated/react/icons/icon-page-add/index.js +1 -1
- package/generated/react/icons/icon-paper-plane-top-right/index.js +1 -1
- package/generated/react/icons/icon-paperclip/index.js +1 -1
- package/generated/react/icons/icon-pause/index.js +1 -1
- package/generated/react/icons/icon-pdf/index.js +1 -1
- package/generated/react/icons/icon-pencil-sign/index.js +1 -1
- package/generated/react/icons/icon-pencil-sparkle/index.js +1 -1
- package/generated/react/icons/icon-pencil-wave/index.js +1 -1
- package/generated/react/icons/icon-pension/index.js +1 -1
- package/generated/react/icons/icon-people/index.js +1 -1
- package/generated/react/icons/icon-people-a11y/index.js +1 -1
- package/generated/react/icons/icon-people-add/index.js +1 -1
- package/generated/react/icons/icon-people-added/index.js +1 -1
- package/generated/react/icons/icon-people-circle/index.js +1 -1
- package/generated/react/icons/icon-people-copy/index.js +1 -1
- package/generated/react/icons/icon-people-profile/index.js +1 -1
- package/generated/react/icons/icon-people-remove/index.js +1 -1
- package/generated/react/icons/icon-percent/index.js +1 -1
- package/generated/react/icons/icon-phone/index.js +1 -1
- package/generated/react/icons/icon-pie-chart/index.js +1 -1
- package/generated/react/icons/icon-piggy-bank/index.js +1 -1
- package/generated/react/icons/icon-pin/index.js +1 -1
- package/generated/react/icons/icon-pinch/index.js +1 -1
- package/generated/react/icons/icon-play/index.js +1 -1
- package/generated/react/icons/icon-play-circle/index.js +1 -1
- package/generated/react/icons/icon-plus-large/index.js +1 -1
- package/generated/react/icons/icon-plus-small/index.js +1 -1
- package/generated/react/icons/icon-png/index.js +1 -1
- package/generated/react/icons/icon-poop/index.js +1 -1
- package/generated/react/icons/icon-postcard/index.js +1 -1
- package/generated/react/icons/icon-pound/index.js +1 -1
- package/generated/react/icons/icon-power/index.js +1 -1
- package/generated/react/icons/icon-power-plant/index.js +1 -1
- package/generated/react/icons/icon-printer/index.js +1 -1
- package/generated/react/icons/icon-push/index.js +1 -1
- package/generated/react/icons/icon-qr-code/index.js +1 -1
- package/generated/react/icons/icon-rainy/index.js +1 -1
- package/generated/react/icons/icon-raising-hand/index.js +1 -1
- package/generated/react/icons/icon-reading-list/index.js +1 -1
- package/generated/react/icons/icon-receipt-bill/index.js +1 -1
- package/generated/react/icons/icon-receiption-bell/index.js +1 -1
- package/generated/react/icons/icon-record/index.js +1 -1
- package/generated/react/icons/icon-refund/index.js +1 -1
- package/generated/react/icons/icon-robot/index.js +1 -1
- package/generated/react/icons/icon-rocket/index.js +1 -1
- package/generated/react/icons/icon-run-shortcut/index.js +1 -1
- package/generated/react/icons/icon-safari/index.js +1 -1
- package/generated/react/icons/icon-satellite/index.js +1 -1
- package/generated/react/icons/icon-school/index.js +1 -1
- package/generated/react/icons/icon-scissors/index.js +1 -1
- package/generated/react/icons/icon-search-menu/index.js +1 -1
- package/generated/react/icons/icon-settings-gear/index.js +1 -1
- package/generated/react/icons/icon-settings-slider-hor/index.js +1 -1
- package/generated/react/icons/icon-settings-slider-ver/index.js +1 -1
- package/generated/react/icons/icon-shapes/index.js +1 -1
- package/generated/react/icons/icon-share/index.js +1 -1
- package/generated/react/icons/icon-shield/index.js +1 -1
- package/generated/react/icons/icon-shield-checked/index.js +1 -1
- package/generated/react/icons/icon-shield-crossed/index.js +1 -1
- package/generated/react/icons/icon-shopping-bag/index.js +1 -1
- package/generated/react/icons/icon-signature/index.js +1 -1
- package/generated/react/icons/icon-smartwatch/index.js +1 -1
- package/generated/react/icons/icon-solar/index.js +1 -1
- package/generated/react/icons/icon-sort/index.js +1 -1
- package/generated/react/icons/icon-sort-ascending/index.js +1 -1
- package/generated/react/icons/icon-sort-descending/index.js +1 -1
- package/generated/react/icons/icon-sort-down/index.js +1 -1
- package/generated/react/icons/icon-sort-up/index.js +1 -1
- package/generated/react/icons/icon-square-arrow-top-right/index.js +1 -1
- package/generated/react/icons/icon-square-behind-square/index.js +1 -1
- package/generated/react/icons/icon-square-grid-circle/index.js +1 -1
- package/generated/react/icons/icon-square-placeholder/index.js +1 -1
- package/generated/react/icons/icon-star/index.js +1 -1
- package/generated/react/icons/icon-store/index.js +1 -1
- package/generated/react/icons/icon-sun/index.js +1 -1
- package/generated/react/icons/icon-sunset-arrow-down/index.js +1 -1
- package/generated/react/icons/icon-tag/index.js +1 -1
- package/generated/react/icons/icon-target-arrow/index.js +1 -1
- package/generated/react/icons/icon-television/index.js +1 -1
- package/generated/react/icons/icon-tennis/index.js +1 -1
- package/generated/react/icons/icon-text-edit/index.js +1 -1
- package/generated/react/icons/icon-thermostat/index.js +1 -1
- package/generated/react/icons/icon-thumbs-down/index.js +1 -1
- package/generated/react/icons/icon-thumbs-up/index.js +1 -1
- package/generated/react/icons/icon-ticket/index.js +1 -1
- package/generated/react/icons/icon-trading-view-candles/index.js +1 -1
- package/generated/react/icons/icon-trash-can/index.js +1 -1
- package/generated/react/icons/icon-tree/index.js +1 -1
- package/generated/react/icons/icon-trending-five/index.js +1 -1
- package/generated/react/icons/icon-trending-four/index.js +1 -1
- package/generated/react/icons/icon-trending-one/index.js +1 -1
- package/generated/react/icons/icon-trending-three/index.js +1 -1
- package/generated/react/icons/icon-trending-two/index.js +1 -1
- package/generated/react/icons/icon-triangle-exclamation/index.js +1 -1
- package/generated/react/icons/icon-truck/index.js +1 -1
- package/generated/react/icons/icon-umbrella-security/index.js +1 -1
- package/generated/react/icons/icon-unlocked/index.js +1 -1
- package/generated/react/icons/icon-volume-full/index.js +1 -1
- package/generated/react/icons/icon-volume-half/index.js +1 -1
- package/generated/react/icons/icon-volume-off/index.js +1 -1
- package/generated/react/icons/icon-wallet/index.js +1 -1
- package/generated/react/icons/icon-warning-sign/index.js +1 -1
- package/generated/react/icons/icon-wifi-full/index.js +1 -1
- package/generated/react/icons/icon-youtube/index.js +1 -1
- package/generated/react/icons/icon-zap/index.js +1 -1
- package/generated/react/icons/icon-zoom-in/index.js +1 -1
- package/generated/react/icons/icon-zoom-out/index.js +1 -1
- package/generated/react/img/index.js +1 -1
- package/generated/react/index.d.ts +3 -3
- package/generated/react/index.js +3 -3
- package/generated/react/input/index.js +1 -1
- package/generated/react/link/index.js +1 -1
- package/generated/react/list/index.js +1 -1
- package/generated/react/list-item/index.js +1 -1
- package/generated/react/list-item-pattern-01/index.js +1 -1
- package/generated/react/mask/index.js +1 -1
- package/generated/react/menu-button/index.js +1 -1
- package/generated/react/menu-heading/index.js +1 -1
- package/generated/react/menu-item/index.js +1 -1
- package/generated/react/option/index.js +1 -1
- package/generated/react/pagination/index.js +1 -1
- package/generated/react/popover/index.js +1 -1
- package/generated/react/radio/index.js +1 -1
- package/generated/react/radio-group/index.js +1 -1
- package/generated/react/rich-text/index.js +1 -1
- package/generated/react/segment/index.js +1 -1
- package/generated/react/segmented-control/index.js +1 -1
- package/generated/react/select/index.js +1 -1
- package/generated/react/sensitive-account/index.js +1 -1
- package/generated/react/sensitive-date/index.js +1 -1
- package/generated/react/sensitive-number/index.js +1 -1
- package/generated/react/signal/index.js +1 -1
- package/generated/react/spinner/index.js +1 -1
- package/generated/react/switch/index.js +1 -1
- package/generated/react/tab/index.js +1 -1
- package/generated/react/tab-panel/index.js +1 -1
- package/generated/react/table/index.js +1 -1
- package/generated/react/tabs/index.js +1 -1
- package/generated/react/text/index.js +1 -1
- package/generated/react/textarea/index.js +1 -1
- package/generated/react/theme/index.js +1 -1
- package/generated/react/video/index.js +1 -1
- package/package.json +2 -2
- package/patterns/card-pattern-01/card-pattern-01.component.js +43 -61
- package/patterns/card-pattern-01/card-pattern-01.js +1 -1
- package/patterns/card-pattern-01/card-pattern-01.styles.js +6 -3
- package/patterns/list-item-pattern-01/list-item-pattern-01.component.js +22 -43
- package/patterns/list-item-pattern-01/list-item-pattern-01.js +1 -1
- package/patterns/list-item-pattern-01/list-item-pattern-01.stories.data.js +1 -1
- package/patterns/list-item-pattern-01/list-item-pattern-01.styles.js +1 -1
- package/primitives/field-base/field-base.component.js +7 -15
- package/primitives/field-base/field-base.js +1 -1
- package/primitives/field-base/field-base.styles.js +4 -4
- package/primitives/field-base/field-base.trans.styles.js +1 -1
- package/primitives/form-control-footer/form-control-footer.component.js +6 -7
- package/primitives/form-control-footer/form-control-footer.js +1 -1
- package/primitives/form-control-footer/form-control-footer.styles.js +3 -6
- package/primitives/form-control-header/form-control-header.component.js +7 -10
- package/primitives/form-control-header/form-control-header.js +1 -1
- package/primitives/form-control-header/form-control-header.styles.js +1 -1
- package/primitives/menu/menu-heading.component.js +1 -1
- package/primitives/menu/menu-heading.js +1 -1
- package/primitives/menu/menu-heading.styles.js +1 -1
- package/primitives/menu/menu-heading.trans.styles.js +1 -1
- package/primitives/menu/menu-item.component.js +2 -3
- package/primitives/menu/menu-item.js +1 -1
- package/primitives/menu/menu.component.js +2 -3
- package/primitives/menu/menu.js +1 -1
- package/primitives/ripple/ripple.component.js +1 -1
- package/primitives/ripple/ripple.js +1 -1
- package/primitives/ripple/ripple.styles.js +1 -1
- package/primitives/toggle-controls-base/toggle-control-base.component.js +1 -1
- package/primitives/toggle-controls-base/toggle-control-base.js +1 -1
- package/primitives/toggle-controls-base/toggle-control-base.styles.js +1 -1
- package/shared-styles/form-control-host.style.js +1 -1
- package/shared-styles/menu-listbox-item.style.js +3 -3
- package/shared-styles/menu-listbox-item.trans.style.js +1 -1
- package/shared-styles/menu-listbox.style.js +1 -1
- package/shared-styles/menu-listbox.trans.style.js +1 -1
- package/shared-styles/rbcb-toggle.style.js +1 -1
- package/shared-styles/rbcb-toggle.template.js +1 -1
- package/tokens.style.js +6 -4
- package/utils/controllers/dynamic-styles-controller.js +15 -24
- package/utils/controllers/listbox-kb-nav-controller.js +2 -3
- package/utils/decorators/aria-forwarding.js +12 -21
- package/utils/decorators/aria-forwarding.types.js +1 -1
- package/utils/decorators/observe-attributes.js +4 -5
- package/utils/decorators/observe-light-dom.js +1 -1
- package/utils/decorators/resize-observer.js +2 -3
- package/utils/decorators/style-expression-property.js +1 -1
- package/utils/decorators/watch-media-query.js +2 -3
- package/utils/decorators/watch.js +1 -1
- package/utils/directives/forward-attributes.js +1 -1
- package/utils/global-styles.js +10 -17
- package/utils/helpers/attribute-converters.js +1 -1
- package/utils/helpers/casing.js +5 -9
- package/utils/helpers/component-meta.js +8 -15
- package/utils/helpers/custom-element-scoping.js +4 -6
- package/utils/helpers/has-changed.js +1 -1
- package/utils/helpers/id.js +1 -1
- package/utils/helpers/platform.js +1 -1
- package/utils/helpers/strip-white-space.js +1 -1
- package/utils/helpers/style-expression-helpers.js +1 -1
- package/utils/helpers/style-expression-parser.js +3 -5
- package/utils/helpers/unwrap-slots.js +1 -1
- package/utils/localization/localization.js +1 -1
- package/utils/mixins/declarative-layout-mixins.js +1 -1
- package/utils/mixins/focusable.js +1 -1
- package/utils/mixins/mixin-builder.js +1 -1
- package/utils/mixins/props-image.js +1 -1
- package/utils/mixins/props-link.js +2 -2
- package/utils/react.js +3 -5
- package/utils/scroll-lock.js +1 -1
- package/utils/testing/index.js +4 -7
- package/utils/transitional-styles/transitional-styles.js +16 -22
- package/chunks/chunk.CAV4X6PU.js +0 -41
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
__privateGet,
|
|
5
5
|
__privateMethod,
|
|
6
6
|
__privateSet
|
|
7
|
-
} from "../../chunks/chunk.
|
|
8
|
-
var _cache, _cacheDuration,
|
|
7
|
+
} from "../../chunks/chunk.QU3DSPNU.js";
|
|
8
|
+
var _cache, _cacheDuration, _GdsTable_instances, isResponsiveStacked_get, isExpandableEnabled_get, isSelectableEnabled_get, Density_get, _expandTransitionTimers, _expandedLoadingExitDuration, _expandedLoadingDelay, _expandedFullSlotKeys, _pendingExpandedFullSlotRefresh, _appliedStickyOffsets, hasSelection_get, isAllSelected_get, isPartialSelection_get, expandableIndices_get, isAllExpanded_get, getCacheKey_fn, clearExpansionTransitionTimer_fn, clearExpansionLoadingState_fn, clearAllExpansionLoadingStates_fn, scheduleExpansionContentReveal_fn, isCacheValid_fn, getControlledColumnSort_fn, loadData_fn, queueExpandedFullSlotRefresh_fn, getStickyBorderKeys_fn, updateStickyOffsets_fn, getRowKey_fn, renderCellWrapped_fn, renderMobileLabel_fn, renderSlotElement_fn, renderCellContent_fn, renderSortIcon_fn, hasHeaderContent_fn, renderHeaderControls_fn, renderColumnHeader_fn, renderSelectableHeader_fn, renderExpandableHeader_fn, getRowSubRowsSource_fn, getRowFullContentSource_fn, getExpandedRows_fn, hasAsyncSubRows_fn, hasAsyncFullContent_fn, getSubRowCount_fn, hasExpandedFullSlot_fn, hasExpandedFullContent_fn, refreshExpandedFullSlotKeys_fn, isRowExpandable_fn, getExpandedGroupId_fn, getRenderedColumnCount_fn, renderColumnHeaders_fn, renderTableHeader_fn, renderTableCell_fn, renderExpandableCell_fn, renderSelectableCell_fn, renderRowCells_fn, renderFullWidthDetailsRow_fn, renderExpandedLoadingRow_fn, renderExpandedLoadingRows_fn, renderExpandedFullLoadingRow_fn, getExpandedChildRowClasses_fn, getTableRowClasses_fn, getRowAriaExpanded_fn, getTableRowPresentation_fn, renderExpandedChildRow_fn, getRowExpansionLoadingKind_fn, getRowExpansionState_fn, renderExpandedRowContent_fn, renderTableRow_fn, renderCheckbox_fn, renderSkeletonCell_fn, renderSkeletonRow_fn, renderTableBody_fn, renderTableFoot_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, handleExpandToggle_fn, handleExpandAll_fn, emitExpandChange_fn, resolveExpandedContent_fn, setRowExpanded_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";
|
|
@@ -39,177 +39,7 @@ let GdsTable = class extends withSizeXProps(
|
|
|
39
39
|
) {
|
|
40
40
|
constructor() {
|
|
41
41
|
super(...arguments);
|
|
42
|
-
__privateAdd(this,
|
|
43
|
-
__privateAdd(this, _isExpandableEnabled);
|
|
44
|
-
__privateAdd(this, _isSelectableEnabled);
|
|
45
|
-
/**
|
|
46
|
-
* Get the current density configuration
|
|
47
|
-
*/
|
|
48
|
-
__privateAdd(this, _Density);
|
|
49
|
-
__privateAdd(this, _hasSelection);
|
|
50
|
-
__privateAdd(this, _isAllSelected);
|
|
51
|
-
__privateAdd(this, _isPartialSelection);
|
|
52
|
-
__privateAdd(this, _expandableIndices);
|
|
53
|
-
__privateAdd(this, _isAllExpanded);
|
|
54
|
-
__privateAdd(this, _getCacheKey);
|
|
55
|
-
__privateAdd(this, _clearExpansionTransitionTimer);
|
|
56
|
-
__privateAdd(this, _clearExpansionLoadingState);
|
|
57
|
-
__privateAdd(this, _clearAllExpansionLoadingStates);
|
|
58
|
-
__privateAdd(this, _scheduleExpansionContentReveal);
|
|
59
|
-
__privateAdd(this, _isCacheValid);
|
|
60
|
-
__privateAdd(this, _getControlledColumnSort);
|
|
61
|
-
__privateAdd(this, _loadData);
|
|
62
|
-
__privateAdd(this, _queueExpandedFullSlotRefresh);
|
|
63
|
-
/**
|
|
64
|
-
* Returns the column keys for the rightmost sticky-left and leftmost sticky-right
|
|
65
|
-
* visible columns — these are the ones that get the divider border.
|
|
66
|
-
*/
|
|
67
|
-
__privateAdd(this, _getStickyBorderKeys);
|
|
68
|
-
/**
|
|
69
|
-
* Measures built-in and user-defined sticky column widths from the DOM
|
|
70
|
-
* and applies matching left/right inline styles to every cell in each
|
|
71
|
-
* sticky column. Uses offsetWidth (layout-relative, scroll-independent).
|
|
72
|
-
*/
|
|
73
|
-
__privateAdd(this, _updateStickyOffsets);
|
|
74
|
-
/**
|
|
75
|
-
* Gets the unique key for slot naming (prioritizes: custom key > row.id > index)
|
|
76
|
-
*/
|
|
77
|
-
__privateAdd(this, _getRowKey);
|
|
78
|
-
__privateAdd(this, _renderCellWrapped);
|
|
79
|
-
__privateAdd(this, _renderMobileLabel);
|
|
80
|
-
__privateAdd(this, _renderSlotElement);
|
|
81
|
-
/**
|
|
82
|
-
* Renders cell content with proper ordering and wrapping.
|
|
83
|
-
*
|
|
84
|
-
* **Slot-based content:**
|
|
85
|
-
* - Renders in exact order: ['lead', 'value', 'button'] → icon, text, button
|
|
86
|
-
* - Wraps value when column.justify is set (for flexbox)
|
|
87
|
-
* - Slots stay unwrapped
|
|
88
|
-
*
|
|
89
|
-
* **Plain content:**
|
|
90
|
-
* - Wraps when column.justify is set, otherwise renders directly
|
|
91
|
-
*/
|
|
92
|
-
__privateAdd(this, _renderCellContent);
|
|
93
|
-
__privateAdd(this, _renderSortIcon);
|
|
94
|
-
__privateAdd(this, _hasHeaderContent);
|
|
95
|
-
__privateAdd(this, _renderHeaderControls);
|
|
96
|
-
__privateAdd(this, _renderColumnHeader);
|
|
97
|
-
__privateAdd(this, _renderSelectableHeader);
|
|
98
|
-
__privateAdd(this, _renderExpandableHeader);
|
|
99
|
-
__privateAdd(this, _getRowSubRowsSource);
|
|
100
|
-
__privateAdd(this, _getRowFullContentSource);
|
|
101
|
-
__privateAdd(this, _getExpandedRows);
|
|
102
|
-
__privateAdd(this, _hasAsyncSubRows);
|
|
103
|
-
__privateAdd(this, _hasAsyncFullContent);
|
|
104
|
-
__privateAdd(this, _getSubRowCount);
|
|
105
|
-
__privateAdd(this, _hasExpandedFullSlot);
|
|
106
|
-
__privateAdd(this, _hasExpandedFullContent);
|
|
107
|
-
__privateAdd(this, _refreshExpandedFullSlotKeys);
|
|
108
|
-
__privateAdd(this, _isRowExpandable);
|
|
109
|
-
__privateAdd(this, _getExpandedGroupId);
|
|
110
|
-
__privateAdd(this, _getRenderedColumnCount);
|
|
111
|
-
__privateAdd(this, _renderColumnHeaders);
|
|
112
|
-
__privateAdd(this, _renderTableHeader);
|
|
113
|
-
__privateAdd(this, _renderTableCell);
|
|
114
|
-
__privateAdd(this, _renderExpandableCell);
|
|
115
|
-
__privateAdd(this, _renderSelectableCell);
|
|
116
|
-
__privateAdd(this, _renderRowCells);
|
|
117
|
-
__privateAdd(this, _renderFullWidthDetailsRow);
|
|
118
|
-
__privateAdd(this, _renderExpandedLoadingRow);
|
|
119
|
-
__privateAdd(this, _renderExpandedLoadingRows);
|
|
120
|
-
__privateAdd(this, _renderExpandedFullLoadingRow);
|
|
121
|
-
__privateAdd(this, _getExpandedChildRowClasses);
|
|
122
|
-
__privateAdd(this, _getTableRowClasses);
|
|
123
|
-
__privateAdd(this, _getRowAriaExpanded);
|
|
124
|
-
__privateAdd(this, _getTableRowPresentation);
|
|
125
|
-
__privateAdd(this, _renderExpandedChildRow);
|
|
126
|
-
__privateAdd(this, _getRowExpansionLoadingKind);
|
|
127
|
-
__privateAdd(this, _getRowExpansionState);
|
|
128
|
-
__privateAdd(this, _renderExpandedRowContent);
|
|
129
|
-
/* Main Table Row · Render */
|
|
130
|
-
__privateAdd(this, _renderTableRow);
|
|
131
|
-
__privateAdd(this, _renderCheckbox);
|
|
132
|
-
__privateAdd(this, _renderSkeletonCell);
|
|
133
|
-
__privateAdd(this, _renderSkeletonRow);
|
|
134
|
-
__privateAdd(this, _renderTableBody);
|
|
135
|
-
__privateAdd(this, _renderTableFoot);
|
|
136
|
-
__privateAdd(this, _renderTable);
|
|
137
|
-
__privateAdd(this, _renderErrorState);
|
|
138
|
-
__privateAdd(this, _renderEmptyState);
|
|
139
|
-
__privateAdd(this, _renderFooter);
|
|
140
|
-
__privateAdd(this, _renderHeadline);
|
|
141
|
-
/**
|
|
142
|
-
* Handles search input changes
|
|
143
|
-
* Resets to first page and triggers data reload with search query
|
|
144
|
-
*/
|
|
145
|
-
__privateAdd(this, _handleSearch);
|
|
146
|
-
/**
|
|
147
|
-
* Handles search input clear action
|
|
148
|
-
* Resets search query and reloads data
|
|
149
|
-
*/
|
|
150
|
-
__privateAdd(this, _handleSearchClear);
|
|
151
|
-
/**
|
|
152
|
-
* Handles column sort click
|
|
153
|
-
* Toggles sort direction if same column, otherwise sets new sort column
|
|
154
|
-
*/
|
|
155
|
-
__privateAdd(this, _handleSort);
|
|
156
|
-
/**
|
|
157
|
-
* Handles pagination page change
|
|
158
|
-
*/
|
|
159
|
-
__privateAdd(this, _handlePageChange);
|
|
160
|
-
/**
|
|
161
|
-
* Handles pagination page size change
|
|
162
|
-
* Resets to first page when page size changes
|
|
163
|
-
*/
|
|
164
|
-
__privateAdd(this, _handlePageSizeChange);
|
|
165
|
-
/**
|
|
166
|
-
* Handles column visibility dropdown changes
|
|
167
|
-
* Updates visible columns set and triggers re-render
|
|
168
|
-
*/
|
|
169
|
-
__privateAdd(this, _handleColumnVisibility);
|
|
170
|
-
/**
|
|
171
|
-
* Handles select all checkbox change
|
|
172
|
-
* Toggles between all selected and none selected
|
|
173
|
-
*/
|
|
174
|
-
__privateAdd(this, _handleSelectAll);
|
|
175
|
-
/**
|
|
176
|
-
* Handles individual row selection change
|
|
177
|
-
*/
|
|
178
|
-
__privateAdd(this, _handleRowSelect);
|
|
179
|
-
__privateAdd(this, _handleExpandToggle);
|
|
180
|
-
__privateAdd(this, _handleExpandAll);
|
|
181
|
-
__privateAdd(this, _emitExpandChange);
|
|
182
|
-
__privateAdd(this, _resolveExpandedContent);
|
|
183
|
-
__privateAdd(this, _setRowExpanded);
|
|
184
|
-
/**
|
|
185
|
-
* Internal method to select all rows
|
|
186
|
-
*/
|
|
187
|
-
__privateAdd(this, _selectAllInternal);
|
|
188
|
-
/**
|
|
189
|
-
* Internal method to clear all selections
|
|
190
|
-
*/
|
|
191
|
-
__privateAdd(this, _clearSelectionInternal);
|
|
192
|
-
/**
|
|
193
|
-
* Emits selection change event with current selection details
|
|
194
|
-
*/
|
|
195
|
-
__privateAdd(this, _emitSelectionChange);
|
|
196
|
-
/**
|
|
197
|
-
* Initializes scroll tracking for the table data container.
|
|
198
|
-
* Sets up event listeners and performs initial scroll state check.
|
|
199
|
-
*/
|
|
200
|
-
__privateAdd(this, _initializeScrollTracking);
|
|
201
|
-
/**
|
|
202
|
-
* Updates CSS classes based on vertical scroll position.
|
|
203
|
-
* Adds 'scrolled' class when scrolled down from top.
|
|
204
|
-
* Adds 'scrolled-bottom' class when not scrolled to the very bottom.
|
|
205
|
-
*/
|
|
206
|
-
__privateAdd(this, _updateVerticalScrollState);
|
|
207
|
-
/**
|
|
208
|
-
* Updates CSS classes based on horizontal scroll position.
|
|
209
|
-
* Manages 'scrolled-x-start', 'scrolled-x-middle', and 'scrolled-x-end' classes
|
|
210
|
-
* to indicate scroll position for styling purposes (e.g., shadows, sticky columns).
|
|
211
|
-
*/
|
|
212
|
-
__privateAdd(this, _updateHorizontalScrollState);
|
|
42
|
+
__privateAdd(this, _GdsTable_instances);
|
|
213
43
|
__privateAdd(this, _cache, {});
|
|
214
44
|
__privateAdd(this, _cacheDuration, 5 * 60 * 1e3);
|
|
215
45
|
this.headlineTag = "h2";
|
|
@@ -257,19 +87,19 @@ let GdsTable = class extends withSizeXProps(
|
|
|
257
87
|
}
|
|
258
88
|
_onDataChange() {
|
|
259
89
|
__privateSet(this, _cache, {});
|
|
260
|
-
__privateMethod(this,
|
|
90
|
+
__privateMethod(this, _GdsTable_instances, loadData_fn).call(this);
|
|
261
91
|
}
|
|
262
92
|
_onPageChange() {
|
|
263
93
|
this._view = { ...this._view, page: Number(this.page ?? 1) };
|
|
264
|
-
__privateMethod(this,
|
|
94
|
+
__privateMethod(this, _GdsTable_instances, loadData_fn).call(this);
|
|
265
95
|
}
|
|
266
96
|
_onRowsChange() {
|
|
267
97
|
this._view = { ...this._view, rows: Number(this.rows ?? 10), page: 1 };
|
|
268
|
-
__privateMethod(this,
|
|
98
|
+
__privateMethod(this, _GdsTable_instances, loadData_fn).call(this);
|
|
269
99
|
}
|
|
270
100
|
_onColumnsChange() {
|
|
271
101
|
__privateSet(this, _cache, {});
|
|
272
|
-
const controlledSort = __privateMethod(this,
|
|
102
|
+
const controlledSort = __privateMethod(this, _GdsTable_instances, getControlledColumnSort_fn).call(this);
|
|
273
103
|
const previousSortColumn = this._view.sortColumn;
|
|
274
104
|
const previousSortDirection = this._view.sortDirection;
|
|
275
105
|
this._view = {
|
|
@@ -284,27 +114,27 @@ let GdsTable = class extends withSizeXProps(
|
|
|
284
114
|
};
|
|
285
115
|
const sortChanged = !!controlledSort && (controlledSort.column !== previousSortColumn || controlledSort.direction !== previousSortDirection);
|
|
286
116
|
if (sortChanged) {
|
|
287
|
-
void __privateMethod(this,
|
|
117
|
+
void __privateMethod(this, _GdsTable_instances, loadData_fn).call(this);
|
|
288
118
|
}
|
|
289
119
|
}
|
|
290
120
|
connectedCallback() {
|
|
291
121
|
super.connectedCallback();
|
|
292
122
|
this.updateComplete.then(() => {
|
|
293
|
-
__privateMethod(this,
|
|
294
|
-
__privateMethod(this,
|
|
295
|
-
__privateMethod(this,
|
|
123
|
+
__privateMethod(this, _GdsTable_instances, initializeScrollTracking_fn).call(this);
|
|
124
|
+
__privateMethod(this, _GdsTable_instances, updateStickyOffsets_fn).call(this);
|
|
125
|
+
__privateMethod(this, _GdsTable_instances, refreshExpandedFullSlotKeys_fn).call(this);
|
|
296
126
|
});
|
|
297
127
|
}
|
|
298
128
|
_handleLightDOMSlotsChange() {
|
|
299
|
-
__privateMethod(this,
|
|
129
|
+
__privateMethod(this, _GdsTable_instances, queueExpandedFullSlotRefresh_fn).call(this);
|
|
300
130
|
}
|
|
301
131
|
_handleStickyColumnResize() {
|
|
302
|
-
__privateMethod(this,
|
|
132
|
+
__privateMethod(this, _GdsTable_instances, updateStickyOffsets_fn).call(this);
|
|
303
133
|
}
|
|
304
134
|
updated(changedProperties) {
|
|
305
135
|
super.updated(changedProperties);
|
|
306
136
|
__privateSet(this, _appliedStickyOffsets, null);
|
|
307
|
-
__privateMethod(this,
|
|
137
|
+
__privateMethod(this, _GdsTable_instances, updateStickyOffsets_fn).call(this);
|
|
308
138
|
}
|
|
309
139
|
render() {
|
|
310
140
|
const classes = {
|
|
@@ -316,18 +146,18 @@ let GdsTable = class extends withSizeXProps(
|
|
|
316
146
|
return html`
|
|
317
147
|
<div class="${classMap(classes)}">
|
|
318
148
|
${[
|
|
319
|
-
__privateMethod(this,
|
|
320
|
-
__privateMethod(this,
|
|
149
|
+
__privateMethod(this, _GdsTable_instances, renderHeadline_fn).call(this),
|
|
150
|
+
__privateMethod(this, _GdsTable_instances, renderHeaderControls_fn).call(this),
|
|
321
151
|
when(
|
|
322
152
|
this._error,
|
|
323
|
-
() => __privateMethod(this,
|
|
153
|
+
() => __privateMethod(this, _GdsTable_instances, renderErrorState_fn).call(this),
|
|
324
154
|
() => when(
|
|
325
155
|
this._rowsState.length === 0 && !this._loading,
|
|
326
|
-
() => __privateMethod(this,
|
|
327
|
-
() => __privateMethod(this,
|
|
156
|
+
() => __privateMethod(this, _GdsTable_instances, renderEmptyState_fn).call(this),
|
|
157
|
+
() => __privateMethod(this, _GdsTable_instances, renderTable_fn).call(this)
|
|
328
158
|
)
|
|
329
159
|
),
|
|
330
|
-
__privateMethod(this,
|
|
160
|
+
__privateMethod(this, _GdsTable_instances, renderFooter_fn).call(this)
|
|
331
161
|
]}
|
|
332
162
|
</div>
|
|
333
163
|
`;
|
|
@@ -337,15 +167,15 @@ let GdsTable = class extends withSizeXProps(
|
|
|
337
167
|
* Clear all selections
|
|
338
168
|
*/
|
|
339
169
|
clearSelection() {
|
|
340
|
-
__privateMethod(this,
|
|
341
|
-
__privateMethod(this,
|
|
170
|
+
__privateMethod(this, _GdsTable_instances, clearSelectionInternal_fn).call(this);
|
|
171
|
+
__privateMethod(this, _GdsTable_instances, emitSelectionChange_fn).call(this);
|
|
342
172
|
}
|
|
343
173
|
/**
|
|
344
174
|
* Select all rows
|
|
345
175
|
*/
|
|
346
176
|
selectAll() {
|
|
347
|
-
__privateMethod(this,
|
|
348
|
-
__privateMethod(this,
|
|
177
|
+
__privateMethod(this, _GdsTable_instances, selectAllInternal_fn).call(this);
|
|
178
|
+
__privateMethod(this, _GdsTable_instances, emitSelectionChange_fn).call(this);
|
|
349
179
|
}
|
|
350
180
|
/**
|
|
351
181
|
* Select specific rows by indices
|
|
@@ -355,7 +185,7 @@ let GdsTable = class extends withSizeXProps(
|
|
|
355
185
|
(i) => i >= 0 && i < this._rowsState.length
|
|
356
186
|
);
|
|
357
187
|
this._selected = new Set(validIndices);
|
|
358
|
-
__privateMethod(this,
|
|
188
|
+
__privateMethod(this, _GdsTable_instances, emitSelectionChange_fn).call(this);
|
|
359
189
|
this.requestUpdate();
|
|
360
190
|
}
|
|
361
191
|
/**
|
|
@@ -372,23 +202,22 @@ let GdsTable = class extends withSizeXProps(
|
|
|
372
202
|
* Expand a specific row by index.
|
|
373
203
|
*/
|
|
374
204
|
async expandRow(index) {
|
|
375
|
-
return __privateMethod(this,
|
|
205
|
+
return __privateMethod(this, _GdsTable_instances, setRowExpanded_fn).call(this, index, true);
|
|
376
206
|
}
|
|
377
207
|
/**
|
|
378
208
|
* Collapse a specific row by index.
|
|
379
209
|
*/
|
|
380
210
|
collapseRow(index) {
|
|
381
|
-
void __privateMethod(this,
|
|
211
|
+
void __privateMethod(this, _GdsTable_instances, setRowExpanded_fn).call(this, index, false);
|
|
382
212
|
return true;
|
|
383
213
|
}
|
|
384
214
|
/**
|
|
385
215
|
* Toggle expanded state for a specific row by index.
|
|
386
216
|
*/
|
|
387
217
|
async toggleRowExpansion(index, rowOverride) {
|
|
388
|
-
if (index < 0 || index >= this._rowsState.length)
|
|
389
|
-
return false;
|
|
218
|
+
if (index < 0 || index >= this._rowsState.length) return false;
|
|
390
219
|
const nextExpanded = !this._expanded.has(index);
|
|
391
|
-
return __privateMethod(this,
|
|
220
|
+
return __privateMethod(this, _GdsTable_instances, setRowExpanded_fn).call(this, index, nextExpanded, rowOverride);
|
|
392
221
|
}
|
|
393
222
|
/**
|
|
394
223
|
* Get currently expanded row indices.
|
|
@@ -399,19 +228,16 @@ let GdsTable = class extends withSizeXProps(
|
|
|
399
228
|
};
|
|
400
229
|
_cache = new WeakMap();
|
|
401
230
|
_cacheDuration = new WeakMap();
|
|
402
|
-
|
|
231
|
+
_GdsTable_instances = new WeakSet();
|
|
403
232
|
isResponsiveStacked_get = function() {
|
|
404
233
|
return this.responsive && this._isMobile;
|
|
405
234
|
};
|
|
406
|
-
_isExpandableEnabled = new WeakSet();
|
|
407
235
|
isExpandableEnabled_get = function() {
|
|
408
|
-
return !__privateGet(this,
|
|
236
|
+
return !__privateGet(this, _GdsTable_instances, isResponsiveStacked_get) && __privateGet(this, _GdsTable_instances, expandableIndices_get).length > 0;
|
|
409
237
|
};
|
|
410
|
-
_isSelectableEnabled = new WeakSet();
|
|
411
238
|
isSelectableEnabled_get = function() {
|
|
412
|
-
return this.selectable && !__privateGet(this,
|
|
239
|
+
return this.selectable && !__privateGet(this, _GdsTable_instances, isResponsiveStacked_get);
|
|
413
240
|
};
|
|
414
|
-
_Density = new WeakSet();
|
|
415
241
|
Density_get = function() {
|
|
416
242
|
return Types.DENSITY_CONFIG[this.density];
|
|
417
243
|
};
|
|
@@ -421,28 +247,22 @@ _expandedLoadingDelay = new WeakMap();
|
|
|
421
247
|
_expandedFullSlotKeys = new WeakMap();
|
|
422
248
|
_pendingExpandedFullSlotRefresh = new WeakMap();
|
|
423
249
|
_appliedStickyOffsets = new WeakMap();
|
|
424
|
-
_hasSelection = new WeakSet();
|
|
425
250
|
hasSelection_get = function() {
|
|
426
251
|
return this._selected.size > 0;
|
|
427
252
|
};
|
|
428
|
-
_isAllSelected = new WeakSet();
|
|
429
253
|
isAllSelected_get = function() {
|
|
430
254
|
return this._rowsState.length > 0 && this._selected.size === this._rowsState.length;
|
|
431
255
|
};
|
|
432
|
-
_isPartialSelection = new WeakSet();
|
|
433
256
|
isPartialSelection_get = function() {
|
|
434
|
-
return __privateGet(this,
|
|
257
|
+
return __privateGet(this, _GdsTable_instances, hasSelection_get) && !__privateGet(this, _GdsTable_instances, isAllSelected_get);
|
|
435
258
|
};
|
|
436
|
-
_expandableIndices = new WeakSet();
|
|
437
259
|
expandableIndices_get = function() {
|
|
438
|
-
return this._rowsState.map((row, i) => __privateMethod(this,
|
|
260
|
+
return this._rowsState.map((row, i) => __privateMethod(this, _GdsTable_instances, isRowExpandable_fn).call(this, row, i) ? i : -1).filter((i) => i !== -1);
|
|
439
261
|
};
|
|
440
|
-
_isAllExpanded = new WeakSet();
|
|
441
262
|
isAllExpanded_get = function() {
|
|
442
|
-
const expandable = __privateGet(this,
|
|
263
|
+
const expandable = __privateGet(this, _GdsTable_instances, expandableIndices_get);
|
|
443
264
|
return expandable.length > 0 && expandable.every((i) => this._expanded.has(i));
|
|
444
265
|
};
|
|
445
|
-
_getCacheKey = new WeakSet();
|
|
446
266
|
getCacheKey_fn = function() {
|
|
447
267
|
return JSON.stringify({
|
|
448
268
|
page: this._view.page,
|
|
@@ -452,17 +272,14 @@ getCacheKey_fn = function() {
|
|
|
452
272
|
searchQuery: this._view.searchQuery
|
|
453
273
|
});
|
|
454
274
|
};
|
|
455
|
-
_clearExpansionTransitionTimer = new WeakSet();
|
|
456
275
|
clearExpansionTransitionTimer_fn = function(index) {
|
|
457
276
|
const timer = __privateGet(this, _expandTransitionTimers).get(index);
|
|
458
|
-
if (timer === void 0)
|
|
459
|
-
return;
|
|
277
|
+
if (timer === void 0) return;
|
|
460
278
|
window.clearTimeout(timer);
|
|
461
279
|
__privateGet(this, _expandTransitionTimers).delete(index);
|
|
462
280
|
};
|
|
463
|
-
_clearExpansionLoadingState = new WeakSet();
|
|
464
281
|
clearExpansionLoadingState_fn = function(index) {
|
|
465
|
-
__privateMethod(this,
|
|
282
|
+
__privateMethod(this, _GdsTable_instances, clearExpansionTransitionTimer_fn).call(this, index);
|
|
466
283
|
if (this._expanding.has(index)) {
|
|
467
284
|
const nextExpanding = new Set(this._expanding);
|
|
468
285
|
nextExpanding.delete(index);
|
|
@@ -474,54 +291,47 @@ clearExpansionLoadingState_fn = function(index) {
|
|
|
474
291
|
this._completingExpansion = nextCompleting;
|
|
475
292
|
}
|
|
476
293
|
};
|
|
477
|
-
_clearAllExpansionLoadingStates = new WeakSet();
|
|
478
294
|
clearAllExpansionLoadingStates_fn = function() {
|
|
479
295
|
__privateGet(this, _expandTransitionTimers).forEach((timer) => window.clearTimeout(timer));
|
|
480
296
|
__privateGet(this, _expandTransitionTimers).clear();
|
|
481
297
|
this._expanding.clear();
|
|
482
298
|
this._completingExpansion.clear();
|
|
483
299
|
};
|
|
484
|
-
_scheduleExpansionContentReveal = new WeakSet();
|
|
485
300
|
scheduleExpansionContentReveal_fn = function(index) {
|
|
486
|
-
__privateMethod(this,
|
|
301
|
+
__privateMethod(this, _GdsTable_instances, clearExpansionTransitionTimer_fn).call(this, index);
|
|
487
302
|
const nextCompleting = new Set(this._completingExpansion);
|
|
488
303
|
nextCompleting.add(index);
|
|
489
304
|
this._completingExpansion = nextCompleting;
|
|
490
305
|
this.requestUpdate();
|
|
491
306
|
const timer = window.setTimeout(() => {
|
|
492
|
-
__privateMethod(this,
|
|
307
|
+
__privateMethod(this, _GdsTable_instances, clearExpansionLoadingState_fn).call(this, index);
|
|
493
308
|
this.requestUpdate();
|
|
494
309
|
}, __privateGet(this, _expandedLoadingExitDuration));
|
|
495
310
|
__privateGet(this, _expandTransitionTimers).set(index, timer);
|
|
496
311
|
};
|
|
497
|
-
_isCacheValid = new WeakSet();
|
|
498
312
|
isCacheValid_fn = function(entry) {
|
|
499
313
|
return Date.now() - entry.timestamp < __privateGet(this, _cacheDuration);
|
|
500
314
|
};
|
|
501
|
-
_getControlledColumnSort = new WeakSet();
|
|
502
315
|
getControlledColumnSort_fn = function() {
|
|
503
316
|
const controlledColumn = this.columns.find(
|
|
504
317
|
(column) => column.sorting === "asc" || column.sorting === "desc"
|
|
505
318
|
);
|
|
506
|
-
if (!controlledColumn?.sorting)
|
|
507
|
-
return null;
|
|
319
|
+
if (!controlledColumn?.sorting) return null;
|
|
508
320
|
return {
|
|
509
321
|
column: controlledColumn.key,
|
|
510
322
|
direction: controlledColumn.sorting
|
|
511
323
|
};
|
|
512
324
|
};
|
|
513
|
-
_loadData = new WeakSet();
|
|
514
325
|
loadData_fn = async function() {
|
|
515
|
-
if (!this.data)
|
|
516
|
-
return;
|
|
326
|
+
if (!this.data) return;
|
|
517
327
|
if (!this.nocache) {
|
|
518
|
-
const cacheKey = __privateMethod(this,
|
|
328
|
+
const cacheKey = __privateMethod(this, _GdsTable_instances, getCacheKey_fn).call(this);
|
|
519
329
|
const cachedData = __privateGet(this, _cache)[cacheKey];
|
|
520
|
-
if (cachedData && __privateMethod(this,
|
|
330
|
+
if (cachedData && __privateMethod(this, _GdsTable_instances, isCacheValid_fn).call(this, cachedData)) {
|
|
521
331
|
this._rowsState = cachedData.rows;
|
|
522
332
|
this._total = cachedData.total;
|
|
523
333
|
this._expanded.clear();
|
|
524
|
-
__privateMethod(this,
|
|
334
|
+
__privateMethod(this, _GdsTable_instances, clearAllExpansionLoadingStates_fn).call(this);
|
|
525
335
|
this._expandedRowsCache.clear();
|
|
526
336
|
this._expandedFullContentResolved.clear();
|
|
527
337
|
this._loaded = false;
|
|
@@ -551,7 +361,7 @@ loadData_fn = async function() {
|
|
|
551
361
|
searchQuery: this._view.searchQuery
|
|
552
362
|
});
|
|
553
363
|
if (!this.nocache) {
|
|
554
|
-
const cacheKey = __privateMethod(this,
|
|
364
|
+
const cacheKey = __privateMethod(this, _GdsTable_instances, getCacheKey_fn).call(this);
|
|
555
365
|
__privateGet(this, _cache)[cacheKey] = {
|
|
556
366
|
rows: response.rows,
|
|
557
367
|
total: response.total,
|
|
@@ -562,7 +372,7 @@ loadData_fn = async function() {
|
|
|
562
372
|
this._total = response.total;
|
|
563
373
|
this._selected.clear();
|
|
564
374
|
this._expanded.clear();
|
|
565
|
-
__privateMethod(this,
|
|
375
|
+
__privateMethod(this, _GdsTable_instances, clearAllExpansionLoadingStates_fn).call(this);
|
|
566
376
|
this._expandedRowsCache.clear();
|
|
567
377
|
this._expandedFullContentResolved.clear();
|
|
568
378
|
this._loaded = false;
|
|
@@ -587,17 +397,18 @@ loadData_fn = async function() {
|
|
|
587
397
|
this._loading = false;
|
|
588
398
|
}
|
|
589
399
|
};
|
|
590
|
-
_queueExpandedFullSlotRefresh = new WeakSet();
|
|
591
400
|
queueExpandedFullSlotRefresh_fn = function() {
|
|
592
|
-
if (__privateGet(this, _pendingExpandedFullSlotRefresh))
|
|
593
|
-
return;
|
|
401
|
+
if (__privateGet(this, _pendingExpandedFullSlotRefresh)) return;
|
|
594
402
|
__privateSet(this, _pendingExpandedFullSlotRefresh, true);
|
|
595
403
|
queueMicrotask(() => {
|
|
596
404
|
__privateSet(this, _pendingExpandedFullSlotRefresh, false);
|
|
597
|
-
__privateMethod(this,
|
|
405
|
+
__privateMethod(this, _GdsTable_instances, refreshExpandedFullSlotKeys_fn).call(this);
|
|
598
406
|
});
|
|
599
407
|
};
|
|
600
|
-
|
|
408
|
+
/**
|
|
409
|
+
* Returns the column keys for the rightmost sticky-left and leftmost sticky-right
|
|
410
|
+
* visible columns — these are the ones that get the divider border.
|
|
411
|
+
*/
|
|
601
412
|
getStickyBorderKeys_fn = function() {
|
|
602
413
|
const visible = this.columns.filter(
|
|
603
414
|
(c) => this._view.visibleColumns.has(c.key)
|
|
@@ -609,11 +420,14 @@ getStickyBorderKeys_fn = function() {
|
|
|
609
420
|
lastRight: rightCols.length ? rightCols[0].key : null
|
|
610
421
|
};
|
|
611
422
|
};
|
|
612
|
-
|
|
423
|
+
/**
|
|
424
|
+
* Measures built-in and user-defined sticky column widths from the DOM
|
|
425
|
+
* and applies matching left/right inline styles to every cell in each
|
|
426
|
+
* sticky column. Uses offsetWidth (layout-relative, scroll-independent).
|
|
427
|
+
*/
|
|
613
428
|
updateStickyOffsets_fn = function() {
|
|
614
429
|
const root = this.shadowRoot;
|
|
615
|
-
if (!root)
|
|
616
|
-
return;
|
|
430
|
+
if (!root) return;
|
|
617
431
|
const leftHeaders = Array.from(
|
|
618
432
|
root.querySelectorAll("thead th.sticky-left")
|
|
619
433
|
);
|
|
@@ -622,8 +436,7 @@ updateStickyOffsets_fn = function() {
|
|
|
622
436
|
);
|
|
623
437
|
const expanderTh = root.querySelector("thead th.expander-cell");
|
|
624
438
|
const checkboxTh = root.querySelector("thead th.checkbox-cell");
|
|
625
|
-
if (!leftHeaders.length && !rightHeaders.length)
|
|
626
|
-
return;
|
|
439
|
+
if (!leftHeaders.length && !rightHeaders.length) return;
|
|
627
440
|
const offsets = [];
|
|
628
441
|
let leftAccum = (expanderTh?.offsetWidth ?? 0) + (checkboxTh?.offsetWidth ?? 0);
|
|
629
442
|
for (const th of leftHeaders) {
|
|
@@ -636,8 +449,7 @@ updateStickyOffsets_fn = function() {
|
|
|
636
449
|
rightAccum += th.offsetWidth;
|
|
637
450
|
}
|
|
638
451
|
const appliedOffsets = offsets.map(({ th, side, offset }) => `${side}:${th.dataset.colKey}:${offset}`).join("|");
|
|
639
|
-
if (appliedOffsets === __privateGet(this, _appliedStickyOffsets))
|
|
640
|
-
return;
|
|
452
|
+
if (appliedOffsets === __privateGet(this, _appliedStickyOffsets)) return;
|
|
641
453
|
__privateSet(this, _appliedStickyOffsets, appliedOffsets);
|
|
642
454
|
root.querySelectorAll("[data-col-key]").forEach((el) => {
|
|
643
455
|
el.style.left = "";
|
|
@@ -651,7 +463,9 @@ updateStickyOffsets_fn = function() {
|
|
|
651
463
|
}
|
|
652
464
|
}
|
|
653
465
|
};
|
|
654
|
-
|
|
466
|
+
/**
|
|
467
|
+
* Gets the unique key for slot naming (prioritizes: custom key > row.id > index)
|
|
468
|
+
*/
|
|
655
469
|
getRowKey_fn = function(row, index, slotKey) {
|
|
656
470
|
if (typeof slotKey === "string" || typeof slotKey === "number") {
|
|
657
471
|
return slotKey;
|
|
@@ -662,50 +476,55 @@ getRowKey_fn = function(row, index, slotKey) {
|
|
|
662
476
|
}
|
|
663
477
|
return index + 1;
|
|
664
478
|
};
|
|
665
|
-
_renderCellWrapped = new WeakSet();
|
|
666
479
|
renderCellWrapped_fn = function(content) {
|
|
667
480
|
return html`<span class="cell-wrapped-content">${content}</span>`;
|
|
668
481
|
};
|
|
669
|
-
_renderMobileLabel = new WeakSet();
|
|
670
482
|
renderMobileLabel_fn = function(column) {
|
|
671
483
|
return html`<span class="column-label" aria-hidden="true">
|
|
672
484
|
${column.label}:
|
|
673
485
|
</span>`;
|
|
674
486
|
};
|
|
675
|
-
_renderSlotElement = new WeakSet();
|
|
676
487
|
renderSlotElement_fn = function(columnKey, rowKey, slotId) {
|
|
677
488
|
const slotName = `${columnKey}:${rowKey}:${slotId}`;
|
|
678
489
|
return html`<slot name="${slotName}"></slot>`;
|
|
679
490
|
};
|
|
680
|
-
|
|
491
|
+
/**
|
|
492
|
+
* Renders cell content with proper ordering and wrapping.
|
|
493
|
+
*
|
|
494
|
+
* **Slot-based content:**
|
|
495
|
+
* - Renders in exact order: ['lead', 'value', 'button'] → icon, text, button
|
|
496
|
+
* - Wraps value when column.justify is set (for flexbox)
|
|
497
|
+
* - Slots stay unwrapped
|
|
498
|
+
*
|
|
499
|
+
* **Plain content:**
|
|
500
|
+
* - Wraps when column.justify is set, otherwise renders directly
|
|
501
|
+
*/
|
|
681
502
|
renderCellContent_fn = function(row, column, index) {
|
|
682
503
|
const rawValue = column.value ? column.value(row) : row[column.key];
|
|
683
504
|
const isMobile = this._isMobile && this.responsive;
|
|
684
505
|
const shouldWrap = !!column.justify;
|
|
685
506
|
let content;
|
|
686
507
|
if (Types.isSlotValue(rawValue)) {
|
|
687
|
-
const rowKey = __privateMethod(this,
|
|
508
|
+
const rowKey = __privateMethod(this, _GdsTable_instances, getRowKey_fn).call(this, row, index, rawValue.key);
|
|
688
509
|
content = rawValue.slots.map((slotItem) => {
|
|
689
510
|
if (slotItem === "value") {
|
|
690
|
-
if (rawValue.value === void 0)
|
|
691
|
-
|
|
692
|
-
return shouldWrap ? __privateMethod(this, _renderCellWrapped, renderCellWrapped_fn).call(this, rawValue.value) : rawValue.value;
|
|
511
|
+
if (rawValue.value === void 0) return null;
|
|
512
|
+
return shouldWrap ? __privateMethod(this, _GdsTable_instances, renderCellWrapped_fn).call(this, rawValue.value) : rawValue.value;
|
|
693
513
|
}
|
|
694
|
-
return __privateMethod(this,
|
|
514
|
+
return __privateMethod(this, _GdsTable_instances, renderSlotElement_fn).call(this, column.key, rowKey, slotItem);
|
|
695
515
|
});
|
|
696
516
|
} else {
|
|
697
|
-
content = shouldWrap ? __privateMethod(this,
|
|
517
|
+
content = shouldWrap ? __privateMethod(this, _GdsTable_instances, renderCellWrapped_fn).call(this, rawValue) : rawValue;
|
|
698
518
|
}
|
|
699
519
|
return html`
|
|
700
520
|
<div
|
|
701
521
|
class="cell-content"
|
|
702
522
|
aria-label=${ifDefined(isMobile ? column.label : void 0)}
|
|
703
523
|
>
|
|
704
|
-
${isMobile ? __privateMethod(this,
|
|
524
|
+
${isMobile ? __privateMethod(this, _GdsTable_instances, renderMobileLabel_fn).call(this, column) : null} ${content}
|
|
705
525
|
</div>
|
|
706
526
|
`;
|
|
707
527
|
};
|
|
708
|
-
_renderSortIcon = new WeakSet();
|
|
709
528
|
renderSortIcon_fn = function(column) {
|
|
710
529
|
const isSorted = this._view.sortColumn === column.key;
|
|
711
530
|
const sortDirection = this._view.sortDirection;
|
|
@@ -714,14 +533,11 @@ renderSortIcon_fn = function(column) {
|
|
|
714
533
|
}
|
|
715
534
|
return html`<gds-icon-sort-up size="m"></gds-icon-sort-up>`;
|
|
716
535
|
};
|
|
717
|
-
_hasHeaderContent = new WeakSet();
|
|
718
536
|
hasHeaderContent_fn = function() {
|
|
719
537
|
return this.searchable || this.settings || this.querySelector('[slot="header-lead"]') || this.querySelector('[slot="header-trail"]');
|
|
720
538
|
};
|
|
721
|
-
_renderHeaderControls = new WeakSet();
|
|
722
539
|
renderHeaderControls_fn = function() {
|
|
723
|
-
if (this.plain || !__privateMethod(this,
|
|
724
|
-
return null;
|
|
540
|
+
if (this.plain || !__privateMethod(this, _GdsTable_instances, hasHeaderContent_fn).call(this)) return null;
|
|
725
541
|
return html`
|
|
726
542
|
<div class="header">
|
|
727
543
|
<div class="lead">
|
|
@@ -730,13 +546,13 @@ renderHeaderControls_fn = function() {
|
|
|
730
546
|
() => html`
|
|
731
547
|
<gds-input
|
|
732
548
|
type="text"
|
|
733
|
-
size="${__privateGet(this,
|
|
549
|
+
size="${__privateGet(this, _GdsTable_instances, Density_get).input}"
|
|
734
550
|
plain
|
|
735
551
|
clearable
|
|
736
552
|
label="${this.searchLabel || msg("Search table")}"
|
|
737
553
|
.value=${this._view.searchQuery}
|
|
738
|
-
@input=${__privateMethod(this,
|
|
739
|
-
@gds-input-cleared=${__privateMethod(this,
|
|
554
|
+
@input=${__privateMethod(this, _GdsTable_instances, handleSearch_fn)}
|
|
555
|
+
@gds-input-cleared=${__privateMethod(this, _GdsTable_instances, handleSearchClear_fn)}
|
|
740
556
|
width="100%; l{240px}"
|
|
741
557
|
min-width="240px"
|
|
742
558
|
>
|
|
@@ -756,11 +572,11 @@ renderHeaderControls_fn = function() {
|
|
|
756
572
|
<gds-dropdown
|
|
757
573
|
multiple
|
|
758
574
|
plain
|
|
759
|
-
size="${__privateGet(this,
|
|
575
|
+
size="${__privateGet(this, _GdsTable_instances, Density_get).dropdown}"
|
|
760
576
|
label="${msg("Select visible columns")}"
|
|
761
577
|
searchable
|
|
762
578
|
.value=${Array.from(this._view.visibleColumns)}
|
|
763
|
-
@change=${__privateMethod(this,
|
|
579
|
+
@change=${__privateMethod(this, _GdsTable_instances, handleColumnVisibility_fn)}
|
|
764
580
|
>
|
|
765
581
|
<span slot="trigger">${msg("Columns")}</span>
|
|
766
582
|
${this.columns.map(
|
|
@@ -780,11 +596,10 @@ renderHeaderControls_fn = function() {
|
|
|
780
596
|
</div>
|
|
781
597
|
`;
|
|
782
598
|
};
|
|
783
|
-
_renderColumnHeader = new WeakSet();
|
|
784
599
|
renderColumnHeader_fn = function(column) {
|
|
785
600
|
const isSorted = this._view.sortColumn === column.key;
|
|
786
601
|
const sortDirection = this._view.sortDirection;
|
|
787
|
-
const { lastLeft, lastRight } = __privateMethod(this,
|
|
602
|
+
const { lastLeft, lastRight } = __privateMethod(this, _GdsTable_instances, getStickyBorderKeys_fn).call(this);
|
|
788
603
|
let ariaLabel = column.label;
|
|
789
604
|
if (column.sortable) {
|
|
790
605
|
if (isSorted) {
|
|
@@ -825,10 +640,10 @@ renderColumnHeader_fn = function(column) {
|
|
|
825
640
|
class="column-header"
|
|
826
641
|
aria-label="${ariaLabel}"
|
|
827
642
|
aria-pressed=${isSorted}
|
|
828
|
-
@click=${() => __privateMethod(this,
|
|
643
|
+
@click=${() => __privateMethod(this, _GdsTable_instances, handleSort_fn).call(this, column.key)}
|
|
829
644
|
>
|
|
830
645
|
<span class="column-label">${column.label}</span>
|
|
831
|
-
<span class="sort-icon">${__privateMethod(this,
|
|
646
|
+
<span class="sort-icon">${__privateMethod(this, _GdsTable_instances, renderSortIcon_fn).call(this, column)}</span>
|
|
832
647
|
</button>
|
|
833
648
|
`,
|
|
834
649
|
() => html`
|
|
@@ -840,29 +655,25 @@ renderColumnHeader_fn = function(column) {
|
|
|
840
655
|
</th>
|
|
841
656
|
`;
|
|
842
657
|
};
|
|
843
|
-
_renderSelectableHeader = new WeakSet();
|
|
844
658
|
renderSelectableHeader_fn = function() {
|
|
845
|
-
if (!__privateGet(this,
|
|
846
|
-
return null;
|
|
659
|
+
if (!__privateGet(this, _GdsTable_instances, isSelectableEnabled_get)) return null;
|
|
847
660
|
return html`
|
|
848
661
|
<th class="checkbox-cell">
|
|
849
662
|
<div class="cell-center">
|
|
850
|
-
${__privateMethod(this,
|
|
851
|
-
checked: __privateGet(this,
|
|
852
|
-
indeterminate: __privateGet(this,
|
|
663
|
+
${__privateMethod(this, _GdsTable_instances, renderCheckbox_fn).call(this, {
|
|
664
|
+
checked: __privateGet(this, _GdsTable_instances, isAllSelected_get),
|
|
665
|
+
indeterminate: __privateGet(this, _GdsTable_instances, isPartialSelection_get),
|
|
853
666
|
ariaLabel: msg("Select all rows"),
|
|
854
|
-
onToggle: () => __privateMethod(this,
|
|
667
|
+
onToggle: () => __privateMethod(this, _GdsTable_instances, handleSelectAll_fn).call(this, {}),
|
|
855
668
|
skip: this.disableSelectAll
|
|
856
669
|
})}
|
|
857
670
|
</div>
|
|
858
671
|
</th>
|
|
859
672
|
`;
|
|
860
673
|
};
|
|
861
|
-
_renderExpandableHeader = new WeakSet();
|
|
862
674
|
renderExpandableHeader_fn = function() {
|
|
863
|
-
if (!__privateGet(this,
|
|
864
|
-
|
|
865
|
-
const allExpanded = __privateGet(this, _isAllExpanded, isAllExpanded_get);
|
|
675
|
+
if (!__privateGet(this, _GdsTable_instances, isExpandableEnabled_get)) return null;
|
|
676
|
+
const allExpanded = __privateGet(this, _GdsTable_instances, isAllExpanded_get);
|
|
866
677
|
const label = allExpanded ? msg("Collapse all rows") : msg("Expand all rows");
|
|
867
678
|
return html`
|
|
868
679
|
<th class="expander-cell expander-header">
|
|
@@ -871,7 +682,7 @@ renderExpandableHeader_fn = function() {
|
|
|
871
682
|
rank="tertiary"
|
|
872
683
|
size="small"
|
|
873
684
|
label="${label}"
|
|
874
|
-
@click=${() => __privateMethod(this,
|
|
685
|
+
@click=${() => __privateMethod(this, _GdsTable_instances, handleExpandAll_fn).call(this)}
|
|
875
686
|
>
|
|
876
687
|
${allExpanded ? html`<gds-icon-chevron-grabber-vertical-reversed></gds-icon-chevron-grabber-vertical-reversed>` : html`<gds-icon-chevron-grabber-vertical></gds-icon-chevron-grabber-vertical>`}
|
|
877
688
|
</gds-button>
|
|
@@ -879,124 +690,101 @@ renderExpandableHeader_fn = function() {
|
|
|
879
690
|
</th>
|
|
880
691
|
`;
|
|
881
692
|
};
|
|
882
|
-
_getRowSubRowsSource = new WeakSet();
|
|
883
693
|
getRowSubRowsSource_fn = function(row) {
|
|
884
694
|
if ("subRows" in row) {
|
|
885
695
|
return row.subRows;
|
|
886
696
|
}
|
|
887
697
|
return row?.children;
|
|
888
698
|
};
|
|
889
|
-
_getRowFullContentSource = new WeakSet();
|
|
890
699
|
getRowFullContentSource_fn = function(row) {
|
|
891
700
|
if ("fullContent" in row) {
|
|
892
701
|
return row.fullContent;
|
|
893
702
|
}
|
|
894
703
|
return void 0;
|
|
895
704
|
};
|
|
896
|
-
_getExpandedRows = new WeakSet();
|
|
897
705
|
getExpandedRows_fn = function(_row, index) {
|
|
898
706
|
return this._expandedRowsCache.get(index) ?? [];
|
|
899
707
|
};
|
|
900
|
-
_hasAsyncSubRows = new WeakSet();
|
|
901
708
|
hasAsyncSubRows_fn = function(row) {
|
|
902
|
-
const subRows = __privateMethod(this,
|
|
709
|
+
const subRows = __privateMethod(this, _GdsTable_instances, getRowSubRowsSource_fn).call(this, row);
|
|
903
710
|
return typeof subRows === "function";
|
|
904
711
|
};
|
|
905
|
-
_hasAsyncFullContent = new WeakSet();
|
|
906
712
|
hasAsyncFullContent_fn = function(row) {
|
|
907
|
-
const fullContent = __privateMethod(this,
|
|
713
|
+
const fullContent = __privateMethod(this, _GdsTable_instances, getRowFullContentSource_fn).call(this, row);
|
|
908
714
|
return typeof fullContent === "function";
|
|
909
715
|
};
|
|
910
|
-
_getSubRowCount = new WeakSet();
|
|
911
716
|
getSubRowCount_fn = function(row, index) {
|
|
912
|
-
const fallbackCount = __privateMethod(this,
|
|
717
|
+
const fallbackCount = __privateMethod(this, _GdsTable_instances, getExpandedRows_fn).call(this, row, index).length || 1;
|
|
913
718
|
const count = Number(row.subRowCount);
|
|
914
|
-
if (!Number.isFinite(count) || count <= 0)
|
|
915
|
-
return fallbackCount;
|
|
719
|
+
if (!Number.isFinite(count) || count <= 0) return fallbackCount;
|
|
916
720
|
return Math.floor(count);
|
|
917
721
|
};
|
|
918
|
-
_hasExpandedFullSlot = new WeakSet();
|
|
919
722
|
hasExpandedFullSlot_fn = function(row, index) {
|
|
920
|
-
const rowKey = String(__privateMethod(this,
|
|
723
|
+
const rowKey = String(__privateMethod(this, _GdsTable_instances, getRowKey_fn).call(this, row, index));
|
|
921
724
|
return __privateGet(this, _expandedFullSlotKeys).has(rowKey);
|
|
922
725
|
};
|
|
923
|
-
_hasExpandedFullContent = new WeakSet();
|
|
924
726
|
hasExpandedFullContent_fn = function(row, index) {
|
|
925
|
-
return __privateMethod(this,
|
|
727
|
+
return __privateMethod(this, _GdsTable_instances, hasExpandedFullSlot_fn).call(this, row, index);
|
|
926
728
|
};
|
|
927
|
-
_refreshExpandedFullSlotKeys = new WeakSet();
|
|
928
729
|
refreshExpandedFullSlotKeys_fn = function() {
|
|
929
730
|
const keys = /* @__PURE__ */ new Set();
|
|
930
731
|
this.querySelectorAll(
|
|
931
732
|
'[slot^="expand:"][slot$=":full"]'
|
|
932
733
|
).forEach((el) => {
|
|
933
734
|
const slotName = el.getAttribute("slot");
|
|
934
|
-
if (!slotName)
|
|
935
|
-
return;
|
|
735
|
+
if (!slotName) return;
|
|
936
736
|
if (!slotName.startsWith("expand:") || !slotName.endsWith(":full")) {
|
|
937
737
|
return;
|
|
938
738
|
}
|
|
939
739
|
const rowKey = slotName.slice("expand:".length, -":full".length);
|
|
940
|
-
if (rowKey)
|
|
941
|
-
keys.add(rowKey);
|
|
740
|
+
if (rowKey) keys.add(rowKey);
|
|
942
741
|
});
|
|
943
742
|
const hasChanged = keys.size !== __privateGet(this, _expandedFullSlotKeys).size || [...keys].some((key) => !__privateGet(this, _expandedFullSlotKeys).has(key));
|
|
944
|
-
if (!hasChanged)
|
|
945
|
-
return;
|
|
743
|
+
if (!hasChanged) return;
|
|
946
744
|
__privateSet(this, _expandedFullSlotKeys, keys);
|
|
947
745
|
this.requestUpdate();
|
|
948
746
|
};
|
|
949
|
-
_isRowExpandable = new WeakSet();
|
|
950
747
|
isRowExpandable_fn = function(row, index) {
|
|
951
|
-
if (__privateGet(this,
|
|
952
|
-
return false;
|
|
748
|
+
if (__privateGet(this, _GdsTable_instances, isResponsiveStacked_get)) return false;
|
|
953
749
|
if (typeof row.isExpandable === "boolean") {
|
|
954
750
|
return row.isExpandable;
|
|
955
751
|
}
|
|
956
|
-
if (__privateMethod(this,
|
|
957
|
-
|
|
958
|
-
if (__privateMethod(this,
|
|
959
|
-
|
|
960
|
-
if (__privateMethod(this, _getExpandedRows, getExpandedRows_fn).call(this, row, index).length > 0)
|
|
961
|
-
return true;
|
|
962
|
-
return __privateMethod(this, _hasExpandedFullContent, hasExpandedFullContent_fn).call(this, row, index);
|
|
752
|
+
if (__privateMethod(this, _GdsTable_instances, hasAsyncSubRows_fn).call(this, row)) return true;
|
|
753
|
+
if (__privateMethod(this, _GdsTable_instances, hasAsyncFullContent_fn).call(this, row)) return true;
|
|
754
|
+
if (__privateMethod(this, _GdsTable_instances, getExpandedRows_fn).call(this, row, index).length > 0) return true;
|
|
755
|
+
return __privateMethod(this, _GdsTable_instances, hasExpandedFullContent_fn).call(this, row, index);
|
|
963
756
|
};
|
|
964
|
-
_getExpandedGroupId = new WeakSet();
|
|
965
757
|
getExpandedGroupId_fn = function(row, index) {
|
|
966
|
-
const key = String(__privateMethod(this,
|
|
758
|
+
const key = String(__privateMethod(this, _GdsTable_instances, getRowKey_fn).call(this, row, index)).replace(
|
|
967
759
|
/[^a-zA-Z0-9_-]/g,
|
|
968
760
|
"-"
|
|
969
761
|
);
|
|
970
762
|
return `row-expand-group-${key}`;
|
|
971
763
|
};
|
|
972
|
-
_getRenderedColumnCount = new WeakSet();
|
|
973
764
|
getRenderedColumnCount_fn = function() {
|
|
974
765
|
const visibleColumnsCount = this.columns.filter(
|
|
975
766
|
(column) => this._view.visibleColumns.has(column.key)
|
|
976
767
|
).length;
|
|
977
|
-
return visibleColumnsCount + (__privateGet(this,
|
|
768
|
+
return visibleColumnsCount + (__privateGet(this, _GdsTable_instances, isExpandableEnabled_get) ? 1 : 0) + (__privateGet(this, _GdsTable_instances, isSelectableEnabled_get) ? 1 : 0);
|
|
978
769
|
};
|
|
979
|
-
_renderColumnHeaders = new WeakSet();
|
|
980
770
|
renderColumnHeaders_fn = function() {
|
|
981
|
-
return this.columns.filter((column) => this._view.visibleColumns.has(column.key)).map((column) => __privateMethod(this,
|
|
771
|
+
return this.columns.filter((column) => this._view.visibleColumns.has(column.key)).map((column) => __privateMethod(this, _GdsTable_instances, renderColumnHeader_fn).call(this, column));
|
|
982
772
|
};
|
|
983
|
-
_renderTableHeader = new WeakSet();
|
|
984
773
|
renderTableHeader_fn = function() {
|
|
985
774
|
return html`
|
|
986
775
|
<thead>
|
|
987
776
|
<tr>
|
|
988
777
|
${[
|
|
989
|
-
__privateMethod(this,
|
|
990
|
-
__privateMethod(this,
|
|
991
|
-
__privateMethod(this,
|
|
778
|
+
__privateMethod(this, _GdsTable_instances, renderExpandableHeader_fn).call(this),
|
|
779
|
+
__privateMethod(this, _GdsTable_instances, renderSelectableHeader_fn).call(this),
|
|
780
|
+
__privateMethod(this, _GdsTable_instances, renderColumnHeaders_fn).call(this)
|
|
992
781
|
]}
|
|
993
782
|
</tr>
|
|
994
783
|
</thead>
|
|
995
784
|
`;
|
|
996
785
|
};
|
|
997
|
-
_renderTableCell = new WeakSet();
|
|
998
786
|
renderTableCell_fn = function(row, column, index) {
|
|
999
|
-
const { lastLeft, lastRight } = __privateMethod(this,
|
|
787
|
+
const { lastLeft, lastRight } = __privateMethod(this, _GdsTable_instances, getStickyBorderKeys_fn).call(this);
|
|
1000
788
|
const classes = classMap({
|
|
1001
789
|
[`align-${column.align}`]: !!column.align,
|
|
1002
790
|
[`justify-${column.justify}`]: !!column.justify,
|
|
@@ -1015,20 +803,18 @@ renderTableCell_fn = function(row, column, index) {
|
|
|
1015
803
|
class=${classes}
|
|
1016
804
|
data-col-key=${ifDefined(column.sticky ? column.key : void 0)}
|
|
1017
805
|
>
|
|
1018
|
-
${__privateMethod(this,
|
|
806
|
+
${__privateMethod(this, _GdsTable_instances, renderCellContent_fn).call(this, row, column, index)}
|
|
1019
807
|
</td>
|
|
1020
808
|
`;
|
|
1021
809
|
};
|
|
1022
|
-
_renderExpandableCell = new WeakSet();
|
|
1023
810
|
renderExpandableCell_fn = function(row, index) {
|
|
1024
|
-
if (!__privateGet(this,
|
|
1025
|
-
|
|
1026
|
-
const isExpandable = __privateMethod(this, _isRowExpandable, isRowExpandable_fn).call(this, row, index);
|
|
811
|
+
if (!__privateGet(this, _GdsTable_instances, isExpandableEnabled_get)) return null;
|
|
812
|
+
const isExpandable = __privateMethod(this, _GdsTable_instances, isRowExpandable_fn).call(this, row, index);
|
|
1027
813
|
if (!isExpandable) {
|
|
1028
814
|
return html`<td class="expander-cell"></td>`;
|
|
1029
815
|
}
|
|
1030
816
|
const isExpanded = this._expanded.has(index);
|
|
1031
|
-
const groupId = __privateMethod(this,
|
|
817
|
+
const groupId = __privateMethod(this, _GdsTable_instances, getExpandedGroupId_fn).call(this, row, index);
|
|
1032
818
|
const actionLabel = isExpanded ? row.collapseLabel || msg("Collapse row") : row.expandLabel || msg("Expand row");
|
|
1033
819
|
return html`
|
|
1034
820
|
<td class="expander-cell">
|
|
@@ -1039,7 +825,7 @@ renderExpandableCell_fn = function(row, index) {
|
|
|
1039
825
|
label="${actionLabel} ${index + 1}"
|
|
1040
826
|
aria-expanded=${isExpanded ? "true" : "false"}
|
|
1041
827
|
aria-controls=${groupId}
|
|
1042
|
-
@click=${() => __privateMethod(this,
|
|
828
|
+
@click=${() => __privateMethod(this, _GdsTable_instances, handleExpandToggle_fn).call(this, row, index)}
|
|
1043
829
|
>
|
|
1044
830
|
${isExpanded ? html`<gds-icon-chevron-top size="s"></gds-icon-chevron-top>` : html`<gds-icon-chevron-bottom
|
|
1045
831
|
size="s"
|
|
@@ -1048,19 +834,17 @@ renderExpandableCell_fn = function(row, index) {
|
|
|
1048
834
|
</td>
|
|
1049
835
|
`;
|
|
1050
836
|
};
|
|
1051
|
-
_renderSelectableCell = new WeakSet();
|
|
1052
837
|
renderSelectableCell_fn = function(index) {
|
|
1053
|
-
if (!__privateGet(this,
|
|
1054
|
-
return null;
|
|
838
|
+
if (!__privateGet(this, _GdsTable_instances, isSelectableEnabled_get)) return null;
|
|
1055
839
|
const selectRowLabel = `${msg("Select row")} ${index + 1}`;
|
|
1056
840
|
return html`
|
|
1057
841
|
<td class="checkbox-cell">
|
|
1058
842
|
<div class="cell-center">
|
|
1059
|
-
${__privateMethod(this,
|
|
843
|
+
${__privateMethod(this, _GdsTable_instances, renderCheckbox_fn).call(this, {
|
|
1060
844
|
checked: this._selected.has(index),
|
|
1061
845
|
indeterminate: false,
|
|
1062
846
|
ariaLabel: selectRowLabel,
|
|
1063
|
-
onToggle: () => __privateMethod(this,
|
|
847
|
+
onToggle: () => __privateMethod(this, _GdsTable_instances, handleRowSelect_fn).call(this, index, {
|
|
1064
848
|
detail: { checked: !this._selected.has(index) }
|
|
1065
849
|
})
|
|
1066
850
|
})}
|
|
@@ -1068,13 +852,11 @@ renderSelectableCell_fn = function(index) {
|
|
|
1068
852
|
</td>
|
|
1069
853
|
`;
|
|
1070
854
|
};
|
|
1071
|
-
_renderRowCells = new WeakSet();
|
|
1072
855
|
renderRowCells_fn = function(row, index) {
|
|
1073
|
-
return this.columns.filter((column) => this._view.visibleColumns.has(column.key)).map((column) => __privateMethod(this,
|
|
856
|
+
return this.columns.filter((column) => this._view.visibleColumns.has(column.key)).map((column) => __privateMethod(this, _GdsTable_instances, renderTableCell_fn).call(this, row, column, index));
|
|
1074
857
|
};
|
|
1075
|
-
_renderFullWidthDetailsRow = new WeakSet();
|
|
1076
858
|
renderFullWidthDetailsRow_fn = function(row, index, groupId) {
|
|
1077
|
-
const rowKey = __privateMethod(this,
|
|
859
|
+
const rowKey = __privateMethod(this, _GdsTable_instances, getRowKey_fn).call(this, row, index);
|
|
1078
860
|
return html`
|
|
1079
861
|
<tr
|
|
1080
862
|
class="expanded-row full expanded-group-end"
|
|
@@ -1083,14 +865,13 @@ renderFullWidthDetailsRow_fn = function(row, index, groupId) {
|
|
|
1083
865
|
>
|
|
1084
866
|
<td
|
|
1085
867
|
class="expanded-full-cell"
|
|
1086
|
-
colspan=${__privateMethod(this,
|
|
868
|
+
colspan=${__privateMethod(this, _GdsTable_instances, getRenderedColumnCount_fn).call(this)}
|
|
1087
869
|
>
|
|
1088
870
|
${html`<slot name="expand:${rowKey}:full"></slot>`}
|
|
1089
871
|
</td>
|
|
1090
872
|
</tr>
|
|
1091
873
|
`;
|
|
1092
874
|
};
|
|
1093
|
-
_renderExpandedLoadingRow = new WeakSet();
|
|
1094
875
|
renderExpandedLoadingRow_fn = function(_row, _index, groupId, childIndex, rowCount, isCompleting = false) {
|
|
1095
876
|
const visibleColumns = this.columns.filter(
|
|
1096
877
|
(column) => this._view.visibleColumns.has(column.key)
|
|
@@ -1108,8 +889,8 @@ renderExpandedLoadingRow_fn = function(_row, _index, groupId, childIndex, rowCou
|
|
|
1108
889
|
aria-level="2"
|
|
1109
890
|
aria-busy="true"
|
|
1110
891
|
>
|
|
1111
|
-
${__privateGet(this,
|
|
1112
|
-
${__privateGet(this,
|
|
892
|
+
${__privateGet(this, _GdsTable_instances, isExpandableEnabled_get) ? html`<td class="expander-cell"></td>` : null}
|
|
893
|
+
${__privateGet(this, _GdsTable_instances, isSelectableEnabled_get) ? html`<td class="checkbox-cell"></td>` : null}
|
|
1113
894
|
${visibleColumns.map((column) => {
|
|
1114
895
|
const classes = classMap({
|
|
1115
896
|
[`align-${column.align}`]: !!column.align,
|
|
@@ -1131,15 +912,13 @@ renderExpandedLoadingRow_fn = function(_row, _index, groupId, childIndex, rowCou
|
|
|
1131
912
|
</tr>
|
|
1132
913
|
`;
|
|
1133
914
|
};
|
|
1134
|
-
_renderExpandedLoadingRows = new WeakSet();
|
|
1135
915
|
renderExpandedLoadingRows_fn = function(row, index, groupId, isCompleting = false) {
|
|
1136
|
-
const count = __privateMethod(this,
|
|
916
|
+
const count = __privateMethod(this, _GdsTable_instances, getSubRowCount_fn).call(this, row, index);
|
|
1137
917
|
return Array.from(
|
|
1138
918
|
{ length: count },
|
|
1139
|
-
(_, childIndex) => __privateMethod(this,
|
|
919
|
+
(_, childIndex) => __privateMethod(this, _GdsTable_instances, renderExpandedLoadingRow_fn).call(this, row, index, groupId, childIndex, count, isCompleting)
|
|
1140
920
|
);
|
|
1141
921
|
};
|
|
1142
|
-
_renderExpandedFullLoadingRow = new WeakSet();
|
|
1143
922
|
renderExpandedFullLoadingRow_fn = function(groupId, isCompleting = false) {
|
|
1144
923
|
const rowClasses = classMap({
|
|
1145
924
|
"expanded-row": true,
|
|
@@ -1151,7 +930,7 @@ renderExpandedFullLoadingRow_fn = function(groupId, isCompleting = false) {
|
|
|
1151
930
|
<tr class=${rowClasses} id="${groupId}" aria-level="2" aria-busy="true">
|
|
1152
931
|
<td
|
|
1153
932
|
class="expanded-full-cell"
|
|
1154
|
-
colspan=${__privateMethod(this,
|
|
933
|
+
colspan=${__privateMethod(this, _GdsTable_instances, getRenderedColumnCount_fn).call(this)}
|
|
1155
934
|
>
|
|
1156
935
|
<div class="expanded-full-skeleton" aria-hidden="true">
|
|
1157
936
|
<span class="skeleton skeleton-title"></span>
|
|
@@ -1167,7 +946,6 @@ renderExpandedFullLoadingRow_fn = function(groupId, isCompleting = false) {
|
|
|
1167
946
|
</tr>
|
|
1168
947
|
`;
|
|
1169
948
|
};
|
|
1170
|
-
_getExpandedChildRowClasses = new WeakSet();
|
|
1171
949
|
getExpandedChildRowClasses_fn = function(isLast) {
|
|
1172
950
|
return {
|
|
1173
951
|
"expanded-row": true,
|
|
@@ -1175,7 +953,6 @@ getExpandedChildRowClasses_fn = function(isLast) {
|
|
|
1175
953
|
"expanded-group-end": isLast
|
|
1176
954
|
};
|
|
1177
955
|
};
|
|
1178
|
-
_getTableRowClasses = new WeakSet();
|
|
1179
956
|
getTableRowClasses_fn = function(index, isExpandable, isExpanded) {
|
|
1180
957
|
return {
|
|
1181
958
|
selected: this._selected.has(index),
|
|
@@ -1184,46 +961,41 @@ getTableRowClasses_fn = function(index, isExpandable, isExpanded) {
|
|
|
1184
961
|
"has-expandable-rows": isExpandable
|
|
1185
962
|
};
|
|
1186
963
|
};
|
|
1187
|
-
_getRowAriaExpanded = new WeakSet();
|
|
1188
964
|
getRowAriaExpanded_fn = function(isExpandable, isExpanded) {
|
|
1189
965
|
const value = isExpandable ? isExpanded ? "true" : "false" : void 0;
|
|
1190
966
|
return value;
|
|
1191
967
|
};
|
|
1192
|
-
_getTableRowPresentation = new WeakSet();
|
|
1193
968
|
getTableRowPresentation_fn = function(index, isExpandable, isExpanded) {
|
|
1194
969
|
return {
|
|
1195
|
-
classes: __privateMethod(this,
|
|
1196
|
-
ariaExpanded: __privateMethod(this,
|
|
970
|
+
classes: __privateMethod(this, _GdsTable_instances, getTableRowClasses_fn).call(this, index, isExpandable, isExpanded),
|
|
971
|
+
ariaExpanded: __privateMethod(this, _GdsTable_instances, getRowAriaExpanded_fn).call(this, isExpandable, isExpanded)
|
|
1197
972
|
};
|
|
1198
973
|
};
|
|
1199
|
-
_renderExpandedChildRow = new WeakSet();
|
|
1200
974
|
renderExpandedChildRow_fn = function(childRow, parentIndex, childIndex, isLast, groupId) {
|
|
1201
975
|
const childRenderIndex = this._rowsState.length + parentIndex * 1e3 + childIndex;
|
|
1202
976
|
return html`
|
|
1203
977
|
<tr
|
|
1204
|
-
class=${classMap(__privateMethod(this,
|
|
978
|
+
class=${classMap(__privateMethod(this, _GdsTable_instances, getExpandedChildRowClasses_fn).call(this, isLast))}
|
|
1205
979
|
id=${ifDefined(childIndex === 0 ? groupId : void 0)}
|
|
1206
980
|
aria-level="2"
|
|
1207
981
|
>
|
|
1208
|
-
${__privateGet(this,
|
|
1209
|
-
${__privateGet(this,
|
|
1210
|
-
${__privateMethod(this,
|
|
982
|
+
${__privateGet(this, _GdsTable_instances, isExpandableEnabled_get) ? html`<td class="expander-cell"></td>` : null}
|
|
983
|
+
${__privateGet(this, _GdsTable_instances, isSelectableEnabled_get) ? html`<td class="checkbox-cell"></td>` : null}
|
|
984
|
+
${__privateMethod(this, _GdsTable_instances, renderRowCells_fn).call(this, childRow, childRenderIndex)}
|
|
1211
985
|
</tr>
|
|
1212
986
|
`;
|
|
1213
987
|
};
|
|
1214
|
-
_getRowExpansionLoadingKind = new WeakSet();
|
|
1215
988
|
getRowExpansionLoadingKind_fn = function(row) {
|
|
1216
|
-
return __privateMethod(this,
|
|
989
|
+
return __privateMethod(this, _GdsTable_instances, hasAsyncSubRows_fn).call(this, row) ? "rows" : "full";
|
|
1217
990
|
};
|
|
1218
|
-
_getRowExpansionState = new WeakSet();
|
|
1219
991
|
getRowExpansionState_fn = function(row, index) {
|
|
1220
|
-
const isExpandable = __privateMethod(this,
|
|
992
|
+
const isExpandable = __privateMethod(this, _GdsTable_instances, isRowExpandable_fn).call(this, row, index);
|
|
1221
993
|
const isExpanded = isExpandable && this._expanded.has(index);
|
|
1222
994
|
const isExpanding = this._expanding.has(index);
|
|
1223
995
|
const isCompleting = this._completingExpansion.has(index);
|
|
1224
|
-
const groupId = __privateMethod(this,
|
|
1225
|
-
const expandedRows = __privateMethod(this,
|
|
1226
|
-
const loadingKind = __privateMethod(this,
|
|
996
|
+
const groupId = __privateMethod(this, _GdsTable_instances, getExpandedGroupId_fn).call(this, row, index);
|
|
997
|
+
const expandedRows = __privateMethod(this, _GdsTable_instances, getExpandedRows_fn).call(this, row, index);
|
|
998
|
+
const loadingKind = __privateMethod(this, _GdsTable_instances, getRowExpansionLoadingKind_fn).call(this, row);
|
|
1227
999
|
return {
|
|
1228
1000
|
isExpandable,
|
|
1229
1001
|
isExpanded,
|
|
@@ -1235,41 +1007,39 @@ getRowExpansionState_fn = function(row, index) {
|
|
|
1235
1007
|
loadingKind
|
|
1236
1008
|
};
|
|
1237
1009
|
};
|
|
1238
|
-
_renderExpandedRowContent = new WeakSet();
|
|
1239
1010
|
renderExpandedRowContent_fn = function(row, index, state2) {
|
|
1240
1011
|
if (state2.isExpanding) {
|
|
1241
|
-
return state2.loadingKind === "full" ? __privateMethod(this,
|
|
1012
|
+
return state2.loadingKind === "full" ? __privateMethod(this, _GdsTable_instances, renderExpandedFullLoadingRow_fn).call(this, state2.groupId, state2.isCompleting) : __privateMethod(this, _GdsTable_instances, renderExpandedLoadingRows_fn).call(this, row, index, state2.groupId, state2.isCompleting);
|
|
1242
1013
|
}
|
|
1243
1014
|
if (state2.hasExpandedRows) {
|
|
1244
1015
|
return state2.expandedRows.map(
|
|
1245
|
-
(expandedRow, childIndex) => __privateMethod(this,
|
|
1016
|
+
(expandedRow, childIndex) => __privateMethod(this, _GdsTable_instances, renderExpandedChildRow_fn).call(this, expandedRow, index, childIndex, childIndex === state2.expandedRows.length - 1, childIndex === 0 ? state2.groupId : void 0)
|
|
1246
1017
|
);
|
|
1247
1018
|
}
|
|
1248
|
-
return __privateMethod(this,
|
|
1019
|
+
return __privateMethod(this, _GdsTable_instances, renderFullWidthDetailsRow_fn).call(this, row, index, state2.groupId);
|
|
1249
1020
|
};
|
|
1250
|
-
|
|
1021
|
+
/* Main Table Row · Render */
|
|
1251
1022
|
renderTableRow_fn = function(row, index) {
|
|
1252
|
-
const state2 = __privateMethod(this,
|
|
1253
|
-
const presentation = __privateMethod(this,
|
|
1023
|
+
const state2 = __privateMethod(this, _GdsTable_instances, getRowExpansionState_fn).call(this, row, index);
|
|
1024
|
+
const presentation = __privateMethod(this, _GdsTable_instances, getTableRowPresentation_fn).call(this, index, state2.isExpandable, state2.isExpanded);
|
|
1254
1025
|
return html`
|
|
1255
1026
|
<tr
|
|
1256
1027
|
class=${classMap(presentation.classes)}
|
|
1257
|
-
aria-level=${ifDefined(__privateGet(this,
|
|
1028
|
+
aria-level=${ifDefined(__privateGet(this, _GdsTable_instances, isExpandableEnabled_get) ? "1" : void 0)}
|
|
1258
1029
|
aria-expanded=${ifDefined(presentation.ariaExpanded)}
|
|
1259
1030
|
>
|
|
1260
1031
|
${[
|
|
1261
|
-
__privateMethod(this,
|
|
1262
|
-
__privateMethod(this,
|
|
1263
|
-
__privateMethod(this,
|
|
1032
|
+
__privateMethod(this, _GdsTable_instances, renderExpandableCell_fn).call(this, row, index),
|
|
1033
|
+
__privateMethod(this, _GdsTable_instances, renderSelectableCell_fn).call(this, index),
|
|
1034
|
+
__privateMethod(this, _GdsTable_instances, renderRowCells_fn).call(this, row, index)
|
|
1264
1035
|
]}
|
|
1265
1036
|
</tr>
|
|
1266
1037
|
${when(
|
|
1267
1038
|
state2.isExpanded,
|
|
1268
|
-
() => __privateMethod(this,
|
|
1039
|
+
() => __privateMethod(this, _GdsTable_instances, renderExpandedRowContent_fn).call(this, row, index, state2)
|
|
1269
1040
|
)}
|
|
1270
1041
|
`;
|
|
1271
1042
|
};
|
|
1272
|
-
_renderCheckbox = new WeakSet();
|
|
1273
1043
|
renderCheckbox_fn = function({
|
|
1274
1044
|
checked,
|
|
1275
1045
|
indeterminate = false,
|
|
@@ -1278,12 +1048,10 @@ renderCheckbox_fn = function({
|
|
|
1278
1048
|
onToggle,
|
|
1279
1049
|
skip = false
|
|
1280
1050
|
}) {
|
|
1281
|
-
if (skip)
|
|
1282
|
-
return null;
|
|
1051
|
+
if (skip) return null;
|
|
1283
1052
|
const toggle = (e) => {
|
|
1284
1053
|
e.stopPropagation();
|
|
1285
|
-
if (disabled)
|
|
1286
|
-
return;
|
|
1054
|
+
if (disabled) return;
|
|
1287
1055
|
onToggle();
|
|
1288
1056
|
};
|
|
1289
1057
|
const onKey = (e) => {
|
|
@@ -1319,7 +1087,6 @@ renderCheckbox_fn = function({
|
|
|
1319
1087
|
</div>
|
|
1320
1088
|
`;
|
|
1321
1089
|
};
|
|
1322
|
-
_renderSkeletonCell = new WeakSet();
|
|
1323
1090
|
renderSkeletonCell_fn = function(column) {
|
|
1324
1091
|
const isResponsive = this._isMobile && this.responsive;
|
|
1325
1092
|
const mobileLabel = isResponsive ? html`<span class="skeleton skeleton-text"></span>` : null;
|
|
@@ -1330,12 +1097,11 @@ renderSkeletonCell_fn = function(column) {
|
|
|
1330
1097
|
</div>
|
|
1331
1098
|
`;
|
|
1332
1099
|
};
|
|
1333
|
-
_renderSkeletonRow = new WeakSet();
|
|
1334
1100
|
renderSkeletonRow_fn = function(index) {
|
|
1335
1101
|
return html`
|
|
1336
1102
|
<tr class="skeleton-row">
|
|
1337
1103
|
${when(
|
|
1338
|
-
__privateGet(this,
|
|
1104
|
+
__privateGet(this, _GdsTable_instances, isExpandableEnabled_get),
|
|
1339
1105
|
() => html`
|
|
1340
1106
|
<td class="expander-cell">
|
|
1341
1107
|
<span class="skeleton skeleton-action"></span>
|
|
@@ -1343,23 +1109,22 @@ renderSkeletonRow_fn = function(index) {
|
|
|
1343
1109
|
`
|
|
1344
1110
|
)}
|
|
1345
1111
|
${when(
|
|
1346
|
-
__privateGet(this,
|
|
1112
|
+
__privateGet(this, _GdsTable_instances, isSelectableEnabled_get),
|
|
1347
1113
|
() => html`
|
|
1348
1114
|
<td class="checkbox-cell">
|
|
1349
1115
|
<span class="skeleton skeleton-checkbox"></span>
|
|
1350
1116
|
</td>
|
|
1351
1117
|
`
|
|
1352
1118
|
)}
|
|
1353
|
-
${this.columns.filter((column) => this._view.visibleColumns.has(column.key)).map((column) => html`<td>${__privateMethod(this,
|
|
1119
|
+
${this.columns.filter((column) => this._view.visibleColumns.has(column.key)).map((column) => html`<td>${__privateMethod(this, _GdsTable_instances, renderSkeletonCell_fn).call(this, column)}</td>`)}
|
|
1354
1120
|
</tr>
|
|
1355
1121
|
`;
|
|
1356
1122
|
};
|
|
1357
|
-
_renderTableBody = new WeakSet();
|
|
1358
1123
|
renderTableBody_fn = function() {
|
|
1359
1124
|
if (this._loading && this._loaded) {
|
|
1360
1125
|
const skeletonRows = Array.from(
|
|
1361
1126
|
{ length: this._view.rows },
|
|
1362
|
-
(_, i) => __privateMethod(this,
|
|
1127
|
+
(_, i) => __privateMethod(this, _GdsTable_instances, renderSkeletonRow_fn).call(this, i)
|
|
1363
1128
|
);
|
|
1364
1129
|
return html`<tbody aria-busy="true" aria-live="polite">
|
|
1365
1130
|
${skeletonRows}
|
|
@@ -1369,7 +1134,7 @@ renderTableBody_fn = function() {
|
|
|
1369
1134
|
<tbody aria-live="polite">
|
|
1370
1135
|
${repeat(
|
|
1371
1136
|
this._rowsState,
|
|
1372
|
-
(row, index) => __privateMethod(this,
|
|
1137
|
+
(row, index) => __privateMethod(this, _GdsTable_instances, getRowKey_fn).call(this, row, index),
|
|
1373
1138
|
(row, index) => guard(
|
|
1374
1139
|
[
|
|
1375
1140
|
row,
|
|
@@ -1381,16 +1146,14 @@ renderTableBody_fn = function() {
|
|
|
1381
1146
|
this._expandedRowsCache.get(index),
|
|
1382
1147
|
this._expandedFullContentResolved.has(index)
|
|
1383
1148
|
],
|
|
1384
|
-
() => __privateMethod(this,
|
|
1149
|
+
() => __privateMethod(this, _GdsTable_instances, renderTableRow_fn).call(this, row, index)
|
|
1385
1150
|
)
|
|
1386
1151
|
)}
|
|
1387
1152
|
</tbody>
|
|
1388
1153
|
`;
|
|
1389
1154
|
};
|
|
1390
|
-
_renderTableFoot = new WeakSet();
|
|
1391
1155
|
renderTableFoot_fn = function() {
|
|
1392
|
-
if (!this.tfoot || __privateGet(this,
|
|
1393
|
-
return null;
|
|
1156
|
+
if (!this.tfoot || __privateGet(this, _GdsTable_instances, isResponsiveStacked_get)) return null;
|
|
1394
1157
|
const label = this.tfoot.label;
|
|
1395
1158
|
const visibleColumns = this.columns.filter(
|
|
1396
1159
|
(column) => this._view.visibleColumns.has(column.key)
|
|
@@ -1403,15 +1166,15 @@ renderTableFoot_fn = function() {
|
|
|
1403
1166
|
<tfoot class=${classes}>
|
|
1404
1167
|
<tr>
|
|
1405
1168
|
${when(
|
|
1406
|
-
__privateGet(this,
|
|
1169
|
+
__privateGet(this, _GdsTable_instances, isExpandableEnabled_get),
|
|
1407
1170
|
() => html`<td class="expander-cell"></td>`
|
|
1408
1171
|
)}
|
|
1409
1172
|
${when(
|
|
1410
|
-
__privateGet(this,
|
|
1173
|
+
__privateGet(this, _GdsTable_instances, isSelectableEnabled_get),
|
|
1411
1174
|
() => html`<td class="checkbox-cell"></td>`
|
|
1412
1175
|
)}
|
|
1413
1176
|
${visibleColumns.map((column, i) => {
|
|
1414
|
-
const { lastLeft, lastRight } = __privateMethod(this,
|
|
1177
|
+
const { lastLeft, lastRight } = __privateMethod(this, _GdsTable_instances, getStickyBorderKeys_fn).call(this);
|
|
1415
1178
|
const cellClasses = classMap({
|
|
1416
1179
|
"tablefoot-cell": true,
|
|
1417
1180
|
"tablefoot-label-cell": i === 0,
|
|
@@ -1461,20 +1224,19 @@ renderTableFoot_fn = function() {
|
|
|
1461
1224
|
</tfoot>
|
|
1462
1225
|
`;
|
|
1463
1226
|
};
|
|
1464
|
-
_renderTable = new WeakSet();
|
|
1465
1227
|
renderTable_fn = function() {
|
|
1466
1228
|
const CLASSES = classMap({
|
|
1467
1229
|
responsive: this.responsive,
|
|
1468
1230
|
data: true,
|
|
1469
|
-
"is-expandable": __privateGet(this,
|
|
1470
|
-
"is-selectable": __privateGet(this,
|
|
1471
|
-
"has-tfoot": Boolean(this.tfoot) && !__privateGet(this,
|
|
1231
|
+
"is-expandable": __privateGet(this, _GdsTable_instances, isExpandableEnabled_get),
|
|
1232
|
+
"is-selectable": __privateGet(this, _GdsTable_instances, isSelectableEnabled_get),
|
|
1233
|
+
"has-tfoot": Boolean(this.tfoot) && !__privateGet(this, _GdsTable_instances, isResponsiveStacked_get),
|
|
1472
1234
|
"has-sticky-left": this.columns.some((c) => c.sticky === "left"),
|
|
1473
1235
|
"has-sticky-right": this.columns.some((c) => c.sticky === "right"),
|
|
1474
1236
|
"has-sticky": this.columns.some(
|
|
1475
1237
|
(c) => c.sticky === "left" || c.sticky === "right"
|
|
1476
1238
|
),
|
|
1477
|
-
"no-mask": __privateGet(this,
|
|
1239
|
+
"no-mask": __privateGet(this, _GdsTable_instances, isExpandableEnabled_get) || __privateGet(this, _GdsTable_instances, isSelectableEnabled_get) || this.columns.some((c) => c.sticky === "left" || c.sticky === "right"),
|
|
1478
1240
|
[`variant-${this.variant}`]: true,
|
|
1479
1241
|
loading: this._loading,
|
|
1480
1242
|
loaded: !this._loading && !this._loaded
|
|
@@ -1492,20 +1254,19 @@ renderTable_fn = function() {
|
|
|
1492
1254
|
<table
|
|
1493
1255
|
aria-label="${caption}"
|
|
1494
1256
|
role=${ifDefined(
|
|
1495
|
-
__privateGet(this,
|
|
1257
|
+
__privateGet(this, _GdsTable_instances, isExpandableEnabled_get) ? "treegrid" : void 0
|
|
1496
1258
|
)}
|
|
1497
1259
|
>
|
|
1498
1260
|
<caption class="visually-hidden">
|
|
1499
1261
|
${caption}
|
|
1500
1262
|
</caption>
|
|
1501
|
-
${__privateMethod(this,
|
|
1502
|
-
${__privateMethod(this,
|
|
1263
|
+
${__privateMethod(this, _GdsTable_instances, renderTableHeader_fn).call(this)} ${__privateMethod(this, _GdsTable_instances, renderTableBody_fn).call(this)}
|
|
1264
|
+
${__privateMethod(this, _GdsTable_instances, renderTableFoot_fn).call(this)}
|
|
1503
1265
|
</table>
|
|
1504
1266
|
</div>
|
|
1505
1267
|
</gds-card>
|
|
1506
1268
|
`;
|
|
1507
1269
|
};
|
|
1508
|
-
_renderErrorState = new WeakSet();
|
|
1509
1270
|
renderErrorState_fn = function() {
|
|
1510
1271
|
return html`
|
|
1511
1272
|
<gds-card variant="neutral-02-outlined" border-radius="m">
|
|
@@ -1514,7 +1275,7 @@ renderErrorState_fn = function() {
|
|
|
1514
1275
|
<gds-button
|
|
1515
1276
|
size="small"
|
|
1516
1277
|
label="${msg("Retry loading data")}"
|
|
1517
|
-
@click=${() => __privateMethod(this,
|
|
1278
|
+
@click=${() => __privateMethod(this, _GdsTable_instances, loadData_fn).call(this)}
|
|
1518
1279
|
>
|
|
1519
1280
|
${msg("Retry")}
|
|
1520
1281
|
</gds-button>
|
|
@@ -1522,7 +1283,6 @@ renderErrorState_fn = function() {
|
|
|
1522
1283
|
</gds-card>
|
|
1523
1284
|
`;
|
|
1524
1285
|
};
|
|
1525
|
-
_renderEmptyState = new WeakSet();
|
|
1526
1286
|
renderEmptyState_fn = function() {
|
|
1527
1287
|
const hasSearch = this._view.searchQuery.length > 0;
|
|
1528
1288
|
if (hasSearch) {
|
|
@@ -1539,7 +1299,7 @@ renderEmptyState_fn = function() {
|
|
|
1539
1299
|
<gds-button
|
|
1540
1300
|
size="small"
|
|
1541
1301
|
label="${msg("Clear search for")} ${this._view.searchQuery}"
|
|
1542
|
-
@click=${__privateMethod(this,
|
|
1302
|
+
@click=${__privateMethod(this, _GdsTable_instances, handleSearchClear_fn)}
|
|
1543
1303
|
>
|
|
1544
1304
|
${msg("Clear search")}
|
|
1545
1305
|
</gds-button>
|
|
@@ -1558,10 +1318,8 @@ renderEmptyState_fn = function() {
|
|
|
1558
1318
|
</gds-card>
|
|
1559
1319
|
`;
|
|
1560
1320
|
};
|
|
1561
|
-
_renderFooter = new WeakSet();
|
|
1562
1321
|
renderFooter_fn = function() {
|
|
1563
|
-
if (this.plain || this._total < 1)
|
|
1564
|
-
return null;
|
|
1322
|
+
if (this.plain || this._total < 1) return null;
|
|
1565
1323
|
const start = (this._view.page - 1) * this._view.rows + 1;
|
|
1566
1324
|
const end = Math.min(this._view.page * this._view.rows, this._total);
|
|
1567
1325
|
const summaryString = `${start}\u2013${end} ${msg("of")} ${this._total}`;
|
|
@@ -1574,15 +1332,14 @@ renderFooter_fn = function() {
|
|
|
1574
1332
|
.total=${this._total}
|
|
1575
1333
|
.density=${this.density}
|
|
1576
1334
|
.label=${summaryString}
|
|
1577
|
-
@gds-page-change=${__privateMethod(this,
|
|
1578
|
-
@gds-rows-change=${__privateMethod(this,
|
|
1335
|
+
@gds-page-change=${__privateMethod(this, _GdsTable_instances, handlePageChange_fn)}
|
|
1336
|
+
@gds-rows-change=${__privateMethod(this, _GdsTable_instances, handlePageSizeChange_fn)}
|
|
1579
1337
|
width="100%"
|
|
1580
1338
|
>
|
|
1581
1339
|
</gds-pagination>
|
|
1582
1340
|
</slot>
|
|
1583
1341
|
`;
|
|
1584
1342
|
};
|
|
1585
|
-
_renderHeadline = new WeakSet();
|
|
1586
1343
|
renderHeadline_fn = function() {
|
|
1587
1344
|
if (this.headline || this.summary) {
|
|
1588
1345
|
return html`
|
|
@@ -1612,7 +1369,6 @@ renderHeadline_fn = function() {
|
|
|
1612
1369
|
`;
|
|
1613
1370
|
}
|
|
1614
1371
|
};
|
|
1615
|
-
_handleSearch = new WeakSet();
|
|
1616
1372
|
handleSearch_fn = async function(e) {
|
|
1617
1373
|
const input = e.target;
|
|
1618
1374
|
this._view = {
|
|
@@ -1620,18 +1376,16 @@ handleSearch_fn = async function(e) {
|
|
|
1620
1376
|
searchQuery: input.value,
|
|
1621
1377
|
page: 1
|
|
1622
1378
|
};
|
|
1623
|
-
await __privateMethod(this,
|
|
1379
|
+
await __privateMethod(this, _GdsTable_instances, loadData_fn).call(this);
|
|
1624
1380
|
};
|
|
1625
|
-
_handleSearchClear = new WeakSet();
|
|
1626
1381
|
handleSearchClear_fn = async function() {
|
|
1627
1382
|
this._view = {
|
|
1628
1383
|
...this._view,
|
|
1629
1384
|
searchQuery: "",
|
|
1630
1385
|
page: 1
|
|
1631
1386
|
};
|
|
1632
|
-
await __privateMethod(this,
|
|
1387
|
+
await __privateMethod(this, _GdsTable_instances, loadData_fn).call(this);
|
|
1633
1388
|
};
|
|
1634
|
-
_handleSort = new WeakSet();
|
|
1635
1389
|
handleSort_fn = async function(columnKey) {
|
|
1636
1390
|
const newDirection = this._view.sortColumn === columnKey && this._view.sortDirection === "asc" ? "desc" : "asc";
|
|
1637
1391
|
this._view = {
|
|
@@ -1647,9 +1401,8 @@ handleSort_fn = async function(columnKey) {
|
|
|
1647
1401
|
},
|
|
1648
1402
|
bubbles: true
|
|
1649
1403
|
});
|
|
1650
|
-
await __privateMethod(this,
|
|
1404
|
+
await __privateMethod(this, _GdsTable_instances, loadData_fn).call(this);
|
|
1651
1405
|
};
|
|
1652
|
-
_handlePageChange = new WeakSet();
|
|
1653
1406
|
handlePageChange_fn = async function(e) {
|
|
1654
1407
|
this._view = {
|
|
1655
1408
|
...this._view,
|
|
@@ -1659,9 +1412,8 @@ handlePageChange_fn = async function(e) {
|
|
|
1659
1412
|
detail: e.detail,
|
|
1660
1413
|
bubbles: true
|
|
1661
1414
|
});
|
|
1662
|
-
await __privateMethod(this,
|
|
1415
|
+
await __privateMethod(this, _GdsTable_instances, loadData_fn).call(this);
|
|
1663
1416
|
};
|
|
1664
|
-
_handlePageSizeChange = new WeakSet();
|
|
1665
1417
|
handlePageSizeChange_fn = async function(e) {
|
|
1666
1418
|
this._view = {
|
|
1667
1419
|
...this._view,
|
|
@@ -1672,9 +1424,12 @@ handlePageSizeChange_fn = async function(e) {
|
|
|
1672
1424
|
detail: e.detail,
|
|
1673
1425
|
bubbles: true
|
|
1674
1426
|
});
|
|
1675
|
-
await __privateMethod(this,
|
|
1427
|
+
await __privateMethod(this, _GdsTable_instances, loadData_fn).call(this);
|
|
1676
1428
|
};
|
|
1677
|
-
|
|
1429
|
+
/**
|
|
1430
|
+
* Handles column visibility dropdown changes
|
|
1431
|
+
* Updates visible columns set and triggers re-render
|
|
1432
|
+
*/
|
|
1678
1433
|
handleColumnVisibility_fn = function(e) {
|
|
1679
1434
|
const selectedColumns = e.detail.value;
|
|
1680
1435
|
this._view = {
|
|
@@ -1687,16 +1442,21 @@ handleColumnVisibility_fn = function(e) {
|
|
|
1687
1442
|
bubbles: true
|
|
1688
1443
|
});
|
|
1689
1444
|
};
|
|
1690
|
-
|
|
1445
|
+
/**
|
|
1446
|
+
* Handles select all checkbox change
|
|
1447
|
+
* Toggles between all selected and none selected
|
|
1448
|
+
*/
|
|
1691
1449
|
handleSelectAll_fn = function(e) {
|
|
1692
|
-
if (__privateGet(this,
|
|
1693
|
-
__privateMethod(this,
|
|
1450
|
+
if (__privateGet(this, _GdsTable_instances, isAllSelected_get)) {
|
|
1451
|
+
__privateMethod(this, _GdsTable_instances, clearSelectionInternal_fn).call(this);
|
|
1694
1452
|
} else {
|
|
1695
|
-
__privateMethod(this,
|
|
1453
|
+
__privateMethod(this, _GdsTable_instances, selectAllInternal_fn).call(this);
|
|
1696
1454
|
}
|
|
1697
|
-
__privateMethod(this,
|
|
1455
|
+
__privateMethod(this, _GdsTable_instances, emitSelectionChange_fn).call(this);
|
|
1698
1456
|
};
|
|
1699
|
-
|
|
1457
|
+
/**
|
|
1458
|
+
* Handles individual row selection change
|
|
1459
|
+
*/
|
|
1700
1460
|
handleRowSelect_fn = function(index, e) {
|
|
1701
1461
|
const isChecked = e.detail.checked;
|
|
1702
1462
|
if (isChecked) {
|
|
@@ -1704,24 +1464,21 @@ handleRowSelect_fn = function(index, e) {
|
|
|
1704
1464
|
} else {
|
|
1705
1465
|
this._selected.delete(index);
|
|
1706
1466
|
}
|
|
1707
|
-
__privateMethod(this,
|
|
1467
|
+
__privateMethod(this, _GdsTable_instances, emitSelectionChange_fn).call(this);
|
|
1708
1468
|
this.requestUpdate();
|
|
1709
1469
|
};
|
|
1710
|
-
_handleExpandToggle = new WeakSet();
|
|
1711
1470
|
handleExpandToggle_fn = function(row, index) {
|
|
1712
1471
|
void this.toggleRowExpansion(index, row);
|
|
1713
1472
|
};
|
|
1714
|
-
_handleExpandAll = new WeakSet();
|
|
1715
1473
|
handleExpandAll_fn = async function() {
|
|
1716
|
-
const expandable = __privateGet(this,
|
|
1717
|
-
if (__privateGet(this,
|
|
1474
|
+
const expandable = __privateGet(this, _GdsTable_instances, expandableIndices_get);
|
|
1475
|
+
if (__privateGet(this, _GdsTable_instances, isAllExpanded_get)) {
|
|
1718
1476
|
expandable.forEach((i) => this._expanded.delete(i));
|
|
1719
1477
|
this.requestUpdate();
|
|
1720
1478
|
} else {
|
|
1721
|
-
await Promise.all(expandable.map((i) => __privateMethod(this,
|
|
1479
|
+
await Promise.all(expandable.map((i) => __privateMethod(this, _GdsTable_instances, setRowExpanded_fn).call(this, i, true)));
|
|
1722
1480
|
}
|
|
1723
1481
|
};
|
|
1724
|
-
_emitExpandChange = new WeakSet();
|
|
1725
1482
|
emitExpandChange_fn = function(row, index, expanded) {
|
|
1726
1483
|
this.dispatchCustomEvent("gds-table-expand-change", {
|
|
1727
1484
|
detail: {
|
|
@@ -1733,10 +1490,9 @@ emitExpandChange_fn = function(row, index, expanded) {
|
|
|
1733
1490
|
bubbles: true
|
|
1734
1491
|
});
|
|
1735
1492
|
};
|
|
1736
|
-
_resolveExpandedContent = new WeakSet();
|
|
1737
1493
|
resolveExpandedContent_fn = async function(row, index) {
|
|
1738
|
-
const subRowsSource = __privateMethod(this,
|
|
1739
|
-
const fullContentSource = __privateMethod(this,
|
|
1494
|
+
const subRowsSource = __privateMethod(this, _GdsTable_instances, getRowSubRowsSource_fn).call(this, row);
|
|
1495
|
+
const fullContentSource = __privateMethod(this, _GdsTable_instances, getRowFullContentSource_fn).call(this, row);
|
|
1740
1496
|
const hasSubRows = typeof subRowsSource === "function";
|
|
1741
1497
|
const hasFullContent = typeof fullContentSource === "function";
|
|
1742
1498
|
if (!hasSubRows && !hasFullContent) {
|
|
@@ -1750,8 +1506,7 @@ resolveExpandedContent_fn = async function(row, index) {
|
|
|
1750
1506
|
let loadingTimer;
|
|
1751
1507
|
if (hasAsyncContent) {
|
|
1752
1508
|
loadingTimer = window.setTimeout(() => {
|
|
1753
|
-
if (!this._expanded.has(index))
|
|
1754
|
-
return;
|
|
1509
|
+
if (!this._expanded.has(index)) return;
|
|
1755
1510
|
const nextExpanding = new Set(this._expanding);
|
|
1756
1511
|
nextExpanding.add(index);
|
|
1757
1512
|
this._expanding = nextExpanding;
|
|
@@ -1785,50 +1540,51 @@ resolveExpandedContent_fn = async function(row, index) {
|
|
|
1785
1540
|
window.clearTimeout(loadingTimer);
|
|
1786
1541
|
}
|
|
1787
1542
|
if (hasAsyncContent && resolved && didShowLoading) {
|
|
1788
|
-
__privateMethod(this,
|
|
1543
|
+
__privateMethod(this, _GdsTable_instances, scheduleExpansionContentReveal_fn).call(this, index);
|
|
1789
1544
|
} else {
|
|
1790
|
-
__privateMethod(this,
|
|
1545
|
+
__privateMethod(this, _GdsTable_instances, clearExpansionLoadingState_fn).call(this, index);
|
|
1791
1546
|
}
|
|
1792
1547
|
this.requestUpdate();
|
|
1793
1548
|
}
|
|
1794
1549
|
};
|
|
1795
|
-
_setRowExpanded = new WeakSet();
|
|
1796
1550
|
setRowExpanded_fn = async function(index, expanded, rowOverride) {
|
|
1797
|
-
if (index < 0 || index >= this._rowsState.length)
|
|
1798
|
-
return false;
|
|
1551
|
+
if (index < 0 || index >= this._rowsState.length) return false;
|
|
1799
1552
|
const row = rowOverride ?? this._rowsState[index];
|
|
1800
|
-
if (!row)
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
if (expanded && !isExpandable)
|
|
1804
|
-
return false;
|
|
1553
|
+
if (!row) return false;
|
|
1554
|
+
const isExpandable = __privateMethod(this, _GdsTable_instances, isRowExpandable_fn).call(this, row, index);
|
|
1555
|
+
if (expanded && !isExpandable) return false;
|
|
1805
1556
|
const isExpanded = this._expanded.has(index);
|
|
1806
|
-
if (expanded === isExpanded)
|
|
1807
|
-
return true;
|
|
1557
|
+
if (expanded === isExpanded) return true;
|
|
1808
1558
|
if (expanded) {
|
|
1809
1559
|
this._expanded.add(index);
|
|
1810
|
-
__privateMethod(this,
|
|
1560
|
+
__privateMethod(this, _GdsTable_instances, emitExpandChange_fn).call(this, row, index, true);
|
|
1811
1561
|
this.requestUpdate();
|
|
1812
|
-
await __privateMethod(this,
|
|
1562
|
+
await __privateMethod(this, _GdsTable_instances, resolveExpandedContent_fn).call(this, row, index);
|
|
1813
1563
|
} else {
|
|
1814
|
-
__privateMethod(this,
|
|
1564
|
+
__privateMethod(this, _GdsTable_instances, clearExpansionLoadingState_fn).call(this, index);
|
|
1815
1565
|
this._expanded.delete(index);
|
|
1816
|
-
__privateMethod(this,
|
|
1566
|
+
__privateMethod(this, _GdsTable_instances, emitExpandChange_fn).call(this, row, index, false);
|
|
1817
1567
|
}
|
|
1818
1568
|
this.requestUpdate();
|
|
1819
1569
|
return true;
|
|
1820
1570
|
};
|
|
1821
|
-
|
|
1571
|
+
/**
|
|
1572
|
+
* Internal method to select all rows
|
|
1573
|
+
*/
|
|
1822
1574
|
selectAllInternal_fn = function() {
|
|
1823
1575
|
this._selected = new Set(this._rowsState.map((_, i) => i));
|
|
1824
1576
|
this.requestUpdate();
|
|
1825
1577
|
};
|
|
1826
|
-
|
|
1578
|
+
/**
|
|
1579
|
+
* Internal method to clear all selections
|
|
1580
|
+
*/
|
|
1827
1581
|
clearSelectionInternal_fn = function() {
|
|
1828
1582
|
this._selected.clear();
|
|
1829
1583
|
this.requestUpdate();
|
|
1830
1584
|
};
|
|
1831
|
-
|
|
1585
|
+
/**
|
|
1586
|
+
* Emits selection change event with current selection details
|
|
1587
|
+
*/
|
|
1832
1588
|
emitSelectionChange_fn = function() {
|
|
1833
1589
|
this.dispatchCustomEvent("gds-table-selection", {
|
|
1834
1590
|
detail: {
|
|
@@ -1839,24 +1595,29 @@ emitSelectionChange_fn = function() {
|
|
|
1839
1595
|
bubbles: true
|
|
1840
1596
|
});
|
|
1841
1597
|
};
|
|
1842
|
-
|
|
1598
|
+
/**
|
|
1599
|
+
* Initializes scroll tracking for the table data container.
|
|
1600
|
+
* Sets up event listeners and performs initial scroll state check.
|
|
1601
|
+
*/
|
|
1843
1602
|
initializeScrollTracking_fn = function() {
|
|
1844
1603
|
const dataContainer = this.shadowRoot?.querySelector(".data");
|
|
1845
|
-
if (!dataContainer)
|
|
1846
|
-
return;
|
|
1604
|
+
if (!dataContainer) return;
|
|
1847
1605
|
const updateScrollState = () => {
|
|
1848
|
-
__privateMethod(this,
|
|
1849
|
-
__privateMethod(this,
|
|
1606
|
+
__privateMethod(this, _GdsTable_instances, updateVerticalScrollState_fn).call(this, dataContainer);
|
|
1607
|
+
__privateMethod(this, _GdsTable_instances, updateHorizontalScrollState_fn).call(this, dataContainer);
|
|
1850
1608
|
};
|
|
1851
1609
|
dataContainer.addEventListener("scroll", updateScrollState);
|
|
1852
1610
|
const resizeObserver2 = new ResizeObserver(() => updateScrollState());
|
|
1853
1611
|
resizeObserver2.observe(dataContainer);
|
|
1854
1612
|
const innerTable = dataContainer.querySelector("table");
|
|
1855
|
-
if (innerTable)
|
|
1856
|
-
resizeObserver2.observe(innerTable);
|
|
1613
|
+
if (innerTable) resizeObserver2.observe(innerTable);
|
|
1857
1614
|
updateScrollState();
|
|
1858
1615
|
};
|
|
1859
|
-
|
|
1616
|
+
/**
|
|
1617
|
+
* Updates CSS classes based on vertical scroll position.
|
|
1618
|
+
* Adds 'scrolled' class when scrolled down from top.
|
|
1619
|
+
* Adds 'scrolled-bottom' class when not scrolled to the very bottom.
|
|
1620
|
+
*/
|
|
1860
1621
|
updateVerticalScrollState_fn = function(container) {
|
|
1861
1622
|
const { scrollTop, scrollHeight, clientHeight } = container;
|
|
1862
1623
|
const maxScrollTop = scrollHeight - clientHeight;
|
|
@@ -1871,7 +1632,11 @@ updateVerticalScrollState_fn = function(container) {
|
|
|
1871
1632
|
container.classList.remove("scrolled-bottom");
|
|
1872
1633
|
}
|
|
1873
1634
|
};
|
|
1874
|
-
|
|
1635
|
+
/**
|
|
1636
|
+
* Updates CSS classes based on horizontal scroll position.
|
|
1637
|
+
* Manages 'scrolled-x-start', 'scrolled-x-middle', and 'scrolled-x-end' classes
|
|
1638
|
+
* to indicate scroll position for styling purposes (e.g., shadows, sticky columns).
|
|
1639
|
+
*/
|
|
1875
1640
|
updateHorizontalScrollState_fn = function(container) {
|
|
1876
1641
|
const { scrollLeft, scrollWidth, clientWidth } = container;
|
|
1877
1642
|
const maxScrollLeft = scrollWidth - clientWidth;
|