@threadlabs/looma 0.47.1 → 0.47.3
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/ui-card/ui-card.html +39 -5
- package/components/ui-card-group/ui-card-group.html +29 -0
- package/components/ui-combobox/ui-combobox.html +24 -4
- package/components/ui-combobox/ui-combobox.js +6 -0
- package/components/ui-site-header/ui-site-header.html +7 -5
- package/components/ui-top-bar/ui-top-bar.html +32 -2
- package/components/ui-top-bar/ui-top-bar.js +60 -0
- package/dist/index.js +4 -3
- package/docs/catalog.json +190 -4
- package/package.json +1 -1
- package/styles/ui-card-group.css +41 -0
- package/styles/ui-card.css +19 -1
- package/styles/ui-combobox.css +42 -6
- package/styles/ui-site-header.css +14 -10
- package/styles/ui-top-bar.css +24 -1
- package/vanilla/UiCard.js +148 -36
- package/vanilla/UiCardGroup.d.ts +25 -0
- package/vanilla/UiCardGroup.js +59 -0
- package/vanilla/UiCombobox.d.ts +1 -0
- package/vanilla/UiCombobox.js +88 -82
- package/vanilla/UiTopBar.d.ts +1 -0
- package/vanilla/UiTopBar.js +50 -13
- package/vanilla/index.js +1 -0
- package/vue/UiCard.d.ts +20 -4
- package/vue/UiCard.vue +31 -5
- package/vue/UiCardGroup.d.ts +41 -0
- package/vue/UiCardGroup.js +2 -0
- package/vue/UiCardGroup.vue +168 -0
- package/vue/UiCombobox.d.ts +6 -0
- package/vue/UiCombobox.vue +78 -9
- package/vue/UiSiteHeader.vue +12 -8
- package/vue/UiTopBar.d.ts +17 -1
- package/vue/UiTopBar.vue +171 -3
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiBreadcrumbItem.js +1 -1
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +74 -10
- package/vue/chunks/UiCardGroup.js +153 -0
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiColorPicker.js +1 -1
- package/vue/chunks/UiCombobox.js +74 -53
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiCurveEditor.js +1 -1
- package/vue/chunks/UiCycleButton.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorBlockActions.js +1 -1
- package/vue/chunks/UiEditorChipEditor.js +1 -1
- package/vue/chunks/UiEditorCodeLanguage.js +1 -1
- package/vue/chunks/UiEditorFootnoteEditor.js +1 -1
- package/vue/chunks/UiEditorImageToolbar.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorLinkCard.js +1 -1
- package/vue/chunks/UiEditorLinkForm.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorSurface.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiImage.js +1 -1
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiLightEditor.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +1 -1
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiNumberInput.js +1 -1
- package/vue/chunks/UiPageHeader.js +1 -1
- package/vue/chunks/UiPagination.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSiteHeader.js +2 -2
- package/vue/chunks/UiSkeleton.js +1 -1
- package/vue/chunks/UiSlider.js +1 -1
- package/vue/chunks/UiSpinner.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwatch.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +1 -1
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +105 -17
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/chunks/props.js +1 -1
- package/vue/components.css +185 -77
- package/vue/index.d.ts +1 -0
- package/vue/index.js +3 -2
package/vue/UiTopBar.vue
CHANGED
|
@@ -1,16 +1,162 @@
|
|
|
1
1
|
<!-- Generated by HTML Next 1.0.0-alpha.69 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
|
-
import {
|
|
3
|
+
import { computed, getCurrentInstance, provide, ref, watchSyncEffect } from 'vue'
|
|
4
|
+
import type { PropType } from 'vue'
|
|
5
|
+
import {
|
|
6
|
+
checkHydratedRoot,
|
|
7
|
+
createDispatch,
|
|
8
|
+
cycleCheckedComputed,
|
|
9
|
+
nativeAttrs,
|
|
10
|
+
useComponentHost,
|
|
11
|
+
useReflectedProp,
|
|
12
|
+
} from './host'
|
|
13
|
+
import { acceptsControllerWrite } from './props'
|
|
14
|
+
import {
|
|
15
|
+
BINDING_INPUTS_PROP,
|
|
16
|
+
checkedProp,
|
|
17
|
+
checkPropInput,
|
|
18
|
+
type InputBindings,
|
|
19
|
+
inputComputed,
|
|
20
|
+
inputDefault,
|
|
21
|
+
inputRead,
|
|
22
|
+
propValidityState,
|
|
23
|
+
READY_INPUT,
|
|
24
|
+
requireInputStatus,
|
|
25
|
+
UNRESOLVED_INPUT,
|
|
26
|
+
vPropValidity,
|
|
27
|
+
vuePropInputs,
|
|
28
|
+
} from './props'
|
|
4
29
|
|
|
5
30
|
defineOptions({ inheritAttrs: false })
|
|
6
31
|
|
|
32
|
+
const propValidityContract = {
|
|
33
|
+
props: {
|
|
34
|
+
titleFor: {
|
|
35
|
+
type: { kind: 'terminal', name: 'string' },
|
|
36
|
+
required: false,
|
|
37
|
+
target: { attribute: 'titlefor' },
|
|
38
|
+
description:
|
|
39
|
+
'The ID of the page heading represented by the default title slot. While that heading is visible below the sticky bar, its duplicate title is concealed.\n After the heading scrolls above the bar, the single-line title slides up and fades in. Leading and action slots stay available, and the bar keeps its\n size. Omit it for an always-visible title. Reduced motion removes the transition.',
|
|
40
|
+
default: '',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
} as const
|
|
44
|
+
const props = defineProps({
|
|
45
|
+
titleFor: { type: null as unknown as PropType<string | null> },
|
|
46
|
+
[BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
|
|
47
|
+
})
|
|
48
|
+
const acceptedProps: Record<string, unknown> = { titleFor: '' }
|
|
49
|
+
const inputTracking = vuePropInputs(
|
|
50
|
+
acceptedProps,
|
|
51
|
+
{ titleFor: '' },
|
|
52
|
+
(name, value, source, values) => {
|
|
53
|
+
switch (name) {
|
|
54
|
+
case 'titleFor':
|
|
55
|
+
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
56
|
+
default:
|
|
57
|
+
return { ok: false }
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
() => {
|
|
61
|
+
void checkedProps.value
|
|
62
|
+
},
|
|
63
|
+
)
|
|
64
|
+
const propInputs = inputTracking.inputs
|
|
65
|
+
const checkedProps = computed(() => {
|
|
66
|
+
void inputTracking.version.value
|
|
67
|
+
return ({
|
|
68
|
+
titleFor: propInputs.value<string | null>(
|
|
69
|
+
'titleFor',
|
|
70
|
+
props['titleFor'],
|
|
71
|
+
props[BINDING_INPUTS_PROP],
|
|
72
|
+
) as string,
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
const inputStatus = (name: string, handlesError: boolean) => {
|
|
76
|
+
void checkedProps.value
|
|
77
|
+
void inputTracking.version.value
|
|
78
|
+
return requireInputStatus(propInputs.status(name), handlesError)
|
|
79
|
+
}
|
|
80
|
+
void checkedProps.value
|
|
81
|
+
watchSyncEffect(() => {
|
|
82
|
+
void checkedProps.value
|
|
83
|
+
})
|
|
84
|
+
const reflectedProp = useReflectedProp()
|
|
85
|
+
const hydrationInstance = getCurrentInstance()
|
|
86
|
+
|
|
87
|
+
const root = ref<HTMLElement | null>(null)
|
|
88
|
+
const titleOutOfView = ref(false)
|
|
89
|
+
const titleHidden: ReturnType<typeof inputComputed<boolean | null>> = inputComputed<boolean | null>(
|
|
90
|
+
() =>
|
|
91
|
+
inputRead(checkedProps.value.titleFor, propInputs.status('titleFor')) !== ''
|
|
92
|
+
&& !inputRead(
|
|
93
|
+
titleOutOfView.value,
|
|
94
|
+
(titleOutOfView.value) === undefined ? UNRESOLVED_INPUT : READY_INPUT,
|
|
95
|
+
) as any,
|
|
96
|
+
(read) => {
|
|
97
|
+
const value = cycleCheckedComputed(read)
|
|
98
|
+
return { get: () => value.value }
|
|
99
|
+
},
|
|
100
|
+
)
|
|
101
|
+
provide('html-next:ui-top-bar:titleOutOfView', titleOutOfView)
|
|
7
102
|
checkHydratedRoot('header', 'ui-top-bar')
|
|
103
|
+
|
|
104
|
+
const dispatch = createDispatch(root)
|
|
105
|
+
|
|
106
|
+
useComponentHost(() => import('../components/ui-top-bar/ui-top-bar.js'), {
|
|
107
|
+
root,
|
|
108
|
+
module: true,
|
|
109
|
+
dispatch,
|
|
110
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
111
|
+
acceptsControllerWrite(
|
|
112
|
+
value,
|
|
113
|
+
({ titleOutOfView: { kind: 'terminal', name: 'boolean' } } as Record<string, any>)[name],
|
|
114
|
+
keys,
|
|
115
|
+
),
|
|
116
|
+
initials: { titleOutOfView: false },
|
|
117
|
+
controllerSource: {
|
|
118
|
+
specifier: '../components/ui-top-bar/ui-top-bar.js',
|
|
119
|
+
definition: './components/ui-top-bar/ui-top-bar.html',
|
|
120
|
+
},
|
|
121
|
+
props: checkedProps,
|
|
122
|
+
inputs: propInputs,
|
|
123
|
+
inputTracking,
|
|
124
|
+
propInputs: (name: string) => {
|
|
125
|
+
const incoming = hydrationInstance?.vnode.props
|
|
126
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
127
|
+
return incoming !== null && incoming !== undefined
|
|
128
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
129
|
+
: null
|
|
130
|
+
},
|
|
131
|
+
propNames: ['titleFor'],
|
|
132
|
+
propValidity: (name: string) =>
|
|
133
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
134
|
+
state: { titleOutOfView },
|
|
135
|
+
computed: { titleHidden },
|
|
136
|
+
availability: { titleHidden: () => titleHidden.status() },
|
|
137
|
+
})
|
|
8
138
|
</script>
|
|
9
139
|
|
|
10
140
|
<template>
|
|
11
|
-
<header
|
|
141
|
+
<header
|
|
142
|
+
class="ui-top-bar"
|
|
143
|
+
v-bind="nativeAttrs($attrs)"
|
|
144
|
+
data-hn
|
|
145
|
+
data-hn-ui-top-bar
|
|
146
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
147
|
+
:data-ui-top-bar-prop-title-for="reflectedProp('titleFor', 'title-for', checkedProps.titleFor, undefined, false)"
|
|
148
|
+
ref="root"
|
|
149
|
+
>
|
|
12
150
|
<div class="leading" data-hn-ui-top-bar><slot name="leading" /></div>
|
|
13
|
-
<div
|
|
151
|
+
<div
|
|
152
|
+
class="title"
|
|
153
|
+
data-hn-ui-top-bar
|
|
154
|
+
:aria-hidden="titleHidden.get() ?? undefined"
|
|
155
|
+
:inert="titleHidden.get() ?? undefined"
|
|
156
|
+
:class="{ 'scroll-title': checkedProps.titleFor !== '', concealed: titleHidden.get() }"
|
|
157
|
+
>
|
|
158
|
+
<slot />
|
|
159
|
+
</div>
|
|
14
160
|
<div class="search" data-hn-ui-top-bar><slot name="search" /></div>
|
|
15
161
|
<div class="actions" data-hn-ui-top-bar><slot name="actions" /></div>
|
|
16
162
|
</header>
|
|
@@ -60,6 +206,28 @@ checkHydratedRoot('header', 'ui-top-bar')
|
|
|
60
206
|
min-inline-size: 0;
|
|
61
207
|
flex: 1;
|
|
62
208
|
}
|
|
209
|
+
:global(.title.scroll-title:where([data-hn-ui-top-bar])) {
|
|
210
|
+
overflow: hidden;
|
|
211
|
+
white-space: nowrap;
|
|
212
|
+
text-overflow: ellipsis;
|
|
213
|
+
opacity: 1;
|
|
214
|
+
transform: translateY(0);
|
|
215
|
+
transition:
|
|
216
|
+
opacity var(--ui-motion-fast) var(--ui-motion-ease),
|
|
217
|
+
transform var(--ui-motion-fast) var(--ui-motion-ease);
|
|
218
|
+
}
|
|
219
|
+
:global(.title.scroll-title.concealed:where([data-hn-ui-top-bar])) {
|
|
220
|
+
opacity: 0;
|
|
221
|
+
transform: translateY(var(--ui-space-2));
|
|
222
|
+
pointer-events: none;
|
|
223
|
+
}
|
|
224
|
+
@media (prefers-reduced-motion: reduce) {
|
|
225
|
+
:global(.title.scroll-title:where([data-hn-ui-top-bar])),
|
|
226
|
+
:global(.title.scroll-title.concealed:where([data-hn-ui-top-bar])) {
|
|
227
|
+
transition: none;
|
|
228
|
+
transform: none;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
63
231
|
:global(.leading:empty:where([data-hn-ui-top-bar])),
|
|
64
232
|
:global(.search:empty:where([data-hn-ui-top-bar])),
|
|
65
233
|
:global(.actions:empty:where([data-hn-ui-top-bar])) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, s as createDispatch, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, f as propValidityState, g as vuePropInputs, h as vPropValidity, i as acceptsControllerWrite, t as BINDING_INPUTS_PROP } 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/UiAffordanceScope.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
package/vue/chunks/UiAvatar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, s as createDispatch, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, f as propValidityState, g as vuePropInputs, h as vPropValidity, i as acceptsControllerWrite, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { t as UiIcon_default } from "./UiIcon.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, s as createDispatch, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, f as propValidityState, g as vuePropInputs, h as vPropValidity, i as acceptsControllerWrite, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiAvatarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
package/vue/chunks/UiBadge.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, g as vuePropInputs, h as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiBadge.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, i as attribute, o as concat, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, g as vuePropInputs, h as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { t as UiIcon_default } from "./UiIcon.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiBreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, g as vuePropInputs, h as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiBreadcrumbs.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = ["aria-label", "data-ui-breadcrumbs-prop-label"];
|
package/vue/chunks/UiButton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, c as cycleCheckedComputed, i as attribute, o as concat, s as createDispatch, t as _plugin_vue_export_helper_default, y as preserveRootFocus } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, d as inputRead, f as propValidityState, g as vuePropInputs, h as vPropValidity, l as inputComputed, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { t as UiIcon_default } from "./UiIcon.js";
|
|
4
4
|
import { t as UiSpinner_default } from "./UiSpinner.js";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
package/vue/chunks/UiCallout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, g as vuePropInputs, h as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiCallout.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
package/vue/chunks/UiCard.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default, y as preserveRootFocus } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
3
|
-
import { computed, createElementBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
2
|
+
import { a as checkPropInput, g as vuePropInputs, h as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiCard.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"data-ui-card-prop-as",
|
|
@@ -11,7 +11,19 @@ var _hoisted_1 = [
|
|
|
11
11
|
"data-ui-card-prop-variant",
|
|
12
12
|
"data-ui-card-state"
|
|
13
13
|
];
|
|
14
|
-
var _hoisted_2 =
|
|
14
|
+
var _hoisted_2 = {
|
|
15
|
+
class: "header",
|
|
16
|
+
"data-hn-ui-card": ""
|
|
17
|
+
};
|
|
18
|
+
var _hoisted_3 = {
|
|
19
|
+
class: "content",
|
|
20
|
+
"data-hn-ui-card": ""
|
|
21
|
+
};
|
|
22
|
+
var _hoisted_4 = {
|
|
23
|
+
class: "actions",
|
|
24
|
+
"data-hn-ui-card": ""
|
|
25
|
+
};
|
|
26
|
+
var _hoisted_5 = [
|
|
15
27
|
"data-ui-card-prop-as",
|
|
16
28
|
"data-ui-card-prop-padding",
|
|
17
29
|
"data-ui-card-prop-size",
|
|
@@ -20,7 +32,19 @@ var _hoisted_2 = [
|
|
|
20
32
|
"data-ui-card-prop-variant",
|
|
21
33
|
"data-ui-card-state"
|
|
22
34
|
];
|
|
23
|
-
var
|
|
35
|
+
var _hoisted_6 = {
|
|
36
|
+
class: "header",
|
|
37
|
+
"data-hn-ui-card": ""
|
|
38
|
+
};
|
|
39
|
+
var _hoisted_7 = {
|
|
40
|
+
class: "content",
|
|
41
|
+
"data-hn-ui-card": ""
|
|
42
|
+
};
|
|
43
|
+
var _hoisted_8 = {
|
|
44
|
+
class: "actions",
|
|
45
|
+
"data-hn-ui-card": ""
|
|
46
|
+
};
|
|
47
|
+
var _hoisted_9 = [
|
|
24
48
|
"data-ui-card-prop-as",
|
|
25
49
|
"data-ui-card-prop-padding",
|
|
26
50
|
"data-ui-card-prop-size",
|
|
@@ -29,7 +53,19 @@ var _hoisted_3 = [
|
|
|
29
53
|
"data-ui-card-prop-variant",
|
|
30
54
|
"data-ui-card-state"
|
|
31
55
|
];
|
|
32
|
-
var
|
|
56
|
+
var _hoisted_10 = {
|
|
57
|
+
class: "header",
|
|
58
|
+
"data-hn-ui-card": ""
|
|
59
|
+
};
|
|
60
|
+
var _hoisted_11 = {
|
|
61
|
+
class: "content",
|
|
62
|
+
"data-hn-ui-card": ""
|
|
63
|
+
};
|
|
64
|
+
var _hoisted_12 = {
|
|
65
|
+
class: "actions",
|
|
66
|
+
"data-hn-ui-card": ""
|
|
67
|
+
};
|
|
68
|
+
var _hoisted_13 = [
|
|
33
69
|
"data-ui-card-prop-as",
|
|
34
70
|
"data-ui-card-prop-padding",
|
|
35
71
|
"data-ui-card-prop-size",
|
|
@@ -38,6 +74,18 @@ var _hoisted_4 = [
|
|
|
38
74
|
"data-ui-card-prop-variant",
|
|
39
75
|
"data-ui-card-state"
|
|
40
76
|
];
|
|
77
|
+
var _hoisted_14 = {
|
|
78
|
+
class: "header",
|
|
79
|
+
"data-hn-ui-card": ""
|
|
80
|
+
};
|
|
81
|
+
var _hoisted_15 = {
|
|
82
|
+
class: "content",
|
|
83
|
+
"data-hn-ui-card": ""
|
|
84
|
+
};
|
|
85
|
+
var _hoisted_16 = {
|
|
86
|
+
class: "actions",
|
|
87
|
+
"data-hn-ui-card": ""
|
|
88
|
+
};
|
|
41
89
|
//#endregion
|
|
42
90
|
//#region .build/vue/UiCard.vue
|
|
43
91
|
var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -243,7 +291,11 @@ var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
243
291
|
"data-ui-card-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
244
292
|
"data-ui-card-state": hostState.value || void 0,
|
|
245
293
|
ref: "@html-next/root"
|
|
246
|
-
}), [
|
|
294
|
+
}), [
|
|
295
|
+
createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "header", {}, void 0, true)]),
|
|
296
|
+
createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
297
|
+
createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
298
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
247
299
|
contract: propValidityContract,
|
|
248
300
|
values: { ...props }
|
|
249
301
|
}]]) : checkedProps.value.as === "article" ? withDirectives((openBlock(), createElementBlock("article", mergeProps({
|
|
@@ -260,7 +312,11 @@ var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
260
312
|
"data-ui-card-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
261
313
|
"data-ui-card-state": hostState.value || void 0,
|
|
262
314
|
ref: "@html-next/root"
|
|
263
|
-
}), [
|
|
315
|
+
}), [
|
|
316
|
+
createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "header", {}, void 0, true)]),
|
|
317
|
+
createElementVNode("div", _hoisted_7, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
318
|
+
createElementVNode("div", _hoisted_8, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
319
|
+
], 16, _hoisted_5)), [[unref(vPropValidity), {
|
|
264
320
|
contract: propValidityContract,
|
|
265
321
|
values: { ...props }
|
|
266
322
|
}]]) : checkedProps.value.as === "aside" ? withDirectives((openBlock(), createElementBlock("aside", mergeProps({
|
|
@@ -277,7 +333,11 @@ var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
277
333
|
"data-ui-card-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
278
334
|
"data-ui-card-state": hostState.value || void 0,
|
|
279
335
|
ref: "@html-next/root"
|
|
280
|
-
}), [
|
|
336
|
+
}), [
|
|
337
|
+
createElementVNode("div", _hoisted_10, [renderSlot(_ctx.$slots, "header", {}, void 0, true)]),
|
|
338
|
+
createElementVNode("div", _hoisted_11, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
339
|
+
createElementVNode("div", _hoisted_12, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
340
|
+
], 16, _hoisted_9)), [[unref(vPropValidity), {
|
|
281
341
|
contract: propValidityContract,
|
|
282
342
|
values: { ...props }
|
|
283
343
|
}]]) : withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
@@ -294,12 +354,16 @@ var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
294
354
|
"data-ui-card-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
295
355
|
"data-ui-card-state": hostState.value || void 0,
|
|
296
356
|
ref: "@html-next/root"
|
|
297
|
-
}), [
|
|
357
|
+
}), [
|
|
358
|
+
createElementVNode("div", _hoisted_14, [renderSlot(_ctx.$slots, "header", {}, void 0, true)]),
|
|
359
|
+
createElementVNode("div", _hoisted_15, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
360
|
+
createElementVNode("div", _hoisted_16, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
361
|
+
], 16, _hoisted_13)), [[unref(vPropValidity), {
|
|
298
362
|
contract: propValidityContract,
|
|
299
363
|
values: { ...props }
|
|
300
364
|
}]]);
|
|
301
365
|
};
|
|
302
366
|
}
|
|
303
|
-
}), [["__scopeId", "data-v-
|
|
367
|
+
}), [["__scopeId", "data-v-54ed7533"]]);
|
|
304
368
|
//#endregion
|
|
305
369
|
export { UiCard_default as t };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { a as checkPropInput, g as vuePropInputs, h as vPropValidity, p as requireInputStatus, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
|
+
import { t as UiGrid_default } from "./UiGrid.js";
|
|
4
|
+
import { computed, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
5
|
+
//#region .build/vue/UiCardGroup.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = [
|
|
7
|
+
"data-ui-card-group-prop-columns",
|
|
8
|
+
"data-ui-card-group-prop-gap",
|
|
9
|
+
"data-ui-card-group-prop-min"
|
|
10
|
+
];
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region .build/vue/UiCardGroup.vue
|
|
13
|
+
var UiCardGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
__name: "UiCardGroup",
|
|
16
|
+
props: {
|
|
17
|
+
columns: { type: null },
|
|
18
|
+
gap: { type: null },
|
|
19
|
+
min: { type: null },
|
|
20
|
+
[BINDING_INPUTS_PROP]: { type: null }
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const propValidityContract = { props: {
|
|
24
|
+
columns: {
|
|
25
|
+
type: {
|
|
26
|
+
kind: "terminal",
|
|
27
|
+
name: "integer"
|
|
28
|
+
},
|
|
29
|
+
required: false,
|
|
30
|
+
target: { attribute: "columns" },
|
|
31
|
+
description: "Maximum columns when there is room. Omit for no cap; cards wrap as the container narrows."
|
|
32
|
+
},
|
|
33
|
+
gap: {
|
|
34
|
+
type: {
|
|
35
|
+
kind: "terminal",
|
|
36
|
+
name: "keyword"
|
|
37
|
+
},
|
|
38
|
+
required: false,
|
|
39
|
+
target: { attribute: "gap" },
|
|
40
|
+
description: "Space between cards, using Grid’s spacing scale. Grid’s public --ui-grid-gap custom property also applies.",
|
|
41
|
+
values: [
|
|
42
|
+
"xs",
|
|
43
|
+
"s",
|
|
44
|
+
"m",
|
|
45
|
+
"l",
|
|
46
|
+
"xl"
|
|
47
|
+
],
|
|
48
|
+
default: "l"
|
|
49
|
+
},
|
|
50
|
+
min: {
|
|
51
|
+
type: {
|
|
52
|
+
kind: "terminal",
|
|
53
|
+
name: "keyword"
|
|
54
|
+
},
|
|
55
|
+
required: false,
|
|
56
|
+
target: { attribute: "min" },
|
|
57
|
+
description: "Minimum card column width: sm is 12rem, md 16rem and lg 20rem. A narrower container still fits one column.",
|
|
58
|
+
values: [
|
|
59
|
+
"sm",
|
|
60
|
+
"md",
|
|
61
|
+
"lg"
|
|
62
|
+
],
|
|
63
|
+
default: "lg"
|
|
64
|
+
}
|
|
65
|
+
} };
|
|
66
|
+
const props = __props;
|
|
67
|
+
const inputTracking = vuePropInputs({
|
|
68
|
+
columns: null,
|
|
69
|
+
gap: "l",
|
|
70
|
+
min: "lg"
|
|
71
|
+
}, {
|
|
72
|
+
gap: "l",
|
|
73
|
+
min: "lg"
|
|
74
|
+
}, (name, value, source, values) => {
|
|
75
|
+
switch (name) {
|
|
76
|
+
case "columns": return checkPropInput(value, {
|
|
77
|
+
kind: "terminal",
|
|
78
|
+
name: "integer"
|
|
79
|
+
}, true, true);
|
|
80
|
+
case "gap": return checkPropInput(value, {
|
|
81
|
+
kind: "terminal",
|
|
82
|
+
name: "keyword"
|
|
83
|
+
}, true, true);
|
|
84
|
+
case "min": return checkPropInput(value, {
|
|
85
|
+
kind: "terminal",
|
|
86
|
+
name: "keyword"
|
|
87
|
+
}, true, true);
|
|
88
|
+
default: return { ok: false };
|
|
89
|
+
}
|
|
90
|
+
}, () => {
|
|
91
|
+
checkedProps.value;
|
|
92
|
+
});
|
|
93
|
+
const propInputs = inputTracking.inputs;
|
|
94
|
+
const checkedProps = computed(() => {
|
|
95
|
+
inputTracking.version.value;
|
|
96
|
+
return {
|
|
97
|
+
columns: propInputs.value("columns", props["columns"], props[BINDING_INPUTS_PROP]),
|
|
98
|
+
gap: propInputs.value("gap", props["gap"], props[BINDING_INPUTS_PROP]),
|
|
99
|
+
min: propInputs.value("min", props["min"], props[BINDING_INPUTS_PROP])
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
const inputStatus = (name, handlesError) => {
|
|
103
|
+
checkedProps.value;
|
|
104
|
+
inputTracking.version.value;
|
|
105
|
+
return requireInputStatus(propInputs.status(name), handlesError);
|
|
106
|
+
};
|
|
107
|
+
checkedProps.value;
|
|
108
|
+
watchSyncEffect(() => {
|
|
109
|
+
checkedProps.value;
|
|
110
|
+
});
|
|
111
|
+
const reflectedProp = useReflectedProp();
|
|
112
|
+
checkHydratedRoot("div", "ui-card-group");
|
|
113
|
+
return (_ctx, _cache) => {
|
|
114
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ class: "ui-card-group" }, unref(nativeAttrs)(_ctx.$attrs), {
|
|
115
|
+
"data-hn": "",
|
|
116
|
+
"data-hn-ui-card-group": "",
|
|
117
|
+
"data-ui-card-group-prop-columns": unref(reflectedProp)("columns", "columns", checkedProps.value.columns, void 0, false),
|
|
118
|
+
"data-ui-card-group-prop-gap": unref(reflectedProp)("gap", "gap", checkedProps.value.gap, void 0, false),
|
|
119
|
+
"data-ui-card-group-prop-min": unref(reflectedProp)("min", "min", checkedProps.value.min, void 0, false)
|
|
120
|
+
}), [createVNode(UiGrid_default, mergeProps({
|
|
121
|
+
class: "ui-grid",
|
|
122
|
+
gap: checkedProps.value.gap,
|
|
123
|
+
min: checkedProps.value.min,
|
|
124
|
+
columns: checkedProps.value.columns
|
|
125
|
+
}, { [unref(BINDING_INPUTS_PROP)]: {
|
|
126
|
+
gap: () => ({
|
|
127
|
+
value: checkedProps.value.gap,
|
|
128
|
+
status: inputStatus("gap", true)
|
|
129
|
+
}),
|
|
130
|
+
min: () => ({
|
|
131
|
+
value: checkedProps.value.min,
|
|
132
|
+
status: inputStatus("min", true)
|
|
133
|
+
}),
|
|
134
|
+
columns: () => ({
|
|
135
|
+
value: checkedProps.value.columns,
|
|
136
|
+
status: inputStatus("columns", true)
|
|
137
|
+
})
|
|
138
|
+
} }), {
|
|
139
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
140
|
+
_: 3
|
|
141
|
+
}, 16, [
|
|
142
|
+
"gap",
|
|
143
|
+
"min",
|
|
144
|
+
"columns"
|
|
145
|
+
])], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
146
|
+
contract: propValidityContract,
|
|
147
|
+
values: { ...props }
|
|
148
|
+
}]]);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
}), [["__scopeId", "data-v-f5544ff3"]]);
|
|
152
|
+
//#endregion
|
|
153
|
+
export { UiCardGroup_default as t };
|
package/vue/chunks/UiCheckbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, s as createDispatch, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, f as propValidityState, g as vuePropInputs, h as vPropValidity, i as acceptsControllerWrite, t as BINDING_INPUTS_PROP } 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/UiCheckbox.vue?vue&type=script&setup=true&lang.ts
|
package/vue/chunks/UiCluster.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, g as vuePropInputs, h 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/UiCluster.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, s as createDispatch, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, f as propValidityState, g as vuePropInputs, h as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { t as UiIcon_default } from "./UiIcon.js";
|
|
4
4
|
import { t as UiButton_default } from "./UiButton.js";
|
|
5
5
|
import { t as UiInput_default } from "./UiInput.js";
|