@oslokommune/punkt-elements 17.0.9 → 17.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/dist/{accordion-CbXDxOho.cjs → accordion-B3GBlvUC.cjs} +2 -2
- package/dist/{accordion-DEUHQ4JD.js → accordion-BeLvLPrB.js} +12 -11
- package/dist/{alert-CkUnbPdA.cjs → alert-Cs4Rmq_J.cjs} +1 -1
- package/dist/{alert-CbtVGrHD.js → alert-DKK_Tb9J.js} +5 -5
- package/dist/{async-directive-Cw_7VW_-.js → async-directive-BPf6K-V2.js} +9 -6
- package/dist/async-directive-Da7TJpnq.cjs +1 -0
- package/dist/{backlink-DDGlLzk9.cjs → backlink-CMmrKTe4.cjs} +1 -1
- package/dist/{backlink-wMNLuQ0X.js → backlink-D1y26pj3.js} +3 -3
- package/dist/base-elements/input-element.d.ts +9 -4
- package/dist/booleanish-BF8l4scU.cjs +1 -0
- package/dist/{booleanish-MfutDT_4.js → booleanish-OQJTYSrw.js} +8 -1
- package/dist/{breadcrumbs-D3tfWqvC.cjs → breadcrumbs-B6JGhJgC.cjs} +1 -1
- package/dist/{breadcrumbs-CVTLNNsL.js → breadcrumbs-CcTQ3Grm.js} +2 -2
- package/dist/{button-Cod17rKo.js → button-2-OSPJkj.js} +10 -10
- package/dist/{button-gvDXtBMC.cjs → button-CE97NQIk.cjs} +2 -2
- package/dist/{calendar-BVXW8DqC.cjs → calendar-kn4SrtJy.cjs} +1 -1
- package/dist/{calendar-CjC4qlh6.js → calendar-pOW3R5Pw.js} +4 -4
- package/dist/{card-sydjK3Bb.cjs → card-CETDFkxR.cjs} +3 -3
- package/dist/{card-sDOe54um.js → card-zQ0eKRMV.js} +9 -8
- package/dist/{checkbox-DJDphhqz.js → checkbox-CH7NpINF.js} +12 -12
- package/dist/{checkbox-8uxbeU30.cjs → checkbox-CQNr_sEg.cjs} +8 -8
- package/dist/{class-map-CCZN5uS3.cjs → class-map-BeimMvPv.cjs} +1 -1
- package/dist/{class-map-CAQCRB1W.js → class-map-CnWCnBSX.js} +2 -2
- package/dist/combobox-Bvg0UO9w.cjs +139 -0
- package/dist/{combobox-CzZIf5hd.js → combobox-CRdYYlxu.js} +68 -37
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordionitem.d.ts +1 -1
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/backlink/backlink.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/card/card.d.ts +9 -9
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/consent/consent.d.ts +1 -1
- package/dist/components/datepicker/date-tags.d.ts +1 -1
- package/dist/components/datepicker/datepicker-multiple.d.ts +1 -1
- package/dist/components/datepicker/datepicker-popup.d.ts +1 -1
- package/dist/components/datepicker/datepicker-range.d.ts +1 -1
- package/dist/components/datepicker/datepicker-single.d.ts +1 -1
- package/dist/components/datepicker/datepicker-utils.d.ts +2 -2
- package/dist/components/datepicker/datepicker.d.ts +5 -5
- package/dist/components/fileupload/fileupload-base.d.ts +1 -1
- package/dist/components/fileupload/fileupload-renderers.d.ts +2 -2
- package/dist/components/fileupload/fileupload.d.ts +3 -1
- package/dist/components/header/header-user-menu.d.ts +1 -1
- package/dist/components/header/header.d.ts +1 -1
- package/dist/components/helptext/helptext.d.ts +1 -1
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/input-wrapper/input-wrapper.d.ts +1 -1
- package/dist/components/input-wrapper/tri-state.test.d.ts +0 -0
- package/dist/components/input-wrapper/wrapper-parity.test.d.ts +1 -0
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/linkcard/linkcard.d.ts +1 -1
- package/dist/components/listbox/listbox.d.ts +1 -1
- package/dist/components/loader/loader.d.ts +1 -1
- package/dist/components/messagebox/messagebox.d.ts +1 -1
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/progressbar/progressbar.d.ts +1 -1
- package/dist/components/radiobutton/radiobutton.d.ts +1 -1
- package/dist/components/searchinput/searchinput.d.ts +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.test.d.ts +2 -2
- package/dist/components/tabs/tabitem.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/textarea/textarea.d.ts +3 -2
- package/dist/components/textarea/textarea.test.d.ts +2 -2
- package/dist/components/textinput/textinput.d.ts +1 -1
- package/dist/components/textinput/textinput.test.d.ts +2 -2
- package/dist/components/timepicker/timepicker.d.ts +1 -1
- package/dist/{consent--Nw43WFU.cjs → consent-CyY3RyoC.cjs} +1 -1
- package/dist/{consent-B2hSTCGC.js → consent-DZEkhgJ1.js} +2 -2
- package/dist/{consume-BiOhrhEy.js → consume-BDnMAp2g.js} +6 -6
- package/dist/{consume-DKf5SmP9.cjs → consume-Le4HztPo.cjs} +1 -1
- package/dist/converters-BJ9Fe0kW.cjs +1 -0
- package/dist/{converters-BBfsEJV5.js → converters-CkjLSYpa.js} +200 -202
- package/dist/{datepicker-BMuplkDE.js → datepicker-ButIas85.js} +46 -22
- package/dist/{datepicker-DrB54Rhc.cjs → datepicker-VTqSDQk5.cjs} +7 -8
- package/dist/dialog-polyfill.esm-B-g35ove.cjs +1 -0
- package/dist/{dialog-polyfill.esm-ChZRzCVh.js → dialog-polyfill.esm-DHSvqor8.js} +2 -2
- package/dist/{directive-helpers-BshFvt7A.cjs → directive-helpers-BlAV5EQD.cjs} +1 -1
- package/dist/{directive-helpers-DIF5DwN4.js → directive-helpers-CI8YZqku.js} +2 -2
- package/dist/directives/slot-content.d.ts +1 -1
- package/dist/docs/backlink.d.ts +1 -1
- package/dist/docs/components/accordion.d.ts +1 -1
- package/dist/docs/components/alert.d.ts +1 -1
- package/dist/docs/components/backlink.d.ts +1 -1
- package/dist/docs/components/breadcrumbs.d.ts +1 -1
- package/dist/docs/components/button.d.ts +1 -1
- package/dist/docs/components/calendar.d.ts +1 -1
- package/dist/docs/components/card.d.ts +1 -1
- package/dist/docs/components/checkbox.d.ts +1 -1
- package/dist/docs/components/combobox.d.ts +1 -1
- package/dist/docs/components/comboboxdemo.d.ts +1 -1
- package/dist/docs/components/consent.d.ts +1 -1
- package/dist/docs/components/datepicker.d.ts +1 -1
- package/dist/docs/components/datepickermultiple.d.ts +1 -1
- package/dist/docs/components/event-log.d.ts +1 -1
- package/dist/docs/components/fileupload.d.ts +1 -1
- package/dist/docs/components/footer.d.ts +1 -1
- package/dist/docs/components/form-sizes.d.ts +1 -1
- package/dist/docs/components/form.d.ts +1 -1
- package/dist/docs/components/header-full.d.ts +1 -1
- package/dist/docs/components/header-global-full.d.ts +1 -1
- package/dist/docs/components/header-global.d.ts +1 -1
- package/dist/docs/components/header-menu.d.ts +1 -1
- package/dist/docs/components/header.d.ts +1 -1
- package/dist/docs/components/heading.d.ts +1 -1
- package/dist/docs/components/icon.d.ts +1 -1
- package/dist/docs/components/input-wrapper.d.ts +1 -1
- package/dist/docs/components/link.d.ts +1 -1
- package/dist/docs/components/linkcard.d.ts +1 -1
- package/dist/docs/components/loader.d.ts +1 -1
- package/dist/docs/components/messagebox.d.ts +1 -1
- package/dist/docs/components/modal.d.ts +1 -1
- package/dist/docs/components/progressbar.d.ts +1 -1
- package/dist/docs/components/radiobutton.d.ts +1 -1
- package/dist/docs/components/searchinput.d.ts +1 -1
- package/dist/docs/components/select.d.ts +1 -1
- package/dist/docs/components/slots.d.ts +1 -1
- package/dist/docs/components/tabs.d.ts +1 -1
- package/dist/docs/components/tag.d.ts +1 -1
- package/dist/docs/components/textarea.d.ts +1 -1
- package/dist/docs/components/textinput.d.ts +1 -1
- package/dist/docs/components/timepicker.d.ts +1 -1
- package/dist/docs/components/verifisering.d.ts +15 -0
- package/dist/docs/header.d.ts +1 -1
- package/dist/docs/punkt-docs.d.ts +1 -1
- package/dist/element-BA8v6S7z.cjs +2 -0
- package/dist/{element-BoJrqauR.js → element-ChsFgr_B.js} +19 -16
- package/dist/{element-with-slot-BY7Jc-q8.cjs → element-with-slot-Bj7nm7fO.cjs} +1 -1
- package/dist/{element-with-slot-mXLg8gg8.js → element-with-slot-BvG9ctC-.js} +2 -2
- package/dist/fetch-header-footer-data-CUKV0biS.cjs +1 -0
- package/dist/{fileupload-CGKUJrlj.cjs → fileupload-BeWiTAoW.cjs} +8 -8
- package/dist/{fileupload-D4gQN64T.js → fileupload-D5IQ9HDe.js} +25 -20
- package/dist/{footer-Ber-jqM1.cjs → footer-DbYQUYNR.cjs} +1 -1
- package/dist/{footer-BIrJeRuZ.js → footer-DrR64HiK.js} +6 -6
- package/dist/{header-BFk1an4z.cjs → header-ClgIac6n.cjs} +12 -12
- package/dist/{header-Deg_LGJo.js → header-KvJ1mGwA.js} +48 -38
- package/dist/{header-menu-BHqK4QA6.cjs → header-menu-BAsUNKSx.cjs} +3 -3
- package/dist/{header-menu-GFtJKM4j.js → header-menu-hVPXsb8g.js} +10 -8
- package/dist/{heading-DyJpBFT2.cjs → heading-CFmiSuCQ.cjs} +1 -1
- package/dist/{heading-CD0PhL8g.js → heading-g-_IUB5T.js} +2 -2
- package/dist/{helptext-Cq5rNaAC.cjs → helptext-CTtKJcML.cjs} +4 -1
- package/dist/{helptext-C_brWCIT.js → helptext-DZng1D5i.js} +18 -14
- package/dist/{icon-B8PVq2O6.cjs → icon-9iwd2F2l.cjs} +1 -1
- package/dist/{icon-DGFEIlco.js → icon-D-LA22xD.js} +2 -2
- package/dist/if-defined-B89_ZeCj.cjs +1 -0
- package/dist/if-defined-CGzIlZ9-.js +5 -0
- package/dist/{input-element-C0RnXi-J.js → input-element-DBMNBplu.js} +155 -129
- package/dist/{input-element-B0qLbEdF.cjs → input-element-DYmQw-fH.cjs} +1 -1
- package/dist/input-wrapper-BmxNvznr.js +128 -0
- package/dist/{input-wrapper-BweP6t3O.js → input-wrapper-D-fPaTbY.js} +2 -2
- package/dist/{input-wrapper-wh3fWIhk.cjs → input-wrapper-D5PR0rJn.cjs} +1 -1
- package/dist/input-wrapper-Q-B-aBeb.cjs +54 -0
- package/dist/{link-FmkQvSQL.js → link-D-Eqm5KH.js} +8 -7
- package/dist/{link-Geze7498.cjs → link-DK7gvmnj.cjs} +2 -2
- package/dist/{linkcard-6LCXRTR-.cjs → linkcard-B29cmZqh.cjs} +1 -1
- package/dist/{linkcard-BKdT0zU_.js → linkcard-zqbg7Oqm.js} +4 -4
- package/dist/{listbox-89wMuQVK.cjs → listbox-Dc4rGdPi.cjs} +2 -2
- package/dist/{listbox-LdyWPu7W.js → listbox-va_E8afs.js} +6 -10
- package/dist/{loader-CgW4Vst3.cjs → loader-CMUkVJmE.cjs} +1 -1
- package/dist/{loader-BA-i8CaQ.js → loader-D_RDICnw.js} +4 -4
- package/dist/{messagebox-VD5oEZ19.cjs → messagebox-Cv8LaSxv.cjs} +1 -1
- package/dist/{messagebox-fiaAyHLG.js → messagebox-Cw-OWDya.js} +7 -6
- package/dist/{modal-CPnFteYS.cjs → modal-BtInv031.cjs} +1 -1
- package/dist/{modal-xNK_wpHk.js → modal-D0t_X2dX.js} +6 -6
- package/dist/pkt-accordion.cjs +1 -1
- package/dist/pkt-accordion.js +1 -1
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +1 -1
- package/dist/pkt-backlink.cjs +1 -1
- package/dist/pkt-backlink.js +1 -1
- package/dist/pkt-breadcrumbs.cjs +1 -1
- package/dist/pkt-breadcrumbs.js +1 -1
- package/dist/pkt-button.cjs +1 -1
- package/dist/pkt-button.js +1 -1
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +1 -1
- package/dist/pkt-card.cjs +1 -1
- package/dist/pkt-card.js +1 -1
- package/dist/pkt-checkbox.cjs +1 -1
- package/dist/pkt-checkbox.js +1 -1
- package/dist/pkt-combobox.cjs +1 -1
- package/dist/pkt-combobox.js +1 -1
- package/dist/pkt-consent.cjs +1 -1
- package/dist/pkt-consent.js +1 -1
- package/dist/pkt-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +1 -1
- package/dist/pkt-fileupload.cjs +1 -1
- package/dist/pkt-fileupload.js +1 -1
- package/dist/pkt-footer.cjs +1 -1
- package/dist/pkt-footer.js +1 -1
- package/dist/pkt-header-menu.cjs +1 -1
- package/dist/pkt-header-menu.js +1 -1
- package/dist/pkt-header.cjs +1 -1
- package/dist/pkt-header.js +1 -1
- package/dist/pkt-heading.cjs +1 -1
- package/dist/pkt-heading.js +1 -1
- package/dist/pkt-helptext.cjs +1 -1
- package/dist/pkt-helptext.js +1 -1
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +1 -1
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +34 -34
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +1 -1
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +1 -1
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +1 -1
- package/dist/pkt-listbox.cjs +1 -1
- package/dist/pkt-listbox.js +1 -1
- package/dist/pkt-loader.cjs +1 -1
- package/dist/pkt-loader.js +1 -1
- package/dist/pkt-messagebox.cjs +1 -1
- package/dist/pkt-messagebox.js +1 -1
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +1 -1
- package/dist/{pkt-options-controller-DMxYwnnj.js → pkt-options-controller-B77vH3PE.js} +1 -1
- package/dist/{pkt-options-controller-CPrfqepu.cjs → pkt-options-controller-C5EBX2T0.cjs} +1 -1
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +1 -1
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.js +1 -1
- package/dist/pkt-searchinput.cjs +1 -1
- package/dist/pkt-searchinput.js +1 -1
- package/dist/pkt-select.cjs +1 -1
- package/dist/pkt-select.js +1 -1
- package/dist/pkt-tabs.cjs +1 -1
- package/dist/pkt-tabs.js +1 -1
- package/dist/pkt-tag.cjs +1 -1
- package/dist/pkt-tag.js +1 -1
- package/dist/pkt-textarea.cjs +1 -1
- package/dist/pkt-textarea.js +1 -1
- package/dist/pkt-textinput.cjs +1 -1
- package/dist/pkt-textinput.js +1 -1
- package/dist/pkt-timepicker.cjs +1 -1
- package/dist/pkt-timepicker.js +1 -1
- package/dist/{progressbar-mtjtbpCO.js → progressbar-CbcfLerF.js} +6 -6
- package/dist/progressbar-D5MmnQId.cjs +17 -0
- package/dist/{radiobutton-C6htwDrT.js → radiobutton-BUnf3EPi.js} +8 -8
- package/dist/{radiobutton-DjWBoSHv.cjs → radiobutton-DpsO1F-8.cjs} +4 -4
- package/dist/ref-CQoEIIp0.cjs +1 -0
- package/dist/{ref-WGS0u7i2.js → ref-CWD6PjVd.js} +9 -7
- package/dist/{repeat-BH0cL82q.js → repeat-C02g7d5S.js} +13 -12
- package/dist/{repeat-DRnLAg0O.cjs → repeat-sY6B7fAT.cjs} +1 -1
- package/dist/{searchinput-DGjeN1YI.cjs → searchinput-Bh975rjX.cjs} +1 -1
- package/dist/{searchinput-CfUVfpqL.js → searchinput-DwnjsvJ1.js} +4 -4
- package/dist/select-BOJi6H6T.cjs +49 -0
- package/dist/{select-CsBXXbLP.js → select-DMre80qs.js} +24 -20
- package/dist/shared-types/booleanish.d.ts +11 -0
- package/dist/shared-types/index.d.ts +1 -1
- package/dist/shared-utils/date-utils.d.ts +16 -16
- package/dist/shared-utils/datepicker-utils.d.ts +11 -11
- package/dist/shared-utils/device-utils.d.ts +1 -1
- package/dist/shared-utils/forms/described-by.d.ts +24 -0
- package/dist/shared-utils/utils.d.ts +2 -2
- package/dist/shared-utils/value-utils.d.ts +2 -2
- package/dist/{tabs-q62MK_-r.cjs → tabs-Cf9ai0FD.cjs} +2 -2
- package/dist/{tabs-BqrKLCjd.js → tabs-TvxgbrCF.js} +7 -7
- package/dist/{tag-XE-VRxT2.cjs → tag-CzojNU7z.cjs} +1 -1
- package/dist/{tag-BTiTXyf5.js → tag-Ds6n1LIs.js} +5 -5
- package/dist/textarea-BydiLM9Z.cjs +49 -0
- package/dist/{textarea-Cm392CEI.js → textarea-vfzIcXhX.js} +36 -29
- package/dist/{textinput-TSPcBcih.js → textinput-CMP2jPP_.js} +30 -25
- package/dist/{textinput-DqJbTglM.cjs → textinput-DGdicNSx.cjs} +10 -10
- package/dist/{timepicker-DWbgTDKq.js → timepicker-ClwgYywH.js} +19 -14
- package/dist/{timepicker-CqFYMV8q.cjs → timepicker-DYrnLHqN.cjs} +5 -2
- package/dist/translations/no.json.d.ts +2 -1
- package/package.json +7 -4
- package/src/components/combobox/combobox.core.test.ts +2 -2
- package/src/components/combobox/combobox.ts +7 -1
- package/src/components/datepicker/datepicker-single.ts +1 -1
- package/src/components/datepicker/datepicker.ts +5 -3
- package/src/components/fileupload/fileupload.ts +6 -1
- package/src/components/helptext/helptext.ts +3 -0
- package/src/components/input-wrapper/input-wrapper.test.ts +3 -3
- package/src/components/input-wrapper/input-wrapper.ts +31 -29
- package/src/components/input-wrapper/tri-state.test.ts +91 -0
- package/src/components/input-wrapper/wrapper-parity.test.ts +141 -0
- package/src/components/select/select.test.ts +8 -7
- package/src/components/select/select.ts +13 -5
- package/src/components/textarea/textarea.test.ts +6 -6
- package/src/components/textarea/textarea.ts +20 -11
- package/src/components/textinput/textinput.test.ts +6 -6
- package/src/components/textinput/textinput.ts +17 -11
- package/src/components/timepicker/timepicker.ts +12 -5
- package/dist/async-directive-HLXOyE4A.cjs +0 -1
- package/dist/booleanish-B9Kf0nES.cjs +0 -1
- package/dist/combobox-BH9lym0-.cjs +0 -136
- package/dist/converters-Cd0fPEly.cjs +0 -1
- package/dist/dialog-polyfill.esm-J-GKtwrS.cjs +0 -1
- package/dist/element-DJzurxgt.cjs +0 -2
- package/dist/fetch-header-footer-data-xohWFmYC.cjs +0 -1
- package/dist/if-defined-D0bnetLJ.js +0 -5
- package/dist/if-defined-DrwbxQOj.cjs +0 -1
- package/dist/input-wrapper-DPkkiG7S.cjs +0 -57
- package/dist/input-wrapper-fWV5P4MN.js +0 -126
- package/dist/progressbar-BN5y20CC.cjs +0 -17
- package/dist/ref-DO7TzO4O.cjs +0 -1
- package/dist/select-CZvAW7W2.cjs +0 -50
- package/dist/textarea-sTcZxOIB.cjs +0 -47
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { n as e, o as t, r as n } from "./element-
|
|
2
|
-
import { t as r } from "./element-with-slot-
|
|
1
|
+
import { n as e, o as t, r as n } from "./element-ChsFgr_B.js";
|
|
2
|
+
import { t as r } from "./element-with-slot-BvG9ctC-.js";
|
|
3
3
|
import { n as i } from "./utils-BwF4QSrq.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
4
|
+
import { n as a, t as o } from "./booleanish-OQJTYSrw.js";
|
|
5
|
+
import { t as s } from "./input-wrapper-D-fPaTbY.js";
|
|
6
6
|
//#region ../../node_modules/element-internals-polyfill/dist/maps.js
|
|
7
|
-
var
|
|
7
|
+
var c = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), S = (e, t, n) => {
|
|
8
8
|
e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
9
|
-
},
|
|
10
|
-
e.toggleAttribute("internals-disabled", t), t ?
|
|
11
|
-
},
|
|
12
|
-
|
|
9
|
+
}, C = (e, t) => {
|
|
10
|
+
e.toggleAttribute("internals-disabled", t), t ? S(e, "aria-disabled", "true") : e.removeAttribute("aria-disabled"), e.formDisabledCallback && e.formDisabledCallback.apply(e, [t]);
|
|
11
|
+
}, w = (e) => {
|
|
12
|
+
u.get(e).forEach((e) => {
|
|
13
13
|
e.remove();
|
|
14
|
-
}),
|
|
15
|
-
}, w = (e, t) => {
|
|
16
|
-
let n = document.createElement("input");
|
|
17
|
-
return n.type = "hidden", n.name = e.getAttribute("name"), e.after(n), l.get(t).push(n), n;
|
|
14
|
+
}), u.set(e, []);
|
|
18
15
|
}, T = (e, t) => {
|
|
16
|
+
let n = document.createElement("input");
|
|
17
|
+
return n.type = "hidden", n.name = e.getAttribute("name"), e.after(n), u.get(t).push(n), n;
|
|
18
|
+
}, E = (e, t) => {
|
|
19
19
|
if (t.length) {
|
|
20
20
|
let n = Array.from(t);
|
|
21
21
|
n.forEach((t) => t.addEventListener("click", e.click.bind(e)));
|
|
22
22
|
let [r] = n, i = r.id;
|
|
23
|
-
r.id ||= (i = `${r.htmlFor}_Label`, i),
|
|
23
|
+
r.id ||= (i = `${r.htmlFor}_Label`, i), S(e, "aria-labelledby", i);
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
let t = Array.from(e.elements).filter((e) => !e.tagName.includes("-") && e.validity).map((e) => e.validity.valid), n =
|
|
25
|
+
}, D = (e) => {
|
|
26
|
+
let t = Array.from(e.elements).filter((e) => !e.tagName.includes("-") && e.validity).map((e) => e.validity.valid), n = m.get(e) || [], r = Array.from(n).filter((e) => e.isConnected).map((e) => d.get(e).validity.valid), i = [...t, ...r].includes(!1);
|
|
27
27
|
e.toggleAttribute("internals-invalid", i), e.toggleAttribute("internals-valid", !i);
|
|
28
28
|
}, te = (e) => {
|
|
29
|
-
|
|
29
|
+
D(k(e.target));
|
|
30
30
|
}, ne = (e) => {
|
|
31
|
-
|
|
31
|
+
D(k(e.target));
|
|
32
32
|
}, re = (e) => {
|
|
33
33
|
let t = [
|
|
34
34
|
"button[type=submit]",
|
|
@@ -37,57 +37,57 @@ var s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), l = /*
|
|
|
37
37
|
].map((e) => `${e}:not([disabled])`).map((t) => `${t}:not([form])${e.id ? `,${t}[form='${e.id}']` : ""}`).join(",");
|
|
38
38
|
e.addEventListener("click", (n) => {
|
|
39
39
|
if (n.target.closest(t)) {
|
|
40
|
-
let t =
|
|
40
|
+
let t = m.get(e);
|
|
41
41
|
if (e.noValidate) return;
|
|
42
|
-
t.size && Array.from(t).reverse().map((e) =>
|
|
42
|
+
t.size && Array.from(t).reverse().map((e) => d.get(e).reportValidity()).includes(!1) && n.preventDefault();
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
}, ie = (e) => {
|
|
46
|
-
let t =
|
|
46
|
+
let t = m.get(e.target);
|
|
47
47
|
t && t.size && t.forEach((e) => {
|
|
48
48
|
e.constructor.formAssociated && e.formResetCallback && e.formResetCallback.apply(e);
|
|
49
49
|
});
|
|
50
|
-
},
|
|
50
|
+
}, O = (e, t, n) => {
|
|
51
51
|
if (t) {
|
|
52
|
-
let r =
|
|
52
|
+
let r = m.get(t);
|
|
53
53
|
if (r) r.add(e);
|
|
54
54
|
else {
|
|
55
55
|
let n = /* @__PURE__ */ new Set();
|
|
56
|
-
n.add(e),
|
|
56
|
+
n.add(e), m.set(t, n), re(t), t.addEventListener("reset", ie), t.addEventListener("input", te), t.addEventListener("change", ne);
|
|
57
57
|
}
|
|
58
58
|
ee.set(t, {
|
|
59
59
|
ref: e,
|
|
60
60
|
internals: n
|
|
61
61
|
}), e.constructor.formAssociated && e.formAssociatedCallback && setTimeout(() => {
|
|
62
62
|
e.formAssociatedCallback.apply(e, [t]);
|
|
63
|
-
}, 0),
|
|
63
|
+
}, 0), D(t);
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, k = (e) => {
|
|
66
66
|
let t = e.parentNode;
|
|
67
|
-
return t && t.tagName !== "FORM" && (t =
|
|
68
|
-
},
|
|
67
|
+
return t && t.tagName !== "FORM" && (t = k(t)), t;
|
|
68
|
+
}, A = (e, t, n = DOMException) => {
|
|
69
69
|
if (!e.constructor.formAssociated) throw new n(t);
|
|
70
|
-
},
|
|
71
|
-
let r =
|
|
70
|
+
}, j = (e, t, n) => {
|
|
71
|
+
let r = m.get(e);
|
|
72
72
|
return r && r.size && r.forEach((e) => {
|
|
73
|
-
|
|
73
|
+
d.get(e)[n]() || (t = !1);
|
|
74
74
|
}), t;
|
|
75
|
-
},
|
|
75
|
+
}, M = (e) => {
|
|
76
76
|
let t = !1;
|
|
77
77
|
if (e.constructor.formAssociated) {
|
|
78
|
-
let n =
|
|
79
|
-
n === void 0 && (e.attachInternals(), n =
|
|
78
|
+
let n = d.get(e);
|
|
79
|
+
n === void 0 && (e.attachInternals(), n = d.get(e), t = !0);
|
|
80
80
|
let { labels: r, form: i } = n;
|
|
81
|
-
|
|
81
|
+
E(e, r), O(e, i, n);
|
|
82
82
|
}
|
|
83
83
|
return t;
|
|
84
84
|
};
|
|
85
|
-
function
|
|
85
|
+
function N() {
|
|
86
86
|
return typeof MutationObserver < "u";
|
|
87
87
|
}
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region ../../node_modules/element-internals-polyfill/dist/aom.js
|
|
90
|
-
var
|
|
90
|
+
var P = {
|
|
91
91
|
ariaAtomic: "aria-atomic",
|
|
92
92
|
ariaAutoComplete: "aria-autocomplete",
|
|
93
93
|
ariaBrailleLabel: "aria-braillelabel",
|
|
@@ -133,66 +133,66 @@ var N = {
|
|
|
133
133
|
ariaValueText: "aria-valuetext",
|
|
134
134
|
role: "role"
|
|
135
135
|
}, ae = (e, t) => {
|
|
136
|
-
for (let n in
|
|
136
|
+
for (let n in P) {
|
|
137
137
|
t[n] = null;
|
|
138
|
-
let r = null, i =
|
|
138
|
+
let r = null, i = P[n];
|
|
139
139
|
Object.defineProperty(t, n, {
|
|
140
140
|
get() {
|
|
141
141
|
return r;
|
|
142
142
|
},
|
|
143
143
|
set(n) {
|
|
144
|
-
r = n, e.isConnected ?
|
|
144
|
+
r = n, e.isConnected ? S(e, i, n) : g.set(e, t);
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
}, oe = (e, t) => {
|
|
149
|
-
|
|
149
|
+
u.set(t, []), R.observe?.(e, L);
|
|
150
150
|
};
|
|
151
|
-
function
|
|
152
|
-
let t =
|
|
153
|
-
|
|
151
|
+
function F(e) {
|
|
152
|
+
let t = d.get(e), { form: n } = t;
|
|
153
|
+
O(e, n, t), E(e, t.labels);
|
|
154
154
|
}
|
|
155
|
-
var
|
|
155
|
+
var I = (e, t = !1) => {
|
|
156
156
|
let n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
|
|
157
|
-
return
|
|
157
|
+
return d.has(e) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
158
158
|
} }), r = n.nextNode(), i = !t || e.disabled;
|
|
159
|
-
for (; r;) r.formDisabledCallback && i &&
|
|
160
|
-
},
|
|
159
|
+
for (; r;) r.formDisabledCallback && i && C(r, e.disabled), r = n.nextNode();
|
|
160
|
+
}, L = {
|
|
161
161
|
attributes: !0,
|
|
162
162
|
attributeFilter: ["disabled", "name"]
|
|
163
|
-
},
|
|
163
|
+
}, R = N() ? new MutationObserver((e) => {
|
|
164
164
|
for (let t of e) {
|
|
165
165
|
let e = t.target;
|
|
166
|
-
if (t.attributeName === "disabled" && (e.constructor.formAssociated ?
|
|
167
|
-
let t =
|
|
166
|
+
if (t.attributeName === "disabled" && (e.constructor.formAssociated ? C(e, e.hasAttribute("disabled")) : e.localName === "fieldset" && I(e)), t.attributeName === "name" && e.constructor.formAssociated) {
|
|
167
|
+
let t = d.get(e), n = h.get(e);
|
|
168
168
|
t.setFormValue(n);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}) : {};
|
|
172
|
-
function
|
|
172
|
+
function z(e) {
|
|
173
173
|
e.forEach((e) => {
|
|
174
174
|
let { addedNodes: t, removedNodes: n } = e, r = Array.from(t), i = Array.from(n);
|
|
175
175
|
r.forEach((e) => {
|
|
176
|
-
if (
|
|
177
|
-
let t =
|
|
178
|
-
Object.keys(
|
|
179
|
-
|
|
180
|
-
}),
|
|
176
|
+
if (d.has(e) && e.constructor.formAssociated && F(e), g.has(e)) {
|
|
177
|
+
let t = g.get(e);
|
|
178
|
+
Object.keys(P).filter((e) => t[e] !== null).forEach((n) => {
|
|
179
|
+
S(e, P[n], t[n]);
|
|
180
|
+
}), g.delete(e);
|
|
181
181
|
}
|
|
182
|
-
if (
|
|
183
|
-
let t =
|
|
184
|
-
|
|
182
|
+
if (x.has(e)) {
|
|
183
|
+
let t = x.get(e);
|
|
184
|
+
S(e, "internals-valid", t.validity.valid.toString()), S(e, "internals-invalid", (!t.validity.valid).toString()), S(e, "aria-invalid", (!t.validity.valid).toString()), x.delete(e);
|
|
185
185
|
}
|
|
186
186
|
if (e.localName === "form") {
|
|
187
|
-
let t =
|
|
188
|
-
return
|
|
187
|
+
let t = m.get(e), n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
|
|
188
|
+
return d.has(e) && e.constructor.formAssociated && !(t && t.has(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
189
189
|
} }), r = n.nextNode();
|
|
190
|
-
for (; r;)
|
|
190
|
+
for (; r;) F(r), r = n.nextNode();
|
|
191
191
|
}
|
|
192
|
-
e.localName === "fieldset" && (
|
|
192
|
+
e.localName === "fieldset" && (R.observe?.(e, L), I(e, !0));
|
|
193
193
|
}), i.forEach((e) => {
|
|
194
|
-
let t =
|
|
195
|
-
t &&
|
|
194
|
+
let t = d.get(e);
|
|
195
|
+
t && u.get(t) && w(t), p.has(e) && p.get(e).disconnect();
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
}
|
|
@@ -200,24 +200,24 @@ function se(e) {
|
|
|
200
200
|
e.forEach((e) => {
|
|
201
201
|
let { removedNodes: t } = e;
|
|
202
202
|
t.forEach((t) => {
|
|
203
|
-
let n =
|
|
204
|
-
|
|
203
|
+
let n = y.get(e.target);
|
|
204
|
+
d.has(t) && M(t), n.disconnect();
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
var ce = (e) => {
|
|
209
209
|
let t = new MutationObserver(se);
|
|
210
|
-
window?.ShadyDOM?.inUse && e.mode && e.host && (e = e.host), t.observe?.(e, { childList: !0 }),
|
|
210
|
+
window?.ShadyDOM?.inUse && e.mode && e.host && (e = e.host), t.observe?.(e, { childList: !0 }), y.set(e, t);
|
|
211
211
|
};
|
|
212
|
-
|
|
213
|
-
var
|
|
212
|
+
N() && new MutationObserver(z);
|
|
213
|
+
var B = {
|
|
214
214
|
childList: !0,
|
|
215
215
|
subtree: !0
|
|
216
216
|
}, le = class {
|
|
217
217
|
constructor() {
|
|
218
218
|
this.badInput = !1, this.customError = !1, this.patternMismatch = !1, this.rangeOverflow = !1, this.rangeUnderflow = !1, this.stepMismatch = !1, this.tooLong = !1, this.tooShort = !1, this.typeMismatch = !1, this.valid = !0, this.valueMissing = !1, Object.seal(this);
|
|
219
219
|
}
|
|
220
|
-
}, ue = (e) => (e.badInput = !1, e.customError = !1, e.patternMismatch = !1, e.rangeOverflow = !1, e.rangeUnderflow = !1, e.stepMismatch = !1, e.tooLong = !1, e.tooShort = !1, e.typeMismatch = !1, e.valid = !0, e.valueMissing = !1, e),
|
|
220
|
+
}, ue = (e) => (e.badInput = !1, e.customError = !1, e.patternMismatch = !1, e.rangeOverflow = !1, e.rangeUnderflow = !1, e.stepMismatch = !1, e.tooLong = !1, e.tooShort = !1, e.typeMismatch = !1, e.valid = !0, e.valueMissing = !1, e), de = (e, t, n) => (e.valid = fe(t), Object.keys(t).forEach((n) => e[n] = t[n]), n && D(n), e), fe = (e) => {
|
|
221
221
|
let t = !0;
|
|
222
222
|
for (let n in e) n !== "valid" && e[n] !== !1 && (t = !1);
|
|
223
223
|
return t;
|
|
@@ -250,7 +250,7 @@ var U = class extends Set {
|
|
|
250
250
|
n.toggleAttribute(`state${e}`, !1), n.part && n.part.remove(`state${e}`);
|
|
251
251
|
}), t;
|
|
252
252
|
}
|
|
253
|
-
},
|
|
253
|
+
}, pe = function(e, t, n, r, i) {
|
|
254
254
|
if (r === "m") throw TypeError("Private method is not writable");
|
|
255
255
|
if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
|
|
256
256
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw TypeError("Cannot write private member to an object whose class did not declare it");
|
|
@@ -259,9 +259,9 @@ var U = class extends Set {
|
|
|
259
259
|
if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
|
|
260
260
|
if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw TypeError("Cannot read private member from an object whose class did not declare it");
|
|
261
261
|
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
|
|
262
|
-
}, G,
|
|
262
|
+
}, G, me = class {
|
|
263
263
|
constructor(e) {
|
|
264
|
-
G.set(this, void 0),
|
|
264
|
+
G.set(this, void 0), pe(this, G, e, "f");
|
|
265
265
|
for (let t = 0; t < e.length; t++) {
|
|
266
266
|
let n = e[t];
|
|
267
267
|
this[t] = n, n.hasAttribute("name") && (this[n.getAttribute("name")] = n);
|
|
@@ -283,23 +283,23 @@ var U = class extends Set {
|
|
|
283
283
|
};
|
|
284
284
|
//#endregion
|
|
285
285
|
//#region ../../node_modules/element-internals-polyfill/dist/patch-form-prototype.js
|
|
286
|
-
function
|
|
286
|
+
function he() {
|
|
287
287
|
let e = HTMLFormElement.prototype.checkValidity;
|
|
288
288
|
HTMLFormElement.prototype.checkValidity = n;
|
|
289
289
|
let t = HTMLFormElement.prototype.reportValidity;
|
|
290
290
|
HTMLFormElement.prototype.reportValidity = r;
|
|
291
291
|
function n(...t) {
|
|
292
292
|
let n = e.apply(this, t);
|
|
293
|
-
return
|
|
293
|
+
return j(this, n, "checkValidity");
|
|
294
294
|
}
|
|
295
295
|
function r(...e) {
|
|
296
296
|
let n = t.apply(this, e);
|
|
297
|
-
return
|
|
297
|
+
return j(this, n, "reportValidity");
|
|
298
298
|
}
|
|
299
299
|
let { get: i } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
|
|
300
300
|
Object.defineProperty(HTMLFormElement.prototype, "elements", { get(...e) {
|
|
301
|
-
let t = i.call(this, ...e), n = Array.from(
|
|
302
|
-
return n.length === 0 ? t : new
|
|
301
|
+
let t = i.call(this, ...e), n = Array.from(m.get(this) || []);
|
|
302
|
+
return n.length === 0 ? t : new me(Array.from(t).concat(n).sort((e, t) => e.compareDocumentPosition ? e.compareDocumentPosition(t) & 2 ? 1 : -1 : 0));
|
|
303
303
|
} });
|
|
304
304
|
}
|
|
305
305
|
//#endregion
|
|
@@ -311,12 +311,12 @@ var K = class {
|
|
|
311
311
|
constructor(e) {
|
|
312
312
|
if (!e || !e.tagName || e.tagName.indexOf("-") === -1) throw TypeError("Illegal constructor");
|
|
313
313
|
let t = e.getRootNode(), n = new le();
|
|
314
|
-
this.states = new U(e),
|
|
314
|
+
this.states = new U(e), c.set(this, e), l.set(this, n), d.set(e, this), ae(e, this), oe(e, this), Object.seal(this), t instanceof DocumentFragment && ce(t);
|
|
315
315
|
}
|
|
316
316
|
checkValidity() {
|
|
317
|
-
let e =
|
|
318
|
-
if (
|
|
319
|
-
let t =
|
|
317
|
+
let e = c.get(this);
|
|
318
|
+
if (A(e, "Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) return !0;
|
|
319
|
+
let t = l.get(this);
|
|
320
320
|
if (!t.valid) {
|
|
321
321
|
let t = new Event("invalid", {
|
|
322
322
|
bubbles: !1,
|
|
@@ -328,44 +328,44 @@ var K = class {
|
|
|
328
328
|
return t.valid;
|
|
329
329
|
}
|
|
330
330
|
get form() {
|
|
331
|
-
let e =
|
|
332
|
-
|
|
331
|
+
let e = c.get(this);
|
|
332
|
+
A(e, "Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");
|
|
333
333
|
let t;
|
|
334
|
-
return e.constructor.formAssociated === !0 && (t =
|
|
334
|
+
return e.constructor.formAssociated === !0 && (t = k(e)), t;
|
|
335
335
|
}
|
|
336
336
|
get labels() {
|
|
337
|
-
let e =
|
|
338
|
-
|
|
337
|
+
let e = c.get(this);
|
|
338
|
+
A(e, "Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");
|
|
339
339
|
let t = e.getAttribute("id"), n = e.getRootNode();
|
|
340
340
|
return n && t ? n.querySelectorAll(`[for="${t}"]`) : [];
|
|
341
341
|
}
|
|
342
342
|
reportValidity() {
|
|
343
|
-
let e =
|
|
344
|
-
if (
|
|
345
|
-
let t = this.checkValidity(), n =
|
|
343
|
+
let e = c.get(this);
|
|
344
|
+
if (A(e, "Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) return !0;
|
|
345
|
+
let t = this.checkValidity(), n = v.get(this);
|
|
346
346
|
if (n && !e.constructor.formAssociated) throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");
|
|
347
347
|
return !t && n && (e.focus(), n.focus()), t;
|
|
348
348
|
}
|
|
349
349
|
setFormValue(e) {
|
|
350
|
-
let t =
|
|
351
|
-
if (
|
|
350
|
+
let t = c.get(this);
|
|
351
|
+
if (A(t, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), w(this), e != null && !(e instanceof FormData)) {
|
|
352
352
|
if (t.getAttribute("name")) {
|
|
353
|
-
let n =
|
|
353
|
+
let n = T(t, this);
|
|
354
354
|
n.value = e;
|
|
355
355
|
}
|
|
356
356
|
} else e != null && e instanceof FormData && Array.from(e).reverse().forEach(([e, n]) => {
|
|
357
357
|
if (typeof n == "string") {
|
|
358
|
-
let r =
|
|
358
|
+
let r = T(t, this);
|
|
359
359
|
r.name = e, r.value = n;
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
|
-
|
|
362
|
+
h.set(t, e);
|
|
363
363
|
}
|
|
364
364
|
setValidity(e, t, n) {
|
|
365
|
-
let r =
|
|
366
|
-
if (
|
|
367
|
-
|
|
368
|
-
let i =
|
|
365
|
+
let r = c.get(this);
|
|
366
|
+
if (A(r, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !e) throw TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
|
|
367
|
+
v.set(this, n);
|
|
368
|
+
let i = l.get(this), a = {};
|
|
369
369
|
for (let t in e) a[t] = e[t];
|
|
370
370
|
Object.keys(a).length === 0 && ue(i);
|
|
371
371
|
let o = {
|
|
@@ -373,26 +373,26 @@ var K = class {
|
|
|
373
373
|
...a
|
|
374
374
|
};
|
|
375
375
|
delete o.valid;
|
|
376
|
-
let { valid:
|
|
377
|
-
if (!
|
|
378
|
-
|
|
376
|
+
let { valid: s } = de(i, o, this.form);
|
|
377
|
+
if (!s && !t) throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");
|
|
378
|
+
f.set(this, s ? "" : t), r.isConnected ? (r.toggleAttribute("internals-invalid", !s), r.toggleAttribute("internals-valid", s), S(r, "aria-invalid", `${!s}`)) : x.set(r, this);
|
|
379
379
|
}
|
|
380
380
|
get shadowRoot() {
|
|
381
|
-
let e =
|
|
382
|
-
return
|
|
381
|
+
let e = c.get(this);
|
|
382
|
+
return _.get(e) || null;
|
|
383
383
|
}
|
|
384
384
|
get validationMessage() {
|
|
385
|
-
return
|
|
385
|
+
return A(c.get(this), "Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."), f.get(this);
|
|
386
386
|
}
|
|
387
387
|
get validity() {
|
|
388
|
-
return
|
|
388
|
+
return A(c.get(this), "Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."), l.get(this);
|
|
389
389
|
}
|
|
390
390
|
get willValidate() {
|
|
391
|
-
let e =
|
|
392
|
-
return
|
|
391
|
+
let e = c.get(this);
|
|
392
|
+
return A(e, "Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."), !(e.matches(":disabled") || e.disabled || e.hasAttribute("disabled") || e.hasAttribute("readonly"));
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
|
-
function
|
|
395
|
+
function ge() {
|
|
396
396
|
if (typeof window > "u" || !window.ElementInternals || !HTMLElement.prototype.attachInternals) return !1;
|
|
397
397
|
class e extends HTMLElement {
|
|
398
398
|
constructor() {
|
|
@@ -422,7 +422,7 @@ function Y(e) {
|
|
|
422
422
|
return n.states = new U(this), n;
|
|
423
423
|
}));
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function _e(e = !0) {
|
|
426
426
|
let t = !1;
|
|
427
427
|
if (!q) {
|
|
428
428
|
if (q = !0, typeof window < "u" && (window.ElementInternals = K), typeof CustomElementRegistry < "u") {
|
|
@@ -431,7 +431,7 @@ function ge(e = !0) {
|
|
|
431
431
|
if (r.formAssociated) {
|
|
432
432
|
let e = r.prototype.connectedCallback;
|
|
433
433
|
r.prototype.connectedCallback = function() {
|
|
434
|
-
|
|
434
|
+
b.has(this) || (b.set(this, !0), this.hasAttribute("disabled") && C(this, !0)), e?.apply(this), t = M(this);
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
437
|
e.call(this, n, r, i);
|
|
@@ -440,34 +440,46 @@ function ge(e = !0) {
|
|
|
440
440
|
if (typeof HTMLElement < "u" && (HTMLElement.prototype.attachInternals = function() {
|
|
441
441
|
if (!this.tagName) return {};
|
|
442
442
|
if (this.tagName.indexOf("-") === -1) throw Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");
|
|
443
|
-
if (
|
|
443
|
+
if (d.has(this) && !t) throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");
|
|
444
444
|
return new K(this);
|
|
445
445
|
}), typeof Element < "u") {
|
|
446
446
|
function e(...e) {
|
|
447
447
|
let n = t.apply(this, e);
|
|
448
|
-
if (
|
|
449
|
-
let e = new MutationObserver(
|
|
450
|
-
window.ShadyDOM ? e.observe(this,
|
|
448
|
+
if (_.set(this, n), N()) {
|
|
449
|
+
let e = new MutationObserver(z);
|
|
450
|
+
window.ShadyDOM ? e.observe(this, B) : e.observe(n, B), p.set(this, e);
|
|
451
451
|
}
|
|
452
452
|
return n;
|
|
453
453
|
}
|
|
454
454
|
let t = Element.prototype.attachShadow;
|
|
455
455
|
Element.prototype.attachShadow = e;
|
|
456
456
|
}
|
|
457
|
-
|
|
457
|
+
N() && typeof document < "u" && new MutationObserver(z).observe(document.documentElement, B), typeof HTMLFormElement < "u" && he(), (e || typeof window < "u" && !window.CustomStateSet) && Y();
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
//#endregion
|
|
461
461
|
//#region ../../node_modules/element-internals-polyfill/dist/index.js
|
|
462
|
-
customElements.polyfillWrapFlushCallback || (
|
|
462
|
+
customElements.polyfillWrapFlushCallback || (ge() ? typeof window < "u" && !window.CustomStateSet && Y(HTMLElement.prototype.attachInternals) : _e(!1));
|
|
463
463
|
//#endregion
|
|
464
464
|
//#region src/base-elements/input-element.ts
|
|
465
465
|
var X = "on", Z = "--checked", Q = ",", $ = class extends r {
|
|
466
466
|
static get formAssociated() {
|
|
467
467
|
return !0;
|
|
468
468
|
}
|
|
469
|
+
get ariaDescribedBy() {
|
|
470
|
+
return this.ariaDescribedby;
|
|
471
|
+
}
|
|
472
|
+
set ariaDescribedBy(e) {
|
|
473
|
+
this.ariaDescribedby = e;
|
|
474
|
+
}
|
|
475
|
+
effectiveCounter(e) {
|
|
476
|
+
return this.counter ?? e;
|
|
477
|
+
}
|
|
478
|
+
effectiveHasFieldset(e) {
|
|
479
|
+
return this.hasFieldset ?? e;
|
|
480
|
+
}
|
|
469
481
|
constructor() {
|
|
470
|
-
super(), this.defaultValue = null, this.disabled = !1, this.readonly = !1, this.required = !1, this.max = null, this.maxlength = null, this.min = null, this.minlength = null, this.step = null, this.
|
|
482
|
+
super(), this.defaultValue = null, this.disabled = !1, this.readonly = !1, this.required = !1, this.max = null, this.maxlength = null, this.min = null, this.minlength = null, this.step = null, this.ariaDescribedby = null, this.ariaLabelledby = null, this.name = "", this.pattern = null, this.placeholder = null, this.id = i(), this.counter = null, this.hasError = !1, this.inline = !1, this.hasFieldset = null, this.optionalTag = !1, this.requiredTag = !1, this.skipForwardTestid = !1, this.useWrapper = !0, this.fullwidth = !1, this.counterMaxLength = 0, this.errorMessage = "", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = s.props.helptextDropdownButton.default, this.label = null, this.optionalText = n.forms.labels.optional, this.requiredText = n.forms.labels.required, this.tagText = null, this.inputSize = "medium", this.dataTestid = "", this.touched = !1, this._initialized = !1, this.internals = this.attachInternals();
|
|
471
483
|
}
|
|
472
484
|
manageValidity(e) {
|
|
473
485
|
if (!e) {
|
|
@@ -477,12 +489,14 @@ var X = "on", Z = "--checked", Q = ",", $ = class extends r {
|
|
|
477
489
|
this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, n.forms.messages.required, e) : e.validity?.typeMismatch || e.validity?.badInput ? this.internals.setValidity({ typeMismatch: !0 }, n.forms.messages.invalid, e) : e.validity?.patternMismatch ? this.internals.setValidity({ patternMismatch: !0 }, n.forms.messages.invalidPattern, e) : e.validity?.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, n.forms.messages.tooShort, e) : e.validity?.tooLong || this.maxlength && this.maxlength > 0 && this.value.length > this.maxlength ? this.internals.setValidity({ tooLong: !0 }, n.forms.messages.tooLong, e) : e.validity?.rangeUnderflow ? this.internals.setValidity({ rangeUnderflow: !0 }, this.min ? n.forms.messages.rangeUnderflowMin.replace("{min}", this.min?.toString()) : n.forms.messages.rangeUnderflow, e) : e.validity?.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, n.forms.messages.invalid, e) : e.validity?.rangeOverflow ? this.internals.setValidity({ rangeOverflow: !0 }, this.max ? n.forms.messages.rangeOverflowMax.replace("{max}", this.max?.toString()) : n.forms.messages.rangeOverflow, e) : e.validity?.customError ? this.internals.setValidity({ customError: !0 }, e.validationMessage, e) : this.internals.setValidity({});
|
|
478
490
|
}
|
|
479
491
|
setFormValue(e) {
|
|
480
|
-
if (this.internals)
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
492
|
+
if (this.internals) {
|
|
493
|
+
if (Array.isArray(e)) {
|
|
494
|
+
let t = new FormData();
|
|
495
|
+
e.forEach((e) => {
|
|
496
|
+
t.append(this.name, e);
|
|
497
|
+
}), this.internals.setFormValue(t);
|
|
498
|
+
} else this.internals.setFormValue(e);
|
|
499
|
+
}
|
|
486
500
|
}
|
|
487
501
|
coordinateRadioGroup() {
|
|
488
502
|
if (!this.form || !this.name || this.type !== "radio") return;
|
|
@@ -621,7 +635,13 @@ e([t({
|
|
|
621
635
|
})], $.prototype, "minlength", void 0), e([t({
|
|
622
636
|
type: Number,
|
|
623
637
|
reflect: !0
|
|
624
|
-
})], $.prototype, "step", void 0), e([t({
|
|
638
|
+
})], $.prototype, "step", void 0), e([t({
|
|
639
|
+
type: String,
|
|
640
|
+
attribute: "aria-describedby"
|
|
641
|
+
})], $.prototype, "ariaDescribedby", void 0), e([t({
|
|
642
|
+
type: String,
|
|
643
|
+
attribute: "aria-labelledby"
|
|
644
|
+
})], $.prototype, "ariaLabelledby", void 0), e([t({
|
|
625
645
|
type: String,
|
|
626
646
|
reflect: !0
|
|
627
647
|
})], $.prototype, "name", void 0), e([t({
|
|
@@ -633,10 +653,16 @@ e([t({
|
|
|
633
653
|
})], $.prototype, "placeholder", void 0), e([t({
|
|
634
654
|
type: String,
|
|
635
655
|
reflect: !0
|
|
636
|
-
})], $.prototype, "id", void 0), e([t({
|
|
656
|
+
})], $.prototype, "id", void 0), e([t({
|
|
637
657
|
type: Boolean,
|
|
638
|
-
reflect: !0,
|
|
639
658
|
converter: a
|
|
659
|
+
})], $.prototype, "counter", void 0), e([t({ type: Boolean })], $.prototype, "hasError", void 0), e([t({ type: Boolean })], $.prototype, "inline", void 0), e([t({
|
|
660
|
+
type: Boolean,
|
|
661
|
+
converter: a
|
|
662
|
+
})], $.prototype, "hasFieldset", void 0), e([t({ type: Boolean })], $.prototype, "optionalTag", void 0), e([t({ type: Boolean })], $.prototype, "requiredTag", void 0), e([t({ type: Boolean })], $.prototype, "skipForwardTestid", void 0), e([t({
|
|
663
|
+
type: Boolean,
|
|
664
|
+
reflect: !0,
|
|
665
|
+
converter: o
|
|
640
666
|
})], $.prototype, "useWrapper", void 0), e([t({
|
|
641
667
|
type: Boolean,
|
|
642
668
|
reflect: !0
|