UNPKG

digitalmarketplace-frontend

Version:

Digital Marketplace Frontend contains assets and components used in Digital Marketplace projects

1 lines 1.05 kB
{"version":3,"file":"select-country-from-form.mjs","sources":["../../../../src/digitalmarketplace/components/select-country-from-form/select-country-from-form.ts"],"sourcesContent":["import accessibleAutocomplete from 'accessible-autocomplete'\nimport { DigitalMarketplaceFrontendComponent } from '../../digitalmarketplace-frontend-component'\n\nclass SelectCountryFromForm implements DigitalMarketplaceFrontendComponent {\n static moduleName = 'dm-select-country-from-form'\n\n $module: JQuery<HTMLElement>\n\n constructor ($module: JQuery<HTMLElement>) {\n this.$module = $module\n }\n\n init () {\n accessibleAutocomplete.enhanceSelectElement({\n selectElement: this.$module.get(0)\n })\n }\n}\n\nexport { SelectCountryFromForm }\n"],"names":[],"mappings":";;AAGA,MAAM,qBAAqB,CAAA;AACzB,IAAA,OAAO,UAAU,GAAG,6BAA6B;AAEjD,IAAA,OAAO;AAEP,IAAA,WAAA,CAAa,OAA4B,EAAA;AACvC,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO;IACxB;IAEA,IAAI,GAAA;QACF,sBAAsB,CAAC,oBAAoB,CAAC;YAC1C,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAClC,SAAA,CAAC;IACJ;;;;;"}