@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.
Files changed (55) hide show
  1. package/ControlWrapper-C7br-nwU.js +152 -0
  2. package/ControlWrapper-Ckzwap0M.js +1 -0
  3. package/Markdown-BjFpy32Y.js +59 -0
  4. package/Markdown-DRCEgDfZ.js +1 -0
  5. package/alert/alert.vue.d.ts +7 -11
  6. package/button/btn-badge.vue.d.ts +8 -12
  7. package/button/btn.vue.d.ts +7 -11
  8. package/card/card.vue.d.ts +13 -14
  9. package/collapse/Collapse.vue.d.ts +12 -14
  10. package/collapse/CollapseRow.vue.d.ts +8 -12
  11. package/drawer/drawer.vue.d.ts +12 -14
  12. package/filter/filter.vue.d.ts +4 -3
  13. package/form/Checkbox.vue.d.ts +11 -10
  14. package/form/Input.vue.d.ts +11 -10
  15. package/form/InputNumber.vue.d.ts +11 -10
  16. package/form/Textarea.vue.d.ts +13 -12
  17. package/form/core/ControlWrapper.vue.d.ts +17 -20
  18. package/form/index.d.ts +10 -10
  19. package/form/select/AutoComplete.vue.d.ts +14 -15
  20. package/form/select/ListResults.vue.d.ts +4 -5
  21. package/form/select/MultiSelect.vue.d.ts +13 -12
  22. package/form/select/SelectComponent.vue.d.ts +13 -12
  23. package/form/select/SelectWrapper.vue.d.ts +18 -160
  24. package/form/text/Markdown.vue.d.ts +12 -11
  25. package/form/text/MarkdownFallback.vue.d.ts +12 -11
  26. package/icons/icon.vue.d.ts +2 -1
  27. package/index.css +3 -1
  28. package/index.js +2 -1
  29. package/index.mjs +2330 -67
  30. package/loading/loading.vue.d.ts +2 -1
  31. package/menu/dropdown.vue.d.ts +2 -1
  32. package/menu/menu-item.vue.d.ts +2 -1
  33. package/menu/menu.vue.d.ts +2 -1
  34. package/menu/sub-menu.vue.d.ts +2 -1
  35. package/modal/confirmModal.vue.d.ts +3 -2
  36. package/modal/modal.vue.d.ts +12 -18
  37. package/modal/modalWrapper.vue.d.ts +2 -1
  38. package/package.json +9 -9
  39. package/shell/shell.component.vue.d.ts +7 -11
  40. package/table/cells/boolean.cell.vue.d.ts +3 -2
  41. package/table/cells/text.cell.vue.d.ts +3 -2
  42. package/table/header/sort.header.vue.d.ts +3 -2
  43. package/table/pagination-button.component.vue.d.ts +2 -1
  44. package/table/pagination.component.vue.d.ts +3 -2
  45. package/table/table.component.vue.d.ts +4 -3
  46. package/testing.js +1 -1
  47. package/testing.mjs +338 -419
  48. package/toast/notification-message.vue.d.ts +2 -1
  49. package/toast/notifications.vue.d.ts +2 -1
  50. package/tree/TreeItem.vue.d.ts +3 -2
  51. package/tree/TreeView.vue.d.ts +3 -2
  52. package/Markdown-C7ZNnPQB.js +0 -1
  53. package/Markdown-OZGmR-pI.js +0 -76
  54. package/index-NGeplssl.js +0 -2
  55. package/index-WrdKkd9c.js +0 -2633
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  loading: boolean;
3
3
  };
4
- declare const _default: 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>;
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;
@@ -2,5 +2,6 @@ import { MenuWithItems } from './menu.type';
2
2
  type __VLS_Props = {
3
3
  items: Array<MenuWithItems>;
4
4
  };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
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;
@@ -1,5 +1,6 @@
1
1
  import { MenuWithItems } from './menu.type';
2
- declare const _default: import('vue').DefineComponent<MenuWithItems, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MenuWithItems> & Readonly<{}>, {
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;
@@ -3,5 +3,6 @@ type __VLS_Props = {
3
3
  menu: Array<MenuWithItems>;
4
4
  breadcrumbs?: Array<Breadcrumb>;
5
5
  };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
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;
@@ -3,5 +3,6 @@ type __VLS_Props = MenuWithItems & {
3
3
  btnClass: string;
4
4
  disableArrow?: boolean;
5
5
  };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
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 _default: import('vue').DefineComponent<ConfirmModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
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, {}, HTMLDialogElement>;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
@@ -1,17 +1,12 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- title?(_: {}): any;
5
- content?(_: {}): any;
6
- actions?(_: {}): any;
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
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
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
- dialogRef: HTMLDialogElement;
76
- }, HTMLDialogElement>;
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 __VLS_WithTemplateSlots<T, S> = T & {
73
+ type __VLS_WithSlots<T, S> = T & {
80
74
  new (): {
81
75
  $slots: S;
82
76
  };
@@ -1,2 +1,3 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
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": "2.0.0",
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.2.1",
82
- "@tiptap/pm": "3.20.0",
83
- "@tiptap/starter-kit": "3.20.0",
84
- "@tiptap/vue-3": "3.20.0",
85
- "daisyui": "5.5.19",
86
- "tailwindcss": "4.2.1",
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.29",
89
- "vue-router": "5.0.3"
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 function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
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
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
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 _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
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 __VLS_WithTemplateSlots<T, S> = T & {
23
+ type __VLS_WithSlots<T, S> = T & {
28
24
  new (): {
29
25
  $slots: S;
30
26
  };
@@ -1,4 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
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, {}, HTMLDivElement>;
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 _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
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, {}, HTMLDivElement>;
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 _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
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, {}, HTMLButtonElement>;
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 _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
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 _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
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, {}, HTMLDivElement>;
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: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
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
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class r{constructor(t){this.locator=t}page(){return this.locator.page()}asLocator(){return this.locator}}const e=(x,t,a)=>x.getByRole(t,{name:a});class i extends r{static byId(t,a){return new i(e(t,"textbox",a))}static byLabel(t,a){return new i(e(t,"textbox",a))}static for(t){return new i(t)}async fill(t){return await this.locator.click(),await this.locator.fill(t),this}async type(t){return await this.locator.click(),await this.locator.pressSequentially(t),this}async clear(){return await this.locator.fill(""),this}async value(){return this.locator.inputValue()}async blur(){return await this.locator.press("Tab"),this}}class o extends r{static byId(t,a){return new o(e(t,"spinbutton",a))}static byLabel(t,a){return new o(e(t,"spinbutton",a))}static for(t){return new o(t)}async fill(t){return await this.locator.click(),await this.locator.fill(String(t)),await this.locator.press("Tab"),this}async clear(){return await this.locator.fill(""),this}async value(){const t=await this.locator.inputValue();return t===""?null:Number(t)}}class c extends r{static byId(t,a){return new c(e(t,"textbox",a))}static byLabel(t,a){return new c(e(t,"textbox",a))}static for(t){return new c(t)}async fill(t){return await this.locator.click(),await this.locator.fill(t),this}async clear(){return await this.locator.fill(""),this}async value(){return this.locator.inputValue()}}class s extends r{static byId(t,a){return new s(e(t,"checkbox",a))}static byLabel(t,a){return new s(e(t,"checkbox",a))}static for(t){return new s(t)}async fill(t){return t?await this.locator.check():await this.locator.uncheck(),this}async toggle(){return await this.locator.click(),this}async value(){return this.locator.isChecked()}}class n extends r{static byId(t,a){return new n(e(t,"combobox",a))}static byLabel(t,a){return new n(e(t,"combobox",a))}static for(t){return new n(t)}async open(){return await this.locator.click(),this}async fill(t){return this.select(t)}async select(t){return await this.open(),await this.page().getByRole("option",{name:t}).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()}}class l extends r{static byId(t,a){return new l(e(t,"combobox",a))}static byLabel(t,a){return new l(e(t,"combobox",a))}static for(t){return new l(t)}async fill(t){return await this.locator.click(),await this.locator.fill(t),await this.page().getByRole("option",{name:t}).locator("a").click(),this}async query(t){return await this.locator.click(),await this.locator.fill(t),this}async pickOption(t){return await this.page().getByRole("option",{name:t}).locator("a").click(),this}async press(t){return await this.locator.press(t),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")}}class u extends r{static byId(t,a){return new u(e(t,"combobox",a))}static byLabel(t,a){return new u(e(t,"combobox",a))}static for(t){return new u(t)}async open(){return await this.locator.click(),this}async fill(t){await this.open();for(const a of t)await this.page().getByRole("option",{name:a}).locator("a").click();return await this.locator.click(),this}async select(t){return await this.open(),await this.page().getByRole("option",{name:t}).locator("a").click(),this}async removeChip(t){return await this.locator.locator('xpath=ancestor::*[@role="select"][1]').getByText(t,{exact:!0}).getByRole("button").click(),this}}class h extends r{static byId(t,a){return new h(e(t,"textbox",a))}static byLabel(t,a){return new h(e(t,"textbox",a))}static for(t){return new h(t)}get editor(){return this.locator.getByRole("textbox")}async fill(t){return await this.editor.fill(t),this}async clear(){return await this.editor.fill(""),this}async typeBold(t){return await this.toolbar("B").click(),await this.editor.pressSequentially(t),await this.toolbar("B").click(),this}async typeItalic(t){return await this.toolbar("I").click(),await this.editor.pressSequentially(t),await this.toolbar("I").click(),this}async type(t){return await this.editor.pressSequentially(t),this}toolbar(t){return this.locator.getByRole("button",{name:t})}async isMarkActive(t){return(await this.toolbar(t).getAttribute("class")??"").includes("btn-active")}}class y extends r{static byTitle(t,a){return new y(t.getByRole("dialog",{name:a}))}static current(t){return new y(t.getByRole("dialog"))}static for(t){return new y(t)}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(t){return await this.locator.getByRole("button",{name:t}).click(),this}title(){return this.locator.locator("h3").first()}content(){return this.locator.locator('[id$="_content"]').first()}asLocator(){return this.locator}}class b extends r{static byName(t,a){return new b(e(t,"button",a))}static for(t){return new b(t)}async click(){return await this.locator.click(),this}async isDisabled(){return this.locator.isDisabled()}async text(){return await this.locator.textContent()??""}}class p extends r{static byTitle(t,a){const f=t.getByLabel(`Toggle ${a}`);return new p(f.locator(".."))}static for(t){return new p(t)}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"]')}}class w extends r{static byMessage(t,a){return new w(t.getByRole("alert").filter({hasText:a}))}static first(t){return new w(t.getByRole("alert").first())}static for(t){return new w(t)}async message(){return await this.locator.locator("span").textContent()??""}async hasClass(t){return(await this.locator.getAttribute("class")??"").includes(t)}}class g extends r{static root(t){return new g(t.locator("main").first())}static for(t){return new g(t)}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=w;exports.AutocompleteHarness=l;exports.BooleanHarness=s;exports.ButtonHarness=b;exports.CollapseHarness=p;exports.DrawerHarness=g;exports.Harness=r;exports.MarkdownHarness=h;exports.ModalHarness=y;exports.MultiSelectHarness=u;exports.NumberHarness=o;exports.SelectHarness=n;exports.TextAreaHarness=c;exports.TextHarness=i;exports.byRole=e;
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;