@neutron.co.id/operasional-interfaces 1.16.0-beta.2 → 1.16.0-beta.3

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.
@@ -2,8 +2,8 @@
2
2
  import { NeonButton } from '@neon.id/interfaces'
3
3
  import { DateUtil } from '@neon.id/utils/date'
4
4
  import type { NCalendar } from '@neon.id/display'
5
- import { usePeriod } from '../../../@common'
6
5
  import { computed } from 'vue'
6
+ import { usePeriod } from '../providers/period'
7
7
 
8
8
  const emit = defineEmits<{
9
9
  (e: 'update:period', period: Partial<NCalendar.PeriodData>): void
@@ -2,7 +2,7 @@ import { Query } from "@neon.id/query";
2
2
  import { DateUtil } from "@neon.id/utils/date";
3
3
  import { PeriodUtil } from "@neon.id/utils/period";
4
4
  import { computed, ref } from "vue";
5
- import { useOperasional } from "../../../@package/@office/common";
5
+ import { useOperasional } from "../operasional/index.mjs";
6
6
  export function usePeriod() {
7
7
  const { staff } = useOperasional();
8
8
  const isLoading = ref(false);
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { nextTick } from 'vue'
3
- import { usePeriod } from '../../../../@common'
4
3
  import { ShiftStaffWrapper } from './ShiftStaffWrapper'
4
+ import { usePeriod } from '../../../common/providers/period'
5
5
 
6
6
  defineOptions({ name: 'ShiftStaffCollectionBranch' })
7
7
 
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { nextTick } from 'vue'
3
- import { usePeriod } from '../../../../@common'
4
3
  import { ShiftStaffWrapper } from './ShiftStaffWrapper'
4
+ import { usePeriod } from '../../../common/providers/period'
5
5
 
6
6
  defineOptions({ name: 'ShiftStaffCollectionStaff' })
7
7
 
@@ -1,21 +1,17 @@
1
1
  <script setup lang="ts">
2
2
  import type { NCollection } from '@neon.id/context'
3
- import { useSingle, withCollection } from '@neon.id/context'
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({
@@ -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;
@@ -11851,7 +11851,7 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
11851
11851
  };
11852
11852
  }
11853
11853
  });
11854
- const PeriodButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["__scopeId", "data-v-c783f64d"]]);
11854
+ const PeriodButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["__scopeId", "data-v-5f2c3308"]]);
11855
11855
  const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
11856
11856
  ...{ name: "AttendanceCollection" },
11857
11857
  __name: "AttendanceCollection",
@@ -24925,7 +24925,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
24925
24925
  };
24926
24926
  }
24927
24927
  });
24928
- const ShiftStaffWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__scopeId", "data-v-5a743f14"]]);
24928
+ const ShiftStaffWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__scopeId", "data-v-2004177b"]]);
24929
24929
  const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
24930
24930
  ...{ name: "ShiftStaffCollectionStaff" },
24931
24931
  __name: "ShiftStaffCollectionStaff",
@@ -11832,7 +11832,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
11832
11832
  };
11833
11833
  }
11834
11834
  });
11835
- const PeriodButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["__scopeId", "data-v-c783f64d"]]);
11835
+ const PeriodButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["__scopeId", "data-v-5f2c3308"]]);
11836
11836
  const _sfc_main$1f = /* @__PURE__ */ defineComponent({
11837
11837
  ...{ name: "AttendanceCollection" },
11838
11838
  __name: "AttendanceCollection",
@@ -24906,7 +24906,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
24906
24906
  };
24907
24907
  }
24908
24908
  });
24909
- const ShiftStaffWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__scopeId", "data-v-5a743f14"]]);
24909
+ const ShiftStaffWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__scopeId", "data-v-2004177b"]]);
24910
24910
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24911
24911
  ...{ name: "ShiftStaffCollectionStaff" },
24912
24912
  __name: "ShiftStaffCollectionStaff",
@@ -91,7 +91,7 @@
91
91
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))
92
92
  }
93
93
 
94
- .period-button[data-v-c783f64d] {
94
+ .period-button[data-v-5f2c3308] {
95
95
  display: flex;
96
96
  flex-direction: row;
97
97
  gap: 0.5rem
@@ -470,18 +470,18 @@
470
470
  color: rgb(161 161 170 / var(--tw-text-opacity))
471
471
  }
472
472
 
473
- .shift-staff-wrapper .buttons[data-v-5a743f14] {
473
+ .shift-staff-wrapper .buttons[data-v-2004177b] {
474
474
  display: flex;
475
475
  align-items: center
476
476
  }
477
- .shift-staff-wrapper .buttons[data-v-5a743f14] > :not([hidden]) ~ :not([hidden]) {
477
+ .shift-staff-wrapper .buttons[data-v-2004177b] > :not([hidden]) ~ :not([hidden]) {
478
478
  --tw-space-x-reverse: 0;
479
479
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
480
480
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))
481
481
  }
482
- .shift-staff-wrapper .buttons[data-v-5a743f14] {
482
+ .shift-staff-wrapper .buttons[data-v-2004177b] {
483
483
  padding-right: 0.25rem
484
484
  }
485
- .shift-staff-wrapper .summary[data-v-5a743f14] {
485
+ .shift-staff-wrapper .summary[data-v-2004177b] {
486
486
  padding-bottom: 0.5rem
487
487
  }
package/build/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.16.0-beta.2",
7
+ "version": "1.16.0-beta.3",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/build/nuxt.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.16.0-beta.2",
7
+ "version": "1.16.0-beta.3",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.16.0-beta.2",
3
+ "version": "1.16.0-beta.3",
4
4
  "description": "Interface library of Neutron Operasional.",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -160,5 +160,5 @@
160
160
  "publishConfig": {
161
161
  "access": "public"
162
162
  },
163
- "build": 168
163
+ "build": 169
164
164
  }
@@ -1,5 +0,0 @@
1
- import { CoreInterface, type TCoreInterfaceSelector } from '@neon.id/context/helpers';
2
- export type TCommonFeature = string;
3
- export interface TOperasionalCommonInterfaceOptions extends TCoreInterfaceSelector<TCommonFeature> {
4
- }
5
- export declare const config: CoreInterface<string>;
@@ -1,16 +0,0 @@
1
- import {
2
- CoreInterface
3
- } from "@neon.id/context/helpers";
4
- export const config = CoreInterface.define({
5
- components: {
6
- common: [],
7
- features: {}
8
- },
9
- imports: {
10
- common: [
11
- // Composables
12
- "usePeriod"
13
- ],
14
- features: {}
15
- }
16
- });
@@ -1 +0,0 @@
1
- export * from './composables';
@@ -1 +0,0 @@
1
- export * from "./composables/index.mjs";
@@ -1 +0,0 @@
1
- export * from './composables';