@oslokommune/punkt-elements 16.26.4 → 16.26.5
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 +17 -0
- package/dist/components/fileupload/fileupload-base.d.ts +10 -0
- package/dist/components/fileupload/fileupload-types.d.ts +10 -0
- package/dist/{fileupload-DpvQ3e_T.js → fileupload-2hf8YNhO.js} +414 -92
- package/dist/{fileupload-BMHJaAKR.cjs → fileupload-BLVrslUX.cjs} +42 -37
- package/dist/pkt-fileupload.cjs +1 -1
- package/dist/pkt-fileupload.js +1 -1
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +1 -1
- package/package.json +2 -2
- package/src/components/fileupload/fileupload-base.ts +14 -0
- package/src/components/fileupload/fileupload-types.ts +10 -0
- package/src/components/fileupload/fileupload.test.ts +35 -0
- package/src/components/fileupload/fileupload.ts +5 -0
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
|
+
## [16.27.0](https://github.com/oslokommune/punkt/compare/16.26.4...16.27.0) (2026-07-03)
|
|
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
|
## [16.26.4](https://github.com/oslokommune/punkt/compare/16.26.3...16.26.4) (2026-06-26)
|
|
9
26
|
|
|
10
27
|
### ⚠ BREAKING CHANGES
|
|
@@ -10,6 +10,10 @@ export declare abstract class PktFileUploadBase extends PktElement<IPktFileUploa
|
|
|
10
10
|
label: string;
|
|
11
11
|
/** Optional help text shown under label. */
|
|
12
12
|
helptext: string;
|
|
13
|
+
/** Expandable help text (dropdown) shown by `pkt-input-wrapper`. */
|
|
14
|
+
helptextDropdown: string;
|
|
15
|
+
/** Button label for expandable help text. */
|
|
16
|
+
helptextDropdownButton: string;
|
|
13
17
|
/** Mark input as required in form strategy. */
|
|
14
18
|
required: boolean;
|
|
15
19
|
/** Allow selecting/dropping multiple files. */
|
|
@@ -50,8 +54,14 @@ export declare abstract class PktFileUploadBase extends PktElement<IPktFileUploa
|
|
|
50
54
|
errorMessage: string;
|
|
51
55
|
/** Show "Valgfritt" tag in the input wrapper. */
|
|
52
56
|
optionalTag: boolean;
|
|
57
|
+
/** Label text for the optional tag. */
|
|
58
|
+
optionalText: string;
|
|
53
59
|
/** Show "Må fylles ut" tag in the input wrapper. */
|
|
54
60
|
requiredTag: boolean;
|
|
61
|
+
/** Label text for the required tag. */
|
|
62
|
+
requiredText: string;
|
|
63
|
+
/** Extra tag next to the label. */
|
|
64
|
+
tagText: string | null;
|
|
55
65
|
/** Trailing characters to keep when middle-truncating long filenames. Set to `0` to disable. */
|
|
56
66
|
truncateTail: number;
|
|
57
67
|
/** Controlled mode source of truth. Parent owns file list and updates this prop from events. */
|
|
@@ -37,6 +37,10 @@ export interface IPktFileUpload {
|
|
|
37
37
|
name?: string;
|
|
38
38
|
label?: string;
|
|
39
39
|
helptext?: string;
|
|
40
|
+
/** Expandable help text (dropdown) in input-wrapper. */
|
|
41
|
+
helptextDropdown?: string;
|
|
42
|
+
/** Button label for expandable help text. */
|
|
43
|
+
helptextDropdownButton?: string;
|
|
40
44
|
required?: boolean;
|
|
41
45
|
multiple?: boolean;
|
|
42
46
|
disabled?: boolean;
|
|
@@ -55,8 +59,14 @@ export interface IPktFileUpload {
|
|
|
55
59
|
errorMessage?: string;
|
|
56
60
|
/** Show "Valgfritt" tag in input-wrapper. */
|
|
57
61
|
optionalTag?: boolean;
|
|
62
|
+
/** Label text for the optional tag. */
|
|
63
|
+
optionalText?: string;
|
|
58
64
|
/** Show "Må fylles ut" tag in input-wrapper. */
|
|
59
65
|
requiredTag?: boolean;
|
|
66
|
+
/** Label text for the required tag. */
|
|
67
|
+
requiredText?: string;
|
|
68
|
+
/** Extra tag next to the label. */
|
|
69
|
+
tagText?: string | null;
|
|
60
70
|
/** Trailing characters to keep when truncating long filenames. */
|
|
61
71
|
truncateTail?: number;
|
|
62
72
|
/** Transfer states keyed by `fileId` (custom strategy progress/error/cancel rendering). */
|