be-intl 0.0.1 → 0.0.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.
- package/README.md +10 -0
- package/be-intl.js +10 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -17,6 +17,16 @@ emits
|
|
|
17
17
|
<data value=123456.789 lang="de-DE" be-intl='{ "style": "currency", "currency": "EUR" }'>123.456,79 €</data>
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
```html
|
|
21
|
+
<time lang="ar-EG" datetime=2011-11-18T14:54:39.929Z be-intl='{ "weekday": "long", "year": "numeric", "month": "long", "day": "numeric" }'></time>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
emits
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<time lang="ar-EG" datetime="2011-11-18T14:54:39.929Z" be-intl="{ "weekday": "long", "year": "numeric", "month": "long", "day": "numeric" }">الجمعة، ١٨ نوفمبر ٢٠١١</time>
|
|
28
|
+
```
|
|
29
|
+
|
|
20
30
|
## Viewing Locally
|
|
21
31
|
|
|
22
32
|
1. Install git.
|
package/be-intl.js
CHANGED
|
@@ -84,11 +84,13 @@ export class BeIntl extends BE {
|
|
|
84
84
|
switch (enhancedElement.localName) {
|
|
85
85
|
case 'time':
|
|
86
86
|
return {
|
|
87
|
-
intlDateFormat: new Intl.DateTimeFormat(locale, format)
|
|
87
|
+
intlDateFormat: new Intl.DateTimeFormat(locale, format),
|
|
88
|
+
resolved: true
|
|
88
89
|
};
|
|
89
90
|
default:
|
|
90
91
|
return {
|
|
91
|
-
intlNumberFormat: new Intl.NumberFormat(locale, format)
|
|
92
|
+
intlNumberFormat: new Intl.NumberFormat(locale, format),
|
|
93
|
+
resolved: true
|
|
92
94
|
};
|
|
93
95
|
}
|
|
94
96
|
}
|
|
@@ -104,7 +106,12 @@ const xe = new XE({
|
|
|
104
106
|
...propDefaults,
|
|
105
107
|
},
|
|
106
108
|
propInfo: {
|
|
107
|
-
...propInfo
|
|
109
|
+
...propInfo,
|
|
110
|
+
value: {
|
|
111
|
+
notify: {
|
|
112
|
+
dispatch: true
|
|
113
|
+
}
|
|
114
|
+
}
|
|
108
115
|
},
|
|
109
116
|
actions: {
|
|
110
117
|
formatNumber: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "be-intl",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"web-components",
|
|
6
6
|
"web-component",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"safari": "npx playwright wk http://localhost:3030"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"be-enhanced": "0.0.
|
|
29
|
-
"be-hive": "0.0.
|
|
30
|
-
"be-propagating": "0.0.
|
|
28
|
+
"be-enhanced": "0.0.23",
|
|
29
|
+
"be-hive": "0.0.96",
|
|
30
|
+
"be-propagating": "0.0.11",
|
|
31
31
|
"trans-render": "0.0.683",
|
|
32
|
-
"xtal-element": "0.0.
|
|
32
|
+
"xtal-element": "0.0.563"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"may-it-serve": "0.0.5",
|
|
36
36
|
"@playwright/test": "1.34.3"
|
|
37
37
|
},
|
|
38
|
-
"author": "",
|
|
38
|
+
"author": "anderson.bruce.b@gmail.com",
|
|
39
39
|
"license": "MIT"
|
|
40
40
|
}
|