@aurodesignsystem-dev/auro-backtotop 0.0.0-pr79.2 → 0.0.0-pr80.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/README.md +54 -42
- package/custom-elements.json +267 -23
- package/demo/api.md +79 -29
- package/demo/auro-backtotop.min.js +25 -26
- package/demo/index.md +43 -16
- package/dist/{auro-backtotop-CV2gu8Qz.js → auro-backtotop-BcarFpWB.js} +4 -4
- package/dist/index.d.ts +104 -198
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +4 -8
package/README.md
CHANGED
|
@@ -23,26 +23,24 @@ The following sections are editable by making changes to the following files:
|
|
|
23
23
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
24
|
`<auro-backtotop>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose of providing a quick and accessible means to jump back to the top of a long content page.
|
|
25
25
|
|
|
26
|
-
The component will be hidden while the page Y scroll position is at the top. When scroll down begins the button will display in the bottom right corner of the page. While scrolling down the button will display only an arrow up icon.
|
|
26
|
+
The component will be hidden while the page Y scroll position is at the top. When scroll down begins the button will display in the bottom right corner of the page. While scrolling down the button will display only an arrow up icon. When scroll up occurs, the button will additionally display any slotted text content.
|
|
27
27
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
28
28
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
29
29
|
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
30
30
|
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
|
|
31
31
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## UI development browser support
|
|
34
34
|
|
|
35
|
-
<!-- AURO-GENERATED-CONTENT:START (
|
|
36
|
-
|
|
37
|
-
The `<auro-backtotop>` element should be used in situations where users may:
|
|
35
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/browserSupport.md) -->
|
|
36
|
+
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
38
37
|
|
|
39
|
-
* Pages with large amounts of content where a shortcut to jump to the top of the page is appropriate.
|
|
40
38
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
41
39
|
|
|
42
40
|
## Install
|
|
43
41
|
|
|
44
42
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentInstall.md) -->
|
|
45
|
-
[](https://github.com/AlaskaAirlines/auro-backtotop/actions/workflows/testPublish.yml)
|
|
46
44
|
[](https://www.npmjs.com/package/@aurodesignsystem/auro-backtotop)
|
|
47
45
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
48
46
|

|
|
@@ -53,10 +51,17 @@ $ npm i @aurodesignsystem/auro-backtotop
|
|
|
53
51
|
|
|
54
52
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
55
53
|
|
|
56
|
-
###
|
|
54
|
+
### Design Token CSS Custom Property dependency
|
|
55
|
+
|
|
56
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/designTokens.md) -->
|
|
57
|
+
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
58
|
+
|
|
59
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
60
|
+
|
|
61
|
+
### Define dependency in project component
|
|
57
62
|
|
|
58
63
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
|
|
59
|
-
Defining the dependency within each
|
|
64
|
+
Defining the component dependency within each component that is using the `<auro-backtotop>` component.
|
|
60
65
|
|
|
61
66
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
62
67
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
|
|
@@ -65,9 +70,17 @@ Defining the dependency within each project that is using the `<auro-backtotop>`
|
|
|
65
70
|
import "@aurodesignsystem/auro-backtotop";
|
|
66
71
|
```
|
|
67
72
|
|
|
73
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
74
|
+
**Reference component in HTML**
|
|
75
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
76
|
+
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<auro-backtotop>Back to top</auro-backtotop>
|
|
80
|
+
```
|
|
68
81
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
69
82
|
|
|
70
|
-
|
|
83
|
+
## Use CDN
|
|
71
84
|
|
|
72
85
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
|
|
73
86
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
@@ -78,7 +91,18 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
78
91
|
|
|
79
92
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
80
93
|
|
|
81
|
-
##
|
|
94
|
+
## auro-backtotop use cases
|
|
95
|
+
|
|
96
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
97
|
+
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
98
|
+
The `<auro-backtotop>` element should be used in situations where users may:
|
|
99
|
+
|
|
100
|
+
* Pages with large amounts of content where a shortcut to jump to the top of the page is appropriate.
|
|
101
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
102
|
+
|
|
103
|
+
## API Code Examples
|
|
104
|
+
|
|
105
|
+
### Default auro-backtotop
|
|
82
106
|
|
|
83
107
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
84
108
|
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
@@ -88,43 +112,31 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
88
112
|
```
|
|
89
113
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
90
114
|
|
|
91
|
-
##
|
|
92
|
-
|
|
93
|
-
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition.
|
|
94
|
-
The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
115
|
+
## Development
|
|
95
116
|
|
|
96
|
-
|
|
117
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/developmentDescription.md) -->
|
|
118
|
+
In order to develop against this project, if you are not part of the core team, you will be required to fork the project prior to submitting a pull request.
|
|
97
119
|
|
|
98
|
-
|
|
120
|
+
Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document.
|
|
99
121
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
103
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
122
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
104
123
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
124
|
+
### Start development environment
|
|
125
|
+
|
|
126
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/localhost.md) -->
|
|
127
|
+
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open a shell session to run the **dev server**.
|
|
108
128
|
|
|
109
|
-
|
|
110
|
-
|
|
129
|
+
```shell
|
|
130
|
+
$ npm run dev
|
|
111
131
|
```
|
|
112
132
|
|
|
113
|
-
|
|
114
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
|
-
<div class="exampleWrapper exampleWrapper--flex">
|
|
116
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
|
|
117
|
-
<!-- The below content is automatically added from ./apiExamples/custom.html -->
|
|
118
|
-
<custom-backtotop>Custom back to top</custom-backtotop>
|
|
119
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
120
|
-
</div>
|
|
121
|
-
<auro-accordion alignRight>
|
|
122
|
-
<span slot="trigger">See code</span>
|
|
123
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/custom.html) -->
|
|
124
|
-
<!-- The below code snippet is automatically added from ./apiExamples/custom.html -->
|
|
133
|
+
Open [localhost:8000](http://localhost:8000/)
|
|
125
134
|
|
|
126
|
-
```html
|
|
127
|
-
<custom-backtotop>Custom back to top</custom-backtotop>
|
|
128
|
-
```
|
|
129
135
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
130
|
-
|
|
136
|
+
|
|
137
|
+
### Testing
|
|
138
|
+
|
|
139
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/testing.md) -->
|
|
140
|
+
Automated tests are required for every Auro component. See `.\test\auro-backtotop.test.js` for the tests for this component. Run `npm run test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
|
|
141
|
+
|
|
142
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
package/custom-elements.json
CHANGED
|
@@ -2,13 +2,266 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "scripts/wca/auro-backtotop.js",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "The auro-backtotop element provides users a way to quickly return to page top.",
|
|
12
|
+
"name": "AuroBackToTopWCA",
|
|
13
|
+
"superclass": {
|
|
14
|
+
"name": "AuroBackToTop",
|
|
15
|
+
"module": "/src/auro-backtotop.js"
|
|
16
|
+
},
|
|
17
|
+
"tagName": "auro-backtotop",
|
|
18
|
+
"customElement": true,
|
|
19
|
+
"slots": [
|
|
20
|
+
{
|
|
21
|
+
"description": "Default slot for the text of the button.",
|
|
22
|
+
"name": "",
|
|
23
|
+
"inheritedFrom": {
|
|
24
|
+
"name": "AuroBackToTop",
|
|
25
|
+
"module": "src/auro-backtotop.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"description": "Use this slot to pass an aria-label to the HTML5 button.",
|
|
30
|
+
"name": "ariaLabel",
|
|
31
|
+
"inheritedFrom": {
|
|
32
|
+
"name": "AuroBackToTop",
|
|
33
|
+
"module": "src/auro-backtotop.js"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"cssParts": [
|
|
38
|
+
{
|
|
39
|
+
"description": "Apply CSS to HTML5 button.",
|
|
40
|
+
"name": "button",
|
|
41
|
+
"inheritedFrom": {
|
|
42
|
+
"name": "AuroBackToTop",
|
|
43
|
+
"module": "src/auro-backtotop.js"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"description": "Apply CSS to arrow up icon.",
|
|
48
|
+
"name": "icon",
|
|
49
|
+
"inheritedFrom": {
|
|
50
|
+
"name": "AuroBackToTop",
|
|
51
|
+
"module": "src/auro-backtotop.js"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"attributes": [
|
|
56
|
+
{
|
|
57
|
+
"name": "disabled",
|
|
58
|
+
"type": {
|
|
59
|
+
"text": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"description": "Render the trigger inline, will always be visible.",
|
|
62
|
+
"fieldName": "disabled",
|
|
63
|
+
"inheritedFrom": {
|
|
64
|
+
"name": "AuroBackToTop",
|
|
65
|
+
"module": "src/auro-backtotop.js"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "hidden",
|
|
70
|
+
"type": {
|
|
71
|
+
"text": "boolean"
|
|
72
|
+
},
|
|
73
|
+
"fieldName": "hidden",
|
|
74
|
+
"inheritedFrom": {
|
|
75
|
+
"name": "AuroBackToTop",
|
|
76
|
+
"module": "src/auro-backtotop.js"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "interactionActive",
|
|
81
|
+
"type": {
|
|
82
|
+
"text": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"fieldName": "interactionActive",
|
|
85
|
+
"inheritedFrom": {
|
|
86
|
+
"name": "AuroBackToTop",
|
|
87
|
+
"module": "src/auro-backtotop.js"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "lastScrollDirectionUp",
|
|
92
|
+
"type": {
|
|
93
|
+
"text": "boolean"
|
|
94
|
+
},
|
|
95
|
+
"fieldName": "lastScrollDirectionUp",
|
|
96
|
+
"inheritedFrom": {
|
|
97
|
+
"name": "AuroBackToTop",
|
|
98
|
+
"module": "src/auro-backtotop.js"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "variant",
|
|
103
|
+
"type": {
|
|
104
|
+
"text": "string"
|
|
105
|
+
},
|
|
106
|
+
"description": "The variant attribute allows for rendering the button using the primary (default) or secondary styles.",
|
|
107
|
+
"default": "\"primary\"",
|
|
108
|
+
"fieldName": "variant",
|
|
109
|
+
"inheritedFrom": {
|
|
110
|
+
"name": "AuroBackToTop",
|
|
111
|
+
"module": "src/auro-backtotop.js"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"members": [
|
|
116
|
+
{
|
|
117
|
+
"kind": "field",
|
|
118
|
+
"name": "disabled",
|
|
119
|
+
"privacy": "public",
|
|
120
|
+
"type": {
|
|
121
|
+
"text": "boolean"
|
|
122
|
+
},
|
|
123
|
+
"description": "Render the trigger inline, will always be visible.",
|
|
124
|
+
"attribute": "disabled",
|
|
125
|
+
"reflects": true,
|
|
126
|
+
"inheritedFrom": {
|
|
127
|
+
"name": "AuroBackToTop",
|
|
128
|
+
"module": "src/auro-backtotop.js"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "field",
|
|
133
|
+
"name": "hidden",
|
|
134
|
+
"privacy": "public",
|
|
135
|
+
"type": {
|
|
136
|
+
"text": "boolean"
|
|
137
|
+
},
|
|
138
|
+
"attribute": "hidden",
|
|
139
|
+
"reflects": true,
|
|
140
|
+
"inheritedFrom": {
|
|
141
|
+
"name": "AuroBackToTop",
|
|
142
|
+
"module": "src/auro-backtotop.js"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"kind": "method",
|
|
147
|
+
"name": "initializeProperties",
|
|
148
|
+
"inheritedFrom": {
|
|
149
|
+
"name": "AuroBackToTop",
|
|
150
|
+
"module": "src/auro-backtotop.js"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"kind": "field",
|
|
155
|
+
"name": "interactionActive",
|
|
156
|
+
"privacy": "public",
|
|
157
|
+
"type": {
|
|
158
|
+
"text": "boolean"
|
|
159
|
+
},
|
|
160
|
+
"attribute": "interactionActive",
|
|
161
|
+
"inheritedFrom": {
|
|
162
|
+
"name": "AuroBackToTop",
|
|
163
|
+
"module": "src/auro-backtotop.js"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"kind": "field",
|
|
168
|
+
"name": "lastScrollDirectionUp",
|
|
169
|
+
"privacy": "public",
|
|
170
|
+
"type": {
|
|
171
|
+
"text": "boolean"
|
|
172
|
+
},
|
|
173
|
+
"attribute": "lastScrollDirectionUp",
|
|
174
|
+
"inheritedFrom": {
|
|
175
|
+
"name": "AuroBackToTop",
|
|
176
|
+
"module": "src/auro-backtotop.js"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"kind": "method",
|
|
181
|
+
"name": "onTriggerClick",
|
|
182
|
+
"privacy": "private",
|
|
183
|
+
"return": {
|
|
184
|
+
"type": {
|
|
185
|
+
"text": "void"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"inheritedFrom": {
|
|
189
|
+
"name": "AuroBackToTop",
|
|
190
|
+
"module": "src/auro-backtotop.js"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"kind": "method",
|
|
195
|
+
"name": "register",
|
|
196
|
+
"static": true,
|
|
197
|
+
"parameters": [
|
|
198
|
+
{
|
|
199
|
+
"name": "name",
|
|
200
|
+
"default": "\"auro-backtotop\"",
|
|
201
|
+
"description": "The name of element that you want to register to.",
|
|
202
|
+
"optional": true,
|
|
203
|
+
"type": {
|
|
204
|
+
"text": "string"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"description": "This will register this element with the browser.",
|
|
209
|
+
"inheritedFrom": {
|
|
210
|
+
"name": "AuroBackToTop",
|
|
211
|
+
"module": "src/auro-backtotop.js"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"kind": "method",
|
|
216
|
+
"name": "scrollTop",
|
|
217
|
+
"privacy": "private",
|
|
218
|
+
"return": {
|
|
219
|
+
"type": {
|
|
220
|
+
"text": "void"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"inheritedFrom": {
|
|
224
|
+
"name": "AuroBackToTop",
|
|
225
|
+
"module": "src/auro-backtotop.js"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"kind": "field",
|
|
230
|
+
"name": "variant",
|
|
231
|
+
"privacy": "public",
|
|
232
|
+
"type": {
|
|
233
|
+
"text": "string"
|
|
234
|
+
},
|
|
235
|
+
"description": "The variant attribute allows for rendering the button using the primary (default) or secondary styles.",
|
|
236
|
+
"default": "\"primary\"",
|
|
237
|
+
"attribute": "variant",
|
|
238
|
+
"reflects": true,
|
|
239
|
+
"inheritedFrom": {
|
|
240
|
+
"name": "AuroBackToTop",
|
|
241
|
+
"module": "src/auro-backtotop.js"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"exports": [
|
|
248
|
+
{
|
|
249
|
+
"kind": "custom-element-definition",
|
|
250
|
+
"name": "auro-backtotop",
|
|
251
|
+
"declaration": {
|
|
252
|
+
"name": "AuroBackToTopWCA",
|
|
253
|
+
"module": "scripts/wca/auro-backtotop.js"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
5
258
|
{
|
|
6
259
|
"kind": "javascript-module",
|
|
7
260
|
"path": "src/auro-backtotop.js",
|
|
8
261
|
"declarations": [
|
|
9
262
|
{
|
|
10
263
|
"kind": "class",
|
|
11
|
-
"description": "The
|
|
264
|
+
"description": "The auro-backtotop element provides users a way to quickly return to page top.",
|
|
12
265
|
"name": "AuroBackToTop",
|
|
13
266
|
"cssParts": [
|
|
14
267
|
{
|
|
@@ -31,13 +284,6 @@
|
|
|
31
284
|
}
|
|
32
285
|
],
|
|
33
286
|
"members": [
|
|
34
|
-
{
|
|
35
|
-
"kind": "method",
|
|
36
|
-
"name": "_initializeDefaults",
|
|
37
|
-
"type": {
|
|
38
|
-
"text": "_initializeDefaults() => void"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
287
|
{
|
|
42
288
|
"kind": "field",
|
|
43
289
|
"name": "disabled",
|
|
@@ -46,7 +292,6 @@
|
|
|
46
292
|
"text": "boolean"
|
|
47
293
|
},
|
|
48
294
|
"description": "Render the trigger inline, will always be visible.",
|
|
49
|
-
"default": "false",
|
|
50
295
|
"attribute": "disabled",
|
|
51
296
|
"reflects": true
|
|
52
297
|
},
|
|
@@ -57,7 +302,12 @@
|
|
|
57
302
|
"type": {
|
|
58
303
|
"text": "boolean"
|
|
59
304
|
},
|
|
60
|
-
"attribute": "hidden"
|
|
305
|
+
"attribute": "hidden",
|
|
306
|
+
"reflects": true
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"kind": "method",
|
|
310
|
+
"name": "initializeProperties"
|
|
61
311
|
},
|
|
62
312
|
{
|
|
63
313
|
"kind": "field",
|
|
@@ -95,17 +345,14 @@
|
|
|
95
345
|
{
|
|
96
346
|
"name": "name",
|
|
97
347
|
"default": "\"auro-backtotop\"",
|
|
98
|
-
"description": "The name of
|
|
348
|
+
"description": "The name of element that you want to register to.",
|
|
99
349
|
"optional": true,
|
|
100
350
|
"type": {
|
|
101
351
|
"text": "string"
|
|
102
352
|
}
|
|
103
353
|
}
|
|
104
354
|
],
|
|
105
|
-
"description": "This will register this element with the browser."
|
|
106
|
-
"type": {
|
|
107
|
-
"text": "register(name?: string = \"auro-backtotop\") => void"
|
|
108
|
-
}
|
|
355
|
+
"description": "This will register this element with the browser."
|
|
109
356
|
},
|
|
110
357
|
{
|
|
111
358
|
"kind": "method",
|
|
@@ -122,10 +369,10 @@
|
|
|
122
369
|
"name": "variant",
|
|
123
370
|
"privacy": "public",
|
|
124
371
|
"type": {
|
|
125
|
-
"text": "
|
|
372
|
+
"text": "string"
|
|
126
373
|
},
|
|
127
374
|
"description": "The variant attribute allows for rendering the button using the primary (default) or secondary styles.",
|
|
128
|
-
"default": "
|
|
375
|
+
"default": "\"primary\"",
|
|
129
376
|
"attribute": "variant",
|
|
130
377
|
"reflects": true
|
|
131
378
|
}
|
|
@@ -137,7 +384,6 @@
|
|
|
137
384
|
"text": "boolean"
|
|
138
385
|
},
|
|
139
386
|
"description": "Render the trigger inline, will always be visible.",
|
|
140
|
-
"default": "false",
|
|
141
387
|
"fieldName": "disabled"
|
|
142
388
|
},
|
|
143
389
|
{
|
|
@@ -164,10 +410,10 @@
|
|
|
164
410
|
{
|
|
165
411
|
"name": "variant",
|
|
166
412
|
"type": {
|
|
167
|
-
"text": "
|
|
413
|
+
"text": "string"
|
|
168
414
|
},
|
|
169
415
|
"description": "The variant attribute allows for rendering the button using the primary (default) or secondary styles.",
|
|
170
|
-
"default": "
|
|
416
|
+
"default": "\"primary\"",
|
|
171
417
|
"fieldName": "variant"
|
|
172
418
|
}
|
|
173
419
|
],
|
|
@@ -175,9 +421,7 @@
|
|
|
175
421
|
"name": "LitElement",
|
|
176
422
|
"package": "lit"
|
|
177
423
|
},
|
|
178
|
-
"
|
|
179
|
-
"customElement": true,
|
|
180
|
-
"modulePath": "src/auro-backtotop.js"
|
|
424
|
+
"customElement": true
|
|
181
425
|
}
|
|
182
426
|
],
|
|
183
427
|
"exports": [
|