@public-ui/vue 1.7.15 → 1.7.17

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
@@ -2,6 +2,11 @@
2
2
 
3
3
  const vue = require('vue');
4
4
 
5
+ let tagNameTransformer;
6
+ const setTagNameTransformer = (_tagNameTransformer) => {
7
+ tagNameTransformer = _tagNameTransformer;
8
+ };
9
+
5
10
  const UPDATE_VALUE_EVENT = "update:modelValue";
6
11
  const MODEL_VALUE = "modelValue";
7
12
  const ROUTER_LINK_VALUE = "routerLink";
@@ -95,7 +100,8 @@ const defineContainer = (name, defineCustomElement, componentProps = [], modelPr
95
100
  };
96
101
  }
97
102
  }
98
- const node = vue.h(name, propsToAdd, slots.default && slots.default());
103
+ const newTagName = typeof tagNameTransformer === "function" ? tagNameTransformer(name) : name;
104
+ const node = vue.h(newTagName, propsToAdd, slots.default && slots.default());
99
105
  return modelProp === void 0 ? node : vue.withDirectives(node, [[vModelDirective]]);
100
106
  };
101
107
  });
@@ -831,3 +837,4 @@ exports.KolTextarea = KolTextarea;
831
837
  exports.KolToast = KolToast;
832
838
  exports.KolToastContainer = KolToastContainer;
833
839
  exports.KolVersion = KolVersion;
840
+ exports.setTagNameTransformer = setTagNameTransformer;
package/dist/index.d.ts CHANGED
@@ -5,6 +5,9 @@ interface InputProps<T> {
5
5
  modelValue?: T;
6
6
  }
7
7
 
8
+ type TagNameTransformer = (tagName: string) => string;
9
+ declare const setTagNameTransformer: (_tagNameTransformer: TagNameTransformer) => void;
10
+
8
11
  declare const KolAbbr: vue.DefineSetupFnComponent<JSX.KolAbbr & InputProps<string | number | boolean>, {}, {}, JSX.KolAbbr & InputProps<string | number | boolean> & {}, vue.PublicProps>;
9
12
  declare const KolAccordion: vue.DefineSetupFnComponent<JSX.KolAccordion & InputProps<string | number | boolean>, {}, {}, JSX.KolAccordion & InputProps<string | number | boolean> & {}, vue.PublicProps>;
10
13
  declare const KolAlert: vue.DefineSetupFnComponent<JSX.KolAlert & InputProps<string | number | boolean>, {}, {}, JSX.KolAlert & InputProps<string | number | boolean> & {}, vue.PublicProps>;
@@ -57,4 +60,4 @@ declare const KolToast: vue.DefineSetupFnComponent<JSX.KolToast & InputProps<str
57
60
  declare const KolToastContainer: vue.DefineSetupFnComponent<JSX.KolToastContainer & InputProps<string | number | boolean>, {}, {}, JSX.KolToastContainer & InputProps<string | number | boolean> & {}, vue.PublicProps>;
58
61
  declare const KolVersion: vue.DefineSetupFnComponent<JSX.KolVersion & InputProps<string | number | boolean>, {}, {}, JSX.KolVersion & InputProps<string | number | boolean> & {}, vue.PublicProps>;
59
62
 
60
- export { KolAbbr, KolAccordion, KolAlert, KolAvatar, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolIconFontAwesome, KolIconIcofont, KolImage, KolIndentedText, KolInputAdapterLeanup, KolInputCheckbox, KolInputColor, KolInputDate, KolInputEmail, KolInputFile, KolInputNumber, KolInputPassword, KolInputRadio, KolInputRange, KolInputText, KolKolibri, KolLink, KolLinkButton, KolLinkGroup, KolLogo, KolModal, KolNav, KolPagination, KolProgress, KolQuote, KolSelect, KolSkipNav, KolSpan, KolSpin, KolSplitButton, KolSymbol, KolTable, KolTabs, KolTextarea, KolToast, KolToastContainer, KolVersion };
63
+ export { KolAbbr, KolAccordion, KolAlert, KolAvatar, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolIconFontAwesome, KolIconIcofont, KolImage, KolIndentedText, KolInputAdapterLeanup, KolInputCheckbox, KolInputColor, KolInputDate, KolInputEmail, KolInputFile, KolInputNumber, KolInputPassword, KolInputRadio, KolInputRange, KolInputText, KolKolibri, KolLink, KolLinkButton, KolLinkGroup, KolLogo, KolModal, KolNav, KolPagination, KolProgress, KolQuote, KolSelect, KolSkipNav, KolSpan, KolSpin, KolSplitButton, KolSymbol, KolTable, KolTabs, KolTextarea, KolToast, KolToastContainer, KolVersion, setTagNameTransformer };
package/dist/index.mjs CHANGED
@@ -1,5 +1,10 @@
1
1
  import { defineComponent, ref, getCurrentInstance, inject, h, withDirectives } from 'vue';
2
2
 
3
+ let tagNameTransformer;
4
+ const setTagNameTransformer = (_tagNameTransformer) => {
5
+ tagNameTransformer = _tagNameTransformer;
6
+ };
7
+
3
8
  const UPDATE_VALUE_EVENT = "update:modelValue";
4
9
  const MODEL_VALUE = "modelValue";
5
10
  const ROUTER_LINK_VALUE = "routerLink";
@@ -93,7 +98,8 @@ const defineContainer = (name, defineCustomElement, componentProps = [], modelPr
93
98
  };
94
99
  }
95
100
  }
96
- const node = h(name, propsToAdd, slots.default && slots.default());
101
+ const newTagName = typeof tagNameTransformer === "function" ? tagNameTransformer(name) : name;
102
+ const node = h(newTagName, propsToAdd, slots.default && slots.default());
97
103
  return modelProp === void 0 ? node : withDirectives(node, [[vModelDirective]]);
98
104
  };
99
105
  });
@@ -778,4 +784,4 @@ const KolVersion = /* @__PURE__ */ defineContainer("kol-version", void 0, [
778
784
  "_version"
779
785
  ]);
780
786
 
781
- export { KolAbbr, KolAccordion, KolAlert, KolAvatar, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolIconFontAwesome, KolIconIcofont, KolImage, KolIndentedText, KolInputAdapterLeanup, KolInputCheckbox, KolInputColor, KolInputDate, KolInputEmail, KolInputFile, KolInputNumber, KolInputPassword, KolInputRadio, KolInputRange, KolInputText, KolKolibri, KolLink, KolLinkButton, KolLinkGroup, KolLogo, KolModal, KolNav, KolPagination, KolProgress, KolQuote, KolSelect, KolSkipNav, KolSpan, KolSpin, KolSplitButton, KolSymbol, KolTable, KolTabs, KolTextarea, KolToast, KolToastContainer, KolVersion };
787
+ export { KolAbbr, KolAccordion, KolAlert, KolAvatar, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolIconFontAwesome, KolIconIcofont, KolImage, KolIndentedText, KolInputAdapterLeanup, KolInputCheckbox, KolInputColor, KolInputDate, KolInputEmail, KolInputFile, KolInputNumber, KolInputPassword, KolInputRadio, KolInputRange, KolInputText, KolKolibri, KolLink, KolLinkButton, KolLinkGroup, KolLogo, KolModal, KolNav, KolPagination, KolProgress, KolQuote, KolSelect, KolSkipNav, KolSpan, KolSpin, KolSplitButton, KolSymbol, KolTable, KolTabs, KolTextarea, KolToast, KolToastContainer, KolVersion, setTagNameTransformer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/vue",
3
- "version": "1.7.15",
3
+ "version": "1.7.17",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": "https://github.com/public-ui/kolibri",
@@ -43,17 +43,17 @@
43
43
  ],
44
44
  "devDependencies": {
45
45
  "@babel/types": "7.24.0",
46
- "@public-ui/components": "1.7.15",
46
+ "@public-ui/components": "1.7.17",
47
47
  "@types/minimatch": "5.1.2",
48
48
  "@types/minimist": "1.2.5",
49
- "@types/node": "ts5.3",
49
+ "@types/node": "ts5.4",
50
50
  "@types/normalize-package-data": "2.4.4",
51
- "typescript": "5.4.2",
51
+ "typescript": "5.4.3",
52
52
  "unbuild": "1.2.1",
53
53
  "vue": "3.4.21"
54
54
  },
55
55
  "peerDependencies": {
56
- "@public-ui/components": "1.7.15",
56
+ "@public-ui/components": "1.7.17",
57
57
  "vue": ">=3"
58
58
  },
59
59
  "sideEffects": false,