@brightspace-ui/core 3.328.0 → 3.329.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.
|
@@ -10,11 +10,11 @@ import { ToolbarItemMixin } from './toolbar-item-mixin.js';
|
|
|
10
10
|
/**
|
|
11
11
|
* A toolbar toggle button that performs an action and supports pressed and expanded states
|
|
12
12
|
*/
|
|
13
|
-
class
|
|
13
|
+
class ToolbarToggle extends SlottedIconMixin(FocusMixin(ToolbarItemMixin(ThemeMixin(PropertyRequiredMixin(LitElement))))) {
|
|
14
14
|
|
|
15
15
|
static properties = {
|
|
16
16
|
/**
|
|
17
|
-
* Disables the toolbar button
|
|
17
|
+
* Disables the toolbar toggle button
|
|
18
18
|
* @type {boolean}
|
|
19
19
|
*/
|
|
20
20
|
disabled: { type: Boolean },
|
|
@@ -34,7 +34,7 @@ class ToolbarButtonToggle extends SlottedIconMixin(FocusMixin(ToolbarItemMixin(T
|
|
|
34
34
|
*/
|
|
35
35
|
pressed: { type: Boolean },
|
|
36
36
|
/**
|
|
37
|
-
* ACCESSIBILITY: REQUIRED: Accessible text for the button
|
|
37
|
+
* ACCESSIBILITY: REQUIRED: Accessible text for the toggle button
|
|
38
38
|
* @type {string}
|
|
39
39
|
*/
|
|
40
40
|
text: { type: String, required: true }
|
|
@@ -103,9 +103,9 @@ class ToolbarButtonToggle extends SlottedIconMixin(FocusMixin(ToolbarItemMixin(T
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/** Dispatched when the pressed state changes. */
|
|
106
|
-
this.dispatchEvent(new CustomEvent('d2l-toolbar-
|
|
106
|
+
this.dispatchEvent(new CustomEvent('d2l-toolbar-toggle-change'));
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
customElements.define('d2l-toolbar-
|
|
111
|
+
customElements.define('d2l-toolbar-toggle', ToolbarToggle);
|
package/custom-elements.json
CHANGED
|
@@ -17429,106 +17429,6 @@
|
|
|
17429
17429
|
}
|
|
17430
17430
|
]
|
|
17431
17431
|
},
|
|
17432
|
-
{
|
|
17433
|
-
"name": "d2l-toolbar-button-toggle",
|
|
17434
|
-
"path": "./components/toolbar/toolbar-button-toggle.js",
|
|
17435
|
-
"description": "A toolbar toggle button that performs an action and supports pressed and expanded states",
|
|
17436
|
-
"attributes": [
|
|
17437
|
-
{
|
|
17438
|
-
"name": "disabled",
|
|
17439
|
-
"description": "Disables the toolbar button",
|
|
17440
|
-
"type": "boolean",
|
|
17441
|
-
"default": "false"
|
|
17442
|
-
},
|
|
17443
|
-
{
|
|
17444
|
-
"name": "expandable",
|
|
17445
|
-
"description": "Expandable state",
|
|
17446
|
-
"type": "boolean",
|
|
17447
|
-
"default": "false"
|
|
17448
|
-
},
|
|
17449
|
-
{
|
|
17450
|
-
"name": "expanded",
|
|
17451
|
-
"description": "Expanded state",
|
|
17452
|
-
"type": "boolean",
|
|
17453
|
-
"default": "false"
|
|
17454
|
-
},
|
|
17455
|
-
{
|
|
17456
|
-
"name": "pressed",
|
|
17457
|
-
"description": "Pressed state",
|
|
17458
|
-
"type": "boolean",
|
|
17459
|
-
"default": "false"
|
|
17460
|
-
},
|
|
17461
|
-
{
|
|
17462
|
-
"name": "text",
|
|
17463
|
-
"description": "ACCESSIBILITY: REQUIRED: Accessible text for the button",
|
|
17464
|
-
"type": "string",
|
|
17465
|
-
"default": "\"\""
|
|
17466
|
-
},
|
|
17467
|
-
{
|
|
17468
|
-
"name": "icon",
|
|
17469
|
-
"description": "Preset icon key (e.g. \"tier1:gear\")",
|
|
17470
|
-
"type": "string"
|
|
17471
|
-
}
|
|
17472
|
-
],
|
|
17473
|
-
"properties": [
|
|
17474
|
-
{
|
|
17475
|
-
"name": "styles",
|
|
17476
|
-
"type": "array",
|
|
17477
|
-
"default": "[[null],\"toolbarButtonStyles\",null]"
|
|
17478
|
-
},
|
|
17479
|
-
{
|
|
17480
|
-
"name": "disabled",
|
|
17481
|
-
"attribute": "disabled",
|
|
17482
|
-
"description": "Disables the toolbar button",
|
|
17483
|
-
"type": "boolean",
|
|
17484
|
-
"default": "false"
|
|
17485
|
-
},
|
|
17486
|
-
{
|
|
17487
|
-
"name": "expandable",
|
|
17488
|
-
"attribute": "expandable",
|
|
17489
|
-
"description": "Expandable state",
|
|
17490
|
-
"type": "boolean",
|
|
17491
|
-
"default": "false"
|
|
17492
|
-
},
|
|
17493
|
-
{
|
|
17494
|
-
"name": "expanded",
|
|
17495
|
-
"attribute": "expanded",
|
|
17496
|
-
"description": "Expanded state",
|
|
17497
|
-
"type": "boolean",
|
|
17498
|
-
"default": "false"
|
|
17499
|
-
},
|
|
17500
|
-
{
|
|
17501
|
-
"name": "pressed",
|
|
17502
|
-
"attribute": "pressed",
|
|
17503
|
-
"description": "Pressed state",
|
|
17504
|
-
"type": "boolean",
|
|
17505
|
-
"default": "false"
|
|
17506
|
-
},
|
|
17507
|
-
{
|
|
17508
|
-
"name": "text",
|
|
17509
|
-
"attribute": "text",
|
|
17510
|
-
"description": "ACCESSIBILITY: REQUIRED: Accessible text for the button",
|
|
17511
|
-
"type": "string",
|
|
17512
|
-
"default": "\"\""
|
|
17513
|
-
},
|
|
17514
|
-
{
|
|
17515
|
-
"name": "icon",
|
|
17516
|
-
"attribute": "icon",
|
|
17517
|
-
"description": "Preset icon key (e.g. \"tier1:gear\")",
|
|
17518
|
-
"type": "string"
|
|
17519
|
-
},
|
|
17520
|
-
{
|
|
17521
|
-
"name": "isToolbarItem",
|
|
17522
|
-
"type": "boolean"
|
|
17523
|
-
}
|
|
17524
|
-
],
|
|
17525
|
-
"events": [
|
|
17526
|
-
{
|
|
17527
|
-
"name": "d2l-toolbar-button-toggle-change",
|
|
17528
|
-
"description": "Dispatched when the pressed state changes."
|
|
17529
|
-
}
|
|
17530
|
-
]
|
|
17531
|
-
},
|
|
17532
17432
|
{
|
|
17533
17433
|
"name": "d2l-toolbar-button",
|
|
17534
17434
|
"path": "./components/toolbar/toolbar-button.js",
|
|
@@ -17712,6 +17612,106 @@
|
|
|
17712
17612
|
}
|
|
17713
17613
|
]
|
|
17714
17614
|
},
|
|
17615
|
+
{
|
|
17616
|
+
"name": "d2l-toolbar-toggle",
|
|
17617
|
+
"path": "./components/toolbar/toolbar-toggle.js",
|
|
17618
|
+
"description": "A toolbar toggle button that performs an action and supports pressed and expanded states",
|
|
17619
|
+
"attributes": [
|
|
17620
|
+
{
|
|
17621
|
+
"name": "disabled",
|
|
17622
|
+
"description": "Disables the toolbar toggle button",
|
|
17623
|
+
"type": "boolean",
|
|
17624
|
+
"default": "false"
|
|
17625
|
+
},
|
|
17626
|
+
{
|
|
17627
|
+
"name": "expandable",
|
|
17628
|
+
"description": "Expandable state",
|
|
17629
|
+
"type": "boolean",
|
|
17630
|
+
"default": "false"
|
|
17631
|
+
},
|
|
17632
|
+
{
|
|
17633
|
+
"name": "expanded",
|
|
17634
|
+
"description": "Expanded state",
|
|
17635
|
+
"type": "boolean",
|
|
17636
|
+
"default": "false"
|
|
17637
|
+
},
|
|
17638
|
+
{
|
|
17639
|
+
"name": "pressed",
|
|
17640
|
+
"description": "Pressed state",
|
|
17641
|
+
"type": "boolean",
|
|
17642
|
+
"default": "false"
|
|
17643
|
+
},
|
|
17644
|
+
{
|
|
17645
|
+
"name": "text",
|
|
17646
|
+
"description": "ACCESSIBILITY: REQUIRED: Accessible text for the toggle button",
|
|
17647
|
+
"type": "string",
|
|
17648
|
+
"default": "\"\""
|
|
17649
|
+
},
|
|
17650
|
+
{
|
|
17651
|
+
"name": "icon",
|
|
17652
|
+
"description": "Preset icon key (e.g. \"tier1:gear\")",
|
|
17653
|
+
"type": "string"
|
|
17654
|
+
}
|
|
17655
|
+
],
|
|
17656
|
+
"properties": [
|
|
17657
|
+
{
|
|
17658
|
+
"name": "styles",
|
|
17659
|
+
"type": "array",
|
|
17660
|
+
"default": "[[null],\"toolbarButtonStyles\",null]"
|
|
17661
|
+
},
|
|
17662
|
+
{
|
|
17663
|
+
"name": "disabled",
|
|
17664
|
+
"attribute": "disabled",
|
|
17665
|
+
"description": "Disables the toolbar toggle button",
|
|
17666
|
+
"type": "boolean",
|
|
17667
|
+
"default": "false"
|
|
17668
|
+
},
|
|
17669
|
+
{
|
|
17670
|
+
"name": "expandable",
|
|
17671
|
+
"attribute": "expandable",
|
|
17672
|
+
"description": "Expandable state",
|
|
17673
|
+
"type": "boolean",
|
|
17674
|
+
"default": "false"
|
|
17675
|
+
},
|
|
17676
|
+
{
|
|
17677
|
+
"name": "expanded",
|
|
17678
|
+
"attribute": "expanded",
|
|
17679
|
+
"description": "Expanded state",
|
|
17680
|
+
"type": "boolean",
|
|
17681
|
+
"default": "false"
|
|
17682
|
+
},
|
|
17683
|
+
{
|
|
17684
|
+
"name": "pressed",
|
|
17685
|
+
"attribute": "pressed",
|
|
17686
|
+
"description": "Pressed state",
|
|
17687
|
+
"type": "boolean",
|
|
17688
|
+
"default": "false"
|
|
17689
|
+
},
|
|
17690
|
+
{
|
|
17691
|
+
"name": "text",
|
|
17692
|
+
"attribute": "text",
|
|
17693
|
+
"description": "ACCESSIBILITY: REQUIRED: Accessible text for the toggle button",
|
|
17694
|
+
"type": "string",
|
|
17695
|
+
"default": "\"\""
|
|
17696
|
+
},
|
|
17697
|
+
{
|
|
17698
|
+
"name": "icon",
|
|
17699
|
+
"attribute": "icon",
|
|
17700
|
+
"description": "Preset icon key (e.g. \"tier1:gear\")",
|
|
17701
|
+
"type": "string"
|
|
17702
|
+
},
|
|
17703
|
+
{
|
|
17704
|
+
"name": "isToolbarItem",
|
|
17705
|
+
"type": "boolean"
|
|
17706
|
+
}
|
|
17707
|
+
],
|
|
17708
|
+
"events": [
|
|
17709
|
+
{
|
|
17710
|
+
"name": "d2l-toolbar-toggle-change",
|
|
17711
|
+
"description": "Dispatched when the pressed state changes."
|
|
17712
|
+
}
|
|
17713
|
+
]
|
|
17714
|
+
},
|
|
17715
17715
|
{
|
|
17716
17716
|
"name": "d2l-toolbar",
|
|
17717
17717
|
"path": "./components/toolbar/toolbar.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.329.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",
|