@neutron.co.id/operasional-interfaces 1.6.6 → 1.6.8
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 +14186 -3243
- package/build/index.mjs +14187 -3244
- package/build/style.css +112 -10
- package/build/types/components/common/NeonTime/NeonTime.vue.d.ts +35 -0
- package/build/types/components/common/NeonTime/index.d.ts +1 -0
- package/build/types/components/common/index.d.ts +1 -0
- package/build/types/components/index.d.ts +6 -0
- package/build/types/components/plan/index.d.ts +2 -0
- package/build/types/components/plan/plan.types.d.ts +2 -0
- package/build/types/components/plan/sheets/PlanCollection.vue.d.ts +2 -0
- package/build/types/components/plan/sheets/PlanSingle.vue.d.ts +2 -0
- package/build/types/components/plan/sheets/PlanStaff.vue.d.ts +2 -0
- package/build/types/components/plan/sheets/index.d.ts +3 -0
- package/build/types/components/planType/index.d.ts +2 -0
- package/build/types/components/planType/planType.types.d.ts +2 -0
- package/build/types/components/planType/sheets/PlanTypeCollection.vue.d.ts +2 -0
- package/build/types/components/planType/sheets/PlanTypeSingle.vue.d.ts +2 -0
- package/build/types/components/planType/sheets/index.d.ts +2 -0
- package/build/types/components/progress/index.d.ts +2 -0
- package/build/types/components/progress/progress.types.d.ts +2 -0
- package/build/types/components/progress/sheets/ProgressCollection.vue.d.ts +2 -0
- package/build/types/components/progress/sheets/ProgressSingle.vue.d.ts +2 -0
- package/build/types/components/progress/sheets/index.d.ts +2 -0
- package/build/types/components/responsibility/index.d.ts +2 -0
- package/build/types/components/responsibility/responsibility.types.d.ts +2 -0
- package/build/types/components/responsibility/sheets/ResponsibilityCollection.vue.d.ts +2 -0
- package/build/types/components/responsibility/sheets/ResponsibilitySingle.vue.d.ts +2 -0
- package/build/types/components/responsibility/sheets/ResponsibilityStaff.vue.d.ts +2 -0
- package/build/types/components/responsibility/sheets/index.d.ts +3 -0
- package/build/types/components/responsibilityType/index.d.ts +2 -0
- package/build/types/components/responsibilityType/responsibilityType.types.d.ts +2 -0
- package/build/types/components/responsibilityType/sheets/ResponsibilityTypeCollection.vue.d.ts +2 -0
- package/build/types/components/responsibilityType/sheets/ResponsibilityTypeSingle.vue.d.ts +2 -0
- package/build/types/components/responsibilityType/sheets/index.d.ts +2 -0
- package/build/types/components/target/index.d.ts +2 -0
- package/build/types/components/target/sheets/TargetBranch.vue.d.ts +2 -0
- package/build/types/components/target/sheets/TargetCollection.vue.d.ts +2 -0
- package/build/types/components/target/sheets/TargetSingle.vue.d.ts +2 -0
- package/build/types/components/target/sheets/index.d.ts +3 -0
- package/build/types/components/target/target.types.d.ts +2 -0
- package/build/types/gql/graphql.d.ts +16455 -4290
- package/build/types/utils/index.d.ts +4 -1
- package/build/types/utils/util.date.d.ts +4 -0
- package/build/types/utils/util.duration.d.ts +8 -0
- package/build/types/utils/util.score.d.ts +5 -0
- package/build/types/utils/util.string.d.ts +5 -0
- package/package.json +3 -2
- package/build/types/utils/date/index.d.ts +0 -11
- package/build/types/utils/date/util.date.d.ts +0 -20
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Unit } from 'humanize-duration';
|
|
2
|
+
import { Units } from 'parse-duration';
|
|
3
|
+
export declare function humanizeDuration(seconds?: number, units?: Unit[]): string;
|
|
4
|
+
export declare function parseDuration(durationString: string, unit?: Units): number;
|
|
5
|
+
export declare class DurationUtil {
|
|
6
|
+
static humanize(seconds?: number, units?: Unit[]): string;
|
|
7
|
+
static parse(durationString: string, unit?: Units): number;
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-interfaces",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.8",
|
|
4
4
|
"description": "Interface library of Neutron Operasional.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"@storybook/testing-library": "0.1.0",
|
|
88
88
|
"@storybook/vue3": "7.0.17",
|
|
89
89
|
"@storybook/vue3-vite": "7.0.17",
|
|
90
|
+
"@types/humanize-duration": "^3.27.1",
|
|
90
91
|
"@types/react": "18.2.7",
|
|
91
92
|
"@types/react-dom": "18.2.4",
|
|
92
93
|
"@typescript-eslint/eslint-plugin": "5.59.7",
|
|
@@ -145,5 +146,5 @@
|
|
|
145
146
|
"publishConfig": {
|
|
146
147
|
"access": "public"
|
|
147
148
|
},
|
|
148
|
-
"build":
|
|
149
|
+
"build": 106
|
|
149
150
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import 'dayjs/locale/en';
|
|
2
|
-
export declare class DateUtil {
|
|
3
|
-
static format(date?: string | Date, dateFormat?: string, locale?: string): string | undefined;
|
|
4
|
-
static formatRange({ startedAt, endedAt, locale, useTime, }: {
|
|
5
|
-
startedAt?: Date | null;
|
|
6
|
-
endedAt?: Date | null;
|
|
7
|
-
locale?: 'en' | 'id';
|
|
8
|
-
useTime?: boolean;
|
|
9
|
-
}): any;
|
|
10
|
-
}
|
|
11
|
-
export * from './util.date';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import 'dayjs/locale/id';
|
|
2
|
-
export declare function formatDate(date: string | Date, dateFormat?: string): string | undefined;
|
|
3
|
-
export declare class PeriodUtil {
|
|
4
|
-
static getStartOfDay(date: string): Date;
|
|
5
|
-
static getEndOfDay(date: string): Date;
|
|
6
|
-
static getPeriodFilter(keyStart: string, startedAt: string, keyEnd?: string, endedAt?: string): ({
|
|
7
|
-
[x: string]: {
|
|
8
|
-
$gte: Date;
|
|
9
|
-
};
|
|
10
|
-
} | {
|
|
11
|
-
[x: string]: {
|
|
12
|
-
$lte: Date;
|
|
13
|
-
};
|
|
14
|
-
})[];
|
|
15
|
-
static getPastPeriodFilter(key: string, startedAt: string): {
|
|
16
|
-
[x: string]: {
|
|
17
|
-
$lt: Date;
|
|
18
|
-
};
|
|
19
|
-
}[];
|
|
20
|
-
}
|