@neutron.co.id/operasional-interfaces 1.6.6 → 1.6.7

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.
Files changed (49) hide show
  1. package/build/index.cjs +14186 -3243
  2. package/build/index.mjs +14187 -3244
  3. package/build/style.css +112 -10
  4. package/build/types/components/common/NeonTime/NeonTime.vue.d.ts +35 -0
  5. package/build/types/components/common/NeonTime/index.d.ts +1 -0
  6. package/build/types/components/common/index.d.ts +1 -0
  7. package/build/types/components/index.d.ts +6 -0
  8. package/build/types/components/plan/index.d.ts +2 -0
  9. package/build/types/components/plan/plan.types.d.ts +2 -0
  10. package/build/types/components/plan/sheets/PlanCollection.vue.d.ts +2 -0
  11. package/build/types/components/plan/sheets/PlanSingle.vue.d.ts +2 -0
  12. package/build/types/components/plan/sheets/PlanStaff.vue.d.ts +2 -0
  13. package/build/types/components/plan/sheets/index.d.ts +3 -0
  14. package/build/types/components/planType/index.d.ts +2 -0
  15. package/build/types/components/planType/planType.types.d.ts +2 -0
  16. package/build/types/components/planType/sheets/PlanTypeCollection.vue.d.ts +2 -0
  17. package/build/types/components/planType/sheets/PlanTypeSingle.vue.d.ts +2 -0
  18. package/build/types/components/planType/sheets/index.d.ts +2 -0
  19. package/build/types/components/progress/index.d.ts +2 -0
  20. package/build/types/components/progress/progress.types.d.ts +2 -0
  21. package/build/types/components/progress/sheets/ProgressCollection.vue.d.ts +2 -0
  22. package/build/types/components/progress/sheets/ProgressSingle.vue.d.ts +2 -0
  23. package/build/types/components/progress/sheets/index.d.ts +2 -0
  24. package/build/types/components/responsibility/index.d.ts +2 -0
  25. package/build/types/components/responsibility/responsibility.types.d.ts +2 -0
  26. package/build/types/components/responsibility/sheets/ResponsibilityCollection.vue.d.ts +2 -0
  27. package/build/types/components/responsibility/sheets/ResponsibilitySingle.vue.d.ts +2 -0
  28. package/build/types/components/responsibility/sheets/ResponsibilityStaff.vue.d.ts +2 -0
  29. package/build/types/components/responsibility/sheets/index.d.ts +3 -0
  30. package/build/types/components/responsibilityType/index.d.ts +2 -0
  31. package/build/types/components/responsibilityType/responsibilityType.types.d.ts +2 -0
  32. package/build/types/components/responsibilityType/sheets/ResponsibilityTypeCollection.vue.d.ts +2 -0
  33. package/build/types/components/responsibilityType/sheets/ResponsibilityTypeSingle.vue.d.ts +2 -0
  34. package/build/types/components/responsibilityType/sheets/index.d.ts +2 -0
  35. package/build/types/components/target/index.d.ts +2 -0
  36. package/build/types/components/target/sheets/TargetBranch.vue.d.ts +2 -0
  37. package/build/types/components/target/sheets/TargetCollection.vue.d.ts +2 -0
  38. package/build/types/components/target/sheets/TargetSingle.vue.d.ts +2 -0
  39. package/build/types/components/target/sheets/index.d.ts +3 -0
  40. package/build/types/components/target/target.types.d.ts +2 -0
  41. package/build/types/gql/graphql.d.ts +16455 -4290
  42. package/build/types/utils/index.d.ts +4 -1
  43. package/build/types/utils/util.date.d.ts +4 -0
  44. package/build/types/utils/util.duration.d.ts +8 -0
  45. package/build/types/utils/util.score.d.ts +5 -0
  46. package/build/types/utils/util.string.d.ts +5 -0
  47. package/package.json +3 -2
  48. package/build/types/utils/date/index.d.ts +0 -11
  49. package/build/types/utils/date/util.date.d.ts +0 -20
@@ -1 +1,4 @@
1
- export * from './date';
1
+ export * from './util.date';
2
+ export * from './util.duration';
3
+ export * from './util.score';
4
+ export * from './util.string';
@@ -0,0 +1,4 @@
1
+ import dayjs from 'dayjs';
2
+ export declare class DateUtil {
3
+ static get day(): typeof dayjs;
4
+ }
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ export declare class ScoreUtil {
2
+ static toPercentage(value: number | undefined | null): number | undefined;
3
+ static parsePercentage(value: number): string;
4
+ static renderPercentage(value: number, handle: string): any;
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare class StringUtil {
2
+ static joinIfDefined(strings: (string | number | undefined)[], separator?: string): string;
3
+ static isValidUrl: (url: string) => boolean;
4
+ static slug(string: string): string;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
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": 103
149
+ "build": 105
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
- }