|
60 | 60 | const outTblHeadThIdText = document.createElement('span'); |
61 | 61 | const outTblHeadThIdIcon = document.createElement('span'); |
62 | 62 | const outTblHeadThFIO = document.createElement('th'); |
| 63 | + const outTblHeadThFIOWrap = document.createElement('div'); |
| 64 | + const outTblHeadThFIOText = document.createElement('span'); |
| 65 | + const outTblHeadThFIOIcon = document.createElement('span'); |
| 66 | + const outTblHeadThFIOSort = document.createElement('span'); |
63 | 67 | const outTblHeadThCreationDT = document.createElement('th'); |
| 68 | + const outTblHeadThDTWrap = document.createElement('div'); |
| 69 | + const outTblHeadThDTText = document.createElement('span'); |
| 70 | + const outTblHeadThDTIcon = document.createElement('span'); |
64 | 71 | const outTblHeadThChanges = document.createElement('th'); |
| 72 | + const outTblHeadThChangeWrap = document.createElement('div'); |
| 73 | + const outTblHeadThChangeText = document.createElement('span'); |
| 74 | + const outTblHeadThChangeIcon = document.createElement('span'); |
65 | 75 | const outTblHeadThContacts = document.createElement('th'); |
| 76 | + const outTblHeadThContactWrap = document.createElement('div'); |
| 77 | + const outTblHeadThContactText = document.createElement('span'); |
66 | 78 | const outTblHeadThActions = document.createElement('th'); |
| 79 | + const outTblHeadThActionWrap = document.createElement('div'); |
| 80 | + const outTblHeadThActionText = document.createElement('span'); |
67 | 81 |
|
68 | 82 | outputTitle.classList.add('crm__output-title'); |
69 | 83 | outputTable.classList.add('crm__output-table', 'table', 'table-hover'); |
70 | 84 | outTableHead.classList.add('crm__output-table-head'); |
71 | 85 | outTableBody.classList.add('crm__output-table-body'); |
72 | 86 | outTblHeadTr.classList.add('crm__o-table-head-row'); |
73 | | - outTblHeadThId.classList.add('head-cell', 'crm__o-table-head-cell'); |
| 87 | + outTblHeadThId.classList.add( |
| 88 | + 'head-cell', |
| 89 | + 'head-cell-icon', |
| 90 | + 'crm__o-table-head-cell' |
| 91 | + ); |
74 | 92 | outTblHeadThIdWrap.classList.add('head-cell__wrap', 'head-cell__wrap-id'); |
75 | 93 | outTblHeadThIdText.classList.add('head-cell__text', 'head-cell__text-id'); |
76 | 94 | outTblHeadThIdIcon.classList.add('head-cell__icon', 'head-cell__icon-id'); |
77 | | - outTblHeadThFIO.classList.add('crm__o-table-head-cell'); |
78 | | - outTblHeadThCreationDT.classList.add('crm__o-table-head-cell'); |
79 | | - outTblHeadThChanges.classList.add('crm__o-table-head-cell'); |
80 | | - outTblHeadThContacts.classList.add('crm__o-table-head-cell'); |
81 | | - outTblHeadThActions.classList.add('crm__o-table-head-cell'); |
| 95 | + outTblHeadThFIO.classList.add( |
| 96 | + 'head-cell', |
| 97 | + 'head-cell-icon', |
| 98 | + 'crm__o-table-head-cell' |
| 99 | + ); |
| 100 | + outTblHeadThFIOWrap.classList.add('head-cell__wrap', 'head-cell__wrap-fio'); |
| 101 | + outTblHeadThFIOText.classList.add('head-cell__text', 'head-cell__text-fio'); |
| 102 | + outTblHeadThFIOIcon.classList.add('head-cell__icon', 'head-cell__icon-fio'); |
| 103 | + outTblHeadThFIOSort.classList.add('head-cell__sort', 'head-cell__sort-fio'); |
| 104 | + outTblHeadThCreationDT.classList.add( |
| 105 | + 'head-cell', |
| 106 | + 'head-cell-icon', |
| 107 | + 'crm__o-table-head-cell' |
| 108 | + ); |
| 109 | + outTblHeadThDTWrap.classList.add('head-cell__wrap', 'head-cell__wrap-dt'); |
| 110 | + outTblHeadThDTText.classList.add('head-cell__text', 'head-cell__text-dt'); |
| 111 | + outTblHeadThDTIcon.classList.add('head-cell__icon', 'head-cell__icon-dt'); |
| 112 | + outTblHeadThChanges.classList.add( |
| 113 | + 'head-cell', |
| 114 | + 'head-cell-icon', |
| 115 | + 'crm__o-table-head-cell' |
| 116 | + ); |
| 117 | + outTblHeadThChangeWrap.classList.add( |
| 118 | + 'head-cell__wrap', |
| 119 | + 'head-cell__wrap-change' |
| 120 | + ); |
| 121 | + outTblHeadThChangeText.classList.add( |
| 122 | + 'head-cell__text', |
| 123 | + 'head-cell__text-change' |
| 124 | + ); |
| 125 | + outTblHeadThChangeIcon.classList.add( |
| 126 | + 'head-cell__icon', |
| 127 | + 'head-cell__icon-change' |
| 128 | + ); |
| 129 | + outTblHeadThContacts.classList.add('head-cell', 'crm__o-table-head-cell'); |
| 130 | + outTblHeadThContactWrap.classList.add( |
| 131 | + 'head-cell__wrap', |
| 132 | + 'head-cell__wrap-contact' |
| 133 | + ); |
| 134 | + outTblHeadThContactText.classList.add( |
| 135 | + 'head-cell__text', |
| 136 | + 'head-cell__text-contact' |
| 137 | + ); |
| 138 | + outTblHeadThActions.classList.add('head-cell', 'crm__o-table-head-cell'); |
| 139 | + outTblHeadThActionWrap.classList.add( |
| 140 | + 'head-cell__wrap', |
| 141 | + 'head-cell__wrap-action' |
| 142 | + ); |
| 143 | + outTblHeadThActionText.classList.add( |
| 144 | + 'head-cell__text', |
| 145 | + 'head-cell__text-action' |
| 146 | + ); |
82 | 147 |
|
83 | 148 | outTblHeadThId.setAttribute('id', 'table-th-id'); |
84 | 149 | outTblHeadThId.setAttribute('tabindex', '0'); |
|
95 | 160 |
|
96 | 161 | outputTitle.textContent = 'Клиенты'; |
97 | 162 | outTblHeadThIdText.textContent = 'ID'; |
98 | | - // outTblHeadThIdIcon.textContent = '+'; |
99 | | - outTblHeadThFIO.textContent = 'Фамилия Имя Отчество'; |
100 | | - outTblHeadThCreationDT.textContent = 'Дата и время создания'; |
101 | | - outTblHeadThChanges.textContent = 'Последние изменения'; |
102 | | - outTblHeadThContacts.textContent = 'Контакты'; |
103 | | - outTblHeadThActions.textContent = 'Действия'; |
| 163 | + outTblHeadThFIOText.textContent = 'Фамилия Имя Отчество'; |
| 164 | + outTblHeadThFIOSort.textContent = 'А-Я'; |
| 165 | + outTblHeadThDTText.textContent = 'Дата и время создания'; |
| 166 | + outTblHeadThChangeText.textContent = 'Последние изменения'; |
| 167 | + outTblHeadThContactText.textContent = 'Контакты'; |
| 168 | + outTblHeadThActionText.textContent = 'Действия'; |
104 | 169 |
|
105 | 170 | outTblHeadThIdWrap.append(outTblHeadThIdText, outTblHeadThIdIcon); |
| 171 | + outTblHeadThFIOWrap.append( |
| 172 | + outTblHeadThFIOText, |
| 173 | + outTblHeadThFIOIcon, |
| 174 | + outTblHeadThFIOSort |
| 175 | + ); |
| 176 | + outTblHeadThDTWrap.append(outTblHeadThDTText, outTblHeadThDTIcon); |
| 177 | + outTblHeadThChangeWrap.append(outTblHeadThChangeText, outTblHeadThChangeIcon); |
| 178 | + outTblHeadThContactWrap.append(outTblHeadThContactText); |
| 179 | + outTblHeadThActionWrap.append(outTblHeadThActionText); |
106 | 180 | outTblHeadThId.append(outTblHeadThIdWrap); |
| 181 | + outTblHeadThFIO.append(outTblHeadThFIOWrap); |
| 182 | + outTblHeadThCreationDT.append(outTblHeadThDTWrap); |
| 183 | + outTblHeadThChanges.append(outTblHeadThChangeWrap); |
| 184 | + outTblHeadThContacts.append(outTblHeadThContactWrap); |
| 185 | + outTblHeadThActions.append(outTblHeadThActionWrap); |
107 | 186 | outTblHeadTr.append( |
108 | 187 | outTblHeadThId, |
109 | 188 | outTblHeadThFIO, |
|
0 commit comments