wavemaker-dev-mcp 0.1.1 → 1.0.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.
Files changed (115) hide show
  1. package/README.md +75 -51
  2. package/dist/index.js +131 -180
  3. package/dist/index.js.map +1 -1
  4. package/dist/layout-tools.d.ts +27 -3
  5. package/dist/layout-tools.d.ts.map +1 -1
  6. package/dist/layout-tools.js +85 -32
  7. package/dist/layout-tools.js.map +1 -1
  8. package/dist/skills/loader.d.ts +36 -0
  9. package/dist/skills/loader.d.ts.map +1 -0
  10. package/dist/skills/loader.js +107 -0
  11. package/dist/skills/loader.js.map +1 -0
  12. package/package.json +8 -4
  13. package/skills/components/wm-accordion-pane.md +44 -0
  14. package/skills/components/wm-accordion.md +43 -0
  15. package/skills/components/wm-alert-dialog.md +42 -0
  16. package/skills/components/wm-anchor.md +51 -0
  17. package/skills/components/wm-audio.md +41 -0
  18. package/skills/components/wm-button-group.md +36 -0
  19. package/skills/components/wm-button.md +114 -0
  20. package/skills/components/wm-calendar.md +54 -0
  21. package/skills/components/wm-card.md +60 -0
  22. package/skills/components/wm-carousel.md +43 -0
  23. package/skills/components/wm-chart.md +104 -0
  24. package/skills/components/wm-checkbox.md +52 -0
  25. package/skills/components/wm-checkboxset.md +75 -0
  26. package/skills/components/wm-chips.md +78 -0
  27. package/skills/components/wm-composite.md +30 -0
  28. package/skills/components/wm-confirm-dialog.md +43 -0
  29. package/skills/components/wm-container.md +100 -0
  30. package/skills/components/wm-currency.md +69 -0
  31. package/skills/components/wm-datatable.md +146 -0
  32. package/skills/components/wm-date-time.md +80 -0
  33. package/skills/components/wm-date.md +78 -0
  34. package/skills/components/wm-dialog-body.md +28 -0
  35. package/skills/components/wm-dialog-container.md +48 -0
  36. package/skills/components/wm-dialog-content.md +31 -0
  37. package/skills/components/wm-dialog-footer.md +28 -0
  38. package/skills/components/wm-dialog-header.md +43 -0
  39. package/skills/components/wm-dialog.md +40 -0
  40. package/skills/components/wm-file-upload.md +58 -0
  41. package/skills/components/wm-footer.md +31 -0
  42. package/skills/components/wm-form-field.md +81 -0
  43. package/skills/components/wm-form.md +58 -0
  44. package/skills/components/wm-grid-column.md +30 -0
  45. package/skills/components/wm-header.md +31 -0
  46. package/skills/components/wm-html.md +31 -0
  47. package/skills/components/wm-icon.md +40 -0
  48. package/skills/components/wm-iframe-dialog.md +52 -0
  49. package/skills/components/wm-iframe.md +35 -0
  50. package/skills/components/wm-label.md +45 -0
  51. package/skills/components/wm-left-nav.md +35 -0
  52. package/skills/components/wm-linear-layout-item.md +28 -0
  53. package/skills/components/wm-linear-layout.md +92 -0
  54. package/skills/components/wm-list.md +92 -0
  55. package/skills/components/wm-live-filter.md +50 -0
  56. package/skills/components/wm-live-form.md +35 -0
  57. package/skills/components/wm-login-dialog.md +50 -0
  58. package/skills/components/wm-login.md +39 -0
  59. package/skills/components/wm-marquee.md +31 -0
  60. package/skills/components/wm-menu.md +71 -0
  61. package/skills/components/wm-message.md +41 -0
  62. package/skills/components/wm-nav-item.md +28 -0
  63. package/skills/components/wm-nav.md +61 -0
  64. package/skills/components/wm-number.md +62 -0
  65. package/skills/components/wm-page-content.md +34 -0
  66. package/skills/components/wm-page-dialog.md +45 -0
  67. package/skills/components/wm-page-toast.md +34 -0
  68. package/skills/components/wm-page.md +34 -0
  69. package/skills/components/wm-pagination.md +62 -0
  70. package/skills/components/wm-panel.md +69 -0
  71. package/skills/components/wm-partial-container.md +32 -0
  72. package/skills/components/wm-picture.md +46 -0
  73. package/skills/components/wm-popover.md +51 -0
  74. package/skills/components/wm-prefab-container.md +29 -0
  75. package/skills/components/wm-prefab.md +35 -0
  76. package/skills/components/wm-progress-bar.md +42 -0
  77. package/skills/components/wm-progress-circle.md +45 -0
  78. package/skills/components/wm-radioset.md +66 -0
  79. package/skills/components/wm-rating.md +76 -0
  80. package/skills/components/wm-rich-text-editor.md +36 -0
  81. package/skills/components/wm-right-nav.md +32 -0
  82. package/skills/components/wm-search.md +66 -0
  83. package/skills/components/wm-select.md +129 -0
  84. package/skills/components/wm-slider.md +53 -0
  85. package/skills/components/wm-spinner.md +43 -0
  86. package/skills/components/wm-tab-pane.md +45 -0
  87. package/skills/components/wm-table.md +113 -0
  88. package/skills/components/wm-tabs.md +48 -0
  89. package/skills/components/wm-text.md +65 -0
  90. package/skills/components/wm-textarea.md +47 -0
  91. package/skills/components/wm-tile.md +34 -0
  92. package/skills/components/wm-time.md +63 -0
  93. package/skills/components/wm-top-nav.md +31 -0
  94. package/skills/components/wm-tree.md +41 -0
  95. package/skills/components/wm-upload.md +42 -0
  96. package/skills/components/wm-video.md +48 -0
  97. package/skills/components/wm-wizard.md +59 -0
  98. package/skills/index.json +1151 -0
  99. package/skills/tokens/border.md +85 -0
  100. package/skills/tokens/colors.md +97 -0
  101. package/skills/tokens/elevation.md +73 -0
  102. package/skills/tokens/spacing.md +89 -0
  103. package/skills/tokens/typography.md +88 -0
  104. package/dist/components.d.ts +0 -17
  105. package/dist/components.d.ts.map +0 -1
  106. package/dist/components.js +0 -67
  107. package/dist/components.js.map +0 -1
  108. package/dist/paths.d.ts +0 -43
  109. package/dist/paths.d.ts.map +0 -1
  110. package/dist/paths.js +0 -103
  111. package/dist/paths.js.map +0 -1
  112. package/dist/search.d.ts +0 -15
  113. package/dist/search.d.ts.map +0 -1
  114. package/dist/search.js +0 -130
  115. package/dist/search.js.map +0 -1
@@ -0,0 +1,41 @@
1
+ ---
2
+ component: WmAudio
3
+ category: basic
4
+ import: components/basic/audio
5
+ tags: [basic, audio]
6
+ summary: Audio display widget.
7
+ generated: true
8
+ ---
9
+
10
+ # WmAudio
11
+
12
+ Audio display widget.
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmAudio
18
+ name="audio"
19
+ />
20
+ ```
21
+
22
+ ## Props
23
+
24
+ | Prop | Type | Req | Default | Description |
25
+ |------|------|-----|---------|-------------|
26
+ | mp3format | `string` | Yes | — | The URL or source of the MP3 file. |
27
+ | muted | `boolean` | No | `false` | If true, the audio will be muted. |
28
+ | controls | `boolean` | No | `false` | If true, audio controls will be displayed. |
29
+ | loop | `boolean` | No | `false` | If true, the audio will loop back to the start when finished. |
30
+ | audiopreload | `"auto" \| "metadata" \| "none"` | No | `"auto"` | Specifies if and how the audio should be preloaded. |
31
+ | audiosupportmessage | `string` | No | — | Message to display if the browser does not support the audio element. |
32
+ | autoplay | `boolean` | No | `false` | If true, the audio will start playing automatically. |
33
+ | id | `string` | No | — | The unique ID for the audio element. |
34
+
35
+ *Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
36
+
37
+ ## CSS Tokens
38
+
39
+ Component-specific CSS variables: `--wm-audio-*`
40
+
41
+ See foundation-css: `src/tokens/web/components/audio/audio.json`
@@ -0,0 +1,36 @@
1
+ ---
2
+ component: WmButtonGroup
3
+ category: form
4
+ import: components/form/button-group
5
+ tags: [form, button, group]
6
+ summary: Button Group form element.
7
+ generated: true
8
+ ---
9
+
10
+ # WmButtonGroup
11
+
12
+ Button Group form element.
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmButtonGroup
18
+ name="buttonGroup"
19
+ />
20
+ ```
21
+
22
+ ## Props
23
+
24
+ | Prop | Type | Req | Default | Description |
25
+ |------|------|-----|---------|-------------|
26
+ | vertical | `boolean` | No | `false` | If true, the buttons in the group will be arranged vertically. |
27
+ | horizontalalign | `string` | No | — | The horizontal alignment of the button group. |
28
+ | children | `ReactNode` | Yes | — | The children elements (typically buttons) to be rendered inside the group. |
29
+
30
+ *Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
31
+
32
+ ## CSS Tokens
33
+
34
+ Component-specific CSS variables: `--wm-button-group-*`
35
+
36
+ See foundation-css: `src/tokens/web/components/button-group/button-group.json`
@@ -0,0 +1,114 @@
1
+ ---
2
+ component: WmButton
3
+ category: form
4
+ import: components/form/button
5
+ tags: [button, action, submit, reset, icon, form, click]
6
+ summary: Clickable button with optional icon, badge, and caption. Supports submit/reset form roles.
7
+ related: [WmAnchor, WmIcon, WmToolbar]
8
+ ---
9
+
10
+ # WmButton
11
+
12
+ Standard clickable button. Supports captions, icons (left or right), badge counters, and HTML button types (`button`, `submit`, `reset`).
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmButton
18
+ name="saveBtn"
19
+ caption="Save"
20
+ iconclass="wm-sl-l sl-cloud-upload"
21
+ onClick={(e, widget) => handleSave()}
22
+ />
23
+ ```
24
+
25
+ ## Key Props
26
+
27
+ | Prop | Type | Default | Description |
28
+ |------|------|---------|-------------|
29
+ | name | `string` | — | Required. Widget identifier |
30
+ | caption | `string` | — | Button label text |
31
+ | type | `"button" \| "submit" \| "reset"` | `"button"` | HTML button type. Use `"submit"` inside a `WmForm` |
32
+ | disabled | `boolean` | `false` | Disable the button |
33
+ | iconclass | `string` | — | CSS class for the icon (e.g. WaveMaker icon classes or FontAwesome) |
34
+ | iconurl | `string` | — | URL of an image icon |
35
+ | iconposition | `"left" \| "right"` | `"left"` | Position of icon relative to caption |
36
+ | iconwidth | `string` | — | Icon width (e.g. `"16px"`) |
37
+ | iconheight | `string` | — | Icon height |
38
+ | iconmargin | `string` | `"0 4"` | Margin around the icon (CSS shorthand) |
39
+ | badgevalue | `string \| number` | — | Badge count shown on the button |
40
+ | shortcutkey | `string` | — | Keyboard shortcut (e.g. `"s"` for Alt+S) |
41
+ | stopPropagation | `boolean` | `false` | Stop click event from bubbling |
42
+ | formName | `string` | — | Associate with a named form (for `type="submit"`) |
43
+ | onClick | `function` | — | `(event, widget) => void` |
44
+ | className | `string` | — | Additional CSS class names |
45
+ | show | `boolean` | `true` | Visibility |
46
+
47
+ ## Patterns
48
+
49
+ **Icon-only button (no caption):**
50
+ ```jsx
51
+ <WmButton name="deleteBtn" iconclass="wm-sl-l sl-trash" title="Delete" />
52
+ ```
53
+
54
+ **Submit button inside a form:**
55
+ ```jsx
56
+ <WmButton name="submitBtn" caption="Submit" type="submit" />
57
+ ```
58
+
59
+ **Button with badge (notification count):**
60
+ ```jsx
61
+ <WmButton name="notifBtn" iconclass="wm-sl-l sl-bell" badgevalue={unreadCount} />
62
+ ```
63
+
64
+ **Right-aligned icon:**
65
+ ```jsx
66
+ <WmButton name="nextBtn" caption="Next" iconclass="wm-sl-l sl-arrow-right" iconposition="right" />
67
+ ```
68
+
69
+ **Disabled state driven by expression:**
70
+ ```jsx
71
+ <WmButton name="saveBtn" caption="Save" disabled={!formValid} onClick={handleSave} />
72
+ ```
73
+
74
+ **Row of actions using WmLinearLayout:**
75
+ ```jsx
76
+ <WmLinearLayout name="formActions" direction="row" spacing={12}>
77
+ <WmLinearLayoutItem name="formActions_item1">
78
+ <WmButton name="saveBtn" caption="Save" type="submit" />
79
+ </WmLinearLayoutItem>
80
+ <WmLinearLayoutItem name="formActions_item2">
81
+ <WmButton name="cancelBtn" caption="Cancel" onClick={handleCancel} />
82
+ </WmLinearLayoutItem>
83
+ </WmLinearLayout>
84
+ ```
85
+
86
+ ## CSS Tokens
87
+
88
+ | Token | CSS Variable | Applied to |
89
+ |-------|-------------|-----------|
90
+ | Primary | `--wm-color-primary` | Filled button background |
91
+ | On-primary | `--wm-color-on-primary` | Filled button text |
92
+ | Label large | `--wm-label-large-font-size` | Button text size |
93
+ | Border radius | `--wm-radius-md` | Button corner rounding |
94
+ | Disabled opacity | `--wm-opacity-active` (38%) | Disabled state |
95
+
96
+ ## Appearance Classes (apply via `className`)
97
+
98
+ WaveMaker buttons accept Bootstrap-compatible variant classes:
99
+
100
+ | Class | Appearance |
101
+ |-------|-----------|
102
+ | `btn-primary` | Filled primary color |
103
+ | `btn-secondary` | Filled secondary color |
104
+ | `btn-outline-primary` | Outlined primary |
105
+ | `btn-danger` | Filled error/danger color |
106
+ | `btn-link` | Text-only, no background |
107
+ | `btn-sm` | Small size |
108
+ | `btn-lg` | Large size |
109
+
110
+ ## Notes
111
+
112
+ - Always set a unique `name` per button — it is used for widget references and accessibility.
113
+ - Use `type="submit"` when the button is inside a `WmForm`; it triggers form validation automatically.
114
+ - `iconclass` accepts WaveMaker icon classes (`wm-sl-l sl-*`) and FontAwesome classes (`fa fa-*`).
@@ -0,0 +1,54 @@
1
+ ---
2
+ component: WmCalendar
3
+ category: input
4
+ import: components/input/calendar
5
+ tags: [input, calendar, data-binding]
6
+ summary: Calendar input field.
7
+ generated: true
8
+ ---
9
+
10
+ # WmCalendar
11
+
12
+ Calendar input field.
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmCalendar
18
+ name="calendar"
19
+ dataset={items}
20
+ />
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | Prop | Type | Req | Default | Description |
26
+ |------|------|-----|---------|-------------|
27
+ | dataset | `unknown[] \| Record<string, unknown>` | No | — | The data source bound to the calendar (array of events). |
28
+ | datavalue | `string \| Date \| null` | No | — | The currently selected data value / date. |
29
+ | eventtitle | `string` | No | — | Field in the dataset used as the event title. |
30
+ | eventstart | `string` | No | — | Field in the dataset used as the event start date. |
31
+ | eventend | `string` | No | — | Field in the dataset used as the event end date. |
32
+ | eventallday | `string` | No | — | Field in the dataset indicating if the event is all-day. |
33
+ | eventclass | `string` | No | — | Field in the dataset used for the event CSS class. |
34
+ | controls | `string` | No | — | Calendar controls to display (e.g., navigation buttons). |
35
+ | calendartype | `string` | No | — | Type of calendar. |
36
+ | view | `string` | No | — | Default calendar view. |
37
+ | selectionmode | `string` | No | — | Selection mode for the calendar. |
38
+ | onSelect | `($start: Date, $end: Date, $view: string, $data: unknown[]) => void` | No | — | Callback invoked when a date or event is selected. |
39
+ | onBeforerender | `(event: SyntheticEvent, widget?: Record<string, unknown>) => void` | No | — | Callback invoked before the calendar is rendered. |
40
+ | onEventdrop | `( $event: SyntheticEvent, $newData: unknown[], $oldData: unknown[], $delta: u...` | No | — | Callback invoked when an event is dropped (drag-and-drop). |
41
+ | onEventresize | `( $event: SyntheticEvent, $newData: unknown[], $oldData: unknown[], $delta: u...` | No | — | Callback invoked when an event is resized. |
42
+ | onEventclick | `($event: SyntheticEvent, $data: unknown[], $view: string) => void` | No | — | Callback invoked when an event is clicked. |
43
+ | onEventrender | `($event: SyntheticEvent, $data: unknown[], $view: string) => void` | No | — | Callback invoked when an event is rendered. |
44
+ | onViewrender | `($view: unknown) => void` | No | — | Callback invoked when the calendar view changes. |
45
+ | onDateclick | `(event: SyntheticEvent, widget?: Record<string, unknown>) => void` | No | — | Callback invoked when a date cell is clicked. |
46
+ | tabindex | `number` | No | — | Tab index for keyboard navigation. |
47
+
48
+ *Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
49
+
50
+ ## CSS Tokens
51
+
52
+ Component-specific CSS variables: `--wm-calendar-*`
53
+
54
+ See foundation-css: `src/tokens/web/components/calendar/calendar.json`
@@ -0,0 +1,60 @@
1
+ ---
2
+ component: WmCard
3
+ category: data
4
+ import: components/data/card
5
+ tags: [data, card, icon]
6
+ summary: Card data widget.
7
+ generated: true
8
+ ---
9
+
10
+ # WmCard
11
+
12
+ Card data widget.
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmCard
18
+ name="card"
19
+ title="My Panel"
20
+ />
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | Prop | Type | Req | Default | Description |
26
+ |------|------|-----|---------|-------------|
27
+ | title | `string` | No | — | Title of the card. |
28
+ | subheading | `string` | No | — | Subheading of the card. |
29
+ | iconclass | `string` | No | — | CSS class for the icon in the card header. |
30
+ | iconurl | `string` | No | — | URL for the icon image in the card header. |
31
+ | actions | `string` | No | — | Actions available for the card, typically shown in a menu. |
32
+ | picturesource | `string` | No | — | Source URL for the card's main image. |
33
+ | picturetitle | `string` | No | — | Title for the card's main image. |
34
+ | imageheight | `string` | No | `"200px"` | Height of the card's main image. |
35
+ | itemaction | `string` | No | — | Action to perform when a menu item is clicked. |
36
+ | itemchildren | `string` | No | — | Property to use for submenu items. |
37
+ | itemicon | `string` | No | — | Property to use for menu item icons. |
38
+ | itemlabel | `string` | No | — | Property to use for menu item labels. |
39
+ | itemlink | `string` | No | — | Property to use for menu item links. |
40
+ | isactive | `string` | No | — | Property to determine if a menu item is active. |
41
+ | cardItem | `any` | No | — | The data item associated with the card. |
42
+ | userrole | `string` | No | — | User role for access control. |
43
+ | autoclose | `string` | No | `"always"` | When to close the action menu. |
44
+ | isFirst | `boolean` | No | — | Whether the card is the first item in a list. |
45
+ | isLast | `boolean` | No | — | Whether the card is the last item in a list. |
46
+ | currentItemWidgets | `any` | No | — | Widgets for the current item in a list. |
47
+ | onClick | `(event: MouseEvent, widget: any, item: any, currentItemWidgets: any) => void` | No | — | Callback for click event on the card. |
48
+ | onDblclick | `(event: MouseEvent, widget: any, item: any, currentItemWidgets: any) => void` | No | — | Callback for double click event on the card. |
49
+ | onMouseover | `(event: MouseEvent, widget: any, item: any, currentItemWidgets: any) => void` | No | — | Callback for mouse over event on the card. |
50
+ | onMouseout | `(event: MouseEvent, widget: any, item: any, currentItemWidgets: any) => void` | No | — | Callback for mouse out event on the card. |
51
+ | onMouseenter | `(event: MouseEvent, widget: any, item: any, currentItemWidgets: any) => void` | No | — | Callback for mouse enter event on the card. |
52
+ | onMouseleave | `(event: MouseEvent, widget: any, item: any, currentItemWidgets: any) => void` | No | — | Callback for mouse leave event on the card. |
53
+
54
+ *Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
55
+
56
+ ## CSS Tokens
57
+
58
+ Component-specific CSS variables: `--wm-card-*`
59
+
60
+ See foundation-css: `src/tokens/web/components/cards/cards.json`
@@ -0,0 +1,43 @@
1
+ ---
2
+ component: WmCarousel
3
+ category: advanced
4
+ import: components/advanced/carousel
5
+ tags: [advanced, carousel, data-binding, input]
6
+ summary: Carousel advanced widget.
7
+ generated: true
8
+ ---
9
+
10
+ # WmCarousel
11
+
12
+ Carousel advanced widget.
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmCarousel
18
+ name="carousel"
19
+ dataset={items}
20
+ />
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | Prop | Type | Req | Default | Description |
26
+ |------|------|-----|---------|-------------|
27
+ | animation | `CarouselAnimationType` | No | — | — |
28
+ | animationinterval | `number` | No | — | — |
29
+ | controls | `CarouselControlsType` | No | — | — |
30
+ | dataset | `any[]` | No | — | — |
31
+ | nodatamessage | `string` | No | — | — |
32
+ | onChange | `( event: any, widget?: Record<string, any>, newIndex?: number, oldIndex?: num...` | No | — | — |
33
+ | currentslide | `any` | No | — | — |
34
+ | previousslide | `any` | No | — | — |
35
+ | render | `(item: any, index: number) => ReactNode` | No | — | — |
36
+
37
+ *Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
38
+
39
+ ## CSS Tokens
40
+
41
+ Component-specific CSS variables: `--wm-carousel-*`
42
+
43
+ See foundation-css: `src/tokens/web/components/carousel/carousel.json`
@@ -0,0 +1,104 @@
1
+ ---
2
+ component: WmChart
3
+ category: chart
4
+ import: components/chart
5
+ tags: [chart, data-binding, icon, input]
6
+ summary: Chart — chart widget.
7
+ generated: true
8
+ ---
9
+
10
+ # WmChart
11
+
12
+ Chart — chart widget.
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmChart
18
+ name="chart"
19
+ dataset={items}
20
+ title="My Panel"
21
+ />
22
+ ```
23
+
24
+ ## Props
25
+
26
+ | Prop | Type | Req | Default | Description |
27
+ |------|------|-----|---------|-------------|
28
+ | title | `string` | No | — | Chart title displayed in panel header |
29
+ | type | `TChartType` | Yes | — | Chart type |
30
+ | subheading | `string` | No | — | Subheading below title |
31
+ | datavalue | `string` | No | — | Data value binding path |
32
+ | groupby | `string` | No | — | Column(s) to group data by |
33
+ | aggregation | `string` | No | — | Aggregation function: none, sum, average, count, min, max |
34
+ | aggregationcolumn | `string` | No | — | Column to apply aggregation on |
35
+ | orderby | `string` | No | — | Order by expression |
36
+ | xaxisdatakey | `string` | No | — | X-axis data key (comma-separated for multiple) |
37
+ | xaxislabel | `string` | No | — | X-axis label text |
38
+ | xnumberformat | `string` | No | — | X-axis number format |
39
+ | xdigits | `number` | No | — | X-axis decimal digits |
40
+ | xdateformat | `string` | No | — | X-axis date format |
41
+ | xaxislabeldistance | `number` | No | — | Distance of x-axis label from axis |
42
+ | xunits | `string` | No | — | X-axis units suffix |
43
+ | yaxisdatakey | `string` | No | — | Y-axis data key (comma-separated for multiple series) |
44
+ | yaxislabel | `string` | No | — | Y-axis label text |
45
+ | ynumberformat | `string` | No | — | Y-axis number format |
46
+ | ydigits | `number` | No | — | Y-axis decimal digits |
47
+ | yaxislabeldistance | `number` | No | — | Distance of y-axis label from axis |
48
+ | yunits | `string` | No | — | Y-axis units suffix |
49
+ | iconclass | `string` | No | — | Icon class for panel header |
50
+ | nodatamessage | `string` | No | — | Message when no data is available |
51
+ | loadingdatamsg | `string` | No | — | Message shown during data loading |
52
+ | tooltips | `boolean` | No | — | Show tooltips on hover |
53
+ | showlegend | `string` | No | — | Legend position: top, bottom, right, hide |
54
+ | showlabels | `TChartShowValues` | No | — | Label position for pie/donut: hide, inside, outside |
55
+ | showlabelsoutside | `boolean` | No | — | Show labels outside (legacy) |
56
+ | showvalues | `boolean` | No | — | Show values on bars/columns |
57
+ | staggerlabels | `boolean` | No | — | Stagger x-axis labels to avoid overlap |
58
+ | reducexticks | `boolean` | No | — | Reduce number of x-axis ticks |
59
+ | labeltype | `TChartValuesDisplay` | No | — | Label format for pie/donut: key, percent, value, key-value |
60
+ | barspacing | `string` | No | — | Bar spacing: 0.3, 0.5, 0.8 or small, medium, large |
61
+ | donutratio | `string` | No | — | Donut inner radius: small, medium, large |
62
+ | bubblesize | `string` | No | — | Bubble size data key |
63
+ | showxdistance | `boolean` | No | — | Show x-axis tick lines |
64
+ | showydistance | `boolean` | No | — | Show y-axis tick lines |
65
+ | areaviewtype | `StackOffsetType` | No | — | Area chart stack offset type |
66
+ | interpolation | `TChartInterpolation` | No | — | Line interpolation: linear, step, cardinal |
67
+ | centerlabel | `string` | No | — | Center label for donut chart |
68
+ | customcolors | `string[] \| string` | No | — | Custom colors array or comma-separated string |
69
+ | theme | `string` | No | — | Theme name for default colors |
70
+ | offset | `number` | No | — | Chart offset |
71
+ | offsettop | `number` | No | — | Top offset |
72
+ | offsetbottom | `number` | No | — | Bottom offset |
73
+ | offsetright | `number` | No | — | Right offset |
74
+ | offsetleft | `number` | No | — | Left offset |
75
+ | showxaxis | `boolean` | No | — | Show x-axis |
76
+ | showyaxis | `boolean` | No | — | Show y-axis |
77
+ | linethickness | `string` | No | — | Line thickness for line/area charts |
78
+ | highlightpoints | `boolean` | No | — | Highlight data points on line/area charts |
79
+ | formattype | `string` | No | — | Format type for numbers |
80
+ | dataset | `ChartDataset` | No | — | Chart dataset - array of objects |
81
+ | datasource | `unknown` | No | — | Datasource for server-side data |
82
+ | width | `string` | No | — | Chart width |
83
+ | height | `string` | No | — | Chart height |
84
+ | shape | `TBubbleChartShape` | No | — | Bubble shape: circle, cross, diamond, square, triangle-up, triangle-down, random |
85
+ | deferload | `boolean` | No | — | Defer chart loading |
86
+ | xdomain | `string` | No | — | X-axis domain |
87
+ | ydomain | `string` | No | — | Y-axis domain |
88
+ | labelthreshold | `number` | No | — | Minimum percent to show pie label |
89
+ | legendtype | `TChartLegendType` | No | — | Legend style: classic, furious |
90
+ | viewtype | `TChartViewType` | No | — | Bar/Column view: Stacked, Grouped |
91
+ | fontsize | `string` | No | — | Font size |
92
+ | fontunit | `string` | No | — | Font unit (px, em, etc.) |
93
+ | color | `string` | No | — | Text color |
94
+ | fontfamily | `string` | No | — | Font family |
95
+ | fontweight | `string` | No | — | Font weight |
96
+ | fontstyle | `string` | No | — | Font style |
97
+ | textdecoration | `string` | No | — | Text decoration |
98
+ | show | `boolean` | No | — | Whether to show the chart |
99
+ | styles | `CSSProperties` | No | — | Inline styles |
100
+ | onSelect | `( event: MouseEvent \| unknown, widget: ChartProps & BaseProps, selectedItem: ...` | No | — | Callback when chart data point is selected |
101
+ | onTransform | `(event: MouseEvent, widget: ChartProps & BaseProps) => ChartDataset \| void` | No | — | Callback to transform data before rendering |
102
+ | onBeforerender | `(widget: ChartProps & BaseProps, chartInstance: () => void) => void` | No | — | Callback before chart render |
103
+
104
+ *Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
@@ -0,0 +1,52 @@
1
+ ---
2
+ component: WmCheckbox
3
+ category: input
4
+ import: components/input/default/checkbox
5
+ tags: [input, checkbox, caption, form-field]
6
+ summary: Checkbox input field.
7
+ generated: true
8
+ ---
9
+
10
+ # WmCheckbox
11
+
12
+ Checkbox input field.
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmCheckbox
18
+ name="checkbox"
19
+ caption="My Checkbox"
20
+ datavalue={value}
21
+ />
22
+ ```
23
+
24
+ ## Props
25
+
26
+ | Prop | Type | Req | Default | Description |
27
+ |------|------|-----|---------|-------------|
28
+ | caption | `string` | No | — | Label text displayed alongside the checkbox. |
29
+ | checkedvalue | `string \| boolean \| number` | No | — | The value used when the checkbox is checked. |
30
+ | uncheckedvalue | `string \| boolean \| number` | No | — | The value used when the checkbox is unchecked. |
31
+ | datavalue | `string \| boolean \| number` | No | — | The current data value of the checkbox. |
32
+ | disabled | `boolean` | No | — | Whether the checkbox is disabled. |
33
+ | name | `string` | Yes | — | The unique name of the checkbox widget (required). |
34
+ | readonly | `boolean` | No | — | Whether the checkbox is read-only. |
35
+ | required | `boolean` | No | — | Whether the checkbox is required. |
36
+ | shortcutkey | `string` | No | — | Keyboard shortcut key to toggle the checkbox. |
37
+ | type | `string` | No | — | The type of the underlying input. |
38
+ | onChange | `( event: ChangeEvent<HTMLInputElement> \| undefined, widget: Record<string, un...` | No | — | Callback invoked when the checkbox value changes. |
39
+ | onClick | `( event?: MouseEvent<HTMLElement> \| ChangeEvent<HTMLInputElement>, widget?: R...` | No | — | Callback invoked when the checkbox is clicked. |
40
+ | onFocus | `( event: FocusEvent<HTMLElement> \| ChangeEvent<HTMLInputElement>, widget?: Re...` | No | — | Callback invoked when the checkbox receives focus. |
41
+ | displayValue | `string` | No | — | Formatted display value. |
42
+ | selectedicon | `string` | No | — | CSS class for the selected state icon. |
43
+ | unselectedicon | `string` | No | — | CSS class for the unselected state icon. |
44
+ | fieldName | `string` | No | — | Field name used by the form controller. |
45
+
46
+ *Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
47
+
48
+ ## CSS Tokens
49
+
50
+ Component-specific CSS variables: `--wm-checkbox-*`
51
+
52
+ See foundation-css: `src/tokens/web/components/checkbox/checkbox.json`
@@ -0,0 +1,75 @@
1
+ ---
2
+ component: WmCheckboxset
3
+ category: input
4
+ import: components/input/default/checkboxset
5
+ tags: [input, checkboxset, data-binding, collapsible, dropdown, form-field]
6
+ summary: Checkboxset — dropdown input field bound to a dataset.
7
+ generated: true
8
+ ---
9
+
10
+ # WmCheckboxset
11
+
12
+ Checkboxset — dropdown input field bound to a dataset.
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmCheckboxset
18
+ name="checkboxset"
19
+ dataset={items}
20
+ displayfield="label"
21
+ />
22
+ ```
23
+
24
+ ## Props
25
+
26
+ | Prop | Type | Req | Default | Description |
27
+ |------|------|-----|---------|-------------|
28
+ | layout | `"inline" \| "stacked"` | No | `"stacked"` | Layout of the checkboxes. |
29
+ | itemclass | `string` | No | — | CSS class applied to each item. |
30
+ | listclass | `string` | No | — | CSS class applied to the list container. |
31
+ | showcount | `boolean` | No | — | Whether to show the count of selected items. |
32
+ | disabled | `boolean` | No | — | Whether the checkboxset is disabled. |
33
+ | readonly | `boolean` | No | — | Whether the checkboxset is read-only. |
34
+ | type | `"button" \| "submit" \| "reset"` | No | — | Button type attribute (rarely used). |
35
+ | dataset | `unknown[] \| string \| Record<string, unknown>` | No | — | The data source bound to the checkboxset. |
36
+ | datafield | `string` | No | — | The field from the dataset to use as the data value. |
37
+ | displayfield | `string` | No | — | The field from the dataset to display as the label. |
38
+ | getDisplayExpression | `(data: Record<string, unknown>) => string` | No | — | Custom function to compute the display text for each item. |
39
+ | datavalue | `unknown[] \| unknown` | No | — | The currently selected data values. |
40
+ | usekeys | `boolean` | No | — | Whether to use keys as values. |
41
+ | groupby | `string` | No | — | The field to group items by. |
42
+ | match | `string` | No | — | Match mode for filtering. |
43
+ | orderby | `string` | No | — | Field(s) to order items by. |
44
+ | name | `string` | Yes | — | The unique name of the checkboxset widget (required). |
45
+ | onClick | `( event: ChangeEvent<HTMLInputElement> \| MouseEvent<HTMLElement>, widget?: Re...` | No | — | Callback invoked when a checkbox is clicked. |
46
+ | onChange | `( event: ChangeEvent<HTMLInputElement> \| SyntheticEvent, widget: Record<strin...` | No | — | Callback invoked when the selected values change. |
47
+ | onMouseEnter | `( event: MouseEvent<HTMLElement>, widget?: Record<string, unknown>, newVal?: ...` | No | — | Callback invoked when the mouse enters the widget. |
48
+ | onMouseLeave | `( event: MouseEvent<HTMLElement>, widget?: Record<string, unknown>, newVal?: ...` | No | — | Callback invoked when the mouse leaves the widget. |
49
+ | required | `boolean` | No | — | Whether a selection is required. |
50
+ | label | `string` | No | — | Label text for the checkboxset. |
51
+ | collapsed | `boolean` | No | — | Whether the group is collapsed. |
52
+ | collapsible | `boolean` | No | — | Whether the checkboxset group is collapsible. |
53
+ | compareby | `string[]` | No | — | Fields used for comparing values. |
54
+ | datasetItems | `DatasetItem[]` | No | — | Transformed dataset items (injected by HOC). |
55
+ | selectedItems | `DatasetItem[]` | No | — | Currently selected items (injected by HOC). |
56
+ | transformFormData | `( containerWidget: Record<string, unknown>, dataset: DatasetItem[], options: ...` | No | — | Function to transform form data (injected by HOC). |
57
+ | groupedData | `GroupedDataset[]` | No | — | Grouped dataset items. |
58
+ | onchange | `(value: unknown) => void` | No | — | Legacy change callback. |
59
+ | onblur | `() => void` | No | — | Legacy blur callback. |
60
+ | validation | `Record<string, unknown>` | No | — | Validation configuration. |
61
+ | isDestroyed | `boolean` | No | — | Whether the widget has been destroyed. |
62
+ | height | `string \| number` | Yes | — | Height of the checkboxset container. |
63
+ | width | `string \| number` | Yes | — | Width of the checkboxset container. |
64
+ | itemsperrow | `string` | No | — | Number of items per row. |
65
+ | tabIndex | `number` | No | — | Tab index for keyboard navigation. |
66
+ | displayValue | `string` | No | — | Formatted display value. |
67
+ | fieldName | `string` | No | — | Field name used by the form controller. |
68
+
69
+ *Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
70
+
71
+ ## CSS Tokens
72
+
73
+ Component-specific CSS variables: `--wm-checkboxset-*`
74
+
75
+ See foundation-css: `src/tokens/web/components/checkboxset/checkboxset.json`
@@ -0,0 +1,78 @@
1
+ ---
2
+ component: WmChips
3
+ category: input
4
+ import: components/input/chips
5
+ tags: [input, chips, data-binding, dropdown]
6
+ summary: Chips — dropdown input field bound to a dataset.
7
+ generated: true
8
+ ---
9
+
10
+ # WmChips
11
+
12
+ Chips — dropdown input field bound to a dataset.
13
+
14
+ ## Usage
15
+
16
+ ```jsx
17
+ <WmChips
18
+ name="chips"
19
+ dataset={items}
20
+ displayfield="label"
21
+ />
22
+ ```
23
+
24
+ ## Props
25
+
26
+ | Prop | Type | Req | Default | Description |
27
+ |------|------|-----|---------|-------------|
28
+ | allowonlyselect | `boolean` | No | — | When true, only items from the dataset can be selected (no custom input). |
29
+ | autofocus | `boolean` | No | — | Whether the chips input should be focused on mount. |
30
+ | chipclass | `string` | No | — | CSS class applied to individual chips. |
31
+ | datafield | `string` | No | — | The field from the dataset to use as the data value. |
32
+ | dataset | `unknown[] \| string \| Record<string, unknown>` | No | — | The data source bound to the chips widget. |
33
+ | datavalue | `unknown[] \| string \| Record<string, unknown>` | No | — | The current selected data values. |
34
+ | dateformat | `string` | No | — | Date format applied to date-type fields. |
35
+ | disabled | `boolean` | No | — | Whether the chips input is disabled. |
36
+ | displayexpression | `(data: Record<string, unknown>) => string` | No | — | Custom function to compute the display text for each chip. |
37
+ | displayfield | `string` | No | — | The field from the dataset to display as the chip label. |
38
+ | displayimagesrc | `string` | No | — | The field from the dataset to use as the chip image source. |
39
+ | enablereorder | `boolean` | No | — | Whether chip reordering via drag-and-drop is enabled. |
40
+ | groupby | `string` | No | — | The field to group chips by. |
41
+ | inputposition | `"first" \| "last"` | No | `"last"` | Position of the text input relative to chips. |
42
+ | inputwidth | `"default" \| "full" \| string` | No | `"default"` | Width of the text input. |
43
+ | limit | `number` | No | — | Maximum number of chips that can be selected. |
44
+ | match | `string` | No | — | Match mode for filtering the dataset. |
45
+ | matchmode | `string` | No | — | Strategy for matching search input against dataset items. |
46
+ | maxsize | `number` | No | — | Maximum number of characters allowed in the chip input. |
47
+ | minchars | `number` | No | — | Minimum characters required before showing suggestions. |
48
+ | name | `string` | Yes | — | The unique name of the chips widget (required). |
49
+ | orderby | `string` | No | — | Field(s) to order the dataset by. |
50
+ | placeholder | `string` | No | — | Placeholder text shown in the input. |
51
+ | readonly | `boolean` | No | — | Whether the chips input is read-only. |
52
+ | searchkey | `string` | No | — | The field(s) to search on when filtering. |
53
+ | showsearchicon | `boolean` | No | — | Whether to show a search icon in the input. |
54
+ | type | `"search" \| "autocomplete"` | No | — | Type of input behavior. |
55
+ | debouncetime | `number` | No | — | Debounce time in milliseconds for search input. |
56
+ | datacompletemsg | `string` | No | — | Message shown when all items are selected. |
57
+ | compareby | `string` | No | — | Field used for comparing chip values. |
58
+ | dataoptions | `Record<string, unknown>` | No | — | Additional data options for the chips widget. |
59
+ | datasource | `Record<string, unknown>` | No | — | Data source configuration. |
60
+ | datavaluesource | `Record<string, unknown>` | No | — | Data value source for binding. |
61
+ | onAdd | `(event: Event, widget: Record<string, unknown>, item: ChipItem) => void` | No | — | Callback invoked when a chip is added. |
62
+ | onBeforeadd | `( event: Event, widget: Record<string, unknown>, newItem: DataSetItem ) => bo...` | No | — | Callback invoked before a chip is added. Return `false` to prevent adding. |
63
+ | onBeforeremove | `( event: Event, widget: Record<string, unknown>, item: ChipItem \| ChipItem[] ...` | No | — | Callback invoked before a chip is removed. Return `false` to prevent removal. |
64
+ | onBeforereorder | `( event: Event, widget: Record<string, unknown>, data: ChipItem[], changedIte...` | No | — | Callback invoked before chips are reordered. Return `false` to prevent reordering. |
65
+ | onBeforeservicecall | `( widget: Record<string, unknown>, inputData: Record<string, unknown> ) => void` | No | — | Callback invoked before a service call is made. |
66
+ | onChipclick | `(event: Event, widget: Record<string, unknown>, item: ChipItem) => void` | No | — | Callback invoked when a chip is clicked. |
67
+ | onChipselect | `(event: Event, widget: Record<string, unknown>, item: ChipItem) => void` | No | — | Callback invoked when a chip is selected. |
68
+ | onChange | `( event: Event, widget: Record<string, unknown>, newVal: unknown[], oldVal: u...` | No | — | Callback invoked when the selected chips change. |
69
+ | onRemove | `(event: Event, widget: Record<string, unknown>, item: ChipItem \| ChipItem[]) ...` | No | — | Callback invoked when a chip is removed. |
70
+ | onReorder | `( event: Event, widget: Record<string, unknown>, data: ChipItem[], changedIte...` | No | — | Callback invoked after chips are reordered. |
71
+
72
+ *Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
73
+
74
+ ## CSS Tokens
75
+
76
+ Component-specific CSS variables: `--wm-chips-*`
77
+
78
+ See foundation-css: `src/tokens/web/components/chips/chips.json`