@fkui/vue 5.36.1 → 5.37.0

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 }
@@ -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;
@@ -2292,7 +2327,7 @@ dialogueTree: {
2292
2327
  type: PropType<FDialogueTreeQuestion>;
2293
2328
  required: true;
2294
2329
  };
2295
- }, unknown, DialogueTreeData, {
2330
+ }, unknown, FDialogueTreeData, {
2296
2331
  userData(): unknown;
2297
2332
  options(): FDialogueTreeOption[];
2298
2333
  }, {
@@ -2319,6 +2354,14 @@ onChange?: ((...args: any[]) => any) | undefined;
2319
2354
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2320
2355
  }, {}, {}>;
2321
2356
 
2357
+ /**
2358
+ * @public
2359
+ */
2360
+ export declare interface FDialogueTreeData {
2361
+ currentStep: FDialogueTreeQuestion;
2362
+ steps: number[];
2363
+ }
2364
+
2322
2365
  /**
2323
2366
  * @public
2324
2367
  */
@@ -3930,7 +3973,10 @@ expandableAttribute: string;
3930
3973
  expandableDescribedby: string;
3931
3974
  }, {}>;
3932
3975
 
3933
- declare interface FInteractiveTableData {
3976
+ /**
3977
+ * @public
3978
+ */
3979
+ export declare interface FInteractiveTableData {
3934
3980
  activeRow: ListItem | undefined;
3935
3981
  columns: FTableColumnData[];
3936
3982
  emptyRow: Record<string, unknown>;
@@ -4283,7 +4329,10 @@ active: UnknownItem | undefined;
4283
4329
  selectable: boolean;
4284
4330
  }, {}>;
4285
4331
 
4286
- declare interface FListData {
4332
+ /**
4333
+ * @public
4334
+ */
4335
+ export declare interface FListData {
4287
4336
  selectedItems: ListArray;
4288
4337
  activeItem: ListItem | undefined;
4289
4338
  }
@@ -5215,7 +5264,24 @@ export declare class FormErrorList implements FormErrorList {
5215
5264
  * @param options - Component options.
5216
5265
  * @returns A promise resolved with values from input fields or rejected if user cancels.
5217
5266
  */
5218
- export declare function formModal<T>(callingInstance: MaybeWithFKUIContext, Component: MaybeComponent, options?: MaybeOptions): Promise<T>;
5267
+ export declare function formModal<T>(callingInstance: MaybeWithFKUIContext, Component: MaybeComponent, options?: FormModalMaybeOptions): Promise<T>;
5268
+
5269
+ /**
5270
+ * @public
5271
+ */
5272
+ export declare type FormModalMaybeOptions = Partial<FormModalModalOptions>;
5273
+
5274
+ /**
5275
+ * @public
5276
+ */
5277
+ export declare interface FormModalModalOptions {
5278
+ /** Modal size */
5279
+ size: "large" | "fullscreen";
5280
+ /** Modal beforeSubmit callback */
5281
+ beforeSubmit?: FValidationFormCallback;
5282
+ /** Modal props */
5283
+ props: Record<string, unknown | undefined>;
5284
+ }
5219
5285
 
5220
5286
  /**
5221
5287
  * @public
@@ -5295,14 +5361,26 @@ validator(value: string): boolean;
5295
5361
  };
5296
5362
  /**
5297
5363
  * Render skiplink.
5364
+ *
5365
+ * When set to a non-empty string thethe skiplink feature is enabled.
5366
+ * The string is the id of the element to move focus to.
5367
+ *
5368
+ * When set to `true` the deprecated `skipLinkHref` prop is used to
5369
+ * set the element id to move focus to.
5370
+ *
5371
+ * When set to `false` or empty string the skiplink feature is disabled.
5372
+ *
5373
+ * Using a boolean is deprecated. Leave unset or a non-empty string.
5298
5374
  */
5299
5375
  skipLink: {
5300
- type: BooleanConstructor;
5376
+ type: PropType<string | boolean>;
5301
5377
  required: false;
5302
- default: boolean;
5378
+ default: string;
5303
5379
  };
5304
5380
  /**
5305
5381
  * Target for skiplink.
5382
+ *
5383
+ * @deprecated Use `skipLink` prop with a non-empty string instead.
5306
5384
  */
5307
5385
  skipLinkHref: {
5308
5386
  type: StringConstructor;
@@ -5347,6 +5425,7 @@ default: string;
5347
5425
  logoClass(): string;
5348
5426
  hasRouterLink(): boolean;
5349
5427
  routerLinkTo(): RouteLocationPathRaw | RouteLocationNamedRaw | null;
5428
+ skipLinkAnchor(): string | null;
5350
5429
  altLogoText(): string;
5351
5430
  }, {}, ComponentOptions, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
5352
5431
  /** Setting the logo sizes small, large or responsive. */
@@ -5358,14 +5437,26 @@ validator(value: string): boolean;
5358
5437
  };
5359
5438
  /**
5360
5439
  * Render skiplink.
5440
+ *
5441
+ * When set to a non-empty string thethe skiplink feature is enabled.
5442
+ * The string is the id of the element to move focus to.
5443
+ *
5444
+ * When set to `true` the deprecated `skipLinkHref` prop is used to
5445
+ * set the element id to move focus to.
5446
+ *
5447
+ * When set to `false` or empty string the skiplink feature is disabled.
5448
+ *
5449
+ * Using a boolean is deprecated. Leave unset or a non-empty string.
5361
5450
  */
5362
5451
  skipLink: {
5363
- type: BooleanConstructor;
5452
+ type: PropType<string | boolean>;
5364
5453
  required: false;
5365
- default: boolean;
5454
+ default: string;
5366
5455
  };
5367
5456
  /**
5368
5457
  * Target for skiplink.
5458
+ *
5459
+ * @deprecated Use `skipLink` prop with a non-empty string instead.
5369
5460
  */
5370
5461
  skipLinkHref: {
5371
5462
  type: StringConstructor;
@@ -5409,7 +5500,7 @@ default: string;
5409
5500
  }>>, {
5410
5501
  headerTag: string;
5411
5502
  logoSize: string;
5412
- skipLink: boolean;
5503
+ skipLink: string | boolean;
5413
5504
  skipLinkHref: string;
5414
5505
  routerLinkPath: string;
5415
5506
  routerLinkName: string;
@@ -6824,7 +6915,10 @@ rowHeader: boolean;
6824
6915
  expand: boolean;
6825
6916
  }, {}>;
6826
6917
 
6827
- declare interface FTableColumnData {
6918
+ /**
6919
+ * @public
6920
+ */
6921
+ export declare interface FTableColumnData {
6828
6922
  id: string;
6829
6923
  name: string;
6830
6924
  title: string;
@@ -6836,12 +6930,18 @@ declare interface FTableColumnData {
6836
6930
  sort: FTableColumnSort;
6837
6931
  }
6838
6932
 
6839
- declare enum FTableColumnSize {
6933
+ /**
6934
+ * @public
6935
+ */
6936
+ export declare enum FTableColumnSize {
6840
6937
  EXPAND = "table__column--expand",
6841
6938
  SHRINK = "table__column--shrink"
6842
6939
  }
6843
6940
 
6844
- declare enum FTableColumnSort {
6941
+ /**
6942
+ * @public
6943
+ */
6944
+ export declare enum FTableColumnSort {
6845
6945
  UNSORTED = "unsorted",
6846
6946
  ASCENDING = "ascending",
6847
6947
  DESCENDING = "descending"
@@ -8990,10 +9090,6 @@ export declare type ListItem<T extends object = UnknownItem> = T;
8990
9090
  */
8991
9091
  export declare type MaybeComponent = Component | undefined;
8992
9092
 
8993
- declare type MaybeOptions = Partial<ModalOptions_2>;
8994
-
8995
- declare type MaybeOptions_2 = Partial<ModalOptions>;
8996
-
8997
9093
  /**
8998
9094
  * @public
8999
9095
  */
@@ -9012,26 +9108,6 @@ export declare enum MenuAction {
9012
9108
  ACTIVATE = 4
9013
9109
  }
9014
9110
 
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
9111
  /**
9036
9112
  * Predefined reasons the modal was closed.
9037
9113
  *
@@ -9133,9 +9209,28 @@ export declare function openModal<T = void>(callingInstance: MaybeWithFKUIContex
9133
9209
  /**
9134
9210
  * @public
9135
9211
  */
9136
- export declare function openModal<T = void>(callingInstance: MaybeWithFKUIContext, Component: MaybeComponent, options?: MaybeOptions_2): AsyncModalResult<T>;
9212
+ export declare function openModal<T = void>(callingInstance: MaybeWithFKUIContext, Component: MaybeComponent, options?: OpenModalMaybeOptions): AsyncModalResult<T>;
9137
9213
 
9138
- declare enum Operation {
9214
+ /**
9215
+ * @public
9216
+ */
9217
+ export declare type OpenModalMaybeOptions = Partial<OpenModalModaloptions>;
9218
+
9219
+ /**
9220
+ * @public
9221
+ */
9222
+ export declare interface OpenModalModaloptions {
9223
+ /**
9224
+ * Element to mount modal under. Default `<body>`.
9225
+ */
9226
+ attachTo: string | Element;
9227
+ props: Record<string, unknown | undefined>;
9228
+ }
9229
+
9230
+ /**
9231
+ * @public
9232
+ */
9233
+ export declare enum Operation {
9139
9234
  ADD = 0,
9140
9235
  DELETE = 1,
9141
9236
  MODIFY = 2,
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.47.7"
8
+ "packageVersion": "7.47.9"
9
9
  }
10
10
  ]
11
11
  }
@@ -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.1",
3
+ "version": "5.37.0",
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.0",
77
- "@fkui/date": "5.36.0",
78
- "@fkui/design": "5.36.1",
79
- "@fkui/icon-lib-default": "5.36.0",
80
- "@fkui/logic": "5.36.0",
81
- "@fkui/test-utils": "5.36.0",
82
- "@forsakringskassan/vite-lib-config": "2.0.1",
76
+ "@fkui/css-variables": "5.37.0",
77
+ "@fkui/date": "5.37.0",
78
+ "@fkui/design": "5.37.0",
79
+ "@fkui/icon-lib-default": "5.37.0",
80
+ "@fkui/logic": "5.37.0",
81
+ "@fkui/test-utils": "5.37.0",
82
+ "@forsakringskassan/vite-lib-config": "2.0.3",
83
83
  "@vue/test-utils": "2.4.6",
84
84
  "cypress": "13.14.2",
85
85
  "flush-promises": "1.0.2",
86
- "vite": "5.4.3",
86
+ "vite": "5.4.7",
87
87
  "vue": "3.4.38",
88
- "vue-router": "4.4.3"
88
+ "vue-router": "4.4.5"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@babel/runtime": "^7",
92
- "@fkui/date": "^5",
93
- "@fkui/design": "^5",
94
- "@fkui/logic": "^5",
92
+ "@fkui/date": "^5.37.0",
93
+ "@fkui/design": "^5.36.0",
94
+ "@fkui/logic": "^5.37.0",
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": "ed943d99b4d9d70f204f07ce6a30b01d8f8205f3"
112
+ "gitHead": "8ba82e02a3d8d293ce0e8601424dbd039df44306"
113
113
  }