ywana-core8 0.0.914 → 0.0.916

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.
@@ -3018,7 +3018,7 @@ var Viewer = function Viewer(_ref) {
3018
3018
  */
3019
3019
  var Kanban = function Kanban(_ref) {
3020
3020
  var children = _ref.children;
3021
- useMemo(function () {
3021
+ var hasSwimlanes = useMemo(function () {
3022
3022
  var found = React.Children.map(children, function (child) {
3023
3023
  if (child.type.name === KanbanSwimlane.name) {
3024
3024
  return child;
@@ -3026,8 +3026,9 @@ var Kanban = function Kanban(_ref) {
3026
3026
  });
3027
3027
  return found.length > 0;
3028
3028
  });
3029
+ var style = hasSwimlanes ? "with-swimlanes" : "";
3029
3030
  return /*#__PURE__*/React.createElement("div", {
3030
- className: "kanban with-swimlanes"
3031
+ className: "kanban " + style
3031
3032
  }, children);
3032
3033
  };
3033
3034
  var KanbanHeader = function KanbanHeader(props) {
@@ -11152,8 +11153,6 @@ var CollectionContextProvider = function CollectionContextProvider(props) {
11152
11153
  var FORMATS = {
11153
11154
  NONE: '',
11154
11155
  TEXT: 'text',
11155
- NUMBER: 'number',
11156
- BOOLEAN: 'boolean',
11157
11156
  DATE: 'date',
11158
11157
  DATERANGE: 'DATERANGE',
11159
11158
  TIME: 'time',
@@ -11227,22 +11226,6 @@ var DynamicFormField = function DynamicFormField(props) {
11227
11226
  function renderByFormat() {
11228
11227
  var label = required ? field.label + " *" : field.label;
11229
11228
  switch (format) {
11230
- case FORMATS.NUMBER:
11231
- return /*#__PURE__*/React.createElement(TextField, {
11232
- id: id,
11233
- label: label,
11234
- type: "number",
11235
- value: value,
11236
- onChange: change,
11237
- outlined: true
11238
- });
11239
- case FORMATS.BOOLEAN:
11240
- return /*#__PURE__*/React.createElement(CheckBox, {
11241
- id: id,
11242
- label: label,
11243
- value: value,
11244
- onChange: change
11245
- });
11246
11229
  case FORMATS.TEXT:
11247
11230
  return /*#__PURE__*/React.createElement(TextArea, {
11248
11231
  id: id,