@oslokommune/punkt-elements 19.18.1 → 19.18.3
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 +27 -0
- package/dist/{accordion-GheghzDV.js → accordion-D-mcyw_S.js} +2 -1
- package/dist/{accordion-XX12Iouj.cjs → accordion-t9p3qgCp.cjs} +1 -1
- package/dist/alert-CBW94-ku.cjs +39 -0
- package/dist/{alert-gty76GoA.js → alert-CdfTJcT2.js} +4 -3
- package/dist/{backlink-HF3DMgLc.js → backlink-D3rkJWkd.js} +1 -1
- package/dist/{backlink-CNRyH73A.cjs → backlink-GIyyoDoi.cjs} +1 -1
- package/dist/{breadcrumbs-qyZMkJtA.js → breadcrumbs-B4WdX4QR.js} +1 -1
- package/dist/{breadcrumbs-YQ1orAK_.cjs → breadcrumbs-B7U57Zey.cjs} +1 -1
- package/dist/{button-DMytp-Jt.cjs → button-DdR_XzMY.cjs} +1 -1
- package/dist/{button-Cf5ReNPj.js → button-DwcFG7bU.js} +2 -2
- package/dist/{calendar-D5xCL3xC.js → calendar-DGOwyX3o.js} +13 -15
- package/dist/{calendar-xmCeJYlb.cjs → calendar-DcenMWOQ.cjs} +2 -2
- package/dist/{card-Dc9p91TY.cjs → card-CizBnD59.cjs} +1 -1
- package/dist/{card-k-3UP5NP.js → card-D4rpTD_e.js} +4 -3
- package/dist/{checkbox-CbogvdEA.cjs → checkbox-B6BVu9BZ.cjs} +1 -1
- package/dist/{checkbox-C4faOikK.js → checkbox-BTD7bz3U.js} +2 -1
- package/dist/{checkbox-group-6vOqwCRi.js → checkbox-group-4dLJ_HTY.js} +2 -2
- package/dist/{checkbox-group-YyhtneCi.cjs → checkbox-group-CREaHr24.cjs} +1 -1
- package/dist/{combobox-hbHEJIxp.cjs → combobox-B-bdCNiE.cjs} +1 -1
- package/dist/{combobox-D0J03ikb.js → combobox-CVg5vs-l.js} +6 -6
- 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/components/loader/loader.d.ts +3 -3
- package/dist/components/modal/modal.d.ts +2 -2
- package/dist/components/tag/tag.d.ts +3 -4
- package/dist/{consent-hhwIP8m5.js → consent-Chtz1yL0.js} +2 -1
- package/dist/consent-Dhh207Zz.cjs +18 -0
- package/dist/{datepicker-ChGCD7Gf.js → datepicker-DeTZy8NM.js} +6 -6
- package/dist/{datepicker-BSQV2yhB.cjs → datepicker-DvI7BT4S.cjs} +1 -1
- package/dist/directives/slot-content.d.ts +7 -1
- package/dist/{element-with-slot-gdQbNteD.cjs → element-with-slot-B0Vp_OuR.cjs} +1 -1
- package/dist/{element-with-slot-BP-IBGq0.js → element-with-slot-Dp2Gzv-Q.js} +8 -2
- package/dist/{fileupload-CAZrdubx.js → fileupload-iGE2WK9e.js} +5 -5
- package/dist/{fileupload-BKae4SiP.cjs → fileupload-pGOXdyL0.cjs} +1 -1
- package/dist/{footer-JAQGiWJh.js → footer-D4R-9si6.js} +3 -2
- package/dist/{footer-wmH_UXCd.cjs → footer-QGnujLm9.cjs} +1 -1
- package/dist/{header-bvY1RA0W.js → header-A70TKzPE.js} +8 -7
- package/dist/{header-CB-CiwsK.cjs → header-B3TDAMMX.cjs} +1 -1
- package/dist/{header-menu-BJNxDdhj.js → header-menu-BK36mG6a.js} +3 -2
- package/dist/{header-menu-BlvU5Y1U.cjs → header-menu-CWrw01rm.cjs} +1 -1
- package/dist/{heading-CBxJ3UCj.cjs → heading--hGRDNX9.cjs} +1 -1
- package/dist/{heading-Br5s4zO0.js → heading-B1Ey3XzB.js} +1 -1
- package/dist/{helptext-B6xxUfvv.js → helptext-BXryqHy5.js} +2 -2
- package/dist/{helptext-5_uOsEMN.cjs → helptext-KrtUyA7H.cjs} +1 -1
- package/dist/{icon-D3XT49vM.js → icon-BVSiUQSL.js} +1 -0
- package/dist/icon-BsRlhXU2.cjs +1 -0
- package/dist/{input-element-DhNSPDnG.js → input-element-8mrCxToc.js} +2 -1
- package/dist/input-element-a5dcxOzs.cjs +1 -0
- package/dist/{input-wrapper-D-w6uRXZ.js → input-wrapper-7RSISZu6.js} +5 -4
- package/dist/{input-wrapper-D1RqTzm4.cjs → input-wrapper-DT9h0n2i.cjs} +1 -1
- package/dist/{link-DzWPIXm1.js → link-DL4dZoI5.js} +2 -2
- package/dist/{link-DW6O3Ko1.cjs → link-u69d_-Zh.cjs} +1 -1
- package/dist/{linkcard-EOwwQZeY.cjs → linkcard-B6N7xChn.cjs} +2 -2
- package/dist/{linkcard-Dda2K5te.js → linkcard-C_9NCgkD.js} +3 -3
- package/dist/{loader-DXKGCBqh.js → loader-DJGAd8c-.js} +9 -9
- package/dist/{loader-CnsELZFa.cjs → loader-l7CLjzgI.cjs} +8 -8
- package/dist/{messagebox-DPVRQ3PY.js → messagebox-V1Kszdop.js} +3 -2
- package/dist/{messagebox-CIgUgKhu.cjs → messagebox-YkknrtEM.cjs} +1 -1
- package/dist/{modal-Cp10a22a.cjs → modal--k988mEb.cjs} +19 -21
- package/dist/{modal-BWaMErv7.js → modal-EjPYLhS-.js} +20 -22
- package/dist/option-group-element-BEGRouXw.cjs +23 -0
- package/dist/{option-group-element-d9TouZ2M.js → option-group-element-CQViBzca.js} +3 -2
- 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-DcwERZzm.cjs → pkt-options-controller-C193xcN4.cjs} +1 -1
- package/dist/{pkt-options-controller-LiApNBoZ.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-CMwFXEMB.js → progressbar-BJswle17.js} +1 -1
- package/dist/{progressbar-eRJU41Uc.cjs → progressbar-BVeWeSLq.cjs} +1 -1
- package/dist/{radio-group-B_NEwwP7.js → radio-group-CYEnKuIM.js} +2 -2
- package/dist/{radio-group-dQrEQ1pX.cjs → radio-group-DI_5eAL4.cjs} +1 -1
- package/dist/{radiobutton-mXqSvSQE.cjs → radiobutton-Cf3ROHzB.cjs} +1 -1
- package/dist/{radiobutton-DWZ4VgYg.js → radiobutton-DY3tXJ8Z.js} +2 -1
- package/dist/{searchinput-CVpPmZAJ.cjs → searchinput-B1m241pF.cjs} +1 -1
- package/dist/{searchinput-Ca6zFqH5.js → searchinput-zxHqZ-jG.js} +1 -1
- package/dist/{select-DkO-UPUY.cjs → select-B2W70m_k.cjs} +1 -1
- package/dist/{select-DhQk3S6t.js → select-CeFVfjM-.js} +4 -4
- package/dist/shared-types/heading.d.ts +2 -1
- package/dist/shared-types/index.d.ts +2 -2
- package/dist/shared-types/size.d.ts +4 -12
- package/dist/shared-types-A6iGIX-f.js +1 -0
- package/dist/{tabs-Y2-2pD42.js → tabs-ZhYxE5fX.js} +2 -2
- package/dist/{tabs-DvVYDYVh.cjs → tabs-fXlMzPFJ.cjs} +1 -1
- package/dist/{tag-BEFxzKsm.cjs → tag-B2EEjkjD.cjs} +9 -9
- package/dist/{tag-B9GawuIf.js → tag-Bv5JRS69.js} +10 -10
- package/dist/{textarea-CEHqACey.cjs → textarea-BBo8oZA-.cjs} +1 -1
- package/dist/{textarea-S0pRMEnT.js → textarea-BOOFnUFu.js} +5 -4
- package/dist/{textinput-BdQ3FZ8R.cjs → textinput-GRYgsT0X.cjs} +1 -1
- package/dist/{textinput-DkfjnDvX.js → textinput-wzBD3Tk1.js} +4 -4
- package/dist/{timepicker-BssDur6k.cjs → timepicker-DLF0UN3M.cjs} +1 -1
- package/dist/{timepicker-DI3oiK4L.js → timepicker-x0PuqU-M.js} +4 -4
- package/dist/types/size.d.ts +2 -1
- package/package.json +5 -9
- 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/linkcard/linkcard.ts +1 -1
- package/src/components/loader/loader.ts +15 -13
- package/src/components/modal/modal.ts +33 -29
- package/src/components/tag/tag.ts +21 -25
- package/dist/alert-SQdshv-F.cjs +0 -39
- 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/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/consent-BCrPGLXe.cjs +0 -18
- 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/icon-Dk8y6odR.cjs +0 -1
- package/dist/input-element-CCV_e85v.cjs +0 -1
- package/dist/option-group-element-D_UW097C.cjs +0 -23
- 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/{base-elements/checkable-native-parity.test.d.ts → shared-types-BvRk9kiK.cjs} +0 -0
|
@@ -3,30 +3,21 @@ import { customElement, property, state } from 'lit/decorators.js'
|
|
|
3
3
|
import { html, PropertyValues } from 'lit'
|
|
4
4
|
import { PktElementWithSlot } from '@/base-elements/element-with-slot'
|
|
5
5
|
import { getSlotManager, slotContent } from '@/directives/slot-content'
|
|
6
|
-
import { TPktSize } from '@/types/size'
|
|
7
6
|
import specs from 'componentSpecs/tag.json'
|
|
8
7
|
|
|
9
8
|
import '@/components/icon'
|
|
10
|
-
import type { IAriaAttributes, THTMLButtonType } from 'shared-types'
|
|
9
|
+
import type { IAriaAttributes, THTMLButtonType, TPktSizeBase } from 'shared-types'
|
|
11
10
|
import { PktIconName } from '@oslokommune/punkt-assets/dist/icons/icon'
|
|
12
11
|
import { ifDefined } from 'lit/directives/if-defined.js'
|
|
13
12
|
import { formatString, type IPktStringsProps } from 'shared-strings'
|
|
14
13
|
|
|
15
14
|
export type TTagSkin =
|
|
16
|
-
| 'blue'
|
|
17
|
-
| 'blue-dark'
|
|
18
|
-
| 'blue-light'
|
|
19
|
-
| 'green'
|
|
20
|
-
| 'red'
|
|
21
|
-
| 'yellow'
|
|
22
|
-
| 'beige'
|
|
23
|
-
| 'gray'
|
|
24
|
-
| 'grey'
|
|
15
|
+
'blue' | 'blue-dark' | 'blue-light' | 'green' | 'red' | 'yellow' | 'beige' | 'gray' | 'grey'
|
|
25
16
|
export type TTagType = THTMLButtonType
|
|
26
17
|
|
|
27
18
|
export interface IPktTag extends IPktStringsProps<'tag'> {
|
|
28
19
|
closeTag?: boolean
|
|
29
|
-
size?:
|
|
20
|
+
size?: TPktSizeBase
|
|
30
21
|
skin?: TTagSkin
|
|
31
22
|
textStyle?: string | null
|
|
32
23
|
iconName?: PktIconName
|
|
@@ -44,7 +35,8 @@ export class PktTag extends PktElementWithSlot<IPktTag> implements IPktTag {
|
|
|
44
35
|
* Element attributes
|
|
45
36
|
*/
|
|
46
37
|
@property({ type: Boolean, reflect: true }) closeTag: boolean = specs.props.closeTag.default
|
|
47
|
-
@property({ type: String, reflect: true }) size:
|
|
38
|
+
@property({ type: String, reflect: true }) size: TPktSizeBase = specs.props.size
|
|
39
|
+
.default as TPktSizeBase
|
|
48
40
|
@property({ type: String, reflect: true }) skin: TTagSkin = specs.props.skin.default as TTagSkin
|
|
49
41
|
@property({ type: String, reflect: true }) textStyle: string | null = null
|
|
50
42
|
@property({ type: String, reflect: true }) iconName: string | undefined = undefined
|
|
@@ -118,12 +110,14 @@ export class PktTag extends PktElementWithSlot<IPktTag> implements IPktTag {
|
|
|
118
110
|
aria-label=${ifDefined(this.ariaLabel || undefined)}
|
|
119
111
|
aria-description=${ifDefined(this._ariaDescription || undefined)}
|
|
120
112
|
>
|
|
121
|
-
${
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
113
|
+
${
|
|
114
|
+
this.iconName &&
|
|
115
|
+
html`<pkt-icon
|
|
116
|
+
class="pkt-tag__icon"
|
|
117
|
+
name=${this.iconName}
|
|
118
|
+
aria-hidden="true"
|
|
119
|
+
></pkt-icon>`
|
|
120
|
+
}
|
|
127
121
|
<span>${slotContent(this)}</span>
|
|
128
122
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
129
123
|
</button>
|
|
@@ -131,12 +125,14 @@ export class PktTag extends PktElementWithSlot<IPktTag> implements IPktTag {
|
|
|
131
125
|
} else {
|
|
132
126
|
return html`
|
|
133
127
|
<span class=${classMap(classes)}>
|
|
134
|
-
${
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
128
|
+
${
|
|
129
|
+
this.iconName &&
|
|
130
|
+
html`<pkt-icon
|
|
131
|
+
class="pkt-tag__icon"
|
|
132
|
+
name=${this.iconName}
|
|
133
|
+
aria-hidden="true"
|
|
134
|
+
></pkt-icon>`
|
|
135
|
+
}
|
|
140
136
|
<span>${slotContent(this)}</span>
|
|
141
137
|
</span>
|
|
142
138
|
`
|
package/dist/alert-SQdshv-F.cjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
const e=require("./element-C6WTyJFE.cjs"),t=require("./class-map-Bh6toDeV.cjs"),n=require("./format-B8meU8Tm.cjs"),r=require("./element-with-slot-gdQbNteD.cjs");require("./icon-Dk8y6odR.cjs");const i=require("./classutils-CbklAJDe.cjs"),a=require("./define-component-spec-DBNd2FJY.cjs");require("./button-DMytp-Jt.cjs");var o=[`off`,`polite`,`assertive`],s=[`info`,`success`,`warning`,`error`],c=[`medium`,`small`,`xsmall`],l={compact:!1},u=a.t({name:`pkt-alert`,react:`PktAlert`,"css-class":`pkt-alert`,"dark-mode":!0,isElement:!0,isPureReact:!0,events:{onClose:{reactOnly:!0,description:`React: Klikk-event for 'Lukk'-knappen`},close:{elementsOnly:!0,description:`Elements: Klikk-event for 'Lukk'-knappen`},"on-close":{elementsOnly:!0,description:`Elements: Samme event som <code>close</code>, beholdt for eldre Vue-oppsett.`,deprecated:`Bruk <code>close</code>. <code>on-close</code> fjernes i en senere hovedversjon.`}},props:{title:{name:`Tittel`,description:`Tittelen som vises øverst i på meldingen`,type:`string`,category:`contents`},skin:{name:`Utseende`,description:`Hvordan type melding er dette?`,type:[...s],default:`info`,category:`ui`},date:{name:`Sist oppdatert`,description:`Dato som vises nederst i på meldingen`,type:`string`,category:`contents`},ariaLive:{name:`aria-live`,description:`Hvordan skal skjermleseren lese opp meldingen?`,type:[...o],default:`polite`,category:`accessibility`},size:{name:`Størrelse`,description:`Endrer størrelsen på ulike elementer i alerten.`,type:[...c],default:`medium`,category:`ui`},closeAlert:{name:`Vis 'Lukk'-knapp`,description:`Viser 'Lukk'-knappen`,type:`boolean`,default:!1,category:`ui`},compact:{name:`Kompakt`,description:`Kompakt visning av alerten.`,deprecated:"Bruk `size` i stedet; uten eksplisitt `size` gir compact størrelsen 'small'.",type:`boolean`,category:`ui`,default:l.compact}},slots:{default:{description:`Innholdet i meldingen`}}}),d=class extends r.t{constructor(){super(),this.compact=l.compact,this.title=``,this.skin=u.props.skin.default,this.ariaLive=u.props.ariaLive.default,this.ariaLiveAttr=null,this.closeAlert=u.props.closeAlert.default,this.date=null,this.role=`status`,this._isClosed=!1,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent(`close`,{detail:{origin:e},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(`on-close`,{detail:{origin:e},bubbles:!0,composed:!0}))},this._isClosed=!1}connectedCallback(){super.connectedCallback(),this.ariaLiveAttr=this.getAttribute(`aria-live`)||this.ariaLive}attributeChangedCallback(e,t,n){e===`ariaLive`&&(this.ariaLiveAttr=n),super.attributeChangedCallback(e,t,n)}updated(e){super.updated(e),e.has(`ariaLive`)&&e.get(`ariaLive`)!==void 0&&(this.ariaLiveAttr=this.ariaLive),e.has(`_isClosed`)&&i.t(this,`pkt-hide`,this._isClosed)}render(){let i=this.size??(this.compact?`small`:`medium`),a={"pkt-alert":!0,[`pkt-alert--${i}`]:!0,[`pkt-alert--${this.skin}`]:!0,"pkt-hide":this._isClosed},o={"pkt-alert__grid":!0,"pkt-alert__noTitle":!this.title,"pkt-alert__noDate":!this.date};return e._`
|
|
2
|
-
<div
|
|
3
|
-
class=${t.t(a)}
|
|
4
|
-
aria-live=${this.ariaLiveAttr}
|
|
5
|
-
role=${this.role}
|
|
6
|
-
>
|
|
7
|
-
<div class=${t.t(o)}>
|
|
8
|
-
<pkt-icon
|
|
9
|
-
class="pkt-alert__icon"
|
|
10
|
-
aria-hidden="true"
|
|
11
|
-
name=${this.skin===`info`?`alert-information`:`alert-${this.skin}`}
|
|
12
|
-
></pkt-icon>
|
|
13
|
-
|
|
14
|
-
${this.closeAlert?e._`
|
|
15
|
-
<div class="pkt-alert__close">
|
|
16
|
-
<pkt-button
|
|
17
|
-
tabindex="0"
|
|
18
|
-
aria-label=${this.pktStrings.get(`generic`).close}
|
|
19
|
-
size=${i}
|
|
20
|
-
type="button"
|
|
21
|
-
skin="tertiary"
|
|
22
|
-
iconName="close"
|
|
23
|
-
variant="icon-only"
|
|
24
|
-
@click=${this.close}
|
|
25
|
-
>
|
|
26
|
-
<span class="sr-only">${this.pktStrings.get(`generic`).close}</span>
|
|
27
|
-
</pkt-button>
|
|
28
|
-
</div>
|
|
29
|
-
`:e.h}
|
|
30
|
-
${this.title?e._`<div class="pkt-alert__title">${this.title}</div>`:e.h}
|
|
31
|
-
|
|
32
|
-
<div class="pkt-alert__text">${r.i(this)}</div>
|
|
33
|
-
|
|
34
|
-
${this.date?e._`<div class="pkt-alert__date">
|
|
35
|
-
${n.t(this.pktStrings.get(`alert`).lastUpdated,{date:this.date})}
|
|
36
|
-
</div>`:e.h}
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
`}};e.n([e.u({type:Boolean,reflect:!1})],d.prototype,`compact`,void 0),e.n([e.u({type:String,reflect:!0})],d.prototype,`title`,void 0),e.n([e.u({type:String,reflect:!0})],d.prototype,`skin`,void 0),e.n([e.u({type:String})],d.prototype,`ariaLive`,void 0),e.n([e.u({type:String,reflect:!0,attribute:`aria-live`})],d.prototype,`ariaLiveAttr`,void 0),e.n([e.u({type:Boolean,reflect:!0})],d.prototype,`closeAlert`,void 0),e.n([e.u({type:String,reflect:!0})],d.prototype,`date`,void 0),e.n([e.u({type:String})],d.prototype,`role`,void 0),e.n([e.u({type:String,attribute:`size`})],d.prototype,`size`,void 0),e.n([e.l()],d.prototype,`_isClosed`,void 0);try{e.d(`pkt-alert`)(d)}catch{console.warn(`Forsøker å definere <pkt-alert>, men den er allerede definert`)}var f=d;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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
|
-
}>;
|