@fkui/vue 6.9.0 → 6.10.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.
- package/dist/cjs/cypress.cjs.js +50 -8
- package/dist/cjs/cypress.cjs.js.map +2 -2
- package/dist/cjs/index.cjs.js +152 -27
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +50 -8
- package/dist/esm/cypress.esm.js.map +2 -2
- package/dist/esm/index.esm.js +152 -27
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/cypress.d.ts +46 -6
- package/dist/types/index.d.ts +4 -4
- package/dist/types/tsdoc-metadata.json +1 -1
- package/htmlvalidate/elements/components.js +4 -1
- package/htmlvalidate/rules/no-template-modal.rule.js +24 -2
- package/package.json +5 -5
package/dist/types/cypress.d.ts
CHANGED
|
@@ -398,11 +398,14 @@ export declare class FFormModalPageObject extends FModalPageObject implements Ba
|
|
|
398
398
|
*/
|
|
399
399
|
export declare class FInteractiveTablePageObject implements BasePageObject {
|
|
400
400
|
selector: string;
|
|
401
|
-
el: () => DefaultCypressChainable;
|
|
402
401
|
/**
|
|
403
|
-
* @param selector -
|
|
402
|
+
* @param selector - root element selector for `FInteractiveTable`, usually `.table`.
|
|
404
403
|
*/
|
|
405
|
-
constructor(selector
|
|
404
|
+
constructor(selector?: string);
|
|
405
|
+
/**
|
|
406
|
+
* Get root element.
|
|
407
|
+
*/
|
|
408
|
+
el(): DefaultCypressChainable;
|
|
406
409
|
/**
|
|
407
410
|
* Get table cell (typically `<td>` but can be `<th>` if row headers are
|
|
408
411
|
* present).
|
|
@@ -427,18 +430,55 @@ export declare class FInteractiveTablePageObject implements BasePageObject {
|
|
|
427
430
|
row: number;
|
|
428
431
|
col: number;
|
|
429
432
|
}): Cypress.Chainable<JQuery<HTMLTableCellElement>>;
|
|
433
|
+
/**
|
|
434
|
+
* Get `<caption>` element.
|
|
435
|
+
*/
|
|
430
436
|
caption(): DefaultCypressChainable;
|
|
437
|
+
/**
|
|
438
|
+
* Get all table headers (`<th>` in `<thead>`).
|
|
439
|
+
*
|
|
440
|
+
* Includes the headers for checkboxes in selectable rows and markers in expandable rows.
|
|
441
|
+
*/
|
|
442
|
+
headersRow(): DefaultCypressChainable;
|
|
443
|
+
/**
|
|
444
|
+
* Get all table body rows (`<tr>` in `<tbody>`).
|
|
445
|
+
*
|
|
446
|
+
* Includes expandable rows even if not expanded.
|
|
447
|
+
*/
|
|
431
448
|
bodyRow(): DefaultCypressChainable;
|
|
449
|
+
/**
|
|
450
|
+
* Get row (`<tr>` in `<tbody>`) of given index.
|
|
451
|
+
*
|
|
452
|
+
* Includes expandable rows even if not expanded.
|
|
453
|
+
*
|
|
454
|
+
* @param index - Row number (0-indexed).
|
|
455
|
+
*/
|
|
432
456
|
row(index: number): DefaultCypressChainable;
|
|
433
|
-
headersRow(): DefaultCypressChainable;
|
|
434
457
|
/**
|
|
435
|
-
*
|
|
458
|
+
* Get page object for `FTableColumn` with selector targeting the given row number.
|
|
459
|
+
*
|
|
460
|
+
* Index includes the header row (index 0 selects the header row while 1 selects first row in table body).
|
|
461
|
+
* Index ignores expandable rows.
|
|
462
|
+
*
|
|
463
|
+
* @param index - Row number (0-indexed).
|
|
464
|
+
* @returns Page object for `FTableColumn`.
|
|
436
465
|
*/
|
|
437
466
|
columnItem(index: number): FTableColumnPageObject;
|
|
438
467
|
/**
|
|
439
|
-
*
|
|
468
|
+
* Get page object for `FTableColumn` with selector targeting the header row.
|
|
469
|
+
*
|
|
470
|
+
* @returns Page object for `FTableColumn`.
|
|
440
471
|
*/
|
|
441
472
|
headerRowItem(): FTableColumnPageObject;
|
|
473
|
+
/**
|
|
474
|
+
* Get sort order icon in given column.
|
|
475
|
+
*
|
|
476
|
+
* Index includes the columns for checkboxes in selectable rows and markers in expandable rows.
|
|
477
|
+
*
|
|
478
|
+
* @param index - Column index (0-indexed).
|
|
479
|
+
* @param order - Column sort order.
|
|
480
|
+
* @returns icon of given sort order.
|
|
481
|
+
*/
|
|
442
482
|
getColumnSortedByIcon(index: number, order: "ascending" | "descending" | "unsorted"): DefaultCypressChainable;
|
|
443
483
|
}
|
|
444
484
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -18445,9 +18445,9 @@ export declare function useResize(options?: UseResizeOptions): UseResize;
|
|
|
18445
18445
|
*/
|
|
18446
18446
|
export declare interface UseResizeOptions {
|
|
18447
18447
|
/** When one or more components sets `enabled` to `true` the resize handle is enabled and the end user can drag it to resize the pane */
|
|
18448
|
-
readonly enabled?: Readonly<Ref<boolean>>;
|
|
18448
|
+
readonly enabled?: boolean | Readonly<Ref<boolean>>;
|
|
18449
18449
|
/** When one or more compoents set `visible` to `true` the resize pane is visible */
|
|
18450
|
-
readonly visible?: Readonly<Ref<boolean>>;
|
|
18450
|
+
readonly visible?: boolean | Readonly<Ref<boolean>>;
|
|
18451
18451
|
/**
|
|
18452
18452
|
* When one or more components set `overlay` to `true` the resize pane is
|
|
18453
18453
|
* displayed as an overlay and instead of occupying space from ther layout
|
|
@@ -18456,7 +18456,7 @@ export declare interface UseResizeOptions {
|
|
|
18456
18456
|
* The `offset` property can be used to set a static size of how much space
|
|
18457
18457
|
* it should occupy.
|
|
18458
18458
|
*/
|
|
18459
|
-
readonly overlay?: Readonly<Ref<boolean>>;
|
|
18459
|
+
readonly overlay?: boolean | Readonly<Ref<boolean>>;
|
|
18460
18460
|
/**
|
|
18461
18461
|
* When `overlay` is enabled this sets how much static space (in px) the
|
|
18462
18462
|
* pane should occupy from the nearby layout areas, that is, how much of the
|
|
@@ -18467,7 +18467,7 @@ export declare interface UseResizeOptions {
|
|
|
18467
18467
|
* amount of space and the rest of the pane will be positioned on
|
|
18468
18468
|
* top of the other layout areas.
|
|
18469
18469
|
*/
|
|
18470
|
-
readonly offset?: Readonly<Ref<number>>;
|
|
18470
|
+
readonly offset?: number | Readonly<Ref<number>>;
|
|
18471
18471
|
}
|
|
18472
18472
|
|
|
18473
18473
|
/**
|
|
@@ -1244,7 +1244,10 @@ module.exports = defineMetadata({
|
|
|
1244
1244
|
|
|
1245
1245
|
"f-wizard-step": {
|
|
1246
1246
|
flow: true,
|
|
1247
|
-
requiredAncestors: [
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "6.10.0",
|
|
4
4
|
"description": "Vue implementation of FKUI components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fkui",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"unit:watch": "jest --watch"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@fkui/date": "^6.
|
|
64
|
-
"@fkui/design": "^6.
|
|
65
|
-
"@fkui/logic": "^6.
|
|
63
|
+
"@fkui/date": "^6.10.0",
|
|
64
|
+
"@fkui/design": "^6.10.0",
|
|
65
|
+
"@fkui/logic": "^6.10.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": "
|
|
82
|
+
"gitHead": "e9daf74232b7f96db6d4289338ad08c7bd6f61fa"
|
|
83
83
|
}
|