@dssp/dcsp 1.0.0-alpha.22 → 1.0.0-alpha.23
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/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist-client/bootstrap.d.ts +0 -8
- package/dist-client/bootstrap.js +0 -246
- package/dist-client/bootstrap.js.map +0 -1
- package/dist-client/entries/public/home.d.ts +0 -8
- package/dist-client/entries/public/home.js +0 -97
- package/dist-client/entries/public/home.js.map +0 -1
- package/dist-client/icons/menu-icons.d.ts +0 -5
- package/dist-client/icons/menu-icons.js +0 -84
- package/dist-client/icons/menu-icons.js.map +0 -1
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +0 -2
- package/dist-client/index.js.map +0 -1
- package/dist-client/menu.d.ts +0 -1
- package/dist-client/menu.js +0 -4
- package/dist-client/menu.js.map +0 -1
- package/dist-client/pages/sv-user-management.d.ts +0 -5
- package/dist-client/pages/sv-user-management.js +0 -219
- package/dist-client/pages/sv-user-management.js.map +0 -1
- package/dist-client/route.d.ts +0 -1
- package/dist-client/route.js +0 -10
- package/dist-client/route.js.map +0 -1
- package/dist-client/tsconfig.tsbuildinfo +0 -1
- package/dist-client/viewparts/menu-tools.d.ts +0 -17
- package/dist-client/viewparts/menu-tools.js +0 -172
- package/dist-client/viewparts/menu-tools.js.map +0 -1
- package/dist-client/viewparts/user-circle.d.ts +0 -5
- package/dist-client/viewparts/user-circle.js +0 -26
- package/dist-client/viewparts/user-circle.js.map +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
declare const MenuTools_base: (new (...args: any[]) => {
|
|
3
|
-
_storeUnsubscribe: import("redux").Unsubscribe;
|
|
4
|
-
connectedCallback(): void;
|
|
5
|
-
disconnectedCallback(): void;
|
|
6
|
-
stateChanged(_state: unknown): void;
|
|
7
|
-
readonly isConnected: boolean;
|
|
8
|
-
}) & typeof LitElement;
|
|
9
|
-
export declare class MenuTools extends MenuTools_base {
|
|
10
|
-
static styles: import("lit").CSSResult[];
|
|
11
|
-
page?: string;
|
|
12
|
-
width?: string;
|
|
13
|
-
private menus;
|
|
14
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
15
|
-
stateChanged(state: any): void;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { css, html, LitElement } from 'lit';
|
|
3
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
4
|
-
import { connect } from 'pwa-helpers';
|
|
5
|
-
import { store } from '@operato/shell';
|
|
6
|
-
import { ICONS_PROGRESS, ICONS_COMPLETED, ICONS_SETTING } from '../icons/menu-icons';
|
|
7
|
-
let MenuTools = class MenuTools extends connect(store)(LitElement) {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.menus = [];
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
this.menus = [
|
|
14
|
-
{
|
|
15
|
-
name: '진행중',
|
|
16
|
-
path: 'project-list',
|
|
17
|
-
icons: ICONS_PROGRESS
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: '완료',
|
|
21
|
-
path: 'project-completed-list',
|
|
22
|
-
icons: ICONS_COMPLETED
|
|
23
|
-
},
|
|
24
|
-
// {
|
|
25
|
-
// name: '검측현황',
|
|
26
|
-
// path: 'dssp-status',
|
|
27
|
-
// icons: ICONS_STATUS
|
|
28
|
-
// },
|
|
29
|
-
// {
|
|
30
|
-
// name: '공정표',
|
|
31
|
-
// path: 'project-task-list',
|
|
32
|
-
// icons: ICONS_OPERATING
|
|
33
|
-
// },
|
|
34
|
-
{
|
|
35
|
-
name: '셋팅',
|
|
36
|
-
path: 'project-setting-list',
|
|
37
|
-
icons: ICONS_SETTING
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
var page = this.page || '';
|
|
41
|
-
return html `
|
|
42
|
-
<ul>
|
|
43
|
-
${this.menus.map(menu => html `
|
|
44
|
-
<li>
|
|
45
|
-
<a href=${menu.path} ?active=${!!~page.indexOf(menu.path)}>
|
|
46
|
-
<img src=${!!~page.indexOf(menu.path) ? menu.icons[1] : menu.icons[0]} />
|
|
47
|
-
<div>${menu.name}</div>
|
|
48
|
-
</a>
|
|
49
|
-
</li>
|
|
50
|
-
`)}
|
|
51
|
-
</ul>
|
|
52
|
-
`;
|
|
53
|
-
}
|
|
54
|
-
stateChanged(state) {
|
|
55
|
-
this.page = state.route.page;
|
|
56
|
-
this.width = state.layout.width;
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
MenuTools.styles = [
|
|
60
|
-
css `
|
|
61
|
-
:host {
|
|
62
|
-
display: flex;
|
|
63
|
-
background-color: var(--secondary-color);
|
|
64
|
-
|
|
65
|
-
/* for narrow mode */
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
width: 100%;
|
|
68
|
-
--menu-tools-color: rgba(255, 255, 255, 0.9);
|
|
69
|
-
--menu-tools-active-color: rgba(107, 178, 249, 1);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
:host([width='WIDE']) {
|
|
73
|
-
/* for wide mode */
|
|
74
|
-
flex-direction: row;
|
|
75
|
-
width: initial;
|
|
76
|
-
height: 100%;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
ul {
|
|
80
|
-
display: flex;
|
|
81
|
-
flex-direction: row;
|
|
82
|
-
|
|
83
|
-
margin: auto;
|
|
84
|
-
padding: 0;
|
|
85
|
-
list-style: none;
|
|
86
|
-
height: 100%;
|
|
87
|
-
overflow: none;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
:host([width='NARROW']) ul {
|
|
91
|
-
width: 100%;
|
|
92
|
-
justify-content: space-around;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host([width='WIDE']) ul {
|
|
96
|
-
flex-direction: column;
|
|
97
|
-
}
|
|
98
|
-
:host([width='NARROW']) li {
|
|
99
|
-
flex: 1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
:host([width='WIDE']) li {
|
|
103
|
-
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
104
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
a {
|
|
108
|
-
display: flex;
|
|
109
|
-
flex-direction: column;
|
|
110
|
-
padding: 5px 0px;
|
|
111
|
-
opacity: 0.7;
|
|
112
|
-
align-items: center;
|
|
113
|
-
text-align: center;
|
|
114
|
-
text-decoration: none;
|
|
115
|
-
text-transform: capitalize;
|
|
116
|
-
color: var(--menu-tools-color);
|
|
117
|
-
border-left: 2px solid transparent;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
a[active] {
|
|
121
|
-
opacity: 1;
|
|
122
|
-
color: var(--menu-tools-active-color);
|
|
123
|
-
font-weight: bold;
|
|
124
|
-
background-color: rgba(0, 0, 0, 0.15);
|
|
125
|
-
border-left: 2px solid var(--menu-tools-active-color);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
:host([width='NARROW']) a {
|
|
129
|
-
padding: 0px 0px 5px 0px;
|
|
130
|
-
opacity: 0.8;
|
|
131
|
-
color: var(--menu-tools-color);
|
|
132
|
-
border-left: none;
|
|
133
|
-
border-top: 2px solid transparent;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
:host([width='NARROW']) a[active] {
|
|
137
|
-
opacity: 1;
|
|
138
|
-
color: var(--menu-tools-active-color);
|
|
139
|
-
font-weight: bold;
|
|
140
|
-
background-color: rgba(0, 0, 0, 0.15);
|
|
141
|
-
border-left: none;
|
|
142
|
-
border-top: 2px solid var(--menu-tools-active-color);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
img {
|
|
146
|
-
display: block;
|
|
147
|
-
width: 35px;
|
|
148
|
-
padding: 5px 10px 0px 10px;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
:host([width='NARROW']) img {
|
|
152
|
-
padding: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
div {
|
|
156
|
-
font-size: 0.6em;
|
|
157
|
-
}
|
|
158
|
-
`
|
|
159
|
-
];
|
|
160
|
-
__decorate([
|
|
161
|
-
property({ type: String }),
|
|
162
|
-
__metadata("design:type", String)
|
|
163
|
-
], MenuTools.prototype, "page", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
property({ type: String, reflect: true }),
|
|
166
|
-
__metadata("design:type", String)
|
|
167
|
-
], MenuTools.prototype, "width", void 0);
|
|
168
|
-
MenuTools = __decorate([
|
|
169
|
-
customElement('menu-tools')
|
|
170
|
-
], MenuTools);
|
|
171
|
-
export { MenuTools };
|
|
172
|
-
//# sourceMappingURL=menu-tools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-tools.js","sourceRoot":"","sources":["../../client/viewparts/menu-tools.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAiC,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAG5G,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC;IAAlD;;QA0GG,UAAK,GAAsD,EAAE,CAAA;IAqDvE,CAAC;IAnDC,MAAM;QACJ,IAAI,CAAC,KAAK,GAAG;YACX;gBACE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,cAAc;aACtB;YACD;gBACE,IAAI,EAAE,IA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;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCAAe;AAxG9C,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CA+JrB","sourcesContent":["import { css, html, LitElement } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\n\nimport { connect } from 'pwa-helpers'\n\nimport { store } from '@operato/shell'\n\nimport { ICONS_PROGRESS, ICONS_COMPLETED, ICONS_STATUS, ICONS_OPERATING, ICONS_SETTING } from '../icons/menu-icons'\n\n@customElement('menu-tools')\nexport class MenuTools extends connect(store)(LitElement) {\n static styles = [\n css`\n :host {\n display: flex;\n background-color: var(--secondary-color);\n\n /* for narrow mode */\n flex-direction: column;\n width: 100%;\n --menu-tools-color: rgba(255, 255, 255, 0.9);\n --menu-tools-active-color: rgba(107, 178, 249, 1);\n }\n\n :host([width='WIDE']) {\n /* for wide mode */\n flex-direction: row;\n width: initial;\n height: 100%;\n }\n\n ul {\n display: flex;\n flex-direction: row;\n\n margin: auto;\n padding: 0;\n list-style: none;\n height: 100%;\n overflow: none;\n }\n\n :host([width='NARROW']) ul {\n width: 100%;\n justify-content: space-around;\n }\n\n :host([width='WIDE']) ul {\n flex-direction: column;\n }\n :host([width='NARROW']) li {\n flex: 1;\n }\n\n :host([width='WIDE']) li {\n border-top: 1px solid rgba(255, 255, 255, 0.1);\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n }\n\n a {\n display: flex;\n flex-direction: column;\n padding: 5px 0px;\n opacity: 0.7;\n align-items: center;\n text-align: center;\n text-decoration: none;\n text-transform: capitalize;\n color: var(--menu-tools-color);\n border-left: 2px solid transparent;\n }\n\n a[active] {\n opacity: 1;\n color: var(--menu-tools-active-color);\n font-weight: bold;\n background-color: rgba(0, 0, 0, 0.15);\n border-left: 2px solid var(--menu-tools-active-color);\n }\n\n :host([width='NARROW']) a {\n padding: 0px 0px 5px 0px;\n opacity: 0.8;\n color: var(--menu-tools-color);\n border-left: none;\n border-top: 2px solid transparent;\n }\n\n :host([width='NARROW']) a[active] {\n opacity: 1;\n color: var(--menu-tools-active-color);\n font-weight: bold;\n background-color: rgba(0, 0, 0, 0.15);\n border-left: none;\n border-top: 2px solid var(--menu-tools-active-color);\n }\n\n img {\n display: block;\n width: 35px;\n padding: 5px 10px 0px 10px;\n }\n\n :host([width='NARROW']) img {\n padding: 0;\n }\n\n div {\n font-size: 0.6em;\n }\n `\n ]\n\n @property({ type: String }) page?: string\n @property({ type: String, reflect: true }) width?: string\n\n private menus: { name: string; path: string; icons: string[] }[] = []\n\n render() {\n this.menus = [\n {\n name: '진행중',\n path: 'project-list',\n icons: ICONS_PROGRESS\n },\n {\n name: '완료',\n path: 'project-completed-list',\n icons: ICONS_COMPLETED\n },\n // {\n // name: '검측현황',\n // path: 'dssp-status',\n // icons: ICONS_STATUS\n // },\n // {\n // name: '공정표',\n // path: 'project-task-list',\n // icons: ICONS_OPERATING\n // },\n {\n name: '셋팅',\n path: 'project-setting-list',\n icons: ICONS_SETTING\n }\n ]\n\n var page = this.page || ''\n\n return html`\n <ul>\n ${this.menus.map(\n menu => html`\n <li>\n <a href=${menu.path} ?active=${!!~page.indexOf(menu.path)}>\n <img src=${!!~page.indexOf(menu.path) ? menu.icons[1] : menu.icons[0]} />\n <div>${menu.name}</div>\n </a>\n </li>\n `\n )}\n </ul>\n `\n }\n\n stateChanged(state) {\n this.page = state.route.page\n this.width = state.layout.width\n }\n}\n"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { LitElement, html, css } from 'lit';
|
|
3
|
-
import { customElement } from 'lit/decorators.js';
|
|
4
|
-
const userIcon = new URL('../../assets/images/user.png', import.meta.url).href;
|
|
5
|
-
let UserCircle = class UserCircle extends LitElement {
|
|
6
|
-
render() {
|
|
7
|
-
return html ` <img src=${userIcon} class="user" /> `;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
UserCircle.styles = [
|
|
11
|
-
css `
|
|
12
|
-
img {
|
|
13
|
-
display: block;
|
|
14
|
-
width: 36px;
|
|
15
|
-
height: 36px;
|
|
16
|
-
border-radius: 50%;
|
|
17
|
-
|
|
18
|
-
object-fit: cover;
|
|
19
|
-
}
|
|
20
|
-
`
|
|
21
|
-
];
|
|
22
|
-
UserCircle = __decorate([
|
|
23
|
-
customElement('user-circle')
|
|
24
|
-
], UserCircle);
|
|
25
|
-
export { UserCircle };
|
|
26
|
-
//# sourceMappingURL=user-circle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-circle.js","sourceRoot":"","sources":["../../client/viewparts/user-circle.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,8BAA8B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAGvE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAcxC,MAAM;QACJ,OAAO,IAAI,CAAA,aAAa,QAAQ,mBAAmB,CAAA;IACrD,CAAC;;AAfM,iBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;KASF;CACF,AAXY,CAWZ;AAZU,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CAiBtB","sourcesContent":["import { LitElement, html, css } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nconst userIcon = new URL('../../assets/images/user.png', import.meta.url).href\n\n@customElement('user-circle')\nexport class UserCircle extends LitElement {\n static styles = [\n css`\n img {\n display: block;\n width: 36px;\n height: 36px;\n border-radius: 50%;\n\n object-fit: cover;\n }\n `\n ]\n\n render() {\n return html` <img src=${userIcon} class=\"user\" /> `\n }\n}\n"]}
|