@ncino/web-components 6.0.0-preview.4 → 6.0.0-preview.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_slds/icons/standard-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/standard-sprite/svg/symbols.svg +1 -1
- package/dist/_slds/icons/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/svg/symbols.svg +1 -1
- package/dist/_slds/icons/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/symbols.svg +1 -1
- package/dist/_slds/icons/utility-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/utility-sprite/svg/symbols.svg +1 -1
- package/dist/components/button/gator/button.gator.js +4 -3
- package/dist/components/input/base/input-base.js +1 -1
- package/dist/components/input/gator/input-text/input-text.gator.js +10 -9
- package/dist/types/components/button/gator/button.gator.d.ts +1 -0
- package/dist/types/components/input/base/input-base.d.ts +5 -0
- package/dist/types/components/input/gator/input-text/input-text.gator.d.ts +4 -0
- package/dist/utils/vitest-utils.js +1 -1
- package/package.json +1 -1
- package/web-types.json +45 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{NjcButton as c}from"../button.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as e,nothing as n}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 g}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as d}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import"../../loading-spinner/gator/loading-spinner.gator.js";import h from"../../../packages/web-components/src/components/button/gator/button.gator.scss.js";import b from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import f from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{ifDefined as k}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.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/send.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{unsafeCSS as l}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var $=Object.defineProperty,v=Object.getOwnPropertyDescriptor,u=(t,i,o,r)=>{for(var p=r>1?void 0:r?v(i,o):i,a=t.length-1,s;a>=0;a--)(s=t[a])&&(p=(r?s(i,o,p):s(p))||p);return r&&p&&$(i,o,p),p};let m=class extends c{render(){return this.skeleton?this.skeletonMarkup:e`
|
|
1
|
+
import{NjcButton as d}from"../button.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as e,nothing as l}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 h}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"../../loading-spinner/gator/loading-spinner.gator.js";import g from"../../../packages/web-components/src/components/button/gator/button.gator.scss.js";import b from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import f from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{ifDefined as k}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.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/send.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{unsafeCSS as u}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var y=Object.defineProperty,$=Object.getOwnPropertyDescriptor,s=(t,i,o,r)=>{for(var p=r>1?void 0:r?$(i,o):i,a=t.length-1,n;a>=0;a--)(n=t[a])&&(p=(r?n(i,o,p):n(p))||p);return r&&p&&y(i,o,p),p};let m=class extends d{constructor(){super(...arguments),this.type="submit"}render(){return this.skeleton?this.skeletonMarkup:e`
|
|
2
2
|
<button
|
|
3
3
|
aria-label=${this.buttonAriaLabel}
|
|
4
4
|
data-testid=${k(this.dataTestid?`${this.dataTestid}-button`:void 0)}
|
|
@@ -6,6 +6,7 @@ import{NjcButton as c}from"../button.js";import"../../../node_modules/.pnpm/@lit
|
|
|
6
6
|
.disabled="${this.disabled}"
|
|
7
7
|
aria-disabled="${this.disabled||this.loading}"
|
|
8
8
|
@click="${this.handleClick}"
|
|
9
|
+
type="${this.type}"
|
|
9
10
|
>
|
|
10
11
|
${this.loading?this.loadingMarkup:null}
|
|
11
12
|
<div class="gator-button-content">
|
|
@@ -14,7 +15,7 @@ import{NjcButton as c}from"../button.js";import"../../../node_modules/.pnpm/@lit
|
|
|
14
15
|
<slot name="end-icon">${this.endIconMarkup}</slot>
|
|
15
16
|
</div>
|
|
16
17
|
</button>
|
|
17
|
-
`}get startIconMarkup(){return this.startIcon?e`<ngc-icon name="${this.startIcon}"></ngc-icon>`:
|
|
18
|
+
`}get startIconMarkup(){return this.startIcon?e`<ngc-icon name="${this.startIcon}"></ngc-icon>`:l}get endIconMarkup(){return this.endIcon?e`<ngc-icon name="${this.endIcon}"></ngc-icon>`:l}get buttonAriaLabel(){return this.loading?this.loadingAriaLabel:this.dataset.ariaLabel?this.dataset.ariaLabel:this.ariaLabel?this.ariaLabel:l}get variantClass(){return this.variant?`gator-button_${this.variant}`:null}get sizeClass(){return this.size?`gator-button_${this.size}`:null}get loadingClass(){return this.loading?"gator-button_loading":null}get skeletonMarkup(){let t,i;const o=this.variant==="base";switch(this.size){case"small":t=o?44:67,i=28;break;case"medium":t=o?50:81,i=36;break;case"xlarge":t=o?57:137,i=56;break;case"large":default:t=o?57:98,i=48;break}const r=getComputedStyle(this);return r.getPropertyValue("--ngc-button-width")&&(t=Number(r.getPropertyValue("--ngc-button-width").trim())),r.getPropertyValue("--ngc-button-height")&&(i=Number(r.getPropertyValue("--ngc-button-height").trim())),e`
|
|
18
19
|
<ngc-skeleton-loader
|
|
19
20
|
class="gator-button gator-button-skeleton"
|
|
20
21
|
width="${t}"
|
|
@@ -26,4 +27,4 @@ import{NjcButton as c}from"../button.js";import"../../../node_modules/.pnpm/@lit
|
|
|
26
27
|
<div class="gator-button-loader">
|
|
27
28
|
<ngc-loading-spinner .size="${t}"></ngc-loading-spinner>
|
|
28
29
|
</div>
|
|
29
|
-
`}handleClick(t){t.preventDefault(),t.stopPropagation(),!(this.disabled||this.loading||this.skeleton)&&this.dispatchEvent(new CustomEvent("click",{bubbles:!0,composed:!0}))}};m.styles=[
|
|
30
|
+
`}handleClick(t){if(t.preventDefault(),t.stopPropagation(),!(this.disabled||this.loading||this.skeleton)){if(this.type==="submit"){const i=this.closest("form");i&&(i.reportValidity(),i.checkValidity()&&i.requestSubmit())}this.dispatchEvent(new CustomEvent("click",{bubbles:!0,composed:!0}))}}};m.styles=[u(g),u(b),u(f)];m.shadowRootOptions={...d.shadowRootOptions,delegatesFocus:!0};s([c({type:String,attribute:"start-icon"})],m.prototype,"startIcon",2);s([c({type:String,attribute:"end-icon"})],m.prototype,"endIcon",2);s([c({attribute:"type"})],m.prototype,"type",2);m=s([h("ngc-button")],m);export{m as NgcButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{property as
|
|
1
|
+
import{property as e}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{TestableLitElement as h}from"../../../utils/components/testable-lit-element/testable-lit-element.js";var y=Object.defineProperty,r=(p,a,s,d)=>{for(var o=void 0,i=p.length-1,n;i>=0;i--)(n=p[i])&&(o=n(a,s,o)||o);return o&&y(a,s,o),o};const l=class l extends h{constructor(){super(),this.form=null,this.id="",this.required=!1,this.disabled=!1,this.readonly=!1,this.label="",this.ariaDescription=null,this.ariaLabelledByElements=void 0,this.placeholder="",this.errorText="",this.helpText="",this.type="text",this.startIcon="",this.endIcon="",this.maxLength=void 0,this.iconAsLabel=!1,this.internals=this.attachInternals()}formAssociatedCallback(a){this.form=a}};l.formAssociated=!0;let t=l;r([e()],t.prototype,"id");r([e({type:Boolean})],t.prototype,"required");r([e({type:Boolean})],t.prototype,"disabled");r([e({type:Boolean})],t.prototype,"readonly");r([e()],t.prototype,"label");r([e({attribute:"aria-description"})],t.prototype,"ariaDescription");r([e({type:Array,attribute:"aria-labelled-by-elements"})],t.prototype,"ariaLabelledByElements");r([e()],t.prototype,"placeholder");r([e()],t.prototype,"value");r([e({attribute:"error-text"})],t.prototype,"errorText");r([e({attribute:"help-text"})],t.prototype,"helpText");r([e()],t.prototype,"type");r([e({attribute:"start-icon"})],t.prototype,"startIcon");r([e({attribute:"end-icon"})],t.prototype,"endIcon");r([e({attribute:"max-length"})],t.prototype,"maxLength");r([e({type:Boolean,attribute:"icon-as-label"})],t.prototype,"iconAsLabel");export{t as InputBase};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{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"../input-label/input-label.gator.js";import"../help-text/help-text.gator.js";import{customElement as f}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as h}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as a}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import{createRef as v,ref as c}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{NgcInputBase as m}from"../../base/input-base.gator.js";import{ifDefined as u}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import{live as y}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/live.js";import{classMap as _}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js";import{msg as $}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";var b=Object.defineProperty,g=Object.getOwnPropertyDescriptor,s=(t,e,r,l)=>{for(var n=l>1?void 0:l?g(e,r):e,d=t.length-1,p;d>=0;d--)(p=t[d])&&(n=(l?p(e,r,n):p(n))||n);return l&&n&&b(e,r,n),n};let i=class extends m{constructor(){super(...arguments),this.inputRef=v(),this.controlRef=v(),this.for="",this._inputMode="text",this._showErrors=!1,this._onInvalid=t=>{this._showErrors=!0,this.requestUpdate()}}render(){return o`
|
|
2
2
|
<div class="gator-form-element">
|
|
3
3
|
<slot name="label">
|
|
4
4
|
${this.label&&!this.iconAsLabel?this.labelMarkup:null}
|
|
5
5
|
</slot>
|
|
6
|
-
<div ${
|
|
6
|
+
<div ${c(this.controlRef)} class="${_(this.controlClasses)}">
|
|
7
7
|
<div class="gator-input-container">
|
|
8
|
-
${this.shouldHaveStartMarkup?
|
|
8
|
+
${this.shouldHaveStartMarkup?o`
|
|
9
9
|
<div class="gator-input-start">
|
|
10
10
|
${this.startIconMarkup||this._startIconAsText}
|
|
11
11
|
</div>`:null}
|
|
12
12
|
<input
|
|
13
|
-
${
|
|
13
|
+
${c(this.inputRef)}
|
|
14
14
|
type="${this.type}"
|
|
15
15
|
id="${this.id}-input"
|
|
16
16
|
data-testid=${u(this.dataTestid)}-input
|
|
17
|
-
.placeholder="${
|
|
17
|
+
.placeholder="${y(this._placeholder)}"
|
|
18
18
|
.required="${this.required}"
|
|
19
19
|
.disabled="${this.disabled}"
|
|
20
20
|
?readonly="${this.readonly}"
|
|
@@ -23,7 +23,7 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
|
|
|
23
23
|
aria-required="${this.required}"
|
|
24
24
|
aria-labelledby="${this.ariaLabelledbyValue}"
|
|
25
25
|
aria-describedby="${this.ariaDescribedby}"
|
|
26
|
-
.value="${
|
|
26
|
+
.value="${y(this._value)}"
|
|
27
27
|
maxlength="${u(this._maxLength)}"
|
|
28
28
|
.min="${this.min}"
|
|
29
29
|
.max="${this.max}"
|
|
@@ -41,7 +41,7 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
|
|
|
41
41
|
@wheel="${this.handleWheel}"
|
|
42
42
|
/>
|
|
43
43
|
<slot name="end-slot">
|
|
44
|
-
${this.shouldHaveEndMarkup?
|
|
44
|
+
${this.shouldHaveEndMarkup?o`
|
|
45
45
|
<div class="gator-input-end">
|
|
46
46
|
${this.passwordVisibilityMarkup}
|
|
47
47
|
${this.endIconMarkup}
|
|
@@ -52,7 +52,8 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
|
|
|
52
52
|
|
|
53
53
|
${this.bottomText}
|
|
54
54
|
</div>
|
|
55
|
-
`}
|
|
55
|
+
`}updateRequiredValidity(){const t=this.inputRef.value;this.required&&(!t?.value||t.value==="")?(this._nativeInputError=t?.validationMessage||$("This field is required"),this.internals.setValidity({valueMissing:!0},this._nativeInputError,t??void 0)):(this._nativeInputError="",this.internals.setValidity({}))}updated(t){t.has("disabled")&&(this.disabled?this.internals.states.add("disabled"):this.internals.states.delete("disabled")),t.has("readonly")&&(this.readonly?this.internals.states.add("readonly"):this.internals.states.delete("readonly")),t.has("value")&&(this._value=this.value),t.has("placeholder")&&(this._placeholder=this.placeholder),t.has("ariaLabelledByElements")&&this.ariaLabelledByElements&&(this.inputRef.value.ariaLabelledByElements=this.ariaLabelledByElements),(t.has("required")||t.has("value"))&&this.updateRequiredValidity()}get displayedErrorText(){if(!(!this._showErrors&&!this.errorText))return this.errorText||this._internalValidationError||this._nativeInputError}get isAriaInvalid(){return this.displayedErrorText?"true":"false"}get passwordVisibilityMarkup(){return this.endIconMarkup||this.type!=="password"?null:o`
|
|
56
|
+
<ngc-icon name="eye-crossed" @click="${this.togglePasswordVisibility}"></ngc-icon>`}connectedCallback(){super.connectedCallback(),this._value=this.value,this._maxLength=this.maxLength,this._placeholder=this.placeholder,this.updateRequiredValidity(),this.addEventListener("invalid",this._onInvalid,!0)}handleNativeInputValidation(t){t.preventDefault(),t.stopPropagation();const e=this.inputRef.value;if(!e)return;this._showErrors=!0;const r=e.validity,l=e.validationMessage;r.valid?this._nativeInputError="":this._nativeInputError=l}handleWheel(){if(this.type=="number"){this.inputRef.value?.blur();return}}handleInputEvent(t){t.preventDefault(),t.stopPropagation();const e=t.target;this.internals.setFormValue(e.value),this._value=e.value,this._showErrors=!0,this.syncValidity(),this.updateRequiredValidity();const r=new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:e.value}});this.dispatchEvent(r)}handleChange(t){t.preventDefault(),t.stopPropagation();const e=t.target;this._showErrors=!0;const r=new CustomEvent("change",{composed:!0,bubbles:!0,detail:{value:e.value}});this._value=e.value,this.dispatchEvent(r)}togglePasswordVisibility(){const t=this.inputRef.value;t&&(t.type=t.type==="password"?"text":"password")}syncValidity(){const t=this.inputRef.value;if(!t)return;if(t.checkValidity())this._nativeInputError="",this.internals.setValidity({});else{const r=t.validationMessage;this._nativeInputError=r,this.internals.setValidity({customError:!0},r,t)}}handleInputFocusOut(){super.handleInputFocusOut(),this.inputRef.value?.checkValidity()&&!this.readonly&&(this._nativeInputError=""),this._showErrors=!0,this.syncValidity()}get errorTextMarkup(){return this.displayedErrorText?o`
|
|
56
57
|
<ngc-help-text
|
|
57
58
|
icon
|
|
58
59
|
error
|
|
@@ -61,4 +62,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
|
|
|
61
62
|
>
|
|
62
63
|
${this.displayedErrorText}
|
|
63
64
|
</ngc-help-text>
|
|
64
|
-
`:null}};
|
|
65
|
+
`:null}};i.shadowRootOptions={...m.shadowRootOptions,delegatesFocus:!0};s([h()],i.prototype,"for",2);s([h({type:Number})],i.prototype,"min",2);s([h({type:Number})],i.prototype,"max",2);s([h({type:Number})],i.prototype,"step",2);s([h({type:String})],i.prototype,"pattern",2);s([a()],i.prototype,"_value",2);s([a()],i.prototype,"_inputMode",2);s([a()],i.prototype,"_placeholder",2);s([a()],i.prototype,"_maxLength",2);s([a()],i.prototype,"_errorText",2);s([a()],i.prototype,"_internalValidationError",2);s([a()],i.prototype,"_nativeInputError",2);s([a()],i.prototype,"_showErrors",2);i=s([f("ngc-input-text")],i);export{i as NgcInputText};
|
|
@@ -6,6 +6,7 @@ import { nothing } from 'lit';
|
|
|
6
6
|
export declare class NgcButton extends NjcButton {
|
|
7
7
|
startIcon: string | undefined;
|
|
8
8
|
endIcon: string | undefined;
|
|
9
|
+
type: 'submit' | 'button' | 'reset';
|
|
9
10
|
static styles: import('lit').CSSResult[];
|
|
10
11
|
static shadowRootOptions: {
|
|
11
12
|
delegatesFocus: boolean;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { TestableLitElement } from '../../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
2
2
|
export declare class InputBase extends TestableLitElement {
|
|
3
|
+
static formAssociated: boolean;
|
|
4
|
+
internals: ElementInternals;
|
|
5
|
+
form: HTMLFormElement | null;
|
|
6
|
+
constructor();
|
|
7
|
+
formAssociatedCallback(form: HTMLFormElement | null): void;
|
|
3
8
|
/**
|
|
4
9
|
@property id - The id of the rendered input
|
|
5
10
|
@type string
|
|
@@ -39,17 +39,21 @@ export declare class NgcInputText extends NgcInputBase {
|
|
|
39
39
|
protected _errorText: string | undefined;
|
|
40
40
|
protected _internalValidationError: string | undefined;
|
|
41
41
|
protected _nativeInputError: string | undefined;
|
|
42
|
+
private _showErrors;
|
|
42
43
|
render(): import('lit').TemplateResult<1>;
|
|
44
|
+
private updateRequiredValidity;
|
|
43
45
|
protected updated(changedProperties: Map<string, string> | PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
44
46
|
get displayedErrorText(): string | undefined;
|
|
45
47
|
get isAriaInvalid(): "true" | "false";
|
|
46
48
|
get passwordVisibilityMarkup(): import('lit').TemplateResult<1> | null;
|
|
47
49
|
connectedCallback(): void;
|
|
50
|
+
private _onInvalid;
|
|
48
51
|
handleNativeInputValidation(e: Event): void;
|
|
49
52
|
handleWheel(): void;
|
|
50
53
|
handleInputEvent(e: Event): void;
|
|
51
54
|
handleChange(e: Event): void;
|
|
52
55
|
togglePasswordVisibility(): void;
|
|
56
|
+
private syncValidity;
|
|
53
57
|
handleInputFocusOut(): void;
|
|
54
58
|
get errorTextMarkup(): import('lit').TemplateResult<1> | null;
|
|
55
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
async function
|
|
1
|
+
async function r(e){document.body.innerHTML=e,await new Promise(t=>setTimeout(t,0))}function s(e){return document.body.querySelector(e)}function u(e,t){return e.querySelector(t)}function d(e,t){return e.querySelectorAll(t)}function a(e){return document.body.querySelectorAll(e)}function c(e,t){return e?.shadowRoot?.querySelectorAll(t)}function m(e,t){return e?.shadowRoot?.querySelector(t)}function i(e,t){return e?.shadowRoot?.querySelector(`[data-testid="${t}"]`)}function f(e,t){return e?.shadowRoot?.querySelector(t)}function g(e,t){return e?.shadowRoot?.querySelectorAll(t)}function S(e){const t=e?.shadowRoot?.querySelectorAll("slot"),o=Array.from(t).find(l=>l.name==="")?.assignedNodes({flatten:!0}).filter(l=>l.textContent?.trim()!=="");return o&&o.length>0?o[0].textContent:null}function E(e,t){const n=e?.shadowRoot?.querySelector(`slot[name="${t}"]`);return(n?.assignedNodes().length?n?.assignedNodes({flatten:!0})[0]:n?.assignedElements({flatten:!0})[0])?.textContent}function y(e){return e?.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})}function h(e,t){return e?.shadowRoot?.querySelector(`slot[name=${t}]`)?.assignedElements({flatten:!0})}function w(e=0){return new Promise(t=>setTimeout(t,e))}function R(e){const t=/<!--\?lit\$[^\$]*\$-->/g;return e.replace(t,"").replace(/\s+/g," ").trim()}export{r as addTestableElement,R as cleanInnerHTML,w as flushPromises,s as getElement,u as getElementInsideElement,a as getElements,d as getElementsInsideElement,E as getNamedSlotTextContent,h as getNamedSlottedElements,f as getShadowRootElement,i as getShadowRootElementByDataTestId,g as getShadowRootElements,m as getShadowRootHTMLElement,c as getShadowRootHTMLElements,S as getSlotTextContent,y as getSlottedElements};
|
package/package.json
CHANGED