@ghentcdh/ui 2.0.0 → 3.0.1
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/ControlWrapper-C7br-nwU.js +152 -0
- package/ControlWrapper-Ckzwap0M.js +1 -0
- package/Markdown-BjFpy32Y.js +59 -0
- package/Markdown-DRCEgDfZ.js +1 -0
- package/alert/alert.vue.d.ts +7 -11
- package/button/btn-badge.vue.d.ts +8 -12
- package/button/btn.vue.d.ts +7 -11
- package/card/card.vue.d.ts +13 -14
- package/collapse/Collapse.vue.d.ts +12 -14
- package/collapse/CollapseRow.vue.d.ts +8 -12
- package/drawer/drawer.vue.d.ts +12 -14
- package/filter/filter.vue.d.ts +4 -3
- package/form/Checkbox.vue.d.ts +11 -10
- package/form/Input.vue.d.ts +11 -10
- package/form/InputNumber.vue.d.ts +11 -10
- package/form/Textarea.vue.d.ts +13 -12
- package/form/core/ControlWrapper.vue.d.ts +17 -20
- package/form/index.d.ts +10 -10
- package/form/select/AutoComplete.vue.d.ts +14 -15
- package/form/select/ListResults.vue.d.ts +4 -5
- package/form/select/MultiSelect.vue.d.ts +13 -12
- package/form/select/SelectComponent.vue.d.ts +13 -12
- package/form/select/SelectWrapper.vue.d.ts +18 -160
- package/form/text/Markdown.vue.d.ts +12 -11
- package/form/text/MarkdownFallback.vue.d.ts +12 -11
- package/icons/icon.vue.d.ts +2 -1
- package/index.css +3 -1
- package/index.js +2 -1
- package/index.mjs +2330 -67
- package/loading/loading.vue.d.ts +2 -1
- package/menu/dropdown.vue.d.ts +2 -1
- package/menu/menu-item.vue.d.ts +2 -1
- package/menu/menu.vue.d.ts +2 -1
- package/menu/sub-menu.vue.d.ts +2 -1
- package/modal/confirmModal.vue.d.ts +3 -2
- package/modal/modal.vue.d.ts +12 -18
- package/modal/modalWrapper.vue.d.ts +2 -1
- package/package.json +9 -9
- package/shell/shell.component.vue.d.ts +7 -11
- package/table/cells/boolean.cell.vue.d.ts +3 -2
- package/table/cells/text.cell.vue.d.ts +3 -2
- package/table/header/sort.header.vue.d.ts +3 -2
- package/table/pagination-button.component.vue.d.ts +2 -1
- package/table/pagination.component.vue.d.ts +3 -2
- package/table/table.component.vue.d.ts +4 -3
- package/testing.js +1 -1
- package/testing.mjs +338 -419
- package/toast/notification-message.vue.d.ts +2 -1
- package/toast/notifications.vue.d.ts +2 -1
- package/tree/TreeItem.vue.d.ts +3 -2
- package/tree/TreeView.vue.d.ts +3 -2
- package/Markdown-C7ZNnPQB.js +0 -1
- package/Markdown-OZGmR-pI.js +0 -76
- package/index-NGeplssl.js +0 -2
- package/index-WrdKkd9c.js +0 -2633
package/loading/loading.vue.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
loading: boolean;
|
|
3
3
|
};
|
|
4
|
-
declare const
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
5
6
|
export default _default;
|
package/menu/dropdown.vue.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { MenuWithItems } from './menu.type';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
items: Array<MenuWithItems>;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
6
7
|
export default _default;
|
package/menu/menu-item.vue.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MenuWithItems } from './menu.type';
|
|
2
|
-
declare const
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<MenuWithItems, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MenuWithItems> & Readonly<{}>, {
|
|
3
3
|
disabled: boolean;
|
|
4
4
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
5
6
|
export default _default;
|
package/menu/menu.vue.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
menu: Array<MenuWithItems>;
|
|
4
4
|
breadcrumbs?: Array<Breadcrumb>;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
package/menu/sub-menu.vue.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ type __VLS_Props = MenuWithItems & {
|
|
|
3
3
|
btnClass: string;
|
|
4
4
|
disableArrow?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ConfirmModalProps, ConfirmResult } from './modal.model';
|
|
2
|
-
declare const
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<ConfirmModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
3
|
closeModal: (args_0: ConfirmResult) => any;
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<ConfirmModalProps> & Readonly<{
|
|
5
5
|
onCloseModal?: ((args_0: ConfirmResult) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
confirmLabel: string;
|
|
8
8
|
cancelLabel: string;
|
|
9
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
10
11
|
export default _default;
|
package/modal/modal.vue.d.ts
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
refs: {
|
|
9
|
-
dialogRef: HTMLDialogElement;
|
|
10
|
-
};
|
|
11
|
-
rootEl: HTMLDialogElement;
|
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
title?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
content?: (props: typeof __VLS_3) => any;
|
|
6
|
+
} & {
|
|
7
|
+
actions?: (props: typeof __VLS_5) => any;
|
|
12
8
|
};
|
|
13
|
-
|
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
15
10
|
modalTitle: {
|
|
16
11
|
type: StringConstructor;
|
|
17
12
|
required: true;
|
|
@@ -71,12 +66,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
71
66
|
open: boolean;
|
|
72
67
|
disableClose: boolean;
|
|
73
68
|
width: import('../const/size').Size;
|
|
74
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
69
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
71
|
+
declare const _default: typeof __VLS_export;
|
|
78
72
|
export default _default;
|
|
79
|
-
type
|
|
73
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
80
74
|
new (): {
|
|
81
75
|
$slots: S;
|
|
82
76
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ghentcdh/ui",
|
|
3
3
|
"author": "GhentCDH",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.mjs",
|
|
7
7
|
"types": "./index.d.ts",
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
"vue-router": "^5.0.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@tailwindcss/postcss": "4.
|
|
82
|
-
"@tiptap/pm": "3.
|
|
83
|
-
"@tiptap/starter-kit": "3.
|
|
84
|
-
"@tiptap/vue-3": "3.
|
|
85
|
-
"daisyui": "5.5.
|
|
86
|
-
"tailwindcss": "4.
|
|
81
|
+
"@tailwindcss/postcss": "4.3.0",
|
|
82
|
+
"@tiptap/pm": "3.24.0",
|
|
83
|
+
"@tiptap/starter-kit": "3.24.0",
|
|
84
|
+
"@tiptap/vue-3": "3.24.0",
|
|
85
|
+
"daisyui": "5.5.23",
|
|
86
|
+
"tailwindcss": "4.3.0",
|
|
87
87
|
"tiptap-markdown": "0.9.0",
|
|
88
|
-
"vue": "3.5.
|
|
89
|
-
"vue-router": "5.0
|
|
88
|
+
"vue": "3.5.38",
|
|
89
|
+
"vue-router": "5.1.0"
|
|
90
90
|
},
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
@@ -6,25 +6,21 @@ type __VLS_Props = {
|
|
|
6
6
|
version: string;
|
|
7
7
|
widthSidebar?: number;
|
|
8
8
|
};
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
default?(_: {}): any;
|
|
13
|
-
};
|
|
14
|
-
refs: {};
|
|
15
|
-
rootEl: any;
|
|
9
|
+
declare var __VLS_21: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_21) => any;
|
|
16
12
|
};
|
|
17
|
-
|
|
18
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
14
|
logout: () => any;
|
|
20
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
16
|
onLogout?: (() => any) | undefined;
|
|
22
17
|
}>, {
|
|
23
18
|
widthSidebar: number;
|
|
24
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
declare const
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
26
22
|
export default _default;
|
|
27
|
-
type
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
24
|
new (): {
|
|
29
25
|
$slots: S;
|
|
30
26
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
data: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
required: true;
|
|
@@ -22,5 +22,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
22
22
|
options: {
|
|
23
23
|
type: ObjectConstructor;
|
|
24
24
|
};
|
|
25
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
26
27
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
data: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
required: true;
|
|
@@ -22,5 +22,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
22
22
|
options: {
|
|
23
23
|
type: ObjectConstructor;
|
|
24
24
|
};
|
|
25
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
26
27
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
column: {
|
|
3
3
|
type: import('vue').PropType<import('..').ColumnDef>;
|
|
4
4
|
required: true;
|
|
@@ -20,5 +20,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
20
20
|
sortDirection: {
|
|
21
21
|
type: import('vue').PropType<"asc" | "desc">;
|
|
22
22
|
};
|
|
23
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
23
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
24
25
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
currentPage: {
|
|
3
3
|
type: NumberConstructor;
|
|
4
4
|
required: true;
|
|
@@ -44,4 +44,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
neverActive: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
declare const _default: typeof __VLS_export;
|
|
47
48
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
totalItems: {
|
|
3
3
|
type: NumberConstructor;
|
|
4
4
|
default: number;
|
|
@@ -37,5 +37,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
37
37
|
totalItems: number;
|
|
38
38
|
itemsPerPage: number;
|
|
39
39
|
pageSizeOptions: number[];
|
|
40
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
41
42
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
4
|
loading: {
|
|
3
5
|
type: BooleanConstructor;
|
|
4
6
|
default: false;
|
|
@@ -49,7 +51,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
49
51
|
type: import('vue').PropType<import('./table.component.properties').TableSort>;
|
|
50
52
|
};
|
|
51
53
|
}>> & Readonly<{}>, {
|
|
52
|
-
multiselect: boolean;
|
|
53
54
|
loading: boolean;
|
|
55
|
+
multiselect: boolean;
|
|
54
56
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
55
|
-
export default _default;
|
package/testing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=class{constructor(e){this.locator=e}page(){return this.locator.page()}asLocator(){return this.locator}},t=(e,t,n)=>e.getByRole(t,{name:n}),n=class n extends e{static byId(e,r){return new n(t(e,`textbox`,r))}static byLabel(e,r){return new n(t(e,`textbox`,r))}static for(e){return new n(e)}async fill(e){return await this.locator.click(),await this.locator.fill(e),this}async type(e){return await this.locator.click(),await this.locator.pressSequentially(e),this}async clear(){return await this.locator.fill(``),this}async value(){return this.locator.inputValue()}async blur(){return await this.locator.press(`Tab`),this}},r=class n extends e{static byId(e,r){return new n(t(e,`spinbutton`,r))}static byLabel(e,r){return new n(t(e,`spinbutton`,r))}static for(e){return new n(e)}async fill(e){return await this.locator.click(),await this.locator.fill(String(e)),await this.locator.press(`Tab`),this}async clear(){return await this.locator.fill(``),this}async value(){let e=await this.locator.inputValue();return e===``?null:Number(e)}},i=class n extends e{static byId(e,r){return new n(t(e,`textbox`,r))}static byLabel(e,r){return new n(t(e,`textbox`,r))}static for(e){return new n(e)}async fill(e){return await this.locator.click(),await this.locator.fill(e),this}async clear(){return await this.locator.fill(``),this}async value(){return this.locator.inputValue()}},a=class n extends e{static byId(e,r){return new n(t(e,`checkbox`,r))}static byLabel(e,r){return new n(t(e,`checkbox`,r))}static for(e){return new n(e)}async fill(e){return e?await this.locator.check():await this.locator.uncheck(),this}async toggle(){return await this.locator.click(),this}async value(){return this.locator.isChecked()}},o=class n extends e{static byId(e,r){return new n(t(e,`combobox`,r))}static byLabel(e,r){return new n(t(e,`combobox`,r))}static for(e){return new n(e)}async open(){return await this.locator.click(),this}async fill(e){return this.select(e)}async select(e){return await this.open(),await this.page().getByRole(`option`,{name:e}).locator(`a`).click(),this}async value(){return(await this.locator.textContent())?.trim()??``}async clear(){return await this.locator.locator(`xpath=ancestor::*[@role="select"][1]`).getByRole(`button`,{name:`Clear`}).click(),this}async clickCreateNew(){await this.locator.locator(`xpath=ancestor::*[@role="select"][1]`).getByRole(`button`,{name:`create`}).click()}},s=class n extends e{static byId(e,r){return new n(t(e,`combobox`,r))}static byLabel(e,r){return new n(t(e,`combobox`,r))}static for(e){return new n(e)}async fill(e){return await this.locator.click(),await this.locator.fill(e),await this.page().getByRole(`option`,{name:e}).locator(`a`).click(),this}async query(e){return await this.locator.click(),await this.locator.fill(e),this}async pickOption(e){return await this.page().getByRole(`option`,{name:e}).locator(`a`).click(),this}async press(e){return await this.locator.press(e),this}async clickCreateNew(){await this.locator.locator(`xpath=ancestor::*[@role="select"][1]`).getByRole(`button`,{name:`create`}).click()}async clear(){return await this.locator.locator(`xpath=ancestor::*[@role="select"][1]`).getByRole(`button`,{name:`Clear`}).click(),this}async value(){return this.locator.inputValue()}listbox(){return this.page().getByRole(`listbox`)}options(){return this.page().getByRole(`option`)}},c=class n extends e{static byId(e,r){return new n(t(e,`combobox`,r))}static byLabel(e,r){return new n(t(e,`combobox`,r))}static for(e){return new n(e)}async open(){return await this.locator.click(),this}async fill(e){await this.open();for(let t of e)await this.page().getByRole(`option`,{name:t}).locator(`a`).click();return await this.locator.click(),this}async select(e){return await this.open(),await this.page().getByRole(`option`,{name:e}).locator(`a`).click(),this}async removeChip(e){return await this.locator.locator(`xpath=ancestor::*[@role="select"][1]`).getByText(e,{exact:!0}).getByRole(`button`).click(),this}},l=class n extends e{static byId(e,r){return new n(t(e,`textbox`,r))}static byLabel(e,r){return new n(t(e,`textbox`,r))}static for(e){return new n(e)}get editor(){return this.locator.getByRole(`textbox`)}async fill(e){return await this.editor.fill(e),this}async clear(){return await this.editor.fill(``),this}async typeBold(e){return await this.toolbar(`B`).click(),await this.editor.pressSequentially(e),await this.toolbar(`B`).click(),this}async typeItalic(e){return await this.toolbar(`I`).click(),await this.editor.pressSequentially(e),await this.toolbar(`I`).click(),this}async type(e){return await this.editor.pressSequentially(e),this}toolbar(e){return this.locator.getByRole(`button`,{name:e})}async isMarkActive(e){return(await this.toolbar(e).getAttribute(`class`)??``).includes(`btn-active`)}},u=class t extends e{static byTitle(e,n){return new t(e.getByRole(`dialog`,{name:n}))}static current(e){return new t(e.getByRole(`dialog`))}static for(e){return new t(e)}async clickClose(){return await this.locator.getByRole(`button`,{name:`Close`}).click(),this}async pressEscape(){return await this.locator.press(`Escape`),this}async clickBackdrop(){return await this.locator.click({position:{x:5,y:5}}),this}async clickAction(e){return await this.locator.getByRole(`button`,{name:e}).click(),this}title(){return this.locator.locator(`h3`).first()}content(){return this.locator.locator(`[id$="_content"]`).first()}asLocator(){return this.locator}},d=class n extends e{static byName(e,r){return new n(t(e,`button`,r))}static for(e){return new n(e)}async click(){return await this.locator.click(),this}async isDisabled(){return this.locator.isDisabled()}async text(){return await this.locator.textContent()??``}},f=class t extends e{static byTitle(e,n){return new t(e.getByLabel(`Toggle ${n}`).locator(`..`))}static for(e){return new t(e)}async toggle(){return await this.checkbox().click(),this}async isOpen(){return this.checkbox().isChecked()}title(){return this.locator.locator(`.collapse-title span`).first()}content(){return this.locator.locator(`.collapse-content`)}checkbox(){return this.locator.locator(`input[type="checkbox"]`)}},p=class t extends e{static byMessage(e,n){return new t(e.getByRole(`alert`).filter({hasText:n}))}static first(e){return new t(e.getByRole(`alert`).first())}static for(e){return new t(e)}async message(){return await this.locator.locator(`span`).textContent()??``}async hasClass(e){return(await this.locator.getAttribute(`class`)??``).includes(e)}},m=class t extends e{static root(e){return new t(e.locator(`main`).first())}static for(e){return new t(e)}async toggleLeft(){return await this.leftButton().click(),this}async toggleRight(){return await this.rightButton().click(),this}async isLeftOpen(){return await this.leftButton().getAttribute(`aria-expanded`)===`true`}async isRightOpen(){return await this.rightButton().getAttribute(`aria-expanded`)===`true`}leftPanel(){return this.locator.locator(`#drawer-left-panel`)}rightPanel(){return this.locator.locator(`#drawer-right-panel`)}leftButton(){return this.locator.locator(`button[aria-controls="drawer-left-panel"]`)}rightButton(){return this.locator.locator(`button[aria-controls="drawer-right-panel"]`)}};exports.AlertHarness=p,exports.AutocompleteHarness=s,exports.BooleanHarness=a,exports.ButtonHarness=d,exports.CollapseHarness=f,exports.DrawerHarness=m,exports.Harness=e,exports.MarkdownHarness=l,exports.ModalHarness=u,exports.MultiSelectHarness=c,exports.NumberHarness=r,exports.SelectHarness=o,exports.TextAreaHarness=i,exports.TextHarness=n,exports.byRole=t;
|