@bagelink/vue 1.0.66 → 1.1.6-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.
Files changed (45) hide show
  1. package/dist/components/calendar/Index.vue.d.ts +41 -41
  2. package/dist/components/calendar/components/header/Header.vue.d.ts +10 -10
  3. package/dist/components/calendar/components/month/Month.vue.d.ts +6 -6
  4. package/dist/components/calendar/components/partials/EventFlyout.vue.d.ts +6 -6
  5. package/dist/components/calendar/components/week/Day.vue.d.ts +9 -9
  6. package/dist/components/calendar/components/week/DayEvent.vue.d.ts +9 -9
  7. package/dist/components/calendar/components/week/FullDayEvent.vue.d.ts +3 -3
  8. package/dist/components/calendar/components/week/Week.vue.d.ts +16 -16
  9. package/dist/components/calendar/components/week/WeekTimeline.vue.d.ts +2 -2
  10. package/dist/components/calendar/models/Event.d.ts +7 -7
  11. package/dist/components/calendar/typings/config.interface.d.ts +2 -2
  12. package/dist/components/calendar/typings/interfaces/event.interface.d.ts +4 -4
  13. package/dist/components/calendar/typings/types.d.ts +2 -1
  14. package/dist/components/calendar/typings/types.d.ts.map +1 -1
  15. package/dist/components/form/inputs/DateInput.vue.d.ts +7 -3
  16. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  17. package/dist/components/form/inputs/DatePick.vue.d.ts +3 -3
  18. package/dist/components/form/inputs/DatePick.vue.d.ts.map +1 -1
  19. package/dist/components/form/inputs/OTP.vue.d.ts.map +1 -1
  20. package/dist/index.cjs +278 -120
  21. package/dist/index.mjs +279 -121
  22. package/dist/style.css +724 -716
  23. package/dist/types/timeago.d.ts +23 -0
  24. package/dist/types/timeago.d.ts.map +1 -0
  25. package/dist/utils/timeAgo.d.ts +2 -3
  26. package/dist/utils/timeAgo.d.ts.map +1 -1
  27. package/package.json +4 -4
  28. package/src/components/calendar/Index.vue +3 -3
  29. package/src/components/calendar/components/header/Header.vue +4 -4
  30. package/src/components/calendar/components/week/Day.vue +2 -2
  31. package/src/components/calendar/components/week/DayEvent.vue +2 -2
  32. package/src/components/calendar/components/week/FullDayEvent.vue +2 -2
  33. package/src/components/calendar/components/week/Week.vue +4 -4
  34. package/src/components/calendar/components/week/WeekTimeline.vue +2 -2
  35. package/src/components/calendar/models/Event.ts +7 -7
  36. package/src/components/calendar/typings/config.interface.ts +2 -2
  37. package/src/components/calendar/typings/interfaces/event.interface.ts +4 -4
  38. package/src/components/calendar/typings/types.ts +3 -1
  39. package/src/components/form/inputs/DateInput.vue +18 -24
  40. package/src/components/form/inputs/DatePick.vue +6 -7
  41. package/src/components/form/inputs/OTP.vue +18 -5
  42. package/src/components/form/inputs/SignaturePad.vue +1 -1
  43. package/src/components/lightbox/Lightbox.vue +1 -1
  44. package/src/types/timeago.ts +51 -0
  45. package/src/utils/timeAgo.ts +30 -36
@@ -1,5 +1,5 @@
1
1
  import { EventColor, EventID, EventInterface } from '../typings/interfaces/event.interface';
2
- import { modeType } from '../typings/types';
2
+ import { ModeType } from '../typings/types';
3
3
  export declare class EventImpl implements EventInterface {
4
4
  time: {
5
5
  start: string;
@@ -14,9 +14,9 @@ export declare class EventImpl implements EventInterface {
14
14
  colorScheme?: string;
15
15
  color?: EventColor;
16
16
  isEditable?: boolean;
17
- disableDnD?: modeType[];
18
- disableResize?: modeType[];
19
- isCustom?: boolean | modeType[];
17
+ disableDnD?: ModeType[];
18
+ disableResize?: ModeType[];
19
+ isCustom?: boolean | ModeType[];
20
20
  nOfPreviousConcurrentEvents?: number;
21
21
  constructor(time: {
22
22
  start: string;
@@ -43,8 +43,8 @@ export declare class EventBuilder {
43
43
  withWith($with: string): this;
44
44
  withNOfPreviousConcurrentEvents(nOfPreviousConcurrentEvents: number): this;
45
45
  withIsEditable(isEditable: boolean): this;
46
- withIsCustom(isCustom: boolean | modeType[]): this;
47
- withDisableDnD(disableDnD: modeType[]): this;
48
- withDisableResize(disableResize: modeType[]): this;
46
+ withIsCustom(isCustom: boolean | ModeType[]): this;
47
+ withDisableDnD(disableDnD: ModeType[]): this;
48
+ withDisableResize(disableResize: ModeType[]): this;
49
49
  }
50
50
  //# sourceMappingURL=Event.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { WEEK_START_DAY } from '../helpers/Time';
2
- import { modeType } from './types';
2
+ import { ModeType } from './types';
3
3
  export declare enum DAY_TIME_POINT {
4
4
  MIDNIGHT = 0,
5
5
  ONE_AM = 100,
@@ -54,7 +54,7 @@ export interface ConfigInterface {
54
54
  fontFamily?: string;
55
55
  colorSchemes?: ColorSchemes;
56
56
  };
57
- defaultMode?: modeType;
57
+ defaultMode?: ModeType;
58
58
  disableModes?: ('week' | 'month' | string)[];
59
59
  isSilent?: boolean;
60
60
  dayIntervals?: DayIntervalsType;
@@ -1,4 +1,4 @@
1
- import { modeType } from '../types';
1
+ import { ModeType } from '../types';
2
2
  export type EventID = string | number;
3
3
  export type EVENT_TYPE = 'SINGLE_DAY_TIMED' | 'SINGLE_DAY_FULL_DAY' | 'SINGLE_HYBRID_DAY_TIMED' | 'MULTI_DAY_TIMED' | 'MULTI_DAY_FULL_DAY';
4
4
  export type EventColor = 'blue' | 'yellow' | 'green' | 'red' | 'purple';
@@ -16,9 +16,9 @@ export interface EventInterface {
16
16
  colorScheme?: string;
17
17
  color?: EventColor;
18
18
  isEditable?: boolean;
19
- disableDnD?: modeType[];
20
- disableResize?: modeType[];
21
- isCustom?: boolean | modeType[];
19
+ disableDnD?: ModeType[];
20
+ disableResize?: ModeType[];
21
+ isCustom?: boolean | ModeType[];
22
22
  zIndex?: number;
23
23
  nOfPreviousConcurrentEvents?: number;
24
24
  totalConcurrentEvents?: number;
@@ -8,7 +8,8 @@ export interface DOMRect {
8
8
  x: number;
9
9
  y: number;
10
10
  }
11
- export type modeType = 'day' | 'week' | 'month' | 'agenda';
11
+ export type DateViewMode = 'days' | 'months' | 'years';
12
+ export type ModeType = 'day' | 'week' | 'month' | 'agenda';
12
13
  export declare enum DRAG_N_RESIZE_DIRECTION {
13
14
  BACKWARDS = "backwards",
14
15
  FORWARDS = "forwards"
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/typings/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT;AAED,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;AAI1D,oBAAY,uBAAuB;IAClC,SAAS,cAAc;IACvB,QAAQ,aAAa;CACrB;AAED,MAAM,WAAW,OAAO;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/typings/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEtD,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;AAI1D,oBAAY,uBAAuB;IAClC,SAAS,cAAc;IACvB,QAAQ,aAAa;CACrB;AAED,MAAM,WAAW,OAAO;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;CACtB"}
@@ -1,15 +1,19 @@
1
- import { modeType } from '../../calendar/typings/types';
1
+ import { ModeType } from '../../calendar/typings/types';
2
2
  import { WEEK_START_DAY } from '../../calendar/helpers/Time';
3
3
  type __VLS_Props = {
4
4
  required?: boolean;
5
5
  label?: string;
6
6
  editMode?: boolean;
7
7
  small?: boolean;
8
+ /**
9
+ * Whether to enable time selection.
10
+ * @default false
11
+ */
8
12
  enableTime?: boolean;
9
13
  modelValue?: string | Date;
10
14
  min?: string | Date;
11
15
  max?: string | Date;
12
- mode?: modeType;
16
+ mode?: ModeType;
13
17
  defaultValue?: string | Date;
14
18
  firstDayOfWeek?: WEEK_START_DAY;
15
19
  locale?: string;
@@ -21,7 +25,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
21
25
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
22
26
  }>, {
23
27
  small: boolean;
24
- mode: modeType;
28
+ mode: ModeType;
25
29
  editMode: boolean;
26
30
  enableTime: boolean;
27
31
  firstDayOfWeek: WEEK_START_DAY;
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/DateInput.vue"],"names":[],"mappings":"AA0nBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAG5D,OAAa,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAMlE,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,GAAG,CAAC,EAAE,M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;;;;;AA62BjB,wBAUG"}
@@ -1,4 +1,4 @@
1
- import { modeType } from '../../calendar/typings/types';
1
+ import { ModeType } from '../../calendar/typings/types';
2
2
  import { WEEK_START_DAY } from '../../calendar/helpers/Time';
3
3
  type __VLS_Props = {
4
4
  required?: boolean;
@@ -10,7 +10,7 @@ type __VLS_Props = {
10
10
  min?: string | Date;
11
11
  max?: string | Date;
12
12
  timezone?: string;
13
- mode?: modeType;
13
+ mode?: ModeType;
14
14
  firstDayOfWeek?: WEEK_START_DAY;
15
15
  locale?: string;
16
16
  center?: boolean;
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
21
21
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
22
22
  }>, {
23
23
  small: boolean;
24
- mode: modeType;
24
+ mode: ModeType;
25
25
  editMode: boolean;
26
26
  enableTime: boolean;
27
27
  timezone: string;
@@ -1 +1 @@
1
- {"version":3,"file":"DatePick.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/DatePick.vue"],"names":[],"mappings":"AAycA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAE5D,OAAa,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAElE,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;CAEhB,CAAC;;;;;;WAXO,OAAO;UAMR,QAAQ;cAPJ,OAAO;gBAEL,OAAO;cAIT,MAAM;oBAEA,cAAc;YACtB,MAAM;;AAsqBjB,wBASG"}
1
+ {"version":3,"file":"DatePick.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/DatePick.vue"],"names":[],"mappings":"AAwcA,OAAO,KAAK,EAAgB,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAE1E,OAAa,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAElE,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;CAEhB,CAAC;;;;;;WAXO,OAAO;UAMR,QAAQ;cAPJ,OAAO;gBAEL,OAAO;cAIT,MAAM;oBAEA,cAAc;YACtB,MAAM;;AAqqBjB,wBASG"}
@@ -1 +1 @@
1
- {"version":3,"file":"OTP.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/OTP.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;;;;;;;;;;AAqJjF,wBASG"}
1
+ {"version":3,"file":"OTP.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/OTP.vue"],"names":[],"mappings":"AAgKA,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;;;;;;;;;;AA4JjF,wBASG"}