stentor-models 1.60.35 → 1.60.38
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/lib/Form/FormField.d.ts +18 -1
- package/package.json +2 -2
package/lib/Form/FormField.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ export interface FormChipsInput extends FormInput {
|
|
|
120
120
|
defaultOpen?: boolean;
|
|
121
121
|
minRequired?: number;
|
|
122
122
|
maxAllowed?: number;
|
|
123
|
-
items: SelectableItem[];
|
|
123
|
+
items: (SelectableItem | ActionableItem)[];
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Like chips but with checkboxes
|
|
@@ -201,6 +201,23 @@ export interface FormDateRangeInput extends FormInput {
|
|
|
201
201
|
to?: Date;
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Ability to click on the item and perform an action.
|
|
206
|
+
*/
|
|
207
|
+
export interface ActionableItem {
|
|
208
|
+
/**
|
|
209
|
+
* Label to display
|
|
210
|
+
*/
|
|
211
|
+
label: string;
|
|
212
|
+
/**
|
|
213
|
+
* ID of the item. This is what is sent to the server and should be a form of the label that is human readable.
|
|
214
|
+
*/
|
|
215
|
+
id: string;
|
|
216
|
+
/**
|
|
217
|
+
* Url
|
|
218
|
+
*/
|
|
219
|
+
url: string;
|
|
220
|
+
}
|
|
204
221
|
/**
|
|
205
222
|
* Basically a name value pair for dropdowns or chips
|
|
206
223
|
*/
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.60.
|
|
7
|
+
"version": "1.60.38",
|
|
8
8
|
"description": "Models for 📣 stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@xapp/patterns": "2.0.2"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "3243d8ce6ca58d1a9f9174f480bc02a43c5a81ae"
|
|
37
37
|
}
|