@fkui/vue-labs 6.43.1 → 6.44.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 +0 -244
- package/dist/cjs/cypress.cjs.js.map +3 -3
- package/dist/cjs/index.cjs.js +2276 -5109
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +0 -244
- package/dist/esm/cypress.esm.js.map +3 -3
- package/dist/esm/index.esm.js +2280 -5106
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/cypress.d.ts +0 -160
- package/dist/types/index.d.ts +11 -336
- package/dist/types/tsdoc-metadata.json +1 -1
- package/htmlvalidate/elements/elements.js +1 -102
- package/package.json +6 -6
package/dist/types/cypress.d.ts
CHANGED
|
@@ -11,166 +11,6 @@ declare interface BasePageObject {
|
|
|
11
11
|
|
|
12
12
|
declare type DefaultCypressChainable = Cypress.Chainable<JQuery>;
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* @public
|
|
16
|
-
* @since v6.24.0
|
|
17
|
-
*/
|
|
18
|
-
export declare class FTablePageObject implements BasePageObject {
|
|
19
|
-
selector: string;
|
|
20
|
-
private readonly selectHeader;
|
|
21
|
-
private readonly columnTitle;
|
|
22
|
-
private readonly columnDescription;
|
|
23
|
-
private readonly expandCell;
|
|
24
|
-
private readonly selectCell;
|
|
25
|
-
/**
|
|
26
|
-
* @param selector - root element selector for `FTable`, usually `.table-ng`.
|
|
27
|
-
*/
|
|
28
|
-
constructor(selector?: string);
|
|
29
|
-
/**
|
|
30
|
-
* Get root element.
|
|
31
|
-
*
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
el(): DefaultCypressChainable;
|
|
35
|
-
/**
|
|
36
|
-
* Get table header cell (`<th>` in `<thead>`).
|
|
37
|
-
*
|
|
38
|
-
* The headers for expandable buttons and selectable checkboxes are included.
|
|
39
|
-
*
|
|
40
|
-
* @public
|
|
41
|
-
* @param col - Column number of header (1-indexed).
|
|
42
|
-
* @returns The header cell element (`<th>`).
|
|
43
|
-
*/
|
|
44
|
-
header(col: number): Cypress.Chainable<JQuery<HTMLTableCellElement>>;
|
|
45
|
-
/**
|
|
46
|
-
* Get column title from table header.
|
|
47
|
-
*
|
|
48
|
-
* The headers for expandable buttons and selectable checkboxes are included.
|
|
49
|
-
*
|
|
50
|
-
* @public
|
|
51
|
-
* @param col - Column number of header (1-indexed).
|
|
52
|
-
* @returns Column description in header.
|
|
53
|
-
*/
|
|
54
|
-
headerTitle(col: number): DefaultCypressChainable;
|
|
55
|
-
/**
|
|
56
|
-
* Get column description from table header.
|
|
57
|
-
*
|
|
58
|
-
* The headers for expandable buttons and selectable checkboxes are included.
|
|
59
|
-
*
|
|
60
|
-
* @public
|
|
61
|
-
* @param col - Column number of header (1-indexed).
|
|
62
|
-
* @returns Column description in header.
|
|
63
|
-
*/
|
|
64
|
-
headerDescription(col: number): DefaultCypressChainable;
|
|
65
|
-
/**
|
|
66
|
-
* Get table cell (typically `<td>` but can be `<th>` if row headers are
|
|
67
|
-
* present).
|
|
68
|
-
*
|
|
69
|
-
* Both row and column are 1-indexed, i.e. 1:1 selects the first cell in the
|
|
70
|
-
* first row.
|
|
71
|
-
*
|
|
72
|
-
* The columns for expandable buttons and selectable checkboxes are included in column count.
|
|
73
|
-
*
|
|
74
|
-
* For expandable rows the row count depend on whenever a row is expanded or
|
|
75
|
-
* not. If the first row is collapsed the second row refers to the next
|
|
76
|
-
* parent row while if the first row is expanded the second row refers to
|
|
77
|
-
* the first expanded row under the first row.
|
|
78
|
-
*
|
|
79
|
-
* @public
|
|
80
|
-
* @param descriptor - Row and column number of cell (1-indexed).
|
|
81
|
-
* @returns The cell element.
|
|
82
|
-
*/
|
|
83
|
-
cell(descriptor: {
|
|
84
|
-
row: number;
|
|
85
|
-
col: number;
|
|
86
|
-
}): Cypress.Chainable<JQuery<HTMLTableCellElement>>;
|
|
87
|
-
/**
|
|
88
|
-
* Get expand button of given row.
|
|
89
|
-
*
|
|
90
|
-
* Only applicable if using an expandable table.
|
|
91
|
-
*
|
|
92
|
-
* @public
|
|
93
|
-
* @param row - Row number for the expand button (1-indexed).
|
|
94
|
-
* @returns Expand button of given row.
|
|
95
|
-
*/
|
|
96
|
-
expandButton(row: number): Cypress.Chainable<JQuery<HTMLButtonElement>>;
|
|
97
|
-
/**
|
|
98
|
-
* Get checkbox in the table header for selectable column.
|
|
99
|
-
*
|
|
100
|
-
* Only applicable if using a multiselect table.
|
|
101
|
-
*
|
|
102
|
-
* @public
|
|
103
|
-
* @returns Checkbox in selectable column header.
|
|
104
|
-
*/
|
|
105
|
-
selectHeaderInput(): Cypress.Chainable<JQuery<HTMLInputElement>>;
|
|
106
|
-
/**
|
|
107
|
-
* Get select input of given row.
|
|
108
|
-
*
|
|
109
|
-
* Only applicable if using a selectable table.
|
|
110
|
-
* Input is a checkbox if using a multiselect table and radio if single.
|
|
111
|
-
*
|
|
112
|
-
* @param row - Row number for the select input (1-indexed).
|
|
113
|
-
* @returns Select input of given row.
|
|
114
|
-
*/
|
|
115
|
-
selectInput(row: number): Cypress.Chainable<JQuery<HTMLInputElement>>;
|
|
116
|
-
/* Excluded from this release type: contextmenu */
|
|
117
|
-
/**
|
|
118
|
-
* Get the menu items of the currently open context menu.
|
|
119
|
-
*
|
|
120
|
-
* The context menu must have been opened for this to return an element.
|
|
121
|
-
*
|
|
122
|
-
* @public
|
|
123
|
-
* @returns The context menu items.
|
|
124
|
-
*/
|
|
125
|
-
contextmenuItems(): Cypress.Chainable<JQuery<HTMLButtonElement>>;
|
|
126
|
-
/* Excluded from this release type: selectDropdown */
|
|
127
|
-
/**
|
|
128
|
-
* Get an option in a select cell dropdown.
|
|
129
|
-
*
|
|
130
|
-
* Only applicable if using a select cell.
|
|
131
|
-
*
|
|
132
|
-
* Element is teleported and does not use given selector. Method may
|
|
133
|
-
* not work properly if there are several dropdowns open simultaneously.
|
|
134
|
-
*
|
|
135
|
-
* @public
|
|
136
|
-
* @param option - option number (1-indexed).
|
|
137
|
-
* @returns Option of given number from a select cell dropdown.
|
|
138
|
-
*/
|
|
139
|
-
selectDropdownOption(option: number): DefaultCypressChainable;
|
|
140
|
-
/**
|
|
141
|
-
* Get table caption.
|
|
142
|
-
*
|
|
143
|
-
* Only applicable if caption slot is used.
|
|
144
|
-
*
|
|
145
|
-
* @public
|
|
146
|
-
* @returns The table caption.
|
|
147
|
-
*/
|
|
148
|
-
caption(): Cypress.Chainable<JQuery<HTMLTableSectionElement>>;
|
|
149
|
-
/**
|
|
150
|
-
* Get table footer.
|
|
151
|
-
*
|
|
152
|
-
* Only applicable if footer slot is used.
|
|
153
|
-
*
|
|
154
|
-
* @public
|
|
155
|
-
* @returns The table footer.
|
|
156
|
-
*/
|
|
157
|
-
footer(): Cypress.Chainable<JQuery<HTMLTableSectionElement>>;
|
|
158
|
-
/* Excluded from this release type: tabbableElement */
|
|
159
|
-
/**
|
|
160
|
-
* Get all visible rows (`<tr>` in `<tbody>`).
|
|
161
|
-
*
|
|
162
|
-
* Includes expanded rows if table is expandable.
|
|
163
|
-
*
|
|
164
|
-
* @public
|
|
165
|
-
* @returns All visible rows in the table.
|
|
166
|
-
*/
|
|
167
|
-
rows(): Cypress.Chainable<JQuery<HTMLTableRowElement>>;
|
|
168
|
-
/* Excluded from this release type: bodyRow */
|
|
169
|
-
/* Excluded from this release type: thead */
|
|
170
|
-
/* Excluded from this release type: tbody */
|
|
171
|
-
/* Excluded from this release type: tfoot */
|
|
172
|
-
}
|
|
173
|
-
|
|
174
14
|
/**
|
|
175
15
|
* @public
|
|
176
16
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,84 +1,27 @@
|
|
|
1
|
-
import { Component } from 'vue';
|
|
2
1
|
import { ComponentOptions } from 'vue';
|
|
3
2
|
import { ComponentOptionsMixin } from 'vue';
|
|
4
3
|
import { ComponentProvideOptions } from 'vue';
|
|
5
|
-
import { Dataset } from '@fkui/vue';
|
|
6
|
-
import { DatasetNestedKeyOf } from '@fkui/vue';
|
|
7
4
|
import { DefineComponent } from 'vue';
|
|
8
5
|
import { ExtractPropTypes } from 'vue';
|
|
9
6
|
import { FormatFunction } from '@fkui/vue';
|
|
10
|
-
import { HTMLAttributes } from 'vue';
|
|
11
7
|
import { IPopupErrorData } from '@fkui/vue';
|
|
12
|
-
import { MaybeRef } from 'vue';
|
|
13
8
|
import { ParseFunction } from '@fkui/vue';
|
|
14
9
|
import { PropType } from 'vue';
|
|
15
10
|
import { PublicProps } from 'vue';
|
|
16
11
|
import { Ref } from 'vue';
|
|
17
|
-
import { ShallowRef } from 'vue';
|
|
18
|
-
import { ShallowUnwrapRef } from 'vue';
|
|
19
12
|
import { UnwrapRefSimple } from '@vue/reactivity';
|
|
20
13
|
import { ValidatorConfig } from '@fkui/logic';
|
|
21
|
-
import { ValidatorConfigs } from '@fkui/logic';
|
|
22
14
|
import { ValidityEvent } from '@fkui/logic';
|
|
23
15
|
import { VNode } from 'vue';
|
|
24
16
|
|
|
25
17
|
declare const __VLS_base: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
26
18
|
|
|
27
|
-
declare const __VLS_export: <
|
|
28
|
-
props: PublicProps & __VLS_PrettifyLocal<({
|
|
29
|
-
columns: Array<TableColumn<T, KeyAttribute>>;
|
|
30
|
-
rows: Dataset<T>;
|
|
31
|
-
keyAttribute?: KeyAttribute;
|
|
32
|
-
/**
|
|
33
|
-
* Optional callback for setting classes on table rows (`<tr>` element).
|
|
34
|
-
*/
|
|
35
|
-
rowClass?: (row: T) => HTMLAttributes["class"];
|
|
36
|
-
striped?: boolean;
|
|
37
|
-
disableDividers?: boolean;
|
|
38
|
-
selectable?: "single" | "multi";
|
|
39
|
-
} & {
|
|
40
|
-
selectedRows?: T[];
|
|
41
|
-
}) & {
|
|
42
|
-
"onUpdate:selectedRows"?: ((value: T[]) => any) | undefined;
|
|
43
|
-
}> & (typeof globalThis extends {
|
|
44
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
45
|
-
} ? P : {});
|
|
46
|
-
expose: (exposed: ShallowUnwrapRef<FTableApi>) => void;
|
|
47
|
-
attrs: any;
|
|
48
|
-
slots: {
|
|
49
|
-
/**
|
|
50
|
-
* Slot for table caption
|
|
51
|
-
*/
|
|
52
|
-
caption?(): void;
|
|
53
|
-
/**
|
|
54
|
-
* Slot for content when table is empty
|
|
55
|
-
*/
|
|
56
|
-
empty?(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Slot for table footer
|
|
59
|
-
*/
|
|
60
|
-
footer?(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Slot for rendering custom expandable content
|
|
63
|
-
*/
|
|
64
|
-
expandable?(bindings: {
|
|
65
|
-
/**
|
|
66
|
-
* The expanded row (from the dataset nested attribute of the parent row)
|
|
67
|
-
*/
|
|
68
|
-
row: Required<T>[DatasetNestedKeyOf<T>] extends unknown[] ? Required<T>[DatasetNestedKeyOf<T>][number] : never;
|
|
69
|
-
}): void;
|
|
70
|
-
};
|
|
71
|
-
emit: (event: "update:selectedRows", value: T[]) => void;
|
|
72
|
-
}>) => VNode & {
|
|
73
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
74
|
-
};
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
75
20
|
|
|
76
|
-
declare const __VLS_export_2:
|
|
21
|
+
declare const __VLS_export_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
77
22
|
|
|
78
|
-
declare const __VLS_export_3:
|
|
79
|
-
|
|
80
|
-
declare const __VLS_export_4: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
81
|
-
props: PublicProps & __VLS_PrettifyLocal_2<{
|
|
23
|
+
declare const __VLS_export_3: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
24
|
+
props: PublicProps & __VLS_PrettifyLocal<{
|
|
82
25
|
data: T[];
|
|
83
26
|
sort?(data: T[]): T[];
|
|
84
27
|
filter?(data: T[]): T[];
|
|
@@ -101,7 +44,7 @@ declare const __VLS_export_4: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
101
44
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
102
45
|
};
|
|
103
46
|
|
|
104
|
-
declare const
|
|
47
|
+
declare const __VLS_export_4: DefineComponent<ExtractPropTypes< {
|
|
105
48
|
formatter: {
|
|
106
49
|
type: PropType<FormatFunction<HoursMinutesString>>;
|
|
107
50
|
required: false;
|
|
@@ -221,7 +164,7 @@ resolveNewModelValue(viewValue: string): unknown;
|
|
|
221
164
|
syncViewValueAfterModelUpdate(newModelValue: unknown): void | never;
|
|
222
165
|
triggerComponentValidityEvent(validityEvent: ValidityEvent): void;
|
|
223
166
|
setViewValueToFormattedValueOrFallbackToValue(): void;
|
|
224
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, ("
|
|
167
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:modelValue" | "blur")[], "change" | "update:modelValue" | "blur", PublicProps, Readonly<ExtractPropTypes< {
|
|
225
168
|
id: {
|
|
226
169
|
type: StringConstructor;
|
|
227
170
|
required: false;
|
|
@@ -282,8 +225,8 @@ modelValue: string | number | null;
|
|
|
282
225
|
inline: boolean;
|
|
283
226
|
options: string[] | undefined;
|
|
284
227
|
labelWidth: string;
|
|
285
|
-
formatter: FormatFunction<any>;
|
|
286
228
|
parser: ParseFunction<any>;
|
|
229
|
+
formatter: FormatFunction<any>;
|
|
287
230
|
inputWidth: string;
|
|
288
231
|
}, {}, {
|
|
289
232
|
FLabel: DefineComponent<ExtractPropTypes< {
|
|
@@ -591,12 +534,6 @@ declare type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
|
591
534
|
[K in keyof T as K]: T[K];
|
|
592
535
|
}) & {};
|
|
593
536
|
|
|
594
|
-
declare type __VLS_PrettifyLocal_2<T> = (T extends any ? {
|
|
595
|
-
[K in keyof T]: T[K];
|
|
596
|
-
} : {
|
|
597
|
-
[K in keyof T as K]: T[K];
|
|
598
|
-
}) & {};
|
|
599
|
-
|
|
600
537
|
declare type __VLS_Props = {
|
|
601
538
|
/**
|
|
602
539
|
* Unix timestamp in milliseconds.
|
|
@@ -620,16 +557,6 @@ declare type __VLS_WithSlots<T, S> = T & {
|
|
|
620
557
|
};
|
|
621
558
|
};
|
|
622
559
|
|
|
623
|
-
/**
|
|
624
|
-
* @public
|
|
625
|
-
*/
|
|
626
|
-
export declare const baseTypes: readonly ["anchor", "button", "checkbox", "render", "rowheader", "select"];
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* @public
|
|
630
|
-
*/
|
|
631
|
-
export declare function defineTableColumns<T, K extends keyof T = keyof T>(columns: Array<TableColumn<T, K>>): Array<TableColumn<T, K>>;
|
|
632
|
-
|
|
633
560
|
/**
|
|
634
561
|
* @public
|
|
635
562
|
*/
|
|
@@ -640,47 +567,6 @@ export declare function forgivingParseTimeToNumber(value?: string | null): numbe
|
|
|
640
567
|
*/
|
|
641
568
|
export declare function formatNumberToTime(value?: number): HoursMinutesString | undefined;
|
|
642
569
|
|
|
643
|
-
export declare const FTable: typeof __VLS_export;
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* {@link FTable} public api. Exposed in template reference.
|
|
647
|
-
*
|
|
648
|
-
* ```
|
|
649
|
-
* const tableRef = useTemplateRef("table");
|
|
650
|
-
* ```
|
|
651
|
-
*
|
|
652
|
-
* @public
|
|
653
|
-
*/
|
|
654
|
-
export declare interface FTableApi {
|
|
655
|
-
/**
|
|
656
|
-
* Alters tabstop behaviour during action.
|
|
657
|
-
* Typically used during single row removal to put focus on cell nearby.
|
|
658
|
-
* Default behaviour is to reset tabstop on removal (focus on first cell).
|
|
659
|
-
*/
|
|
660
|
-
withTabstopBehaviour(behaviour: "default" | "row-removal", action: () => void | Promise<void>): Promise<void>;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* {@link FTable} optional cell api. Expose in cell component.
|
|
665
|
-
*
|
|
666
|
-
* @public
|
|
667
|
-
*/
|
|
668
|
-
export declare interface FTableCellApi {
|
|
669
|
-
/**
|
|
670
|
-
* Preferred tabstop element when other than default (`td`).
|
|
671
|
-
*/
|
|
672
|
-
tabstopEl: Readonly<ShallowRef<HTMLElement | null>>;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* Get sortable attributes for use with `FSortFilterDataset`.
|
|
677
|
-
*
|
|
678
|
-
* @public
|
|
679
|
-
* @since v6.41.0
|
|
680
|
-
* @param columns - Table columns to get sortable attributes from.
|
|
681
|
-
*/
|
|
682
|
-
export declare function getTableSortableAttributes(columns: MaybeSortableTableColumn[]): Record<PropertyKey, string | Readonly<Ref<string>>>;
|
|
683
|
-
|
|
684
570
|
/**
|
|
685
571
|
* @public
|
|
686
572
|
*/
|
|
@@ -711,41 +597,11 @@ export declare class HoursMinutesValidatorUtils {
|
|
|
711
597
|
static getParserFromConfig(config?: ValidatorConfig): (viewValue: string | null | undefined) => number | undefined;
|
|
712
598
|
}
|
|
713
599
|
|
|
714
|
-
/**
|
|
715
|
-
* @public
|
|
716
|
-
*/
|
|
717
|
-
export declare type InputType = InputTypeBase | InputTypeNumber | InputTypeText;
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* @public
|
|
721
|
-
*/
|
|
722
|
-
export declare type InputTypeBase = (typeof baseTypes)[number];
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* @public
|
|
726
|
-
*/
|
|
727
|
-
export declare type InputTypeNumber = (typeof numberTypes)[number];
|
|
728
|
-
|
|
729
|
-
/**
|
|
730
|
-
* @public
|
|
731
|
-
*/
|
|
732
|
-
export declare type InputTypeText = (typeof textTypes)[number];
|
|
733
|
-
|
|
734
600
|
/**
|
|
735
601
|
* @public
|
|
736
602
|
*/
|
|
737
603
|
export declare function matchPropertyValue<T, K extends keyof T = keyof T>(property: K): (item: T, value: T[K] | null) => boolean;
|
|
738
604
|
|
|
739
|
-
/**
|
|
740
|
-
* @public
|
|
741
|
-
* @since v6.41.0
|
|
742
|
-
*/
|
|
743
|
-
export declare interface MaybeSortableTableColumn {
|
|
744
|
-
key?: PropertyKey;
|
|
745
|
-
header: string | Readonly<Ref<string>>;
|
|
746
|
-
sort?: boolean;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
605
|
/**
|
|
750
606
|
* Helper for converting AgeTimeTextField values into hours. For convienence,
|
|
751
607
|
* it is possible to provide multiple values and get their sum. The actual
|
|
@@ -792,208 +648,27 @@ export declare function minutesToObject(...values: Array<number | undefined>): {
|
|
|
792
648
|
*/
|
|
793
649
|
export declare function minutesToUserFriendlyString(value: number): string;
|
|
794
650
|
|
|
795
|
-
/**
|
|
796
|
-
* @public
|
|
797
|
-
*/
|
|
798
|
-
export declare const numberTypes: readonly ["text:currency", "text:number", "text:percent"];
|
|
799
|
-
|
|
800
651
|
/**
|
|
801
652
|
* @public
|
|
802
653
|
*/
|
|
803
654
|
export declare function parseTimeToNumber(value?: string | null): number | undefined;
|
|
804
655
|
|
|
805
|
-
/**
|
|
806
|
-
* Removes given row from the array.
|
|
807
|
-
* If `expandableAttribute` is set it can removes rows from nested rows.
|
|
808
|
-
*
|
|
809
|
-
* @public
|
|
810
|
-
* @since v6.34.1
|
|
811
|
-
* @param rows - The row array
|
|
812
|
-
* @param row - The row to remove (expected to exist in the row array)
|
|
813
|
-
* @param expandableAttribute - If set, this function will search for and remove expandable rows the given row.
|
|
814
|
-
* @returns A new array with row removed.
|
|
815
|
-
*/
|
|
816
|
-
export declare function removeRow<T>(rows: T[], row: T, expandableAttribute?: keyof T): T[];
|
|
817
|
-
|
|
818
656
|
/**
|
|
819
657
|
* @public
|
|
820
658
|
*/
|
|
821
659
|
export declare function splitHoursMinutes(valueString: string, extraForgiving?: boolean): string[];
|
|
822
660
|
|
|
823
|
-
/**
|
|
824
|
-
* @public
|
|
825
|
-
*/
|
|
826
|
-
export declare type TableColumn<T, K extends keyof T = keyof T> = TableColumnSimple<T, K> | TableColumnCheckbox<T, K> | TableColumnRowHeader<T, K> | TableColumnText<T, K> | TableColumnNumber<T, K> | TableColumnAnchor<T, K> | TableColumnButton<T, K> | TableColumnRender<T, K> | TableColumnSelect<T, K> | TableColumnMenu<T>;
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* @public
|
|
830
|
-
*/
|
|
831
|
-
export declare interface TableColumnAnchor<T, K extends keyof T> extends TableColumnBase {
|
|
832
|
-
type: "anchor";
|
|
833
|
-
key?: K;
|
|
834
|
-
text(this: void, row: T): string | null;
|
|
835
|
-
href: string;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* Base properties shared by all table column types.
|
|
840
|
-
*
|
|
841
|
-
* @public
|
|
842
|
-
*/
|
|
843
|
-
export declare interface TableColumnBase {
|
|
844
|
-
header: string | Readonly<Ref<string>>;
|
|
845
|
-
description?: string | Readonly<Ref<string | null>>;
|
|
846
|
-
size?: TableColumnSize | Readonly<Ref<TableColumnSize | null>>;
|
|
847
|
-
sort?: boolean;
|
|
848
|
-
enabled?: MaybeRef<boolean>;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
/**
|
|
852
|
-
* @public
|
|
853
|
-
*/
|
|
854
|
-
export declare interface TableColumnButton<T, K extends keyof T> extends TableColumnBase {
|
|
855
|
-
type: "button";
|
|
856
|
-
key?: K;
|
|
857
|
-
text(this: void, row: T): string | null;
|
|
858
|
-
onClick?(this: void, row: T): void;
|
|
859
|
-
icon?: string;
|
|
860
|
-
/**
|
|
861
|
-
* The icon library to use when rendering an icon. If not set, the default icon library will be used.
|
|
862
|
-
*/
|
|
863
|
-
iconLibrary?: string;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
/**
|
|
867
|
-
* @public
|
|
868
|
-
*/
|
|
869
|
-
export declare interface TableColumnCheckbox<T, K extends keyof T> extends TableColumnBase {
|
|
870
|
-
type: "checkbox";
|
|
871
|
-
key?: K;
|
|
872
|
-
label?(this: void, row: T): string;
|
|
873
|
-
checked?(this: void, row: T): boolean;
|
|
874
|
-
update?(this: void, row: T, newValue: boolean, oldValue: boolean): void;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* @public
|
|
879
|
-
*/
|
|
880
|
-
export declare interface TableColumnMenu<T> extends TableColumnBase {
|
|
881
|
-
type: "menu";
|
|
882
|
-
text(this: void, row: T): string | null;
|
|
883
|
-
actions?: Array<{
|
|
884
|
-
label: string;
|
|
885
|
-
icon?: string;
|
|
886
|
-
onClick?(this: void, row: T): void;
|
|
887
|
-
}>;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* @public
|
|
892
|
-
*/
|
|
893
|
-
export declare interface TableColumnNumber<T, K extends keyof T> extends TableColumnBase {
|
|
894
|
-
type: InputTypeNumber;
|
|
895
|
-
decimals?: number;
|
|
896
|
-
key?: K;
|
|
897
|
-
label?(this: void, row: T): string;
|
|
898
|
-
tnum?: boolean;
|
|
899
|
-
align?: "left" | "right";
|
|
900
|
-
attributes?: Record<string, string | number | boolean | undefined> | ((this: void, row: T) => Record<string, string | number | boolean | undefined>);
|
|
901
|
-
value?(this: void, row: T): string | number;
|
|
902
|
-
update?(this: void, row: T, newValue: number | string, oldValue: number | string): void;
|
|
903
|
-
editable?: boolean | ((this: void, row: T) => boolean);
|
|
904
|
-
validation?: ValidatorConfigs;
|
|
905
|
-
parser?(this: void, value: string): number | string | undefined;
|
|
906
|
-
formatter?(this: void, value: number | string): string | undefined;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
* @public
|
|
911
|
-
*/
|
|
912
|
-
export declare interface TableColumnRender<T, K extends keyof T = keyof T> extends TableColumnBase {
|
|
913
|
-
key?: K;
|
|
914
|
-
render(this: void, row: T): VNode | Component;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* @public
|
|
919
|
-
*/
|
|
920
|
-
export declare interface TableColumnRowHeader<T, K extends keyof T> extends TableColumnBase {
|
|
921
|
-
type: "rowheader";
|
|
922
|
-
key?: K;
|
|
923
|
-
text?(this: void, row: T): string;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
* @public
|
|
928
|
-
*/
|
|
929
|
-
export declare interface TableColumnSelect<T, K extends keyof T> extends TableColumnBase {
|
|
930
|
-
type: "select";
|
|
931
|
-
key?: K;
|
|
932
|
-
label?(this: void, row: T): string;
|
|
933
|
-
selected?(this: void, row: T): string;
|
|
934
|
-
update?(this: void, row: T, newValue: string, oldValue: string): void;
|
|
935
|
-
editable?: boolean | ((this: void, row: T) => boolean);
|
|
936
|
-
options: string[];
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* @public
|
|
941
|
-
*/
|
|
942
|
-
export declare interface TableColumnSimple<T, K extends keyof T> extends TableColumnBase {
|
|
943
|
-
type?: undefined;
|
|
944
|
-
key?: K;
|
|
945
|
-
label?(this: void, row: T): string;
|
|
946
|
-
value?(this: void, row: T): string;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
/**
|
|
950
|
-
* @public
|
|
951
|
-
*/
|
|
952
|
-
export declare type TableColumnSize = "grow" | "shrink";
|
|
953
|
-
|
|
954
|
-
/**
|
|
955
|
-
* @public
|
|
956
|
-
*/
|
|
957
|
-
export declare interface TableColumnText<T, K extends keyof T> extends TableColumnBase {
|
|
958
|
-
type: InputTypeText;
|
|
959
|
-
key?: K;
|
|
960
|
-
label?(this: void, row: T): string;
|
|
961
|
-
tnum?: boolean;
|
|
962
|
-
align?: "left" | "right";
|
|
963
|
-
attributes?: Record<string, string | number | boolean | undefined> | ((this: void, row: T) => Record<string, string | number | boolean | undefined>);
|
|
964
|
-
value?(this: void, row: T): string;
|
|
965
|
-
update?(this: void, row: T, newValue: string, oldValue: string): void;
|
|
966
|
-
editable?: boolean | ((this: void, row: T) => boolean);
|
|
967
|
-
validation?: ValidatorConfigs;
|
|
968
|
-
parser?(this: void, value: string): string | undefined;
|
|
969
|
-
formatter?(this: void, value: string): string | undefined;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
/* Excluded from this release type: TableColumnType */
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* @public
|
|
976
|
-
*/
|
|
977
|
-
export declare const textTypes: readonly ["text:bankAccountNumber", "text:bankgiro", "text:clearingNumber", "text:date", "text:email", "text:organisationsnummer", "text:personnummer", "text:phoneNumber", "text:plusgiro", "text:postalCode", "text"];
|
|
978
|
-
|
|
979
661
|
/**
|
|
980
662
|
* @public
|
|
981
663
|
*/
|
|
982
664
|
export declare function uniqueValues<T, K extends keyof T = keyof T>(items: T[], property: K): Array<T[K]>;
|
|
983
665
|
|
|
984
|
-
export declare const XFileDragdrop: typeof
|
|
666
|
+
export declare const XFileDragdrop: typeof __VLS_export;
|
|
985
667
|
|
|
986
|
-
export declare const XRelativeTime: typeof
|
|
668
|
+
export declare const XRelativeTime: typeof __VLS_export_2;
|
|
987
669
|
|
|
988
|
-
export declare const XSortFilterDatasetNg: typeof
|
|
670
|
+
export declare const XSortFilterDatasetNg: typeof __VLS_export_3;
|
|
989
671
|
|
|
990
|
-
export declare const XTimeTextField: typeof
|
|
672
|
+
export declare const XTimeTextField: typeof __VLS_export_4;
|
|
991
673
|
|
|
992
674
|
export { }
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
declare global {
|
|
996
|
-
interface HTMLElement {
|
|
997
|
-
[tableCellApiSymbol]?: FTableCellApi;
|
|
998
|
-
}
|
|
999
|
-
}
|