@aurodesignsystem-dev/auro-datetime 0.0.0-pr111.0 → 0.0.0-pr112.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 +30 -41
- package/custom-elements.json +373 -0
- package/demo/api.md +251 -232
- package/demo/api.min.js +595 -1
- package/demo/index.md +24 -25
- package/demo/index.min.js +595 -1
- package/demo/readme.md +117 -0
- package/dist/auro-datetime-CRsYbYbt.js +6 -0
- package/dist/index.d.ts +75 -71
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +8 -6
- package/demo/auro-datetime.min.js +0 -608
- package/dist/auro-datetime-39FU0ZIU.js +0 -6
package/demo/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
THIS PAGE'S CONTENT SHOULD BE KEPT MINIMAL.
|
|
3
|
-
ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE
|
|
3
|
+
ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE. THE BASIC EXAMPLE IS USUALLY ENOUGH.
|
|
4
4
|
ALL OTHER EXAMPLES SHOULD GO IN THE API DOCUMENTATION.
|
|
5
5
|
-->
|
|
6
6
|
|
|
@@ -8,53 +8,52 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
|
|
10
10
|
<!-- The below content is automatically added from ./../docs/partials/description.md -->
|
|
11
|
-
The `<auro-datetime>`
|
|
11
|
+
The `<auro-datetime>` element shows a date or time as text, formatted for a language and region you choose and, optionally, a specific time zone. Set `type` to choose the full date, the time, a numeric date, or a single part, such as the weekday.
|
|
12
12
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
13
13
|
|
|
14
|
-
## Use
|
|
14
|
+
## Use cases
|
|
15
15
|
|
|
16
16
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
|
|
17
17
|
<!-- The below content is automatically added from ./../docs/partials/useCases.md -->
|
|
18
|
-
|
|
18
|
+
Use `<auro-datetime>` to:
|
|
19
19
|
|
|
20
|
-
*
|
|
20
|
+
* Show a date or time, such as a departure date or arrival time.
|
|
21
|
+
* Show a time in a specific time zone, such as a flight's local time at its airport.
|
|
22
|
+
* Format a date for a language and region, such as `de-DE` or `ja-JP`.
|
|
21
23
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
22
24
|
|
|
23
|
-
##
|
|
25
|
+
## Examples
|
|
26
|
+
|
|
27
|
+
### Basic
|
|
24
28
|
|
|
25
29
|
<div class="exampleWrapper">
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
31
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
32
|
+
<auro-datetime type="date"></auro-datetime>
|
|
33
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
30
34
|
</div>
|
|
31
35
|
<auro-accordion alignRight>
|
|
32
|
-
|
|
36
|
+
<span slot="trigger">See code</span>
|
|
33
37
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
34
38
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
<auro-datetime type="date"></auro-datetime>
|
|
38
|
-
```
|
|
40
|
+
<pre class="language-html"><code class="language-html"><auro-datetime type="date"></auro-datetime></code></pre>
|
|
39
41
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
40
42
|
</auro-accordion>
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
### Time
|
|
43
45
|
|
|
44
46
|
<div class="exampleWrapper">
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-time.html) -->
|
|
48
|
+
<!-- The below content is automatically added from ./../apiExamples/basic-time.html -->
|
|
49
|
+
<auro-datetime type="time"></auro-datetime>
|
|
50
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
49
51
|
</div>
|
|
50
52
|
<auro-accordion alignRight>
|
|
51
|
-
|
|
53
|
+
<span slot="trigger">See code</span>
|
|
52
54
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-time.html) -->
|
|
53
55
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic-time.html -->
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
<auro-datetime type="time"></auro-datetime>
|
|
57
|
-
```
|
|
57
|
+
<pre class="language-html"><code class="language-html"><auro-datetime type="time"></auro-datetime></code></pre>
|
|
58
58
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
59
|
-
</auro-accordion>
|
|
60
|
-
|
|
59
|
+
</auro-accordion>
|