@nova-design-system/nova-webcomponents 3.0.0-beta.43 → 3.0.0-beta.45
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/cjs/index.cjs.js +472 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/native.cjs.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +5 -3
- package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +5 -5
- package/dist/cjs/nv-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +31 -4
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +16 -12
- package/dist/cjs/nv-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +5 -5
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +44 -74
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +6 -8
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +6 -48
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +11 -9
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-table.cjs.entry.js +1 -1
- package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/components/nv-badge/nv-badge.css +27 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.css +11 -0
- package/dist/collection/components/nv-button/nv-button.js +5 -3
- package/dist/collection/components/nv-button/nv-button.js.map +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.css +129 -77
- package/dist/collection/components/nv-calendar/nv-calendar.js +4 -4
- package/dist/collection/components/nv-calendar/nv-calendar.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.css +4 -4
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +13 -2
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +53 -3
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js +24 -17
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +1 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +7 -7
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js.map +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +11 -0
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +44 -74
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/styles/nv-fielddropdown.css +3 -0
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +9 -11
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +6 -48
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icon.docs.js +1 -0
- package/dist/collection/components/nv-icon/nv-icon.docs.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js +472 -2
- package/dist/collection/components/nv-icon/nv-icons.js.map +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +11 -9
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
- package/dist/collection/components/nv-table/nv-table.css +4 -4
- package/dist/collection/components/nv-toggle/nv-toggle.css +11 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +1 -1
- package/dist/components/index.js +472 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/nv-alert.js +1 -1
- package/dist/components/nv-avatar.js +1 -1
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +3 -3
- package/dist/components/nv-breadcrumb.js.map +1 -1
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-calendar.js +1 -1
- package/dist/components/nv-datagrid.js +32 -4
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-dialog.js +20 -16
- package/dist/components/nv-dialog.js.map +1 -1
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +1 -1
- package/dist/components/nv-fielddate.js +6 -6
- package/dist/components/nv-fielddaterange.js +6 -6
- package/dist/components/nv-fielddropdown.js +48 -78
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fielddropdownitemcheck.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +12 -54
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +2 -2
- package/dist/components/nv-fieldpassword.js +2 -2
- package/dist/components/nv-fieldselect.js +2 -2
- package/dist/components/nv-fieldtext.js +1 -1
- package/dist/components/nv-fieldtime.js +3 -3
- package/dist/components/nv-icon.js +1 -1
- package/dist/components/nv-iconbutton.js +1 -1
- package/dist/components/nv-menu.js +3 -3
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-table.js +1 -1
- package/dist/components/nv-table.js.map +1 -1
- package/dist/components/nv-toggle.js +1 -1
- package/dist/components/nv-toggle.js.map +1 -1
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-7f142767.js → p-0f59f38e.js} +3 -3
- package/dist/components/p-0f59f38e.js.map +1 -0
- package/dist/components/{p-1a4f9c97.js → p-103756d6.js} +6 -4
- package/dist/components/p-103756d6.js.map +1 -0
- package/dist/components/{p-a8b5969f.js → p-3561c093.js} +3 -3
- package/dist/components/{p-a8b5969f.js.map → p-3561c093.js.map} +1 -1
- package/dist/components/{p-1e095bba.js → p-3b096098.js} +2 -2
- package/dist/components/{p-1e095bba.js.map → p-3b096098.js.map} +1 -1
- package/dist/components/p-78b00756.js +88 -0
- package/dist/components/p-78b00756.js.map +1 -0
- package/dist/components/{p-3aa6f6dc.js → p-78e0e7b0.js} +9 -9
- package/dist/components/p-78e0e7b0.js.map +1 -0
- package/dist/components/{p-4c6ba63c.js → p-863974b2.js} +2 -2
- package/dist/components/{p-4c6ba63c.js.map → p-863974b2.js.map} +1 -1
- package/dist/components/{p-9476354d.js → p-8ea5e3c0.js} +9 -11
- package/dist/components/p-8ea5e3c0.js.map +1 -0
- package/dist/components/{p-55202370.js → p-933d4d06.js} +2 -2
- package/dist/components/p-933d4d06.js.map +1 -0
- package/dist/components/{p-89fb308b.js → p-aeeb5b1c.js} +2 -2
- package/dist/components/{p-89fb308b.js.map → p-aeeb5b1c.js.map} +1 -1
- package/dist/components/{p-56716b97.js → p-b5821dbb.js} +8 -8
- package/dist/components/p-b5821dbb.js.map +1 -0
- package/dist/components/{p-057ae4f2.js → p-e46c2e31.js} +12 -10
- package/dist/components/p-e46c2e31.js.map +1 -0
- package/dist/components/{p-1fad2529.js → p-ef255589.js} +2 -2
- package/dist/components/{p-1fad2529.js.map → p-ef255589.js.map} +1 -1
- package/dist/esm/index.js +472 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/native.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +1 -1
- package/dist/esm/nv-badge_2.entry.js.map +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +1 -1
- package/dist/esm/nv-breadcrumb.entry.js.map +1 -1
- package/dist/esm/nv-button.entry.js +5 -3
- package/dist/esm/nv-button.entry.js.map +1 -1
- package/dist/esm/nv-calendar.entry.js +5 -5
- package/dist/esm/nv-calendar.entry.js.map +1 -1
- package/dist/esm/nv-datagrid.entry.js +31 -4
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-dialog.entry.js +16 -12
- package/dist/esm/nv-dialog.entry.js.map +1 -1
- package/dist/esm/nv-dialogfooter_2.entry.js +5 -5
- package/dist/esm/nv-dialogfooter_2.entry.js.map +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +44 -74
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +6 -8
- package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +6 -48
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +1 -1
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-popover.entry.js +11 -9
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-table.entry.js +1 -1
- package/dist/esm/nv-table.entry.js.map +1 -1
- package/dist/esm/nv-toggle.entry.js +1 -1
- package/dist/esm/nv-toggle.entry.js.map +1 -1
- package/dist/esm/nv-tooltip.entry.js +1 -1
- package/dist/esm/nv-tooltip.entry.js.map +1 -1
- package/dist/native/index.esm.js +1 -1
- package/dist/native/index.esm.js.map +1 -1
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/p-0172095c.entry.js +2 -0
- package/dist/native/p-0172095c.entry.js.map +1 -0
- package/dist/native/{p-b052f1cb.entry.js → p-162f4840.entry.js} +2 -2
- package/dist/native/p-162f4840.entry.js.map +1 -0
- package/dist/native/{p-2ed540e3.entry.js → p-17bf1233.entry.js} +2 -2
- package/dist/native/p-17bf1233.entry.js.map +1 -0
- package/dist/native/p-19fd6594.entry.js +2 -0
- package/dist/native/p-19fd6594.entry.js.map +1 -0
- package/dist/native/p-331da074.entry.js +2 -0
- package/dist/native/p-331da074.entry.js.map +1 -0
- package/dist/native/{p-db2902d6.entry.js → p-40f4a6e7.entry.js} +2 -2
- package/dist/native/p-40f4a6e7.entry.js.map +1 -0
- package/dist/native/p-42d020a7.entry.js +2 -0
- package/dist/native/p-42d020a7.entry.js.map +1 -0
- package/dist/native/p-4403e3af.entry.js +2 -0
- package/dist/native/p-4403e3af.entry.js.map +1 -0
- package/dist/native/p-54b6ce07.entry.js +2 -0
- package/dist/native/p-54b6ce07.entry.js.map +1 -0
- package/dist/native/{p-56e98443.entry.js → p-603a99ed.entry.js} +2 -2
- package/dist/native/{p-56e98443.entry.js.map → p-603a99ed.entry.js.map} +1 -1
- package/dist/native/p-725e0abd.entry.js +2 -0
- package/dist/native/p-725e0abd.entry.js.map +1 -0
- package/dist/native/p-abeda2cf.entry.js +7 -0
- package/dist/native/p-abeda2cf.entry.js.map +1 -0
- package/dist/native/{p-04c6048a.entry.js → p-d9624254.entry.js} +2 -2
- package/dist/native/p-d9624254.entry.js.map +1 -0
- package/dist/native/{p-be4fc827.entry.js → p-e197d90b.entry.js} +2 -2
- package/dist/native/p-e197d90b.entry.js.map +1 -0
- package/dist/native/p-e6904ae4.entry.js +2 -0
- package/dist/native/p-e6904ae4.entry.js.map +1 -0
- package/dist/native/p-f01a34c5.entry.js +2 -0
- package/dist/native/p-f01a34c5.entry.js.map +1 -0
- package/dist/types/components/nv-base/nv-base.docs.d.ts +1 -1
- package/dist/types/components/nv-datagrid/nv-datagrid.d.ts +6 -0
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +4 -3
- package/dist/types/components/nv-dialogfooter/nv-dialogfooter.d.ts +2 -2
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +1 -7
- package/dist/types/components/nv-fielddropdownitem/nv-fielddropdownitem.d.ts +1 -6
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +1 -1
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components.d.ts +29 -18
- package/dist/types/nova-docs.d.ts +6 -0
- package/dist/vscode-data.json +5984 -0
- package/hydrate/index.js +140 -178
- package/hydrate/index.mjs +140 -178
- package/package.json +10 -10
- package/dist/components/p-057ae4f2.js.map +0 -1
- package/dist/components/p-1a4f9c97.js.map +0 -1
- package/dist/components/p-3aa6f6dc.js.map +0 -1
- package/dist/components/p-55202370.js.map +0 -1
- package/dist/components/p-56716b97.js.map +0 -1
- package/dist/components/p-7f142767.js.map +0 -1
- package/dist/components/p-9476354d.js.map +0 -1
- package/dist/components/p-ebf24fd0.js +0 -88
- package/dist/components/p-ebf24fd0.js.map +0 -1
- package/dist/docs.d.ts +0 -443
- package/dist/docs.json +0 -16650
- package/dist/native/p-048486e0.entry.js +0 -7
- package/dist/native/p-048486e0.entry.js.map +0 -1
- package/dist/native/p-04c6048a.entry.js.map +0 -1
- package/dist/native/p-22a45102.entry.js +0 -2
- package/dist/native/p-22a45102.entry.js.map +0 -1
- package/dist/native/p-2ed540e3.entry.js.map +0 -1
- package/dist/native/p-62df7dd4.entry.js +0 -2
- package/dist/native/p-62df7dd4.entry.js.map +0 -1
- package/dist/native/p-68b5a92c.entry.js +0 -2
- package/dist/native/p-68b5a92c.entry.js.map +0 -1
- package/dist/native/p-6a629671.entry.js +0 -2
- package/dist/native/p-6a629671.entry.js.map +0 -1
- package/dist/native/p-913907fb.entry.js +0 -2
- package/dist/native/p-913907fb.entry.js.map +0 -1
- package/dist/native/p-9f5e4dfc.entry.js +0 -2
- package/dist/native/p-9f5e4dfc.entry.js.map +0 -1
- package/dist/native/p-ab84ff42.entry.js +0 -2
- package/dist/native/p-ab84ff42.entry.js.map +0 -1
- package/dist/native/p-b052f1cb.entry.js.map +0 -1
- package/dist/native/p-bdabd495.entry.js +0 -2
- package/dist/native/p-bdabd495.entry.js.map +0 -1
- package/dist/native/p-be4fc827.entry.js.map +0 -1
- package/dist/native/p-db2902d6.entry.js.map +0 -1
- package/dist/native/p-ed595c96.entry.js +0 -2
- package/dist/native/p-ed595c96.entry.js.map +0 -1
|
@@ -14,31 +14,31 @@ nv-calendar {
|
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
align-items: stretch;
|
|
17
|
-
background: var(--
|
|
18
|
-
border-radius: var(--
|
|
19
|
-
padding:
|
|
20
|
-
box-shadow: 0
|
|
21
|
-
border: 1px solid var(--components-
|
|
17
|
+
background: var(--components-calendar-background);
|
|
18
|
+
border-radius: var(--calendar-radius);
|
|
19
|
+
padding: var(--calendar-padding);
|
|
20
|
+
box-shadow: 0px var(--shadow-y-axis-md-1) var(--shadow-blur-md-1) var(--shadow-spread-md, 0) var(--shadow-color-opacity-0), 0px var(--shadow-y-axis-md-2) var(--shadow-blur-md-2) var(--shadow-spread-md, 0) var(--shadow-color-opacity-2);
|
|
21
|
+
border: 1px solid var(--components-calendar-border);
|
|
22
22
|
width: auto;
|
|
23
23
|
max-width: 100%;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.datepicker-container-single {
|
|
27
|
-
width: 300px;
|
|
27
|
+
max-width: 300px;
|
|
28
28
|
}
|
|
29
29
|
.datepicker-container-single .datepicker-wrapper:has(.shortcuts-placement-left),
|
|
30
30
|
.datepicker-container-single .datepicker-wrapper:has(.shortcuts-placement-right) {
|
|
31
|
-
width: 410px !important;
|
|
31
|
+
max-width: 410px !important;
|
|
32
32
|
}
|
|
33
33
|
.datepicker-container-single:has(.shortcuts-placement-left), .datepicker-container-single:has(.shortcuts-placement-right) {
|
|
34
|
-
width: 410px !important;
|
|
34
|
+
max-width: 410px !important;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.datepicker-wrapper {
|
|
38
38
|
display: flex;
|
|
39
39
|
justify-content: center;
|
|
40
40
|
align-items: flex-start;
|
|
41
|
-
gap:
|
|
41
|
+
gap: var(--calendar-gap-x);
|
|
42
42
|
width: auto;
|
|
43
43
|
overflow-x: hidden;
|
|
44
44
|
}
|
|
@@ -51,14 +51,14 @@ nv-calendar {
|
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
align-items: center;
|
|
54
|
-
padding:
|
|
54
|
+
padding: var(--calendar-padding);
|
|
55
55
|
width: auto;
|
|
56
56
|
position: relative;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.calendar-separator {
|
|
60
60
|
width: 1px;
|
|
61
|
-
background: var(--components-
|
|
61
|
+
background: var(--components-calendar-border);
|
|
62
62
|
height: auto;
|
|
63
63
|
min-height: 100%;
|
|
64
64
|
margin: 0 10px;
|
|
@@ -66,15 +66,19 @@ nv-calendar {
|
|
|
66
66
|
|
|
67
67
|
.header {
|
|
68
68
|
display: flex;
|
|
69
|
-
justify-content:
|
|
69
|
+
justify-content: start;
|
|
70
70
|
align-items: center;
|
|
71
|
-
margin-bottom:
|
|
71
|
+
margin-bottom: var(--calendar-header-margin-bottom);
|
|
72
72
|
width: 100%;
|
|
73
73
|
}
|
|
74
|
+
.header nv-iconbutton {
|
|
75
|
+
width: var(--calendar-header-button-size);
|
|
76
|
+
height: var(--calendar-header-button-size);
|
|
77
|
+
}
|
|
74
78
|
|
|
75
79
|
.nav-buttons {
|
|
76
80
|
display: flex;
|
|
77
|
-
gap: 0
|
|
81
|
+
gap: var(--spacing-0);
|
|
78
82
|
margin-left: auto;
|
|
79
83
|
}
|
|
80
84
|
|
|
@@ -84,22 +88,31 @@ nv-calendar {
|
|
|
84
88
|
|
|
85
89
|
.date-controls {
|
|
86
90
|
display: flex;
|
|
87
|
-
gap:
|
|
91
|
+
gap: var(--spacing-1);
|
|
88
92
|
align-items: center;
|
|
89
93
|
min-height: 34px;
|
|
90
94
|
justify-content: center;
|
|
91
95
|
}
|
|
92
96
|
.datepicker-container-single .date-controls {
|
|
93
|
-
justify-content: flex-start
|
|
97
|
+
justify-content: flex-start;
|
|
94
98
|
}
|
|
95
99
|
.datepicker-container:not(.datepicker-container-single) .date-controls {
|
|
96
|
-
justify-content:
|
|
100
|
+
justify-content: start;
|
|
101
|
+
flex-grow: 1;
|
|
102
|
+
}
|
|
103
|
+
.date-controls .month-select,
|
|
104
|
+
.date-controls .year-input {
|
|
105
|
+
background: transparent !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.calendar-wrapper:nth-child(n+2) .datepicker-container {
|
|
109
|
+
margin-left: 42px;
|
|
97
110
|
}
|
|
98
111
|
|
|
99
112
|
.calendar-grid {
|
|
100
113
|
display: grid;
|
|
101
114
|
grid-template-columns: auto 1fr;
|
|
102
|
-
gap:
|
|
115
|
+
column-gap: var(--calendar-weeks-calendar-gap-x);
|
|
103
116
|
position: relative;
|
|
104
117
|
}
|
|
105
118
|
.calendar-grid.slide-left {
|
|
@@ -111,68 +124,73 @@ nv-calendar {
|
|
|
111
124
|
|
|
112
125
|
.week-numbers {
|
|
113
126
|
display: grid;
|
|
114
|
-
grid-template-rows:
|
|
115
|
-
background: var(--
|
|
116
|
-
|
|
117
|
-
|
|
127
|
+
grid-template-rows: var(--calendar-cell-size) repeat(6, var(--calendar-cell-size));
|
|
128
|
+
background: var(--components-calendar-weeks-background);
|
|
129
|
+
color: var(--components-calendar-weeks-text);
|
|
130
|
+
border-radius: var(--calendar-weeks-radius);
|
|
131
|
+
width: var(--calendar-weeks-size);
|
|
132
|
+
row-gap: var(--calendar-grid-gap-y);
|
|
118
133
|
}
|
|
119
134
|
.week-numbers .clickable {
|
|
120
135
|
cursor: pointer;
|
|
121
136
|
}
|
|
122
137
|
.week-numbers .clickable:hover {
|
|
123
|
-
background: var(--components-
|
|
124
|
-
color:
|
|
125
|
-
border-radius: var(--
|
|
138
|
+
background-color: var(--components-calendar-weeks-background-hover);
|
|
139
|
+
color: var(--components-calendar-weeks-text-hover);
|
|
140
|
+
border-radius: var(--calendar-radius);
|
|
126
141
|
}
|
|
127
142
|
|
|
128
143
|
.week-header,
|
|
129
144
|
.week-number {
|
|
130
145
|
display: grid;
|
|
131
146
|
place-items: center;
|
|
132
|
-
font-size:
|
|
147
|
+
font-size: var(--calendar-cell-font-size);
|
|
133
148
|
}
|
|
134
149
|
|
|
135
150
|
.week-header {
|
|
136
|
-
font-weight:
|
|
137
|
-
color: var(--components-
|
|
151
|
+
font-weight: 700;
|
|
152
|
+
color: var(--components-calendar-weeks-text);
|
|
138
153
|
}
|
|
139
154
|
|
|
140
155
|
.week-number {
|
|
141
|
-
color: var(--components-
|
|
156
|
+
color: var(--components-calendar-cell-text);
|
|
142
157
|
}
|
|
143
158
|
|
|
144
159
|
.days-container {
|
|
145
160
|
display: grid;
|
|
146
161
|
grid-template-rows: auto 1fr;
|
|
162
|
+
row-gap: var(--calendar-grid-gap-y);
|
|
147
163
|
}
|
|
148
164
|
|
|
149
165
|
.days-header {
|
|
150
166
|
display: grid;
|
|
151
|
-
grid-template-columns: repeat(7,
|
|
152
|
-
height:
|
|
167
|
+
grid-template-columns: repeat(7, var(--calendar-cell-size));
|
|
168
|
+
height: var(--calendar-cell-size);
|
|
153
169
|
}
|
|
154
170
|
|
|
155
171
|
.day-header {
|
|
156
172
|
display: grid;
|
|
157
173
|
place-items: center;
|
|
158
|
-
font-size:
|
|
159
|
-
color: var(--components-
|
|
174
|
+
font-size: var(--calendar-cell-font-size);
|
|
175
|
+
color: var(--components-calendar-cell-text);
|
|
160
176
|
}
|
|
161
177
|
|
|
162
178
|
.days-grid {
|
|
163
179
|
display: grid;
|
|
164
|
-
grid-template-columns: repeat(7,
|
|
165
|
-
grid-template-rows: repeat(6,
|
|
180
|
+
grid-template-columns: repeat(7, var(--calendar-cell-size));
|
|
181
|
+
grid-template-rows: repeat(6, var(--calendar-cell-size));
|
|
166
182
|
animation: fadeIn 0.2s ease-in;
|
|
183
|
+
row-gap: var(--calendar-grid-gap-y);
|
|
184
|
+
z-index: 0;
|
|
167
185
|
}
|
|
168
186
|
|
|
169
187
|
.day {
|
|
170
188
|
display: grid;
|
|
171
189
|
place-items: center;
|
|
172
|
-
width:
|
|
173
|
-
height:
|
|
174
|
-
font-size:
|
|
175
|
-
border-radius: var(--
|
|
190
|
+
width: var(--calendar-cell-size);
|
|
191
|
+
height: var(--calendar-cell-size);
|
|
192
|
+
font-size: var(--calendar-cell-font-size);
|
|
193
|
+
border-radius: var(--calendar-cell-radius);
|
|
176
194
|
cursor: pointer;
|
|
177
195
|
border: none;
|
|
178
196
|
background: transparent;
|
|
@@ -181,73 +199,107 @@ nv-calendar {
|
|
|
181
199
|
animation: scaleIn 0.2s ease-out;
|
|
182
200
|
}
|
|
183
201
|
.day:hover:not(.disabled, .empty, .selected) {
|
|
184
|
-
background: var(--components-
|
|
185
|
-
color:
|
|
202
|
+
background: var(--components-calendar-cell-background-hover);
|
|
203
|
+
color: var(--components-calendar-cell-text-hover);
|
|
186
204
|
}
|
|
187
|
-
.day.selected, .day.selected:hover {
|
|
188
|
-
background: var(--components-
|
|
189
|
-
color:
|
|
205
|
+
.day.selected, .day.selected:hover .day.is-today.selected, .day.is-today.selected:hover {
|
|
206
|
+
background: var(--components-calendar-cell-background-selected);
|
|
207
|
+
color: var(--components-calendar-cell-text-selected) !important;
|
|
190
208
|
}
|
|
191
209
|
.day.disabled {
|
|
192
|
-
|
|
210
|
+
opacity: var(--opacity-disabled);
|
|
193
211
|
cursor: not-allowed;
|
|
194
212
|
}
|
|
195
213
|
.day.outside-month {
|
|
196
|
-
color: var(--components-
|
|
197
|
-
opacity:
|
|
214
|
+
color: var(--components-calendar-cell-text);
|
|
215
|
+
opacity: var(--opacity-disabled);
|
|
198
216
|
}
|
|
199
|
-
.day.outside-month.selected
|
|
217
|
+
.day.outside-month.selected {
|
|
200
218
|
opacity: 1 !important;
|
|
201
|
-
color:
|
|
219
|
+
color: var(--components-calendar-cell-text-selected);
|
|
220
|
+
}
|
|
221
|
+
.day.outside-month.in-range {
|
|
222
|
+
opacity: 1 !important;
|
|
223
|
+
background-color: var(--components-calendar-cell-background-in-range);
|
|
224
|
+
color: var(--components-calendar-cell-text-in-range);
|
|
202
225
|
}
|
|
203
226
|
.day.in-range {
|
|
204
|
-
background:
|
|
205
|
-
color:
|
|
227
|
+
background: var(--components-calendar-cell-background-in-range);
|
|
228
|
+
color: var(--components-calendar-cell-text-in-range);
|
|
206
229
|
border-radius: 0;
|
|
207
230
|
position: relative;
|
|
208
231
|
}
|
|
209
|
-
.day.range-start, .day.range-end {
|
|
210
|
-
background: var(--components-
|
|
211
|
-
color:
|
|
232
|
+
.day.range-start, .day.range-start:focus, .day.range-start:hover, .day.range-end, .day.range-end:focus, .day.range-end:hover {
|
|
233
|
+
background-color: var(--components-calendar-cell-background-selected) !important;
|
|
234
|
+
color: var(--components-calendar-cell-text-selected) !important;
|
|
235
|
+
}
|
|
236
|
+
.day.range-start, .day.range-end, .day.range-start.is-today, .day.range-end.is-today {
|
|
237
|
+
background: var(--components-calendar-cell-background-selected);
|
|
238
|
+
color: var(--components-calendar-cell-text-selected);
|
|
212
239
|
position: relative;
|
|
240
|
+
border-radius: var(--radius-rounded-full);
|
|
213
241
|
}
|
|
214
|
-
.day.range-start {
|
|
215
|
-
|
|
242
|
+
.day.range-start:hover, .day.range-end:hover, .day.range-start.is-today:hover, .day.range-end.is-today:hover {
|
|
243
|
+
color: var(--components-calendar-cell-text-today);
|
|
216
244
|
}
|
|
217
|
-
.day.range-end {
|
|
218
|
-
|
|
245
|
+
.day.range-start:before, .day.range-end:before, .day.range-start.is-today:before, .day.range-end.is-today:before {
|
|
246
|
+
content: "";
|
|
247
|
+
position: absolute;
|
|
248
|
+
bottom: 0;
|
|
249
|
+
left: 0;
|
|
250
|
+
right: 0;
|
|
251
|
+
top: 0;
|
|
252
|
+
z-index: -1;
|
|
253
|
+
background-color: var(--components-calendar-cell-background-in-range);
|
|
254
|
+
border-radius: var(--radius-rounded-full);
|
|
255
|
+
width: auto;
|
|
256
|
+
height: auto;
|
|
257
|
+
}
|
|
258
|
+
.day.range-start:has(~ .range-end):before, .day.range-start:has(+ .in-range):before {
|
|
259
|
+
border-top-right-radius: 0;
|
|
260
|
+
border-bottom-right-radius: 0;
|
|
261
|
+
}
|
|
262
|
+
.day.range-end:before {
|
|
263
|
+
border-top-left-radius: 0 !important;
|
|
264
|
+
border-bottom-left-radius: 0 !important;
|
|
219
265
|
}
|
|
220
266
|
.day.outside-month.range-start, .day.outside-month.range-end {
|
|
221
|
-
background: var(--components-
|
|
222
|
-
color:
|
|
267
|
+
background: var(--components-calendar-cell-background-selected) !important;
|
|
268
|
+
color: var(--components-calendar-cell-text-selected);
|
|
223
269
|
opacity: 1 !important;
|
|
224
270
|
}
|
|
225
|
-
.day.outside-month.in-range {
|
|
226
|
-
background: color-mix(in srgb, var(--components-form-shape-background-selected) 50%, transparent);
|
|
227
|
-
color: white;
|
|
228
|
-
}
|
|
229
271
|
.day.is-today {
|
|
230
|
-
font-weight:
|
|
272
|
+
font-weight: 700;
|
|
231
273
|
position: relative;
|
|
274
|
+
color: var(--components-calendar-cell-text-today);
|
|
275
|
+
}
|
|
276
|
+
.day.is-today.range-start, .day.is-today.range-end {
|
|
277
|
+
color: var(--components-calendar-cell-text-selected);
|
|
278
|
+
}
|
|
279
|
+
.day.is-today.range-start:hover, .day.is-today.range-end:hover {
|
|
280
|
+
color: var(--components-calendar-cell-text-today);
|
|
232
281
|
}
|
|
233
282
|
.day.is-today::after {
|
|
234
283
|
content: "";
|
|
235
284
|
position: absolute;
|
|
236
|
-
bottom:
|
|
285
|
+
bottom: var(--spacing-1);
|
|
237
286
|
left: 50%;
|
|
238
287
|
transform: translateX(-50%);
|
|
239
|
-
width:
|
|
240
|
-
height:
|
|
288
|
+
width: var(--calendar-cell-dot-size);
|
|
289
|
+
height: var(--calendar-cell-dot-size);
|
|
241
290
|
background-color: currentColor;
|
|
242
291
|
border-radius: 50%;
|
|
243
292
|
}
|
|
244
293
|
.day.is-today.selected::after {
|
|
245
|
-
|
|
294
|
+
color: var(--components-calendar-cell-text-selected);
|
|
295
|
+
}
|
|
296
|
+
.day.is-today.selected::after::after {
|
|
297
|
+
background-color: var(--components-calendar-cell-dot-selected);
|
|
246
298
|
}
|
|
247
299
|
|
|
248
300
|
.calendar-footer {
|
|
249
301
|
display: flex;
|
|
250
|
-
gap:
|
|
302
|
+
gap: var(--spacing-1);
|
|
251
303
|
justify-content: flex-start;
|
|
252
304
|
width: 100%;
|
|
253
305
|
flex-wrap: wrap;
|
|
@@ -268,16 +320,16 @@ nv-calendar {
|
|
|
268
320
|
.datepicker-controls {
|
|
269
321
|
display: flex;
|
|
270
322
|
flex-direction: column;
|
|
271
|
-
border-top: 1px solid var(--components-
|
|
272
|
-
padding:
|
|
273
|
-
gap:
|
|
274
|
-
|
|
323
|
+
border-top: 1px solid var(--components-calendar-border);
|
|
324
|
+
padding: var(--calendar-controls-padding-top) var(--calendar-padding) var(--calendar-padding);
|
|
325
|
+
gap: var(--calendar-grid-gap-y);
|
|
326
|
+
margin-top: var(--calendar-controls-margin-top);
|
|
275
327
|
}
|
|
276
328
|
|
|
277
329
|
.datepicker-actions {
|
|
278
330
|
display: flex;
|
|
279
331
|
justify-content: flex-end;
|
|
280
|
-
gap:
|
|
332
|
+
gap: var(--spacing-1);
|
|
281
333
|
width: 100%;
|
|
282
334
|
}
|
|
283
335
|
.datepicker-actions slot-fb {
|
|
@@ -292,8 +344,8 @@ nv-calendar {
|
|
|
292
344
|
.shortcuts-placement-right {
|
|
293
345
|
display: flex;
|
|
294
346
|
flex-direction: column;
|
|
295
|
-
gap:
|
|
296
|
-
margin-top:
|
|
347
|
+
gap: var(--spacing-1);
|
|
348
|
+
margin-top: var(--spacing-4);
|
|
297
349
|
}
|
|
298
350
|
|
|
299
351
|
.shortcuts-placement-left {
|
|
@@ -892,8 +892,8 @@ export class NvCalendar {
|
|
|
892
892
|
* @description Renders the header of the calendar
|
|
893
893
|
*/
|
|
894
894
|
renderHeader(offset, index) {
|
|
895
|
-
return (h("div", { class: "header" }, this.numberOfCalendars > 1 && index === 0 && (h("nv-iconbutton", { class: "nav-left", emphasis: "
|
|
896
|
-
Math.floor((this.currentDate.getUTCMonth() + offset) / 12), onChange: this.getHandleYearChange(offset) })), this.numberOfCalendars === 1 && (h("div", { class: "nav-buttons" }, h("nv-iconbutton", { emphasis: "
|
|
895
|
+
return (h("div", { class: "header" }, this.numberOfCalendars > 1 && index === 0 && (h("nv-iconbutton", { class: "nav-left", emphasis: "lower", name: "chevron-left", onClick: this.getChangeMonthHandler(-1, offset) })), h("div", { class: "date-controls" }, h("select", { class: "month-select mr-4", onChange: this.getHandleMonthChange(offset) }, this.months.map(month => (h("option", { key: month.value, value: month.value, selected: month.value === (this.currentDate.getUTCMonth() + offset) % 12 }, month.label)))), h("input", { type: "number", class: "year-input", min: "1950", max: "2100", value: this.currentDate.getUTCFullYear() +
|
|
896
|
+
Math.floor((this.currentDate.getUTCMonth() + offset) / 12), onChange: this.getHandleYearChange(offset) })), this.numberOfCalendars === 1 && (h("div", { class: "nav-buttons" }, h("nv-iconbutton", { emphasis: "lower", name: "chevron-left", onClick: this.getChangeMonthHandler(-1, offset) }), h("nv-iconbutton", { emphasis: "lower", name: "chevron-right", onClick: this.getChangeMonthHandler(1, offset) }))), this.numberOfCalendars > 1 && index === this.numberOfCalendars - 1 && (h("nv-iconbutton", { emphasis: "lower", name: "chevron-right", onClick: this.getChangeMonthHandler(1, offset), class: "nav-right" }))));
|
|
897
897
|
}
|
|
898
898
|
/**
|
|
899
899
|
* Renders the week numbers
|
|
@@ -977,7 +977,7 @@ export class NvCalendar {
|
|
|
977
977
|
* @slot actions - Child content of the component.
|
|
978
978
|
*/
|
|
979
979
|
renderActions() {
|
|
980
|
-
return (h("div", { class: "datepicker-actions" }, h("slot", { name: "actions" }, h("nv-button", { emphasis: "low", size: "
|
|
980
|
+
return (h("div", { class: "datepicker-actions" }, h("slot", { name: "actions" }, h("nv-button", { emphasis: "low", size: "xs", onClick: this.resetSelection }, "Cancel"), h("nv-button", { size: "xs", onClick: this.confirmSelection }, "OK"))));
|
|
981
981
|
}
|
|
982
982
|
/**
|
|
983
983
|
* Renders the datepicker
|
|
@@ -986,7 +986,7 @@ export class NvCalendar {
|
|
|
986
986
|
* @slot default - Child content of the component.
|
|
987
987
|
*/
|
|
988
988
|
render() {
|
|
989
|
-
return (h(Host, { key: '
|
|
989
|
+
return (h(Host, { key: '43c78a6ec3df4b8e8c909a84ba11172081c87757' }, h("div", { key: 'd60d2695e78a5361af1365d10482d74734adc35e', class: "datepicker-root" }, h("div", { key: '6fd36abda10808660474a9473e45344162f5f34a', class: `datepicker-container ${this.numberOfCalendars === 1 ? 'datepicker-container-single' : ''}` }, h("div", { key: '443a6ca08d7ba5d7cc1f3a261f9173e7aa3ab037', class: `datepicker-wrapper ${this.numberOfCalendars === 1 ? 'single' : ''}` }, this.shortcutsPlacement === 'left' && this.renderShortcuts(), Array.from({ length: this.numberOfCalendars }, (_, index) => this.renderCalendar(index, index)), this.shortcutsPlacement === 'right' && this.renderShortcuts()), (this.hasShortcuts || this.hasActions) && (h("div", { key: '3fddbf390693d2f291f1a834447c24e26a2900cc', class: "datepicker-controls" }, this.hasShortcuts && this.renderShortcuts(), this.hasActions && this.renderActions())))), h("slot", { key: 'ec40ab4d4ac408554b700deff08d1b202718963a' })));
|
|
990
990
|
}
|
|
991
991
|
static get is() { return "nv-calendar"; }
|
|
992
992
|
static get originalStyleUrls() {
|