@brightspace-ui/core 3.187.0 → 3.188.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/inputs/input-checkbox.js +1 -1
- package/components/inputs/input-radio-styles.js +1 -1
- package/components/list/demo/list-layout.html +40 -0
- package/components/list/list-item-checkbox-mixin.js +2 -0
- package/components/list/list-item-generic-layout.js +13 -6
- package/components/list/list-item-mixin.js +30 -3
- package/components/more-less/demo/more-less-test.js +67 -0
- package/components/more-less/demo/more-less.html +9 -0
- package/components/more-less/more-less.js +28 -9
- package/custom-elements.json +41 -0
- package/package.json +1 -1
|
@@ -80,7 +80,7 @@ export const checkboxStyles = css`
|
|
|
80
80
|
input[type="checkbox"].d2l-input-checkbox:focus,
|
|
81
81
|
input[type="checkbox"].d2l-input-checkbox.d2l-input-checkbox-focus,
|
|
82
82
|
:host(.d2l-hovering) input[type="checkbox"]:not(:disabled).d2l-input-checkbox {
|
|
83
|
-
border-color: var(--d2l-color-celestine);
|
|
83
|
+
border-color: var(--d2l-input-checkbox-border-color-hover-focus, var(--d2l-color-celestine));
|
|
84
84
|
border-width: 2px;
|
|
85
85
|
outline-width: 0;
|
|
86
86
|
}
|
|
@@ -44,7 +44,7 @@ export const radioStyles = css`
|
|
|
44
44
|
.d2l-input-radio:focus,
|
|
45
45
|
.d2l-input-radio-label > input[type="radio"]:hover,
|
|
46
46
|
.d2l-input-radio-label > input[type="radio"]:focus {
|
|
47
|
-
border-color: var(--d2l-color-celestine);
|
|
47
|
+
border-color: var(--d2l-input-radio-border-color-hover-focus, var(--d2l-color-celestine));
|
|
48
48
|
border-width: 2px;
|
|
49
49
|
outline: none;
|
|
50
50
|
}
|
|
@@ -149,6 +149,46 @@
|
|
|
149
149
|
</template>
|
|
150
150
|
</d2l-demo-snippet>
|
|
151
151
|
|
|
152
|
+
<h2>Selectable</h2>
|
|
153
|
+
|
|
154
|
+
<d2l-demo-snippet>
|
|
155
|
+
<template>
|
|
156
|
+
<d2l-button-toggle pressed>
|
|
157
|
+
<d2l-button-subtle slot="not-pressed" icon="tier1:tile-view" text="Tiles"></d2l-button-subtle>
|
|
158
|
+
<d2l-button-subtle slot="pressed" icon="tier1:list-view" text="List"></d2l-button-subtle>
|
|
159
|
+
</d2l-button-toggle>
|
|
160
|
+
<d2l-list layout="tiles">
|
|
161
|
+
<d2l-list-item label="item 1" key="1" selectable>
|
|
162
|
+
<img slot="illustration" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg"></img>
|
|
163
|
+
<d2l-list-item-content>
|
|
164
|
+
<div>Identify categories of physical activities</div>
|
|
165
|
+
<div slot="secondary">Secondary Information</div>
|
|
166
|
+
<div slot="supporting-info">Specific Expectation A1.2</div>
|
|
167
|
+
</d2l-list-item-content>
|
|
168
|
+
</d2l-list-item>
|
|
169
|
+
<d2l-list-item label="item 2" key="2" selectable>
|
|
170
|
+
<img slot="illustration" src="https://s.brightspace.com/course-images/images/e5fd575a-bc14-4a80-89e1-46f349a76178/tile-high-density-max-size.jpg"></img>
|
|
171
|
+
<d2l-list-item-content>
|
|
172
|
+
<div>Apply a decision-making process to assess risks and make safe decisions in a variety of situations</div>
|
|
173
|
+
<div slot="secondary">Secondary Information</div>
|
|
174
|
+
<div slot="supporting-info">Specific Expectation B2.1</div>
|
|
175
|
+
</d2l-list-item-content>
|
|
176
|
+
</d2l-list-item>
|
|
177
|
+
<d2l-list-item label="item 3" key="3" selectable>
|
|
178
|
+
<img slot="illustration" src="https://s.brightspace.com/course-images/images/63b162ab-b582-4bf9-8c1d-1dad04714121/tile-high-density-max-size.jpg"></img>
|
|
179
|
+
<d2l-list-item-content>
|
|
180
|
+
<div>Retain objects of various shapes and sizes in different ways, while moving around others and equipment</div>
|
|
181
|
+
<div slot="secondary">Secondary Information</div>
|
|
182
|
+
<div slot="supporting-info">Specific Expectation B2.2</div>
|
|
183
|
+
</d2l-list-item-content>
|
|
184
|
+
</d2l-list-item>
|
|
185
|
+
</d2l-list>
|
|
186
|
+
<script data-demo-hide>
|
|
187
|
+
(demo => window.wireupListTileToggle(demo))(document.currentScript.parentNode);
|
|
188
|
+
</script>
|
|
189
|
+
</template>
|
|
190
|
+
</d2l-demo-snippet>
|
|
191
|
+
|
|
152
192
|
<h2>Links</h2>
|
|
153
193
|
|
|
154
194
|
<d2l-demo-snippet>
|
|
@@ -175,6 +175,8 @@ export const ListItemCheckboxMixin = superclass => class extends SkeletonMixin(s
|
|
|
175
175
|
?_indeterminate="${this.selectionInfo.state === SelectionInfo.states.some}"
|
|
176
176
|
key="${this.key}"
|
|
177
177
|
label="${this.label}"
|
|
178
|
+
@mouseenter="${this._onMouseEnterSelection}"
|
|
179
|
+
@mouseleave="${this._onMouseLeaveSelection}"
|
|
178
180
|
?selected="${this.selected}"
|
|
179
181
|
?skeleton="${this.skeleton}">
|
|
180
182
|
</d2l-selection-input>
|
|
@@ -219,15 +219,18 @@ class ListItemGenericLayout extends LitElement {
|
|
|
219
219
|
|
|
220
220
|
:host([layout="tile"]) {
|
|
221
221
|
grid-template-columns:
|
|
222
|
-
[start] minmax(0,
|
|
222
|
+
[start control-start] minmax(0, min-content)
|
|
223
|
+
[control-end] minmax(0, auto)
|
|
223
224
|
[end];
|
|
224
225
|
grid-template-rows:
|
|
225
|
-
[start]
|
|
226
|
-
[end]
|
|
226
|
+
[start header-start] minmax(0, min-content)
|
|
227
|
+
[header-end content-start] auto
|
|
228
|
+
[content-end end];
|
|
227
229
|
height: 100%;
|
|
228
230
|
}
|
|
229
231
|
:host([layout="tile"]) ::slotted([slot="content"]),
|
|
230
|
-
:host([layout="tile"]) ::slotted([slot="content-action"])
|
|
232
|
+
:host([layout="tile"]) ::slotted([slot="content-action"]),
|
|
233
|
+
:host([layout="tile"]) ::slotted([slot="control-action"]) {
|
|
231
234
|
grid-column: start / end;
|
|
232
235
|
grid-row: start / end;
|
|
233
236
|
}
|
|
@@ -235,6 +238,12 @@ class ListItemGenericLayout extends LitElement {
|
|
|
235
238
|
grid-column: start / end;
|
|
236
239
|
grid-row: start / end;
|
|
237
240
|
}
|
|
241
|
+
:host([layout="tile"]) ::slotted([slot="control"]) {
|
|
242
|
+
grid-column: control-start / control-end;
|
|
243
|
+
grid-row: start;
|
|
244
|
+
pointer-events: all;
|
|
245
|
+
width: unset;
|
|
246
|
+
}
|
|
238
247
|
|
|
239
248
|
:host([layout="tile"]) slot[name="add-top"],
|
|
240
249
|
:host([layout="tile"]) slot[name="control-container"],
|
|
@@ -243,8 +252,6 @@ class ListItemGenericLayout extends LitElement {
|
|
|
243
252
|
:host([layout="tile"]) slot[name="outside-control-action"],
|
|
244
253
|
:host([layout="tile"]) slot[name="color-indicator"],
|
|
245
254
|
:host([layout="tile"]) slot[name="expand-collapse"],
|
|
246
|
-
:host([layout="tile"]) slot[name="control-action"],
|
|
247
|
-
:host([layout="tile"]) slot[name="control"],
|
|
248
255
|
:host([layout="tile"]) slot[name="actions"],
|
|
249
256
|
:host([layout="tile"]) slot[name="drop-target"],
|
|
250
257
|
:host([layout="tile"]) slot[name="nested"],
|
|
@@ -193,10 +193,10 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
193
193
|
border-top: 0;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
:host(:not([_render-expand-collapse-slot])) .d2l-list-item-content-extend-separators > [slot="control"] {
|
|
196
|
+
:host(:not([layout="tile"]):not([_render-expand-collapse-slot])) .d2l-list-item-content-extend-separators > [slot="control"] {
|
|
197
197
|
width: 3rem;
|
|
198
198
|
}
|
|
199
|
-
:host(:not([_render-expand-collapse-slot])) .d2l-list-item-content-extend-separators > [slot="control"] ~ [slot="control-action"] [slot="content"] {
|
|
199
|
+
:host(:not([layout="tile"]):not([_render-expand-collapse-slot])) .d2l-list-item-content-extend-separators > [slot="control"] ~ [slot="control-action"] [slot="content"] {
|
|
200
200
|
padding-inline-start: 3rem;
|
|
201
201
|
}
|
|
202
202
|
:host(:not([_has-color-slot])) .d2l-list-item-content-extend-separators [slot="content"] {
|
|
@@ -303,7 +303,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
303
303
|
margin-block: 0.55rem;
|
|
304
304
|
margin-inline-end: 0.55rem;
|
|
305
305
|
}
|
|
306
|
-
:host(:not([_render-expand-collapse-slot])) .d2l-list-item-content-extend-separators d2l-selection-input {
|
|
306
|
+
:host(:not([layout="tile"]):not([_render-expand-collapse-slot])) .d2l-list-item-content-extend-separators d2l-selection-input {
|
|
307
307
|
margin-inline-start: 0.9rem;
|
|
308
308
|
}
|
|
309
309
|
:host(:not([_render-expand-collapse-slot])[_has-color-slot]) .d2l-list-item-content-extend-separators d2l-selection-input {
|
|
@@ -511,6 +511,33 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
511
511
|
border-color: transparent;
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
+
|
|
515
|
+
:host([layout="tile"]) d2l-selection-input {
|
|
516
|
+
--d2l-input-checkbox-border-color-hover-focus: var(--d2l-color-celestine-minus-1);
|
|
517
|
+
--d2l-input-radio-border-color-hover-focus: var(--d2l-color-celestine-minus-1);
|
|
518
|
+
border: 2px solid transparent;
|
|
519
|
+
border-radius: 8px;
|
|
520
|
+
margin: 0;
|
|
521
|
+
padding: 3px;
|
|
522
|
+
}
|
|
523
|
+
:host([layout="tile"][_focusing]) d2l-selection-input {
|
|
524
|
+
border: 2px solid white;
|
|
525
|
+
}
|
|
526
|
+
:host([layout="tile"]) [slot="control"] {
|
|
527
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
528
|
+
border-radius: 8px;
|
|
529
|
+
box-sizing: border-box;
|
|
530
|
+
margin: 0.5rem;
|
|
531
|
+
outline: 2px solid transparent;
|
|
532
|
+
}
|
|
533
|
+
:host([layout="tile"][_focusing]) [slot="control"] {
|
|
534
|
+
background-color: var(--d2l-color-celestine);
|
|
535
|
+
outline-color: var(--d2l-color-celestine-minus-1);
|
|
536
|
+
}
|
|
537
|
+
:host([layout="tile"][skeleton]) [slot="control"] {
|
|
538
|
+
background-color: transparent;
|
|
539
|
+
}
|
|
540
|
+
|
|
514
541
|
`];
|
|
515
542
|
|
|
516
543
|
super.styles && styles.unshift(super.styles);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import '../more-less.js';
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
const text = {
|
|
5
|
+
short: 'Short text.',
|
|
6
|
+
long: 'This is a much longer piece of text that will demonstrate the more-less component functionality. It should initially be truncated and then expandable to show the full content when the user clicks "more".'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
class MoreLessTest extends LitElement {
|
|
10
|
+
static get properties() {
|
|
11
|
+
return {
|
|
12
|
+
text: { type: String },
|
|
13
|
+
margin: { type: Boolean, reflect: true },
|
|
14
|
+
extraItems: { type: Number }
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styles() {
|
|
18
|
+
return css`
|
|
19
|
+
button:last-of-type {
|
|
20
|
+
margin-bottom: 2em;
|
|
21
|
+
}
|
|
22
|
+
:host([margin]) .hidden-div {
|
|
23
|
+
margin-bottom: 500px;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
constructor() {
|
|
29
|
+
super();
|
|
30
|
+
this.text = text.short;
|
|
31
|
+
this.margin = false;
|
|
32
|
+
this.extraItems = 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
render() {
|
|
36
|
+
return html`
|
|
37
|
+
<button @click="${this.#toggleText}">Toggle Text Length</button>
|
|
38
|
+
<button @click="${this.#toggleDivMargin}">Toggle Text Margin</button>
|
|
39
|
+
<button @click="${this.#addExtraItem}">Add Extra Item</button>
|
|
40
|
+
<button ?disabled="${this.extraItems === 0}" @click="${this.#removeExtraItem}">Remove Extra Item</button>
|
|
41
|
+
<hr>
|
|
42
|
+
<d2l-more-less>
|
|
43
|
+
${this.text}
|
|
44
|
+
<div class="hidden-div"></div>
|
|
45
|
+
${Array.from({ length: this.extraItems }, (_, i) => html`<div>Extra item ${i + 1}</div>`)}
|
|
46
|
+
</d2l-more-less>
|
|
47
|
+
`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
#addExtraItem() {
|
|
51
|
+
this.extraItems += 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
#removeExtraItem() {
|
|
55
|
+
if (this.extraItems > 0) this.extraItems -= 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#toggleDivMargin() {
|
|
59
|
+
this.margin = !this.margin;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#toggleText() {
|
|
63
|
+
this.text = this.text === text.short ? text.long : text.short;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
customElements.define('d2l-more-less-test', MoreLessTest);
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
<script type="module">
|
|
8
8
|
import '../../demo/demo-page.js';
|
|
9
9
|
import '../more-less.js';
|
|
10
|
+
import './more-less-test.js';
|
|
10
11
|
</script>
|
|
11
12
|
</head>
|
|
12
13
|
<body unresolved>
|
|
@@ -45,6 +46,14 @@
|
|
|
45
46
|
</template>
|
|
46
47
|
</d2l-demo-snippet>
|
|
47
48
|
|
|
49
|
+
<h2>More-less test</h2>
|
|
50
|
+
|
|
51
|
+
<d2l-demo-snippet>
|
|
52
|
+
<template>
|
|
53
|
+
<d2l-more-less-test></d2l-more-less-test>
|
|
54
|
+
</template>
|
|
55
|
+
</d2l-demo-snippet>
|
|
56
|
+
|
|
48
57
|
</d2l-demo-page>
|
|
49
58
|
|
|
50
59
|
<script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../button/button-subtle.js';
|
|
2
|
-
import { css, html, LitElement } from 'lit';
|
|
2
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
3
3
|
import { getComposedChildren, isComposedAncestor } from '../../helpers/dom.js';
|
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
5
5
|
import { getComposedActiveElement } from '../../helpers/focus.js';
|
|
@@ -77,6 +77,12 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
77
77
|
:host([inactive]) .d2l-more-less-toggle {
|
|
78
78
|
display: none;
|
|
79
79
|
}
|
|
80
|
+
|
|
81
|
+
.force-margin-scroll {
|
|
82
|
+
height: 1px;
|
|
83
|
+
margin-top: -1px;
|
|
84
|
+
}
|
|
85
|
+
|
|
80
86
|
@media (prefers-reduced-motion: reduce) {
|
|
81
87
|
.d2l-more-less-transition {
|
|
82
88
|
transition: none;
|
|
@@ -97,13 +103,14 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
97
103
|
|
|
98
104
|
this.__baseHeight = 0;
|
|
99
105
|
this.__contentId = getUniqueId();
|
|
100
|
-
this.__content = null;
|
|
101
106
|
this.__contentSlot = null;
|
|
107
|
+
this.__content = null;
|
|
102
108
|
this.__autoExpanded = false;
|
|
103
109
|
this.__shift = false;
|
|
104
110
|
this.__bound_transitionEvents = null;
|
|
105
111
|
|
|
106
|
-
this.
|
|
112
|
+
this._observeContentOnly = getFlag('GAUD-8725-more-less-refactor-resizing', true);
|
|
113
|
+
if (!this._observeContentOnly) this._mutationObserver = new MutationObserver(this.__reactToMutationChanges.bind(this));
|
|
107
114
|
this._resizeObserver = new ResizeObserver(this.__reactToChanges.bind(this));
|
|
108
115
|
}
|
|
109
116
|
|
|
@@ -111,7 +118,7 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
111
118
|
super.disconnectedCallback();
|
|
112
119
|
|
|
113
120
|
this._resizeObserver.disconnect();
|
|
114
|
-
this._mutationObserver.disconnect();
|
|
121
|
+
if (!this._observeContentOnly) this._mutationObserver.disconnect();
|
|
115
122
|
|
|
116
123
|
this.shadowRoot.removeEventListener('transitionstart', this.__bound_transitionEvents);
|
|
117
124
|
this.shadowRoot.removeEventListener('transitionend', this.__bound_transitionEvents);
|
|
@@ -123,8 +130,13 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
123
130
|
super.firstUpdated();
|
|
124
131
|
|
|
125
132
|
this.__content = this.shadowRoot.querySelector('.d2l-more-less-content');
|
|
126
|
-
|
|
127
|
-
|
|
133
|
+
if (this._observeContentOnly) {
|
|
134
|
+
this.__reactToChanges();
|
|
135
|
+
this._resizeObserver.observe(this.__content);
|
|
136
|
+
} else {
|
|
137
|
+
this.__contentSlot = this.shadowRoot.querySelector('.d2l-more-less-content slot');
|
|
138
|
+
this.__startObserving();
|
|
139
|
+
}
|
|
128
140
|
|
|
129
141
|
this.__bound_transitionEvents = this.__transitionEvents.bind(this);
|
|
130
142
|
this.shadowRoot.addEventListener('transitionstart', this.__bound_transitionEvents);
|
|
@@ -138,6 +150,9 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
138
150
|
'd2l-more-less-content': true,
|
|
139
151
|
'd2l-more-less-transition': this.__transitionAdded
|
|
140
152
|
};
|
|
153
|
+
|
|
154
|
+
// The .force-margin-scroll div is used to force content bottom margin to be included in scrollHeight calculations.
|
|
155
|
+
// The load and slotchange events can be removed when GAUD-8725-more-less-refactor-resizing is removed
|
|
141
156
|
return html`
|
|
142
157
|
<div
|
|
143
158
|
id="${this.__contentId}"
|
|
@@ -145,9 +160,9 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
145
160
|
style=${styleMap({ maxHeight: `${this.__maxHeight}` })}
|
|
146
161
|
@focusin="${this.__focusIn}"
|
|
147
162
|
@focusout="${this.__focusOut}"
|
|
148
|
-
@load=${this.__reactToChanges}
|
|
149
|
-
@slotchange=${this.#handleSlotChange}>
|
|
150
|
-
|
|
163
|
+
@load=${this._observeContentOnly ? undefined : this.__reactToChanges}>
|
|
164
|
+
<slot @slotchange=${this._observeContentOnly ? undefined : this.#handleSlotChange}></slot>
|
|
165
|
+
${this._observeContentOnly ? html`<div class="force-margin-scroll"></div>` : nothing}
|
|
151
166
|
</div>
|
|
152
167
|
<d2l-button-subtle
|
|
153
168
|
class="d2l-more-less-toggle"
|
|
@@ -289,6 +304,7 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
289
304
|
});
|
|
290
305
|
}
|
|
291
306
|
|
|
307
|
+
// Remove when GAUD-8725-more-less-refactor-resizing is removed
|
|
292
308
|
__isOwnMutation(mutation) {
|
|
293
309
|
return mutation.target === this.__content
|
|
294
310
|
&& (mutation.type === 'style' || mutation.type === 'attributes');
|
|
@@ -299,6 +315,7 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
299
315
|
this.__adjustToContent();
|
|
300
316
|
}
|
|
301
317
|
|
|
318
|
+
// Remove when GAUD-8725-more-less-refactor-resizing is removed
|
|
302
319
|
__reactToMutationChanges(mutations) {
|
|
303
320
|
if (mutations
|
|
304
321
|
&& Array.isArray(mutations)
|
|
@@ -317,6 +334,7 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
317
334
|
this.__content.scrollTo({ top: 0, behavior: 'instant' });
|
|
318
335
|
}
|
|
319
336
|
|
|
337
|
+
// Remove when GAUD-8725-more-less-refactor-resizing is removed
|
|
320
338
|
__startObserving() {
|
|
321
339
|
this._resizeObserver.disconnect();
|
|
322
340
|
this._mutationObserver.disconnect();
|
|
@@ -356,6 +374,7 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
356
374
|
this.dispatchEvent(new CustomEvent(e.type, { bubbles: true, composed: true, detail: e.detail }));
|
|
357
375
|
}
|
|
358
376
|
|
|
377
|
+
// Remove when GAUD-8725-more-less-refactor-resizing is removed
|
|
359
378
|
#handleSlotChange() {
|
|
360
379
|
this.__reactToChanges();
|
|
361
380
|
this.__startObserving();
|
package/custom-elements.json
CHANGED
|
@@ -11352,6 +11352,47 @@
|
|
|
11352
11352
|
}
|
|
11353
11353
|
]
|
|
11354
11354
|
},
|
|
11355
|
+
{
|
|
11356
|
+
"name": "d2l-more-less-test",
|
|
11357
|
+
"path": "./components/more-less/demo/more-less-test.js",
|
|
11358
|
+
"attributes": [
|
|
11359
|
+
{
|
|
11360
|
+
"name": "text",
|
|
11361
|
+
"type": "string",
|
|
11362
|
+
"default": "\"short\""
|
|
11363
|
+
},
|
|
11364
|
+
{
|
|
11365
|
+
"name": "margin",
|
|
11366
|
+
"type": "boolean",
|
|
11367
|
+
"default": "false"
|
|
11368
|
+
},
|
|
11369
|
+
{
|
|
11370
|
+
"name": "extraItems",
|
|
11371
|
+
"type": "number",
|
|
11372
|
+
"default": "0"
|
|
11373
|
+
}
|
|
11374
|
+
],
|
|
11375
|
+
"properties": [
|
|
11376
|
+
{
|
|
11377
|
+
"name": "text",
|
|
11378
|
+
"attribute": "text",
|
|
11379
|
+
"type": "string",
|
|
11380
|
+
"default": "\"short\""
|
|
11381
|
+
},
|
|
11382
|
+
{
|
|
11383
|
+
"name": "margin",
|
|
11384
|
+
"attribute": "margin",
|
|
11385
|
+
"type": "boolean",
|
|
11386
|
+
"default": "false"
|
|
11387
|
+
},
|
|
11388
|
+
{
|
|
11389
|
+
"name": "extraItems",
|
|
11390
|
+
"attribute": "extraItems",
|
|
11391
|
+
"type": "number",
|
|
11392
|
+
"default": "0"
|
|
11393
|
+
}
|
|
11394
|
+
]
|
|
11395
|
+
},
|
|
11355
11396
|
{
|
|
11356
11397
|
"name": "d2l-more-less",
|
|
11357
11398
|
"path": "./components/more-less/more-less.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.188.0",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|