@mezzanine-ui/core 0.13.0 → 0.13.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mezzanine-ui/core",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Core for mezzanine-ui",
5
5
  "author": "Mezzanine",
6
6
  "repository": {
@@ -36,8 +36,8 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@mezzanine-ui/icons": "^0.13.0",
40
- "@mezzanine-ui/system": "^0.13.0",
39
+ "@mezzanine-ui/icons": "^0.13.1",
40
+ "@mezzanine-ui/system": "^0.13.1",
41
41
  "lodash": "^4.17.21",
42
42
  "tslib": "^2.4.1"
43
43
  }
@@ -194,6 +194,10 @@ $table-refresh-vertical-padding: 8px !default;
194
194
  }
195
195
  }
196
196
 
197
+ &--drag {
198
+ filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.25));
199
+ }
200
+
197
201
  &__cellWrapper {
198
202
  @include flexible;
199
203
  @include body_bg;
package/table/table.d.ts CHANGED
@@ -18,6 +18,7 @@ export declare const tableClasses: {
18
18
  readonly bodyEmpty: `${string}__empty`;
19
19
  readonly bodyFetchMore: `${string}__fetchMore`;
20
20
  readonly bodyRow: `${string}__row`;
21
+ readonly bodyRowDragging: `${string}__row--drag`;
21
22
  readonly bodyRowHighlight: `${string}__row--highlight`;
22
23
  readonly bodyRowCellWrapper: `${string}__row__cellWrapper`;
23
24
  readonly bodyRowCellWrapperFixed: `${string}__row__cellWrapper--fixed`;
@@ -81,6 +82,11 @@ export interface TableRowSelection {
81
82
  onChange?(keys: string[]): void;
82
83
  actions?: TableRowAction[];
83
84
  }
85
+ /** === Feature draggable */
86
+ export interface TableDraggable {
87
+ enabled: boolean;
88
+ onDragEnd?: (nextDataSource: any[]) => void;
89
+ }
84
90
  /** === Feature Expandable */
85
91
  export type ExpandRowBySources = {
86
92
  dataSource: TableDataSource[];
package/table/table.js CHANGED
@@ -18,6 +18,7 @@ const tableClasses = {
18
18
  bodyEmpty: `${tableBodyPrefix}__empty`,
19
19
  bodyFetchMore: `${tableBodyPrefix}__fetchMore`,
20
20
  bodyRow: `${tableBodyPrefix}__row`,
21
+ bodyRowDragging: `${tableBodyPrefix}__row--drag`,
21
22
  bodyRowHighlight: `${tableBodyPrefix}__row--highlight`,
22
23
  bodyRowCellWrapper: `${tableBodyPrefix}__row__cellWrapper`,
23
24
  bodyRowCellWrapperFixed: `${tableBodyPrefix}__row__cellWrapper--fixed`,