@bennerinformatics/ember-fw-table 2.1.1 → 2.1.2

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.
@@ -36,7 +36,7 @@
36
36
 
37
37
  {{!-- Second page numbers --}}
38
38
  {{#if (and showPages showPagesBottom)}}
39
- <div class="text-center" style="overflow:auto">
39
+ <div class="text-center">
40
40
  <PageNumbers @content={{hash }} @showFL={{true}} @currentPage={{page}} @numPagesToShow={{maxPageButtons}} @totalPages={{totalPages}} @action={{action "setPage"}} />
41
41
  </div>
42
42
  {{/if}}
@@ -84,10 +84,11 @@ export function formatNullable(nullText = 'None') {
84
84
  */
85
85
  export function formatMoment(format, exportFormat = null) {
86
86
  return function(date) {
87
- if (moment.isMoment(date)) {
88
- // if we are exporting and have an export format, use that
89
- let useFormat = exportFormat && this['export'] ? exportFormat : format;
90
- return date.format(useFormat);
87
+ if (!moment.isMoment(date)) {
88
+ date = moment(date);
91
89
  }
90
+ // if we are exporting and have an export format, use that
91
+ let useFormat = exportFormat && this['export'] ? exportFormat : format;
92
+ return date.format(useFormat);
92
93
  };
93
94
  }
package/codemods.log ADDED
@@ -0,0 +1,16 @@
1
+ 2024-07-08T21:10:22.429Z [warn] WARNING: {{fw-fullscreen-modal}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-delete-modal.hbs
2
+ 2024-07-08T21:10:22.475Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-pagination-wrapper.hbs
3
+ 2024-07-08T21:10:22.478Z [warn] WARNING: {{fw-table-sortable}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-pagination-wrapper.hbs
4
+ 2024-07-08T21:10:22.478Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-pagination-wrapper.hbs
5
+ 2024-07-08T21:10:22.600Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-resort.hbs
6
+ 2024-07-08T21:10:22.633Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-sortable.hbs
7
+ 2024-07-08T21:10:22.633Z [warn] WARNING: {{or}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-sortable.hbs
8
+ 2024-07-08T21:10:22.634Z [warn] WARNING: {{light-table}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-sortable.hbs
9
+ 2024-07-08T21:10:22.637Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-sortable.hbs
10
+ 2024-07-09T14:00:38.763Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-pagination-wrapper.hbs
11
+ 2024-07-09T14:00:38.767Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-pagination-wrapper.hbs
12
+ 2024-07-09T14:00:38.954Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-resort.hbs
13
+ 2024-07-09T14:00:38.988Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-sortable.hbs
14
+ 2024-07-09T14:00:38.988Z [warn] WARNING: {{or}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-sortable.hbs
15
+ 2024-07-09T14:00:38.988Z [warn] WARNING: {{light-table}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-sortable.hbs
16
+ 2024-07-09T14:00:38.989Z [warn] WARNING: {{yield}} was not converted as it has positional parameters which can't be automatically converted. Source: addon/templates/components/fw-table-sortable.hbs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bennerinformatics/ember-fw-table",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Additional resources related to tables for the Ember FW App System.",
5
5
  "keywords": [
6
6
  "ember-addon",