@ninebone/datagrid 0.0.23 → 0.1.1

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.
@@ -146,19 +146,22 @@ cell-combo-panel {
146
146
  margin: 0;
147
147
  resize: both;
148
148
 
149
- .head {
149
+ input {
150
150
  display: none;
151
- padding: 6px;
152
- background: #f8f9fa;
151
+ width: 100%;
152
+ height: 32px;
153
+ box-sizing: border-box;
154
+ padding: 0px 8px;
155
+ border: none;
153
156
  border-bottom: 1px solid #e5e7eb;
154
-
155
- input[type="text"] {
156
- width: 100%;
157
- height: 26px;
158
- padding: 0 6px;
159
- border: 1px solid #d1d5db;
160
- border-radius: 3px;
161
- }
157
+ border-radius: 0px;
158
+ outline: none;
159
+ font-size: 12px;
160
+ background: #fafafa;
161
+ color: #333;
162
+ }
163
+ input:focus {
164
+ background: #ffffff;
162
165
  }
163
166
 
164
167
  .footer {
@@ -170,7 +173,9 @@ cell-combo-panel {
170
173
  padding: 0 8px;
171
174
 
172
175
  label {
173
- user-select: none;
176
+ display: flex;
177
+ align-items: center;
178
+ gap: 4px;
174
179
  }
175
180
 
176
181
  button {
@@ -201,11 +206,12 @@ cell-combo-panel.active {
201
206
  }
202
207
 
203
208
  cell-combo-panel.expand {
204
- .head {
205
- display: flex;
209
+ input {
210
+ display: block;
206
211
  }
207
212
  }
208
213
 
214
+
209
215
  cell-combo-panel.multi {
210
216
  .footer {
211
217
  display: flex;
@@ -214,7 +220,6 @@ cell-combo-panel.multi {
214
220
  }
215
221
 
216
222
 
217
-
218
223
  cell-combo-panel.loading {
219
224
  nine-table-simple {
220
225
  visibility: hidden;
@@ -287,6 +292,7 @@ cell-input-color {
287
292
  -moz-appearance: none;
288
293
  appearance: none;
289
294
  background-color: transparent;
295
+ border-radius: 0;
290
296
  }
291
297
 
292
298
  input[type=color]::-webkit-color-swatch {
@@ -559,7 +565,6 @@ tbody {
559
565
  .selected-left { border-left: 2px solid var(--cell-selection-border-color); }
560
566
  .selected-right { border-right: 2px solid var(--cell-selection-border-color); }
561
567
  }
562
-
563
568
  nine-table-col-expand {
564
569
  position: absolute;
565
570
  right: 2px;
@@ -952,13 +957,98 @@ nine-table-filter-panel.loading::before {
952
957
 
953
958
  :host([theme="simple"]) {
954
959
  col[data-col="0"], th[data-col="0"], td[data-col="0"] {
960
+ /**display: none; */
961
+ }
962
+ .ng-container-right {
963
+ /**display: none; */
964
+ }
965
+ tr {
966
+ height: 28px;
967
+ min-height: 28px;
968
+ max-height: 28px;
969
+ }
970
+ }
971
+
972
+ :host(.combo-list) {
973
+ :focus {
974
+ --border-right: 2px solid #ccc;
975
+ }
976
+
977
+ tr.selected {
978
+ transform: unset !important;
979
+
980
+ .CELL-ROW-INDICATOR {
981
+ display: table-cell;
982
+ background: darkgoldenrod;
983
+
984
+ cell-row-indicator {
985
+ display: none;
986
+ }
987
+ }
988
+ }
989
+
990
+ .ng-container-left {
991
+ width: 2px;
992
+ min-width: 2px;
993
+ --flex: unset;
994
+ }
995
+ col[data-col="0"], th[data-col="0"], td[data-col="0"] {
996
+ width: 2px;
997
+ min-width: 2px;
998
+ max-width: 2px;
999
+ }
1000
+ col[data-col="1"], th[data-col="1"], td[data-col="1"] {
955
1001
  display: none;
956
1002
  }
1003
+
957
1004
  .ng-container-right {
958
1005
  display: none;
959
1006
  }
960
- tr {
961
- height: 26px;
1007
+ }
1008
+
1009
+ :host(.multi) {
1010
+
1011
+ .ng-container-left {
1012
+ width: 26px;
1013
+ max-width: 26px;
1014
+ /**
1015
+ table {
1016
+ width: 26px !important;
1017
+ max-width: 26px !important;;
1018
+ } */
1019
+ }
1020
+ /**
1021
+ col[data-col="0"], th[data-col="0"] {
1022
+ width: 2px !important;
1023
+ max-width: 2px !important;
1024
+ } */
1025
+
1026
+ col[data-col="0"], col[data-col="1"] {
1027
+ display: table-column;
1028
+ }
1029
+ th[data-col="0"], td[data-col="1"] {
1030
+ display: table-cell;
1031
+ overflow: hidden;
1032
+ }
1033
+ col[data-col="1"], td[data-col="1"] {
1034
+ width: 24px;
1035
+ max-width: 24px;
1036
+ }
1037
+
1038
+ th[data-col="0"] {
1039
+ * {
1040
+ display: none;
1041
+ }
1042
+ }
1043
+
1044
+ td[data-col="1"] {
1045
+ padding: 0;
1046
+ border-right: none;
1047
+ cell-checkbox {
1048
+ padding: 0;
1049
+ width: 24px;
1050
+ border-right: none;
1051
+ }
962
1052
  }
963
1053
  }
964
1054
 
@@ -1134,6 +1224,11 @@ cell-input, cell-input-number, cell-button, cell-input-color, cell-input-date, c
1134
1224
  }
1135
1225
  }
1136
1226
 
1227
+ .ng-container-left,.ng-container-right {
1228
+ table {
1229
+ width: 100%;
1230
+ }
1231
+ }
1137
1232
 
1138
1233
  .empty-value {
1139
1234
  color: #999;