@spectric/ui 0.0.25 → 0.0.27
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.
- package/dist/components/input.d.ts +5 -0
- package/dist/components/query_bar/QueryBar.d.ts +4 -4
- package/dist/components/table/table.d.ts +6 -1
- package/dist/components/table/virtualBody.d.ts +3 -1
- package/dist/custom-elements.json +16 -6
- package/dist/index.es.js +1242 -1229
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +141 -145
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/input.ts +10 -0
- package/src/components/query_bar/QueryBar.css +67 -68
- package/src/components/query_bar/QueryBar.ts +24 -14
- package/src/components/query_bar/__tests__/test_highlighting.spec.ts +101 -0
- package/src/components/query_bar/querylanguage/outputTypes/toHTML.ts +25 -4
- package/src/components/table/header.css +54 -39
- package/src/components/table/header.ts +8 -8
- package/src/components/table/table.css +81 -71
- package/src/components/table/table.ts +25 -12
- package/src/components/table/virtualBody.ts +35 -50
- package/src/stories/QueryBar.stories.ts +9 -8
- package/src/stories/fixtures/data.ts +14 -17
- /package/src/components/query_bar/querylanguage/kuery/ast/{kuery.peg → kuery.peggy} +0 -0
|
@@ -136,6 +136,7 @@ export type TestData = {
|
|
|
136
136
|
state: string;
|
|
137
137
|
};
|
|
138
138
|
years: number;
|
|
139
|
+
start: string;
|
|
139
140
|
};
|
|
140
141
|
export const tabledata: TestData[] = [
|
|
141
142
|
{
|
|
@@ -144,6 +145,7 @@ export const tabledata: TestData[] = [
|
|
|
144
145
|
contact: "123-4567",
|
|
145
146
|
location: { country: "US", state: "VA" },
|
|
146
147
|
years: 11,
|
|
148
|
+
start: "2025-12-19T20:22:42.008Z",
|
|
147
149
|
},
|
|
148
150
|
{
|
|
149
151
|
name: "Kipp",
|
|
@@ -151,6 +153,7 @@ export const tabledata: TestData[] = [
|
|
|
151
153
|
contact: "123-4567",
|
|
152
154
|
location: { country: "UK", state: "N/A" },
|
|
153
155
|
years: 5,
|
|
156
|
+
start: "2024-12-19T20:22:42.008Z",
|
|
154
157
|
},
|
|
155
158
|
{
|
|
156
159
|
name: "Adam",
|
|
@@ -158,6 +161,7 @@ export const tabledata: TestData[] = [
|
|
|
158
161
|
contact: "123-4567",
|
|
159
162
|
location: { country: "US", state: "VA" },
|
|
160
163
|
years: 19,
|
|
164
|
+
start: "2023-12-19T20:22:42.008Z",
|
|
161
165
|
},
|
|
162
166
|
{
|
|
163
167
|
name: "Chris",
|
|
@@ -165,6 +169,7 @@ export const tabledata: TestData[] = [
|
|
|
165
169
|
contact: "123-4567",
|
|
166
170
|
location: { country: "US", state: "VA" },
|
|
167
171
|
years: 27,
|
|
172
|
+
start: "2022-12-19T20:22:42.008Z",
|
|
168
173
|
},
|
|
169
174
|
{
|
|
170
175
|
name: "Michael",
|
|
@@ -172,6 +177,7 @@ export const tabledata: TestData[] = [
|
|
|
172
177
|
contact: "123-4567",
|
|
173
178
|
location: { country: "US", state: "VA" },
|
|
174
179
|
years: 3,
|
|
180
|
+
start: "2021-12-19T20:22:42.008Z",
|
|
175
181
|
},
|
|
176
182
|
{
|
|
177
183
|
name: "Matt",
|
|
@@ -179,6 +185,7 @@ export const tabledata: TestData[] = [
|
|
|
179
185
|
contact: "123-4567",
|
|
180
186
|
location: { country: "US", state: "VA" },
|
|
181
187
|
years: 9,
|
|
188
|
+
start: "2021-12-19T20:22:42.008Z",
|
|
182
189
|
},
|
|
183
190
|
{
|
|
184
191
|
name: "Matt",
|
|
@@ -186,6 +193,7 @@ export const tabledata: TestData[] = [
|
|
|
186
193
|
contact: "865-6343",
|
|
187
194
|
location: { country: "UK", state: "VA" },
|
|
188
195
|
years: 5,
|
|
196
|
+
start: "2025-11-19T20:22:42.008Z",
|
|
189
197
|
},
|
|
190
198
|
{
|
|
191
199
|
name: "Matt",
|
|
@@ -193,6 +201,7 @@ export const tabledata: TestData[] = [
|
|
|
193
201
|
contact: "253-6795",
|
|
194
202
|
location: { country: "UK", state: "VA" },
|
|
195
203
|
years: 15,
|
|
204
|
+
start: "2025-10-19T20:22:42.008Z",
|
|
196
205
|
},
|
|
197
206
|
{
|
|
198
207
|
name: "Matt",
|
|
@@ -200,6 +209,7 @@ export const tabledata: TestData[] = [
|
|
|
200
209
|
contact: "253-6795",
|
|
201
210
|
location: { country: "US", state: "CO" },
|
|
202
211
|
years: 1,
|
|
212
|
+
start: "2025-08-19T20:22:42.008Z",
|
|
203
213
|
},
|
|
204
214
|
{
|
|
205
215
|
name: "Matt",
|
|
@@ -207,6 +217,7 @@ export const tabledata: TestData[] = [
|
|
|
207
217
|
contact: "912-1230",
|
|
208
218
|
location: { country: "UK", state: "VA" },
|
|
209
219
|
years: 24,
|
|
220
|
+
start: "2025-07-19T20:22:42.008Z",
|
|
210
221
|
},
|
|
211
222
|
{
|
|
212
223
|
name: "Grant",
|
|
@@ -214,6 +225,7 @@ export const tabledata: TestData[] = [
|
|
|
214
225
|
contact: "123-4567",
|
|
215
226
|
location: { country: "US", state: "VA" },
|
|
216
227
|
years: 100,
|
|
228
|
+
start: "2022-01-19T20:22:42.008Z",
|
|
217
229
|
},
|
|
218
230
|
];
|
|
219
231
|
export const getTableColumns = () => {
|
|
@@ -229,28 +241,13 @@ export const getTableColumns = () => {
|
|
|
229
241
|
onClick: (row, _column) => {
|
|
230
242
|
alert(`Calling ${row.name} at ${row.contact}`);
|
|
231
243
|
},
|
|
232
|
-
icon:
|
|
233
|
-
width="16px"
|
|
234
|
-
height="16px"
|
|
235
|
-
viewBox="0 0 24 24"
|
|
236
|
-
fill="none"
|
|
237
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
238
|
-
>
|
|
239
|
-
<g>
|
|
240
|
-
<path
|
|
241
|
-
d="M14.05 6C15.0268 6.19057 15.9244 6.66826 16.6281 7.37194C17.3318 8.07561 17.8095 8.97326 18 9.95M14.05 2C16.0793 2.22544 17.9716 3.13417 19.4163 4.57701C20.8609 6.01984 21.7721 7.91101 22 9.94M18.5 21C9.93959 21 3 14.0604 3 5.5C3 5.11378 3.01413 4.73086 3.04189 4.35173C3.07375 3.91662 3.08968 3.69907 3.2037 3.50103C3.29814 3.33701 3.4655 3.18146 3.63598 3.09925C3.84181 3 4.08188 3 4.56201 3H7.37932C7.78308 3 7.98496 3 8.15802 3.06645C8.31089 3.12515 8.44701 3.22049 8.55442 3.3441C8.67601 3.48403 8.745 3.67376 8.88299 4.05321L10.0491 7.26005C10.2096 7.70153 10.2899 7.92227 10.2763 8.1317C10.2643 8.31637 10.2012 8.49408 10.0942 8.64506C9.97286 8.81628 9.77145 8.93713 9.36863 9.17882L8 10C9.2019 12.6489 11.3501 14.7999 14 16L14.8212 14.6314C15.0629 14.2285 15.1837 14.0271 15.3549 13.9058C15.5059 13.7988 15.6836 13.7357 15.8683 13.7237C16.0777 13.7101 16.2985 13.7904 16.74 13.9509L19.9468 15.117C20.3262 15.255 20.516 15.324 20.6559 15.4456C20.7795 15.553 20.8749 15.6891 20.9335 15.842C21 16.015 21 16.2169 21 16.6207V19.438C21 19.9181 21 20.1582 20.9007 20.364C20.8185 20.5345 20.663 20.7019 20.499 20.7963C20.3009 20.9103 20.0834 20.9262 19.6483 20.9581C19.2691 20.9859 18.8862 21 18.5 21Z"
|
|
242
|
-
stroke="#000000"
|
|
243
|
-
stroke-width="2"
|
|
244
|
-
stroke-linecap="round"
|
|
245
|
-
stroke-linejoin="round"
|
|
246
|
-
></path>
|
|
247
|
-
</g>
|
|
248
|
-
</svg>`,
|
|
244
|
+
icon: "☎",
|
|
249
245
|
},
|
|
250
246
|
],
|
|
251
247
|
},
|
|
252
248
|
{ title: "Country", key: "location.country", filterable: true },
|
|
253
249
|
{ title: "Years Employed", key: "years", sortable: true },
|
|
250
|
+
{ title: "Start Date", key: "start", sortable: true },
|
|
254
251
|
];
|
|
255
252
|
return tablecolumns;
|
|
256
253
|
};
|
|
File without changes
|