be-intl 0.0.22 → 0.0.24

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/be-intl.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { XE } from 'xtal-element/XE.js';
2
- import { register } from 'be-hive/register.js';
3
2
  import { BeValueAdded, beValueAddedActions, beValueAddedPropDefaults, beValueAddedPropInfo } from 'be-value-added/be-value-added.js';
4
3
  export class BeIntl extends BeValueAdded {
5
4
  static get beConfig() {
@@ -13,6 +12,8 @@ export class BeIntl extends BeValueAdded {
13
12
  hydrate(self) {
14
13
  const { enhancedElement } = self;
15
14
  const returnObj = super.hydrate(self);
15
+ if (!(enhancedElement instanceof HTMLElement))
16
+ return returnObj;
16
17
  const { observeAttr } = self;
17
18
  if (observeAttr) {
18
19
  const mutOptions = {
@@ -64,9 +65,7 @@ export class BeIntl extends BeValueAdded {
64
65
  }
65
66
  }
66
67
  const defaultLocale = new Intl.NumberFormat().resolvedOptions().locale;
67
- const tagName = 'be-intl';
68
- const ifWantsToBe = 'intl';
69
- const upgrade = 'data,time,output';
68
+ export const tagName = 'be-intl';
70
69
  const xe = new XE({
71
70
  config: {
72
71
  tagName,
@@ -94,4 +93,3 @@ const xe = new XE({
94
93
  },
95
94
  superclass: BeIntl
96
95
  });
97
- register(ifWantsToBe, upgrade, tagName);
package/behivior.js ADDED
@@ -0,0 +1,6 @@
1
+ import { register } from 'be-hive/register.js';
2
+ import { tagName } from './be-intl.js';
3
+ import './be-intl.js';
4
+ const ifWantsToBe = 'intl';
5
+ const upgrade = 'data,time,output';
6
+ register(ifWantsToBe, upgrade, tagName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-intl",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",
@@ -26,16 +26,16 @@
26
26
  "update": "ncu -u && npm install"
27
27
  },
28
28
  "dependencies": {
29
- "be-enhanced": "0.0.62",
30
- "be-hive": "0.0.133",
31
- "be-propagating": "0.0.32",
32
- "be-value-added": "0.0.22",
33
- "trans-render": "0.0.732",
34
- "xtal-element": "0.0.591"
29
+ "be-enhanced": "0.0.72",
30
+ "be-hive": "0.0.140",
31
+ "be-propagating": "0.0.34",
32
+ "be-value-added": "0.0.24",
33
+ "trans-render": "0.0.746",
34
+ "xtal-element": "0.0.599"
35
35
  },
36
36
  "devDependencies": {
37
37
  "may-it-serve": "0.0.6",
38
- "@playwright/test": "1.41.0"
38
+ "@playwright/test": "1.42.1"
39
39
  },
40
40
  "author": "anderson.bruce.b@gmail.com",
41
41
  "license": "MIT"
package/types.d.ts CHANGED
@@ -5,6 +5,7 @@ import {BVAEndUserProps, BVAAllProps} from 'be-value-added/types';
5
5
  export interface EndUserProps extends BVAEndUserProps{
6
6
  format?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions,
7
7
  locale?: string;
8
+ observeAttr?: string;
8
9
  }
9
10
 
10
11
  export interface AllProps extends EndUserProps, BVAAllProps{