@m3e/slide-group 1.0.0-rc.2 → 1.0.0-rc.3
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.
|
@@ -1103,25 +1103,6 @@
|
|
|
1103
1103
|
"kind": "mixin",
|
|
1104
1104
|
"description": "Mixin that adds support for custom event attributes.",
|
|
1105
1105
|
"name": "EventAttribute",
|
|
1106
|
-
"members": [
|
|
1107
|
-
{
|
|
1108
|
-
"kind": "method",
|
|
1109
|
-
"name": "dispatchEvent",
|
|
1110
|
-
"return": {
|
|
1111
|
-
"type": {
|
|
1112
|
-
"text": "boolean"
|
|
1113
|
-
}
|
|
1114
|
-
},
|
|
1115
|
-
"parameters": [
|
|
1116
|
-
{
|
|
1117
|
-
"name": "event",
|
|
1118
|
-
"type": {
|
|
1119
|
-
"text": "Event"
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
]
|
|
1123
|
-
}
|
|
1124
|
-
],
|
|
1125
1106
|
"parameters": [
|
|
1126
1107
|
{
|
|
1127
1108
|
"name": "base",
|
|
@@ -1419,6 +1400,17 @@
|
|
|
1419
1400
|
"description": "Mixin to augment an element with behavior used to submit a form.",
|
|
1420
1401
|
"name": "FormSubmitter",
|
|
1421
1402
|
"members": [
|
|
1403
|
+
{
|
|
1404
|
+
"kind": "field",
|
|
1405
|
+
"name": "formAssociated",
|
|
1406
|
+
"type": {
|
|
1407
|
+
"text": "boolean"
|
|
1408
|
+
},
|
|
1409
|
+
"static": true,
|
|
1410
|
+
"readonly": true,
|
|
1411
|
+
"default": "true",
|
|
1412
|
+
"description": "Indicates that this custom element participates in form submission, validation, and form state restoration."
|
|
1413
|
+
},
|
|
1422
1414
|
{
|
|
1423
1415
|
"kind": "field",
|
|
1424
1416
|
"name": "name",
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* Presents pagination controls used to scroll overflowing content.
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
* The `m3e-slide-group` component presents directional pagination controls for navigating overflowing content.
|
|
7
|
+
* It orchestrates scrollable layouts with expressive slot-based icons and adaptive orientation, revealing navigation
|
|
8
|
+
* affordances only when content exceeds a defined threshold. It supports both horizontal and vertical flows, and
|
|
9
|
+
* encodes accessibility through customizable labels and interaction states.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* The following example illustrates a horizontally scrollable group of items with directional pagination buttons.
|
|
13
|
+
* The scroll controls appear when content exceeds the `48px` threshold.
|
|
14
|
+
* ```html
|
|
15
|
+
* <m3e-slide-group threshold="48">
|
|
16
|
+
* <div>Item 1</div>
|
|
17
|
+
* <div>Item 2</div>
|
|
18
|
+
* <div>Item 3</div>
|
|
19
|
+
* <div>Item 4</div>
|
|
20
|
+
* <div>Item 5</div>
|
|
21
|
+
* </m3e-slide-group>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @tag m3e-slide-group
|
|
25
|
+
*
|
|
26
|
+
* @slot - Renders the content to paginate.
|
|
27
|
+
* @slot next-icon - Renders the icon to present for the next button.
|
|
28
|
+
* @slot prev-icon - Renders the icon to present for the previous button.
|
|
29
|
+
*
|
|
30
|
+
* @attr disabled - Whether scroll buttons are disabled.
|
|
31
|
+
* @attr next-page-label - The accessible label given to the button used to move to the previous page.
|
|
32
|
+
* @attr previous-page-label - The accessible label given to the button used to move to the next page.
|
|
33
|
+
* @attr threshold - A value, in pixels, indicating the scroll threshold at which to begin showing pagination controls.
|
|
34
|
+
* @attr vertical - Whether content is oriented vertically.
|
|
35
|
+
*
|
|
36
|
+
* @cssprop --m3e-slide-group-button-icon-size - Sets icon size for scroll buttons; overrides default small icon size.
|
|
37
|
+
* @cssprop --m3e-slide-group-button-size - Defines scroll button size; used for width (horizontal) or height (vertical).
|
|
38
|
+
* @cssprop --m3e-slide-group-divider-top - Adds top border to content container for visual separation.
|
|
39
|
+
* @cssprop --m3e-slide-group-divider-bottom - Adds bottom border to content container for visual separation.
|
|
40
|
+
*/
|
|
41
|
+
export declare class M3eSlideGroupElement extends LitElement {
|
|
42
|
+
#private;
|
|
43
|
+
/** The styles of the element. */
|
|
44
|
+
static styles: CSSResultGroup;
|
|
45
|
+
/** @internal A reference to the container used to scroll content. */
|
|
46
|
+
scrollContainer: HTMLElement;
|
|
47
|
+
/** @private */ private _canPage;
|
|
48
|
+
/** @private */ private _canPageStart;
|
|
49
|
+
/** @private */ private _canPageEnd;
|
|
50
|
+
/**
|
|
51
|
+
* Whether scroll buttons are disabled.
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether content is oriented vertically.
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
vertical: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* A value, in pixels, indicating the scroll threshold at which to begin showing pagination controls.
|
|
62
|
+
* @default 0
|
|
63
|
+
*/
|
|
64
|
+
threshold: number;
|
|
65
|
+
/**
|
|
66
|
+
* The accessible label given to the button used to move to the previous page.
|
|
67
|
+
* @default "Previous page"
|
|
68
|
+
*/
|
|
69
|
+
previousPageLabel: string;
|
|
70
|
+
/**
|
|
71
|
+
* The accessible label given to the button used to move to the next page.
|
|
72
|
+
* @default "Next page"
|
|
73
|
+
*/
|
|
74
|
+
nextPageLabel: string;
|
|
75
|
+
/** @inheritdoc */
|
|
76
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
77
|
+
/** @inheritdoc */
|
|
78
|
+
protected render(): unknown;
|
|
79
|
+
/** @private */
|
|
80
|
+
private _updatePaging;
|
|
81
|
+
}
|
|
82
|
+
declare global {
|
|
83
|
+
interface HTMLElementTagNameMap {
|
|
84
|
+
"m3e-slide-group": M3eSlideGroupElement;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=SlideGroupElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlideGroupElement.d.ts","sourceRoot":"","sources":["../../src/SlideGroupElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAW,cAAc,EAAE,MAAM,KAAK,CAAC;AAKrF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,qBACa,oBAAqB,SAAQ,UAAU;;IAClD,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAiDpC;IAQF,qEAAqE;IAClD,eAAe,EAAG,WAAW,CAAC;IAEjD,eAAe,CAAU,OAAO,CAAC,QAAQ,CAAS;IAClD,eAAe,CAAU,OAAO,CAAC,aAAa,CAAS;IACvD,eAAe,CAAU,OAAO,CAAC,WAAW,CAAS;IAErD;;;OAGG;IACyC,QAAQ,UAAS;IAE7D;;;OAGG;IACyC,QAAQ,UAAS;IAE7D;;;OAGG;IACyB,SAAS,SAAK;IAE1C;;;OAGG;IAC6C,iBAAiB,SAAmB;IAEpF;;;OAGG;IACyC,aAAa,SAAe;IAExE,kBAAkB;cACC,YAAY,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;IAKzE,kBAAkB;cACC,MAAM,IAAI,OAAO;IAoEpC,eAAe;IAEf,OAAO,CAAC,aAAa;CA2BtB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m3e/slide-group",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.3",
|
|
4
4
|
"description": "Slide Group for M3E",
|
|
5
5
|
"author": "matraic <matraic@yahoo.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"clean": "rimraf dist"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@m3e/core": "1.0.0-rc.
|
|
31
|
-
"@m3e/icon-button": "1.0.0-rc.
|
|
30
|
+
"@m3e/core": "1.0.0-rc.3",
|
|
31
|
+
"@m3e/icon-button": "1.0.0-rc.3",
|
|
32
32
|
"lit": "^3.3.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|