igniteui-webcomponents 4.0.0-alpha.2 → 4.0.0
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/CHANGELOG.md +33 -2
- package/README.md +17 -15
- package/components/avatar/themes/avatar.base.css.js +20 -12
- package/components/avatar/themes/avatar.base.css.js.map +1 -1
- package/components/badge/themes/light/badge.base.css.js +13 -6
- package/components/badge/themes/light/badge.base.css.js.map +1 -1
- package/components/button/icon-button.js +13 -10
- package/components/button/icon-button.js.map +1 -1
- package/components/button/themes/button/light/button.base.css.js +41 -37
- package/components/button/themes/button/light/button.base.css.js.map +1 -1
- package/components/button/themes/button/light/button.bootstrap.css.js +4 -12
- package/components/button/themes/button/light/button.bootstrap.css.js.map +1 -1
- package/components/button/themes/button/light/button.fluent.css.js +5 -15
- package/components/button/themes/button/light/button.fluent.css.js.map +1 -1
- package/components/button/themes/button/light/button.indigo.css.js +6 -18
- package/components/button/themes/button/light/button.indigo.css.js.map +1 -1
- package/components/button/themes/button/light/button.material.css.js +41 -37
- package/components/button/themes/button/light/button.material.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.base.css.js +22 -25
- package/components/button/themes/icon-button/light/icon-button.base.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.bootstrap.css.js +7 -18
- package/components/button/themes/icon-button/light/icon-button.bootstrap.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.fluent.css.js +7 -17
- package/components/button/themes/icon-button/light/icon-button.fluent.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.indigo.css.js +7 -17
- package/components/button/themes/icon-button/light/icon-button.indigo.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.material.css.js +6 -13
- package/components/button/themes/icon-button/light/icon-button.material.css.js.map +1 -1
- package/components/calendar/days-view/days-view.d.ts +2 -0
- package/components/calendar/days-view/days-view.js +17 -5
- package/components/calendar/days-view/days-view.js.map +1 -1
- package/components/calendar/themes/calendar.base.css.js +66 -89
- package/components/calendar/themes/calendar.base.css.js.map +1 -1
- package/components/calendar/themes/days-view.base.css.js +0 -1
- package/components/calendar/themes/days-view.base.css.js.map +1 -1
- package/components/calendar/themes/fluent/calendar.fluent.css.js +66 -89
- package/components/calendar/themes/fluent/calendar.fluent.css.js.map +1 -1
- package/components/card/themes/light/card.actions.bootstrap.css.js +13 -6
- package/components/card/themes/light/card.actions.bootstrap.css.js.map +1 -1
- package/components/card/themes/light/card.actions.material.css.js +13 -6
- package/components/card/themes/light/card.actions.material.css.js.map +1 -1
- package/components/card/themes/light/card.content.bootstrap.css.js +13 -6
- package/components/card/themes/light/card.content.bootstrap.css.js.map +1 -1
- package/components/card/themes/light/card.content.indigo.css.js +13 -6
- package/components/card/themes/light/card.content.indigo.css.js.map +1 -1
- package/components/card/themes/light/card.content.material.css.js +13 -6
- package/components/card/themes/light/card.content.material.css.js.map +1 -1
- package/components/card/themes/light/card.header.bootstrap.css.js +13 -6
- package/components/card/themes/light/card.header.bootstrap.css.js.map +1 -1
- package/components/card/themes/light/card.header.fluent.css.js +13 -6
- package/components/card/themes/light/card.header.fluent.css.js.map +1 -1
- package/components/card/themes/light/card.header.indigo.css.js +13 -6
- package/components/card/themes/light/card.header.indigo.css.js.map +1 -1
- package/components/card/themes/light/card.header.material.css.js +13 -6
- package/components/card/themes/light/card.header.material.css.js.map +1 -1
- package/components/card/themes/light/card.material.css.js +13 -6
- package/components/card/themes/light/card.material.css.js.map +1 -1
- package/components/card/themes/light/card.media.material.css.js +13 -6
- package/components/card/themes/light/card.media.material.css.js.map +1 -1
- package/components/checkbox/checkbox-base.d.ts +2 -0
- package/components/checkbox/checkbox-base.js +3 -0
- package/components/checkbox/checkbox-base.js.map +1 -1
- package/components/checkbox/themes/light/checkbox.base.css.js +16 -8
- package/components/checkbox/themes/light/checkbox.base.css.js.map +1 -1
- package/components/checkbox/themes/light/checkbox.bootstrap.css.js +4 -3
- package/components/checkbox/themes/light/checkbox.bootstrap.css.js.map +1 -1
- package/components/checkbox/themes/light/switch.base.css.js +13 -6
- package/components/checkbox/themes/light/switch.base.css.js.map +1 -1
- package/components/chip/themes/chip.base.css.js +53 -46
- package/components/chip/themes/chip.base.css.js.map +1 -1
- package/components/chip/themes/chip.bootstrap.css.js +53 -46
- package/components/chip/themes/chip.bootstrap.css.js.map +1 -1
- package/components/chip/themes/chip.fluent.css.js +53 -46
- package/components/chip/themes/chip.fluent.css.js.map +1 -1
- package/components/chip/themes/chip.indigo.css.js +53 -46
- package/components/chip/themes/chip.indigo.css.js.map +1 -1
- package/components/chip/themes/chip.material.css.js +53 -46
- package/components/chip/themes/chip.material.css.js.map +1 -1
- package/components/dialog/dialog.d.ts +69 -0
- package/components/dialog/dialog.js +168 -0
- package/components/dialog/dialog.js.map +1 -0
- package/components/dialog/themes/light/dialog.base.css.d.ts +1 -0
- package/components/dialog/themes/light/dialog.base.css.js +127 -0
- package/components/dialog/themes/light/dialog.base.css.js.map +1 -0
- package/components/dialog/themes/light/dialog.bootstrap.css.d.ts +1 -0
- package/components/dialog/themes/light/dialog.bootstrap.css.js +42 -0
- package/components/dialog/themes/light/dialog.bootstrap.css.js.map +1 -0
- package/components/dialog/themes/light/dialog.fluent.css.d.ts +1 -0
- package/components/dialog/themes/light/dialog.fluent.css.js +24 -0
- package/components/dialog/themes/light/dialog.fluent.css.js.map +1 -0
- package/components/dialog/themes/light/dialog.indigo.css.d.ts +1 -0
- package/components/dialog/themes/light/dialog.indigo.css.js +17 -0
- package/components/dialog/themes/light/dialog.indigo.css.js.map +1 -0
- package/components/dialog/themes/light/dialog.material.css.d.ts +1 -0
- package/components/dialog/themes/light/dialog.material.css.js +18 -0
- package/components/dialog/themes/light/dialog.material.css.js.map +1 -0
- package/components/dropdown/dropdown-header.js +2 -1
- package/components/dropdown/dropdown-header.js.map +1 -1
- package/components/dropdown/dropdown.js +2 -0
- package/components/dropdown/dropdown.js.map +1 -1
- package/components/dropdown/themes/light/dropdown-group.base.css.js +15 -30
- package/components/dropdown/themes/light/dropdown-group.base.css.js.map +1 -1
- package/components/dropdown/themes/light/dropdown-group.fluent.css.js +2 -16
- package/components/dropdown/themes/light/dropdown-group.fluent.css.js.map +1 -1
- package/components/dropdown/themes/light/dropdown-header.base.css.js +15 -6
- package/components/dropdown/themes/light/dropdown-header.base.css.js.map +1 -1
- package/components/dropdown/themes/light/dropdown-header.fluent.css.d.ts +1 -0
- package/components/dropdown/themes/light/dropdown-header.fluent.css.js +6 -0
- package/components/dropdown/themes/light/dropdown-header.fluent.css.js.map +1 -0
- package/components/dropdown/themes/light/dropdown-item.base.css.js +19 -10
- package/components/dropdown/themes/light/dropdown-item.base.css.js.map +1 -1
- package/components/dropdown/themes/light/dropdown-item.fluent.css.js +4 -0
- package/components/dropdown/themes/light/dropdown-item.fluent.css.js.map +1 -1
- package/components/dropdown/themes/light/dropdown.base.css.js +19 -24
- package/components/dropdown/themes/light/dropdown.base.css.js.map +1 -1
- package/components/dropdown/themes/light/dropdown.fluent.css.js +0 -18
- package/components/dropdown/themes/light/dropdown.fluent.css.js.map +1 -1
- package/components/expansion-panel/themes/light/expansion-panel.base.css.js +8 -6
- package/components/expansion-panel/themes/light/expansion-panel.base.css.js.map +1 -1
- package/components/form/form.js +3 -3
- package/components/form/form.js.map +1 -1
- package/components/icon/icon.material.css.js +19 -11
- package/components/icon/icon.material.css.js.map +1 -1
- package/components/input/input.d.ts +2 -0
- package/components/input/input.js +3 -0
- package/components/input/input.js.map +1 -1
- package/components/input/themes/light/input.base.css.js +28 -22
- package/components/input/themes/light/input.base.css.js.map +1 -1
- package/components/input/themes/light/input.bootstrap.css.js +26 -45
- package/components/input/themes/light/input.bootstrap.css.js.map +1 -1
- package/components/input/themes/light/input.fluent.css.js +20 -34
- package/components/input/themes/light/input.fluent.css.js.map +1 -1
- package/components/list/themes/light/list-header.base.css.js +15 -6
- package/components/list/themes/light/list-header.base.css.js.map +1 -1
- package/components/list/themes/light/list-item.base.css.js +19 -10
- package/components/list/themes/light/list-item.base.css.js.map +1 -1
- package/components/list/themes/light/list.base.css.js +19 -15
- package/components/list/themes/light/list.base.css.js.map +1 -1
- package/components/nav-drawer/themes/light/nav-drawer-header-item.base.css.js +13 -6
- package/components/nav-drawer/themes/light/nav-drawer-header-item.base.css.js.map +1 -1
- package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js +13 -6
- package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js.map +1 -1
- package/components/nav-drawer/themes/light/nav-drawer.base.css.js +13 -6
- package/components/nav-drawer/themes/light/nav-drawer.base.css.js.map +1 -1
- package/components/navbar/themes/light/navbar.base.css.js +13 -6
- package/components/navbar/themes/light/navbar.base.css.js.map +1 -1
- package/components/progress/themes/circular/circular.progress.base.css.js +39 -30
- package/components/progress/themes/circular/circular.progress.base.css.js.map +1 -1
- package/components/progress/themes/circular/circular.progress.bootstrap.css.js +2 -2
- package/components/progress/themes/circular/circular.progress.bootstrap.css.js.map +1 -1
- package/components/progress/themes/circular/circular.progress.fluent.css.js +1 -1
- package/components/progress/themes/circular/circular.progress.fluent.css.js.map +1 -1
- package/components/progress/themes/linear/linear.progress.base.css.js +29 -22
- package/components/progress/themes/linear/linear.progress.base.css.js.map +1 -1
- package/components/progress/themes/linear/linear.progress.bootstrap.css.js +29 -22
- package/components/progress/themes/linear/linear.progress.bootstrap.css.js.map +1 -1
- package/components/progress/themes/linear/linear.progress.indigo.css.js +13 -6
- package/components/progress/themes/linear/linear.progress.indigo.css.js.map +1 -1
- package/components/radio/radio.d.ts +3 -1
- package/components/radio/radio.js +4 -1
- package/components/radio/radio.js.map +1 -1
- package/components/radio/themes/light/radio.base.css.js +13 -6
- package/components/radio/themes/light/radio.base.css.js.map +1 -1
- package/components/radio-group/radio-group.base.css.js +13 -6
- package/components/radio-group/radio-group.base.css.js.map +1 -1
- package/components/rating/rating-symbol.base.css.js +14 -6
- package/components/rating/rating-symbol.base.css.js.map +1 -1
- package/components/rating/rating.base.css.js +18 -11
- package/components/rating/rating.base.css.js.map +1 -1
- package/components/ripple/ripple.material.css.js +13 -6
- package/components/ripple/ripple.material.css.js.map +1 -1
- package/components/select/select.d.ts +4 -0
- package/components/select/select.js +20 -8
- package/components/select/select.js.map +1 -1
- package/components/select/themes/light/select.base.css.js +26 -24
- package/components/select/themes/light/select.base.css.js.map +1 -1
- package/components/select/themes/light/select.fluent.css.js +6 -8
- package/components/select/themes/light/select.fluent.css.js.map +1 -1
- package/components/slider/range-slider.d.ts +2 -0
- package/components/slider/range-slider.js +65 -0
- package/components/slider/range-slider.js.map +1 -1
- package/components/slider/slider-base.d.ts +9 -7
- package/components/slider/slider-base.js +16 -2
- package/components/slider/slider-base.js.map +1 -1
- package/components/slider/themes/light/slider.base.css.js +18 -11
- package/components/slider/themes/light/slider.base.css.js.map +1 -1
- package/components/slider/themes/light/slider.bootstrap.css.js +2 -2
- package/components/slider/themes/light/slider.bootstrap.css.js.map +1 -1
- package/components/slider/themes/light/slider.fluent.css.js +29 -11
- package/components/slider/themes/light/slider.fluent.css.js.map +1 -1
- package/components/slider/themes/light/slider.indigo.css.js +4 -4
- package/components/slider/themes/light/slider.indigo.css.js.map +1 -1
- package/components/slider/themes/light/slider.material.css.js +5 -5
- package/components/slider/themes/light/slider.material.css.js.map +1 -1
- package/components/snackbar/themes/light/snackbar.base.css.js +13 -6
- package/components/snackbar/themes/light/snackbar.base.css.js.map +1 -1
- package/components/tabs/tab-panel.js +1 -0
- package/components/tabs/tab-panel.js.map +1 -1
- package/components/tabs/tabs.js +2 -3
- package/components/tabs/tabs.js.map +1 -1
- package/components/tabs/themes/light/tab-panel.base.css.js +13 -7
- package/components/tabs/themes/light/tab-panel.base.css.js.map +1 -1
- package/components/tabs/themes/light/tab.base.css.js +13 -6
- package/components/tabs/themes/light/tab.base.css.js.map +1 -1
- package/components/tabs/themes/light/tabs.base.css.js +13 -6
- package/components/tabs/themes/light/tabs.base.css.js.map +1 -1
- package/components/toggle/toggle.controller.d.ts +1 -1
- package/components/toggle/toggle.controller.js.map +1 -1
- package/components/toggle/toggle.directive.d.ts +2 -2
- package/components/toggle/toggle.directive.js.map +1 -1
- package/components/tree/themes/light/tree-item.base.css.js +17 -28
- package/components/tree/themes/light/tree-item.base.css.js.map +1 -1
- package/components/tree/themes/light/tree.base.css.js +25 -6
- package/components/tree/themes/light/tree.base.css.js.map +1 -1
- package/custom-elements.json +129 -0
- package/index.d.ts +3 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/themes/dark/bootstrap.css +159 -91
- package/themes/dark/fluent.css +162 -94
- package/themes/dark/indigo.css +79 -11
- package/themes/dark/material.css +160 -92
- package/themes/light/bootstrap.css +158 -90
- package/themes/light/fluent.css +158 -90
- package/themes/light/indigo.css +78 -10
- package/themes/light/material.css +159 -91
- package/theming/config.d.ts +1 -1
- package/theming/config.js +1 -2
- package/theming/config.js.map +1 -1
- package/theming/index.d.ts +1 -1
- package/theming/index.js +1 -1
- package/theming/index.js.map +1 -1
- package/theming/theming-controller.d.ts +1 -1
- package/theming/theming-controller.js.map +1 -1
- package/theming/theming-decorator.d.ts +1 -1
- package/theming/theming-decorator.js.map +1 -1
- package/theming/theming-event.d.ts +1 -1
- package/theming/theming-event.js.map +1 -1
- package/vscode-html-custom-data.json +39 -1
package/themes/light/indigo.css
CHANGED
|
@@ -1,17 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="light-material"
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @sass-export-section="light-bootstrap"
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @sass-export-section="light-fluent"
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @sass-export-section="light-indigo"
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @sass-export-section="light"
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @sass-export-section="dark-material"
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @sass-export-section="dark-bootstrap"
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* @sass-export-section="dark-fluent"
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* @sass-export-section="dark-indigo"
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @sass-export-section="dark"
|
|
30
|
+
*/
|
|
31
|
+
/* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */
|
|
32
|
+
/**
|
|
33
|
+
* @sass-export-section="bootstrap"
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* @sass-export-section="material"
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* @sass-export-section="fluent"
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* @sass-export-section="indigo"
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* @sass-export-section="material"
|
|
46
|
+
*/
|
|
47
|
+
.ig-scrollbar {
|
|
48
|
+
--size: var(--ig-scrollbar-size, 1rem);
|
|
49
|
+
--thumb-background: var(--ig-scrollbar-thumb-background, hsla(var(--ig-gray-400), var(--ig-gray-a)));
|
|
50
|
+
--track-background: var(--ig-scrollbar-track-background, hsla(var(--ig-gray-100), var(--ig-gray-a)));
|
|
51
|
+
scrollbar-width: var(--size);
|
|
52
|
+
scrollbar-color: var(--thumb-background) var(--track-background);
|
|
7
53
|
}
|
|
8
54
|
|
|
55
|
+
.ig-scrollbar ::-webkit-scrollbar {
|
|
56
|
+
width: var(--size);
|
|
57
|
+
height: var(--size);
|
|
58
|
+
background: var(--track-background);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ig-scrollbar ::-webkit-scrollbar-thumb {
|
|
62
|
+
background: var(--thumb-background);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (hover: none) {
|
|
66
|
+
.ig-scrollbar ::-webkit-scrollbar {
|
|
67
|
+
width: auto;
|
|
68
|
+
height: auto;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
9
71
|
:root {
|
|
10
|
-
--
|
|
72
|
+
--ig-theme: indigo;
|
|
11
73
|
--ig-radius-factor: 1;
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
74
|
+
--ig-spacing: 1;
|
|
75
|
+
--ig-spacing-inline: 1;
|
|
76
|
+
--ig-spacing-block: 1;
|
|
77
|
+
--ig-size-small: 1;
|
|
78
|
+
--ig-size-medium: 2;
|
|
79
|
+
--ig-size-large: 3;
|
|
80
|
+
--ig-scrollbar-size: 1rem;
|
|
81
|
+
--ig-scrollbar-thumb-background: hsla(var(--ig-gray-400), var(--ig-gray-a));
|
|
82
|
+
--ig-scrollbar-track-background: hsla(var(--ig-gray-200), var(--ig-gray-a));
|
|
15
83
|
}
|
|
16
84
|
:root {
|
|
17
85
|
--ig-primary-50-contrast: black;
|
|
@@ -1,17 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="light-material"
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @sass-export-section="light-bootstrap"
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @sass-export-section="light-fluent"
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @sass-export-section="light-indigo"
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @sass-export-section="light"
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @sass-export-section="dark-material"
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @sass-export-section="dark-bootstrap"
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* @sass-export-section="dark-fluent"
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* @sass-export-section="dark-indigo"
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @sass-export-section="dark"
|
|
30
|
+
*/
|
|
31
|
+
/* stylelint-disable max-line-length */ /* stylelint-disable max-line-length */
|
|
32
|
+
/**
|
|
33
|
+
* @sass-export-section="bootstrap"
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* @sass-export-section="material"
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* @sass-export-section="fluent"
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* @sass-export-section="indigo"
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* @sass-export-section="material"
|
|
46
|
+
*/
|
|
47
|
+
.ig-scrollbar {
|
|
48
|
+
--size: var(--ig-scrollbar-size, 1rem);
|
|
49
|
+
--thumb-background: var(--ig-scrollbar-thumb-background, hsla(var(--ig-gray-400), var(--ig-gray-a)));
|
|
50
|
+
--track-background: var(--ig-scrollbar-track-background, hsla(var(--ig-gray-100), var(--ig-gray-a)));
|
|
51
|
+
scrollbar-width: var(--size);
|
|
52
|
+
scrollbar-color: var(--thumb-background) var(--track-background);
|
|
7
53
|
}
|
|
8
54
|
|
|
55
|
+
.ig-scrollbar ::-webkit-scrollbar {
|
|
56
|
+
width: var(--size);
|
|
57
|
+
height: var(--size);
|
|
58
|
+
background: var(--track-background);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ig-scrollbar ::-webkit-scrollbar-thumb {
|
|
62
|
+
background: var(--thumb-background);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (hover: none) {
|
|
66
|
+
.ig-scrollbar ::-webkit-scrollbar {
|
|
67
|
+
width: auto;
|
|
68
|
+
height: auto;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
9
71
|
:root {
|
|
10
|
-
--
|
|
72
|
+
--ig-theme: material;
|
|
11
73
|
--ig-radius-factor: 1;
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
74
|
+
--ig-spacing: 1;
|
|
75
|
+
--ig-spacing-inline: 1;
|
|
76
|
+
--ig-spacing-block: 1;
|
|
77
|
+
--ig-size-small: 1;
|
|
78
|
+
--ig-size-medium: 2;
|
|
79
|
+
--ig-size-large: 3;
|
|
80
|
+
--ig-scrollbar-size: 1rem;
|
|
81
|
+
--ig-scrollbar-thumb-background: hsla(var(--ig-gray-400), var(--ig-gray-a));
|
|
82
|
+
--ig-scrollbar-track-background: hsla(var(--ig-gray-100), var(--ig-gray-a));
|
|
15
83
|
}
|
|
16
84
|
|
|
17
85
|
:root {
|
|
@@ -211,7 +279,7 @@
|
|
|
211
279
|
--ig-warn-400: var(--ig-warn-h), calc(var(--ig-warn-s) * 0.875), calc(var(--ig-warn-l) * 1.08);
|
|
212
280
|
--ig-warn-h: 37deg;
|
|
213
281
|
--ig-warn-s: 96%;
|
|
214
|
-
--ig-warn-l:
|
|
282
|
+
--ig-warn-l: 54%;
|
|
215
283
|
--ig-warn-a: 1;
|
|
216
284
|
--ig-warn-500-contrast: black;
|
|
217
285
|
--ig-warn-500: var(--ig-warn-h), calc(var(--ig-warn-s) * 1), calc(var(--ig-warn-l) * 1);
|
|
@@ -414,7 +482,7 @@
|
|
|
414
482
|
--ig-overline-margin-bottom: 0;
|
|
415
483
|
}
|
|
416
484
|
|
|
417
|
-
.ig-
|
|
485
|
+
.ig-typography h1 {
|
|
418
486
|
font-family: var(--ig-h1-font-family);
|
|
419
487
|
font-size: var(--ig-h1-font-size);
|
|
420
488
|
font-weight: var(--ig-h1-font-weight);
|
|
@@ -425,7 +493,7 @@
|
|
|
425
493
|
margin-top: var(--ig-h1-margin-top);
|
|
426
494
|
margin-bottom: var(--ig-h1-margin-bottom);
|
|
427
495
|
}
|
|
428
|
-
.ig-
|
|
496
|
+
.ig-typography h2 {
|
|
429
497
|
font-family: var(--ig-h2-font-family);
|
|
430
498
|
font-size: var(--ig-h2-font-size);
|
|
431
499
|
font-weight: var(--ig-h2-font-weight);
|
|
@@ -436,7 +504,7 @@
|
|
|
436
504
|
margin-top: var(--ig-h2-margin-top);
|
|
437
505
|
margin-bottom: var(--ig-h2-margin-bottom);
|
|
438
506
|
}
|
|
439
|
-
.ig-
|
|
507
|
+
.ig-typography h3 {
|
|
440
508
|
font-family: var(--ig-h3-font-family);
|
|
441
509
|
font-size: var(--ig-h3-font-size);
|
|
442
510
|
font-weight: var(--ig-h3-font-weight);
|
|
@@ -447,7 +515,7 @@
|
|
|
447
515
|
margin-top: var(--ig-h3-margin-top);
|
|
448
516
|
margin-bottom: var(--ig-h3-margin-bottom);
|
|
449
517
|
}
|
|
450
|
-
.ig-
|
|
518
|
+
.ig-typography h4 {
|
|
451
519
|
font-family: var(--ig-h4-font-family);
|
|
452
520
|
font-size: var(--ig-h4-font-size);
|
|
453
521
|
font-weight: var(--ig-h4-font-weight);
|
|
@@ -458,7 +526,7 @@
|
|
|
458
526
|
margin-top: var(--ig-h4-margin-top);
|
|
459
527
|
margin-bottom: var(--ig-h4-margin-bottom);
|
|
460
528
|
}
|
|
461
|
-
.ig-
|
|
529
|
+
.ig-typography h5 {
|
|
462
530
|
font-family: var(--ig-h5-font-family);
|
|
463
531
|
font-size: var(--ig-h5-font-size);
|
|
464
532
|
font-weight: var(--ig-h5-font-weight);
|
|
@@ -469,7 +537,7 @@
|
|
|
469
537
|
margin-top: var(--ig-h5-margin-top);
|
|
470
538
|
margin-bottom: var(--ig-h5-margin-bottom);
|
|
471
539
|
}
|
|
472
|
-
.ig-
|
|
540
|
+
.ig-typography h6 {
|
|
473
541
|
font-family: var(--ig-h6-font-family);
|
|
474
542
|
font-size: var(--ig-h6-font-size);
|
|
475
543
|
font-weight: var(--ig-h6-font-weight);
|
|
@@ -480,29 +548,7 @@
|
|
|
480
548
|
margin-top: var(--ig-h6-margin-top);
|
|
481
549
|
margin-bottom: var(--ig-h6-margin-bottom);
|
|
482
550
|
}
|
|
483
|
-
.ig-
|
|
484
|
-
font-family: var(--ig-subtitle-1-font-family);
|
|
485
|
-
font-size: var(--ig-subtitle-1-font-size);
|
|
486
|
-
font-weight: var(--ig-subtitle-1-font-weight);
|
|
487
|
-
font-style: var(--ig-subtitle-1-font-style);
|
|
488
|
-
line-height: var(--ig-subtitle-1-line-height);
|
|
489
|
-
letter-spacing: var(--ig-subtitle-1-letter-spacing);
|
|
490
|
-
text-transform: var(--ig-subtitle-1-text-transform);
|
|
491
|
-
margin-top: var(--ig-subtitle-1-margin-top);
|
|
492
|
-
margin-bottom: var(--ig-subtitle-1-margin-bottom);
|
|
493
|
-
}
|
|
494
|
-
.ig-typography__subtitle-2 {
|
|
495
|
-
font-family: var(--ig-subtitle-2-font-family);
|
|
496
|
-
font-size: var(--ig-subtitle-2-font-size);
|
|
497
|
-
font-weight: var(--ig-subtitle-2-font-weight);
|
|
498
|
-
font-style: var(--ig-subtitle-2-font-style);
|
|
499
|
-
line-height: var(--ig-subtitle-2-line-height);
|
|
500
|
-
letter-spacing: var(--ig-subtitle-2-letter-spacing);
|
|
501
|
-
text-transform: var(--ig-subtitle-2-text-transform);
|
|
502
|
-
margin-top: var(--ig-subtitle-2-margin-top);
|
|
503
|
-
margin-bottom: var(--ig-subtitle-2-margin-bottom);
|
|
504
|
-
}
|
|
505
|
-
.ig-typography__body-1 {
|
|
551
|
+
.ig-typography p {
|
|
506
552
|
font-family: var(--ig-body-1-font-family);
|
|
507
553
|
font-size: var(--ig-body-1-font-size);
|
|
508
554
|
font-weight: var(--ig-body-1-font-weight);
|
|
@@ -513,51 +559,7 @@
|
|
|
513
559
|
margin-top: var(--ig-body-1-margin-top);
|
|
514
560
|
margin-bottom: var(--ig-body-1-margin-bottom);
|
|
515
561
|
}
|
|
516
|
-
.ig-
|
|
517
|
-
font-family: var(--ig-body-2-font-family);
|
|
518
|
-
font-size: var(--ig-body-2-font-size);
|
|
519
|
-
font-weight: var(--ig-body-2-font-weight);
|
|
520
|
-
font-style: var(--ig-body-2-font-style);
|
|
521
|
-
line-height: var(--ig-body-2-line-height);
|
|
522
|
-
letter-spacing: var(--ig-body-2-letter-spacing);
|
|
523
|
-
text-transform: var(--ig-body-2-text-transform);
|
|
524
|
-
margin-top: var(--ig-body-2-margin-top);
|
|
525
|
-
margin-bottom: var(--ig-body-2-margin-bottom);
|
|
526
|
-
}
|
|
527
|
-
.ig-typography__button {
|
|
528
|
-
font-family: var(--ig-button-font-family);
|
|
529
|
-
font-size: var(--ig-button-font-size);
|
|
530
|
-
font-weight: var(--ig-button-font-weight);
|
|
531
|
-
font-style: var(--ig-button-font-style);
|
|
532
|
-
line-height: var(--ig-button-line-height);
|
|
533
|
-
letter-spacing: var(--ig-button-letter-spacing);
|
|
534
|
-
text-transform: var(--ig-button-text-transform);
|
|
535
|
-
margin-top: var(--ig-button-margin-top);
|
|
536
|
-
margin-bottom: var(--ig-button-margin-bottom);
|
|
537
|
-
}
|
|
538
|
-
.ig-typography__caption {
|
|
539
|
-
font-family: var(--ig-caption-font-family);
|
|
540
|
-
font-size: var(--ig-caption-font-size);
|
|
541
|
-
font-weight: var(--ig-caption-font-weight);
|
|
542
|
-
font-style: var(--ig-caption-font-style);
|
|
543
|
-
line-height: var(--ig-caption-line-height);
|
|
544
|
-
letter-spacing: var(--ig-caption-letter-spacing);
|
|
545
|
-
text-transform: var(--ig-caption-text-transform);
|
|
546
|
-
margin-top: var(--ig-caption-margin-top);
|
|
547
|
-
margin-bottom: var(--ig-caption-margin-bottom);
|
|
548
|
-
}
|
|
549
|
-
.ig-typography__overline {
|
|
550
|
-
font-family: var(--ig-overline-font-family);
|
|
551
|
-
font-size: var(--ig-overline-font-size);
|
|
552
|
-
font-weight: var(--ig-overline-font-weight);
|
|
553
|
-
font-style: var(--ig-overline-font-style);
|
|
554
|
-
line-height: var(--ig-overline-line-height);
|
|
555
|
-
letter-spacing: var(--ig-overline-letter-spacing);
|
|
556
|
-
text-transform: var(--ig-overline-text-transform);
|
|
557
|
-
margin-top: var(--ig-overline-margin-top);
|
|
558
|
-
margin-bottom: var(--ig-overline-margin-bottom);
|
|
559
|
-
}
|
|
560
|
-
.ig-typography h1 {
|
|
562
|
+
.ig-typography .ig-typography__h1 {
|
|
561
563
|
font-family: var(--ig-h1-font-family);
|
|
562
564
|
font-size: var(--ig-h1-font-size);
|
|
563
565
|
font-weight: var(--ig-h1-font-weight);
|
|
@@ -568,7 +570,7 @@
|
|
|
568
570
|
margin-top: var(--ig-h1-margin-top);
|
|
569
571
|
margin-bottom: var(--ig-h1-margin-bottom);
|
|
570
572
|
}
|
|
571
|
-
.ig-typography
|
|
573
|
+
.ig-typography .ig-typography__h2 {
|
|
572
574
|
font-family: var(--ig-h2-font-family);
|
|
573
575
|
font-size: var(--ig-h2-font-size);
|
|
574
576
|
font-weight: var(--ig-h2-font-weight);
|
|
@@ -579,7 +581,7 @@
|
|
|
579
581
|
margin-top: var(--ig-h2-margin-top);
|
|
580
582
|
margin-bottom: var(--ig-h2-margin-bottom);
|
|
581
583
|
}
|
|
582
|
-
.ig-typography
|
|
584
|
+
.ig-typography .ig-typography__h3 {
|
|
583
585
|
font-family: var(--ig-h3-font-family);
|
|
584
586
|
font-size: var(--ig-h3-font-size);
|
|
585
587
|
font-weight: var(--ig-h3-font-weight);
|
|
@@ -590,7 +592,7 @@
|
|
|
590
592
|
margin-top: var(--ig-h3-margin-top);
|
|
591
593
|
margin-bottom: var(--ig-h3-margin-bottom);
|
|
592
594
|
}
|
|
593
|
-
.ig-typography
|
|
595
|
+
.ig-typography .ig-typography__h4 {
|
|
594
596
|
font-family: var(--ig-h4-font-family);
|
|
595
597
|
font-size: var(--ig-h4-font-size);
|
|
596
598
|
font-weight: var(--ig-h4-font-weight);
|
|
@@ -601,7 +603,7 @@
|
|
|
601
603
|
margin-top: var(--ig-h4-margin-top);
|
|
602
604
|
margin-bottom: var(--ig-h4-margin-bottom);
|
|
603
605
|
}
|
|
604
|
-
.ig-typography
|
|
606
|
+
.ig-typography .ig-typography__h5 {
|
|
605
607
|
font-family: var(--ig-h5-font-family);
|
|
606
608
|
font-size: var(--ig-h5-font-size);
|
|
607
609
|
font-weight: var(--ig-h5-font-weight);
|
|
@@ -612,7 +614,7 @@
|
|
|
612
614
|
margin-top: var(--ig-h5-margin-top);
|
|
613
615
|
margin-bottom: var(--ig-h5-margin-bottom);
|
|
614
616
|
}
|
|
615
|
-
.ig-typography
|
|
617
|
+
.ig-typography .ig-typography__h6 {
|
|
616
618
|
font-family: var(--ig-h6-font-family);
|
|
617
619
|
font-size: var(--ig-h6-font-size);
|
|
618
620
|
font-weight: var(--ig-h6-font-weight);
|
|
@@ -623,7 +625,29 @@
|
|
|
623
625
|
margin-top: var(--ig-h6-margin-top);
|
|
624
626
|
margin-bottom: var(--ig-h6-margin-bottom);
|
|
625
627
|
}
|
|
626
|
-
.ig-typography
|
|
628
|
+
.ig-typography .ig-typography__subtitle-1 {
|
|
629
|
+
font-family: var(--ig-subtitle-1-font-family);
|
|
630
|
+
font-size: var(--ig-subtitle-1-font-size);
|
|
631
|
+
font-weight: var(--ig-subtitle-1-font-weight);
|
|
632
|
+
font-style: var(--ig-subtitle-1-font-style);
|
|
633
|
+
line-height: var(--ig-subtitle-1-line-height);
|
|
634
|
+
letter-spacing: var(--ig-subtitle-1-letter-spacing);
|
|
635
|
+
text-transform: var(--ig-subtitle-1-text-transform);
|
|
636
|
+
margin-top: var(--ig-subtitle-1-margin-top);
|
|
637
|
+
margin-bottom: var(--ig-subtitle-1-margin-bottom);
|
|
638
|
+
}
|
|
639
|
+
.ig-typography .ig-typography__subtitle-2 {
|
|
640
|
+
font-family: var(--ig-subtitle-2-font-family);
|
|
641
|
+
font-size: var(--ig-subtitle-2-font-size);
|
|
642
|
+
font-weight: var(--ig-subtitle-2-font-weight);
|
|
643
|
+
font-style: var(--ig-subtitle-2-font-style);
|
|
644
|
+
line-height: var(--ig-subtitle-2-line-height);
|
|
645
|
+
letter-spacing: var(--ig-subtitle-2-letter-spacing);
|
|
646
|
+
text-transform: var(--ig-subtitle-2-text-transform);
|
|
647
|
+
margin-top: var(--ig-subtitle-2-margin-top);
|
|
648
|
+
margin-bottom: var(--ig-subtitle-2-margin-bottom);
|
|
649
|
+
}
|
|
650
|
+
.ig-typography .ig-typography__body-1 {
|
|
627
651
|
font-family: var(--ig-body-1-font-family);
|
|
628
652
|
font-size: var(--ig-body-1-font-size);
|
|
629
653
|
font-weight: var(--ig-body-1-font-weight);
|
|
@@ -633,4 +657,48 @@
|
|
|
633
657
|
text-transform: var(--ig-body-1-text-transform);
|
|
634
658
|
margin-top: var(--ig-body-1-margin-top);
|
|
635
659
|
margin-bottom: var(--ig-body-1-margin-bottom);
|
|
660
|
+
}
|
|
661
|
+
.ig-typography .ig-typography__body-2 {
|
|
662
|
+
font-family: var(--ig-body-2-font-family);
|
|
663
|
+
font-size: var(--ig-body-2-font-size);
|
|
664
|
+
font-weight: var(--ig-body-2-font-weight);
|
|
665
|
+
font-style: var(--ig-body-2-font-style);
|
|
666
|
+
line-height: var(--ig-body-2-line-height);
|
|
667
|
+
letter-spacing: var(--ig-body-2-letter-spacing);
|
|
668
|
+
text-transform: var(--ig-body-2-text-transform);
|
|
669
|
+
margin-top: var(--ig-body-2-margin-top);
|
|
670
|
+
margin-bottom: var(--ig-body-2-margin-bottom);
|
|
671
|
+
}
|
|
672
|
+
.ig-typography .ig-typography__button {
|
|
673
|
+
font-family: var(--ig-button-font-family);
|
|
674
|
+
font-size: var(--ig-button-font-size);
|
|
675
|
+
font-weight: var(--ig-button-font-weight);
|
|
676
|
+
font-style: var(--ig-button-font-style);
|
|
677
|
+
line-height: var(--ig-button-line-height);
|
|
678
|
+
letter-spacing: var(--ig-button-letter-spacing);
|
|
679
|
+
text-transform: var(--ig-button-text-transform);
|
|
680
|
+
margin-top: var(--ig-button-margin-top);
|
|
681
|
+
margin-bottom: var(--ig-button-margin-bottom);
|
|
682
|
+
}
|
|
683
|
+
.ig-typography .ig-typography__caption {
|
|
684
|
+
font-family: var(--ig-caption-font-family);
|
|
685
|
+
font-size: var(--ig-caption-font-size);
|
|
686
|
+
font-weight: var(--ig-caption-font-weight);
|
|
687
|
+
font-style: var(--ig-caption-font-style);
|
|
688
|
+
line-height: var(--ig-caption-line-height);
|
|
689
|
+
letter-spacing: var(--ig-caption-letter-spacing);
|
|
690
|
+
text-transform: var(--ig-caption-text-transform);
|
|
691
|
+
margin-top: var(--ig-caption-margin-top);
|
|
692
|
+
margin-bottom: var(--ig-caption-margin-bottom);
|
|
693
|
+
}
|
|
694
|
+
.ig-typography .ig-typography__overline {
|
|
695
|
+
font-family: var(--ig-overline-font-family);
|
|
696
|
+
font-size: var(--ig-overline-font-size);
|
|
697
|
+
font-weight: var(--ig-overline-font-weight);
|
|
698
|
+
font-style: var(--ig-overline-font-style);
|
|
699
|
+
line-height: var(--ig-overline-line-height);
|
|
700
|
+
letter-spacing: var(--ig-overline-letter-spacing);
|
|
701
|
+
text-transform: var(--ig-overline-text-transform);
|
|
702
|
+
margin-top: var(--ig-overline-margin-top);
|
|
703
|
+
margin-bottom: var(--ig-overline-margin-bottom);
|
|
636
704
|
}
|
package/theming/config.d.ts
CHANGED
package/theming/config.js
CHANGED
|
@@ -9,8 +9,7 @@ function isOfTypeTheme(theme) {
|
|
|
9
9
|
}
|
|
10
10
|
export const getTheme = () => {
|
|
11
11
|
if (!theme) {
|
|
12
|
-
const [_, t] = Object.entries(getAllCSSVariables()).find(([v]) => v === '
|
|
13
|
-
[];
|
|
12
|
+
const [_, t] = Object.entries(getAllCSSVariables()).find(([v]) => v === 'igTheme') || [];
|
|
14
13
|
theme = t && isOfTypeTheme(t) ? t : 'bootstrap';
|
|
15
14
|
}
|
|
16
15
|
return theme;
|
package/theming/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/theming/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,IAAI,KAAY,CAAC;AAKjB,SAAS,oBAAoB,CAAC,MAA8B;IAC1D,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,CAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAgB,GAAG,EAAE;IACxC,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACV,MAAM,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/theming/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,IAAI,KAAY,CAAC;AAKjB,SAAS,oBAAoB,CAAC,MAA8B;IAC1D,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,CAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAgB,GAAG,EAAE;IACxC,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACV,MAAM,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,IAAI,EAAE,CAAC;QAE5E,KAAK,GAAG,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAW,CAAC,CAAC,CAAC,WAAW,CAAC;KAC5D;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAY,EAAE,EAAE;IACvC,KAAK,GAAG,KAAK,CAAC;AAChB,CAAC,CAAC;AAYF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAQ,EAAE,EAAE;IACzC,IAAI,aAAa,CAAC,CAAC,CAAC,EAAE;QACpB,QAAQ,CAAC,CAAC,CAAC,CAAC;KACb;IAED,oBAAoB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAClC,CAAC,CAAC","sourcesContent":["import { ChangeThemeEventDetail, CHANGE_THEME_EVENT } from './theming-event.js';\nimport type { Theme } from './types.js';\nimport { getAllCSSVariables } from './utils.js';\n\nlet theme: Theme;\n\n/**\n * Dispatch an \"igc-change-theme\" event to `window` with the given detail.\n */\nfunction dispatchThemingEvent(detail: ChangeThemeEventDetail) {\n window.dispatchEvent(new CustomEvent(CHANGE_THEME_EVENT, { detail }));\n}\n\nfunction isOfTypeTheme(theme: string): theme is Theme {\n return ['bootstrap', 'material', 'indigo', 'fluent'].includes(theme);\n}\n\nexport const getTheme: () => Theme = () => {\n if (!theme) {\n const [_, t] =\n Object.entries(getAllCSSVariables()).find(([v]) => v === 'igTheme') || [];\n\n theme = t && isOfTypeTheme(t) ? (t as Theme) : 'bootstrap';\n }\n\n return theme;\n};\n\nexport const setTheme = (value: Theme) => {\n theme = value;\n};\n\n/**\n * Allows the global configuration of the active theme.\n *\n * Usage:\n * ```ts\n * import { configureTheme } from 'igniteui-webcomponents';\n *\n * configureTheme({ theme: 'material' });\n * ```\n */\nexport const configureTheme = (t: Theme) => {\n if (isOfTypeTheme(t)) {\n setTheme(t);\n }\n\n dispatchThemingEvent({ theme });\n};\n"]}
|
package/theming/index.d.ts
CHANGED
package/theming/index.js
CHANGED
package/theming/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theming/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theming/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC","sourcesContent":["export * from './config.js';\nexport * from './theming-controller.js';\nexport * from './theming-decorator.js';\nexport * from './types.js';\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactiveController, ReactiveControllerHost, ReactiveElement } from 'lit';
|
|
2
|
-
import type { Theme, ThemeController, Themes } from './types';
|
|
2
|
+
import type { Theme, ThemeController, Themes } from './types.js';
|
|
3
3
|
declare class ThemingController implements ReactiveController, ThemeController {
|
|
4
4
|
private themes;
|
|
5
5
|
private host;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theming-controller.js","sourceRoot":"","sources":["../../src/theming/theming-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,GAAG,GAKJ,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGxD,MAAM,iBAAiB;IAKrB,YAAY,IAA8C,EAAE,MAAc;QAKzD,0BAAqB,GAAG,GAAG,EAAE;YAC5C,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QAC5B,CAAC,CAAC;QAPA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAOM,aAAa;QAClB,IAAI,CAAC,WAAW,EAAE,CAAC;QACnB,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC1E,CAAC;IAEM,gBAAgB;QACrB,MAAM,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC7E,CAAC;IAES,WAAW;QACnB,IAAI,CAAC,KAAK,GAAG,QAAQ,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,WAAgC,CAAC;QACxD,MAAM,2BAA2B,GAC/B,MAAM,CAAC,UAAU;YACjB,oBAAoB,IAAI,QAAQ,CAAC,SAAS;YAC1C,SAAS,IAAI,aAAa,CAAC,SAAS,CAAC;QAEvC,IAAI,UAAU,GAAG,GAAG,CAAA,EAAE,CAAC;QAEvB,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAChD,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,CAChC,CAAC;QAEF,IAAI,KAAK,EAAE;YACT,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC;YAC7B,UAAU,GAAG,SAAS,CAAC;SACxB;QAOD,IAAI,CAAC,2BAA2B,EAAE;YAChC,CAAC,GAAG,IAAI,CAAC,IAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;iBACjD,KAAK,CAAC,CAAC,CAAC;iBACR,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;SACnC;QAED,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,UAAwB,EAAE;YAC9C,GAAG,IAAI,CAAC,aAAa;YACrB,UAAU;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,uBAAuB,GAAG,CAC9B,IAA8C,EAC9C,MAAc,EACd,EAAE;IACF,MAAM,UAAU,GAAG,IAAI,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvD,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAC/B,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAE/B,uBAAuB,CAAC","sourcesContent":["import {\n adoptStyles,\n css,\n LitElement,\n ReactiveController,\n ReactiveControllerHost,\n ReactiveElement,\n} from 'lit';\nimport { getTheme } from './config.js';\nimport { CHANGE_THEME_EVENT } from './theming-event.js';\nimport type { Theme, ThemeController, Themes } from './types';\n\nclass ThemingController implements ReactiveController, ThemeController {\n private themes: Themes;\n private host: ReactiveControllerHost & ReactiveElement;\n public theme!: Theme;\n\n constructor(host: ReactiveControllerHost & ReactiveElement, themes: Themes) {\n this.host = host;\n this.themes = themes;\n }\n\n private readonly __themingEventHandler = () => {\n this.adoptStyles();\n this.host.requestUpdate();\n };\n\n public hostConnected() {\n this.adoptStyles();\n window.addEventListener(CHANGE_THEME_EVENT, this.__themingEventHandler);\n }\n\n public hostDisconnected() {\n window.removeEventListener(CHANGE_THEME_EVENT, this.__themingEventHandler);\n }\n\n protected adoptStyles() {\n this.theme = getTheme();\n const ctor = this.host.constructor as typeof LitElement;\n const supportsAdoptingStyleSheets =\n window.ShadowRoot &&\n 'adoptedStyleSheets' in Document.prototype &&\n 'replace' in CSSStyleSheet.prototype;\n\n let styleSheet = css``;\n\n const [theme] = Object.entries(this.themes).filter(\n ([name]) => name === this.theme\n );\n\n if (theme) {\n const [_, cssResult] = theme;\n styleSheet = cssResult;\n }\n\n // Firefox and Safari don't support the adoptedStyleSheets API yet,\n // and the lit framework appends the resolved stylesheets indiscriminately\n // when using the adoptStyles API below. Hence, we need to remove all previously\n // defined style tags in the shadow root as changing the themes at runtime just\n // keeps stacking the resolved styles one over the other, resulting in broken themes.\n if (!supportsAdoptingStyleSheets) {\n [...this.host!.renderRoot.querySelectorAll('style')]\n .slice(1)\n .forEach((tag) => tag.remove());\n }\n\n adoptStyles(this.host.shadowRoot as ShadowRoot, [\n ...ctor.elementStyles,\n styleSheet,\n ]);\n }\n}\n\nconst _updateWhenThemeChanges = (\n host: ReactiveControllerHost & ReactiveElement,\n themes: Themes\n) => {\n const controller = new ThemingController(host, themes);\n host.addController(controller);\n return controller;\n};\n\nexport const updateWhenThemeChanges: typeof _updateWhenThemeChanges & {\n _THEMING_CONTROLLER_FN_?: never;\n} = _updateWhenThemeChanges;\n"]}
|
|
1
|
+
{"version":3,"file":"theming-controller.js","sourceRoot":"","sources":["../../src/theming/theming-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,GAAG,GAKJ,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGxD,MAAM,iBAAiB;IAKrB,YAAY,IAA8C,EAAE,MAAc;QAKzD,0BAAqB,GAAG,GAAG,EAAE;YAC5C,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QAC5B,CAAC,CAAC;QAPA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAOM,aAAa;QAClB,IAAI,CAAC,WAAW,EAAE,CAAC;QACnB,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC1E,CAAC;IAEM,gBAAgB;QACrB,MAAM,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC7E,CAAC;IAES,WAAW;QACnB,IAAI,CAAC,KAAK,GAAG,QAAQ,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,WAAgC,CAAC;QACxD,MAAM,2BAA2B,GAC/B,MAAM,CAAC,UAAU;YACjB,oBAAoB,IAAI,QAAQ,CAAC,SAAS;YAC1C,SAAS,IAAI,aAAa,CAAC,SAAS,CAAC;QAEvC,IAAI,UAAU,GAAG,GAAG,CAAA,EAAE,CAAC;QAEvB,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAChD,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,CAChC,CAAC;QAEF,IAAI,KAAK,EAAE;YACT,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC;YAC7B,UAAU,GAAG,SAAS,CAAC;SACxB;QAOD,IAAI,CAAC,2BAA2B,EAAE;YAChC,CAAC,GAAG,IAAI,CAAC,IAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;iBACjD,KAAK,CAAC,CAAC,CAAC;iBACR,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;SACnC;QAED,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,UAAwB,EAAE;YAC9C,GAAG,IAAI,CAAC,aAAa;YACrB,UAAU;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,uBAAuB,GAAG,CAC9B,IAA8C,EAC9C,MAAc,EACd,EAAE;IACF,MAAM,UAAU,GAAG,IAAI,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvD,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAC/B,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAE/B,uBAAuB,CAAC","sourcesContent":["import {\n adoptStyles,\n css,\n LitElement,\n ReactiveController,\n ReactiveControllerHost,\n ReactiveElement,\n} from 'lit';\nimport { getTheme } from './config.js';\nimport { CHANGE_THEME_EVENT } from './theming-event.js';\nimport type { Theme, ThemeController, Themes } from './types.js';\n\nclass ThemingController implements ReactiveController, ThemeController {\n private themes: Themes;\n private host: ReactiveControllerHost & ReactiveElement;\n public theme!: Theme;\n\n constructor(host: ReactiveControllerHost & ReactiveElement, themes: Themes) {\n this.host = host;\n this.themes = themes;\n }\n\n private readonly __themingEventHandler = () => {\n this.adoptStyles();\n this.host.requestUpdate();\n };\n\n public hostConnected() {\n this.adoptStyles();\n window.addEventListener(CHANGE_THEME_EVENT, this.__themingEventHandler);\n }\n\n public hostDisconnected() {\n window.removeEventListener(CHANGE_THEME_EVENT, this.__themingEventHandler);\n }\n\n protected adoptStyles() {\n this.theme = getTheme();\n const ctor = this.host.constructor as typeof LitElement;\n const supportsAdoptingStyleSheets =\n window.ShadowRoot &&\n 'adoptedStyleSheets' in Document.prototype &&\n 'replace' in CSSStyleSheet.prototype;\n\n let styleSheet = css``;\n\n const [theme] = Object.entries(this.themes).filter(\n ([name]) => name === this.theme\n );\n\n if (theme) {\n const [_, cssResult] = theme;\n styleSheet = cssResult;\n }\n\n // Firefox and Safari don't support the adoptedStyleSheets API yet,\n // and the lit framework appends the resolved stylesheets indiscriminately\n // when using the adoptStyles API below. Hence, we need to remove all previously\n // defined style tags in the shadow root as changing the themes at runtime just\n // keeps stacking the resolved styles one over the other, resulting in broken themes.\n if (!supportsAdoptingStyleSheets) {\n [...this.host!.renderRoot.querySelectorAll('style')]\n .slice(1)\n .forEach((tag) => tag.remove());\n }\n\n adoptStyles(this.host.shadowRoot as ShadowRoot, [\n ...ctor.elementStyles,\n styleSheet,\n ]);\n }\n}\n\nconst _updateWhenThemeChanges = (\n host: ReactiveControllerHost & ReactiveElement,\n themes: Themes\n) => {\n const controller = new ThemingController(host, themes);\n host.addController(controller);\n return controller;\n};\n\nexport const updateWhenThemeChanges: typeof _updateWhenThemeChanges & {\n _THEMING_CONTROLLER_FN_?: never;\n} = _updateWhenThemeChanges;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theming-decorator.js","sourceRoot":"","sources":["../../src/theming/theming-decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAyBjE,MAAM,UAAU,MAAM,CAAC,MAAc;IACnC,OAAO,CAAC,KAAU,EAAE,EAAE;QACpB,KAAK,CAAC,cAAc,CAAC,CAAC,QAAyC,EAAE,EAAE;YACjE,MAAM,UAAU,GAAG,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAE5D,IAAI,cAAc,IAAI,QAAQ,EAAE;gBAC9B,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;aACnC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { ReactiveElement } from 'lit';\nimport { updateWhenThemeChanges } from './theming-controller.js';\nimport { ReactiveTheme, Themes } from './types';\n\n/**\n * Class decorator to enable multiple theme support for a component.\n * The component will re-render on theme changes.\n *\n * See also {@link updateWhenThemeChanges} for the same functionallity\n * without the use of this decorator.\n *\n * Usage:\n * ```ts\n * import { LitElement, html } from 'lit';\n * import { themes } from 'igniteui-webcomponents/themes';\n * import { styles } from './themes/my-element.base.css';\n * import { styles as material } from './themes/my-element.material.css';\n * import { styles as bootstrap } from './themes/my-element.bootstrap.css';\n * import { styles as indigo } from './themes/my-element.indigo.css';\n *\n * @themes({ material, bootstrap, indigo })\n * class MyElement extends LitElement {\n * public static styles = styles;\n * }\n * ```\n */\nexport function themes(themes: Themes) {\n return (clazz: any) => {\n clazz.addInitializer((instance: ReactiveElement & ReactiveTheme) => {\n const controller = updateWhenThemeChanges(instance, themes);\n\n if ('themeAdopted' in instance) {\n instance.themeAdopted(controller);\n }\n });\n return clazz;\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"theming-decorator.js","sourceRoot":"","sources":["../../src/theming/theming-decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAyBjE,MAAM,UAAU,MAAM,CAAC,MAAc;IACnC,OAAO,CAAC,KAAU,EAAE,EAAE;QACpB,KAAK,CAAC,cAAc,CAAC,CAAC,QAAyC,EAAE,EAAE;YACjE,MAAM,UAAU,GAAG,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAE5D,IAAI,cAAc,IAAI,QAAQ,EAAE;gBAC9B,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;aACnC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { ReactiveElement } from 'lit';\nimport { updateWhenThemeChanges } from './theming-controller.js';\nimport { ReactiveTheme, Themes } from './types.js';\n\n/**\n * Class decorator to enable multiple theme support for a component.\n * The component will re-render on theme changes.\n *\n * See also {@link updateWhenThemeChanges} for the same functionallity\n * without the use of this decorator.\n *\n * Usage:\n * ```ts\n * import { LitElement, html } from 'lit';\n * import { themes } from 'igniteui-webcomponents/themes';\n * import { styles } from './themes/my-element.base.css';\n * import { styles as material } from './themes/my-element.material.css';\n * import { styles as bootstrap } from './themes/my-element.bootstrap.css';\n * import { styles as indigo } from './themes/my-element.indigo.css';\n *\n * @themes({ material, bootstrap, indigo })\n * class MyElement extends LitElement {\n * public static styles = styles;\n * }\n * ```\n */\nexport function themes(themes: Themes) {\n return (clazz: any) => {\n clazz.addInitializer((instance: ReactiveElement & ReactiveTheme) => {\n const controller = updateWhenThemeChanges(instance, themes);\n\n if ('themeAdopted' in instance) {\n instance.themeAdopted(controller);\n }\n });\n return clazz;\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theming-event.js","sourceRoot":"","sources":["../../src/theming/theming-event.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC","sourcesContent":["import type { Theme } from './types';\n\nexport const CHANGE_THEME_EVENT = 'igc-change-theme';\n\n// Misfiring eslint rule\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ndeclare global {\n interface WindowEventMap {\n [CHANGE_THEME_EVENT]: CustomEvent<ChangeThemeEventDetail>;\n }\n}\n\n/**\n * The possible details of the \"igc-change-theme\" event.\n */\nexport type ChangeThemeEventDetail = {\n theme: Theme;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"theming-event.js","sourceRoot":"","sources":["../../src/theming/theming-event.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC","sourcesContent":["import type { Theme } from './types.js';\n\nexport const CHANGE_THEME_EVENT = 'igc-change-theme';\n\n// Misfiring eslint rule\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ndeclare global {\n interface WindowEventMap {\n [CHANGE_THEME_EVENT]: CustomEvent<ChangeThemeEventDetail>;\n }\n}\n\n/**\n * The possible details of the \"igc-change-theme\" event.\n */\nexport type ChangeThemeEventDetail = {\n theme: Theme;\n};\n"]}
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
"name": "igc-days-view",
|
|
434
|
-
"description": "Instantiate a days view as a separate component in the calendar.\n\nEvents:\n\n * `igcActiveDateChange` {} - Emitted when the active date changes.\n\n * `igcRangePreviewDateChange` {} - Emitted when the range preview date changes.\n\nAttributes:\n\n * `hide-leading-days` {`boolean`} - Controls the visibility of the leading dates that do not belong to the current month.\n\n * `hide-trailing-days` {`boolean`} - Controls the visibility of the trailing dates that do not belong to the current month.\n\n * `active` {`boolean`} - Gets/sets the active state of the days view.\n\n * `week-day-format` {`\"long\" | \"short\" | \"narrow\" | undefined`} - The format of the days. Defaults to narrow.\n\n * `value` {`Date | undefined`} - Тhe current value of the calendar.\nUsed when selection is set to single.\n\n * `values` {`Date[] | undefined`} - Тhe current values of the calendar.\nUsed when selection is set to multiple or range.\n\n * `selection` {`\"single\" | \"multiple\" | \"range\"`} - Sets the type of date selection.\n\n * `show-week-numbers` {`boolean`} - Show/hide the week numbers.\n\n * `week-start` {`\"sunday\" | \"monday\" | \"tuesday\" | \"wednesday\" | \"thursday\" | \"friday\" | \"saturday\"`} - Sets the start day of the week.\n\n * `active-date` {`Date`} - Sets the date which is shown in view and is highlighted. By default it is the current date.\n\n * `locale` {`string`} - Sets the locale used for formatting and displaying the dates in the calendar.\n\nProperties:\n\n * `tagName` {`\"igc-days-view\"`} - \n\n * `styles` - \n\n * `formatterWeekday` {`DateTimeFormat`} - \n\n * `dates` {`ICalendarDate[][]`} - \n\n * `activeDay` {`HTMLElement`} - \n\n * `hideLeadingDays` {`boolean`} - Controls the visibility of the leading dates that do not belong to the current month.\n\n * `hideTrailingDays` {`boolean`} - Controls the visibility of the trailing dates that do not belong to the current month.\n\n * `active` {`boolean`} - Gets/sets the active state of the days view.\n\n * `rangePreviewDate` {`Date | undefined`} - The range preview date.\n\n * `weekDayFormat` {`\"long\" | \"short\" | \"narrow\" | undefined`} - The format of the days. Defaults to narrow.\n\n * `resourceStrings` {`IgcCalendarResourceStrings`} - The resource strings.\n\n * `isSingleSelection` {`boolean`} - \n\n * `calendarModel` - \n\n * `value` {`Date | undefined`} - Тhe current value of the calendar.\nUsed when selection is set to single.\n\n * `values` {`Date[] | undefined`} - Тhe current values of the calendar.\nUsed when selection is set to multiple or range.\n\n * `selection` {`\"single\" | \"multiple\" | \"range\"`} - Sets the type of date selection.\n\n * `showWeekNumbers` {`boolean`} - Show/hide the week numbers.\n\n * `weekStart` {`\"sunday\" | \"monday\" | \"tuesday\" | \"wednesday\" | \"thursday\" | \"friday\" | \"saturday\"`} - Sets the start day of the week.\n\n * `activeDate` {`Date`} - Sets the date which is shown in view and is highlighted. By default it is the current date.\n\n * `locale` {`string`} - Sets the locale used for formatting and displaying the dates in the calendar.\n\n * `disabledDates` {`DateRangeDescriptor[]`} - Gets/sets disabled dates.\n\n * `specialDates` {`DateRangeDescriptor[]`} - Gets/sets special dates.",
|
|
434
|
+
"description": "Instantiate a days view as a separate component in the calendar.\n\nEvents:\n\n * `igcActiveDateChange` {} - Emitted when the active date changes.\n\n * `igcRangePreviewDateChange` {} - Emitted when the range preview date changes.\n\nAttributes:\n\n * `hide-leading-days` {`boolean`} - Controls the visibility of the leading dates that do not belong to the current month.\n\n * `hide-trailing-days` {`boolean`} - Controls the visibility of the trailing dates that do not belong to the current month.\n\n * `active` {`boolean`} - Gets/sets the active state of the days view.\n\n * `week-day-format` {`\"long\" | \"short\" | \"narrow\" | undefined`} - The format of the days. Defaults to narrow.\n\n * `value` {`Date | undefined`} - Тhe current value of the calendar.\nUsed when selection is set to single.\n\n * `values` {`Date[] | undefined`} - Тhe current values of the calendar.\nUsed when selection is set to multiple or range.\n\n * `selection` {`\"single\" | \"multiple\" | \"range\"`} - Sets the type of date selection.\n\n * `show-week-numbers` {`boolean`} - Show/hide the week numbers.\n\n * `week-start` {`\"sunday\" | \"monday\" | \"tuesday\" | \"wednesday\" | \"thursday\" | \"friday\" | \"saturday\"`} - Sets the start day of the week.\n\n * `active-date` {`Date`} - Sets the date which is shown in view and is highlighted. By default it is the current date.\n\n * `locale` {`string`} - Sets the locale used for formatting and displaying the dates in the calendar.\n\nProperties:\n\n * `tagName` {`\"igc-days-view\"`} - \n\n * `styles` - \n\n * `labelFormatter` {`DateTimeFormat`} - \n\n * `formatterWeekday` {`DateTimeFormat`} - \n\n * `dates` {`ICalendarDate[][]`} - \n\n * `activeDay` {`HTMLElement`} - \n\n * `hideLeadingDays` {`boolean`} - Controls the visibility of the leading dates that do not belong to the current month.\n\n * `hideTrailingDays` {`boolean`} - Controls the visibility of the trailing dates that do not belong to the current month.\n\n * `active` {`boolean`} - Gets/sets the active state of the days view.\n\n * `rangePreviewDate` {`Date | undefined`} - The range preview date.\n\n * `weekDayFormat` {`\"long\" | \"short\" | \"narrow\" | undefined`} - The format of the days. Defaults to narrow.\n\n * `resourceStrings` {`IgcCalendarResourceStrings`} - The resource strings.\n\n * `isSingleSelection` {`boolean`} - \n\n * `calendarModel` - \n\n * `value` {`Date | undefined`} - Тhe current value of the calendar.\nUsed when selection is set to single.\n\n * `values` {`Date[] | undefined`} - Тhe current values of the calendar.\nUsed when selection is set to multiple or range.\n\n * `selection` {`\"single\" | \"multiple\" | \"range\"`} - Sets the type of date selection.\n\n * `showWeekNumbers` {`boolean`} - Show/hide the week numbers.\n\n * `weekStart` {`\"sunday\" | \"monday\" | \"tuesday\" | \"wednesday\" | \"thursday\" | \"friday\" | \"saturday\"`} - Sets the start day of the week.\n\n * `activeDate` {`Date`} - Sets the date which is shown in view and is highlighted. By default it is the current date.\n\n * `locale` {`string`} - Sets the locale used for formatting and displaying the dates in the calendar.\n\n * `disabledDates` {`DateRangeDescriptor[]`} - Gets/sets disabled dates.\n\n * `specialDates` {`DateRangeDescriptor[]`} - Gets/sets special dates.",
|
|
435
435
|
"attributes": [
|
|
436
436
|
{
|
|
437
437
|
"name": "hide-leading-days",
|
|
@@ -925,6 +925,44 @@
|
|
|
925
925
|
}
|
|
926
926
|
]
|
|
927
927
|
},
|
|
928
|
+
{
|
|
929
|
+
"name": "igc-dialog",
|
|
930
|
+
"description": "Represents a Dialog component.\n\nEvents:\n\n * `igcClosing` {} - Emitter just before the dialog is closed.\n\n * `igcClosed` {} - Emitted after closing the dialog.\n\nSlots:\n\n * ` ` {} - Renders content inside the default slot.\n\n * `title` {} - Renders the title of the dialog header.\n\n * `footer` {} - Renders the dialog footer.\n\nAttributes:\n\n * `close-on-escape` {`boolean`} - Whether the dialog should be closed when pressing the 'ESCAPE' button.\n\n * `close-on-outside-click` {`boolean`} - Whether the dialog should be closed when clicking outside of it.\n\n * `hide-default-action` {`boolean`} - Whether to hide the default action button for the dialog.\n\nWhen there is projected content in the `footer` slot this property\nhas no effect.\n\n * `open` {`boolean`} - Whether the dialog is opened.\n\n * `title` {`string`} - Sets the title of the dialog.\n\nProperties:\n\n * `tagName` {`\"igc-dialog\"`} - \n\n * `styles` {`CSSResult[]`} - \n\n * `increment` - \n\n * `titleId` {`string`} - \n\n * `dialog` {`HTMLDialogElement`} - \n\n * `closeOnEscape` {`boolean`} - Whether the dialog should be closed when pressing the 'ESCAPE' button.\n\n * `closeOnOutsideClick` {`boolean`} - Whether the dialog should be closed when clicking outside of it.\n\n * `hideDefaultAction` {`boolean`} - Whether to hide the default action button for the dialog.\n\nWhen there is projected content in the `footer` slot this property\nhas no effect.\n\n * `open` {`boolean`} - Whether the dialog is opened.\n\n * `title` {`string`} - Sets the title of the dialog.\n\n * `returnValue` {`string`} - Sets the return value for the dialog.\n\n * `formSubmitHandler` - ",
|
|
931
|
+
"attributes": [
|
|
932
|
+
{
|
|
933
|
+
"name": "close-on-escape",
|
|
934
|
+
"description": "`close-on-escape` {`boolean`} - Whether the dialog should be closed when pressing the 'ESCAPE' button.\n\nProperty: closeOnEscape\n\nDefault: true",
|
|
935
|
+
"valueSet": "v"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"name": "close-on-outside-click",
|
|
939
|
+
"description": "`close-on-outside-click` {`boolean`} - Whether the dialog should be closed when clicking outside of it.\n\nProperty: closeOnOutsideClick\n\nDefault: false",
|
|
940
|
+
"valueSet": "v"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"name": "hide-default-action",
|
|
944
|
+
"description": "`hide-default-action` {`boolean`} - Whether to hide the default action button for the dialog.\n\nWhen there is projected content in the `footer` slot this property\nhas no effect.\n\nProperty: hideDefaultAction\n\nDefault: false",
|
|
945
|
+
"valueSet": "v"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "open",
|
|
949
|
+
"description": "`open` {`boolean`} - Whether the dialog is opened.\n\nProperty: open\n\nDefault: false",
|
|
950
|
+
"valueSet": "v"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"name": "title",
|
|
954
|
+
"description": "`title` {`string`} - Sets the title of the dialog.\n\nProperty: title"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"name": "onigcClosing",
|
|
958
|
+
"description": "`igcClosing` {} - Emitter just before the dialog is closed."
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "onigcClosed",
|
|
962
|
+
"description": "`igcClosed` {} - Emitted after closing the dialog."
|
|
963
|
+
}
|
|
964
|
+
]
|
|
965
|
+
},
|
|
928
966
|
{
|
|
929
967
|
"name": "igc-dropdown-group",
|
|
930
968
|
"description": "Slots:\n\n * `label` {} - Contains the group's label.\n\n * ` ` {} - Intended to contain the items belonging to this group.\n\nProperties:\n\n * `tagName` {`string`} - \n\n * `styles` - \n\n * `parent` - \n\n * `items` {`IgcDropdownItemComponent[]`} - All child `igc-dropdown-item`s.",
|