pcm-shared-components 2.0.14 → 2.0.16

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 (58) hide show
  1. package/dist/app/config/reservation_state.js +89 -0
  2. package/dist/app/config/yes_no_status.js +72 -0
  3. package/dist/app/tools/date_formatter.js +141 -0
  4. package/dist/app/tools/date_overlap.js +177 -0
  5. package/dist/app/tools/seasonal_dates.js +229 -0
  6. package/dist/components/Buttons/CustomFab/index.js +0 -27
  7. package/dist/components/Buttons/DropdownButton/index.js +3 -11
  8. package/dist/components/Buttons/HelpButton/index.js +1 -6
  9. package/dist/components/Buttons/ProductItemButton/index.js +8 -22
  10. package/dist/components/Buttons/TillButton/index.js +3 -10
  11. package/dist/components/Date/DateRangeCalendar/index.js +1 -21
  12. package/dist/components/Dialogs/GenericAppBar/components/GenericAppBarSubMenu.js +4 -7
  13. package/dist/components/Dialogs/GenericAppBar/index.js +24 -22
  14. package/dist/components/Dialogs/GenericDialogWindow/index.js +20 -34
  15. package/dist/components/Drawing/CanvasPaint/index.js +12 -37
  16. package/dist/components/Drawing/ImageCanvasDraw/components/Controls.js +13 -10
  17. package/dist/components/Drawing/ImageCanvasDraw/index.js +11 -18
  18. package/dist/components/Drawing/ImageCanvasDraw/service/image_tools.js +6 -6
  19. package/dist/components/Images/ImageStack/index.js +0 -5
  20. package/dist/components/Labels/SimpleLabel/index.js +1 -7
  21. package/dist/components/Layout/SimpleTab/components/TabPanel.js +2 -3
  22. package/dist/components/Layout/SimpleTab/index.js +8 -15
  23. package/dist/components/Layout/TwoColumnDisplay/index.js +0 -2
  24. package/dist/components/Links/HrefLink/index.js +1 -5
  25. package/dist/components/Loaders/LoadingBackdrop/index.js +4 -4
  26. package/dist/components/Loaders/WaitingGalaxy/index.js +1 -2
  27. package/dist/components/Menus/ReusablePopupMenu/components/GenericSubMenu.js +2 -7
  28. package/dist/components/Menus/ReusablePopupMenu/components/ReusableMenu.js +6 -7
  29. package/dist/components/Menus/ReusablePopupMenu/index.js +7 -10
  30. package/dist/components/NEW_COMPONENT/index.js +1 -2
  31. package/dist/components/NEW_COMPONENT/storybook/index.stories.js +0 -2
  32. package/dist/components/PcSharedComponentThemeInheritor/index.js +1 -1
  33. package/dist/components/Platform/PlatformPaymentPlans/components/PriceToggleButton/index.js +0 -2
  34. package/dist/components/Platform/PlatformPaymentPlans/index.js +12 -27
  35. package/dist/components/Platform/PlatformPlanPrices/index.js +3 -10
  36. package/dist/components/Platform/PlatformPlanTitles/index.js +0 -6
  37. package/dist/components/Sandbox/ScrollingInnerDiv/index.js +2 -5
  38. package/dist/components/TextBoxes/CurrencyTextInput/index.js +7 -42
  39. package/dist/components/TextBoxes/SearchBar/index.js +10 -14
  40. package/dist/components/Timelines/ReservationTimelineComponent/components/SearchLotsTextBox.js +34 -0
  41. package/dist/components/Timelines/ReservationTimelineComponent/components/TimelinePopUp.js +11 -0
  42. package/dist/components/Timelines/ReservationTimelineComponent/css/header.css +98 -0
  43. package/dist/components/Timelines/ReservationTimelineComponent/css/styles.css +121 -0
  44. package/dist/components/Timelines/ReservationTimelineComponent/css/styles.old +209 -0
  45. package/dist/components/Timelines/ReservationTimelineComponent/index.js +965 -0
  46. package/dist/components/Tools/CodeHighlight/index.js +17 -21
  47. package/dist/components/Tools/PCMScrollbar/index.js +3 -5
  48. package/dist/components/Tools/isValidFunction.js +0 -1
  49. package/dist/index.js +3 -1
  50. package/dist/languages/en/translations.json +1 -1
  51. package/dist/languages/es/translations.json +1 -1
  52. package/dist/languages/fr/translations.json +1 -1
  53. package/dist/locals/coreLocals.js +0 -8
  54. package/dist/locals/currencySymbol.js +0 -3
  55. package/dist/locals/i18n.js +11 -5
  56. package/dist/locals/translationResources.js +2 -1
  57. package/dist/styles/tailwind.css +1 -1
  58. package/package.json +4 -1
@@ -0,0 +1,121 @@
1
+
2
+ .blink {
3
+ border: solid 1px orangered;
4
+ color: orangered;
5
+ animation: blinker 1s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
6
+ box-shadow: 0 2.8px 2.2px rgba(250, 104, 60, 0.034), 0 6.7px 5.3px rgba(250, 104, 60, 0.048), 0 12.5px 10px rgba(250, 104, 60, 0.06), 0 22.3px 17.9px rgba(250, 104, 60, 0.072), 0 41.8px 33.4px rgba(250, 104, 60, 0.086), 0 100px 80px rgba(250, 104, 60, 0.12);
7
+ }
8
+ @keyframes blinker {
9
+ from {
10
+ opacity: 1;
11
+ }
12
+ to {
13
+ opacity: 0;
14
+ }
15
+ }
16
+ .rct-item {
17
+ border-radius: 20px;
18
+ border-color: rgba(0, 0, 0, 0.5) !important;
19
+ color: #000;
20
+ }
21
+ .item_collision .rct-item-content {
22
+ color: white !important;
23
+ font-weight: 900;
24
+ }
25
+ .item_collision {
26
+ background-size: auto auto;
27
+ background-color: rgba(193, 45, 45, 1);
28
+ background-image: repeating-linear-gradient(45deg, #f56f6f, #f56f6f 12px, rgba(236, 93, 93, 1) 12px, rgba(236, 93, 93, 1) 20px) !important;
29
+ }
30
+ .edit_res_id {
31
+ border: solid 2.5px #f79902 !important;
32
+ box-shadow: 0 2.8px 2.2px rgba(37, 37, 37, 0.044), 0 6.7px 5.3px rgba(37, 37, 37, 0.058), 0 12.5px 10px rgba(37, 37, 37, 0.16), 0 22.3px 17.9px rgba(37, 37, 37, 0.082), 0 41.8px 33.4px rgba(37, 37, 37, 0.096), 0 100px 80px rgba(37, 37, 37, 0.22);
33
+ }
34
+ .sidebar-group {
35
+ line-height: 1;
36
+ }
37
+ .rct-dateHeader {
38
+ font-size: 12pt !important;
39
+ }
40
+ .react-calendar-timeline .rct-vertical-lines .rct-vl.rct-day-6, .react-calendar-timeline .rct-vertical-lines .rct-vl.rct-day-0 {
41
+ background-color: rgba(248, 147, 31, 0.5);
42
+ }
43
+ .rct-item-content {
44
+ color: black;
45
+ }
46
+ .move-icon {
47
+ cursor: grab;
48
+ cursor: -moz-grab;
49
+ cursor: -webkit-grab;
50
+ height: 20px;
51
+ width: 20px;
52
+ background-color: rgba(255, 255, 255, 0.3);
53
+ border-radius: 50%;
54
+ position: absolute;
55
+ top: 5px;
56
+ left: 5px;
57
+ border: solid 1px;
58
+ border-color: rgba(0, 0, 0, 0.5) !important;
59
+ box-shadow: inset 0 5px 5px -5px rgba(0, 0, 0, 0.493);
60
+ }
61
+ .rct-item-handler {
62
+ cursor: col-resize !important;
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ }
67
+ .rct-item-handler .handle-icon {
68
+ height: 35%;
69
+ position: relative;
70
+ pointer-events: none;
71
+ }
72
+ .rct-item-handler .handle-icon, .rct-item-handler .handle-icon:before, .rct-item-handler .handle-icon:after {
73
+ width: 1px;
74
+ background: rgba(54, 54, 54, 0.9);
75
+ }
76
+ .rct-item-handler .handle-icon:before, .rct-item-handler .handle-icon:after {
77
+ content: '';
78
+ height: 100%;
79
+ display: block;
80
+ position: absolute;
81
+ }
82
+ .rct-item-handler .handle-icon:before {
83
+ right: 4px;
84
+ }
85
+ .rct-item-handler .handle-icon:after {
86
+ left: 4px;
87
+ }
88
+ .rct-item-content {
89
+ line-height: 1.2;
90
+ margin-top: auto !important;
91
+ margin-bottom: auto !important;
92
+ max-height: 12px;
93
+ }
94
+ .rct-item-tooltip {
95
+ z-index: 2000;
96
+ margin-left: 5px;
97
+ display: flex;
98
+ align-items: center;
99
+ }
100
+ .rct-item-tooltip-content {
101
+ background: rgba(27, 25, 24, 0.726);
102
+ padding: 8px 16px;
103
+ white-space: nowrap;
104
+ font-size: 12px;
105
+ color: white;
106
+ border-radius: 5px;
107
+ }
108
+ .rct-item--is-selected .rct-item-content {
109
+ color: rgba(0, 0, 0, 0.8);
110
+ }
111
+ .rct-item--is-selected .rct-item {
112
+ border-color: rgba(0, 0, 0, 0.5) !important;
113
+ box-shadow: 0 8px 8px -8px black;
114
+ }
115
+ .rct-item-following-indicator {
116
+ opacity: 0;
117
+ transition: opacity 500ms ease;
118
+ }
119
+ .rct-item--is-resizing .rct-item-following-indicator {
120
+ opacity: 1;
121
+ }
@@ -0,0 +1,209 @@
1
+ .timeline-app {
2
+ font-family: sans-serif;
3
+ font-size: large;
4
+ text-align: center;
5
+ max-width: 100%;
6
+ max-height:90vh !important;
7
+ height:90vh !important;
8
+ padding: 0 16px;
9
+ overflow: scroll;
10
+ // margin: auto;
11
+
12
+ }
13
+
14
+
15
+
16
+ .blink{
17
+ border: solid 1px orangered;
18
+ color: orangered;
19
+ animation: blinker 1s cubic-bezier(.5, 0, 1, 1) infinite alternate;
20
+ box-shadow:
21
+ 0 2.8px 2.2px rgba(250, 104, 60, 0.034),
22
+ 0 6.7px 5.3px rgba(250, 104, 60, 0.048),
23
+ 0 12.5px 10px rgba(250, 104, 60, 0.06),
24
+ 0 22.3px 17.9px rgba(250, 104, 60, 0.072),
25
+ 0 41.8px 33.4px rgba(250, 104, 60, 0.086),
26
+ 0 100px 80px rgba(250, 104, 60, 0.12)
27
+ ;
28
+ }
29
+ @keyframes blinker {
30
+ from { opacity: 1; }
31
+ to { opacity: 0; }
32
+ }
33
+
34
+
35
+
36
+
37
+ .rct-item{
38
+ border-radius:20px;
39
+ border-color: rgba(0, 0, 0, 0.5) !important;
40
+ color: #000000;
41
+
42
+ }
43
+ .item_collision .rct-item-content{
44
+
45
+ color:white !important;
46
+ font-weight: 900;
47
+ }
48
+ .item_collision{
49
+
50
+ background-size: auto auto;
51
+ background-color: rgba(193, 45, 45, 1);
52
+ background-image: repeating-linear-gradient(45deg, rgb(245, 111, 111), rgb(245, 111, 111) 12px, rgba(236, 93, 93, 1) 12px, rgba(236, 93, 93, 1) 20px ) !important;
53
+ // background-image: linear-gradient(38deg, #f58e8e 25%, #e67373 25%, #e67373 50%, #f58e8e 50%, #f58e8e 75%, #e67373 75%, #e67373 50%) !important;
54
+ }
55
+
56
+
57
+ // In edit mode the reservation ID being edited will look different
58
+ .edit_res_id{
59
+
60
+ border: solid 2.5px rgb(247, 153, 2) !important;
61
+ box-shadow:
62
+ 0 2.8px 2.2px rgba(37, 37, 37, 0.044),
63
+ 0 6.7px 5.3px rgba(37, 37, 37, 0.058),
64
+ 0 12.5px 10px rgba(37, 37, 37, 0.16),
65
+ 0 22.3px 17.9px rgba(37, 37, 37, 0.082),
66
+ 0 41.8px 33.4px rgba(37, 37, 37, 0.096),
67
+ 0 100px 80px rgba(37, 37, 37, 0.22)
68
+ ;
69
+ }
70
+
71
+
72
+ .sidebar-group {
73
+ line-height: 1;
74
+ }
75
+
76
+ .rct-dateHeader {
77
+ font-size: 12pt !important;
78
+ }
79
+
80
+ .react-calendar-timeline .rct-horizontal-lines .rct-hl-even{
81
+ // border-color: solid 5px red;
82
+ // background-color:red;
83
+ }
84
+ .react-calendar-timeline .rct-horizontal-lines .rct-hl-odd{
85
+ // background-color:red;
86
+ }
87
+
88
+ // Timeline styles overrides
89
+ $weekend: rgba(248, 147, 31, 0.5);
90
+
91
+ .react-calendar-timeline {
92
+ .rct-vertical-lines {
93
+ .rct-vl {
94
+ &.rct-day-6,
95
+ &.rct-day-0 {
96
+ background-color: $weekend;
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ .rct-item-content{
103
+ color:black;
104
+ }
105
+
106
+
107
+ $handle-color: rgba(54, 54, 54, 0.9);
108
+
109
+ //move icon
110
+
111
+ .move-icon{
112
+ // cursor: move; /* fallback if grab cursor is unsupported */
113
+ cursor: grab;
114
+ cursor: -moz-grab;
115
+ cursor: -webkit-grab;
116
+
117
+ height: 20px;
118
+ width: 20px;
119
+ background-color: rgba(255, 255, 255, 0.3);
120
+ border-radius: 50%;
121
+ position: absolute;
122
+ top: 8px; left: 5px;
123
+ border: solid 1px;
124
+
125
+ border-color:rgba(0, 0, 0, 0.5) !important;
126
+ box-shadow: inset 0 5px 5px -5px rgba(0, 0, 0, 0.493);
127
+ }
128
+
129
+ // Handle
130
+
131
+ .rct-item-handler {
132
+ cursor: col-resize !important;
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: center;
136
+
137
+
138
+ .handle-icon {
139
+ height: 35%;
140
+ position: relative;
141
+ pointer-events: none;
142
+
143
+
144
+ &, &:before, &:after {
145
+ width: 1px;
146
+ background: $handle-color;
147
+ }
148
+
149
+ &:before, &:after {
150
+ content: '';
151
+ height: 100%;
152
+ display: block;
153
+ position: absolute;
154
+ }
155
+
156
+ // Controls th spacing between the grips handles
157
+ &:before {
158
+ right: 4px;
159
+ }
160
+
161
+ &:after {
162
+ left: 4px;
163
+ }
164
+ }
165
+ }
166
+
167
+ //controls the way the text appears in the timeline items...
168
+ .rct-item-content {
169
+ line-height:1.1;
170
+ // height:100%;
171
+ margin-top: 8px !important;
172
+ max-height: 10px;
173
+ }
174
+
175
+ // Following tooltip
176
+ .rct-item-tooltip {
177
+ z-index: 2000;
178
+ margin-left: 5px;
179
+ display: flex;
180
+ align-items: center;
181
+ }
182
+
183
+ .rct-item-tooltip-content {
184
+ background: rgba(27, 25, 24, 0.726);
185
+ padding: 8px 16px;
186
+ white-space: nowrap;
187
+ font-size: 12px;
188
+ color: white;
189
+ border-radius: 5px;
190
+ }
191
+
192
+ .rct-item--is-selected .rct-item-content{
193
+ color: rgba(0, 0, 0, 0.8);
194
+ }
195
+ .rct-item--is-selected .rct-item{
196
+ border-color:rgba(0, 0, 0, 0.5) !important;
197
+ box-shadow: 0 8px 8px -8px black;
198
+ }
199
+
200
+ .rct-item-following-indicator {
201
+ opacity: 0;
202
+ transition: opacity 500ms ease;
203
+
204
+ .rct-item--is-resizing & {
205
+ opacity: 1;
206
+ }
207
+ }
208
+
209
+