wavemaker-dev-mcp 0.1.3 → 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.
- package/README.md +75 -52
- package/dist/index.js +108 -177
- package/dist/index.js.map +1 -1
- package/dist/skills/loader.d.ts +36 -0
- package/dist/skills/loader.d.ts.map +1 -0
- package/dist/skills/loader.js +107 -0
- package/dist/skills/loader.js.map +1 -0
- package/package.json +8 -4
- package/skills/components/wm-accordion-pane.md +44 -0
- package/skills/components/wm-accordion.md +43 -0
- package/skills/components/wm-alert-dialog.md +42 -0
- package/skills/components/wm-anchor.md +51 -0
- package/skills/components/wm-audio.md +41 -0
- package/skills/components/wm-button-group.md +36 -0
- package/skills/components/wm-button.md +114 -0
- package/skills/components/wm-calendar.md +54 -0
- package/skills/components/wm-card.md +60 -0
- package/skills/components/wm-carousel.md +43 -0
- package/skills/components/wm-chart.md +104 -0
- package/skills/components/wm-checkbox.md +52 -0
- package/skills/components/wm-checkboxset.md +75 -0
- package/skills/components/wm-chips.md +78 -0
- package/skills/components/wm-composite.md +30 -0
- package/skills/components/wm-confirm-dialog.md +43 -0
- package/skills/components/wm-container.md +100 -0
- package/skills/components/wm-currency.md +69 -0
- package/skills/components/wm-datatable.md +146 -0
- package/skills/components/wm-date-time.md +80 -0
- package/skills/components/wm-date.md +78 -0
- package/skills/components/wm-dialog-body.md +28 -0
- package/skills/components/wm-dialog-container.md +48 -0
- package/skills/components/wm-dialog-content.md +31 -0
- package/skills/components/wm-dialog-footer.md +28 -0
- package/skills/components/wm-dialog-header.md +43 -0
- package/skills/components/wm-dialog.md +40 -0
- package/skills/components/wm-file-upload.md +58 -0
- package/skills/components/wm-footer.md +31 -0
- package/skills/components/wm-form-field.md +81 -0
- package/skills/components/wm-form.md +58 -0
- package/skills/components/wm-grid-column.md +30 -0
- package/skills/components/wm-header.md +31 -0
- package/skills/components/wm-html.md +31 -0
- package/skills/components/wm-icon.md +40 -0
- package/skills/components/wm-iframe-dialog.md +52 -0
- package/skills/components/wm-iframe.md +35 -0
- package/skills/components/wm-label.md +45 -0
- package/skills/components/wm-left-nav.md +35 -0
- package/skills/components/wm-linear-layout-item.md +28 -0
- package/skills/components/wm-linear-layout.md +92 -0
- package/skills/components/wm-list.md +92 -0
- package/skills/components/wm-live-filter.md +50 -0
- package/skills/components/wm-live-form.md +35 -0
- package/skills/components/wm-login-dialog.md +50 -0
- package/skills/components/wm-login.md +39 -0
- package/skills/components/wm-marquee.md +31 -0
- package/skills/components/wm-menu.md +71 -0
- package/skills/components/wm-message.md +41 -0
- package/skills/components/wm-nav-item.md +28 -0
- package/skills/components/wm-nav.md +61 -0
- package/skills/components/wm-number.md +62 -0
- package/skills/components/wm-page-content.md +34 -0
- package/skills/components/wm-page-dialog.md +45 -0
- package/skills/components/wm-page-toast.md +34 -0
- package/skills/components/wm-page.md +34 -0
- package/skills/components/wm-pagination.md +62 -0
- package/skills/components/wm-panel.md +69 -0
- package/skills/components/wm-partial-container.md +32 -0
- package/skills/components/wm-picture.md +46 -0
- package/skills/components/wm-popover.md +51 -0
- package/skills/components/wm-prefab-container.md +29 -0
- package/skills/components/wm-prefab.md +35 -0
- package/skills/components/wm-progress-bar.md +42 -0
- package/skills/components/wm-progress-circle.md +45 -0
- package/skills/components/wm-radioset.md +66 -0
- package/skills/components/wm-rating.md +76 -0
- package/skills/components/wm-rich-text-editor.md +36 -0
- package/skills/components/wm-right-nav.md +32 -0
- package/skills/components/wm-search.md +66 -0
- package/skills/components/wm-select.md +129 -0
- package/skills/components/wm-slider.md +53 -0
- package/skills/components/wm-spinner.md +43 -0
- package/skills/components/wm-tab-pane.md +45 -0
- package/skills/components/wm-table.md +113 -0
- package/skills/components/wm-tabs.md +48 -0
- package/skills/components/wm-text.md +65 -0
- package/skills/components/wm-textarea.md +47 -0
- package/skills/components/wm-tile.md +34 -0
- package/skills/components/wm-time.md +63 -0
- package/skills/components/wm-top-nav.md +31 -0
- package/skills/components/wm-tree.md +41 -0
- package/skills/components/wm-upload.md +42 -0
- package/skills/components/wm-video.md +48 -0
- package/skills/components/wm-wizard.md +59 -0
- package/skills/index.json +1151 -0
- package/skills/tokens/border.md +85 -0
- package/skills/tokens/colors.md +97 -0
- package/skills/tokens/elevation.md +73 -0
- package/skills/tokens/spacing.md +89 -0
- package/skills/tokens/typography.md +88 -0
- package/dist/components.d.ts +0 -17
- package/dist/components.d.ts.map +0 -1
- package/dist/components.js +0 -67
- package/dist/components.js.map +0 -1
- package/dist/paths.d.ts +0 -43
- package/dist/paths.d.ts.map +0 -1
- package/dist/paths.js +0 -103
- package/dist/paths.js.map +0 -1
- package/dist/search.d.ts +0 -15
- package/dist/search.d.ts.map +0 -1
- package/dist/search.js +0 -130
- package/dist/search.js.map +0 -1
|
@@ -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`
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: WmComposite
|
|
3
|
+
category: input
|
|
4
|
+
import: components/input/composite
|
|
5
|
+
tags: [input, composite, form-field]
|
|
6
|
+
summary: Composite input field.
|
|
7
|
+
generated: true
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# WmComposite
|
|
11
|
+
|
|
12
|
+
Composite input field.
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```jsx
|
|
17
|
+
<WmComposite
|
|
18
|
+
name="composite"
|
|
19
|
+
/>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Props
|
|
23
|
+
|
|
24
|
+
| Prop | Type | Req | Default | Description |
|
|
25
|
+
|------|------|-----|---------|-------------|
|
|
26
|
+
| captionposition | `"left" \| "right" \| "top" \| "floating"` | No | `"left"` | Position of the label relative to the input. |
|
|
27
|
+
| required | `boolean` | No | — | Whether the contained input is required. |
|
|
28
|
+
| id | `string` | No | — | The unique ID for the widget. |
|
|
29
|
+
|
|
30
|
+
*Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: WmConfirmDialog
|
|
3
|
+
category: dialogs
|
|
4
|
+
import: components/dialogs/confirm-dialog
|
|
5
|
+
tags: [dialogs, confirm, dialog, icon]
|
|
6
|
+
summary: Confirm Dialog — modal dialog.
|
|
7
|
+
generated: true
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# WmConfirmDialog
|
|
11
|
+
|
|
12
|
+
Confirm Dialog — modal dialog.
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```jsx
|
|
17
|
+
<WmConfirmDialog
|
|
18
|
+
name="confirmDialog"
|
|
19
|
+
title="My Panel"
|
|
20
|
+
/>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Props
|
|
24
|
+
|
|
25
|
+
| Prop | Type | Req | Default | Description |
|
|
26
|
+
|------|------|-----|---------|-------------|
|
|
27
|
+
| oktext | `string` | No | — | Text for the OK button. |
|
|
28
|
+
| canceltext | `string` | No | — | Text for the Cancel button. |
|
|
29
|
+
| title | `string` | No | — | Title text for the confirm dialog. |
|
|
30
|
+
| message | `string \| ReactNode` | No | — | Message content for the confirm dialog. |
|
|
31
|
+
| text | `string \| ReactNode` | No | — | Text content for the confirm dialog. |
|
|
32
|
+
| iconclass | `string` | No | — | CSS class for the icon. |
|
|
33
|
+
| onOk | `(event?: SyntheticEvent) => void` | No | — | Callback fired when the OK button is clicked. |
|
|
34
|
+
| onCancel | `(event?: SyntheticEvent) => void` | No | — | Callback fired when the Cancel button is clicked. |
|
|
35
|
+
| onClose | `(event?: SyntheticEvent) => void` | No | — | Callback fired when the dialog requests to be closed. |
|
|
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-confirm-dialog-*`
|
|
42
|
+
|
|
43
|
+
See foundation-css: `src/tokens/web/components/modal-dialog/modal-dialog.json`
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: WmContainer
|
|
3
|
+
category: container
|
|
4
|
+
import: components/container
|
|
5
|
+
tags: [container, flex, wrapper, section, panel, alignment, gap]
|
|
6
|
+
summary: General-purpose flex container with alignment, gap, wrap, overflow, and z-index control.
|
|
7
|
+
related: [WmLinearLayout, WmLayoutGrid, WmPanel]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# WmContainer
|
|
11
|
+
|
|
12
|
+
General-purpose flex container. Use for sections, cards, and any area needing alignment control, overflow clipping, or z-index stacking. Unlike `WmLinearLayout`, it does not require `WmLinearLayoutItem` wrappers — children are placed directly.
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```jsx
|
|
17
|
+
<WmContainer
|
|
18
|
+
name="profileCard"
|
|
19
|
+
direction="row"
|
|
20
|
+
alignment="middle-left"
|
|
21
|
+
gap={16}
|
|
22
|
+
width="100%"
|
|
23
|
+
padding="16px"
|
|
24
|
+
>
|
|
25
|
+
<WmPicture name="avatar" />
|
|
26
|
+
<WmLabel name="userName" caption="Jane Doe" />
|
|
27
|
+
</WmContainer>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Key Props
|
|
31
|
+
|
|
32
|
+
| Prop | Type | Default | Description |
|
|
33
|
+
|------|------|---------|-------------|
|
|
34
|
+
| direction | `"row" \| "column"` | `"column"` | Flex direction |
|
|
35
|
+
| alignment | `ContainerAlignment` | `"top-left"` | Combined horizontal + vertical alignment (see table below) |
|
|
36
|
+
| gap | `string \| number` | — | Gap between children in px |
|
|
37
|
+
| columngap | `string \| number` | — | Column gap when `wrap` is true |
|
|
38
|
+
| wrap | `boolean` | `false` | Allow children to wrap to next line |
|
|
39
|
+
| clipcontent | `string \| boolean` | — | Clip overflowing content |
|
|
40
|
+
| position | `string` | — | CSS position (`"relative"`, `"absolute"`, `"fixed"`) |
|
|
41
|
+
| overflow | `string` | — | CSS overflow (`"auto"`, `"hidden"`, `"scroll"`) |
|
|
42
|
+
| zindex | `string \| number` | — | CSS z-index |
|
|
43
|
+
| content | `string` | — | Named partial for deferred rendering |
|
|
44
|
+
| name | `string` | — | Required. Widget identifier |
|
|
45
|
+
| width | `string` | — | CSS width |
|
|
46
|
+
| height | `string` | — | CSS height |
|
|
47
|
+
| padding | `string` | — | CSS padding shorthand |
|
|
48
|
+
| className | `string` | — | Additional CSS class names |
|
|
49
|
+
|
|
50
|
+
## Alignment Values
|
|
51
|
+
|
|
52
|
+
| Value | Flex equivalent |
|
|
53
|
+
|-------|----------------|
|
|
54
|
+
| `"top-left"` | justify: start, align: start |
|
|
55
|
+
| `"top-center"` | justify: center, align: start |
|
|
56
|
+
| `"top-right"` | justify: end, align: start |
|
|
57
|
+
| `"middle-left"` | justify: start, align: center |
|
|
58
|
+
| `"middle-center"` | justify: center, align: center |
|
|
59
|
+
| `"middle-right"` | justify: end, align: center |
|
|
60
|
+
| `"bottom-left"` | justify: start, align: end |
|
|
61
|
+
| `"bottom-center"` | justify: center, align: end |
|
|
62
|
+
| `"bottom-right"` | justify: end, align: end |
|
|
63
|
+
| `"center"` | both centered |
|
|
64
|
+
|
|
65
|
+
## Patterns
|
|
66
|
+
|
|
67
|
+
**Card with header and body:**
|
|
68
|
+
```jsx
|
|
69
|
+
<WmContainer name="card" direction="column" gap={0} padding="16px" className="app-card">
|
|
70
|
+
<WmLabel name="cardTitle" caption="Summary" />
|
|
71
|
+
<WmContainer name="cardBody" direction="column" gap={12}>
|
|
72
|
+
<WmLabel name="stat1" caption="42 users" />
|
|
73
|
+
<WmLabel name="stat2" caption="7 active" />
|
|
74
|
+
</WmContainer>
|
|
75
|
+
</WmContainer>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Sticky overlay (absolute positioned):**
|
|
79
|
+
```jsx
|
|
80
|
+
<WmContainer name="overlay" position="absolute" zindex={100} alignment="middle-center" width="100%" height="100%">
|
|
81
|
+
<WmLabel name="loadingMsg" caption="Loading..." />
|
|
82
|
+
</WmContainer>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Scrollable content area:**
|
|
86
|
+
```jsx
|
|
87
|
+
<WmContainer name="scrollArea" direction="column" overflow="auto" height="400px">
|
|
88
|
+
{/* long content */}
|
|
89
|
+
</WmContainer>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## WmContainer vs WmLinearLayout
|
|
93
|
+
|
|
94
|
+
| | WmContainer | WmLinearLayout |
|
|
95
|
+
|---|---|---|
|
|
96
|
+
| Child wrappers needed | No | Yes (`WmLinearLayoutItem`) |
|
|
97
|
+
| Spacing control | `gap` prop (px) | `spacing` prop (token-based) |
|
|
98
|
+
| Alignment | Single `alignment` prop | Separate `horizontalalign` / `verticalalign` |
|
|
99
|
+
| Wrap support | Yes | No |
|
|
100
|
+
| Use for | Sections, cards, panels | Item lists, toolbars, stacks |
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: WmCurrency
|
|
3
|
+
category: input
|
|
4
|
+
import: components/input/currency
|
|
5
|
+
tags: [input, currency, form-field]
|
|
6
|
+
summary: Currency input field.
|
|
7
|
+
generated: true
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# WmCurrency
|
|
11
|
+
|
|
12
|
+
Currency input field.
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```jsx
|
|
17
|
+
<WmCurrency
|
|
18
|
+
name="currency"
|
|
19
|
+
datavalue={value}
|
|
20
|
+
/>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Props
|
|
24
|
+
|
|
25
|
+
| Prop | Type | Req | Default | Description |
|
|
26
|
+
|------|------|-----|---------|-------------|
|
|
27
|
+
| currency | `string` | No | `"USD"` | ISO 4217 currency code. |
|
|
28
|
+
| currencySymbol | `string` | No | — | The symbol to display for the currency. |
|
|
29
|
+
| currencySymbolPosition | `"left" \| "right"` | No | `"left"` | Position of the currency symbol relative to the input. |
|
|
30
|
+
| currencySymbolWidth | `string` | No | — | Width of the currency symbol area. |
|
|
31
|
+
| disabled | `boolean` | No | — | Whether the input is disabled. |
|
|
32
|
+
| name | `string` | Yes | — | The unique name of the currency widget (required). |
|
|
33
|
+
| shortcutkey | `string` | No | — | Keyboard shortcut key to focus the input. |
|
|
34
|
+
| autofocus | `boolean` | No | — | Whether the input should be focused on mount. |
|
|
35
|
+
| inputProps | `Record<string, unknown>` | No | — | Props passed to the inner number input element. |
|
|
36
|
+
| displayValue | `string` | No | — | Formatted display value for the currency. |
|
|
37
|
+
| class | `string` | No | — | CSS class name override. |
|
|
38
|
+
| readonly | `boolean` | No | — | Whether the currency input is read-only. |
|
|
39
|
+
| required | `boolean` | No | — | Whether a value is required. |
|
|
40
|
+
| placeholder | `string` | No | `"Enter value"` | Placeholder text shown when the input is empty. |
|
|
41
|
+
| maxvalue | `number` | No | — | Maximum value allowed. |
|
|
42
|
+
| minvalue | `number` | No | — | Minimum value allowed. |
|
|
43
|
+
| step | `number` | No | `1` | Step increment for arrow key changes. |
|
|
44
|
+
| textAlign | `string` | No | — | Text alignment within the input. |
|
|
45
|
+
| trailingzero | `boolean` | No | — | Whether to display trailing zeros. |
|
|
46
|
+
| inputmode | `"natural" \| "financial"` | No | `"natural"` | Input mode for the currency widget.
|
|
47
|
+
- `"natural"`: Standard number input.
|
|
48
|
+
- `"financial"`: Financial format. |
|
|
49
|
+
| decimalplaces | `number` | No | `0` | Number of decimal places to display. |
|
|
50
|
+
| updateon | `"blur" \| "keypress"` | No | `"blur"` | When the data value should be updated. |
|
|
51
|
+
| updatedelay | `string` | No | `"0"` | Delay in milliseconds before updating the data value. |
|
|
52
|
+
| datavalue | `number \| null` | No | — | The bound data value of the currency input. |
|
|
53
|
+
| onChange | `( event: ChangeEvent<HTMLInputElement>, widget: Record<string, unknown>, newV...` | No | — | Callback invoked when the currency value changes. |
|
|
54
|
+
| onBlur | `(event: FocusEvent<HTMLInputElement>, widget?: Record<string, unknown>) => void` | No | — | Callback invoked when the input loses focus. |
|
|
55
|
+
| onFocus | `(event: FocusEvent<HTMLInputElement>) => void` | No | — | Callback invoked when the input receives focus. |
|
|
56
|
+
| onClick | `(event: MouseEvent<HTMLInputElement>, widget?: Record<string, unknown>) => void` | No | — | Callback invoked when the input is clicked. |
|
|
57
|
+
| onMouseEnter | `( event: MouseEvent<HTMLInputElement>, widget?: Record<string, unknown> ) => ...` | No | — | Callback invoked when the mouse enters the input. |
|
|
58
|
+
| onMouseLeave | `( event: MouseEvent<HTMLInputElement>, widget?: Record<string, unknown> ) => ...` | No | — | Callback invoked when the mouse leaves the input. |
|
|
59
|
+
| onKeyDown | `(event: KeyboardEvent<HTMLInputElement>) => void` | No | — | Callback invoked on key down. |
|
|
60
|
+
| onEnter | `(event: KeyboardEvent<HTMLInputElement>) => void` | No | — | Callback invoked when the Enter key is pressed. |
|
|
61
|
+
| fieldName | `string` | No | — | Field name used by the form controller. |
|
|
62
|
+
|
|
63
|
+
*Inherits BaseProps: `name`, `show`, `className`, `width`, `height`, `padding`, `margin`, `onClick`, and more.*
|
|
64
|
+
|
|
65
|
+
## CSS Tokens
|
|
66
|
+
|
|
67
|
+
Component-specific CSS variables: `--wm-currency-*`
|
|
68
|
+
|
|
69
|
+
See foundation-css: `src/tokens/web/components/currency/currency.json`
|