@fewangsit/wangsvue-gsts 2.0.0-alpha.3 → 2.0.0-alpha.30
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/assets/scanner.worker-DQsz7oT_.js.map +1 -0
- package/badge/Badge.fm.md +32 -0
- package/basetree/index.d.ts +31 -0
- package/breadcrumb/Breadcrumb.fm.md +23 -0
- package/button/Button.fm.md +53 -0
- package/buttonbulkaction/ButtonBulkAction-MenuItem.fm.md +18 -0
- package/buttonbulkaction/ButtonBulkAction.fm.md +25 -0
- package/buttondownload/ButtonDownload.fm.md +22 -0
- package/buttonfilter/ButtonFilter.fm.md +19 -0
- package/buttonscan/index.d.ts +6 -0
- package/buttonsearch/ButtonSearch.fm.md +19 -0
- package/buttonsearchbyscan/ButtonSearchByScan.fm.md +25 -0
- package/buttonselecttree/ButtonSelectTree.fm.md +40 -0
- package/buttonselecttree/index.d.ts +18 -0
- package/calendar/Calendar.fm.md +34 -0
- package/calendar/index.d.ts +41 -0
- package/changelogpage/index.d.ts +1 -1
- package/components.fm.md +56 -0
- package/customcolumn/index.d.ts +5 -5
- package/datatable/DataTable-MenuItem.fm.md +22 -0
- package/datatable/DataTable-TableColumn.fm.md +52 -0
- package/datatable/DataTable.fm.md +40 -0
- package/datatable/index.d.ts +10 -2
- package/dialog/index.d.ts +5 -0
- package/dialogconfirm/DialogConfirm.fm.md +29 -0
- package/dialogconfirm/index.d.ts +1 -0
- package/dialogform/DialogForm.fm.md +57 -0
- package/dialogform/index.d.ts +1 -1
- package/dialogselecttree/DialogSelectTree.fm.md +42 -0
- package/dialogselecttree/index.d.ts +25 -1
- package/dropdown/Dropdown.fm.md +34 -0
- package/fieldwrapper/index.d.ts +5 -0
- package/fileupload/FileUpload.fm.md +31 -0
- package/fileupload/index.d.ts +7 -1
- package/icon/index.d.ts +80 -67
- package/imagecompressor/ImageCompressor.fm.md +44 -0
- package/imagecompressor/index.d.ts +1 -1
- package/inputbadge/InputBadge.fm.md +34 -0
- package/inputbadge/index.d.ts +4 -0
- package/inputcurrency/index.d.ts +14 -0
- package/inputnumber/InputNumber.fm.md +39 -0
- package/inputpassword/InputPassword.fm.md +28 -0
- package/inputpassword/index.d.ts +4 -0
- package/inputphonenumber/InputPhoneNumber.fm.md +34 -0
- package/inputrangenumber/InputRangeNumber.fm.md +31 -0
- package/inputtext/InputText.fm.md +34 -0
- package/mcp/components.json +44 -35
- package/mcp/components.summary.txt +7 -4
- package/mcp/main.js +1276 -1152
- package/mcp/package.json +6 -6
- package/mcp/skills/api-service-generator/SKILL.md +93 -93
- package/mcp/skills/committing-changes/SKILL.md +38 -38
- package/mcp/skills/figma-datatable-generator/SKILL.md +93 -93
- package/mcp/skills/figma-to-code/SKILL.md +118 -117
- package/mcp/skills/import-validator/SKILL.md +54 -54
- package/mcp/skills/wangsvue-code-review/SKILL.md +72 -70
- package/mcp/skills/wangsvue-workflow/SKILL.md +92 -91
- package/menu/index.d.ts +4 -0
- package/multiselect/MultiSelect.fm.md +34 -0
- package/overlaypanel/index.d.ts +4 -0
- package/package.json +1 -1
- package/plugins/WangsVue.d.ts +4 -1
- package/stats.html +1 -1
- package/style.css +2 -2
- package/tabmenu/TabMenu.fm.md +28 -0
- package/tagtype/index.d.ts +1 -1
- package/textarea/TextArea.fm.md +34 -0
- package/toast/index.d.ts +13 -0
- package/tree/index.d.ts +34 -0
- package/utils/baseToast.util.d.ts +1 -24
- package/utils/toast.util.d.ts +1 -3
- package/wangsvue-gsts.es.js +21496 -21174
- package/wangsvue-gsts.es.js.map +1 -1
- package/wangsvue-gsts.system.js +62 -62
- package/wangsvue-gsts.system.js.map +1 -1
- package/assets/scanner.worker-CqQNqzoU.js.map +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# DataTable
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `DataTable` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A table named "Table Wrapper" or similar, inside the main frame.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `tableName` (string)
|
|
19
|
+
Unique identifier for this table. Format: `{module}-{scope}-table` (e.g. borrow-available-list-table).
|
|
20
|
+
- {module} is inferred from the Figma file name. Normalize to lowercase, strip special characters, use the primary domain keyword (e.g. for a file named "-v2--Borrow" the module is `borrow`).
|
|
21
|
+
- {scope} is inferred from what the table represents within that module (e.g. available-list, prelist, active-list, history-list).
|
|
22
|
+
|
|
23
|
+
- `useOption` (boolean)
|
|
24
|
+
True if the rightmost column of the table row (NOT row header) contains an ellipsis icon (triple-dot or vertical-dot) indicating row actions / a context menu. False if there is no such column.
|
|
25
|
+
|
|
26
|
+
- `options` (MenuItem[])
|
|
27
|
+
Refer to ./DataTable-MenuItem.fm.md
|
|
28
|
+
|
|
29
|
+
- `columns` (TableColumn[])
|
|
30
|
+
Refer to ./DataTable-TableColumn.fm.md
|
|
31
|
+
|
|
32
|
+
- `usePaginator` (boolean)
|
|
33
|
+
True if there are Pagination adjacent to the DataTable, false if not.
|
|
34
|
+
|
|
35
|
+
- `lazy` (boolean)
|
|
36
|
+
True if `usePaginator` is true, otherwise false.
|
|
37
|
+
|
|
38
|
+
`selectionType` ('none', 'checkbox')
|
|
39
|
+
- none if no checkbox element/component on the leftmost column of the table.
|
|
40
|
+
- checkbox if checkbox element/component on the leftmost column of the table.
|
package/datatable/index.d.ts
CHANGED
|
@@ -165,6 +165,7 @@ export interface DataTableFilterMeta {
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
export type FetchListResponse<T extends Data = Data> = {
|
|
168
|
+
status: number;
|
|
168
169
|
message: string;
|
|
169
170
|
data: {
|
|
170
171
|
data: T[];
|
|
@@ -437,7 +438,7 @@ export interface TableColumn<T extends Data> {
|
|
|
437
438
|
*/
|
|
438
439
|
preset?: ColumnPreset<T>;
|
|
439
440
|
/**
|
|
440
|
-
* Whether the column is checked by default
|
|
441
|
+
* Whether the column is checked by default
|
|
441
442
|
* @default true
|
|
442
443
|
*/
|
|
443
444
|
checkedByDefault?: boolean;
|
|
@@ -722,7 +723,7 @@ export interface DataTableBaseProps<T extends Data = Data> {
|
|
|
722
723
|
|
|
723
724
|
/**
|
|
724
725
|
* The number of rows to display per page.
|
|
725
|
-
* @defaultValue
|
|
726
|
+
* @defaultValue 10
|
|
726
727
|
*/
|
|
727
728
|
rows?: number;
|
|
728
729
|
|
|
@@ -779,6 +780,13 @@ export interface DataTableBaseProps<T extends Data = Data> {
|
|
|
779
780
|
* Total disabled rows in table (used for synchronizing with bulk action button)
|
|
780
781
|
*/
|
|
781
782
|
totalDisabledRows?: number;
|
|
783
|
+
/**
|
|
784
|
+
* Disable all checkboxes in the table (header + body).
|
|
785
|
+
* When true, no rows can be selected.
|
|
786
|
+
*
|
|
787
|
+
* @defaultValue false
|
|
788
|
+
*/
|
|
789
|
+
disableAllCheckboxes?: boolean;
|
|
782
790
|
}
|
|
783
791
|
|
|
784
792
|
export interface DataTableProps<T extends Data> extends DataTableBaseProps<T> {
|
package/dialog/index.d.ts
CHANGED
|
@@ -170,6 +170,11 @@ export interface DialogProps {
|
|
|
170
170
|
* Title content of the dialog.
|
|
171
171
|
*/
|
|
172
172
|
header?: string | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Unique id for the dialog header element, used for aria-labelledby association.
|
|
175
|
+
* If not provided, a unique id will be auto-generated.
|
|
176
|
+
*/
|
|
177
|
+
headerId?: string;
|
|
173
178
|
/**
|
|
174
179
|
* Footer content of the dialog.
|
|
175
180
|
*/
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# DialogConfirm
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `DialogConfirm` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Dialog Confirm" or similar.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `header` (string)
|
|
19
|
+
The header of the dialog.
|
|
20
|
+
|
|
21
|
+
- `severity` (string)
|
|
22
|
+
- success if the color style / theme of the dialog is green, it tend to be a positive.
|
|
23
|
+
- danger if the color style / theme of the dialog is red, it tend to be a negative.
|
|
24
|
+
|
|
25
|
+
- `actionable` (boolean)
|
|
26
|
+
Whether the dialog is actionable, if there are buttons like "Save" or "Cancel", then its true. Otherwise false.
|
|
27
|
+
|
|
28
|
+
- `confirmLabel` (string)
|
|
29
|
+
The text of the "Confirmation" button, most commonly the rightmost one.
|
package/dialogconfirm/index.d.ts
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# DialogForm
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `DialogForm` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Dialog Form" or similar, consisting of a header (title + close button), a content slot area, and a footer with buttons.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `header` (string)
|
|
19
|
+
The text inside the dialog title.
|
|
20
|
+
|
|
21
|
+
- `closable` (boolean)
|
|
22
|
+
Whether a close (X) icon button is present in the header. Omit if absent.
|
|
23
|
+
|
|
24
|
+
- `showStayCheckbox` (boolean)
|
|
25
|
+
Whether a "Stay on this form after submitting" checkbox exists in the footer.
|
|
26
|
+
|
|
27
|
+
- `stayCheckboxLabel` (string | undefined)
|
|
28
|
+
The text label of the stay checkbox. Omit if `showStayCheckbox` is false.
|
|
29
|
+
|
|
30
|
+
- `buttonsTemplate` ('clear' | 'submit' | 'cancel')[]
|
|
31
|
+
- Include `'clear'` if a "Clear Field" or similar text button is present.
|
|
32
|
+
- Include `'submit'` if a primary action button (e.g. "Submit", "Save") is present.
|
|
33
|
+
- Include `'cancel'` if a cancel/secondary dismiss button is present.
|
|
34
|
+
This is REQUIRED.
|
|
35
|
+
|
|
36
|
+
- `submitBtnLabel` (string | undefined)
|
|
37
|
+
The text of the submit button. Omit if `buttonsTemplate` does not contain `'submit'`.
|
|
38
|
+
|
|
39
|
+
- `clearBtnLabel` (string | undefined)
|
|
40
|
+
The text of the clear field button. Omit if `buttonsTemplate` does not contain `'clear'`.
|
|
41
|
+
|
|
42
|
+
- `severity` ('success' | 'danger' | 'primary' | undefined)
|
|
43
|
+
- `'success'` if the submit button or dialog theme is green.
|
|
44
|
+
- `'danger'` if the submit button or dialog theme is red.
|
|
45
|
+
- `'primary'` if the submit button or dialog theme is blue.
|
|
46
|
+
- Omit if ambiguous or no submit button is present.
|
|
47
|
+
|
|
48
|
+
- `width` ('small' | 'medium' | 'large' | 'semi-xlarge' | 'xlarge')
|
|
49
|
+
Infer from the dialog frame width:
|
|
50
|
+
- `400px` → `'small'`
|
|
51
|
+
- `500px` → `'medium'`
|
|
52
|
+
- `572px` → `'large'`
|
|
53
|
+
- `600px` → `'semi-xlarge'`
|
|
54
|
+
- `800px` → `'xlarge'`
|
|
55
|
+
|
|
56
|
+
## RULES - CRITICAL
|
|
57
|
+
1. **ALWAYS set `buttonsTemplate`** The Dialog Form most crucial property is `buttonsTemplate` it is what defines the DialogForm and distinguish it from a normal, regular, Dialog.
|
package/dialogform/index.d.ts
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# DialogSelectTree
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `DialogSelectTree` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Dialog Select Tree" or similar, consisting of a dialog frame (~400px width) with a header (title + close icon), a search input, a tree content area with hierarchical nodes, and a footer with "Cancel" and "Select" buttons.
|
|
7
|
+
- The component has 4 variants: `Type=Group Checkbox`, `Type=Group Single`, `Type=Category Checkbox`, `Type=Category Single`.
|
|
8
|
+
|
|
9
|
+
## Metadata Shape (Component)
|
|
10
|
+
|
|
11
|
+
Append this component to the `components` array of the returned JSON.
|
|
12
|
+
|
|
13
|
+
## Metadata Shape (Properties)
|
|
14
|
+
|
|
15
|
+
Append these properties to the `props` object of this component.
|
|
16
|
+
|
|
17
|
+
### Properties definitions
|
|
18
|
+
|
|
19
|
+
- `header` (string)
|
|
20
|
+
The header title text of the dialog. Look for the bold heading text at the top of the dialog frame. If no explicit header is provided, omit and the default will be "Select Group" or "Select Category" based on `type`.
|
|
21
|
+
|
|
22
|
+
- `subHeader` (string | undefined)
|
|
23
|
+
The subtitle text below the header. Look for a smaller heading element between the title and the search input. Omit if absent.
|
|
24
|
+
|
|
25
|
+
- `type` ('group' | 'category')
|
|
26
|
+
Infer from the Figma variant name:
|
|
27
|
+
- `'group'` if the variant node name contains "Group" (e.g. "Type=Group Checkbox", "Type=Group Single").
|
|
28
|
+
- `'category'` if the variant node name contains "Category" (e.g. "Type=Category Checkbox", "Type=Category Single").
|
|
29
|
+
|
|
30
|
+
- `selectionMode` ('single' | 'checkbox')
|
|
31
|
+
Infer from the Figma variant name:
|
|
32
|
+
- `'checkbox'` if the variant node name contains "Checkbox" — tree nodes will show a checklist/checkbox element.
|
|
33
|
+
- `'single'` if the variant node name contains "Single" — tree nodes will NOT show checkboxes; the active selection is indicated by a highlighted background (`--general/sidebar-menu-single-active`).
|
|
34
|
+
|
|
35
|
+
- `visible` (boolean)
|
|
36
|
+
Whether the dialog is visible. The dialog frame should be present and not hidden in the design context. Defaults to `true` when the frame exists.
|
|
37
|
+
|
|
38
|
+
- `lists` ((string | object)[] | undefined)
|
|
39
|
+
The lists displayed inside the dialog header, typically rendered as a bulleted list (`<ul>`) below the title. Look for a frame or element containing multiple list items. If present, include each item as a string in the array. Omit if absent.
|
|
40
|
+
|
|
41
|
+
- `listLabel` (string | undefined)
|
|
42
|
+
The property name to extract from list items when they are objects. Omit if `lists` is absent or if list items are plain strings.
|
|
@@ -3,7 +3,7 @@ import { Slot } from 'vue';
|
|
|
3
3
|
|
|
4
4
|
import { TreeNode } from '../basetree';
|
|
5
5
|
import { QueryParams, ShortFetchListResponse } from '../datatable';
|
|
6
|
-
import TreeInstance, { TreeProps } from '../tree';
|
|
6
|
+
import TreeInstance, { TransactionType, TreeProps } from '../tree';
|
|
7
7
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
8
8
|
|
|
9
9
|
export interface DialogSelectTreeProps
|
|
@@ -95,6 +95,24 @@ export interface DialogSelectTreeProps
|
|
|
95
95
|
* @default true
|
|
96
96
|
*/
|
|
97
97
|
propagateSelection?: boolean;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* When provided, enables quota validation on select.
|
|
101
|
+
* Also enables `showAvailableQuota` on the Tree component automatically.
|
|
102
|
+
*/
|
|
103
|
+
validateQuota?: { assetQuantity: number };
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* When set, nodes whose manager[transactionType] is false will be rendered disabled.
|
|
107
|
+
*/
|
|
108
|
+
requiredManagerPermission?: TransactionType;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* When true, only top-level nodes (level <= 1) are selectable.
|
|
112
|
+
*
|
|
113
|
+
* @default false
|
|
114
|
+
*/
|
|
115
|
+
disableSubChildren?: boolean;
|
|
98
116
|
}
|
|
99
117
|
|
|
100
118
|
export type TreeSelectPayload = {
|
|
@@ -119,6 +137,12 @@ export interface DialogSelectTreeSlots {
|
|
|
119
137
|
updateFilter: (newFilter?: string) => void; // Hooks to update internal state filter
|
|
120
138
|
}>;
|
|
121
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Slot rendered between the subHeader and the search input.
|
|
142
|
+
* Use to inject description text or additional content above the tree.
|
|
143
|
+
*/
|
|
144
|
+
description: Slot<Record<string, never>>;
|
|
145
|
+
|
|
122
146
|
/**
|
|
123
147
|
* Slot to customize tree node item
|
|
124
148
|
*/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Dropdown
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `Dropdown` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "Dropdown" or similar, consisting of a select input field optionally paired with a label, required asterisk, info icon, and a dropdown arrow icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the dropdown.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text inside the dropdown (e.g. "Select"). When a value is selected, the placeholder is replaced with the selected option text. Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `mandatory` (boolean | undefined)
|
|
25
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
26
|
+
|
|
27
|
+
- `fieldInfo` (string | undefined)
|
|
28
|
+
Whether an info icon (`information-line`) is present next to the label. Omit if absent.
|
|
29
|
+
|
|
30
|
+
- `invalid` (boolean | undefined)
|
|
31
|
+
Whether the dropdown shows an error state (red border, red caption text). Omit if the field is not in error state.
|
|
32
|
+
|
|
33
|
+
- `disabled` (boolean | undefined)
|
|
34
|
+
Whether the dropdown shows a disabled state (gray background, gray text). Omit if the field is not disabled.
|
package/fieldwrapper/index.d.ts
CHANGED
|
@@ -64,6 +64,11 @@ export interface FieldWrapperProps {
|
|
|
64
64
|
* @default undefined
|
|
65
65
|
*/
|
|
66
66
|
tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The id of the input element to associate the label with via `for` attribute.
|
|
70
|
+
*/
|
|
71
|
+
inputId?: string;
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
export interface FieldWrapperSlots {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# FileUpload
|
|
2
|
+
type reference: ./index.d.ts
|
|
3
|
+
|
|
4
|
+
Append a `FileUpload` component when the figma context contains:
|
|
5
|
+
|
|
6
|
+
- A figma component or instance named "File Upload" or similar, consisting of a file selector input with a "Browse" button addon on the left, a selected file name or placeholder text, and an optional file requirement note below, optionally paired with a label, required asterisk, and info icon.
|
|
7
|
+
|
|
8
|
+
## Metadata Shape (Component)
|
|
9
|
+
|
|
10
|
+
Append this component to the `components` array of the returned JSON.
|
|
11
|
+
|
|
12
|
+
## Metadata Shape (Properties)
|
|
13
|
+
|
|
14
|
+
Append these properties to the `props` object of this component.
|
|
15
|
+
|
|
16
|
+
### Properties definitions
|
|
17
|
+
|
|
18
|
+
- `label` (string)
|
|
19
|
+
The text of the label displayed above the file upload input.
|
|
20
|
+
|
|
21
|
+
- `placeholder` (string | undefined)
|
|
22
|
+
The placeholder text in the file name field (e.g. "Select File"). When a file is selected, the placeholder is replaced with the file name (e.g. "document.pdf"). Omit if no placeholder text is visible.
|
|
23
|
+
|
|
24
|
+
- `fileRequirements` (string | undefined)
|
|
25
|
+
The requirement note displayed below the input (e.g. "Max. file 1 MB"). Omit if no requirement text is visible.
|
|
26
|
+
|
|
27
|
+
- `mandatory` (boolean | undefined)
|
|
28
|
+
Whether a red asterisk `*` is present next to the label, indicating the field is required. Omit if absent.
|
|
29
|
+
|
|
30
|
+
- `invalid` (boolean | undefined)
|
|
31
|
+
Whether the file upload shows an error state (red border, red caption text). Omit if the field is not in error state.
|
package/fileupload/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface FileUploadProps {
|
|
|
31
31
|
* Be careful while using this props since the validation can't work while using this.
|
|
32
32
|
* You must do manual validation when choosing the file to be set on the component.
|
|
33
33
|
*/
|
|
34
|
-
modelValue?: File | File[];
|
|
34
|
+
modelValue?: File | File[] | string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Props to determine whether file upload support multiple files or not
|
|
@@ -62,6 +62,12 @@ export interface FileUploadProps {
|
|
|
62
62
|
* @defaultValue 'Upload File'
|
|
63
63
|
*/
|
|
64
64
|
label?: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* CSS class applied to the label element.
|
|
67
|
+
* Use `'hidden'` to hide the label when the component is used inside a
|
|
68
|
+
* composite that manages its own label (e.g. CustomFieldInput).
|
|
69
|
+
*/
|
|
70
|
+
labelClass?: string | undefined;
|
|
65
71
|
/**
|
|
66
72
|
* Whether to use an upload button.
|
|
67
73
|
* @defaultValue true
|
package/icon/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ export type WangsIconseverities =
|
|
|
5
5
|
| 'warning'
|
|
6
6
|
| 'primary'
|
|
7
7
|
| 'success'
|
|
8
|
-
| 'secondary'
|
|
8
|
+
| 'secondary'
|
|
9
|
+
| 'info';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* List of all available icons.
|
|
@@ -13,11 +14,11 @@ export type WangsIconseverities =
|
|
|
13
14
|
export type WangsIcons =
|
|
14
15
|
| 'admin-line'
|
|
15
16
|
| 'arrow-down-fill'
|
|
16
|
-
| 'arrow-go-back'
|
|
17
|
-
| 'arrow-left-right'
|
|
18
|
-
| 'arrow-right'
|
|
17
|
+
| 'arrow-go-back-line'
|
|
18
|
+
| 'arrow-left-right-line'
|
|
19
|
+
| 'arrow-right-line'
|
|
19
20
|
| 'arrow-right-circle-line'
|
|
20
|
-
| 'arrow-right-double'
|
|
21
|
+
| 'arrow-right-double-line'
|
|
21
22
|
| 'arrow-right-fill'
|
|
22
23
|
| 'apps-2-line'
|
|
23
24
|
| 'asset-view'
|
|
@@ -26,100 +27,100 @@ export type WangsIcons =
|
|
|
26
27
|
| 'attachment-2'
|
|
27
28
|
| 'audit'
|
|
28
29
|
| 'bank-card-line'
|
|
29
|
-
| 'barcode'
|
|
30
|
+
| 'barcode-line'
|
|
30
31
|
| 'barricade-line'
|
|
31
32
|
| 'bell'
|
|
32
33
|
| 'bell-alert'
|
|
33
34
|
| 'borrow'
|
|
34
|
-
| 'building'
|
|
35
|
-
| 'building-2'
|
|
36
|
-
| 'building-4'
|
|
37
|
-
| 'calculator'
|
|
38
|
-
| 'calendar-event'
|
|
39
|
-
| 'calendar-todo'
|
|
40
|
-
| 'chat-check'
|
|
35
|
+
| 'building-line'
|
|
36
|
+
| 'building-2-line'
|
|
37
|
+
| 'building-4-line'
|
|
38
|
+
| 'calculator-line'
|
|
39
|
+
| 'calendar-event-line'
|
|
40
|
+
| 'calendar-todo-line'
|
|
41
|
+
| 'chat-check-line'
|
|
41
42
|
| 'change-tag'
|
|
42
43
|
| 'checkout'
|
|
43
44
|
| 'check-double-fill'
|
|
44
45
|
| 'checkbox-circle-fill'
|
|
45
|
-
| 'checkbox-blank-circle'
|
|
46
|
+
| 'checkbox-blank-circle-line'
|
|
46
47
|
| 'checkbox-blank-circle-fill'
|
|
47
|
-
| 'checkbox-multiple'
|
|
48
|
+
| 'checkbox-multiple-line'
|
|
48
49
|
| 'close-circle-fill'
|
|
49
50
|
| 'cloud-line'
|
|
50
|
-
| 'coins'
|
|
51
|
+
| 'coins-line'
|
|
51
52
|
| 'completion'
|
|
52
|
-
| 'dashboard'
|
|
53
|
-
| 'database'
|
|
54
|
-
| 'delete-bin-7'
|
|
55
|
-
| 'device'
|
|
53
|
+
| 'dashboard-line'
|
|
54
|
+
| 'database-line'
|
|
55
|
+
| 'delete-bin-7-line'
|
|
56
|
+
| 'device-line'
|
|
56
57
|
| 'disposal'
|
|
57
|
-
| 'dropbox'
|
|
58
|
+
| 'dropbox-line'
|
|
58
59
|
| 'dragable-menu'
|
|
59
60
|
| 'ellipsis-h'
|
|
60
61
|
| 'emotion-happy-fill'
|
|
61
62
|
| 'emotion-unhappy-fill'
|
|
62
63
|
| 'expired'
|
|
63
64
|
| 'extension-borrow'
|
|
64
|
-
| 'eye'
|
|
65
|
-
| '
|
|
66
|
-
| '
|
|
65
|
+
| 'eye-line'
|
|
66
|
+
| 'fullscreen-line'
|
|
67
|
+
| 'fullscreen-exit-line'
|
|
68
|
+
| 'flag-line'
|
|
69
|
+
| 'file-add-line'
|
|
67
70
|
| 'file-copy-2-line'
|
|
68
|
-
| 'file-history'
|
|
71
|
+
| 'file-history-line'
|
|
69
72
|
| 'file-history-fill'
|
|
70
73
|
| 'files'
|
|
71
74
|
| 'file-lines'
|
|
72
|
-
| 'file-list-3'
|
|
73
|
-
| 'file-list'
|
|
75
|
+
| 'file-list-3-line'
|
|
76
|
+
| 'file-list-line'
|
|
74
77
|
| 'file-shield-line'
|
|
75
|
-
| 'file-shield-2'
|
|
76
|
-
| 'file-
|
|
77
|
-
| 'file-user'
|
|
78
|
+
| 'file-shield-2-line'
|
|
79
|
+
| 'file-upload-line'
|
|
80
|
+
| 'file-user-line'
|
|
78
81
|
| 'filter-fill'
|
|
79
|
-
| 'filter'
|
|
82
|
+
| 'filter-line'
|
|
80
83
|
| 'fingerprint-line'
|
|
81
|
-
| 'folder'
|
|
82
84
|
| 'folder-add-line'
|
|
83
85
|
| 'gate'
|
|
84
86
|
| 'handheld'
|
|
85
87
|
| 'indeterminate-circle-fill'
|
|
86
88
|
| 'information-line'
|
|
87
|
-
| 'infrared-thermometer'
|
|
89
|
+
| 'infrared-thermometer-line'
|
|
88
90
|
| 'link'
|
|
89
|
-
| 'luggage-cart'
|
|
91
|
+
| 'luggage-cart-line'
|
|
90
92
|
| 'csv'
|
|
91
93
|
| 'xls'
|
|
92
94
|
| 'doc'
|
|
93
95
|
| 'data'
|
|
94
|
-
| 'line-chart'
|
|
96
|
+
| 'line-chart-line'
|
|
95
97
|
| 'link-unlink-m'
|
|
96
|
-
| 'list-settings'
|
|
97
98
|
| 'lock-line'
|
|
98
|
-
| 'logout-box-r'
|
|
99
|
-
| 'mail-open'
|
|
99
|
+
| 'logout-box-r-line'
|
|
100
|
+
| 'mail-open-line'
|
|
100
101
|
| 'magic-line'
|
|
101
|
-
| 'map-2'
|
|
102
|
-
| 'map-pin'
|
|
103
|
-
| 'menu'
|
|
104
|
-
| 'menu-unfold'
|
|
102
|
+
| 'map-2-line'
|
|
103
|
+
| 'map-pin-line'
|
|
104
|
+
| 'menu-line'
|
|
105
|
+
| 'menu-unfold-fill'
|
|
105
106
|
| 'mind-map'
|
|
106
107
|
| 'minus'
|
|
107
|
-
| 'money-cny-box'
|
|
108
|
-
| 'money-dollar-circle'
|
|
108
|
+
| 'money-cny-box-line'
|
|
109
|
+
| 'money-dollar-circle-line'
|
|
109
110
|
| 'move-to'
|
|
110
111
|
| 'nfc'
|
|
111
112
|
| 'node-tree'
|
|
112
113
|
| 'note'
|
|
113
|
-
| 'notification'
|
|
114
|
+
| 'notification-line'
|
|
114
115
|
| 'organization-chart'
|
|
115
116
|
| 'pdf'
|
|
116
117
|
| 'pair-tag'
|
|
117
|
-
| 'phone'
|
|
118
|
-
| 'printer-cloud'
|
|
119
|
-
| 'price-tag-3'
|
|
118
|
+
| 'phone-line'
|
|
119
|
+
| 'printer-cloud-line'
|
|
120
|
+
| 'price-tag-3-line'
|
|
120
121
|
| 'profile'
|
|
121
122
|
| 'qr'
|
|
122
|
-
| 'qr-scan'
|
|
123
|
+
| 'qr-scan-line'
|
|
123
124
|
| 'reception'
|
|
124
125
|
| 'recycle-bin'
|
|
125
126
|
| 'replace-tag'
|
|
@@ -132,33 +133,32 @@ export type WangsIcons =
|
|
|
132
133
|
| 'round-keyboard-double-arrow-right'
|
|
133
134
|
| 'search-line'
|
|
134
135
|
| 'send-plane-line'
|
|
135
|
-
| 'shopping-cart-2'
|
|
136
|
-
| 'smartphone'
|
|
136
|
+
| 'shopping-cart-2-line'
|
|
137
|
+
| 'smartphone-line'
|
|
137
138
|
| 'sort-asc'
|
|
138
139
|
| 'sort-desc'
|
|
139
140
|
| 'supplier-return'
|
|
140
141
|
| 'internal-return'
|
|
141
142
|
| 'spinner'
|
|
142
|
-
| 'stack'
|
|
143
|
-
| 'store'
|
|
144
|
-
| 'table'
|
|
145
|
-
| 'time'
|
|
146
|
-
| 'ticket'
|
|
147
|
-
| 'tools'
|
|
148
|
-
| '
|
|
143
|
+
| 'stack-line'
|
|
144
|
+
| 'store-line'
|
|
145
|
+
| 'table-line'
|
|
146
|
+
| 'time-line'
|
|
147
|
+
| 'ticket-line'
|
|
148
|
+
| 'tools-line'
|
|
149
|
+
| 'file-search-line'
|
|
149
150
|
| 'truck-line'
|
|
150
151
|
| 'unassign'
|
|
151
|
-
| 'upload-2'
|
|
152
|
-
| 'upload-cloud-2'
|
|
153
|
-
| 'user'
|
|
154
|
-
| 'user-add'
|
|
155
|
-
| 'user-follow'
|
|
152
|
+
| 'upload-2-line'
|
|
153
|
+
| 'upload-cloud-2-line'
|
|
154
|
+
| 'user-line'
|
|
155
|
+
| 'user-add-line'
|
|
156
|
+
| 'user-follow-line'
|
|
156
157
|
| 'user-received-2-line'
|
|
157
158
|
| 'user-shared-2-line'
|
|
158
|
-
| 'user-star'
|
|
159
|
-
| 'user-unfollow'
|
|
159
|
+
| 'user-star-line'
|
|
160
160
|
| 'verification'
|
|
161
|
-
| 'timer'
|
|
161
|
+
| 'timer-line'
|
|
162
162
|
| 'format-clear'
|
|
163
163
|
| 'code-line'
|
|
164
164
|
| 'link-m'
|
|
@@ -188,12 +188,13 @@ export type WangsIcons =
|
|
|
188
188
|
| 'add-line' // Preferred
|
|
189
189
|
| 'arrow-down-s-line' // Preferred
|
|
190
190
|
| 'arrow-drop-down-line' // Preferred
|
|
191
|
+
| 'folder-line' // Preferred
|
|
191
192
|
| 'arrow-left-double-line' // Preferred
|
|
192
193
|
| 'arrow-left-line' // Preferred
|
|
193
194
|
| 'arrow-up-down-line' // Preferred
|
|
194
195
|
| 'arrow-up-s-line' // Preferred
|
|
195
196
|
| 'calendar-line' // Preferred
|
|
196
|
-
| 'chat-1' // Preferred
|
|
197
|
+
| 'chat-1-line' // Preferred
|
|
197
198
|
| 'chat-3-line' // Preferred
|
|
198
199
|
| 'check-line' // Preferred
|
|
199
200
|
| 'checkbox-circle-line' // Preferred
|
|
@@ -201,6 +202,7 @@ export type WangsIcons =
|
|
|
201
202
|
| 'close-line' // Preferred
|
|
202
203
|
| 'delete-back-2-line' // Preferred
|
|
203
204
|
| 'delete-bin-6-line' // Preferred
|
|
205
|
+
| 'delete-bin-2-line' // Preferred
|
|
204
206
|
| 'download-2-line' // Preferred
|
|
205
207
|
| 'edit-2-line' // Preferred
|
|
206
208
|
| 'error-warning-fill' // Preferred
|
|
@@ -214,6 +216,7 @@ export type WangsIcons =
|
|
|
214
216
|
| 'file-list-2-line' // Preferred
|
|
215
217
|
| 'file-settings-line' // Preferred
|
|
216
218
|
| 'group-line' // Preferred
|
|
219
|
+
| 'global-line' // Preferred
|
|
217
220
|
| 'hand-coin-line' // Preferred
|
|
218
221
|
| 'history-line' // Preferred
|
|
219
222
|
| 'image-add-line' // Preferred
|
|
@@ -249,6 +252,16 @@ export interface IconProps {
|
|
|
249
252
|
tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
|
|
250
253
|
|
|
251
254
|
class?: any;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* When true, sets aria-hidden="true" on the icon element for decorative icons.
|
|
258
|
+
*/
|
|
259
|
+
ariaHidden?: boolean;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Defines the aria-label attribute for the icon when interactive.
|
|
263
|
+
*/
|
|
264
|
+
ariaLabel?: string;
|
|
252
265
|
}
|
|
253
266
|
|
|
254
267
|
/**
|