@odoo/o-spreadsheet 16.2.0-alpha.4 → 16.3.0-alpha.0

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.
@@ -107,6 +107,7 @@
107
107
  const CELL_BORDER_COLOR = "#E2E3E3";
108
108
  const BACKGROUND_CHART_COLOR = "#FFFFFF";
109
109
  const MENU_ITEM_DISABLED_COLOR = "#CACACA";
110
+ const BG_HOVER_COLOR = "#EBEBEB";
110
111
  const DEFAULT_COLOR_SCALE_MIDPOINT_COLOR = 0xb6d7a8;
111
112
  const LINK_COLOR = "#01666b";
112
113
  const FILTERS_COLOR = "#188038";
@@ -14715,6 +14716,13 @@
14715
14716
  pointer-events: none;
14716
14717
  }
14717
14718
  }
14719
+
14720
+ .o-topbar-composer .o-composer:empty:not(:focus)::before {
14721
+ /* svg free of use from https://uxwing.com/formula-fx-icon/ */
14722
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 121.8 122.9' width='16' height='16' focusable='false'%3E%3Cpath d='m28 34-4 5v2h10l-6 40c-4 22-6 28-7 30-2 2-3 3-5 3-3 0-7-2-9-4H4c-2 2-4 4-4 7s4 6 8 6 9-2 15-8c8-7 13-17 18-39l7-35 13-1 3-6H49c4-23 7-27 11-27 2 0 5 2 8 6h4c1-1 4-4 4-7 0-2-3-6-9-6-5 0-13 4-20 10-6 7-9 14-11 24h-8zm41 16c4-5 7-7 8-7s2 1 5 9l3 12c-7 11-12 17-16 17l-3-1-2-1c-3 0-6 3-6 7s3 7 7 7c6 0 12-6 22-23l3 10c3 9 6 13 10 13 5 0 11-4 18-15l-3-4c-4 6-7 8-8 8-2 0-4-3-6-10l-5-15 8-10 6-4 3 1 3 2c2 0 6-3 6-7s-2-7-6-7c-6 0-11 5-21 20l-2-6c-3-9-5-14-9-14-5 0-12 6-18 15l3 3z' fill='%23BDBDBD' /%3E%3C/svg%3E");
14723
+ position: relative;
14724
+ top: 20%;
14725
+ }
14718
14726
  `;
14719
14727
  class Composer extends owl.Component {
14720
14728
  constructor() {
@@ -15365,20 +15373,10 @@
15365
15373
  justify-content: center;
15366
15374
  width: ${FILTER_ICON_EDGE_LENGTH}px;
15367
15375
  height: ${FILTER_ICON_EDGE_LENGTH}px;
15368
-
15369
- svg {
15370
- path {
15371
- fill: ${FILTERS_COLOR};
15372
- }
15373
- }
15374
15376
  }
15375
15377
  .o-filter-icon:hover {
15376
15378
  background: ${FILTERS_COLOR};
15377
- svg {
15378
- path {
15379
- fill: white;
15380
- }
15381
- }
15379
+ color: #fff;
15382
15380
  }
15383
15381
  `;
15384
15382
  class FilterIcon extends owl.Component {
@@ -15994,6 +15992,7 @@
15994
15992
  .o-search-icon {
15995
15993
  right: 5px;
15996
15994
  top: 4px;
15995
+ opacity: 0.4;
15997
15996
 
15998
15997
  svg {
15999
15998
  height: 16px;
@@ -16572,7 +16571,7 @@
16572
16571
  &:not(.disabled) {
16573
16572
  &:hover,
16574
16573
  &.o-menu-item-active {
16575
- background-color: #ebebeb;
16574
+ background-color: ${BG_HOVER_COLOR};
16576
16575
  }
16577
16576
  .o-menu-item-description {
16578
16577
  color: grey;
@@ -39422,7 +39421,6 @@
39422
39421
 
39423
39422
  css /* scss */ `
39424
39423
  .o-sheet {
39425
- color: #666;
39426
39424
  padding: 0 15px;
39427
39425
  padding-right: 10px;
39428
39426
  height: ${BOTTOMBAR_HEIGHT}px;
@@ -39810,6 +39808,7 @@
39810
39808
  const MENU_MAX_HEIGHT = 250;
39811
39809
  css /* scss */ `
39812
39810
  .o-spreadsheet-bottom-bar {
39811
+ color: ${TEXT_HEADER_COLOR};
39813
39812
  background-color: ${BACKGROUND_GRAY_COLOR};
39814
39813
  padding-left: ${HEADER_WIDTH}px;
39815
39814
  font-size: 15px;
@@ -40473,6 +40472,7 @@
40473
40472
  css /* scss */ `
40474
40473
  .o-font-size-editor {
40475
40474
  input.o-font-size {
40475
+ outline-color: ${SELECTION_BORDER_COLOR};
40476
40476
  height: 20px;
40477
40477
  width: 23px;
40478
40478
  }
@@ -40585,52 +40585,53 @@
40585
40585
  const CUSTOM_FORMATS = [
40586
40586
  { name: "custom_currency", text: NumberFormatTerms.CustomCurrency, sidePanel: "CustomCurrency" },
40587
40587
  ];
40588
- const FONT_COLOR = "#4a4f59";
40589
- const ACTIVE_BG_COLOR = "#E6F4EA";
40590
- const ACTIVE_FG_COLOR = "#188038";
40591
- const HOVERED_BG_COLOR = "#f6f7fa";
40592
- const HOVERED_FG_COLOR = "#000000";
40588
+ const ICONS_COLOR = "#4A4F59";
40589
+ // If we ever change these colors, make sure the filter tool stays green to match the icon in the grid
40590
+ const ACTIVE_BG_COLOR = BACKGROUND_HEADER_FILTER_COLOR;
40591
+ const ACTIVE_FONT_COLOR = FILTERS_COLOR;
40592
+ const HOVERED_BG_COLOR = BG_HOVER_COLOR;
40593
+ const HOVERED_FONT_COLOR = "#000";
40593
40594
  // -----------------------------------------------------------------------------
40594
40595
  // TopBar
40595
40596
  // -----------------------------------------------------------------------------
40596
40597
  css /* scss */ `
40597
40598
  .o-spreadsheet-topbar {
40598
- background-color: white;
40599
40599
  line-height: 1.2;
40600
- display: flex;
40601
- flex-direction: column;
40602
40600
  font-size: 13px;
40603
- line-height: 1.2;
40604
- user-select: none;
40605
40601
  font-weight: 500;
40606
- color: ${FONT_COLOR};
40602
+
40603
+ .o-topbar-hoverable {
40604
+ cursor: pointer;
40605
+ .o-icon {
40606
+ color: ${ICONS_COLOR};
40607
+ }
40608
+ &:not(.o-disabled):not(.active):hover {
40609
+ background-color: ${HOVERED_BG_COLOR};
40610
+ color: ${HOVERED_FONT_COLOR};
40611
+ .o-icon {
40612
+ color: ${HOVERED_FONT_COLOR};
40613
+ }
40614
+ }
40615
+ &.active {
40616
+ background-color: ${ACTIVE_BG_COLOR};
40617
+ color: ${ACTIVE_FONT_COLOR};
40618
+ .o-icon {
40619
+ color: ${ACTIVE_FONT_COLOR};
40620
+ }
40621
+ }
40622
+ }
40607
40623
 
40608
40624
  .o-topbar-top {
40609
40625
  border-bottom: 1px solid ${SEPARATOR_COLOR};
40610
- display: flex;
40611
40626
  padding: 2px 10px;
40612
- justify-content: space-between;
40613
40627
 
40614
40628
  /* Menus */
40615
40629
  .o-topbar-topleft {
40616
- display: flex;
40617
40630
  .o-topbar-menu {
40618
40631
  padding: 4px 6px;
40619
40632
  margin: 0 2px;
40620
- cursor: pointer;
40621
- }
40622
-
40623
- .o-topbar-menu:hover,
40624
- .o-topbar-menu-active {
40625
- background-color: #f1f3f4;
40626
- border-radius: 2px;
40627
40633
  }
40628
40634
  }
40629
-
40630
- .o-topbar-topright {
40631
- display: flex;
40632
- justify-content: flex-end;
40633
- }
40634
40635
  }
40635
40636
 
40636
40637
  .o-topbar-composer {
@@ -40639,13 +40640,9 @@
40639
40640
 
40640
40641
  /* Toolbar */
40641
40642
  .o-topbar-toolbar {
40642
- flex-shrink: 0;
40643
- display: flex;
40644
40643
  height: ${TOPBAR_TOOLBAR_HEIGHT}px;
40645
40644
 
40646
40645
  .o-readonly-toolbar {
40647
- display: flex;
40648
- align-items: center;
40649
40646
  background-color: ${BACKGROUND_HEADER_COLOR};
40650
40647
  padding-left: 18px;
40651
40648
  padding-right: 18px;
@@ -40653,11 +40650,6 @@
40653
40650
 
40654
40651
  /* Toolbar */
40655
40652
  .o-toolbar-tools {
40656
- display: flex;
40657
- flex-shrink: 0;
40658
- margin-left: 16px;
40659
- cursor: default;
40660
-
40661
40653
  .o-tool {
40662
40654
  display: flex;
40663
40655
  justify-content: center;
@@ -40665,40 +40657,13 @@
40665
40657
  margin: 2px;
40666
40658
  padding: 0px 3px;
40667
40659
  border-radius: 2px;
40668
- cursor: pointer;
40669
40660
  min-width: 20px;
40670
- svg path,
40671
- polygon,
40672
- rect {
40673
- fill: ${FONT_COLOR};
40674
- }
40675
- }
40676
-
40677
- .o-tool-outlined {
40678
- background-color: rgba(0, 0, 0, 0.08);
40679
40661
  }
40680
40662
 
40681
40663
  .o-filter-tool {
40682
40664
  margin-right: 8px;
40683
40665
  }
40684
40666
 
40685
- .o-tool.active {
40686
- background-color: ${ACTIVE_BG_COLOR};
40687
- svg path,
40688
- polygon,
40689
- rect {
40690
- fill: ${ACTIVE_FG_COLOR};
40691
- }
40692
- }
40693
- .o-tool:not(.o-disabled):hover {
40694
- background-color: ${HOVERED_BG_COLOR};
40695
- svg path,
40696
- polygon,
40697
- rect {
40698
- fill: ${HOVERED_FG_COLOR};
40699
- }
40700
- }
40701
-
40702
40667
  .o-border-dropdown {
40703
40668
  padding: 4px;
40704
40669
  }
@@ -40724,10 +40689,6 @@
40724
40689
  height: 30px;
40725
40690
  }
40726
40691
 
40727
- .o-text-icon {
40728
- line-height: 30px;
40729
- }
40730
-
40731
40692
  .o-text-options > div {
40732
40693
  line-height: 26px;
40733
40694
  padding: 3px 12px;
@@ -40746,14 +40707,6 @@
40746
40707
  box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
40747
40708
  background-color: white;
40748
40709
 
40749
- .o-dropdown-item {
40750
- cursor: pointer;
40751
- }
40752
-
40753
- .o-dropdown-item:hover {
40754
- background-color: rgba(0, 0, 0, 0.08);
40755
- }
40756
-
40757
40710
  .o-dropdown-line {
40758
40711
  display: flex;
40759
40712
  margin: 1px;
@@ -40762,11 +40715,6 @@
40762
40715
  padding: 4px;
40763
40716
  width: 18px;
40764
40717
  height: 18px;
40765
- cursor: pointer;
40766
-
40767
- &:hover {
40768
- background-color: rgba(0, 0, 0, 0.08);
40769
- }
40770
40718
  }
40771
40719
  }
40772
40720
 
@@ -40778,7 +40726,7 @@
40778
40726
  padding: 0 20px;
40779
40727
  white-space: nowrap;
40780
40728
 
40781
- &.active:before {
40729
+ &.o-dropdown-active:before {
40782
40730
  content: "✓";
40783
40731
  font-weight: bold;
40784
40732
  position: absolute;
@@ -44975,9 +44923,9 @@
44975
44923
  Object.defineProperty(exports, '__esModule', { value: true });
44976
44924
 
44977
44925
 
44978
- __info__.version = '16.2.0-alpha.4';
44979
- __info__.date = '2023-03-14T09:24:38.219Z';
44980
- __info__.hash = '2c6fe88';
44926
+ __info__.version = '16.3.0-alpha.0';
44927
+ __info__.date = '2023-03-15T15:54:31.775Z';
44928
+ __info__.hash = '1633f09';
44981
44929
 
44982
44930
 
44983
44931
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);