ywana-core8 0.0.867 → 0.0.869
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/dist/index.cjs +51 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +51 -17
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +51 -17
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +14 -2
- package/src/domain/ContentType.js +2 -0
- package/src/domain/ContentViewer.js +8 -0
- package/src/html/table.js +1 -1
- package/src/incubator/task.js +4 -4
package/dist/index.cjs
CHANGED
@@ -930,7 +930,7 @@ var Property = function Property(props) {
|
|
930
930
|
/**
|
931
931
|
* Radio Button
|
932
932
|
*/
|
933
|
-
var RadioButton = function RadioButton(props) {
|
933
|
+
var RadioButton$1 = function RadioButton(props) {
|
934
934
|
var id = props.id,
|
935
935
|
name = props.name,
|
936
936
|
label = props.label,
|
@@ -1085,7 +1085,9 @@ var FORMATS$1 = {
|
|
1085
1085
|
IMG: 'IMG',
|
1086
1086
|
COLOR: 'COLOR',
|
1087
1087
|
TOKENS: 'TOKENS',
|
1088
|
-
PASSWORD: 'PASSWORD'
|
1088
|
+
PASSWORD: 'PASSWORD',
|
1089
|
+
RADIO: 'RADIO',
|
1090
|
+
CHECKBOX: 'CHECKBOX'
|
1089
1091
|
};
|
1090
1092
|
|
1091
1093
|
/**
|
@@ -1773,7 +1775,8 @@ var DataTableFiltersRow = function DataTableFiltersRow(_ref4) {
|
|
1773
1775
|
className: "filter-cell"
|
1774
1776
|
}, filterable ? /*#__PURE__*/React__default["default"].createElement(TextField, {
|
1775
1777
|
id: id,
|
1776
|
-
onChange: onFilter
|
1778
|
+
onChange: onFilter,
|
1779
|
+
outlined: true
|
1777
1780
|
}) : null);
|
1778
1781
|
}));
|
1779
1782
|
};
|
@@ -4895,20 +4898,20 @@ var TaskMonitor = function TaskMonitor(props) {
|
|
4895
4898
|
var table = {
|
4896
4899
|
columns: [{
|
4897
4900
|
id: "state",
|
4898
|
-
label: "
|
4901
|
+
label: "State"
|
4899
4902
|
}, {
|
4900
4903
|
id: "init",
|
4901
|
-
label: "
|
4904
|
+
label: "Init Date",
|
4902
4905
|
type: TYPES$1.STRING,
|
4903
4906
|
format: FORMATS$1.DATE
|
4904
4907
|
}, {
|
4905
4908
|
id: "end",
|
4906
|
-
label: "
|
4909
|
+
label: "End Date",
|
4907
4910
|
type: TYPES$1.STRING,
|
4908
4911
|
format: FORMATS$1.DATE
|
4909
4912
|
}, {
|
4910
4913
|
id: "description",
|
4911
|
-
label: "
|
4914
|
+
label: "Description"
|
4912
4915
|
}, {
|
4913
4916
|
id: "progress",
|
4914
4917
|
label: "%"
|
@@ -5704,7 +5707,9 @@ var MultiSelectionEditor = function MultiSelectionEditor(_ref10) {
|
|
5704
5707
|
onChange = _ref10.onChange;
|
5705
5708
|
var id = field.id,
|
5706
5709
|
label = field.label,
|
5707
|
-
options = field.options
|
5710
|
+
options = field.options,
|
5711
|
+
_field$format = field.format,
|
5712
|
+
format = _field$format === void 0 ? FORMATS$1.CHECKBOX : _field$format;
|
5708
5713
|
function change(v) {
|
5709
5714
|
var index = value.indexOf(v);
|
5710
5715
|
if (index >= 0) {
|
@@ -5722,13 +5727,32 @@ var MultiSelectionEditor = function MultiSelectionEditor(_ref10) {
|
|
5722
5727
|
className: "multiselection-editor"
|
5723
5728
|
}, /*#__PURE__*/React__default["default"].createElement("label", null, label), buildOptions().map(function (option) {
|
5724
5729
|
var checked = value.includes(option.value);
|
5725
|
-
|
5726
|
-
|
5727
|
-
|
5728
|
-
|
5729
|
-
|
5730
|
-
|
5731
|
-
|
5730
|
+
switch (format) {
|
5731
|
+
case FORMATS$1.CHECKBOX:
|
5732
|
+
return /*#__PURE__*/React__default["default"].createElement(CheckBox, {
|
5733
|
+
value: checked,
|
5734
|
+
label: option.label,
|
5735
|
+
onChange: function onChange() {
|
5736
|
+
return change(option.value);
|
5737
|
+
}
|
5738
|
+
});
|
5739
|
+
case FORMATS$1.RADIO:
|
5740
|
+
return /*#__PURE__*/React__default["default"].createElement(RadioButton, {
|
5741
|
+
value: checked,
|
5742
|
+
label: option.label,
|
5743
|
+
onChange: function onChange() {
|
5744
|
+
return change(option.value);
|
5745
|
+
}
|
5746
|
+
});
|
5747
|
+
default:
|
5748
|
+
return /*#__PURE__*/React__default["default"].createElement(CheckBox, {
|
5749
|
+
value: checked,
|
5750
|
+
label: option.label,
|
5751
|
+
onChange: function onChange() {
|
5752
|
+
return change(option.value);
|
5753
|
+
}
|
5754
|
+
});
|
5755
|
+
}
|
5732
5756
|
}));
|
5733
5757
|
};
|
5734
5758
|
|
@@ -6139,7 +6163,8 @@ var BooleanViewer = function BooleanViewer(props) {
|
|
6139
6163
|
var StringViewer = function StringViewer(props) {
|
6140
6164
|
var field = props.field,
|
6141
6165
|
value = props.value;
|
6142
|
-
var
|
6166
|
+
var id = field.id,
|
6167
|
+
format = field.format,
|
6143
6168
|
label = field.label,
|
6144
6169
|
options = field.options;
|
6145
6170
|
switch (format) {
|
@@ -6149,6 +6174,15 @@ var StringViewer = function StringViewer(props) {
|
|
6149
6174
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
6150
6175
|
src: value
|
6151
6176
|
}));
|
6177
|
+
case FORMATS$1.TOKENS:
|
6178
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
6179
|
+
className: "tokens-field"
|
6180
|
+
}, /*#__PURE__*/React__default["default"].createElement(TokenField, {
|
6181
|
+
id: id,
|
6182
|
+
label: label,
|
6183
|
+
tokens: value,
|
6184
|
+
readOnly: true
|
6185
|
+
}));
|
6152
6186
|
default:
|
6153
6187
|
return /*#__PURE__*/React__default["default"].createElement(Property, {
|
6154
6188
|
label: label,
|
@@ -10918,7 +10952,7 @@ exports.PasswordEditor = PasswordEditor;
|
|
10918
10952
|
exports.PasswordField = PasswordField;
|
10919
10953
|
exports.Planner = Planner;
|
10920
10954
|
exports.Property = Property;
|
10921
|
-
exports.RadioButton = RadioButton;
|
10955
|
+
exports.RadioButton = RadioButton$1;
|
10922
10956
|
exports.ResetPasswordBox = ResetPasswordBox;
|
10923
10957
|
exports.Section = Section;
|
10924
10958
|
exports.Session = Session;
|