@maggioli-design-system/mds-accordion-timer-item 3.1.0 → 3.1.1
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +9 -6
- package/dist/cjs/mds-accordion-timer-item.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/aria.js +4 -2
- package/dist/collection/common/keyboard-manager.js +1 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +2 -2
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +15 -11
- package/dist/components/mds-accordion-timer-item.js +9 -6
- package/dist/documentation.d.ts +148 -0
- package/dist/documentation.json +187 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +9 -6
- package/dist/esm/mds-accordion-timer-item.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/mds-accordion-timer-item/p-0028ae1e.entry.js +1 -0
- package/{www/build/p-bde98e1c.system.entry.js → dist/mds-accordion-timer-item/p-73c9c07c.system.entry.js} +1 -1
- package/{www/build/p-09486400.system.js → dist/mds-accordion-timer-item/p-8f6dc424.system.js} +1 -1
- package/dist/stats.json +27 -25
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +4 -4
- package/dist/types/components/mds-accordion-timer-item/meta/event-detail.d.ts +1 -0
- package/dist/types/components.d.ts +4 -4
- package/dist/types/interface/input-value.d.ts +1 -1
- package/documentation.json +196 -0
- package/package.json +12 -6
- package/readme.md +1 -1
- package/src/common/aria.ts +2 -2
- package/src/common/keyboard-manager.ts +1 -1
- package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.css +3 -3
- package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.tsx +11 -9
- package/src/components/mds-accordion-timer-item/meta/event-detail.ts +1 -0
- package/src/components/mds-accordion-timer-item/readme.md +1 -1
- package/src/components.d.ts +4 -4
- package/src/fixtures/icons.json +1 -0
- package/src/interface/input-value.ts +1 -1
- package/www/build/mds-accordion-timer-item.esm.js +1 -1
- package/www/build/mds-accordion-timer-item.js +1 -1
- package/www/build/p-0028ae1e.entry.js +1 -0
- package/{dist/mds-accordion-timer-item/p-bde98e1c.system.entry.js → www/build/p-73c9c07c.system.entry.js} +1 -1
- package/{dist/mds-accordion-timer-item/p-09486400.system.js → www/build/p-8f6dc424.system.js} +1 -1
- package/dist/mds-accordion-timer-item/p-01cf1d74.entry.js +0 -1
- package/www/build/p-01cf1d74.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-6fcb2864.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.22.
|
|
8
|
+
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -17,28 +17,31 @@ const MdsAccordionTimerItem = class {
|
|
|
17
17
|
* to fire it again it need to be a different item
|
|
18
18
|
*/
|
|
19
19
|
this.toggle = () => {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
this.selected = !this.selected;
|
|
21
|
+
this.progress = 0;
|
|
22
|
+
if (this.selected) {
|
|
23
|
+
this.clickSelectEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
22
24
|
}
|
|
23
25
|
};
|
|
24
26
|
this.mouseEnter = () => {
|
|
25
27
|
if (this.selected) {
|
|
26
|
-
this.selectedMouseEnterEvent.emit({ selected: this.selected });
|
|
28
|
+
this.selectedMouseEnterEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
31
|
this.mouseLeave = () => {
|
|
30
32
|
if (this.selected) {
|
|
31
|
-
this.selectedMouseLeaveEvent.emit({ selected: this.selected });
|
|
33
|
+
this.selectedMouseLeaveEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
36
|
this.typography = 'h5';
|
|
35
|
-
this.selected =
|
|
37
|
+
this.selected = false;
|
|
36
38
|
this.description = undefined;
|
|
37
39
|
this.progress = 0;
|
|
38
40
|
this.uuid = 0;
|
|
39
41
|
}
|
|
40
42
|
render() {
|
|
41
|
-
|
|
43
|
+
var _a;
|
|
44
|
+
return (index.h(index.Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, index.h("div", { class: "row" }, index.h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), index.h("div", { class: "accordion" }, index.h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focusable", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, index.h("mds-text", { typography: this.typography }, this.description)), index.h("div", { class: "contents", id: "contents" }, index.h("slot", null))))));
|
|
42
45
|
}
|
|
43
46
|
};
|
|
44
47
|
MdsAccordionTimerItem.style = mdsAccordionTimerItemCss;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-6fcb2864.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v2.22.
|
|
8
|
+
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-accordion-timer-item.cjs.js', document.baseURI).href));
|
|
@@ -6,11 +6,13 @@ const hash = (s) => {
|
|
|
6
6
|
return h.toString();
|
|
7
7
|
};
|
|
8
8
|
const unslugName = (name) => {
|
|
9
|
-
|
|
9
|
+
var _a, _b, _c;
|
|
10
|
+
return (_c = (_b = (_a = name.split('/')) === null || _a === void 0 ? void 0 : _a.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.replace(/-/g, ' ')) !== null && _c !== void 0 ? _c : name;
|
|
10
11
|
};
|
|
11
12
|
const setAttributeIfEmpty = (element, attribute, value) => {
|
|
13
|
+
var _a;
|
|
12
14
|
if (element.hasAttribute(attribute)) {
|
|
13
|
-
return element.getAttribute(attribute);
|
|
15
|
+
return (_a = element.getAttribute(attribute)) !== null && _a !== void 0 ? _a : '';
|
|
14
16
|
}
|
|
15
17
|
element.setAttribute(attribute, value);
|
|
16
18
|
return value;
|
|
@@ -31,7 +31,7 @@ export class KeyboardManager {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
this.detachEscapeBehavior = () => {
|
|
34
|
-
this.escapeCallback =
|
|
34
|
+
this.escapeCallback = () => { return; };
|
|
35
35
|
if (typeof window !== undefined) {
|
|
36
36
|
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
|
|
37
37
|
}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
text-align: left;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
:host
|
|
108
|
+
:host( [selected] ) .action{
|
|
109
109
|
|
|
110
110
|
cursor: auto;
|
|
111
111
|
}
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
:host
|
|
136
|
+
:host( [selected] ) .contents{
|
|
137
137
|
|
|
138
138
|
height: auto;
|
|
139
139
|
|
|
@@ -6,28 +6,31 @@ export class MdsAccordionTimerItem {
|
|
|
6
6
|
* to fire it again it need to be a different item
|
|
7
7
|
*/
|
|
8
8
|
this.toggle = () => {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
this.selected = !this.selected;
|
|
10
|
+
this.progress = 0;
|
|
11
|
+
if (this.selected) {
|
|
12
|
+
this.clickSelectEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
11
13
|
}
|
|
12
14
|
};
|
|
13
15
|
this.mouseEnter = () => {
|
|
14
16
|
if (this.selected) {
|
|
15
|
-
this.selectedMouseEnterEvent.emit({ selected: this.selected });
|
|
17
|
+
this.selectedMouseEnterEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
16
18
|
}
|
|
17
19
|
};
|
|
18
20
|
this.mouseLeave = () => {
|
|
19
21
|
if (this.selected) {
|
|
20
|
-
this.selectedMouseLeaveEvent.emit({ selected: this.selected });
|
|
22
|
+
this.selectedMouseLeaveEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
21
23
|
}
|
|
22
24
|
};
|
|
23
25
|
this.typography = 'h5';
|
|
24
|
-
this.selected =
|
|
26
|
+
this.selected = false;
|
|
25
27
|
this.description = undefined;
|
|
26
28
|
this.progress = 0;
|
|
27
29
|
this.uuid = 0;
|
|
28
30
|
}
|
|
29
31
|
render() {
|
|
30
|
-
|
|
32
|
+
var _a;
|
|
33
|
+
return (h(Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { class: "row" }, h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), h("div", { class: "accordion" }, h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focusable", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, h("mds-text", { typography: this.typography }, this.description)), h("div", { class: "contents", id: "contents" }, h("slot", null))))));
|
|
31
34
|
}
|
|
32
35
|
static get is() { return "mds-accordion-timer-item"; }
|
|
33
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +60,7 @@ export class MdsAccordionTimerItem {
|
|
|
57
60
|
}
|
|
58
61
|
},
|
|
59
62
|
"required": false,
|
|
60
|
-
"optional":
|
|
63
|
+
"optional": false,
|
|
61
64
|
"docs": {
|
|
62
65
|
"tags": [],
|
|
63
66
|
"text": "Specifies the typography of the element"
|
|
@@ -75,13 +78,14 @@ export class MdsAccordionTimerItem {
|
|
|
75
78
|
"references": {}
|
|
76
79
|
},
|
|
77
80
|
"required": false,
|
|
78
|
-
"optional":
|
|
81
|
+
"optional": false,
|
|
79
82
|
"docs": {
|
|
80
83
|
"tags": [],
|
|
81
84
|
"text": "Specifies if the accordion item is opened or not"
|
|
82
85
|
},
|
|
83
86
|
"attribute": "selected",
|
|
84
|
-
"reflect": true
|
|
87
|
+
"reflect": true,
|
|
88
|
+
"defaultValue": "false"
|
|
85
89
|
},
|
|
86
90
|
"description": {
|
|
87
91
|
"type": "string",
|
|
@@ -109,7 +113,7 @@ export class MdsAccordionTimerItem {
|
|
|
109
113
|
"references": {}
|
|
110
114
|
},
|
|
111
115
|
"required": false,
|
|
112
|
-
"optional":
|
|
116
|
+
"optional": false,
|
|
113
117
|
"docs": {
|
|
114
118
|
"tags": [],
|
|
115
119
|
"text": "A value between 0 and 100 that rapresents the status progress"
|
|
@@ -127,7 +131,7 @@ export class MdsAccordionTimerItem {
|
|
|
127
131
|
"references": {}
|
|
128
132
|
},
|
|
129
133
|
"required": false,
|
|
130
|
-
"optional":
|
|
134
|
+
"optional": false,
|
|
131
135
|
"docs": {
|
|
132
136
|
"tags": [],
|
|
133
137
|
"text": "Used automatically by MdsAccordionTimer wrapper to handle it's siblings"
|
|
@@ -15,28 +15,31 @@ const MdsAccordionTimerItem$1 = /*@__PURE__*/ proxyCustomElement(class extends H
|
|
|
15
15
|
* to fire it again it need to be a different item
|
|
16
16
|
*/
|
|
17
17
|
this.toggle = () => {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
this.selected = !this.selected;
|
|
19
|
+
this.progress = 0;
|
|
20
|
+
if (this.selected) {
|
|
21
|
+
this.clickSelectEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
20
22
|
}
|
|
21
23
|
};
|
|
22
24
|
this.mouseEnter = () => {
|
|
23
25
|
if (this.selected) {
|
|
24
|
-
this.selectedMouseEnterEvent.emit({ selected: this.selected });
|
|
26
|
+
this.selectedMouseEnterEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
25
27
|
}
|
|
26
28
|
};
|
|
27
29
|
this.mouseLeave = () => {
|
|
28
30
|
if (this.selected) {
|
|
29
|
-
this.selectedMouseLeaveEvent.emit({ selected: this.selected });
|
|
31
|
+
this.selectedMouseLeaveEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
30
32
|
}
|
|
31
33
|
};
|
|
32
34
|
this.typography = 'h5';
|
|
33
|
-
this.selected =
|
|
35
|
+
this.selected = false;
|
|
34
36
|
this.description = undefined;
|
|
35
37
|
this.progress = 0;
|
|
36
38
|
this.uuid = 0;
|
|
37
39
|
}
|
|
38
40
|
render() {
|
|
39
|
-
|
|
41
|
+
var _a;
|
|
42
|
+
return (h(Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { class: "row" }, h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), h("div", { class: "accordion" }, h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focusable", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, h("mds-text", { typography: this.typography }, this.description)), h("div", { class: "contents", id: "contents" }, h("slot", null))))));
|
|
40
43
|
}
|
|
41
44
|
static get style() { return mdsAccordionTimerItemCss; }
|
|
42
45
|
}, [1, "mds-accordion-timer-item", {
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
4
|
+
* DO NOT MODIFY IT MANUALLY
|
|
5
|
+
*/
|
|
6
|
+
export interface JsonDocs {
|
|
7
|
+
components: JsonDocsComponent[];
|
|
8
|
+
timestamp: string;
|
|
9
|
+
compiler: {
|
|
10
|
+
name: string;
|
|
11
|
+
version: string;
|
|
12
|
+
typescriptVersion: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface JsonDocsComponent {
|
|
16
|
+
dirPath?: string;
|
|
17
|
+
fileName?: string;
|
|
18
|
+
filePath?: string;
|
|
19
|
+
readmePath?: string;
|
|
20
|
+
usagesDir?: string;
|
|
21
|
+
encapsulation: 'shadow' | 'scoped' | 'none';
|
|
22
|
+
tag: string;
|
|
23
|
+
readme: string;
|
|
24
|
+
docs: string;
|
|
25
|
+
docsTags: JsonDocsTag[];
|
|
26
|
+
/**
|
|
27
|
+
* The text from the class-level JSDoc for a Stencil component, if present.
|
|
28
|
+
*/
|
|
29
|
+
overview?: string;
|
|
30
|
+
usage: JsonDocsUsage;
|
|
31
|
+
props: JsonDocsProp[];
|
|
32
|
+
methods: JsonDocsMethod[];
|
|
33
|
+
events: JsonDocsEvent[];
|
|
34
|
+
listeners: JsonDocsListener[];
|
|
35
|
+
styles: JsonDocsStyle[];
|
|
36
|
+
slots: JsonDocsSlot[];
|
|
37
|
+
parts: JsonDocsPart[];
|
|
38
|
+
dependents: string[];
|
|
39
|
+
dependencies: string[];
|
|
40
|
+
dependencyGraph: JsonDocsDependencyGraph;
|
|
41
|
+
deprecation?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface JsonDocsDependencyGraph {
|
|
44
|
+
[tagName: string]: string[];
|
|
45
|
+
}
|
|
46
|
+
export interface JsonDocsTag {
|
|
47
|
+
name: string;
|
|
48
|
+
text?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface JsonDocsValue {
|
|
51
|
+
value?: string;
|
|
52
|
+
type: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A mapping of file names to their contents.
|
|
56
|
+
*
|
|
57
|
+
* This type is meant to be used when reading one or more usage markdown files associated with a component. For the
|
|
58
|
+
* given directory structure:
|
|
59
|
+
* ```
|
|
60
|
+
* src/components/my-component
|
|
61
|
+
* ├── my-component.tsx
|
|
62
|
+
* └── usage
|
|
63
|
+
* ├── bar.md
|
|
64
|
+
* └── foo.md
|
|
65
|
+
* ```
|
|
66
|
+
* an instance of this type would include the name of the markdown file, mapped to its contents:
|
|
67
|
+
* ```ts
|
|
68
|
+
* {
|
|
69
|
+
* 'bar': STRING_CONTENTS_OF_BAR.MD
|
|
70
|
+
* 'foo': STRING_CONTENTS_OF_FOO.MD
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export interface JsonDocsUsage {
|
|
75
|
+
[key: string]: string;
|
|
76
|
+
}
|
|
77
|
+
export interface JsonDocsProp {
|
|
78
|
+
name: string;
|
|
79
|
+
type: string;
|
|
80
|
+
mutable: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The name of the attribute that is exposed to configure a compiled web component
|
|
83
|
+
*/
|
|
84
|
+
attr?: string;
|
|
85
|
+
reflectToAttr: boolean;
|
|
86
|
+
docs: string;
|
|
87
|
+
docsTags: JsonDocsTag[];
|
|
88
|
+
default: string;
|
|
89
|
+
deprecation?: string;
|
|
90
|
+
values: JsonDocsValue[];
|
|
91
|
+
optional: boolean;
|
|
92
|
+
required: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface JsonDocsMethod {
|
|
95
|
+
name: string;
|
|
96
|
+
docs: string;
|
|
97
|
+
docsTags: JsonDocsTag[];
|
|
98
|
+
deprecation?: string;
|
|
99
|
+
signature: string;
|
|
100
|
+
returns: JsonDocsMethodReturn;
|
|
101
|
+
parameters: JsonDocMethodParameter[];
|
|
102
|
+
}
|
|
103
|
+
export interface JsonDocsMethodReturn {
|
|
104
|
+
type: string;
|
|
105
|
+
docs: string;
|
|
106
|
+
}
|
|
107
|
+
export interface JsonDocMethodParameter {
|
|
108
|
+
name: string;
|
|
109
|
+
type: string;
|
|
110
|
+
docs: string;
|
|
111
|
+
}
|
|
112
|
+
export interface JsonDocsEvent {
|
|
113
|
+
event: string;
|
|
114
|
+
bubbles: boolean;
|
|
115
|
+
cancelable: boolean;
|
|
116
|
+
composed: boolean;
|
|
117
|
+
docs: string;
|
|
118
|
+
docsTags: JsonDocsTag[];
|
|
119
|
+
deprecation?: string;
|
|
120
|
+
detail: string;
|
|
121
|
+
}
|
|
122
|
+
export interface JsonDocsStyle {
|
|
123
|
+
name: string;
|
|
124
|
+
docs: string;
|
|
125
|
+
annotation: string;
|
|
126
|
+
}
|
|
127
|
+
export interface JsonDocsListener {
|
|
128
|
+
event: string;
|
|
129
|
+
target?: string;
|
|
130
|
+
capture: boolean;
|
|
131
|
+
passive: boolean;
|
|
132
|
+
}
|
|
133
|
+
export interface JsonDocsSlot {
|
|
134
|
+
name: string;
|
|
135
|
+
docs: string;
|
|
136
|
+
}
|
|
137
|
+
export interface JsonDocsPart {
|
|
138
|
+
name: string;
|
|
139
|
+
docs: string;
|
|
140
|
+
}
|
|
141
|
+
export interface StyleDoc {
|
|
142
|
+
name: string;
|
|
143
|
+
docs: string;
|
|
144
|
+
annotation: 'prop';
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare const _default: JsonDocs;
|
|
148
|
+
export default _default;
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
{
|
|
2
|
+
"timestamp": "2023-04-14T10:13:32",
|
|
3
|
+
"compiler": {
|
|
4
|
+
"name": "@stencil/core",
|
|
5
|
+
"version": "2.22.3",
|
|
6
|
+
"typescriptVersion": "4.9.4"
|
|
7
|
+
},
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"filePath": "./src/components/mds-accordion-timer-item/mds-accordion-timer-item.tsx",
|
|
11
|
+
"encapsulation": "shadow",
|
|
12
|
+
"tag": "mds-accordion-timer-item",
|
|
13
|
+
"docs": "",
|
|
14
|
+
"docsTags": [],
|
|
15
|
+
"usage": {},
|
|
16
|
+
"props": [
|
|
17
|
+
{
|
|
18
|
+
"name": "description",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"mutable": false,
|
|
21
|
+
"attr": "description",
|
|
22
|
+
"reflectToAttr": false,
|
|
23
|
+
"docs": "Specifies the title shown when the accordion is closed or opened",
|
|
24
|
+
"docsTags": [],
|
|
25
|
+
"values": [
|
|
26
|
+
{
|
|
27
|
+
"type": "string"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"optional": false,
|
|
31
|
+
"required": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "progress",
|
|
35
|
+
"type": "number",
|
|
36
|
+
"mutable": false,
|
|
37
|
+
"attr": "progress",
|
|
38
|
+
"reflectToAttr": false,
|
|
39
|
+
"docs": "A value between 0 and 100 that rapresents the status progress",
|
|
40
|
+
"docsTags": [],
|
|
41
|
+
"default": "0",
|
|
42
|
+
"values": [
|
|
43
|
+
{
|
|
44
|
+
"type": "number"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"optional": false,
|
|
48
|
+
"required": false
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "selected",
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"mutable": false,
|
|
54
|
+
"attr": "selected",
|
|
55
|
+
"reflectToAttr": true,
|
|
56
|
+
"docs": "Specifies if the accordion item is opened or not",
|
|
57
|
+
"docsTags": [],
|
|
58
|
+
"default": "false",
|
|
59
|
+
"values": [
|
|
60
|
+
{
|
|
61
|
+
"type": "boolean"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"optional": false,
|
|
65
|
+
"required": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "typography",
|
|
69
|
+
"type": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
|
|
70
|
+
"mutable": false,
|
|
71
|
+
"attr": "typography",
|
|
72
|
+
"reflectToAttr": false,
|
|
73
|
+
"docs": "Specifies the typography of the element",
|
|
74
|
+
"docsTags": [],
|
|
75
|
+
"default": "'h5'",
|
|
76
|
+
"values": [
|
|
77
|
+
{
|
|
78
|
+
"value": "action",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"value": "h1",
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"value": "h2",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "h3",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": "h4",
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"value": "h5",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"value": "h6",
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"optional": false,
|
|
107
|
+
"required": false
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "uuid",
|
|
111
|
+
"type": "number",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"attr": "uuid",
|
|
114
|
+
"reflectToAttr": false,
|
|
115
|
+
"docs": "Used automatically by MdsAccordionTimer wrapper to handle it's siblings",
|
|
116
|
+
"docsTags": [],
|
|
117
|
+
"default": "0",
|
|
118
|
+
"values": [
|
|
119
|
+
{
|
|
120
|
+
"type": "number"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"optional": false,
|
|
124
|
+
"required": false
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"methods": [],
|
|
128
|
+
"events": [
|
|
129
|
+
{
|
|
130
|
+
"event": "mdsAccordionTimerItemClickSelect",
|
|
131
|
+
"detail": "MdsAccordionTimerItemEventDetail",
|
|
132
|
+
"bubbles": true,
|
|
133
|
+
"cancelable": true,
|
|
134
|
+
"composed": true,
|
|
135
|
+
"docs": "Emits when the accordion is clicked by the mouse",
|
|
136
|
+
"docsTags": []
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"event": "mdsAccordionTimerItemMouseEnterSelect",
|
|
140
|
+
"detail": "MdsAccordionTimerItemEventDetail",
|
|
141
|
+
"bubbles": true,
|
|
142
|
+
"cancelable": true,
|
|
143
|
+
"composed": true,
|
|
144
|
+
"docs": "Emits when the accordion is hovered by the mouse",
|
|
145
|
+
"docsTags": []
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"event": "mdsAccordionTimerItemMouseLeaveSelect",
|
|
149
|
+
"detail": "MdsAccordionTimerItemEventDetail",
|
|
150
|
+
"bubbles": true,
|
|
151
|
+
"cancelable": true,
|
|
152
|
+
"composed": true,
|
|
153
|
+
"docs": "Emits when the accordion is hovered by the mouse",
|
|
154
|
+
"docsTags": []
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"listeners": [],
|
|
158
|
+
"styles": [
|
|
159
|
+
{
|
|
160
|
+
"name": "--mds-accordion-timer-item-color",
|
|
161
|
+
"annotation": "prop",
|
|
162
|
+
"docs": "Sets the text color of the component"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "--mds-accordion-timer-item-progress-bar-background",
|
|
166
|
+
"annotation": "prop",
|
|
167
|
+
"docs": "Sets the background-color of the progress bar when the item is selected"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "--mds-accordion-timer-item-progress-bar-color",
|
|
171
|
+
"annotation": "prop",
|
|
172
|
+
"docs": "Sets the color of the progress bar when the item is selected"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "--mds-accordion-timer-item-progress-bar-thickness",
|
|
176
|
+
"annotation": "prop",
|
|
177
|
+
"docs": "Sets thickness of the progress bar"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"slots": [],
|
|
181
|
+
"parts": [],
|
|
182
|
+
"dependents": [],
|
|
183
|
+
"dependencies": [],
|
|
184
|
+
"dependencyGraph": {}
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { p as promiseResolve, b as bootstrapLazy } from './index-5d57a2db.js';
|
|
|
2
2
|
export { s as setNonce } from './index-5d57a2db.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Esm v2.22.
|
|
5
|
+
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchEsm = () => {
|
|
8
8
|
return promiseResolve();
|
|
@@ -13,28 +13,31 @@ const MdsAccordionTimerItem = class {
|
|
|
13
13
|
* to fire it again it need to be a different item
|
|
14
14
|
*/
|
|
15
15
|
this.toggle = () => {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
this.selected = !this.selected;
|
|
17
|
+
this.progress = 0;
|
|
18
|
+
if (this.selected) {
|
|
19
|
+
this.clickSelectEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
18
20
|
}
|
|
19
21
|
};
|
|
20
22
|
this.mouseEnter = () => {
|
|
21
23
|
if (this.selected) {
|
|
22
|
-
this.selectedMouseEnterEvent.emit({ selected: this.selected });
|
|
24
|
+
this.selectedMouseEnterEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
23
25
|
}
|
|
24
26
|
};
|
|
25
27
|
this.mouseLeave = () => {
|
|
26
28
|
if (this.selected) {
|
|
27
|
-
this.selectedMouseLeaveEvent.emit({ selected: this.selected });
|
|
29
|
+
this.selectedMouseLeaveEvent.emit({ selected: this.selected, uuid: this.uuid });
|
|
28
30
|
}
|
|
29
31
|
};
|
|
30
32
|
this.typography = 'h5';
|
|
31
|
-
this.selected =
|
|
33
|
+
this.selected = false;
|
|
32
34
|
this.description = undefined;
|
|
33
35
|
this.progress = 0;
|
|
34
36
|
this.uuid = 0;
|
|
35
37
|
}
|
|
36
38
|
render() {
|
|
37
|
-
|
|
39
|
+
var _a;
|
|
40
|
+
return (h(Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { class: "row" }, h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), h("div", { class: "accordion" }, h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focusable", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, h("mds-text", { typography: this.typography }, this.description)), h("div", { class: "contents", id: "contents" }, h("slot", null))))));
|
|
38
41
|
}
|
|
39
42
|
};
|
|
40
43
|
MdsAccordionTimerItem.style = mdsAccordionTimerItemCss;
|
|
@@ -2,7 +2,7 @@ import { p as promiseResolve, b as bootstrapLazy } from './index-5d57a2db.js';
|
|
|
2
2
|
export { s as setNonce } from './index-5d57a2db.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v2.22.
|
|
5
|
+
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-5d57a2db.js";var mdsAccordionTimerItemCss="@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-item-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-item-progress-bar-thickness:0.25rem;position:relative;display:grid;padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)))}.row{display:-ms-flexbox;display:flex;gap:1rem}.accordion{display:grid}.progress-bar{-ms-flex-negative:0;flex-shrink:0;--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness)}.action{cursor:pointer;border-radius:0.75rem;border-style:none;background-color:transparent;padding:0px;text-align:left}:host([selected]) .action{cursor:auto}.contents{display:grid;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94)}:host([selected]) .contents{height:auto;padding-top:1rem;opacity:1}";var MdsAccordionTimerItem=function(){function o(o){var t=this;registerInstance(this,o);this.clickSelectEvent=createEvent(this,"mdsAccordionTimerItemClickSelect",7);this.selectedMouseEnterEvent=createEvent(this,"mdsAccordionTimerItemMouseEnterSelect",7);this.selectedMouseLeaveEvent=createEvent(this,"mdsAccordionTimerItemMouseLeaveSelect",7);this.toggle=function(){if(
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-5d57a2db.js";var mdsAccordionTimerItemCss="@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-item-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-item-progress-bar-thickness:0.25rem;position:relative;display:grid;padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)))}.row{display:-ms-flexbox;display:flex;gap:1rem}.accordion{display:grid}.progress-bar{-ms-flex-negative:0;flex-shrink:0;--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness)}.action{cursor:pointer;border-radius:0.75rem;border-style:none;background-color:transparent;padding:0px;text-align:left}:host([selected]) .action{cursor:auto}.contents{display:grid;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94)}:host([selected]) .contents{height:auto;padding-top:1rem;opacity:1}";var MdsAccordionTimerItem=function(){function o(o){var t=this;registerInstance(this,o);this.clickSelectEvent=createEvent(this,"mdsAccordionTimerItemClickSelect",7);this.selectedMouseEnterEvent=createEvent(this,"mdsAccordionTimerItemMouseEnterSelect",7);this.selectedMouseLeaveEvent=createEvent(this,"mdsAccordionTimerItemMouseLeaveSelect",7);this.toggle=function(){t.selected=!t.selected;t.progress=0;if(t.selected){t.clickSelectEvent.emit({selected:t.selected,uuid:t.uuid})}};this.mouseEnter=function(){if(t.selected){t.selectedMouseEnterEvent.emit({selected:t.selected,uuid:t.uuid})}};this.mouseLeave=function(){if(t.selected){t.selectedMouseLeaveEvent.emit({selected:t.selected,uuid:t.uuid})}};this.typography="h5";this.selected=false;this.description=undefined;this.progress=0;this.uuid=0}o.prototype.render=function(){var o;return h(Host,{onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave},h("div",{class:"row"},h("mds-progress",{class:"progress-bar",progress:Number((o=this.progress)===null||o===void 0?void 0:o.toFixed(2)),direction:"vertical"}),h("div",{class:"accordion"},h("button",{"aria-controls":"contents","aria-expanded":this.selected?"true":"false",class:"action focusable",id:"action",onClick:this.toggle,role:"button",tabindex:"0"},h("mds-text",{typography:this.typography},this.description)),h("div",{class:"contents",id:"contents"},h("slot",null)))))};return o}();MdsAccordionTimerItem.style=mdsAccordionTimerItemCss;export{MdsAccordionTimerItem as mds_accordion_timer_item};
|