Whitespace cleanup
This commit is contained in:
parent
e58db61d2a
commit
1b42d114ad
@ -104,8 +104,8 @@ Vue.component('comment-attachment-editor', {
|
|||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* Replaces all spaces with underscore and removes all o
|
* Replaces all spaces with underscore and removes all o
|
||||||
* @param {String} unsafe
|
* @param {String} unsafe
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
makeSafeAttachmentString(unsafe) {
|
makeSafeAttachmentString(unsafe) {
|
||||||
let candidate = (unsafe);
|
let candidate = (unsafe);
|
||||||
@ -113,8 +113,8 @@ Vue.component('comment-attachment-editor', {
|
|||||||
candidate = candidate
|
candidate = candidate
|
||||||
.replace(matchSpace, '_')
|
.replace(matchSpace, '_')
|
||||||
.replace(NON_VALID_NAME_REGEXP, '')
|
.replace(NON_VALID_NAME_REGEXP, '')
|
||||||
|
|
||||||
return candidate || `${this.oid}`
|
return candidate || `${this.oid}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -7,7 +7,7 @@ import {RowFilter} from './rows/filter/RowFilter'
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Table State
|
* Table State
|
||||||
*
|
*
|
||||||
* Used to restore a table to a given state.
|
* Used to restore a table to a given state.
|
||||||
*/
|
*/
|
||||||
class TableState {
|
class TableState {
|
||||||
@ -17,7 +17,7 @@ class TableState {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Apply state to row
|
* Apply state to row
|
||||||
* @param {RowBase} rowObject
|
* @param {RowBase} rowObject
|
||||||
*/
|
*/
|
||||||
applyRowState(rowObject) {
|
applyRowState(rowObject) {
|
||||||
rowObject.isSelected = this.selectedIds.includes(rowObject.getId());
|
rowObject.isSelected = this.selectedIds.includes(rowObject.getId());
|
||||||
@ -27,7 +27,7 @@ class TableState {
|
|||||||
class ComponentState {
|
class ComponentState {
|
||||||
/**
|
/**
|
||||||
* Serializable state of this component.
|
* Serializable state of this component.
|
||||||
*
|
*
|
||||||
* @param {Object} rowFilter
|
* @param {Object} rowFilter
|
||||||
* @param {Object} columnFilter
|
* @param {Object} columnFilter
|
||||||
*/
|
*/
|
||||||
@ -79,15 +79,15 @@ const TEMPLATE =`
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The table renders RowObject instances for the rows, and ColumnBase instances for the Columns.
|
* The table renders RowObject instances for the rows, and ColumnBase instances for the Columns.
|
||||||
* Extend the table to fit your needs.
|
* Extend the table to fit your needs.
|
||||||
*
|
*
|
||||||
* Usage:
|
* Usage:
|
||||||
* Extend RowBase to wrap the data you want in your row
|
* Extend RowBase to wrap the data you want in your row
|
||||||
* Extend ColumnBase once per column type you need
|
* Extend ColumnBase once per column type you need
|
||||||
* Extend RowObjectsSourceBase to fetch and initialize your rows
|
* Extend RowObjectsSourceBase to fetch and initialize your rows
|
||||||
* Extend ColumnFactoryBase to create the rows for your table
|
* Extend ColumnFactoryBase to create the rows for your table
|
||||||
* Extend This Table with your ColumnFactory and RowSource
|
* Extend This Table with your ColumnFactory and RowSource
|
||||||
*
|
*
|
||||||
* @emits isInitialized When all rows has been fetched, and are initialized.
|
* @emits isInitialized When all rows has been fetched, and are initialized.
|
||||||
* @emits selectItemsChanged(selectedItems) When selected rows has changed.
|
* @emits selectItemsChanged(selectedItems) When selected rows has changed.
|
||||||
* @emits componentStateChanged(newState) When table state changed. Filtered rows, visible columns...
|
* @emits componentStateChanged(newState) When table state changed. Filtered rows, visible columns...
|
||||||
@ -263,8 +263,8 @@ let PillarTable = Vue.component('pillar-table-base', {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Get visible rows between id1 and id2
|
* Get visible rows between id1 and id2
|
||||||
* @param {String} id1
|
* @param {String} id1
|
||||||
* @param {String} id2
|
* @param {String} id2
|
||||||
* @returns {Array(RowObjects)}
|
* @returns {Array(RowObjects)}
|
||||||
*/
|
*/
|
||||||
rowsBetween(id1, id2) {
|
rowsBetween(id1, id2) {
|
||||||
|
@ -11,8 +11,8 @@ const TEMPLATE =`
|
|||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
/**
|
/**
|
||||||
* Filter row objects based on there name.
|
* Filter row objects based on there name.
|
||||||
*
|
*
|
||||||
* @emits visibleRowObjectsChanged(rowObjects) When the objects to be visible has changed.
|
* @emits visibleRowObjectsChanged(rowObjects) When the objects to be visible has changed.
|
||||||
* @emits componentStateChanged(newState) When row filter state changed.
|
* @emits componentStateChanged(newState) When row filter state changed.
|
||||||
*/
|
*/
|
||||||
|
@ -12,8 +12,8 @@ const TEMPLATE =`
|
|||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
/**
|
/**
|
||||||
* Filter row objects based on there status.
|
* Filter row objects based on there status.
|
||||||
*
|
*
|
||||||
* @emits visibleRowObjectsChanged(rowObjects) When the objects to be visible has changed.
|
* @emits visibleRowObjectsChanged(rowObjects) When the objects to be visible has changed.
|
||||||
* @emits componentStateChanged(newState) When row filter state changed.
|
* @emits componentStateChanged(newState) When row filter state changed.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user