@m3e/toolbar 1.0.0-rc.2 → 1.0.0-rc.4
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/README.md +1 -1
- package/dist/custom-elements.json +24 -29
- package/dist/src/ToolbarElement.d.ts +85 -0
- package/dist/src/ToolbarElement.d.ts.map +1 -0
- package/dist/src/ToolbarShape.d.ts +3 -0
- package/dist/src/ToolbarShape.d.ts.map +1 -0
- package/dist/src/ToolbarVariant.d.ts +3 -0
- package/dist/src/ToolbarVariant.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Alternately, you can explicitly reference the `html-custom-data.json` and `css-c
|
|
|
27
27
|
}
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
## 🚀
|
|
30
|
+
## 🚀 Native Module Support
|
|
31
31
|
|
|
32
32
|
This package uses [JavaScript Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#module_specifiers). To use it directly in a browser without a bundler, use a module script similar to the following.
|
|
33
33
|
|
|
@@ -1131,25 +1131,6 @@
|
|
|
1131
1131
|
"kind": "mixin",
|
|
1132
1132
|
"description": "Mixin that adds support for custom event attributes.",
|
|
1133
1133
|
"name": "EventAttribute",
|
|
1134
|
-
"members": [
|
|
1135
|
-
{
|
|
1136
|
-
"kind": "method",
|
|
1137
|
-
"name": "dispatchEvent",
|
|
1138
|
-
"return": {
|
|
1139
|
-
"type": {
|
|
1140
|
-
"text": "boolean"
|
|
1141
|
-
}
|
|
1142
|
-
},
|
|
1143
|
-
"parameters": [
|
|
1144
|
-
{
|
|
1145
|
-
"name": "event",
|
|
1146
|
-
"type": {
|
|
1147
|
-
"text": "Event"
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
]
|
|
1151
|
-
}
|
|
1152
|
-
],
|
|
1153
1134
|
"parameters": [
|
|
1154
1135
|
{
|
|
1155
1136
|
"name": "base",
|
|
@@ -1447,6 +1428,17 @@
|
|
|
1447
1428
|
"description": "Mixin to augment an element with behavior used to submit a form.",
|
|
1448
1429
|
"name": "FormSubmitter",
|
|
1449
1430
|
"members": [
|
|
1431
|
+
{
|
|
1432
|
+
"kind": "field",
|
|
1433
|
+
"name": "formAssociated",
|
|
1434
|
+
"type": {
|
|
1435
|
+
"text": "boolean"
|
|
1436
|
+
},
|
|
1437
|
+
"static": true,
|
|
1438
|
+
"readonly": true,
|
|
1439
|
+
"default": "true",
|
|
1440
|
+
"description": "Indicates that this custom element participates in form submission, validation, and form state restoration."
|
|
1441
|
+
},
|
|
1450
1442
|
{
|
|
1451
1443
|
"kind": "field",
|
|
1452
1444
|
"name": "name",
|
|
@@ -1983,6 +1975,11 @@
|
|
|
1983
1975
|
"kind": "javascript-module",
|
|
1984
1976
|
"path": "../core/src/shared/mixins/Labelled.ts",
|
|
1985
1977
|
"declarations": [
|
|
1978
|
+
{
|
|
1979
|
+
"kind": "variable",
|
|
1980
|
+
"name": "updateLabels",
|
|
1981
|
+
"description": "A symbol through which to update labels to reflect a control's current state."
|
|
1982
|
+
},
|
|
1986
1983
|
{
|
|
1987
1984
|
"kind": "function",
|
|
1988
1985
|
"name": "isLabelledMixin",
|
|
@@ -2032,16 +2029,6 @@
|
|
|
2032
2029
|
},
|
|
2033
2030
|
"description": "The label elements that the element is associated with.",
|
|
2034
2031
|
"readonly": true
|
|
2035
|
-
},
|
|
2036
|
-
{
|
|
2037
|
-
"kind": "method",
|
|
2038
|
-
"name": "[_updateLabels]",
|
|
2039
|
-
"privacy": "private",
|
|
2040
|
-
"return": {
|
|
2041
|
-
"type": {
|
|
2042
|
-
"text": "void"
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
2032
|
}
|
|
2046
2033
|
],
|
|
2047
2034
|
"parameters": [
|
|
@@ -2056,6 +2043,14 @@
|
|
|
2056
2043
|
}
|
|
2057
2044
|
],
|
|
2058
2045
|
"exports": [
|
|
2046
|
+
{
|
|
2047
|
+
"kind": "js",
|
|
2048
|
+
"name": "updateLabels",
|
|
2049
|
+
"declaration": {
|
|
2050
|
+
"name": "updateLabels",
|
|
2051
|
+
"module": "../core/src/shared/mixins/Labelled.ts"
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2059
2054
|
{
|
|
2060
2055
|
"kind": "js",
|
|
2061
2056
|
"name": "isLabelledMixin",
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
+
import { ToolbarVariant } from "./ToolbarVariant";
|
|
3
|
+
import { ToolbarShape } from "./ToolbarShape";
|
|
4
|
+
declare const M3eToolbarElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").VerticalMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof LitElement;
|
|
5
|
+
/**
|
|
6
|
+
* Presents frequently used actions relevant to the current page.
|
|
7
|
+
*
|
|
8
|
+
* @description
|
|
9
|
+
* The `m3e-toolbar` component presents contextual actions, navigation, and controls. Designed according to
|
|
10
|
+
* Material 3 principles, it supports vertical and horizontal orientation, shape and variant customization,
|
|
11
|
+
* and adaptive layout via CSS custom properties.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* The following example illustrates a `vibrant`, `rounded` toolbar containing icon buttons.
|
|
15
|
+
*
|
|
16
|
+
* ```html
|
|
17
|
+
* <m3e-toolbar variant="vibrant" shape="rounded">
|
|
18
|
+
* <m3e-icon-button>
|
|
19
|
+
* <m3e-icon name="arrow_back"></m3e-icon>
|
|
20
|
+
* </m3e-icon-button>
|
|
21
|
+
* <m3e-icon-button>
|
|
22
|
+
* <m3e-icon name="arrow_forward"></m3e-icon>
|
|
23
|
+
* </m3e-icon-button>
|
|
24
|
+
* <m3e-icon-button width="wide" variant="filled">
|
|
25
|
+
* <m3e-icon name="add"></m3e-icon>
|
|
26
|
+
* </m3e-icon-button>
|
|
27
|
+
* <m3e-icon-button>
|
|
28
|
+
* <m3e-icon name="picture_in_picture"></m3e-icon>
|
|
29
|
+
* </m3e-icon-button>
|
|
30
|
+
* <m3e-icon-button>
|
|
31
|
+
* <m3e-icon name="more_vert"></m3e-icon>
|
|
32
|
+
* </m3e-icon-button>
|
|
33
|
+
* </m3e-toolbar>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @tag m3e-toolbar
|
|
37
|
+
*
|
|
38
|
+
* @slot - Renders the content of the toolbar.
|
|
39
|
+
*
|
|
40
|
+
* @attr elevated - Whether the toolbar is elevated.
|
|
41
|
+
* @attr shape - The shape of the toolbar.
|
|
42
|
+
* @attr variant - The appearance variant of the toolbar.
|
|
43
|
+
* @attr vertical - Whether the element is oriented vertically.
|
|
44
|
+
*
|
|
45
|
+
* @cssprop --m3e-toolbar-size - The size (height or width) of the toolbar.
|
|
46
|
+
* @cssprop --m3e-toolbar-spacing - The gap between toolbar items.
|
|
47
|
+
* @cssprop --m3e-toolbar-rounded-shape - Border radius for rounded shape.
|
|
48
|
+
* @cssprop --m3e-toolbar-rounded-padding - Padding for rounded shape.
|
|
49
|
+
* @cssprop --m3e-toolbar-square-padding - Padding for square shape.
|
|
50
|
+
* @cssprop --m3e-toolbar-standard-container-color - Container color for the standard variant.
|
|
51
|
+
* @cssprop --m3e-toolbar-standard-color - Foreground color for the standard variant.
|
|
52
|
+
* @cssprop --m3e-toolbar-vibrant-container-color - Container color for the vibrant variant.
|
|
53
|
+
* @cssprop --m3e-toolbar-vibrant-color - Foreground color for the vibrant variant.
|
|
54
|
+
*/
|
|
55
|
+
export declare class M3eToolbarElement extends M3eToolbarElement_base {
|
|
56
|
+
#private;
|
|
57
|
+
/** The styles of the element. */
|
|
58
|
+
static styles: CSSResultGroup;
|
|
59
|
+
/**
|
|
60
|
+
* The appearance variant of the toolbar.
|
|
61
|
+
* @default "standard"
|
|
62
|
+
*/
|
|
63
|
+
variant: ToolbarVariant;
|
|
64
|
+
/**
|
|
65
|
+
* The shape of the toolbar.
|
|
66
|
+
* @default "square"
|
|
67
|
+
*/
|
|
68
|
+
shape: ToolbarShape;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the toolbar is elevated.
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
elevated: boolean;
|
|
74
|
+
/** @inheritdoc */
|
|
75
|
+
protected update(changedProperties: PropertyValues<this>): void;
|
|
76
|
+
/** @inheritdoc */
|
|
77
|
+
protected render(): unknown;
|
|
78
|
+
}
|
|
79
|
+
declare global {
|
|
80
|
+
interface HTMLElementTagNameMap {
|
|
81
|
+
"m3e-toolbar": M3eToolbarElement;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export {};
|
|
85
|
+
//# sourceMappingURL=ToolbarElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarElement.d.ts","sourceRoot":"","sources":["../../src/ToolbarElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAM5E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,qBACa,iBAAkB,SAAQ,sBAAqC;;IAC1E,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CA8DpC;IAIF;;;OAGG;IAC0B,OAAO,EAAE,cAAc,CAAc;IAElE;;;OAGG;IAC0B,KAAK,EAAE,YAAY,CAAY;IAE5D;;;OAGG;IACyC,QAAQ,UAAS;IAE7D,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQxE,kBAAkB;cACC,MAAM,IAAI,OAAO;CAmCrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,iBAAiB,CAAC;KAClC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarShape.d.ts","sourceRoot":"","sources":["../../src/ToolbarShape.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarVariant.d.ts","sourceRoot":"","sources":["../../src/ToolbarVariant.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m3e/toolbar",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.4",
|
|
4
4
|
"description": "Toolbar for M3E",
|
|
5
5
|
"author": "matraic <matraic@yahoo.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@material/material-color-utilities": "^0.3.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@m3e/core": "1.0.0-rc.
|
|
33
|
+
"@m3e/core": "1.0.0-rc.4",
|
|
34
34
|
"lit": "^3.3.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|