@aurodesignsystem-dev/auro-table 0.0.0-pr134.0 → 0.0.0-pr135.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 CHANGED
@@ -15,71 +15,260 @@ The following sections are editable by making changes to the following files:
15
15
  | Use Cases | Examples for when to use this component | `./docs/partials/useCases.md` |
16
16
  | Additional Information | For use to add any component specific information | `./docs/partials/readmeAddlInfo.md` |
17
17
  | Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` |
18
- -->
19
-
20
- # {{ capitalize name }}
18
+ -->
19
+
20
+ # Table
21
21
 
22
22
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
23
- <!-- AURO-GENERATED-CONTENT:END -->
24
-
23
+ <!-- The below content is automatically added from ./docs/partials/description.md -->
24
+ Use the `auro-table` custom element to illustrate tabular data or content. The auro-table element is responsive, with a flexible layout and an easy-to-use JSON API.
25
+ <!-- AURO-GENERATED-CONTENT:END -->
25
26
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
26
- <!-- AURO-GENERATED-CONTENT:END -->
27
-
27
+ <!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
28
+ <!-- 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. -->
29
+ <!-- AURO-GENERATED-CONTENT:END -->
30
+
28
31
  ## UI development browser support
29
32
 
30
33
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/browserSupport.md) -->
31
- <!-- AURO-GENERATED-CONTENT:END -->
34
+ For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
32
35
 
36
+ <!-- AURO-GENERATED-CONTENT:END -->
37
+
33
38
  ## Install
34
39
 
35
40
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentInstall.md) -->
36
- <!-- AURO-GENERATED-CONTENT:END -->
41
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/auro-table/testPublish.yml?style=for-the-badge)](https://github.com/AlaskaAirlines/auro-table/actions/workflows/testPublish.yml)
42
+ [![See it on NPM!](https://img.shields.io/npm/v/@aurodesignsystem/auro-table?style=for-the-badge&color=orange)](https://www.npmjs.com/package/@aurodesignsystem/auro-table)
43
+ [![License](https://img.shields.io/npm/l/@aurodesignsystem/auro-table?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0)
44
+ ![ESM supported](https://img.shields.io/badge/ESM-compatible-FFE900?style=for-the-badge)
45
+
46
+ ```shell
47
+ $ npm i @aurodesignsystem/auro-table
48
+ ```
37
49
 
50
+ <!-- AURO-GENERATED-CONTENT:END -->
51
+
38
52
  ### Design Token CSS Custom Property dependency
39
53
 
40
54
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/designTokens.md) -->
41
- <!-- AURO-GENERATED-CONTENT:END -->
55
+ The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
42
56
 
57
+ <!-- AURO-GENERATED-CONTENT:END -->
58
+
43
59
  ### Define dependency in project component
44
60
 
45
61
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
46
- <!-- AURO-GENERATED-CONTENT:END -->
62
+ Defining the component dependency within each component that is using the `<auro-table>` component.
47
63
 
48
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
49
- <!-- AURO-GENERATED-CONTENT:END -->
64
+ <!-- AURO-GENERATED-CONTENT:END -->
65
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
66
+
67
+ ```js
68
+ import "@aurodesignsystem/auro-table";
69
+ ```
50
70
 
71
+ <!-- AURO-GENERATED-CONTENT:END -->
51
72
  **Reference component in HTML**
52
73
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
53
- <!-- AURO-GENERATED-CONTENT:END -->
54
-
74
+ <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
75
+
76
+ ```html
77
+ <auro-table
78
+ columnHeaders='["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]'
79
+ componentData='[
80
+ {"": "Dance class", "Monday": "5:00pm","Wednesday": "5:00pm" },
81
+ {"": "Night classes", "Thursday": "7:00pm","Friday": "7:00pm" },
82
+ {"": "Team meeting", "Wednesday": "10:00am" },
83
+ {"": "Morning workout", "Monday": "8:00am", "Tuesday": "8:00am", "Wednesday": "8:00am", "Thursday": "8:00am", "Friday": "8:00am" }
84
+ ]'
85
+ >
86
+ </auro-table>
87
+ <auro-table>
88
+ <table>
89
+ <thead>
90
+ <tr>
91
+ <th></th>
92
+ <th>Monday</th>
93
+ <th>Tuesday</th>
94
+ <th>Wednesday</th>
95
+ <th>Thursday</th>
96
+ <th>Friday</th>
97
+ <th>Saturday</th>
98
+ <th>Sunday</th>
99
+ </tr>
100
+ </thead>
101
+ <tbody>
102
+ <tr>
103
+ <td>Dance class</td>
104
+ <td>5:00pm</td>
105
+ <td></td>
106
+ <td>5:00pm</td>
107
+ <td></td>
108
+ <td></td>
109
+ <td></td>
110
+ <td></td>
111
+ </tr>
112
+ <tr>
113
+ <td>Night classes</td>
114
+ <td></td>
115
+ <td></td>
116
+ <td></td>
117
+ <td>7:00pm</td>
118
+ <td>7:00pm</td>
119
+ <td></td>
120
+ <td></td>
121
+ </tr>
122
+ <tr>
123
+ <td>Team meeting</td>
124
+ <td></td>
125
+ <td></td>
126
+ <td>10:00am</td>
127
+ <td></td>
128
+ <td></td>
129
+ <td></td>
130
+ <td></td>
131
+ </tr>
132
+ <tr>
133
+ <td>Morning workout</td>
134
+ <td>8:00am</td>
135
+ <td>8:00am</td>
136
+ <td>8:00am</td>
137
+ <td>8:00am</td>
138
+ <td>8:00am</td>
139
+ <td></td>
140
+ <td></td>
141
+ </tr>
142
+ </tbody>
143
+ </table>
144
+ </auro-table>
145
+ ```
146
+ <!-- AURO-GENERATED-CONTENT:END -->
147
+
55
148
  ## Use CDN
56
149
 
57
150
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
58
- <!-- AURO-GENERATED-CONTENT:END -->
151
+ 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.
59
152
 
60
- ## {{ withAuroNamespace name }} use cases
153
+ ```html
154
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-table@latest/+esm"></script>
155
+ ```
61
156
 
62
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
63
- <!-- AURO-GENERATED-CONTENT:END -->
157
+ <!-- AURO-GENERATED-CONTENT:END -->
158
+
159
+ ## auro-table use cases
64
160
 
65
- ## API Code Examples
161
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
162
+ <!-- The below content is automatically added from ./docs/partials/useCases.md -->
163
+ The `<auro-table>` element should be used in situations where users may:
66
164
 
67
- ### Default {{ withAuroNamespace name }}
165
+ * Show static or dynamic tabular data or content
166
+ <!-- AURO-GENERATED-CONTENT:END -->
167
+
168
+ ## API Code Examples
169
+
170
+ ### Default auro-table
68
171
 
69
172
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
70
- <!-- AURO-GENERATED-CONTENT:END -->
71
-
173
+ <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
174
+
175
+ ```html
176
+ <auro-table
177
+ columnHeaders='["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]'
178
+ componentData='[
179
+ {"": "Dance class", "Monday": "5:00pm","Wednesday": "5:00pm" },
180
+ {"": "Night classes", "Thursday": "7:00pm","Friday": "7:00pm" },
181
+ {"": "Team meeting", "Wednesday": "10:00am" },
182
+ {"": "Morning workout", "Monday": "8:00am", "Tuesday": "8:00am", "Wednesday": "8:00am", "Thursday": "8:00am", "Friday": "8:00am" }
183
+ ]'
184
+ >
185
+ </auro-table>
186
+ <auro-table>
187
+ <table>
188
+ <thead>
189
+ <tr>
190
+ <th></th>
191
+ <th>Monday</th>
192
+ <th>Tuesday</th>
193
+ <th>Wednesday</th>
194
+ <th>Thursday</th>
195
+ <th>Friday</th>
196
+ <th>Saturday</th>
197
+ <th>Sunday</th>
198
+ </tr>
199
+ </thead>
200
+ <tbody>
201
+ <tr>
202
+ <td>Dance class</td>
203
+ <td>5:00pm</td>
204
+ <td></td>
205
+ <td>5:00pm</td>
206
+ <td></td>
207
+ <td></td>
208
+ <td></td>
209
+ <td></td>
210
+ </tr>
211
+ <tr>
212
+ <td>Night classes</td>
213
+ <td></td>
214
+ <td></td>
215
+ <td></td>
216
+ <td>7:00pm</td>
217
+ <td>7:00pm</td>
218
+ <td></td>
219
+ <td></td>
220
+ </tr>
221
+ <tr>
222
+ <td>Team meeting</td>
223
+ <td></td>
224
+ <td></td>
225
+ <td>10:00am</td>
226
+ <td></td>
227
+ <td></td>
228
+ <td></td>
229
+ <td></td>
230
+ </tr>
231
+ <tr>
232
+ <td>Morning workout</td>
233
+ <td>8:00am</td>
234
+ <td>8:00am</td>
235
+ <td>8:00am</td>
236
+ <td>8:00am</td>
237
+ <td>8:00am</td>
238
+ <td></td>
239
+ <td></td>
240
+ </tr>
241
+ </tbody>
242
+ </table>
243
+ </auro-table>
244
+ ```
245
+ <!-- AURO-GENERATED-CONTENT:END -->
246
+
72
247
  ## Development
73
248
 
74
249
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/developmentDescription.md) -->
75
- <!-- AURO-GENERATED-CONTENT:END -->
250
+ 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.
251
+
252
+ 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.
76
253
 
254
+ <!-- AURO-GENERATED-CONTENT:END -->
255
+
77
256
  ### Start development environment
78
257
 
79
258
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/localhost.md) -->
80
- <!-- AURO-GENERATED-CONTENT:END -->
259
+ 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**.
81
260
 
261
+ ```shell
262
+ $ npm run dev
263
+ ```
264
+
265
+ Open [localhost:8000](http://localhost:8000/)
266
+
267
+ <!-- AURO-GENERATED-CONTENT:END -->
268
+
82
269
  ### Testing
83
270
 
84
271
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/testing.md) -->
272
+ Automated tests are required for every Auro component. See `.\test\auro-table.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.
273
+
85
274
  <!-- AURO-GENERATED-CONTENT:END -->