@neutron.co.id/operasional-interfaces 1.16.0-beta.2 → 1.16.0
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/@mock/mock.interfaces.d.ts +1 -0
- package/build/@office/common/Import/ImportForm.vue +183 -0
- package/build/@office/common/NeutronImportButton/NeutronImportButton.vue +28 -0
- package/build/@office/common/NeutronImportButton/index.d.ts +1 -0
- package/build/@office/common/NeutronImportButton/index.mjs +1 -0
- package/build/@office/common/PeriodButton/PeriodButton.vue +1 -1
- package/build/@office/common/index.d.ts +1 -0
- package/build/@office/common/index.mjs +1 -0
- package/build/@office/common/providers/import/index.d.ts +1 -0
- package/build/@office/common/providers/import/index.mjs +1 -0
- package/build/@office/common/providers/import/useImportShift.d.ts +7 -0
- package/build/@office/common/providers/import/useImportShift.mjs +137 -0
- package/build/@office/common/providers/index.d.ts +3 -0
- package/build/@office/common/providers/index.mjs +3 -0
- package/build/@office/common/providers/office/index.d.ts +1 -0
- package/build/@office/common/providers/office/index.mjs +1 -0
- package/build/@office/common/providers/office/office.store.d.ts +7 -0
- package/build/@office/common/providers/office/office.store.mjs +11 -0
- package/build/{@common/composables → @office/common/providers/period}/period.use.mjs +1 -1
- package/build/@office/config.mjs +2 -1
- package/build/@office/models/personalia/shiftStaff/ShiftStaffCollectionBranch.vue +1 -1
- package/build/@office/models/personalia/shiftStaff/ShiftStaffCollectionStaff.vue +1 -1
- package/build/@office/models/personalia/shiftStaff/ShiftStaffImport.vue +159 -0
- package/build/@office/models/personalia/shiftStaff/ShiftStaffWrapper/ShiftStaffDisplay.vue +4 -1
- package/build/@office/models/personalia/shiftStaff/ShiftStaffWrapper/ShiftStaffWrapper.vue +8 -12
- package/build/@office/models/personalia/shiftStaff/index.d.ts +1 -0
- package/build/@office/models/personalia/shiftStaff/index.mjs +1 -0
- package/build/@office/models/personalia/shiftType/ShiftTypeSingle/ShiftTypeSingle.vue +1 -0
- package/build/@office/models/personalia/staff/StaffSingle/StaffSingle.vue +2 -2
- package/build/@package/@office/common/Import/ImportForm.vue.d.ts +78 -0
- package/build/@package/@office/common/NeutronImportButton/NeutronImportButton.vue.d.ts +2 -0
- package/build/@package/@office/common/NeutronImportButton/index.d.ts +1 -0
- package/build/@package/@office/common/index.d.ts +1 -0
- package/build/@package/@office/common/providers/import/index.d.ts +1 -0
- package/build/@package/@office/common/providers/import/useImportShift.d.ts +7 -0
- package/build/@package/@office/common/providers/index.d.ts +3 -0
- package/build/@package/@office/common/providers/office/index.d.ts +1 -0
- package/build/@package/@office/common/providers/office/office.store.d.ts +7 -0
- package/build/@package/@office/models/personalia/shiftStaff/ShiftStaffImport.vue.d.ts +2 -0
- package/build/@package/@office/models/personalia/shiftStaff/ShiftStaffWrapper/ShiftStaffWrapper.vue.d.ts +1 -1
- package/build/@package/@office/models/personalia/shiftStaff/index.d.ts +1 -0
- package/build/mock/index.cjs +1970 -632
- package/build/mock/index.mjs +1971 -633
- package/build/mock/style.css +70 -12
- package/build/module.json +1 -1
- package/build/nuxt.d.mts +2 -0
- package/build/nuxt.d.ts +2 -0
- package/build/nuxt.json +1 -1
- package/build/nuxt.mjs +4 -2
- package/build/runtime/plugins/plugin.operasional.js +8 -1
- package/package.json +6 -2
- package/build/@common/config.d.ts +0 -5
- package/build/@common/config.mjs +0 -16
- package/build/@common/index.d.ts +0 -1
- package/build/@common/index.mjs +0 -1
- package/build/@package/@common/index.d.ts +0 -1
- /package/build/{@common/composables → @office/common/providers/period}/index.d.ts +0 -0
- /package/build/{@common/composables → @office/common/providers/period}/index.mjs +0 -0
- /package/build/{@common/composables → @office/common/providers/period}/period.use.d.ts +0 -0
- /package/build/@package/{@common/composables → @office/common/providers/period}/index.d.ts +0 -0
- /package/build/@package/{@common/composables → @office/common/providers/period}/period.use.d.ts +0 -0
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { NCollection } from '@neon.id/context'
|
|
3
|
-
import {
|
|
3
|
+
import { withCollection } from '@neon.id/context'
|
|
4
|
+
import type { NNQuery } from '@neon.id/discovery'
|
|
5
|
+
import type { NCalendar } from '@neon.id/display'
|
|
4
6
|
import type { Fragment } from '@neon.id/model'
|
|
5
7
|
import { OfficeCollectionContent } from '@neon.id/office'
|
|
6
|
-
import {
|
|
7
|
-
type Schema,
|
|
8
|
-
ShiftStaffModel,
|
|
9
|
-
type TPersonaliaShiftStaffModel,
|
|
10
|
-
} from '@neutron.co.id/personalia-models'
|
|
11
|
-
import type { NCalendar } from '@neon.id/display'
|
|
12
|
-
import { type PropType, computed, ref, watchEffect } from 'vue'
|
|
13
|
-
import { useOperasional } from '../../../../common'
|
|
14
|
-
import { usePeriod } from '../../../../../@common'
|
|
15
|
-
import { useClientHandle } from '@urql/vue'
|
|
16
|
-
import type { NNQuery } from '@neon.id/discovery'
|
|
17
8
|
import { DateUtil } from '@neon.id/utils/date'
|
|
9
|
+
import { type Schema } from '@neutron.co.id/personalia-models'
|
|
10
|
+
import { useClientHandle } from '@urql/vue'
|
|
11
|
+
import { type PropType, computed, ref } from 'vue'
|
|
12
|
+
import { useOperasional } from '../../../../common'
|
|
18
13
|
import ShiftStaffDisplay from './ShiftStaffDisplay.vue'
|
|
14
|
+
import { usePeriod } from '../../../../common/providers/period'
|
|
19
15
|
defineOptions({ name: 'ShiftStaffWrapper' })
|
|
20
16
|
|
|
21
17
|
const props = defineProps({
|
|
@@ -4,3 +4,4 @@ export * from './ShiftStaffWrapper';
|
|
|
4
4
|
export { default as ShiftStaffCollectionStaff } from './ShiftStaffCollectionStaff.vue';
|
|
5
5
|
export { default as ShiftStaffCollectionBranch } from './ShiftStaffCollectionBranch.vue';
|
|
6
6
|
export { default as ShiftStaffSingleBranch } from './ShiftStaffSingleBranch.vue';
|
|
7
|
+
export { default as ShiftStaffImport } from './ShiftStaffImport.vue';
|
|
@@ -4,3 +4,4 @@ export * from "./ShiftStaffWrapper/index.mjs";
|
|
|
4
4
|
export { default as ShiftStaffCollectionStaff } from "./ShiftStaffCollectionStaff.vue";
|
|
5
5
|
export { default as ShiftStaffCollectionBranch } from "./ShiftStaffCollectionBranch.vue";
|
|
6
6
|
export { default as ShiftStaffSingleBranch } from "./ShiftStaffSingleBranch.vue";
|
|
7
|
+
export { default as ShiftStaffImport } from "./ShiftStaffImport.vue";
|
|
@@ -35,6 +35,7 @@ const {
|
|
|
35
35
|
@submit="saveOne"
|
|
36
36
|
>
|
|
37
37
|
<NeonField v-model="values.titleShift" v-bind="fields.titleShift" />
|
|
38
|
+
<NeonField v-model="values.code" v-bind="fields.code" />
|
|
38
39
|
<OfficeRelation v-model="values" :field="fields.branch" />
|
|
39
40
|
<div class="grid gap-2 sm:grid-cols-2">
|
|
40
41
|
<NeonField
|
|
@@ -124,7 +124,7 @@ const queryBelajar = computed(() => {
|
|
|
124
124
|
/>
|
|
125
125
|
</OfficeTab>
|
|
126
126
|
|
|
127
|
-
<OfficeTab
|
|
127
|
+
<!-- <OfficeTab
|
|
128
128
|
v-slot="{ isTouched }"
|
|
129
129
|
handle="learning"
|
|
130
130
|
icon="bolt"
|
|
@@ -158,7 +158,7 @@ const queryBelajar = computed(() => {
|
|
|
158
158
|
:is-ready="isReady && isTouched"
|
|
159
159
|
:excludes="['duplicate', 'create', 'delete', 'destroy', 'click']"
|
|
160
160
|
/>
|
|
161
|
-
</OfficeTab>
|
|
161
|
+
</OfficeTab> -->
|
|
162
162
|
</OfficeTabs>
|
|
163
163
|
</NeonSingle>
|
|
164
164
|
</template>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type NFileType } from '@neon.id/media';
|
|
2
|
+
import { type PropType } from 'vue';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
title: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
description: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
fileTypes: {
|
|
13
|
+
type: PropType<NFileType[]>;
|
|
14
|
+
default: () => never[];
|
|
15
|
+
};
|
|
16
|
+
icon: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
downloadLabel: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
uploadLabel: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
importLabel: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
"file-uploaded": (...args: any[]) => void;
|
|
34
|
+
"file-cancelled": (...args: any[]) => void;
|
|
35
|
+
imported: (...args: any[]) => void;
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
title: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
description: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
fileTypes: {
|
|
46
|
+
type: PropType<NFileType[]>;
|
|
47
|
+
default: () => never[];
|
|
48
|
+
};
|
|
49
|
+
icon: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
downloadLabel: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
uploadLabel: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
importLabel: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
}>> & {
|
|
66
|
+
"onFile-uploaded"?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
"onFile-cancelled"?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onImported?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
title: string;
|
|
71
|
+
icon: string;
|
|
72
|
+
description: string;
|
|
73
|
+
fileTypes: NFileType[];
|
|
74
|
+
downloadLabel: string;
|
|
75
|
+
uploadLabel: string;
|
|
76
|
+
importLabel: string;
|
|
77
|
+
}, {}>;
|
|
78
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NeutronImportButton } from './NeutronImportButton.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useImportShift';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NFileUpload } from '@neon.id/media';
|
|
2
|
+
import type { Mightbe } from '@neon.id/types';
|
|
3
|
+
export declare function useImportShift(): {
|
|
4
|
+
loadings: import("vue").Ref<Set<string> & Omit<Set<string>, keyof Set<any>>>;
|
|
5
|
+
onDownloadTemplateCsvFile: () => Promise<void>;
|
|
6
|
+
onUploadCsvFile: (upload: Mightbe<NFileUpload>) => Promise<void>;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './office.store';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const useOperasionalOfficeStore: import("pinia").StoreDefinition<"neu:operasional:office:store", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
officeApiUrl: import("vue").Ref<string | undefined>;
|
|
3
|
+
}, "officeApiUrl">>, Pick<{
|
|
4
|
+
officeApiUrl: import("vue").Ref<string | undefined>;
|
|
5
|
+
}, never>, Pick<{
|
|
6
|
+
officeApiUrl: import("vue").Ref<string | undefined>;
|
|
7
|
+
}, never>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NCollection } from '@neon.id/context';
|
|
2
|
+
import type { NNQuery } from '@neon.id/discovery';
|
|
2
3
|
import type { NCalendar } from '@neon.id/display';
|
|
3
4
|
import { type PropType } from 'vue';
|
|
4
|
-
import type { NNQuery } from '@neon.id/discovery';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
title: {
|
|
7
7
|
type: StringConstructor;
|
|
@@ -4,3 +4,4 @@ export * from './ShiftStaffWrapper';
|
|
|
4
4
|
export { default as ShiftStaffCollectionStaff } from './ShiftStaffCollectionStaff.vue';
|
|
5
5
|
export { default as ShiftStaffCollectionBranch } from './ShiftStaffCollectionBranch.vue';
|
|
6
6
|
export { default as ShiftStaffSingleBranch } from './ShiftStaffSingleBranch.vue';
|
|
7
|
+
export { default as ShiftStaffImport } from './ShiftStaffImport.vue';
|