@oslokommune/punkt-elements 13.6.10 → 13.6.11
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
CHANGED
|
@@ -5,6 +5,23 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [13.6.11](https://github.com/oslokommune/punkt/compare/13.6.10...13.6.11) (2025-10-01)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
Ingen
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
|
|
8
25
|
## [13.6.8](https://github.com/oslokommune/punkt/compare/13.6.7...13.6.8) (2025-09-23)
|
|
9
26
|
|
|
10
27
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -505,7 +505,7 @@ export declare class PktCard extends PktElement implements IPktCard {
|
|
|
505
505
|
renderMetadata(): TemplateResult<1>;
|
|
506
506
|
}
|
|
507
507
|
|
|
508
|
-
export declare class PktCheckbox extends PktInputElement {
|
|
508
|
+
export declare class PktCheckbox extends PktInputElement<Props_3> {
|
|
509
509
|
private inputRef;
|
|
510
510
|
value: string;
|
|
511
511
|
checkHelptext: string | null;
|
|
@@ -657,7 +657,7 @@ export declare class PktConsent extends PktElement<IPktConsent> implements IPktC
|
|
|
657
657
|
render(): TemplateResult<1>;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
export declare class PktDatepicker extends PktInputElement {
|
|
660
|
+
export declare class PktDatepicker extends PktInputElement<Props_4> {
|
|
661
661
|
/**
|
|
662
662
|
* Element attributes and properties
|
|
663
663
|
*/
|
|
@@ -781,7 +781,7 @@ export declare class PktHelptext extends PktElement {
|
|
|
781
781
|
render(): TemplateResult<1>;
|
|
782
782
|
}
|
|
783
783
|
|
|
784
|
-
export declare class PktIcon extends PktElement<
|
|
784
|
+
export declare class PktIcon extends PktElement<Props_5> {
|
|
785
785
|
path: string | undefined;
|
|
786
786
|
name: PktIconName;
|
|
787
787
|
private icon;
|
|
@@ -849,7 +849,7 @@ declare class PktInputElement<T = {}> extends PktElement<Props_2 & T> {
|
|
|
849
849
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
export declare class PktInputWrapper extends PktElement<
|
|
852
|
+
export declare class PktInputWrapper extends PktElement<Props_6> {
|
|
853
853
|
defaultSlot: Ref<HTMLElement>;
|
|
854
854
|
helptextSlot: Ref<HTMLElement>;
|
|
855
855
|
constructor();
|
|
@@ -1042,7 +1042,7 @@ export declare class PktProgressbar extends PktElement implements IPktProgressba
|
|
|
1042
1042
|
private _handleAttribute;
|
|
1043
1043
|
}
|
|
1044
1044
|
|
|
1045
|
-
declare class PktRadioButton extends PktInputElement {
|
|
1045
|
+
declare class PktRadioButton extends PktInputElement<Props_7> {
|
|
1046
1046
|
private inputRef;
|
|
1047
1047
|
value: string;
|
|
1048
1048
|
checkHelptext: string | null;
|
|
@@ -1162,7 +1162,7 @@ export declare class PktTag extends PktElement<IPktTag> implements IPktTag {
|
|
|
1162
1162
|
render(): TemplateResult<1>;
|
|
1163
1163
|
}
|
|
1164
1164
|
|
|
1165
|
-
export declare class PktTextarea extends PktInputElement {
|
|
1165
|
+
export declare class PktTextarea extends PktInputElement<Props_8> {
|
|
1166
1166
|
private inputRef;
|
|
1167
1167
|
private helptextSlot;
|
|
1168
1168
|
value: string;
|
|
@@ -1175,7 +1175,7 @@ export declare class PktTextarea extends PktInputElement {
|
|
|
1175
1175
|
render(): TemplateResult<1>;
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
|
-
export declare class PktTextinput extends PktInputElement<
|
|
1178
|
+
export declare class PktTextinput extends PktInputElement<Props_9> {
|
|
1179
1179
|
private inputRef;
|
|
1180
1180
|
private helptextSlot;
|
|
1181
1181
|
value: string;
|
|
@@ -1197,11 +1197,19 @@ declare type Props = ElementProps<PktElement, 'strings' | 'role'>;
|
|
|
1197
1197
|
|
|
1198
1198
|
declare type Props_2 = ElementProps<PktInputElement, 'defaultValue' | 'disabled' | 'readonly' | 'required' | 'max' | 'maxlength' | 'min' | 'minlength' | 'ariaDescribedBy' | 'ariaLabelledby' | 'name' | 'pattern' | 'placeholder' | 'id' | 'counter' | 'hasError' | 'hasFieldset' | 'inline' | 'optionalTag' | 'requiredTag' | 'skipForwardTestid' | 'useWrapper' | 'fullwidth' | 'counterMaxLength' | 'errorMessage' | 'helptext' | 'helptextDropdown' | 'helptextDropdownButton' | 'label' | 'optionalText' | 'requiredText' | 'dataTestid'>;
|
|
1199
1199
|
|
|
1200
|
-
declare type Props_3 = ElementProps<
|
|
1200
|
+
declare type Props_3 = ElementProps<PktCheckbox, 'checkHelptext' | 'defaultChecked' | 'hasTile' | 'isSwitch' | 'labelPosition' | 'hideLabel' | 'tagText' | 'optionalTag' | 'optionalText' | 'requiredTag' | 'requiredText'>;
|
|
1201
1201
|
|
|
1202
|
-
declare type Props_4 = ElementProps<
|
|
1202
|
+
declare type Props_4 = ElementProps<PktDatepicker, 'label' | 'dateformat' | 'multiple' | 'maxlength' | 'range' | 'showRangeLabels' | 'min' | 'max' | 'weeknumbers' | 'withcontrols' | 'excludedates' | 'excludeweekdays' | 'currentmonth' | 'calendarOpen' | 'timezone'>;
|
|
1203
1203
|
|
|
1204
|
-
declare type Props_5 = ElementProps<
|
|
1204
|
+
declare type Props_5 = ElementProps<PktIcon, 'path' | 'name'>;
|
|
1205
|
+
|
|
1206
|
+
declare type Props_6 = ElementProps<PktInputWrapper, 'forId' | 'label' | 'helptext' | 'helptextDropdown' | 'helptextDropdownButton' | 'counter' | 'counterCurrent' | 'counterMaxLength' | 'optionalTag' | 'optionalText' | 'requiredTag' | 'requiredText' | 'tagText' | 'hasError' | 'errorMessage' | 'disabled' | 'inline' | 'ariaDescribedby' | 'hasFieldset' | 'useWrapper' | 'role'>;
|
|
1207
|
+
|
|
1208
|
+
declare type Props_7 = ElementProps<PktRadioButton, 'checkHelptext' | 'defaultChecked' | 'hasTile' | 'tagText' | 'optionalTag' | 'optionalText' | 'requiredTag' | 'requiredText'>;
|
|
1209
|
+
|
|
1210
|
+
declare type Props_8 = ElementProps<PktTextarea, 'autocomplete' | 'rows'>;
|
|
1211
|
+
|
|
1212
|
+
declare type Props_9 = ElementProps<PktTextinput, 'value' | 'type' | 'size' | 'autocomplete' | 'iconNameRight' | 'prefix' | 'suffix' | 'omitSearchIcon'>;
|
|
1205
1213
|
|
|
1206
1214
|
declare type TAlertSkin = 'error' | 'success' | 'warning' | 'info';
|
|
1207
1215
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-elements",
|
|
3
|
-
"version": "13.6.
|
|
3
|
+
"version": "13.6.11",
|
|
4
4
|
"description": "Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
73
73
|
},
|
|
74
74
|
"license": "MIT",
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "5cb924a2f3b5ba9a52d4c0c55652b807d157c53a"
|
|
76
76
|
}
|
|
@@ -4,9 +4,25 @@ import { PktInputElement } from '@/base-elements/input-element'
|
|
|
4
4
|
import { Ref, createRef, ref } from 'lit/directives/ref.js'
|
|
5
5
|
import { html, nothing, PropertyValues } from 'lit'
|
|
6
6
|
import { classMap } from 'lit/directives/class-map.js'
|
|
7
|
+
import { ElementProps } from '@/types/typeUtils'
|
|
8
|
+
|
|
9
|
+
type Props = ElementProps<
|
|
10
|
+
PktCheckbox,
|
|
11
|
+
| 'checkHelptext'
|
|
12
|
+
| 'defaultChecked'
|
|
13
|
+
| 'hasTile'
|
|
14
|
+
| 'isSwitch'
|
|
15
|
+
| 'labelPosition'
|
|
16
|
+
| 'hideLabel'
|
|
17
|
+
| 'tagText'
|
|
18
|
+
| 'optionalTag'
|
|
19
|
+
| 'optionalText'
|
|
20
|
+
| 'requiredTag'
|
|
21
|
+
| 'requiredText'
|
|
22
|
+
>
|
|
7
23
|
|
|
8
24
|
@customElement('pkt-checkbox')
|
|
9
|
-
export class PktCheckbox extends PktInputElement {
|
|
25
|
+
export class PktCheckbox extends PktInputElement<Props> {
|
|
10
26
|
private inputRef: Ref<HTMLInputElement> = createRef()
|
|
11
27
|
|
|
12
28
|
@property({ type: String, reflect: true }) value: string = ''
|
|
@@ -25,8 +25,29 @@ import {
|
|
|
25
25
|
dateProcessingUtils,
|
|
26
26
|
formUtils,
|
|
27
27
|
} from './datepicker-utils'
|
|
28
|
+
import { ElementProps } from '@/types/typeUtils'
|
|
29
|
+
|
|
30
|
+
type Props = ElementProps<
|
|
31
|
+
PktDatepicker,
|
|
32
|
+
| 'label'
|
|
33
|
+
| 'dateformat'
|
|
34
|
+
| 'multiple'
|
|
35
|
+
| 'maxlength'
|
|
36
|
+
| 'range'
|
|
37
|
+
| 'showRangeLabels'
|
|
38
|
+
| 'min'
|
|
39
|
+
| 'max'
|
|
40
|
+
| 'weeknumbers'
|
|
41
|
+
| 'withcontrols'
|
|
42
|
+
| 'excludedates'
|
|
43
|
+
| 'excludeweekdays'
|
|
44
|
+
| 'currentmonth'
|
|
45
|
+
| 'calendarOpen'
|
|
46
|
+
| 'timezone'
|
|
47
|
+
>
|
|
48
|
+
|
|
28
49
|
@customElement('pkt-datepicker')
|
|
29
|
-
export class PktDatepicker extends PktInputElement {
|
|
50
|
+
export class PktDatepicker extends PktInputElement<Props> {
|
|
30
51
|
/**
|
|
31
52
|
* Element attributes and properties
|
|
32
53
|
*/
|
|
@@ -4,9 +4,22 @@ import { PktInputElement } from '@/base-elements/input-element'
|
|
|
4
4
|
import { Ref, createRef, ref } from 'lit/directives/ref.js'
|
|
5
5
|
import { html, nothing } from 'lit'
|
|
6
6
|
import { classMap } from 'lit/directives/class-map.js'
|
|
7
|
+
import { ElementProps } from '@/types/typeUtils'
|
|
8
|
+
|
|
9
|
+
type Props = ElementProps<
|
|
10
|
+
PktRadioButton,
|
|
11
|
+
| 'checkHelptext'
|
|
12
|
+
| 'defaultChecked'
|
|
13
|
+
| 'hasTile'
|
|
14
|
+
| 'tagText'
|
|
15
|
+
| 'optionalTag'
|
|
16
|
+
| 'optionalText'
|
|
17
|
+
| 'requiredTag'
|
|
18
|
+
| 'requiredText'
|
|
19
|
+
>
|
|
7
20
|
|
|
8
21
|
@customElement('pkt-radiobutton')
|
|
9
|
-
export class PktRadioButton extends PktInputElement {
|
|
22
|
+
export class PktRadioButton extends PktInputElement<Props> {
|
|
10
23
|
private inputRef: Ref<HTMLInputElement> = createRef()
|
|
11
24
|
|
|
12
25
|
@property({ type: String, reflect: true }) value: string = ''
|
|
@@ -9,9 +9,12 @@ import { PktSlotController } from '@/controllers/pkt-slot-controller'
|
|
|
9
9
|
|
|
10
10
|
import '@/components/input-wrapper'
|
|
11
11
|
import '@/components/icon'
|
|
12
|
+
import { ElementProps } from '@/types/typeUtils'
|
|
13
|
+
|
|
14
|
+
type Props = ElementProps<PktTextarea, 'autocomplete' | 'rows'>
|
|
12
15
|
|
|
13
16
|
@customElement('pkt-textarea')
|
|
14
|
-
export class PktTextarea extends PktInputElement {
|
|
17
|
+
export class PktTextarea extends PktInputElement<Props> {
|
|
15
18
|
private inputRef: Ref<HTMLTextAreaElement> = createRef()
|
|
16
19
|
private helptextSlot: Ref<HTMLElement> = createRef()
|
|
17
20
|
|