@steedos/service-pages 2.6.3 → 2.6.4-beta.10

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.
@@ -867,6 +867,7 @@
867
867
  }
868
868
  Steedos.Page.Header.getPage = function(appId, tabId){
869
869
  const logoSrc = Tracker.nonreactive(getSpaceLogo);
870
+ const isMobile = window.innerWidth <= 768
870
871
  return {
871
872
  render_engine: 'amis',
872
873
  name: 'steedosGlobalHeaderPage',
@@ -876,7 +877,40 @@
876
877
  body: [
877
878
  {
878
879
  "type": "steedos-global-header",
879
- "logoSrc": logoSrc
880
+ "logoSrc": logoSrc,
881
+ "customButtons": [
882
+ {
883
+ "type": "button",
884
+ "className": "toggle-sidebar",
885
+ "visibleOn": "${AND(app.showSidebar,!" + isMobile + ")}",
886
+ "onEvent": {
887
+ "click": {
888
+ "actions": [
889
+ {
890
+ "actionType": "custom",
891
+ "script": "document.body.classList.toggle('sidebar-open')",
892
+ }
893
+ ]
894
+ }
895
+ },
896
+ "body": [
897
+ {
898
+ "type": "steedos-icon",
899
+ "category": "utility",
900
+ "name": "rows",
901
+ "colorVariant": "default",
902
+ "id": "u:afc3a08e8cf3",
903
+ "className": "slds-button_icon slds-global-header__icon"
904
+ }
905
+ ],
906
+ },
907
+ {
908
+ "type": "steedos-app-launcher",
909
+ "showAppName": false,
910
+ "appId": "${app.id}",
911
+ "visibleOn": "${isMobile}"
912
+ }
913
+ ]
880
914
  },
881
915
  ],
882
916
  onEvent: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-pages",
3
- "version": "2.6.3",
3
+ "version": "2.6.4-beta.10",
4
4
  "main": "package.service.js",
5
5
  "scripts": {},
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
11
- "gitHead": "2b56101256aa6fa0069d86bd373e4e368bd7d073",
11
+ "gitHead": "f99ac70c8ea1c2f0a21319bbfd3541375c65e867",
12
12
  "dependencies": {
13
13
  "ejs": "^3.1.8"
14
14
  }