| 1 |
export default class EComponent extends $e.modules.ComponentBase { |
| 2 |
/** |
| 3 |
* @return {string} the namespace of the component |
| 4 |
*/ |
| 5 |
getNamespace() { |
| 6 |
return 'kit-library'; |
| 7 |
} |
| 8 |
|
| 9 |
/** |
| 10 |
* @return {*} All the commands of the components |
| 11 |
*/ |
| 12 |
defaultCommands() { |
| 13 |
const trackingCommands = [ |
| 14 |
'apply-kit', |
| 15 |
'approve-import', |
| 16 |
'approve-selection', |
| 17 |
'back-to-library', |
| 18 |
'browse', |
| 19 |
'change-sort-direction', |
| 20 |
'change-sort-type', |
| 21 |
'change-sort-value', |
| 22 |
'check', |
| 23 |
'check-item', |
| 24 |
'check-out-kit', |
| 25 |
'checking-a-checkbox', |
| 26 |
'check-kits-on-theme-forest', |
| 27 |
'checkbox-filtration', |
| 28 |
'collapse', |
| 29 |
'choose-file', |
| 30 |
'choose-site-parts-to-import', |
| 31 |
'clear-filter', |
| 32 |
'close', |
| 33 |
'drop', |
| 34 |
'enable', |
| 35 |
'expand', |
| 36 |
'file-upload', |
| 37 |
'filter', |
| 38 |
'filter-selection', |
| 39 |
'favorite-icon', |
| 40 |
'go-back', |
| 41 |
'go-back-to-view-kits', |
| 42 |
'kit-free-search', |
| 43 |
'kit-is-live-load', |
| 44 |
'kit-import', |
| 45 |
'logo', |
| 46 |
'mark-as-favorite', |
| 47 |
'modal-close', |
| 48 |
'modal-load', |
| 49 |
'modal-open', |
| 50 |
'modal-error', |
| 51 |
'open-site-area', |
| 52 |
'refetch', |
| 53 |
'responsive-controls', |
| 54 |
'see-it-live', |
| 55 |
'seek-more-info', |
| 56 |
'sidebar-tag-filter', |
| 57 |
'skip', |
| 58 |
'select-organizing-category', |
| 59 |
'top-bar-change-view', |
| 60 |
'uncheck', |
| 61 |
'unchecking-a-checkbox', |
| 62 |
'view-demo-page', |
| 63 |
'view-demo-part', |
| 64 |
'view-overview-page', |
| 65 |
].reduce( ( allCommands, command ) => ( { |
| 66 |
...allCommands, |
| 67 |
[ command ]: () => { |
| 68 |
}, |
| 69 |
} ), {} ); |
| 70 |
|
| 71 |
return { |
| 72 |
...trackingCommands, |
| 73 |
}; |
| 74 |
} |
| 75 |
} |
| 76 |
|