@threadlabs/looma 0.33.1 → 0.34.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.
- package/components/shared/overlay.js +8 -2
- package/components/shared/surface-material.js +21 -0
- package/components/ui-button/ui-button.html +63 -47
- package/components/ui-card/ui-card.html +44 -2
- package/components/ui-curve-editor/curve.js +10 -0
- package/components/ui-curve-editor/ui-curve-editor.html +181 -0
- package/components/ui-curve-editor/ui-curve-editor.js +51 -0
- package/components/ui-dialog/ui-dialog.html +62 -1
- package/components/ui-dialog/ui-dialog.js +9 -1
- package/components/ui-icon-button/ui-icon-button.html +75 -23
- package/components/ui-menu/ui-menu.html +60 -0
- package/components/ui-menu/ui-menu.js +1 -1
- package/components/ui-number-input/arithmetic.js +47 -0
- package/components/ui-number-input/ui-number-input.html +62 -0
- package/components/ui-number-input/ui-number-input.js +44 -0
- package/components/ui-popover/ui-popover.html +64 -1
- package/components/ui-popover/ui-popover.js +1 -1
- package/components/ui-slider/ui-slider.html +84 -0
- package/components/ui-slider/ui-slider.js +29 -0
- package/components/ui-tabs/ui-tabs.html +6 -1
- package/components/ui-text/ui-text.html +31 -6
- package/components/ui-tooltip/ui-tooltip.html +60 -0
- package/components/ui-tooltip/ui-tooltip.js +1 -1
- package/dist/index.js +46 -43
- package/docs/README.md +34 -4
- package/docs/card.html +16 -2
- package/docs/card.js +17 -2
- package/docs/catalog.json +1154 -144
- package/docs/customizer-render.mjs +35 -9
- package/docs/customizer.js +83 -20
- package/docs/documentation.css +9 -1
- package/docs/index.d.ts +4 -2
- package/docs/index.mjs +1 -1
- package/docs/preview.js +2 -0
- package/docs/render.mjs +15 -6
- package/docs/site.mjs +50 -9
- package/docs/theme-session.mjs +51 -0
- package/docs/theme.mjs +134 -15
- package/docs/value-editors.mjs +33 -0
- package/package.json +2 -2
- package/styles/ui-button.css +45 -45
- package/styles/ui-card.css +47 -0
- package/styles/ui-curve-editor.css +109 -0
- package/styles/ui-dialog.css +132 -0
- package/styles/ui-icon-button.css +63 -20
- package/styles/ui-menu.css +72 -0
- package/styles/ui-number-input.css +34 -0
- package/styles/ui-popover.css +74 -0
- package/styles/ui-slider.css +53 -0
- package/styles/ui-tabs.css +6 -1
- package/styles/ui-text.css +23 -1
- package/styles/ui-tooltip.css +72 -0
- package/theme-system.css +26 -10
- package/tokens.css +8 -2
- package/vanilla/UiButton.d.ts +1 -0
- package/vanilla/UiButton.js +195 -130
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCurveEditor.d.ts +28 -0
- package/vanilla/UiCurveEditor.js +134 -0
- package/vanilla/UiIconButton.d.ts +2 -1
- package/vanilla/UiIconButton.js +58 -31
- package/vanilla/UiNumberInput.d.ts +33 -0
- package/vanilla/UiNumberInput.js +79 -0
- package/vanilla/UiSlider.d.ts +33 -0
- package/vanilla/UiSlider.js +125 -0
- package/vanilla/UiText.d.ts +2 -2
- package/vanilla/UiText.js +45 -11
- package/vanilla/index.js +3 -0
- package/vue/UiButton.d.ts +6 -0
- package/vue/UiButton.vue +155 -56
- package/vue/UiCard.d.ts +2 -2
- package/vue/UiCard.vue +55 -5
- package/vue/UiCurveEditor.d.ts +53 -0
- package/vue/UiCurveEditor.js +2 -0
- package/vue/UiCurveEditor.vue +427 -0
- package/vue/UiDialog.vue +177 -1
- package/vue/UiIconButton.d.ts +8 -2
- package/vue/UiIconButton.vue +164 -34
- package/vue/UiMenu.vue +89 -0
- package/vue/UiNumberInput.d.ts +83 -0
- package/vue/UiNumberInput.js +2 -0
- package/vue/UiNumberInput.vue +370 -0
- package/vue/UiPopover.vue +92 -1
- package/vue/UiSlider.d.ts +83 -0
- package/vue/UiSlider.js +2 -0
- package/vue/UiSlider.vue +412 -0
- package/vue/UiTabs.vue +6 -1
- package/vue/UiText.d.ts +7 -5
- package/vue/UiText.vue +104 -22
- package/vue/UiTooltip.vue +89 -0
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +2 -2
- package/vue/chunks/UiAvatar.js +2 -2
- package/vue/chunks/UiAvatarGroup.js +2 -2
- package/vue/chunks/UiBadge.js +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +2 -2
- package/vue/chunks/UiBreadcrumbs.js +2 -2
- package/vue/chunks/UiButton.js +94 -11
- package/vue/chunks/UiCallout.js +2 -2
- package/vue/chunks/UiCard.js +6 -5
- package/vue/chunks/UiCheckbox.js +2 -2
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiColorPicker.js +2 -2
- package/vue/chunks/UiCombobox.js +2 -2
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +2 -2
- package/vue/chunks/UiCover.js +2 -2
- package/vue/chunks/UiCurveEditor.js +413 -0
- package/vue/chunks/UiDescriptionItem.js +2 -2
- package/vue/chunks/UiDescriptionList.js +2 -2
- package/vue/chunks/UiDialog.js +4 -4
- package/vue/chunks/UiDisclosure.js +2 -2
- package/vue/chunks/UiEditable.js +2 -2
- package/vue/chunks/UiEditorBlockActions.js +2 -2
- package/vue/chunks/UiEditorChipEditor.js +2 -2
- package/vue/chunks/UiEditorCodeLanguage.js +2 -2
- package/vue/chunks/UiEditorFootnoteEditor.js +2 -2
- package/vue/chunks/UiEditorImageToolbar.js +3 -3
- package/vue/chunks/UiEditorInsertTableGrid.js +2 -2
- package/vue/chunks/UiEditorLinkCard.js +3 -3
- package/vue/chunks/UiEditorLinkForm.js +3 -3
- package/vue/chunks/UiEditorMentionMenu.js +2 -2
- package/vue/chunks/UiEditorMentionMenuItem.js +2 -2
- package/vue/chunks/UiEditorSlashMenu.js +2 -2
- package/vue/chunks/UiEditorSlashMenuGroup.js +2 -2
- package/vue/chunks/UiEditorSlashMenuItem.js +2 -2
- package/vue/chunks/UiEditorSurface.js +2 -2
- package/vue/chunks/UiEditorTableContextMenu.js +2 -2
- package/vue/chunks/UiEditorTableOverlay.js +2 -2
- package/vue/chunks/UiEditorTableToolbar.js +2 -2
- package/vue/chunks/UiEditorToolbar.js +2 -2
- package/vue/chunks/UiFloatingActionButton.js +2 -2
- package/vue/chunks/UiFormField.js +2 -2
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +2 -2
- package/vue/chunks/UiIconButton.js +77 -11
- package/vue/chunks/UiImage.js +2 -2
- package/vue/chunks/UiInput.js +2 -2
- package/vue/chunks/UiInputGroup.js +2 -2
- package/vue/chunks/UiList.js +2 -2
- package/vue/chunks/UiListItem.js +2 -2
- package/vue/chunks/UiListbox.js +2 -2
- package/vue/chunks/UiMenu.js +3 -3
- package/vue/chunks/UiMenuGroup.js +2 -2
- package/vue/chunks/UiMenuItem.js +2 -2
- package/vue/chunks/UiMeter.js +2 -2
- package/vue/chunks/UiNavItem.js +2 -2
- package/vue/chunks/UiNumberInput.js +390 -0
- package/vue/chunks/UiPageHeader.js +2 -2
- package/vue/chunks/UiPopover.js +4 -4
- package/vue/chunks/UiRadio.js +2 -2
- package/vue/chunks/UiRadioGroup.js +2 -2
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiScrollArea.js +2 -2
- package/vue/chunks/UiSearchResultRow.js +2 -2
- package/vue/chunks/UiSearchShell.js +2 -2
- package/vue/chunks/UiSection.js +2 -2
- package/vue/chunks/UiSelect.js +2 -2
- package/vue/chunks/UiSeparator.js +2 -2
- package/vue/chunks/UiSidebar.js +2 -2
- package/vue/chunks/UiSlider.js +396 -0
- package/vue/chunks/UiSpinner.js +2 -2
- package/vue/chunks/UiStack.js +2 -2
- package/vue/chunks/UiStatusMessage.js +2 -2
- package/vue/chunks/UiSwatch.js +2 -2
- package/vue/chunks/UiSwitch.js +2 -2
- package/vue/chunks/UiSwitcher.js +2 -2
- package/vue/chunks/UiTable.js +2 -2
- package/vue/chunks/UiTabs.js +3 -3
- package/vue/chunks/UiText.js +53 -12
- package/vue/chunks/UiTextarea.js +2 -2
- package/vue/chunks/UiToast.js +2 -2
- package/vue/chunks/UiToastRegion.js +2 -2
- package/vue/chunks/UiTooltip.js +3 -3
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +2 -2
- package/vue/chunks/UiTreeItem.js +2 -2
- package/vue/chunks/_plugin-vue_export-helper.js +68 -2
- package/vue/chunks/props.js +24 -1
- package/vue/components.css +2215 -1203
- package/vue/editor/index.js +623 -211
- package/vue/index.d.ts +3 -0
- package/vue/index.js +5 -2
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import { S as warnUnless, a as concat, b as useReflectedProp, d as initializedState, i as checkHydratedRoot, m as nativeAttrs, o as createDispatch, t as _plugin_vue_export_helper_default, y as useComponentHost } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { d as requireInputStatus, i as checkPropInput, l as inputRead, m as vuePropInputs, n as READY_INPUT, o as copyStateSeed, p as vPropValidity, r as acceptsControllerWrite, s as evaluateInput, t as BINDING_INPUTS_PROP, u as propValidityState } from "./props.js";
|
|
3
|
+
import { t as UiNumberInput_default } from "./UiNumberInput.js";
|
|
4
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderList, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
|
+
//#region .build/vue/UiSlider.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = [
|
|
7
|
+
"data-ui-slider-prop-disabled",
|
|
8
|
+
"data-ui-slider-prop-label",
|
|
9
|
+
"data-ui-slider-prop-max",
|
|
10
|
+
"data-ui-slider-prop-min",
|
|
11
|
+
"data-ui-slider-prop-name",
|
|
12
|
+
"data-ui-slider-prop-size",
|
|
13
|
+
"data-ui-slider-prop-step",
|
|
14
|
+
"data-ui-slider-prop-unit",
|
|
15
|
+
"data-ui-slider-prop-value",
|
|
16
|
+
"data-ui-slider-state"
|
|
17
|
+
];
|
|
18
|
+
var _hoisted_2 = [
|
|
19
|
+
"aria-label",
|
|
20
|
+
"aria-valuetext",
|
|
21
|
+
"^value",
|
|
22
|
+
"min",
|
|
23
|
+
"max",
|
|
24
|
+
"step",
|
|
25
|
+
"disabled",
|
|
26
|
+
"name"
|
|
27
|
+
];
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region .build/vue/UiSlider.vue
|
|
30
|
+
var UiSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
31
|
+
inheritAttrs: false,
|
|
32
|
+
__name: "UiSlider",
|
|
33
|
+
props: {
|
|
34
|
+
disabled: { type: null },
|
|
35
|
+
label: { type: null },
|
|
36
|
+
max: { type: null },
|
|
37
|
+
min: { type: null },
|
|
38
|
+
name: { type: null },
|
|
39
|
+
size: { type: null },
|
|
40
|
+
step: { type: null },
|
|
41
|
+
unit: { type: null },
|
|
42
|
+
value: { type: null },
|
|
43
|
+
[BINDING_INPUTS_PROP]: { type: null }
|
|
44
|
+
},
|
|
45
|
+
emits: [
|
|
46
|
+
"update:value",
|
|
47
|
+
"input",
|
|
48
|
+
"change"
|
|
49
|
+
],
|
|
50
|
+
setup(__props, { emit: __emit }) {
|
|
51
|
+
const propValidityContract = { props: {
|
|
52
|
+
disabled: {
|
|
53
|
+
type: {
|
|
54
|
+
kind: "terminal",
|
|
55
|
+
name: "boolean"
|
|
56
|
+
},
|
|
57
|
+
required: false,
|
|
58
|
+
target: { attribute: "disabled" },
|
|
59
|
+
description: "Prevents typing, stepping and pointer or keyboard changes while keeping the value visible.",
|
|
60
|
+
default: false
|
|
61
|
+
},
|
|
62
|
+
label: {
|
|
63
|
+
type: {
|
|
64
|
+
kind: "terminal",
|
|
65
|
+
name: "string"
|
|
66
|
+
},
|
|
67
|
+
required: false,
|
|
68
|
+
target: { attribute: "aria-label" },
|
|
69
|
+
description: "Accessible name for the editing control.",
|
|
70
|
+
default: "Value"
|
|
71
|
+
},
|
|
72
|
+
max: {
|
|
73
|
+
type: {
|
|
74
|
+
kind: "terminal",
|
|
75
|
+
name: "number"
|
|
76
|
+
},
|
|
77
|
+
required: false,
|
|
78
|
+
target: { attribute: "max" },
|
|
79
|
+
description: "Inclusive upper bound for dragging, keyboard steps and exact entry.",
|
|
80
|
+
default: 100
|
|
81
|
+
},
|
|
82
|
+
min: {
|
|
83
|
+
type: {
|
|
84
|
+
kind: "terminal",
|
|
85
|
+
name: "number"
|
|
86
|
+
},
|
|
87
|
+
required: false,
|
|
88
|
+
target: { attribute: "min" },
|
|
89
|
+
description: "Inclusive lower bound for dragging, keyboard steps and exact entry.",
|
|
90
|
+
default: 0
|
|
91
|
+
},
|
|
92
|
+
name: {
|
|
93
|
+
type: {
|
|
94
|
+
kind: "terminal",
|
|
95
|
+
name: "string"
|
|
96
|
+
},
|
|
97
|
+
required: false,
|
|
98
|
+
target: { attribute: "name" },
|
|
99
|
+
description: "Optional numeric form field name.",
|
|
100
|
+
default: ""
|
|
101
|
+
},
|
|
102
|
+
size: {
|
|
103
|
+
type: {
|
|
104
|
+
kind: "terminal",
|
|
105
|
+
name: "keyword"
|
|
106
|
+
},
|
|
107
|
+
required: false,
|
|
108
|
+
target: { attribute: "size" },
|
|
109
|
+
description: "Shared field and button height.",
|
|
110
|
+
values: [
|
|
111
|
+
"sm",
|
|
112
|
+
"md",
|
|
113
|
+
"lg"
|
|
114
|
+
],
|
|
115
|
+
default: "md"
|
|
116
|
+
},
|
|
117
|
+
step: {
|
|
118
|
+
type: {
|
|
119
|
+
kind: "terminal",
|
|
120
|
+
name: "number"
|
|
121
|
+
},
|
|
122
|
+
required: false,
|
|
123
|
+
target: { attribute: "step" },
|
|
124
|
+
description: "Positive native range and exact entry increment.",
|
|
125
|
+
default: 1
|
|
126
|
+
},
|
|
127
|
+
unit: {
|
|
128
|
+
type: {
|
|
129
|
+
kind: "terminal",
|
|
130
|
+
name: "string"
|
|
131
|
+
},
|
|
132
|
+
required: false,
|
|
133
|
+
target: { attribute: "unit" },
|
|
134
|
+
description: "Unit shown by the exact editor.",
|
|
135
|
+
default: ""
|
|
136
|
+
},
|
|
137
|
+
value: {
|
|
138
|
+
type: {
|
|
139
|
+
kind: "terminal",
|
|
140
|
+
name: "number"
|
|
141
|
+
},
|
|
142
|
+
required: false,
|
|
143
|
+
target: { attribute: "value" },
|
|
144
|
+
description: "Current numeric value. Native range and exact entry share bounds.",
|
|
145
|
+
default: 0
|
|
146
|
+
}
|
|
147
|
+
} };
|
|
148
|
+
const props = __props;
|
|
149
|
+
const inputTracking = vuePropInputs({
|
|
150
|
+
disabled: false,
|
|
151
|
+
label: "Value",
|
|
152
|
+
max: 100,
|
|
153
|
+
min: 0,
|
|
154
|
+
name: "",
|
|
155
|
+
size: "md",
|
|
156
|
+
step: 1,
|
|
157
|
+
unit: "",
|
|
158
|
+
value: 0
|
|
159
|
+
}, {
|
|
160
|
+
disabled: false,
|
|
161
|
+
label: "Value",
|
|
162
|
+
max: 100,
|
|
163
|
+
min: 0,
|
|
164
|
+
name: "",
|
|
165
|
+
size: "md",
|
|
166
|
+
step: 1,
|
|
167
|
+
unit: "",
|
|
168
|
+
value: 0
|
|
169
|
+
}, (name, value, source, values) => {
|
|
170
|
+
switch (name) {
|
|
171
|
+
case "disabled": return checkPropInput(value, {
|
|
172
|
+
kind: "terminal",
|
|
173
|
+
name: "boolean"
|
|
174
|
+
}, true, true);
|
|
175
|
+
case "label": return checkPropInput(value, {
|
|
176
|
+
kind: "terminal",
|
|
177
|
+
name: "string"
|
|
178
|
+
}, true, true);
|
|
179
|
+
case "max": return checkPropInput(value, {
|
|
180
|
+
kind: "terminal",
|
|
181
|
+
name: "number"
|
|
182
|
+
}, true, true);
|
|
183
|
+
case "min": return checkPropInput(value, {
|
|
184
|
+
kind: "terminal",
|
|
185
|
+
name: "number"
|
|
186
|
+
}, true, true);
|
|
187
|
+
case "name": return checkPropInput(value, {
|
|
188
|
+
kind: "terminal",
|
|
189
|
+
name: "string"
|
|
190
|
+
}, true, true);
|
|
191
|
+
case "size": return checkPropInput(value, {
|
|
192
|
+
kind: "terminal",
|
|
193
|
+
name: "keyword"
|
|
194
|
+
}, true, true);
|
|
195
|
+
case "step": return checkPropInput(value, {
|
|
196
|
+
kind: "terminal",
|
|
197
|
+
name: "number"
|
|
198
|
+
}, true, true);
|
|
199
|
+
case "unit": return checkPropInput(value, {
|
|
200
|
+
kind: "terminal",
|
|
201
|
+
name: "string"
|
|
202
|
+
}, true, true);
|
|
203
|
+
case "value": return checkPropInput(value, {
|
|
204
|
+
kind: "terminal",
|
|
205
|
+
name: "number"
|
|
206
|
+
}, true, true);
|
|
207
|
+
default: return { ok: false };
|
|
208
|
+
}
|
|
209
|
+
}, () => {
|
|
210
|
+
checkedProps.value;
|
|
211
|
+
});
|
|
212
|
+
const propInputs = inputTracking.inputs;
|
|
213
|
+
const checkedProps = computed(() => {
|
|
214
|
+
inputTracking.version.value;
|
|
215
|
+
return {
|
|
216
|
+
disabled: propInputs.value("disabled", props["disabled"], props[BINDING_INPUTS_PROP]),
|
|
217
|
+
label: propInputs.value("label", props["label"], props[BINDING_INPUTS_PROP]),
|
|
218
|
+
max: propInputs.value("max", props["max"], props[BINDING_INPUTS_PROP]),
|
|
219
|
+
min: propInputs.value("min", props["min"], props[BINDING_INPUTS_PROP]),
|
|
220
|
+
name: propInputs.value("name", props["name"], props[BINDING_INPUTS_PROP]),
|
|
221
|
+
size: propInputs.value("size", props["size"], props[BINDING_INPUTS_PROP]),
|
|
222
|
+
step: propInputs.value("step", props["step"], props[BINDING_INPUTS_PROP]),
|
|
223
|
+
unit: propInputs.value("unit", props["unit"], props[BINDING_INPUTS_PROP]),
|
|
224
|
+
value: propInputs.value("value", props["value"], props[BINDING_INPUTS_PROP])
|
|
225
|
+
};
|
|
226
|
+
});
|
|
227
|
+
const inputStatus = (name, handlesError) => {
|
|
228
|
+
checkedProps.value;
|
|
229
|
+
inputTracking.version.value;
|
|
230
|
+
return requireInputStatus(propInputs.status(name), handlesError);
|
|
231
|
+
};
|
|
232
|
+
checkedProps.value;
|
|
233
|
+
watchSyncEffect(() => {
|
|
234
|
+
checkedProps.value;
|
|
235
|
+
});
|
|
236
|
+
const reflectedProp = useReflectedProp();
|
|
237
|
+
const hydrationInstance = getCurrentInstance();
|
|
238
|
+
const emit = __emit;
|
|
239
|
+
const root = ref(null);
|
|
240
|
+
const rangeElement = useTemplateRef("rangeElement");
|
|
241
|
+
const current = initializedState(() => evaluateInput(() => {
|
|
242
|
+
return inputRead(checkedProps.value.value, propInputs.status("value"));
|
|
243
|
+
}), (next) => typeof next === "number" && Number.isFinite(next), copyStateSeed, () => warnUnless(false, "initializer:current", "State `current` does not satisfy its declared type."));
|
|
244
|
+
let guardedPrevious = null;
|
|
245
|
+
const guarded = computed(() => {
|
|
246
|
+
const candidate = concat(current.value, checkedProps.value.unit);
|
|
247
|
+
if (candidate === Symbol.for("html-next.invalid-result")) return guardedPrevious;
|
|
248
|
+
return guardedPrevious = candidate;
|
|
249
|
+
});
|
|
250
|
+
provide("html-next:ui-slider:current", current);
|
|
251
|
+
const declarationStatuses = { current: () => current.status() };
|
|
252
|
+
const declarationStatus = (name) => declarationStatuses[name]();
|
|
253
|
+
current.start();
|
|
254
|
+
checkHydratedRoot("span", "ui-slider");
|
|
255
|
+
/** The values the styles' :host() and :state() rules test. */
|
|
256
|
+
const hostState = computed(() => [checkedProps.value.size && "size", checkedProps.value.size != null && `size=${encodeURIComponent(checkedProps.value.size)}`].filter(Boolean).join(" "));
|
|
257
|
+
const isInputDetail = (detail) => detail !== null && typeof detail === "object" && !Array.isArray(detail) && typeof detail["value"] === "number" && Number.isFinite(detail["value"]) && Object.keys(detail).every((key) => ["value"].includes(key));
|
|
258
|
+
const dispatch = createDispatch(root, emit, {
|
|
259
|
+
checks: {
|
|
260
|
+
input: isInputDetail,
|
|
261
|
+
change: isInputDetail
|
|
262
|
+
},
|
|
263
|
+
modeled: ["value"]
|
|
264
|
+
});
|
|
265
|
+
useComponentHost(() => import("@threadlabs/looma/components/ui-slider/ui-slider.js"), {
|
|
266
|
+
root,
|
|
267
|
+
module: true,
|
|
268
|
+
dispatch,
|
|
269
|
+
acceptsState: (name, keys, value) => acceptsControllerWrite(value, { current: {
|
|
270
|
+
kind: "terminal",
|
|
271
|
+
name: "number"
|
|
272
|
+
} }[name], keys),
|
|
273
|
+
controllerSource: {
|
|
274
|
+
specifier: "../components/ui-slider/ui-slider.js",
|
|
275
|
+
definition: "./components/ui-slider/ui-slider.html"
|
|
276
|
+
},
|
|
277
|
+
props: checkedProps,
|
|
278
|
+
inputs: propInputs,
|
|
279
|
+
inputTracking,
|
|
280
|
+
propInputs: (name) => {
|
|
281
|
+
const incoming = hydrationInstance?.vnode.props;
|
|
282
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => "-" + letter.toLowerCase());
|
|
283
|
+
return incoming !== null && incoming !== void 0 ? incoming[name] ?? incoming[kebab] ?? null : null;
|
|
284
|
+
},
|
|
285
|
+
propNames: [
|
|
286
|
+
"disabled",
|
|
287
|
+
"label",
|
|
288
|
+
"max",
|
|
289
|
+
"min",
|
|
290
|
+
"name",
|
|
291
|
+
"size",
|
|
292
|
+
"step",
|
|
293
|
+
"unit",
|
|
294
|
+
"value"
|
|
295
|
+
],
|
|
296
|
+
propValidity: (name) => propValidityState({
|
|
297
|
+
contract: propValidityContract,
|
|
298
|
+
values: { ...props }
|
|
299
|
+
}, name),
|
|
300
|
+
refs: { range: rangeElement },
|
|
301
|
+
state: { current },
|
|
302
|
+
availability: { current: () => declarationStatus("current") }
|
|
303
|
+
});
|
|
304
|
+
return (_ctx, _cache) => {
|
|
305
|
+
return withDirectives((openBlock(), createElementBlock("span", mergeProps({ class: "ui-slider" }, unref(nativeAttrs)(_ctx.$attrs), {
|
|
306
|
+
"data-hn": "",
|
|
307
|
+
"data-ui-slider-prop-disabled": unref(reflectedProp)("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
308
|
+
"data-ui-slider-prop-label": unref(reflectedProp)("label", "label", checkedProps.value.label, void 0, false),
|
|
309
|
+
"data-ui-slider-prop-max": unref(reflectedProp)("max", "max", checkedProps.value.max, void 0, false),
|
|
310
|
+
"data-ui-slider-prop-min": unref(reflectedProp)("min", "min", checkedProps.value.min, void 0, false),
|
|
311
|
+
"data-ui-slider-prop-name": unref(reflectedProp)("name", "name", checkedProps.value.name, void 0, false),
|
|
312
|
+
"data-ui-slider-prop-size": unref(reflectedProp)("size", "size", checkedProps.value.size, void 0, false),
|
|
313
|
+
"data-ui-slider-prop-step": unref(reflectedProp)("step", "step", checkedProps.value.step, void 0, false),
|
|
314
|
+
"data-ui-slider-prop-unit": unref(reflectedProp)("unit", "unit", checkedProps.value.unit, void 0, false),
|
|
315
|
+
"data-ui-slider-prop-value": unref(reflectedProp)("value", "value", checkedProps.value.value, void 0, false),
|
|
316
|
+
"data-ui-slider-state": hostState.value || void 0,
|
|
317
|
+
ref_key: "root",
|
|
318
|
+
ref: root
|
|
319
|
+
}), [
|
|
320
|
+
createElementVNode("input", {
|
|
321
|
+
type: "range",
|
|
322
|
+
"data-ui-field-control": "",
|
|
323
|
+
"aria-label": checkedProps.value.label ?? void 0,
|
|
324
|
+
"aria-valuetext": guarded.value,
|
|
325
|
+
"^value": checkedProps.value.value?.toString(),
|
|
326
|
+
min: checkedProps.value.min?.toString(),
|
|
327
|
+
max: checkedProps.value.max?.toString(),
|
|
328
|
+
step: checkedProps.value.step?.toString(),
|
|
329
|
+
disabled: checkedProps.value.disabled ?? void 0,
|
|
330
|
+
name: checkedProps.value.name ?? void 0,
|
|
331
|
+
ref_key: "rangeElement",
|
|
332
|
+
ref: rangeElement
|
|
333
|
+
}, null, 8, _hoisted_2),
|
|
334
|
+
_cache[0] || (_cache[0] = createTextVNode(toDisplayString(" "), -1)),
|
|
335
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList([unref(evaluateInput)(() => unref(concat)(unref(inputRead)(unref(current), declarationStatus("current")), unref(inputRead)(checkedProps.value.unit, inputStatus("unit", true))), unref(READY_INPUT))], (boundInput) => {
|
|
336
|
+
return openBlock(), createBlock(UiNumberInput_default, mergeProps({
|
|
337
|
+
class: "ui-number-input",
|
|
338
|
+
"data-slider-exact": "",
|
|
339
|
+
value: boundInput.value,
|
|
340
|
+
unit: checkedProps.value.unit,
|
|
341
|
+
min: checkedProps.value.min,
|
|
342
|
+
max: checkedProps.value.max,
|
|
343
|
+
step: checkedProps.value.step,
|
|
344
|
+
size: checkedProps.value.size,
|
|
345
|
+
disabled: checkedProps.value.disabled,
|
|
346
|
+
label: checkedProps.value.label
|
|
347
|
+
}, { ref_for: true }, { [unref(BINDING_INPUTS_PROP)]: {
|
|
348
|
+
value: () => boundInput,
|
|
349
|
+
unit: () => ({
|
|
350
|
+
value: checkedProps.value.unit,
|
|
351
|
+
status: inputStatus("unit", true)
|
|
352
|
+
}),
|
|
353
|
+
min: () => ({
|
|
354
|
+
value: checkedProps.value.min,
|
|
355
|
+
status: inputStatus("min", true)
|
|
356
|
+
}),
|
|
357
|
+
max: () => ({
|
|
358
|
+
value: checkedProps.value.max,
|
|
359
|
+
status: inputStatus("max", true)
|
|
360
|
+
}),
|
|
361
|
+
step: () => ({
|
|
362
|
+
value: checkedProps.value.step,
|
|
363
|
+
status: inputStatus("step", true)
|
|
364
|
+
}),
|
|
365
|
+
size: () => ({
|
|
366
|
+
value: checkedProps.value.size,
|
|
367
|
+
status: inputStatus("size", true)
|
|
368
|
+
}),
|
|
369
|
+
disabled: () => ({
|
|
370
|
+
value: checkedProps.value.disabled,
|
|
371
|
+
status: inputStatus("disabled", true)
|
|
372
|
+
}),
|
|
373
|
+
label: () => ({
|
|
374
|
+
value: checkedProps.value.label,
|
|
375
|
+
status: inputStatus("label", true)
|
|
376
|
+
})
|
|
377
|
+
} }), null, 16, [
|
|
378
|
+
"value",
|
|
379
|
+
"unit",
|
|
380
|
+
"min",
|
|
381
|
+
"max",
|
|
382
|
+
"step",
|
|
383
|
+
"size",
|
|
384
|
+
"disabled",
|
|
385
|
+
"label"
|
|
386
|
+
]);
|
|
387
|
+
}), 256))
|
|
388
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
389
|
+
contract: propValidityContract,
|
|
390
|
+
values: { ...props }
|
|
391
|
+
}]]);
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
}), [["__scopeId", "data-v-12a66d57"]]);
|
|
395
|
+
//#endregion
|
|
396
|
+
export { UiSlider_default as t };
|
package/vue/chunks/UiSpinner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as concat, i as checkHydratedRoot,
|
|
2
|
-
import {
|
|
1
|
+
import { a as concat, b as useReflectedProp, i as checkHydratedRoot, m as nativeAttrs, r as attribute, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { i as checkPropInput, m as vuePropInputs, p as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
package/vue/chunks/UiStack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as checkHydratedRoot,
|
|
2
|
-
import {
|
|
1
|
+
import { b as useReflectedProp, i as checkHydratedRoot, m as nativeAttrs, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { i as checkPropInput, m as vuePropInputs, p as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiStack.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as concat, i as checkHydratedRoot,
|
|
2
|
-
import {
|
|
1
|
+
import { a as concat, b as useReflectedProp, i as checkHydratedRoot, m as nativeAttrs, r as attribute, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { i as checkPropInput, m as vuePropInputs, p as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { t as UiSpinner_default } from "./UiSpinner.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiStatusMessage.vue?vue&type=script&setup=true&lang.ts
|
package/vue/chunks/UiSwatch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as checkHydratedRoot,
|
|
2
|
-
import { c as
|
|
1
|
+
import { b as useReflectedProp, i as checkHydratedRoot, m as nativeAttrs, r as attribute, s as cycleCheckedComputed, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { c as inputComputed, i as checkPropInput, l as inputRead, m as vuePropInputs, p as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, mergeProps, openBlock, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiSwatch.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
package/vue/chunks/UiSwitch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as useReflectedProp, i as checkHydratedRoot, m as nativeAttrs, o as createDispatch, t as _plugin_vue_export_helper_default, y as useComponentHost } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { i as checkPropInput, m as vuePropInputs, p as vPropValidity, r as acceptsControllerWrite, t as BINDING_INPUTS_PROP, u as propValidityState } from "./props.js";
|
|
3
3
|
import { r as vBindControl } from "./control.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiSwitch.vue?vue&type=script&setup=true&lang.ts
|
package/vue/chunks/UiSwitcher.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as useReflectedProp, i as checkHydratedRoot, m as nativeAttrs, o as createDispatch, t as _plugin_vue_export_helper_default, y as useComponentHost } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { i as checkPropInput, m as vuePropInputs, p as vPropValidity, r as acceptsControllerWrite, t as BINDING_INPUTS_PROP, u as propValidityState } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiSwitcher.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
package/vue/chunks/UiTable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as useReflectedProp, i as checkHydratedRoot, m as nativeAttrs, o as createDispatch, t as _plugin_vue_export_helper_default, y as useComponentHost } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { i as checkPropInput, m as vuePropInputs, p as vPropValidity, t as BINDING_INPUTS_PROP, u as propValidityState } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiTable.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
package/vue/chunks/UiTabs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as concat, b as useReflectedProp, i as checkHydratedRoot, m as nativeAttrs, n as KeyedBoundary, o as createDispatch, t as _plugin_vue_export_helper_default, v as uniqueKeys, y as useComponentHost } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { i as checkPropInput, m as vuePropInputs, p as vPropValidity, r as acceptsControllerWrite, t as BINDING_INPUTS_PROP, u as propValidityState } from "./props.js";
|
|
3
3
|
import { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiTabs.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
@@ -329,6 +329,6 @@ var UiTabs_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
329
329
|
}]]);
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
}), [["__scopeId", "data-v-
|
|
332
|
+
}), [["__scopeId", "data-v-f1705832"]]);
|
|
333
333
|
//#endregion
|
|
334
334
|
export { UiTabs_default as t };
|
package/vue/chunks/UiText.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as useReflectedProp, g as preserveRootFocus, i as checkHydratedRoot, m as nativeAttrs, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { i as checkPropInput, m as vuePropInputs, p as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiText.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
@@ -156,6 +156,20 @@ var _hoisted_11 = [
|
|
|
156
156
|
"data-ui-text-prop-wrap",
|
|
157
157
|
"data-ui-text-state"
|
|
158
158
|
];
|
|
159
|
+
var _hoisted_12 = [
|
|
160
|
+
"data-ui-text-prop-align",
|
|
161
|
+
"data-ui-text-prop-as",
|
|
162
|
+
"data-ui-text-prop-font",
|
|
163
|
+
"data-ui-text-prop-grow",
|
|
164
|
+
"data-ui-text-prop-size",
|
|
165
|
+
"data-ui-text-prop-tone",
|
|
166
|
+
"data-ui-text-prop-trim",
|
|
167
|
+
"data-ui-text-prop-truncate",
|
|
168
|
+
"data-ui-text-prop-variant",
|
|
169
|
+
"data-ui-text-prop-weight",
|
|
170
|
+
"data-ui-text-prop-wrap",
|
|
171
|
+
"data-ui-text-state"
|
|
172
|
+
];
|
|
159
173
|
//#endregion
|
|
160
174
|
//#region .build/vue/UiText.vue
|
|
161
175
|
var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -195,7 +209,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
195
209
|
},
|
|
196
210
|
required: false,
|
|
197
211
|
target: { attribute: "as" },
|
|
198
|
-
description: "The native element the text renders: a paragraph by default, inline span, small, or strong within a line, a div for a block, a label for a control, or a\n heading,
|
|
212
|
+
description: "The native element the text renders: a paragraph by default, inline span, small, or strong within a line, a div for a block, a label for a control, or a\n heading, h1 to h6. Choose its document level independently from its visual variant. The default body variant keeps the existing size and weight\n behavior.",
|
|
199
213
|
values: [
|
|
200
214
|
"p",
|
|
201
215
|
"span",
|
|
@@ -203,6 +217,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
203
217
|
"small",
|
|
204
218
|
"strong",
|
|
205
219
|
"label",
|
|
220
|
+
"h1",
|
|
206
221
|
"h2",
|
|
207
222
|
"h3",
|
|
208
223
|
"h4",
|
|
@@ -296,9 +311,13 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
296
311
|
},
|
|
297
312
|
required: false,
|
|
298
313
|
target: { attribute: "variant" },
|
|
299
|
-
description: "body is running text. eyebrow is a short, uppercase, tracked label that
|
|
314
|
+
description: "body is running text. display is a page title, heading names a section, label identifies a control, and caption is supporting text. These roles set their\n shared type scale, weight and leading; pair heading or display with an appropriate as heading element. eyebrow is a short, uppercase, tracked label that\n names what follows, such as a group of links; code sets a value to copy or read exactly, such as an address, in the monospace face.",
|
|
300
315
|
values: [
|
|
301
316
|
"body",
|
|
317
|
+
"display",
|
|
318
|
+
"heading",
|
|
319
|
+
"label",
|
|
320
|
+
"caption",
|
|
302
321
|
"eyebrow",
|
|
303
322
|
"code"
|
|
304
323
|
],
|
|
@@ -432,7 +451,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
432
451
|
const reflectedProp = useReflectedProp();
|
|
433
452
|
const root = useTemplateRef("@html-next/root");
|
|
434
453
|
preserveRootFocus(root);
|
|
435
|
-
checkHydratedRoot(checkedProps.value.as === "span" ? "span" : checkedProps.value.as === "div" ? "div" : checkedProps.value.as === "small" ? "small" : checkedProps.value.as === "strong" ? "strong" : checkedProps.value.as === "label" ? "label" : checkedProps.value.as === "h2" ? "h2" : checkedProps.value.as === "h3" ? "h3" : checkedProps.value.as === "h4" ? "h4" : checkedProps.value.as === "h5" ? "h5" : checkedProps.value.as === "h6" ? "h6" : "p", "ui-text");
|
|
454
|
+
checkHydratedRoot(checkedProps.value.as === "span" ? "span" : checkedProps.value.as === "div" ? "div" : checkedProps.value.as === "small" ? "small" : checkedProps.value.as === "strong" ? "strong" : checkedProps.value.as === "label" ? "label" : checkedProps.value.as === "h1" ? "h1" : checkedProps.value.as === "h2" ? "h2" : checkedProps.value.as === "h3" ? "h3" : checkedProps.value.as === "h4" ? "h4" : checkedProps.value.as === "h5" ? "h5" : checkedProps.value.as === "h6" ? "h6" : "p", "ui-text");
|
|
436
455
|
/** The values the styles' :host() and :state() rules test. */
|
|
437
456
|
const hostState = computed(() => [
|
|
438
457
|
checkedProps.value.grow && "grow",
|
|
@@ -564,7 +583,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
564
583
|
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_5)), [[unref(vPropValidity), {
|
|
565
584
|
contract: propValidityContract,
|
|
566
585
|
values: { ...props }
|
|
567
|
-
}]]) : checkedProps.value.as === "
|
|
586
|
+
}]]) : checkedProps.value.as === "h1" ? withDirectives((openBlock(), createElementBlock("h1", mergeProps({
|
|
568
587
|
key: 5,
|
|
569
588
|
class: "ui-text"
|
|
570
589
|
}, unref(nativeAttrs)(_ctx.$attrs), {
|
|
@@ -586,7 +605,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
586
605
|
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_6)), [[unref(vPropValidity), {
|
|
587
606
|
contract: propValidityContract,
|
|
588
607
|
values: { ...props }
|
|
589
|
-
}]]) : checkedProps.value.as === "
|
|
608
|
+
}]]) : checkedProps.value.as === "h2" ? withDirectives((openBlock(), createElementBlock("h2", mergeProps({
|
|
590
609
|
key: 6,
|
|
591
610
|
class: "ui-text"
|
|
592
611
|
}, unref(nativeAttrs)(_ctx.$attrs), {
|
|
@@ -608,7 +627,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
608
627
|
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_7)), [[unref(vPropValidity), {
|
|
609
628
|
contract: propValidityContract,
|
|
610
629
|
values: { ...props }
|
|
611
|
-
}]]) : checkedProps.value.as === "
|
|
630
|
+
}]]) : checkedProps.value.as === "h3" ? withDirectives((openBlock(), createElementBlock("h3", mergeProps({
|
|
612
631
|
key: 7,
|
|
613
632
|
class: "ui-text"
|
|
614
633
|
}, unref(nativeAttrs)(_ctx.$attrs), {
|
|
@@ -630,7 +649,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
630
649
|
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_8)), [[unref(vPropValidity), {
|
|
631
650
|
contract: propValidityContract,
|
|
632
651
|
values: { ...props }
|
|
633
|
-
}]]) : checkedProps.value.as === "
|
|
652
|
+
}]]) : checkedProps.value.as === "h4" ? withDirectives((openBlock(), createElementBlock("h4", mergeProps({
|
|
634
653
|
key: 8,
|
|
635
654
|
class: "ui-text"
|
|
636
655
|
}, unref(nativeAttrs)(_ctx.$attrs), {
|
|
@@ -652,7 +671,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
652
671
|
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_9)), [[unref(vPropValidity), {
|
|
653
672
|
contract: propValidityContract,
|
|
654
673
|
values: { ...props }
|
|
655
|
-
}]]) : checkedProps.value.as === "
|
|
674
|
+
}]]) : checkedProps.value.as === "h5" ? withDirectives((openBlock(), createElementBlock("h5", mergeProps({
|
|
656
675
|
key: 9,
|
|
657
676
|
class: "ui-text"
|
|
658
677
|
}, unref(nativeAttrs)(_ctx.$attrs), {
|
|
@@ -674,7 +693,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
674
693
|
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_10)), [[unref(vPropValidity), {
|
|
675
694
|
contract: propValidityContract,
|
|
676
695
|
values: { ...props }
|
|
677
|
-
}]]) : withDirectives((openBlock(), createElementBlock("
|
|
696
|
+
}]]) : checkedProps.value.as === "h6" ? withDirectives((openBlock(), createElementBlock("h6", mergeProps({
|
|
678
697
|
key: 10,
|
|
679
698
|
class: "ui-text"
|
|
680
699
|
}, unref(nativeAttrs)(_ctx.$attrs), {
|
|
@@ -696,9 +715,31 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
696
715
|
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_11)), [[unref(vPropValidity), {
|
|
697
716
|
contract: propValidityContract,
|
|
698
717
|
values: { ...props }
|
|
718
|
+
}]]) : withDirectives((openBlock(), createElementBlock("p", mergeProps({
|
|
719
|
+
key: 11,
|
|
720
|
+
class: "ui-text"
|
|
721
|
+
}, unref(nativeAttrs)(_ctx.$attrs), {
|
|
722
|
+
"data-hn": "",
|
|
723
|
+
"data-hn-ui-text": "",
|
|
724
|
+
"data-ui-text-prop-align": unref(reflectedProp)("align", "align", checkedProps.value.align, void 0, false),
|
|
725
|
+
"data-ui-text-prop-as": unref(reflectedProp)("as", "as", checkedProps.value.as, void 0, false),
|
|
726
|
+
"data-ui-text-prop-font": unref(reflectedProp)("font", "font", checkedProps.value.font, void 0, false),
|
|
727
|
+
"data-ui-text-prop-grow": unref(reflectedProp)("grow", "grow", checkedProps.value.grow, void 0, false),
|
|
728
|
+
"data-ui-text-prop-size": unref(reflectedProp)("size", "size", checkedProps.value.size, void 0, false),
|
|
729
|
+
"data-ui-text-prop-tone": unref(reflectedProp)("tone", "tone", checkedProps.value.tone, void 0, false),
|
|
730
|
+
"data-ui-text-prop-trim": unref(reflectedProp)("trim", "trim", checkedProps.value.trim, void 0, false),
|
|
731
|
+
"data-ui-text-prop-truncate": unref(reflectedProp)("truncate", "truncate", checkedProps.value.truncate, void 0, false),
|
|
732
|
+
"data-ui-text-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
733
|
+
"data-ui-text-prop-weight": unref(reflectedProp)("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
734
|
+
"data-ui-text-prop-wrap": unref(reflectedProp)("wrap", "wrap", checkedProps.value.wrap, void 0, false),
|
|
735
|
+
"data-ui-text-state": hostState.value || void 0,
|
|
736
|
+
ref: "@html-next/root"
|
|
737
|
+
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_12)), [[unref(vPropValidity), {
|
|
738
|
+
contract: propValidityContract,
|
|
739
|
+
values: { ...props }
|
|
699
740
|
}]]);
|
|
700
741
|
};
|
|
701
742
|
}
|
|
702
|
-
}), [["__scopeId", "data-v-
|
|
743
|
+
}), [["__scopeId", "data-v-386fa92e"]]);
|
|
703
744
|
//#endregion
|
|
704
745
|
export { UiText_default as t };
|
package/vue/chunks/UiTextarea.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as checkedProp,
|
|
1
|
+
import { b as useReflectedProp, i as checkHydratedRoot, m as nativeAttrs, o as createDispatch, t as _plugin_vue_export_helper_default, y as useComponentHost } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { a as checkedProp, i as checkPropInput, m as vuePropInputs, p as vPropValidity, t as BINDING_INPUTS_PROP, u as propValidityState } from "./props.js";
|
|
3
3
|
import { n as readBoundControl, r as vBindControl } from "./control.js";
|
|
4
4
|
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiTextarea.vue?vue&type=script&setup=true&lang.ts
|