@sprucelabs/calendar-utils 39.0.292 → 40.0.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.
Files changed (59) hide show
  1. package/build/.spruce/errors/calendarUtils/invalidTimezoneName.schema.js +3 -3
  2. package/build/.spruce/errors/errors.types.d.ts +2 -2
  3. package/build/.spruce/errors/errors.types.js +0 -2
  4. package/build/.spruce/errors/options.types.d.ts +2 -2
  5. package/build/.spruce/schemas/calendarUtils/v2021_05_19/calendarEvent.schema.js +121 -59
  6. package/build/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventLineIcon.schema.js +175 -5
  7. package/build/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventTarget.schema.js +11 -11
  8. package/build/.spruce/schemas/calendarUtils/v2021_05_19/eventExclusionDate.schema.js +7 -7
  9. package/build/.spruce/schemas/calendarUtils/v2021_05_19/eventTimeBlock.schema.js +13 -13
  10. package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
  11. package/build/.spruce/schemas/schemas.types.d.ts +840 -648
  12. package/build/.spruce/schemas/schemas.types.js +0 -2
  13. package/build/errors/SpruceError.d.ts +1 -1
  14. package/build/errors/SpruceError.js +1 -1
  15. package/build/esm/.spruce/errors/errors.types.d.ts +2 -2
  16. package/build/esm/.spruce/errors/errors.types.js +0 -2
  17. package/build/esm/.spruce/errors/options.types.d.ts +2 -2
  18. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/calendarEvent.schema.js +121 -59
  19. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventLineIcon.schema.js +175 -5
  20. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventTarget.schema.js +11 -11
  21. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/eventExclusionDate.schema.js +7 -7
  22. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/eventTimeBlock.schema.js +13 -13
  23. package/build/esm/.spruce/schemas/schemas.types.d.ts +840 -648
  24. package/build/esm/.spruce/schemas/schemas.types.js +0 -2
  25. package/build/esm/constants.d.ts +2 -2
  26. package/build/esm/errors/SpruceError.d.ts +1 -1
  27. package/build/esm/index.d.ts +1 -1
  28. package/build/esm/locales/Locale.js +1 -1
  29. package/build/esm/parsing/strategies/DowParser.js +3 -2
  30. package/build/esm/schemas/v2021_05_19/calendarEvent.builder.d.ts +8 -8
  31. package/build/esm/types/calendar.types.d.ts +3 -3
  32. package/build/esm/utilities/PeopleSorter.d.ts +2 -2
  33. package/build/esm/utilities/PeopleSorter.js +3 -1
  34. package/build/esm/utilities/calendar.utility.d.ts +3 -3
  35. package/build/esm/utilities/date.utility.js +1 -1
  36. package/build/esm/utilities/duration.utility.d.ts +3 -1
  37. package/build/esm/utilities/duration.utility.js +3 -2
  38. package/build/index.d.ts +1 -1
  39. package/build/locales/DateUtilDecorator.js +25 -12
  40. package/build/locales/Locale.js +7 -5
  41. package/build/locales/TimezoneChoiceSorter.js +1 -0
  42. package/build/parsing/AbstractParser.js +2 -0
  43. package/build/parsing/DateParser.js +8 -2
  44. package/build/parsing/ParserFactory.js +9 -7
  45. package/build/parsing/strategies/DowParser.js +4 -4
  46. package/build/parsing/strategies/TimeParser.js +3 -4
  47. package/build/parsing/strategies/WeekParser.js +1 -2
  48. package/build/schemas/v2021_05_19/calendarEvent.builder.js +5 -2
  49. package/build/types/calendar.types.d.ts +3 -3
  50. package/build/utilities/PeopleSorter.d.ts +2 -2
  51. package/build/utilities/PeopleSorter.js +9 -9
  52. package/build/utilities/RepeatingRuleTextGenerator.js +17 -16
  53. package/build/utilities/calendar.utility.js +10 -6
  54. package/build/utilities/date.utility.js +2 -3
  55. package/build/utilities/duration.utility.d.ts +3 -1
  56. package/build/utilities/duration.utility.js +4 -3
  57. package/build/utilities/sortTimezoneChoices.js +5 -3
  58. package/package.json +21 -22
  59. package/tsconfig.json +3 -4
@@ -13,40 +13,40 @@ const eventTimeBlockSchema = {
13
13
  moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils',
14
14
  fields: {
15
15
  /** . */
16
- 'title': {
16
+ title: {
17
17
  type: 'text',
18
- options: undefined
18
+ options: undefined,
19
19
  },
20
20
  /** . */
21
- 'subtitle': {
21
+ subtitle: {
22
22
  type: 'text',
23
- options: undefined
23
+ options: undefined,
24
24
  },
25
25
  /** . */
26
- 'isBusy': {
26
+ isBusy: {
27
27
  type: 'boolean',
28
28
  isRequired: true,
29
- options: undefined
29
+ options: undefined,
30
30
  },
31
31
  /** . */
32
- 'durationMinutes': {
32
+ durationMinutes: {
33
33
  type: 'number',
34
34
  isRequired: true,
35
- options: undefined
35
+ options: undefined,
36
36
  },
37
37
  /** . */
38
- 'rightIcons': {
38
+ rightIcons: {
39
39
  type: 'schema',
40
40
  isArray: true,
41
- options: { schema: calendarEventLineIcon_schema_1.default, }
41
+ options: { schema: calendarEventLineIcon_schema_1.default },
42
42
  },
43
43
  /** . */
44
- 'leftIcons': {
44
+ leftIcons: {
45
45
  type: 'schema',
46
46
  isArray: true,
47
- options: { schema: calendarEventLineIcon_schema_1.default, }
47
+ options: { schema: calendarEventLineIcon_schema_1.default },
48
48
  },
49
- }
49
+ },
50
50
  };
51
51
  schema_1.SchemaRegistry.getInstance().trackSchema(eventTimeBlockSchema);
52
52
  exports.default = eventTimeBlockSchema;
@@ -1 +1 @@
1
- export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap } from '@sprucelabs/schema';
1
+ export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap, } from '@sprucelabs/schema';