@jupyterlab/ui-components 4.0.0-alpha.32 → 4.0.0-alpha.34
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 +4 -4
- package/lib/FormRendererRegistry.d.ts +29 -0
- package/lib/FormRendererRegistry.js +51 -0
- package/lib/FormRendererRegistry.js.map +1 -0
- package/lib/components/form.d.ts +122 -0
- package/lib/components/form.js +279 -0
- package/lib/components/form.js.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/menu.js +1 -1
- package/lib/components/menu.js.map +1 -1
- package/lib/components/toolbar.d.ts +3 -3
- package/lib/components/toolbar.js +6 -3
- package/lib/components/toolbar.js.map +1 -1
- package/lib/components/vdom.d.ts +6 -4
- package/lib/components/vdom.js +27 -10
- package/lib/components/vdom.js.map +1 -1
- package/lib/components/windowedlist.d.ts +1 -1
- package/lib/hoverbox.d.ts +8 -0
- package/lib/hoverbox.js +39 -22
- package/lib/hoverbox.js.map +1 -1
- package/lib/icon/iconimports.d.ts +1 -0
- package/lib/icon/iconimports.js +2 -0
- package/lib/icon/iconimports.js.map +1 -1
- package/lib/icon/labicon.js +14 -3
- package/lib/icon/labicon.js.map +1 -1
- package/lib/index.d.ts +1 -3
- package/lib/index.js +1 -3
- package/lib/index.js.map +1 -1
- package/lib/style/icon.js +0 -29
- package/lib/style/icon.js.map +1 -1
- package/lib/tokens.d.ts +45 -0
- package/lib/tokens.js +4 -0
- package/lib/tokens.js.map +1 -1
- package/package.json +22 -21
- package/style/deprecated.css +5 -0
- package/style/hoverbox.css +0 -4
- package/style/icons/search/word.svg +10 -0
- package/style/icons.css +6 -3
- package/style/rjsfTemplates.css +1 -5
- package/lib/FormComponentRegistry.d.ts +0 -56
- package/lib/FormComponentRegistry.js +0 -44
- package/lib/FormComponentRegistry.js.map +0 -1
- package/lib/FormWidgetRegistry.d.ts +0 -59
- package/lib/FormWidgetRegistry.js +0 -47
- package/lib/FormWidgetRegistry.js.map +0 -1
- package/lib/rjsfTemplates.d.ts +0 -197
- package/lib/rjsfTemplates.js +0 -269
- package/lib/rjsfTemplates.js.map +0 -1
package/lib/rjsfTemplates.d.ts
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArrayFieldTemplateProps, FieldTemplateProps, ObjectFieldTemplateProps } from '@rjsf/core';
|
|
3
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
4
|
-
/**
|
|
5
|
-
* React JSON schema form templates namespace.
|
|
6
|
-
*/
|
|
7
|
-
export declare namespace RJSFTemplates {
|
|
8
|
-
/**
|
|
9
|
-
* Properties for React JSON schema form's templates factory.
|
|
10
|
-
*/
|
|
11
|
-
interface IProps {
|
|
12
|
-
/**
|
|
13
|
-
* Whether the form is compact or not.
|
|
14
|
-
* Currently the compact mode is used for metadata-form,
|
|
15
|
-
* and the normal mode for settings-editor.
|
|
16
|
-
*/
|
|
17
|
-
compact?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Whether to display if the current value is not the default one.
|
|
20
|
-
*/
|
|
21
|
-
showModifiedFromDefault?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Translator for button text.
|
|
24
|
-
*/
|
|
25
|
-
translator?: ITranslator;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Properties for React JSON schema form's field template.
|
|
29
|
-
*/
|
|
30
|
-
interface IFieldProps {
|
|
31
|
-
/**
|
|
32
|
-
* Whether to display if the current value is not the default one.
|
|
33
|
-
*/
|
|
34
|
-
showModifiedFromDefault?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Translator for button text.
|
|
37
|
-
*/
|
|
38
|
-
translator?: ITranslator;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the field is in compact mode or not.
|
|
41
|
-
* In compact mode :
|
|
42
|
-
* - the title and description are displayed together
|
|
43
|
-
* - the input field is 100% wide (supposed to be in a tight container)
|
|
44
|
-
*/
|
|
45
|
-
compact?: boolean;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Properties for React JSON schema form's container template (array and object).
|
|
49
|
-
*/
|
|
50
|
-
interface IContainerProps {
|
|
51
|
-
/**
|
|
52
|
-
* Translator for button text.
|
|
53
|
-
*/
|
|
54
|
-
translator?: ITranslator;
|
|
55
|
-
/**
|
|
56
|
-
* Array operation button style.
|
|
57
|
-
*/
|
|
58
|
-
buttonStyle?: 'icons' | 'text';
|
|
59
|
-
/**
|
|
60
|
-
* Whether the container is in compact mode or not.
|
|
61
|
-
* In compact mode the title and description are displayed more compactness.
|
|
62
|
-
*/
|
|
63
|
-
compact?: boolean;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Properties of the button to move an item.
|
|
67
|
-
*/
|
|
68
|
-
interface IMoveButtonProps {
|
|
69
|
-
/**
|
|
70
|
-
* Item index to move with this button.
|
|
71
|
-
*/
|
|
72
|
-
item: ArrayFieldTemplateProps['items'][number];
|
|
73
|
-
/**
|
|
74
|
-
* Direction in which to move the item.
|
|
75
|
-
*/
|
|
76
|
-
direction: 'up' | 'down';
|
|
77
|
-
/**
|
|
78
|
-
* Button style.
|
|
79
|
-
*/
|
|
80
|
-
buttonStyle?: 'icons' | 'text';
|
|
81
|
-
/**
|
|
82
|
-
* Translator for button text.
|
|
83
|
-
*/
|
|
84
|
-
translator?: ITranslator;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Properties of the button to drop an item.
|
|
88
|
-
*/
|
|
89
|
-
interface IDropButtonProps {
|
|
90
|
-
/**
|
|
91
|
-
* Item index to drop with this button.
|
|
92
|
-
*/
|
|
93
|
-
item: ArrayFieldTemplateProps['items'][number];
|
|
94
|
-
/**
|
|
95
|
-
* Button style.
|
|
96
|
-
*/
|
|
97
|
-
buttonStyle?: 'icons' | 'text';
|
|
98
|
-
/**
|
|
99
|
-
* Translator for button text.
|
|
100
|
-
*/
|
|
101
|
-
translator?: ITranslator;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Properties of the button to add an item.
|
|
105
|
-
*/
|
|
106
|
-
interface IAddButtonProps {
|
|
107
|
-
/**
|
|
108
|
-
* Function to call to add an item.
|
|
109
|
-
*/
|
|
110
|
-
onAddClick: ArrayFieldTemplateProps['onAddClick'];
|
|
111
|
-
/**
|
|
112
|
-
* Button style.
|
|
113
|
-
*/
|
|
114
|
-
buttonStyle?: 'icons' | 'text';
|
|
115
|
-
/**
|
|
116
|
-
* Translator for button text.
|
|
117
|
-
*/
|
|
118
|
-
translator?: ITranslator;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Button to move an item.
|
|
123
|
-
*
|
|
124
|
-
* @returns - the button as a react element.
|
|
125
|
-
*/
|
|
126
|
-
export declare const MoveButton: (props: RJSFTemplates.IMoveButtonProps) => JSX.Element;
|
|
127
|
-
/**
|
|
128
|
-
* Button to drop an item.
|
|
129
|
-
*
|
|
130
|
-
* @returns - the button as a react element.
|
|
131
|
-
*/
|
|
132
|
-
export declare const DropButton: (props: RJSFTemplates.IDropButtonProps) => JSX.Element;
|
|
133
|
-
/**
|
|
134
|
-
* Button to add an item.
|
|
135
|
-
*
|
|
136
|
-
* @returns - the button as a react element.
|
|
137
|
-
*/
|
|
138
|
-
export declare const AddButton: (props: RJSFTemplates.IAddButtonProps) => JSX.Element;
|
|
139
|
-
/**
|
|
140
|
-
* React JSON schema form's array template.
|
|
141
|
-
*/
|
|
142
|
-
export declare class RJSFArrayTemplate {
|
|
143
|
-
/**
|
|
144
|
-
* Create a new array template object.
|
|
145
|
-
*
|
|
146
|
-
* @param options - the container template options.
|
|
147
|
-
*/
|
|
148
|
-
constructor(options?: RJSFTemplates.IContainerProps);
|
|
149
|
-
get template(): React.FC<ArrayFieldTemplateProps>;
|
|
150
|
-
private _translator;
|
|
151
|
-
private _buttonStyle;
|
|
152
|
-
private _compact;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* React JSON schema form's object template.
|
|
156
|
-
*/
|
|
157
|
-
export declare class RJSFObjectTemplate {
|
|
158
|
-
/**
|
|
159
|
-
* Create a new object template object.
|
|
160
|
-
*
|
|
161
|
-
* @param options - the container template options.
|
|
162
|
-
*/
|
|
163
|
-
constructor(options?: RJSFTemplates.IContainerProps);
|
|
164
|
-
get template(): React.FC<ObjectFieldTemplateProps>;
|
|
165
|
-
private _translator;
|
|
166
|
-
private _buttonStyle;
|
|
167
|
-
private _compact;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Custom field template for React JSON-schema form.
|
|
171
|
-
*
|
|
172
|
-
*/
|
|
173
|
-
export declare class RJSFFieldTemplate {
|
|
174
|
-
/**
|
|
175
|
-
* Create a new field template object.
|
|
176
|
-
*
|
|
177
|
-
* @param options - the field template options.
|
|
178
|
-
*/
|
|
179
|
-
constructor(options?: RJSFTemplates.IFieldProps);
|
|
180
|
-
get template(): React.FC<FieldTemplateProps>;
|
|
181
|
-
private _showModifiedFromDefault;
|
|
182
|
-
private _translator;
|
|
183
|
-
private _compact;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* A templates factory for react JSON schema form.
|
|
187
|
-
* It includes a field template, an array template and an object template.
|
|
188
|
-
*/
|
|
189
|
-
export declare class RJSFTemplatesFactory {
|
|
190
|
-
constructor(options: RJSFTemplates.IProps);
|
|
191
|
-
get fieldTemplate(): React.FC<FieldTemplateProps>;
|
|
192
|
-
get arrayTemplate(): React.FC<ArrayFieldTemplateProps>;
|
|
193
|
-
get objectTemplate(): React.FC<ObjectFieldTemplateProps>;
|
|
194
|
-
private _fieldTemplate;
|
|
195
|
-
private _arrayTemplate;
|
|
196
|
-
private _objectTemplate;
|
|
197
|
-
}
|
package/lib/rjsfTemplates.js
DELETED
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Jupyter Development Team.
|
|
3
|
-
* Distributed under the terms of the Modified BSD License.
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { utils } from '@rjsf/core';
|
|
7
|
-
import { addIcon, caretDownIcon, caretUpIcon, closeIcon, LabIcon } from './icon';
|
|
8
|
-
import { JSONExt } from '@lumino/coreutils';
|
|
9
|
-
import { reduce } from '@lumino/algorithm';
|
|
10
|
-
/**
|
|
11
|
-
* Button to move an item.
|
|
12
|
-
*
|
|
13
|
-
* @returns - the button as a react element.
|
|
14
|
-
*/
|
|
15
|
-
export const MoveButton = (props) => {
|
|
16
|
-
var _a;
|
|
17
|
-
const trans = (_a = props.translator) === null || _a === void 0 ? void 0 : _a.load('jupyterlab');
|
|
18
|
-
let buttonContent;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the button is disabled or not.
|
|
21
|
-
*/
|
|
22
|
-
const disabled = () => {
|
|
23
|
-
if (props.direction === 'up') {
|
|
24
|
-
return !props.item.hasMoveUp;
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
return !props.item.hasMoveDown;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
if (props.buttonStyle === 'icons') {
|
|
31
|
-
buttonContent = (React.createElement(LabIcon.resolveReact, { icon: props.direction === 'up' ? caretUpIcon : caretDownIcon, tag: "span", elementSize: "xlarge", elementPosition: "center" }));
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
buttonContent =
|
|
35
|
-
props.direction === 'up'
|
|
36
|
-
? (trans === null || trans === void 0 ? void 0 : trans.__('Move up')) || 'Move up'
|
|
37
|
-
: (trans === null || trans === void 0 ? void 0 : trans.__('Move down')) || 'Move down';
|
|
38
|
-
}
|
|
39
|
-
const moveTo = props.direction === 'up' ? props.item.index - 1 : props.item.index + 1;
|
|
40
|
-
const button = (React.createElement("button", { className: "jp-mod-styled jp-mod-reject jp-ArrayOperationsButton", onClick: props.item.onReorderClick(props.item.index, moveTo), disabled: disabled() }, buttonContent));
|
|
41
|
-
return button;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Button to drop an item.
|
|
45
|
-
*
|
|
46
|
-
* @returns - the button as a react element.
|
|
47
|
-
*/
|
|
48
|
-
export const DropButton = (props) => {
|
|
49
|
-
var _a;
|
|
50
|
-
const trans = (_a = props.translator) === null || _a === void 0 ? void 0 : _a.load('jupyterlab');
|
|
51
|
-
let buttonContent;
|
|
52
|
-
if (props.buttonStyle === 'icons') {
|
|
53
|
-
buttonContent = (React.createElement(LabIcon.resolveReact, { icon: closeIcon, tag: "span", elementSize: "xlarge", elementPosition: "center" }));
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
buttonContent = (trans === null || trans === void 0 ? void 0 : trans.__('Remove')) || 'Remove';
|
|
57
|
-
}
|
|
58
|
-
const button = (React.createElement("button", { className: "jp-mod-styled jp-mod-warn jp-ArrayOperationsButton", onClick: props.item.onDropIndexClick(props.item.index) }, buttonContent));
|
|
59
|
-
return button;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Button to add an item.
|
|
63
|
-
*
|
|
64
|
-
* @returns - the button as a react element.
|
|
65
|
-
*/
|
|
66
|
-
export const AddButton = (props) => {
|
|
67
|
-
var _a;
|
|
68
|
-
const trans = (_a = props.translator) === null || _a === void 0 ? void 0 : _a.load('jupyterlab');
|
|
69
|
-
let buttonContent;
|
|
70
|
-
if (props.buttonStyle === 'icons') {
|
|
71
|
-
buttonContent = (React.createElement(LabIcon.resolveReact, { icon: addIcon, tag: "span", elementSize: "xlarge", elementPosition: "center" }));
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
buttonContent = (trans === null || trans === void 0 ? void 0 : trans.__('Add')) || 'Add';
|
|
75
|
-
}
|
|
76
|
-
const button = (React.createElement("button", { className: "jp-mod-styled jp-mod-reject jp-ArrayOperationsButton", onClick: props.onAddClick }, buttonContent));
|
|
77
|
-
return button;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* React JSON schema form's array template.
|
|
81
|
-
*/
|
|
82
|
-
export class RJSFArrayTemplate {
|
|
83
|
-
/**
|
|
84
|
-
* Create a new array template object.
|
|
85
|
-
*
|
|
86
|
-
* @param options - the container template options.
|
|
87
|
-
*/
|
|
88
|
-
constructor(options = {}) {
|
|
89
|
-
this._translator = options.translator;
|
|
90
|
-
this._buttonStyle = options.buttonStyle || 'text';
|
|
91
|
-
this._compact = options.compact || false;
|
|
92
|
-
}
|
|
93
|
-
get template() {
|
|
94
|
-
const factory = (props) => {
|
|
95
|
-
var _a;
|
|
96
|
-
return (React.createElement("div", { className: props.className },
|
|
97
|
-
this._compact ? (React.createElement("div", { className: "jp-FormGroup-compactTitle" },
|
|
98
|
-
React.createElement("div", { className: "jp-FormGroup-fieldLabel jp-FormGroup-contentItem", id: `${props.idSchema.$id}__title` }, props.title || ''),
|
|
99
|
-
React.createElement("div", { className: "jp-FormGroup-description", id: `${props.idSchema.$id}-description` }, props.schema.description || ''))) : (React.createElement(React.Fragment, null,
|
|
100
|
-
props.title && (React.createElement(props.TitleField, { title: props.title, required: props.required, id: `${props.idSchema.$id}-title` })),
|
|
101
|
-
React.createElement(props.DescriptionField, { id: `${props.idSchema.$id}-description`, description: (_a = props.schema.description) !== null && _a !== void 0 ? _a : '' }))),
|
|
102
|
-
props.items.map(item => {
|
|
103
|
-
return (React.createElement("div", { key: item.key, className: item.className },
|
|
104
|
-
item.children,
|
|
105
|
-
React.createElement("div", { className: "jp-ArrayOperations" },
|
|
106
|
-
React.createElement(MoveButton, { buttonStyle: this._buttonStyle, translator: this._translator, item: item, direction: "up" }),
|
|
107
|
-
React.createElement(MoveButton, { buttonStyle: this._buttonStyle, translator: this._translator, item: item, direction: "down" }),
|
|
108
|
-
React.createElement(DropButton, { buttonStyle: this._buttonStyle, translator: this._translator, item: item }))));
|
|
109
|
-
}),
|
|
110
|
-
props.canAdd && (React.createElement(AddButton, { onAddClick: props.onAddClick, buttonStyle: this._buttonStyle, translator: this._translator }))));
|
|
111
|
-
};
|
|
112
|
-
factory.displayName = 'JupyterLabArrayTemplate';
|
|
113
|
-
return factory;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* React JSON schema form's object template.
|
|
118
|
-
*/
|
|
119
|
-
export class RJSFObjectTemplate {
|
|
120
|
-
/**
|
|
121
|
-
* Create a new object template object.
|
|
122
|
-
*
|
|
123
|
-
* @param options - the container template options.
|
|
124
|
-
*/
|
|
125
|
-
constructor(options = {}) {
|
|
126
|
-
this._translator = options.translator;
|
|
127
|
-
this._buttonStyle = options.buttonStyle || 'text';
|
|
128
|
-
this._compact = options.compact || false;
|
|
129
|
-
}
|
|
130
|
-
get template() {
|
|
131
|
-
const factory = (props) => {
|
|
132
|
-
var _a;
|
|
133
|
-
return (React.createElement("fieldset", { id: props.idSchema.$id },
|
|
134
|
-
this._compact ? (React.createElement("div", { className: "jp-FormGroup-compactTitle" },
|
|
135
|
-
React.createElement("div", { className: "jp-FormGroup-fieldLabel jp-FormGroup-contentItem", id: `${props.idSchema.$id}__title` }, props.title || ''),
|
|
136
|
-
React.createElement("div", { className: "jp-FormGroup-description", id: `${props.idSchema.$id}__description` }, props.schema.description || ''))) : (React.createElement(React.Fragment, null,
|
|
137
|
-
(props.title || props.uiSchema['ui:title']) && (React.createElement(props.TitleField, { id: `${props.idSchema.$id}__title`, title: props.title || props.uiSchema['ui:title'] || '', required: props.required })),
|
|
138
|
-
React.createElement(props.DescriptionField, { id: `${props.idSchema.$id}__description`, description: (_a = props.schema.description) !== null && _a !== void 0 ? _a : '' }))),
|
|
139
|
-
props.properties.map(property => property.content),
|
|
140
|
-
utils.canExpand(props.schema, props.uiSchema, props.formData) && (React.createElement(AddButton, { onAddClick: props.onAddClick(props.schema), buttonStyle: this._buttonStyle, translator: this._translator }))));
|
|
141
|
-
};
|
|
142
|
-
factory.displayName = 'JupyterLabObjectTemplate';
|
|
143
|
-
return factory;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Custom field template for React JSON-schema form.
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
|
-
export class RJSFFieldTemplate {
|
|
151
|
-
/**
|
|
152
|
-
* Create a new field template object.
|
|
153
|
-
*
|
|
154
|
-
* @param options - the field template options.
|
|
155
|
-
*/
|
|
156
|
-
constructor(options = {}) {
|
|
157
|
-
var _a, _b;
|
|
158
|
-
this._showModifiedFromDefault = (_a = options.showModifiedFromDefault) !== null && _a !== void 0 ? _a : false;
|
|
159
|
-
this._translator = options.translator;
|
|
160
|
-
this._compact = (_b = options.compact) !== null && _b !== void 0 ? _b : false;
|
|
161
|
-
}
|
|
162
|
-
get template() {
|
|
163
|
-
const factory = (props) => {
|
|
164
|
-
var _a, _b, _c;
|
|
165
|
-
const trans = (_a = this._translator) === null || _a === void 0 ? void 0 : _a.load('jupyterlab');
|
|
166
|
-
let isModified = false;
|
|
167
|
-
const { formData, schema, label, displayLabel, id, formContext, errors, rawErrors, children, onKeyChange, onDropPropertyClick } = props;
|
|
168
|
-
const schemaIds = id.split('_');
|
|
169
|
-
schemaIds.shift();
|
|
170
|
-
const schemaId = schemaIds.join('.');
|
|
171
|
-
if (this._showModifiedFromDefault) {
|
|
172
|
-
/**
|
|
173
|
-
* Determine if the field has been modified.
|
|
174
|
-
* Schema Id is formatted as 'root_<field name>.<nexted field name>'
|
|
175
|
-
* This logic parses out the field name to find the default value
|
|
176
|
-
* before determining if the field has been modified.
|
|
177
|
-
*/
|
|
178
|
-
let defaultValue;
|
|
179
|
-
if (schemaIds.length === 1) {
|
|
180
|
-
defaultValue = formContext.settings.default(schemaId);
|
|
181
|
-
}
|
|
182
|
-
else if (schemaIds.length > 1) {
|
|
183
|
-
const allDefaultsForObject = {};
|
|
184
|
-
allDefaultsForObject[schemaIds[0]] = formContext.settings.default(schemaIds[0]);
|
|
185
|
-
defaultValue = reduce(schemaIds, (acc, val, i) => {
|
|
186
|
-
return acc === null || acc === void 0 ? void 0 : acc[val];
|
|
187
|
-
}, allDefaultsForObject);
|
|
188
|
-
}
|
|
189
|
-
isModified =
|
|
190
|
-
schemaId !== '' &&
|
|
191
|
-
formData !== undefined &&
|
|
192
|
-
defaultValue !== undefined &&
|
|
193
|
-
!schema.properties &&
|
|
194
|
-
schema.type !== 'array' &&
|
|
195
|
-
!JSONExt.deepEqual(formData, defaultValue);
|
|
196
|
-
}
|
|
197
|
-
const isRoot = schemaId === '';
|
|
198
|
-
const needsDescription = !isRoot &&
|
|
199
|
-
schema.type != 'object' &&
|
|
200
|
-
id !=
|
|
201
|
-
'jp-SettingsEditor-@jupyterlab/shortcuts-extension:shortcuts_shortcuts';
|
|
202
|
-
// While we can implement "remove" button for array items in array template,
|
|
203
|
-
// object templates do not provide a way to do this; instead we need to add
|
|
204
|
-
// buttons here (and first check if the field can be removed = is additional).
|
|
205
|
-
const isAdditional = schema.hasOwnProperty(utils.ADDITIONAL_PROPERTY_FLAG);
|
|
206
|
-
const isItem = !(schema.type === 'object' || schema.type === 'array');
|
|
207
|
-
return (React.createElement("div", { className: `form-group ${displayLabel || schema.type === 'boolean' ? 'small-field' : ''}` },
|
|
208
|
-
// Only show the modified indicator if there are no errors
|
|
209
|
-
isModified && !rawErrors && React.createElement("div", { className: "jp-modifiedIndicator" }),
|
|
210
|
-
// Shows a red indicator for fields that have validation errors
|
|
211
|
-
rawErrors && (React.createElement("div", { className: "jp-modifiedIndicator jp-errorIndicator" })),
|
|
212
|
-
React.createElement("div", { className: `jp-FormGroup-content ${this._compact
|
|
213
|
-
? 'jp-FormGroup-contentCompact'
|
|
214
|
-
: 'jp-FormGroup-contentNormal'}` },
|
|
215
|
-
isItem && displayLabel && !isRoot && label && !isAdditional ? (this._compact ? (React.createElement("div", { className: "jp-FormGroup-compactTitle" },
|
|
216
|
-
React.createElement("div", { className: "jp-FormGroup-fieldLabel jp-FormGroup-contentItem" }, label),
|
|
217
|
-
isItem && schema.description && needsDescription && (React.createElement("div", { className: "jp-FormGroup-description" }, schema.description)))) : (React.createElement("h3", { className: "jp-FormGroup-fieldLabel jp-FormGroup-contentItem" }, label))) : (React.createElement(React.Fragment, null)),
|
|
218
|
-
isAdditional && (React.createElement("input", { className: "jp-FormGroup-contentItem jp-mod-styled", type: "text", onBlur: event => onKeyChange(event.target.value), defaultValue: label })),
|
|
219
|
-
React.createElement("div", { className: `${isRoot
|
|
220
|
-
? 'jp-root'
|
|
221
|
-
: schema.type === 'object'
|
|
222
|
-
? 'jp-objectFieldWrapper'
|
|
223
|
-
: schema.type === 'array'
|
|
224
|
-
? 'jp-arrayFieldWrapper'
|
|
225
|
-
: 'jp-inputFieldWrapper jp-FormGroup-contentItem'}` }, children),
|
|
226
|
-
isAdditional && (React.createElement("button", { className: "jp-FormGroup-contentItem jp-mod-styled jp-mod-warn jp-FormGroup-removeButton", onClick: onDropPropertyClick(label) }, (trans === null || trans === void 0 ? void 0 : trans.__('Remove')) || 'Remove')),
|
|
227
|
-
!this._compact && schema.description && needsDescription && (React.createElement("div", { className: "jp-FormGroup-description" }, schema.description)),
|
|
228
|
-
isModified && schema.default !== undefined && (React.createElement("div", { className: "jp-FormGroup-default" }, (trans === null || trans === void 0 ? void 0 : trans.__('Default: %1', (_b = schema.default) === null || _b === void 0 ? void 0 : _b.toLocaleString())) ||
|
|
229
|
-
`Default: ${(_c = schema.default) === null || _c === void 0 ? void 0 : _c.toLocaleString()}`)),
|
|
230
|
-
React.createElement("div", { className: "validationErrors" }, errors))));
|
|
231
|
-
};
|
|
232
|
-
factory.displayName = 'JupyterLabFieldTemplate';
|
|
233
|
-
return factory;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* A templates factory for react JSON schema form.
|
|
238
|
-
* It includes a field template, an array template and an object template.
|
|
239
|
-
*/
|
|
240
|
-
export class RJSFTemplatesFactory {
|
|
241
|
-
constructor(options) {
|
|
242
|
-
var _a, _b, _c, _d;
|
|
243
|
-
this._fieldTemplate = new RJSFFieldTemplate({
|
|
244
|
-
showModifiedFromDefault: (_a = options.showModifiedFromDefault) !== null && _a !== void 0 ? _a : false,
|
|
245
|
-
compact: (_b = options.compact) !== null && _b !== void 0 ? _b : false,
|
|
246
|
-
translator: options.translator
|
|
247
|
-
});
|
|
248
|
-
this._arrayTemplate = new RJSFArrayTemplate({
|
|
249
|
-
compact: (_c = options.compact) !== null && _c !== void 0 ? _c : false,
|
|
250
|
-
buttonStyle: options.compact ? 'icons' : 'text',
|
|
251
|
-
translator: options.translator
|
|
252
|
-
});
|
|
253
|
-
this._objectTemplate = new RJSFObjectTemplate({
|
|
254
|
-
compact: (_d = options.compact) !== null && _d !== void 0 ? _d : false,
|
|
255
|
-
buttonStyle: options.compact ? 'icons' : 'text',
|
|
256
|
-
translator: options.translator
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
get fieldTemplate() {
|
|
260
|
-
return this._fieldTemplate.template;
|
|
261
|
-
}
|
|
262
|
-
get arrayTemplate() {
|
|
263
|
-
return this._arrayTemplate.template;
|
|
264
|
-
}
|
|
265
|
-
get objectTemplate() {
|
|
266
|
-
return this._objectTemplate.template;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
//# sourceMappingURL=rjsfTemplates.js.map
|
package/lib/rjsfTemplates.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rjsfTemplates.js","sourceRoot":"","sources":["../src/rjsfTemplates.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,EACN,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,OAAO,EACP,aAAa,EACb,WAAW,EACX,SAAS,EACT,OAAO,EACR,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA6H3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,KAAqC,EACxB,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