@fkui/vue 6.9.0 → 6.11.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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.7"
8
+ "packageVersion": "7.52.8"
9
9
  }
10
10
  ]
11
11
  }
@@ -1244,7 +1244,10 @@ module.exports = defineMetadata({
1244
1244
 
1245
1245
  "f-wizard-step": {
1246
1246
  flow: true,
1247
- requiredAncestors: ["f-wizard > f-wizard-step"],
1247
+ requiredAncestors: [
1248
+ "f-wizard > f-wizard-step",
1249
+ "template > f-wizard-step",
1250
+ ],
1248
1251
  attributes: {
1249
1252
  key: {
1250
1253
  required: true,
@@ -3,11 +3,12 @@ const { getDocumentationUrl } = require("./common");
3
3
 
4
4
  /**
5
5
  * @typedef {import("html-validate/node").ElementReadyEvent} ElementReadyEvent
6
+ * @typedef {import("html-validate/node").HtmlElement} HtmlElement
6
7
  */
7
8
 
8
9
  /**
9
- *
10
10
  * @param {ElementReadyEvent} event
11
+ * @returns {boolean}
11
12
  */
12
13
  function isRelevant(event) {
13
14
  const { target } = event;
@@ -18,6 +19,26 @@ function isRelevant(event) {
18
19
  );
19
20
  }
20
21
 
22
+ /**
23
+ * Test if this element is the document root.
24
+ *
25
+ * @param {HtmlElement} node
26
+ * @returns {boolean}
27
+ */
28
+ function isDocumentRoot(node) {
29
+ return node.isRootElement();
30
+ }
31
+
32
+ /**
33
+ * Test if this element is the <template> element of a Vue SFC component.
34
+ *
35
+ * @param {HtmlElement} node
36
+ * @returns {boolean}
37
+ */
38
+ function isSFCTemplateRoot(node) {
39
+ return node.is("template") && node.parent.isRootElement();
40
+ }
41
+
21
42
  class NoTemplateModal extends Rule {
22
43
  documentation() {
23
44
  return {
@@ -29,7 +50,8 @@ class NoTemplateModal extends Rule {
29
50
 
30
51
  setup() {
31
52
  this.on("element:ready", isRelevant, (event) => {
32
- if (event.target.parent.is("#document")) {
53
+ const { parent } = event.target;
54
+ if (isDocumentRoot(parent) || isSFCTemplateRoot(parent)) {
33
55
  return;
34
56
  }
35
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/vue",
3
- "version": "6.9.0",
3
+ "version": "6.11.0",
4
4
  "description": "Vue implementation of FKUI components",
5
5
  "keywords": [
6
6
  "fkui",
@@ -46,7 +46,7 @@
46
46
  "scripts": {
47
47
  "prebuild": "run-s clean",
48
48
  "build": "run-s build:lib build:pageobjects build:dts build:api",
49
- "build:api": "fk-api-extractor --patch-augmentations api-extractor.*.json",
49
+ "build:api": "node fix-vue-tsc-types.mjs && fk-api-extractor --patch-augmentations api-extractor.*.json",
50
50
  "build:dts": "vue-tsc -b",
51
51
  "build:lib": "fk-build-vue-lib",
52
52
  "build:pageobjects": "node build-pageobjects.mjs",
@@ -60,9 +60,9 @@
60
60
  "unit:watch": "jest --watch"
61
61
  },
62
62
  "peerDependencies": {
63
- "@fkui/date": "^6.9.0",
64
- "@fkui/design": "^6.9.0",
65
- "@fkui/logic": "^6.9.0",
63
+ "@fkui/date": "^6.11.0",
64
+ "@fkui/design": "^6.11.0",
65
+ "@fkui/logic": "^6.11.0",
66
66
  "fk-icons": "^4.30.1",
67
67
  "html-validate": ">= 7.9.0",
68
68
  "vue": "^3.5.0"
@@ -79,5 +79,5 @@
79
79
  "node": ">= 20",
80
80
  "npm": ">= 7"
81
81
  },
82
- "gitHead": "48b871595e21338b3437afb00b21ade0030a78fb"
82
+ "gitHead": "7221a28694d8149533e1b0a45981d5c6ed39532d"
83
83
  }