@refinitiv-ui/efx-grid 6.0.18 → 6.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/core/dist/core.js +40 -23
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataView.d.ts +4 -0
- package/lib/core/es6/data/DataView.js +19 -1
- package/lib/core/es6/data/SegmentCollection.js +20 -8
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/core/es6/grid/components/Cell.js +0 -13
- package/lib/filter-dialog/lib/filter-dialog.js +149 -131
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +22 -23
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/tr-grid-checkbox/es6/Checkbox.js +63 -12
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +70 -110
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +1 -1
- package/lib/tr-grid-filter-input/es6/FilterInput.js +10 -9
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +35 -29
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +5 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +30 -0
- package/lib/tr-grid-util/es6/Popup.js +5 -1
- package/lib/types/es6/Core/data/DataView.d.ts +4 -0
- package/lib/types/es6/FilterInput.d.ts +1 -0
- package/lib/types/es6/Pagination.d.ts +1 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +1 -1
- package/lib/versions.json +8 -8
- package/package.json +1 -1
@@ -126,12 +126,15 @@ class FilterDialog extends BasicElement {
|
|
126
126
|
}
|
127
127
|
|
128
128
|
static get is() {
|
129
|
-
return
|
129
|
+
return "filter-dialog";
|
130
130
|
}
|
131
131
|
|
132
132
|
constructor() {
|
133
133
|
super();
|
134
134
|
|
135
|
+
this._updateDialogHeight = this._updateDialogHeight.bind(this);
|
136
|
+
this._afterDialogOpened = this._afterDialogOpened.bind(this);
|
137
|
+
|
135
138
|
this.lang = "en";
|
136
139
|
this._lang = "en";
|
137
140
|
this._translation = translation;
|
@@ -147,19 +150,21 @@ class FilterDialog extends BasicElement {
|
|
147
150
|
});
|
148
151
|
this._popup.enableUIBlocking(true);
|
149
152
|
this._dialogHeightTimerId = 0;
|
150
|
-
this._updateDialogHeight = this._updateDialogHeight.bind(this);
|
151
153
|
ElementObserver.addLanguageListener(this);
|
152
154
|
}
|
153
155
|
|
154
156
|
/**
|
155
|
-
|
156
|
-
|
157
|
-
|
157
|
+
* @private
|
158
|
+
* @param {Object} changedProperties
|
159
|
+
*/
|
158
160
|
update(changedProperties) {
|
159
161
|
|
160
162
|
if(changedProperties.has("lang")) {
|
161
163
|
this._lang = ElfUtil.toLangString(this.lang);
|
162
164
|
}
|
165
|
+
if(changedProperties.has("target")) {
|
166
|
+
this._popup.attachTo(this.target);
|
167
|
+
}
|
163
168
|
|
164
169
|
if(changedProperties.has("config")) {
|
165
170
|
var options = this.config;
|
@@ -182,6 +187,7 @@ class FilterDialog extends BasicElement {
|
|
182
187
|
|
183
188
|
if (options.target) {
|
184
189
|
this.target = options.target;
|
190
|
+
this._popup.attachTo(this.target);
|
185
191
|
}
|
186
192
|
|
187
193
|
if (typeof options.filterChanged === "function") {
|
@@ -224,9 +230,9 @@ class FilterDialog extends BasicElement {
|
|
224
230
|
}
|
225
231
|
|
226
232
|
/** A `TemplateResult` that will be used to render the updated internal template
|
227
|
-
|
228
|
-
|
229
|
-
|
233
|
+
* @private
|
234
|
+
* @return {*}
|
235
|
+
*/
|
230
236
|
render() {
|
231
237
|
var lang = this._translation[this._lang] ? this._lang : "en";
|
232
238
|
var t = this._translation[lang];
|
@@ -294,9 +300,9 @@ class FilterDialog extends BasicElement {
|
|
294
300
|
}
|
295
301
|
|
296
302
|
/**
|
297
|
-
|
298
|
-
|
299
|
-
|
303
|
+
* @private
|
304
|
+
* @override
|
305
|
+
*/
|
300
306
|
firstUpdated(changedProps) {
|
301
307
|
this._initialized = true;
|
302
308
|
|
@@ -356,13 +362,13 @@ class FilterDialog extends BasicElement {
|
|
356
362
|
}
|
357
363
|
|
358
364
|
/**
|
359
|
-
|
360
|
-
|
361
|
-
|
365
|
+
* @private
|
366
|
+
* @override
|
367
|
+
*/
|
362
368
|
updated(changedProps) {
|
363
369
|
// Update Sort UI
|
364
|
-
var isHiddenSortUIChanged = changedProps.has(
|
365
|
-
var isHiddenFilterUIChanged = changedProps.has(
|
370
|
+
var isHiddenSortUIChanged = changedProps.has("hiddenSortUI");
|
371
|
+
var isHiddenFilterUIChanged = changedProps.has("hiddenFilterUI");
|
366
372
|
if (isHiddenSortUIChanged) {
|
367
373
|
let pn = this._sortUI.parentNode;
|
368
374
|
if (this.hiddenSortUI) {
|
@@ -388,47 +394,54 @@ class FilterDialog extends BasicElement {
|
|
388
394
|
if (pn) {
|
389
395
|
pn.removeChild(this._filterUI);
|
390
396
|
}
|
391
|
-
this._dialogContent.classList.add(
|
397
|
+
this._dialogContent.classList.add("no-filter-ui");
|
392
398
|
} else {
|
393
399
|
if (!pn) {
|
394
400
|
this._dialogContent.appendChild(this._filterUI);
|
395
401
|
}
|
396
|
-
this._dialogContent.classList.remove(
|
402
|
+
this._dialogContent.classList.remove("no-filter-ui");
|
397
403
|
}
|
398
404
|
}
|
399
405
|
|
400
406
|
if (isHiddenSortUIChanged || isHiddenFilterUIChanged) {
|
401
407
|
var isHide = this.hiddenSortUI || this.hiddenFilterUI;
|
402
|
-
this._separator.classList.toggle(
|
408
|
+
this._separator.classList.toggle("hide", isHide);
|
403
409
|
}
|
404
410
|
|
405
|
-
if (changedProps.has(
|
411
|
+
if (changedProps.has("isShown")) {
|
406
412
|
if (this.isShown) {
|
407
|
-
this._popup.attachTo(this.target, "bottom"); // This will cause popup to recalculate its position
|
408
413
|
this._updateUIState(); // should updateUIState everytime popup being show
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
414
|
+
this._popup.show(true); // Update positioning
|
415
|
+
setTimeout(this._afterDialogOpened, 0); //use setTimeout to make sure everything is rendered before focus
|
416
|
+
}
|
417
|
+
}
|
418
|
+
}
|
419
|
+
|
420
|
+
/**
|
421
|
+
* @private
|
422
|
+
*/
|
423
|
+
_afterDialogOpened() {
|
424
|
+
if(this.isShown) {
|
425
|
+
this._cancelBtn.focus(); // Keep focus on cancel button when open dialog
|
426
|
+
this._updateDialogHeight(true);
|
427
|
+
if(!this._firstRendered) {
|
428
|
+
this._firstRendered = true;
|
429
|
+
this._popup.show(true); // Update positioning
|
416
430
|
}
|
417
|
-
this._popup.show(this.isShown);
|
418
431
|
}
|
419
432
|
}
|
420
433
|
|
421
434
|
/** Initialize dialog
|
422
|
-
|
423
|
-
|
424
|
-
|
435
|
+
* @public
|
436
|
+
* @param {FilterDialog~Config} options - initial data
|
437
|
+
*/
|
425
438
|
init(options) {
|
426
439
|
this.config = options;
|
427
440
|
}
|
428
441
|
|
429
442
|
/** Show the dialog as a popup
|
430
|
-
|
431
|
-
|
443
|
+
* @public
|
444
|
+
*/
|
432
445
|
show() {
|
433
446
|
this._popup.appendChild(this); // To force first time initialization, focus is already included in updated()
|
434
447
|
|
@@ -436,62 +449,66 @@ class FilterDialog extends BasicElement {
|
|
436
449
|
}
|
437
450
|
|
438
451
|
/** Hide the dialog
|
439
|
-
|
440
|
-
|
452
|
+
* @public
|
453
|
+
*/
|
441
454
|
hide() {
|
442
455
|
this._popup.hide();
|
443
456
|
}
|
444
457
|
|
445
458
|
/**
|
446
|
-
|
447
|
-
|
459
|
+
* @private
|
460
|
+
*/
|
448
461
|
_onPopupShown() {
|
449
462
|
this.isShown = true; // To trigger update
|
450
463
|
}
|
451
464
|
/**
|
452
|
-
|
453
|
-
|
465
|
+
* @private
|
466
|
+
*/
|
454
467
|
_onPopupHidden() {
|
455
468
|
this.isShown = false; // For backward compatability
|
469
|
+
if (this._dialogHeightTimerId) {
|
470
|
+
clearTimeout(this._dialogHeightTimerId);
|
471
|
+
this._dialogHeightTimerId = 0;
|
472
|
+
}
|
456
473
|
}
|
457
474
|
|
458
475
|
/**
|
459
|
-
|
460
|
-
|
461
|
-
|
476
|
+
* @private
|
477
|
+
*/
|
478
|
+
_onWindowResize() {
|
462
479
|
if(!this._dialogHeightTimerId && this.isShown){
|
463
480
|
this._dialogHeightTimerId = setTimeout(this._updateDialogHeight, 500);
|
464
481
|
}
|
465
482
|
}
|
466
483
|
|
467
484
|
/**
|
468
|
-
|
469
|
-
|
470
|
-
|
485
|
+
* @public
|
486
|
+
* @param {string} val Sorting state "d" or "a"
|
487
|
+
*/
|
471
488
|
setSortState(val) {
|
472
489
|
this.sortState = (val) ? val.charAt(0).toLowerCase() : "";
|
473
490
|
}
|
474
491
|
|
475
492
|
/** Hide Sort UI block
|
476
|
-
|
477
|
-
|
478
|
-
|
493
|
+
* @public
|
494
|
+
* @param {boolean} val - value
|
495
|
+
*/
|
479
496
|
hideSortUI(val) {
|
480
497
|
this.hiddenSortUI = val;
|
481
498
|
}
|
482
499
|
|
483
500
|
/**
|
484
|
-
|
485
|
-
|
486
|
-
|
501
|
+
* @private
|
502
|
+
* @param {*} e
|
503
|
+
*/
|
487
504
|
_filterData(e) {
|
488
505
|
this._dataSelector.filter(e.detail.value);
|
489
506
|
}
|
490
507
|
|
491
508
|
/**
|
492
|
-
|
493
|
-
|
494
|
-
|
509
|
+
* @private
|
510
|
+
* @param {*} e
|
511
|
+
*/
|
495
512
|
_onCondSelectorKeyDown(e) {
|
496
513
|
if (e.keyCode == 13) {
|
497
514
|
e.stopPropagation();
|
@@ -499,10 +516,10 @@ class FilterDialog extends BasicElement {
|
|
499
516
|
}
|
500
517
|
|
501
518
|
/**
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
519
|
+
* Click on sort buttons
|
520
|
+
* @private
|
521
|
+
* @param {object} e - event
|
522
|
+
*/
|
506
523
|
_onClickSort(e) {
|
507
524
|
const tgt = e.target;
|
508
525
|
let sortState = "n";
|
@@ -516,7 +533,7 @@ class FilterDialog extends BasicElement {
|
|
516
533
|
}
|
517
534
|
this.sortState = sortState;
|
518
535
|
|
519
|
-
this.dispatchEvent(new CustomEvent(
|
536
|
+
this.dispatchEvent(new CustomEvent("sortChanged", {
|
520
537
|
detail: {
|
521
538
|
value: sortState
|
522
539
|
}
|
@@ -527,10 +544,10 @@ class FilterDialog extends BasicElement {
|
|
527
544
|
}
|
528
545
|
|
529
546
|
/**
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
547
|
+
* Click on Filter By Value Condition buttons
|
548
|
+
* @private
|
549
|
+
* @param {object} e - event
|
550
|
+
*/
|
534
551
|
_onClickFilter(e) {
|
535
552
|
const tgt = e.target;
|
536
553
|
const children = this._filterBtns.children;
|
@@ -538,13 +555,13 @@ class FilterDialog extends BasicElement {
|
|
538
555
|
e.preventDefault();
|
539
556
|
e.stopPropagation();
|
540
557
|
this._updateFilterModeSelectionUI();
|
541
|
-
this._updateDialogHeight();
|
558
|
+
this._updateDialogHeight(true);
|
542
559
|
}
|
543
560
|
|
544
561
|
/**
|
545
|
-
|
546
|
-
|
547
|
-
|
562
|
+
* @private
|
563
|
+
* @param {object} e - event
|
564
|
+
*/
|
548
565
|
_onDoneBtnClick(e) {
|
549
566
|
let context;
|
550
567
|
if (this._isAdvancedFilterMode()) {
|
@@ -626,17 +643,17 @@ class FilterDialog extends BasicElement {
|
|
626
643
|
}
|
627
644
|
|
628
645
|
/**
|
629
|
-
|
630
|
-
|
631
|
-
|
646
|
+
* @private
|
647
|
+
* @param {object} e - event
|
648
|
+
*/
|
632
649
|
_onCancelBtnClick(e) {
|
633
|
-
this.dispatchEvent(new CustomEvent(
|
650
|
+
this.dispatchEvent(new CustomEvent("cancel"));
|
634
651
|
this.hide();
|
635
652
|
}
|
636
653
|
|
637
654
|
/**
|
638
|
-
|
639
|
-
|
655
|
+
* @private
|
656
|
+
*/
|
640
657
|
_clearAdvanceFilterUI() {
|
641
658
|
var defaultVal = "";
|
642
659
|
var dateTimeType = toDateTimeType(this.fieldDataType);
|
@@ -662,8 +679,8 @@ class FilterDialog extends BasicElement {
|
|
662
679
|
}
|
663
680
|
}
|
664
681
|
/**
|
665
|
-
|
666
|
-
|
682
|
+
* @private
|
683
|
+
*/
|
667
684
|
_updateGeneralComboBoxes() {
|
668
685
|
if(this._initialized) {
|
669
686
|
var filterItems;
|
@@ -683,10 +700,10 @@ class FilterDialog extends BasicElement {
|
|
683
700
|
}
|
684
701
|
|
685
702
|
/**
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
703
|
+
* Filter is Advanced (By Condition) or Custom (By Value)
|
704
|
+
* @private
|
705
|
+
* @return {boolean}
|
706
|
+
*/
|
690
707
|
_isAdvancedFilterMode() {
|
691
708
|
const ch = this.filterMode ? this.filterMode.charAt(0).toLowerCase() : "";
|
692
709
|
// a - Advanced Filter by Condition; c - Custom Filter by Value
|
@@ -694,10 +711,10 @@ class FilterDialog extends BasicElement {
|
|
694
711
|
}
|
695
712
|
|
696
713
|
/**
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
714
|
+
* @private
|
715
|
+
* @param {Element} elem ef-combo-box element
|
716
|
+
* @param {string} defaultVal=""
|
717
|
+
*/
|
701
718
|
_clearValue(elem, defaultVal) {
|
702
719
|
if(elem.clearSelection) { // clearSelection is deprecated in ELF v4
|
703
720
|
elem.clearSelection();
|
@@ -706,34 +723,34 @@ class FilterDialog extends BasicElement {
|
|
706
723
|
// So wee need to remove free-text and re-set again
|
707
724
|
// to track bug https://jira.refinitiv.com/browse/ELF-1694
|
708
725
|
// TODO:: need to remove WORKAROUND after ELF-1694 fixed
|
709
|
-
var hasFreeTextMode = elem.getAttribute(
|
726
|
+
var hasFreeTextMode = elem.getAttribute("free-text") != null;
|
710
727
|
if (hasFreeTextMode) {
|
711
|
-
elem.removeAttribute(
|
728
|
+
elem.removeAttribute("free-text");
|
712
729
|
}
|
713
730
|
|
714
731
|
elem.value = defaultVal || "";
|
715
732
|
|
716
733
|
if (hasFreeTextMode) {
|
717
|
-
elem.setAttribute(
|
734
|
+
elem.setAttribute("free-text", "");
|
718
735
|
}
|
719
736
|
}
|
720
737
|
}
|
721
738
|
|
722
739
|
/** to prepare and sync state from config into all UI
|
723
|
-
|
724
|
-
|
740
|
+
* @private
|
741
|
+
*/
|
725
742
|
_updateUIState() {
|
726
743
|
this._updateFilterModeSelectionUI();
|
727
744
|
this._dataFilter.value = "";
|
728
|
-
this._dataSelector.filter(
|
745
|
+
this._dataSelector.filter("");
|
729
746
|
this._updateValueSelector();
|
730
747
|
this._updateAdvanceFilterUI();
|
731
748
|
this._updateSortButtonUI();
|
732
749
|
}
|
733
750
|
|
734
751
|
/**
|
735
|
-
|
736
|
-
|
752
|
+
* @private
|
753
|
+
*/
|
737
754
|
_updateAdvanceFilterUI() {
|
738
755
|
// Reset Advance Filter UIs
|
739
756
|
this._clearAdvanceFilterUI();
|
@@ -784,9 +801,14 @@ class FilterDialog extends BasicElement {
|
|
784
801
|
}
|
785
802
|
}
|
786
803
|
/**
|
787
|
-
|
788
|
-
|
789
|
-
|
804
|
+
* @private
|
805
|
+
* @param {boolean=} afterOpened
|
806
|
+
*/
|
807
|
+
_updateDialogHeight(afterOpened) {
|
808
|
+
if(!afterOpened) {
|
809
|
+
this._dialogHeightTimerId = 0;
|
810
|
+
}
|
811
|
+
|
790
812
|
this._rootContainer.classList.remove("compact");
|
791
813
|
this._rootContainer.style.height = "";
|
792
814
|
|
@@ -810,14 +832,10 @@ class FilterDialog extends BasicElement {
|
|
810
832
|
this._rootContainer.classList.add("compact");
|
811
833
|
}
|
812
834
|
}
|
813
|
-
|
814
|
-
if(this._dialogHeightTimerId){
|
815
|
-
this._dialogHeightTimerId = 0;
|
816
|
-
}
|
817
835
|
}
|
818
836
|
/**
|
819
|
-
|
820
|
-
|
837
|
+
* @private
|
838
|
+
*/
|
821
839
|
_updateValueSelector() {
|
822
840
|
this._dataSelector.data = this.data; // Preserve original referencing
|
823
841
|
|
@@ -834,10 +852,10 @@ class FilterDialog extends BasicElement {
|
|
834
852
|
this._generalComboBoxes[3].data = items.map(this._toComboBoxItem);
|
835
853
|
}
|
836
854
|
/**
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
855
|
+
* @private
|
856
|
+
* @param {*} obj
|
857
|
+
* @returns {Object}
|
858
|
+
*/
|
841
859
|
_toComboBoxItem(obj) {
|
842
860
|
let itemVal = (typeof obj === "string") ? obj : obj.title || "";
|
843
861
|
return {
|
@@ -847,11 +865,11 @@ class FilterDialog extends BasicElement {
|
|
847
865
|
}
|
848
866
|
|
849
867
|
/**
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
868
|
+
* Return date string in format yyyy-MM-dd
|
869
|
+
* @private
|
870
|
+
* @param {Object|string} date
|
871
|
+
* @return {string}
|
872
|
+
*/
|
855
873
|
_getDateString(date) {
|
856
874
|
var dateString = "";
|
857
875
|
var dateFormat = "yyyy-MM-dd";
|
@@ -864,12 +882,12 @@ class FilterDialog extends BasicElement {
|
|
864
882
|
}
|
865
883
|
|
866
884
|
/**
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
885
|
+
* Return date object
|
886
|
+
* @private
|
887
|
+
* @param {string} dateString // Date string in UTC format yyyy-MM-dd
|
888
|
+
* @return {Date}
|
889
|
+
*/
|
890
|
+
_getDateObject(dateString) {
|
873
891
|
var date = new Date(dateString);
|
874
892
|
if(date && this.useUTCTime == false){
|
875
893
|
date.setTime(date.getTime() + (date.getTimezoneOffset() * 60000)); // convert to local time
|
@@ -878,19 +896,19 @@ class FilterDialog extends BasicElement {
|
|
878
896
|
}
|
879
897
|
|
880
898
|
/**
|
881
|
-
|
882
|
-
|
883
|
-
|
899
|
+
* @private
|
900
|
+
* @return {Object}
|
901
|
+
*/
|
884
902
|
_getTranslation() {
|
885
|
-
var lang = this._translation[this._lang] ? this._lang :
|
903
|
+
var lang = this._translation[this._lang] ? this._lang : "en";
|
886
904
|
return this._translation[lang];
|
887
905
|
}
|
888
906
|
|
889
907
|
/**
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
908
|
+
* @private
|
909
|
+
* @param {Array} filters
|
910
|
+
* @return {Array}
|
911
|
+
*/
|
894
912
|
_translateFilters(filters) {
|
895
913
|
let trans = this._getTranslation();
|
896
914
|
var len = filters.length;
|
@@ -904,9 +922,9 @@ class FilterDialog extends BasicElement {
|
|
904
922
|
}
|
905
923
|
|
906
924
|
/**
|
907
|
-
|
908
|
-
|
909
|
-
|
925
|
+
* Set filter Visibilities of layout
|
926
|
+
* @private
|
927
|
+
*/
|
910
928
|
_updateFilterModeSelectionUI() {
|
911
929
|
// Filter By Value - Condition buttons
|
912
930
|
const children = this._filterBtns.children;
|
@@ -923,9 +941,9 @@ class FilterDialog extends BasicElement {
|
|
923
941
|
}
|
924
942
|
|
925
943
|
/**
|
926
|
-
|
927
|
-
|
928
|
-
|
944
|
+
* to update state of sort button
|
945
|
+
* @private
|
946
|
+
*/
|
929
947
|
_updateSortButtonUI() {
|
930
948
|
const sortState = this.sortState;
|
931
949
|
const children = this._sortBtns.children;
|
@@ -934,7 +952,7 @@ class FilterDialog extends BasicElement {
|
|
934
952
|
}
|
935
953
|
}
|
936
954
|
|
937
|
-
customElement(
|
955
|
+
customElement("filter-dialog")(FilterDialog);
|
938
956
|
|
939
957
|
export { FilterDialog };
|
940
958
|
export default FilterDialog;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import "./imports/native-elements.js";
|
2
2
|
|
3
3
|
|
4
|
-
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'checkbox-list', styles: ':host{display:block;scrollbar-face-color:#3e444f;scrollbar-shadow-color:#3e444f;scrollbar-highlight-color:#3e444f;scrollbar-arrow-color:#3e444f;scrollbar-track-color:#21242a;scrollbar-3dlight-color:#21242a;scrollbar-darkshadow-color:#21242a;scrollbar-color:#3e444f #21242a}:host .hidden{display:none}:host .select-btn{margin-top:0;margin-bottom:0;border-bottom:none}:host #container{border:1px solid #3e444f;overflow-y:auto;min-height:48px;flex-grow:1}:host .item-container{display:flex;width:100%;align-items:center}:host .item-label{margin-left:7px;min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .root{display:flex;flex-flow:column;overflow:hidden}::-webkit-scrollbar{width:15px;height:15px}::-webkit-scrollbar-button{background:0 0/1px 2px no-repeat #21242a;height:15px;width:15px;display:block}::-webkit-scrollbar-thumb{background:#3e444f;border-radius:8px;border:2px solid #21242a}::-webkit-scrollbar-thumb:hover{background:#b7bcc6}::-webkit-scrollbar-thumb:active{background:#707a8e}::-webkit-scrollbar-track{background:#21242a}::-webkit-scrollbar-corner{background:#21242a}::-webkit-scrollbar-button:end:decrement,::-webkit-scrollbar-button:start:increment{display:none}::-webkit-scrollbar-button:horizontal{background-size:2px 1px}::-webkit-scrollbar-button:vertical:start:decrement{background-image:linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f);background-position:12px 8.5px,11px 7.5px,10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 4.5px,5px 5.5px,4px 6.5px,3px 7.5px,2px 8.5px}::-webkit-scrollbar-button:vertical:start:decrement:hover{background-image:linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6);background-position:12px 8.5px,11px 7.5px,10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 4.5px,5px 5.5px,4px 6.5px,3px 7.5px,2px 8.5px}::-webkit-scrollbar-button:vertical:start:decrement:active{background-image:linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e);background-position:12px 8.5px,11px 7.5px,10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 4.5px,5px 5.5px,4px 6.5px,3px 7.5px,2px 8.5px}::-webkit-scrollbar-button:vertical:end:increment{background-image:linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f);background-position:12px 4.5px,11px 5.5px,10px 6.5px,9px 7.5px,8px 8.5px,7px 9.5px,6px 8.5px,5px 7.5px,4px 6.5px,3px 5.5px,2px 4.5px}::-webkit-scrollbar-button:vertical:end:increment:hover{background-image:linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6);background-position:12px 4.5px,11px 5.5px,10px 6.5px,9px 7.5px,8px 8.5px,7px 9.5px,6px 8.5px,5px 7.5px,4px 6.5px,3px 5.5px,2px 4.5px}::-webkit-scrollbar-button:vertical:end:increment:active{background-image:linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e);background-position:12px 4.5px,11px 5.5px,10px 6.5px,9px 7.5px,8px 8.5px,7px 9.5px,6px 8.5px,5px 7.5px,4px 6.5px,3px 5.5px,2px 4.5px}::-webkit-scrollbar-button:horizontal:start:decrement{background-image:linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f);background-position:8.5px 12px,7.5px 11px,6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,4.5px 6px,5.5px 5px,6.5px 4px,7.5px 3px,8.5px 2px}::-webkit-scrollbar-button:horizontal:start:decrement:hover{background-image:linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6);background-position:8.5px 12px,7.5px 11px,6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,4.5px 6px,5.5px 5px,6.5px 4px,7.5px 3px,8.5px 2px}::-webkit-scrollbar-button:horizontal:start:decrement:active{background-image:linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e);background-position:8.5px 12px,7.5px 11px,6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,4.5px 6px,5.5px 5px,6.5px 4px,7.5px 3px,8.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment{background-image:linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f);background-position:4.5px 12px,5.5px 11px,6.5px 10px,7.5px 9px,8.5px 8px,9.5px 7px,8.5px 6px,7.5px 5px,6.5px 4px,5.5px 3px,4.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment:hover{background-image:linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6);background-position:4.5px 12px,5.5px 11px,6.5px 10px,7.5px 9px,8.5px 8px,9.5px 7px,8.5px 6px,7.5px 5px,6.5px 4px,5.5px 3px,4.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment:active{background-image:linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e);background-position:4.5px 12px,5.5px 11px,6.5px 10px,7.5px 9px,8.5px 8px,9.5px 7px,8.5px 6px,7.5px 5px,6.5px 4px,5.5px 3px,4.5px 2px}' }}));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'filter-dialog', styles: ':host{display:block}:host *{margin-bottom:0;margin-top:0}:host .compact{padding-top:8px;padding-bottom:12px}:host .compact #filterAdvancedUI,:host .compact #filterValueUI{margin-top:5px}:host .compact #filterValueUI>*+*{margin-top:10px}:host .compact .input-group ef-combo-box+ef-combo-box,:host .compact .input-group ef-combo-box+ef-datetime-picker{margin-top:10px}:host .compact .input-group ef-combo-box+div.radio-group,:host .compact .input-group ef-datetime-picker+div.radio-group{margin-top:6px}:host .compact .input-group div.radio-group+ef-combo-box{margin-top:8px}:host .compact .cancel-ok{margin-top:12px}:host ef-panel{box-shadow:0 0 10px rgba(0,0,0,.5);padding-top:17px;padding-bottom:31px;display:block}:host label{line-height:18px;font-size:12px}:host hr{border-top:1px solid;margin-top:9px;margin-bottom:6px;width:100%}:host ef-radio-button{height:18px}:host #filterCoralSplitBtn,:host ef-combo-box,:host ef-input,:host ef-search-field,:host ef-datetime-picker{width:100%}:host ef-radio-group{text-align:center}:host #root_panel{display:flex;flex-direction:column}:host #filterUI{display:flex;flex-direction:column;overflow-y:hidden;flex:1}:host #dataSelector{overflow:hidden;display:flex;flex-direction:column}:host #filterAdvancedUI,:host #filterValueUI{margin-top:19px;display:flex;flex-direction:column;flex:1;overflow:auto}:host #filterValueUI>*+*{margin-top:19px}:host #filterDialogContent{width:243px;display:flex;flex-direction:column;overflow:hidden;flex:1}:host #dataFilter{flex:0 0 auto}:host .group-block>*+*{margin-top:4px}:host .group-block label{display:block}:host .group-filter{overflow:hidden;display:flex;flex-direction:column;flex:1}:host .input-group ef-combo-box+ef-combo-box,:host .input-group ef-combo-box+ef-datetime-picker{margin-top:19px}:host .input-group ef-radio-button+ef-radio-button{margin-left:6px}:host .input-group ef-combo-box+div.radio-group,:host .input-group ef-datetime-picker+div.radio-group{margin-top:13px}:host .input-group div.radio-group+ef-combo-box{margin-top:16px}:host .cancel-ok{text-align:right;margin-top:31px}:host .cancel-ok #cancel_btn{margin-left:12px}:host .cancel-ok #clear_btn{float:left}:host .hide{display:none!important}' }}))
|
2
2
|
|
3
|
-
|
3
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'checkbox-list', styles: ':host{display:block;scrollbar-face-color:#3e444f;scrollbar-shadow-color:#3e444f;scrollbar-highlight-color:#3e444f;scrollbar-arrow-color:#3e444f;scrollbar-track-color:#21242a;scrollbar-3dlight-color:#21242a;scrollbar-darkshadow-color:#21242a;scrollbar-color:#3e444f #21242a}:host .hidden{display:none}:host .select-btn{margin-top:0;margin-bottom:0;border-bottom:none}:host #container{border:1px solid #3e444f;overflow-y:auto;min-height:48px;flex-grow:1}:host .item-container{display:flex;width:100%;align-items:center}:host .item-label{margin-left:7px;min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .root{display:flex;flex-flow:column;overflow:hidden}::-webkit-scrollbar{width:15px;height:15px}::-webkit-scrollbar-button{background:0 0/1px 2px no-repeat #21242a;height:15px;width:15px;display:block}::-webkit-scrollbar-thumb{background:#3e444f;border-radius:8px;border:2px solid #21242a}::-webkit-scrollbar-thumb:hover{background:#b7bcc6}::-webkit-scrollbar-thumb:active{background:#707a8e}::-webkit-scrollbar-track{background:#21242a}::-webkit-scrollbar-corner{background:#21242a}::-webkit-scrollbar-button:end:decrement,::-webkit-scrollbar-button:start:increment{display:none}::-webkit-scrollbar-button:horizontal{background-size:2px 1px}::-webkit-scrollbar-button:vertical:start:decrement{background-image:linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f);background-position:12px 8.5px,11px 7.5px,10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 4.5px,5px 5.5px,4px 6.5px,3px 7.5px,2px 8.5px}::-webkit-scrollbar-button:vertical:start:decrement:hover{background-image:linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6);background-position:12px 8.5px,11px 7.5px,10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 4.5px,5px 5.5px,4px 6.5px,3px 7.5px,2px 8.5px}::-webkit-scrollbar-button:vertical:start:decrement:active{background-image:linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e);background-position:12px 8.5px,11px 7.5px,10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 4.5px,5px 5.5px,4px 6.5px,3px 7.5px,2px 8.5px}::-webkit-scrollbar-button:vertical:end:increment{background-image:linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f);background-position:12px 4.5px,11px 5.5px,10px 6.5px,9px 7.5px,8px 8.5px,7px 9.5px,6px 8.5px,5px 7.5px,4px 6.5px,3px 5.5px,2px 4.5px}::-webkit-scrollbar-button:vertical:end:increment:hover{background-image:linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6);background-position:12px 4.5px,11px 5.5px,10px 6.5px,9px 7.5px,8px 8.5px,7px 9.5px,6px 8.5px,5px 7.5px,4px 6.5px,3px 5.5px,2px 4.5px}::-webkit-scrollbar-button:vertical:end:increment:active{background-image:linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e);background-position:12px 4.5px,11px 5.5px,10px 6.5px,9px 7.5px,8px 8.5px,7px 9.5px,6px 8.5px,5px 7.5px,4px 6.5px,3px 5.5px,2px 4.5px}::-webkit-scrollbar-button:horizontal:start:decrement{background-image:linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f);background-position:8.5px 12px,7.5px 11px,6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,4.5px 6px,5.5px 5px,6.5px 4px,7.5px 3px,8.5px 2px}::-webkit-scrollbar-button:horizontal:start:decrement:hover{background-image:linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6);background-position:8.5px 12px,7.5px 11px,6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,4.5px 6px,5.5px 5px,6.5px 4px,7.5px 3px,8.5px 2px}::-webkit-scrollbar-button:horizontal:start:decrement:active{background-image:linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e);background-position:8.5px 12px,7.5px 11px,6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,4.5px 6px,5.5px 5px,6.5px 4px,7.5px 3px,8.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment{background-image:linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f),linear-gradient(#3e444f,#3e444f);background-position:4.5px 12px,5.5px 11px,6.5px 10px,7.5px 9px,8.5px 8px,9.5px 7px,8.5px 6px,7.5px 5px,6.5px 4px,5.5px 3px,4.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment:hover{background-image:linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6),linear-gradient(#b7bcc6,#b7bcc6);background-position:4.5px 12px,5.5px 11px,6.5px 10px,7.5px 9px,8.5px 8px,9.5px 7px,8.5px 6px,7.5px 5px,6.5px 4px,5.5px 3px,4.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment:active{background-image:linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e),linear-gradient(#707a8e,#707a8e);background-position:4.5px 12px,5.5px 11px,6.5px 10px,7.5px 9px,8.5px 8px,9.5px 7px,8.5px 6px,7.5px 5px,6.5px 4px,5.5px 3px,4.5px 2px}' }}));
|
4
4
|
|
@@ -2,4 +2,4 @@ import "./checkbox-list.js";
|
|
2
2
|
import "./imports/native-elements.js";
|
3
3
|
|
4
4
|
|
5
|
-
|
5
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'filter-dialog', styles: ':host{display:block}:host *{margin-bottom:0;margin-top:0}:host .compact{padding-top:8px;padding-bottom:12px}:host .compact #filterAdvancedUI,:host .compact #filterValueUI{margin-top:5px}:host .compact #filterValueUI>*+*{margin-top:10px}:host .compact .input-group ef-combo-box+ef-combo-box,:host .compact .input-group ef-combo-box+ef-datetime-picker{margin-top:10px}:host .compact .input-group ef-combo-box+div.radio-group,:host .compact .input-group ef-datetime-picker+div.radio-group{margin-top:6px}:host .compact .input-group div.radio-group+ef-combo-box{margin-top:8px}:host .compact .cancel-ok{margin-top:12px}:host ef-panel{box-shadow:0 0 10px rgba(0,0,0,.5);padding-top:17px;padding-bottom:31px;display:block}:host label{line-height:18px;font-size:12px}:host hr{border-top:1px solid;margin-top:9px;margin-bottom:6px;width:100%}:host ef-radio-button{height:18px}:host #filterCoralSplitBtn,:host ef-combo-box,:host ef-input,:host ef-search-field,:host ef-datetime-picker{width:100%}:host ef-radio-group{text-align:center}:host #root_panel{display:flex;flex-direction:column}:host #filterUI{display:flex;flex-direction:column;overflow-y:hidden;flex:1}:host #dataSelector{overflow:hidden;display:flex;flex-direction:column}:host #filterAdvancedUI,:host #filterValueUI{margin-top:19px;display:flex;flex-direction:column;flex:1;overflow:auto}:host #filterValueUI>*+*{margin-top:19px}:host #filterDialogContent{width:243px;display:flex;flex-direction:column;overflow:hidden;flex:1}:host #dataFilter{flex:0 0 auto}:host .group-block>*+*{margin-top:4px}:host .group-block label{display:block}:host .group-filter{overflow:hidden;display:flex;flex-direction:column;flex:1}:host .input-group ef-combo-box+ef-combo-box,:host .input-group ef-combo-box+ef-datetime-picker{margin-top:19px}:host .input-group ef-radio-button+ef-radio-button{margin-left:6px}:host .input-group ef-combo-box+div.radio-group,:host .input-group ef-datetime-picker+div.radio-group{margin-top:13px}:host .input-group div.radio-group+ef-combo-box{margin-top:16px}:host .cancel-ok{text-align:right;margin-top:31px}:host .cancel-ok #cancel_btn{margin-left:12px}:host .cancel-ok #clear_btn{float:left}:host .hide{display:none!important}' }}))
|