@talex-touch/tuffex-wc 0.0.0-stage → 0.1.0

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.
Files changed (43) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +47 -2
  3. package/dist/chunks/TxImageGeneration.js +28478 -0
  4. package/dist/chunks/base-a.js +1223 -0
  5. package/dist/chunks/base-b.js +1648 -0
  6. package/dist/chunks/core.esm.js +2327 -0
  7. package/dist/chunks/glyphs-ai-1.js +33 -0
  8. package/dist/chunks/glyphs-ai-2.js +55 -0
  9. package/dist/chunks/glyphs-brand-1.js +23 -0
  10. package/dist/chunks/glyphs-brand-2.js +33 -0
  11. package/dist/chunks/glyphs-brand-3.js +40 -0
  12. package/dist/chunks/glyphs-icon-1.js +144 -0
  13. package/dist/chunks/glyphs-icon-2.js +124 -0
  14. package/dist/chunks/pinyin.js +4 -0
  15. package/dist/chunks/pull-down.esm.js +336 -0
  16. package/dist/chunks/pull-up.esm.js +234 -0
  17. package/dist/chunks/scroll-bar.esm.js +768 -0
  18. package/dist/chunks/tier-a.js +426 -0
  19. package/dist/chunks/tier-b.js +897 -0
  20. package/dist/chunks/tier-c.js +72 -0
  21. package/dist/chunks/tuffex-data.js +9757 -0
  22. package/dist/chunks/tuffex-extras.js +11692 -0
  23. package/dist/chunks/tuffex-media.js +13475 -0
  24. package/dist/chunks/tuffex-shared.js +17671 -0
  25. package/dist/chunks/vue-export-helper.js +10 -0
  26. package/dist/chunks/wc-runtime.js +922 -0
  27. package/dist/elements/base-a.d.ts +145 -0
  28. package/dist/elements/base-b.d.ts +129 -0
  29. package/dist/elements/index.d.ts +22 -0
  30. package/dist/elements/tier-a.d.ts +55 -0
  31. package/dist/elements/tier-b.d.ts +58 -0
  32. package/dist/elements/tier-c.d.ts +7 -0
  33. package/dist/index.d.ts +12 -0
  34. package/dist/index.js +320 -0
  35. package/dist/manifest.d.ts +19 -0
  36. package/dist/manifest.js +1377 -0
  37. package/dist/runtime/coerce.d.ts +38 -0
  38. package/dist/runtime/events.d.ts +17 -0
  39. package/dist/runtime/factory.d.ts +129 -0
  40. package/dist/runtime/styles.d.ts +20 -0
  41. package/dist/style.css +1 -0
  42. package/dist/types.d.ts +1861 -0
  43. package/package.json +75 -3
@@ -0,0 +1,1648 @@
1
+ import { d as TxCascader, e as TxTree, f as TxTreeSelect, g as TxDatePicker, h as TxPicker, i as TxForm, j as TxFormItem, k as TxFormRow, l as TxFormErrorSummary, _ as _sfc_main$3, m as TxDrawerForm, n as TxStepsForm, o as _sfc_main$5, p as _sfc_main$6, q as _sfc_main$7, r as TxSortableList, s as TxTransfer, t as TxFormStep } from "./tuffex-data.js";
2
+ import { o as TxSensitiveInput, p as TxTagInput, q as _sfc_main, r as _sfc_main$1, s as TxRating, t as _sfc_main$2, u as TxFlatSelect, v as TxFlatSelectItem, w as TxSearchSelect, x as TX_CONTEXT_MENU_INJECTION_KEY, y as TxContextMenu, z as TxContextMenuItem, A as TxFlatDropdown, B as _sfc_main$4 } from "./tuffex-extras.js";
3
+ import { ax as TxNumberInput, J as TxSearchInput, af as TxFlatRadio, ag as TxFlatRadioItem, K as TxDropdownMenu, M as TxDropdownItem } from "./tuffex-shared.js";
4
+ import { T as TxFileUploader, a as TxImageUploader, b as TxImageGallery, _ as _sfc_main$8, c as TxIconPicker } from "./tuffex-media.js";
5
+ import { defineComponent, useHost, onBeforeUnmount, computed, ref, watch, h, getCurrentInstance, provide, reactive } from "vue";
6
+ import { c as createTxCustomElement, a as createTxCustomElementFromComponent, u as useNativeAttrProps, b as coercePropsBySchema, e as buildRawVueProps, h as hasHostSlotContent, d as dispatchHostEvent, p as promoteChildProvides, f as createSlotVNode } from "./wc-runtime.js";
7
+ const numberInputBundle = createTxCustomElement({
8
+ tag: "tx-number-input",
9
+ component: TxNumberInput,
10
+ props: {
11
+ modelValue: "number",
12
+ value: "number",
13
+ min: "number",
14
+ max: "number",
15
+ step: "number",
16
+ precision: "number",
17
+ placeholder: "string",
18
+ disabled: "boolean",
19
+ readonly: "boolean",
20
+ controls: "boolean",
21
+ decreaseLabel: "string",
22
+ increaseLabel: "string"
23
+ },
24
+ model: {
25
+ prop: "modelValue",
26
+ aliasProp: "value",
27
+ event: "update:modelValue"
28
+ },
29
+ emits: ["update:modelValue", "change", "focus", "blur"],
30
+ suppressNativeEvents: ["input", "change"],
31
+ exposeMethods: ["focus", "blur"]
32
+ });
33
+ const searchInputBundle = createTxCustomElement({
34
+ tag: "tx-search-input",
35
+ component: TxSearchInput,
36
+ props: {
37
+ modelValue: "string",
38
+ value: "string",
39
+ placeholder: "string",
40
+ disabled: "boolean",
41
+ clearable: "boolean",
42
+ remote: "boolean",
43
+ searchDebounce: "number"
44
+ },
45
+ model: {
46
+ prop: "modelValue",
47
+ aliasProp: "value",
48
+ event: "update:modelValue"
49
+ },
50
+ emits: ["update:modelValue", "input", "focus", "blur", "clear", "search"],
51
+ suppressNativeEvents: ["input"],
52
+ exposeMethods: ["focus", "blur", "clear", "setValue"]
53
+ });
54
+ const sensitiveInputBundle = createTxCustomElement({
55
+ tag: "tx-sensitive-input",
56
+ component: TxSensitiveInput,
57
+ props: {
58
+ modelValue: "string",
59
+ value: "string",
60
+ placeholder: "string",
61
+ size: "string",
62
+ status: "string",
63
+ label: "string",
64
+ description: "string",
65
+ error: "string",
66
+ disabled: "boolean",
67
+ readonly: "boolean",
68
+ required: "boolean",
69
+ copyable: "boolean",
70
+ mask: "string",
71
+ copiedDuration: "number",
72
+ labels: "json"
73
+ },
74
+ model: {
75
+ prop: "modelValue",
76
+ aliasProp: "value",
77
+ event: "update:modelValue"
78
+ },
79
+ emits: ["update:modelValue", "copy", "copyError", "reveal", "mask"],
80
+ suppressNativeEvents: ["input"],
81
+ exposeMethods: ["focus", "blur", "reveal", "copy"]
82
+ });
83
+ const tagInputBundle = createTxCustomElement({
84
+ tag: "tx-tag-input",
85
+ component: TxTagInput,
86
+ props: {
87
+ modelValue: "json",
88
+ value: "json",
89
+ placeholder: "string",
90
+ disabled: "boolean",
91
+ max: "number",
92
+ allowDuplicates: "boolean",
93
+ separators: "json",
94
+ confirmOnBlur: "boolean"
95
+ },
96
+ model: {
97
+ prop: "modelValue",
98
+ aliasProp: "value",
99
+ event: "update:modelValue"
100
+ },
101
+ emits: ["update:modelValue", "change", "add", "remove", "focus", "blur"],
102
+ suppressNativeEvents: ["input"]
103
+ });
104
+ const scrubFieldBundle = createTxCustomElement({
105
+ tag: "tx-scrub-field",
106
+ component: _sfc_main,
107
+ props: {
108
+ modelValue: "number",
109
+ value: "number",
110
+ label: "string",
111
+ min: "number",
112
+ max: "number",
113
+ step: "number",
114
+ suffix: "string",
115
+ active: "boolean",
116
+ disabled: "boolean",
117
+ pixelsPerStep: "number",
118
+ shiftMultiplier: "number",
119
+ clampOn: "string",
120
+ ariaLabel: "string",
121
+ valueLabel: "string"
122
+ },
123
+ transformProps: (coerced) => ({
124
+ modelValue: 0,
125
+ label: "",
126
+ min: 0,
127
+ max: 100,
128
+ ...coerced
129
+ }),
130
+ model: {
131
+ prop: "modelValue",
132
+ aliasProp: "value",
133
+ event: "update:modelValue"
134
+ },
135
+ emits: ["update:modelValue", "change", "scrubStart", "scrubEnd"],
136
+ suppressNativeEvents: ["input", "change"],
137
+ exposeMethods: ["focus", "focusInput"]
138
+ });
139
+ const segmentedSliderBundle = createTxCustomElement({
140
+ tag: "tx-segmented-slider",
141
+ component: _sfc_main$1,
142
+ props: {
143
+ modelValue: "string-or-number",
144
+ value: "string-or-number",
145
+ segments: "json",
146
+ disabled: "boolean",
147
+ showLabels: "boolean",
148
+ vertical: "boolean"
149
+ },
150
+ model: {
151
+ prop: "modelValue",
152
+ aliasProp: "value",
153
+ event: "update:modelValue"
154
+ },
155
+ emits: ["update:modelValue", "change"]
156
+ });
157
+ const ratingBundle = createTxCustomElement({
158
+ tag: "tx-rating",
159
+ component: TxRating,
160
+ props: {
161
+ modelValue: "number",
162
+ value: "number",
163
+ maxStars: "number",
164
+ precision: "number",
165
+ disabled: "boolean",
166
+ readonly: "boolean",
167
+ showText: "boolean",
168
+ icon: "string-or-json",
169
+ filledIcon: "string-or-json",
170
+ emptyIcon: "string-or-json",
171
+ halfIcon: "string-or-json",
172
+ filledColor: "string",
173
+ emptyColor: "string",
174
+ hoverColor: "string",
175
+ textColor: "string",
176
+ size: "string-or-number",
177
+ gap: "string-or-number",
178
+ animated: "boolean",
179
+ starLabel: "any"
180
+ },
181
+ model: {
182
+ prop: "modelValue",
183
+ aliasProp: "value",
184
+ event: "update:modelValue"
185
+ },
186
+ emits: ["update:modelValue", "change"],
187
+ slots: ["text"]
188
+ });
189
+ const filterChipsBundle = createTxCustomElement({
190
+ tag: "tx-filter-chips",
191
+ component: _sfc_main$2,
192
+ props: {
193
+ modelValue: "string-or-number",
194
+ value: "string-or-number",
195
+ items: "json",
196
+ disabled: "boolean",
197
+ role: "string",
198
+ indicator: "boolean",
199
+ iconOnly: "boolean",
200
+ ariaLabel: "string"
201
+ },
202
+ model: {
203
+ prop: "modelValue",
204
+ aliasProp: "value",
205
+ event: "update:modelValue"
206
+ },
207
+ emits: ["update:modelValue", "change"]
208
+ });
209
+ const flatRadioBundle = createTxCustomElement({
210
+ tag: "tx-flat-radio",
211
+ component: TxFlatRadio,
212
+ props: {
213
+ modelValue: "string-or-json",
214
+ value: "string-or-json",
215
+ multiple: "boolean",
216
+ disabled: "boolean",
217
+ size: "string",
218
+ bordered: "boolean"
219
+ },
220
+ transformProps: (coerced) => ({
221
+ modelValue: coerced.multiple ? [] : "",
222
+ ...coerced
223
+ }),
224
+ model: {
225
+ prop: "modelValue",
226
+ aliasProp: "value",
227
+ event: "update:modelValue"
228
+ },
229
+ emits: ["update:modelValue", "change"],
230
+ promoteProvides: true,
231
+ slots: ["default"]
232
+ });
233
+ const flatRadioItemBundle = createTxCustomElement({
234
+ tag: "tx-flat-radio-item",
235
+ component: TxFlatRadioItem,
236
+ props: {
237
+ value: "string-or-number",
238
+ label: "string",
239
+ icon: "string",
240
+ disabled: "boolean"
241
+ },
242
+ transformProps: (coerced) => ({
243
+ value: "",
244
+ ...coerced
245
+ }),
246
+ slots: ["icon", "default"]
247
+ });
248
+ const flatSelectBundle = createTxCustomElement({
249
+ tag: "tx-flat-select",
250
+ component: TxFlatSelect,
251
+ props: {
252
+ modelValue: "string-or-number",
253
+ value: "string-or-number",
254
+ placeholder: "string",
255
+ disabled: "boolean",
256
+ ariaLabel: "string",
257
+ ariaLabelledby: "string"
258
+ },
259
+ model: {
260
+ prop: "modelValue",
261
+ aliasProp: "value",
262
+ event: "update:modelValue"
263
+ },
264
+ emits: ["update:modelValue", "change"],
265
+ promoteProvides: true,
266
+ slots: ["default"]
267
+ });
268
+ const flatSelectItemBundle = createTxCustomElement({
269
+ tag: "tx-flat-select-item",
270
+ component: TxFlatSelectItem,
271
+ props: {
272
+ value: "string-or-number",
273
+ label: "string",
274
+ disabled: "boolean"
275
+ },
276
+ transformProps: (coerced) => ({
277
+ value: "",
278
+ ...coerced
279
+ }),
280
+ slots: ["default"]
281
+ });
282
+ const searchSelectBundle = createTxCustomElement({
283
+ tag: "tx-search-select",
284
+ component: TxSearchSelect,
285
+ props: {
286
+ modelValue: "string-or-number",
287
+ value: "string-or-number",
288
+ placeholder: "string",
289
+ disabled: "boolean",
290
+ clearable: "boolean",
291
+ options: "json",
292
+ loading: "boolean",
293
+ remote: "boolean",
294
+ searchDebounce: "number",
295
+ dropdownMaxHeight: "number",
296
+ dropdownOffset: "number",
297
+ panelVariant: "string",
298
+ panelBackground: "string",
299
+ panelShadow: "string",
300
+ panelRadius: "number",
301
+ panelPadding: "number"
302
+ },
303
+ model: {
304
+ prop: "modelValue",
305
+ aliasProp: "value",
306
+ event: "update:modelValue"
307
+ },
308
+ emits: ["update:modelValue", "change", "search", "select", "open", "close"],
309
+ exposeMethods: ["open", "close", "focus", "blur", "clear"]
310
+ });
311
+ const cascaderBundle = createTxCustomElement({
312
+ tag: "tx-cascader",
313
+ component: TxCascader,
314
+ props: {
315
+ modelValue: "json",
316
+ value: "json",
317
+ options: "json",
318
+ multiple: "boolean",
319
+ disabled: "boolean",
320
+ placeholder: "string",
321
+ searchable: "boolean",
322
+ clearable: "boolean",
323
+ placement: "string",
324
+ dropdownOffset: "number",
325
+ dropdownWidth: "number",
326
+ dropdownMaxWidth: "number",
327
+ dropdownMaxHeight: "number",
328
+ expandTrigger: "string",
329
+ load: "any"
330
+ },
331
+ model: {
332
+ prop: "modelValue",
333
+ aliasProp: "value",
334
+ event: "update:modelValue"
335
+ },
336
+ emits: ["update:modelValue", "change", "open", "close", "load-error"],
337
+ exposeMethods: ["open", "close", "toggle", "focus", "blur", "clear", "setValue", "getValue"]
338
+ });
339
+ const treeBundle = createTxCustomElement({
340
+ tag: "tx-tree",
341
+ component: TxTree,
342
+ props: {
343
+ nodes: "json",
344
+ modelValue: "string-or-json",
345
+ value: "string-or-json",
346
+ multiple: "boolean",
347
+ selectable: "boolean",
348
+ checkable: "boolean",
349
+ disabled: "boolean",
350
+ defaultExpandedKeys: "json",
351
+ defaultSelectedKeys: "json",
352
+ expandedKeys: "json",
353
+ indent: "number",
354
+ filterText: "string",
355
+ filterMethod: "any",
356
+ emptyText: "string",
357
+ expandLabel: "string",
358
+ collapseLabel: "string",
359
+ selectLabel: "string"
360
+ },
361
+ model: {
362
+ prop: "modelValue",
363
+ aliasProp: "value",
364
+ event: "update:modelValue"
365
+ },
366
+ emits: ["update:modelValue", "select", "toggle", "update:expandedKeys"],
367
+ slots: ["empty"]
368
+ });
369
+ const treeSelectBundle = createTxCustomElement({
370
+ tag: "tx-tree-select",
371
+ component: TxTreeSelect,
372
+ props: {
373
+ modelValue: "string-or-json",
374
+ value: "string-or-json",
375
+ nodes: "json",
376
+ multiple: "boolean",
377
+ disabled: "boolean",
378
+ placeholder: "string",
379
+ searchable: "boolean",
380
+ clearable: "boolean",
381
+ placement: "string",
382
+ dropdownOffset: "number",
383
+ dropdownWidth: "number",
384
+ dropdownMaxWidth: "number",
385
+ dropdownMaxHeight: "number",
386
+ defaultExpandedKeys: "json"
387
+ },
388
+ model: {
389
+ prop: "modelValue",
390
+ aliasProp: "value",
391
+ event: "update:modelValue"
392
+ },
393
+ emits: ["update:modelValue", "change", "open", "close"],
394
+ exposeMethods: ["open", "close", "toggle", "focus", "blur", "clear", "setValue", "getValue", "getCheckedKeys"]
395
+ });
396
+ const DATE_PICKER_PROP_SCHEMA = {
397
+ modelValue: "string-or-json",
398
+ value: "string-or-json",
399
+ visible: "boolean",
400
+ open: "boolean",
401
+ popup: "boolean",
402
+ variant: "string",
403
+ title: "string",
404
+ placeholder: "string",
405
+ min: "string",
406
+ max: "string",
407
+ disabled: "boolean",
408
+ showToolbar: "boolean",
409
+ confirmText: "string",
410
+ cancelText: "string",
411
+ closeOnClickMask: "boolean",
412
+ adaptiveBreakpoint: "number",
413
+ weekStartsOn: "number",
414
+ range: "boolean",
415
+ rangeSeparator: "string"
416
+ };
417
+ const TxDatePickerWcWrapper = defineComponent({
418
+ name: "Wc_tx-date-picker",
419
+ props: buildRawVueProps(DATE_PICKER_PROP_SCHEMA),
420
+ setup(rawProps) {
421
+ const host = useHost();
422
+ const nativeAttrs = useNativeAttrProps(host, DATE_PICKER_PROP_SCHEMA);
423
+ onBeforeUnmount(() => nativeAttrs.cleanup());
424
+ const coercedProps = computed(() => ({
425
+ ...nativeAttrs.nativeValues,
426
+ ...coercePropsBySchema(rawProps, DATE_PICKER_PROP_SCHEMA)
427
+ }));
428
+ const hasLocalModel = ref(false);
429
+ const localModel = ref(void 0);
430
+ const hasLocalVisible = ref(false);
431
+ const localVisible = ref(false);
432
+ watch(
433
+ () => coercedProps.value.modelValue ?? coercedProps.value.value,
434
+ (next) => {
435
+ if (next !== void 0) {
436
+ hasLocalModel.value = true;
437
+ localModel.value = next;
438
+ }
439
+ },
440
+ { immediate: true }
441
+ );
442
+ watch(
443
+ () => {
444
+ const p = coercedProps.value;
445
+ if (typeof p.visible === "boolean")
446
+ return p.visible;
447
+ if (typeof p.open === "boolean")
448
+ return p.open;
449
+ return void 0;
450
+ },
451
+ (next) => {
452
+ if (typeof next === "boolean") {
453
+ hasLocalVisible.value = true;
454
+ localVisible.value = next;
455
+ }
456
+ },
457
+ { immediate: true }
458
+ );
459
+ return () => {
460
+ const { value: _val, open: _open, ...rest } = coercedProps.value;
461
+ const forwarded = {
462
+ ...rest,
463
+ "onUpdate:modelValue": (val) => {
464
+ hasLocalModel.value = true;
465
+ localModel.value = val;
466
+ if (host)
467
+ host.modelValue = val;
468
+ dispatchHostEvent(host, "update:modelValue", val);
469
+ },
470
+ "onChange": (val) => dispatchHostEvent(host, "change", val),
471
+ "onUpdate:visible": (vis) => {
472
+ hasLocalVisible.value = true;
473
+ localVisible.value = vis;
474
+ if (host)
475
+ host.visible = vis;
476
+ dispatchHostEvent(host, "update:visible", vis);
477
+ },
478
+ "onConfirm": (val) => dispatchHostEvent(host, "confirm", val),
479
+ "onCancel": () => dispatchHostEvent(host, "cancel"),
480
+ "onOpen": () => dispatchHostEvent(host, "open"),
481
+ "onClose": () => dispatchHostEvent(host, "close")
482
+ };
483
+ if (hasLocalModel.value)
484
+ forwarded.modelValue = localModel.value;
485
+ if (hasLocalVisible.value)
486
+ forwarded.visible = localVisible.value;
487
+ return h(TxDatePicker, forwarded);
488
+ };
489
+ }
490
+ });
491
+ const datePickerBundle = createTxCustomElementFromComponent("tx-date-picker", TxDatePickerWcWrapper);
492
+ const PICKER_PROP_SCHEMA = {
493
+ modelValue: "json",
494
+ value: "json",
495
+ columns: "json",
496
+ visible: "boolean",
497
+ popup: "boolean",
498
+ title: "string",
499
+ showToolbar: "boolean",
500
+ confirmText: "string",
501
+ cancelText: "string",
502
+ disabled: "boolean",
503
+ itemHeight: "number",
504
+ visibleItemCount: "number",
505
+ closeOnClickMask: "boolean",
506
+ lazyMount: "boolean"
507
+ };
508
+ const TxPickerWcWrapper = defineComponent({
509
+ name: "Wc_tx-picker",
510
+ props: buildRawVueProps(PICKER_PROP_SCHEMA),
511
+ setup(rawProps, { expose }) {
512
+ const host = useHost();
513
+ const innerRef = ref(null);
514
+ const nativeAttrs = useNativeAttrProps(host, PICKER_PROP_SCHEMA);
515
+ onBeforeUnmount(() => nativeAttrs.cleanup());
516
+ const coercedProps = computed(() => ({
517
+ ...nativeAttrs.nativeValues,
518
+ ...coercePropsBySchema(rawProps, PICKER_PROP_SCHEMA)
519
+ }));
520
+ const hasLocalModel = ref(false);
521
+ const localModel = ref(void 0);
522
+ const hasLocalVisible = ref(false);
523
+ const localVisible = ref(false);
524
+ watch(
525
+ () => coercedProps.value.modelValue ?? coercedProps.value.value,
526
+ (next) => {
527
+ if (next !== void 0) {
528
+ hasLocalModel.value = true;
529
+ localModel.value = next;
530
+ }
531
+ },
532
+ { immediate: true }
533
+ );
534
+ watch(
535
+ () => coercedProps.value.visible,
536
+ (next) => {
537
+ if (typeof next === "boolean") {
538
+ hasLocalVisible.value = true;
539
+ localVisible.value = next;
540
+ }
541
+ },
542
+ { immediate: true }
543
+ );
544
+ expose({
545
+ open: () => innerRef.value?.open?.(),
546
+ close: () => innerRef.value?.close?.(),
547
+ toggle: () => innerRef.value?.toggle?.()
548
+ });
549
+ return () => {
550
+ const { value: _val, ...rest } = coercedProps.value;
551
+ const forwarded = {
552
+ ...rest,
553
+ "ref": innerRef,
554
+ "onUpdate:modelValue": (val) => {
555
+ hasLocalModel.value = true;
556
+ localModel.value = val;
557
+ if (host)
558
+ host.modelValue = val;
559
+ dispatchHostEvent(host, "update:modelValue", val);
560
+ },
561
+ "onChange": (val) => dispatchHostEvent(host, "change", val),
562
+ "onUpdate:visible": (vis) => {
563
+ hasLocalVisible.value = true;
564
+ localVisible.value = vis;
565
+ if (host)
566
+ host.visible = vis;
567
+ dispatchHostEvent(host, "update:visible", vis);
568
+ },
569
+ "onConfirm": (val) => dispatchHostEvent(host, "confirm", val),
570
+ "onCancel": () => dispatchHostEvent(host, "cancel"),
571
+ "onOpen": () => dispatchHostEvent(host, "open"),
572
+ "onClose": () => dispatchHostEvent(host, "close")
573
+ };
574
+ if (hasLocalModel.value)
575
+ forwarded.modelValue = localModel.value;
576
+ if (hasLocalVisible.value)
577
+ forwarded.visible = localVisible.value;
578
+ return h(TxPicker, forwarded);
579
+ };
580
+ }
581
+ });
582
+ const pickerBundle = createTxCustomElementFromComponent("tx-picker", TxPickerWcWrapper);
583
+ const SHARED_FORM_PROPS = {
584
+ id: "string",
585
+ rules: "json",
586
+ schema: "any",
587
+ layout: "string",
588
+ labelPosition: "string",
589
+ labelAlign: "string",
590
+ labelWidth: "string-or-number",
591
+ requiredMark: "string",
592
+ validateOn: "string",
593
+ messages: "json",
594
+ size: "string",
595
+ disabled: "boolean",
596
+ readonly: "boolean",
597
+ reconcile: "any",
598
+ persist: "boolean-or-json",
599
+ leaveConfirm: "any",
600
+ onSubmit: "any"
601
+ };
602
+ const formBundle = createTxCustomElement({
603
+ tag: "tx-form",
604
+ component: TxForm,
605
+ props: {
606
+ ...SHARED_FORM_PROPS,
607
+ model: "json",
608
+ autosave: "boolean-or-json"
609
+ },
610
+ emits: ["validate", "submit-success", "persist-error"],
611
+ promoteProvides: true,
612
+ exposeMethods: [
613
+ "validate",
614
+ "validateField",
615
+ "submit",
616
+ "reset",
617
+ "resetFields",
618
+ "setBaseline",
619
+ "setErrors",
620
+ "setRootError",
621
+ "clearValidate",
622
+ "flush",
623
+ "confirmLeave",
624
+ "restoreDraft",
625
+ "discardDraft"
626
+ ],
627
+ slots: ["draft", "default"]
628
+ });
629
+ const formItemBundle = createTxCustomElement({
630
+ tag: "tx-form-item",
631
+ component: TxFormItem,
632
+ props: {
633
+ label: "string",
634
+ prop: "string",
635
+ rules: "json",
636
+ required: "boolean",
637
+ help: "string",
638
+ hint: "string",
639
+ width: "string",
640
+ showMessage: "boolean",
641
+ inline: "boolean",
642
+ persist: "boolean"
643
+ },
644
+ emits: ["validate"],
645
+ promoteProvides: true,
646
+ slots: ["default"]
647
+ });
648
+ const formRowBundle = createTxCustomElement({
649
+ tag: "tx-form-row",
650
+ component: TxFormRow,
651
+ props: {
652
+ label: "string",
653
+ condensed: "boolean"
654
+ },
655
+ promoteProvides: true,
656
+ slots: ["default"]
657
+ });
658
+ const formErrorSummaryBundle = createTxCustomElement({
659
+ tag: "tx-form-error-summary",
660
+ component: TxFormErrorSummary,
661
+ props: {
662
+ title: "string"
663
+ }
664
+ });
665
+ const modalFormBundle = createTxCustomElement({
666
+ tag: "tx-modal-form",
667
+ component: _sfc_main$3,
668
+ props: {
669
+ ...SHARED_FORM_PROPS,
670
+ modelValue: "boolean",
671
+ open: "boolean",
672
+ visible: "boolean",
673
+ title: "string",
674
+ width: "string",
675
+ initialValues: "json",
676
+ submitText: "string",
677
+ cancelText: "string",
678
+ modalProps: "json"
679
+ },
680
+ transformProps: (coerced) => {
681
+ const { open, visible, ...rest } = coerced;
682
+ const resolved = typeof rest.modelValue === "boolean" ? rest.modelValue : typeof open === "boolean" ? open : typeof visible === "boolean" ? visible : false;
683
+ return {
684
+ ...rest,
685
+ modelValue: resolved
686
+ };
687
+ },
688
+ model: {
689
+ prop: "modelValue",
690
+ aliasProp: "open",
691
+ event: "update:modelValue",
692
+ extraDomEvents: ["update:open"]
693
+ },
694
+ emits: ["update:modelValue", "validate", "submit-success", "persist-error"],
695
+ promoteProvides: true,
696
+ teleportSlots: true,
697
+ exposeMethods: ["cancel"],
698
+ slots: ["default", "footer"]
699
+ });
700
+ const drawerFormBundle = createTxCustomElement({
701
+ tag: "tx-drawer-form",
702
+ component: TxDrawerForm,
703
+ props: {
704
+ ...SHARED_FORM_PROPS,
705
+ visible: "boolean",
706
+ modelValue: "boolean",
707
+ open: "boolean",
708
+ title: "string",
709
+ initialValues: "json",
710
+ submitText: "string",
711
+ cancelText: "string",
712
+ drawerProps: "json"
713
+ },
714
+ transformProps: (coerced) => {
715
+ const { open, ...rest } = coerced;
716
+ const resolved = typeof rest.visible === "boolean" ? rest.visible : typeof rest.modelValue === "boolean" ? rest.modelValue : typeof open === "boolean" ? open : false;
717
+ return {
718
+ ...rest,
719
+ visible: resolved
720
+ };
721
+ },
722
+ model: {
723
+ prop: "visible",
724
+ aliasProp: "modelValue",
725
+ event: "update:visible",
726
+ extraDomEvents: ["update:model-value"]
727
+ },
728
+ emits: ["update:visible", "validate", "submit-success", "persist-error"],
729
+ promoteProvides: true,
730
+ teleportSlots: true,
731
+ exposeMethods: ["cancel"],
732
+ slots: ["default", "footer"]
733
+ });
734
+ const STEPS_FORM_PROP_SCHEMA = {
735
+ ...SHARED_FORM_PROPS,
736
+ model: "json",
737
+ active: "number",
738
+ prevText: "string",
739
+ nextText: "string",
740
+ submitText: "string",
741
+ steps: "json"
742
+ };
743
+ const TxStepsFormWcWrapper = defineComponent({
744
+ name: "Wc_tx-steps-form",
745
+ props: buildRawVueProps(STEPS_FORM_PROP_SCHEMA),
746
+ setup(rawProps, { expose }) {
747
+ const host = useHost();
748
+ const wrapperInstance = getCurrentInstance();
749
+ const innerRef = ref(null);
750
+ const nativeAttrs = useNativeAttrProps(host, STEPS_FORM_PROP_SCHEMA);
751
+ onBeforeUnmount(() => nativeAttrs.cleanup());
752
+ const coercedProps = computed(() => ({
753
+ ...nativeAttrs.nativeValues,
754
+ ...coercePropsBySchema(rawProps, STEPS_FORM_PROP_SCHEMA)
755
+ }));
756
+ const hasLocalActive = ref(false);
757
+ const localActive = ref(0);
758
+ watch(
759
+ () => coercedProps.value.active,
760
+ (next) => {
761
+ if (typeof next === "number") {
762
+ hasLocalActive.value = true;
763
+ localActive.value = next;
764
+ }
765
+ },
766
+ { immediate: true }
767
+ );
768
+ expose({
769
+ back: () => innerRef.value?.back?.()
770
+ });
771
+ return () => {
772
+ const { steps: rawSteps, ...rest } = coercedProps.value;
773
+ const stepList = Array.isArray(rawSteps) ? rawSteps : [];
774
+ const forwarded = {
775
+ ...rest,
776
+ "ref": innerRef,
777
+ "onUpdate:active": (step) => {
778
+ hasLocalActive.value = true;
779
+ localActive.value = step;
780
+ if (host)
781
+ host.active = step;
782
+ dispatchHostEvent(host, "update:active", step);
783
+ },
784
+ "onValidate": (valid) => dispatchHostEvent(host, "validate", valid),
785
+ "onSubmit-success": (values) => dispatchHostEvent(host, "submit-success", values),
786
+ "onPersist-error": (error) => dispatchHostEvent(host, "persist-error", error),
787
+ "onVnodeBeforeMount": (vnode) => promoteChildProvides(wrapperInstance, vnode.component),
788
+ "onVnodeMounted": (vnode) => promoteChildProvides(wrapperInstance, vnode.component)
789
+ };
790
+ if (hasLocalActive.value)
791
+ forwarded.active = localActive.value;
792
+ const slotMap = {};
793
+ if (stepList.length > 0) {
794
+ slotMap.default = () => stepList.map(
795
+ (step, idx) => h(TxFormStep, {
796
+ key: idx,
797
+ title: step.title ?? `Step ${idx + 1}`,
798
+ description: step.description
799
+ }, step.content ? { default: () => h("div", { class: "tx-steps-form__step-body" }, step.content) } : void 0)
800
+ );
801
+ } else if (hasHostSlotContent(host, "default")) {
802
+ slotMap.default = () => createSlotVNode(host, "default", false);
803
+ }
804
+ if (hasHostSlotContent(host, "actions"))
805
+ slotMap.actions = () => createSlotVNode(host, "actions", false);
806
+ return h(TxStepsForm, forwarded, Object.keys(slotMap).length > 0 ? slotMap : void 0);
807
+ };
808
+ }
809
+ });
810
+ const stepsFormBundle = createTxCustomElementFromComponent("tx-steps-form", TxStepsFormWcWrapper);
811
+ const CONTEXT_MENU_PROP_SCHEMA = {
812
+ modelValue: "boolean",
813
+ x: "number",
814
+ y: "number",
815
+ width: "number",
816
+ minWidth: "number",
817
+ maxWidth: "number",
818
+ maxHeight: "number",
819
+ unlimitedHeight: "boolean",
820
+ disabled: "boolean",
821
+ eager: "boolean",
822
+ trigger: "string",
823
+ anchorMode: "string",
824
+ preventDefault: "boolean",
825
+ placement: "string",
826
+ offset: "number",
827
+ closeOnEsc: "boolean",
828
+ closeOnClickOutside: "boolean",
829
+ closeOnTriggerPointerDown: "boolean",
830
+ closeOnAnyPointerDown: "boolean",
831
+ closeOnSelect: "boolean",
832
+ activationFeedback: "boolean",
833
+ showArrow: "boolean",
834
+ arrowSize: "number",
835
+ animation: "json",
836
+ keepAliveContent: "boolean",
837
+ panelVariant: "string",
838
+ panelBackground: "string",
839
+ panelShadow: "string",
840
+ panelRadius: "number",
841
+ panelPadding: "number",
842
+ panelCard: "json"
843
+ };
844
+ const TxContextMenuWcWrapper = defineComponent({
845
+ name: "Wc_tx-context-menu",
846
+ props: buildRawVueProps(CONTEXT_MENU_PROP_SCHEMA),
847
+ setup(rawProps, { expose }) {
848
+ const host = useHost();
849
+ const innerRef = ref(null);
850
+ const nativeAttrs = useNativeAttrProps(host, CONTEXT_MENU_PROP_SCHEMA);
851
+ onBeforeUnmount(() => nativeAttrs.cleanup());
852
+ const coercedProps = computed(() => ({
853
+ ...nativeAttrs.nativeValues,
854
+ ...coercePropsBySchema(rawProps, CONTEXT_MENU_PROP_SCHEMA)
855
+ }));
856
+ const hasLocalModel = ref(false);
857
+ const localModel = ref(false);
858
+ watch(
859
+ () => coercedProps.value.modelValue,
860
+ (next) => {
861
+ if (typeof next === "boolean") {
862
+ hasLocalModel.value = true;
863
+ localModel.value = next;
864
+ }
865
+ },
866
+ { immediate: true }
867
+ );
868
+ provide(TX_CONTEXT_MENU_INJECTION_KEY, reactive({
869
+ close: () => {
870
+ const fn = innerRef.value?.close;
871
+ fn?.();
872
+ },
873
+ closeOnSelect: computed(() => coercedProps.value.closeOnSelect !== false),
874
+ activationFeedback: computed(() => coercedProps.value.activationFeedback !== false)
875
+ }));
876
+ expose({
877
+ close: () => innerRef.value?.close?.(),
878
+ openAt: (target) => innerRef.value?.openAt?.(target),
879
+ openFromEvent: (event) => innerRef.value?.openFromEvent?.(event),
880
+ updatePosition: () => innerRef.value?.updatePosition?.()
881
+ });
882
+ return () => {
883
+ const forwarded = {
884
+ ...coercedProps.value,
885
+ "ref": innerRef,
886
+ "onUpdate:modelValue": (val) => {
887
+ hasLocalModel.value = true;
888
+ localModel.value = val;
889
+ if (host)
890
+ host.modelValue = val;
891
+ dispatchHostEvent(host, "update:modelValue", val);
892
+ },
893
+ "onOpen": (payload) => dispatchHostEvent(host, "open", payload),
894
+ "onClose": () => dispatchHostEvent(host, "close")
895
+ };
896
+ if (hasLocalModel.value)
897
+ forwarded.modelValue = localModel.value;
898
+ const slotMap = {};
899
+ if (hasHostSlotContent(host, "trigger"))
900
+ slotMap.trigger = () => createSlotVNode(host, "trigger", false);
901
+ if (hasHostSlotContent(host, "default"))
902
+ slotMap.default = () => createSlotVNode(host, "default", false);
903
+ if (hasHostSlotContent(host, "menu"))
904
+ slotMap.menu = () => createSlotVNode(host, "menu", true);
905
+ return h(TxContextMenu, forwarded, Object.keys(slotMap).length > 0 ? slotMap : void 0);
906
+ };
907
+ }
908
+ });
909
+ const contextMenuBundle = createTxCustomElementFromComponent("tx-context-menu", TxContextMenuWcWrapper);
910
+ const contextMenuItemBundle = createTxCustomElement({
911
+ tag: "tx-context-menu-item",
912
+ component: TxContextMenuItem,
913
+ props: {
914
+ disabled: "boolean",
915
+ danger: "boolean",
916
+ color: "string",
917
+ shortcut: "string",
918
+ submenu: "boolean",
919
+ closeOnSelect: "boolean",
920
+ activationFeedback: "boolean"
921
+ },
922
+ emits: ["select"],
923
+ slots: ["avatar", "default", "description", "right"]
924
+ });
925
+ const dropdownMenuBundle = createTxCustomElement({
926
+ tag: "tx-dropdown-menu",
927
+ component: TxDropdownMenu,
928
+ props: {
929
+ modelValue: "boolean",
930
+ placement: "string",
931
+ trigger: "string",
932
+ offset: "number",
933
+ closeOnSelect: "boolean",
934
+ activationFeedback: "boolean",
935
+ initialFocus: "string",
936
+ animation: "json",
937
+ minWidth: "number",
938
+ maxHeight: "number",
939
+ unlimitedHeight: "boolean",
940
+ referenceClass: "any",
941
+ panelCard: "json",
942
+ panelVariant: "string",
943
+ panelBackground: "string",
944
+ panelShadow: "string",
945
+ panelRadius: "number",
946
+ panelPadding: "number"
947
+ },
948
+ model: {
949
+ prop: "modelValue",
950
+ event: "update:modelValue"
951
+ },
952
+ emits: ["update:modelValue", "open", "close"],
953
+ promoteProvides: true,
954
+ teleportSlots: true,
955
+ slots: ["trigger", "default"]
956
+ });
957
+ const dropdownItemBundle = createTxCustomElement({
958
+ tag: "tx-dropdown-item",
959
+ component: TxDropdownItem,
960
+ props: {
961
+ disabled: "boolean",
962
+ danger: "boolean",
963
+ arrow: "boolean",
964
+ closeOnSelect: "boolean",
965
+ activationFeedback: "boolean",
966
+ checked: "boolean",
967
+ checkType: "string"
968
+ },
969
+ emits: ["select"],
970
+ slots: ["default", "right"]
971
+ });
972
+ const flatDropdownBundle = createTxCustomElement({
973
+ tag: "tx-flat-dropdown",
974
+ component: TxFlatDropdown,
975
+ props: {
976
+ modelValue: "boolean",
977
+ trigger: "string",
978
+ placement: "string",
979
+ offset: "number",
980
+ openDelay: "number",
981
+ closeDelay: "number",
982
+ exitDuration: "number",
983
+ disabled: "boolean",
984
+ teleport: "boolean-or-string",
985
+ matchTriggerWidth: "boolean",
986
+ width: "string-or-number",
987
+ closeOnClickOutside: "boolean",
988
+ closeOnEsc: "boolean",
989
+ closeOnContentClick: "boolean",
990
+ panelClass: "any"
991
+ },
992
+ model: {
993
+ prop: "modelValue",
994
+ event: "update:modelValue"
995
+ },
996
+ emits: ["update:modelValue", "open", "close"],
997
+ teleportSlots: true,
998
+ slots: ["trigger", "default"]
999
+ });
1000
+ const selectionActionsBundle = createTxCustomElement({
1001
+ tag: "tx-selection-actions",
1002
+ component: _sfc_main$4,
1003
+ props: {
1004
+ selection: "json",
1005
+ state: "string",
1006
+ actions: "json",
1007
+ activeActionId: "string",
1008
+ expanded: "boolean",
1009
+ prompt: "string",
1010
+ hidePrompt: "boolean",
1011
+ placeholder: "string",
1012
+ ariaLabel: "string",
1013
+ keepLabel: "string",
1014
+ discardLabel: "string",
1015
+ retryLabel: "string",
1016
+ sendLabel: "string",
1017
+ expandLabel: "string",
1018
+ collapseLabel: "string",
1019
+ busyLabel: "string",
1020
+ offset: "number"
1021
+ },
1022
+ emits: ["action", "submit", "keep", "discard", "retry", "update:expanded", "update:prompt"],
1023
+ exposeMethods: ["updatePosition", "focusInput"],
1024
+ slots: ["busy", "result"]
1025
+ });
1026
+ const dataTableBundle = createTxCustomElement({
1027
+ tag: "tx-data-table",
1028
+ component: _sfc_main$5,
1029
+ props: {
1030
+ columns: "json",
1031
+ data: "json",
1032
+ rowKey: "any",
1033
+ loading: "boolean",
1034
+ loadingVariant: "string",
1035
+ skeletonRows: "number",
1036
+ emptyText: "string",
1037
+ striped: "boolean",
1038
+ bordered: "boolean",
1039
+ hover: "boolean",
1040
+ interactiveRows: "boolean",
1041
+ selectable: "boolean",
1042
+ selectedKeys: "json",
1043
+ selectAllLabel: "string",
1044
+ selectRowLabel: "string",
1045
+ selectRowLabelFormatter: "any",
1046
+ defaultSort: "json",
1047
+ sort: "json",
1048
+ sortOnClient: "boolean",
1049
+ sortCycle: "string",
1050
+ tableLayout: "string",
1051
+ nowrap: "boolean",
1052
+ maxHeight: "string-or-number",
1053
+ scrollX: "boolean",
1054
+ stickyHeader: "boolean",
1055
+ stickyFooter: "boolean",
1056
+ expandable: "boolean",
1057
+ defaultExpandedKeys: "json",
1058
+ expandedKeys: "json",
1059
+ rowExpandable: "any",
1060
+ expandLabel: "string",
1061
+ collapseLabel: "string",
1062
+ rowClass: "any",
1063
+ highlightSelected: "boolean",
1064
+ defaultFilter: "json",
1065
+ filter: "json",
1066
+ filterOnClient: "boolean",
1067
+ autoStickyActions: "boolean",
1068
+ labels: "json"
1069
+ },
1070
+ transformProps: (coerced) => ({
1071
+ columns: [],
1072
+ data: [],
1073
+ ...coerced
1074
+ }),
1075
+ emits: [
1076
+ "update:selectedKeys",
1077
+ "selectionChange",
1078
+ "update:expandedKeys",
1079
+ "expand",
1080
+ "sortChange",
1081
+ "update:sort",
1082
+ "rowClick",
1083
+ "update:filter",
1084
+ "filterChange"
1085
+ ]
1086
+ });
1087
+ const descriptionsBundle = createTxCustomElement({
1088
+ tag: "tx-descriptions",
1089
+ component: _sfc_main$6,
1090
+ props: {
1091
+ columns: "number",
1092
+ layout: "string",
1093
+ size: "string",
1094
+ emptyText: "string",
1095
+ labelWidth: "string-or-number"
1096
+ },
1097
+ promoteProvides: true,
1098
+ slots: ["default"]
1099
+ });
1100
+ const descriptionsItemBundle = createTxCustomElement({
1101
+ tag: "tx-descriptions-item",
1102
+ component: _sfc_main$7,
1103
+ props: {
1104
+ label: "string",
1105
+ span: "number"
1106
+ },
1107
+ slots: ["label", "default"]
1108
+ });
1109
+ const sortableListBundle = createTxCustomElement({
1110
+ tag: "tx-sortable-list",
1111
+ component: TxSortableList,
1112
+ props: {
1113
+ modelValue: "json",
1114
+ value: "json",
1115
+ disabled: "boolean",
1116
+ handle: "boolean",
1117
+ ariaLabel: "string",
1118
+ itemLabel: "any",
1119
+ labels: "json",
1120
+ dragMode: "string"
1121
+ },
1122
+ transformProps: (coerced) => ({
1123
+ modelValue: [],
1124
+ ...coerced
1125
+ }),
1126
+ model: {
1127
+ prop: "modelValue",
1128
+ aliasProp: "value",
1129
+ event: "update:modelValue"
1130
+ },
1131
+ emits: ["update:modelValue", "reorder"]
1132
+ });
1133
+ const transferBundle = createTxCustomElement({
1134
+ tag: "tx-transfer",
1135
+ component: TxTransfer,
1136
+ props: {
1137
+ modelValue: "json",
1138
+ value: "json",
1139
+ data: "json",
1140
+ titles: "json",
1141
+ filterable: "boolean",
1142
+ filterPlaceholder: "string",
1143
+ emptyText: "string-or-json",
1144
+ maxHeight: "string-or-number",
1145
+ minHeight: "string-or-number",
1146
+ addAriaLabel: "string",
1147
+ removeAriaLabel: "string",
1148
+ moveUpAriaLabel: "string",
1149
+ moveDownAriaLabel: "string",
1150
+ selectAllAriaLabel: "string",
1151
+ targetOrder: "string",
1152
+ orderable: "boolean"
1153
+ },
1154
+ model: {
1155
+ prop: "modelValue",
1156
+ aliasProp: "value",
1157
+ event: "update:modelValue"
1158
+ },
1159
+ emits: ["update:modelValue", "change"]
1160
+ });
1161
+ const fileUploaderBundle = createTxCustomElement({
1162
+ tag: "tx-file-uploader",
1163
+ component: TxFileUploader,
1164
+ props: {
1165
+ modelValue: "json",
1166
+ value: "json",
1167
+ multiple: "boolean",
1168
+ accept: "string",
1169
+ disabled: "boolean",
1170
+ max: "number",
1171
+ showSize: "boolean",
1172
+ allowDrop: "boolean",
1173
+ buttonText: "string",
1174
+ dropText: "string",
1175
+ hintText: "string"
1176
+ },
1177
+ model: {
1178
+ prop: "modelValue",
1179
+ aliasProp: "value",
1180
+ event: "update:modelValue"
1181
+ },
1182
+ emits: ["update:modelValue", "change", "add", "remove"],
1183
+ suppressNativeEvents: ["change"],
1184
+ exposeMethods: ["pick"]
1185
+ });
1186
+ const imageUploaderBundle = createTxCustomElement({
1187
+ tag: "tx-image-uploader",
1188
+ component: TxImageUploader,
1189
+ props: {
1190
+ modelValue: "json",
1191
+ value: "json",
1192
+ multiple: "boolean",
1193
+ accept: "string",
1194
+ disabled: "boolean",
1195
+ max: "number",
1196
+ uploadText: "string",
1197
+ removeLabel: "any"
1198
+ },
1199
+ transformProps: (coerced) => ({
1200
+ modelValue: [],
1201
+ ...coerced
1202
+ }),
1203
+ model: {
1204
+ prop: "modelValue",
1205
+ aliasProp: "value",
1206
+ event: "update:modelValue"
1207
+ },
1208
+ emits: ["update:modelValue", "change", "remove"],
1209
+ suppressNativeEvents: ["change"]
1210
+ });
1211
+ const imageGalleryBundle = createTxCustomElement({
1212
+ tag: "tx-image-gallery",
1213
+ component: TxImageGallery,
1214
+ props: {
1215
+ items: "json",
1216
+ startIndex: "number",
1217
+ previousLabel: "string",
1218
+ nextLabel: "string",
1219
+ previewTitle: "string",
1220
+ closeLabel: "string",
1221
+ zoomInLabel: "string",
1222
+ zoomOutLabel: "string",
1223
+ resetLabel: "string",
1224
+ failedText: "string",
1225
+ itemLabelFormatter: "any",
1226
+ openLabelFormatter: "any",
1227
+ previewProps: "json"
1228
+ },
1229
+ transformProps: (coerced) => ({
1230
+ items: [],
1231
+ ...coerced
1232
+ }),
1233
+ emits: ["open", "close", "action"]
1234
+ });
1235
+ const IMAGE_PREVIEW_PROP_SCHEMA = {
1236
+ open: "boolean",
1237
+ modelValue: "boolean",
1238
+ visible: "boolean",
1239
+ index: "number",
1240
+ images: "json",
1241
+ items: "json",
1242
+ maxScale: "number",
1243
+ failed: "json",
1244
+ loadingEffect: "string",
1245
+ origin: "any",
1246
+ transition: "string",
1247
+ actions: "json",
1248
+ contextMenu: "boolean",
1249
+ indicator: "string",
1250
+ minimap: "boolean",
1251
+ bounce: "number",
1252
+ maskSurface: "string",
1253
+ maskColor: "string",
1254
+ maskOpacity: "number",
1255
+ maskBlur: "number",
1256
+ controlSurface: "string",
1257
+ controlColor: "string",
1258
+ controlOpacity: "number",
1259
+ controlBlur: "number",
1260
+ label: "string",
1261
+ closeLabel: "string",
1262
+ previousLabel: "string",
1263
+ nextLabel: "string",
1264
+ zoomInLabel: "string",
1265
+ zoomOutLabel: "string",
1266
+ zoomLabel: "string",
1267
+ resetLabel: "string",
1268
+ rotateLabel: "string",
1269
+ copyLabel: "string",
1270
+ shareLabel: "string",
1271
+ downloadLabel: "string",
1272
+ menuLabel: "string",
1273
+ indicatorLabel: "string",
1274
+ copiedText: "string",
1275
+ linkCopiedText: "string",
1276
+ copyFailedText: "string",
1277
+ failedText: "string",
1278
+ counterFormatter: "any",
1279
+ scaleFormatter: "any",
1280
+ indicatorItemFormatter: "any",
1281
+ labelFormatter: "any",
1282
+ readoutLabelFormatter: "any"
1283
+ };
1284
+ const TxImagePreviewWcWrapper = defineComponent({
1285
+ name: "Wc_tx-image-preview",
1286
+ props: buildRawVueProps(IMAGE_PREVIEW_PROP_SCHEMA),
1287
+ setup(rawProps, { expose }) {
1288
+ const host = useHost();
1289
+ const innerRef = ref(null);
1290
+ const nativeAttrs = useNativeAttrProps(host, IMAGE_PREVIEW_PROP_SCHEMA);
1291
+ onBeforeUnmount(() => nativeAttrs.cleanup());
1292
+ const coercedProps = computed(() => ({
1293
+ ...nativeAttrs.nativeValues,
1294
+ ...coercePropsBySchema(rawProps, IMAGE_PREVIEW_PROP_SCHEMA)
1295
+ }));
1296
+ const localOpen = ref(false);
1297
+ const localIndex = ref(0);
1298
+ watch(
1299
+ () => {
1300
+ const p = coercedProps.value;
1301
+ if (typeof p.open === "boolean")
1302
+ return p.open;
1303
+ if (typeof p.modelValue === "boolean")
1304
+ return p.modelValue;
1305
+ if (typeof p.visible === "boolean")
1306
+ return p.visible;
1307
+ return false;
1308
+ },
1309
+ (next) => {
1310
+ localOpen.value = next;
1311
+ },
1312
+ { immediate: true }
1313
+ );
1314
+ watch(
1315
+ () => coercedProps.value.index,
1316
+ (next) => {
1317
+ if (typeof next === "number")
1318
+ localIndex.value = next;
1319
+ },
1320
+ { immediate: true }
1321
+ );
1322
+ expose({
1323
+ show: (at) => innerRef.value?.show?.(at),
1324
+ close: () => innerRef.value?.close?.()
1325
+ });
1326
+ return () => {
1327
+ const { modelValue: _mv, visible: _vis, ...rest } = coercedProps.value;
1328
+ return h(_sfc_main$8, {
1329
+ ...rest,
1330
+ "ref": innerRef,
1331
+ "open": localOpen.value,
1332
+ "index": localIndex.value,
1333
+ "onUpdate:open": (val) => {
1334
+ localOpen.value = val;
1335
+ if (host)
1336
+ host.open = val;
1337
+ dispatchHostEvent(host, "update:open", val);
1338
+ },
1339
+ "onUpdate:index": (idx) => {
1340
+ localIndex.value = idx;
1341
+ if (host)
1342
+ host.index = idx;
1343
+ dispatchHostEvent(host, "update:index", idx);
1344
+ },
1345
+ "onClose": () => dispatchHostEvent(host, "close"),
1346
+ "onError": (url, idx) => dispatchHostEvent(host, "error", { url, index: idx }),
1347
+ "onAction": (payload) => dispatchHostEvent(host, "action", payload)
1348
+ });
1349
+ };
1350
+ }
1351
+ });
1352
+ const imagePreviewBundle = createTxCustomElementFromComponent("tx-image-preview", TxImagePreviewWcWrapper);
1353
+ const ICON_PICKER_PROP_SCHEMA = {
1354
+ modelValue: "string",
1355
+ value: "string",
1356
+ shape: "string",
1357
+ sections: "json",
1358
+ catalog: "json",
1359
+ emojiPacks: "json",
1360
+ shapeSelectable: "boolean",
1361
+ fileChooser: "any",
1362
+ accept: "string",
1363
+ disabled: "boolean",
1364
+ size: "number",
1365
+ placeholder: "string",
1366
+ inline: "boolean",
1367
+ labels: "json"
1368
+ };
1369
+ const TxIconPickerWcWrapper = defineComponent({
1370
+ name: "Wc_tx-icon-picker",
1371
+ props: buildRawVueProps(ICON_PICKER_PROP_SCHEMA),
1372
+ setup(rawProps, { expose }) {
1373
+ const host = useHost();
1374
+ const innerRef = ref(null);
1375
+ const nativeAttrs = useNativeAttrProps(host, ICON_PICKER_PROP_SCHEMA);
1376
+ onBeforeUnmount(() => nativeAttrs.cleanup());
1377
+ const coercedProps = computed(() => ({
1378
+ ...nativeAttrs.nativeValues,
1379
+ ...coercePropsBySchema(rawProps, ICON_PICKER_PROP_SCHEMA)
1380
+ }));
1381
+ const hasLocalModel = ref(false);
1382
+ const localModel = ref("");
1383
+ const hasLocalShape = ref(false);
1384
+ const localShape = ref("rounded");
1385
+ watch(
1386
+ () => coercedProps.value.modelValue ?? coercedProps.value.value,
1387
+ (next) => {
1388
+ if (typeof next === "string") {
1389
+ hasLocalModel.value = true;
1390
+ localModel.value = next;
1391
+ }
1392
+ },
1393
+ { immediate: true }
1394
+ );
1395
+ watch(
1396
+ () => coercedProps.value.shape,
1397
+ (next) => {
1398
+ if (typeof next === "string") {
1399
+ hasLocalShape.value = true;
1400
+ localShape.value = next;
1401
+ }
1402
+ },
1403
+ { immediate: true }
1404
+ );
1405
+ expose({
1406
+ toggle: (value) => innerRef.value?.toggle?.(value)
1407
+ });
1408
+ return () => {
1409
+ const { value: _val, ...rest } = coercedProps.value;
1410
+ const forwarded = {
1411
+ ...rest,
1412
+ "ref": innerRef,
1413
+ "onUpdate:modelValue": (val) => {
1414
+ hasLocalModel.value = true;
1415
+ localModel.value = val;
1416
+ if (host)
1417
+ host.modelValue = val;
1418
+ dispatchHostEvent(host, "update:modelValue", val);
1419
+ },
1420
+ "onUpdate:shape": (shape) => {
1421
+ hasLocalShape.value = true;
1422
+ localShape.value = shape;
1423
+ if (host)
1424
+ host.shape = shape;
1425
+ dispatchHostEvent(host, "update:shape", shape);
1426
+ },
1427
+ "onChange": (val) => dispatchHostEvent(host, "change", val),
1428
+ "onFile-error": (error) => dispatchHostEvent(host, "file-error", error)
1429
+ };
1430
+ if (hasLocalModel.value)
1431
+ forwarded.modelValue = localModel.value;
1432
+ if (hasLocalShape.value)
1433
+ forwarded.shape = localShape.value;
1434
+ return h(TxIconPicker, forwarded);
1435
+ };
1436
+ }
1437
+ });
1438
+ const iconPickerBundle = createTxCustomElementFromComponent("tx-icon-picker", TxIconPickerWcWrapper);
1439
+ const TxNumberInputElement = numberInputBundle.ElementClass;
1440
+ const defineTxNumberInput = numberInputBundle.define;
1441
+ const TxSearchInputElement = searchInputBundle.ElementClass;
1442
+ const defineTxSearchInput = searchInputBundle.define;
1443
+ const TxSensitiveInputElement = sensitiveInputBundle.ElementClass;
1444
+ const defineTxSensitiveInput = sensitiveInputBundle.define;
1445
+ const TxTagInputElement = tagInputBundle.ElementClass;
1446
+ const defineTxTagInput = tagInputBundle.define;
1447
+ const TxScrubFieldElement = scrubFieldBundle.ElementClass;
1448
+ const defineTxScrubField = scrubFieldBundle.define;
1449
+ const TxSegmentedSliderElement = segmentedSliderBundle.ElementClass;
1450
+ const defineTxSegmentedSlider = segmentedSliderBundle.define;
1451
+ const TxRatingElement = ratingBundle.ElementClass;
1452
+ const defineTxRating = ratingBundle.define;
1453
+ const TxFilterChipsElement = filterChipsBundle.ElementClass;
1454
+ const defineTxFilterChips = filterChipsBundle.define;
1455
+ const TxFlatRadioElement = flatRadioBundle.ElementClass;
1456
+ const defineTxFlatRadio = flatRadioBundle.define;
1457
+ const TxFlatRadioItemElement = flatRadioItemBundle.ElementClass;
1458
+ const defineTxFlatRadioItem = flatRadioItemBundle.define;
1459
+ const TxFlatSelectElement = flatSelectBundle.ElementClass;
1460
+ const defineTxFlatSelect = flatSelectBundle.define;
1461
+ const TxFlatSelectItemElement = flatSelectItemBundle.ElementClass;
1462
+ const defineTxFlatSelectItem = flatSelectItemBundle.define;
1463
+ const TxSearchSelectElement = searchSelectBundle.ElementClass;
1464
+ const defineTxSearchSelect = searchSelectBundle.define;
1465
+ const TxCascaderElement = cascaderBundle.ElementClass;
1466
+ const defineTxCascader = cascaderBundle.define;
1467
+ const TxTreeElement = treeBundle.ElementClass;
1468
+ const defineTxTree = treeBundle.define;
1469
+ const TxTreeSelectElement = treeSelectBundle.ElementClass;
1470
+ const defineTxTreeSelect = treeSelectBundle.define;
1471
+ const TxDatePickerElement = datePickerBundle.ElementClass;
1472
+ const defineTxDatePicker = datePickerBundle.define;
1473
+ const TxPickerElement = pickerBundle.ElementClass;
1474
+ const defineTxPicker = pickerBundle.define;
1475
+ const TxFormElement = formBundle.ElementClass;
1476
+ const defineTxForm = formBundle.define;
1477
+ const TxFormItemElement = formItemBundle.ElementClass;
1478
+ const defineTxFormItem = formItemBundle.define;
1479
+ const TxFormRowElement = formRowBundle.ElementClass;
1480
+ const defineTxFormRow = formRowBundle.define;
1481
+ const TxFormErrorSummaryElement = formErrorSummaryBundle.ElementClass;
1482
+ const defineTxFormErrorSummary = formErrorSummaryBundle.define;
1483
+ const TxModalFormElement = modalFormBundle.ElementClass;
1484
+ const defineTxModalForm = modalFormBundle.define;
1485
+ const TxDrawerFormElement = drawerFormBundle.ElementClass;
1486
+ const defineTxDrawerForm = drawerFormBundle.define;
1487
+ const TxStepsFormElement = stepsFormBundle.ElementClass;
1488
+ const defineTxStepsForm = stepsFormBundle.define;
1489
+ const TxContextMenuElement = contextMenuBundle.ElementClass;
1490
+ const defineTxContextMenu = contextMenuBundle.define;
1491
+ const TxContextMenuItemElement = contextMenuItemBundle.ElementClass;
1492
+ const defineTxContextMenuItem = contextMenuItemBundle.define;
1493
+ const TxDropdownMenuElement = dropdownMenuBundle.ElementClass;
1494
+ const defineTxDropdownMenu = dropdownMenuBundle.define;
1495
+ const TxDropdownItemElement = dropdownItemBundle.ElementClass;
1496
+ const defineTxDropdownItem = dropdownItemBundle.define;
1497
+ const TxFlatDropdownElement = flatDropdownBundle.ElementClass;
1498
+ const defineTxFlatDropdown = flatDropdownBundle.define;
1499
+ const TxSelectionActionsElement = selectionActionsBundle.ElementClass;
1500
+ const defineTxSelectionActions = selectionActionsBundle.define;
1501
+ const TxDataTableElement = dataTableBundle.ElementClass;
1502
+ const defineTxDataTable = dataTableBundle.define;
1503
+ const TxDescriptionsElement = descriptionsBundle.ElementClass;
1504
+ const defineTxDescriptions = descriptionsBundle.define;
1505
+ const TxDescriptionsItemElement = descriptionsItemBundle.ElementClass;
1506
+ const defineTxDescriptionsItem = descriptionsItemBundle.define;
1507
+ const TxSortableListElement = sortableListBundle.ElementClass;
1508
+ const defineTxSortableList = sortableListBundle.define;
1509
+ const TxTransferElement = transferBundle.ElementClass;
1510
+ const defineTxTransfer = transferBundle.define;
1511
+ const TxFileUploaderElement = fileUploaderBundle.ElementClass;
1512
+ const defineTxFileUploader = fileUploaderBundle.define;
1513
+ const TxImageUploaderElement = imageUploaderBundle.ElementClass;
1514
+ const defineTxImageUploader = imageUploaderBundle.define;
1515
+ const TxImageGalleryElement = imageGalleryBundle.ElementClass;
1516
+ const defineTxImageGallery = imageGalleryBundle.define;
1517
+ const TxImagePreviewElement = imagePreviewBundle.ElementClass;
1518
+ const defineTxImagePreview = imagePreviewBundle.define;
1519
+ const TxIconPickerElement = iconPickerBundle.ElementClass;
1520
+ const defineTxIconPicker = iconPickerBundle.define;
1521
+ const BASE_B_BUNDLES = [
1522
+ numberInputBundle,
1523
+ searchInputBundle,
1524
+ sensitiveInputBundle,
1525
+ tagInputBundle,
1526
+ scrubFieldBundle,
1527
+ segmentedSliderBundle,
1528
+ ratingBundle,
1529
+ filterChipsBundle,
1530
+ flatRadioBundle,
1531
+ flatRadioItemBundle,
1532
+ flatSelectBundle,
1533
+ flatSelectItemBundle,
1534
+ searchSelectBundle,
1535
+ cascaderBundle,
1536
+ treeBundle,
1537
+ treeSelectBundle,
1538
+ datePickerBundle,
1539
+ pickerBundle,
1540
+ formBundle,
1541
+ formItemBundle,
1542
+ formRowBundle,
1543
+ formErrorSummaryBundle,
1544
+ modalFormBundle,
1545
+ drawerFormBundle,
1546
+ stepsFormBundle,
1547
+ contextMenuBundle,
1548
+ contextMenuItemBundle,
1549
+ dropdownMenuBundle,
1550
+ dropdownItemBundle,
1551
+ flatDropdownBundle,
1552
+ selectionActionsBundle,
1553
+ dataTableBundle,
1554
+ descriptionsBundle,
1555
+ descriptionsItemBundle,
1556
+ sortableListBundle,
1557
+ transferBundle,
1558
+ fileUploaderBundle,
1559
+ imageUploaderBundle,
1560
+ imageGalleryBundle,
1561
+ imagePreviewBundle,
1562
+ iconPickerBundle
1563
+ ];
1564
+ export {
1565
+ defineTxFilterChips as $,
1566
+ TxPickerElement as A,
1567
+ BASE_B_BUNDLES as B,
1568
+ TxRatingElement as C,
1569
+ TxScrubFieldElement as D,
1570
+ TxSearchInputElement as E,
1571
+ TxSearchSelectElement as F,
1572
+ TxSegmentedSliderElement as G,
1573
+ TxSelectionActionsElement as H,
1574
+ TxSensitiveInputElement as I,
1575
+ TxSortableListElement as J,
1576
+ TxStepsFormElement as K,
1577
+ TxTagInputElement as L,
1578
+ TxTransferElement as M,
1579
+ TxTreeElement as N,
1580
+ TxTreeSelectElement as O,
1581
+ defineTxCascader as P,
1582
+ defineTxContextMenu as Q,
1583
+ defineTxContextMenuItem as R,
1584
+ defineTxDataTable as S,
1585
+ TxCascaderElement as T,
1586
+ defineTxDatePicker as U,
1587
+ defineTxDescriptions as V,
1588
+ defineTxDescriptionsItem as W,
1589
+ defineTxDrawerForm as X,
1590
+ defineTxDropdownItem as Y,
1591
+ defineTxDropdownMenu as Z,
1592
+ defineTxFileUploader as _,
1593
+ TxContextMenuElement as a,
1594
+ defineTxFlatDropdown as a0,
1595
+ defineTxFlatRadio as a1,
1596
+ defineTxFlatRadioItem as a2,
1597
+ defineTxFlatSelect as a3,
1598
+ defineTxFlatSelectItem as a4,
1599
+ defineTxForm as a5,
1600
+ defineTxFormErrorSummary as a6,
1601
+ defineTxFormItem as a7,
1602
+ defineTxFormRow as a8,
1603
+ defineTxIconPicker as a9,
1604
+ defineTxImageGallery as aa,
1605
+ defineTxImagePreview as ab,
1606
+ defineTxImageUploader as ac,
1607
+ defineTxModalForm as ad,
1608
+ defineTxNumberInput as ae,
1609
+ defineTxPicker as af,
1610
+ defineTxRating as ag,
1611
+ defineTxScrubField as ah,
1612
+ defineTxSearchInput as ai,
1613
+ defineTxSearchSelect as aj,
1614
+ defineTxSegmentedSlider as ak,
1615
+ defineTxSelectionActions as al,
1616
+ defineTxSensitiveInput as am,
1617
+ defineTxSortableList as an,
1618
+ defineTxStepsForm as ao,
1619
+ defineTxTagInput as ap,
1620
+ defineTxTransfer as aq,
1621
+ defineTxTree as ar,
1622
+ defineTxTreeSelect as as,
1623
+ TxContextMenuItemElement as b,
1624
+ TxDataTableElement as c,
1625
+ TxDatePickerElement as d,
1626
+ TxDescriptionsElement as e,
1627
+ TxDescriptionsItemElement as f,
1628
+ TxDrawerFormElement as g,
1629
+ TxDropdownItemElement as h,
1630
+ TxDropdownMenuElement as i,
1631
+ TxFileUploaderElement as j,
1632
+ TxFilterChipsElement as k,
1633
+ TxFlatDropdownElement as l,
1634
+ TxFlatRadioElement as m,
1635
+ TxFlatRadioItemElement as n,
1636
+ TxFlatSelectElement as o,
1637
+ TxFlatSelectItemElement as p,
1638
+ TxFormElement as q,
1639
+ TxFormErrorSummaryElement as r,
1640
+ TxFormItemElement as s,
1641
+ TxFormRowElement as t,
1642
+ TxIconPickerElement as u,
1643
+ TxImageGalleryElement as v,
1644
+ TxImagePreviewElement as w,
1645
+ TxImageUploaderElement as x,
1646
+ TxModalFormElement as y,
1647
+ TxNumberInputElement as z
1648
+ };