@geotab/zenith 3.15.0-beta.0 → 3.15.0-beta.2
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/README.md +0 -1
- package/dist/chart/plugins/linePlugin/getInterpolatedValue.js +9 -0
- package/dist/chart/plugins/linePlugin/linePlugin.js +7 -29
- package/dist/commonStyles/colors/colors.less +4 -0
- package/dist/dropdown/dropdown.js +1 -1
- package/dist/dropdownRaw/dropdownList.d.ts +2 -3
- package/dist/dropdownRaw/dropdownList.js +42 -14
- package/dist/dropdownRaw/dropdownRaw.js +8 -20
- package/dist/dropdownRaw/stateReducer/stateReducer.d.ts +1 -4
- package/dist/dropdownRaw/stateReducer/stateReducer.js +21 -31
- package/dist/dropdownRaw/stateReducer/stateReducerHelper.d.ts +2 -1
- package/dist/dropdownRaw/stateReducer/stateReducerHelper.js +12 -7
- package/dist/dropdownRaw/types.d.ts +0 -20
- package/dist/index.css +190 -66
- package/esm/chart/plugins/linePlugin/getInterpolatedValue.js +9 -0
- package/esm/chart/plugins/linePlugin/linePlugin.js +7 -29
- package/esm/dropdown/dropdown.js +1 -1
- package/esm/dropdownRaw/dropdownList.d.ts +2 -3
- package/esm/dropdownRaw/dropdownList.js +42 -14
- package/esm/dropdownRaw/dropdownRaw.js +9 -21
- package/esm/dropdownRaw/stateReducer/stateReducer.d.ts +1 -4
- package/esm/dropdownRaw/stateReducer/stateReducer.js +22 -32
- package/esm/dropdownRaw/stateReducer/stateReducerHelper.d.ts +2 -1
- package/esm/dropdownRaw/stateReducer/stateReducerHelper.js +10 -5
- package/esm/dropdownRaw/types.d.ts +0 -20
- package/package.json +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +0 -1
- package/esm/tsconfig.esm.tsbuildinfo +0 -1
package/dist/index.css
CHANGED
|
@@ -1863,6 +1863,7 @@ html:lang(ar) .mobile-data-s-drive {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
1865
|
:root {
|
|
1866
|
+
fill: var(--text-primary);
|
|
1866
1867
|
--text-primary: #1f2833;
|
|
1867
1868
|
--text-secondary: #4e677e;
|
|
1868
1869
|
--text-placeholder: #8da4b9;
|
|
@@ -1928,6 +1929,7 @@ html:lang(ar) .mobile-data-s-drive {
|
|
|
1928
1929
|
}
|
|
1929
1930
|
.zen-dark {
|
|
1930
1931
|
color: var(--text-primary);
|
|
1932
|
+
fill: var(--text-primary);
|
|
1931
1933
|
--text-primary: #ffffff;
|
|
1932
1934
|
--text-secondary: #c0ccd8;
|
|
1933
1935
|
--text-placeholder: #a6b8c9;
|
|
@@ -2703,7 +2705,6 @@ html:lang(ar) .zen-button--mobile {
|
|
|
2703
2705
|
width: 11px;
|
|
2704
2706
|
height: 11px;
|
|
2705
2707
|
display: inline;
|
|
2706
|
-
fill: currentcolor;
|
|
2707
2708
|
}
|
|
2708
2709
|
.zen-icon * {
|
|
2709
2710
|
box-sizing: border-box;
|
|
@@ -3338,6 +3339,10 @@ html:lang(ar) .zen-tooltip__title {
|
|
|
3338
3339
|
position: absolute;
|
|
3339
3340
|
border-style: solid;
|
|
3340
3341
|
filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
|
|
3342
|
+
border-width: 6px;
|
|
3343
|
+
border-color: transparent;
|
|
3344
|
+
/* stylelint-disable */
|
|
3345
|
+
/* stylelint-enable */
|
|
3341
3346
|
}
|
|
3342
3347
|
.zen-tooltip__arrow--top {
|
|
3343
3348
|
inset-block-start: 100%;
|
|
@@ -3354,25 +3359,15 @@ html:lang(ar) .zen-tooltip__title {
|
|
|
3354
3359
|
filter: drop-shadow(0 -4px 4px rgba(0, 0, 0, 0.2));
|
|
3355
3360
|
}
|
|
3356
3361
|
.zen-tooltip__arrow--right {
|
|
3357
|
-
|
|
3358
|
-
border-color:
|
|
3359
|
-
border-width: 5px 6px 5px 0;
|
|
3362
|
+
right: 100%;
|
|
3363
|
+
border-right-color: var(--backgrounds-content-1);
|
|
3360
3364
|
filter: drop-shadow(-4px 0 4px rgba(0, 0, 0, 0.2));
|
|
3361
3365
|
}
|
|
3362
|
-
[dir="rtl"] .zen-tooltip__arrow--right {
|
|
3363
|
-
border-color: transparent transparent transparent var(--backgrounds-content-1);
|
|
3364
|
-
filter: drop-shadow(4px 0 4px rgba(0, 0, 0, 0.2));
|
|
3365
|
-
}
|
|
3366
3366
|
.zen-tooltip__arrow--left {
|
|
3367
|
-
|
|
3368
|
-
border-color:
|
|
3369
|
-
border-width: 5px 0 6px 5px;
|
|
3367
|
+
left: 100%;
|
|
3368
|
+
border-left-color: var(--backgrounds-content-1);
|
|
3370
3369
|
filter: drop-shadow(4px 0 4px rgba(0, 0, 0, 0.2));
|
|
3371
3370
|
}
|
|
3372
|
-
[dir="rtl"] .zen-tooltip__arrow--left {
|
|
3373
|
-
border-color: transparent var(--backgrounds-content-1) transparent transparent;
|
|
3374
|
-
filter: drop-shadow(-4px 0 4px rgba(0, 0, 0, 0.2));
|
|
3375
|
-
}
|
|
3376
3371
|
.zen-tooltip__trigger {
|
|
3377
3372
|
color: var(--text-secondary);
|
|
3378
3373
|
fill: var(--text-secondary);
|
|
@@ -4311,6 +4306,10 @@ html:lang(ar) .zen-side-panel-cell__title {
|
|
|
4311
4306
|
background-color: var(--accents-success--main);
|
|
4312
4307
|
border-color: var(--accents-success--detail);
|
|
4313
4308
|
}
|
|
4309
|
+
.zen-toast--error {
|
|
4310
|
+
background-color: var(--accents-error--main);
|
|
4311
|
+
border-color: var(--accents-error--detail);
|
|
4312
|
+
}
|
|
4314
4313
|
.zen-toast__icon {
|
|
4315
4314
|
padding-inline-end: 0.5rem;
|
|
4316
4315
|
}
|
|
@@ -4320,6 +4319,9 @@ html:lang(ar) .zen-side-panel-cell__title {
|
|
|
4320
4319
|
.zen-toast__icon--success {
|
|
4321
4320
|
fill: var(--accents-success--detail);
|
|
4322
4321
|
}
|
|
4322
|
+
.zen-toast__icon--error {
|
|
4323
|
+
fill: var(--accents-error--detail);
|
|
4324
|
+
}
|
|
4323
4325
|
.zen-toast__header {
|
|
4324
4326
|
display: -webkit-box;
|
|
4325
4327
|
-webkit-line-clamp: 2;
|
|
@@ -4346,6 +4348,10 @@ html:lang(ar) .zen-toast__header {
|
|
|
4346
4348
|
color: var(--accents-success--detail);
|
|
4347
4349
|
fill: var(--accents-success--detail);
|
|
4348
4350
|
}
|
|
4351
|
+
.zen-toast__header--error {
|
|
4352
|
+
color: var(--accents-error--detail);
|
|
4353
|
+
fill: var(--accents-error--detail);
|
|
4354
|
+
}
|
|
4349
4355
|
.zen-toast__close-button {
|
|
4350
4356
|
display: flex;
|
|
4351
4357
|
align-items: center;
|
|
@@ -4374,6 +4380,11 @@ html:lang(ar) .zen-toast__header {
|
|
|
4374
4380
|
color: var(--accents-success--detail);
|
|
4375
4381
|
outline-color: var(--accents-success--detail);
|
|
4376
4382
|
}
|
|
4383
|
+
.zen-toast__close-button--error {
|
|
4384
|
+
fill: var(--accents-error--detail);
|
|
4385
|
+
color: var(--accents-error--detail);
|
|
4386
|
+
outline-color: var(--accents-error--detail);
|
|
4387
|
+
}
|
|
4377
4388
|
.zen-toast__action {
|
|
4378
4389
|
max-width: 6.875rem;
|
|
4379
4390
|
overflow: hidden;
|
|
@@ -4383,11 +4394,18 @@ html:lang(ar) .zen-toast__header {
|
|
|
4383
4394
|
justify-self: end;
|
|
4384
4395
|
}
|
|
4385
4396
|
.zen-toast__progress {
|
|
4386
|
-
|
|
4397
|
+
justify-self: start;
|
|
4398
|
+
border-start-start-radius: 4px;
|
|
4399
|
+
border-start-end-radius: 4px;
|
|
4400
|
+
border-end-start-radius: 0;
|
|
4401
|
+
border-end-end-radius: 0;
|
|
4387
4402
|
transition: width 0.3s linear;
|
|
4388
4403
|
}
|
|
4389
4404
|
.zen-toast__progress--active {
|
|
4390
|
-
border-radius: 4px
|
|
4405
|
+
border-start-start-radius: 4px;
|
|
4406
|
+
border-start-end-radius: 0;
|
|
4407
|
+
border-end-start-radius: 0;
|
|
4408
|
+
border-end-end-radius: 0;
|
|
4391
4409
|
}
|
|
4392
4410
|
.zen-toast__progress--info {
|
|
4393
4411
|
background-color: var(--accents-general--detail);
|
|
@@ -4395,6 +4413,9 @@ html:lang(ar) .zen-toast__header {
|
|
|
4395
4413
|
.zen-toast__progress--success {
|
|
4396
4414
|
background-color: var(--accents-success--detail);
|
|
4397
4415
|
}
|
|
4416
|
+
.zen-toast__progress--error {
|
|
4417
|
+
background-color: var(--accents-error--detail);
|
|
4418
|
+
}
|
|
4398
4419
|
.zen-alert {
|
|
4399
4420
|
box-sizing: border-box;
|
|
4400
4421
|
font-family: Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
|
|
@@ -5483,12 +5504,10 @@ html:lang(ar) .zen-checkbox__label-text {
|
|
|
5483
5504
|
.zen-checkbox:has(.zen-checkbox__input:disabled) .zen-checkbox__label {
|
|
5484
5505
|
fill: var(--text-reverse-primary);
|
|
5485
5506
|
color: var(--text-button-disabled);
|
|
5486
|
-
cursor: default;
|
|
5487
5507
|
}
|
|
5488
5508
|
.zen-checkbox:has(.zen-checkbox__input:disabled) .zen-checkbox__box {
|
|
5489
5509
|
border-color: var(--borders-general);
|
|
5490
5510
|
background-color: var(--backgrounds-field-disabled);
|
|
5491
|
-
cursor: default;
|
|
5492
5511
|
}
|
|
5493
5512
|
.zen-checkbox:has(.zen-checkbox__input:disabled:checked) .zen-checkbox__box,
|
|
5494
5513
|
.zen-checkbox:has(.zen-checkbox__input:disabled:indeterminate) .zen-checkbox__box {
|
|
@@ -8203,11 +8222,6 @@ html:lang(ar) .zen-checkbox-list-with-action__label {
|
|
|
8203
8222
|
color: var(--text-hyperlink);
|
|
8204
8223
|
fill: var(--text-hyperlink);
|
|
8205
8224
|
}
|
|
8206
|
-
.zen-checkbox-list-with-action__label--action:disabled {
|
|
8207
|
-
cursor: default;
|
|
8208
|
-
color: var(--text-button-disabled);
|
|
8209
|
-
fill: var(--text-button-disabled);
|
|
8210
|
-
}
|
|
8211
8225
|
.zen-checkbox-list-with-action__label-text {
|
|
8212
8226
|
display: flex;
|
|
8213
8227
|
flex-grow: 1;
|
|
@@ -12826,37 +12840,37 @@ html:lang(ar) .zen-radio__wrapper--mobile .zen-radio__label {
|
|
|
12826
12840
|
.zen-alerts {
|
|
12827
12841
|
position: fixed;
|
|
12828
12842
|
top: 0;
|
|
12829
|
-
|
|
12843
|
+
inset-inline-end: 0;
|
|
12830
12844
|
z-index: 11020;
|
|
12831
12845
|
display: grid;
|
|
12832
12846
|
gap: 16px;
|
|
12833
12847
|
margin-top: 48px;
|
|
12834
|
-
padding-
|
|
12848
|
+
padding-inline-end: 24px;
|
|
12835
12849
|
}
|
|
12836
12850
|
.zen-alerts--mobile {
|
|
12837
12851
|
width: 100%;
|
|
12838
12852
|
gap: 8px;
|
|
12839
12853
|
margin-top: 40px;
|
|
12840
|
-
padding-
|
|
12841
|
-
padding-
|
|
12854
|
+
padding-inline-end: 12px;
|
|
12855
|
+
padding-inline-start: 12px;
|
|
12842
12856
|
box-sizing: border-box;
|
|
12843
12857
|
}
|
|
12844
12858
|
.zen-toasts {
|
|
12845
12859
|
position: fixed;
|
|
12846
12860
|
bottom: 0;
|
|
12847
|
-
|
|
12861
|
+
inset-inline-end: 0;
|
|
12848
12862
|
z-index: 11020;
|
|
12849
12863
|
display: grid;
|
|
12850
12864
|
gap: 16px;
|
|
12851
12865
|
margin-bottom: 32px;
|
|
12852
|
-
padding-
|
|
12866
|
+
padding-inline-end: 24px;
|
|
12853
12867
|
}
|
|
12854
12868
|
.zen-toasts--mobile {
|
|
12855
12869
|
width: 100%;
|
|
12856
12870
|
gap: 8px;
|
|
12857
12871
|
margin-bottom: 16px;
|
|
12858
|
-
padding-
|
|
12859
|
-
padding-
|
|
12872
|
+
padding-inline-end: 12px;
|
|
12873
|
+
padding-inline-start: 12px;
|
|
12860
12874
|
box-sizing: border-box;
|
|
12861
12875
|
}
|
|
12862
12876
|
@keyframes waiting {
|
|
@@ -13247,17 +13261,50 @@ html:lang(ar) .zen-file-upload__file-name {
|
|
|
13247
13261
|
}
|
|
13248
13262
|
}
|
|
13249
13263
|
.zen-filters {
|
|
13250
|
-
|
|
13264
|
+
display: flex;
|
|
13265
|
+
align-items: center;
|
|
13266
|
+
gap: 0.5rem;
|
|
13267
|
+
width: 100%;
|
|
13251
13268
|
box-sizing: border-box;
|
|
13252
13269
|
}
|
|
13253
13270
|
.zen-filters * {
|
|
13254
13271
|
box-sizing: border-box;
|
|
13255
13272
|
}
|
|
13273
|
+
.zen-filters .zen-filters-search {
|
|
13274
|
+
flex-grow: 0;
|
|
13275
|
+
flex-shrink: 0;
|
|
13276
|
+
margin: 0;
|
|
13277
|
+
width: 11.25rem;
|
|
13278
|
+
}
|
|
13279
|
+
.zen-filters--mobile {
|
|
13280
|
+
flex-wrap: nowrap;
|
|
13281
|
+
overflow: auto hidden;
|
|
13282
|
+
scrollbar-width: none;
|
|
13283
|
+
-ms-overflow-style: none;
|
|
13284
|
+
}
|
|
13285
|
+
.zen-filters--mobile::-webkit-scrollbar {
|
|
13286
|
+
display: none;
|
|
13287
|
+
}
|
|
13288
|
+
.zen-filters--mobile .zen-filters__main-row--mobile {
|
|
13289
|
+
flex-shrink: 0;
|
|
13290
|
+
}
|
|
13291
|
+
.zen-filters--mobile .zen-filters-container {
|
|
13292
|
+
flex-shrink: 0;
|
|
13293
|
+
flex-grow: 0;
|
|
13294
|
+
flex-wrap: nowrap;
|
|
13295
|
+
width: auto;
|
|
13296
|
+
min-width: unset;
|
|
13297
|
+
}
|
|
13298
|
+
.zen-filters--mobile .zen-filters-container__mobile-scroll-wrapper {
|
|
13299
|
+
overflow: visible;
|
|
13300
|
+
width: auto;
|
|
13301
|
+
flex-shrink: 0;
|
|
13302
|
+
}
|
|
13256
13303
|
.zen-filters__main-row {
|
|
13257
13304
|
display: flex;
|
|
13258
13305
|
align-items: center;
|
|
13259
13306
|
box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.15);
|
|
13260
|
-
border-radius:
|
|
13307
|
+
border-radius: 999px;
|
|
13261
13308
|
border: var(--border-width-default) solid var(--borders-general);
|
|
13262
13309
|
background-color: var(--backgrounds-main);
|
|
13263
13310
|
}
|
|
@@ -13273,6 +13320,12 @@ html:lang(ar) .zen-file-upload__file-name {
|
|
|
13273
13320
|
.zen-filters__main-row--initial {
|
|
13274
13321
|
view-transition-name: expand-panel;
|
|
13275
13322
|
}
|
|
13323
|
+
.zen-filters__main-row--mobile {
|
|
13324
|
+
width: auto;
|
|
13325
|
+
}
|
|
13326
|
+
.zen-filters__main-row--mobile .zen-filters-search {
|
|
13327
|
+
width: auto;
|
|
13328
|
+
}
|
|
13276
13329
|
.zen-filters__select-trigger {
|
|
13277
13330
|
width: auto;
|
|
13278
13331
|
flex-shrink: 0;
|
|
@@ -13319,39 +13372,53 @@ html:lang(ar) .zen-file-upload__file-name {
|
|
|
13319
13372
|
}
|
|
13320
13373
|
.zen-filters__search .zen-search-input__input {
|
|
13321
13374
|
border: none;
|
|
13322
|
-
|
|
13323
|
-
|
|
13324
|
-
|
|
13375
|
+
border-radius: 999px;
|
|
13376
|
+
display: flex;
|
|
13377
|
+
}
|
|
13378
|
+
.zen-filters__search-with-pills {
|
|
13379
|
+
border-radius: 999px;
|
|
13325
13380
|
}
|
|
13326
|
-
.zen-filters-popup.zen-filters-popup
|
|
13381
|
+
.zen-filters-popup.zen-filters-popup {
|
|
13327
13382
|
box-sizing: border-box;
|
|
13328
|
-
|
|
13329
|
-
|
|
13383
|
+
border-radius: 0.5rem;
|
|
13384
|
+
overflow: hidden;
|
|
13385
|
+
display: flex;
|
|
13386
|
+
flex-direction: column;
|
|
13387
|
+
width: 28.125rem;
|
|
13388
|
+
max-width: 100%;
|
|
13330
13389
|
view-transition-name: expand-panel;
|
|
13390
|
+
padding: 0;
|
|
13331
13391
|
}
|
|
13332
|
-
.zen-filters-popup.zen-filters-popup
|
|
13392
|
+
.zen-filters-popup.zen-filters-popup * {
|
|
13333
13393
|
box-sizing: border-box;
|
|
13334
13394
|
}
|
|
13335
13395
|
.zen-filters-popup__first-row {
|
|
13336
13396
|
display: flex;
|
|
13337
|
-
justify-content: space-between;
|
|
13338
13397
|
align-items: center;
|
|
13339
|
-
|
|
13340
|
-
padding: 0;
|
|
13398
|
+
border-block-end: var(--border-width-default) solid var(--borders-general);
|
|
13341
13399
|
}
|
|
13342
|
-
.zen-filters-popup__first-row
|
|
13343
|
-
|
|
13400
|
+
.zen-filters-popup__first-row .zen-filters-search {
|
|
13401
|
+
flex-grow: 1;
|
|
13402
|
+
margin: 0;
|
|
13403
|
+
width: 100%;
|
|
13344
13404
|
}
|
|
13345
|
-
.zen-filters-
|
|
13346
|
-
|
|
13347
|
-
padding: 1rem 0;
|
|
13405
|
+
.zen-filters-popup__first-row .zen-search-input__close-button--visible {
|
|
13406
|
+
visibility: visible;
|
|
13348
13407
|
}
|
|
13349
|
-
.zen-filters-popup__second-row
|
|
13408
|
+
.zen-filters-popup__second-row {
|
|
13350
13409
|
border-block-start: none;
|
|
13351
13410
|
padding: 0;
|
|
13411
|
+
display: flex;
|
|
13412
|
+
flex-direction: column;
|
|
13413
|
+
flex: 1;
|
|
13414
|
+
min-height: 0;
|
|
13415
|
+
overflow-y: hidden;
|
|
13352
13416
|
}
|
|
13353
13417
|
.zen-filters-popup__content {
|
|
13354
13418
|
display: flex;
|
|
13419
|
+
flex: 1;
|
|
13420
|
+
min-height: 0;
|
|
13421
|
+
overflow: hidden;
|
|
13355
13422
|
}
|
|
13356
13423
|
.zen-filters-popup__content .zen-filters-popup__left-panel {
|
|
13357
13424
|
display: flex;
|
|
@@ -13383,21 +13450,44 @@ html:lang(ar) .zen-file-upload__file-name {
|
|
|
13383
13450
|
flex-direction: row;
|
|
13384
13451
|
flex-wrap: wrap;
|
|
13385
13452
|
gap: 0.25rem;
|
|
13386
|
-
margin-block-start: 0
|
|
13453
|
+
margin-block-start: 0;
|
|
13387
13454
|
padding: 0.5rem 0;
|
|
13388
13455
|
}
|
|
13389
|
-
.zen-filters-
|
|
13390
|
-
|
|
13391
|
-
|
|
13456
|
+
.zen-filters-container .zen-chip--default {
|
|
13457
|
+
background-color: var(--backgrounds-main);
|
|
13458
|
+
color: var(--text-secondary);
|
|
13459
|
+
fill: var(--text-secondary);
|
|
13460
|
+
}
|
|
13461
|
+
.zen-filters-container .zen-chip--default:hover {
|
|
13462
|
+
background-color: var(--backgrounds-content-1);
|
|
13463
|
+
}
|
|
13464
|
+
.zen-filters-container .zen-chip--active {
|
|
13465
|
+
background-color: var(--accents-general--main);
|
|
13466
|
+
color: var(--action-primary--active);
|
|
13467
|
+
fill: var(--action-primary--active);
|
|
13468
|
+
border-color: var(--action-primary--active);
|
|
13469
|
+
}
|
|
13470
|
+
.zen-filters-container .zen-chip--active:hover {
|
|
13471
|
+
border-color: var(--action-primary--active);
|
|
13472
|
+
}
|
|
13473
|
+
.zen-filters-container .zen-chip--accent {
|
|
13474
|
+
background-color: var(--action-primary--active);
|
|
13475
|
+
color: var(--accents-general--main);
|
|
13476
|
+
fill: var(--accents-general--main);
|
|
13477
|
+
border-color: var(--action-primary--active);
|
|
13392
13478
|
}
|
|
13393
|
-
.zen-filters-
|
|
13394
|
-
border:
|
|
13479
|
+
.zen-filters-container__save-chip.zen-chip--active {
|
|
13480
|
+
border-color: var(--borders-general);
|
|
13395
13481
|
}
|
|
13396
13482
|
.zen-filters-container.zen-filters-container--mobile {
|
|
13397
13483
|
padding: 0;
|
|
13398
13484
|
}
|
|
13485
|
+
.zen-filters-container.zen-filters-container--mobile .zen-chip {
|
|
13486
|
+
height: 40px;
|
|
13487
|
+
padding-block: 0.75rem;
|
|
13488
|
+
padding-inline: 0.5rem;
|
|
13489
|
+
}
|
|
13399
13490
|
.zen-filters-container__mobile-scroll-wrapper {
|
|
13400
|
-
margin-inline-start: 0.5rem;
|
|
13401
13491
|
padding: 0.125rem;
|
|
13402
13492
|
display: flex;
|
|
13403
13493
|
flex-direction: row;
|
|
@@ -13716,7 +13806,8 @@ html:lang(ar) .zen-file-upload__file-name {
|
|
|
13716
13806
|
font-size: 0.75rem;
|
|
13717
13807
|
border: none;
|
|
13718
13808
|
outline: none;
|
|
13719
|
-
padding-
|
|
13809
|
+
padding-block: 0;
|
|
13810
|
+
padding-inline: 0 0.3125rem;
|
|
13720
13811
|
-webkit-appearance: none;
|
|
13721
13812
|
appearance: none;
|
|
13722
13813
|
background-color: inherit;
|
|
@@ -14638,8 +14729,9 @@ html:lang(ar) .zen-list-item__secondary {
|
|
|
14638
14729
|
justify-content: center;
|
|
14639
14730
|
}
|
|
14640
14731
|
.zen-filters-search-list {
|
|
14641
|
-
|
|
14642
|
-
min-height:
|
|
14732
|
+
flex: 1;
|
|
14733
|
+
min-height: 0;
|
|
14734
|
+
overflow-y: auto;
|
|
14643
14735
|
}
|
|
14644
14736
|
.zen-filters-search-list--mobile {
|
|
14645
14737
|
padding: 1rem 0;
|
|
@@ -14649,8 +14741,8 @@ html:lang(ar) .zen-list-item__secondary {
|
|
|
14649
14741
|
display: flex;
|
|
14650
14742
|
align-items: center;
|
|
14651
14743
|
justify-content: space-between;
|
|
14652
|
-
margin-block:
|
|
14653
|
-
margin-inline:
|
|
14744
|
+
margin-block: 1rem;
|
|
14745
|
+
margin-inline: 1rem;
|
|
14654
14746
|
}
|
|
14655
14747
|
.zen-filters-search-list__header-title {
|
|
14656
14748
|
font-family: Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
|
|
@@ -15156,7 +15248,8 @@ html:lang(ar) .zen-page-header--mobile .zen-page-header__page-name {
|
|
|
15156
15248
|
overflow-y: hidden;
|
|
15157
15249
|
scrollbar-width: none;
|
|
15158
15250
|
-ms-overflow-style: none;
|
|
15159
|
-
padding: 0.0625rem;
|
|
15251
|
+
padding-block-start: 0.0625rem;
|
|
15252
|
+
padding-inline: 0.0625rem;
|
|
15160
15253
|
}
|
|
15161
15254
|
.zen-tabs__scrollable::-webkit-scrollbar {
|
|
15162
15255
|
display: none;
|
|
@@ -16337,19 +16430,25 @@ html:lang(ar) .zen-filters-saved-popup__content.zen-filters-saved-popup__content
|
|
|
16337
16430
|
flex-grow: 1;
|
|
16338
16431
|
margin: 0 0.75rem;
|
|
16339
16432
|
}
|
|
16433
|
+
.zen-filters-search__search-input {
|
|
16434
|
+
flex: 1;
|
|
16435
|
+
min-width: 0;
|
|
16436
|
+
}
|
|
16340
16437
|
.zen-filters-search__selected {
|
|
16341
16438
|
display: flex;
|
|
16342
16439
|
gap: 0.5rem;
|
|
16343
16440
|
flex-wrap: nowrap;
|
|
16344
16441
|
align-items: center;
|
|
16345
|
-
margin-inline-
|
|
16346
|
-
|
|
16442
|
+
margin-inline-end: 0.5rem;
|
|
16443
|
+
flex-shrink: 0;
|
|
16347
16444
|
}
|
|
16348
16445
|
.zen-filters-search__selected-item {
|
|
16349
16446
|
max-width: 11.3125rem;
|
|
16350
16447
|
}
|
|
16351
16448
|
.zen-filters-search__selected-item--more {
|
|
16352
16449
|
flex-shrink: 0;
|
|
16450
|
+
min-width: 1.375rem;
|
|
16451
|
+
justify-content: center;
|
|
16353
16452
|
}
|
|
16354
16453
|
.zen-filters-search.zen-filters-popup__search-with-pills.zen-filters-search--mobile {
|
|
16355
16454
|
margin: 0;
|
|
@@ -16360,6 +16459,30 @@ html:lang(ar) .zen-filters-saved-popup__content.zen-filters-saved-popup__content
|
|
|
16360
16459
|
.zen-filters-search.zen-filters-popup__search-with-pills.zen-filters-search--mobile .zen-filters-search__selected {
|
|
16361
16460
|
flex-shrink: 0;
|
|
16362
16461
|
}
|
|
16462
|
+
.zen-filters-search--mobile {
|
|
16463
|
+
margin: 0;
|
|
16464
|
+
}
|
|
16465
|
+
.zen-filters-search__mobile-trigger {
|
|
16466
|
+
display: flex;
|
|
16467
|
+
align-items: center;
|
|
16468
|
+
justify-content: center;
|
|
16469
|
+
background: none;
|
|
16470
|
+
border: none;
|
|
16471
|
+
cursor: pointer;
|
|
16472
|
+
padding: 0 0.5rem;
|
|
16473
|
+
width: 2.5rem;
|
|
16474
|
+
height: 2.5rem;
|
|
16475
|
+
color: inherit;
|
|
16476
|
+
fill: currentcolor;
|
|
16477
|
+
flex-shrink: 0;
|
|
16478
|
+
}
|
|
16479
|
+
.zen-filters-search__mobile-trigger:focus-visible {
|
|
16480
|
+
outline: var(--border-width-default) solid var(--borders-form-field--active);
|
|
16481
|
+
border-radius: 999px;
|
|
16482
|
+
}
|
|
16483
|
+
.zen-filters-search__mobile-trigger-icon {
|
|
16484
|
+
flex-shrink: 0;
|
|
16485
|
+
}
|
|
16363
16486
|
.zen-side-panel-filters {
|
|
16364
16487
|
box-sizing: border-box;
|
|
16365
16488
|
border-radius: var(--border-radius-default);
|
|
@@ -16555,7 +16678,8 @@ html:lang(ar) .zen-side-panel-filters__item-label--mobile {
|
|
|
16555
16678
|
}
|
|
16556
16679
|
}
|
|
16557
16680
|
.zen-filters-select-compact {
|
|
16558
|
-
padding: 0.25rem
|
|
16681
|
+
padding-block: 1rem 0.25rem;
|
|
16682
|
+
padding-inline: 1rem;
|
|
16559
16683
|
width: 100%;
|
|
16560
16684
|
overflow-x: auto;
|
|
16561
16685
|
-ms-overflow-style: none;
|
|
@@ -37,6 +37,15 @@ export function getInterpolatedValue(xScale, data, datasetIndex, xPixel) {
|
|
|
37
37
|
if (x1 === x2) {
|
|
38
38
|
return y1;
|
|
39
39
|
}
|
|
40
|
+
// Sub-pixel tolerance: element.x (from Chart.js) and xScale.getPixelForValue()
|
|
41
|
+
// can disagree by a fraction of a pixel, causing the cursor to land just past a
|
|
42
|
+
// data point and interpolate with the next segment instead of returning the exact value.
|
|
43
|
+
if (Math.abs(x - x1) < 0.5) {
|
|
44
|
+
return y1;
|
|
45
|
+
}
|
|
46
|
+
if (Math.abs(x - x2) < 0.5) {
|
|
47
|
+
return y2;
|
|
48
|
+
}
|
|
40
49
|
const interpolatedY = y1 + ((y2 - y1) * (x - x1)) / (x2 - x1);
|
|
41
50
|
return interpolatedY;
|
|
42
51
|
}
|
|
@@ -52,32 +52,9 @@ export const LinePlugin = (containerId, options, isDark) => ({
|
|
|
52
52
|
const y = chart.verticalLine.y;
|
|
53
53
|
const topY = chart.chartArea.top;
|
|
54
54
|
const bottomY = chart.chartArea.bottom;
|
|
55
|
+
drawLine(ctx, x, topY, bottomY);
|
|
55
56
|
const datasets = chart.data.datasets;
|
|
56
57
|
let lowestValueY = Infinity;
|
|
57
|
-
const xScale = chart.scales.x;
|
|
58
|
-
let snappedX = x;
|
|
59
|
-
let closestDist = Infinity;
|
|
60
|
-
datasets.forEach((dataset, dsIndex) => {
|
|
61
|
-
if (!chart.isDatasetVisible(dsIndex)) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
if (chart.getDatasetMeta(dsIndex).type !== "line") {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
const dataPoints = dataset.data;
|
|
68
|
-
for (const point of dataPoints) {
|
|
69
|
-
if (point.y === null) {
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
const px = xScale.getPixelForValue(point.x);
|
|
73
|
-
const dist = Math.abs(px - x);
|
|
74
|
-
if (dist < closestDist) {
|
|
75
|
-
closestDist = dist;
|
|
76
|
-
snappedX = px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
drawLine(ctx, snappedX, topY, bottomY);
|
|
81
58
|
const items = datasets
|
|
82
59
|
.map((dataset, dsIndex) => {
|
|
83
60
|
if (!chart.isDatasetVisible(dsIndex)) {
|
|
@@ -86,7 +63,8 @@ export const LinePlugin = (containerId, options, isDark) => ({
|
|
|
86
63
|
if (chart.getDatasetMeta(dsIndex).type !== "line") {
|
|
87
64
|
return undefined;
|
|
88
65
|
}
|
|
89
|
-
const
|
|
66
|
+
const xScale = chart.scales.x;
|
|
67
|
+
const value = getInterpolatedValue(xScale, chart.data, dsIndex, x);
|
|
90
68
|
const yAxisID = dataset.yAxisID || "y";
|
|
91
69
|
const yScale = chart.scales[yAxisID];
|
|
92
70
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
@@ -114,8 +92,8 @@ export const LinePlugin = (containerId, options, isDark) => ({
|
|
|
114
92
|
return;
|
|
115
93
|
}
|
|
116
94
|
const chartRect = chart.canvas.getBoundingClientRect();
|
|
117
|
-
const top = chartRect.top + (lowestValueY
|
|
118
|
-
const left = chartRect.left +
|
|
95
|
+
const top = chartRect.top + (lowestValueY || y);
|
|
96
|
+
const left = chartRect.left + x;
|
|
119
97
|
if (zen.document === undefined) {
|
|
120
98
|
return;
|
|
121
99
|
}
|
|
@@ -132,8 +110,8 @@ export const LinePlugin = (containerId, options, isDark) => ({
|
|
|
132
110
|
xLabel = scaleLabels[elementIdx];
|
|
133
111
|
}
|
|
134
112
|
else {
|
|
135
|
-
const xValue = chart.scales.x.getValueForPixel(
|
|
136
|
-
xLabel = xValue
|
|
113
|
+
const xValue = chart.scales.x.getValueForPixel(x);
|
|
114
|
+
xLabel = xValue ? chart.scales.x.getLabelForValue(xValue) : undefined;
|
|
137
115
|
}
|
|
138
116
|
renderTooltip(containerId, left + scrollLeft, top + scrollTop, "top", items, options === null || options === void 0 ? void 0 : options.title, options && options.subtitle !== undefined ? options.subtitle : xLabel, (options === null || options === void 0 ? void 0 : options.note) || undefined, isDark);
|
|
139
117
|
}
|
package/esm/dropdown/dropdown.js
CHANGED
|
@@ -20,4 +20,4 @@ export const Dropdown = (_a) => {
|
|
|
20
20
|
var props = __rest(_a, []);
|
|
21
21
|
return _jsx(DropDownFormField, Object.assign({}, props));
|
|
22
22
|
};
|
|
23
|
-
export const TRANSLATIONS = ["Filter by group", "Open filter", "Clear search", "Select all", "Clear", "Back", "No data"];
|
|
23
|
+
export const TRANSLATIONS = ["Filter by group", "Open filter", "Clear search", "Select all", "Deselect all", "Clear", "Back", "No data"];
|
|
@@ -13,8 +13,7 @@ export interface IDropdownList extends IZenComponentProps {
|
|
|
13
13
|
onSelect: (id: string) => void;
|
|
14
14
|
onSingleSelect: (reset: boolean, selected?: string) => void;
|
|
15
15
|
backButtonName?: string;
|
|
16
|
-
|
|
17
|
-
shouldBlockItems?: boolean;
|
|
16
|
+
isAllSelected: boolean;
|
|
18
17
|
listData: ICheckboxListWithActionOption[] | ISelectListItem[];
|
|
19
18
|
isWithFooter: boolean;
|
|
20
19
|
width?: number;
|
|
@@ -40,6 +39,6 @@ interface IDropdownEmptyList extends Pick<IDropdownList, "className" | "width" |
|
|
|
40
39
|
hasError: boolean;
|
|
41
40
|
}
|
|
42
41
|
export declare const EmptyList: ({ className, width, onClearClick, onApplyClick, onCancelClick, hasApplyButton, isApplyDisabled, isClearButtonDisabled, isWithFooter, hasError }: IDropdownEmptyList) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
export declare const DropdownList: ({ onBackButtonClick, onSelectAllClick, onClearClick, onApplyClick, onCancelClick, onChange, onSelect, onSingleSelect, listData,
|
|
42
|
+
export declare const DropdownList: ({ onBackButtonClick, onSelectAllClick, onClearClick, onApplyClick, onCancelClick, onChange, onSelect, onSingleSelect, listData, isAllSelected, backButtonName, width, minWidth, isSelectAllButtonDisable, hasSelectAllButton, filterName, isMultiselect, hasApplyButton, isApplyDisabled, isClearButtonDisabled, activeValue, forceSelection, isWithFooter, isMobile, handleCheckboxChange, checkboxLabel, isChecked, listElementRef, listId }: IDropdownList) => import("react/jsx-runtime").JSX.Element;
|
|
44
43
|
export declare const TRANSLATIONS: string[];
|
|
45
44
|
export {};
|