@public-ui/vue 1.1.7-rc.9

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/cjs/index.js ADDED
@@ -0,0 +1,442 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KolVersion = exports.KolTooltip = exports.KolToast = exports.KolTextarea = exports.KolTabs = exports.KolTable = exports.KolSymbol = exports.KolSpin = exports.KolSkipNav = exports.KolSelect = exports.KolProgress = exports.KolPagination = exports.KolNav = exports.KolModal = exports.KolLogo = exports.KolLinkGroup = exports.KolLink = exports.KolKolibri = exports.KolInputText = exports.KolInputRange = exports.KolInputRadio = exports.KolInputPassword = exports.KolInputNumber = exports.KolInputFile = exports.KolInputEmail = exports.KolInputColor = exports.KolInputCheckbox = exports.KolInputAdapterLeanup = exports.KolIndentedText = exports.KolIconIcofont = exports.KolIconFontAwesome = exports.KolIcon = exports.KolHeadingWc = exports.KolHeading = exports.KolForm = exports.KolDetails = exports.KolCard = exports.KolButtonGroup = exports.KolButton = exports.KolBreadcrumb = exports.KolBadge = exports.KolAlert = exports.KolAccordion = exports.KolAbbr = void 0;
4
+ const utils_1 = require("./vue-component-lib/utils");
5
+ exports.KolAbbr = (0, utils_1.defineContainer)('kol-abbr', undefined, [
6
+ '_tooltipAlign',
7
+ '_title'
8
+ ]);
9
+ exports.KolAccordion = (0, utils_1.defineContainer)('kol-accordion', undefined, [
10
+ '_heading',
11
+ '_level',
12
+ '_on',
13
+ '_open'
14
+ ]);
15
+ exports.KolAlert = (0, utils_1.defineContainer)('kol-alert', undefined, [
16
+ '_alert',
17
+ '_hasCloser',
18
+ '_heading',
19
+ '_level',
20
+ '_on',
21
+ '_type',
22
+ '_variant'
23
+ ]);
24
+ exports.KolBadge = (0, utils_1.defineContainer)('kol-badge', undefined, [
25
+ '_color',
26
+ '_icon',
27
+ '_iconAlign',
28
+ '_iconOnly',
29
+ '_label'
30
+ ]);
31
+ exports.KolBreadcrumb = (0, utils_1.defineContainer)('kol-breadcrumb', undefined, [
32
+ '_ariaLabel',
33
+ '_links'
34
+ ]);
35
+ exports.KolButton = (0, utils_1.defineContainer)('kol-button', undefined, [
36
+ '_accessKey',
37
+ '_ariaControls',
38
+ '_ariaCurrent',
39
+ '_ariaExpanded',
40
+ '_ariaLabel',
41
+ '_customClass',
42
+ '_disabled',
43
+ '_icon',
44
+ '_iconAlign',
45
+ '_iconOnly',
46
+ '_id',
47
+ '_label',
48
+ '_on',
49
+ '_showAs',
50
+ '_tooltipAlign',
51
+ '_type',
52
+ '_variant'
53
+ ]);
54
+ exports.KolButtonGroup = (0, utils_1.defineContainer)('kol-button-group', undefined);
55
+ exports.KolCard = (0, utils_1.defineContainer)('kol-card', undefined, [
56
+ '_hasFooter',
57
+ '_heading',
58
+ '_headline',
59
+ '_level'
60
+ ]);
61
+ exports.KolDetails = (0, utils_1.defineContainer)('kol-details', undefined, [
62
+ '_open',
63
+ '_summary'
64
+ ]);
65
+ exports.KolForm = (0, utils_1.defineContainer)('kol-form', undefined, [
66
+ '_on',
67
+ '_requiredText'
68
+ ]);
69
+ exports.KolHeading = (0, utils_1.defineContainer)('kol-heading', undefined, [
70
+ '_level'
71
+ ]);
72
+ exports.KolHeadingWc = (0, utils_1.defineContainer)('kol-heading-wc', undefined, [
73
+ '_level'
74
+ ]);
75
+ exports.KolIcon = (0, utils_1.defineContainer)('kol-icon', undefined, [
76
+ '_ariaLabel',
77
+ '_icon',
78
+ '_part'
79
+ ]);
80
+ exports.KolIconFontAwesome = (0, utils_1.defineContainer)('kol-icon-font-awesome', undefined, [
81
+ '_ariaLabel',
82
+ '_icon',
83
+ '_prefix',
84
+ '_part'
85
+ ]);
86
+ exports.KolIconIcofont = (0, utils_1.defineContainer)('kol-icon-icofont', undefined, [
87
+ '_ariaLabel',
88
+ '_icon',
89
+ '_part'
90
+ ]);
91
+ exports.KolIndentedText = (0, utils_1.defineContainer)('kol-indented-text', undefined);
92
+ exports.KolInputAdapterLeanup = (0, utils_1.defineContainer)('kol-input-adapter-leanup', undefined);
93
+ exports.KolInputCheckbox = (0, utils_1.defineContainer)('kol-input-checkbox', undefined, [
94
+ '_accessKey',
95
+ '_alert',
96
+ '_checked',
97
+ '_disabled',
98
+ '_error',
99
+ '_hideLabel',
100
+ '_hint',
101
+ '_id',
102
+ '_indeterminate',
103
+ '_name',
104
+ '_on',
105
+ '_required',
106
+ '_tabIndex',
107
+ '_touched',
108
+ '_type',
109
+ '_value'
110
+ ]);
111
+ exports.KolInputColor = (0, utils_1.defineContainer)('kol-input-color', undefined, [
112
+ '_accessKey',
113
+ '_alert',
114
+ '_autoComplete',
115
+ '_disabled',
116
+ '_error',
117
+ '_hideLabel',
118
+ '_hint',
119
+ '_icon',
120
+ '_id',
121
+ '_list',
122
+ '_name',
123
+ '_on',
124
+ '_smartButton',
125
+ '_tabIndex',
126
+ '_touched',
127
+ '_value'
128
+ ]);
129
+ exports.KolInputEmail = (0, utils_1.defineContainer)('kol-input-email', undefined, [
130
+ '_accessKey',
131
+ '_alert',
132
+ '_autoComplete',
133
+ '_disabled',
134
+ '_error',
135
+ '_hideLabel',
136
+ '_hint',
137
+ '_icon',
138
+ '_id',
139
+ '_list',
140
+ '_maxLength',
141
+ '_multiple',
142
+ '_name',
143
+ '_on',
144
+ '_pattern',
145
+ '_placeholder',
146
+ '_readOnly',
147
+ '_required',
148
+ '_size',
149
+ '_smartButton',
150
+ '_tabIndex',
151
+ '_touched',
152
+ '_value'
153
+ ]);
154
+ exports.KolInputFile = (0, utils_1.defineContainer)('kol-input-file', undefined, [
155
+ '_accept',
156
+ '_accessKey',
157
+ '_alert',
158
+ '_disabled',
159
+ '_error',
160
+ '_hideLabel',
161
+ '_hint',
162
+ '_icon',
163
+ '_id',
164
+ '_multiple',
165
+ '_name',
166
+ '_on',
167
+ '_required',
168
+ '_smartButton',
169
+ '_tabIndex',
170
+ '_touched',
171
+ '_value'
172
+ ]);
173
+ exports.KolInputNumber = (0, utils_1.defineContainer)('kol-input-number', undefined, [
174
+ '_accessKey',
175
+ '_alert',
176
+ '_autoComplete',
177
+ '_disabled',
178
+ '_error',
179
+ '_hideLabel',
180
+ '_hint',
181
+ '_icon',
182
+ '_id',
183
+ '_list',
184
+ '_max',
185
+ '_min',
186
+ '_name',
187
+ '_on',
188
+ '_placeholder',
189
+ '_readOnly',
190
+ '_required',
191
+ '_smartButton',
192
+ '_step',
193
+ '_tabIndex',
194
+ '_touched',
195
+ '_type',
196
+ '_value'
197
+ ]);
198
+ exports.KolInputPassword = (0, utils_1.defineContainer)('kol-input-password', undefined, [
199
+ '_accessKey',
200
+ '_alert',
201
+ '_autoComplete',
202
+ '_disabled',
203
+ '_error',
204
+ '_hideLabel',
205
+ '_hint',
206
+ '_icon',
207
+ '_id',
208
+ '_maxLength',
209
+ '_name',
210
+ '_on',
211
+ '_pattern',
212
+ '_placeholder',
213
+ '_readOnly',
214
+ '_required',
215
+ '_size',
216
+ '_smartButton',
217
+ '_tabIndex',
218
+ '_touched',
219
+ '_value'
220
+ ]);
221
+ exports.KolInputRadio = (0, utils_1.defineContainer)('kol-input-radio', undefined, [
222
+ '_accessKey',
223
+ '_alert',
224
+ '_disabled',
225
+ '_error',
226
+ '_hideLabel',
227
+ '_hint',
228
+ '_id',
229
+ '_list',
230
+ '_name',
231
+ '_on',
232
+ '_orientation',
233
+ '_required',
234
+ '_tabIndex',
235
+ '_touched',
236
+ '_value'
237
+ ]);
238
+ exports.KolInputRange = (0, utils_1.defineContainer)('kol-input-range', undefined, [
239
+ '_accessKey',
240
+ '_alert',
241
+ '_autoComplete',
242
+ '_disabled',
243
+ '_error',
244
+ '_hideLabel',
245
+ '_hint',
246
+ '_icon',
247
+ '_id',
248
+ '_list',
249
+ '_max',
250
+ '_min',
251
+ '_name',
252
+ '_on',
253
+ '_step',
254
+ '_tabIndex',
255
+ '_touched',
256
+ '_value'
257
+ ]);
258
+ exports.KolInputText = (0, utils_1.defineContainer)('kol-input-text', undefined, [
259
+ '_accessKey',
260
+ '_alert',
261
+ '_autoComplete',
262
+ '_disabled',
263
+ '_error',
264
+ '_hideLabel',
265
+ '_hint',
266
+ '_icon',
267
+ '_id',
268
+ '_list',
269
+ '_maxLength',
270
+ '_name',
271
+ '_on',
272
+ '_pattern',
273
+ '_placeholder',
274
+ '_readOnly',
275
+ '_required',
276
+ '_size',
277
+ '_smartButton',
278
+ '_tabIndex',
279
+ '_touched',
280
+ '_type',
281
+ '_value'
282
+ ]);
283
+ exports.KolKolibri = (0, utils_1.defineContainer)('kol-kolibri', undefined, [
284
+ '_animate',
285
+ '_color',
286
+ '_labeled'
287
+ ]);
288
+ exports.KolLink = (0, utils_1.defineContainer)('kol-link', undefined, [
289
+ '_ariaControls',
290
+ '_ariaCurrent',
291
+ '_ariaExpanded',
292
+ '_ariaLabel',
293
+ '_ariaSelected',
294
+ '_disabled',
295
+ '_fill',
296
+ '_href',
297
+ '_icon',
298
+ '_iconAlign',
299
+ '_iconOnly',
300
+ '_on',
301
+ '_part',
302
+ '_selector',
303
+ '_showAs',
304
+ '_stealth',
305
+ '_target',
306
+ '_targetDescription',
307
+ '_tooltipAlign',
308
+ '_underline',
309
+ '_useCase'
310
+ ]);
311
+ exports.KolLinkGroup = (0, utils_1.defineContainer)('kol-link-group', undefined, [
312
+ '_ariaLabel',
313
+ '_listStyleType',
314
+ '_heading',
315
+ '_level',
316
+ '_links',
317
+ '_ordered',
318
+ '_orientation'
319
+ ]);
320
+ exports.KolLogo = (0, utils_1.defineContainer)('kol-logo', undefined, [
321
+ '_abbr',
322
+ '_org'
323
+ ]);
324
+ exports.KolModal = (0, utils_1.defineContainer)('kol-modal', undefined, [
325
+ '_activeElement',
326
+ '_ariaLabel',
327
+ '_width',
328
+ '_on',
329
+ '_show'
330
+ ]);
331
+ exports.KolNav = (0, utils_1.defineContainer)('kol-nav', undefined, [
332
+ '_ariaLabel',
333
+ '_collapsible',
334
+ '_compact',
335
+ '_hasCompactButton',
336
+ '_orientation',
337
+ '_links',
338
+ '_variant'
339
+ ]);
340
+ exports.KolPagination = (0, utils_1.defineContainer)('kol-pagination', undefined, [
341
+ '_boundaryCount',
342
+ '_customClass',
343
+ '_hasButtons',
344
+ '_page',
345
+ '_pageSize',
346
+ '_pageSizeOptions',
347
+ '_on',
348
+ '_siblingCount',
349
+ '_tooltipAlign',
350
+ '_total',
351
+ '_variant'
352
+ ]);
353
+ exports.KolProgress = (0, utils_1.defineContainer)('kol-progress', undefined, [
354
+ '_max',
355
+ '_type',
356
+ '_unit',
357
+ '_value'
358
+ ]);
359
+ exports.KolSelect = (0, utils_1.defineContainer)('kol-select', undefined, [
360
+ '_accessKey',
361
+ '_alert',
362
+ '_disabled',
363
+ '_error',
364
+ '_height',
365
+ '_hideLabel',
366
+ '_hint',
367
+ '_icon',
368
+ '_id',
369
+ '_list',
370
+ '_multiple',
371
+ '_name',
372
+ '_on',
373
+ '_required',
374
+ '_size',
375
+ '_tabIndex',
376
+ '_touched',
377
+ '_value'
378
+ ]);
379
+ exports.KolSkipNav = (0, utils_1.defineContainer)('kol-skip-nav', undefined, [
380
+ '_ariaLabel',
381
+ '_links'
382
+ ]);
383
+ exports.KolSpin = (0, utils_1.defineContainer)('kol-spin', undefined, [
384
+ '_show'
385
+ ]);
386
+ exports.KolSymbol = (0, utils_1.defineContainer)('kol-symbol', undefined, [
387
+ '_ariaLabel',
388
+ '_symbol'
389
+ ]);
390
+ exports.KolTable = (0, utils_1.defineContainer)('kol-table', undefined, [
391
+ '_caption',
392
+ '_data',
393
+ '_headers',
394
+ '_minWidth',
395
+ '_pagination'
396
+ ]);
397
+ exports.KolTabs = (0, utils_1.defineContainer)('kol-tabs', undefined, [
398
+ '_ariaLabel',
399
+ '_on',
400
+ '_selected',
401
+ '_tabs'
402
+ ]);
403
+ exports.KolTextarea = (0, utils_1.defineContainer)('kol-textarea', undefined, [
404
+ '_accessKey',
405
+ '_alert',
406
+ '_hasCounter',
407
+ '_disabled',
408
+ '_error',
409
+ '_hideLabel',
410
+ '_hint',
411
+ '_id',
412
+ '_maxLength',
413
+ '_name',
414
+ '_on',
415
+ '_placeholder',
416
+ '_readOnly',
417
+ '_resize',
418
+ '_required',
419
+ '_rows',
420
+ '_tabIndex',
421
+ '_touched',
422
+ '_value'
423
+ ]);
424
+ exports.KolToast = (0, utils_1.defineContainer)('kol-toast', undefined, [
425
+ '_alert',
426
+ '_hasCloser',
427
+ '_heading',
428
+ '_level',
429
+ '_on',
430
+ '_show',
431
+ '_showDuration',
432
+ '_type'
433
+ ]);
434
+ exports.KolTooltip = (0, utils_1.defineContainer)('kol-tooltip', undefined, [
435
+ '_align',
436
+ '_id',
437
+ '_label'
438
+ ]);
439
+ exports.KolVersion = (0, utils_1.defineContainer)('kol-version', undefined, [
440
+ '_version'
441
+ ]);
442
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAGA,qDAA4D;AAO/C,QAAA,OAAO,GAAiB,IAAA,uBAAe,EAAc,UAAU,EAAE,SAAS,EAAE;IACvF,eAAe;IACf,QAAQ;CACT,CAAC,CAAC;AAGU,QAAA,YAAY,GAAiB,IAAA,uBAAe,EAAmB,eAAe,EAAE,SAAS,EAAE;IACtG,UAAU;IACV,QAAQ;IACR,KAAK;IACL,OAAO;CACR,CAAC,CAAC;AAGU,QAAA,QAAQ,GAAiB,IAAA,uBAAe,EAAe,WAAW,EAAE,SAAS,EAAE;IAC1F,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,KAAK;IACL,OAAO;IACP,UAAU;CACX,CAAC,CAAC;AAGU,QAAA,QAAQ,GAAiB,IAAA,uBAAe,EAAe,WAAW,EAAE,SAAS,EAAE;IAC1F,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,WAAW;IACX,QAAQ;CACT,CAAC,CAAC;AAGU,QAAA,aAAa,GAAiB,IAAA,uBAAe,EAAoB,gBAAgB,EAAE,SAAS,EAAE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B,IAAA,uBAAe,EAAgB,YAAY,EAAE,SAAS,EAAE;IAC7F,YAAY;IACZ,SAAS;CACV,CAAC,CAAC;AAGU,QAAA,QAAQ,GAAiB,IAAA,uBAAe,EAAe,WAAW,EAAE,SAAS,EAAE;IAC1F,UAAU;IACV,OAAO;IACP,UAAU;IACV,WAAW;IACX,aAAa;CACd,CAAC,CAAC;AAGU,QAAA,OAAO,GAAiB,IAAA,uBAAe,EAAc,UAAU,EAAE,SAAS,EAAE;IACvF,YAAY;IACZ,KAAK;IACL,WAAW;IACX,OAAO;CACR,CAAC,CAAC;AAGU,QAAA,WAAW,GAAiB,IAAA,uBAAe,EAAkB,cAAc,EAAE,SAAS,EAAE;IACnG,YAAY;IACZ,QAAQ;IACR,aAAa;IACb,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,OAAO;IACP,KAAK;IACL,YAAY;IACZ,OAAO;IACP,KAAK;IACL,cAAc;IACd,WAAW;IACX,SAAS;IACT,WAAW;IACX,OAAO;IACP,WAAW;IACX,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAGU,QAAA,QAAQ,GAAiB,IAAA,uBAAe,EAAe,WAAW,EAAE,SAAS,EAAE;IAC1F,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,KAAK;IACL,OAAO;IACP,eAAe;IACf,OAAO;CACR,CAAC,CAAC;AAGU,QAAA,UAAU,GAAiB,IAAA,uBAAe,EAAiB,aAAa,EAAE,SAAS,EAAE;IAChG,QAAQ;IACR,KAAK;IACL,QAAQ;CACT,CAAC,CAAC;AAGU,QAAA,UAAU,GAAiB,IAAA,uBAAe,EAAiB,aAAa,EAAE,SAAS,EAAE;IAChG,UAAU;CACX,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface InputProps<T> {
2
+ modelValue?: T;
3
+ }
4
+ export declare const defineContainer: <Props, VModelType = string | number | boolean>(name: string, defineCustomElement: any, componentProps?: string[], modelProp?: string, modelUpdateEvent?: string, externalModelUpdateEvent?: string) => import("vue").DefineComponent<Props & InputProps<VModelType>, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<Props & InputProps<VModelType> extends infer T ? T extends Props & InputProps<VModelType> ? T extends import("vue").ComponentPropsOptions<{
5
+ [x: string]: unknown;
6
+ }> ? import("vue").ExtractPropTypes<T> : T : never : never>, import("vue").ExtractDefaultPropTypes<Props & InputProps<VModelType>>>;
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defineContainer = void 0;
4
+ const vue_1 = require("vue");
5
+ const UPDATE_VALUE_EVENT = 'update:modelValue';
6
+ const MODEL_VALUE = 'modelValue';
7
+ const ROUTER_LINK_VALUE = 'routerLink';
8
+ const NAV_MANAGER = 'navManager';
9
+ const ROUTER_PROP_PREFIX = 'router';
10
+ const EMPTY_PROP = Symbol();
11
+ const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
12
+ const getComponentClasses = (classes) => {
13
+ return (classes === null || classes === void 0 ? void 0 : classes.split(' ')) || [];
14
+ };
15
+ const getElementClasses = (ref, componentClasses, defaultClasses = []) => {
16
+ var _a;
17
+ return [...Array.from(((_a = ref.value) === null || _a === void 0 ? void 0 : _a.classList) || []), ...defaultClasses]
18
+ .filter((c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i);
19
+ };
20
+ const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent, externalModelUpdateEvent) => {
21
+ if (defineCustomElement !== undefined) {
22
+ defineCustomElement();
23
+ }
24
+ const Container = (0, vue_1.defineComponent)((props, { attrs, slots, emit }) => {
25
+ var _a;
26
+ let modelPropValue = props[modelProp];
27
+ const containerRef = (0, vue_1.ref)();
28
+ const classes = new Set(getComponentClasses(attrs.class));
29
+ const onVnodeBeforeMount = (vnode) => {
30
+ if (vnode.el) {
31
+ const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
32
+ eventsNames.forEach((eventName) => {
33
+ vnode.el.addEventListener(eventName.toLowerCase(), (e) => {
34
+ modelPropValue = (e === null || e === void 0 ? void 0 : e.target)[modelProp];
35
+ emit(UPDATE_VALUE_EVENT, modelPropValue);
36
+ if (externalModelUpdateEvent) {
37
+ emit(externalModelUpdateEvent, e);
38
+ }
39
+ });
40
+ });
41
+ }
42
+ };
43
+ const currentInstance = (0, vue_1.getCurrentInstance)();
44
+ const hasRouter = (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.appContext) === null || _a === void 0 ? void 0 : _a.provides[NAV_MANAGER];
45
+ const navManager = hasRouter ? (0, vue_1.inject)(NAV_MANAGER) : undefined;
46
+ const handleRouterLink = (ev) => {
47
+ const { routerLink } = props;
48
+ if (routerLink === EMPTY_PROP)
49
+ return;
50
+ if (navManager !== undefined) {
51
+ let navigationPayload = { event: ev };
52
+ for (const key in props) {
53
+ const value = props[key];
54
+ if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
55
+ navigationPayload[key] = value;
56
+ }
57
+ }
58
+ navManager.navigate(navigationPayload);
59
+ }
60
+ else {
61
+ console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
62
+ }
63
+ };
64
+ return () => {
65
+ modelPropValue = props[modelProp];
66
+ getComponentClasses(attrs.class).forEach(value => {
67
+ classes.add(value);
68
+ });
69
+ const oldClick = props.onClick;
70
+ const handleClick = (ev) => {
71
+ if (oldClick !== undefined) {
72
+ oldClick(ev);
73
+ }
74
+ if (!ev.defaultPrevented) {
75
+ handleRouterLink(ev);
76
+ }
77
+ };
78
+ let propsToAdd = {
79
+ ref: containerRef,
80
+ class: getElementClasses(containerRef, classes),
81
+ onClick: handleClick,
82
+ onVnodeBeforeMount: (modelUpdateEvent) ? onVnodeBeforeMount : undefined
83
+ };
84
+ for (const key in props) {
85
+ const value = props[key];
86
+ if (props.hasOwnProperty(key) && value !== EMPTY_PROP) {
87
+ propsToAdd[key] = value;
88
+ }
89
+ }
90
+ if (modelProp) {
91
+ if (props[MODEL_VALUE] !== EMPTY_PROP) {
92
+ propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: props[MODEL_VALUE] });
93
+ }
94
+ else if (modelPropValue !== EMPTY_PROP) {
95
+ propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: modelPropValue });
96
+ }
97
+ }
98
+ return (0, vue_1.h)(name, propsToAdd, slots.default && slots.default());
99
+ };
100
+ });
101
+ Container.displayName = name;
102
+ Container.props = {
103
+ [ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP
104
+ };
105
+ componentProps.forEach(componentProp => {
106
+ Container.props[componentProp] = DEFAULT_EMPTY_PROP;
107
+ });
108
+ if (modelProp) {
109
+ Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
110
+ Container.emits = [UPDATE_VALUE_EVENT, externalModelUpdateEvent];
111
+ }
112
+ return Container;
113
+ };
114
+ exports.defineContainer = defineContainer;
115
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/vue-component-lib/utils.ts"],"names":[],"mappings":";;;AAAA,6BAAsF;AAMtF,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAC/C,MAAM,WAAW,GAAG,YAAY,CAAC;AACjC,MAAM,iBAAiB,GAAG,YAAY,CAAC;AACvC,MAAM,WAAW,GAAG,YAAY,CAAC;AACjC,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AAWpC,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC;AAC5B,MAAM,kBAAkB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAMnD,MAAM,mBAAmB,GAAG,CAAC,OAAgB,EAAE,EAAE;IAC/C,OAAO,CAAC,OAAkB,aAAlB,OAAO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