@oslokommune/punkt-elements 19.18.0 → 19.18.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 +32 -0
- package/dist/{accordion-Cx-Gh3hc.cjs → accordion-Ea61u8Xj.cjs} +1 -1
- package/dist/{accordion-B0zAUNUV.js → accordion-gEzU_AQC.js} +1 -1
- package/dist/{alert-JnRrtTOW.js → alert-B3ify6mt.js} +3 -3
- package/dist/{alert-BRZDpVMt.cjs → alert-ByQC8-D1.cjs} +1 -1
- package/dist/{backlink-CsFeerTH.cjs → backlink-CNRyH73A.cjs} +1 -1
- package/dist/{backlink-D8Rv46lA.js → backlink-HF3DMgLc.js} +1 -1
- package/dist/{breadcrumbs-D03id_ha.cjs → breadcrumbs-YQ1orAK_.cjs} +1 -1
- package/dist/{breadcrumbs-ybOBe_op.js → breadcrumbs-qyZMkJtA.js} +1 -1
- package/dist/button-DWXtPiAA.cjs +32 -0
- package/dist/{button-ChdHZYBF.js → button-U4r2XSv4.js} +22 -25
- package/dist/{calendar-CFTrX0C5.cjs → calendar-4S_k7_KN.cjs} +2 -2
- package/dist/{calendar-BQCjUQvP.js → calendar-C8maj_iv.js} +13 -15
- package/dist/{card-COseC8ZL.cjs → card-CS0OoVjJ.cjs} +1 -1
- package/dist/{card-DSTEL8Kv.js → card-yxsQ563N.js} +3 -3
- package/dist/{checkbox-CKYNnLDh.js → checkbox-A5B82H0n.js} +1 -1
- package/dist/{checkbox-DkFswqr-.cjs → checkbox-Cj3S0xJE.cjs} +1 -1
- package/dist/{checkbox-group-1ghi5uHp.js → checkbox-group-AVOtCLSB.js} +2 -2
- package/dist/{checkbox-group-lcxR3cYR.cjs → checkbox-group-BFtLRclu.cjs} +1 -1
- package/dist/{combobox-iXYiaWbN.js → combobox-CScZtqsn.js} +6 -6
- package/dist/{combobox-CaWnlvTX.cjs → combobox-rmrzvK3U.cjs} +1 -1
- package/dist/components/accordion/accordion.d.ts +3 -3
- package/dist/components/calendar/calendar.d.ts +1 -2
- package/dist/components/datepicker/datepicker-utils.d.ts +9 -3
- package/dist/{consent-DiD0iQ5h.js → consent-JoGVWIB7.js} +1 -1
- package/dist/{consent-BwH89xk_.cjs → consent-T0-aOOEh.cjs} +1 -1
- package/dist/{datepicker-Da8SfyVG.cjs → datepicker-BOi60ruU.cjs} +3 -3
- package/dist/{datepicker-DTcow1ih.js → datepicker-C8DQaZa8.js} +134 -137
- package/dist/directives/slot-content.d.ts +7 -1
- package/dist/element-with-slot-B0Vp_OuR.cjs +1 -0
- package/dist/{element-with-slot-C0bH0T0H.js → element-with-slot-Dp2Gzv-Q.js} +113 -108
- package/dist/{fileupload-Cb1c7ul0.cjs → fileupload-Dov3DkmR.cjs} +1 -1
- package/dist/{fileupload-BNAQ9tNR.js → fileupload-jSc9M2Ok.js} +5 -5
- package/dist/{footer-BOwcLSsz.js → footer-BOIVSL59.js} +2 -2
- package/dist/{footer-Cl_Da5Iq.cjs → footer-MYZSMtmP.cjs} +1 -1
- package/dist/{header-Cwr995oK.js → header-BCpCu0HP.js} +7 -7
- package/dist/{header-CvER8wo6.cjs → header-CecwTgso.cjs} +1 -1
- package/dist/{header-menu-CsL4DZE2.js → header-menu-BEhnqxnw.js} +2 -2
- package/dist/{header-menu-D-wOwG1V.cjs → header-menu-CkZjAxHb.cjs} +1 -1
- package/dist/{heading-D4Kkb6-N.cjs → heading--hGRDNX9.cjs} +1 -1
- package/dist/{heading-DhTyaJms.js → heading-B1Ey3XzB.js} +1 -1
- package/dist/{helptext-DN0jjgVu.js → helptext-BXoDjtNs.js} +2 -2
- package/dist/{helptext-p0nwJsyf.cjs → helptext-DPqzGQeD.cjs} +1 -1
- package/dist/{icon-CLMJYuTL.js → icon-D3XT49vM.js} +7 -1
- package/dist/icon-Dk8y6odR.cjs +1 -0
- package/dist/{input-element-BOi7rBbw.cjs → input-element-BhbkMU20.cjs} +1 -1
- package/dist/{input-element-0yYtRu0p.js → input-element-JH4qPly5.js} +1 -1
- package/dist/{input-wrapper-4PTk8aX3.cjs → input-wrapper-Bekd6DGA.cjs} +1 -1
- package/dist/{input-wrapper-BSjQc4Vx.js → input-wrapper-BttEKK9G.js} +4 -4
- package/dist/{link-39EvU2ng.js → link-Cb0ufHt0.js} +2 -2
- package/dist/{link-Dj6SbcaD.cjs → link-UEoCDWe-.cjs} +1 -1
- package/dist/{linkcard-K9vvKg1u.js → linkcard-CD-tRZnz.js} +3 -3
- package/dist/{linkcard-BoQIfci8.cjs → linkcard-Dmp8DOyg.cjs} +2 -2
- package/dist/{loader-MoI2VRFr.js → loader-B0p9ZrAa.js} +2 -2
- package/dist/{loader-BRYL5kTN.cjs → loader-nd4WUR88.cjs} +1 -1
- package/dist/{messagebox-Dr-k3pnZ.js → messagebox-B-DU7T5q.js} +2 -2
- package/dist/{messagebox-CiOQUt0C.cjs → messagebox-Bx9jEw4V.cjs} +1 -1
- package/dist/{modal-DbzEnZNF.js → modal-Cv0uz8iY.js} +2 -2
- package/dist/{modal-DGiq84MG.cjs → modal-SFoXzth5.cjs} +1 -1
- package/dist/{option-group-element-DC364Rw_.js → option-group-element-16F2MJlO.js} +2 -2
- package/dist/{option-group-element-CH0sgVIl.cjs → option-group-element-DHpno4pS.cjs} +1 -1
- 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-group.cjs +1 -1
- package/dist/pkt-checkbox-group.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 +35 -35
- 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-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-D1sKTkbR.cjs → pkt-options-controller-C193xcN4.cjs} +1 -1
- package/dist/{pkt-options-controller-BikFfGcZ.js → pkt-options-controller-CH8U6zlw.js} +1 -1
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +1 -1
- package/dist/pkt-radio-group.cjs +1 -1
- package/dist/pkt-radio-group.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-t0zgEke0.js → progressbar-CMwFXEMB.js} +1 -1
- package/dist/{progressbar-CnX4fFfR.cjs → progressbar-eRJU41Uc.cjs} +1 -1
- package/dist/{radio-group-DJikniZi.js → radio-group-CO3dzdOl.js} +2 -2
- package/dist/{radio-group-XCYKqoLD.cjs → radio-group-S8Gg4Qaq.cjs} +1 -1
- package/dist/{radiobutton-PYQKVnNQ.js → radiobutton-BNsed-4-.js} +1 -1
- package/dist/{radiobutton-DgkML7sd.cjs → radiobutton-CYlly_Zk.cjs} +1 -1
- package/dist/{searchinput-Mdc9Ihld.cjs → searchinput-CVpPmZAJ.cjs} +1 -1
- package/dist/{searchinput-BzYifHBf.js → searchinput-Ca6zFqH5.js} +1 -1
- package/dist/{select-D8TC1msV.cjs → select-C74U9Tyl.cjs} +1 -1
- package/dist/{select-CorofYxz.js → select-C7r2Y7Bq.js} +4 -4
- package/dist/{tabs-B63J6MXb.cjs → tabs-BsVUzKix.cjs} +1 -1
- package/dist/{tabs-DDakCTkY.js → tabs-CxG9lgAB.js} +2 -2
- package/dist/{tag-6IPe9bwQ.cjs → tag-BfFtiV5e.cjs} +1 -1
- package/dist/{tag-BPvGZcKf.js → tag-BswfpmoV.js} +2 -2
- package/dist/{textarea-eRNStC90.js → textarea-5aOI1Qkq.js} +4 -4
- package/dist/{textarea-CjtqjgpN.cjs → textarea-VObZEvUw.cjs} +1 -1
- package/dist/{textinput-D_oEaI41.js → textinput-DABFhf0d.js} +4 -4
- package/dist/{textinput-BZPGcxZV.cjs → textinput-Wd1yRQuN.cjs} +1 -1
- package/dist/{timepicker-JBOeZg-7.js → timepicker-Bfp365j8.js} +4 -4
- package/dist/{timepicker-C0d92R8u.cjs → timepicker-Cc_7siiw.cjs} +1 -1
- package/package.json +17 -22
- package/src/components/accordion/accordion.ts +3 -3
- package/src/components/calendar/calendar.selection.test.ts +40 -0
- package/src/components/calendar/calendar.ts +5 -6
- package/src/components/consent/consent.test.ts +2 -0
- package/src/components/datepicker/datepicker-popup.ts +1 -1
- package/src/components/datepicker/datepicker-utils.ts +7 -5
- package/src/components/header/types.ts +0 -1
- package/src/components/icon/icon.test.ts +21 -0
- package/src/components/icon/icon.ts +7 -2
- package/src/components/linkcard/linkcard.ts +1 -1
- package/dist/base-elements/checkable-native-parity.test.d.ts +0 -0
- package/dist/base-elements/form-attribute.test.d.ts +0 -0
- package/dist/base-elements/form-disabled.test.d.ts +0 -0
- package/dist/base-elements/polyfill-form-value.test.d.ts +0 -0
- package/dist/button-Ca_V13cQ.cjs +0 -32
- package/dist/components/accordion/accordion.test.d.ts +0 -0
- package/dist/components/alert/alert.test.d.ts +0 -14
- package/dist/components/backlink/backlink.test.d.ts +0 -10
- package/dist/components/breadcrumbs/breadcrumbs.test.d.ts +0 -0
- package/dist/components/button/button.test.d.ts +0 -22
- package/dist/components/calendar/calendar.accessibility.test.d.ts +0 -16
- package/dist/components/calendar/calendar.constraints.test.d.ts +0 -0
- package/dist/components/calendar/calendar.core.test.d.ts +0 -0
- package/dist/components/calendar/calendar.interaction.test.d.ts +0 -0
- package/dist/components/calendar/calendar.selection.test.d.ts +0 -0
- package/dist/components/card/card.test.d.ts +0 -22
- package/dist/components/checkbox/checkbox.test.d.ts +0 -24
- package/dist/components/checkbox-group/checkbox-group.test.d.ts +0 -0
- package/dist/components/combobox/combobox.accessibility.test.d.ts +0 -0
- package/dist/components/combobox/combobox.attributes.test.d.ts +0 -0
- package/dist/components/combobox/combobox.core.test.d.ts +0 -0
- package/dist/components/combobox/combobox.interaction.test.d.ts +0 -0
- package/dist/components/combobox/combobox.preselection.test.d.ts +0 -0
- package/dist/components/combobox/combobox.selection.test.d.ts +0 -0
- package/dist/components/consent/consent.test.d.ts +0 -16
- package/dist/components/datepicker/date-tags.test.d.ts +0 -12
- package/dist/components/datepicker/datepicker-popup.test.d.ts +0 -4
- package/dist/components/datepicker/datepicker-utils.test.d.ts +0 -1
- package/dist/components/datepicker/datepicker.accessibility.test.d.ts +0 -0
- package/dist/components/datepicker/datepicker.core.test.d.ts +0 -0
- package/dist/components/datepicker/datepicker.input.test.d.ts +0 -0
- package/dist/components/datepicker/datepicker.selection.test.d.ts +0 -0
- package/dist/components/datepicker/datepicker.validation.test.d.ts +0 -0
- package/dist/components/fileupload/fileupload.test.d.ts +0 -0
- package/dist/components/footer/footer.accessibility.test.d.ts +0 -0
- package/dist/components/footer/footer.test.d.ts +0 -0
- package/dist/components/header/header-global.accessibility.test.d.ts +0 -0
- package/dist/components/header/header-global.test.d.ts +0 -0
- package/dist/components/header/header-service.accessibility.test.d.ts +0 -0
- package/dist/components/header/header-service.test.d.ts +0 -18
- package/dist/components/header/header.test.d.ts +0 -0
- package/dist/components/header-menu/header-menu.test.d.ts +0 -0
- package/dist/components/heading/heading.test.d.ts +0 -0
- package/dist/components/helptext/helptext-association.test.d.ts +0 -0
- package/dist/components/helptext/helptext.test.d.ts +0 -0
- package/dist/components/icon/icon.test.d.ts +0 -12
- package/dist/components/input-wrapper/input-wrapper.test.d.ts +0 -32
- package/dist/components/input-wrapper/tri-state.test.d.ts +0 -0
- package/dist/components/input-wrapper/wrapper-parity.test.d.ts +0 -1
- package/dist/components/link/link.test.d.ts +0 -15
- package/dist/components/linkcard/linkcard.test.d.ts +0 -9
- package/dist/components/listbox/listbox.interaction.test.d.ts +0 -10
- package/dist/components/listbox/listbox.test.d.ts +0 -10
- package/dist/components/loader/loader.test.d.ts +0 -8
- package/dist/components/messagebox/messagebox.test.d.ts +0 -8
- package/dist/components/modal/modal.test.d.ts +0 -9
- package/dist/components/progressbar/progressbar.test.d.ts +0 -8
- package/dist/components/radio-group/radio-group.test.d.ts +0 -0
- package/dist/components/radiobutton/radiobutton.test.d.ts +0 -28
- package/dist/components/searchinput/searchinput.test.d.ts +0 -0
- package/dist/components/select/select.test.d.ts +0 -23
- package/dist/components/tabs/tabs.test.d.ts +0 -0
- package/dist/components/tag/tag.test.d.ts +0 -8
- package/dist/components/textarea/textarea.test.d.ts +0 -29
- package/dist/components/textinput/textinput.test.d.ts +0 -33
- package/dist/components/timepicker/timepicker.test.d.ts +0 -25
- package/dist/directives/slot-content.test.d.ts +0 -0
- package/dist/docs/backlink.d.ts +0 -4
- package/dist/docs/components/accordion.d.ts +0 -5
- package/dist/docs/components/alert.d.ts +0 -9
- package/dist/docs/components/backlink.d.ts +0 -4
- package/dist/docs/components/breadcrumbs.d.ts +0 -8
- package/dist/docs/components/button.d.ts +0 -10
- package/dist/docs/components/calendar.d.ts +0 -4
- package/dist/docs/components/card.d.ts +0 -27
- package/dist/docs/components/checkbox-group.d.ts +0 -13
- package/dist/docs/components/checkbox.d.ts +0 -8
- package/dist/docs/components/combobox.d.ts +0 -11
- package/dist/docs/components/comboboxdemo.d.ts +0 -4
- package/dist/docs/components/consent.d.ts +0 -4
- package/dist/docs/components/datepicker.d.ts +0 -4
- package/dist/docs/components/datepickermultiple.d.ts +0 -4
- package/dist/docs/components/event-log.d.ts +0 -20
- package/dist/docs/components/fileupload.d.ts +0 -28
- package/dist/docs/components/footer.d.ts +0 -9
- package/dist/docs/components/form-sizes.d.ts +0 -10
- package/dist/docs/components/form.d.ts +0 -9
- package/dist/docs/components/header-full.d.ts +0 -36
- package/dist/docs/components/header-global-full.d.ts +0 -20
- package/dist/docs/components/header-global.d.ts +0 -14
- package/dist/docs/components/header-menu.d.ts +0 -8
- package/dist/docs/components/header.d.ts +0 -18
- package/dist/docs/components/heading.d.ts +0 -12
- package/dist/docs/components/icon.d.ts +0 -4
- package/dist/docs/components/input-wrapper.d.ts +0 -4
- package/dist/docs/components/link.d.ts +0 -4
- package/dist/docs/components/linkcard.d.ts +0 -4
- package/dist/docs/components/loader.d.ts +0 -10
- package/dist/docs/components/messagebox.d.ts +0 -4
- package/dist/docs/components/modal.d.ts +0 -24
- package/dist/docs/components/progressbar.d.ts +0 -9
- package/dist/docs/components/radio-checkbox-sizes.d.ts +0 -10
- package/dist/docs/components/radio-group.d.ts +0 -13
- package/dist/docs/components/radiobutton.d.ts +0 -12
- package/dist/docs/components/searchinput.d.ts +0 -17
- package/dist/docs/components/select.d.ts +0 -13
- package/dist/docs/components/slot-internals.d.ts +0 -14
- package/dist/docs/components/slots.d.ts +0 -37
- package/dist/docs/components/switch.d.ts +0 -4
- package/dist/docs/components/tabs.d.ts +0 -35
- package/dist/docs/components/tag.d.ts +0 -4
- package/dist/docs/components/textarea.d.ts +0 -4
- package/dist/docs/components/textinput.d.ts +0 -5
- package/dist/docs/components/timepicker.d.ts +0 -4
- package/dist/docs/components/verifisering.d.ts +0 -15
- package/dist/docs/header.d.ts +0 -14
- package/dist/docs/punkt-docs.d.ts +0 -15
- package/dist/docs/tableOfContents.d.ts +0 -15
- package/dist/element-with-slot-DkyaNnm0.cjs +0 -1
- package/dist/icon-jPhyZD1z.cjs +0 -1
- package/dist/tests/component-registry.d.ts +0 -72
- package/dist/tests/option-contexts.d.ts +0 -7
- package/dist/tests/strings-override.test.d.ts +0 -0
- package/dist/tests/test-framework.d.ts +0 -29
package/dist/button-Ca_V13cQ.cjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const e=require("./element-C6WTyJFE.cjs"),t=require("./class-map-Bh6toDeV.cjs"),n=require("./element-with-slot-DkyaNnm0.cjs");require("./icon-jPhyZD1z.cjs");const r=require("./if-defined-CiML3MTM.cjs");var i=`https://punkt-cdn.oslo.kommune.no/latest/animations/`;typeof window<`u`&&(window.pktAnimationPath=window.pktAnimationPath||i);var a=class a extends n.t{constructor(...e){super(...e),this.iconName=`user`,this.secondIconName=`user`,this.size=`medium`,this.fullWidth=!1,this.fullWidthOnMobile=!1,this.skin=`primary`,this.variant=`label-only`,this.state=void 0,this.type=`button`,this.form=void 0,this.isLoading=!1,this.disabled=!1,this.loadingAnimationPath=typeof window<`u`?window.pktAnimationPath:i,this.relocatedAria={}}connectedCallback(){super.connectedCallback(),this.addEventListener(`click`,e=>{(this.disabled||this.hasAttribute(`disabled`)||this.isLoading)&&(e.preventDefault(),e.stopImmediatePropagation())},!0),this.addEventListener(`keydown`,e=>{(this.disabled||this.hasAttribute(`disabled`)||this.isLoading)&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopImmediatePropagation())},!0)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),e===`disabled`&&n===`false`&&(this.disabled=!1),(e===`isloading`||e===`isLoading`)&&n===`false`&&(this.isLoading=!1)}static{this.relocatedAriaAttributes=[`aria-haspopup`,`aria-expanded`,`aria-controls`,`aria-label`,`tabindex`]}willUpdate(e){super.willUpdate(e);let t=!1,n={...this.relocatedAria};for(let e of a.relocatedAriaAttributes){let r=this.getAttribute(e);r!==null&&(n[e]=r,this.removeAttribute(e),t=!0)}t&&(this.relocatedAria=n)}firstUpdated(e){super.firstUpdated(e),this.disabled===`false`&&(this.disabled=!1),this.isLoading===`false`&&(this.isLoading=!1)}render(){let i=this.form??this.getAttribute(`form`)??void 0,a={"pkt-btn":!0,[`pkt-btn--${this.size}`]:!!this.size,[`pkt-btn--${this.skin}`]:!!this.skin,[`pkt-btn--${this.variant}`]:!!this.variant,[`pkt-btn--${this.color}`]:!!this.color,[`pkt-btn--${this.state}`]:!!this.state,"pkt-btn--full":!!this.fullWidth,"pkt-btn--full-small":!!this.fullWidthOnMobile,"pkt-btn--isLoading":!!this.isLoading};return e._`
|
|
2
|
-
<button
|
|
3
|
-
class=${t.t(a)}
|
|
4
|
-
type=${this.type}
|
|
5
|
-
?disabled=${!!this.disabled}
|
|
6
|
-
aria-busy=${r.t(this.isLoading?`true`:void 0)}
|
|
7
|
-
aria-disabled=${r.t(this.disabled||this.isLoading?`true`:void 0)}
|
|
8
|
-
aria-haspopup=${r.t(this.relocatedAria[`aria-haspopup`])}
|
|
9
|
-
aria-expanded=${r.t(this.relocatedAria[`aria-expanded`])}
|
|
10
|
-
aria-controls=${r.t(this.relocatedAria[`aria-controls`])}
|
|
11
|
-
aria-label=${r.t(this.relocatedAria[`aria-label`])}
|
|
12
|
-
tabindex=${r.t(this.relocatedAria.tabindex)}
|
|
13
|
-
form=${r.t(i)}
|
|
14
|
-
>
|
|
15
|
-
${this.isLoading?e._`<pkt-icon
|
|
16
|
-
class="pkt-btn__icon pkt-btn__spinner"
|
|
17
|
-
name="spinner-blue"
|
|
18
|
-
path=${r.t(this.loadingAnimationPath)}
|
|
19
|
-
></pkt-icon>`:e.h}
|
|
20
|
-
${this.variant===`label-only`?e.h:e._`<pkt-icon
|
|
21
|
-
class="pkt-btn__icon pkt-icon"
|
|
22
|
-
name=${this.iconName}
|
|
23
|
-
path=${r.t(this.iconPath)}
|
|
24
|
-
></pkt-icon>`}
|
|
25
|
-
<span class="pkt-btn__text">${n.i(this)}</span>
|
|
26
|
-
${this.variant===`icons-right-and-left`?e._`<pkt-icon
|
|
27
|
-
class="pkt-btn__icon"
|
|
28
|
-
name=${this.secondIconName}
|
|
29
|
-
path=${r.t(this.secondIconPath)}
|
|
30
|
-
></pkt-icon>`:e.h}
|
|
31
|
-
</button>
|
|
32
|
-
`}};e.n([e.u({type:String})],a.prototype,`iconName`,void 0),e.n([e.u({type:String})],a.prototype,`secondIconName`,void 0),e.n([e.u({type:String})],a.prototype,`iconPath`,void 0),e.n([e.u({type:String})],a.prototype,`secondIconPath`,void 0),e.n([e.u({type:String})],a.prototype,`size`,void 0),e.n([e.u({type:Boolean,attribute:`full-width`})],a.prototype,`fullWidth`,void 0),e.n([e.u({type:Boolean,attribute:`full-width-on-mobile`})],a.prototype,`fullWidthOnMobile`,void 0),e.n([e.u({type:String})],a.prototype,`color`,void 0),e.n([e.u({type:String})],a.prototype,`skin`,void 0),e.n([e.u({type:String})],a.prototype,`variant`,void 0),e.n([e.u({type:String,reflect:!0})],a.prototype,`state`,void 0),e.n([e.u({type:String,reflect:!0})],a.prototype,`type`,void 0),e.n([e.u({type:String})],a.prototype,`form`,void 0),e.n([e.u({type:Boolean,reflect:!0})],a.prototype,`isLoading`,void 0),e.n([e.u({type:Boolean,reflect:!0})],a.prototype,`disabled`,void 0),e.n([e.u({type:String})],a.prototype,`loadingAnimationPath`,void 0),e.n([e.l()],a.prototype,`relocatedAria`,void 0);try{e.d(`pkt-button`)(a)}catch{console.warn(`Forsøker å definere <pkt-button>, men den er allerede definert`)}var o=a;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
File without changes
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface AlertTestConfig extends BaseTestConfig {
|
|
3
|
-
skin?: string;
|
|
4
|
-
compact?: boolean;
|
|
5
|
-
title?: string;
|
|
6
|
-
date?: string;
|
|
7
|
-
closeAlert?: boolean;
|
|
8
|
-
ariaLive?: string;
|
|
9
|
-
size?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const createAlertTest: (config?: AlertTestConfig) => Promise<{
|
|
12
|
-
container: HTMLElement;
|
|
13
|
-
alert: import('./alert').PktAlert;
|
|
14
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface BacklinkTestConfig extends BaseTestConfig {
|
|
3
|
-
href?: string;
|
|
4
|
-
text?: string;
|
|
5
|
-
ariaLabel?: string | null;
|
|
6
|
-
}
|
|
7
|
-
export declare const createBacklinkTest: (config?: BacklinkTestConfig) => Promise<{
|
|
8
|
-
container: HTMLElement;
|
|
9
|
-
backlink: import('./backlink').PktBackLink;
|
|
10
|
-
}>;
|
|
File without changes
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface ButtonTestConfig extends BaseTestConfig {
|
|
3
|
-
size?: string;
|
|
4
|
-
skin?: string;
|
|
5
|
-
variant?: string;
|
|
6
|
-
color?: string;
|
|
7
|
-
type?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
iconName?: string;
|
|
11
|
-
iconNameSecond?: string;
|
|
12
|
-
iconPath?: string;
|
|
13
|
-
secondIconPath?: string;
|
|
14
|
-
iconPosition?: string;
|
|
15
|
-
mode?: string;
|
|
16
|
-
form?: string;
|
|
17
|
-
content?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const createButtonTest: (config?: ButtonTestConfig) => Promise<{
|
|
20
|
-
container: HTMLElement;
|
|
21
|
-
button: import('./button').PktButton;
|
|
22
|
-
}>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface CalendarTestConfig extends BaseTestConfig {
|
|
3
|
-
withcontrols?: boolean;
|
|
4
|
-
weeknumbers?: boolean;
|
|
5
|
-
multiple?: boolean;
|
|
6
|
-
range?: boolean;
|
|
7
|
-
earliest?: string;
|
|
8
|
-
latest?: string;
|
|
9
|
-
currentmonth?: string;
|
|
10
|
-
excludedates?: string;
|
|
11
|
-
excludeweekdays?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const createCalendarTest: (config?: CalendarTestConfig) => Promise<{
|
|
14
|
-
container: HTMLElement;
|
|
15
|
-
calendar: import('./calendar').PktCalendar;
|
|
16
|
-
}>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface CardTestConfig extends BaseTestConfig {
|
|
3
|
-
skin?: string;
|
|
4
|
-
layout?: string;
|
|
5
|
-
padding?: string;
|
|
6
|
-
borderOnHover?: boolean;
|
|
7
|
-
heading?: string;
|
|
8
|
-
subheading?: string;
|
|
9
|
-
headingLevel?: number;
|
|
10
|
-
href?: string;
|
|
11
|
-
linkText?: string;
|
|
12
|
-
image?: string;
|
|
13
|
-
imageAlt?: string;
|
|
14
|
-
tags?: string;
|
|
15
|
-
metaPrefix?: string;
|
|
16
|
-
metaLabel?: string;
|
|
17
|
-
metaDate?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const createCardTest: (config?: CardTestConfig) => Promise<{
|
|
20
|
-
container: HTMLElement;
|
|
21
|
-
card: import('./card').PktCard;
|
|
22
|
-
}>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface CheckboxTestConfig extends BaseTestConfig {
|
|
3
|
-
id?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
checked?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
value?: string;
|
|
10
|
-
checkHelptext?: string;
|
|
11
|
-
hasTile?: boolean;
|
|
12
|
-
hasError?: boolean;
|
|
13
|
-
errorMessage?: string;
|
|
14
|
-
optionalTag?: boolean;
|
|
15
|
-
requiredTag?: boolean;
|
|
16
|
-
tagText?: string;
|
|
17
|
-
labelPosition?: string;
|
|
18
|
-
hideLabel?: boolean;
|
|
19
|
-
isSwitch?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const createCheckboxTest: (config?: CheckboxTestConfig) => Promise<{
|
|
22
|
-
container: HTMLElement;
|
|
23
|
-
checkbox: import('./checkbox').PktCheckbox;
|
|
24
|
-
}>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface ConsentTestConfig extends BaseTestConfig {
|
|
3
|
-
devMode?: boolean;
|
|
4
|
-
googleAnalyticsId?: string;
|
|
5
|
-
hotjarId?: string;
|
|
6
|
-
cookieDomain?: string;
|
|
7
|
-
cookieSecure?: string;
|
|
8
|
-
cookieExpiryDays?: string;
|
|
9
|
-
triggerType?: string;
|
|
10
|
-
triggerText?: string;
|
|
11
|
-
i18nLanguage?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const createConsentTest: (config?: ConsentTestConfig) => Promise<{
|
|
14
|
-
container: HTMLElement;
|
|
15
|
-
consent: import('./consent').PktConsent;
|
|
16
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { PktDateTags } from './date-tags';
|
|
3
|
-
export interface IDateTagsTest extends BaseTestConfig {
|
|
4
|
-
dates?: string[];
|
|
5
|
-
idBase?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
dateformat?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const createDateTagsTest: (config?: IDateTagsTest) => Promise<{
|
|
10
|
-
container: HTMLElement;
|
|
11
|
-
dateTags: PktDateTags;
|
|
12
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface HeaderServiceTestConfig extends BaseTestConfig {
|
|
3
|
-
'service-name'?: string;
|
|
4
|
-
'service-link'?: string;
|
|
5
|
-
'logo-link'?: string;
|
|
6
|
-
compact?: boolean;
|
|
7
|
-
'hide-logo'?: boolean;
|
|
8
|
-
position?: 'fixed' | 'sticky' | 'relative';
|
|
9
|
-
'scroll-behavior'?: 'hide' | 'none';
|
|
10
|
-
'show-search'?: boolean;
|
|
11
|
-
'search-placeholder'?: string;
|
|
12
|
-
'search-value'?: string;
|
|
13
|
-
'log-out-button-placement'?: 'userMenu' | 'header' | 'both' | 'none';
|
|
14
|
-
'can-change-representation'?: boolean;
|
|
15
|
-
'opened-menu'?: 'none' | 'slot' | 'search' | 'user';
|
|
16
|
-
'mobile-breakpoint'?: number;
|
|
17
|
-
'tablet-breakpoint'?: number;
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { PktIcon } from './icon';
|
|
3
|
-
export interface IconTestConfig extends BaseTestConfig {
|
|
4
|
-
name?: string;
|
|
5
|
-
path?: string;
|
|
6
|
-
'aria-hidden'?: string;
|
|
7
|
-
'aria-label'?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const createIconTest: (config?: IconTestConfig) => Promise<{
|
|
10
|
-
container: HTMLElement;
|
|
11
|
-
icon: PktIcon;
|
|
12
|
-
}>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface InputWrapperTestConfig extends BaseTestConfig {
|
|
3
|
-
label?: string;
|
|
4
|
-
helptext?: string;
|
|
5
|
-
errorMessage?: string;
|
|
6
|
-
hasError?: boolean;
|
|
7
|
-
counter?: boolean;
|
|
8
|
-
counterCurrent?: number;
|
|
9
|
-
counterMaxLength?: number;
|
|
10
|
-
counterError?: boolean;
|
|
11
|
-
inline?: boolean;
|
|
12
|
-
useWrapper?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
optionalTag?: boolean;
|
|
15
|
-
requiredTag?: boolean;
|
|
16
|
-
hasFieldset?: boolean;
|
|
17
|
-
inFieldset?: boolean;
|
|
18
|
-
readonly?: boolean;
|
|
19
|
-
forId?: string;
|
|
20
|
-
ariaDescribedBy?: string;
|
|
21
|
-
helptextDropdown?: string;
|
|
22
|
-
helptextDropdownButton?: string;
|
|
23
|
-
optionalText?: string;
|
|
24
|
-
requiredText?: string;
|
|
25
|
-
tagText?: string;
|
|
26
|
-
role?: string;
|
|
27
|
-
size?: 'small' | 'medium' | 'xsmall';
|
|
28
|
-
}
|
|
29
|
-
export declare const createInputWrapperTest: (config?: InputWrapperTestConfig) => Promise<{
|
|
30
|
-
container: HTMLElement;
|
|
31
|
-
wrapper: import('./input-wrapper').PktInputWrapper;
|
|
32
|
-
}>;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface LinkTestConfig extends BaseTestConfig {
|
|
3
|
-
href?: string;
|
|
4
|
-
target?: string;
|
|
5
|
-
skin?: string;
|
|
6
|
-
variant?: string;
|
|
7
|
-
iconName?: string;
|
|
8
|
-
iconPosition?: string;
|
|
9
|
-
openInNewTab?: boolean;
|
|
10
|
-
external?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const createLinkTest: (config?: LinkTestConfig) => Promise<{
|
|
13
|
-
container: HTMLElement;
|
|
14
|
-
link: import('./link').PktLink;
|
|
15
|
-
}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { PktLinkCard, IPktLinkCard } from './linkcard';
|
|
3
|
-
export interface LinkCardTestConfig extends IPktLinkCard, BaseTestConfig {
|
|
4
|
-
}
|
|
5
|
-
export declare const createLinkCardTest: (config?: LinkCardTestConfig) => Promise<{
|
|
6
|
-
container: HTMLElement;
|
|
7
|
-
linkCard: PktLinkCard;
|
|
8
|
-
link: HTMLAnchorElement;
|
|
9
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { IPktListbox } from './listbox';
|
|
3
|
-
export interface ListboxTestConfig extends Partial<IPktListbox>, BaseTestConfig {
|
|
4
|
-
label?: string;
|
|
5
|
-
id?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const createListboxTest: (config?: ListboxTestConfig) => Promise<{
|
|
8
|
-
container: HTMLElement;
|
|
9
|
-
listbox: import('./listbox').PktListbox;
|
|
10
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { IPktListbox } from './listbox';
|
|
3
|
-
export interface ListboxTestConfig extends Partial<IPktListbox>, BaseTestConfig {
|
|
4
|
-
label?: string;
|
|
5
|
-
id?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const createListboxTest: (config?: ListboxTestConfig) => Promise<{
|
|
8
|
-
container: HTMLElement;
|
|
9
|
-
listbox: import('./listbox').PktListbox;
|
|
10
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { IPktLoader } from './loader';
|
|
3
|
-
export interface LoaderTestConfig extends Partial<IPktLoader>, BaseTestConfig {
|
|
4
|
-
}
|
|
5
|
-
export declare const createLoaderTest: (config?: LoaderTestConfig) => Promise<{
|
|
6
|
-
container: HTMLElement;
|
|
7
|
-
loader: import('./loader').PktLoader;
|
|
8
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { IPktMessagebox } from './messagebox';
|
|
3
|
-
export interface MessageboxTestConfig extends Partial<IPktMessagebox>, BaseTestConfig {
|
|
4
|
-
}
|
|
5
|
-
export declare const createMessageboxTest: (config?: MessageboxTestConfig) => Promise<{
|
|
6
|
-
container: HTMLElement;
|
|
7
|
-
messagebox: import('./messagebox').PktMessagebox;
|
|
8
|
-
}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { IPktModal } from './modal';
|
|
3
|
-
export interface ModalTestConfig extends IPktModal, BaseTestConfig {
|
|
4
|
-
}
|
|
5
|
-
export declare const createModalTest: (config?: ModalTestConfig) => Promise<{
|
|
6
|
-
container: HTMLElement;
|
|
7
|
-
modal: import('./modal').PktModal;
|
|
8
|
-
heading: Element | null;
|
|
9
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { IPktProgressbar } from './progressbar';
|
|
3
|
-
export interface ProgressbarTestConfig extends Partial<IPktProgressbar>, BaseTestConfig {
|
|
4
|
-
}
|
|
5
|
-
export declare const createProgressbarTest: (config?: ProgressbarTestConfig) => Promise<{
|
|
6
|
-
container: HTMLElement;
|
|
7
|
-
progressbar: import('./progressbar').PktProgressbar;
|
|
8
|
-
}>;
|
|
File without changes
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface RadioButtonTestConfig extends BaseTestConfig {
|
|
3
|
-
value?: string;
|
|
4
|
-
checkHelptext?: string | null;
|
|
5
|
-
defaultChecked?: boolean;
|
|
6
|
-
hasTile?: boolean;
|
|
7
|
-
checked?: boolean | string | null;
|
|
8
|
-
type?: string;
|
|
9
|
-
tagText?: string | null;
|
|
10
|
-
optionalTag?: boolean;
|
|
11
|
-
optionalText?: string;
|
|
12
|
-
requiredTag?: boolean;
|
|
13
|
-
requiredText?: string;
|
|
14
|
-
id?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
label?: string;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
readonly?: boolean;
|
|
19
|
-
required?: boolean;
|
|
20
|
-
hasError?: boolean;
|
|
21
|
-
inline?: boolean;
|
|
22
|
-
ariaDescribedBy?: string | null;
|
|
23
|
-
ariaLabelledby?: string | null;
|
|
24
|
-
}
|
|
25
|
-
export declare const createRadioButtonTest: (config?: RadioButtonTestConfig) => Promise<{
|
|
26
|
-
container: HTMLElement;
|
|
27
|
-
radiobutton: import('./radiobutton').PktRadioButton;
|
|
28
|
-
}>;
|
|
File without changes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { IPktSelect } from './select';
|
|
3
|
-
import { Booleanish } from '../../shared-types';
|
|
4
|
-
export interface SelectTestConfig extends Partial<IPktSelect>, BaseTestConfig {
|
|
5
|
-
id?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
hasError?: boolean;
|
|
10
|
-
errorMessage?: string;
|
|
11
|
-
helptext?: string;
|
|
12
|
-
fullwidth?: boolean;
|
|
13
|
-
'aria-labelledby'?: string | null;
|
|
14
|
-
'aria-describedby'?: string | null;
|
|
15
|
-
counter?: boolean;
|
|
16
|
-
inline?: boolean;
|
|
17
|
-
useWrapper?: Booleanish;
|
|
18
|
-
'input-size'?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const createSelectTest: (config?: SelectTestConfig) => Promise<{
|
|
21
|
-
container: HTMLElement;
|
|
22
|
-
select: import('./select').PktSelect;
|
|
23
|
-
}>;
|
|
File without changes
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { IPktTag } from './tag';
|
|
3
|
-
export interface TagTestConfig extends Partial<IPktTag>, BaseTestConfig {
|
|
4
|
-
}
|
|
5
|
-
export declare const createTagTest: (config?: TagTestConfig) => Promise<{
|
|
6
|
-
container: HTMLElement;
|
|
7
|
-
tag: import('./tag').PktTag;
|
|
8
|
-
}>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { TPktInputSize } from '../../shared-types/size';
|
|
3
|
-
export interface TextareaTestConfig extends BaseTestConfig {
|
|
4
|
-
value?: string;
|
|
5
|
-
autocomplete?: string;
|
|
6
|
-
rows?: number | null;
|
|
7
|
-
id?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
readonly?: boolean;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
placeholder?: string | null;
|
|
14
|
-
maxlength?: number | null;
|
|
15
|
-
minlength?: number | null;
|
|
16
|
-
hasError?: boolean;
|
|
17
|
-
errorMessage?: string;
|
|
18
|
-
helptext?: string;
|
|
19
|
-
fullwidth?: boolean;
|
|
20
|
-
counter?: boolean;
|
|
21
|
-
inline?: boolean;
|
|
22
|
-
'aria-labelledby'?: string | null;
|
|
23
|
-
'aria-describedby'?: string | null;
|
|
24
|
-
inputSize?: TPktInputSize;
|
|
25
|
-
}
|
|
26
|
-
export declare const createTextareaTest: (config?: TextareaTestConfig) => Promise<{
|
|
27
|
-
container: HTMLElement;
|
|
28
|
-
textarea: import('./textarea').PktTextarea;
|
|
29
|
-
}>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
export interface TextinputTestConfig extends BaseTestConfig {
|
|
3
|
-
type?: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
autocomplete?: string | null;
|
|
6
|
-
iconNameRight?: string | null;
|
|
7
|
-
prefix?: string | null;
|
|
8
|
-
suffix?: string | null;
|
|
9
|
-
size?: number | null;
|
|
10
|
-
omitSearchIcon?: boolean;
|
|
11
|
-
'input-size'?: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
label?: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
readonly?: boolean;
|
|
17
|
-
required?: boolean;
|
|
18
|
-
placeholder?: string | null;
|
|
19
|
-
maxlength?: number | null;
|
|
20
|
-
minlength?: number | null;
|
|
21
|
-
hasError?: boolean;
|
|
22
|
-
errorMessage?: string;
|
|
23
|
-
helptext?: string;
|
|
24
|
-
fullwidth?: boolean;
|
|
25
|
-
counter?: boolean;
|
|
26
|
-
inline?: boolean;
|
|
27
|
-
'aria-labelledby'?: string | null;
|
|
28
|
-
'aria-describedby'?: string | null;
|
|
29
|
-
}
|
|
30
|
-
export declare const createTextinputTest: (config?: TextinputTestConfig) => Promise<{
|
|
31
|
-
container: HTMLElement;
|
|
32
|
-
textinput: import('./textinput').PktTextinput;
|
|
33
|
-
}>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseTestConfig } from '../../tests/test-framework';
|
|
2
|
-
import { TPktInputSize } from '../../shared-types/size';
|
|
3
|
-
export interface TimepickerTestConfig extends BaseTestConfig {
|
|
4
|
-
value?: string;
|
|
5
|
-
min?: string;
|
|
6
|
-
max?: string;
|
|
7
|
-
step?: number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
label?: string;
|
|
11
|
-
'hide-picker'?: boolean;
|
|
12
|
-
'step-arrows'?: boolean;
|
|
13
|
-
fullwidth?: boolean;
|
|
14
|
-
hasError?: boolean;
|
|
15
|
-
errorMessage?: string;
|
|
16
|
-
helptext?: string;
|
|
17
|
-
id?: string;
|
|
18
|
-
name?: string;
|
|
19
|
-
inputSize?: TPktInputSize;
|
|
20
|
-
'input-size'?: TPktInputSize;
|
|
21
|
-
}
|
|
22
|
-
export declare const createTimepickerTest: (config?: TimepickerTestConfig) => Promise<{
|
|
23
|
-
container: HTMLElement;
|
|
24
|
-
timepicker: import('./timepicker').PktTimepicker;
|
|
25
|
-
}>;
|
|
File without changes
|
package/dist/docs/backlink.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PktElement } from '../../base-elements/element';
|
|
2
|
-
export declare class Alert extends PktElement {
|
|
3
|
-
skins: ("info" | "success" | "warning" | "error")[];
|
|
4
|
-
sizes: ("small" | "medium" | "xsmall")[];
|
|
5
|
-
shortMessage: string;
|
|
6
|
-
content: string;
|
|
7
|
-
private onClose;
|
|
8
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PktElement } from '../../base-elements/element';
|
|
2
|
-
export declare class Breadcrumbs extends PktElement {
|
|
3
|
-
private lastNavigated;
|
|
4
|
-
private breadcrumbs;
|
|
5
|
-
private shortBreadcrumbs;
|
|
6
|
-
private handleNavigate;
|
|
7
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
8
|
-
}
|