@bagelink/vue 1.2.15 → 1.2.20

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 (114) hide show
  1. package/dist/components/calendar/CalendarTypes.d.ts +13 -0
  2. package/dist/components/calendar/CalendarTypes.d.ts.map +1 -0
  3. package/dist/components/calendar/Index.vue.d.ts +39 -507
  4. package/dist/components/calendar/Index.vue.d.ts.map +1 -1
  5. package/dist/components/calendar/utils.d.ts +31 -0
  6. package/dist/components/calendar/utils.d.ts.map +1 -0
  7. package/dist/components/calendar/views/AgendaView.vue.d.ts +16 -0
  8. package/dist/components/calendar/views/AgendaView.vue.d.ts.map +1 -0
  9. package/dist/components/calendar/views/DayView.vue.d.ts +50 -0
  10. package/dist/components/calendar/views/DayView.vue.d.ts.map +1 -0
  11. package/dist/components/calendar/views/MonthView.vue.d.ts +20 -0
  12. package/dist/components/calendar/views/MonthView.vue.d.ts.map +1 -0
  13. package/dist/components/calendar/views/WeekView.vue.d.ts +33 -0
  14. package/dist/components/calendar/views/WeekView.vue.d.ts.map +1 -0
  15. package/dist/components/form/BglMultiStepForm.vue.d.ts +63 -0
  16. package/dist/components/form/BglMultiStepForm.vue.d.ts.map +1 -0
  17. package/dist/components/form/index.d.ts +1 -0
  18. package/dist/components/form/index.d.ts.map +1 -1
  19. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
  20. package/dist/components/form/inputs/DateInput.vue.d.ts +3 -3
  21. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  22. package/dist/components/form/inputs/DatePicker.vue.d.ts +3 -3
  23. package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
  24. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  25. package/dist/index.cjs +2241 -3891
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.mjs +2242 -3892
  29. package/dist/style.css +567 -633
  30. package/dist/utils/BagelFormUtils.d.ts +4 -2
  31. package/dist/utils/BagelFormUtils.d.ts.map +1 -1
  32. package/dist/utils/calendar/EDate.d.ts +2 -0
  33. package/dist/utils/calendar/EDate.d.ts.map +1 -0
  34. package/dist/utils/calendar/Helpers.d.ts +19 -0
  35. package/dist/utils/calendar/Helpers.d.ts.map +1 -0
  36. package/dist/utils/calendar/constants.d.ts +3 -0
  37. package/dist/utils/calendar/constants.d.ts.map +1 -0
  38. package/dist/utils/calendar/dateUtils.d.ts +30 -0
  39. package/dist/utils/calendar/dateUtils.d.ts.map +1 -0
  40. package/dist/utils/calendar/event.interface.d.ts +32 -0
  41. package/dist/utils/calendar/event.interface.d.ts.map +1 -0
  42. package/dist/utils/calendar/time.d.ts +117 -0
  43. package/dist/utils/calendar/time.d.ts.map +1 -0
  44. package/dist/utils/calendar/types.d.ts +27 -0
  45. package/dist/utils/calendar/types.d.ts.map +1 -0
  46. package/dist/utils/calendar/typings.d.ts +87 -0
  47. package/dist/utils/calendar/typings.d.ts.map +1 -0
  48. package/dist/utils/calendar/week.d.ts +117 -0
  49. package/dist/utils/calendar/week.d.ts.map +1 -0
  50. package/package.json +1 -1
  51. package/src/components/calendar/CalendarTypes.ts +13 -0
  52. package/src/components/calendar/Index.vue +124 -389
  53. package/src/components/calendar/utils.ts +70 -0
  54. package/src/components/calendar/views/AgendaView.vue +263 -0
  55. package/src/components/calendar/views/DayView.vue +373 -0
  56. package/src/components/calendar/views/MonthView.vue +313 -0
  57. package/src/components/calendar/views/WeekView.vue +431 -0
  58. package/src/components/form/BglMultiStepForm.vue +383 -69
  59. package/src/components/form/index.ts +1 -0
  60. package/src/components/form/inputs/CodeEditor/Index.vue +11 -0
  61. package/src/components/form/inputs/DateInput.vue +3 -3
  62. package/src/components/form/inputs/DatePicker.vue +35 -30
  63. package/src/components/form/inputs/SelectInput.vue +2 -0
  64. package/src/components/form/inputs/Upload/upload.types.d.ts +0 -1
  65. package/src/index.ts +2 -2
  66. package/src/styles/inputs.css +138 -137
  67. package/src/styles/layout.css +3 -2
  68. package/src/styles/mobilLayout.css +4 -2
  69. package/src/utils/BagelFormUtils.ts +6 -2
  70. package/src/utils/calendar/EDate.ts +0 -0
  71. package/src/{components/calendar/helpers → utils/calendar}/Helpers.ts +6 -6
  72. package/src/utils/calendar/constants.ts +2 -0
  73. package/src/utils/{timeAgo.ts → calendar/dateUtils.ts} +38 -1
  74. package/src/utils/calendar/event.interface.ts +33 -0
  75. package/src/{components/calendar/helpers/Time.ts → utils/calendar/time.ts} +15 -15
  76. package/src/utils/calendar/types.ts +27 -0
  77. package/src/{components/calendar/typings/config.interface.ts → utils/calendar/typings.ts} +13 -6
  78. package/src/utils/calendar/week.ts +588 -0
  79. package/src/components/calendar/assets/base.css +0 -60
  80. package/src/components/calendar/components/header/Header.vue +0 -153
  81. package/src/components/calendar/components/month/AgendaEventTile.vue +0 -135
  82. package/src/components/calendar/components/month/AgendaEvents.vue +0 -72
  83. package/src/components/calendar/components/month/Day.vue +0 -256
  84. package/src/components/calendar/components/month/Event.vue +0 -164
  85. package/src/components/calendar/components/month/Month.vue +0 -241
  86. package/src/components/calendar/components/month/WeekDay.vue +0 -15
  87. package/src/components/calendar/components/partials/EventFlyout.vue +0 -430
  88. package/src/components/calendar/components/week/Day.vue +0 -198
  89. package/src/components/calendar/components/week/DayEvent.vue +0 -584
  90. package/src/components/calendar/components/week/DayTimeline.vue +0 -80
  91. package/src/components/calendar/components/week/FullDayEvent.vue +0 -121
  92. package/src/components/calendar/components/week/Week.vue +0 -414
  93. package/src/components/calendar/components/week/WeekTimeline.vue +0 -101
  94. package/src/components/calendar/constants.ts +0 -13
  95. package/src/components/calendar/helpers/DayIntervals.ts +0 -48
  96. package/src/components/calendar/helpers/EDate.ts +0 -18
  97. package/src/components/calendar/helpers/Errors.ts +0 -69
  98. package/src/components/calendar/helpers/EventChange.ts +0 -88
  99. package/src/components/calendar/helpers/EventConcurrency.ts +0 -69
  100. package/src/components/calendar/helpers/EventFlyoutPosition.ts +0 -96
  101. package/src/components/calendar/helpers/EventPosition.ts +0 -154
  102. package/src/components/calendar/helpers/EventsFilter.ts +0 -50
  103. package/src/components/calendar/helpers/Week.ts +0 -37
  104. package/src/components/calendar/language/index.ts +0 -41
  105. package/src/components/calendar/language/keys.ts +0 -99
  106. package/src/components/calendar/models/Event.ts +0 -112
  107. package/src/components/calendar/styles/_mixins.css +0 -21
  108. package/src/components/calendar/styles/_variables.css +0 -47
  109. package/src/components/calendar/typings/interfaces/day.interface.ts +0 -10
  110. package/src/components/calendar/typings/interfaces/event.interface.ts +0 -32
  111. package/src/components/calendar/typings/interfaces/full-day-events-week.type.ts +0 -8
  112. package/src/components/calendar/typings/interfaces/period.interface.ts +0 -5
  113. package/src/components/calendar/typings/interfaces/time-modes.ts +0 -11
  114. package/src/components/calendar/typings/types.ts +0 -27
@@ -42,7 +42,6 @@ export interface QueueFile {
42
42
  uploaded?: boolean
43
43
  }
44
44
 
45
-
46
45
  export interface UploadInputProps {
47
46
  label?: string
48
47
  multiple?: boolean
package/src/index.ts CHANGED
@@ -13,7 +13,7 @@ export { ModalPlugin, useModal } from './plugins/modal'
13
13
  export * from './types'
14
14
  export * from './utils'
15
15
  export * from './utils/allCountries'
16
- export * from './utils/constants'
16
+ export * from './utils/calendar/dateUtils'
17
17
  import './styles/bagel.css'
18
18
 
19
- export * from './utils/timeAgo'
19
+ export * from './utils/constants'
@@ -1,228 +1,228 @@
1
1
  input,
2
2
  textarea,
3
3
  select {
4
- font-family: inherit;
5
- width: 100%;
4
+ font-family: inherit;
5
+ width: 100%;
6
6
  }
7
7
 
8
8
  .bagel-input-error input,
9
9
  .bagel-input-error button,
10
10
  .bagel-input-error textarea {
11
- outline: 1px solid var(--bgl-red);
11
+ outline: 1px solid var(--bgl-red);
12
12
  }
13
13
 
14
14
  .bagel-input {
15
- position: relative;
16
- display: flex;
17
- flex-direction: column;
18
- text-align: start;
19
- margin-bottom: 0.5rem;
20
- width: 100%;
21
- color: var(--bgl-text-color);
15
+ position: relative;
16
+ display: flex;
17
+ flex-direction: column;
18
+ text-align: start;
19
+ margin-bottom: 0.5rem;
20
+ width: 100%;
21
+ color: var(--bgl-text-color);
22
22
  }
23
23
 
24
24
  .bagel-input::-webkit-input-placeholder .bagel-input label {
25
- display: block;
26
- font-size: var(--label-font-size);
27
- margin-bottom: 2px;
28
- line-height: 1.3;
25
+ display: block;
26
+ font-size: var(--label-font-size);
27
+ margin-bottom: 2px;
28
+ line-height: 1.3;
29
29
  }
30
30
 
31
31
  .bagel-input::-moz-placeholder .bagel-input label {
32
- display: block;
33
- font-size: var(--label-font-size);
34
- margin-bottom: 2px;
35
- line-height: 1.3;
32
+ display: block;
33
+ font-size: var(--label-font-size);
34
+ margin-bottom: 2px;
35
+ line-height: 1.3;
36
36
  }
37
37
 
38
38
  .bagel-input:-ms-input-placeholder .bagel-input label {
39
- display: block;
40
- font-size: var(--label-font-size);
41
- margin-bottom: 2px;
42
- line-height: 1.3;
39
+ display: block;
40
+ font-size: var(--label-font-size);
41
+ margin-bottom: 2px;
42
+ line-height: 1.3;
43
43
  }
44
44
 
45
45
  .bagel-input::-ms-input-placeholder .bagel-input label {
46
- display: block;
47
- font-size: var(--label-font-size);
48
- margin-bottom: 2px;
49
- line-height: 1.3;
46
+ display: block;
47
+ font-size: var(--label-font-size);
48
+ margin-bottom: 2px;
49
+ line-height: 1.3;
50
50
  }
51
51
 
52
52
  .bagel-input::placeholder .bagel-input label {
53
- display: block;
54
- font-size: var(--label-font-size);
55
- margin-bottom: 2px;
56
- line-height: 1.3;
53
+ display: block;
54
+ font-size: var(--label-font-size);
55
+ margin-bottom: 2px;
56
+ line-height: 1.3;
57
57
  }
58
58
 
59
59
  .bagel-input::-webkit-input-placeholder {
60
- color: var(--placeholder-color);
60
+ color: var(--placeholder-color);
61
61
  }
62
62
 
63
63
  .bagel-input::-moz-placeholder {
64
- color: var(--placeholder-color);
64
+ color: var(--placeholder-color);
65
65
  }
66
66
 
67
67
  .bagel-input:-ms-input-placeholder {
68
- color: var(--placeholder-color);
68
+ color: var(--placeholder-color);
69
69
  }
70
70
 
71
71
  .bagel-input::-ms-input-placeholder {
72
- color: var(--placeholder-color);
72
+ color: var(--placeholder-color);
73
73
  }
74
74
 
75
75
  .bagel-input::placeholder {
76
- color: var(--placeholder-color);
76
+ color: var(--placeholder-color);
77
77
  }
78
78
 
79
79
  .bagel-input label {
80
- color: var(--label-color);
80
+ color: var(--label-color);
81
81
  }
82
82
 
83
83
  .bagel-input input,
84
84
  .bagel-input select,
85
85
  .custom-select .input {
86
- height: var(--input-height);
87
- font-size: var(--input-font-size);
86
+ height: var(--input-height);
87
+ font-size: var(--input-font-size);
88
88
  }
89
89
 
90
90
  .bagel-input input,
91
91
  .bagel-input textarea,
92
92
  .bagel-input select,
93
93
  .custom-select .input {
94
- background: var(--input-bg);
95
- border: none;
96
- padding: 0.7rem;
97
- border-radius: var(--input-border-radius);
98
- color: var(--input-color);
99
- min-width: calc(var(--input-height) * 3);
100
- width: 100%;
94
+ background: var(--input-bg);
95
+ border: none;
96
+ padding: 0.7rem;
97
+ border-radius: var(--input-border-radius);
98
+ color: var(--input-color);
99
+ min-width: calc(var(--input-height) * 3);
100
+ width: 100%;
101
101
  }
102
102
 
103
103
  .bagel-input input::-webkit-input-placeholder,
104
104
  .bagel-input textarea::-webkit-input-placeholder,
105
105
  .bagel-input select::-webkit-input-placeholder,
106
106
  .custom-select .input::-webkit-input-placeholder {
107
- color: var(--placeholder-color);
107
+ color: var(--placeholder-color);
108
108
  }
109
109
 
110
110
  .bagel-input input::-moz-placeholder,
111
111
  .bagel-input textarea::-moz-placeholder,
112
112
  .bagel-input select::-moz-placeholder,
113
113
  .custom-select .input::-moz-placeholder {
114
- color: var(--placeholder-color);
114
+ color: var(--placeholder-color);
115
115
  }
116
116
 
117
117
  .bagel-input input:-ms-input-placeholder,
118
118
  .bagel-input textarea:-ms-input-placeholder,
119
119
  .bagel-input select:-ms-input-placeholder,
120
120
  .custom-select .input:-ms-input-placeholder {
121
- color: var(--placeholder-color);
121
+ color: var(--placeholder-color);
122
122
  }
123
123
 
124
124
  .bagel-input input::-ms-input-placeholder,
125
125
  .bagel-input textarea::-ms-input-placeholder,
126
126
  .bagel-input select::-ms-input-placeholder,
127
127
  .custom-select .input::-ms-input-placeholder {
128
- color: var(--placeholder-color);
128
+ color: var(--placeholder-color);
129
129
  }
130
130
 
131
131
  .bagel-input input::placeholder,
132
132
  .bagel-input textarea::placeholder,
133
133
  .bagel-input select::placeholder,
134
134
  .custom-select .input::placeholder {
135
- color: var(--placeholder-color);
135
+ color: var(--placeholder-color);
136
136
  }
137
137
 
138
138
  .bagel-input.search-wrap {
139
- display: flex;
140
- flex-direction: row;
141
- align-items: center;
139
+ display: flex;
140
+ flex-direction: row;
141
+ align-items: center;
142
142
  }
143
143
 
144
144
  .bagel-input.search-wrap input {
145
- -webkit-padding-end: 2rem;
146
- padding-inline-end: 2rem;
145
+ -webkit-padding-end: 2rem;
146
+ padding-inline-end: 2rem;
147
147
  }
148
148
 
149
149
  .bagel-input.search-wrap .bgl_icon-font {
150
- -webkit-margin-start: -1.75rem;
151
- margin-inline-start: -1.75rem;
150
+ -webkit-margin-start: -1.75rem;
151
+ margin-inline-start: -1.75rem;
152
152
  }
153
153
 
154
154
  .bagel-input select {
155
- height: var(--input-height);
155
+ height: var(--input-height);
156
156
  }
157
157
 
158
158
  .bagel-input textarea {
159
- resize: vertical;
160
- min-height: calc(var(--input-height) * 3);
161
- line-height: 1.5;
159
+ resize: vertical;
160
+ min-height: calc(var(--input-height) * 3);
161
+ line-height: 1.5;
162
162
  }
163
163
 
164
164
  .bagel-input.wider input {
165
- min-width: 320px;
165
+ min-width: 320px;
166
166
  }
167
167
 
168
168
  .bagel-input input[type='radio'] {
169
- padding: 0;
170
- width: -webkit-fit-content;
171
- width: -moz-fit-content;
172
- width: fit-content;
169
+ padding: 0;
170
+ width: -webkit-fit-content;
171
+ width: -moz-fit-content;
172
+ width: fit-content;
173
173
  }
174
174
 
175
175
  .bagel-input:focus-within label {
176
- color: var(--bgl-primary);
176
+ color: var(--bgl-primary);
177
177
  }
178
178
 
179
179
  .bagel-input select.no-edit,
180
180
  .bagel-input input.no-edit,
181
181
  .bagel-input textarea.no-edit,
182
182
  .bagel-input .switch.no-edit {
183
- pointer-events: none;
184
- outline: none;
185
- opacity: 0.7;
183
+ pointer-events: none;
184
+ outline: none;
185
+ opacity: 0.7;
186
186
  }
187
187
 
188
188
  .bagel-input label.active {
189
- color: var(--bgl-primary);
189
+ color: var(--bgl-primary);
190
190
  }
191
191
 
192
192
  .inline-80 {
193
- display: inline-block;
194
- width: 80%;
193
+ display: inline-block;
194
+ width: 80%;
195
195
  }
196
196
 
197
197
  .inline-20 {
198
- display: inline-block;
199
- width: 20%;
198
+ display: inline-block;
199
+ width: 20%;
200
200
  }
201
201
 
202
202
  .inline-10 {
203
- display: inline-block;
204
- width: 20%;
203
+ display: inline-block;
204
+ width: 20%;
205
205
  }
206
206
 
207
207
  .inline-50 {
208
- display: inline-block;
209
- width: 49%;
210
- margin: 0 0.5%;
208
+ display: inline-block;
209
+ width: 49%;
210
+ margin: 0 0.5%;
211
211
  }
212
212
 
213
213
  .custom-select .input {
214
- height: var(--input-height);
215
- font-size: var(--input-font-size);
214
+ height: var(--input-height);
215
+ font-size: var(--input-font-size);
216
216
  }
217
217
 
218
218
  .custom-select .input {
219
- background: var(--input-bg);
220
- border: none;
221
- padding: 0.7rem;
222
- border-radius: var(--input-border-radius);
223
- color: var(--input-color);
224
- min-width: calc(var(--input-height) * 3);
225
- width: 100%;
219
+ background: var(--input-bg);
220
+ border: none;
221
+ padding: 0.7rem;
222
+ border-radius: var(--input-border-radius);
223
+ color: var(--input-color);
224
+ min-width: calc(var(--input-height) * 3);
225
+ width: 100%;
226
226
  }
227
227
 
228
228
  /* [dir='rtl'] .bagel-input input[type='email'],
@@ -236,22 +236,23 @@ select {
236
236
  .bagel-input textarea:focus-visible,
237
237
  .bagel-input button:focus-visible,
238
238
  .bgl_btn:focus-visible {
239
- outline-color: var(--bgl-primary-tint);
240
- box-shadow: inset 0 0 10px #00000012;
239
+ outline-color: var(--bgl-primary-tint);
240
+ box-shadow: inset 0 0 10px #00000012;
241
241
  }
242
242
 
243
243
  .bagel-input input:focus,
244
244
  .bagel-input select:focus,
245
245
  .bagel-input textarea:focus {
246
- outline-color: rgba(0, 0, 0, 0.05);
247
- box-shadow: inset 0 0 10px #00000021;
248
- outline-color: var(--input-bg);
246
+ outline-color: rgba(0, 0, 0, 0.05);
247
+ box-shadow: inset 0 0 10px #00000021;
248
+ outline-color: var(--input-bg);
249
+
249
250
  }
250
251
 
251
252
  .bagel-input .bgl_btn:focus,
252
253
  .bagel-input button:focus {
253
- outline-color: rgba(0, 0, 0, 0.05);
254
- outline-color: var(--input-bg);
254
+ outline-color: rgba(0, 0, 0, 0.05);
255
+ outline-color: var(--input-bg);
255
256
  }
256
257
 
257
258
  .bagel-input.light-input input,
@@ -259,84 +260,84 @@ select {
259
260
  .bagel-input.light-input select,
260
261
  .custom-select.light-input .input,
261
262
  .light-input .selectinput-btn {
262
- background: var(--bgl-popup-bg) !important;
263
- box-shadow:
264
- 0 1px 5px 0 rgba(0, 0, 0, 0.1),
265
- 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important;
266
- outline: 1px solid var(--border-color) !important;
263
+ background: var(--bgl-popup-bg) !important;
264
+ box-shadow:
265
+ 0 1px 5px 0 rgba(0, 0, 0, 0.1),
266
+ 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important;
267
+ outline: 1px solid var(--border-color) !important;
267
268
  }
268
269
 
269
270
  .input.active.light-input,
270
271
  .bagel-input.light-input input:focus-visible,
271
272
  .bagel-input.light-input select:focus-visible,
272
273
  .bagel-input.light-input textarea:focus-visible {
273
- box-shadow: inset 0 0 2px var(--bgl-popup-text) !important;
274
+ box-shadow: inset 0 0 2px var(--bgl-popup-text) !important;
274
275
  }
275
276
 
276
277
  .bagel-input input[type='number']-webkit-inner-spin-button,
277
278
  .bagel-input input[type='number']::-webkit-outer-spin-button {
278
- -webkit-appearance: none;
279
+ -webkit-appearance: none;
279
280
  }
280
281
 
281
282
  .label-count-0 label {
282
- display: none;
283
+ display: none;
283
284
  }
284
285
 
285
286
  .label-count-0 button.bgl_btn.bgl_flatBtn {
286
- margin-right: 5px;
287
+ margin-right: 5px;
287
288
  }
288
289
 
289
290
  .label-count-0 button.bgl_btn.bgl_flatBtn:hover {
290
- background: var(--bgl-hover-filter);
291
+ background: var(--bgl-hover-filter);
291
292
  }
292
293
 
293
294
  .bagel-input input[type='color'] {
294
- padding: 0.025rem 0.05rem;
295
- display: block;
296
- width: var(--input-height);
297
- min-width: var(--input-height);
298
- height: var(--input-height);
299
- border: none;
300
- -webkit-appearance: none;
301
- -moz-appearance: none;
302
- appearance: none;
303
- cursor: pointer;
295
+ padding: 0.025rem 0.05rem;
296
+ display: block;
297
+ width: var(--input-height);
298
+ min-width: var(--input-height);
299
+ height: var(--input-height);
300
+ border: none;
301
+ -webkit-appearance: none;
302
+ -moz-appearance: none;
303
+ appearance: none;
304
+ cursor: pointer;
304
305
  }
305
306
 
306
307
  .bagel-input input[type='color']::-webkit-color-swatch {
307
- border-radius: var(--input-border-radius);
308
- border: none;
309
- -webkit-transition: box-shadow 200ms ease;
310
- transition: box-shadow 200ms ease;
308
+ border-radius: var(--input-border-radius);
309
+ border: none;
310
+ -webkit-transition: box-shadow 200ms ease;
311
+ transition: box-shadow 200ms ease;
311
312
  }
312
313
 
313
314
  .bagel-input input[type='color']::-moz-color-swatch {
314
- border-radius: var(--input-border-radius);
315
- border: none;
316
- -moz-transition: box-shadow 200ms ease;
317
- transition: box-shadow 200ms ease;
315
+ border-radius: var(--input-border-radius);
316
+ border: none;
317
+ -moz-transition: box-shadow 200ms ease;
318
+ transition: box-shadow 200ms ease;
318
319
  }
319
320
 
320
321
  .bagel-input input[type='color']::-webkit-color-swatch:hover {
321
- box-shadow: inset 0 0 10px #00000050;
322
+ box-shadow: inset 0 0 10px #00000050;
322
323
  }
323
324
 
324
325
  .bagel-input input[type='color']::-moz-color-swatch:hover {
325
- box-shadow: inset 0 0 10px #00000050;
326
+ box-shadow: inset 0 0 10px #00000050;
326
327
  }
327
328
 
328
329
  @media screen and (max-width: 910px) {
329
- .bagel-input.wider input {
330
- min-width: 120px;
331
- }
330
+ .bagel-input.wider input {
331
+ min-width: 120px;
332
+ }
332
333
  }
333
334
 
334
335
  .pixel {
335
- width: 0 !important;
336
- height: 0 !important;
337
- overflow: hidden !important;
338
- outline: none !important;
339
- position: absolute !important;
340
- bottom: 0 !important;
341
- left: 50% !important;
342
- }
336
+ width: 0 !important;
337
+ height: 0 !important;
338
+ overflow: hidden !important;
339
+ outline: none !important;
340
+ position: absolute !important;
341
+ bottom: 0 !important;
342
+ left: 50% !important;
343
+ }
@@ -3652,11 +3652,12 @@
3652
3652
  flex-direction: row;
3653
3653
  }
3654
3654
 
3655
- .flex-grow {
3655
+ .flex-grow,
3656
+ .flex-grow-1 {
3656
3657
  flex-grow: 1;
3657
3658
  }
3658
3659
 
3659
- .flex-shrink {
3660
+ .flex-shrink, .flex-shrink-1 {
3660
3661
  flex-shrink: 1;
3661
3662
  }
3662
3663
 
@@ -2933,11 +2933,13 @@
2933
2933
  flex-direction: row;
2934
2934
  }
2935
2935
 
2936
- .m_flex-grow {
2936
+ .m_flex-grow,
2937
+ .m_flex-grow-1 {
2937
2938
  flex-grow: 1;
2938
2939
  }
2939
2940
 
2940
- .m_flex-shrink {
2941
+ .m_flex-shrink,
2942
+ .m_flex-shrink-1 {
2941
2943
  flex-shrink: 1;
2942
2944
  }
2943
2945
 
@@ -1,4 +1,4 @@
1
- import type { ArrayFieldVal, Attributes, BaseBagelField, BglFormSchemaT, Field, InputBagelField, Option, Path, SchemaChildrenT, SelectBagelField, VIfType } from '@bagelink/vue'
1
+ import type { ArrayFieldVal, Attributes, BaseBagelField, BglFormSchemaT, Field, IconType, InputBagelField, Option, Path, SchemaChildrenT, SelectBagelField, VIfType } from '@bagelink/vue'
2
2
  import type { UploadInputProps } from '../components/form/inputs/Upload/upload.types'
3
3
 
4
4
  interface InputOptions<T, K> {
@@ -20,12 +20,14 @@ interface DateOptions<T, K> extends InputOptions<T, K> {
20
20
  }
21
21
 
22
22
  interface TextInputOptions<T, K> extends InputOptions<T, K> {
23
- type?: 'text' | 'tel' | 'email'
23
+ type?: 'text' | 'tel' | 'email' | 'time'
24
24
  pattern?: string
25
25
  multiline?: boolean
26
26
  autoheight?: boolean
27
27
  code?: boolean
28
28
  rows?: number | string
29
+ icon?: IconType
30
+ iconStart?: IconType
29
31
  }
30
32
 
31
33
  interface SlctInputOptions<T, K> extends InputOptions<T, K> {
@@ -100,6 +102,8 @@ export function txtField<T, P extends Path<T>>(
100
102
  rows: options?.rows,
101
103
  code: options?.code,
102
104
  autoheight: options?.autoheight,
105
+ icon: options?.icon,
106
+ iconStart: options?.iconStart,
103
107
  },
104
108
  }
105
109
  }
File without changes
@@ -1,9 +1,9 @@
1
1
  import type { Slot, VNode } from 'vue'
2
- import type { EventInterface, EVENT_TYPE } from '../typings/interfaces/event.interface'
2
+ import type { EventInterface } from './event.interface'
3
3
  import { Comment, Text } from 'vue'
4
- import { DATE_TIME_STRING_FULL_DAY_PATTERN, DATE_TIME_STRING_PATTERN } from '../constants'
5
- import { DAY_MODE } from '../typings/interfaces/time-modes'
6
- import Time from './Time'
4
+ import { DATE_TIME_STRING_FULL_DAY_PATTERN, DATE_TIME_STRING_PATTERN } from './constants'
5
+ import Time from './time'
6
+ import { DAY_MODE } from './typings'
7
7
 
8
8
  export default class Helpers {
9
9
  /**
@@ -36,7 +36,7 @@ export default class Helpers {
36
36
  })
37
37
  }
38
38
 
39
- static getEventType(event: EventInterface, time: Time): EVENT_TYPE {
39
+ static getEventType(event: EventInterface, time: Time) {
40
40
  const isTimedEvent = DATE_TIME_STRING_PATTERN.test(event.time.start)
41
41
  && DATE_TIME_STRING_PATTERN.test(event.time.end)
42
42
 
@@ -72,7 +72,7 @@ export default class Helpers {
72
72
  return 'MULTI_DAY_TIMED'
73
73
  }
74
74
 
75
- static getFullDayEventType(event: EventInterface, time: Time): EVENT_TYPE {
75
+ static getFullDayEventType(event: EventInterface, time: Time) {
76
76
  if (time.dateStringsHaveEqualDates(event.time.start, event.time.end)) {
77
77
  return 'SINGLE_DAY_FULL_DAY'
78
78
  }
@@ -0,0 +1,2 @@
1
+ export const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/
2
+ export const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/
@@ -1,4 +1,41 @@
1
- import type { AvailableTimeLanguages, DateTimeAcceptedFormats, LanguageTranslations, TimeUnit } from '../types/timeAgoT'
1
+ import type { AvailableTimeLanguages, DateTimeAcceptedFormats, LanguageTranslations, TimeUnit } from '../../types/timeAgoT'
2
+
3
+ interface TimeDeltaOptions {
4
+ day?: number
5
+ hour?: number
6
+ minute?: number
7
+ second?: number
8
+ week?: number
9
+ month?: number
10
+ year?: number
11
+ }
12
+
13
+ export function timeDelta(date: string | Date, options: TimeDeltaOptions) {
14
+ date = new Date(date)
15
+ const { day, hour, minute, second, week, month, year } = options
16
+ if (day) {
17
+ date.setDate(date.getDate() + day)
18
+ }
19
+ if (hour) {
20
+ date.setHours(date.getHours() + hour)
21
+ }
22
+ if (minute) {
23
+ date.setMinutes(date.getMinutes() + minute)
24
+ }
25
+ if (second) {
26
+ date.setSeconds(date.getSeconds() + second)
27
+ }
28
+ if (week) {
29
+ date.setDate(date.getDate() + week * 7)
30
+ }
31
+ if (month) {
32
+ date.setMonth(date.getMonth() + month)
33
+ }
34
+ if (year) {
35
+ date.setFullYear(date.getFullYear() + year)
36
+ }
37
+ return date
38
+ }
2
39
 
3
40
  const translations: Record<AvailableTimeLanguages, LanguageTranslations> = {
4
41
  en: {
@@ -0,0 +1,33 @@
1
+ import type { ModeType } from './typings'
2
+
3
+ export type EventID = string | number
4
+ export type EVENT_TYPE = 'SINGLE_DAY_TIMED' | 'SINGLE_DAY_FULL_DAY' | 'SINGLE_HYBRID_DAY_TIMED' | 'MULTI_DAY_TIMED' | 'MULTI_DAY_FULL_DAY'
5
+ export type EventColor = 'blue' | 'yellow' | 'green' | 'red' | 'purple'
6
+ export interface EventInterface {
7
+ id: EventID
8
+ title?: string
9
+ time: {
10
+ start: string
11
+ end: string
12
+ }
13
+ description?: string
14
+ topic?: string
15
+ location?: string
16
+ with?: string
17
+ colorScheme?: string
18
+ color?: EventColor
19
+ isEditable?: boolean
20
+ disableDnD?: ModeType[]
21
+ disableResize?: ModeType[]
22
+ isCustom?: boolean | ModeType[]
23
+ zIndex?: number
24
+ nOfPreviousConcurrentEvents?: number
25
+ totalConcurrentEvents?: number
26
+ timeJS?: {
27
+ start: Date
28
+ end: Date
29
+ }
30
+ originalEvent?: Omit<EventInterface, 'originalEvent'>
31
+ eventType?: EVENT_TYPE
32
+ }
33
+ // # sourceMappingURL=event.interface.d.ts.map