@bennerinformatics/ember-fw-table 2.0.19 → 2.0.21
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/addon/classes/Row.js +74 -74
- package/addon/classes/Table.js +147 -147
- package/addon/components/fw-cell-action.js +15 -15
- package/addon/components/fw-cell-boolean.js +12 -12
- package/addon/components/fw-cell-nullable.js +12 -12
- package/addon/components/fw-cell-permission-icon.js +12 -12
- package/addon/components/fw-column-title.js +13 -13
- package/addon/components/fw-delete-modal.js +61 -61
- package/addon/components/fw-pagination-wrapper.js +681 -681
- package/addon/components/fw-row-toggle-index.js +14 -14
- package/addon/components/fw-table-expanded-row.js +24 -24
- package/addon/components/fw-table-resort.js +3 -3
- package/addon/components/fw-table-sortable.js +398 -389
- package/addon/documentation.js +98 -98
- package/addon/templates/components/fw-delete-modal.hbs +2 -7
- package/addon/templates/components/fw-pagination-wrapper.hbs +45 -74
- package/addon/templates/components/fw-table-expanded-row.hbs +23 -23
- package/addon/templates/components/fw-table-expanded-rows.hbs +1 -1
- package/addon/templates/components/fw-table-resort.hbs +4 -4
- package/addon/templates/components/fw-table-sortable.hbs +9 -31
- package/addon/utils/base-cells.js +40 -40
- package/addon/utils/export.js +76 -76
- package/addon/utils/formats.js +46 -46
- package/addon/utils/table.js +35 -35
- package/app/breakpoints.js +1 -1
- package/app/components/fw-cell-permission-icon.js +1 -1
- package/app/initializers/responsive.js +1 -1
- package/bitbucket-helpers-override.js +240 -240
- package/codemods.log +16 -0
- package/index.js +9 -10
- package/package.json +67 -67
- package/yuidoc.json +21 -21
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import Toggle from './fw-row-toggle';
|
|
2
|
-
import layout from '../templates/components/fw-row-toggle-index';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Creates a table cell that shows if the row is expanded or hidden on hover, but
|
|
6
|
-
* displays the value otherwise. While this can be called directly using `cellComponent`,
|
|
7
|
-
* the [`rowToggle` util](../classes/BaseCells.html) will display this component if there
|
|
8
|
-
* is a `valuePath` defined. See also [`FW-Row-Toggle`](FW-Row-Toggle.html).
|
|
9
|
-
* @public
|
|
10
|
-
* @class FW-Row-Toggle-Index
|
|
11
|
-
*/
|
|
12
|
-
export default Toggle.extend({
|
|
13
|
-
layout
|
|
14
|
-
});
|
|
1
|
+
import Toggle from './fw-row-toggle';
|
|
2
|
+
import layout from '../templates/components/fw-row-toggle-index';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Creates a table cell that shows if the row is expanded or hidden on hover, but
|
|
6
|
+
* displays the value otherwise. While this can be called directly using `cellComponent`,
|
|
7
|
+
* the [`rowToggle` util](../classes/BaseCells.html) will display this component if there
|
|
8
|
+
* is a `valuePath` defined. See also [`FW-Row-Toggle`](FW-Row-Toggle.html).
|
|
9
|
+
* @public
|
|
10
|
+
* @class FW-Row-Toggle-Index
|
|
11
|
+
*/
|
|
12
|
+
export default Toggle.extend({
|
|
13
|
+
layout
|
|
14
|
+
});
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import Component from '@ember/component';
|
|
2
|
-
import {computed} from '@ember/object';
|
|
3
|
-
import layout from '../templates/components/fw-table-expanded-row';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* This component is used internally as the logic behind the rows displayed inside rows
|
|
7
|
-
* It is not included in the exports as it is not intended to be called directly
|
|
8
|
-
* @protected
|
|
9
|
-
* @module Components
|
|
10
|
-
* @submodule Internal
|
|
11
|
-
*/
|
|
12
|
-
export default Component.extend({
|
|
13
|
-
layout,
|
|
14
|
-
|
|
15
|
-
value: computed('rawValue', function() {
|
|
16
|
-
let rawValue = this.get('rawValue');
|
|
17
|
-
let format = this.get('column.format');
|
|
18
|
-
|
|
19
|
-
if (format && typeof format === 'function') {
|
|
20
|
-
return format.call(this, rawValue);
|
|
21
|
-
}
|
|
22
|
-
return rawValue;
|
|
23
|
-
})
|
|
24
|
-
});
|
|
1
|
+
import Component from '@ember/component';
|
|
2
|
+
import {computed} from '@ember/object';
|
|
3
|
+
import layout from '../templates/components/fw-table-expanded-row';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This component is used internally as the logic behind the rows displayed inside rows
|
|
7
|
+
* It is not included in the exports as it is not intended to be called directly
|
|
8
|
+
* @protected
|
|
9
|
+
* @module Components
|
|
10
|
+
* @submodule Internal
|
|
11
|
+
*/
|
|
12
|
+
export default Component.extend({
|
|
13
|
+
layout,
|
|
14
|
+
|
|
15
|
+
value: computed('rawValue', function() {
|
|
16
|
+
let rawValue = this.get('rawValue');
|
|
17
|
+
let format = this.get('column.format');
|
|
18
|
+
|
|
19
|
+
if (format && typeof format === 'function') {
|
|
20
|
+
return format.call(this, rawValue);
|
|
21
|
+
}
|
|
22
|
+
return rawValue;
|
|
23
|
+
})
|
|
24
|
+
});
|
|
@@ -6,14 +6,14 @@ import layout from '../templates/components/fw-table-resort';
|
|
|
6
6
|
/**
|
|
7
7
|
* This table contains logic to resort a "table" of models
|
|
8
8
|
* ```handlebars
|
|
9
|
-
* {{
|
|
9
|
+
* <FwTableResort @items={{items}} @titleKey='name' @sortKey='sorted' />
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
12
|
* If used in a block format instead, it is possible to fully define the title area, such as to replace it with input fields, which also adds a cheveron to expand if desired
|
|
13
13
|
* ```handlebars
|
|
14
|
-
*
|
|
14
|
+
* <FwTableResort @sortKey='sorted' as |item expanded|>
|
|
15
15
|
* {{input item.name}}
|
|
16
|
-
*
|
|
16
|
+
* </FwTableResort>
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
19
|
* @class FW-Table-Resort
|