@neutron.co.id/operasional-interfaces 1.14.7-beta.1 → 1.14.8-beta.1
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/@office/models/personalia/plan/PlanStaff.vue +74 -30
- package/build/@office/models/personalia/submission/SubmissionAudit.vue +1 -0
- package/build/mock/index.cjs +90 -44
- package/build/mock/index.mjs +90 -44
- package/build/mock/style.css +2 -2
- package/build/module.json +1 -1
- package/build/nuxt.json +1 -1
- package/package.json +4 -4
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { NeonSingle, useSingle } from '@neon.id/context'
|
|
3
3
|
import { NeonField, NeonForm, NeonFields } from '@neon.id/form'
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
OfficeCollectionRelated,
|
|
6
|
+
OfficeRelation,
|
|
7
|
+
OfficeTab,
|
|
8
|
+
OfficeTabs,
|
|
9
|
+
} from '@neon.id/office'
|
|
10
|
+
import { Query } from '@neon.id/query'
|
|
5
11
|
import type {
|
|
6
|
-
Schema,
|
|
7
12
|
TPersonaliaPlanModel,
|
|
13
|
+
Schema,
|
|
8
14
|
} from '@neutron.co.id/personalia-models'
|
|
9
|
-
import {
|
|
15
|
+
import { useOperasionalStore } from '../../../common/providers/operasional/operasional.store'
|
|
10
16
|
|
|
11
17
|
const {
|
|
12
18
|
fields,
|
|
19
|
+
id,
|
|
13
20
|
initialValues,
|
|
14
21
|
values,
|
|
15
22
|
isLoading,
|
|
@@ -30,6 +37,9 @@ const onDomainUpdate = () => {
|
|
|
30
37
|
if (values.value.domain === 'education') values.value.stageIds = []
|
|
31
38
|
}
|
|
32
39
|
|
|
40
|
+
const state = useOperasionalStore()
|
|
41
|
+
|
|
42
|
+
const { staff } = state.getAllStoreValue()
|
|
33
43
|
const saveAndSyncOne = async () => {
|
|
34
44
|
await saveOne()
|
|
35
45
|
await syncOne()
|
|
@@ -49,53 +59,46 @@ const saveAndSyncOne = async () => {
|
|
|
49
59
|
@cancel="discardChanges"
|
|
50
60
|
@submit="saveAndSyncOne"
|
|
51
61
|
>
|
|
52
|
-
<NeonField v-model="values.name" v-bind="fields.name"
|
|
53
|
-
|
|
54
|
-
<NeonField
|
|
55
|
-
v-if="isNew || isReady"
|
|
56
|
-
v-model="values.detail"
|
|
57
|
-
v-bind="fields.detail"
|
|
58
|
-
/>
|
|
62
|
+
<NeonField v-model="values.name" v-bind="fields.name" />
|
|
59
63
|
|
|
60
64
|
<NeonFields md="grid-cols-2">
|
|
61
65
|
<OfficeRelation
|
|
62
66
|
v-model="values"
|
|
63
67
|
:field="fields.branches"
|
|
64
|
-
|
|
68
|
+
:query="
|
|
69
|
+
Query.define({
|
|
70
|
+
filter: {
|
|
71
|
+
_id: { $in: staff?.branchIds },
|
|
72
|
+
},
|
|
73
|
+
})
|
|
74
|
+
"
|
|
65
75
|
/>
|
|
66
76
|
<NeonField
|
|
67
77
|
v-model="values.domain"
|
|
68
78
|
v-bind="fields.domain"
|
|
69
|
-
is-disabled
|
|
70
79
|
@update:model-value="onDomainUpdate"
|
|
71
80
|
/>
|
|
72
81
|
</NeonFields>
|
|
73
82
|
|
|
74
83
|
<NeonFields md="grid-cols-2">
|
|
75
|
-
<NeonField
|
|
76
|
-
|
|
77
|
-
v-bind="fields.startedAt"
|
|
78
|
-
is-disabled
|
|
79
|
-
/>
|
|
80
|
-
<NeonField
|
|
81
|
-
v-model="values.endedAt"
|
|
82
|
-
v-bind="fields.endedAt"
|
|
83
|
-
is-disabled
|
|
84
|
-
/>
|
|
84
|
+
<NeonField v-model="values.startedAt" v-bind="fields.startedAt" />
|
|
85
|
+
<NeonField v-model="values.endedAt" v-bind="fields.endedAt" />
|
|
85
86
|
</NeonFields>
|
|
86
87
|
|
|
87
88
|
<OfficeRelation
|
|
88
89
|
v-model="values"
|
|
89
90
|
:field="fields.planTypes"
|
|
90
|
-
|
|
91
|
+
:query="
|
|
92
|
+
Query.define({
|
|
93
|
+
filter: {
|
|
94
|
+
branchIds: { $in: values.branchIds },
|
|
95
|
+
},
|
|
96
|
+
})
|
|
97
|
+
"
|
|
91
98
|
/>
|
|
92
99
|
|
|
93
100
|
<NeonFields v-if="values.domain == 'marketing'" md="grid-cols-2">
|
|
94
|
-
<OfficeRelation
|
|
95
|
-
v-model="values"
|
|
96
|
-
:field="fields.stages"
|
|
97
|
-
is-disabled
|
|
98
|
-
/>
|
|
101
|
+
<OfficeRelation v-model="values" :field="fields.stages" />
|
|
99
102
|
<OfficeRelation
|
|
100
103
|
v-model="values"
|
|
101
104
|
:field="fields.target"
|
|
@@ -106,7 +109,6 @@ const saveAndSyncOne = async () => {
|
|
|
106
109
|
},
|
|
107
110
|
})
|
|
108
111
|
"
|
|
109
|
-
is-disabled
|
|
110
112
|
/>
|
|
111
113
|
</NeonFields>
|
|
112
114
|
|
|
@@ -121,12 +123,54 @@ const saveAndSyncOne = async () => {
|
|
|
121
123
|
},
|
|
122
124
|
})
|
|
123
125
|
"
|
|
124
|
-
is-disabled
|
|
125
126
|
/>
|
|
126
127
|
|
|
127
128
|
<OfficeRelation v-model="values" :field="fields.staffs" is-disabled />
|
|
128
129
|
</NeonForm>
|
|
129
130
|
</OfficeTab>
|
|
131
|
+
|
|
132
|
+
<!-- PROGRESS -->
|
|
133
|
+
<OfficeTab
|
|
134
|
+
v-if="!isNew"
|
|
135
|
+
handle="progress"
|
|
136
|
+
icon="info-circle"
|
|
137
|
+
title="Progress"
|
|
138
|
+
>
|
|
139
|
+
<OfficeCollectionRelated
|
|
140
|
+
definition="neu:personalia:progress"
|
|
141
|
+
title="Progress"
|
|
142
|
+
description="Progress dari tanggungjawab."
|
|
143
|
+
:query="
|
|
144
|
+
Query.define({
|
|
145
|
+
filter: [
|
|
146
|
+
{
|
|
147
|
+
planIds: id,
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
sort: {
|
|
151
|
+
handle: 'startedAt',
|
|
152
|
+
direction: 'ascending',
|
|
153
|
+
},
|
|
154
|
+
})
|
|
155
|
+
"
|
|
156
|
+
:is-ready="isReady"
|
|
157
|
+
:columns="[
|
|
158
|
+
'startedAt',
|
|
159
|
+
'endedAt',
|
|
160
|
+
'detail',
|
|
161
|
+
'staffs',
|
|
162
|
+
'virtualIsNotes',
|
|
163
|
+
'accessStaffs',
|
|
164
|
+
]"
|
|
165
|
+
:sorts="['startedAt', 'startedAt', 'createdAt', 'updatedAt']"
|
|
166
|
+
:filters="['staff']"
|
|
167
|
+
:initial-values="{
|
|
168
|
+
planIds: id,
|
|
169
|
+
plans: values,
|
|
170
|
+
}"
|
|
171
|
+
>
|
|
172
|
+
</OfficeCollectionRelated>
|
|
173
|
+
</OfficeTab>
|
|
130
174
|
</OfficeTabs>
|
|
131
175
|
</NeonSingle>
|
|
132
176
|
</template>
|
package/build/mock/index.cjs
CHANGED
|
@@ -14788,6 +14788,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
14788
14788
|
setup(__props) {
|
|
14789
14789
|
const {
|
|
14790
14790
|
fields,
|
|
14791
|
+
id,
|
|
14791
14792
|
initialValues,
|
|
14792
14793
|
values,
|
|
14793
14794
|
isLoading,
|
|
@@ -14806,6 +14807,8 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
14806
14807
|
}
|
|
14807
14808
|
if (values.value.domain === "education") values.value.stageIds = [];
|
|
14808
14809
|
};
|
|
14810
|
+
const state2 = useOperasionalStore();
|
|
14811
|
+
const { staff } = state2.getAllStoreValue();
|
|
14809
14812
|
const saveAndSyncOne = async () => {
|
|
14810
14813
|
await saveOne();
|
|
14811
14814
|
await syncOne();
|
|
@@ -14834,28 +14837,27 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
14834
14837
|
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
14835
14838
|
modelValue: vue.unref(values).name,
|
|
14836
14839
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(values).name = $event)
|
|
14837
|
-
}, vue.unref(fields).name
|
|
14838
|
-
vue.unref(isNew) || vue.unref(isReady) ? (vue.openBlock(), vue.createBlock(vue.unref(form.NeonField), vue.mergeProps({
|
|
14839
|
-
key: 0,
|
|
14840
|
-
modelValue: vue.unref(values).detail,
|
|
14841
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(values).detail = $event)
|
|
14842
|
-
}, vue.unref(fields).detail), null, 16, ["modelValue"])) : vue.createCommentVNode("v-if", true),
|
|
14840
|
+
}, vue.unref(fields).name), null, 16, ["modelValue"]),
|
|
14843
14841
|
vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-2" }, {
|
|
14844
|
-
default: vue.withCtx(() =>
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
"
|
|
14857
|
-
|
|
14858
|
-
|
|
14842
|
+
default: vue.withCtx(() => {
|
|
14843
|
+
var _a;
|
|
14844
|
+
return [
|
|
14845
|
+
vue.createVNode(vue.unref(office$1.OfficeRelation), {
|
|
14846
|
+
modelValue: vue.unref(values),
|
|
14847
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
14848
|
+
field: vue.unref(fields).branches,
|
|
14849
|
+
query: vue.unref(query.Query).define({
|
|
14850
|
+
filter: {
|
|
14851
|
+
_id: { $in: (_a = vue.unref(staff)) == null ? void 0 : _a.branchIds }
|
|
14852
|
+
}
|
|
14853
|
+
})
|
|
14854
|
+
}, null, 8, ["modelValue", "field", "query"]),
|
|
14855
|
+
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
14856
|
+
modelValue: vue.unref(values).domain,
|
|
14857
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(values).domain = $event)
|
|
14858
|
+
}, vue.unref(fields).domain, { "onUpdate:modelValue": onDomainUpdate }), null, 16, ["modelValue"])
|
|
14859
|
+
];
|
|
14860
|
+
}),
|
|
14859
14861
|
_: 1
|
|
14860
14862
|
/* STABLE */
|
|
14861
14863
|
}),
|
|
@@ -14863,63 +14865,64 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
14863
14865
|
default: vue.withCtx(() => [
|
|
14864
14866
|
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
14865
14867
|
modelValue: vue.unref(values).startedAt,
|
|
14866
|
-
"onUpdate:modelValue": _cache[
|
|
14867
|
-
}, vue.unref(fields).startedAt
|
|
14868
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.unref(values).startedAt = $event)
|
|
14869
|
+
}, vue.unref(fields).startedAt), null, 16, ["modelValue"]),
|
|
14868
14870
|
vue.createVNode(vue.unref(form.NeonField), vue.mergeProps({
|
|
14869
14871
|
modelValue: vue.unref(values).endedAt,
|
|
14870
|
-
"onUpdate:modelValue": _cache[
|
|
14871
|
-
}, vue.unref(fields).endedAt
|
|
14872
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.unref(values).endedAt = $event)
|
|
14873
|
+
}, vue.unref(fields).endedAt), null, 16, ["modelValue"])
|
|
14872
14874
|
]),
|
|
14873
14875
|
_: 1
|
|
14874
14876
|
/* STABLE */
|
|
14875
14877
|
}),
|
|
14876
14878
|
vue.createVNode(vue.unref(office$1.OfficeRelation), {
|
|
14877
14879
|
modelValue: vue.unref(values),
|
|
14878
|
-
"onUpdate:modelValue": _cache[
|
|
14880
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
14879
14881
|
field: vue.unref(fields).planTypes,
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
+
query: vue.unref(query.Query).define({
|
|
14883
|
+
filter: {
|
|
14884
|
+
branchIds: { $in: vue.unref(values).branchIds }
|
|
14885
|
+
}
|
|
14886
|
+
})
|
|
14887
|
+
}, null, 8, ["modelValue", "field", "query"]),
|
|
14882
14888
|
vue.unref(values).domain == "marketing" ? (vue.openBlock(), vue.createBlock(vue.unref(form.NeonFields), {
|
|
14883
|
-
key:
|
|
14889
|
+
key: 0,
|
|
14884
14890
|
md: "grid-cols-2"
|
|
14885
14891
|
}, {
|
|
14886
14892
|
default: vue.withCtx(() => [
|
|
14887
14893
|
vue.createVNode(vue.unref(office$1.OfficeRelation), {
|
|
14888
14894
|
modelValue: vue.unref(values),
|
|
14889
|
-
"onUpdate:modelValue": _cache[
|
|
14890
|
-
field: vue.unref(fields).stages
|
|
14891
|
-
"is-disabled": ""
|
|
14895
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
14896
|
+
field: vue.unref(fields).stages
|
|
14892
14897
|
}, null, 8, ["modelValue", "field"]),
|
|
14893
14898
|
vue.createVNode(vue.unref(office$1.OfficeRelation), {
|
|
14894
14899
|
modelValue: vue.unref(values),
|
|
14895
|
-
"onUpdate:modelValue": _cache[
|
|
14900
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
14896
14901
|
field: vue.unref(fields).target,
|
|
14897
14902
|
query: vue.unref(query.Query).define({
|
|
14898
14903
|
filter: {
|
|
14899
14904
|
branchIds: { $in: vue.unref(values).branchIds }
|
|
14900
14905
|
}
|
|
14901
|
-
})
|
|
14902
|
-
"is-disabled": ""
|
|
14906
|
+
})
|
|
14903
14907
|
}, null, 8, ["modelValue", "field", "query"])
|
|
14904
14908
|
]),
|
|
14905
14909
|
_: 1
|
|
14906
14910
|
/* STABLE */
|
|
14907
14911
|
})) : vue.createCommentVNode("v-if", true),
|
|
14908
14912
|
vue.unref(values).domain == "education" ? (vue.openBlock(), vue.createBlock(vue.unref(office$1.OfficeRelation), {
|
|
14909
|
-
key:
|
|
14913
|
+
key: 1,
|
|
14910
14914
|
modelValue: vue.unref(values),
|
|
14911
|
-
"onUpdate:modelValue": _cache[
|
|
14915
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
14912
14916
|
field: vue.unref(fields).target,
|
|
14913
14917
|
query: vue.unref(query.Query).define({
|
|
14914
14918
|
filter: {
|
|
14915
14919
|
branchIds: { $in: vue.unref(values).branchIds }
|
|
14916
14920
|
}
|
|
14917
|
-
})
|
|
14918
|
-
"is-disabled": ""
|
|
14921
|
+
})
|
|
14919
14922
|
}, null, 8, ["modelValue", "field", "query"])) : vue.createCommentVNode("v-if", true),
|
|
14920
14923
|
vue.createVNode(vue.unref(office$1.OfficeRelation), {
|
|
14921
14924
|
modelValue: vue.unref(values),
|
|
14922
|
-
"onUpdate:modelValue": _cache[
|
|
14925
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.isRef(values) ? values.value = $event : null),
|
|
14923
14926
|
field: vue.unref(fields).staffs,
|
|
14924
14927
|
"is-disabled": ""
|
|
14925
14928
|
}, null, 8, ["modelValue", "field"])
|
|
@@ -14930,7 +14933,50 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
14930
14933
|
]),
|
|
14931
14934
|
_: 1
|
|
14932
14935
|
/* STABLE */
|
|
14933
|
-
})
|
|
14936
|
+
}),
|
|
14937
|
+
vue.createCommentVNode(" PROGRESS "),
|
|
14938
|
+
!vue.unref(isNew) ? (vue.openBlock(), vue.createBlock(vue.unref(office$1.OfficeTab), {
|
|
14939
|
+
key: 0,
|
|
14940
|
+
handle: "progress",
|
|
14941
|
+
icon: "info-circle",
|
|
14942
|
+
title: "Progress"
|
|
14943
|
+
}, {
|
|
14944
|
+
default: vue.withCtx(() => [
|
|
14945
|
+
vue.createVNode(vue.unref(office$1.OfficeCollectionRelated), {
|
|
14946
|
+
definition: "neu:personalia:progress",
|
|
14947
|
+
title: "Progress",
|
|
14948
|
+
description: "Progress dari tanggungjawab.",
|
|
14949
|
+
query: vue.unref(query.Query).define({
|
|
14950
|
+
filter: [
|
|
14951
|
+
{
|
|
14952
|
+
planIds: vue.unref(id)
|
|
14953
|
+
}
|
|
14954
|
+
],
|
|
14955
|
+
sort: {
|
|
14956
|
+
handle: "startedAt",
|
|
14957
|
+
direction: "ascending"
|
|
14958
|
+
}
|
|
14959
|
+
}),
|
|
14960
|
+
"is-ready": vue.unref(isReady),
|
|
14961
|
+
columns: [
|
|
14962
|
+
"startedAt",
|
|
14963
|
+
"endedAt",
|
|
14964
|
+
"detail",
|
|
14965
|
+
"staffs",
|
|
14966
|
+
"virtualIsNotes",
|
|
14967
|
+
"accessStaffs"
|
|
14968
|
+
],
|
|
14969
|
+
sorts: ["startedAt", "startedAt", "createdAt", "updatedAt"],
|
|
14970
|
+
filters: ["staff"],
|
|
14971
|
+
"initial-values": {
|
|
14972
|
+
planIds: vue.unref(id),
|
|
14973
|
+
plans: vue.unref(values)
|
|
14974
|
+
}
|
|
14975
|
+
}, null, 8, ["query", "is-ready", "initial-values"])
|
|
14976
|
+
]),
|
|
14977
|
+
_: 1
|
|
14978
|
+
/* STABLE */
|
|
14979
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
14934
14980
|
]),
|
|
14935
14981
|
_: 1
|
|
14936
14982
|
/* STABLE */
|
|
@@ -14942,7 +14988,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
14942
14988
|
};
|
|
14943
14989
|
}
|
|
14944
14990
|
});
|
|
14945
|
-
const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-
|
|
14991
|
+
const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-4c077382"]]);
|
|
14946
14992
|
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
14947
14993
|
...{
|
|
14948
14994
|
name: "PlanCollection"
|
|
@@ -20298,7 +20344,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
20298
20344
|
vue.createCommentVNode(" DOKUMEN "),
|
|
20299
20345
|
vue.createVNode(vue.unref(_sfc_main$i), {
|
|
20300
20346
|
toolbar: "side",
|
|
20301
|
-
"is-readonly": vue.unref(values).status === "processed" || vue.unref(values).status === "approved" || vue.unref(values).status === "monitored" || vue.unref(values).status === "discontinued" || vue.unref(values).status === "resolved"
|
|
20347
|
+
"is-readonly": vue.unref(values).status === "processed" || vue.unref(values).status === "approved" || vue.unref(values).status === "monitored" || vue.unref(values).status === "discontinued" || vue.unref(values).status === "prepared" || vue.unref(values).status === "resolved"
|
|
20302
20348
|
}, null, 8, ["is-readonly"]),
|
|
20303
20349
|
vue.createCommentVNode(" PROGRESS "),
|
|
20304
20350
|
!vue.unref(isNew) ? (vue.openBlock(), vue.createBlock(vue.unref(office$1.OfficeTab), {
|
|
@@ -20355,7 +20401,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
20355
20401
|
};
|
|
20356
20402
|
}
|
|
20357
20403
|
});
|
|
20358
|
-
const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-
|
|
20404
|
+
const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-88209980"]]);
|
|
20359
20405
|
const _hoisted_1$5 = { class: "flex flex-wrap" };
|
|
20360
20406
|
const _hoisted_2$5 = { class: "mt-2" };
|
|
20361
20407
|
const _hoisted_3$4 = { class: "mt-2" };
|
package/build/mock/index.mjs
CHANGED
|
@@ -14769,6 +14769,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14769
14769
|
setup(__props) {
|
|
14770
14770
|
const {
|
|
14771
14771
|
fields,
|
|
14772
|
+
id,
|
|
14772
14773
|
initialValues,
|
|
14773
14774
|
values,
|
|
14774
14775
|
isLoading,
|
|
@@ -14787,6 +14788,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14787
14788
|
}
|
|
14788
14789
|
if (values.value.domain === "education") values.value.stageIds = [];
|
|
14789
14790
|
};
|
|
14791
|
+
const state2 = useOperasionalStore();
|
|
14792
|
+
const { staff } = state2.getAllStoreValue();
|
|
14790
14793
|
const saveAndSyncOne = async () => {
|
|
14791
14794
|
await saveOne();
|
|
14792
14795
|
await syncOne();
|
|
@@ -14815,28 +14818,27 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14815
14818
|
createVNode(unref(NeonField), mergeProps({
|
|
14816
14819
|
modelValue: unref(values).name,
|
|
14817
14820
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
|
|
14818
|
-
}, unref(fields).name
|
|
14819
|
-
unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
|
|
14820
|
-
key: 0,
|
|
14821
|
-
modelValue: unref(values).detail,
|
|
14822
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).detail = $event)
|
|
14823
|
-
}, unref(fields).detail), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
|
|
14821
|
+
}, unref(fields).name), null, 16, ["modelValue"]),
|
|
14824
14822
|
createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
|
|
14825
|
-
default: withCtx(() =>
|
|
14826
|
-
|
|
14827
|
-
|
|
14828
|
-
|
|
14829
|
-
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14836
|
-
|
|
14837
|
-
"
|
|
14838
|
-
|
|
14839
|
-
|
|
14823
|
+
default: withCtx(() => {
|
|
14824
|
+
var _a;
|
|
14825
|
+
return [
|
|
14826
|
+
createVNode(unref(OfficeRelation), {
|
|
14827
|
+
modelValue: unref(values),
|
|
14828
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
|
|
14829
|
+
field: unref(fields).branches,
|
|
14830
|
+
query: unref(Query).define({
|
|
14831
|
+
filter: {
|
|
14832
|
+
_id: { $in: (_a = unref(staff)) == null ? void 0 : _a.branchIds }
|
|
14833
|
+
}
|
|
14834
|
+
})
|
|
14835
|
+
}, null, 8, ["modelValue", "field", "query"]),
|
|
14836
|
+
createVNode(unref(NeonField), mergeProps({
|
|
14837
|
+
modelValue: unref(values).domain,
|
|
14838
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).domain = $event)
|
|
14839
|
+
}, unref(fields).domain, { "onUpdate:modelValue": onDomainUpdate }), null, 16, ["modelValue"])
|
|
14840
|
+
];
|
|
14841
|
+
}),
|
|
14840
14842
|
_: 1
|
|
14841
14843
|
/* STABLE */
|
|
14842
14844
|
}),
|
|
@@ -14844,63 +14846,64 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14844
14846
|
default: withCtx(() => [
|
|
14845
14847
|
createVNode(unref(NeonField), mergeProps({
|
|
14846
14848
|
modelValue: unref(values).startedAt,
|
|
14847
|
-
"onUpdate:modelValue": _cache[
|
|
14848
|
-
}, unref(fields).startedAt
|
|
14849
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(values).startedAt = $event)
|
|
14850
|
+
}, unref(fields).startedAt), null, 16, ["modelValue"]),
|
|
14849
14851
|
createVNode(unref(NeonField), mergeProps({
|
|
14850
14852
|
modelValue: unref(values).endedAt,
|
|
14851
|
-
"onUpdate:modelValue": _cache[
|
|
14852
|
-
}, unref(fields).endedAt
|
|
14853
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).endedAt = $event)
|
|
14854
|
+
}, unref(fields).endedAt), null, 16, ["modelValue"])
|
|
14853
14855
|
]),
|
|
14854
14856
|
_: 1
|
|
14855
14857
|
/* STABLE */
|
|
14856
14858
|
}),
|
|
14857
14859
|
createVNode(unref(OfficeRelation), {
|
|
14858
14860
|
modelValue: unref(values),
|
|
14859
|
-
"onUpdate:modelValue": _cache[
|
|
14861
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
|
|
14860
14862
|
field: unref(fields).planTypes,
|
|
14861
|
-
|
|
14862
|
-
|
|
14863
|
+
query: unref(Query).define({
|
|
14864
|
+
filter: {
|
|
14865
|
+
branchIds: { $in: unref(values).branchIds }
|
|
14866
|
+
}
|
|
14867
|
+
})
|
|
14868
|
+
}, null, 8, ["modelValue", "field", "query"]),
|
|
14863
14869
|
unref(values).domain == "marketing" ? (openBlock(), createBlock(unref(NeonFields), {
|
|
14864
|
-
key:
|
|
14870
|
+
key: 0,
|
|
14865
14871
|
md: "grid-cols-2"
|
|
14866
14872
|
}, {
|
|
14867
14873
|
default: withCtx(() => [
|
|
14868
14874
|
createVNode(unref(OfficeRelation), {
|
|
14869
14875
|
modelValue: unref(values),
|
|
14870
|
-
"onUpdate:modelValue": _cache[
|
|
14871
|
-
field: unref(fields).stages
|
|
14872
|
-
"is-disabled": ""
|
|
14876
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
|
|
14877
|
+
field: unref(fields).stages
|
|
14873
14878
|
}, null, 8, ["modelValue", "field"]),
|
|
14874
14879
|
createVNode(unref(OfficeRelation), {
|
|
14875
14880
|
modelValue: unref(values),
|
|
14876
|
-
"onUpdate:modelValue": _cache[
|
|
14881
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isRef(values) ? values.value = $event : null),
|
|
14877
14882
|
field: unref(fields).target,
|
|
14878
14883
|
query: unref(Query).define({
|
|
14879
14884
|
filter: {
|
|
14880
14885
|
branchIds: { $in: unref(values).branchIds }
|
|
14881
14886
|
}
|
|
14882
|
-
})
|
|
14883
|
-
"is-disabled": ""
|
|
14887
|
+
})
|
|
14884
14888
|
}, null, 8, ["modelValue", "field", "query"])
|
|
14885
14889
|
]),
|
|
14886
14890
|
_: 1
|
|
14887
14891
|
/* STABLE */
|
|
14888
14892
|
})) : createCommentVNode("v-if", true),
|
|
14889
14893
|
unref(values).domain == "education" ? (openBlock(), createBlock(unref(OfficeRelation), {
|
|
14890
|
-
key:
|
|
14894
|
+
key: 1,
|
|
14891
14895
|
modelValue: unref(values),
|
|
14892
|
-
"onUpdate:modelValue": _cache[
|
|
14896
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(values) ? values.value = $event : null),
|
|
14893
14897
|
field: unref(fields).target,
|
|
14894
14898
|
query: unref(Query).define({
|
|
14895
14899
|
filter: {
|
|
14896
14900
|
branchIds: { $in: unref(values).branchIds }
|
|
14897
14901
|
}
|
|
14898
|
-
})
|
|
14899
|
-
"is-disabled": ""
|
|
14902
|
+
})
|
|
14900
14903
|
}, null, 8, ["modelValue", "field", "query"])) : createCommentVNode("v-if", true),
|
|
14901
14904
|
createVNode(unref(OfficeRelation), {
|
|
14902
14905
|
modelValue: unref(values),
|
|
14903
|
-
"onUpdate:modelValue": _cache[
|
|
14906
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => isRef(values) ? values.value = $event : null),
|
|
14904
14907
|
field: unref(fields).staffs,
|
|
14905
14908
|
"is-disabled": ""
|
|
14906
14909
|
}, null, 8, ["modelValue", "field"])
|
|
@@ -14911,7 +14914,50 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14911
14914
|
]),
|
|
14912
14915
|
_: 1
|
|
14913
14916
|
/* STABLE */
|
|
14914
|
-
})
|
|
14917
|
+
}),
|
|
14918
|
+
createCommentVNode(" PROGRESS "),
|
|
14919
|
+
!unref(isNew) ? (openBlock(), createBlock(unref(OfficeTab), {
|
|
14920
|
+
key: 0,
|
|
14921
|
+
handle: "progress",
|
|
14922
|
+
icon: "info-circle",
|
|
14923
|
+
title: "Progress"
|
|
14924
|
+
}, {
|
|
14925
|
+
default: withCtx(() => [
|
|
14926
|
+
createVNode(unref(OfficeCollectionRelated), {
|
|
14927
|
+
definition: "neu:personalia:progress",
|
|
14928
|
+
title: "Progress",
|
|
14929
|
+
description: "Progress dari tanggungjawab.",
|
|
14930
|
+
query: unref(Query).define({
|
|
14931
|
+
filter: [
|
|
14932
|
+
{
|
|
14933
|
+
planIds: unref(id)
|
|
14934
|
+
}
|
|
14935
|
+
],
|
|
14936
|
+
sort: {
|
|
14937
|
+
handle: "startedAt",
|
|
14938
|
+
direction: "ascending"
|
|
14939
|
+
}
|
|
14940
|
+
}),
|
|
14941
|
+
"is-ready": unref(isReady),
|
|
14942
|
+
columns: [
|
|
14943
|
+
"startedAt",
|
|
14944
|
+
"endedAt",
|
|
14945
|
+
"detail",
|
|
14946
|
+
"staffs",
|
|
14947
|
+
"virtualIsNotes",
|
|
14948
|
+
"accessStaffs"
|
|
14949
|
+
],
|
|
14950
|
+
sorts: ["startedAt", "startedAt", "createdAt", "updatedAt"],
|
|
14951
|
+
filters: ["staff"],
|
|
14952
|
+
"initial-values": {
|
|
14953
|
+
planIds: unref(id),
|
|
14954
|
+
plans: unref(values)
|
|
14955
|
+
}
|
|
14956
|
+
}, null, 8, ["query", "is-ready", "initial-values"])
|
|
14957
|
+
]),
|
|
14958
|
+
_: 1
|
|
14959
|
+
/* STABLE */
|
|
14960
|
+
})) : createCommentVNode("v-if", true)
|
|
14915
14961
|
]),
|
|
14916
14962
|
_: 1
|
|
14917
14963
|
/* STABLE */
|
|
@@ -14923,7 +14969,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14923
14969
|
};
|
|
14924
14970
|
}
|
|
14925
14971
|
});
|
|
14926
|
-
const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-
|
|
14972
|
+
const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-4c077382"]]);
|
|
14927
14973
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
14928
14974
|
...{
|
|
14929
14975
|
name: "PlanCollection"
|
|
@@ -20279,7 +20325,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20279
20325
|
createCommentVNode(" DOKUMEN "),
|
|
20280
20326
|
createVNode(unref(_sfc_main$i), {
|
|
20281
20327
|
toolbar: "side",
|
|
20282
|
-
"is-readonly": unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
20328
|
+
"is-readonly": unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "prepared" || unref(values).status === "resolved"
|
|
20283
20329
|
}, null, 8, ["is-readonly"]),
|
|
20284
20330
|
createCommentVNode(" PROGRESS "),
|
|
20285
20331
|
!unref(isNew) ? (openBlock(), createBlock(unref(OfficeTab), {
|
|
@@ -20336,7 +20382,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20336
20382
|
};
|
|
20337
20383
|
}
|
|
20338
20384
|
});
|
|
20339
|
-
const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-
|
|
20385
|
+
const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-88209980"]]);
|
|
20340
20386
|
const _hoisted_1$5 = { class: "flex flex-wrap" };
|
|
20341
20387
|
const _hoisted_2$5 = { class: "mt-2" };
|
|
20342
20388
|
const _hoisted_3$4 = { class: "mt-2" };
|
package/build/mock/style.css
CHANGED
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
display: block
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
.neu-plan-single[data-v-
|
|
234
|
+
.neu-plan-single[data-v-4c077382] {
|
|
235
235
|
display: block
|
|
236
236
|
}
|
|
237
237
|
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
display: block
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
.neu-submission-single[data-v-
|
|
348
|
+
.neu-submission-single[data-v-88209980] {
|
|
349
349
|
display: block
|
|
350
350
|
}
|
|
351
351
|
|
package/build/module.json
CHANGED
package/build/nuxt.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-interfaces",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.8-beta.1",
|
|
4
4
|
"description": "Interface library of Neutron Operasional.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@neon.id/nuxt": "^1.5.0",
|
|
79
79
|
"@neon.id/office": "^1.39.0",
|
|
80
80
|
"@neon.id/utils": "^1.51.0",
|
|
81
|
-
"@neutron.co.id/operasional-modules": "1.12.
|
|
81
|
+
"@neutron.co.id/operasional-modules": "1.12.5-beta.1",
|
|
82
82
|
"@neutron.co.id/personalia-models": "1.13.3-beta.1",
|
|
83
83
|
"@nuxt/kit": "^3.12.3",
|
|
84
84
|
"file-saver": "^2.0.5",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"@neon.id/nuxt": "^1.5.0",
|
|
149
149
|
"@neon.id/office": "^1.39.0",
|
|
150
150
|
"@neon.id/utils": "^1.51.0",
|
|
151
|
-
"@neutron.co.id/operasional-modules": "1.12.
|
|
151
|
+
"@neutron.co.id/operasional-modules": "1.12.5-beta.1",
|
|
152
152
|
"@neutron.co.id/personalia-models": "1.13.3-beta.1",
|
|
153
153
|
"@nuxt/kit": "^3.12.3",
|
|
154
154
|
"file-saver": "^2.0.5",
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
"publishConfig": {
|
|
160
160
|
"access": "public"
|
|
161
161
|
},
|
|
162
|
-
"build":
|
|
162
|
+
"build": 162
|
|
163
163
|
}
|