@brightspace-ui/core 3.267.1 → 3.268.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/components/alert/alert-toast.js +98 -102
- package/components/alert/alert.js +109 -113
- package/components/backdrop/backdrop-dirty-overlay.js +13 -17
- package/components/backdrop/backdrop-loading.js +105 -109
- package/components/backdrop/backdrop.js +50 -54
- package/components/breadcrumbs/breadcrumb-current-page.js +19 -23
- package/components/breadcrumbs/breadcrumb.js +50 -54
- package/components/breadcrumbs/breadcrumbs.js +34 -38
- package/components/button/button-add.js +156 -164
- package/components/button/button-copy-mixin.js +9 -11
- package/components/button/button-copy.js +15 -19
- package/components/button/button-icon.js +110 -114
- package/components/button/button-move.js +153 -157
- package/components/button/button-split-item.js +16 -20
- package/components/button/button-split.js +70 -74
- package/components/button/button-subtle-copy.js +17 -19
- package/components/button/button-subtle.js +145 -149
- package/components/button/button-toggle.js +25 -29
- package/components/button/button.js +70 -74
- package/components/button/floating-buttons.js +63 -67
- package/components/calendar/calendar.js +244 -248
- package/components/card/card-content-meta.js +13 -15
- package/components/card/card-content-title.js +9 -11
- package/components/card/card-footer-link.js +76 -80
- package/components/card/card-loading-shimmer.js +35 -39
- package/components/card/card.js +188 -192
- package/components/collapsible-panel/collapsible-panel-group.js +17 -21
- package/components/collapsible-panel/collapsible-panel-summary-item.js +27 -31
- package/components/collapsible-panel/collapsible-panel.js +258 -262
- package/components/count-badge/count-badge-icon.js +12 -16
- package/components/count-badge/count-badge-mixin.js +124 -128
- package/components/count-badge/count-badge.js +2 -4
- package/components/description-list/description-list-wrapper.js +27 -31
- package/components/dialog/dialog-confirm.js +55 -59
- package/components/dialog/dialog-fullscreen.js +128 -132
- package/components/dialog/dialog-mixin.js +39 -41
- package/components/dialog/dialog.js +61 -65
- package/components/dropdown/dropdown-button-subtle.js +21 -25
- package/components/dropdown/dropdown-button.js +31 -35
- package/components/dropdown/dropdown-context-menu.js +28 -31
- package/components/dropdown/dropdown-menu.js +27 -31
- package/components/dropdown/dropdown-more.js +23 -26
- package/components/dropdown/dropdown-opener-mixin.js +44 -46
- package/components/dropdown/dropdown-popover-mixin.js +155 -159
- package/components/dropdown/dropdown-tabs.js +5 -7
- package/components/dropdown/dropdown.js +1 -3
- package/components/empty-state/empty-state-action-button.js +18 -22
- package/components/empty-state/empty-state-action-link.js +14 -18
- package/components/empty-state/empty-state-illustrated.js +21 -25
- package/components/empty-state/empty-state-simple.js +8 -12
- package/components/expand-collapse/expand-collapse-content.js +48 -52
- package/components/filter/filter-dimension-set-date-text-value.js +34 -36
- package/components/filter/filter-dimension-set-date-time-range-value.js +45 -47
- package/components/filter/filter-dimension-set-empty-state.js +17 -19
- package/components/filter/filter-dimension-set-value.js +27 -29
- package/components/filter/filter-dimension-set.js +65 -67
- package/components/filter/filter-overflow-group.js +15 -19
- package/components/filter/filter-tags.js +16 -19
- package/components/filter/filter.js +115 -119
- package/components/focus-trap/focus-trap.js +17 -21
- package/components/form/form-element-mixin.js +33 -35
- package/components/form/form-error-summary.js +37 -42
- package/components/form/form.js +33 -37
- package/components/hierarchical-view/hierarchical-view-mixin.js +76 -80
- package/components/hierarchical-view/hierarchical-view.js +5 -7
- package/components/html-block/html-block.js +45 -49
- package/components/icons/icon-custom.js +20 -24
- package/components/icons/icon.js +20 -24
- package/components/icons/slotted-icon-mixin.js +16 -18
- package/components/inputs/input-checkbox-group.js +34 -38
- package/components/inputs/input-checkbox.js +106 -110
- package/components/inputs/input-color.js +142 -148
- package/components/inputs/input-date-range.js +90 -94
- package/components/inputs/input-date-time-range-to.js +70 -74
- package/components/inputs/input-date-time-range.js +110 -115
- package/components/inputs/input-date-time.js +75 -79
- package/components/inputs/input-date.js +101 -105
- package/components/inputs/input-fieldset.js +37 -43
- package/components/inputs/input-group.js +10 -12
- package/components/inputs/input-inline-help.js +4 -6
- package/components/inputs/input-number.js +112 -118
- package/components/inputs/input-percent.js +52 -58
- package/components/inputs/input-radio-group.js +45 -49
- package/components/inputs/input-radio-spacer.js +11 -13
- package/components/inputs/input-radio.js +62 -66
- package/components/inputs/input-search.js +63 -68
- package/components/inputs/input-select-styles.js +30 -25
- package/components/inputs/input-text.js +245 -251
- package/components/inputs/input-textarea.js +128 -132
- package/components/inputs/input-time-range.js +100 -104
- package/components/inputs/input-time.js +107 -113
- package/components/link/link-mixin.js +37 -41
- package/components/link/link.js +113 -119
- package/components/list/list-controls.js +25 -29
- package/components/list/list-item-button-mixin.js +10 -12
- package/components/list/list-item-checkbox-mixin.js +35 -37
- package/components/list/list-item-content.js +33 -35
- package/components/list/list-item-drag-drop-mixin.js +45 -47
- package/components/list/list-item-drag-handle.js +80 -84
- package/components/list/list-item-drag-image.js +77 -81
- package/components/list/list-item-expand-collapse-mixin.js +17 -19
- package/components/list/list-item-generic-layout.js +222 -226
- package/components/list/list-item-link-mixin.js +10 -12
- package/components/list/list-item-mixin.js +68 -70
- package/components/list/list-item-nav-mixin.js +17 -19
- package/components/list/list-item-placement-marker.js +65 -67
- package/components/list/list-item-role-mixin.js +9 -11
- package/components/list/list-item.js +7 -9
- package/components/list/list.js +121 -125
- package/components/loading-spinner/loading-spinner.js +93 -97
- package/custom-elements.json +1920 -6694
- package/helpers/focus.js +5 -1
- package/package.json +3 -2
|
@@ -7,109 +7,105 @@ import { classMap } from 'lit/directives/class-map.js';
|
|
|
7
7
|
*/
|
|
8
8
|
class LoadingSpinner extends LitElement {
|
|
9
9
|
|
|
10
|
-
static
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
static get styles() {
|
|
28
|
-
return css`
|
|
10
|
+
static properties = {
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
* Color of the animated bar
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @default var(--d2l-color-celestine)
|
|
16
|
+
*/
|
|
17
|
+
color: { type: String },
|
|
18
|
+
/**
|
|
19
|
+
* Height and width (px) of the spinner
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @default 50
|
|
22
|
+
*/
|
|
23
|
+
size: { type: Number }
|
|
24
|
+
};
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
static styles = css`
|
|
27
|
+
:host {
|
|
28
|
+
color: var(--d2l-loading-spinner-color, var(--d2l-color-celestine));
|
|
29
|
+
display: inline-block;
|
|
30
|
+
text-align: initial;
|
|
31
|
+
}
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
:host([hidden]) {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
39
36
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
37
|
+
.d2l-loading-spinner-wrapper {
|
|
38
|
+
height: var(--d2l-loading-spinner-size, 48px);
|
|
39
|
+
margin: auto;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
position: relative;
|
|
42
|
+
width: var(--d2l-loading-spinner-size, 48px);
|
|
43
|
+
}
|
|
44
|
+
svg {
|
|
45
|
+
background: radial-gradient(rgba(0, 0, 0, 0.42), transparent 70%); /* 70% ≈ 100%/sqrt(2) = radius of circle since corners lie on 100% of radial gradient */
|
|
46
|
+
height: 100%;
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 0;
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
.outer-circle {
|
|
52
|
+
fill: white;
|
|
53
|
+
stroke: none;
|
|
54
|
+
}
|
|
55
|
+
.inner-circle {
|
|
56
|
+
fill: none;
|
|
57
|
+
stroke: var(--d2l-loading-spinner-color, var(--d2l-color-celestine));
|
|
58
|
+
stroke-width: 3;
|
|
59
|
+
}
|
|
63
60
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
61
|
+
.slice {
|
|
62
|
+
animation-duration: 1.5s;
|
|
63
|
+
animation-iteration-count: infinite;
|
|
64
|
+
animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
|
|
65
|
+
transform-origin: center;
|
|
66
|
+
}
|
|
67
|
+
.slice-1 {
|
|
68
|
+
animation-name: slicespin1;
|
|
69
|
+
transform: rotate(54deg);
|
|
70
|
+
}
|
|
71
|
+
.slice-2 {
|
|
72
|
+
animation-name: slicespin2;
|
|
73
|
+
transform: rotate(124deg);
|
|
74
|
+
}
|
|
75
|
+
.slice-3 {
|
|
76
|
+
animation-name: slicespin3;
|
|
77
|
+
transform: rotate(198deg);
|
|
78
|
+
}
|
|
79
|
+
.slice-4 {
|
|
80
|
+
animation-name: slicespin4;
|
|
81
|
+
transform: rotate(270deg);
|
|
82
|
+
}
|
|
83
|
+
.slice-5 {
|
|
84
|
+
animation-name: slicespin5;
|
|
85
|
+
transform: rotate(344deg);
|
|
86
|
+
}
|
|
90
87
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
88
|
+
@keyframes slicespin1 {
|
|
89
|
+
0% { transform: rotate(54deg); }
|
|
90
|
+
80%, 100% { transform: rotate(430deg); }
|
|
91
|
+
}
|
|
92
|
+
@keyframes slicespin2 {
|
|
93
|
+
0%, 10% { transform: rotate(124deg); }
|
|
94
|
+
80%, 100% { transform: rotate(500deg); }
|
|
95
|
+
}
|
|
96
|
+
@keyframes slicespin3 {
|
|
97
|
+
0%, 20% { transform: rotate(198deg); }
|
|
98
|
+
80%, 100% { transform: rotate(574deg); }
|
|
99
|
+
}
|
|
100
|
+
@keyframes slicespin4 {
|
|
101
|
+
0%, 35% { transform: rotate(270deg); }
|
|
102
|
+
80%, 100% { transform: rotate(644deg); }
|
|
103
|
+
}
|
|
104
|
+
@keyframes slicespin5 {
|
|
105
|
+
80%, 100% { transform: rotate(720deg); }
|
|
106
|
+
}
|
|
110
107
|
|
|
111
|
-
|
|
112
|
-
}
|
|
108
|
+
`;
|
|
113
109
|
|
|
114
110
|
render() {
|
|
115
111
|
return html`
|