@things-factory/apptool-ui 6.1.48 → 6.1.67
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/client/bootstrap.ts +34 -0
- package/client/index.ts +64 -0
- package/client/layout/app-busybar.ts +48 -0
- package/client/layout/app-mdibar.ts +132 -0
- package/client/layout/{app-toolbar.js → app-toolbar.ts} +62 -71
- package/client/mdibar-setting-let.ts +64 -0
- package/dist-client/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +32 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/index.d.ts +9 -0
- package/dist-client/index.js +51 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/layout/app-busybar.d.ts +1 -0
- package/dist-client/layout/app-busybar.js +53 -0
- package/dist-client/layout/app-busybar.js.map +1 -0
- package/dist-client/layout/app-mdibar.d.ts +1 -0
- package/dist-client/layout/app-mdibar.js +136 -0
- package/dist-client/layout/app-mdibar.js.map +1 -0
- package/dist-client/layout/app-toolbar.d.ts +1 -0
- package/dist-client/layout/app-toolbar.js +123 -0
- package/dist-client/layout/app-toolbar.js.map +1 -0
- package/dist-client/mdibar-setting-let.d.ts +13 -0
- package/dist-client/mdibar-setting-let.js +68 -0
- package/dist-client/mdibar-setting-let.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -8
- package/things-factory.config.js +1 -1
- package/translations/en.json +2 -2
- package/translations/ja.json +2 -2
- package/translations/ko.json +2 -2
- package/translations/ms.json +2 -2
- package/translations/zh.json +2 -2
- package/client/bootstrap.js +0 -26
- package/client/index.js +0 -0
- package/client/layout/app-busybar.js +0 -52
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/apptool-ui",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.67",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
|
-
"browser": "client/index.js",
|
|
5
|
+
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
7
7
|
"author": "heartyoh <heartyoh@hatiolab.com>",
|
|
8
8
|
"description": "User interface for app tool.",
|
|
@@ -17,17 +17,20 @@
|
|
|
17
17
|
"directory": "packages/apptool-ui"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "
|
|
21
|
-
"build:
|
|
22
|
-
"
|
|
23
|
-
"clean": "
|
|
20
|
+
"build": "npm run build:server && npm run build:client",
|
|
21
|
+
"build:client": "npx tsc --p ./client/tsconfig.json",
|
|
22
|
+
"build:server": "npx tsc --p ./server/tsconfig.json",
|
|
23
|
+
"clean:client": "npx rimraf dist-client",
|
|
24
|
+
"clean:server": "npx rimraf dist-server",
|
|
25
|
+
"clean": "npm run clean:server && npm run clean:client",
|
|
24
26
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
27
|
},
|
|
26
28
|
"dependencies": {
|
|
27
29
|
"@material/mwc-icon": "^0.27.0",
|
|
28
30
|
"@material/mwc-linear-progress": "^0.27.0",
|
|
29
31
|
"@operato/layout": "^1.0.1",
|
|
30
|
-
"@things-factory/apptool-base": "^6.1.
|
|
32
|
+
"@things-factory/apptool-base": "^6.1.66",
|
|
33
|
+
"@things-factory/setting-base": "^6.1.66"
|
|
31
34
|
},
|
|
32
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "8c200f0b657dc3bb429325d2ae41fecc2bd840a8"
|
|
33
36
|
}
|
package/things-factory.config.js
CHANGED
package/translations/en.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
}
|
|
2
|
+
"title.mdibar setting": "MDI setting"
|
|
3
|
+
}
|
package/translations/ja.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
}
|
|
2
|
+
"title.mdibar setting": "MDI設定"
|
|
3
|
+
}
|
package/translations/ko.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
}
|
|
2
|
+
"title.mdibar setting": "MDI 설정"
|
|
3
|
+
}
|
package/translations/ms.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
}
|
|
2
|
+
"title.mdibar setting": "Tetapan MDI"
|
|
3
|
+
}
|
package/translations/zh.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
}
|
|
2
|
+
"title.mdibar setting": "MDI设置"
|
|
3
|
+
}
|
package/client/bootstrap.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import './layout/app-toolbar'
|
|
2
|
-
import './layout/app-busybar'
|
|
3
|
-
|
|
4
|
-
import { html } from 'lit-html'
|
|
5
|
-
|
|
6
|
-
import { appendViewpart, VIEWPART_POSITION } from '@operato/layout'
|
|
7
|
-
|
|
8
|
-
export default function bootstrap() {
|
|
9
|
-
appendViewpart({
|
|
10
|
-
name: 'apptoolbar',
|
|
11
|
-
viewpart: {
|
|
12
|
-
show: true,
|
|
13
|
-
template: html` <app-toolbar></app-toolbar> `
|
|
14
|
-
},
|
|
15
|
-
position: VIEWPART_POSITION.HEADERBAR
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
appendViewpart({
|
|
19
|
-
name: 'appbusybar',
|
|
20
|
-
viewpart: {
|
|
21
|
-
show: true,
|
|
22
|
-
template: html` <app-busybar></app-busybar> `
|
|
23
|
-
},
|
|
24
|
-
position: VIEWPART_POSITION.HEADERBAR
|
|
25
|
-
})
|
|
26
|
-
}
|
package/client/index.js
DELETED
|
File without changes
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import '@material/mwc-linear-progress'
|
|
2
|
-
|
|
3
|
-
import { css, html, LitElement } from 'lit'
|
|
4
|
-
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
5
|
-
|
|
6
|
-
import { store } from '@things-factory/shell'
|
|
7
|
-
|
|
8
|
-
class AppBusyBar extends connect(store)(LitElement) {
|
|
9
|
-
static get properties() {
|
|
10
|
-
return {
|
|
11
|
-
_busy: Boolean
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
static get styles() {
|
|
16
|
-
return [
|
|
17
|
-
css`
|
|
18
|
-
:host {
|
|
19
|
-
display: flex;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
mwc-linear-progress {
|
|
23
|
-
flex: 1;
|
|
24
|
-
height: 2px;
|
|
25
|
-
}
|
|
26
|
-
`
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
render() {
|
|
31
|
-
return this._busy ? html`<mwc-linear-progress indeterminate></mwc-linear-progress>` : html``
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
stateChanged(state) {
|
|
35
|
-
if (!state.busy.busy) {
|
|
36
|
-
this._busy = false
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
this._last_state = state.busy.busy
|
|
40
|
-
|
|
41
|
-
if (!this._timeout) {
|
|
42
|
-
this._timeout = setTimeout(() => {
|
|
43
|
-
if (this._last_state) {
|
|
44
|
-
this._busy = true
|
|
45
|
-
}
|
|
46
|
-
delete this._timeout
|
|
47
|
-
}, 500)
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
customElements.define('app-busybar', AppBusyBar)
|