@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.
Files changed (32) hide show
  1. package/addon/classes/Row.js +74 -74
  2. package/addon/classes/Table.js +147 -147
  3. package/addon/components/fw-cell-action.js +15 -15
  4. package/addon/components/fw-cell-boolean.js +12 -12
  5. package/addon/components/fw-cell-nullable.js +12 -12
  6. package/addon/components/fw-cell-permission-icon.js +12 -12
  7. package/addon/components/fw-column-title.js +13 -13
  8. package/addon/components/fw-delete-modal.js +61 -61
  9. package/addon/components/fw-pagination-wrapper.js +681 -681
  10. package/addon/components/fw-row-toggle-index.js +14 -14
  11. package/addon/components/fw-table-expanded-row.js +24 -24
  12. package/addon/components/fw-table-resort.js +3 -3
  13. package/addon/components/fw-table-sortable.js +398 -389
  14. package/addon/documentation.js +98 -98
  15. package/addon/templates/components/fw-delete-modal.hbs +2 -7
  16. package/addon/templates/components/fw-pagination-wrapper.hbs +45 -74
  17. package/addon/templates/components/fw-table-expanded-row.hbs +23 -23
  18. package/addon/templates/components/fw-table-expanded-rows.hbs +1 -1
  19. package/addon/templates/components/fw-table-resort.hbs +4 -4
  20. package/addon/templates/components/fw-table-sortable.hbs +9 -31
  21. package/addon/utils/base-cells.js +40 -40
  22. package/addon/utils/export.js +76 -76
  23. package/addon/utils/formats.js +46 -46
  24. package/addon/utils/table.js +35 -35
  25. package/app/breakpoints.js +1 -1
  26. package/app/components/fw-cell-permission-icon.js +1 -1
  27. package/app/initializers/responsive.js +1 -1
  28. package/bitbucket-helpers-override.js +240 -240
  29. package/codemods.log +16 -0
  30. package/index.js +9 -10
  31. package/package.json +67 -67
  32. 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
- * {{fw-table-resort items titleKey='name' sortKey='sorted'}}
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
- * {{#fw-table-resort sortKey='sorted' as |item expanded|}}
14
+ * <FwTableResort @sortKey='sorted' as |item expanded|>
15
15
  * {{input item.name}}
16
- * {{/fw-table-resort}}
16
+ * </FwTableResort>
17
17
  * ```
18
18
  *
19
19
  * @class FW-Table-Resort