@neutron.co.id/operasional-interfaces 1.2.0-beta.1 → 1.3.0-beta.2
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/build/index.cjs +2662 -1051
- package/build/index.mjs +2682 -1071
- package/build/style.css +138 -0
- package/build/types/components/checkIn/checkIn.types.d.ts +2 -0
- package/build/types/components/checkIn/index.d.ts +2 -0
- package/build/types/components/checkIn/sheets/CheckInAccess.vue.d.ts +6 -0
- package/build/types/components/checkIn/sheets/CheckInCollection.vue.d.ts +2 -0
- package/build/types/components/checkIn/sheets/CheckInPresenceCollection.vue.d.ts +2 -0
- package/build/types/components/checkIn/sheets/CheckInScanError.vue.d.ts +2 -0
- package/build/types/components/checkIn/sheets/CheckInScanSuccess.vue.d.ts +6 -0
- package/build/types/components/checkIn/sheets/CheckInScanner.vue.d.ts +7 -0
- package/build/types/components/checkIn/sheets/CheckInSingle.vue.d.ts +2 -0
- package/build/types/components/checkIn/sheets/index.d.ts +7 -0
- package/build/types/components/index.d.ts +1 -0
- package/build/types/components/situation/situation.types.d.ts +1 -1
- package/build/types/components/staff/staff.types.d.ts +1 -1
- package/build/types/components/task/task.types.d.ts +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/providers/index.d.ts +1 -0
- package/build/types/providers/operasional/attendance.store.d.ts +15 -0
- package/build/types/providers/operasional/bus.d.ts +7 -0
- package/build/types/providers/operasional/index.d.ts +6 -0
- package/build/types/providers/operasional/operasional.store.d.ts +2 -0
- package/build/types/providers/operasional/operasional.types.d.ts +11 -0
- package/build/types/providers/operasional/useOperasional.d.ts +7 -0
- package/build/types/providers/operasional/withOperasional.d.ts +2 -0
- package/package.json +6 -4
package/build/style.css
CHANGED
|
@@ -1,4 +1,142 @@
|
|
|
1
1
|
|
|
2
|
+
#view-checkIns[data-v-3ba48e60] {
|
|
3
|
+
|
|
4
|
+
height: 100%
|
|
5
|
+
}
|
|
6
|
+
#view-checkIns .wrapper[data-v-3ba48e60] {
|
|
7
|
+
|
|
8
|
+
height: 100%
|
|
9
|
+
}
|
|
10
|
+
#view-checkIns .header[data-v-3ba48e60] {
|
|
11
|
+
|
|
12
|
+
display: flex;
|
|
13
|
+
|
|
14
|
+
align-items: center;
|
|
15
|
+
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
|
|
18
|
+
padding-left: 1rem;
|
|
19
|
+
|
|
20
|
+
padding-right: 1rem;
|
|
21
|
+
|
|
22
|
+
padding-top: 1rem;
|
|
23
|
+
|
|
24
|
+
padding-bottom: 0.5rem
|
|
25
|
+
}
|
|
26
|
+
#view-checkIns .header .start[data-v-3ba48e60] {
|
|
27
|
+
|
|
28
|
+
line-height: 1.25
|
|
29
|
+
}
|
|
30
|
+
#view-checkIns .header .title[data-v-3ba48e60] {
|
|
31
|
+
|
|
32
|
+
font-weight: 700
|
|
33
|
+
}
|
|
34
|
+
#view-checkIns .header .description[data-v-3ba48e60] {
|
|
35
|
+
|
|
36
|
+
font-size: 0.875rem;
|
|
37
|
+
|
|
38
|
+
--tw-text-opacity: 1;
|
|
39
|
+
|
|
40
|
+
color: rgb(161 161 170 / var(--tw-text-opacity))
|
|
41
|
+
}
|
|
42
|
+
#view-checkIns .buttons[data-v-3ba48e60] {
|
|
43
|
+
|
|
44
|
+
display: flex;
|
|
45
|
+
|
|
46
|
+
align-items: center
|
|
47
|
+
}
|
|
48
|
+
#view-checkIns .buttons[data-v-3ba48e60] > :not([hidden]) ~ :not([hidden]) {
|
|
49
|
+
|
|
50
|
+
--tw-space-x-reverse: 0;
|
|
51
|
+
|
|
52
|
+
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
53
|
+
|
|
54
|
+
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))
|
|
55
|
+
}
|
|
56
|
+
#view-checkIns .buttons[data-v-3ba48e60] {
|
|
57
|
+
|
|
58
|
+
padding-right: 0.25rem
|
|
59
|
+
}
|
|
60
|
+
#view-checkIns .summary[data-v-3ba48e60] {
|
|
61
|
+
|
|
62
|
+
padding-bottom: 0.5rem
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.neu-checkIn-single[data-v-2e2803fb] {
|
|
66
|
+
display: block
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.buttons[data-v-d23b6de5] {
|
|
70
|
+
display: grid;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 0.5rem;
|
|
73
|
+
padding-left: 1rem;
|
|
74
|
+
padding-right: 1rem;
|
|
75
|
+
height: 56px
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.video-frame[data-v-ef426ef3] {
|
|
79
|
+
position: relative;
|
|
80
|
+
height: 100%;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
height: var(--neon-mobile-modal-wrapper-height);
|
|
86
|
+
}
|
|
87
|
+
.video-frame video[data-v-ef426ef3] {
|
|
88
|
+
position: relative;
|
|
89
|
+
-o-object-fit: cover;
|
|
90
|
+
object-fit: cover;
|
|
91
|
+
/* @apply relative h-full;
|
|
92
|
+
@apply object-cover;
|
|
93
|
+
min-height: 300px; */
|
|
94
|
+
}
|
|
95
|
+
.video-frame .inner[data-v-ef426ef3] {
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: 0px;
|
|
98
|
+
right: 0px;
|
|
99
|
+
bottom: 0px;
|
|
100
|
+
left: 0px;
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: flex-start;
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
padding: 0.5rem;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* @apply rounded-lg border border-solid; */
|
|
108
|
+
.video-frame.is-scanning video[data-v-ef426ef3] {
|
|
109
|
+
min-height: auto;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* @apply border-red-200 bg-red-50; */
|
|
113
|
+
.video-frame.is-invalid .invalid-message[data-v-ef426ef3] {
|
|
114
|
+
display: block;
|
|
115
|
+
}
|
|
116
|
+
.invalid-message[data-v-ef426ef3] {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 0px;
|
|
119
|
+
left: 0px;
|
|
120
|
+
display: none;
|
|
121
|
+
padding: 0.75rem;
|
|
122
|
+
--tw-text-opacity: 1;
|
|
123
|
+
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
124
|
+
}
|
|
125
|
+
.result[data-v-ef426ef3] {
|
|
126
|
+
margin-top: 1rem;
|
|
127
|
+
padding: 1rem;
|
|
128
|
+
border-radius: 0.5rem;
|
|
129
|
+
border-width: 2px;
|
|
130
|
+
}
|
|
131
|
+
.button-switch[data-v-ef426ef3] {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
--tw-text-opacity: 1;
|
|
135
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
136
|
+
text-shadow: -1px 0 1px black, 0 1px 1px black, 1px 0 1px black,
|
|
137
|
+
0 -1px 1px black;
|
|
138
|
+
}
|
|
139
|
+
|
|
2
140
|
.neu-staff-single[data-v-dbeb1998] {
|
|
3
141
|
display: block
|
|
4
142
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
close: () => void;
|
|
3
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
4
|
+
onClose?: (() => any) | undefined;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
close: () => void;
|
|
3
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
4
|
+
onClose?: (() => any) | undefined;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("stop" | "close" | "start" | "scanned")[], "stop" | "close" | "start" | "scanned", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
+
onScanned?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
onStop?: ((...args: any[]) => any) | undefined;
|
|
4
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
onStart?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}, {}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as CheckInPresenceCollection } from './CheckInPresenceCollection.vue';
|
|
2
|
+
export { default as CheckInSingle } from './CheckInSingle.vue';
|
|
3
|
+
export { default as CheckInAccess } from './CheckInAccess.vue';
|
|
4
|
+
export { default as CheckInScanError } from './CheckInScanError.vue';
|
|
5
|
+
export { default as CheckInScanner } from './CheckInScanner.vue';
|
|
6
|
+
export { default as CheckInScanSuccess } from './CheckInScanSuccess.vue';
|
|
7
|
+
export { default as CheckInCollection } from './CheckInCollection.vue';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SituationModel: import("@neon.id/model").Model<"neu:personalia:situation", "branches" | "
|
|
1
|
+
export declare const SituationModel: import("@neon.id/model").Model<"neu:personalia:situation", "branches" | "employeeNameTrimmed" | "situationDescription" | "situationRelatedBy" | "situationReportedBy" | "situationResponse" | "situationStatus" | "situationSupportedBy" | "situationType" | "supportiveStatus" | "urgentSituationDate">;
|
|
2
2
|
export type TSituationModel = typeof SituationModel;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const StaffModel: import("@neon.id/model").Model<"neu:personalia:staff", "name" | "image" | "
|
|
1
|
+
export declare const StaffModel: import("@neon.id/model").Model<"neu:personalia:staff", "name" | "image" | "user" | "note" | "birthDate" | "birthPlace" | "branch" | "branches" | "nik">;
|
|
2
2
|
export type TStaffModel = typeof StaffModel;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "
|
|
1
|
+
export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "doingAssignments" | "helpAssignments" | "supervisingAssignments" | "status" | "employeeNameTrimmed" | "estimatedEndDate" | "estimatedHourByDay" | "estimatedHourCognitiveAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCreativeAssignment" | "estimatedHourDoingAssignment" | "estimatedRealizedAssignmentEnd" | "estimatedRealizedAssignmentStart" | "estimatedStartDate" | "externalServiceDescription" | "giveAssignments" | "internalServiceDescription" | "priority" | "resultAssignment" | "taskName">;
|
|
2
2
|
export type TTaskModel = typeof TaskModel;
|
package/build/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './operasional';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface AttendanceStoreState {
|
|
2
|
+
isEntering: boolean;
|
|
3
|
+
isAsking: boolean;
|
|
4
|
+
isScanning: boolean;
|
|
5
|
+
isScanError: boolean;
|
|
6
|
+
isScanned: boolean;
|
|
7
|
+
qrKey: string;
|
|
8
|
+
type: string;
|
|
9
|
+
checkInId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const useAttendanceStore: import("pinia").StoreDefinition<"neu:personalia:attendance", AttendanceStoreState, {}, {
|
|
12
|
+
reset(): void;
|
|
13
|
+
checkInStaff(qrKey: any, type: string, staffId: any): Promise<void>;
|
|
14
|
+
}>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Schema } from '../../types';
|
|
3
|
+
export interface Input {
|
|
4
|
+
}
|
|
5
|
+
export interface Context {
|
|
6
|
+
isLoading: Ref<boolean>;
|
|
7
|
+
staff: Ref<Schema.Staff | null>;
|
|
8
|
+
setStaff: (data: Schema.Staff) => void;
|
|
9
|
+
getStaff: () => Promise<void>;
|
|
10
|
+
init: () => Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function useOperasional(): {
|
|
2
|
+
isLoading: import("vue").Ref<boolean>;
|
|
3
|
+
staff: import("vue").Ref<import("../../gql/graphql").Staff | null>;
|
|
4
|
+
setStaff: (data: import("../../gql/graphql").Staff) => void;
|
|
5
|
+
getStaff: () => Promise<void>;
|
|
6
|
+
init: () => Promise<void>;
|
|
7
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-interfaces",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-beta.2",
|
|
4
4
|
"description": "Interface library of Neutron.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -59,8 +59,10 @@
|
|
|
59
59
|
"@neon.id/interfaces": "0.153.0",
|
|
60
60
|
"@neon.id/office": "0.23.0",
|
|
61
61
|
"@neon.id/utils": "0.38.0",
|
|
62
|
-
"@neutron.co.id/personalia-models": "1.3.
|
|
62
|
+
"@neutron.co.id/personalia-models": "1.3.1-beta.1",
|
|
63
|
+
"@neutron.co.id/sentral-interfaces": "1.1.0",
|
|
63
64
|
"@nuxt/kit": "3.2.3",
|
|
65
|
+
"qr-scanner": "1.4.1",
|
|
64
66
|
"vue": "3.2.47"
|
|
65
67
|
},
|
|
66
68
|
"devDependencies": {
|
|
@@ -124,12 +126,12 @@
|
|
|
124
126
|
"@neon.id/interfaces": "^0.153.0",
|
|
125
127
|
"@neon.id/office": "^0.23.0",
|
|
126
128
|
"@neon.id/utils": "^0.38.0",
|
|
127
|
-
"@neutron.co.id/personalia-models": "^1.3.
|
|
129
|
+
"@neutron.co.id/personalia-models": "^1.3.1-beta.1",
|
|
128
130
|
"@nuxt/kit": "^3.2.3",
|
|
129
131
|
"vue": "^3.2.47"
|
|
130
132
|
},
|
|
131
133
|
"publishConfig": {
|
|
132
134
|
"access": "public"
|
|
133
135
|
},
|
|
134
|
-
"build":
|
|
136
|
+
"build": 65
|
|
135
137
|
}
|