beesoft-components 0.3.2 → 0.3.4-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/LICENSE +1 -1
  2. package/README.md +23 -22
  3. package/dist/index.es.js +8490 -0
  4. package/dist/index.es.js.gz +0 -0
  5. package/dist/index.umd.js +51 -0
  6. package/dist/index.umd.js.gz +0 -0
  7. package/dist/style.css +1 -0
  8. package/dist/style.css.gz +0 -0
  9. package/package.json +78 -104
  10. package/types/index.d.ts +323 -0
  11. package/build/index.cjs.js +0 -32807
  12. package/build/index.js +0 -32802
  13. package/build/index.min.js +0 -37
  14. package/build/index.min.js.gz +0 -0
  15. package/build/types/src/components/common/beesoft-transition/beesoft-transition.component.d.ts +0 -22
  16. package/build/types/src/components/common/template-outlet/template-outlet.component.d.ts +0 -8
  17. package/build/types/src/components/common-event-handlers.d.ts +0 -4
  18. package/build/types/src/components/common-functions.d.ts +0 -16
  19. package/build/types/src/components/common-hooks.d.ts +0 -1
  20. package/build/types/src/components/common-interfaces.d.ts +0 -13
  21. package/build/types/src/components/dom-handler.d.ts +0 -30
  22. package/build/types/src/components/font-awesome.d.ts +0 -1
  23. package/build/types/src/components/form/date-time/date-time-calendar.component.d.ts +0 -34
  24. package/build/types/src/components/form/date-time/date-time-context.d.ts +0 -10
  25. package/build/types/src/components/form/date-time/date-time-day-selector.component.d.ts +0 -13
  26. package/build/types/src/components/form/date-time/date-time-format-creator.d.ts +0 -28
  27. package/build/types/src/components/form/date-time/date-time-functions.d.ts +0 -19
  28. package/build/types/src/components/form/date-time/date-time-month-selector.component.d.ts +0 -10
  29. package/build/types/src/components/form/date-time/date-time-range-selector.component.d.ts +0 -11
  30. package/build/types/src/components/form/date-time/date-time-scroller.component.d.ts +0 -19
  31. package/build/types/src/components/form/date-time/date-time-time-selector.component.d.ts +0 -13
  32. package/build/types/src/components/form/date-time/date-time-types.d.ts +0 -48
  33. package/build/types/src/components/form/date-time/date-time-year-selector.component.d.ts +0 -8
  34. package/build/types/src/components/form/date-time/date-time.component.d.ts +0 -36
  35. package/build/types/src/components/form/date-time/date-time.component.stories.d.ts +0 -43
  36. package/build/types/src/components/form/date-time/date-time.reducer.d.ts +0 -36
  37. package/build/types/src/components/form/date-time/hooks/get-date-time-format.hook.d.ts +0 -4
  38. package/build/types/src/components/form/form-control.interface.d.ts +0 -12
  39. package/build/types/src/components/form/input/content-editable-input/content-editable-input.component.d.ts +0 -25
  40. package/build/types/src/components/form/input/content-editable-input/content-editable-input.component.stories.d.ts +0 -6
  41. package/build/types/src/components/form/input/formatted-input/formatted-input.component.d.ts +0 -11
  42. package/build/types/src/components/form/input/formatted-input/formatted-input.component.stories.d.ts +0 -6
  43. package/build/types/src/components/form/input/formatted-input/input-format.interfaces.d.ts +0 -23
  44. package/build/types/src/components/form/input/formatted-input/parser/format-instance-collection.d.ts +0 -13
  45. package/build/types/src/components/form/input/formatted-input/parser/format-navigator.d.ts +0 -31
  46. package/build/types/src/components/form/input/formatted-input/parser/format-parser.d.ts +0 -27
  47. package/build/types/src/components/form/input/formatted-input/parser/format-renderer.d.ts +0 -10
  48. package/build/types/src/components/form/input/formatted-input/parser/input-rule-processor.d.ts +0 -20
  49. package/build/types/src/components/form/input/formatted-input/parser/input-slot-collection.d.ts +0 -14
  50. package/build/types/src/components/form/input/formatted-input/parser/input-slot-creator.d.ts +0 -4
  51. package/build/types/src/components/form/input/formatted-input/parser/key-processor.d.ts +0 -14
  52. package/build/types/src/components/form/input/formatted-input/parser/key-type-checker.d.ts +0 -11
  53. package/build/types/src/components/form/input/formatted-input/parser/parser.interfaces.d.ts +0 -24
  54. package/build/types/src/components/form/input/formatted-input/parser/part-entry-creator.d.ts +0 -5
  55. package/build/types/src/components/form/input/formatted-input/parser/part-entry-iterator.d.ts +0 -14
  56. package/build/types/src/components/overlay/overlay-panel/overlay-panel.component.d.ts +0 -23
  57. package/build/types/src/index.d.ts +0 -12
  58. package/build/types/src/interfaces/iterator.interface.d.ts +0 -7
  59. package/build/types/src/setupTests.d.ts +0 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Beehive Inc / custom-components / react
3
+ Copyright (c) 2023 Beehive Inc / custom-components / react
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -16,27 +16,28 @@ _Starting with version 0.2.0 there are breaking changes with the current templat
16
16
 
17
17
  This is the main component in the library currently; it has the ability to select not only a date but also time. Below are the current component properties (currently all of them are optional).
18
18
 
19
- | Name | Type | Description |
20
- | ----------- | ---------- | ----------- |
21
- | **value** | `string, Date or Date[]` | Sets the value of the component can either be a date object or a string in a local or ISO format. |
22
- | **readOnly** | `boolean` | Allows the component to have a value set but not allow it to be modified. |
23
- | **label** | `string` | Sets the label for the component. |
24
- | **useDefaultDateValue** | `boolean` | If set to true then the current date will be populated in the selection box. |
25
- | **locale** | `string` | Allows the locale settings to be overridden, if this is not set then the users locale settings will be used. |
26
- | **className** | `string` | Allows css modifications to be made to the default input box of the component. |
27
- | **dateSelection** | `DateSelectionType` | Allows the component to be set in 4 modes DateTime, Date Only, Time Only and Date Range (`default Date/Time`). |
28
- | **dateFormat** | `DateFormatType` | Allows for the date to be formatted in short, medium or long formats. |
29
- | **timeConstraints** | `TimeConstraints` | Allows the time selection component to determine how the increment/decrement the values (currently only minute works). |
30
- | **icon** | `JSX.Element` | This can be used to change the calendar icon. |
31
- | **iconPosition** | `CalendarIconPosition` | Determines if the calendar icon appears on the right or the left. |
32
- | **inputElement** | `HTMLElement` | When a custom input template is used this gives the component the HTMLElement to use for calendar positioning. |
33
- | **colors** | `DateTimeColors` | A group of settings that can be used to change particular color settings. |
34
- | **selectableDate** | `(currentDate: Date) => boolean` | Determines if a date is allowed to be selected...if false is returned then the date will be disabled. |
35
- | **isValidDate** | `(selectedDate: Date) => boolean` | Determines if the passed date is a valid selectable date...if false is returned then the selection isn't made. |
36
- | **onChange** | `(value: Date) => void` | Returns the value selected by the user (even though this optional it is recommended to be set). |
37
- | **calendarTemplate** | `DateTimeCalendarTemplate` | Allows the calendar UI to be overridden or added to. |
38
- | **dateScrollerTemplate** | `DateTimeScrollerTemplate` | Allows the scroller UI to be overridden or added to. |
39
- | **inputTemplate** | `DateTimeInputTemplate` | Allows for a different input and label to be used for the component. |
19
+ | Name | Type | Description |
20
+ |--------------------------|-----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
21
+ | **value** | `string, Date or Date[]` | Sets the value of the component can either be a date object or a string in a local or ISO format. |
22
+ | **readOnly** | `boolean` | Allows the component to have a value set but not allow it to be modified. |
23
+ | **label** | `string` | Sets the label for the component. |
24
+ | **useDefaultDateValue** | `boolean` | If set to true then the current date will be populated in the selection box. |
25
+ | **useFormattedInput** | `boolean` | If set to true the formatted input will be used for typing the date. | |
26
+ | **locale** | `string` | Allows the locale settings to be overridden, if this is not set then the users locale settings will be used. |
27
+ | **className** | `string` | Allows css modifications to be made to the default input box of the component. |
28
+ | **dateSelection** | `DateSelectionType` | Allows the component to be set in 4 modes DateTime, Date Only, Time Only and Date Range (`default Date/Time`). |
29
+ | **dateFormat** | `DateFormatType` | Allows for the date to be formatted in short, medium or long formats. |
30
+ | **timeConstraints** | `TimeConstraints` | Allows the time selection component to determine how the increment/decrement the values (currently only minute works). |
31
+ | **icon** | `JSX.Element` | This can be used to change the calendar icon. |
32
+ | **iconPosition** | `CalendarIconPosition` | Determines if the calendar icon appears on the right or the left. |
33
+ | **inputElement** | `HTMLElement` | When a custom input template is used this gives the component the HTMLElement to use for calendar positioning. |
34
+ | **colors** | `DateTimeColors` | A group of settings that can be used to change particular color settings. |
35
+ | **selectableDate** | `(currentDate: Date) => boolean` | Determines if a date is allowed to be selected...if false is returned then the date will be disabled. |
36
+ | **isValidDate** | `(selectedDate: Date) => boolean` | Determines if the passed date is a valid selectable date...if false is returned then the selection isn't made. This also works for dates typed into the formatted input. |
37
+ | **onChange** | `(value: Date) => void` | Returns the value selected by the user (even though this optional it is recommended to be set). |
38
+ | **calendarTemplate** | `DateTimeCalendarTemplate` | Allows the calendar UI to be overridden or added to. |
39
+ | **dateScrollerTemplate** | `DateTimeScrollerTemplate` | Allows the scroller UI to be overridden or added to. |
40
+ | **inputTemplate** | `DateTimeInputTemplate` | Allows for a different input and label to be used for the component. |
40
41
 
41
42
  ### Templating
42
43
 
@@ -103,7 +104,7 @@ To allow for more customizing CSS placeholder classes have been added to the com
103
104
  // the styles for the component label
104
105
  }
105
106
  .bc-dt-input {
106
- // the styles for the input containing the date string
107
+ // the styles for the inputs containing the date string
107
108
  }
108
109
  .bc-dt-day-selector {
109
110
  .bc-dt-scroller {