@public-ui/vue 2.0.8 → 2.0.10

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
  });
@@ -238,6 +244,7 @@ const KolInputCheckbox = /* @__PURE__ */ defineContainer("kol-input-checkbox", v
238
244
  "_id",
239
245
  "_indeterminate",
240
246
  "_label",
247
+ "_msg",
241
248
  "_name",
242
249
  "_on",
243
250
  "_required",
@@ -260,6 +267,7 @@ const KolInputColor = /* @__PURE__ */ defineContainer("kol-input-color", void 0,
260
267
  "_icons",
261
268
  "_id",
262
269
  "_label",
270
+ "_msg",
263
271
  "_name",
264
272
  "_on",
265
273
  "_smartButton",
@@ -284,6 +292,7 @@ const KolInputDate = /* @__PURE__ */ defineContainer("kol-input-date", void 0, [
284
292
  "_label",
285
293
  "_max",
286
294
  "_min",
295
+ "_msg",
287
296
  "_name",
288
297
  "_on",
289
298
  "_readOnly",
@@ -312,6 +321,7 @@ const KolInputEmail = /* @__PURE__ */ defineContainer("kol-input-email", void 0,
312
321
  "_id",
313
322
  "_label",
314
323
  "_maxLength",
324
+ "_msg",
315
325
  "_multiple",
316
326
  "_name",
317
327
  "_on",
@@ -339,6 +349,7 @@ const KolInputFile = /* @__PURE__ */ defineContainer("kol-input-file", void 0, [
339
349
  "_icons",
340
350
  "_id",
341
351
  "_label",
352
+ "_msg",
342
353
  "_multiple",
343
354
  "_name",
344
355
  "_on",
@@ -364,6 +375,7 @@ const KolInputNumber = /* @__PURE__ */ defineContainer("kol-input-number", void
364
375
  "_label",
365
376
  "_max",
366
377
  "_min",
378
+ "_msg",
367
379
  "_name",
368
380
  "_on",
369
381
  "_placeholder",
@@ -392,6 +404,7 @@ const KolInputPassword = /* @__PURE__ */ defineContainer("kol-input-password", v
392
404
  "_id",
393
405
  "_label",
394
406
  "_maxLength",
407
+ "_msg",
395
408
  "_name",
396
409
  "_on",
397
410
  "_pattern",
@@ -415,6 +428,7 @@ const KolInputRadio = /* @__PURE__ */ defineContainer("kol-input-radio", void 0,
415
428
  "_hint",
416
429
  "_id",
417
430
  "_label",
431
+ "_msg",
418
432
  "_name",
419
433
  "_on",
420
434
  "_options",
@@ -440,6 +454,7 @@ const KolInputRange = /* @__PURE__ */ defineContainer("kol-input-range", void 0,
440
454
  "_label",
441
455
  "_max",
442
456
  "_min",
457
+ "_msg",
443
458
  "_name",
444
459
  "_on",
445
460
  "_step",
@@ -464,6 +479,7 @@ const KolInputText = /* @__PURE__ */ defineContainer("kol-input-text", void 0, [
464
479
  "_id",
465
480
  "_label",
466
481
  "_maxLength",
482
+ "_msg",
467
483
  "_name",
468
484
  "_on",
469
485
  "_pattern",
@@ -576,6 +592,7 @@ const KolSelect = /* @__PURE__ */ defineContainer("kol-select", void 0, [
576
592
  "_icons",
577
593
  "_id",
578
594
  "_label",
595
+ "_msg",
579
596
  "_multiple",
580
597
  "_name",
581
598
  "_on",
@@ -656,6 +673,7 @@ const KolTextarea = /* @__PURE__ */ defineContainer("kol-textarea", void 0, [
656
673
  "_id",
657
674
  "_label",
658
675
  "_maxLength",
676
+ "_msg",
659
677
  "_name",
660
678
  "_on",
661
679
  "_placeholder",
@@ -743,3 +761,4 @@ exports.KolTreeItem = KolTreeItem;
743
761
  exports.KolTreeItemWc = KolTreeItemWc;
744
762
  exports.KolTreeWc = KolTreeWc;
745
763
  exports.KolVersion = KolVersion;
764
+ exports.setTagNameTransformer = setTagNameTransformer;
package/dist/index.d.ts CHANGED
@@ -1,59 +1,63 @@
1
+ import * as vue from 'vue';
1
2
  import { JSX } from '@public-ui/components';
2
3
 
3
4
  interface InputProps<T> {
4
5
  modelValue?: T;
5
6
  }
6
7
 
7
- declare const KolAbbr: (props: JSX.KolAbbr & InputProps<string | number | boolean> & {}) => any;
8
- declare const KolAccordion: (props: JSX.KolAccordion & InputProps<string | number | boolean> & {}) => any;
9
- declare const KolAlert: (props: JSX.KolAlert & InputProps<string | number | boolean> & {}) => any;
10
- declare const KolAvatar: (props: JSX.KolAvatar & InputProps<string | number | boolean> & {}) => any;
11
- declare const KolBadge: (props: JSX.KolBadge & InputProps<string | number | boolean> & {}) => any;
12
- declare const KolBreadcrumb: (props: JSX.KolBreadcrumb & InputProps<string | number | boolean> & {}) => any;
13
- declare const KolButton: (props: JSX.KolButton & InputProps<string | number | boolean> & {}) => any;
14
- declare const KolButtonGroup: (props: JSX.KolButtonGroup & InputProps<string | number | boolean> & {}) => any;
15
- declare const KolButtonLink: (props: JSX.KolButtonLink & InputProps<string | number | boolean> & {}) => any;
16
- declare const KolCard: (props: JSX.KolCard & InputProps<string | number | boolean> & {}) => any;
17
- declare const KolDetails: (props: JSX.KolDetails & InputProps<string | number | boolean> & {}) => any;
18
- declare const KolForm: (props: JSX.KolForm & InputProps<string | number | boolean> & {}) => any;
19
- declare const KolHeading: (props: JSX.KolHeading & InputProps<string | number | boolean> & {}) => any;
20
- declare const KolIcon: (props: JSX.KolIcon & InputProps<string | number | boolean> & {}) => any;
21
- declare const KolImage: (props: JSX.KolImage & InputProps<string | number | boolean> & {}) => any;
22
- declare const KolIndentedText: (props: JSX.KolIndentedText & InputProps<string | number | boolean> & {}) => any;
23
- declare const KolInputCheckbox: (props: JSX.KolInputCheckbox & InputProps<string | number | boolean> & {}) => any;
24
- declare const KolInputColor: (props: JSX.KolInputColor & InputProps<string | number | boolean> & {}) => any;
25
- declare const KolInputDate: (props: JSX.KolInputDate & InputProps<string | number | boolean> & {}) => any;
26
- declare const KolInputEmail: (props: JSX.KolInputEmail & InputProps<string | number | boolean> & {}) => any;
27
- declare const KolInputFile: (props: JSX.KolInputFile & InputProps<string | number | boolean> & {}) => any;
28
- declare const KolInputNumber: (props: JSX.KolInputNumber & InputProps<string | number | boolean> & {}) => any;
29
- declare const KolInputPassword: (props: JSX.KolInputPassword & InputProps<string | number | boolean> & {}) => any;
30
- declare const KolInputRadio: (props: JSX.KolInputRadio & InputProps<string | number | boolean> & {}) => any;
31
- declare const KolInputRange: (props: JSX.KolInputRange & InputProps<string | number | boolean> & {}) => any;
32
- declare const KolInputText: (props: JSX.KolInputText & InputProps<string | number | boolean> & {}) => any;
33
- declare const KolKolibri: (props: JSX.KolKolibri & InputProps<string | number | boolean> & {}) => any;
34
- declare const KolLink: (props: JSX.KolLink & InputProps<string | number | boolean> & {}) => any;
35
- declare const KolLinkButton: (props: JSX.KolLinkButton & InputProps<string | number | boolean> & {}) => any;
36
- declare const KolLinkGroup: (props: JSX.KolLinkGroup & InputProps<string | number | boolean> & {}) => any;
37
- declare const KolLogo: (props: JSX.KolLogo & InputProps<string | number | boolean> & {}) => any;
38
- declare const KolModal: (props: JSX.KolModal & InputProps<string | number | boolean> & {}) => any;
39
- declare const KolNav: (props: JSX.KolNav & InputProps<string | number | boolean> & {}) => any;
40
- declare const KolPagination: (props: JSX.KolPagination & InputProps<string | number | boolean> & {}) => any;
41
- declare const KolProgress: (props: JSX.KolProgress & InputProps<string | number | boolean> & {}) => any;
42
- declare const KolQuote: (props: JSX.KolQuote & InputProps<string | number | boolean> & {}) => any;
43
- declare const KolSelect: (props: JSX.KolSelect & InputProps<string | number | boolean> & {}) => any;
44
- declare const KolSkipNav: (props: JSX.KolSkipNav & InputProps<string | number | boolean> & {}) => any;
45
- declare const KolSpan: (props: JSX.KolSpan & InputProps<string | number | boolean> & {}) => any;
46
- declare const KolSpin: (props: JSX.KolSpin & InputProps<string | number | boolean> & {}) => any;
47
- declare const KolSplitButton: (props: JSX.KolSplitButton & InputProps<string | number | boolean> & {}) => any;
48
- declare const KolSymbol: (props: JSX.KolSymbol & InputProps<string | number | boolean> & {}) => any;
49
- declare const KolTable: (props: JSX.KolTable & InputProps<string | number | boolean> & {}) => any;
50
- declare const KolTabs: (props: JSX.KolTabs & InputProps<string | number | boolean> & {}) => any;
51
- declare const KolTextarea: (props: JSX.KolTextarea & InputProps<string | number | boolean> & {}) => any;
52
- declare const KolToastContainer: (props: JSX.KolToastContainer & InputProps<string | number | boolean> & {}) => any;
53
- declare const KolTree: (props: JSX.KolTree & InputProps<string | number | boolean> & {}) => any;
54
- declare const KolTreeItem: (props: JSX.KolTreeItem & InputProps<string | number | boolean> & {}) => any;
55
- declare const KolTreeItemWc: (props: JSX.KolTreeItemWc & InputProps<string | number | boolean> & {}) => any;
56
- declare const KolTreeWc: (props: JSX.KolTreeWc & InputProps<string | number | boolean> & {}) => any;
57
- declare const KolVersion: (props: JSX.KolVersion & InputProps<string | number | boolean> & {}) => any;
8
+ type TagNameTransformer = (tagName: string) => string;
9
+ declare const setTagNameTransformer: (_tagNameTransformer: TagNameTransformer) => void;
58
10
 
59
- export { KolAbbr, KolAccordion, KolAlert, KolAvatar, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolImage, KolIndentedText, 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, KolToastContainer, KolTree, KolTreeItem, KolTreeItemWc, KolTreeWc, KolVersion };
11
+ declare const KolAbbr: vue.DefineSetupFnComponent<JSX.KolAbbr & InputProps<string | number | boolean>, {}, {}, JSX.KolAbbr & InputProps<string | number | boolean> & {}, vue.PublicProps>;
12
+ declare const KolAccordion: vue.DefineSetupFnComponent<JSX.KolAccordion & InputProps<string | number | boolean>, {}, {}, JSX.KolAccordion & InputProps<string | number | boolean> & {}, vue.PublicProps>;
13
+ declare const KolAlert: vue.DefineSetupFnComponent<JSX.KolAlert & InputProps<string | number | boolean>, {}, {}, JSX.KolAlert & InputProps<string | number | boolean> & {}, vue.PublicProps>;
14
+ declare const KolAvatar: vue.DefineSetupFnComponent<JSX.KolAvatar & InputProps<string | number | boolean>, {}, {}, JSX.KolAvatar & InputProps<string | number | boolean> & {}, vue.PublicProps>;
15
+ declare const KolBadge: vue.DefineSetupFnComponent<JSX.KolBadge & InputProps<string | number | boolean>, {}, {}, JSX.KolBadge & InputProps<string | number | boolean> & {}, vue.PublicProps>;
16
+ declare const KolBreadcrumb: vue.DefineSetupFnComponent<JSX.KolBreadcrumb & InputProps<string | number | boolean>, {}, {}, JSX.KolBreadcrumb & InputProps<string | number | boolean> & {}, vue.PublicProps>;
17
+ declare const KolButton: vue.DefineSetupFnComponent<JSX.KolButton & InputProps<string | number | boolean>, {}, {}, JSX.KolButton & InputProps<string | number | boolean> & {}, vue.PublicProps>;
18
+ declare const KolButtonGroup: vue.DefineSetupFnComponent<JSX.KolButtonGroup & InputProps<string | number | boolean>, {}, {}, JSX.KolButtonGroup & InputProps<string | number | boolean> & {}, vue.PublicProps>;
19
+ declare const KolButtonLink: vue.DefineSetupFnComponent<JSX.KolButtonLink & InputProps<string | number | boolean>, {}, {}, JSX.KolButtonLink & InputProps<string | number | boolean> & {}, vue.PublicProps>;
20
+ declare const KolCard: vue.DefineSetupFnComponent<JSX.KolCard & InputProps<string | number | boolean>, {}, {}, JSX.KolCard & InputProps<string | number | boolean> & {}, vue.PublicProps>;
21
+ declare const KolDetails: vue.DefineSetupFnComponent<JSX.KolDetails & InputProps<string | number | boolean>, {}, {}, JSX.KolDetails & InputProps<string | number | boolean> & {}, vue.PublicProps>;
22
+ declare const KolForm: vue.DefineSetupFnComponent<JSX.KolForm & InputProps<string | number | boolean>, {}, {}, JSX.KolForm & InputProps<string | number | boolean> & {}, vue.PublicProps>;
23
+ declare const KolHeading: vue.DefineSetupFnComponent<JSX.KolHeading & InputProps<string | number | boolean>, {}, {}, JSX.KolHeading & InputProps<string | number | boolean> & {}, vue.PublicProps>;
24
+ declare const KolIcon: vue.DefineSetupFnComponent<JSX.KolIcon & InputProps<string | number | boolean>, {}, {}, JSX.KolIcon & InputProps<string | number | boolean> & {}, vue.PublicProps>;
25
+ declare const KolImage: vue.DefineSetupFnComponent<JSX.KolImage & InputProps<string | number | boolean>, {}, {}, JSX.KolImage & InputProps<string | number | boolean> & {}, vue.PublicProps>;
26
+ declare const KolIndentedText: vue.DefineSetupFnComponent<JSX.KolIndentedText & InputProps<string | number | boolean>, {}, {}, JSX.KolIndentedText & InputProps<string | number | boolean> & {}, vue.PublicProps>;
27
+ declare const KolInputCheckbox: vue.DefineSetupFnComponent<JSX.KolInputCheckbox & InputProps<string | number | boolean>, {}, {}, JSX.KolInputCheckbox & InputProps<string | number | boolean> & {}, vue.PublicProps>;
28
+ declare const KolInputColor: vue.DefineSetupFnComponent<JSX.KolInputColor & InputProps<string | number | boolean>, {}, {}, JSX.KolInputColor & InputProps<string | number | boolean> & {}, vue.PublicProps>;
29
+ declare const KolInputDate: vue.DefineSetupFnComponent<JSX.KolInputDate & InputProps<string | number | boolean>, {}, {}, JSX.KolInputDate & InputProps<string | number | boolean> & {}, vue.PublicProps>;
30
+ declare const KolInputEmail: vue.DefineSetupFnComponent<JSX.KolInputEmail & InputProps<string | number | boolean>, {}, {}, JSX.KolInputEmail & InputProps<string | number | boolean> & {}, vue.PublicProps>;
31
+ declare const KolInputFile: vue.DefineSetupFnComponent<JSX.KolInputFile & InputProps<string | number | boolean>, {}, {}, JSX.KolInputFile & InputProps<string | number | boolean> & {}, vue.PublicProps>;
32
+ declare const KolInputNumber: vue.DefineSetupFnComponent<JSX.KolInputNumber & InputProps<string | number | boolean>, {}, {}, JSX.KolInputNumber & InputProps<string | number | boolean> & {}, vue.PublicProps>;
33
+ declare const KolInputPassword: vue.DefineSetupFnComponent<JSX.KolInputPassword & InputProps<string | number | boolean>, {}, {}, JSX.KolInputPassword & InputProps<string | number | boolean> & {}, vue.PublicProps>;
34
+ declare const KolInputRadio: vue.DefineSetupFnComponent<JSX.KolInputRadio & InputProps<string | number | boolean>, {}, {}, JSX.KolInputRadio & InputProps<string | number | boolean> & {}, vue.PublicProps>;
35
+ declare const KolInputRange: vue.DefineSetupFnComponent<JSX.KolInputRange & InputProps<string | number | boolean>, {}, {}, JSX.KolInputRange & InputProps<string | number | boolean> & {}, vue.PublicProps>;
36
+ declare const KolInputText: vue.DefineSetupFnComponent<JSX.KolInputText & InputProps<string | number | boolean>, {}, {}, JSX.KolInputText & InputProps<string | number | boolean> & {}, vue.PublicProps>;
37
+ declare const KolKolibri: vue.DefineSetupFnComponent<JSX.KolKolibri & InputProps<string | number | boolean>, {}, {}, JSX.KolKolibri & InputProps<string | number | boolean> & {}, vue.PublicProps>;
38
+ declare const KolLink: vue.DefineSetupFnComponent<JSX.KolLink & InputProps<string | number | boolean>, {}, {}, JSX.KolLink & InputProps<string | number | boolean> & {}, vue.PublicProps>;
39
+ declare const KolLinkButton: vue.DefineSetupFnComponent<JSX.KolLinkButton & InputProps<string | number | boolean>, {}, {}, JSX.KolLinkButton & InputProps<string | number | boolean> & {}, vue.PublicProps>;
40
+ declare const KolLinkGroup: vue.DefineSetupFnComponent<JSX.KolLinkGroup & InputProps<string | number | boolean>, {}, {}, JSX.KolLinkGroup & InputProps<string | number | boolean> & {}, vue.PublicProps>;
41
+ declare const KolLogo: vue.DefineSetupFnComponent<JSX.KolLogo & InputProps<string | number | boolean>, {}, {}, JSX.KolLogo & InputProps<string | number | boolean> & {}, vue.PublicProps>;
42
+ declare const KolModal: vue.DefineSetupFnComponent<JSX.KolModal & InputProps<string | number | boolean>, {}, {}, JSX.KolModal & InputProps<string | number | boolean> & {}, vue.PublicProps>;
43
+ declare const KolNav: vue.DefineSetupFnComponent<JSX.KolNav & InputProps<string | number | boolean>, {}, {}, JSX.KolNav & InputProps<string | number | boolean> & {}, vue.PublicProps>;
44
+ declare const KolPagination: vue.DefineSetupFnComponent<JSX.KolPagination & InputProps<string | number | boolean>, {}, {}, JSX.KolPagination & InputProps<string | number | boolean> & {}, vue.PublicProps>;
45
+ declare const KolProgress: vue.DefineSetupFnComponent<JSX.KolProgress & InputProps<string | number | boolean>, {}, {}, JSX.KolProgress & InputProps<string | number | boolean> & {}, vue.PublicProps>;
46
+ declare const KolQuote: vue.DefineSetupFnComponent<JSX.KolQuote & InputProps<string | number | boolean>, {}, {}, JSX.KolQuote & InputProps<string | number | boolean> & {}, vue.PublicProps>;
47
+ declare const KolSelect: vue.DefineSetupFnComponent<JSX.KolSelect & InputProps<string | number | boolean>, {}, {}, JSX.KolSelect & InputProps<string | number | boolean> & {}, vue.PublicProps>;
48
+ declare const KolSkipNav: vue.DefineSetupFnComponent<JSX.KolSkipNav & InputProps<string | number | boolean>, {}, {}, JSX.KolSkipNav & InputProps<string | number | boolean> & {}, vue.PublicProps>;
49
+ declare const KolSpan: vue.DefineSetupFnComponent<JSX.KolSpan & InputProps<string | number | boolean>, {}, {}, JSX.KolSpan & InputProps<string | number | boolean> & {}, vue.PublicProps>;
50
+ declare const KolSpin: vue.DefineSetupFnComponent<JSX.KolSpin & InputProps<string | number | boolean>, {}, {}, JSX.KolSpin & InputProps<string | number | boolean> & {}, vue.PublicProps>;
51
+ declare const KolSplitButton: vue.DefineSetupFnComponent<JSX.KolSplitButton & InputProps<string | number | boolean>, {}, {}, JSX.KolSplitButton & InputProps<string | number | boolean> & {}, vue.PublicProps>;
52
+ declare const KolSymbol: vue.DefineSetupFnComponent<JSX.KolSymbol & InputProps<string | number | boolean>, {}, {}, JSX.KolSymbol & InputProps<string | number | boolean> & {}, vue.PublicProps>;
53
+ declare const KolTable: vue.DefineSetupFnComponent<JSX.KolTable & InputProps<string | number | boolean>, {}, {}, JSX.KolTable & InputProps<string | number | boolean> & {}, vue.PublicProps>;
54
+ declare const KolTabs: vue.DefineSetupFnComponent<JSX.KolTabs & InputProps<string | number | boolean>, {}, {}, JSX.KolTabs & InputProps<string | number | boolean> & {}, vue.PublicProps>;
55
+ declare const KolTextarea: vue.DefineSetupFnComponent<JSX.KolTextarea & InputProps<string | number | boolean>, {}, {}, JSX.KolTextarea & InputProps<string | number | boolean> & {}, vue.PublicProps>;
56
+ declare const KolToastContainer: vue.DefineSetupFnComponent<JSX.KolToastContainer & InputProps<string | number | boolean>, {}, {}, JSX.KolToastContainer & InputProps<string | number | boolean> & {}, vue.PublicProps>;
57
+ declare const KolTree: vue.DefineSetupFnComponent<JSX.KolTree & InputProps<string | number | boolean>, {}, {}, JSX.KolTree & InputProps<string | number | boolean> & {}, vue.PublicProps>;
58
+ declare const KolTreeItem: vue.DefineSetupFnComponent<JSX.KolTreeItem & InputProps<string | number | boolean>, {}, {}, JSX.KolTreeItem & InputProps<string | number | boolean> & {}, vue.PublicProps>;
59
+ declare const KolTreeItemWc: vue.DefineSetupFnComponent<JSX.KolTreeItemWc & InputProps<string | number | boolean>, {}, {}, JSX.KolTreeItemWc & InputProps<string | number | boolean> & {}, vue.PublicProps>;
60
+ declare const KolTreeWc: vue.DefineSetupFnComponent<JSX.KolTreeWc & InputProps<string | number | boolean>, {}, {}, JSX.KolTreeWc & InputProps<string | number | boolean> & {}, vue.PublicProps>;
61
+ declare const KolVersion: vue.DefineSetupFnComponent<JSX.KolVersion & InputProps<string | number | boolean>, {}, {}, JSX.KolVersion & InputProps<string | number | boolean> & {}, vue.PublicProps>;
62
+
63
+ export { KolAbbr, KolAccordion, KolAlert, KolAvatar, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolImage, KolIndentedText, 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, KolToastContainer, KolTree, KolTreeItem, KolTreeItemWc, KolTreeWc, 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
  });
@@ -236,6 +242,7 @@ const KolInputCheckbox = /* @__PURE__ */ defineContainer("kol-input-checkbox", v
236
242
  "_id",
237
243
  "_indeterminate",
238
244
  "_label",
245
+ "_msg",
239
246
  "_name",
240
247
  "_on",
241
248
  "_required",
@@ -258,6 +265,7 @@ const KolInputColor = /* @__PURE__ */ defineContainer("kol-input-color", void 0,
258
265
  "_icons",
259
266
  "_id",
260
267
  "_label",
268
+ "_msg",
261
269
  "_name",
262
270
  "_on",
263
271
  "_smartButton",
@@ -282,6 +290,7 @@ const KolInputDate = /* @__PURE__ */ defineContainer("kol-input-date", void 0, [
282
290
  "_label",
283
291
  "_max",
284
292
  "_min",
293
+ "_msg",
285
294
  "_name",
286
295
  "_on",
287
296
  "_readOnly",
@@ -310,6 +319,7 @@ const KolInputEmail = /* @__PURE__ */ defineContainer("kol-input-email", void 0,
310
319
  "_id",
311
320
  "_label",
312
321
  "_maxLength",
322
+ "_msg",
313
323
  "_multiple",
314
324
  "_name",
315
325
  "_on",
@@ -337,6 +347,7 @@ const KolInputFile = /* @__PURE__ */ defineContainer("kol-input-file", void 0, [
337
347
  "_icons",
338
348
  "_id",
339
349
  "_label",
350
+ "_msg",
340
351
  "_multiple",
341
352
  "_name",
342
353
  "_on",
@@ -362,6 +373,7 @@ const KolInputNumber = /* @__PURE__ */ defineContainer("kol-input-number", void
362
373
  "_label",
363
374
  "_max",
364
375
  "_min",
376
+ "_msg",
365
377
  "_name",
366
378
  "_on",
367
379
  "_placeholder",
@@ -390,6 +402,7 @@ const KolInputPassword = /* @__PURE__ */ defineContainer("kol-input-password", v
390
402
  "_id",
391
403
  "_label",
392
404
  "_maxLength",
405
+ "_msg",
393
406
  "_name",
394
407
  "_on",
395
408
  "_pattern",
@@ -413,6 +426,7 @@ const KolInputRadio = /* @__PURE__ */ defineContainer("kol-input-radio", void 0,
413
426
  "_hint",
414
427
  "_id",
415
428
  "_label",
429
+ "_msg",
416
430
  "_name",
417
431
  "_on",
418
432
  "_options",
@@ -438,6 +452,7 @@ const KolInputRange = /* @__PURE__ */ defineContainer("kol-input-range", void 0,
438
452
  "_label",
439
453
  "_max",
440
454
  "_min",
455
+ "_msg",
441
456
  "_name",
442
457
  "_on",
443
458
  "_step",
@@ -462,6 +477,7 @@ const KolInputText = /* @__PURE__ */ defineContainer("kol-input-text", void 0, [
462
477
  "_id",
463
478
  "_label",
464
479
  "_maxLength",
480
+ "_msg",
465
481
  "_name",
466
482
  "_on",
467
483
  "_pattern",
@@ -574,6 +590,7 @@ const KolSelect = /* @__PURE__ */ defineContainer("kol-select", void 0, [
574
590
  "_icons",
575
591
  "_id",
576
592
  "_label",
593
+ "_msg",
577
594
  "_multiple",
578
595
  "_name",
579
596
  "_on",
@@ -654,6 +671,7 @@ const KolTextarea = /* @__PURE__ */ defineContainer("kol-textarea", void 0, [
654
671
  "_id",
655
672
  "_label",
656
673
  "_maxLength",
674
+ "_msg",
657
675
  "_name",
658
676
  "_on",
659
677
  "_placeholder",
@@ -690,4 +708,4 @@ const KolVersion = /* @__PURE__ */ defineContainer("kol-version", void 0, [
690
708
  "_label"
691
709
  ]);
692
710
 
693
- export { KolAbbr, KolAccordion, KolAlert, KolAvatar, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolImage, KolIndentedText, 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, KolToastContainer, KolTree, KolTreeItem, KolTreeItemWc, KolTreeWc, KolVersion };
711
+ export { KolAbbr, KolAccordion, KolAlert, KolAvatar, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolImage, KolIndentedText, 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, KolToastContainer, KolTree, KolTreeItem, KolTreeItemWc, KolTreeWc, KolVersion, setTagNameTransformer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/vue",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": "https://github.com/public-ui/kolibri",
@@ -42,18 +42,18 @@
42
42
  "vue"
43
43
  ],
44
44
  "devDependencies": {
45
- "@babel/types": "7.23.9",
46
- "@public-ui/components": "2.0.8",
45
+ "@babel/types": "7.24.0",
46
+ "@public-ui/components": "2.0.10",
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.3.3",
51
+ "typescript": "5.4.3",
52
52
  "unbuild": "1.2.1",
53
- "vue": "3.4.19"
53
+ "vue": "3.4.21"
54
54
  },
55
55
  "peerDependencies": {
56
- "@public-ui/components": "2.0.8",
56
+ "@public-ui/components": "2.0.10",
57
57
  "vue": ">=3"
58
58
  },
59
59
  "sideEffects": false,