@fkui/vue 5.36.3 → 5.37.1

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.
@@ -211,6 +211,22 @@ type: BooleanConstructor;
211
211
  required: false;
212
212
  default: boolean;
213
213
  };
214
+ /**
215
+ * Display bullets in the error list component.
216
+ */
217
+ errorListBullets: {
218
+ type: BooleanConstructor;
219
+ required: false;
220
+ default: boolean;
221
+ };
222
+ /**
223
+ *Optional callback function to the error list component for performing actions before navigation.
224
+ */
225
+ errorListBeforeNavigate: {
226
+ type: PropType<BeforeNavigate>;
227
+ required: false;
228
+ default(): BeforeNavigate;
229
+ };
214
230
  }, unknown, {
215
231
  validity: GroupValidityEvent;
216
232
  submitted: boolean;
@@ -265,6 +281,22 @@ type: BooleanConstructor;
265
281
  required: false;
266
282
  default: boolean;
267
283
  };
284
+ /**
285
+ * Display bullets in the error list component.
286
+ */
287
+ errorListBullets: {
288
+ type: BooleanConstructor;
289
+ required: false;
290
+ default: boolean;
291
+ };
292
+ /**
293
+ *Optional callback function to the error list component for performing actions before navigation.
294
+ */
295
+ errorListBeforeNavigate: {
296
+ type: PropType<BeforeNavigate>;
297
+ required: false;
298
+ default(): BeforeNavigate;
299
+ };
268
300
  }>> & {
269
301
  onSubmit?: ((...args: any[]) => any) | undefined;
270
302
  }, {
@@ -272,6 +304,8 @@ beforeSubmit: FValidationFormCallback;
272
304
  id: string;
273
305
  beforeValidation: FValidationFormCallback;
274
306
  useErrorList: boolean;
307
+ errorListBullets: boolean;
308
+ errorListBeforeNavigate: BeforeNavigate;
275
309
  }, {}>;
276
310
  export { _default as FValidationForm }
277
311
  export { _default as IValidationForm }
@@ -311,8 +345,8 @@ type: (StringConstructor | BooleanConstructor | ObjectConstructor | DateConstruc
311
345
  required: true;
312
346
  };
313
347
  }, {
314
- showDetails: "never" | "always" | "when-selected";
315
- getFieldsetLabelText: () => string;
348
+ showDetails: "always" | "never" | "when-selected";
349
+ getFieldsetLabelText: () => string | undefined;
316
350
  }, {
317
351
  expanded: boolean;
318
352
  height: number;
@@ -426,8 +460,8 @@ required: true;
426
460
  };
427
461
  }, {
428
462
  sharedName: string | undefined;
429
- showDetails: "never" | "always" | "when-selected";
430
- getFieldsetLabelText: () => string;
463
+ showDetails: "always" | "never" | "when-selected";
464
+ getFieldsetLabelText: () => string | undefined;
431
465
  }, {
432
466
  height: number;
433
467
  initialStyle: {
@@ -500,11 +534,6 @@ disabled: boolean;
500
534
  export { _default_3 as FRadioField }
501
535
  export { _default_3 as FRadioGroupField }
502
536
 
503
- declare interface DialogueTreeData {
504
- currentStep: FDialogueTreeQuestion;
505
- steps: number[];
506
- }
507
-
508
537
  /* Excluded from this release type: dispatchComponentUnmountEvent */
509
538
 
510
539
  /**
@@ -631,7 +660,10 @@ export declare const EventBus: EventBus;
631
660
  export declare interface EventBusMap {
632
661
  }
633
662
 
634
- declare interface ExpandableTable {
663
+ /**
664
+ * @public
665
+ */
666
+ export declare interface ExpandableTable {
635
667
  expandedRows: Ref<ListArray>;
636
668
  isExpandableTable: ComputedRef<boolean>;
637
669
  hasExpandableSlot: ComputedRef<boolean>;
@@ -1818,7 +1850,10 @@ modifyModalHeader: string;
1818
1850
  deleteModalHeader: string;
1819
1851
  }, {}>;
1820
1852
 
1821
- declare interface FCrudDatasetData {
1853
+ /**
1854
+ * @public
1855
+ */
1856
+ export declare interface FCrudDatasetData {
1822
1857
  result: ListArray;
1823
1858
  Operation: typeof Operation;
1824
1859
  operation: Operation;
@@ -2197,7 +2232,6 @@ isDateEnabled(day: FDate): boolean;
2197
2232
  isDaySelected(date: FDate): boolean;
2198
2233
  highlightDay(date: FDate): boolean;
2199
2234
  updateTextFieldValue(newValue: string): Promise<void>;
2200
- updateCalendarValue: typeof updateCalendarValue;
2201
2235
  }, ComponentOptions, ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", PublicProps, Readonly<ExtractPropTypes< {
2202
2236
  /** Selected day.
2203
2237
  * @model
@@ -2292,7 +2326,7 @@ dialogueTree: {
2292
2326
  type: PropType<FDialogueTreeQuestion>;
2293
2327
  required: true;
2294
2328
  };
2295
- }, unknown, DialogueTreeData, {
2329
+ }, unknown, FDialogueTreeData, {
2296
2330
  userData(): unknown;
2297
2331
  options(): FDialogueTreeOption[];
2298
2332
  }, {
@@ -2319,6 +2353,14 @@ onChange?: ((...args: any[]) => any) | undefined;
2319
2353
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2320
2354
  }, {}, {}>;
2321
2355
 
2356
+ /**
2357
+ * @public
2358
+ */
2359
+ export declare interface FDialogueTreeData {
2360
+ currentStep: FDialogueTreeQuestion;
2361
+ steps: number[];
2362
+ }
2363
+
2322
2364
  /**
2323
2365
  * @public
2324
2366
  */
@@ -2884,11 +2926,11 @@ required: false;
2884
2926
  * - `always` - Always show item details.
2885
2927
  */
2886
2928
  showDetails: {
2887
- type: StringConstructor;
2929
+ type: PropType<"never" | "when-selected" | "always">;
2888
2930
  default: string;
2889
2931
  validator(value: string): boolean;
2890
2932
  };
2891
- }, unknown, {
2933
+ }, void, {
2892
2934
  validity: ValidityEvent;
2893
2935
  descriptionClass: string[];
2894
2936
  discreteDescriptionClass: string[];
@@ -2990,7 +3032,7 @@ required: false;
2990
3032
  * - `always` - Always show item details.
2991
3033
  */
2992
3034
  showDetails: {
2993
- type: StringConstructor;
3035
+ type: PropType<"never" | "when-selected" | "always">;
2994
3036
  default: string;
2995
3037
  validator(value: string): boolean;
2996
3038
  };
@@ -2998,9 +3040,9 @@ validator(value: string): boolean;
2998
3040
  name: string;
2999
3041
  horizontal: boolean;
3000
3042
  id: string;
3001
- showDetails: string;
3002
3043
  labelClass: string;
3003
3044
  contentClass: string;
3045
+ showDetails: "always" | "never" | "when-selected";
3004
3046
  chip: boolean;
3005
3047
  border: boolean;
3006
3048
  }, {}>;
@@ -3050,7 +3092,7 @@ default: undefined;
3050
3092
  }, unknown, unknown, {
3051
3093
  isMimeTypeChanged(): boolean;
3052
3094
  mimeTypeChangedText(): string;
3053
- iconName(): IconName;
3095
+ iconName(): FFileItemIconName;
3054
3096
  }, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
3055
3097
  /**
3056
3098
  * The id for the input id attribute.
@@ -3100,6 +3142,11 @@ originalMimeType: string;
3100
3142
  changedMimeTypeText: string;
3101
3143
  }, {}>;
3102
3144
 
3145
+ /**
3146
+ * @public
3147
+ */
3148
+ export declare type FFileItemIconName = "doc" | "file" | "pic" | "pdf";
3149
+
3103
3150
  export declare const FFileSelector: DefineComponent< {
3104
3151
  /**
3105
3152
  * The id for the input id attribute.
@@ -3226,7 +3273,10 @@ displayError: boolean;
3226
3273
  errorScroll: "center" | "top";
3227
3274
  }, {}>;
3228
3275
 
3229
- declare interface FFormData {
3276
+ /**
3277
+ * @public
3278
+ */
3279
+ export declare interface FFormData {
3230
3280
  errorMessageSlotClass: string[];
3231
3281
  components: Record<string, Reference<FormErrorList | FormStep>>;
3232
3282
  }
@@ -3930,7 +3980,10 @@ expandableAttribute: string;
3930
3980
  expandableDescribedby: string;
3931
3981
  }, {}>;
3932
3982
 
3933
- declare interface FInteractiveTableData {
3983
+ /**
3984
+ * @public
3985
+ */
3986
+ export declare interface FInteractiveTableData {
3934
3987
  activeRow: ListItem | undefined;
3935
3988
  columns: FTableColumnData[];
3936
3989
  emptyRow: Record<string, unknown>;
@@ -4283,7 +4336,10 @@ active: UnknownItem | undefined;
4283
4336
  selectable: boolean;
4284
4337
  }, {}>;
4285
4338
 
4286
- declare interface FListData {
4339
+ /**
4340
+ * @public
4341
+ */
4342
+ export declare interface FListData {
4287
4343
  selectedItems: ListArray;
4288
4344
  activeItem: ListItem | undefined;
4289
4345
  }
@@ -4631,7 +4687,10 @@ export declare interface FModalButtonDescriptor {
4631
4687
  submitButton?: boolean;
4632
4688
  }
4633
4689
 
4634
- declare interface FModalData {
4690
+ /**
4691
+ * @public
4692
+ */
4693
+ export declare interface FModalData {
4635
4694
  nonModalFocusableElements: HTMLElement[];
4636
4695
  savedFocus: StackHandle | null;
4637
4696
  savedScroll: number | null;
@@ -5215,7 +5274,24 @@ export declare class FormErrorList implements FormErrorList {
5215
5274
  * @param options - Component options.
5216
5275
  * @returns A promise resolved with values from input fields or rejected if user cancels.
5217
5276
  */
5218
- export declare function formModal<T>(callingInstance: MaybeWithFKUIContext, Component: MaybeComponent, options?: MaybeOptions): Promise<T>;
5277
+ export declare function formModal<T>(callingInstance: MaybeWithFKUIContext, Component: MaybeComponent, options?: FormModalMaybeOptions): Promise<T>;
5278
+
5279
+ /**
5280
+ * @public
5281
+ */
5282
+ export declare type FormModalMaybeOptions = Partial<FormModalModalOptions>;
5283
+
5284
+ /**
5285
+ * @public
5286
+ */
5287
+ export declare interface FormModalModalOptions {
5288
+ /** Modal size */
5289
+ size: "large" | "fullscreen";
5290
+ /** Modal beforeSubmit callback */
5291
+ beforeSubmit?: FValidationFormCallback;
5292
+ /** Modal props */
5293
+ props: Record<string, unknown | undefined>;
5294
+ }
5219
5295
 
5220
5296
  /**
5221
5297
  * @public
@@ -5295,14 +5371,26 @@ validator(value: string): boolean;
5295
5371
  };
5296
5372
  /**
5297
5373
  * Render skiplink.
5374
+ *
5375
+ * When set to a non-empty string thethe skiplink feature is enabled.
5376
+ * The string is the id of the element to move focus to.
5377
+ *
5378
+ * When set to `true` the deprecated `skipLinkHref` prop is used to
5379
+ * set the element id to move focus to.
5380
+ *
5381
+ * When set to `false` or empty string the skiplink feature is disabled.
5382
+ *
5383
+ * Using a boolean is deprecated. Leave unset or a non-empty string.
5298
5384
  */
5299
5385
  skipLink: {
5300
- type: BooleanConstructor;
5386
+ type: PropType<string | boolean>;
5301
5387
  required: false;
5302
- default: boolean;
5388
+ default: string;
5303
5389
  };
5304
5390
  /**
5305
5391
  * Target for skiplink.
5392
+ *
5393
+ * @deprecated Use `skipLink` prop with a non-empty string instead.
5306
5394
  */
5307
5395
  skipLinkHref: {
5308
5396
  type: StringConstructor;
@@ -5347,6 +5435,7 @@ default: string;
5347
5435
  logoClass(): string;
5348
5436
  hasRouterLink(): boolean;
5349
5437
  routerLinkTo(): RouteLocationPathRaw | RouteLocationNamedRaw | null;
5438
+ skipLinkAnchor(): string | null;
5350
5439
  altLogoText(): string;
5351
5440
  }, {}, ComponentOptions, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
5352
5441
  /** Setting the logo sizes small, large or responsive. */
@@ -5358,14 +5447,26 @@ validator(value: string): boolean;
5358
5447
  };
5359
5448
  /**
5360
5449
  * Render skiplink.
5450
+ *
5451
+ * When set to a non-empty string thethe skiplink feature is enabled.
5452
+ * The string is the id of the element to move focus to.
5453
+ *
5454
+ * When set to `true` the deprecated `skipLinkHref` prop is used to
5455
+ * set the element id to move focus to.
5456
+ *
5457
+ * When set to `false` or empty string the skiplink feature is disabled.
5458
+ *
5459
+ * Using a boolean is deprecated. Leave unset or a non-empty string.
5361
5460
  */
5362
5461
  skipLink: {
5363
- type: BooleanConstructor;
5462
+ type: PropType<string | boolean>;
5364
5463
  required: false;
5365
- default: boolean;
5464
+ default: string;
5366
5465
  };
5367
5466
  /**
5368
5467
  * Target for skiplink.
5468
+ *
5469
+ * @deprecated Use `skipLink` prop with a non-empty string instead.
5369
5470
  */
5370
5471
  skipLinkHref: {
5371
5472
  type: StringConstructor;
@@ -5409,7 +5510,7 @@ default: string;
5409
5510
  }>>, {
5410
5511
  headerTag: string;
5411
5512
  logoSize: string;
5412
- skipLink: boolean;
5513
+ skipLink: string | boolean;
5413
5514
  skipLinkHref: string;
5414
5515
  routerLinkPath: string;
5415
5516
  routerLinkName: string;
@@ -6824,7 +6925,10 @@ rowHeader: boolean;
6824
6925
  expand: boolean;
6825
6926
  }, {}>;
6826
6927
 
6827
- declare interface FTableColumnData {
6928
+ /**
6929
+ * @public
6930
+ */
6931
+ export declare interface FTableColumnData {
6828
6932
  id: string;
6829
6933
  name: string;
6830
6934
  title: string;
@@ -6836,12 +6940,18 @@ declare interface FTableColumnData {
6836
6940
  sort: FTableColumnSort;
6837
6941
  }
6838
6942
 
6839
- declare enum FTableColumnSize {
6943
+ /**
6944
+ * @public
6945
+ */
6946
+ export declare enum FTableColumnSize {
6840
6947
  EXPAND = "table__column--expand",
6841
6948
  SHRINK = "table__column--shrink"
6842
6949
  }
6843
6950
 
6844
- declare enum FTableColumnSort {
6951
+ /**
6952
+ * @public
6953
+ */
6954
+ export declare enum FTableColumnSort {
6845
6955
  UNSORTED = "unsorted",
6846
6956
  ASCENDING = "ascending",
6847
6957
  DESCENDING = "descending"
@@ -8139,8 +8249,6 @@ onChange?: ((...args: any[]) => any) | undefined;
8139
8249
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8140
8250
  }, {}, {}>;
8141
8251
 
8142
- declare type IconName = "doc" | "file" | "pic" | "pdf";
8143
-
8144
8252
  export declare const IFlex: DefineComponent< {
8145
8253
  /**
8146
8254
  * Set gap (gutter) between items.
@@ -8684,7 +8792,10 @@ focusElement: () => HTMLElement | null;
8684
8792
  setFocus: boolean;
8685
8793
  }, {}>;
8686
8794
 
8687
- declare interface IPopupData {
8795
+ /**
8796
+ * @public
8797
+ */
8798
+ export declare interface IPopupData {
8688
8799
  teleportDisabled: boolean;
8689
8800
  placement: Placement;
8690
8801
  focus: StackHandle | null;
@@ -8756,7 +8867,10 @@ anchor: HTMLElement | null | undefined;
8756
8867
  errorMessage: string;
8757
8868
  }, {}>;
8758
8869
 
8759
- declare interface IPopupErrorData {
8870
+ /**
8871
+ * @public
8872
+ */
8873
+ export declare interface IPopupErrorData {
8760
8874
  teleportDisabled: boolean;
8761
8875
  placement: Placement;
8762
8876
  arrowPosition: string;
@@ -8990,10 +9104,6 @@ export declare type ListItem<T extends object = UnknownItem> = T;
8990
9104
  */
8991
9105
  export declare type MaybeComponent = Component | undefined;
8992
9106
 
8993
- declare type MaybeOptions = Partial<ModalOptions_2>;
8994
-
8995
- declare type MaybeOptions_2 = Partial<ModalOptions>;
8996
-
8997
9107
  /**
8998
9108
  * @public
8999
9109
  */
@@ -9012,26 +9122,6 @@ export declare enum MenuAction {
9012
9122
  ACTIVATE = 4
9013
9123
  }
9014
9124
 
9015
- /**
9016
- * @public
9017
- */
9018
- export declare interface ModalOptions {
9019
- /**
9020
- * Element to mount modal under. Default `<body>`.
9021
- */
9022
- attachTo: string | Element;
9023
- props: Record<string, unknown | undefined>;
9024
- }
9025
-
9026
- declare interface ModalOptions_2 {
9027
- /** Modal size */
9028
- size: "large" | "fullscreen";
9029
- /** Modal beforeSubmit callback */
9030
- beforeSubmit?: FValidationFormCallback;
9031
- /** Modal props */
9032
- props: Record<string, unknown | undefined>;
9033
- }
9034
-
9035
9125
  /**
9036
9126
  * Predefined reasons the modal was closed.
9037
9127
  *
@@ -9133,9 +9223,28 @@ export declare function openModal<T = void>(callingInstance: MaybeWithFKUIContex
9133
9223
  /**
9134
9224
  * @public
9135
9225
  */
9136
- export declare function openModal<T = void>(callingInstance: MaybeWithFKUIContext, Component: MaybeComponent, options?: MaybeOptions_2): AsyncModalResult<T>;
9226
+ export declare function openModal<T = void>(callingInstance: MaybeWithFKUIContext, Component: MaybeComponent, options?: OpenModalMaybeOptions): AsyncModalResult<T>;
9137
9227
 
9138
- declare enum Operation {
9228
+ /**
9229
+ * @public
9230
+ */
9231
+ export declare type OpenModalMaybeOptions = Partial<OpenModalModaloptions>;
9232
+
9233
+ /**
9234
+ * @public
9235
+ */
9236
+ export declare interface OpenModalModaloptions {
9237
+ /**
9238
+ * Element to mount modal under. Default `<body>`.
9239
+ */
9240
+ attachTo: string | Element;
9241
+ props: Record<string, unknown | undefined>;
9242
+ }
9243
+
9244
+ /**
9245
+ * @public
9246
+ */
9247
+ export declare enum Operation {
9139
9248
  ADD = 0,
9140
9249
  DELETE = 1,
9141
9250
  MODIFY = 2,
@@ -9159,7 +9268,10 @@ export declare interface PanelLayoutComposable {
9159
9268
  */
9160
9269
  export declare type ParseFunction<TModel> = (viewValue: string) => TModel | undefined;
9161
9270
 
9162
- declare enum Placement {
9271
+ /**
9272
+ * @public
9273
+ */
9274
+ export declare enum Placement {
9163
9275
  /** popup below and alignment towards the left edge. */
9164
9276
  "A" = "A",
9165
9277
  /** popup below and alignment towards the right edge. */
@@ -9389,11 +9501,6 @@ export declare const UNHANDLED_ERROR_EVENT: "unhandled-error";
9389
9501
  */
9390
9502
  export declare type UnknownItem = Record<string, unknown>;
9391
9503
 
9392
- /**
9393
- * @public
9394
- */
9395
- export declare function updateCalendarValue(this: InstanceType<typeof FDatepickerField>, newValue: string): void;
9396
-
9397
9504
  /**
9398
9505
  * Translation function.
9399
9506
  * @public
@@ -1357,10 +1357,21 @@ module.exports = defineMetadata({
1357
1357
  "logo-size": {
1358
1358
  enum: ["small", "large", "responsive"],
1359
1359
  },
1360
- "skip-link": {},
1360
+ "skip-link": {
1361
+ enum: ["/.+/"],
1362
+ /* for backwards compatiblity allow the skiplink value to be
1363
+ * omitted (e.g. same as setting it to true) */
1364
+ omit: true,
1365
+ },
1361
1366
  "skip-link-href": {
1362
1367
  enum: ["/^[#].*/"],
1363
1368
  required: false,
1369
+ deprecated: "use skip-link prop with string instead",
1370
+ allowed(node) {
1371
+ return node.hasAttribute("skip-link")
1372
+ ? null
1373
+ : "requires skip-link prop to be set";
1374
+ },
1364
1375
  },
1365
1376
  "header-tag": {
1366
1377
  enum: ["span", "h1"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/vue",
3
- "version": "5.36.3",
3
+ "version": "5.37.1",
4
4
  "description": "Vue implementation of FKUI components",
5
5
  "keywords": [
6
6
  "fkui",
@@ -73,25 +73,25 @@
73
73
  "lodash": "^4.17.20"
74
74
  },
75
75
  "devDependencies": {
76
- "@fkui/css-variables": "5.36.3",
77
- "@fkui/date": "5.36.3",
78
- "@fkui/design": "5.36.3",
79
- "@fkui/icon-lib-default": "5.36.0",
80
- "@fkui/logic": "5.36.3",
81
- "@fkui/test-utils": "5.36.0",
76
+ "@fkui/css-variables": "5.37.0",
77
+ "@fkui/date": "5.37.1",
78
+ "@fkui/design": "5.37.0",
79
+ "@fkui/icon-lib-default": "5.37.0",
80
+ "@fkui/logic": "5.37.1",
81
+ "@fkui/test-utils": "5.37.0",
82
82
  "@forsakringskassan/vite-lib-config": "2.0.3",
83
83
  "@vue/test-utils": "2.4.6",
84
- "cypress": "13.14.2",
84
+ "cypress": "13.15.0",
85
85
  "flush-promises": "1.0.2",
86
- "vite": "5.4.6",
86
+ "vite": "5.4.8",
87
87
  "vue": "3.4.38",
88
88
  "vue-router": "4.4.5"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@babel/runtime": "^7",
92
- "@fkui/date": "^5.36.3",
92
+ "@fkui/date": "^5.37.1",
93
93
  "@fkui/design": "^5.36.0",
94
- "@fkui/logic": "^5.36.3",
94
+ "@fkui/logic": "^5.37.1",
95
95
  "core-js": "^3.24",
96
96
  "fk-icons": "^4.30.1",
97
97
  "html-validate": ">= 7.9.0",
@@ -109,5 +109,5 @@
109
109
  "node": ">= 20",
110
110
  "npm": ">= 7"
111
111
  },
112
- "gitHead": "b0910a06ce23eb3e735c34ec95366a44d87008e1"
112
+ "gitHead": "82f7f5e33c2ccf22f8190f6ee945dd3baf195ce7"
113
113
  }