@bagelink/vue 1.2.15 → 1.2.18
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.
- package/dist/components/calendar/CalendarTypes.d.ts +13 -0
- package/dist/components/calendar/CalendarTypes.d.ts.map +1 -0
- package/dist/components/calendar/Index.vue.d.ts +39 -507
- package/dist/components/calendar/Index.vue.d.ts.map +1 -1
- package/dist/components/calendar/utils.d.ts +31 -0
- package/dist/components/calendar/utils.d.ts.map +1 -0
- package/dist/components/calendar/views/AgendaView.vue.d.ts +16 -0
- package/dist/components/calendar/views/AgendaView.vue.d.ts.map +1 -0
- package/dist/components/calendar/views/DayView.vue.d.ts +50 -0
- package/dist/components/calendar/views/DayView.vue.d.ts.map +1 -0
- package/dist/components/calendar/views/MonthView.vue.d.ts +20 -0
- package/dist/components/calendar/views/MonthView.vue.d.ts.map +1 -0
- package/dist/components/calendar/views/WeekView.vue.d.ts +33 -0
- package/dist/components/calendar/views/WeekView.vue.d.ts.map +1 -0
- package/dist/components/form/BglMultiStepForm.vue.d.ts +63 -0
- package/dist/components/form/BglMultiStepForm.vue.d.ts.map +1 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePicker.vue.d.ts +3 -3
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +2166 -3870
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2167 -3871
- package/dist/style.css +604 -628
- package/dist/utils/BagelFormUtils.d.ts +4 -2
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/dist/utils/calendar/EDate.d.ts +2 -0
- package/dist/utils/calendar/EDate.d.ts.map +1 -0
- package/dist/utils/calendar/Helpers.d.ts +19 -0
- package/dist/utils/calendar/Helpers.d.ts.map +1 -0
- package/dist/utils/calendar/constants.d.ts +3 -0
- package/dist/utils/calendar/constants.d.ts.map +1 -0
- package/dist/utils/calendar/dateUtils.d.ts +30 -0
- package/dist/utils/calendar/dateUtils.d.ts.map +1 -0
- package/dist/utils/calendar/event.interface.d.ts +32 -0
- package/dist/utils/calendar/event.interface.d.ts.map +1 -0
- package/dist/utils/calendar/time.d.ts +117 -0
- package/dist/utils/calendar/time.d.ts.map +1 -0
- package/dist/utils/calendar/types.d.ts +27 -0
- package/dist/utils/calendar/types.d.ts.map +1 -0
- package/dist/utils/calendar/typings.d.ts +87 -0
- package/dist/utils/calendar/typings.d.ts.map +1 -0
- package/dist/utils/calendar/week.d.ts +117 -0
- package/dist/utils/calendar/week.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/calendar/CalendarTypes.ts +13 -0
- package/src/components/calendar/Index.vue +124 -389
- package/src/components/calendar/utils.ts +70 -0
- package/src/components/calendar/views/AgendaView.vue +263 -0
- package/src/components/calendar/views/DayView.vue +417 -0
- package/src/components/calendar/views/MonthView.vue +313 -0
- package/src/components/calendar/views/WeekView.vue +432 -0
- package/src/components/form/BglMultiStepForm.vue +323 -70
- package/src/components/form/index.ts +1 -0
- package/src/components/form/inputs/CodeEditor/Index.vue +11 -0
- package/src/components/form/inputs/DateInput.vue +3 -3
- package/src/components/form/inputs/DatePicker.vue +3 -3
- package/src/components/form/inputs/SelectInput.vue +2 -0
- package/src/components/form/inputs/Upload/upload.types.d.ts +0 -1
- package/src/index.ts +2 -2
- package/src/styles/inputs.css +138 -137
- package/src/styles/layout.css +3 -2
- package/src/styles/mobilLayout.css +4 -2
- package/src/utils/BagelFormUtils.ts +6 -2
- package/src/utils/calendar/EDate.ts +0 -0
- package/src/{components/calendar/helpers → utils/calendar}/Helpers.ts +6 -6
- package/src/utils/calendar/constants.ts +2 -0
- package/src/utils/{timeAgo.ts → calendar/dateUtils.ts} +38 -1
- package/src/utils/calendar/event.interface.ts +33 -0
- package/src/{components/calendar/helpers/Time.ts → utils/calendar/time.ts} +15 -15
- package/src/utils/calendar/types.ts +27 -0
- package/src/{components/calendar/typings/config.interface.ts → utils/calendar/typings.ts} +13 -6
- package/src/utils/calendar/week.ts +588 -0
- package/src/components/calendar/assets/base.css +0 -60
- package/src/components/calendar/components/header/Header.vue +0 -153
- package/src/components/calendar/components/month/AgendaEventTile.vue +0 -135
- package/src/components/calendar/components/month/AgendaEvents.vue +0 -72
- package/src/components/calendar/components/month/Day.vue +0 -256
- package/src/components/calendar/components/month/Event.vue +0 -164
- package/src/components/calendar/components/month/Month.vue +0 -241
- package/src/components/calendar/components/month/WeekDay.vue +0 -15
- package/src/components/calendar/components/partials/EventFlyout.vue +0 -430
- package/src/components/calendar/components/week/Day.vue +0 -198
- package/src/components/calendar/components/week/DayEvent.vue +0 -584
- package/src/components/calendar/components/week/DayTimeline.vue +0 -80
- package/src/components/calendar/components/week/FullDayEvent.vue +0 -121
- package/src/components/calendar/components/week/Week.vue +0 -414
- package/src/components/calendar/components/week/WeekTimeline.vue +0 -101
- package/src/components/calendar/constants.ts +0 -13
- package/src/components/calendar/helpers/DayIntervals.ts +0 -48
- package/src/components/calendar/helpers/EDate.ts +0 -18
- package/src/components/calendar/helpers/Errors.ts +0 -69
- package/src/components/calendar/helpers/EventChange.ts +0 -88
- package/src/components/calendar/helpers/EventConcurrency.ts +0 -69
- package/src/components/calendar/helpers/EventFlyoutPosition.ts +0 -96
- package/src/components/calendar/helpers/EventPosition.ts +0 -154
- package/src/components/calendar/helpers/EventsFilter.ts +0 -50
- package/src/components/calendar/helpers/Week.ts +0 -37
- package/src/components/calendar/language/index.ts +0 -41
- package/src/components/calendar/language/keys.ts +0 -99
- package/src/components/calendar/models/Event.ts +0 -112
- package/src/components/calendar/styles/_mixins.css +0 -21
- package/src/components/calendar/styles/_variables.css +0 -47
- package/src/components/calendar/typings/interfaces/day.interface.ts +0 -10
- package/src/components/calendar/typings/interfaces/event.interface.ts +0 -32
- package/src/components/calendar/typings/interfaces/full-day-events-week.type.ts +0 -8
- package/src/components/calendar/typings/interfaces/period.interface.ts +0 -5
- package/src/components/calendar/typings/interfaces/time-modes.ts +0 -11
- package/src/components/calendar/typings/types.ts +0 -27
package/src/styles/inputs.css
CHANGED
|
@@ -1,228 +1,228 @@
|
|
|
1
1
|
input,
|
|
2
2
|
textarea,
|
|
3
3
|
select {
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
11
|
+
outline: 1px solid var(--bgl-red);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.bagel-input {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
60
|
+
color: var(--placeholder-color);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.bagel-input::-moz-placeholder {
|
|
64
|
-
|
|
64
|
+
color: var(--placeholder-color);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.bagel-input:-ms-input-placeholder {
|
|
68
|
-
|
|
68
|
+
color: var(--placeholder-color);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.bagel-input::-ms-input-placeholder {
|
|
72
|
-
|
|
72
|
+
color: var(--placeholder-color);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.bagel-input::placeholder {
|
|
76
|
-
|
|
76
|
+
color: var(--placeholder-color);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.bagel-input label {
|
|
80
|
-
|
|
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
|
-
|
|
87
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
135
|
+
color: var(--placeholder-color);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.bagel-input.search-wrap {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: row;
|
|
141
|
+
align-items: center;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.bagel-input.search-wrap input {
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
-webkit-padding-end: 2rem;
|
|
146
|
+
padding-inline-end: 2rem;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.bagel-input.search-wrap .bgl_icon-font {
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
-webkit-margin-start: -1.75rem;
|
|
151
|
+
margin-inline-start: -1.75rem;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.bagel-input select {
|
|
155
|
-
|
|
155
|
+
height: var(--input-height);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.bagel-input textarea {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
-
|
|
165
|
+
min-width: 320px;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.bagel-input input[type='radio'] {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
-
|
|
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
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
pointer-events: none;
|
|
184
|
+
outline: none;
|
|
185
|
+
opacity: 0.7;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.bagel-input label.active {
|
|
189
|
-
|
|
189
|
+
color: var(--bgl-primary);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
.inline-80 {
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
display: inline-block;
|
|
194
|
+
width: 80%;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.inline-20 {
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
display: inline-block;
|
|
199
|
+
width: 20%;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.inline-10 {
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
display: inline-block;
|
|
204
|
+
width: 20%;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.inline-50 {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
display: inline-block;
|
|
209
|
+
width: 49%;
|
|
210
|
+
margin: 0 0.5%;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
.custom-select .input {
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
height: var(--input-height);
|
|
215
|
+
font-size: var(--input-font-size);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.custom-select .input {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
|
|
240
|
-
|
|
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
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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
|
-
|
|
254
|
-
|
|
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
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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
|
-
|
|
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
|
-
|
|
279
|
+
-webkit-appearance: none;
|
|
279
280
|
}
|
|
280
281
|
|
|
281
282
|
.label-count-0 label {
|
|
282
|
-
|
|
283
|
+
display: none;
|
|
283
284
|
}
|
|
284
285
|
|
|
285
286
|
.label-count-0 button.bgl_btn.bgl_flatBtn {
|
|
286
|
-
|
|
287
|
+
margin-right: 5px;
|
|
287
288
|
}
|
|
288
289
|
|
|
289
290
|
.label-count-0 button.bgl_btn.bgl_flatBtn:hover {
|
|
290
|
-
|
|
291
|
+
background: var(--bgl-hover-filter);
|
|
291
292
|
}
|
|
292
293
|
|
|
293
294
|
.bagel-input input[type='color'] {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
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
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
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
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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
|
-
|
|
322
|
+
box-shadow: inset 0 0 10px #00000050;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
.bagel-input input[type='color']::-moz-color-swatch:hover {
|
|
325
|
-
|
|
326
|
+
box-shadow: inset 0 0 10px #00000050;
|
|
326
327
|
}
|
|
327
328
|
|
|
328
329
|
@media screen and (max-width: 910px) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
.bagel-input.wider input {
|
|
331
|
+
min-width: 120px;
|
|
332
|
+
}
|
|
332
333
|
}
|
|
333
334
|
|
|
334
335
|
.pixel {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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
|
+
}
|
package/src/styles/layout.css
CHANGED
|
@@ -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
|
|
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 '
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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)
|
|
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)
|
|
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
|
}
|
|
@@ -1,4 +1,41 @@
|
|
|
1
|
-
import type { AvailableTimeLanguages, DateTimeAcceptedFormats, LanguageTranslations, TimeUnit } from '
|
|
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
|