@adaptabletools/adaptable-cjs 23.0.0-canary.2 → 23.0.0-canary.3

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.
Files changed (69) hide show
  1. package/index.css +68 -73
  2. package/package.json +1 -1
  3. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -3
  4. package/src/AdaptableState/Common/AdaptableFormat.d.ts +1 -1
  5. package/src/Api/EventApi.d.ts +1 -1
  6. package/src/Api/Events/ReportScheduleRan.d.ts +4 -0
  7. package/src/Api/Internal/EventInternalApi.js +2 -1
  8. package/src/View/AdaptablePopover/index.js +1 -1
  9. package/src/View/Components/Buttons/ButtonInfo.d.ts +1 -1
  10. package/src/View/Components/Buttons/ButtonInfo.js +4 -4
  11. package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +1 -1
  12. package/src/View/Components/ColumnFilter/ColumnFilter.js +15 -5
  13. package/src/View/Components/ColumnFilter/FloatingFilter.js +57 -59
  14. package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -1
  15. package/src/View/Components/Forms/AdaptableFormControlTextClear.js +2 -1
  16. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +1 -1
  17. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -2
  18. package/src/View/Components/ValueSelector/index.js +1 -1
  19. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +3 -8
  20. package/src/View/GridFilter/GridFilterViewPanel.js +1 -1
  21. package/src/View/Layout/Wizard/sections/ColumnsSection.js +3 -3
  22. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +1 -1
  23. package/src/View/Layout/Wizard/sections/RowSelectionSection.js +1 -1
  24. package/src/View/Layout/Wizard/sections/SettingsSection.js +1 -1
  25. package/src/View/License/LicenseWatermark.js +1 -1
  26. package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +1 -1
  27. package/src/View/Wizard/OnePageWizards.js +1 -1
  28. package/src/components/Card/index.js +1 -1
  29. package/src/components/Combobox/index.js +10 -4
  30. package/src/components/Datepicker/index.js +2 -2
  31. package/src/components/Dialog/index.js +1 -1
  32. package/src/components/DragAndDropContext/TabList.js +1 -1
  33. package/src/components/Dropdown/Arrows.js +0 -1
  34. package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
  35. package/src/components/ExpressionEditor/index.js +1 -1
  36. package/src/components/Input/index.js +1 -1
  37. package/src/components/NewDropdownButton/index.d.ts +1 -0
  38. package/src/components/NewDropdownButton/index.js +2 -2
  39. package/src/components/NewSelect/index.d.ts +2 -0
  40. package/src/components/NewSelect/index.js +10 -7
  41. package/src/components/Panel/index.js +1 -1
  42. package/src/components/SimpleButton/index.js +1 -1
  43. package/src/components/Tabs/index.js +1 -1
  44. package/src/components/Tree/TreeDropdown/index.js +4 -8
  45. package/src/components/ui/button.d.ts +5 -2
  46. package/src/components/ui/button.js +8 -6
  47. package/src/components/ui/combobox.d.ts +16 -16
  48. package/src/components/ui/combobox.js +48 -49
  49. package/src/components/ui/input-group.d.ts +10 -9
  50. package/src/components/ui/input-group.js +19 -16
  51. package/src/components/ui/input.d.ts +2 -2
  52. package/src/components/ui/input.js +7 -4
  53. package/src/components/ui/popover.d.ts +5 -5
  54. package/src/components/ui/popover.js +5 -5
  55. package/src/components/ui/select.d.ts +7 -6
  56. package/src/components/ui/select.js +19 -17
  57. package/src/components/ui/textarea.d.ts +2 -2
  58. package/src/components/ui/textarea.js +7 -4
  59. package/src/components/ui/tooltip.d.ts +6 -5
  60. package/src/components/ui/tooltip.js +10 -7
  61. package/src/env.js +2 -2
  62. package/src/lib/utils.d.ts +20 -0
  63. package/src/lib/utils.js +48 -1
  64. package/src/metamodel/adaptable.metamodel.d.ts +7 -2
  65. package/src/metamodel/adaptable.metamodel.js +1 -1
  66. package/src/migration/VersionUpgrade23.d.ts +2 -3
  67. package/src/migration/VersionUpgrade23.js +4 -16
  68. package/themes/dark.css +7 -17
  69. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -25,8 +25,8 @@ import { AdaptableState } from '../AdaptableState/AdaptableState';
25
25
  * shape into `ZeroCentred`; standalone `ReverseGradient` ranges are left untouched.
26
26
  *
27
27
  * Scheduling:
28
- * - Remove ALL schedules - Reminders, Reports, IPushPull, OpenFin
29
- * - Because the objects are no longer stored, we can't migrate them, we just delete them
28
+ * - Remove the legacy Schedule state section entirely (Reminders, ReportSchedules,
29
+ * IPushPull, OpenFin, and any other keys). Schedules now live under Export / Alert.
30
30
  *
31
31
  * On first load after upgrade, `AdaptableUpgradeHelper.migrateAdaptableState` runs this when
32
32
  * `autoMigrateState` is enabled.
@@ -34,7 +34,6 @@ import { AdaptableState } from '../AdaptableState/AdaptableState';
34
34
  export declare class VersionUpgrade23 extends VersionUpgrade {
35
35
  migrateState(state: AdaptableState): AdaptableState;
36
36
  private migrateSchedulingState;
37
- private stripLegacyScheduleFields;
38
37
  /**
39
38
  * `RowScope` (which row kinds — data / group / summary / total — render
40
39
  * the style) was originally a Badge-only concept. It applies equally to
@@ -27,8 +27,8 @@ const VersionUpgrade_1 = require("./VersionUpgrade");
27
27
  * shape into `ZeroCentred`; standalone `ReverseGradient` ranges are left untouched.
28
28
  *
29
29
  * Scheduling:
30
- * - Remove ALL schedules - Reminders, Reports, IPushPull, OpenFin
31
- * - Because the objects are no longer stored, we can't migrate them, we just delete them
30
+ * - Remove the legacy Schedule state section entirely (Reminders, ReportSchedules,
31
+ * IPushPull, OpenFin, and any other keys). Schedules now live under Export / Alert.
32
32
  *
33
33
  * On first load after upgrade, `AdaptableUpgradeHelper.migrateAdaptableState` runs this when
34
34
  * `autoMigrateState` is enabled.
@@ -42,15 +42,6 @@ class VersionUpgrade23 extends VersionUpgrade_1.VersionUpgrade {
42
42
  return this.migrateSchedulingState(state);
43
43
  }
44
44
  migrateSchedulingState(state) {
45
- const stripped = this.stripLegacyScheduleFields(state);
46
- if (!stripped.Export) {
47
- return stripped;
48
- }
49
- return {
50
- ...stripped,
51
- };
52
- }
53
- stripLegacyScheduleFields(state) {
54
45
  if (!state.Schedule) {
55
46
  return state;
56
47
  }
@@ -59,7 +50,6 @@ class VersionUpgrade23 extends VersionUpgrade_1.VersionUpgrade {
59
50
  (legacySchedule.OpenFinSchedules?.length ?? 0);
60
51
  const removedReportCount = legacySchedule.ReportSchedules?.length ?? 0;
61
52
  const removedReminderCount = legacySchedule.Reminders?.length ?? 0;
62
- const { IPushPullSchedules: _ipp, OpenFinSchedules: _openFin, ReportSchedules: _reports, Reminders: _reminders, ...scheduleRest } = legacySchedule;
63
53
  if (removedPluginCount > 0) {
64
54
  this.logger.info(`Removed ${removedPluginCount} ipushpull/OpenFin schedule(s).`);
65
55
  }
@@ -69,10 +59,8 @@ class VersionUpgrade23 extends VersionUpgrade_1.VersionUpgrade {
69
59
  if (removedReminderCount > 0) {
70
60
  this.logger.info(`Removed ${removedReminderCount} legacy Reminders from Schedule state.`);
71
61
  }
72
- return {
73
- ...state,
74
- Schedule: scheduleRest,
75
- };
62
+ const { Schedule: _removed, ...stateWithoutSchedule } = state;
63
+ return stateWithoutSchedule;
76
64
  }
77
65
  /**
78
66
  * `RowScope` (which row kinds — data / group / summary / total — render
package/themes/dark.css CHANGED
@@ -1,26 +1,21 @@
1
1
  @layer adaptable.theme {
2
2
  .ab--theme-dark {
3
- /****** Shadcn colors ******/
4
- --ab-color-background: oklch(0.145 0 0);
5
- --ab-color-foreground: oklch(0.985 0 0);
6
3
  --ab-color-secondary: oklch(0.269 0 0);
7
4
  --ab-color-secondary-foreground: oklch(0.985 0 0);
8
5
  --ab-color-destructive: oklch(0.396 0.141 25.723);
9
6
  --ab-color-destructive-foreground: oklch(0.637 0.237 25.331);
10
7
  --ab-color-border: oklch(0.269 0 0);
11
- /******/
12
8
 
13
9
  --ab-theme-loaded: dark;
14
10
 
11
+ --ab-color-input-background: color-mix(in srgb, var(--ab-color-background) 95%, black);
15
12
  --ab-cmp-input--disabled__background: #232323; /* #b6b7b8 */
16
13
 
17
- --ab-color-defaultbackground: #3e444c;
18
- --ab-color-text-on-defaultbackground: #e2e2e2;
19
- /* Inputs/comboboxes: panel gray, not app chrome black */
20
- --ab-color-input-background: var(--ab-color-defaultbackground);
14
+ --ab-color-background: var(--ab-color-defaultbackground, #474c52); /*old color was: #3e444c*/
15
+ --ab-color-foreground: var(--ab-color-text-on-defaultbackground, #e2e2e2);
21
16
 
22
17
  --ab-color-primary: #262d2f;
23
- --ab-color-primary-foreground: var(--ab-color-text-on-primary);
18
+ --ab-color-primary-foreground: var(--ab-color-text-on-primary, #e2e2e2);
24
19
  --ab-color-primarylight: #3d3e3f;
25
20
  --ab-color-primarydark: #1c2021;
26
21
  --ab-color-text-on-primary: #e2e2e2; /* F2F2F2 */
@@ -47,11 +42,7 @@
47
42
  --ab-cmp-checkbox__border-color: var(--ab-color-text-on-primary);
48
43
  --ab-cmp-checkbox--checked__border-color: var(--ab-color-accent);
49
44
 
50
- /* Tabs: darker strip, lighter active tab + panel (inactive vs active was too similar) */
51
- --ab-cmp-tabs-strip__background: var(--ab-color-primary);
52
- --ab-cmp-tabs-active__background: var(--ab-color-defaultbackground);
53
45
  --ab-cmp-tabs-inactive__opacity: 0.78;
54
- --ab-cmp-tabs-inactive-separator__color: #555;
55
46
  }
56
47
 
57
48
  .ab--theme-dark input.ab-Input[type='number']::-webkit-outer-spin-button,.ab--theme-dark input.ab-Input[type='number']::-webkit-inner-spin-button {
@@ -68,11 +59,10 @@ For our production release those are not needed and could be removed
68
59
  as our dark theme is anyways applied on the document element.
69
60
 
70
61
  */
71
- .ab--theme-dark {
62
+ /* .ab--theme-dark {
72
63
  --ab-color-input-foreground: var(--ab-color-text-on-primary);
73
64
  --ab-cmp-input__color: var(--ab-color-input-foreground);
74
- --ab-cmp-input__background: var(--ab-color-defaultbackground);
75
65
  --ab-cmp-input--disabled__background: var(--ab-color-primarylight);
76
- --ab-cmp-field-wrap__background: var(--ab-color-defaultbackground);
77
- }
66
+ --ab-cmp-field-wrap__background: var(--ab-color-background);
67
+ }*/
78
68
  }