@fkui/vue 6.4.0 → 6.6.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 +136 -1
- package/dist/cjs/cypress.cjs.js.map +3 -3
- package/dist/cjs/index.cjs.js +4700 -4100
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +136 -1
- package/dist/esm/cypress.esm.js.map +3 -3
- package/dist/esm/index.esm.js +4706 -4106
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/cypress.d.ts +100 -1
- package/dist/types/index.d.ts +145 -31
- package/dist/types/tsdoc-metadata.json +1 -1
- package/htmlvalidate/configs/recommended.js +1 -0
- package/htmlvalidate/elements/components.js +44 -1
- package/htmlvalidate/rules/ftablecolumn-name.rule.js +58 -0
- package/htmlvalidate/rules/index.js +2 -0
- package/package.json +5 -5
package/dist/types/cypress.d.ts
CHANGED
|
@@ -205,6 +205,47 @@ export declare class FDatepickerFieldPageobject implements BasePageObject {
|
|
|
205
205
|
highlightedDay(): DefaultCypressChainable;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Cypress pageobject for`FDetailsPanel`.
|
|
210
|
+
*
|
|
211
|
+
* @public
|
|
212
|
+
*/
|
|
213
|
+
export declare class FDetailsPanelPageObject implements BasePageObject {
|
|
214
|
+
/** Base selector */
|
|
215
|
+
readonly selector: string;
|
|
216
|
+
protected constructor(selector: string);
|
|
217
|
+
/**
|
|
218
|
+
* Get a selector based on the panel name.
|
|
219
|
+
*/
|
|
220
|
+
protected static nameSelector(name: string): string;
|
|
221
|
+
/**
|
|
222
|
+
* Get details panel based on its `name` prop.
|
|
223
|
+
*
|
|
224
|
+
* @param name - Name given to panel.
|
|
225
|
+
*/
|
|
226
|
+
static fromName(name: string): FDetailsPanelPageObject;
|
|
227
|
+
/**
|
|
228
|
+
* Panel element.
|
|
229
|
+
*/
|
|
230
|
+
el(): DefaultCypressChainable;
|
|
231
|
+
/**
|
|
232
|
+
* Content in header slot (as defined by consumer).
|
|
233
|
+
*/
|
|
234
|
+
header(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
235
|
+
/**
|
|
236
|
+
* Content in content slot (as defined by consumer).
|
|
237
|
+
*/
|
|
238
|
+
content(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
239
|
+
/**
|
|
240
|
+
* Content in footer slot (as defined by consumer).
|
|
241
|
+
*/
|
|
242
|
+
footer(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
243
|
+
/**
|
|
244
|
+
* Default submit button.
|
|
245
|
+
*/
|
|
246
|
+
closeButton(): Cypress.Chainable<JQuery<HTMLButtonElement>>;
|
|
247
|
+
}
|
|
248
|
+
|
|
208
249
|
/**
|
|
209
250
|
* @public
|
|
210
251
|
*/
|
|
@@ -362,6 +403,30 @@ export declare class FInteractiveTablePageObject implements BasePageObject {
|
|
|
362
403
|
* @param selector - table selector.
|
|
363
404
|
*/
|
|
364
405
|
constructor(selector: string);
|
|
406
|
+
/**
|
|
407
|
+
* Get table cell (typically `<td>` but can be `<th>` if row headers are
|
|
408
|
+
* present).
|
|
409
|
+
*
|
|
410
|
+
* Both row and column are 1-indexed, i.e. 1:1 selects the first cell in the
|
|
411
|
+
* first row.
|
|
412
|
+
*
|
|
413
|
+
* Neither the marker for expandable rows or the checkbox for selectable
|
|
414
|
+
* rows are included in the column count, i.e. `1` always refers to the
|
|
415
|
+
* first column with content.
|
|
416
|
+
*
|
|
417
|
+
* For expandable rows the row count depend on whenever a row is expanded or
|
|
418
|
+
* not. If the first row is collapsed the second row refers to the next
|
|
419
|
+
* parent row while if the first row is expanded the second row refers to
|
|
420
|
+
* the first expanded row under the first row.
|
|
421
|
+
*
|
|
422
|
+
* @public
|
|
423
|
+
* @param descriptor - Row and column number of cell (1-indexed).
|
|
424
|
+
* @returns The cell element.
|
|
425
|
+
*/
|
|
426
|
+
cell(descriptor: {
|
|
427
|
+
row: number;
|
|
428
|
+
col: number;
|
|
429
|
+
}): Cypress.Chainable<JQuery<HTMLTableCellElement>>;
|
|
365
430
|
caption(): DefaultCypressChainable;
|
|
366
431
|
bodyRow(): DefaultCypressChainable;
|
|
367
432
|
row(index: number): DefaultCypressChainable;
|
|
@@ -481,6 +546,40 @@ export declare class FMessageBoxPageObject implements BasePageObject {
|
|
|
481
546
|
typeOfMessage(): Cypress.Chainable<string>;
|
|
482
547
|
}
|
|
483
548
|
|
|
549
|
+
/**
|
|
550
|
+
* Cypress pageobject for`FMinimizablePanel`.
|
|
551
|
+
*
|
|
552
|
+
* @public
|
|
553
|
+
*/
|
|
554
|
+
export declare class FMinimizablePanelPageObject implements BasePageObject {
|
|
555
|
+
/** Base selector */
|
|
556
|
+
readonly selector: string;
|
|
557
|
+
/**
|
|
558
|
+
* @param selector - panel selector.
|
|
559
|
+
*/
|
|
560
|
+
constructor(selector: string);
|
|
561
|
+
/**
|
|
562
|
+
* Panel element.
|
|
563
|
+
*/
|
|
564
|
+
el(): DefaultCypressChainable;
|
|
565
|
+
/**
|
|
566
|
+
* Content in header slot (as defined by consumer).
|
|
567
|
+
*/
|
|
568
|
+
header(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
569
|
+
/**
|
|
570
|
+
* Content in content slot (as defined by consumer).
|
|
571
|
+
*/
|
|
572
|
+
content(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
573
|
+
/**
|
|
574
|
+
* Content in footer slot (as defined by consumer).
|
|
575
|
+
*/
|
|
576
|
+
footer(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
577
|
+
/**
|
|
578
|
+
* Toggle button.
|
|
579
|
+
*/
|
|
580
|
+
toggleButton(): Cypress.Chainable<JQuery<HTMLButtonElement>>;
|
|
581
|
+
}
|
|
582
|
+
|
|
484
583
|
/**
|
|
485
584
|
* @public
|
|
486
585
|
*/
|
|
@@ -846,8 +945,8 @@ export declare class FWizardStepHeaderPageobject implements BasePageObject {
|
|
|
846
945
|
successIcon: () => DefaultCypressChainable;
|
|
847
946
|
stepNumber: () => Cypress.Chainable<string>;
|
|
848
947
|
stepOf: () => DefaultCypressChainable;
|
|
849
|
-
title: () => DefaultCypressChainable;
|
|
850
948
|
constructor(selector: string);
|
|
949
|
+
title(): DefaultCypressChainable;
|
|
851
950
|
}
|
|
852
951
|
|
|
853
952
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -135,22 +135,24 @@ update: () => any;
|
|
|
135
135
|
onUpdate?: (() => any) | undefined;
|
|
136
136
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
137
137
|
|
|
138
|
-
declare const __VLS_component_4: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {
|
|
138
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
139
|
+
|
|
140
|
+
declare const __VLS_component_5: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
139
141
|
min: string;
|
|
140
142
|
max: string;
|
|
141
143
|
initial: string;
|
|
142
144
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
143
145
|
|
|
144
|
-
declare const
|
|
146
|
+
declare const __VLS_component_6: DefineComponent<ExtractPropTypes< {
|
|
145
147
|
/**
|
|
146
|
-
* Unique (per-table) identifier.
|
|
148
|
+
* Unique (per-table) identifier. Typically set to the row
|
|
149
|
+
* property displayed but any unique string can be used.
|
|
147
150
|
*
|
|
148
|
-
*
|
|
149
|
-
* be used.
|
|
151
|
+
* Only required when used with `FSortFilterDataset`.
|
|
150
152
|
*/
|
|
151
153
|
name: {
|
|
152
154
|
type: StringConstructor;
|
|
153
|
-
|
|
155
|
+
default: undefined;
|
|
154
156
|
};
|
|
155
157
|
/**
|
|
156
158
|
* If set to true, display the column, set to false to hide it.
|
|
@@ -226,14 +228,14 @@ validator(value: string): value is FTableColumnType;
|
|
|
226
228
|
};
|
|
227
229
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
228
230
|
/**
|
|
229
|
-
* Unique (per-table) identifier.
|
|
231
|
+
* Unique (per-table) identifier. Typically set to the row
|
|
232
|
+
* property displayed but any unique string can be used.
|
|
230
233
|
*
|
|
231
|
-
*
|
|
232
|
-
* be used.
|
|
234
|
+
* Only required when used with `FSortFilterDataset`.
|
|
233
235
|
*/
|
|
234
236
|
name: {
|
|
235
237
|
type: StringConstructor;
|
|
236
|
-
|
|
238
|
+
default: undefined;
|
|
237
239
|
};
|
|
238
240
|
/**
|
|
239
241
|
* If set to true, display the column, set to false to hide it.
|
|
@@ -309,14 +311,17 @@ validator(value: string): value is FTableColumnType;
|
|
|
309
311
|
};
|
|
310
312
|
}>> & Readonly<{}>, {
|
|
311
313
|
type: "text" | "date" | "action" | "numeric";
|
|
314
|
+
name: string;
|
|
312
315
|
description: string;
|
|
313
316
|
shrink: boolean;
|
|
314
317
|
expand: boolean;
|
|
315
318
|
visible: boolean;
|
|
316
319
|
rowHeader: boolean;
|
|
317
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
320
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
321
|
+
element: unknown;
|
|
322
|
+
}, any>;
|
|
318
323
|
|
|
319
|
-
declare const
|
|
324
|
+
declare const __VLS_component_7: DefineComponent<IPopupListboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
320
325
|
close: () => any;
|
|
321
326
|
}, string, PublicProps, Readonly<IPopupListboxProps> & Readonly<{
|
|
322
327
|
onClose?: (() => any) | undefined;
|
|
@@ -346,11 +351,24 @@ declare type __VLS_PrettifyLocal_5<T> = {
|
|
|
346
351
|
[K in keyof T]: T[K];
|
|
347
352
|
} & {};
|
|
348
353
|
|
|
354
|
+
declare type __VLS_PrettifyLocal_6<T> = {
|
|
355
|
+
[K in keyof T]: T[K];
|
|
356
|
+
} & {};
|
|
357
|
+
|
|
349
358
|
declare type __VLS_Props = {
|
|
350
359
|
layout: string;
|
|
351
360
|
};
|
|
352
361
|
|
|
353
362
|
declare type __VLS_Props_2 = {
|
|
363
|
+
/**
|
|
364
|
+
* Screenreader context for toggle button.
|
|
365
|
+
*
|
|
366
|
+
* Default value of `fkui.minimizable-panel.context`.
|
|
367
|
+
*/
|
|
368
|
+
context?: string;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
declare type __VLS_Props_3 = {
|
|
354
372
|
/**
|
|
355
373
|
* Minimal size of pane.
|
|
356
374
|
*
|
|
@@ -374,7 +392,7 @@ declare type __VLS_Props_2 = {
|
|
|
374
392
|
initial?: string;
|
|
375
393
|
};
|
|
376
394
|
|
|
377
|
-
declare type
|
|
395
|
+
declare type __VLS_Props_4 = {
|
|
378
396
|
id: string;
|
|
379
397
|
isOpen: boolean;
|
|
380
398
|
options: string[];
|
|
@@ -422,7 +440,15 @@ declare function __VLS_template_3(): {
|
|
|
422
440
|
declare function __VLS_template_4(): {
|
|
423
441
|
attrs: Partial<{}>;
|
|
424
442
|
slots: {
|
|
425
|
-
default?(_: {
|
|
443
|
+
default?(_: {
|
|
444
|
+
isOpen: boolean;
|
|
445
|
+
header: "header";
|
|
446
|
+
footer: "footer";
|
|
447
|
+
content: "content";
|
|
448
|
+
}): any;
|
|
449
|
+
icon?(_: {
|
|
450
|
+
isOpen: boolean;
|
|
451
|
+
}): any;
|
|
426
452
|
};
|
|
427
453
|
refs: {};
|
|
428
454
|
rootEl: any;
|
|
@@ -438,6 +464,17 @@ declare function __VLS_template_5(): {
|
|
|
438
464
|
};
|
|
439
465
|
|
|
440
466
|
declare function __VLS_template_6(): {
|
|
467
|
+
attrs: Partial<{}>;
|
|
468
|
+
slots: {
|
|
469
|
+
default?(_: {}): any;
|
|
470
|
+
};
|
|
471
|
+
refs: {
|
|
472
|
+
element: unknown;
|
|
473
|
+
};
|
|
474
|
+
rootEl: any;
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
declare function __VLS_template_7(): {
|
|
441
478
|
attrs: Partial<{}>;
|
|
442
479
|
slots: {
|
|
443
480
|
default?(_: {}): any;
|
|
@@ -462,6 +499,8 @@ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
|
462
499
|
|
|
463
500
|
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
464
501
|
|
|
502
|
+
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
503
|
+
|
|
465
504
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
466
505
|
new (): {
|
|
467
506
|
$slots: S;
|
|
@@ -498,6 +537,12 @@ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
|
498
537
|
};
|
|
499
538
|
};
|
|
500
539
|
|
|
540
|
+
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
541
|
+
new (): {
|
|
542
|
+
$slots: S;
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
|
|
501
546
|
/* Excluded from this release type: actionFromKeyboardEvent */
|
|
502
547
|
|
|
503
548
|
/**
|
|
@@ -952,6 +997,14 @@ align: string;
|
|
|
952
997
|
export { _default as FValidationForm }
|
|
953
998
|
export { _default as IValidationForm }
|
|
954
999
|
|
|
1000
|
+
/**
|
|
1001
|
+
* @public
|
|
1002
|
+
*/
|
|
1003
|
+
export declare type DetailsPanelCloseCallback<T> = (data: {
|
|
1004
|
+
item: T;
|
|
1005
|
+
reason: string;
|
|
1006
|
+
}) => void;
|
|
1007
|
+
|
|
955
1008
|
/* Excluded from this release type: dispatchComponentUnmountEvent */
|
|
956
1009
|
|
|
957
1010
|
/**
|
|
@@ -4152,6 +4205,9 @@ export declare const FDataTable: <T extends object>(__VLS_props: NonNullable<Awa
|
|
|
4152
4205
|
attrs: any;
|
|
4153
4206
|
slots: {
|
|
4154
4207
|
caption?(_: {}): any;
|
|
4208
|
+
default?(_: {
|
|
4209
|
+
row: {};
|
|
4210
|
+
}): any;
|
|
4155
4211
|
default?(_: {
|
|
4156
4212
|
row: T;
|
|
4157
4213
|
}): any;
|
|
@@ -5230,6 +5286,34 @@ highlight: boolean;
|
|
|
5230
5286
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
5231
5287
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
5232
5288
|
|
|
5289
|
+
export declare const FDetailsPanel: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_3<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5290
|
+
props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & {
|
|
5291
|
+
/**
|
|
5292
|
+
* Name of this panel. Used when referencing the panel in useDetailsPanel.
|
|
5293
|
+
*/
|
|
5294
|
+
name: string;
|
|
5295
|
+
/**
|
|
5296
|
+
* An optional identifier to prevent other panels with the same identifier
|
|
5297
|
+
* from being open at the same time.
|
|
5298
|
+
*/
|
|
5299
|
+
exclusive?: string;
|
|
5300
|
+
} & Partial<{}>> & PublicProps;
|
|
5301
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
5302
|
+
attrs: any;
|
|
5303
|
+
slots: {
|
|
5304
|
+
default?(_: {
|
|
5305
|
+
item: T;
|
|
5306
|
+
close: (reason?: string) => void;
|
|
5307
|
+
header: "header";
|
|
5308
|
+
footer: "footer";
|
|
5309
|
+
content: "content";
|
|
5310
|
+
}): any;
|
|
5311
|
+
};
|
|
5312
|
+
emit: {};
|
|
5313
|
+
}>) => VNode & {
|
|
5314
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
5315
|
+
};
|
|
5316
|
+
|
|
5233
5317
|
export declare const FDialogueTree: DefineComponent<ExtractPropTypes< {
|
|
5234
5318
|
/**
|
|
5235
5319
|
* Current dialogue question
|
|
@@ -7860,8 +7944,8 @@ export declare function findHTMLElementFromVueRef(ref: unknown): HTMLElement | u
|
|
|
7860
7944
|
*/
|
|
7861
7945
|
export declare function findParentByName(vm: ComponentPublicInstance | undefined | null, name: string): ComponentPublicInstance | undefined;
|
|
7862
7946
|
|
|
7863
|
-
export declare const FInteractiveTable: <T extends object, K extends keyof T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
7864
|
-
props:
|
|
7947
|
+
export declare const FInteractiveTable: <T extends object, K extends keyof T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_4<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7948
|
+
props: __VLS_PrettifyLocal_4<Pick<Partial<{
|
|
7865
7949
|
modelValue: T[] | undefined;
|
|
7866
7950
|
scroll: TableScroll;
|
|
7867
7951
|
keyAttribute: string;
|
|
@@ -7914,8 +7998,8 @@ export declare const FInteractiveTable: <T extends object, K extends keyof T>(__
|
|
|
7914
7998
|
slots: {
|
|
7915
7999
|
'row-description'?(_: {}): any;
|
|
7916
8000
|
caption?(_: {}): any;
|
|
7917
|
-
|
|
7918
|
-
row:
|
|
8001
|
+
default?(_: {
|
|
8002
|
+
row: {};
|
|
7919
8003
|
}): any;
|
|
7920
8004
|
default?(_: {
|
|
7921
8005
|
row: T;
|
|
@@ -7929,6 +8013,9 @@ export declare const FInteractiveTable: <T extends object, K extends keyof T>(__
|
|
|
7929
8013
|
default?(_: {
|
|
7930
8014
|
row: T;
|
|
7931
8015
|
}): any;
|
|
8016
|
+
'checkbox-description'?(_: {
|
|
8017
|
+
row: T;
|
|
8018
|
+
}): any;
|
|
7932
8019
|
expandable?(_: {
|
|
7933
8020
|
expandableRow: T;
|
|
7934
8021
|
parentRow: T;
|
|
@@ -8287,8 +8374,8 @@ export declare interface FLayoutRightPanelInteface {
|
|
|
8287
8374
|
*/
|
|
8288
8375
|
export declare const FLayoutRightPanelService: FLayoutRightPanelInteface;
|
|
8289
8376
|
|
|
8290
|
-
export declare const FList: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
8291
|
-
props:
|
|
8377
|
+
export declare const FList: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_5<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8378
|
+
props: __VLS_PrettifyLocal_5<Pick<Partial<{
|
|
8292
8379
|
elementId: string;
|
|
8293
8380
|
modelValue: T[] | undefined;
|
|
8294
8381
|
checkbox: boolean;
|
|
@@ -8577,9 +8664,9 @@ default: string;
|
|
|
8577
8664
|
validator(value: string): boolean;
|
|
8578
8665
|
};
|
|
8579
8666
|
}>> & Readonly<{}>, {
|
|
8667
|
+
layout: "standard" | "short";
|
|
8580
8668
|
banner: boolean;
|
|
8581
8669
|
provideScreenReaderContext: boolean;
|
|
8582
|
-
layout: "standard" | "short";
|
|
8583
8670
|
}, {}, {
|
|
8584
8671
|
FIcon: DefineComponent<ExtractPropTypes< {
|
|
8585
8672
|
name: {
|
|
@@ -8718,6 +8805,8 @@ align: string;
|
|
|
8718
8805
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
8719
8806
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
8720
8807
|
|
|
8808
|
+
export declare const FMinimizablePanel: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
8809
|
+
|
|
8721
8810
|
/**
|
|
8722
8811
|
* Level: Ready
|
|
8723
8812
|
*/
|
|
@@ -9899,9 +9988,9 @@ required: false;
|
|
|
9899
9988
|
default: typeof parseNumber;
|
|
9900
9989
|
};
|
|
9901
9990
|
}>> & Readonly<{}>, {
|
|
9991
|
+
decimals: number;
|
|
9902
9992
|
formatter: FormatFunction<number>;
|
|
9903
9993
|
parser: ParseFunction<number>;
|
|
9904
|
-
decimals: number;
|
|
9905
9994
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
9906
9995
|
|
|
9907
9996
|
/**
|
|
@@ -10531,6 +10620,13 @@ formatter: FormatFunction<string>;
|
|
|
10531
10620
|
*/
|
|
10532
10621
|
export declare type FormatFunction<TModel> = (modelValue: TModel) => string | undefined;
|
|
10533
10622
|
|
|
10623
|
+
/**
|
|
10624
|
+
* FormatPlugin: A Vue directive plugin for formatting text based on a provided format definition.
|
|
10625
|
+
*
|
|
10626
|
+
* @public
|
|
10627
|
+
*/
|
|
10628
|
+
export declare const FormatPlugin: Plugin_2;
|
|
10629
|
+
|
|
10534
10630
|
/**
|
|
10535
10631
|
* @public
|
|
10536
10632
|
*/
|
|
@@ -11255,9 +11351,9 @@ required: false;
|
|
|
11255
11351
|
default: typeof parsePercent;
|
|
11256
11352
|
};
|
|
11257
11353
|
}>> & Readonly<{}>, {
|
|
11354
|
+
decimals: number;
|
|
11258
11355
|
formatter: FormatFunction<number>;
|
|
11259
11356
|
parser: ParseFunction<number>;
|
|
11260
|
-
decimals: number;
|
|
11261
11357
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
11262
11358
|
|
|
11263
11359
|
export declare const FPersonnummerTextField: DefineComponent<ExtractPropTypes< {
|
|
@@ -13330,7 +13426,7 @@ id: string;
|
|
|
13330
13426
|
disabled: boolean;
|
|
13331
13427
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
13332
13428
|
|
|
13333
|
-
export declare const FResizePane:
|
|
13429
|
+
export declare const FResizePane: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
13334
13430
|
|
|
13335
13431
|
export declare const FSearchTextField: DefineComponent<ExtractPropTypes< {
|
|
13336
13432
|
id: {
|
|
@@ -14145,8 +14241,8 @@ rotate: string;
|
|
|
14145
14241
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
14146
14242
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
14147
14243
|
|
|
14148
|
-
export declare const FSortFilterDataset: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
14149
|
-
props:
|
|
14244
|
+
export declare const FSortFilterDataset: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_6<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
14245
|
+
props: __VLS_PrettifyLocal_6<Pick<Partial<{
|
|
14150
14246
|
data: T[];
|
|
14151
14247
|
defaultSortAttribute: string;
|
|
14152
14248
|
showSort: boolean;
|
|
@@ -14303,14 +14399,14 @@ rotate: string;
|
|
|
14303
14399
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
14304
14400
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
14305
14401
|
|
|
14306
|
-
export declare const FTableColumn:
|
|
14402
|
+
export declare const FTableColumn: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
14307
14403
|
|
|
14308
14404
|
/**
|
|
14309
14405
|
* @public
|
|
14310
14406
|
*/
|
|
14311
14407
|
export declare interface FTableColumnData {
|
|
14312
14408
|
id: string;
|
|
14313
|
-
name
|
|
14409
|
+
name?: string;
|
|
14314
14410
|
title: string;
|
|
14315
14411
|
description?: string;
|
|
14316
14412
|
size: FTableColumnSize;
|
|
@@ -16849,10 +16945,10 @@ rotate: string;
|
|
|
16849
16945
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
16850
16946
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
16851
16947
|
|
|
16852
|
-
export declare const IComboboxDropdown: DefineComponent<
|
|
16948
|
+
export declare const IComboboxDropdown: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16853
16949
|
select: (option: string) => any;
|
|
16854
16950
|
close: () => any;
|
|
16855
|
-
}, string, PublicProps, Readonly<
|
|
16951
|
+
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
16856
16952
|
onSelect?: ((option: string) => any) | undefined;
|
|
16857
16953
|
onClose?: (() => any) | undefined;
|
|
16858
16954
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -17347,7 +17443,7 @@ export declare interface IPopupErrorData {
|
|
|
17347
17443
|
arrowOffset: number;
|
|
17348
17444
|
}
|
|
17349
17445
|
|
|
17350
|
-
export declare const IPopupListbox:
|
|
17446
|
+
export declare const IPopupListbox: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
17351
17447
|
|
|
17352
17448
|
declare interface IPopupListboxProps {
|
|
17353
17449
|
isOpen: boolean;
|
|
@@ -18203,6 +18299,24 @@ export declare function useCombobox(inputRef: Readonly<ShallowRef<HTMLInputEleme
|
|
|
18203
18299
|
closeDropdown: () => void;
|
|
18204
18300
|
};
|
|
18205
18301
|
|
|
18302
|
+
/**
|
|
18303
|
+
* @public
|
|
18304
|
+
*/
|
|
18305
|
+
export declare interface UseDetailsPanel<T = unknown> {
|
|
18306
|
+
open(item: T, options?: {
|
|
18307
|
+
onClose?: DetailsPanelCloseCallback<T>;
|
|
18308
|
+
}): void;
|
|
18309
|
+
close(): void;
|
|
18310
|
+
}
|
|
18311
|
+
|
|
18312
|
+
/**
|
|
18313
|
+
* Get a API object to access details panels (FDetailsPanel).
|
|
18314
|
+
*
|
|
18315
|
+
* @public
|
|
18316
|
+
* @param name - Name of panel.
|
|
18317
|
+
*/
|
|
18318
|
+
export declare function useDetailsPanel<T = unknown>(name: string): UseDetailsPanel<T>;
|
|
18319
|
+
|
|
18206
18320
|
/**
|
|
18207
18321
|
* Composable to get access to modal functions.
|
|
18208
18322
|
*
|
|
@@ -186,6 +186,24 @@ module.exports = defineMetadata({
|
|
|
186
186
|
inherit: "f-text-field#tooltip",
|
|
187
187
|
},
|
|
188
188
|
|
|
189
|
+
"f-details-panel": {
|
|
190
|
+
flow: true,
|
|
191
|
+
attributes: {
|
|
192
|
+
name: {
|
|
193
|
+
required: true,
|
|
194
|
+
enum: ["/.+/"],
|
|
195
|
+
},
|
|
196
|
+
exclude: {
|
|
197
|
+
enum: ["/.+/"],
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
slots: ["default", "icon"],
|
|
201
|
+
},
|
|
202
|
+
|
|
203
|
+
"f-details-panel#icon": {
|
|
204
|
+
permittedContent: ["f-icon"],
|
|
205
|
+
},
|
|
206
|
+
|
|
189
207
|
"f-calendar": {
|
|
190
208
|
flow: true,
|
|
191
209
|
slots: ["default"],
|
|
@@ -430,6 +448,31 @@ module.exports = defineMetadata({
|
|
|
430
448
|
inherit: "f-label#description",
|
|
431
449
|
},
|
|
432
450
|
|
|
451
|
+
"f-minimizable-panel": {
|
|
452
|
+
flow: true,
|
|
453
|
+
attributes: {
|
|
454
|
+
context: {
|
|
455
|
+
enum: ["/.+/"],
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
slots: ["default", "icon"],
|
|
459
|
+
},
|
|
460
|
+
|
|
461
|
+
"ce-minimizable-panel": {
|
|
462
|
+
flow: true,
|
|
463
|
+
attributes: {
|
|
464
|
+
context: {
|
|
465
|
+
enum: ["/.+/"],
|
|
466
|
+
},
|
|
467
|
+
openPrefix: {
|
|
468
|
+
enum: ["/.+/"],
|
|
469
|
+
},
|
|
470
|
+
closePrefix: {
|
|
471
|
+
enum: ["/.+/"],
|
|
472
|
+
},
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
|
|
433
476
|
"f-page-layout": {
|
|
434
477
|
flow: true,
|
|
435
478
|
attributes: {
|
|
@@ -507,7 +550,7 @@ module.exports = defineMetadata({
|
|
|
507
550
|
description: ["/.+/"],
|
|
508
551
|
type: ["text", "date", "numeric", "action"],
|
|
509
552
|
},
|
|
510
|
-
requiredAttributes: ["
|
|
553
|
+
requiredAttributes: ["title"],
|
|
511
554
|
permittedContent: ["@phrasing", "button", "f-badge"],
|
|
512
555
|
},
|
|
513
556
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const { Rule } = require("html-validate/node");
|
|
2
|
+
const { getDocumentationUrl } = require("./common");
|
|
3
|
+
|
|
4
|
+
class FTableColumnName extends Rule {
|
|
5
|
+
documentation() {
|
|
6
|
+
return {
|
|
7
|
+
description:
|
|
8
|
+
"`<f-sort-filter-dataset>` requires `name` attribute to be set for each `<f-table-column>` with a unique value.",
|
|
9
|
+
url: getDocumentationUrl(
|
|
10
|
+
"/components/table-and-list/fsortfilterdataset.html",
|
|
11
|
+
),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
setup() {
|
|
16
|
+
this.on("dom:ready", (event) => {
|
|
17
|
+
const sorters = event.document.querySelectorAll(
|
|
18
|
+
"f-sort-filter-dataset",
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
for (const sorter of sorters) {
|
|
22
|
+
this.validateSorterColumns(sorter);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
validateSorterColumns(sorter) {
|
|
28
|
+
const columns = sorter.querySelectorAll("f-table-column");
|
|
29
|
+
const seenNames = new Set();
|
|
30
|
+
|
|
31
|
+
for (const column of columns) {
|
|
32
|
+
const hasName = column.hasAttribute("name");
|
|
33
|
+
if (!hasName) {
|
|
34
|
+
this.report(
|
|
35
|
+
column,
|
|
36
|
+
'<f-table-column> is missing required "name" attribute.',
|
|
37
|
+
);
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const { value: name, valueLocation } = column.getAttribute("name");
|
|
42
|
+
if (name.length === 0) {
|
|
43
|
+
// Empty name attribute already handled by component rules.
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
if (seenNames.has(name)) {
|
|
47
|
+
this.report({
|
|
48
|
+
location: valueLocation,
|
|
49
|
+
message: `"${name}" is not unique.`,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
seenNames.add(name);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
module.exports = FTableColumnName;
|
|
@@ -4,6 +4,7 @@ const PreferFIcon = require("./prefer-ficon.rule");
|
|
|
4
4
|
const requiredmaxlength = require("./requiredmaxlength.rule");
|
|
5
5
|
const ftextfieldFormatterValidation = require("./ftextfieldFormatterValidation.rule");
|
|
6
6
|
const NoTemplateModal = require("./no-template-modal.rule");
|
|
7
|
+
const FTableColumnName = require("./ftablecolumn-name.rule");
|
|
7
8
|
|
|
8
9
|
module.exports = {
|
|
9
10
|
"fkui/button-group": buttongroup,
|
|
@@ -12,4 +13,5 @@ module.exports = {
|
|
|
12
13
|
"fkui/required-max-length": requiredmaxlength,
|
|
13
14
|
"fkui/ftextfield-formatter-validation": ftextfieldFormatterValidation,
|
|
14
15
|
"fkui/no-template-modal": NoTemplateModal,
|
|
16
|
+
"fkui/ftablecolumn-name": FTableColumnName,
|
|
15
17
|
};
|