@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
|
@@ -43,85 +43,81 @@ function _getFormattedDefaultTime(defaultValue) {
|
|
|
43
43
|
*/
|
|
44
44
|
class InputDateTime extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCoreElement(LitElement))))) {
|
|
45
45
|
|
|
46
|
-
static
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
margin-top: 0.3rem;
|
|
122
|
-
}
|
|
123
|
-
`];
|
|
124
|
-
}
|
|
46
|
+
static properties = {
|
|
47
|
+
/**
|
|
48
|
+
* Disables the input
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
*/
|
|
51
|
+
disabled: { type: Boolean },
|
|
52
|
+
/**
|
|
53
|
+
* Hides the fieldset label visually. Hidden labels are still read by screen readers so make sure to set an appropriate label.
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
*/
|
|
56
|
+
labelHidden: { attribute: 'label-hidden', reflect: true, type: Boolean },
|
|
57
|
+
/**
|
|
58
|
+
* Indicates that localization will be handled by the consumer. `*value` will not be converted from/to UTC.
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
*/
|
|
61
|
+
localized: { reflect: true, type: Boolean },
|
|
62
|
+
/**
|
|
63
|
+
* Maximum valid date/time that could be selected by a user
|
|
64
|
+
* @type {string}
|
|
65
|
+
*/
|
|
66
|
+
maxValue: { attribute: 'max-value', reflect: true, type: String },
|
|
67
|
+
/**
|
|
68
|
+
* Minimum valid date/time that could be selected by a user
|
|
69
|
+
* @type {string}
|
|
70
|
+
*/
|
|
71
|
+
minValue: { attribute: 'min-value', reflect: true, type: String },
|
|
72
|
+
/**
|
|
73
|
+
* Indicates if the date or time dropdown is open
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
*/
|
|
76
|
+
opened: { type: Boolean },
|
|
77
|
+
/**
|
|
78
|
+
* Indicates that a value is required
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
*/
|
|
81
|
+
required: { type: Boolean, reflect: true },
|
|
82
|
+
/**
|
|
83
|
+
* Default value of time input. Accepts times formatted as "hh:mm:ss", and the keywords "startOfDay" and "endOfDay".
|
|
84
|
+
* @type {string}
|
|
85
|
+
*/
|
|
86
|
+
timeDefaultValue: { attribute: 'time-default-value', reflect: true, type: String },
|
|
87
|
+
/**
|
|
88
|
+
* Time zone identifier for the time input to use.
|
|
89
|
+
* @type {string}
|
|
90
|
+
*/
|
|
91
|
+
timeZoneId: { type: String, attribute: 'time-zone-id' },
|
|
92
|
+
/**
|
|
93
|
+
* Hides the time zone inside the time selection dropdown. Should only be used when the time input value is not related to any one time zone
|
|
94
|
+
* @type {Boolean}
|
|
95
|
+
*/
|
|
96
|
+
timeZoneHidden: { type: Boolean, attribute: 'time-zone-hidden' },
|
|
97
|
+
/**
|
|
98
|
+
* Value of the input
|
|
99
|
+
* @type {string}
|
|
100
|
+
*/
|
|
101
|
+
value: { type: String },
|
|
102
|
+
_maxValueLocalized: { type: String },
|
|
103
|
+
_minValueLocalized: { type: String }
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
static styles = [super.styles, css`
|
|
107
|
+
:host {
|
|
108
|
+
display: inline-block;
|
|
109
|
+
}
|
|
110
|
+
:host([hidden]) {
|
|
111
|
+
display: none;
|
|
112
|
+
}
|
|
113
|
+
.d2l-input-date-time-container {
|
|
114
|
+
margin-top: -0.3rem;
|
|
115
|
+
}
|
|
116
|
+
d2l-input-date,
|
|
117
|
+
d2l-input-time {
|
|
118
|
+
margin-top: 0.3rem;
|
|
119
|
+
}
|
|
120
|
+
`];
|
|
125
121
|
|
|
126
122
|
constructor() {
|
|
127
123
|
super();
|
|
@@ -30,111 +30,107 @@ export function formatISODateInUserCalDescriptor(val) {
|
|
|
30
30
|
*/
|
|
31
31
|
class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCoreElement(LitElement))))) {
|
|
32
32
|
|
|
33
|
-
static
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
padding-top: 0.3rem;
|
|
135
|
-
}
|
|
136
|
-
`];
|
|
137
|
-
}
|
|
33
|
+
static properties = {
|
|
34
|
+
/**
|
|
35
|
+
* Disables the input
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
*/
|
|
38
|
+
disabled: { type: Boolean },
|
|
39
|
+
/**
|
|
40
|
+
* @ignore
|
|
41
|
+
* Optionally add a 'Now' button to be used in date-time pickers only.
|
|
42
|
+
*/
|
|
43
|
+
hasNow: { attribute: 'has-now', type: Boolean },
|
|
44
|
+
/**
|
|
45
|
+
* Hides the label visually. Hidden labels are still read by screen readers so make sure to set an appropriate label.
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
*/
|
|
48
|
+
labelHidden: { type: Boolean, attribute: 'label-hidden' },
|
|
49
|
+
/**
|
|
50
|
+
* Maximum valid date that could be selected by a user
|
|
51
|
+
* @type {string}
|
|
52
|
+
*/
|
|
53
|
+
maxValue: { attribute: 'max-value', reflect: true, type: String },
|
|
54
|
+
/**
|
|
55
|
+
* Minimum valid date that could be selected by a user
|
|
56
|
+
* @type {string}
|
|
57
|
+
*/
|
|
58
|
+
minValue: { attribute: 'min-value', reflect: true, type: String },
|
|
59
|
+
/**
|
|
60
|
+
* @ignore
|
|
61
|
+
* Disables validation of max and min value. The min and max value will still be enforced but the component will not be put into an error state or show an error tooltip.
|
|
62
|
+
*/
|
|
63
|
+
noValidateMinMax: { attribute: 'novalidateminmax', type: Boolean },
|
|
64
|
+
/**
|
|
65
|
+
* Indicates if the calendar dropdown is open
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
*/
|
|
68
|
+
opened: { type: Boolean, reflect: true },
|
|
69
|
+
/**
|
|
70
|
+
* Indicates that a value is required
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
*/
|
|
73
|
+
required: { type: Boolean, reflect: true },
|
|
74
|
+
/**
|
|
75
|
+
* Value of the input
|
|
76
|
+
* @type {string}
|
|
77
|
+
*/
|
|
78
|
+
value: { type: String },
|
|
79
|
+
_hiddenContentWidth: { type: String },
|
|
80
|
+
_dateTimeDescriptor: { type: Object },
|
|
81
|
+
_dropdownFirstOpened: { type: Boolean },
|
|
82
|
+
_formattedValue: { type: String },
|
|
83
|
+
_inputTextFocusShowTooltip: { type: Boolean },
|
|
84
|
+
_showInfoTooltip: { type: Boolean },
|
|
85
|
+
_shownValue: { type: String },
|
|
86
|
+
_showRevertInstructions: { state: true },
|
|
87
|
+
_showRevertTooltip: { state: true }
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
static styles = [super.styles, css`
|
|
91
|
+
:host {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
:host([hidden]) {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
d2l-dropdown {
|
|
99
|
+
width: 100%;
|
|
100
|
+
}
|
|
101
|
+
d2l-icon {
|
|
102
|
+
--d2l-icon-height: 0.8rem;
|
|
103
|
+
--d2l-icon-width: 0.8rem;
|
|
104
|
+
margin-left: 0.6rem;
|
|
105
|
+
margin-right: 0.6rem;
|
|
106
|
+
}
|
|
107
|
+
:host([disabled]) d2l-icon {
|
|
108
|
+
opacity: 0.5;
|
|
109
|
+
}
|
|
110
|
+
.d2l-input-date-hidden-text {
|
|
111
|
+
font-family: inherit;
|
|
112
|
+
font-size: 0.8rem;
|
|
113
|
+
font-weight: 400;
|
|
114
|
+
letter-spacing: 0.02rem;
|
|
115
|
+
line-height: 1.4rem;
|
|
116
|
+
position: absolute;
|
|
117
|
+
visibility: hidden;
|
|
118
|
+
width: auto;
|
|
119
|
+
}
|
|
120
|
+
.d2l-input-date-hidden-text > div {
|
|
121
|
+
padding-left: 2rem; /* simulates space taken up by the icon */
|
|
122
|
+
}
|
|
123
|
+
d2l-calendar {
|
|
124
|
+
padding: 0.25rem 0.6rem;
|
|
125
|
+
}
|
|
126
|
+
.d2l-calendar-slot-buttons {
|
|
127
|
+
border-top: 1px solid var(--d2l-color-gypsum);
|
|
128
|
+
display: flex;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
margin-top: 0.3rem;
|
|
131
|
+
padding-top: 0.3rem;
|
|
132
|
+
}
|
|
133
|
+
`];
|
|
138
134
|
|
|
139
135
|
constructor() {
|
|
140
136
|
super();
|
|
@@ -16,50 +16,44 @@ import { SkeletonMixin } from '../skeleton/skeleton-mixin.js';
|
|
|
16
16
|
*/
|
|
17
17
|
class InputFieldset extends PropertyRequiredMixin(InputInlineHelpMixin(SkeletonMixin(LitElement))) {
|
|
18
18
|
|
|
19
|
-
static
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
}
|
|
19
|
+
static properties = {
|
|
20
|
+
/**
|
|
21
|
+
* REQUIRED: Label for the fieldset
|
|
22
|
+
* @type {string}
|
|
23
|
+
*/
|
|
24
|
+
label: { type: String, required: true },
|
|
25
|
+
/**
|
|
26
|
+
* Hides the label visually
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
*/
|
|
29
|
+
labelHidden: { type: Boolean, attribute: 'label-hidden', reflect: true },
|
|
30
|
+
/**
|
|
31
|
+
* Style of the fieldset label
|
|
32
|
+
* @type {'default'|'heading'}
|
|
33
|
+
*/
|
|
34
|
+
labelStyle: { type: String, attribute: 'label-style', reflect: true },
|
|
35
|
+
/**
|
|
36
|
+
* Indicates that a value is required for inputs in the fieldset
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
*/
|
|
39
|
+
required: { type: Boolean, reflect: true }
|
|
40
|
+
};
|
|
43
41
|
|
|
44
|
-
static
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
`
|
|
61
|
-
];
|
|
62
|
-
}
|
|
42
|
+
static styles = [super.styles, heading4Styles, inputLabelStyles, offscreenStyles, css`
|
|
43
|
+
:host {
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
:host([hidden]) {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
:host([label-style="heading"]:not([label-hidden])) {
|
|
50
|
+
margin-block-start: 0.3rem;
|
|
51
|
+
}
|
|
52
|
+
legend.d2l-heading-4 {
|
|
53
|
+
margin-block: 0 0.6rem;
|
|
54
|
+
padding: 0;
|
|
55
|
+
}
|
|
56
|
+
`];
|
|
63
57
|
|
|
64
58
|
constructor() {
|
|
65
59
|
super();
|
|
@@ -6,18 +6,16 @@ import { css, html, LitElement } from 'lit';
|
|
|
6
6
|
*/
|
|
7
7
|
class InputGroup extends LitElement {
|
|
8
8
|
|
|
9
|
-
static
|
|
10
|
-
|
|
11
|
-
:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`;
|
|
20
|
-
}
|
|
9
|
+
static styles = css`
|
|
10
|
+
:host {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: 0.9rem;
|
|
14
|
+
}
|
|
15
|
+
:host([hidden]) {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
21
19
|
|
|
22
20
|
render() {
|
|
23
21
|
return html`<slot></slot>`;
|
|
@@ -14,14 +14,12 @@ export const inlineHelpStyles = [
|
|
|
14
14
|
|
|
15
15
|
export const InputInlineHelpMixin = superclass => class extends SkeletonMixin(superclass) {
|
|
16
16
|
|
|
17
|
-
static
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
}
|
|
17
|
+
static properties = {
|
|
18
|
+
_hasInlineHelp: { type: Boolean, reflect: true, attribute: '_has-inline-help' }
|
|
19
|
+
};
|
|
22
20
|
|
|
23
21
|
static get styles() {
|
|
24
|
-
const styles = [
|
|
22
|
+
const styles = [inlineHelpStyles, css`
|
|
25
23
|
:host([_has-inline-help]) .d2l-input-inline-help {
|
|
26
24
|
display: block;
|
|
27
25
|
}
|