amis 1.5.6 → 1.5.7

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.
Files changed (44) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/renderers/CRUD.js +1 -2
  3. package/lib/renderers/CRUD.js.map +2 -2
  4. package/lib/renderers/Form/index.js +2 -1
  5. package/lib/renderers/Form/index.js.map +2 -2
  6. package/lib/renderers/Nav.js +4 -1
  7. package/lib/renderers/Nav.js.map +2 -2
  8. package/lib/renderers/Table/TableRow.js +4 -1
  9. package/lib/renderers/Table/TableRow.js.map +2 -2
  10. package/lib/store/formItem.js +6 -6
  11. package/lib/store/formItem.js.map +2 -2
  12. package/lib/store/table.js +1 -1
  13. package/lib/store/table.js.map +2 -2
  14. package/lib/themes/cxd-ie11.css +1 -1
  15. package/lib/themes/cxd.css +1 -1
  16. package/lib/themes/cxd.css.map +1 -1
  17. package/lib/themes/default.css +1 -1
  18. package/lib/themes/default.css.map +1 -1
  19. package/package.json +2 -2
  20. package/scss/themes/_cxd-variables.scss +1 -1
  21. package/sdk/charts.js +13 -13
  22. package/sdk/codemirror.js +7 -7
  23. package/sdk/color-picker.js +65 -65
  24. package/sdk/cropperjs.js +2 -2
  25. package/sdk/cxd-ie11.css +1 -1
  26. package/sdk/cxd.css +1 -1
  27. package/sdk/exceljs.js +1 -1
  28. package/sdk/markdown.js +69 -69
  29. package/sdk/papaparse.js +1 -1
  30. package/sdk/renderers/Form/CityDB.js +1 -1
  31. package/sdk/rest.js +18 -18
  32. package/sdk/rich-text.js +62 -62
  33. package/sdk/sdk-ie11.css +1 -1
  34. package/sdk/sdk.css +1 -1
  35. package/sdk/sdk.js +1212 -1212
  36. package/sdk/thirds/hls.js/hls.js +1 -1
  37. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  38. package/sdk/tinymce.js +57 -57
  39. package/src/renderers/CRUD.tsx +1 -3
  40. package/src/renderers/Form/index.tsx +2 -1
  41. package/src/renderers/Nav.tsx +4 -1
  42. package/src/renderers/Table/TableRow.tsx +3 -1
  43. package/src/store/formItem.ts +2 -2
  44. package/src/store/table.ts +2 -1
@@ -1532,9 +1532,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
1532
1532
  renderBulkActions(childProps: any) {
1533
1533
  let {bulkActions, itemActions, store, render, classnames: cx} = this.props;
1534
1534
 
1535
- const items = childProps.items;
1536
-
1537
- if (!items.length || !bulkActions || !bulkActions.length) {
1535
+ if (!bulkActions || !bulkActions.length) {
1538
1536
  return null;
1539
1537
  }
1540
1538
 
@@ -398,7 +398,8 @@ export default class Form extends React.Component<FormProps, object> {
398
398
  'simpleMode',
399
399
  'inputOnly',
400
400
  'value',
401
- 'actions'
401
+ 'actions',
402
+ 'multiple'
402
403
  ];
403
404
 
404
405
  hooks: {
@@ -415,7 +415,10 @@ export class Navigation extends React.Component<
415
415
  />
416
416
  ) : hasSub ? (
417
417
  <span
418
- onClick={() => this.toggleLink(link)}
418
+ onClick={e => {
419
+ this.toggleLink(link);
420
+ e.stopPropagation();
421
+ }}
419
422
  className={cx('Nav-itemToggler', togglerClassName)}
420
423
  >
421
424
  <Icon icon="caret" className="icon" />
@@ -45,8 +45,10 @@ export class TableRow extends React.Component<TableRowProps> {
45
45
  const {itemAction, onAction, item} = this.props;
46
46
  if (itemAction) {
47
47
  onAction && onAction(e, itemAction, item?.data);
48
+ item.toggle();
49
+ } else {
50
+ this.props.onCheck(this.props.item);
48
51
  }
49
- this.props.onCheck(this.props.item);
50
52
  }
51
53
 
52
54
  handleAction(e: React.UIEvent<any>, action: Action, ctx: any) {
@@ -590,8 +590,8 @@ export const FormItemStore = StoreNode.named('FormItemStore')
590
590
 
591
591
  let options: Array<IOption> =
592
592
  json.data?.options ||
593
- json.data.items ||
594
- json.data.rows ||
593
+ json.data?.items ||
594
+ json.data?.rows ||
595
595
  json.data ||
596
596
  [];
597
597
 
@@ -751,7 +751,8 @@ export const TableStore = iRendererStore
751
751
  pristine: item,
752
752
  toggled: item.toggled !== false,
753
753
  breakpoint: item.breakpoint,
754
- isPrimary: index === 3
754
+ isPrimary: index === 3,
755
+ className: item.className || ''
755
756
  }));
756
757
 
757
758
  self.columns.replace(columns as any);