@ncino/web-components 5.0.0-preview.9 → 5.0.1-preview.1

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.
@@ -1,23 +1,23 @@
1
- import{customElement as d}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as r}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{generateRandomId as c,getElementId as u}from"../../utils/string-utils.js";import f from"../../packages/web-components/src/tokens/primitive.tokens.scss.js";import b from"../../packages/web-components/src/tokens/semantic.tokens.scss.js";import v from"../../packages/web-components/src/components/checkbox/checkbox.gator.scss.js";import"../icon/gator/icon.gator.js";import"../icon/gator/templates/add-link.js";import"../icon/gator/templates/airplane.js";import"../icon/gator/templates/alarm.js";import"../icon/gator/templates/apartment.js";import"../icon/gator/templates/arrow-around.js";import"../icon/gator/templates/arrow-down.js";import"../icon/gator/templates/arrow-left.js";import"../icon/gator/templates/arrow-line-left.js";import"../icon/gator/templates/arrow-line-right.js";import"../icon/gator/templates/arrow-right.js";import"../icon/gator/templates/arrow-up.js";import"../icon/gator/templates/bank.js";import"../icon/gator/templates/bell-disabled.js";import"../icon/gator/templates/bell.js";import"../icon/gator/templates/binoculars.js";import"../icon/gator/templates/book.js";import"../icon/gator/templates/box.js";import"../icon/gator/templates/cake.js";import"../icon/gator/templates/calculator.js";import"../icon/gator/templates/calendar.js";import"../icon/gator/templates/camera.js";import"../icon/gator/templates/caret-up-down.js";import"../icon/gator/templates/case.js";import"../icon/gator/templates/chart-bar-horizontal.js";import"../icon/gator/templates/chart-bar.js";import"../icon/gator/templates/chart-donut.js";import"../icon/gator/templates/chart-line.js";import"../icon/gator/templates/chart-pie.js";import"../icon/gator/templates/chart-rise.js";import"../icon/gator/templates/chart-scatter.js";import"../icon/gator/templates/chat.js";import"../icon/gator/templates/check-circle.js";import"../icon/gator/templates/check.js";import"../icon/gator/templates/checkbox-selected.js";import"../icon/gator/templates/checkbox.js";import"../icon/gator/templates/checkerboard.js";import"../icon/gator/templates/chevron-down.js";import"../icon/gator/templates/chevron-left.js";import"../icon/gator/templates/chevron-right.js";import"../icon/gator/templates/chevron-up.js";import"../icon/gator/templates/circle-arrow-down.js";import"../icon/gator/templates/circle-arrow-left.js";import"../icon/gator/templates/circle-arrow-right.js";import"../icon/gator/templates/circle-arrow-up.js";import"../icon/gator/templates/circle-dashed.js";import"../icon/gator/templates/circle-filled.js";import"../icon/gator/templates/circle.js";import"../icon/gator/templates/city.js";import"../icon/gator/templates/clipboard.js";import"../icon/gator/templates/clock-clockwise.js";import"../icon/gator/templates/clock-counter-clockwise.js";import"../icon/gator/templates/clock.js";import"../icon/gator/templates/collapse.js";import"../icon/gator/templates/cone.js";import"../icon/gator/templates/contact-info.js";import"../icon/gator/templates/copy.js";import"../icon/gator/templates/credit-card.js";import"../icon/gator/templates/crop.js";import"../icon/gator/templates/crosshairs.js";import"../icon/gator/templates/currency-dollar-simple.js";import"../icon/gator/templates/currency-eur.js";import"../icon/gator/templates/currency-gbp.js";import"../icon/gator/templates/currency-inr.js";import"../icon/gator/templates/currency-jpy.js";import"../icon/gator/templates/currency-krw.js";import"../icon/gator/templates/currency-kzt.js";import"../icon/gator/templates/currency-ngn.js";import"../icon/gator/templates/currency-rub.js";import"../icon/gator/templates/cursor-arrow.js";import"../icon/gator/templates/cursor-hand.js";import"../icon/gator/templates/cursor.js";import"../icon/gator/templates/dashboard.js";import"../icon/gator/templates/delete.js";import"../icon/gator/templates/dna.js";import"../icon/gator/templates/document-add.js";import"../icon/gator/templates/document-check.js";import"../icon/gator/templates/document-e-sign.js";import"../icon/gator/templates/document-image.js";import"../icon/gator/templates/document-pdf.js";import"../icon/gator/templates/document-sign.js";import"../icon/gator/templates/document-zip.js";import"../icon/gator/templates/document.js";import"../icon/gator/templates/dollar-bills.js";import"../icon/gator/templates/dollar-house.js";import"../icon/gator/templates/down-payment.js";import"../icon/gator/templates/download.js";import"../icon/gator/templates/drag-drop.js";import"../icon/gator/templates/earth.js";import"../icon/gator/templates/exclude-square.js";import"../icon/gator/templates/exit-circle.js";import"../icon/gator/templates/exit-left.js";import"../icon/gator/templates/exit.js";import"../icon/gator/templates/expand-arrows.js";import"../icon/gator/templates/expand.js";import"../icon/gator/templates/export.js";import"../icon/gator/templates/eye-closed.js";import"../icon/gator/templates/eye-crossed.js";import"../icon/gator/templates/eye.js";import"../icon/gator/templates/facebook-logo.js";import"../icon/gator/templates/file-code.js";import"../icon/gator/templates/files.js";import"../icon/gator/templates/filter-funnel.js";import"../icon/gator/templates/filters-2.js";import"../icon/gator/templates/filters.js";import"../icon/gator/templates/flags/flag-ad-andorra.js";import"../icon/gator/templates/flags/flag-ae-united-arab-emirates.js";import"../icon/gator/templates/flags/flag-af-afghanistan.js";import"../icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js";import"../icon/gator/templates/flags/flag-ai-anguilla.js";import"../icon/gator/templates/flags/flag-al-albania.js";import"../icon/gator/templates/flags/flag-am-armenia.js";import"../icon/gator/templates/flags/flag-ao-angola.js";import"../icon/gator/templates/flags/flag-aq-antarctica.js";import"../icon/gator/templates/flags/flag-ar-argentina.js";import"../icon/gator/templates/flags/flag-as-american-smoa.js";import"../icon/gator/templates/flags/flag-at-austria.js";import"../icon/gator/templates/flags/flag-au-australia.js";import"../icon/gator/templates/flags/flag-aw-aruba.js";import"../icon/gator/templates/flags/flag-ax-aland-islands.js";import"../icon/gator/templates/flags/flag-az-azerbaijan.js";import"../icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js";import"../icon/gator/templates/flags/flag-bb-barbados.js";import"../icon/gator/templates/flags/flag-bd-bangladesh.js";import"../icon/gator/templates/flags/flag-be-belgium.js";import"../icon/gator/templates/flags/flag-bf-burkina-faso.js";import"../icon/gator/templates/flags/flag-bg-bulgaria.js";import"../icon/gator/templates/flags/flag-bh-bahrain.js";import"../icon/gator/templates/flags/flag-bi-burundi.js";import"../icon/gator/templates/flags/flag-bj-benin.js";import"../icon/gator/templates/flags/flag-bl-saint-barthelemy.js";import"../icon/gator/templates/flags/flag-bm-bermuda.js";import"../icon/gator/templates/flags/flag-bn-brunei-darussalam.js";import"../icon/gator/templates/flags/flag-bo-bolivia.js";import"../icon/gator/templates/flags/flag-bq-bo-bonaire.js";import"../icon/gator/templates/flags/flag-bq-sa-sba.js";import"../icon/gator/templates/flags/flag-bq-se-snt-eustatius.js";import"../icon/gator/templates/flags/flag-br-brazil.js";import"../icon/gator/templates/flags/flag-bs-bahamas.js";import"../icon/gator/templates/flags/flag-bt-bhutan.js";import"../icon/gator/templates/flags/flag-bv-bouvet-island.js";import"../icon/gator/templates/flags/flag-bw-botswana.js";import"../icon/gator/templates/flags/flag-by-belarus.js";import"../icon/gator/templates/flags/flag-bz-belize.js";import"../icon/gator/templates/flags/flag-ca-canada.js";import"../icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js";import"../icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js";import"../icon/gator/templates/flags/flag-cf-central-african-republic.js";import"../icon/gator/templates/flags/flag-cg-republic-of-the-congo.js";import"../icon/gator/templates/flags/flag-ch-switzerland.js";import"../icon/gator/templates/flags/flag-ci-côte-divoire-ivory-coast.js";import"../icon/gator/templates/flags/flag-ck-cook-islands.js";import"../icon/gator/templates/flags/flag-cl-chile.js";import"../icon/gator/templates/flags/flag-cm-cameroon.js";import"../icon/gator/templates/flags/flag-cn-china.js";import"../icon/gator/templates/flags/flag-co-colombia.js";import"../icon/gator/templates/flags/flag-cr-costa-rica.js";import"../icon/gator/templates/flags/flag-cu-cuba.js";import"../icon/gator/templates/flags/flag-cv-cabo-verde.js";import"../icon/gator/templates/flags/flag-cw-curaçao.js";import"../icon/gator/templates/flags/flag-cx-christmas-island.js";import"../icon/gator/templates/flags/flag-cy-cyprus.js";import"../icon/gator/templates/flags/flag-cz-czech-republic.js";import"../icon/gator/templates/flags/flag-de-germany.js";import"../icon/gator/templates/flags/flag-dj-djibouti.js";import"../icon/gator/templates/flags/flag-dk-denmark.js";import"../icon/gator/templates/flags/flag-dm-dominica.js";import"../icon/gator/templates/flags/flag-do-dominican-republic.js";import"../icon/gator/templates/flags/flag-dz-algeria.js";import"../icon/gator/templates/flags/flag-ec-ecuador.js";import"../icon/gator/templates/flags/flag-ee-estonia.js";import"../icon/gator/templates/flags/flag-eg-egypt.js";import"../icon/gator/templates/flags/flag-eh-western-sahara.js";import"../icon/gator/templates/flags/flag-er-eritrea.js";import"../icon/gator/templates/flags/flag-es-sain.js";import"../icon/gator/templates/flags/flag-et-ethiopia.js";import"../icon/gator/templates/flags/flag-fi-finland.js";import"../icon/gator/templates/flags/flag-fj-fiji.js";import"../icon/gator/templates/flags/flag-fk-falkland-islands.js";import"../icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js";import"../icon/gator/templates/flags/flag-fo-faroe-islands.js";import"../icon/gator/templates/flags/flag-fr-france.js";import"../icon/gator/templates/flags/flag-ga-gabon.js";import"../icon/gator/templates/flags/flag-gb-eng-england.js";import"../icon/gator/templates/flags/flag-gb-nir-northern-ireland.js";import"../icon/gator/templates/flags/flag-gb-sct-sotland.js";import"../icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js";import"../icon/gator/templates/flags/flag-gb-wls-wales.js";import"../icon/gator/templates/flags/flag-gd-grenada.js";import"../icon/gator/templates/flags/flag-ge-georgia.js";import"../icon/gator/templates/flags/flag-gf-french-guiana.js";import"../icon/gator/templates/flags/flag-gg-guernsey.js";import"../icon/gator/templates/flags/flag-gh-ghana.js";import"../icon/gator/templates/flags/flag-gi-gibraltar.js";import"../icon/gator/templates/flags/flag-gl-greenland.js";import"../icon/gator/templates/flags/flag-gm-gambia.js";import"../icon/gator/templates/flags/flag-gn-guinea.js";import"../icon/gator/templates/flags/flag-gp-guadeloupe-2.js";import"../icon/gator/templates/flags/flag-gp-guadeloupe.js";import"../icon/gator/templates/flags/flag-gq-equatorial-guinea.js";import"../icon/gator/templates/flags/flag-gr-greece.js";import"../icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js";import"../icon/gator/templates/flags/flag-gt-guatemala.js";import"../icon/gator/templates/flags/flag-gu-guam.js";import"../icon/gator/templates/flags/flag-gw-guinea-bissau.js";import"../icon/gator/templates/flags/flag-gy-guyana.js";import"../icon/gator/templates/flags/flag-hk-hong-kong.js";import"../icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js";import"../icon/gator/templates/flags/flag-hn-honduras.js";import"../icon/gator/templates/flags/flag-hr-croatia-hrvatska.js";import"../icon/gator/templates/flags/flag-ht-haiti.js";import"../icon/gator/templates/flags/flag-hu-hungary.js";import"../icon/gator/templates/flags/flag-id-indonesia.js";import"../icon/gator/templates/flags/flag-ie-ireland.js";import"../icon/gator/templates/flags/flag-il-isreal.js";import"../icon/gator/templates/flags/flag-im-isle-of-man.js";import"../icon/gator/templates/flags/flag-in-india.js";import"../icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js";import"../icon/gator/templates/flags/flag-iq-iraq.js";import"../icon/gator/templates/flags/flag-ir-iran.js";import"../icon/gator/templates/flags/flag-is-iceland.js";import"../icon/gator/templates/flags/flag-it-italy.js";import"../icon/gator/templates/flags/flag-je-jersey.js";import"../icon/gator/templates/flags/flag-jm-jamaica.js";import"../icon/gator/templates/flags/flag-jo-jordan.js";import"../icon/gator/templates/flags/flag-jp-japan.js";import"../icon/gator/templates/flags/flag-ke-kenia.js";import"../icon/gator/templates/flags/flag-kg-kyrgyzstan.js";import"../icon/gator/templates/flags/flag-kh-cambodia.js";import"../icon/gator/templates/flags/flag-ki--kiribati.js";import"../icon/gator/templates/flags/flag-km-comoros.js";import"../icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js";import"../icon/gator/templates/flags/flag-kp-korea-north.js";import"../icon/gator/templates/flags/flag-kr-korea-south.js";import"../icon/gator/templates/flags/flag-kw-kuwait.js";import"../icon/gator/templates/flags/flag-ky-cayman-islands.js";import"../icon/gator/templates/flags/flag-kz-kazakhstan.js";import"../icon/gator/templates/flags/flag-la-laos.js";import"../icon/gator/templates/flags/flag-lb-lebanon.js";import"../icon/gator/templates/flags/flag-lc-saint-lucia.js";import"../icon/gator/templates/flags/flag-li-liechtenstein.js";import"../icon/gator/templates/flags/flag-lk-sri-lanka.js";import"../icon/gator/templates/flags/flag-lr-liberia.js";import"../icon/gator/templates/flags/flag-ls-lesotho.js";import"../icon/gator/templates/flags/flag-lt-lithuania.js";import"../icon/gator/templates/flags/flag-lu-luxembourg.js";import"../icon/gator/templates/flags/flag-lv-latvia.js";import"../icon/gator/templates/flags/flag-ly-libya.js";import"../icon/gator/templates/flags/flag-ma-morocco.js";import"../icon/gator/templates/flags/flag-mc-monaco.js";import"../icon/gator/templates/flags/flag-md-moldova.js";import"../icon/gator/templates/flags/flag-me-montenegro.js";import"../icon/gator/templates/flags/flag-mf-saint-martin.js";import"../icon/gator/templates/flags/flag-mg-madagascar.js";import"../icon/gator/templates/flags/flag-mh-marshall-islands.js";import"../icon/gator/templates/flags/flag-mk-north-macedonia.js";import"../icon/gator/templates/flags/flag-ml-mali.js";import"../icon/gator/templates/flags/flag-mm-myanmar.js";import"../icon/gator/templates/flags/flag-mn-mongolia.js";import"../icon/gator/templates/flags/flag-mo-macao.js";import"../icon/gator/templates/flags/flag-mp-northern-mariana-islands.js";import"../icon/gator/templates/flags/flag-mq-martinique-2.js";import"../icon/gator/templates/flags/flag-mq-martinique.js";import"../icon/gator/templates/flags/flag-mr-mauritania.js";import"../icon/gator/templates/flags/flag-ms-montserrat.js";import"../icon/gator/templates/flags/flag-mt-malta.js";import"../icon/gator/templates/flags/flag-mu-mauritius.js";import"../icon/gator/templates/flags/flag-mv-maldives.js";import"../icon/gator/templates/flags/flag-mw-malawi.js";import"../icon/gator/templates/flags/flag-mx-mexico.js";import"../icon/gator/templates/flags/flag-my-malaysia.js";import"../icon/gator/templates/flags/flag-mz-mozambique.js";import"../icon/gator/templates/flags/flag-na-namibia.js";import"../icon/gator/templates/flags/flag-nc-new-caledonia.js";import"../icon/gator/templates/flags/flag-ne-niger.js";import"../icon/gator/templates/flags/flag-nf-norfolk-island.js";import"../icon/gator/templates/flags/flag-ng-nigeria.js";import"../icon/gator/templates/flags/flag-ni-nicaragua.js";import"../icon/gator/templates/flags/flag-nl-netherlands.js";import"../icon/gator/templates/flags/flag-no-norway.js";import"../icon/gator/templates/flags/flag-np-nepal.js";import"../icon/gator/templates/flags/flag-nr-nauru.js";import"../icon/gator/templates/flags/flag-nu-niue.js";import"../icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js";import"../icon/gator/templates/flags/flag-om-oman.js";import"../icon/gator/templates/flags/flag-pa-panama.js";import"../icon/gator/templates/flags/flag-pe-peru.js";import"../icon/gator/templates/flags/flag-pf-french-polynesia.js";import"../icon/gator/templates/flags/flag-pg-papua-new-guinea.js";import"../icon/gator/templates/flags/flag-ph-philippines.js";import"../icon/gator/templates/flags/flag-pk-pakistan.js";import"../icon/gator/templates/flags/flag-pl-poland.js";import"../icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js";import"../icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js";import"../icon/gator/templates/flags/flag-pn-pitcairn-islands.js";import"../icon/gator/templates/flags/flag-pr-puerto-rico.js";import"../icon/gator/templates/flags/flag-ps-palestinian-territory.js";import"../icon/gator/templates/flags/flag-pt-portugal.js";import"../icon/gator/templates/flags/flag-pw-palau.js";import"../icon/gator/templates/flags/flag-py-paraguay.js";import"../icon/gator/templates/flags/flag-qa-qatar.js";import"../icon/gator/templates/flags/flag-re-reunion.js";import"../icon/gator/templates/flags/flag-ro-romania.js";import"../icon/gator/templates/flags/flag-rs-srbia.js";import"../icon/gator/templates/flags/flag-ru-russian-federation.js";import"../icon/gator/templates/flags/flag-rw-rwanda.js";import"../icon/gator/templates/flags/flag-sa-sudi-arabia.js";import"../icon/gator/templates/flags/flag-sb-slomon-islands.js";import"../icon/gator/templates/flags/flag-sc-sychelles.js";import"../icon/gator/templates/flags/flag-sd-sdan.js";import"../icon/gator/templates/flags/flag-se-seden.js";import"../icon/gator/templates/flags/flag-sg-sngapore.js";import"../icon/gator/templates/flags/flag-sh-sint-helena.js";import"../icon/gator/templates/flags/flag-si-sovenia.js";import"../icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js";import"../icon/gator/templates/flags/flag-sk-sovakia.js";import"../icon/gator/templates/flags/flag-sl-serra-leone.js";import"../icon/gator/templates/flags/flag-sm-sn-marino.js";import"../icon/gator/templates/flags/flag-sn-snegal.js";import"../icon/gator/templates/flags/flag-so-smalia.js";import"../icon/gator/templates/flags/flag-sr-sriname.js";import"../icon/gator/templates/flags/flag-ss-south-sudan.js";import"../icon/gator/templates/flags/flag-st-so-tome-and-principe.js";import"../icon/gator/templates/flags/flag-sv-el-slvador.js";import"../icon/gator/templates/flags/flag-sx-snt-maarten.js";import"../icon/gator/templates/flags/flag-sy-sria.js";import"../icon/gator/templates/flags/flag-sz-saziland.js";import"../icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js";import"../icon/gator/templates/flags/flag-td-chad.js";import"../icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js";import"../icon/gator/templates/flags/flag-tg-togo.js";import"../icon/gator/templates/flags/flag-th-thailand.js";import"../icon/gator/templates/flags/flag-tj-tajikistan.js";import"../icon/gator/templates/flags/flag-tk-tokelau.js";import"../icon/gator/templates/flags/flag-tl-timor-leste.js";import"../icon/gator/templates/flags/flag-tm-turkmenistan.js";import"../icon/gator/templates/flags/flag-tn-tunisia.js";import"../icon/gator/templates/flags/flag-to-tonga.js";import"../icon/gator/templates/flags/flag-tr-turkey.js";import"../icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js";import"../icon/gator/templates/flags/flag-tv-tuvalu.js";import"../icon/gator/templates/flags/flag-tw-taiwan.js";import"../icon/gator/templates/flags/flag-tz-tanzania.js";import"../icon/gator/templates/flags/flag-ua-ukraine.js";import"../icon/gator/templates/flags/flag-ug-uganda.js";import"../icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js";import"../icon/gator/templates/flags/flag-us-united-states.js";import"../icon/gator/templates/flags/flag-uy-uruguay.js";import"../icon/gator/templates/flags/flag-uz-uzbekistan.js";import"../icon/gator/templates/flags/flag-va-vatican-city-state.js";import"../icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js";import"../icon/gator/templates/flags/flag-ve-venezuela.js";import"../icon/gator/templates/flags/flag-vg-virgin-islands-british.js";import"../icon/gator/templates/flags/flag-vi-virgin-islands-us.js";import"../icon/gator/templates/flags/flag-vn-vietnam.js";import"../icon/gator/templates/flags/flag-vu-vanuatu.js";import"../icon/gator/templates/flags/flag-wf-wallis-and-futuna.js";import"../icon/gator/templates/flags/flag-ws-smoa.js";import"../icon/gator/templates/flags/flag-ye-yemen.js";import"../icon/gator/templates/flags/flag-yt-unf-mayotte.js";import"../icon/gator/templates/flags/flag-za-south-africa.js";import"../icon/gator/templates/flags/flag-zm-zambia.js";import"../icon/gator/templates/flags/flag-zw-zimbabwe.js";import"../icon/gator/templates/flame.js";import"../icon/gator/templates/flash-off.js";import"../icon/gator/templates/flash-on.js";import"../icon/gator/templates/folder.js";import"../icon/gator/templates/gauge.js";import"../icon/gator/templates/grid-four.js";import"../icon/gator/templates/grid-nine.js";import"../icon/gator/templates/hammer.js";import"../icon/gator/templates/hand-pointing.js";import"../icon/gator/templates/heart.js";import"../icon/gator/templates/home-door.js";import"../icon/gator/templates/home-finance-arrow.js";import"../icon/gator/templates/home-finance.js";import"../icon/gator/templates/home-search.js";import"../icon/gator/templates/house-simple.js";import"../icon/gator/templates/house.js";import"../icon/gator/templates/inbox.js";import"../icon/gator/templates/info.js";import"../icon/gator/templates/instagram-logo.js";import"../icon/gator/templates/interest-rate.js";import"../icon/gator/templates/invoice.js";import"../icon/gator/templates/kanban.js";import"../icon/gator/templates/label.js";import"../icon/gator/templates/laptop.js";import"../icon/gator/templates/layout.js";import"../icon/gator/templates/lightbulb-filament.js";import"../icon/gator/templates/lightbulb.js";import"../icon/gator/templates/link.js";import"../icon/gator/templates/linkedin-logo.js";import"../icon/gator/templates/list-star.js";import"../icon/gator/templates/list.js";import"../icon/gator/templates/loading-spinner-gif.js";import"../icon/gator/templates/loading.js";import"../icon/gator/templates/lock.js";import"../icon/gator/templates/magic-wand.js";import"../icon/gator/templates/mail-open.js";import"../icon/gator/templates/mail.js";import"../icon/gator/templates/mailbox.js";import"../icon/gator/templates/map.js";import"../icon/gator/templates/menu-hamburger.js";import"../icon/gator/templates/microsoft-excel-logo.js";import"../icon/gator/templates/microsoft-outlook-logo.js";import"../icon/gator/templates/microsoft-powerpoint-logo.js";import"../icon/gator/templates/microsoft-teams-logo.js";import"../icon/gator/templates/microsoft-word-logo.js";import"../icon/gator/templates/minus-circle.js";import"../icon/gator/templates/minus-square.js";import"../icon/gator/templates/minus.js";import"../icon/gator/templates/mobile-phone-2.js";import"../icon/gator/templates/monitor.js";import"../icon/gator/templates/move-doc.js";import"../icon/gator/templates/move.js";import"../icon/gator/templates/music.js";import"../icon/gator/templates/number-1.js";import"../icon/gator/templates/number-2.js";import"../icon/gator/templates/number-3.js";import"../icon/gator/templates/overflow-menu.js";import"../icon/gator/templates/paper-airplane.js";import"../icon/gator/templates/paperclip.js";import"../icon/gator/templates/payments/payment-amazon-pay.js";import"../icon/gator/templates/payments/payment-amex.js";import"../icon/gator/templates/payments/payment-apple-pay.js";import"../icon/gator/templates/payments/payment-discover.js";import"../icon/gator/templates/payments/payment-google-pay.js";import"../icon/gator/templates/payments/payment-mastercard.js";import"../icon/gator/templates/payments/payment-visa.js";import"../icon/gator/templates/pen.js";import"../icon/gator/templates/pencil-paper.js";import"../icon/gator/templates/pencil.js";import"../icon/gator/templates/people-multiple.js";import"../icon/gator/templates/people-share.js";import"../icon/gator/templates/percent.js";import"../icon/gator/templates/person-add.js";import"../icon/gator/templates/person-check.js";import"../icon/gator/templates/person-lock.js";import"../icon/gator/templates/person.js";import"../icon/gator/templates/phone-alert.js";import"../icon/gator/templates/phone-mobile.js";import"../icon/gator/templates/phone.js";import"../icon/gator/templates/picture.js";import"../icon/gator/templates/pin.js";import"../icon/gator/templates/pinterest-logo.js";import"../icon/gator/templates/plus-circle.js";import"../icon/gator/templates/plus.js";import"../icon/gator/templates/printer.js";import"../icon/gator/templates/question-chat-bubble.js";import"../icon/gator/templates/question-circle.js";import"../icon/gator/templates/question-mark.js";import"../icon/gator/templates/radio-selected.js";import"../icon/gator/templates/radio.js";import"../icon/gator/templates/receipt.js";import"../icon/gator/templates/restricted.js";import"../icon/gator/templates/sandals.js";import"../icon/gator/templates/save.js";import"../icon/gator/templates/screen.js";import"../icon/gator/templates/search.js";import"../icon/gator/templates/selection.js";import"../icon/gator/templates/settings.js";import"../icon/gator/templates/share-1.js";import"../icon/gator/templates/share-2.js";import"../icon/gator/templates/shield-lock.js";import"../icon/gator/templates/shield-warning.js";import"../icon/gator/templates/sidebar-simple.js";import"../icon/gator/templates/sidebar.js";import"../icon/gator/templates/smart-home.js";import"../icon/gator/templates/sort-arrow-solid-down.js";import"../icon/gator/templates/sort-arrow-solid-left.js";import"../icon/gator/templates/sort-arrow-solid-right.js";import"../icon/gator/templates/sort-arrow-solid-up-down.js";import"../icon/gator/templates/sort-arrow-solid-up.js";import"../icon/gator/templates/sort-reverse-variant.js";import"../icon/gator/templates/sort-variant.js";import"../icon/gator/templates/sparkle-filled.js";import"../icon/gator/templates/sparkle.js";import"../icon/gator/templates/speech-bubble.js";import"../icon/gator/templates/square-split-horizontal.js";import"../icon/gator/templates/square-split-vertical.js";import"../icon/gator/templates/square.js";import"../icon/gator/templates/stack.js";import"../icon/gator/templates/stamp.js";import"../icon/gator/templates/star-four-filled.js";import"../icon/gator/templates/star-four.js";import"../icon/gator/templates/star.js";import"../icon/gator/templates/stopwatch.js";import"../icon/gator/templates/sun.js";import"../icon/gator/templates/sync.js";import"../icon/gator/templates/tab-arrows.js";import"../icon/gator/templates/table.js";import"../icon/gator/templates/target.js";import"../icon/gator/templates/text-aa.js";import"../icon/gator/templates/thumbs-down.js";import"../icon/gator/templates/thumbs-up.js";import"../icon/gator/templates/tools.js";import"../icon/gator/templates/touch-id.js";import"../icon/gator/templates/trash.js";import"../icon/gator/templates/trend-up.js";import"../icon/gator/templates/twitter-logo.js";import"../icon/gator/templates/unlink.js";import"../icon/gator/templates/unlock.js";import"../icon/gator/templates/upload.js";import"../icon/gator/templates/video.js";import"../icon/gator/templates/waffle.js";import"../icon/gator/templates/warning-circle.js";import"../icon/gator/templates/warning-diamond.js";import"../icon/gator/templates/warning-octagon.js";import"../icon/gator/templates/warning.js";import"../icon/gator/templates/wet-sign.js";import"../icon/gator/templates/wifi-off.js";import"../icon/gator/templates/wifi.js";import"../icon/gator/templates/x-logo.js";import"../icon/gator/templates/yelp-logo.js";import"../icon/gator/templates/youtube-logo.js";import"../icon/gator/templates/zillow-logo.js";import{TestableLitElement as y}from"../../utils/components/testable-lit-element/testable-lit-element.js";import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as h}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as x}from"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{createRef as g,ref as R}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{unsafeCSS as n}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var $=Object.defineProperty,k=Object.getOwnPropertyDescriptor,o=(i,m,s,e)=>{for(var p=e>1?void 0:e?k(m,s):m,a=i.length-1,l;a>=0;a--)(l=i[a])&&(p=(e?l(m,s,p):l(p))||p);return e&&p&&$(m,s,p),p};let t=class extends y{constructor(){super(...arguments),this.id="",this.titleText="",this.value="",this.selected=!1,this.indeterminate=!1,this.hideLabel=!1,this.disabled=!1,this.hasError=!1,this._randomId=c(),this.inputRef=g()}updated(i){super.updated(i),i.has("indeterminate")&&this.inputRef.value&&(this.inputRef.value.indeterminate=this.indeterminate),i.has("hasError")&&this.inputRef.value&&this.inputRef.value.setCustomValidity(this.hasError?"true":"")}render(){const i=this.elementId;return h`
2
- <div id="${i}-checkbox" class="gator-checkbox">
1
+ import{customElement as c}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as a}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{generateRandomId as d,getElementId as u}from"../../utils/string-utils.js";import m from"../../packages/web-components/src/components/checkbox/checkbox.gator.scss.js";import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as f}from"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{ref as b}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{NgcInputText as v}from"../input/gator/input-text/input-text.gator.js";import{unsafeCSS as x}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var g=Object.defineProperty,y=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,$=Reflect.get,r=(e,i,o,l)=>{for(var s=l>1?void 0:l?y(i,o):i,h=e.length-1,n;h>=0;h--)(n=e[h])&&(s=(l?n(i,o,s):n(s))||s);return l&&s&&g(i,o,s),s},R=(e,i,o)=>$(_(e),o,i);let t=class extends v{constructor(){super(...arguments),this.titleText="",this.selected=!1,this.indeterminate=!1,this.hideLabel=!1,this.hasError=!1,this._randomId=d()}updated(e){super.updated(e),e.has("indeterminate")&&this.inputRef.value&&(this.inputRef.value.indeterminate=this.indeterminate),e.has("hasError")&&this.inputRef.value&&this.inputRef.value.setCustomValidity(this.hasError?"true":"")}render(){const e=this.elementId;return p`
2
+ <div id="${e}-checkbox" class="gator-checkbox">
3
3
  <div class="gator-checkbox-input-wrapper">
4
4
  <input
5
- ${R(this.inputRef)}
6
- id="${i}"
5
+ ${b(this.inputRef)}
6
+ id="${e}"
7
7
  class="gator-checkbox-input"
8
8
  type="checkbox"
9
9
  ?checked="${this.selected}"
10
10
  ?disabled="${this.disabled}"
11
- aria-labelledby="${i}-checkbox"
11
+ aria-labelledby="${e}-checkbox"
12
12
  @change="${this.handleChange}"
13
13
  aria-label="${this.titleText}"
14
14
  />
15
15
  </div>
16
- ${this.hideLabel?null:h`
16
+ ${this.hideLabel?null:p`
17
17
  <label class="gator-checkbox-title">
18
18
  ${this.titleText}
19
19
  <slot></slot>
20
20
  </label>
21
21
  `}
22
22
  </div>
23
- `}get elementId(){return u(this.id,this._randomId)}handleChange(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{value:this.value,selected:this.selected}}))}click(){this.inputRef.value?.click()}};t.shadowRootOptions={...x.shadowRootOptions,delegatesFocus:!0,mode:"open"};t.styles=[n(v),n(f),n(b)];o([r({type:String})],t.prototype,"id",2);o([r({type:String,attribute:"title-text"})],t.prototype,"titleText",2);o([r({type:String})],t.prototype,"value",2);o([r({type:Boolean})],t.prototype,"selected",2);o([r({type:Boolean})],t.prototype,"indeterminate",2);o([r({type:Boolean,attribute:"hide-label"})],t.prototype,"hideLabel",2);o([r({type:Boolean})],t.prototype,"disabled",2);o([r({type:Boolean,attribute:"has-error"})],t.prototype,"hasError",2);t=o([d("ngc-checkbox")],t);export{t as NgcCheckbox};
23
+ `}get elementId(){return u(this.id,this._randomId)}handleChange(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{value:this.value,selected:this.selected}}))}click(){this.inputRef.value?.click()}};t.shadowRootOptions={...f.shadowRootOptions,delegatesFocus:!0,mode:"open"};t.styles=[...R(t,t,"styles"),x(m)];r([a({type:String,attribute:"title-text"})],t.prototype,"titleText",2);r([a({type:Boolean})],t.prototype,"selected",2);r([a({type:Boolean})],t.prototype,"indeterminate",2);r([a({type:Boolean,attribute:"hide-label"})],t.prototype,"hideLabel",2);r([a({type:Boolean,attribute:"has-error"})],t.prototype,"hasError",2);t=r([c("ngc-checkbox")],t);export{t as NgcCheckbox};
@@ -0,0 +1,16 @@
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as m,html as b}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as u}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as c}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{NgcComponent as f}from"../../../../utils/components/ngc-component.js";import d from"../../../../packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js";import{msg as p}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../checkbox/checkbox.gator.js";import{unsafeCSS as h}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,_=Reflect.get,r=(l,o,s,a)=>{for(var t=a>1?void 0:a?g(o,s):o,i=l.length-1,n;i>=0;i--)(n=l[i])&&(t=(a?n(o,s,t):n(t))||t);return a&&t&&v(o,s,t),t},S=(l,o,s)=>_(y(l),s,o);let e=class extends f{constructor(){super(...arguments),this.visible=!1,this.selectedRows=0,this.totalRows=0,this.allSelected=!1}handleSelectAllChange(l){this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selected:l.detail.selected}}))}render(){return this.visible?b`
2
+ <div class="gator-table-bulk-controls" aria-live="polite">
3
+ <div class="gator-table-bulk-controls-selection">
4
+ <ngc-checkbox
5
+ title-text="${p("Select All")}"
6
+ hide-label
7
+ ?selected="${this.allSelected}"
8
+ @change="${this.handleSelectAllChange}"
9
+ ></ngc-checkbox>
10
+ <span class="gator-table-bulk-controls-count">${this.selectedRows} ${p("selected")}</span>
11
+ </div>
12
+ <div class="gator-table-bulk-controls-actions">
13
+ <slot></slot>
14
+ </div>
15
+ </div>
16
+ `:m}focus(){}};e.styles=[...S(e,e,"styles"),h(d)];r([c({type:Boolean,reflect:!0})],e.prototype,"visible",2);r([c({type:Number})],e.prototype,"selectedRows",2);r([c({type:Number})],e.prototype,"totalRows",2);r([c({type:Boolean,reflect:!0})],e.prototype,"allSelected",2);e=r([u("ngc-table-bulk-controls")],e);export{e as NgcTableBulkControls};
@@ -1,9 +1,18 @@
1
- import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as f,html as r}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as b}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as $}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import w from"../../../packages/web-components/src/components/table/table.tokens.scss.js";import T from"../../../packages/web-components/src/components/table/gator/table.gator.scss.js";import P from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import y from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{NjcTable as C}from"../table.js";import"../../checkbox/checkbox.gator.js";import{unsafeHTML as R}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/unsafe-html.js";import{msg as x}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{unsafeCSS as g}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var B=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=(t,e,l,s)=>{for(var a=s>1?void 0:s?v(e,l):e,i=t.length-1,d;i>=0;i--)(d=t[i])&&(a=(s?d(e,l,a):d(a))||a);return s&&a&&B(e,l,a),a};let c=class extends C{constructor(){super(...arguments),this.elevated=!1,this.includePagination=!1,this.selectedRows=[],this._currentPage=1}render(){return this.columns?this.renderWrapper(this.getTableHeader(this.columns),this.getTableBody(this.columns,this.displayedRowData)):null}get tableElevatedClass(){return this.elevated?"gator-table-elevated":""}renderWrapper(t,e){return r`
1
+ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as w,html as o}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as $}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as f}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as g}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import T from"../../../packages/web-components/src/components/table/table.tokens.scss.js";import R from"../../../packages/web-components/src/components/table/gator/table.gator.scss.js";import y from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import k from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{NjcTable as C}from"../table.js";import"../../checkbox/checkbox.gator.js";import"./table-bulk-controls/table-bulk-controls.gator.js";import{unsafeHTML as P}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/unsafe-html.js";import{msg as b}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{KEY_CONSTANTS as S}from"../../../consts/key-constants.js";import{unsafeCSS as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.defineProperty,L=Object.getOwnPropertyDescriptor,c=(e,t,l,s)=>{for(var a=s>1?void 0:s?L(t,l):t,r=e.length-1,i;r>=0;r--)(i=e[r])&&(a=(s?i(t,l,a):i(a))||a);return s&&a&&v(t,l,a),a};let d=class extends C{constructor(){super(...arguments),this.elevated=!1,this.includePagination=!1,this.selectedRows=[],this._currentPage=1,this.justSelectedRow=null,this.showJumpLink=!1,this.handleKeyDown=e=>{e.key===S.TAB&&(e.shiftKey&&(this.showJumpLink=!0,this.requestUpdate()),document.removeEventListener("keydown",this.handleKeyDown,!0))}}updated(e){super.updated(e),e.has("data")&&(this.selectedRows=this.data.filter(t=>t.selected&&!t.isTableHeader))}render(){return this.columns?this.renderWrapper(this.getTableHeader(this.columns),this.getTableBody(this.columns,this.displayedRowData)):null}get tableElevatedClass(){return this.elevated?"gator-table-elevated":""}get showBulkControls(){return this.selectable&&this.selectedRows.length>0}renderWrapper(e,t){return o`
2
+ <ngc-table-bulk-controls
3
+ ?visible="${this.showBulkControls}"
4
+ .selectedRows="${this.selectedRows.length}"
5
+ .totalRows="${this.data.length}"
6
+ ?allSelected="${this.selectedRows.length===this.data.length}"
7
+ @selectall="${this.handleSelectAll}"
8
+ >
9
+ <slot name="bulk-controls"></slot>
10
+ </ngc-table-bulk-controls>
2
11
  <table class="gator-table ${this.tableElevatedClass}" role="grid"
3
12
  aria-labelledby="${this.tableAriaLabelledBy}">
4
- ${t} ${e}
13
+ ${e} ${t}
5
14
  </table>
6
- ${this.includePagination?r`
15
+ ${this.includePagination?o`
7
16
  <ngc-table-pagination
8
17
  items-per-page="${this.itemsPerPage}"
9
18
  total-items="${this.data.length}"
@@ -11,31 +20,31 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
11
20
  @pagechanged="${this.handlePageChanged}"
12
21
  @itemsperpagechanged="${this.handleItemsPerPageChanged}"
13
22
  ></ngc-table-pagination>
14
- `:f}
15
- `}handlePageChanged(t){this._currentPage=t.detail.page}handleItemsPerPageChanged(t){this.itemsPerPage=t.detail.itemsPerPage}getTableHeader(t){const e=t.map(this.getTableHeaderColumn);return this.selectable&&e.unshift(r`
23
+ `:w}
24
+ `}handlePageChanged(e){this._currentPage=e.detail.page}handleItemsPerPageChanged(e){this.itemsPerPage=e.detail.itemsPerPage}handleJumpLinkClick(e){const t=this.shadowRoot?.querySelector("ngc-table-bulk-controls");t&&t.focus()}handleJumpLinkBlur(){this.showJumpLink=!1,this.requestUpdate()}handleRowSelectCheckboxBlur(){setTimeout(()=>{const e=this.shadowRoot?.activeElement;(!e||!e.classList.contains("gator-table-jump-link"))&&(this.showJumpLink=!1,document.removeEventListener("keydown",this.handleKeyDown,!0),this.requestUpdate())},0)}getTableHeader(e){const t=e.map(this.getTableHeaderColumn);return this.selectable&&t.unshift(o`
16
25
  <th id="col-select" scope="col">
17
26
  <ngc-checkbox
18
- title-text="${x("Select All")}"
27
+ title-text="${b("Select All")}"
19
28
  hide-label
20
29
  ?selected="${this.selectedRows.length===this.data.length}"
21
30
  @change="${l=>this.handleSelectAll(l)}"
22
31
  ></ngc-checkbox>
23
- </th>`),r`
32
+ </th>`),o`
24
33
  <thead role="rowgroup">
25
- <tr role="row">
26
- ${e}
27
- </tr>
34
+ <tr role="row">
35
+ ${t}
36
+ </tr>
28
37
  </thead>
29
- `}handleSelectAll(t){t.detail.selected?(this.selectedRows=[...this.data],this.data.forEach(e=>{e.selected=t.detail.selected})):(this.selectedRows=[],this.data.forEach(e=>{e.selected=!1})),this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selectedRows:this.selectedRows}})),this.requestUpdate()}getTableHeaderColumn(t){const e=`col-${t.field}`;return r`
30
- <th id="${e}" scope="col">${t.name}</th>`}getTableBody(t,e){const l=[];let s={rows:[]};return e.forEach(a=>{a.isTableHeader?((s.rows.length>0||s.header)&&l.push(s),s={header:a,rows:[]}):s.rows.push(a)}),(s.rows.length>0||s.header)&&l.push(s),l.length===0&&e.length>0&&l.push({rows:e}),r`
31
- ${l.map(a=>this.getCategoryBody(a,t))}
32
- `}getCategoryBody(t,e){let l="",s="",a="";t.header&&(l=t.header.headerText||t.header.categoryText||t.header.name||"Category",a=`category-${l.toLowerCase().replace(/\s+/g,"-")}`,s=a);const i=t.header?this.getTableHeaderRow(e,t.header):"",d=t.rows.map(n=>this.getTableBodyRow(n,e,a)),u=e.some(n=>n.includedInTotals===!0),o=t.rows.length>0&&u?this.getTotalRow(t.rows,e,a):"";return r`
33
- <tbody role="rowgroup" ${s?r`aria-labelledby="${s}"`:""}>
38
+ `}handleSelectAll(e){const t=e.detail.selected;t?(this.data.forEach(l=>{l.isTableHeader||(l.selected=!0)}),this.selectedRows=this.data.filter(l=>!l.isTableHeader)):(this.data.forEach(l=>{l.selected=!1}),this.selectedRows=[]),this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selectedRows:this.selectedRows,selected:t}})),this.requestUpdate()}getTableHeaderColumn(e){const t=`col-${e.field}`;return o`
39
+ <th id="${t}" scope="col">${e.name}</th>`}getTableBody(e,t){const l=[];let s={rows:[]};return t.forEach(a=>{a.isTableHeader?((s.rows.length>0||s.header)&&l.push(s),s={header:a,rows:[]}):s.rows.push(a)}),(s.rows.length>0||s.header)&&l.push(s),l.length===0&&t.length>0&&l.push({rows:t}),o`
40
+ ${l.map(a=>this.getCategoryBody(a,e))}
41
+ `}getCategoryBody(e,t){let l="",s="",a="";e.header&&(l=e.header.headerText||e.header.categoryText||e.header.name||"Category",a=`category-${l.toLowerCase().replace(/\s+/g,"-")}`,s=a);const r=e.header?this.getTableHeaderRow(t,e.header):"",i=e.rows.map(h=>this.getTableBodyRow(h,t,a)),m=t.some(h=>h.includedInTotals===!0),n=e.rows.length>0&&m?this.getTotalRow(e.rows,t,a):"";return o`
42
+ <tbody role="rowgroup" ${s?o`aria-labelledby="${s}"`:""}>
43
+ ${r}
34
44
  ${i}
35
- ${d}
36
- ${o}
45
+ ${n}
37
46
  </tbody>
38
- `}getTotalRow(t,e,l){const s={};e.forEach(o=>{s[o.field]=0,o.includedInTotals&&t.forEach(n=>{const h=this.parseNumericValue(n[o.field]);h!==null&&(s[o.field]+=h)})});const a=l?`${l}-total`:"total-row",i=r`
47
+ `}getTotalRow(e,t,l){const s={};t.forEach(n=>{s[n.field]=0,n.includedInTotals&&e.forEach(h=>{const u=this.parseNumericValue(h[n.field]);u!==null&&(s[n.field]+=u)})});const a=l?`${l}-total`:"total-row",r=o`
39
48
  <th
40
49
  id="${a}"
41
50
  scope="row"
@@ -43,45 +52,55 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
43
52
  >
44
53
  Total
45
54
  </th>
46
- `,d=e.map(o=>{const n=`col-${o.field}`,h=[a,l,n].filter(Boolean).join(" ");return o.includedInTotals?r`
55
+ `,i=t.map(n=>{const h=`col-${n.field}`,u=[a,l,h].filter(Boolean).join(" ");return n.includedInTotals?o`
47
56
  <td
48
57
  role="gridcell"
49
- headers="${h}"
58
+ headers="${u}"
50
59
  class="gator-table-total-cell"
51
60
  >
52
- ${this.formatTotal(s[o.field],o)}
61
+ ${this.formatTotal(s[n.field],n)}
53
62
  </td>
54
- `:r`
63
+ `:o`
55
64
  <td
56
65
  role="gridcell"
57
66
  class="gator-table-total-cell"
58
67
  >
59
68
  &nbsp;
60
69
  </td>
61
- `}),u=this.selectable?[i,...d]:[i,...d.slice(1)];return r`
70
+ `}),m=this.selectable?[r,...i]:[r,...i.slice(1)];return o`
62
71
  <tr role="row" class="gator-table-total-row">
63
- ${u}
72
+ ${m}
64
73
  </tr>
65
- `}parseNumericValue(t){if(typeof t=="number")return t;if(typeof t=="string"){const e=t.replace(/[^0-9.-]/g,""),l=parseFloat(e);if(!isNaN(l))return l}return null}formatTotal(t,e){const l=typeof e.decimalPlaces=="number"?e.decimalPlaces:2,s=t.toFixed(l);return typeof e.cellRenderer=="function"?e.cellRenderer({[e.field]:s}):s}getTableBodyRow(t,e,l){const s=e.map(a=>this.getTableBodyCell(t,a,l));if(this.selectable){const a=l?`col-select ${l}`:"col-select";s.unshift(r`
74
+ `}parseNumericValue(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=e.replace(/[^0-9.-]/g,""),l=parseFloat(t);if(!isNaN(l))return l}return null}formatTotal(e,t){const l=typeof t.decimalPlaces=="number"?t.decimalPlaces:2,s=e.toFixed(l);return typeof t.cellRenderer=="function"?t.cellRenderer({[t.field]:s}):s}getTableBodyRow(e,t,l){const s=t.map(a=>this.getTableBodyCell(e,a,l));if(this.selectable){const a=l?`col-select ${l}`:"col-select",r=this.showJumpLink&&this.justSelectedRow===e;s.unshift(o`
66
75
  <td role="gridcell" class="gator-table-checkbox-column" headers="${a}">
67
- <ngc-checkbox
68
- label="test"
69
- ?selected="${t.selected}"
70
- @change="${i=>this.handleTableBodyRowSelected(i,t)}"
71
- ></ngc-checkbox>
72
- </td>`)}return r`
73
- <tr role="row" class="${this.selectable&&t.selected?"gator-table-row-selected":""}">
76
+ ${r?o`
77
+ <ngc-button
78
+ variant="base"
79
+ class="gator-table-jump-link"
80
+ @click="${this.handleJumpLinkClick}"
81
+ @blur="${this.handleJumpLinkBlur}"
82
+ >
83
+ ${b("Jump to bulk actions")}
84
+ </ngc-button>`:o`<ngc-checkbox
85
+ label="test"
86
+ ?selected="${e.selected}"
87
+ @change="${i=>this.handleTableBodyRowSelected(i,e)}"
88
+ id="checkbox-${e.id||Math.random().toString(36).substring(2,11)}"
89
+ @blur="${this.handleRowSelectCheckboxBlur}"
90
+ ></ngc-checkbox>`}
91
+ </td>`),r&&setTimeout(()=>{this.shadowRoot?.querySelector(".gator-table-jump-link")?.focus()},0)}return o`
92
+ <tr role="row" class="${this.selectable&&e.selected?"gator-table-row-selected":""}">
74
93
  ${s}
75
94
  </tr>
76
- `}getTableHeaderRow(t,e){const l=this.selectable?t.length+1:t.length,s=e.headerText||e.categoryText||e.name||"Category";return r`
95
+ `}getTableHeaderRow(e,t){const l=this.selectable?e.length+1:e.length,s=t.headerText||t.categoryText||t.name||"Category";return o`
77
96
  <tr role="row" class="gator-table-category-header">
78
97
  <th role="rowheader" colspan="${l}" scope="rowgroup" class="gator-table-header-cell"
79
98
  id="${`category-${s.toLowerCase().replace(/\s+/g,"-")}`}">
80
99
  ${s}
81
100
  </th>
82
101
  </tr>
83
- `}handleTableBodyRowSelected(t,e){t.detail.selected?(e.selected=!0,this.selectedRows.push(e)):(e.selected=!1,this.selectedRows=this.selectedRows.filter(l=>l!==e)),this.dispatchEvent(new CustomEvent("rowselected",{bubbles:!0,detail:{data:e,selectedRows:this.selectedRows}})),this.requestUpdate()}get displayedRowData(){if(!this.includePagination)return this.data;const t=(this._currentPage-1)*this.itemsPerPage,e=t+this.itemsPerPage;return this.data.slice(t,e)}getTableBodyCell(t,e,l){const s=`col-${e.field}`,a=l?`${s} ${l}`:s;return r`
102
+ `}handleTableBodyRowSelected(e,t){e.detail.selected?(t.selected=!0,this.selectedRows.push(t),this.justSelectedRow=t,this.showJumpLink=!1,document.addEventListener("keydown",this.handleKeyDown,!0)):(t.selected=!1,this.selectedRows=this.selectedRows.filter(l=>l!==t),this.justSelectedRow===t&&(this.justSelectedRow=null,this.showJumpLink=!1)),this.dispatchEvent(new CustomEvent("rowselected",{bubbles:!0,detail:{data:t,selectedRows:this.selectedRows}})),this.requestUpdate()}get displayedRowData(){if(!this.includePagination)return this.data;const e=(this._currentPage-1)*this.itemsPerPage,t=e+this.itemsPerPage;return this.data.slice(e,t)}getTableBodyCell(e,t,l){const s=`col-${t.field}`,a=l?`${s} ${l}`:s;return o`
84
103
  <td role="gridcell" headers="${a}">
85
- ${R(this.getValueForCell(t,e))}
104
+ ${P(this.getValueForCell(e,t))}
86
105
  </td>
87
- `}getValueForCell(t,e){return typeof e.cellRenderer=="function"?e.cellRenderer(t):t[e.field]}};c.styles=[g(y),g(P),g(w),g(T)];p([b({type:Boolean})],c.prototype,"elevated",2);p([b({type:Boolean,attribute:"include-pagination"})],c.prototype,"includePagination",2);p([$()],c.prototype,"_currentPage",2);c=p([m("ngc-table")],c);export{c as NgcTable};
106
+ `}getValueForCell(e,t){return typeof t.cellRenderer=="function"?t.cellRenderer(e):e[t.field]}};d.styles=[p(k),p(y),p(T),p(R)];c([f({type:Boolean})],d.prototype,"elevated",2);c([f({type:Boolean,attribute:"include-pagination"})],d.prototype,"includePagination",2);c([g()],d.prototype,"selectedRows",2);c([g()],d.prototype,"_currentPage",2);c([g()],d.prototype,"justSelectedRow",2);c([g()],d.prototype,"showJumpLink",2);d=c([$("ngc-table")],d);export{d as NgcTable};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import*as s from"./components/badge/slds/badge.slds.js";import*as _ from"./components/badge/gator/badge.gator.js";import*as n from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as i from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import*as c from"./components/button/slds/button.slds.js";import*as g from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/card/gator/base/card.gator.js";import*as d from"./components/card/gator/header/card-header.gator.js";import*as l from"./components/card/gator/content/card-content.gator.js";import*as f from"./components/card/gator/footer/card-footer.gator.js";import*as N from"./components/checkbox/checkbox.gator.js";import*as b from"./components/checkbox-group/checkbox-group.gator.js";import*as I from"./components/chip/gator/chip.gator.js";import*as T from"./components/combobox/base/index.js";import*as h from"./components/combobox/combobox-item/index.js";import*as C from"./components/display-card/gator/display-card.gator.js";import*as B from"./components/divider/gator/divider.gator.js";import*as k from"./components/fab/gator/fab.gator.js";import*as v from"./components/headline-card/gator/headline-card.gator.js";import*as L from"./components/icon/slds/icon.slds.js";import*as D from"./components/icon/gator/icon.gator.js";import*as S from"./components/icon-button/gator/icon-button.gator.js";import*as P from"./components/input/gator/input-currency/input-currency.gator.js";import*as G from"./components/input/gator/input-date/input-date.gator.js";import*as M from"./components/input/gator/input-label/input-label.gator.js";import*as w from"./components/input/gator/help-text/help-text.gator.js";import*as F from"./components/input/gator/input-text/input-text.gator.js";import*as H from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as y from"./components/input/gator/input-masked/input-masked.gator.js";import*as A from"./components/input/gator/input-percent/input-percent.gator.js";import*as R from"./components/input/gator/input-phone/input-phone.gator.js";import*as E from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as U from"./components/input/gator/input-file/input-file.gator.js";import*as j from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as q from"./components/input/gator/input-search/input-search.gator.js";import*as z from"./components/input/gator/input-time/input-time.gator.js";import*as J from"./components/input/slds/input-text/input-text.slds.js";import*as K from"./components/input/slds/input-error/input-error.slds.js";import*as O from"./components/input/slds/input-label/input-label.slds.js";import*as Q from"./components/input-rich-text/input-rich-text.slds.js";import*as V from"./components/list/gator/list/list.gator.js";import*as W from"./components/list/gator/list-item/list-item.gator.js";import*as X from"./components/menu/base/slds/menu.slds.js";import*as Y from"./components/menu/base/gator/menu.gator.js";import*as Z from"./components/menu/menu-divider/menu-divider.slds.js";import*as $ from"./components/menu/menu-item/slds/menu-item.slds.js";import*as oo from"./components/menu/menu-item/gator/menu-item.gator.js";import*as to from"./components/menu/menu-submenu/menu-submenu.slds.js";import*as ro from"./components/modal/gator/modal.gator.js";import*as ao from"./components/page-header/gator/page-header.gator.js";import*as eo from"./components/pill/pill.js";import*as po from"./components/popover/gator/popover.gator.js";import*as so from"./components/radio/radio.gator.js";import*as _o from"./components/radio-group/radio-group.gator.js";import*as no from"./components/scoped-notification/scoped-notification.slds.js";import*as mo from"./components/selection-box/selection-box.gator.js";import*as io from"./components/selection-box-group/selection-box-group.gator.js";import*as co from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as go from"./components/switch/gator/switch.gator.js";import*as uo from"./components/tabs/gator/tabset/tabset.gator.js";import*as xo from"./components/tabs/gator/tab/tab.gator.js";import*as lo from"./components/text-detail/gator/text-detail.gator.js";import*as fo from"./components/text-link/gator/text-link.gator.js";import*as No from"./components/toast/gator/base/toast.gator.js";import*as bo from"./components/toast-container/gator/toast-container.gator.js";import*as Io from"./components/toaster/gator/toaster.gator.js";import*as To from"./components/tooltip/gator/tooltip.gator.js";import*as ho from"./components/tooltip/slds/tooltip.slds.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,_ as NgcBadge,n as NgcBanner,m as NgcBoolean,i as NgcBreadcrumbs,g as NgcButton,u as NgcButtonCard,x as NgcCard,l as NgcCardContent,f as NgcCardFooter,d as NgcCardHeader,N as NgcCheckbox,b as NgcCheckboxGroup,I as NgcChip,C as NgcDisplayCard,B as NgcDivider,k as NgcFab,v as NgcHeadlineCard,w as NgcHelpText,D as NgcIcon,S as NgcIconButton,P as NgcInputCurrency,G as NgcInputDate,E as NgcInputDropdown,U as NgcInputFile,j as NgcInputFileUploadedPreview,M as NgcInputLabel,y as NgcInputMasked,A as NgcInputPercent,R as NgcInputPhone,q as NgcInputSearch,F as NgcInputText,H as NgcInputTextarea,z as NgcInputTime,V as NgcList,W as NgcListItem,Y as NgcMenu,oo as NgcMenuItem,ro as NgcModal,ao as NgcPageHeader,po as NgcPopover,so as NgcRadio,_o as NgcRadioGroup,mo as NgcSelectionBox,io as NgcSelectionBoxGroup,co as NgcSkeletonLoader,go as NgcSwitch,xo as NgcTab,uo as NgcTabs,lo as NgcTextDetail,fo as NgcTextLink,No as NgcToast,bo as NgcToastContainer,Io as NgcToaster,To as NgcTooltip,s as NscBadge,c as NscButton,T as NscCombobox,h as NscComboboxItem,L as NscIcon,K as NscInputError,O as NscInputLabel,Q as NscInputRichText,J as NscInputText,X as NscMenu,Z as NscMenuDivider,$ as NscMenuItem,to as NscMenuSubmenu,eo as NscPill,no as NscScopedNotification,ho as NscTooltip};
1
+ import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import*as s from"./components/badge/slds/badge.slds.js";import*as _ from"./components/badge/gator/badge.gator.js";import*as n from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as i from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import*as c from"./components/button/slds/button.slds.js";import*as g from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/button-group/gator/button-group.gator.js";import*as d from"./components/card/gator/base/card.gator.js";import*as l from"./components/card/gator/header/card-header.gator.js";import*as f from"./components/card/gator/content/card-content.gator.js";import*as N from"./components/card/gator/footer/card-footer.gator.js";import*as b from"./components/checkbox/checkbox.gator.js";import*as I from"./components/checkbox-group/checkbox-group.gator.js";import*as T from"./components/chip/gator/chip.gator.js";import*as h from"./components/combobox/base/index.js";import*as C from"./components/combobox/combobox-item/index.js";import*as B from"./components/display-card/gator/display-card.gator.js";import*as k from"./components/divider/gator/divider.gator.js";import*as v from"./components/fab/gator/fab.gator.js";import*as G from"./components/headline-card/gator/headline-card.gator.js";import*as L from"./components/icon/slds/icon.slds.js";import*as D from"./components/icon/gator/icon.gator.js";import*as P from"./components/icon-button/gator/icon-button.gator.js";import*as S from"./components/input/gator/input-currency/input-currency.gator.js";import*as M from"./components/input/gator/input-date/input-date.gator.js";import*as w from"./components/input/gator/input-label/input-label.gator.js";import*as F from"./components/input/gator/help-text/help-text.gator.js";import*as H from"./components/input/gator/input-text/input-text.gator.js";import*as y from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as A from"./components/input/gator/input-masked/input-masked.gator.js";import*as R from"./components/input/gator/input-percent/input-percent.gator.js";import*as E from"./components/input/gator/input-phone/input-phone.gator.js";import*as U from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as j from"./components/input/gator/input-file/input-file.gator.js";import*as q from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as z from"./components/input/gator/input-search/input-search.gator.js";import*as J from"./components/input/gator/input-time/input-time.gator.js";import*as K from"./components/input/slds/input-text/input-text.slds.js";import*as O from"./components/input/slds/input-error/input-error.slds.js";import*as Q from"./components/input/slds/input-label/input-label.slds.js";import*as V from"./components/input-rich-text/input-rich-text.slds.js";import*as W from"./components/list/gator/list/list.gator.js";import*as X from"./components/list/gator/list-item/list-item.gator.js";import*as Y from"./components/menu/base/slds/menu.slds.js";import*as Z from"./components/menu/base/gator/menu.gator.js";import*as $ from"./components/menu/menu-divider/menu-divider.slds.js";import*as oo from"./components/menu/menu-item/slds/menu-item.slds.js";import*as to from"./components/menu/menu-item/gator/menu-item.gator.js";import*as ro from"./components/menu/menu-submenu/menu-submenu.slds.js";import*as ao from"./components/modal/gator/modal.gator.js";import*as eo from"./components/page-header/gator/page-header.gator.js";import*as po from"./components/pill/pill.js";import*as so from"./components/popover/gator/popover.gator.js";import*as _o from"./components/progress-bar/gator/progress-bar.gator.js";import*as no from"./components/radio/radio.gator.js";import*as mo from"./components/radio-group/radio-group.gator.js";import*as io from"./components/scoped-notification/scoped-notification.slds.js";import*as co from"./components/selection-box/selection-box.gator.js";import*as go from"./components/selection-box-group/selection-box-group.gator.js";import*as uo from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as xo from"./components/switch/gator/switch.gator.js";import*as lo from"./components/tabs/gator/tabset/tabset.gator.js";import*as fo from"./components/tabs/gator/tab/tab.gator.js";import*as No from"./components/text-detail/gator/text-detail.gator.js";import*as bo from"./components/text-link/gator/text-link.gator.js";import*as Io from"./components/toast/gator/base/toast.gator.js";import*as To from"./components/toast-container/gator/toast-container.gator.js";import*as ho from"./components/toaster/gator/toaster.gator.js";import*as Co from"./components/tooltip/gator/tooltip.gator.js";import*as Bo from"./components/tooltip/slds/tooltip.slds.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,_ as NgcBadge,n as NgcBanner,m as NgcBoolean,i as NgcBreadcrumbs,g as NgcButton,u as NgcButtonCard,x as NgcButtonGroup,d as NgcCard,f as NgcCardContent,N as NgcCardFooter,l as NgcCardHeader,b as NgcCheckbox,I as NgcCheckboxGroup,T as NgcChip,B as NgcDisplayCard,k as NgcDivider,v as NgcFab,G as NgcHeadlineCard,F as NgcHelpText,D as NgcIcon,P as NgcIconButton,S as NgcInputCurrency,M as NgcInputDate,U as NgcInputDropdown,j as NgcInputFile,q as NgcInputFileUploadedPreview,w as NgcInputLabel,A as NgcInputMasked,R as NgcInputPercent,E as NgcInputPhone,z as NgcInputSearch,H as NgcInputText,y as NgcInputTextarea,J as NgcInputTime,W as NgcList,X as NgcListItem,Z as NgcMenu,to as NgcMenuItem,ao as NgcModal,eo as NgcPageHeader,so as NgcPopover,_o as NgcProgressBar,no as NgcRadio,mo as NgcRadioGroup,co as NgcSelectionBox,go as NgcSelectionBoxGroup,uo as NgcSkeletonLoader,xo as NgcSwitch,fo as NgcTab,lo as NgcTabs,No as NgcTextDetail,bo as NgcTextLink,Io as NgcToast,To as NgcToastContainer,ho as NgcToaster,Co as NgcTooltip,s as NscBadge,c as NscButton,h as NscCombobox,C as NscComboboxItem,L as NscIcon,O as NscInputError,Q as NscInputLabel,V as NscInputRichText,K as NscInputText,Y as NscMenu,$ as NscMenuDivider,oo as NscMenuItem,ro as NscMenuSubmenu,po as NscPill,io as NscScopedNotification,Bo as NscTooltip};
@@ -0,0 +1 @@
1
+ const r='.gator-table-bulk-controls{margin-bottom:1rem;display:flex;flex-direction:row;align-items:center;padding:var(--spacing-padding-margin-8, .5rem) var(--spacing-padding-margin-16, 1rem);border-radius:var(--ngc-table-bulk-controls-border-radius, 1rem);gap:1rem;background-color:var(--color-surface-brand, #F3F5F7)}.gator-table-bulk-controls-selection{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-padding-margin-8, .5rem);padding-left:.5rem}.gator-table-bulk-controls-count{font-family:var(--text-family-body),"Open Sans",sans-serif;font-size:var(--text-size-body-2, .875rem);color:var(--text-color-primary-base, #1F1F1F)}.gator-table-bulk-controls-actions{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-padding-margin-8, .5rem)}';export{r as default};
@@ -1,7 +1,6 @@
1
- import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element.ts';
2
1
  import { PropertyValueMap } from 'lit';
3
- import { Ref } from 'lit/directives/ref.js';
4
- export declare class NgcCheckbox extends TestableLitElement {
2
+ import { NgcInputText } from '../input/gator/input-text/input-text.gator.ts';
3
+ export declare class NgcCheckbox extends NgcInputText {
5
4
  static shadowRootOptions: {
6
5
  delegatesFocus: boolean;
7
6
  mode: ShadowRootMode;
@@ -10,18 +9,10 @@ export declare class NgcCheckbox extends TestableLitElement {
10
9
  };
11
10
  static styles: import('lit').CSSResult[];
12
11
  /**
13
- * @property {string} id
14
- */
15
- id: string;
16
- /**
17
12
  * @property {string} title - The title text for the checkbox button option.
18
13
  */
19
14
  titleText: string;
20
15
  /**
21
- * @property {string} value - The text label for the checkbox button option.
22
- */
23
- value: string;
24
- /**
25
16
  * @property {boolean} selected - Indicates whether the checkbox button is currently selected.
26
17
  */
27
18
  selected: boolean;
@@ -31,15 +22,10 @@ export declare class NgcCheckbox extends TestableLitElement {
31
22
  */
32
23
  hideLabel: boolean;
33
24
  /**
34
- * @property {boolean} disabled - Indicates whether the checkbox button is disabled.
35
- */
36
- disabled: boolean;
37
- /**
38
25
  * @property {boolean} hasError - Indicates if the checkbox button should render in an error state.
39
26
  */
40
27
  hasError: boolean;
41
28
  private _randomId;
42
- inputRef: Ref<HTMLInputElement>;
43
29
  protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
44
30
  render(): import('lit').TemplateResult<1>;
45
31
  get elementId(): string;
@@ -0,0 +1,29 @@
1
+ import { nothing } from 'lit';
2
+ import { NgcComponent } from '../../../../utils/components/ngc-component.ts';
3
+ export declare class NgcTableBulkControls extends NgcComponent {
4
+ /**
5
+ * Whether the bulk controls should be visible
6
+ */
7
+ visible: boolean;
8
+ /**
9
+ * The number of selected rows
10
+ */
11
+ selectedRows: number;
12
+ /**
13
+ * The total number of rows
14
+ */
15
+ totalRows: number;
16
+ /**
17
+ * Whether all rows are selected
18
+ */
19
+ allSelected: boolean;
20
+ static styles: import('lit').CSSResult[];
21
+ private handleSelectAllChange;
22
+ render(): import('lit').TemplateResult<1> | typeof nothing;
23
+ focus(): void;
24
+ }
25
+ declare global {
26
+ interface HTMLElementTagNameMap {
27
+ 'ngc-table-bulk-controls': NgcTableBulkControls;
28
+ }
29
+ }
@@ -1,3 +1,4 @@
1
+ import { PropertyValues } from 'lit';
1
2
  import { NjcTable, RowData } from '../table.ts';
2
3
  export declare class NgcTable extends NjcTable {
3
4
  elevated: boolean;
@@ -5,11 +6,18 @@ export declare class NgcTable extends NjcTable {
5
6
  static styles: import('lit').CSSResult[];
6
7
  selectedRows: RowData[];
7
8
  _currentPage: number;
9
+ justSelectedRow: RowData | null;
10
+ showJumpLink: boolean;
11
+ protected updated(_changedProperties: PropertyValues): void;
8
12
  render(): import('lit').TemplateResult<1> | null;
9
13
  get tableElevatedClass(): "" | "gator-table-elevated";
14
+ get showBulkControls(): boolean;
10
15
  renderWrapper(header: unknown, body: unknown): import('lit').TemplateResult<1>;
11
16
  handlePageChanged(event: CustomEvent): void;
12
17
  handleItemsPerPageChanged(event: CustomEvent): void;
18
+ private handleJumpLinkClick;
19
+ private handleJumpLinkBlur;
20
+ private handleRowSelectCheckboxBlur;
13
21
  private getTableHeader;
14
22
  handleSelectAll(event: CustomEvent): void;
15
23
  private getTableHeaderColumn;
@@ -20,6 +28,7 @@ export declare class NgcTable extends NjcTable {
20
28
  private formatTotal;
21
29
  private getTableBodyRow;
22
30
  private getTableHeaderRow;
31
+ handleKeyDown: (e: KeyboardEvent) => void;
23
32
  handleTableBodyRowSelected(event: CustomEvent, rowData: RowData): void;
24
33
  get displayedRowData(): RowData[];
25
34
  private getTableBodyCell;
@@ -7,6 +7,7 @@ export * from './components/boolean';
7
7
  export * from './components/breadcrumbs';
8
8
  export * from './components/button';
9
9
  export * from './components/button-card';
10
+ export * from './components/button-group';
10
11
  export * from './components/card';
11
12
  export * from './components/checkbox';
12
13
  export * from './components/checkbox-group';
@@ -26,6 +27,7 @@ export * from './components/modal';
26
27
  export * from './components/page-header';
27
28
  export * from './components/pill';
28
29
  export * from './components/popover';
30
+ export * from './components/progress-bar';
29
31
  export * from './components/radio';
30
32
  export * from './components/radio-group';
31
33
  export * from './components/scoped-notification';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncino/web-components",
3
3
  "author": "nCino",
4
- "version": "5.0.0-preview.9",
4
+ "version": "5.0.1-preview.1",
5
5
  "license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@ncino/web-components",
4
- "version": "5.0.0-preview.8",
4
+ "version": "5.0.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1758,16 +1758,151 @@
1758
1758
  }
1759
1759
  },
1760
1760
  {
1761
- "name": "ngc-checkbox",
1762
- "description": "\n---\n\n\n### **Events:**\n - **change**",
1761
+ "name": "ngc-input-text",
1762
+ "description": "\n---\n\n\n### **Events:**\n - **change**\n- **input**",
1763
1763
  "doc-url": "",
1764
1764
  "attributes": [
1765
+ { "name": "for", "value": { "type": "string", "default": "''" } },
1766
+ { "name": "min", "value": { "type": "string" } },
1767
+ { "name": "max", "value": { "type": "string" } },
1768
+ { "name": "step", "value": { "type": "number" } },
1769
+ { "name": "pattern", "value": { "type": "string" } },
1765
1770
  { "name": "id", "value": { "type": "string", "default": "''" } },
1771
+ {
1772
+ "name": "required",
1773
+ "value": { "type": "boolean", "default": "false" }
1774
+ },
1775
+ {
1776
+ "name": "disabled",
1777
+ "value": { "type": "boolean", "default": "false" }
1778
+ },
1779
+ {
1780
+ "name": "readonly",
1781
+ "value": { "type": "boolean", "default": "false" }
1782
+ },
1783
+ { "name": "label", "value": { "type": "string", "default": "''" } },
1784
+ {
1785
+ "name": "aria-description",
1786
+ "value": { "type": "string | null", "default": "null" }
1787
+ },
1788
+ {
1789
+ "name": "aria-labelled-by-elements",
1790
+ "value": {
1791
+ "type": "Element[] | undefined",
1792
+ "default": "undefined"
1793
+ }
1794
+ },
1795
+ {
1796
+ "name": "placeholder",
1797
+ "value": { "type": "string", "default": "''" }
1798
+ },
1799
+ {
1800
+ "name": "value",
1801
+ "value": { "type": "string | number | undefined | null" }
1802
+ },
1803
+ {
1804
+ "name": "error-text",
1805
+ "value": { "type": "string", "default": "''" }
1806
+ },
1807
+ {
1808
+ "name": "help-text",
1809
+ "value": { "type": "string", "default": "''" }
1810
+ },
1811
+ {
1812
+ "name": "type",
1813
+ "value": { "type": "string", "default": "'text'" }
1814
+ },
1815
+ {
1816
+ "name": "start-icon",
1817
+ "value": { "type": "string", "default": "''" }
1818
+ },
1819
+ {
1820
+ "name": "end-icon",
1821
+ "value": { "type": "string", "default": "''" }
1822
+ },
1823
+ {
1824
+ "name": "max-length",
1825
+ "value": { "type": "string", "default": "undefined" }
1826
+ },
1827
+ {
1828
+ "name": "icon-as-label",
1829
+ "value": { "type": "boolean", "default": "false" }
1830
+ },
1831
+ {
1832
+ "name": "data-testid",
1833
+ "value": { "type": "string | undefined", "default": "undefined" }
1834
+ }
1835
+ ],
1836
+ "events": [
1837
+ { "name": "change", "type": "CustomEvent" },
1838
+ { "name": "input", "type": "CustomEvent" }
1839
+ ],
1840
+ "js": {
1841
+ "properties": [
1842
+ { "name": "inputRef", "type": "Ref<HTMLInputElement>" },
1843
+ { "name": "controlRef", "type": "Ref<HTMLDivElement>" },
1844
+ { "name": "for", "type": "string" },
1845
+ { "name": "min", "type": "string" },
1846
+ { "name": "max", "type": "string" },
1847
+ { "name": "step", "type": "number" },
1848
+ { "name": "pattern", "type": "string" },
1849
+ { "name": "displayedErrorText" },
1850
+ { "name": "isAriaInvalid" },
1851
+ { "name": "passwordVisibilityMarkup" },
1852
+ { "name": "errorTextMarkup" },
1853
+ { "name": "shouldHaveStartMarkup" },
1854
+ { "name": "shouldHaveEndMarkup" },
1855
+ { "name": "startIconMarkup" },
1856
+ { "name": "startIconId" },
1857
+ { "name": "endIconMarkup" },
1858
+ { "name": "labelMarkup" },
1859
+ { "name": "labelId" },
1860
+ { "name": "ariaLabelledbyValue" },
1861
+ { "name": "helpTextMarkup" },
1862
+ { "name": "helpTextId" },
1863
+ { "name": "bottomText" },
1864
+ { "name": "errorTextId" },
1865
+ { "name": "ariaDescribedby" },
1866
+ { "name": "controlClasses" },
1867
+ { "name": "id", "type": "string" },
1868
+ { "name": "required", "type": "boolean" },
1869
+ { "name": "disabled", "type": "boolean" },
1870
+ { "name": "readonly", "type": "boolean" },
1871
+ { "name": "label", "type": "string" },
1872
+ { "name": "ariaDescription", "type": "string | null" },
1873
+ {
1874
+ "name": "ariaLabelledByElements",
1875
+ "type": "Element[] | undefined"
1876
+ },
1877
+ { "name": "placeholder", "type": "string" },
1878
+ { "name": "value", "type": "string | number | undefined | null" },
1879
+ { "name": "errorText", "type": "string" },
1880
+ { "name": "helpText", "type": "string" },
1881
+ { "name": "type", "type": "string" },
1882
+ { "name": "startIcon", "type": "string" },
1883
+ { "name": "endIcon", "type": "string" },
1884
+ { "name": "maxLength", "type": "string" },
1885
+ { "name": "iconAsLabel", "type": "boolean" },
1886
+ { "name": "dataTestid", "type": "string | undefined" },
1887
+ { "name": "labelDataTestid" },
1888
+ { "name": "helpTextDataTestid" },
1889
+ { "name": "errorMessageDataTestid" }
1890
+ ],
1891
+ "events": [
1892
+ { "name": "change", "type": "CustomEvent" },
1893
+ { "name": "input", "type": "CustomEvent" }
1894
+ ]
1895
+ }
1896
+ },
1897
+ {
1898
+ "name": "ngc-checkbox",
1899
+ "description": "\n---\n\n\n### **Events:**\n - **change**\n- **input**",
1900
+ "doc-url": "",
1901
+ "attributes": [
1766
1902
  {
1767
1903
  "name": "title-text",
1768
1904
  "value": { "type": "string", "default": "''" }
1769
1905
  },
1770
- { "name": "value", "value": { "type": "string", "default": "''" } },
1771
1906
  {
1772
1907
  "name": "selected",
1773
1908
  "value": { "type": "boolean", "default": "false" }
@@ -1780,12 +1915,74 @@
1780
1915
  "name": "hide-label",
1781
1916
  "value": { "type": "boolean", "default": "false" }
1782
1917
  },
1918
+ {
1919
+ "name": "has-error",
1920
+ "value": { "type": "boolean", "default": "false" }
1921
+ },
1922
+ { "name": "for", "value": { "type": "string", "default": "''" } },
1923
+ { "name": "min", "value": { "type": "string" } },
1924
+ { "name": "max", "value": { "type": "string" } },
1925
+ { "name": "step", "value": { "type": "number" } },
1926
+ { "name": "pattern", "value": { "type": "string" } },
1927
+ { "name": "id", "value": { "type": "string", "default": "''" } },
1928
+ {
1929
+ "name": "required",
1930
+ "value": { "type": "boolean", "default": "false" }
1931
+ },
1783
1932
  {
1784
1933
  "name": "disabled",
1785
1934
  "value": { "type": "boolean", "default": "false" }
1786
1935
  },
1787
1936
  {
1788
- "name": "has-error",
1937
+ "name": "readonly",
1938
+ "value": { "type": "boolean", "default": "false" }
1939
+ },
1940
+ { "name": "label", "value": { "type": "string", "default": "''" } },
1941
+ {
1942
+ "name": "aria-description",
1943
+ "value": { "type": "string | null", "default": "null" }
1944
+ },
1945
+ {
1946
+ "name": "aria-labelled-by-elements",
1947
+ "value": {
1948
+ "type": "Element[] | undefined",
1949
+ "default": "undefined"
1950
+ }
1951
+ },
1952
+ {
1953
+ "name": "placeholder",
1954
+ "value": { "type": "string", "default": "''" }
1955
+ },
1956
+ {
1957
+ "name": "value",
1958
+ "value": { "type": "string | number | undefined | null" }
1959
+ },
1960
+ {
1961
+ "name": "error-text",
1962
+ "value": { "type": "string", "default": "''" }
1963
+ },
1964
+ {
1965
+ "name": "help-text",
1966
+ "value": { "type": "string", "default": "''" }
1967
+ },
1968
+ {
1969
+ "name": "type",
1970
+ "value": { "type": "string", "default": "'text'" }
1971
+ },
1972
+ {
1973
+ "name": "start-icon",
1974
+ "value": { "type": "string", "default": "''" }
1975
+ },
1976
+ {
1977
+ "name": "end-icon",
1978
+ "value": { "type": "string", "default": "''" }
1979
+ },
1980
+ {
1981
+ "name": "max-length",
1982
+ "value": { "type": "string", "default": "undefined" }
1983
+ },
1984
+ {
1985
+ "name": "icon-as-label",
1789
1986
  "value": { "type": "boolean", "default": "false" }
1790
1987
  },
1791
1988
  {
@@ -1793,25 +1990,71 @@
1793
1990
  "value": { "type": "string | undefined", "default": "undefined" }
1794
1991
  }
1795
1992
  ],
1796
- "events": [{ "name": "change", "type": "CustomEvent" }],
1993
+ "events": [
1994
+ { "name": "change", "type": "CustomEvent" },
1995
+ { "name": "input", "type": "CustomEvent" }
1996
+ ],
1797
1997
  "js": {
1798
1998
  "properties": [
1799
- { "name": "id", "type": "string" },
1800
1999
  { "name": "titleText", "type": "string" },
1801
- { "name": "value", "type": "string" },
1802
2000
  { "name": "selected", "type": "boolean" },
1803
2001
  { "name": "indeterminate", "type": "boolean" },
1804
2002
  { "name": "hideLabel", "type": "boolean" },
1805
- { "name": "disabled", "type": "boolean" },
1806
2003
  { "name": "hasError", "type": "boolean" },
1807
- { "name": "inputRef", "type": "Ref<HTMLInputElement>" },
1808
2004
  { "name": "elementId" },
2005
+ { "name": "inputRef", "type": "Ref<HTMLInputElement>" },
2006
+ { "name": "controlRef", "type": "Ref<HTMLDivElement>" },
2007
+ { "name": "for", "type": "string" },
2008
+ { "name": "min", "type": "string" },
2009
+ { "name": "max", "type": "string" },
2010
+ { "name": "step", "type": "number" },
2011
+ { "name": "pattern", "type": "string" },
2012
+ { "name": "displayedErrorText" },
2013
+ { "name": "isAriaInvalid" },
2014
+ { "name": "passwordVisibilityMarkup" },
2015
+ { "name": "errorTextMarkup" },
2016
+ { "name": "shouldHaveStartMarkup" },
2017
+ { "name": "shouldHaveEndMarkup" },
2018
+ { "name": "startIconMarkup" },
2019
+ { "name": "startIconId" },
2020
+ { "name": "endIconMarkup" },
2021
+ { "name": "labelMarkup" },
2022
+ { "name": "labelId" },
2023
+ { "name": "ariaLabelledbyValue" },
2024
+ { "name": "helpTextMarkup" },
2025
+ { "name": "helpTextId" },
2026
+ { "name": "bottomText" },
2027
+ { "name": "errorTextId" },
2028
+ { "name": "ariaDescribedby" },
2029
+ { "name": "controlClasses" },
2030
+ { "name": "id", "type": "string" },
2031
+ { "name": "required", "type": "boolean" },
2032
+ { "name": "disabled", "type": "boolean" },
2033
+ { "name": "readonly", "type": "boolean" },
2034
+ { "name": "label", "type": "string" },
2035
+ { "name": "ariaDescription", "type": "string | null" },
2036
+ {
2037
+ "name": "ariaLabelledByElements",
2038
+ "type": "Element[] | undefined"
2039
+ },
2040
+ { "name": "placeholder", "type": "string" },
2041
+ { "name": "value", "type": "string | number | undefined | null" },
2042
+ { "name": "errorText", "type": "string" },
2043
+ { "name": "helpText", "type": "string" },
2044
+ { "name": "type", "type": "string" },
2045
+ { "name": "startIcon", "type": "string" },
2046
+ { "name": "endIcon", "type": "string" },
2047
+ { "name": "maxLength", "type": "string" },
2048
+ { "name": "iconAsLabel", "type": "boolean" },
1809
2049
  { "name": "dataTestid", "type": "string | undefined" },
1810
2050
  { "name": "labelDataTestid" },
1811
2051
  { "name": "helpTextDataTestid" },
1812
2052
  { "name": "errorMessageDataTestid" }
1813
2053
  ],
1814
- "events": [{ "name": "change", "type": "CustomEvent" }]
2054
+ "events": [
2055
+ { "name": "change", "type": "CustomEvent" },
2056
+ { "name": "input", "type": "CustomEvent" }
2057
+ ]
1815
2058
  }
1816
2059
  },
1817
2060
  {
@@ -2175,143 +2418,6 @@
2175
2418
  "events": []
2176
2419
  }
2177
2420
  },
2178
- {
2179
- "name": "ngc-input-text",
2180
- "description": "\n---\n\n\n### **Events:**\n - **change**\n- **input**",
2181
- "doc-url": "",
2182
- "attributes": [
2183
- { "name": "for", "value": { "type": "string", "default": "''" } },
2184
- { "name": "min", "value": { "type": "string" } },
2185
- { "name": "max", "value": { "type": "string" } },
2186
- { "name": "step", "value": { "type": "number" } },
2187
- { "name": "pattern", "value": { "type": "string" } },
2188
- { "name": "id", "value": { "type": "string", "default": "''" } },
2189
- {
2190
- "name": "required",
2191
- "value": { "type": "boolean", "default": "false" }
2192
- },
2193
- {
2194
- "name": "disabled",
2195
- "value": { "type": "boolean", "default": "false" }
2196
- },
2197
- {
2198
- "name": "readonly",
2199
- "value": { "type": "boolean", "default": "false" }
2200
- },
2201
- { "name": "label", "value": { "type": "string", "default": "''" } },
2202
- {
2203
- "name": "aria-description",
2204
- "value": { "type": "string | null", "default": "null" }
2205
- },
2206
- {
2207
- "name": "aria-labelled-by-elements",
2208
- "value": {
2209
- "type": "Element[] | undefined",
2210
- "default": "undefined"
2211
- }
2212
- },
2213
- {
2214
- "name": "placeholder",
2215
- "value": { "type": "string", "default": "''" }
2216
- },
2217
- {
2218
- "name": "value",
2219
- "value": { "type": "string | number | undefined | null" }
2220
- },
2221
- {
2222
- "name": "error-text",
2223
- "value": { "type": "string", "default": "''" }
2224
- },
2225
- {
2226
- "name": "help-text",
2227
- "value": { "type": "string", "default": "''" }
2228
- },
2229
- {
2230
- "name": "type",
2231
- "value": { "type": "string", "default": "'text'" }
2232
- },
2233
- {
2234
- "name": "start-icon",
2235
- "value": { "type": "string", "default": "''" }
2236
- },
2237
- {
2238
- "name": "end-icon",
2239
- "value": { "type": "string", "default": "''" }
2240
- },
2241
- {
2242
- "name": "max-length",
2243
- "value": { "type": "string", "default": "undefined" }
2244
- },
2245
- {
2246
- "name": "icon-as-label",
2247
- "value": { "type": "boolean", "default": "false" }
2248
- },
2249
- {
2250
- "name": "data-testid",
2251
- "value": { "type": "string | undefined", "default": "undefined" }
2252
- }
2253
- ],
2254
- "events": [
2255
- { "name": "change", "type": "CustomEvent" },
2256
- { "name": "input", "type": "CustomEvent" }
2257
- ],
2258
- "js": {
2259
- "properties": [
2260
- { "name": "inputRef", "type": "Ref<HTMLInputElement>" },
2261
- { "name": "controlRef", "type": "Ref<HTMLDivElement>" },
2262
- { "name": "for", "type": "string" },
2263
- { "name": "min", "type": "string" },
2264
- { "name": "max", "type": "string" },
2265
- { "name": "step", "type": "number" },
2266
- { "name": "pattern", "type": "string" },
2267
- { "name": "displayedErrorText" },
2268
- { "name": "isAriaInvalid" },
2269
- { "name": "passwordVisibilityMarkup" },
2270
- { "name": "errorTextMarkup" },
2271
- { "name": "shouldHaveStartMarkup" },
2272
- { "name": "shouldHaveEndMarkup" },
2273
- { "name": "startIconMarkup" },
2274
- { "name": "startIconId" },
2275
- { "name": "endIconMarkup" },
2276
- { "name": "labelMarkup" },
2277
- { "name": "labelId" },
2278
- { "name": "ariaLabelledbyValue" },
2279
- { "name": "helpTextMarkup" },
2280
- { "name": "helpTextId" },
2281
- { "name": "bottomText" },
2282
- { "name": "errorTextId" },
2283
- { "name": "ariaDescribedby" },
2284
- { "name": "controlClasses" },
2285
- { "name": "id", "type": "string" },
2286
- { "name": "required", "type": "boolean" },
2287
- { "name": "disabled", "type": "boolean" },
2288
- { "name": "readonly", "type": "boolean" },
2289
- { "name": "label", "type": "string" },
2290
- { "name": "ariaDescription", "type": "string | null" },
2291
- {
2292
- "name": "ariaLabelledByElements",
2293
- "type": "Element[] | undefined"
2294
- },
2295
- { "name": "placeholder", "type": "string" },
2296
- { "name": "value", "type": "string | number | undefined | null" },
2297
- { "name": "errorText", "type": "string" },
2298
- { "name": "helpText", "type": "string" },
2299
- { "name": "type", "type": "string" },
2300
- { "name": "startIcon", "type": "string" },
2301
- { "name": "endIcon", "type": "string" },
2302
- { "name": "maxLength", "type": "string" },
2303
- { "name": "iconAsLabel", "type": "boolean" },
2304
- { "name": "dataTestid", "type": "string | undefined" },
2305
- { "name": "labelDataTestid" },
2306
- { "name": "helpTextDataTestid" },
2307
- { "name": "errorMessageDataTestid" }
2308
- ],
2309
- "events": [
2310
- { "name": "change", "type": "CustomEvent" },
2311
- { "name": "input", "type": "CustomEvent" }
2312
- ]
2313
- }
2314
- },
2315
2421
  {
2316
2422
  "name": "ngc-input-currency",
2317
2423
  "description": "\n---\n\n\n### **Events:**\n - **change**\n- **input**",
@@ -5312,6 +5418,82 @@
5312
5418
  "events": []
5313
5419
  }
5314
5420
  },
5421
+ {
5422
+ "name": "ngc-table-bulk-controls",
5423
+ "description": "\n---\n\n\n### **Events:**\n - **selectall**\n\n### **Methods:**\n - **removeAttributesFromHost(name: _string_, oldValue: _string_, newValue: _string_)** - Removes an attribute from the host element and stores its original value in the map.\nAlso updates the corresponding `dataset` property for the attribute.\n- **restoreAttributesToHost()** - Restores all previously removed attributes to the host element.\nClears the map of removed attributes after restoration.",
5424
+ "doc-url": "",
5425
+ "attributes": [
5426
+ {
5427
+ "name": "visible",
5428
+ "description": "Whether the bulk controls should be visible",
5429
+ "value": { "type": "boolean", "default": "false" }
5430
+ },
5431
+ {
5432
+ "name": "selectedRows",
5433
+ "description": "The number of selected rows",
5434
+ "value": { "type": "number", "default": "0" }
5435
+ },
5436
+ {
5437
+ "name": "totalRows",
5438
+ "description": "The total number of rows",
5439
+ "value": { "type": "number", "default": "0" }
5440
+ },
5441
+ {
5442
+ "name": "allSelected",
5443
+ "description": "Whether all rows are selected",
5444
+ "value": { "type": "boolean", "default": "false" }
5445
+ },
5446
+ {
5447
+ "name": "delegatesARIA",
5448
+ "description": "A boolean property that determines whether ARIA-related attributes\n(e.g., `aria-label`, `aria-labelledby`, `role`, etc.) are managed\nby the host element or delegated to the component.\n\n- When `true` (default), ARIA attributes are removed from the host\n and managed internally by the component.\n- When `false`, previously removed ARIA attributes are restored\n to the host element.",
5449
+ "value": { "type": "boolean", "default": "true" }
5450
+ },
5451
+ {
5452
+ "name": "data-testid",
5453
+ "value": { "type": "string | undefined", "default": "undefined" }
5454
+ }
5455
+ ],
5456
+ "events": [{ "name": "selectall", "type": "CustomEvent" }],
5457
+ "js": {
5458
+ "properties": [
5459
+ {
5460
+ "name": "visible",
5461
+ "description": "Whether the bulk controls should be visible",
5462
+ "type": "boolean"
5463
+ },
5464
+ {
5465
+ "name": "selectedRows",
5466
+ "description": "The number of selected rows",
5467
+ "type": "number"
5468
+ },
5469
+ {
5470
+ "name": "totalRows",
5471
+ "description": "The total number of rows",
5472
+ "type": "number"
5473
+ },
5474
+ {
5475
+ "name": "allSelected",
5476
+ "description": "Whether all rows are selected",
5477
+ "type": "boolean"
5478
+ },
5479
+ {
5480
+ "name": "shouldApplyAttributeDeletion",
5481
+ "description": "Determines whether attribute deletion should be applied.\nThis is controlled by the `delegatesARIA` property.",
5482
+ "type": "boolean"
5483
+ },
5484
+ {
5485
+ "name": "delegatesARIA",
5486
+ "description": "A boolean property that determines whether ARIA-related attributes\n(e.g., `aria-label`, `aria-labelledby`, `role`, etc.) are managed\nby the host element or delegated to the component.\n\n- When `true` (default), ARIA attributes are removed from the host\n and managed internally by the component.\n- When `false`, previously removed ARIA attributes are restored\n to the host element.",
5487
+ "type": "boolean"
5488
+ },
5489
+ { "name": "dataTestid", "type": "string | undefined" },
5490
+ { "name": "labelDataTestid" },
5491
+ { "name": "helpTextDataTestid" },
5492
+ { "name": "errorMessageDataTestid" }
5493
+ ],
5494
+ "events": [{ "name": "selectall", "type": "CustomEvent" }]
5495
+ }
5496
+ },
5315
5497
  {
5316
5498
  "name": "ngc-table",
5317
5499
  "description": "\n---\n\n\n### **Events:**\n - **selectall**\n- **rowselected**",
@@ -5368,7 +5550,11 @@
5368
5550
  { "name": "includePagination", "type": "boolean" },
5369
5551
  { "name": "selectedRows", "type": "RowData[]" },
5370
5552
  { "name": "_currentPage", "type": "number" },
5553
+ { "name": "justSelectedRow", "type": "RowData | null" },
5554
+ { "name": "showJumpLink", "type": "boolean" },
5371
5555
  { "name": "tableElevatedClass" },
5556
+ { "name": "showBulkControls" },
5557
+ { "name": "handleKeyDown" },
5372
5558
  { "name": "displayedRowData" },
5373
5559
  { "name": "columns", "type": "ColumnDefinition[]" },
5374
5560
  { "name": "data", "type": "RowData[]" },