@fkui/vue 5.38.0 → 5.40.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.
@@ -553,19 +553,66 @@ export declare class FModalPageObject implements BasePageObject {
553
553
  }
554
554
 
555
555
  /**
556
- * Represents f-navigation-menu with access to its i-menu and its i-popup-menu element
556
+ * Represents `f-navigation-menu` with access to its elements
557
+ * and `i-popup-menu` page object.
557
558
  *
558
- ' @public
559
+ * @public
559
560
  */
560
561
  export declare class FNavigationMenuPageobject implements BasePageObject {
561
562
  selector: string;
563
+ /**
564
+ * @param selector - the root of the navigation menu, usually `.imenu`.
565
+ */
566
+ constructor(selector?: string);
562
567
  el(): DefaultCypressChainable;
563
568
  /**
564
- * @param selector - the root of the navigation menu, usually `div > nav.imenu`.
569
+ * Get all visible items in the menu, including the popup menu item.
570
+ *
571
+ * @returns All visible menu items.
572
+ */
573
+ items(): DefaultCypressChainable;
574
+ /**
575
+ * Get all overflowed (hidden) items in the menu.
576
+ *
577
+ * @returns All overflowed menu items.
578
+ */
579
+ overflowItems(): DefaultCypressChainable;
580
+ /**
581
+ * Get the visible item at position index in the menu, including popup item.
582
+ *
583
+ * @param index - the position index in the item array.
584
+ * @returns Menu item with given index.
585
+ */
586
+ item(index: number): DefaultCypressChainable;
587
+ /**
588
+ * Get link for visible item at given index, including popup item.
589
+ *
590
+ * @param index - the position index in the item array.
591
+ * @returns link with given index.
592
+ */
593
+ itemLink(index: number): DefaultCypressChainable;
594
+ /**
595
+ * Get currently selected menu item.
596
+ *
597
+ * @returns Currently selected item.
598
+ */
599
+ selectedItem(): DefaultCypressChainable;
600
+ /**
601
+ * Get the menu item that open the popup menu.
602
+ *
603
+ * @returns The popup menu item.
604
+ */
605
+ popupItem(): DefaultCypressChainable;
606
+ /**
607
+ * Returns `IPopupMenu` page object.
565
608
  */
566
- constructor(selector: string);
567
- menu(): IMenuPageObject;
568
609
  popupMenu(): IPopupMenuPageObject;
610
+ /**
611
+ * Returns `IMenu` page object.
612
+ *
613
+ * @deprecated `IMenuPageObject` is deprecated and equivalent methods are available for `FNavigationMenuPageobject`.
614
+ */
615
+ menu(): IMenuPageObject;
569
616
  }
570
617
 
571
618
  /**
@@ -909,41 +956,46 @@ export declare class ICalendarNavbarPageObject implements BasePageObject {
909
956
  }
910
957
 
911
958
  /**
912
- * pageobject for the IMenu component
959
+ * pageobject for the removed IMenu component.
913
960
  *
961
+ * @deprecated `IMenuPageObject` is deprecated and equivalent methods are available for `FNavigationMenuPageobject`.
914
962
  * @public
915
963
  */
916
964
  export declare class IMenuPageObject implements BasePageObject {
917
965
  selector: string;
918
- el(): DefaultCypressChainable;
919
966
  /**
920
967
  * @param selector - the root of the IMenu, usually `<nav class="imenu">...</nav>`.
921
968
  */
922
- constructor(selector: string);
969
+ constructor(selector?: string);
970
+ el(): DefaultCypressChainable;
923
971
  /**
924
- * Get all items in the IMenu
972
+ * Get all visible items in the IMenu, including popup item.
925
973
  *
926
- * @returns all items
974
+ * @deprecated Use `FNavigationMenuPageobject.items()` instead.
975
+ * @returns All visible items.
927
976
  */
928
977
  items(): DefaultCypressChainable;
929
978
  /**
930
- * Get the item at position index in the IMenu
979
+ * Get the visible item at position index in the IMenu, including popup item.
931
980
  *
932
- * @param index - the position index in the item array
933
- * @returns Menu item with given index
981
+ * @deprecated Use `FNavigationMenuPageobject.item()` instead.
982
+ * @param index - the position index in the item array.
983
+ * @returns Menu item with given index.
934
984
  */
935
985
  item(index: number): DefaultCypressChainable;
936
986
  /**
937
- * Get link for item at index
987
+ * Get link for visible item at index, including popup item.
938
988
  *
939
- * @param index - the position index in the item array
940
- * @returns link with given index
989
+ * @deprecated Use `FNavigationMenuPageobject.itemLink()` instead.
990
+ * @param index - the position index in the item array.
991
+ * @returns link with given index.
941
992
  */
942
993
  getItemLink(index: number): DefaultCypressChainable;
943
994
  /**
944
- * Get currently selected menu item
995
+ * Get currently selected menu item.
945
996
  *
946
- * @returns Currently selected item
997
+ * @deprecated Use `FNavigationMenuPageobject.selectedItem()` instead.
998
+ * @returns Currently selected item.
947
999
  */
948
1000
  getSelectedItem(): DefaultCypressChainable;
949
1001
  }
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.47.9"
8
+ "packageVersion": "7.48.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -1327,7 +1327,13 @@ module.exports = defineMetadata({
1327
1327
  },
1328
1328
  },
1329
1329
  permittedContent: ["@flow", "template"],
1330
- slots: ["default", "step-of", "error-message", "next-button-text"],
1330
+ slots: [
1331
+ "default",
1332
+ "step-of",
1333
+ "error-message",
1334
+ "next-button-text",
1335
+ "cancel-button-text",
1336
+ ],
1331
1337
  },
1332
1338
 
1333
1339
  "f-wizard-step#default": {
@@ -1351,6 +1357,15 @@ module.exports = defineMetadata({
1351
1357
  },
1352
1358
  },
1353
1359
 
1360
+ "f-wizard-step#cancel-button-text": {
1361
+ inherit: "button",
1362
+ attributes: {
1363
+ type: {
1364
+ required: false,
1365
+ },
1366
+ },
1367
+ },
1368
+
1354
1369
  "f-page-header": {
1355
1370
  flow: true,
1356
1371
  interactive: true,
@@ -209,7 +209,8 @@ module.exports = defineMetadata({
209
209
  },
210
210
  },
211
211
  },
212
- "i-menu": {
212
+
213
+ "i-popup-menu": {
213
214
  flow: true,
214
215
  interactive: true,
215
216
  permittedContent: [],
@@ -218,16 +219,6 @@ module.exports = defineMetadata({
218
219
  items: {
219
220
  required: true,
220
221
  },
221
- vertical: {
222
- boolean: true,
223
- required: false,
224
- },
225
- },
226
- },
227
-
228
- "i-popup-menu": {
229
- inherit: "i-menu",
230
- attributes: {
231
222
  "is-open": {
232
223
  boolean: true,
233
224
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/vue",
3
- "version": "5.38.0",
3
+ "version": "5.40.0",
4
4
  "description": "Vue implementation of FKUI components",
5
5
  "keywords": [
6
6
  "fkui",
@@ -51,51 +51,21 @@
51
51
  "build:lib": "fk-build-vue-lib",
52
52
  "build:pageobjects": "esbuild --bundle --platform=node --target=node12.0 --sourcemap --outfile=dist/cjs/pageobject.js ./src/pageobjects.ts",
53
53
  "clean": "rimraf -g .jest-cache *.tsbuildinfo coverage dist public temp test-results",
54
+ "prepack": "release-prepack --bundle --retain-scripts",
55
+ "postpack": "release-postpack",
56
+ "prepublishOnly": "release-prepublish --bundle --retain-scripts",
54
57
  "start": "vite --",
55
58
  "test": "jest --coverage",
56
59
  "unit": "jest",
57
60
  "unit:watch": "jest --watch"
58
61
  },
59
- "jest": {
60
- "globals": {
61
- "vue-jest": {
62
- "compilerOptions": {
63
- "comments": false
64
- }
65
- }
66
- },
67
- "preset": "@forsakringskassan/jest-config-vue",
68
- "setupFilesAfterEnv": [
69
- "./jest.setup.ts"
70
- ]
71
- },
72
- "dependencies": {
73
- "lodash": "^4.17.20"
74
- },
75
- "devDependencies": {
76
- "@fkui/css-variables": "5.38.0",
77
- "@fkui/date": "5.38.0",
78
- "@fkui/design": "5.38.0",
79
- "@fkui/icon-lib-default": "5.38.0",
80
- "@fkui/logic": "5.38.0",
81
- "@fkui/test-utils": "5.38.0",
82
- "@forsakringskassan/vite-lib-config": "2.0.3",
83
- "@vue/test-utils": "2.4.6",
84
- "cypress": "13.15.0",
85
- "flush-promises": "1.0.2",
86
- "vite": "5.4.9",
87
- "vue": "3.5.12",
88
- "vue-router": "4.4.5"
89
- },
90
62
  "peerDependencies": {
91
- "@babel/runtime": "^7",
92
63
  "@fkui/date": "^5.36.0",
93
64
  "@fkui/design": "^5.36.0",
94
65
  "@fkui/logic": "^5.36.0",
95
- "core-js": "^3.24",
96
66
  "fk-icons": "^4.30.1",
97
67
  "html-validate": ">= 7.9.0",
98
- "vue": "^3"
68
+ "vue": "^3.5.0"
99
69
  },
100
70
  "peerDependenciesMeta": {
101
71
  "fk-icons": {
@@ -109,5 +79,5 @@
109
79
  "node": ">= 20",
110
80
  "npm": ">= 7"
111
81
  },
112
- "gitHead": "999e94ae55b1f2388a4be51d7542c2f9c2589c83"
82
+ "gitHead": "6cd48f3625440d79dd0bb851e9c3875f772ce451"
113
83
  }