@public-ui/vue 1.2.0-rc.2 → 1.2.0-rc.4

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/dist/index.cjs CHANGED
@@ -7,13 +7,16 @@ const MODEL_VALUE = "modelValue";
7
7
  const ROUTER_LINK_VALUE = "routerLink";
8
8
  const NAV_MANAGER = "navManager";
9
9
  const ROUTER_PROP_PREFIX = "router";
10
+ const ARIA_PROP_PREFIX = "aria";
10
11
  const EMPTY_PROP = Symbol();
11
12
  const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
12
13
  const getComponentClasses = (classes) => {
13
14
  return classes?.split(" ") || [];
14
15
  };
15
16
  const getElementClasses = (ref2, componentClasses, defaultClasses = []) => {
16
- return [...Array.from(ref2.value?.classList || []), ...defaultClasses].filter((c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i);
17
+ return [...Array.from(ref2.value?.classList || []), ...defaultClasses].filter(
18
+ (c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i
19
+ );
17
20
  };
18
21
  const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent, externalModelUpdateEvent) => {
19
22
  if (defineCustomElement !== void 0) {
@@ -79,7 +82,7 @@ const defineContainer = (name, defineCustomElement, componentProps = [], modelPr
79
82
  };
80
83
  for (const key in props) {
81
84
  const value = props[key];
82
- if (props.hasOwnProperty(key) && value !== EMPTY_PROP) {
85
+ if (props.hasOwnProperty(key) && value !== EMPTY_PROP || key.startsWith(ARIA_PROP_PREFIX)) {
83
86
  propsToAdd[key] = value;
84
87
  }
85
88
  }
package/dist/index.mjs CHANGED
@@ -5,13 +5,16 @@ const MODEL_VALUE = "modelValue";
5
5
  const ROUTER_LINK_VALUE = "routerLink";
6
6
  const NAV_MANAGER = "navManager";
7
7
  const ROUTER_PROP_PREFIX = "router";
8
+ const ARIA_PROP_PREFIX = "aria";
8
9
  const EMPTY_PROP = Symbol();
9
10
  const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
10
11
  const getComponentClasses = (classes) => {
11
12
  return classes?.split(" ") || [];
12
13
  };
13
14
  const getElementClasses = (ref2, componentClasses, defaultClasses = []) => {
14
- return [...Array.from(ref2.value?.classList || []), ...defaultClasses].filter((c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i);
15
+ return [...Array.from(ref2.value?.classList || []), ...defaultClasses].filter(
16
+ (c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i
17
+ );
15
18
  };
16
19
  const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent, externalModelUpdateEvent) => {
17
20
  if (defineCustomElement !== void 0) {
@@ -77,7 +80,7 @@ const defineContainer = (name, defineCustomElement, componentProps = [], modelPr
77
80
  };
78
81
  for (const key in props) {
79
82
  const value = props[key];
80
- if (props.hasOwnProperty(key) && value !== EMPTY_PROP) {
83
+ if (props.hasOwnProperty(key) && value !== EMPTY_PROP || key.startsWith(ARIA_PROP_PREFIX)) {
81
84
  propsToAdd[key] = value;
82
85
  }
83
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/vue",
3
- "version": "1.2.0-rc.2",
3
+ "version": "1.2.0-rc.4",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": "https://github.com/public-ui/kolibri",
@@ -47,8 +47,8 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@babel/types": "7.20.7",
50
- "@public-ui/core": "1.2.0",
51
- "@public-ui/components": "1.2.0-rc.2",
50
+ "@public-ui/core": "1.3.0-rc.3",
51
+ "@public-ui/components": "1.2.0-rc.4",
52
52
  "@types/minimatch": "5.1.2",
53
53
  "@types/minimist": "1.2.2",
54
54
  "@types/node": "18.11.18",
@@ -58,7 +58,7 @@
58
58
  "unbuild": "1.1.1"
59
59
  },
60
60
  "peerDependencies": {
61
- "@public-ui/components": "1.2.0-rc.2",
61
+ "@public-ui/components": "1.2.0-rc.4",
62
62
  "vue": ">=3"
63
63
  },
64
64
  "sideEffects": false,