@things-factory/operato-board 10.0.0-beta.7 → 10.0.0-beta.71

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.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta name="google" content="notranslate" />
6
6
  <title>Operato Board</title>
7
7
  <meta name="generator" content="Things Factory Starter Kit" />
8
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
9
9
  <meta name="description" content="Things Board Micro-Module Edition" />
10
10
 
11
11
  <base href="/" />
@@ -34,24 +34,24 @@ export default async function bootstrap() {
34
34
  type: UPDATE_BASE_URL
35
35
  });
36
36
  /* append top-menu to layout */
37
- var state = store.getState();
38
- var width = state.layout?.width || 'WIDE';
37
+ const state = store.getState();
38
+ let width = state.layout?.width || 'WIDE';
39
39
  appendViewpart({
40
40
  name: 'board-topmenu',
41
41
  viewpart: {
42
42
  show: true,
43
43
  template: html ` <menu-tools></menu-tools> `
44
44
  },
45
- position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
45
+ position: width === 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
46
46
  });
47
- store.subscribe(async () => {
48
- var state = store.getState();
49
- if (state.layout.width == width) {
47
+ store.subscribe(() => {
48
+ const state = store.getState();
49
+ if (state.layout.width === width) {
50
50
  return;
51
51
  }
52
52
  width = state.layout.width;
53
53
  updateViewpart('board-topmenu', {
54
- position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,
54
+ position: width === 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,
55
55
  level: VIEWPART_LEVEL.TOPMOST
56
56
  });
57
57
  });
@@ -132,16 +132,6 @@ export default async function bootstrap() {
132
132
  }
133
133
  }
134
134
  });
135
- // store.dispatch({
136
- // type: ADD_MORENDA,
137
- // morenda: {
138
- // icon: html` <md-icon>draw</md-icon> `,
139
- // name: html` <ox-i18n msgid="text.theme"></ox-i18n> `,
140
- // action: () => {
141
- // navigate('theme-list')
142
- // }
143
- // }
144
- // })
145
135
  }
146
136
  if (await hasPrivilege({ superUserGranted: true })) {
147
137
  store.dispatch({
@@ -155,22 +145,12 @@ export default async function bootstrap() {
155
145
  }
156
146
  });
157
147
  }
158
- // store.dispatch({
159
- // type: ADD_MORENDA,
160
- // morenda: {
161
- // icon: html` <md-icon>dashboard</md-icon> `,
162
- // name: html` <ox-i18n msgid="menu.board-template"></ox-i18n> `,
163
- // action: () => {
164
- // navigate('board-template-list')
165
- // }
166
- // }
167
- // })
168
148
  store.dispatch({
169
149
  type: ADD_MORENDA_TAIL,
170
150
  template: html ` <domain-switch attrname="description" slot="tail"></domain-switch> `
171
151
  });
172
152
  /* append favorite tool to app-tools */
173
- var acceptedPages = ['board-viewer'];
153
+ const acceptedPages = ['board-viewer'];
174
154
  store.dispatch({
175
155
  type: APPEND_APP_TOOL,
176
156
  tool: {
@@ -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,gCAAgC,CAAA;AACvC,OAAO,0BAA0B,CAAA;AACjC,OAAO,8CAA8C,CAAA,CAAC,uBAAuB;AAC7E,OAAO,iDAAiD,CAAA,CAAC,uDAAuD;AAChH,OAAO,2BAA2B,CAAA;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,EACL,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,OAAO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AAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE;gBACP,QAAQ,EAAE,IAAI,CAAA,2DAA2D;aAC1E;SACF,CAAC,CAAA;IACJ,CAAC;AACH,CAAC","sourcesContent":["import '@things-factory/notification'\nimport '@things-factory/board-ui'\nimport '@operato/help/ox-help-panel.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/auth-ui/dist-client/index.js' /* for domain-switch */\nimport '@things-factory/setting-ui/dist-client/index.js' /* secure-iplist-setting-let, theme-mode-setting-let */\nimport './viewparts/menu-tools.js'\n\nimport { html } from 'lit-html'\nimport { registerDefaultGroups } from '@operato/board/register-default-groups.js'\nimport {\n appendViewpart,\n toggleOverlay,\n TOOL_POSITION,\n updateViewpart,\n VIEWPART_LEVEL,\n VIEWPART_POSITION\n} from '@operato/layout'\n\nimport { hasPrivilege } from '@things-factory/auth-base/dist-client/index.js'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base/client/index.js'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client/index.js'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client/index.js'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client/index.js'\nimport { ADD_MORENDA, ADD_MORENDA_TAIL } from '@things-factory/more-base/client/index.js'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client/index.js'\nimport { navigate, store, UPDATE_BASE_URL } from '@operato/shell'\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: false\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\n })\n\n store.dispatch({\n type: UPDATE_BASE_URL\n })\n\n /* append top-menu to layout */\n var state = store.getState() as any\n var width = state.layout?.width || 'WIDE'\n\n appendViewpart({\n name: 'board-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 updateViewpart('board-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\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 setAuthManagementMenus()\n\n if (\n await hasPrivilege({ privilege: 'mutation', category: 'user', domainOwnerGranted: true, superUserGranted: true })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>vpn_key</md-icon> `,\n name: html` <ox-i18n msgid=\"text.oauth2-clients\"></ox-i18n> `,\n action: () => {\n navigate('oauth2-clients')\n }\n }\n })\n }\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>extension</md-icon> `,\n name: html` <ox-i18n msgid=\"text.api-sandbox\"></ox-i18n> `,\n action: () => {\n navigate('api-swagger')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>hub</md-icon> `,\n name: html` <ox-i18n msgid=\"text.integration analysis\"></ox-i18n>&nbsp;(beta)`,\n action: () => {\n navigate('integration-analysis')\n }\n }\n })\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 if (await hasPrivilege({ privilege: 'mutation', category: 'state-register', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>app_registration</md-icon> `,\n name: html` <ox-i18n msgid=\"title.state-register\"></ox-i18n> `,\n action: () => {\n navigate('state-register-page')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'mutation', category: 'board', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>font_download</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.fonts\"></ox-i18n> `,\n action: () => {\n navigate('font-list')\n }\n }\n })\n\n // store.dispatch({\n // type: ADD_MORENDA,\n // morenda: {\n // icon: html` <md-icon>draw</md-icon> `,\n // name: html` <ox-i18n msgid=\"text.theme\"></ox-i18n> `,\n // action: () => {\n // navigate('theme-list')\n // }\n // }\n // })\n }\n\n if (await hasPrivilege({ superUserGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>event_repeat</md-icon> `,\n name: html` <ox-i18n msgid=\"title.schedule list\"></ox-i18n> `,\n action: () => {\n navigate('schedule-list')\n }\n }\n })\n }\n\n // store.dispatch({\n // type: ADD_MORENDA,\n // morenda: {\n // icon: html` <md-icon>dashboard</md-icon> `,\n // name: html` <ox-i18n msgid=\"menu.board-template\"></ox-i18n> `,\n // action: () => {\n // navigate('board-template-list')\n // }\n // }\n // })\n\n store.dispatch({\n type: ADD_MORENDA_TAIL,\n template: html` <domain-switch attrname=\"description\" slot=\"tail\"></domain-switch> `\n })\n\n /* append favorite tool to app-tools */\n var acceptedPages = ['board-viewer']\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'favorite-tool',\n template: html` <favorite-tool .acceptedPages=${acceptedPages}></favorite-tool> `,\n position: TOOL_POSITION.REAR\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: 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` <notification-setting-let></notification-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 21,\n template: html` <board-view-setting-let></board-view-setting-let> `\n }\n })\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'security',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 31,\n template: html` <secure-iplist-setting-let></secure-iplist-setting-let> `\n }\n })\n }\n}\n"]}
1
+ {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AACrC,OAAO,0BAA0B,CAAA;AACjC,OAAO,gCAAgC,CAAA;AACvC,OAAO,0BAA0B,CAAA;AACjC,OAAO,8CAA8C,CAAA,CAAC,uBAAuB;AAC7E,OAAO,iDAAiD,CAAA,CAAC,uDAAuD;AAChH,OAAO,2BAA2B,CAAA;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,EACL,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAA;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,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ACX,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,IAAI,CAAA,qEAAqE;SACpF;QACD,QAAQ,EAAE,iBAAiB,CAAC,QAAQ;KACrC,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;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,IACE,MAAM,YAAY,CAAC;QACjB,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE,UAAU;QACpB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE,IAAI;KACvB,CAAC,EACF,CAAC;QACD,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE;gBACP,QAAQ,EAAE,IAAI,CAAA,2DAA2D;aAC1E;SACF,CAAC,CAAA;IACJ,CAAC;AACH,CAAC","sourcesContent":["import '@things-factory/notification'\nimport '@things-factory/board-ui'\nimport '@operato/help/ox-help-panel.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/auth-ui/dist-client/index.js' /* for domain-switch */\nimport '@things-factory/setting-ui/dist-client/index.js' /* secure-iplist-setting-let, theme-mode-setting-let */\nimport './viewparts/menu-tools.js'\n\nimport { html } from 'lit-html'\nimport { registerDefaultGroups } from '@operato/board/register-default-groups.js'\nimport {\n appendViewpart,\n toggleOverlay,\n TOOL_POSITION,\n updateViewpart,\n VIEWPART_LEVEL,\n VIEWPART_POSITION\n} from '@operato/layout'\n\nimport { hasPrivilege } from '@things-factory/auth-base/dist-client/index.js'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base/client/index.js'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client/index.js'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client/index.js'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client/index.js'\nimport { ADD_MORENDA, ADD_MORENDA_TAIL } from '@things-factory/more-base/client/index.js'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client/index.js'\nimport { navigate, store, UPDATE_BASE_URL } from '@operato/shell'\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: false\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\n })\n\n store.dispatch({\n type: UPDATE_BASE_URL\n })\n\n /* append top-menu to layout */\n const state = store.getState() as { layout: { width: string } }\n let width = state.layout?.width || 'WIDE'\n\n appendViewpart({\n name: 'board-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(() => {\n const state = store.getState() as { layout: { width: string } }\n\n if (state.layout.width === width) {\n return\n }\n\n width = state.layout.width\n\n updateViewpart('board-topmenu', {\n position: width === 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\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 setAuthManagementMenus()\n\n if (\n await hasPrivilege({ privilege: 'mutation', category: 'user', domainOwnerGranted: true, superUserGranted: true })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>vpn_key</md-icon> `,\n name: html` <ox-i18n msgid=\"text.oauth2-clients\"></ox-i18n> `,\n action: () => {\n navigate('oauth2-clients')\n }\n }\n })\n }\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>extension</md-icon> `,\n name: html` <ox-i18n msgid=\"text.api-sandbox\"></ox-i18n> `,\n action: () => {\n navigate('api-swagger')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>hub</md-icon> `,\n name: html` <ox-i18n msgid=\"text.integration analysis\"></ox-i18n>&nbsp;(beta)`,\n action: () => {\n navigate('integration-analysis')\n }\n }\n })\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 if (await hasPrivilege({ privilege: 'mutation', category: 'state-register', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>app_registration</md-icon> `,\n name: html` <ox-i18n msgid=\"title.state-register\"></ox-i18n> `,\n action: () => {\n navigate('state-register-page')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'mutation', category: 'board', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>font_download</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.fonts\"></ox-i18n> `,\n action: () => {\n navigate('font-list')\n }\n }\n })\n\n }\n\n if (await hasPrivilege({ superUserGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>event_repeat</md-icon> `,\n name: html` <ox-i18n msgid=\"title.schedule list\"></ox-i18n> `,\n action: () => {\n navigate('schedule-list')\n }\n }\n })\n }\n\n store.dispatch({\n type: ADD_MORENDA_TAIL,\n template: html` <domain-switch attrname=\"description\" slot=\"tail\"></domain-switch> `\n })\n\n /* append favorite tool to app-tools */\n const acceptedPages = ['board-viewer']\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'favorite-tool',\n template: html` <favorite-tool .acceptedPages=${acceptedPages}></favorite-tool> `,\n position: TOOL_POSITION.REAR\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: 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` <notification-setting-let></notification-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 21,\n template: html` <board-view-setting-let></board-view-setting-let> `\n }\n })\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'security',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 31,\n template: html` <secure-iplist-setting-let></secure-iplist-setting-let> `\n }\n })\n }\n}\n"]}
@@ -0,0 +1,22 @@
1
+ import '@material/web/icon/icon.js';
2
+ import '@material/web/button/text-button.js';
3
+ import '@material/web/button/elevated-button.js';
4
+ import { LitElement } from 'lit';
5
+ declare const HomePage_base: (new (...args: any[]) => LitElement) & typeof LitElement;
6
+ export declare class HomePage extends HomePage_base {
7
+ static styles: import("lit").CSSResult[];
8
+ private _applicationMeta?;
9
+ connectedCallback(): void;
10
+ private _loadCopy;
11
+ private _t;
12
+ render(): import("lit-html").TemplateResult<1>;
13
+ firstInput: HTMLInputElement;
14
+ private _toggleLang;
15
+ private _scrollTo;
16
+ get applicationMeta(): {
17
+ icon?: string;
18
+ title?: string;
19
+ description?: string;
20
+ };
21
+ }
22
+ export {};