@aquera/nile-elements 1.2.8-beta-1.1 → 1.2.8-beta-1.3
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/README.md +5 -0
- package/demo/index.html +33 -93
- package/demo/nxtgen.css +0 -6
- package/demo/variables.css +0 -4
- package/dist/index.js +411 -699
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +46 -234
- package/dist/nile-calendar/nile-calendar.esm.js +106 -220
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +32 -18
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +3 -3
- package/dist/src/nile-calendar/nile-calendar.css.js +44 -232
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.d.ts +0 -15
- package/dist/src/nile-calendar/nile-calendar.js +101 -340
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +30 -16
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +12 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.js +19 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
- package/dist/src/version.js +2 -2
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-calendar/nile-calendar.css.ts +44 -232
- package/src/nile-calendar/nile-calendar.ts +115 -369
- package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +30 -16
- package/src/nile-rich-text-editor/nile-rich-text-editor.ts +12 -0
- package/src/nile-virtual-select/nile-virtual-select.ts +26 -2
- package/vscode-html-custom-data.json +27 -47
|
@@ -12,10 +12,10 @@ export const styles = css `
|
|
|
12
12
|
|
|
13
13
|
.base {
|
|
14
14
|
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
15
|
-
border-radius: var(--nile-radius-radius-
|
|
16
|
-
width:
|
|
17
|
-
|
|
18
|
-
box-shadow:
|
|
15
|
+
border-radius: var(--nile-radius-radius-xl, var(--ng-radius-2xl));
|
|
16
|
+
width: 300px;
|
|
17
|
+
box-shadow: 0px 8px 8px -4px var(--nile-colors-neutral-400);
|
|
18
|
+
box-shadow: 0px 20px 24px -4px var(--nile-colors-dark-100, var(--ng-colors-effects-shadow-xl-01));
|
|
19
19
|
border: var(--nile-spacing-spacing-none, 1px solid var(--ng-colors-border-secondary-alt));
|
|
20
20
|
-webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));
|
|
21
21
|
-moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));
|
|
@@ -63,30 +63,30 @@ export const styles = css `
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.day_date ,.day_name{
|
|
66
|
-
font-family: var(--nile-font-family-serif
|
|
66
|
+
font-family: var( --nile-font-family-serif, var(--ng-font-family-body));
|
|
67
67
|
font-style: normal;
|
|
68
|
-
font-size: var(--nile-type-scale-
|
|
68
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
69
69
|
line-height: var(--nile-line-height-20px, var(--ng-line-height-text-sm));
|
|
70
70
|
text-align: center;
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
|
|
72
|
+
/* width: 40px;
|
|
73
|
+
height: 30px; */
|
|
74
|
+
padding: 5px 8px;
|
|
73
75
|
display:grid;
|
|
74
76
|
place-items:center;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
.day_name{
|
|
78
|
-
font-weight: var(--nile-font-weight-
|
|
79
|
-
font-family: var(--nile-font-family-serif-colfax-medium, var(--ng-font-family-body))
|
|
80
|
+
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
.day_date{
|
|
83
84
|
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
84
|
-
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
85
85
|
user-select:none;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.current__date__dot{
|
|
89
|
-
background-color:
|
|
89
|
+
background-color:white;
|
|
90
90
|
position:absolute;
|
|
91
91
|
border-radius:50%;
|
|
92
92
|
height:5px;
|
|
@@ -123,35 +123,27 @@ export const styles = css `
|
|
|
123
123
|
.range-start,
|
|
124
124
|
.range-end {
|
|
125
125
|
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
126
|
-
background: var(--nile-colors-
|
|
127
|
-
color:
|
|
128
|
-
font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
|
|
129
|
-
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
126
|
+
background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
|
|
127
|
+
color: white;
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
.selected-date:hover,
|
|
133
131
|
.range-start:hover,
|
|
134
132
|
.range-end:hover,
|
|
135
133
|
.day_date.in-range:hover {
|
|
136
|
-
background: var(--nile-colors-
|
|
134
|
+
background: var(--nile-colors-primary-700, var(--ng-colors-bg-brand-solid-hover));
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
.range-start.in-range {
|
|
140
|
-
background: var(--nile-colors-
|
|
138
|
+
background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
|
|
141
139
|
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
142
|
-
color: var(--nile-colors-
|
|
143
|
-
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
144
|
-
font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
|
|
140
|
+
color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
145
141
|
}
|
|
146
142
|
|
|
147
143
|
.range-end {
|
|
148
|
-
background: var(--nile-colors-
|
|
144
|
+
background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
|
|
149
145
|
border-radius: var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-none, var(--ng-radius-none));
|
|
150
|
-
color: var(--nile-colors-
|
|
151
|
-
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-sm));
|
|
152
|
-
letter-spacing: 0.2px;
|
|
153
|
-
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
154
|
-
font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));
|
|
146
|
+
color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
155
147
|
}
|
|
156
148
|
|
|
157
149
|
.range-middle {
|
|
@@ -167,13 +159,13 @@ export const styles = css `
|
|
|
167
159
|
}
|
|
168
160
|
|
|
169
161
|
.day_date.in-range:not(.range-start,.range-end, .selected-date) {
|
|
170
|
-
background: var(--nile-colors-neutral-
|
|
162
|
+
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));
|
|
171
163
|
}
|
|
172
164
|
|
|
173
165
|
.selected-date {
|
|
174
|
-
color: var(--nile-colors-
|
|
166
|
+
color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
175
167
|
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
176
|
-
background: var(--nile-colors-
|
|
168
|
+
background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
|
|
177
169
|
}
|
|
178
170
|
|
|
179
171
|
.not-allowed{
|
|
@@ -198,10 +190,6 @@ export const styles = css `
|
|
|
198
190
|
justify-content: space-between;
|
|
199
191
|
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
200
192
|
width: auto;
|
|
201
|
-
align-items: flex-end;
|
|
202
|
-
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
203
|
-
flex-wrap: nowrap;
|
|
204
|
-
width: 100%;
|
|
205
193
|
}
|
|
206
194
|
|
|
207
195
|
.manual-input-label {
|
|
@@ -217,8 +205,8 @@ export const styles = css `
|
|
|
217
205
|
width: 100%;
|
|
218
206
|
display:flex;
|
|
219
207
|
justify-content: end;
|
|
220
|
-
gap: var(--nile-spacing-
|
|
221
|
-
padding: var(--nile-spacing-
|
|
208
|
+
gap: var(--nile-spacing-10px, var(--ng-spacing-lg));
|
|
209
|
+
padding: var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl));
|
|
222
210
|
box-sizing: border-box;
|
|
223
211
|
}
|
|
224
212
|
|
|
@@ -227,16 +215,10 @@ export const styles = css `
|
|
|
227
215
|
align-items: center;
|
|
228
216
|
justify-content: space-between;
|
|
229
217
|
}
|
|
230
|
-
nile-tab::part(base){
|
|
231
|
-
padding-bottom: 12px;
|
|
232
|
-
justify-content: center;
|
|
233
|
-
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));
|
|
234
|
-
font-family: var(--nile-font-family-colfax-medium, var(--ng-font-family-body));
|
|
235
|
-
font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
|
|
236
|
-
}
|
|
237
218
|
|
|
238
219
|
.calendar-switcher {
|
|
239
220
|
width: 100%;
|
|
221
|
+
margin: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
240
222
|
margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
241
223
|
}
|
|
242
224
|
|
|
@@ -245,26 +227,22 @@ font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
|
|
|
245
227
|
margin:auto;
|
|
246
228
|
}
|
|
247
229
|
|
|
248
|
-
.unit-container
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
flex-direction: column;
|
|
257
|
-
gap: 6px;
|
|
258
|
-
}
|
|
259
|
-
|
|
230
|
+
.unit-container{
|
|
231
|
+
display:grid;
|
|
232
|
+
grid-template-columns: auto auto;
|
|
233
|
+
row-gap:var(--nile-spacing-spacing-2xl, var(--ng-spacing-2xl));
|
|
234
|
+
column-gap: var(--nile-spacing-spacing-sm, var(--ng-spacing-sm));
|
|
235
|
+
padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
236
|
+
padding-bottom: var(--nile-spacing-none, var(--ng-spacing-none));
|
|
237
|
+
}
|
|
260
238
|
|
|
261
239
|
.duration-name{
|
|
262
240
|
display:flex;
|
|
263
241
|
align-items:center;
|
|
264
|
-
font-family: var( --nile-font-family-
|
|
242
|
+
font-family: var( --nile-font-family-serif, var(--ng-font-family-body));
|
|
265
243
|
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
266
244
|
font-style: normal;
|
|
267
|
-
font-weight: var(--nile-font-weight-
|
|
245
|
+
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
|
|
268
246
|
line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
|
|
269
247
|
}
|
|
270
248
|
|
|
@@ -275,36 +253,28 @@ font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
|
|
|
275
253
|
font-style: normal;
|
|
276
254
|
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
277
255
|
line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
|
|
278
|
-
gap: 6px;
|
|
279
256
|
}
|
|
280
257
|
|
|
281
258
|
.duration__value{
|
|
282
259
|
display: grid;
|
|
283
260
|
place-items:center;
|
|
284
|
-
width:
|
|
285
|
-
height:
|
|
261
|
+
width: 34px;
|
|
262
|
+
height: 34px;
|
|
286
263
|
cursor: pointer;
|
|
287
|
-
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-
|
|
288
|
-
border: 1px solid var(--nile-colors-neutral-500, var(--ng-colors-border-primary));
|
|
264
|
+
border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
|
|
289
265
|
}
|
|
290
266
|
|
|
291
267
|
.duration__value:hover{
|
|
292
|
-
background: var(--nile-colors-neutral-
|
|
293
|
-
border:
|
|
268
|
+
background: var(--nile-colors-neutral-100);
|
|
294
269
|
}
|
|
295
270
|
|
|
296
271
|
.duration__value--selected{
|
|
297
|
-
background-color:var(--nile-colors-
|
|
298
|
-
color: var(--nile-colors-
|
|
299
|
-
font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));
|
|
300
|
-
border: 1px solid transparent;
|
|
301
|
-
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
272
|
+
background-color:var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));
|
|
273
|
+
color: var(--nile-colors-white-base, var(--ng-colors-text-white));
|
|
302
274
|
}
|
|
303
275
|
|
|
304
276
|
.duration__value--selected:hover{
|
|
305
|
-
background:var(--nile-colors-
|
|
306
|
-
font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));
|
|
307
|
-
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
277
|
+
background:var(--nile-colors-primary-700, var(--ng-colors-bg-brand-solid-hover));
|
|
308
278
|
}
|
|
309
279
|
|
|
310
280
|
nile-input::part(input)::-webkit-inner-spin-button,
|
|
@@ -318,173 +288,15 @@ font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
|
|
|
318
288
|
|
|
319
289
|
.unit-input-container {
|
|
320
290
|
display: flex;
|
|
321
|
-
line-height: 0;
|
|
322
291
|
justify-content: space-between;
|
|
323
292
|
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
324
|
-
padding: var(--nile-spacing-none, var(--ng-spacing-
|
|
325
|
-
|
|
326
|
-
var(--nile-spacing-none, var(--ng-spacing-xl))
|
|
327
|
-
var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
328
|
-
|
|
293
|
+
padding: var(--nile-spacing-none, var(--ng-spacing-xl)) var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
294
|
+
padding-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
329
295
|
}
|
|
330
296
|
|
|
331
297
|
.duration-input,.time-input,.manual-input {
|
|
332
298
|
width: 125px;
|
|
333
299
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
/* New Styles */
|
|
337
|
-
|
|
338
|
-
nile-dropdown[open] > span[slot="trigger"] .calendar-header__caret {
|
|
339
|
-
transform: rotate(180deg);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
.calendar-header {
|
|
344
|
-
display: flex;
|
|
345
|
-
align-items: center;
|
|
346
|
-
justify-content: space-between;
|
|
347
|
-
font-size: 14px;
|
|
348
|
-
font-weight: 600;
|
|
349
|
-
line-height: 14px;
|
|
350
|
-
letter-spacing: 0.2px;
|
|
351
|
-
font-feature-settings: 'liga' off, 'clig' off;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.calendar-header__center {
|
|
355
|
-
display: flex;
|
|
356
|
-
align-items: center;
|
|
357
|
-
gap: 6px;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.calendar-header__trigger {
|
|
361
|
-
display: inline-flex;
|
|
362
|
-
align-items: center;
|
|
363
|
-
gap: 2px;
|
|
364
|
-
font-size: 14px;
|
|
365
|
-
font-weight: 600;
|
|
366
|
-
line-height: 1;
|
|
367
|
-
background: transparent;
|
|
368
|
-
color: var(--nile-colors-dark-900);
|
|
369
|
-
font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.calendar-header__caret {
|
|
373
|
-
width: 16px;
|
|
374
|
-
height: 16px;
|
|
375
|
-
transition: transform 0.2s ease;
|
|
376
|
-
transform-origin: center;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.calendar-menu {
|
|
380
|
-
max-height: 194px;
|
|
381
|
-
overflow-y: auto;
|
|
382
|
-
width: 100px;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
.month-scroll-wrapper {
|
|
388
|
-
max-height: 196px;
|
|
389
|
-
overflow-y: auto;
|
|
390
|
-
width: 100px;
|
|
391
|
-
overflow-x: hidden;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.month-dropdown nile-menu {
|
|
395
|
-
overflow-y: auto;
|
|
396
|
-
padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
|
|
397
|
-
box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
.year-scroll-wrapper {
|
|
402
|
-
max-height: 196px;
|
|
403
|
-
overflow-y: auto;
|
|
404
|
-
width: 65px;
|
|
405
|
-
overflow-x: hidden;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.year-dropdown nile-menu {
|
|
409
|
-
overflow-y: auto;
|
|
410
|
-
padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);
|
|
411
|
-
box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.month-dropdown nile-menu-item::part(base) {
|
|
415
|
-
padding: 0px 12px;
|
|
416
|
-
}
|
|
417
|
-
.year-dropdown nile-menu-item::part(base) {
|
|
418
|
-
padding: 0px 12px;
|
|
419
|
-
}
|
|
420
|
-
nile-menu-item[selected]{
|
|
421
|
-
background: var(--nile-colors-primary-100);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
nile-menu-item[selected]::part(base):hover {
|
|
425
|
-
background: var(--nile-colors-primary-100);
|
|
426
|
-
border-radius: 0px;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
nile-icon[disabled] {
|
|
431
|
-
opacity: 0.4;
|
|
432
|
-
pointer-events: none;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.units-wrapper {
|
|
436
|
-
display: flex;
|
|
437
|
-
flex-direction: column;
|
|
438
|
-
gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
439
|
-
padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
440
|
-
width: auto;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.calendar-input {
|
|
444
|
-
display: flex;
|
|
445
|
-
flex-direction: column;
|
|
446
|
-
gap: var(--nile-spacing-md, 12px);
|
|
447
|
-
padding: var(--nile-spacing-lg, 16px)
|
|
448
|
-
var(--nile-spacing-xl, 24px)
|
|
449
|
-
var(--nile-spacing-none, 0)
|
|
450
|
-
var(--nile-spacing-xl, 24px);
|
|
451
|
-
box-sizing: border-box;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
.manual-input {
|
|
456
|
-
flex: 1;
|
|
457
|
-
min-width: 120px;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
.date-input nile-input::part(base),
|
|
461
|
-
.time-input nile-input::part(base) {
|
|
462
|
-
width: 100%;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.manual-input-label {
|
|
466
|
-
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
467
|
-
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
.day_date.in-range:hover:not(.range-start):not(.range-end) {
|
|
473
|
-
background-color: var(--nile-colors-neutral-400, var(--ng-colors-bg-quaternary));
|
|
474
|
-
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
nile-input.date-input::part(base), .from-date{
|
|
479
|
-
width: var(--nile-width-150px, var(--ng-width-164));
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
nile-input.time-input::part(base), .from-time{
|
|
483
|
-
width: var(--nile-width-99px, var(--ng-width-108));
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
300
|
`;
|
|
489
301
|
export default [styles];
|
|
490
302
|
//# sourceMappingURL=nile-calendar.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-calendar.css.js","sourceRoot":"","sources":["../../../src/nile-calendar/nile-calendar.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6dxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * DatePicker CSS\n */\nexport const styles = css`\n\n .base {\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-radius-sm, var(--ng-radius-2xl));\n width: var(--nile-width-288px, var(--ng-width-312));\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary-alt));\n box-shadow: var(--nile-box-shadow-15, 0px 20px 24px -4px var(--ng-colors-effects-shadow-xl-01)); // Need to fix the token for this\n border: var(--nile-spacing-spacing-none, 1px solid var(--ng-colors-border-secondary-alt));\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n .calendar-container {\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n width: 100%;\n height: auto;\n text-align: center;\n background: white;\n border-radius: var(--nile-radius-radius-xl, var(--ng-radius-2xl));\n }\n\n .calendar-wrapper {\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n display: flex;\n justify-content: space-between;\n width: 100%;\n border-radius: var(--nile-radius-radius-xl, var(--ng-radius-2xl));\n }\n\n .calendar-header {\n display: flex;\n justify-content: space-between;\n padding: var(--nile-spacing-22px, var(--ng-spacing-2xl)) var(--nile-spacing-2xl, var(--ng-spacing-2xl));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-sm));\n letter-spacing: 0.2px;\n }\n\n .calendar-header__month-navigation {\n cursor: pointer;\n }\n\n /* Date CSS_START */\n\n .days_container {\n\t\tdisplay: grid;\n padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-lg, var(--ng-spacing-lg));\n\t\tgrid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;\n\t\tgrid-row-gap: var(--nile-spacing-xs, var(--ng-spacing-xs));\n }\n\n .day_date ,.day_name{\n\t\tfont-family: var(--nile-font-family-serif-colfax-medium, var(--ng-font-family-body));\n\t\tfont-style: normal;\n\t\tfont-size: var(--nile-type-scale-2, var(--ng-font-size-text-sm));\n\t\tline-height: var(--nile-line-height-20px, var(--ng-line-height-text-sm));\n\t\ttext-align: center;\n width: 100%;\n\t\theight: var(--nile-width-32px, var(--ng-width-10)); \n\t\tdisplay:grid;\n\t\tplace-items:center;\n }\n\n .day_name{\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n font-family: var(--nile-font-family-serif-colfax-medium, var(--ng-font-family-body))\n }\n\n .day_date{\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n user-select:none;\n }\n\n\t.current__date__dot{\n\t\tbackground-color:var(--nile-colors-primary-600, var(--ng-colors-text-white));\n\t\tposition:absolute;\n\t\tborder-radius:50%;\n\t\theight:5px;\n\t\twidth:5px;\n\t\tleft:25%;\n\t\ttop:90%;\n\t}\n\n .day_date:not(.range-start, .selected-date, .range-end) .current__date__dot{\n\t\tbackground-color:var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n }\n\n\n .day_date:hover {\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary-hover));\n }\n\n .filler {\n color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));\n pointer-events: none;\n }\n\n .selected-date {\n color: white;\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n }\n\n .selected-date:hover {\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n }\n\n .selected-date,\n .range-start,\n .range-end {\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-white));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n }\n\n .selected-date:hover,\n .range-start:hover,\n .range-end:hover,\n .day_date.in-range:hover {\n background: var(--nile-colors-blue-500, var(--ng-colors-bg-brand-solid-hover));\n }\n\n .range-start.in-range {\n background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-xs, var(--ng-radius-xs));\n color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));\n }\n\n .range-end {\n background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));\n border-radius: var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-none, var(--ng-radius-none));\n color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-sm));\n letter-spacing: 0.2px;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-regular));\n }\n\n .range-middle {\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-radius-none, var(--ng-radius-none))\n }\n\n .day_date.selected {\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n }\n\n .day_date.in-range:not(.range-start,.range-end, .selected-date) {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-active));\n }\n\n .selected-date {\n color: var(--nile-colors-dark-900, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n background: var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));\n }\n\n .not-allowed{\n color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));\n pointer-events: none;\n }\n\n /* Date CSS_END */\n\n .calender-input {\n box-sizing:border-box;\n padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-xl, var(--ng-spacing-xl));\n width:100%;\n justify-content: space-between;\n display: flex;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n flex-wrap: wrap;\n }\n\n .from {\n display: flex;\n justify-content: space-between;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n width: auto;\n align-items: flex-end;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n flex-wrap: nowrap;\n width: 100%;\n }\n\n .manual-input-label {\n color: var(--nile-colors-dark-500);\n font-family: Colfax-regular;\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n line-height: 12px;\n letter-spacing: 0.2px;\n } \n\n .button-container {\n width: 100%;\n display:flex;\n justify-content: end;\n gap: var(--nile-spacing-xl, var(--ng-spacing-lg));\n padding: var(--nile-spacing-xl, var(--ng-spacing-lg)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl));\n box-sizing: border-box;\n }\n\n .calendar-config {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n nile-tab::part(base){\npadding-bottom: 12px;\njustify-content: center;\nfont-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));\nfont-family: var(--nile-font-family-colfax-medium, var(--ng-font-family-body));\nfont-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n}\n\n .calendar-switcher {\n width: 100%;\n margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n .units-wrapper{\n width:min-content;\n margin:auto;\n }\n\n .unit-container {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl)); \n}\n\n.unit-group {\n display: flex;\n flex-direction: column;\n gap: 6px; \n}\n\n\n .duration-name{\n display:flex;\n align-items:center;\n font-family: var( --nile-font-family-colfax-medium, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-style: normal;\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm)); \n }\n \n .duration-units{\n display:flex;\n font-family: var( --nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-style: normal;\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));\n gap: 6px;\n }\n\n .duration__value{\n display: grid;\n place-items:center;\n width: var(--nile-width-32px, var(--ng-width-10));\n height: var(--nile-width-32px, var(--ng-width-10));\n cursor: pointer;\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-md));\n border: 1px solid var(--nile-colors-neutral-500, var(--ng-colors-border-primary));\n }\n\n .duration__value:hover{\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-quaternary));\n border:\n }\n\n .duration__value--selected{\n background-color:var(--nile-colors-blue-400, var(--ng-colors-bg-brand-solid));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-white));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));\n border: 1px solid transparent; \n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n }\n\n .duration__value--selected:hover{\n background:var(--nile-colors-blue-500, var(--ng-colors-bg-brand-solid-hover));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semi-bold));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n }\n\n nile-input::part(input)::-webkit-inner-spin-button,\n nile-input::part(input)::-webkit-outer-spin-button {\n -webkit-appearance: none;\n }\n\n .hidden {\n display: none !important;\n }\n\n .unit-input-container {\n display: flex;\n line-height: 0;\n justify-content: space-between;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n padding: var(--nile-spacing-none, var(--ng-spacing-none))\n var(--nile-spacing-xl, var(--ng-spacing-xl))\n var(--nile-spacing-none, var(--ng-spacing-xl))\n var(--nile-spacing-xl, var(--ng-spacing-xl));\n\n }\n\n .duration-input,.time-input,.manual-input {\n width: 125px;\n }\n\n\n /* New Styles */\n\n nile-dropdown[open] > span[slot=\"trigger\"] .calendar-header__caret {\n transform: rotate(180deg);\n}\n\n\n.calendar-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n font-weight: 600;\n line-height: 14px;\n letter-spacing: 0.2px;\n font-feature-settings: 'liga' off, 'clig' off;\n}\n\n.calendar-header__center {\n display: flex;\n align-items: center;\n gap: 6px; \n}\n\n.calendar-header__trigger {\n display: inline-flex;\n align-items: center;\n gap: 2px;\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n background: transparent;\n color: var(--nile-colors-dark-900);\n font-family: var(--nile-font-family-medium, var(--ng-font-family-body));\n}\n\n.calendar-header__caret {\n width: 16px;\n height: 16px;\n transition: transform 0.2s ease;\n transform-origin: center;\n}\n\n .calendar-menu {\n max-height: 194px;\n overflow-y: auto;\n width: 100px;\n }\n\n \n\n .month-scroll-wrapper {\n max-height: 196px;\n overflow-y: auto;\n width: 100px;\n overflow-x: hidden;\n }\n\n .month-dropdown nile-menu {\n overflow-y: auto;\n padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);\n box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);\n }\n\n\n .year-scroll-wrapper {\n max-height: 196px;\n overflow-y: auto;\n width: 65px;\n overflow-x: hidden;\n }\n\n .year-dropdown nile-menu {\n overflow-y: auto;\n padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-none);\n box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);\n }\n\n .month-dropdown nile-menu-item::part(base) {\n padding: 0px 12px;\n }\n .year-dropdown nile-menu-item::part(base) {\n padding: 0px 12px;\n }\nnile-menu-item[selected]{\n background: var(--nile-colors-primary-100);\n}\n\nnile-menu-item[selected]::part(base):hover {\n background: var(--nile-colors-primary-100);\n border-radius: 0px;\n}\n\n\nnile-icon[disabled] {\n opacity: 0.4;\n pointer-events: none;\n}\n\n.units-wrapper {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl));\n width: auto;\n}\n\n.calendar-input {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-md, 12px);\n padding: var(--nile-spacing-lg, 16px)\n var(--nile-spacing-xl, 24px)\n var(--nile-spacing-none, 0)\n var(--nile-spacing-xl, 24px);\n box-sizing: border-box;\n}\n \n\n.manual-input {\n flex: 1;\n min-width: 120px;\n}\n\n.date-input nile-input::part(base),\n.time-input nile-input::part(base) {\n width: 100%;\n}\n\n.manual-input-label {\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n}\n \n\n \n.day_date.in-range:hover:not(.range-start):not(.range-end) {\n background-color: var(--nile-colors-neutral-400, var(--ng-colors-bg-quaternary));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n}\n\n \nnile-input.date-input::part(base), .from-date{\n width: var(--nile-width-150px, var(--ng-width-164));\n}\n\nnile-input.time-input::part(base), .from-time{\n width: var(--nile-width-99px, var(--ng-width-108));\n}\n \n\n\n`;\n\nexport default [styles];\n"]}
|
|
1
|
+
{"version":3,"file":"nile-calendar.css.js","sourceRoot":"","sources":["../../../src/nile-calendar/nile-calendar.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiSxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * DatePicker CSS\n */\nexport const styles = css`\n\n .base {\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-radius-xl, var(--ng-radius-2xl));\n width: 300px;\n box-shadow: 0px 8px 8px -4px var(--nile-colors-neutral-400);\n box-shadow: 0px 20px 24px -4px var(--nile-colors-dark-100, var(--ng-colors-effects-shadow-xl-01));\n border: var(--nile-spacing-spacing-none, 1px solid var(--ng-colors-border-secondary-alt));\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n .calendar-container {\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n width: 100%;\n height: auto;\n text-align: center;\n background: white;\n border-radius: var(--nile-radius-radius-xl, var(--ng-radius-2xl));\n }\n\n .calendar-wrapper {\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n display: flex;\n justify-content: space-between;\n width: 100%;\n border-radius: var(--nile-radius-radius-xl, var(--ng-radius-2xl));\n }\n\n .calendar-header {\n display: flex;\n justify-content: space-between;\n padding: var(--nile-spacing-22px, var(--ng-spacing-2xl)) var(--nile-spacing-2xl, var(--ng-spacing-2xl));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-sm));\n letter-spacing: 0.2px;\n }\n\n .calendar-header__month-navigation {\n cursor: pointer;\n }\n\n /* Date CSS_START */\n\n .days_container {\n\t\tdisplay: grid;\n padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-lg, var(--ng-spacing-lg));\n\t\tgrid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;\n\t\tgrid-row-gap: var(--nile-spacing-xs, var(--ng-spacing-xs));\n }\n\n .day_date ,.day_name{\n\t\tfont-family: var( --nile-font-family-serif, var(--ng-font-family-body));\n\t\tfont-style: normal;\n\t\tfont-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n\t\tline-height: var(--nile-line-height-20px, var(--ng-line-height-text-sm));\n\t\ttext-align: center;\n\n\t\t/* width: 40px;\n\t\theight: 30px; */\n\t\tpadding: 5px 8px;\n\t\tdisplay:grid;\n\t\tplace-items:center;\n }\n\n .day_name{\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n }\n\n .day_date{\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n user-select:none;\n }\n\n\t.current__date__dot{\n\t\tbackground-color:white;\n\t\tposition:absolute;\n\t\tborder-radius:50%;\n\t\theight:5px;\n\t\twidth:5px;\n\t\tleft:25%;\n\t\ttop:90%;\n\t}\n\n .day_date:not(.range-start, .selected-date, .range-end) .current__date__dot{\n\t\tbackground-color:var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n }\n\n\n .day_date:hover {\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary-hover));\n }\n\n .filler {\n color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));\n pointer-events: none;\n }\n\n .selected-date {\n color: white;\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n }\n\n .selected-date:hover {\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n }\n\n .selected-date,\n .range-start,\n .range-end {\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n color: white;\n }\n\n .selected-date:hover,\n .range-start:hover,\n .range-end:hover,\n .day_date.in-range:hover {\n background: var(--nile-colors-primary-700, var(--ng-colors-bg-brand-solid-hover));\n }\n\n .range-start.in-range {\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-xs, var(--ng-radius-xs));\n color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n\n .range-end {\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n border-radius: var(--nile-radius-radius-none, var(--ng-radius-none)) var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-xs, var(--ng-radius-xs)) var(--nile-radius-radius-none, var(--ng-radius-none));\n color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n }\n\n .range-middle {\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-radius-none, var(--ng-radius-none))\n }\n\n .day_date.selected {\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n }\n\n .day_date.in-range:not(.range-start,.range-end, .selected-date) {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));\n }\n\n .selected-date {\n color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n background: var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n }\n\n .not-allowed{\n color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));\n pointer-events: none;\n }\n\n /* Date CSS_END */\n\n .calender-input {\n box-sizing:border-box;\n padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-xl, var(--ng-spacing-xl));\n width:100%;\n justify-content: space-between;\n display: flex;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n flex-wrap: wrap;\n }\n\n .from {\n display: flex;\n justify-content: space-between;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n width: auto;\n }\n\n .manual-input-label {\n color: var(--nile-colors-dark-500);\n font-family: Colfax-regular;\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n line-height: 12px;\n letter-spacing: 0.2px;\n } \n\n .button-container {\n width: 100%;\n display:flex;\n justify-content: end;\n gap: var(--nile-spacing-10px, var(--ng-spacing-lg));\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-spacing-xl, var(--ng-spacing-xl));\n box-sizing: border-box;\n }\n\n .calendar-config {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .calendar-switcher {\n width: 100%;\n margin: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));\n margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n .units-wrapper{\n width:min-content;\n margin:auto;\n }\n\n .unit-container{\n display:grid;\n grid-template-columns: auto auto;\n row-gap:var(--nile-spacing-spacing-2xl, var(--ng-spacing-2xl));\n column-gap: var(--nile-spacing-spacing-sm, var(--ng-spacing-sm));\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-bottom: var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n .duration-name{\n display:flex;\n align-items:center;\n font-family: var( --nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-style: normal;\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm)); \n }\n \n .duration-units{\n display:flex;\n font-family: var( --nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-style: normal;\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));\n }\n\n .duration__value{\n display: grid;\n place-items:center;\n width: 34px;\n height: 34px;\n cursor: pointer;\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n }\n\n .duration__value:hover{\n background: var(--nile-colors-neutral-100);\n }\n\n .duration__value--selected{\n background-color:var(--nile-colors-primary-600, var(--ng-colors-bg-brand-solid));\n color: var(--nile-colors-white-base, var(--ng-colors-text-white));\n }\n\n .duration__value--selected:hover{\n background:var(--nile-colors-primary-700, var(--ng-colors-bg-brand-solid-hover));\n }\n\n nile-input::part(input)::-webkit-inner-spin-button,\n nile-input::part(input)::-webkit-outer-spin-button {\n -webkit-appearance: none;\n }\n\n .hidden {\n display: none !important;\n }\n\n .unit-input-container {\n display: flex;\n justify-content: space-between;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n padding: var(--nile-spacing-none, var(--ng-spacing-xl)) var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-top: var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n .duration-input,.time-input,.manual-input {\n width: 125px;\n }\n`;\n\nexport default [styles];\n"]}
|
|
@@ -35,11 +35,6 @@ export declare class NileCalendar extends NileElement {
|
|
|
35
35
|
selectedValue: number;
|
|
36
36
|
hideDurationFields: String[];
|
|
37
37
|
showManualInputs: boolean;
|
|
38
|
-
startYear?: number;
|
|
39
|
-
endYear?: number;
|
|
40
|
-
showMonthDropdown: boolean;
|
|
41
|
-
showYearDropdown: boolean;
|
|
42
|
-
dateFormat: string;
|
|
43
38
|
startDate: Date | null;
|
|
44
39
|
endDate: Date | null;
|
|
45
40
|
isSelectingStart: boolean;
|
|
@@ -51,17 +46,7 @@ export declare class NileCalendar extends NileElement {
|
|
|
51
46
|
connectedCallback(): void;
|
|
52
47
|
disconnectedCallback(): void;
|
|
53
48
|
protected updated(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
54
|
-
private get monthNames();
|
|
55
|
-
private get yearOptions();
|
|
56
|
-
private onMonthSelected;
|
|
57
|
-
private onYearSelected;
|
|
58
49
|
checkValidAllowedDate(): void;
|
|
59
|
-
private isPrevDisabled;
|
|
60
|
-
private isNextDisabled;
|
|
61
|
-
private formatDate;
|
|
62
|
-
private parseDate;
|
|
63
|
-
private handleStartDateInput;
|
|
64
|
-
private handleEndDateInput;
|
|
65
50
|
/**
|
|
66
51
|
* Render method
|
|
67
52
|
*/
|