@things-factory/operato-codelingua 7.0.16 → 7.0.19

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.
@@ -1,5 +1,5 @@
1
- import '@things-factory/notification'
2
- import '@things-factory/board-ui'
1
+ import '@things-factory/board-ui/dist-client'
2
+ import '@things-factory/notification/dist-client' /* for notification-badge */
3
3
  import '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */
4
4
  import '@operato/i18n/ox-i18n.js'
5
5
 
@@ -62,8 +62,6 @@ export default async function bootstrap() {
62
62
  /* set auth management menus into more-panel */
63
63
  setAuthManagementMenus()
64
64
 
65
- /* get fleets information from the start */
66
-
67
65
  store.dispatch({
68
66
  type: ADD_MORENDA,
69
67
  morenda: {
@@ -102,7 +100,7 @@ export default async function bootstrap() {
102
100
  }
103
101
 
104
102
  appendViewpart({
105
- name: 'fleet-topmenu',
103
+ name: 'codelingua-topmenu',
106
104
  viewpart: {
107
105
  show: true,
108
106
  template: html` <menu-tools></menu-tools> `
@@ -129,7 +127,7 @@ export default async function bootstrap() {
129
127
  }
130
128
  })
131
129
 
132
- updateViewpart('fleet-topmenu', {
130
+ updateViewpart('codelingua-topmenu', {
133
131
  position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
134
132
  })
135
133
  })
@@ -1,5 +1,5 @@
1
- import '@things-factory/notification';
2
- import '@things-factory/board-ui';
1
+ import '@things-factory/board-ui/dist-client';
2
+ import '@things-factory/notification/dist-client';
3
3
  import '@things-factory/setting-ui/dist-client';
4
4
  import '@operato/i18n/ox-i18n.js';
5
5
  import './viewparts/user-circle';
@@ -1,5 +1,5 @@
1
- import '@things-factory/notification';
2
- import '@things-factory/board-ui';
1
+ import '@things-factory/board-ui/dist-client';
2
+ import '@things-factory/notification/dist-client'; /* for notification-badge */
3
3
  import '@things-factory/setting-ui/dist-client'; /* for theme-mode-setting-let */
4
4
  import '@operato/i18n/ox-i18n.js';
5
5
  import './viewparts/user-circle';
@@ -50,7 +50,6 @@ export default async function bootstrap() {
50
50
  });
51
51
  /* set auth management menus into more-panel */
52
52
  setAuthManagementMenus();
53
- /* get fleets information from the start */
54
53
  store.dispatch({
55
54
  type: ADD_MORENDA,
56
55
  morenda: {
@@ -85,7 +84,7 @@ export default async function bootstrap() {
85
84
  });
86
85
  }
87
86
  appendViewpart({
88
- name: 'fleet-topmenu',
87
+ name: 'codelingua-topmenu',
89
88
  viewpart: {
90
89
  show: true,
91
90
  template: html ` <menu-tools></menu-tools> `
@@ -107,7 +106,7 @@ export default async function bootstrap() {
107
106
  position: TOOL_POSITION.FRONT
108
107
  }
109
108
  });
110
- updateViewpart('fleet-topmenu', {
109
+ updateViewpart('codelingua-topmenu', {
111
110
  position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
112
111
  });
113
112
  });
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AACrC,OAAO,0BAA0B,CAAA;AACjC,OAAO,wCAAwC,CAAA,CAAC,gCAAgC;AAChF,OAAO,0BAA0B,CAAA;AAEjC,OAAO,yBAAyB,CAAA;AAChC,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACjH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAA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O,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,qDAAqD;SACpE;KACF,CAAC,CAAA;IAEF,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,yDAAyD;SACxE;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@things-factory/notification'\nimport '@things-factory/board-ui'\nimport '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */\nimport '@operato/i18n/ox-i18n.js'\n\nimport './viewparts/user-circle'\nimport './viewparts/menu-tools'\n\nimport { html } from 'lit'\n\nimport { registerDefaultGroups } from '@operato/board/register-default-groups.js'\nimport { appendViewpart, toggleOverlay, TOOL_POSITION, updateViewpart, VIEWPART_POSITION } from '@operato/layout'\nimport { APPEND_APP_TOOL, REMOVE_APP_TOOL } from '@things-factory/apptool-base/client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client'\nimport { ADD_MORENDA } from '@things-factory/more-base/client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\nimport { navigate, store } from '@operato/shell'\n\nconsole.log(\n `%c\n ____ _ _ _ \n/ __\\\\ ___ __| | __ | | (_)_ __ __ _ _ _ __ _ \n| | / _ \\\\ / _\\` |/ _ \\\\ | | | | '_ \\\\ / _\\` | | | |/ _\\` |\n| |__| (_) | (_| | __/ | |___| | | | | (_| | |_| | (_| |\n\\\\____/\\\\___/ \\\\__,_|\\\\___| |_____|_|_| |_|\\\\__, |\\\\__,_|\\\\__,_|\n |___/ \n`,\n 'background: #222; color: #bada55'\n)\n\nexport default async function bootstrap() {\n /* \n set board-modeller group and default templates - should be called befor BoardModeller open \n */\n registerDefaultGroups()\n\n await setupAppToolPart({\n toolbar: true,\n busybar: true,\n mdibar: true\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\n })\n\n /* add setting morenda */\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>settings</md-icon> `,\n name: html` <ox-i18n msgid=\"label.setting\"></ox-i18n> `,\n action: () => {\n navigate('setting')\n }\n }\n })\n\n /* set auth management menus into more-panel */\n setAuthManagementMenus()\n\n /* get fleets information from the start */\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>help</md-icon> `,\n name: html` <ox-i18n msgid=\"text.help\"></ox-i18n> `,\n action: () => {\n navigate('help')\n }\n }\n })\n\n /* append viewpart anchor to asidebar */\n appendViewpart({\n name: 'asidebar-anchor',\n viewpart: {\n show: false,\n hovering: 'edge',\n backdrop: true\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n /* append top-menu to layout */\n var state = store.getState() as any\n var width = state.layout?.width || 'WIDE'\n\n if (width == 'WIDE') {\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">Code Lingua</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n }\n\n appendViewpart({\n name: 'fleet-topmenu',\n viewpart: {\n show: true,\n template: html` <menu-tools></menu-tools> `\n },\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\n })\n\n store.subscribe(async () => {\n var state = store.getState() as any\n\n if (state.layout.width == width) {\n return\n }\n\n width = state.layout.width\n\n store.dispatch({\n type: width == 'WIDE' ? APPEND_APP_TOOL : REMOVE_APP_TOOL,\n name: 'app-brand',\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">Code Lingua</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n\n updateViewpart('fleet-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\n })\n })\n\n /* setting app-tools */\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'notification-badge',\n template: html`\n <notification-badge\n @click=${e => {\n toggleOverlay('notification', {\n backdrop: true\n })\n }}\n >\n </notification-badge>\n `,\n position: TOOL_POSITION.REAR\n }\n })\n\n appendViewpart({\n name: 'notification',\n viewpart: {\n show: false,\n hovering: 'edge',\n template: html` <notification-list style=\"min-width: 300px;\"></notification-list> `\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'user-circle',\n template: html` <user-circle> </user-circle> `,\n position: TOOL_POSITION.REAR\n }\n })\n\n /* for settings */\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 10,\n template: html` <theme-mode-setting-let></theme-mode-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 20,\n template: html` <infowindow-setting-let></infowindow-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 20,\n template: html` <notification-setting-let></notification-setting-let> `\n }\n })\n}\n"]}
1
+ {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAA;AAC7C,OAAO,0CAA0C,CAAA,CAAC,4BAA4B;AAC9E,OAAO,wCAAwC,CAAA,CAAC,gCAAgC;AAChF,OAAO,0BAA0B,CAAA;AAEjC,OAAO,yBAAyB,CAAA;AAChC,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACjH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACtF,OAAO,EAAE,gBAAgB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IAAI,CAAA,qDAAqD;SACpE;KACF,CAAC,CAAA;IAEF,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,qDAAqD;SACpE;KACF,CAAC,CAAA;IAEF,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,yDAAyD;SACxE;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@things-factory/board-ui/dist-client'\nimport '@things-factory/notification/dist-client' /* for notification-badge */\nimport '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */\nimport '@operato/i18n/ox-i18n.js'\n\nimport './viewparts/user-circle'\nimport './viewparts/menu-tools'\n\nimport { html } from 'lit'\n\nimport { registerDefaultGroups } from '@operato/board/register-default-groups.js'\nimport { appendViewpart, toggleOverlay, TOOL_POSITION, updateViewpart, VIEWPART_POSITION } from '@operato/layout'\nimport { APPEND_APP_TOOL, REMOVE_APP_TOOL } from '@things-factory/apptool-base/client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client'\nimport { ADD_MORENDA } from '@things-factory/more-base/client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\nimport { navigate, store } from '@operato/shell'\n\nconsole.log(\n `%c\n ____ _ _ _ \n/ __\\\\ ___ __| | __ | | (_)_ __ __ _ _ _ __ _ \n| | / _ \\\\ / _\\` |/ _ \\\\ | | | | '_ \\\\ / _\\` | | | |/ _\\` |\n| |__| (_) | (_| | __/ | |___| | | | | (_| | |_| | (_| |\n\\\\____/\\\\___/ \\\\__,_|\\\\___| |_____|_|_| |_|\\\\__, |\\\\__,_|\\\\__,_|\n |___/ \n`,\n 'background: #222; color: #bada55'\n)\n\nexport default async function bootstrap() {\n /* \n set board-modeller group and default templates - should be called befor BoardModeller open \n */\n registerDefaultGroups()\n\n await setupAppToolPart({\n toolbar: true,\n busybar: true,\n mdibar: true\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\n })\n\n /* add setting morenda */\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>settings</md-icon> `,\n name: html` <ox-i18n msgid=\"label.setting\"></ox-i18n> `,\n action: () => {\n navigate('setting')\n }\n }\n })\n\n /* set auth management menus into more-panel */\n setAuthManagementMenus()\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>help</md-icon> `,\n name: html` <ox-i18n msgid=\"text.help\"></ox-i18n> `,\n action: () => {\n navigate('help')\n }\n }\n })\n\n /* append viewpart anchor to asidebar */\n appendViewpart({\n name: 'asidebar-anchor',\n viewpart: {\n show: false,\n hovering: 'edge',\n backdrop: true\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n /* append top-menu to layout */\n var state = store.getState() as any\n var width = state.layout?.width || 'WIDE'\n\n if (width == 'WIDE') {\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">Code Lingua</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n }\n\n appendViewpart({\n name: 'codelingua-topmenu',\n viewpart: {\n show: true,\n template: html` <menu-tools></menu-tools> `\n },\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\n })\n\n store.subscribe(async () => {\n var state = store.getState() as any\n\n if (state.layout.width == width) {\n return\n }\n\n width = state.layout.width\n\n store.dispatch({\n type: width == 'WIDE' ? APPEND_APP_TOOL : REMOVE_APP_TOOL,\n name: 'app-brand',\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">Code Lingua</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n\n updateViewpart('codelingua-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\n })\n })\n\n /* setting app-tools */\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'notification-badge',\n template: html`\n <notification-badge\n @click=${e => {\n toggleOverlay('notification', {\n backdrop: true\n })\n }}\n >\n </notification-badge>\n `,\n position: TOOL_POSITION.REAR\n }\n })\n\n appendViewpart({\n name: 'notification',\n viewpart: {\n show: false,\n hovering: 'edge',\n template: html` <notification-list style=\"min-width: 300px;\"></notification-list> `\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'user-circle',\n template: html` <user-circle> </user-circle> `,\n position: TOOL_POSITION.REAR\n }\n })\n\n /* for settings */\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 10,\n template: html` <theme-mode-setting-let></theme-mode-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 20,\n template: html` <infowindow-setting-let></infowindow-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 20,\n template: html` <notification-setting-let></notification-setting-let> `\n }\n })\n}\n"]}