@adaptabletools/adaptable 24.0.0-canary.6 → 24.0.0-canary.7
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/index.css +29 -173
- package/package.json +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +4 -6
- package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +4 -0
- package/src/Api/Implementation/QuickSearchApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +9 -15
- package/src/Api/Internal/AdaptableInternalApi.js +5 -3
- package/src/Api/Internal/StateInternalApi.js +4 -3
- package/src/Api/UserInterfaceApi.d.ts +0 -4
- package/src/Redux/ActionsReducers/QuickSearchRedux.d.ts +9 -0
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +9 -0
- package/src/Redux/Store/AdaptableStore.js +4 -2
- package/src/Utilities/Helpers/UIHelper.d.ts +6 -11
- package/src/Utilities/Helpers/UIHelper.js +6 -33
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +9 -11
- package/src/View/Components/StyleComponent.js +2 -2
- package/src/View/Dashboard/Dashboard.d.ts +1 -1
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/QuickSearch/QuickSearchInput.js +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.d.ts +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/Utilities/useQuickSearchDebounced.d.ts +2 -2
- package/src/View/StyledColumn/RangesComponent.js +8 -11
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +0 -2
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +3 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +7 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +7 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +3 -3
- package/src/components/ColorField/index.d.ts +14 -0
- package/src/components/ColorField/index.js +6 -0
- package/src/env.js +2 -2
- package/src/migration/VersionUpgrade24.d.ts +9 -0
- package/src/migration/VersionUpgrade24.js +27 -0
- package/src/setupDevTools.js +163 -9
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/vendor/components/ColorField/index.d.ts +43 -0
- package/vendor/components/ColorField/index.d.ts.map +1 -0
- package/vendor/components/ColorField/index.js +81 -0
- package/vendor/components/ColorField/index.js.map +1 -0
- package/vendor/components/ColorPicker/colorPickerTab.d.ts +2 -2
- package/vendor/components/ColorPicker/colorPickerTab.d.ts.map +1 -1
- package/vendor/components/ColorPicker/colorPickerTab.js +6 -28
- package/vendor/components/ColorPicker/colorPickerTab.js.map +1 -1
- package/vendor/components/ColorPicker/index.d.ts +36 -8
- package/vendor/components/ColorPicker/index.d.ts.map +1 -1
- package/vendor/components/ColorPicker/index.js +97 -25
- package/vendor/components/ColorPicker/index.js.map +1 -1
- package/vendor/components/ColorPicker/themeColors.d.ts +33 -4
- package/vendor/components/ColorPicker/themeColors.d.ts.map +1 -1
- package/vendor/components/ColorPicker/themeColors.js +76 -18
- package/vendor/components/ColorPicker/themeColors.js.map +1 -1
- package/vendor/components/NumberInput/index.d.ts +51 -0
- package/vendor/components/NumberInput/index.d.ts.map +1 -0
- package/vendor/components/NumberInput/index.js +82 -0
- package/vendor/components/NumberInput/index.js.map +1 -0
- package/vendor/components/index.css +67 -24
- package/vendor/components/index.d.ts +6 -2
- package/vendor/components/index.d.ts.map +1 -1
- package/vendor/components/index.js +3 -1
- package/vendor/components/index.js.map +1 -1
- package/vendor/components/ui/input-group.d.ts.map +1 -1
- package/vendor/components/ui/input-group.js +5 -4
- package/vendor/components/ui/input-group.js.map +1 -1
- package/src/components/ColorPicker/ColorPicker.d.ts +0 -12
- package/src/components/ColorPicker/ColorPicker.js +0 -48
- package/src/components/ColorPicker/OptionalColorPicker.d.ts +0 -12
- package/src/components/ColorPicker/OptionalColorPicker.js +0 -13
- package/src/components/ColorPicker/index.d.ts +0 -2
- package/src/components/ColorPicker/index.js +0 -2
package/index.css
CHANGED
|
@@ -611,6 +611,9 @@
|
|
|
611
611
|
.twa\:field-sizing-content {
|
|
612
612
|
field-sizing: content;
|
|
613
613
|
}
|
|
614
|
+
.twa\:aspect-auto {
|
|
615
|
+
aspect-ratio: auto;
|
|
616
|
+
}
|
|
614
617
|
.twa\:aspect-square {
|
|
615
618
|
aspect-ratio: 1 / 1;
|
|
616
619
|
}
|
|
@@ -662,10 +665,6 @@
|
|
|
662
665
|
width: calc(var(--ab-base-space) * 16);
|
|
663
666
|
height: calc(var(--ab-base-space) * 16);
|
|
664
667
|
}
|
|
665
|
-
.twa\:size-\[calc\(100\%-2\*var\(--ab-base-space\)\)\] {
|
|
666
|
-
width: calc(100% - 2 * var(--ab-base-space));
|
|
667
|
-
height: calc(100% - 2 * var(--ab-base-space));
|
|
668
|
-
}
|
|
669
668
|
.twa\:size-auto {
|
|
670
669
|
width: auto;
|
|
671
670
|
height: auto;
|
|
@@ -721,9 +720,6 @@
|
|
|
721
720
|
.twa\:h-\[22px\] {
|
|
722
721
|
height: 22px;
|
|
723
722
|
}
|
|
724
|
-
.twa\:h-\[24px\] {
|
|
725
|
-
height: 24px;
|
|
726
|
-
}
|
|
727
723
|
.twa\:h-\[33px\] {
|
|
728
724
|
height: 33px;
|
|
729
725
|
}
|
|
@@ -736,6 +732,9 @@
|
|
|
736
732
|
.twa\:h-\[calc\(100\%-1px\)\] {
|
|
737
733
|
height: calc(100% - 1px);
|
|
738
734
|
}
|
|
735
|
+
.twa\:h-\[calc\(100\%-2\*var\(--ab-base-space\)\)\] {
|
|
736
|
+
height: calc(100% - 2 * var(--ab-base-space));
|
|
737
|
+
}
|
|
739
738
|
.twa\:h-\[min\(22rem\,var\(--total-size\)\)\] {
|
|
740
739
|
height: min(22rem, var(--total-size));
|
|
741
740
|
}
|
|
@@ -907,6 +906,9 @@
|
|
|
907
906
|
.twa\:w-8 {
|
|
908
907
|
width: calc(var(--ab-base-space) * 8);
|
|
909
908
|
}
|
|
909
|
+
.twa\:w-12 {
|
|
910
|
+
width: calc(var(--ab-base-space) * 12);
|
|
911
|
+
}
|
|
910
912
|
.twa\:w-20 {
|
|
911
913
|
width: calc(var(--ab-base-space) * 20);
|
|
912
914
|
}
|
|
@@ -955,9 +957,6 @@
|
|
|
955
957
|
.twa\:w-\[15rem\] {
|
|
956
958
|
width: 15rem;
|
|
957
959
|
}
|
|
958
|
-
.twa\:w-\[36px\] {
|
|
959
|
-
width: 36px;
|
|
960
|
-
}
|
|
961
960
|
.twa\:w-\[44px\] {
|
|
962
961
|
width: 44px;
|
|
963
962
|
}
|
|
@@ -2444,9 +2443,6 @@
|
|
|
2444
2443
|
.twa\:opacity-0 {
|
|
2445
2444
|
opacity: 0%;
|
|
2446
2445
|
}
|
|
2447
|
-
.twa\:opacity-30 {
|
|
2448
|
-
opacity: 30%;
|
|
2449
|
-
}
|
|
2450
2446
|
.twa\:opacity-50 {
|
|
2451
2447
|
opacity: 50%;
|
|
2452
2448
|
}
|
|
@@ -4112,19 +4108,6 @@
|
|
|
4112
4108
|
background-color: color-mix(in oklab, var(--ab-color-destructive) 20%, transparent);
|
|
4113
4109
|
}
|
|
4114
4110
|
}
|
|
4115
|
-
.twa\:\[\&_\.ab-ColorPicker-swatch\]\:absolute .ab-ColorPicker-swatch {
|
|
4116
|
-
position: absolute;
|
|
4117
|
-
}
|
|
4118
|
-
.twa\:\[\&_\.ab-ColorPicker-swatch\]\:inset-0 .ab-ColorPicker-swatch {
|
|
4119
|
-
inset: 0px;
|
|
4120
|
-
}
|
|
4121
|
-
.twa\:\[\&_\.ab-ColorPicker-swatch\]\:size-full .ab-ColorPicker-swatch {
|
|
4122
|
-
width: 100%;
|
|
4123
|
-
height: 100%;
|
|
4124
|
-
}
|
|
4125
|
-
.twa\:\[\&_\.ab-ColorPicker-swatch\]\:opacity-0 .ab-ColorPicker-swatch {
|
|
4126
|
-
opacity: 0%;
|
|
4127
|
-
}
|
|
4128
4111
|
.twa\:\[\&_\.ab-Input\]\:w-full .ab-Input {
|
|
4129
4112
|
width: 100%;
|
|
4130
4113
|
}
|
|
@@ -6360,26 +6343,26 @@
|
|
|
6360
6343
|
--ab-color-palette-10: #4a5568;
|
|
6361
6344
|
--ab-color-palette-11: #f3e8ff;
|
|
6362
6345
|
--ab-color-palette-12: #553c9a;
|
|
6363
|
-
--ab-color-
|
|
6364
|
-
--ab-color-
|
|
6365
|
-
--ab-color-
|
|
6366
|
-
--ab-color-
|
|
6367
|
-
--ab-color-
|
|
6368
|
-
--ab-color-
|
|
6369
|
-
--ab-color-
|
|
6370
|
-
--ab-color-
|
|
6371
|
-
--ab-color-
|
|
6372
|
-
--ab-color-
|
|
6373
|
-
--ab-color-
|
|
6374
|
-
--ab-color-
|
|
6375
|
-
--ab-color-
|
|
6376
|
-
--ab-color-
|
|
6377
|
-
--ab-color-
|
|
6378
|
-
--ab-color-
|
|
6379
|
-
--ab-color-
|
|
6380
|
-
--ab-color-
|
|
6381
|
-
--ab-color-
|
|
6382
|
-
--ab-color-
|
|
6346
|
+
--ab-color-palette-13: #000000;
|
|
6347
|
+
--ab-color-palette-14: #ffffff;
|
|
6348
|
+
--ab-color-palette-15: #d3d3d3;
|
|
6349
|
+
--ab-color-palette-16: #808080;
|
|
6350
|
+
--ab-color-palette-17: #a52a2a;
|
|
6351
|
+
--ab-color-palette-18: #006400;
|
|
6352
|
+
--ab-color-palette-19: #008000;
|
|
6353
|
+
--ab-color-palette-20: #32cd32;
|
|
6354
|
+
--ab-color-palette-21: #ffff00;
|
|
6355
|
+
--ab-color-palette-22: #ffffe0;
|
|
6356
|
+
--ab-color-palette-23: #00008b;
|
|
6357
|
+
--ab-color-palette-24: #0000ff;
|
|
6358
|
+
--ab-color-palette-25: #87cefa;
|
|
6359
|
+
--ab-color-palette-26: #00ffff;
|
|
6360
|
+
--ab-color-palette-27: #ff00ff;
|
|
6361
|
+
--ab-color-palette-28: #800080;
|
|
6362
|
+
--ab-color-palette-29: #8b0000;
|
|
6363
|
+
--ab-color-palette-30: #ff0000;
|
|
6364
|
+
--ab-color-palette-31: #dc143c;
|
|
6365
|
+
--ab-color-palette-32: #ffa500;
|
|
6383
6366
|
--ab-icon-fill: currentColor;
|
|
6384
6367
|
--ab-custom-scrollbar-size: 8px;
|
|
6385
6368
|
--ab-color-custom-scrollbar-track: var(--ab-color-background);
|
|
@@ -9000,133 +8983,6 @@
|
|
|
9000
8983
|
.ab-ModuleSelector__UnusedGroups--row .ab-ModuleSelector__UnusedPanel {
|
|
9001
8984
|
margin-bottom: 0;
|
|
9002
8985
|
}
|
|
9003
|
-
.ab-ColorPicker-swatch {
|
|
9004
|
-
width: 36px;
|
|
9005
|
-
height: 24px;
|
|
9006
|
-
min-height: 24px !important;
|
|
9007
|
-
padding: 0;
|
|
9008
|
-
box-sizing: border-box;
|
|
9009
|
-
flex-shrink: 0;
|
|
9010
|
-
cursor: pointer;
|
|
9011
|
-
}
|
|
9012
|
-
.ab-ColorPicker-swatch::-webkit-color-swatch-wrapper {
|
|
9013
|
-
padding: 0;
|
|
9014
|
-
}
|
|
9015
|
-
.ab-ColorPicker-swatch::-webkit-color-swatch {
|
|
9016
|
-
border: none;
|
|
9017
|
-
border-radius: calc(var(--ab-border-radius-input, 4px) - 1px);
|
|
9018
|
-
}
|
|
9019
|
-
.ab-ColorPicker-swatch::-moz-color-swatch {
|
|
9020
|
-
border: none;
|
|
9021
|
-
}
|
|
9022
|
-
.ab-OptionalColorPicker-empty {
|
|
9023
|
-
width: 36px;
|
|
9024
|
-
height: 24px;
|
|
9025
|
-
min-height: 24px;
|
|
9026
|
-
padding: 0;
|
|
9027
|
-
border: 1px dashed var(--ab-color-border, #ccc);
|
|
9028
|
-
border-radius: var(--ab-border-radius-input, 4px);
|
|
9029
|
-
cursor: pointer;
|
|
9030
|
-
background-color: #fff;
|
|
9031
|
-
background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%), linear-gradient(-45deg, #e0e0e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e0e0e0 75%), linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
|
|
9032
|
-
background-size: 6px 6px;
|
|
9033
|
-
background-position: 0 0, 0 3px, 3px -3px, -3px 0;
|
|
9034
|
-
}
|
|
9035
|
-
.ab-OptionalColorPicker-empty:hover:not(:disabled) {
|
|
9036
|
-
border-color: var(--ab-color-accent, #43429e);
|
|
9037
|
-
}
|
|
9038
|
-
.ab-OptionalColorPicker-empty:disabled {
|
|
9039
|
-
opacity: 0.3;
|
|
9040
|
-
cursor: not-allowed;
|
|
9041
|
-
}
|
|
9042
|
-
.ab-ColorPicker-range[type='range'] {
|
|
9043
|
-
width: 120px;
|
|
9044
|
-
margin: 0;
|
|
9045
|
-
height: 12px !important;
|
|
9046
|
-
min-height: 12px !important;
|
|
9047
|
-
padding: 0;
|
|
9048
|
-
border-radius: 6px;
|
|
9049
|
-
-webkit-appearance: none;
|
|
9050
|
-
appearance: none;
|
|
9051
|
-
}
|
|
9052
|
-
.ab-ColorPicker-range[type='range']:focus {
|
|
9053
|
-
outline: none;
|
|
9054
|
-
}
|
|
9055
|
-
.ab-ColorPicker-range[type='range']::-webkit-slider-runnable-track {
|
|
9056
|
-
background: transparent;
|
|
9057
|
-
border: 0;
|
|
9058
|
-
width: 100%;
|
|
9059
|
-
height: 12px;
|
|
9060
|
-
cursor: pointer;
|
|
9061
|
-
}
|
|
9062
|
-
.ab-ColorPicker-range[type='range']::-webkit-slider-thumb {
|
|
9063
|
-
margin-top: -4px;
|
|
9064
|
-
width: 20px;
|
|
9065
|
-
height: 20px;
|
|
9066
|
-
background: #ffffff;
|
|
9067
|
-
border: 1px solid #000000;
|
|
9068
|
-
border-radius: 50%;
|
|
9069
|
-
cursor: pointer;
|
|
9070
|
-
-webkit-appearance: none;
|
|
9071
|
-
box-sizing: border-box;
|
|
9072
|
-
}
|
|
9073
|
-
.ab-ColorPicker-range[type='range']:focus::-webkit-slider-runnable-track {
|
|
9074
|
-
background: none;
|
|
9075
|
-
}
|
|
9076
|
-
.ab-ColorPicker-range[type='range']::-moz-range-track {
|
|
9077
|
-
background: transparent;
|
|
9078
|
-
border: 0;
|
|
9079
|
-
width: 100%;
|
|
9080
|
-
height: 12px;
|
|
9081
|
-
cursor: pointer;
|
|
9082
|
-
}
|
|
9083
|
-
.ab-ColorPicker-range[type='range']::-moz-range-thumb {
|
|
9084
|
-
width: 20px;
|
|
9085
|
-
height: 20px;
|
|
9086
|
-
background: #ffffff;
|
|
9087
|
-
border: 1px solid #000000;
|
|
9088
|
-
border-radius: 50%;
|
|
9089
|
-
cursor: pointer;
|
|
9090
|
-
box-sizing: border-box;
|
|
9091
|
-
}
|
|
9092
|
-
.ab-ColorPicker-range[type='range']::-ms-track {
|
|
9093
|
-
background: transparent;
|
|
9094
|
-
border-color: transparent;
|
|
9095
|
-
border-width: 1px 0;
|
|
9096
|
-
color: transparent;
|
|
9097
|
-
width: 100%;
|
|
9098
|
-
height: 12px;
|
|
9099
|
-
cursor: pointer;
|
|
9100
|
-
}
|
|
9101
|
-
.ab-ColorPicker-range[type='range']::-ms-fill-lower {
|
|
9102
|
-
background: #43429e;
|
|
9103
|
-
border: 0;
|
|
9104
|
-
}
|
|
9105
|
-
.ab-ColorPicker-range[type='range']::-ms-fill-upper {
|
|
9106
|
-
background: none;
|
|
9107
|
-
border: 0;
|
|
9108
|
-
}
|
|
9109
|
-
.ab-ColorPicker-range[type='range']::-ms-thumb {
|
|
9110
|
-
width: 20px;
|
|
9111
|
-
height: 20px;
|
|
9112
|
-
background: #ffffff;
|
|
9113
|
-
border: 1px solid #000000;
|
|
9114
|
-
border-radius: 50%;
|
|
9115
|
-
cursor: pointer;
|
|
9116
|
-
margin-top: 0px;
|
|
9117
|
-
box-sizing: border-box;
|
|
9118
|
-
}
|
|
9119
|
-
.ab-ColorPicker-range[type='range']:focus::-ms-fill-lower {
|
|
9120
|
-
background: none;
|
|
9121
|
-
}
|
|
9122
|
-
.ab-ColorPicker-range[type='range']:focus::-ms-fill-upper {
|
|
9123
|
-
background: none;
|
|
9124
|
-
}
|
|
9125
|
-
@supports (-ms-ime-align: auto) {
|
|
9126
|
-
.ab-ColorPicker-range[type='range'] {
|
|
9127
|
-
margin: 0;
|
|
9128
|
-
}
|
|
9129
|
-
}
|
|
9130
8986
|
.ab-AdaptableOptions {
|
|
9131
8987
|
background: var(--ab-cmp-adaptable-options__background-color);
|
|
9132
8988
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "24.0.0-canary.
|
|
3
|
+
"version": "24.0.0-canary.7",
|
|
4
4
|
"description": "Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -29,10 +29,6 @@ export interface UserInterfaceOptions<TData = any> {
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
dateInputOptions?: DateInputOptions;
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Override `--ab-color-swatch-*`, `--ab-color-palette-*`, and semantic `--ab-color-*` variables in light/dark theme instead; will be removed in future release
|
|
34
|
-
*/
|
|
35
|
-
colorPalette?: string[] | ((currentTheme: string) => string[]);
|
|
36
32
|
/**
|
|
37
33
|
* Style to set for editable Cells
|
|
38
34
|
*/
|
|
@@ -52,9 +48,11 @@ export interface UserInterfaceOptions<TData = any> {
|
|
|
52
48
|
*/
|
|
53
49
|
styleClassNames?: string[];
|
|
54
50
|
/**
|
|
55
|
-
* Optional list of AdaptableObjectTags that can be associated with AdaptableObjects
|
|
51
|
+
* Optional list of AdaptableObjectTags that can be associated with AdaptableObjects.
|
|
52
|
+
*
|
|
53
|
+
* When provided as a function, return `undefined` to provide no tags.
|
|
56
54
|
*/
|
|
57
|
-
objectTags?: AdaptableObjectTag[] | ((context: ObjectTagsContext) => AdaptableObjectTag[]);
|
|
55
|
+
objectTags?: AdaptableObjectTag[] | ((context: ObjectTagsContext) => AdaptableObjectTag[] | undefined);
|
|
58
56
|
/**
|
|
59
57
|
* Provide links to AdapTable documentation (in Module popups and Expression Editor)
|
|
60
58
|
*
|
|
@@ -7,10 +7,14 @@ import { NumericStyledColumn } from './Common/NumericStyledColumn';
|
|
|
7
7
|
export interface ZeroCentredColors {
|
|
8
8
|
/**
|
|
9
9
|
* Colour applied to negative cell values (`Col-Min`…`0`)
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue `var(--ab-color-destructive)`
|
|
10
12
|
*/
|
|
11
13
|
NegativeColor: string;
|
|
12
14
|
/**
|
|
13
15
|
* Colour applied to positive cell values (`0`…`Col-Max`)
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue `var(--ab-color-success)`
|
|
14
18
|
*/
|
|
15
19
|
PositiveColor: string;
|
|
16
20
|
}
|
|
@@ -8,10 +8,10 @@ export class QuickSearchApiImpl extends ApiBase {
|
|
|
8
8
|
return this.getAdaptableState().QuickSearch;
|
|
9
9
|
}
|
|
10
10
|
runQuickSearch(quickSearchText) {
|
|
11
|
-
this.dispatchAction(QuickSearchRedux.
|
|
11
|
+
this.dispatchAction(QuickSearchRedux.QuickSearchTextAction(quickSearchText));
|
|
12
12
|
}
|
|
13
13
|
clearQuickSearch() {
|
|
14
|
-
this.dispatchAction(QuickSearchRedux.
|
|
14
|
+
this.dispatchAction(QuickSearchRedux.QuickSearchClear());
|
|
15
15
|
}
|
|
16
16
|
gotoNextMatch() {
|
|
17
17
|
this.getAdaptableApi().agGridApi.findNext();
|
|
@@ -11,7 +11,6 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
11
11
|
internalApi: UserInterfaceInternalApi;
|
|
12
12
|
private showProgressIndicatorTimeout;
|
|
13
13
|
constructor(_adaptable: IAdaptable);
|
|
14
|
-
getColorPalette(): string[];
|
|
15
14
|
getCustomIcons(): CustomIcon[];
|
|
16
15
|
getStyleClassNames(): string[] | undefined;
|
|
17
16
|
getEditableCellStyle(): AdaptableStyle | undefined;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
2
2
|
import { ArrayExtensions } from '../../Utilities/Extensions/ArrayExtensions';
|
|
3
3
|
import { resolveValueOrFunction } from '../../Utilities/Helpers/ValueOrFunctionHelper';
|
|
4
|
-
import { logDeprecation } from '../../Utilities/logDeprecation';
|
|
5
|
-
import UIHelper from '../../Utilities/Helpers/UIHelper';
|
|
6
4
|
import { CUSTOM_WINDOW_FACTORY_ID } from '../../View/Components/Popups/WindowPopups/WindowPopups';
|
|
7
5
|
import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
|
|
8
6
|
import { ApiBase } from './ApiBase';
|
|
@@ -15,16 +13,6 @@ export class UserInterfaceApiImpl extends ApiBase {
|
|
|
15
13
|
super(_adaptable);
|
|
16
14
|
this.internalApi = new UserInterfaceInternalApi(_adaptable);
|
|
17
15
|
}
|
|
18
|
-
getColorPalette() {
|
|
19
|
-
const colorPalette = this.getUserInterfaceOptions().colorPalette;
|
|
20
|
-
if (colorPalette != null) {
|
|
21
|
-
logDeprecation(this._adaptable.logger, 'UserInterfaceOptions', 'colorPalette', undefined, 'Override `--ab-color-swatch-*`, `--ab-color-palette-*`, and semantic `--ab-color-*` variables in your light or dark theme CSS instead. `colorPalette` will be removed in a future major release.');
|
|
22
|
-
if (typeof colorPalette === 'function' || Array.isArray(colorPalette)) {
|
|
23
|
-
return resolveValueOrFunction(colorPalette, this.getThemeApi().getCurrentTheme());
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return UIHelper.getDefaultColorPalette();
|
|
27
|
-
}
|
|
28
16
|
getCustomIcons() {
|
|
29
17
|
return resolveValueOrFunction(this.getUserInterfaceOptions().customIcons) ?? [];
|
|
30
18
|
}
|
|
@@ -42,9 +30,15 @@ export class UserInterfaceApiImpl extends ApiBase {
|
|
|
42
30
|
}
|
|
43
31
|
getAdaptableObjectTags() {
|
|
44
32
|
const objectTags = this.getUserInterfaceOptions().objectTags;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
if (typeof objectTags === 'function') {
|
|
34
|
+
const tags = objectTags(this.getAdaptableInternalApi().buildBaseContext());
|
|
35
|
+
if (!Array.isArray(tags)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
return tags.filter((tag) => typeof tag === 'string');
|
|
39
|
+
}
|
|
40
|
+
if (objectTags && ArrayExtensions.IsNotNullOrEmpty(objectTags)) {
|
|
41
|
+
return objectTags;
|
|
48
42
|
}
|
|
49
43
|
}
|
|
50
44
|
getAdaptableObjectsWithTag(tag, adaptableModule) {
|
|
@@ -276,9 +276,11 @@ export class AdaptableInternalApi extends ApiBase {
|
|
|
276
276
|
return userInterfaceOptions.objectTags;
|
|
277
277
|
}
|
|
278
278
|
if (typeof userInterfaceOptions.objectTags === 'function') {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
279
|
+
const tags = userInterfaceOptions.objectTags(this.buildBaseContext());
|
|
280
|
+
if (!Array.isArray(tags)) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
return tags.filter((tag) => typeof tag === 'string');
|
|
282
284
|
}
|
|
283
285
|
}
|
|
284
286
|
dispatchReduxAction(action) {
|
|
@@ -92,14 +92,15 @@ export class StateInternalApi extends ApiBase {
|
|
|
92
92
|
rowModelType: this._adaptable.agGridAdapter.getGridOption('rowModelType'),
|
|
93
93
|
treeData: this._adaptable.agGridAdapter.getGridOption('treeData'),
|
|
94
94
|
};
|
|
95
|
-
const clonedState = state
|
|
96
|
-
? JSON.parse(JSON.stringify(state))
|
|
97
|
-
: getPersistableState(JSON.parse(JSON.stringify(state)));
|
|
95
|
+
const clonedState = getPersistableState(JSON.parse(JSON.stringify(state)));
|
|
98
96
|
let processedState = this._adaptable.migrateLoadedAdaptableState(clonedState);
|
|
99
97
|
processedState = this._adaptable.normalizeAdaptableState(processedState, agGridOptions);
|
|
98
|
+
const oldState = this.getAdaptableApi().stateApi.getPersistentState();
|
|
100
99
|
this.getAdaptableStore().TheStore.dispatch(LoadState(processedState));
|
|
101
100
|
this.getAdaptableStore().TheStore.dispatch(InitState());
|
|
102
101
|
this._adaptable.refreshLayout();
|
|
102
|
+
const newState = this.getAdaptableApi().stateApi.getPersistentState();
|
|
103
|
+
this.getEventApi().internalApi.fireAdaptableStateReloadedEvent(oldState, newState);
|
|
103
104
|
void this.getAdaptableStore()
|
|
104
105
|
.saveStateNow(this._adaptable)
|
|
105
106
|
.then(() => resolve())
|
|
@@ -8,10 +8,6 @@ import { UserInterfaceState } from '../AdaptableState/UserInterfaceState';
|
|
|
8
8
|
* Functions relating to User Interface section of Adaptable State
|
|
9
9
|
*/
|
|
10
10
|
export interface UserInterfaceApi {
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves Color Palette currently being used
|
|
13
|
-
*/
|
|
14
|
-
getColorPalette(): string[];
|
|
15
11
|
/**
|
|
16
12
|
* Retrieves Custom Icons provided by users
|
|
17
13
|
*/
|
|
@@ -14,6 +14,10 @@ export declare const QUICK_SEARCH_DEFAULT_CURRENT_TEXT_MATCH_STYLE: {
|
|
|
14
14
|
* @ReduxAction Runs Quick Search
|
|
15
15
|
*/
|
|
16
16
|
export declare const QUICK_SEARCH_RUN = "QUICK_SEARCH_RUN";
|
|
17
|
+
/**
|
|
18
|
+
* @ReduxAction Clears Quick Search text
|
|
19
|
+
*/
|
|
20
|
+
export declare const QUICK_SEARCH_CLEAR = "QUICK_SEARCH_CLEAR";
|
|
17
21
|
/**
|
|
18
22
|
* @ReduxAction Sets Quick Search whole-cell style (SSRM / legacy)
|
|
19
23
|
*/
|
|
@@ -33,6 +37,8 @@ export declare const QUICK_SEARCH_READY = "QUICK_SEARCH_READY";
|
|
|
33
37
|
export interface QuickSearchRunAction extends Redux.Action {
|
|
34
38
|
quickSearchText: string;
|
|
35
39
|
}
|
|
40
|
+
export interface QuickSearchClearAction extends Redux.Action {
|
|
41
|
+
}
|
|
36
42
|
export interface QuickSearchSetMatchingCellStyleAction extends Redux.Action {
|
|
37
43
|
matchingCellStyle: AdaptableStyle;
|
|
38
44
|
}
|
|
@@ -46,6 +52,9 @@ export interface QuickSearchReadyAction extends Redux.Action {
|
|
|
46
52
|
quickSearchState: QuickSearchState;
|
|
47
53
|
}
|
|
48
54
|
export declare const QuickSearchRun: (quickSearchText: string) => QuickSearchRunAction;
|
|
55
|
+
export declare const QuickSearchClear: () => QuickSearchClearAction;
|
|
56
|
+
/** Runs Quick Search, or clears it when the text is empty. */
|
|
57
|
+
export declare const QuickSearchTextAction: (quickSearchText: string) => QuickSearchRunAction | QuickSearchClearAction;
|
|
49
58
|
export declare const QuickSearchSetCellMatchingStyle: (matchingCellStyle: AdaptableStyle) => QuickSearchSetMatchingCellStyleAction;
|
|
50
59
|
export declare const QuickSearchSetTextMatchingStyle: (textMatchStyle: AdaptableStyle) => QuickSearchSetTextMatchingStyleAction;
|
|
51
60
|
export declare const QuickSearchSetCurrentTextMatchingStyle: (currentTextMatchStyle: AdaptableStyle) => QuickSearchSetCurrentTextMatchingStyleAction;
|
|
@@ -10,6 +10,7 @@ export const QUICK_SEARCH_DEFAULT_CURRENT_TEXT_MATCH_STYLE = {
|
|
|
10
10
|
FontWeight: 'Bold',
|
|
11
11
|
};
|
|
12
12
|
export const QUICK_SEARCH_RUN = 'QUICK_SEARCH_RUN';
|
|
13
|
+
export const QUICK_SEARCH_CLEAR = 'QUICK_SEARCH_CLEAR';
|
|
13
14
|
export const QUICK_SEARCH_SET_CELL_MATCHING_STYLE = 'QUICK_SEARCH_SET_CELL_MATCHING_STYLE';
|
|
14
15
|
export const QUICK_SEARCH_SET_TEXT_MATCHING_STYLE = 'QUICK_SEARCH_SET_TEXT_MATCHING_STYLE';
|
|
15
16
|
export const QUICK_SEARCH_SET_CURRENT_TEXT_MATCHING_STYLE = 'QUICK_SEARCH_SET_CURRENT_TEXT_MATCHING_STYLE';
|
|
@@ -18,6 +19,10 @@ export const QuickSearchRun = (quickSearchText) => ({
|
|
|
18
19
|
type: QUICK_SEARCH_RUN,
|
|
19
20
|
quickSearchText,
|
|
20
21
|
});
|
|
22
|
+
export const QuickSearchClear = () => ({
|
|
23
|
+
type: QUICK_SEARCH_CLEAR,
|
|
24
|
+
});
|
|
25
|
+
export const QuickSearchTextAction = (quickSearchText) => quickSearchText ? QuickSearchRun(quickSearchText) : QuickSearchClear();
|
|
21
26
|
export const QuickSearchSetCellMatchingStyle = (matchingCellStyle) => ({
|
|
22
27
|
type: QUICK_SEARCH_SET_CELL_MATCHING_STYLE,
|
|
23
28
|
matchingCellStyle: matchingCellStyle,
|
|
@@ -43,6 +48,10 @@ export const QuickSearchReducer = (state = initialState, action) => {
|
|
|
43
48
|
return Object.assign({}, state, {
|
|
44
49
|
QuickSearchText: action.quickSearchText,
|
|
45
50
|
});
|
|
51
|
+
case QUICK_SEARCH_CLEAR:
|
|
52
|
+
return Object.assign({}, state, {
|
|
53
|
+
QuickSearchText: EMPTY_STRING,
|
|
54
|
+
});
|
|
46
55
|
case QUICK_SEARCH_SET_CELL_MATCHING_STYLE:
|
|
47
56
|
return Object.assign({}, state, {
|
|
48
57
|
CellMatchStyle: action.matchingCellStyle,
|
|
@@ -720,10 +720,12 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
720
720
|
adaptable.refreshSortIfColumnsSorted();
|
|
721
721
|
return returnAction;
|
|
722
722
|
}
|
|
723
|
+
case QuickSearchRedux.QUICK_SEARCH_CLEAR:
|
|
723
724
|
case QuickSearchRedux.QUICK_SEARCH_RUN: {
|
|
724
725
|
let returnAction = next(action);
|
|
725
|
-
const
|
|
726
|
-
|
|
726
|
+
const searchText = action.type === QuickSearchRedux.QUICK_SEARCH_CLEAR
|
|
727
|
+
? ''
|
|
728
|
+
: action.quickSearchText;
|
|
727
729
|
adaptable.setAgGridFindSearchValue(searchText);
|
|
728
730
|
adaptable.api.gridApi.refreshAllCells(true);
|
|
729
731
|
if (adaptable.adaptableOptions.quickSearchOptions.filterGridAfterQuickSearch) {
|
|
@@ -8,15 +8,13 @@ import { AdaptableAlert } from '../../AdaptableState/Common/AdaptableAlert';
|
|
|
8
8
|
import { AdaptableMessageType } from '../../AdaptableState/Common/AdaptableMessageType';
|
|
9
9
|
/** A theme colour token as a CSS value: `themeColorVar('badge')` → `var(--ab-color-badge)`. */
|
|
10
10
|
export declare function themeColorVar(token: string): string;
|
|
11
|
-
/** Generic swatch entries for the Colour Picker (resolved at runtime per active theme). */
|
|
12
|
-
export declare function getSwatchColorVar(index: number): string;
|
|
13
11
|
/** Default colour of a new range in Range Bar, Bullet and Ranges styled columns. */
|
|
14
12
|
export declare function getDefaultRangeColor(): string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
/** Default colours for a new Gradient Zero Centred range (follows the theme). */
|
|
14
|
+
export declare function getDefaultZeroCentredColors(): {
|
|
15
|
+
NegativeColor: string;
|
|
16
|
+
PositiveColor: string;
|
|
17
|
+
};
|
|
20
18
|
export declare function getEmptyConfigState(): EditableConfigEntityState;
|
|
21
19
|
export declare function getDescriptionForDataType(dataType: AdaptableColumnDataType): "text" | "number" | "date";
|
|
22
20
|
export declare function getPlaceholderForDataType(dataType: AdaptableColumnDataType): "Enter Value" | "Enter Number" | "Enter Date";
|
|
@@ -44,11 +42,8 @@ export declare function setCSSVariableValue(cssVariable: string, value: string):
|
|
|
44
42
|
export declare function isBrowserDocumentAvailable(): boolean;
|
|
45
43
|
export declare const UIHelper: {
|
|
46
44
|
themeColorVar: typeof themeColorVar;
|
|
47
|
-
getSwatchColorVar: typeof getSwatchColorVar;
|
|
48
45
|
getDefaultRangeColor: typeof getDefaultRangeColor;
|
|
49
|
-
|
|
50
|
-
getThemeSemanticColorPaletteEntries: typeof getThemeSemanticColorPaletteEntries;
|
|
51
|
-
getDefaultColorPalette: typeof getDefaultColorPalette;
|
|
46
|
+
getDefaultZeroCentredColors: typeof getDefaultZeroCentredColors;
|
|
52
47
|
getEmptyConfigState: typeof getEmptyConfigState;
|
|
53
48
|
getDescriptionForDataType: typeof getDescriptionForDataType;
|
|
54
49
|
getPlaceholderForDataType: typeof getPlaceholderForDataType;
|
|
@@ -6,38 +6,14 @@ import ArrayExtensions from '../Extensions/ArrayExtensions';
|
|
|
6
6
|
export function themeColorVar(token) {
|
|
7
7
|
return `var(--ab-color-${token})`;
|
|
8
8
|
}
|
|
9
|
-
export function getSwatchColorVar(index) {
|
|
10
|
-
return themeColorVar(`swatch-${index}`);
|
|
11
|
-
}
|
|
12
9
|
export function getDefaultRangeColor() {
|
|
13
10
|
return themeColorVar('range-default');
|
|
14
11
|
}
|
|
15
|
-
export function
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'var(--ab-color-destructive)',
|
|
21
|
-
'var(--ab-color-warn)',
|
|
22
|
-
'var(--ab-color-success)',
|
|
23
|
-
'var(--ab-color-info)',
|
|
24
|
-
'var(--ab-color-accent)',
|
|
25
|
-
'var(--ab-color-palette-1)',
|
|
26
|
-
'var(--ab-color-palette-2)',
|
|
27
|
-
'var(--ab-color-palette-3)',
|
|
28
|
-
'var(--ab-color-palette-4)',
|
|
29
|
-
'var(--ab-color-palette-5)',
|
|
30
|
-
'var(--ab-color-palette-6)',
|
|
31
|
-
'var(--ab-color-palette-7)',
|
|
32
|
-
'var(--ab-color-palette-8)',
|
|
33
|
-
'var(--ab-color-palette-9)',
|
|
34
|
-
'var(--ab-color-palette-10)',
|
|
35
|
-
'var(--ab-color-palette-11)',
|
|
36
|
-
'var(--ab-color-palette-12)',
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
export function getDefaultColorPalette() {
|
|
40
|
-
return [...getSwatchColorPaletteEntries(), ...getThemeSemanticColorPaletteEntries()];
|
|
12
|
+
export function getDefaultZeroCentredColors() {
|
|
13
|
+
return {
|
|
14
|
+
NegativeColor: themeColorVar('destructive'),
|
|
15
|
+
PositiveColor: themeColorVar('success'),
|
|
16
|
+
};
|
|
41
17
|
}
|
|
42
18
|
export function getEmptyConfigState() {
|
|
43
19
|
return {
|
|
@@ -328,11 +304,8 @@ export function isBrowserDocumentAvailable() {
|
|
|
328
304
|
}
|
|
329
305
|
export const UIHelper = {
|
|
330
306
|
themeColorVar,
|
|
331
|
-
getSwatchColorVar,
|
|
332
307
|
getDefaultRangeColor,
|
|
333
|
-
|
|
334
|
-
getThemeSemanticColorPaletteEntries,
|
|
335
|
-
getDefaultColorPalette,
|
|
308
|
+
getDefaultZeroCentredColors,
|
|
336
309
|
getEmptyConfigState,
|
|
337
310
|
getDescriptionForDataType,
|
|
338
311
|
getPlaceholderForDataType,
|