@flux-ui/components 3.0.0-next.31 → 3.0.0-next.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/FluxFormTreeViewSelect.vue.d.ts +209 -0
- package/dist/component/FluxOverflowBar.vue.d.ts +2 -0
- package/dist/component/FluxTreeView.vue.d.ts +16 -0
- package/dist/component/index.d.ts +2 -0
- package/dist/composable/private/index.d.ts +2 -0
- package/dist/composable/private/useTreeView.d.ts +28 -0
- package/dist/index.css +258 -0
- package/dist/index.js +717 -185
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/component/FluxCheckbox.vue +2 -2
- package/src/component/FluxFilterBar.vue +1 -0
- package/src/component/FluxFormSlider.vue +1 -1
- package/src/component/FluxFormTreeViewSelect.vue +359 -0
- package/src/component/FluxOverflowBar.vue +2 -2
- package/src/component/FluxPressable.vue +13 -12
- package/src/component/FluxSegmentedControl.vue +35 -8
- package/src/component/FluxTreeView.vue +116 -0
- package/src/component/index.ts +2 -0
- package/src/composable/private/index.ts +2 -0
- package/src/composable/private/useTreeView.ts +186 -0
- package/src/css/component/TreeView.module.scss +34 -0
- package/src/css/component/TreeViewSelect.module.scss +73 -0
- package/src/css/mixin/index.scss +1 -0
- package/src/css/mixin/tree-node.scss +94 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Comment, Fragment, Teleport, Transition, TransitionGroup, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, customRef, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted,
|
|
1
|
+
import { Comment, Fragment, Teleport, Transition, TransitionGroup, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, customRef, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, toHandlers, toRef, unref, useId, useModel, useSlots, useTemplateRef, vModelCheckbox, vModelText, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
2
2
|
import { DateTime } from "luxon";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __exportAll = (all, no_symbols) => {
|
|
@@ -286,6 +286,124 @@ var useTranslate_default = () => {
|
|
|
286
286
|
function isVueI18n(obj) {
|
|
287
287
|
return !!obj && "$t" in obj;
|
|
288
288
|
}
|
|
289
|
+
const FLUX_COLORS = [
|
|
290
|
+
"gray",
|
|
291
|
+
"primary",
|
|
292
|
+
"danger",
|
|
293
|
+
"info",
|
|
294
|
+
"success",
|
|
295
|
+
"warning"
|
|
296
|
+
];
|
|
297
|
+
function flattenVisible(nodes, depth, expanded, parentGuides = []) {
|
|
298
|
+
return nodes.flatMap((node, index) => {
|
|
299
|
+
const isLast = index === nodes.length - 1;
|
|
300
|
+
const flatNode = {
|
|
301
|
+
...node,
|
|
302
|
+
depth,
|
|
303
|
+
isLast,
|
|
304
|
+
lineGuides: parentGuides
|
|
305
|
+
};
|
|
306
|
+
if (node.children?.length && expanded.has(node.id)) {
|
|
307
|
+
const childGuides = [...parentGuides, !isLast];
|
|
308
|
+
return [flatNode, ...flattenVisible(node.children, depth + 1, expanded, childGuides)];
|
|
309
|
+
}
|
|
310
|
+
return [flatNode];
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
function flattenAll(nodes, depth = 0) {
|
|
314
|
+
return nodes.flatMap((node) => [{
|
|
315
|
+
...node,
|
|
316
|
+
depth,
|
|
317
|
+
isLast: false,
|
|
318
|
+
lineGuides: []
|
|
319
|
+
}, ...node.children ? flattenAll(node.children, depth + 1) : []]);
|
|
320
|
+
}
|
|
321
|
+
function getLevelColor(depth, levelColors) {
|
|
322
|
+
if (!levelColors || depth >= levelColors.length) return;
|
|
323
|
+
const color = levelColors[depth];
|
|
324
|
+
if (FLUX_COLORS.includes(color)) return `var(--${color}-600)`;
|
|
325
|
+
return color;
|
|
326
|
+
}
|
|
327
|
+
function useTreeView(params) {
|
|
328
|
+
const highlightedIndex = ref(-1);
|
|
329
|
+
function toggleExpand(nodeId) {
|
|
330
|
+
const ids = new Set(unref(params.expandedIds));
|
|
331
|
+
if (ids.has(nodeId)) ids.delete(nodeId);
|
|
332
|
+
else ids.add(nodeId);
|
|
333
|
+
params.expandedIds.value = ids;
|
|
334
|
+
}
|
|
335
|
+
function onExpandClick(node, evt) {
|
|
336
|
+
if (!node.children?.length) return;
|
|
337
|
+
evt.stopPropagation();
|
|
338
|
+
toggleExpand(node.id);
|
|
339
|
+
}
|
|
340
|
+
function onKeyNavigate(evt, onActivate) {
|
|
341
|
+
const nodes = unref(params.visibleNodes);
|
|
342
|
+
const current = unref(highlightedIndex);
|
|
343
|
+
switch (evt.key) {
|
|
344
|
+
case "ArrowDown":
|
|
345
|
+
evt.preventDefault();
|
|
346
|
+
highlightedIndex.value = current === -1 ? 0 : Math.min(nodes.length - 1, current + 1);
|
|
347
|
+
return true;
|
|
348
|
+
case "ArrowUp":
|
|
349
|
+
evt.preventDefault();
|
|
350
|
+
highlightedIndex.value = current === -1 ? nodes.length - 1 : Math.max(0, current - 1);
|
|
351
|
+
return true;
|
|
352
|
+
case "ArrowRight":
|
|
353
|
+
evt.preventDefault();
|
|
354
|
+
if (current >= 0) {
|
|
355
|
+
const node = nodes[current];
|
|
356
|
+
if (node.children?.length) {
|
|
357
|
+
if (!unref(params.expandedIds).has(node.id)) toggleExpand(node.id);
|
|
358
|
+
else if (current + 1 < nodes.length && nodes[current + 1].depth > node.depth) highlightedIndex.value = current + 1;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
return true;
|
|
362
|
+
case "ArrowLeft":
|
|
363
|
+
evt.preventDefault();
|
|
364
|
+
if (current >= 0) {
|
|
365
|
+
const node = nodes[current];
|
|
366
|
+
if (node.children?.length && unref(params.expandedIds).has(node.id)) toggleExpand(node.id);
|
|
367
|
+
else if (node.depth > 0) {
|
|
368
|
+
for (let i = current - 1; i >= 0; i--) if (nodes[i].depth === node.depth - 1) {
|
|
369
|
+
highlightedIndex.value = i;
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return true;
|
|
375
|
+
case "Enter":
|
|
376
|
+
case " ":
|
|
377
|
+
evt.preventDefault();
|
|
378
|
+
if (current >= 0) onActivate(nodes[current]);
|
|
379
|
+
return true;
|
|
380
|
+
default:
|
|
381
|
+
if (evt.key.length === 1) {
|
|
382
|
+
const lowerKey = evt.key.toLowerCase();
|
|
383
|
+
let matchIndex = nodes.findIndex((n, i) => i > current && n.label.toLowerCase().startsWith(lowerKey));
|
|
384
|
+
if (matchIndex < 0) matchIndex = nodes.findIndex((n) => n.label.toLowerCase().startsWith(lowerKey));
|
|
385
|
+
if (matchIndex >= 0) {
|
|
386
|
+
highlightedIndex.value = matchIndex;
|
|
387
|
+
return true;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return false;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
watch(highlightedIndex, (index) => {
|
|
394
|
+
if (index < 0) return;
|
|
395
|
+
nextTick(() => unref(params.nodeElementRefs)?.[index]?.scrollIntoView({ block: "nearest" }));
|
|
396
|
+
});
|
|
397
|
+
watch(params.visibleNodes, (nodes) => {
|
|
398
|
+
if (unref(highlightedIndex) >= nodes.length) highlightedIndex.value = Math.max(-1, nodes.length - 1);
|
|
399
|
+
});
|
|
400
|
+
return {
|
|
401
|
+
highlightedIndex,
|
|
402
|
+
toggleExpand,
|
|
403
|
+
onExpandClick,
|
|
404
|
+
onKeyNavigate
|
|
405
|
+
};
|
|
406
|
+
}
|
|
289
407
|
/** Detect free variable `global` from Node.js. */
|
|
290
408
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
291
409
|
/** Detect free variable `self`. */
|
|
@@ -4227,6 +4345,21 @@ function pe$1(e, t, n) {
|
|
|
4227
4345
|
onScopeDispose(s);
|
|
4228
4346
|
}
|
|
4229
4347
|
RegExp(`[a-z]`), RegExp(`[A-Z]`), RegExp(`[0-9]`), RegExp(`[!"#$%&'()*+,-./:;<=>?@[\\\\\\]^_\`{|}~]`);
|
|
4348
|
+
function ye$1(e, t, n) {
|
|
4349
|
+
n ??= {};
|
|
4350
|
+
let r, i = watch(e, (e) => {
|
|
4351
|
+
o();
|
|
4352
|
+
let i = G$1(e);
|
|
4353
|
+
i && (r = new ResizeObserver(t), r.observe(i, n));
|
|
4354
|
+
}, { immediate: !0 });
|
|
4355
|
+
function o() {
|
|
4356
|
+
r &&= (r.disconnect(), void 0);
|
|
4357
|
+
}
|
|
4358
|
+
function s() {
|
|
4359
|
+
o(), i();
|
|
4360
|
+
}
|
|
4361
|
+
onScopeDispose(s);
|
|
4362
|
+
}
|
|
4230
4363
|
function f(e, n) {
|
|
4231
4364
|
let r = ref(!1), o = ref(e), s = computed(() => {
|
|
4232
4365
|
let e = [], t = unref(o).month, n = unref(o).startOf(`month`);
|
|
@@ -7013,8 +7146,8 @@ var Icon_module_default = {
|
|
|
7013
7146
|
iconBoxedSuccess: `icon-boxed-success icon-boxed-colored icon-boxed ${_0$16}`,
|
|
7014
7147
|
iconBoxedWarning: `icon-boxed-warning icon-boxed-colored icon-boxed ${_0$16}`
|
|
7015
7148
|
};
|
|
7016
|
-
var _hoisted_1$
|
|
7017
|
-
var _hoisted_2$
|
|
7149
|
+
var _hoisted_1$46 = ["viewBox"];
|
|
7150
|
+
var _hoisted_2$21 = ["d"];
|
|
7018
7151
|
var FluxIcon_default = /* @__PURE__ */ defineComponent({
|
|
7019
7152
|
__name: "FluxIcon",
|
|
7020
7153
|
props: {
|
|
@@ -7056,15 +7189,15 @@ var FluxIcon_default = /* @__PURE__ */ defineComponent({
|
|
|
7056
7189
|
return openBlock(), createElementBlock("path", {
|
|
7057
7190
|
d: path,
|
|
7058
7191
|
fill: "currentColor"
|
|
7059
|
-
}, null, 8, _hoisted_2$
|
|
7060
|
-
}), 256))], 14, _hoisted_1$
|
|
7192
|
+
}, null, 8, _hoisted_2$21);
|
|
7193
|
+
}), 256))], 14, _hoisted_1$46)) : (openBlock(), createElementBlock("i", {
|
|
7061
7194
|
key: 1,
|
|
7062
7195
|
class: normalizeClass(unref(Icon_module_default).icon)
|
|
7063
7196
|
}, null, 2));
|
|
7064
7197
|
};
|
|
7065
7198
|
}
|
|
7066
7199
|
});
|
|
7067
|
-
var _hoisted_1$
|
|
7200
|
+
var _hoisted_1$45 = [
|
|
7068
7201
|
"href",
|
|
7069
7202
|
"rel",
|
|
7070
7203
|
"target"
|
|
@@ -7084,8 +7217,11 @@ var FluxPressable_default = /* @__PURE__ */ defineComponent({
|
|
|
7084
7217
|
"mouseleave"
|
|
7085
7218
|
],
|
|
7086
7219
|
setup(__props, { emit: __emit, attrs: $attrs }) {
|
|
7087
|
-
const $emit = __emit;
|
|
7088
7220
|
const emit = __emit;
|
|
7221
|
+
const hoverListeners = {
|
|
7222
|
+
onMouseenter: (evt) => emit("mouseenter", evt),
|
|
7223
|
+
onMouseleave: (evt) => emit("mouseleave", evt)
|
|
7224
|
+
};
|
|
7089
7225
|
function onClick(evt, navigate) {
|
|
7090
7226
|
emit("click", evt);
|
|
7091
7227
|
if (evt.defaultPrevented) return;
|
|
@@ -7093,13 +7229,11 @@ var FluxPressable_default = /* @__PURE__ */ defineComponent({
|
|
|
7093
7229
|
}
|
|
7094
7230
|
return (_ctx, _cache) => {
|
|
7095
7231
|
const _component_router_link = resolveComponent("router-link");
|
|
7096
|
-
return __props.componentType === "route" ? (openBlock(), createBlock(_component_router_link, mergeProps({ key: 0 }, $attrs, {
|
|
7232
|
+
return __props.componentType === "route" ? (openBlock(), createBlock(_component_router_link, mergeProps({ key: 0 }, $attrs, toHandlers(hoverListeners), {
|
|
7097
7233
|
rel: __props.rel,
|
|
7098
7234
|
target: __props.target,
|
|
7099
7235
|
to: __props.to,
|
|
7100
|
-
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
7101
|
-
onMouseenter: _cache[1] || (_cache[1] = ($event) => $emit("mouseenter", $event)),
|
|
7102
|
-
onMouseleave: _cache[2] || (_cache[2] = ($event) => $emit("mouseleave", $event))
|
|
7236
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
7103
7237
|
}), {
|
|
7104
7238
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
7105
7239
|
_: 3
|
|
@@ -7107,22 +7241,12 @@ var FluxPressable_default = /* @__PURE__ */ defineComponent({
|
|
|
7107
7241
|
"rel",
|
|
7108
7242
|
"target",
|
|
7109
7243
|
"to"
|
|
7110
|
-
])) : __props.componentType === "link" ? (openBlock(), createElementBlock("a", mergeProps({ key: 1 }, $attrs, {
|
|
7244
|
+
])) : __props.componentType === "link" ? (openBlock(), createElementBlock("a", mergeProps({ key: 1 }, $attrs, toHandlers(hoverListeners, true), {
|
|
7111
7245
|
href: __props.href,
|
|
7112
7246
|
rel: __props.rel,
|
|
7113
7247
|
target: __props.target,
|
|
7114
|
-
onClick: _cache[
|
|
7115
|
-
|
|
7116
|
-
onMouseleave: _cache[5] || (_cache[5] = ($event) => $emit("mouseleave", $event))
|
|
7117
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$43)) : __props.componentType === "button" ? (openBlock(), createElementBlock("button", mergeProps({ key: 2 }, $attrs, {
|
|
7118
|
-
onClick: _cache[6] || (_cache[6] = ($event) => onClick($event)),
|
|
7119
|
-
onMouseenter: _cache[7] || (_cache[7] = ($event) => $emit("mouseenter", $event)),
|
|
7120
|
-
onMouseleave: _cache[8] || (_cache[8] = ($event) => $emit("mouseleave", $event))
|
|
7121
|
-
}), [renderSlot(_ctx.$slots, "default")], 16)) : (openBlock(), createElementBlock("div", mergeProps({ key: 3 }, $attrs, {
|
|
7122
|
-
onClick,
|
|
7123
|
-
onMouseenter: _cache[9] || (_cache[9] = ($event) => $emit("mouseenter", $event)),
|
|
7124
|
-
onMouseleave: _cache[10] || (_cache[10] = ($event) => $emit("mouseleave", $event))
|
|
7125
|
-
}), [renderSlot(_ctx.$slots, "default")], 16));
|
|
7248
|
+
onClick: _cache[1] || (_cache[1] = ($event) => onClick($event))
|
|
7249
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$45)) : __props.componentType === "button" ? (openBlock(), createElementBlock("button", mergeProps({ key: 2 }, $attrs, toHandlers(hoverListeners, true), { onClick: _cache[2] || (_cache[2] = ($event) => onClick($event)) }), [renderSlot(_ctx.$slots, "default")], 16)) : (openBlock(), createElementBlock("div", mergeProps({ key: 3 }, $attrs, toHandlers(hoverListeners, true), { onClick }), [renderSlot(_ctx.$slots, "default")], 16));
|
|
7126
7250
|
};
|
|
7127
7251
|
}
|
|
7128
7252
|
});
|
|
@@ -7294,11 +7418,11 @@ var FluxButton_default = /* @__PURE__ */ defineComponent({
|
|
|
7294
7418
|
};
|
|
7295
7419
|
}
|
|
7296
7420
|
});
|
|
7297
|
-
var { "
|
|
7421
|
+
var { "buttonIcon": _0$15, "button": _1$8, "buttonLabel": _2$5 } = Button_module_default$1;
|
|
7298
7422
|
var Action_module_default = {
|
|
7299
|
-
action: `action ${
|
|
7423
|
+
action: `action ${_1$8}`,
|
|
7300
7424
|
spinner: `spinner`,
|
|
7301
|
-
actionIcon: `action-icon ${
|
|
7425
|
+
actionIcon: `action-icon ${_0$15}`,
|
|
7302
7426
|
isDestructive: `is-destructive`,
|
|
7303
7427
|
actionLabel: `action-label ${_2$5}`,
|
|
7304
7428
|
actionBar: `action-bar`,
|
|
@@ -7362,31 +7486,31 @@ var FluxAction_default = /* @__PURE__ */ defineComponent({
|
|
|
7362
7486
|
};
|
|
7363
7487
|
}
|
|
7364
7488
|
});
|
|
7365
|
-
var { "
|
|
7489
|
+
var { "buttonIcon": _0$14, "button": _1$7, "buttonLabel": _2$4 } = Button_module_default$1;
|
|
7366
7490
|
var Button_module_default = {
|
|
7367
|
-
primaryButton: `primary-button ${
|
|
7491
|
+
primaryButton: `primary-button ${_1$7}`,
|
|
7368
7492
|
spinner: `spinner`,
|
|
7369
|
-
primaryButtonIcon: `primary-button-icon ${
|
|
7493
|
+
primaryButtonIcon: `primary-button-icon ${_0$14}`,
|
|
7370
7494
|
primaryButtonLabel: `primary-button-label ${_2$4}`,
|
|
7371
|
-
secondaryButton: `secondary-button ${
|
|
7372
|
-
secondaryButtonIcon: `secondary-button-icon ${
|
|
7495
|
+
secondaryButton: `secondary-button ${_1$7}`,
|
|
7496
|
+
secondaryButtonIcon: `secondary-button-icon ${_0$14}`,
|
|
7373
7497
|
secondaryButtonLabel: `secondary-button-label ${_2$4}`,
|
|
7374
|
-
destructiveButton: `destructive-button ${
|
|
7375
|
-
destructiveButtonIcon: `destructive-button-icon ${
|
|
7498
|
+
destructiveButton: `destructive-button ${_1$7}`,
|
|
7499
|
+
destructiveButtonIcon: `destructive-button-icon ${_0$14}`,
|
|
7376
7500
|
destructiveButtonLabel: `destructive-button-label ${_2$4}`,
|
|
7377
|
-
baseLinkButton: `base-link-button ${
|
|
7378
|
-
primaryLinkButton: `primary-link-button base-link-button ${
|
|
7379
|
-
primaryLinkButtonIcon: `primary-link-button-icon ${
|
|
7501
|
+
baseLinkButton: `base-link-button ${_1$7}`,
|
|
7502
|
+
primaryLinkButton: `primary-link-button base-link-button ${_1$7}`,
|
|
7503
|
+
primaryLinkButtonIcon: `primary-link-button-icon ${_0$14}`,
|
|
7380
7504
|
primaryLinkButtonLabel: `primary-link-button-label ${_2$4}`,
|
|
7381
|
-
secondaryLinkButton: `secondary-link-button base-link-button ${
|
|
7382
|
-
secondaryLinkButtonIcon: `secondary-link-button-icon ${
|
|
7505
|
+
secondaryLinkButton: `secondary-link-button base-link-button ${_1$7}`,
|
|
7506
|
+
secondaryLinkButtonIcon: `secondary-link-button-icon ${_0$14}`,
|
|
7383
7507
|
secondaryLinkButtonLabel: `secondary-link-button-label ${_2$4}`,
|
|
7384
|
-
linkButton: `link-button ${
|
|
7385
|
-
linkButtonIcon: `link-button-icon ${
|
|
7508
|
+
linkButton: `link-button ${_1$7}`,
|
|
7509
|
+
linkButtonIcon: `link-button-icon ${_0$14}`,
|
|
7386
7510
|
icon: `icon`,
|
|
7387
7511
|
linkButtonLabel: `link-button-label ${_2$4}`,
|
|
7388
|
-
publishButton: `publish-button primary-button ${
|
|
7389
|
-
publishButtonIcon: `publish-button-icon primary-button-icon ${
|
|
7512
|
+
publishButton: `publish-button primary-button ${_1$7}`,
|
|
7513
|
+
publishButtonIcon: `publish-button-icon primary-button-icon ${_0$14}`,
|
|
7390
7514
|
publishButtonLabel: `publish-button-label primary-button-label ${_2$4}`,
|
|
7391
7515
|
publishButtonAnimation: `publish-button-animation`,
|
|
7392
7516
|
isDone: `is-done`,
|
|
@@ -7533,7 +7657,7 @@ var Flyout_module_default = {
|
|
|
7533
7657
|
mobileClose: `mobile-close`,
|
|
7534
7658
|
mobileOpen: `mobile-open`
|
|
7535
7659
|
};
|
|
7536
|
-
var _hoisted_1$
|
|
7660
|
+
var _hoisted_1$44 = ["onKeydown"];
|
|
7537
7661
|
var FluxFlyout_default = /* @__PURE__ */ defineComponent({
|
|
7538
7662
|
__name: "FluxFlyout",
|
|
7539
7663
|
props: {
|
|
@@ -7667,7 +7791,7 @@ var FluxFlyout_default = /* @__PURE__ */ defineComponent({
|
|
|
7667
7791
|
openerHeight: openerHeight.value
|
|
7668
7792
|
})))]),
|
|
7669
7793
|
_: 3
|
|
7670
|
-
}, 8, ["class", "style"])) : createCommentVNode("", true)], 42, _hoisted_1$
|
|
7794
|
+
}, 8, ["class", "style"])) : createCommentVNode("", true)], 42, _hoisted_1$44)], 6);
|
|
7671
7795
|
};
|
|
7672
7796
|
}
|
|
7673
7797
|
});
|
|
@@ -8440,8 +8564,8 @@ var Avatar_module_default = {
|
|
|
8440
8564
|
persona: `persona`,
|
|
8441
8565
|
personaDetails: `persona-details`
|
|
8442
8566
|
};
|
|
8443
|
-
var _hoisted_1$
|
|
8444
|
-
var _hoisted_2$
|
|
8567
|
+
var _hoisted_1$43 = ["alt", "src"];
|
|
8568
|
+
var _hoisted_2$20 = { key: 0 };
|
|
8445
8569
|
var FluxAvatar_default = /* @__PURE__ */ defineComponent({
|
|
8446
8570
|
__name: "FluxAvatar",
|
|
8447
8571
|
props: {
|
|
@@ -8525,10 +8649,10 @@ var FluxAvatar_default = /* @__PURE__ */ defineComponent({
|
|
|
8525
8649
|
class: normalizeClass(unref(Avatar_module_default).avatarImage),
|
|
8526
8650
|
alt: __props.alt,
|
|
8527
8651
|
src: __props.src
|
|
8528
|
-
}, null, 10, _hoisted_1$
|
|
8652
|
+
}, null, 10, _hoisted_1$43)) : (openBlock(), createElementBlock("div", {
|
|
8529
8653
|
key: 1,
|
|
8530
8654
|
class: normalizeClass(__props.fallback === "colorized" ? unref(Avatar_module_default).avatarFallbackColorized : unref(Avatar_module_default).avatarFallbackNeutral)
|
|
8531
|
-
}, [__props.fallbackInitials ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
8655
|
+
}, [__props.fallbackInitials ? (openBlock(), createElementBlock("span", _hoisted_2$20, toDisplayString(__props.fallbackInitials), 1)) : __props.fallbackIcon ? (openBlock(), createBlock(FluxIcon_default, {
|
|
8532
8656
|
key: 1,
|
|
8533
8657
|
name: __props.fallbackIcon
|
|
8534
8658
|
}, null, 8, ["name"])) : createCommentVNode("", true)], 2)),
|
|
@@ -8955,7 +9079,7 @@ var FilterBadge_default = /* @__PURE__ */ defineComponent({
|
|
|
8955
9079
|
};
|
|
8956
9080
|
}
|
|
8957
9081
|
});
|
|
8958
|
-
var { "
|
|
9082
|
+
var { "buttonIcon": _0$11, "buttonLabel": _1$5, "button": _2$2 } = Button_module_default$1;
|
|
8959
9083
|
var Menu_module_default = {
|
|
8960
9084
|
menu: `menu`,
|
|
8961
9085
|
menuNormal: `menu-normal menu`,
|
|
@@ -8965,13 +9089,13 @@ var Menu_module_default = {
|
|
|
8965
9089
|
menuGroupVertical: `menu-group-vertical menu-group`,
|
|
8966
9090
|
menuItem: `menu-item ${_2$2}`,
|
|
8967
9091
|
badge: `badge`,
|
|
8968
|
-
menuItemIcon: `menu-item-icon ${
|
|
8969
|
-
menuItemLabel: `menu-item-label ${
|
|
9092
|
+
menuItemIcon: `menu-item-icon ${_0$11}`,
|
|
9093
|
+
menuItemLabel: `menu-item-label ${_1$5}`,
|
|
8970
9094
|
menuItemActive: `menu-item-active`,
|
|
8971
9095
|
menuItemDestructive: `menu-item-destructive`,
|
|
8972
9096
|
menuItemHighlighted: `menu-item-highlighted`,
|
|
8973
9097
|
menuItemIndented: `menu-item-indented`,
|
|
8974
|
-
menuItemSelectableIcon: `menu-item-selectable-icon ${
|
|
9098
|
+
menuItemSelectableIcon: `menu-item-selectable-icon ${_0$11}`,
|
|
8975
9099
|
menuItemSelected: `menu-item-selected`,
|
|
8976
9100
|
menuItemCommand: `menu-item-command`,
|
|
8977
9101
|
menuItemCommandIcon: `menu-item-command-icon`,
|
|
@@ -8986,7 +9110,7 @@ var Menu_module_default = {
|
|
|
8986
9110
|
separator: `separator`,
|
|
8987
9111
|
expandableBody: `expandable-body`
|
|
8988
9112
|
};
|
|
8989
|
-
var _hoisted_1$
|
|
9113
|
+
var _hoisted_1$42 = ["src", "alt"];
|
|
8990
9114
|
var FluxMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
8991
9115
|
__name: "FluxMenuItem",
|
|
8992
9116
|
props: {
|
|
@@ -9061,7 +9185,7 @@ var FluxMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
|
9061
9185
|
class: normalizeClass(unref(Menu_module_default).menuItemImage),
|
|
9062
9186
|
src: __props.imageSrc,
|
|
9063
9187
|
alt: __props.imageAlt ?? ""
|
|
9064
|
-
}, null, 10, _hoisted_1$
|
|
9188
|
+
}, null, 10, _hoisted_1$42)]),
|
|
9065
9189
|
key: "1"
|
|
9066
9190
|
} : void 0, __props.command || __props.commandIcon || __props.commandLoading || slots.after ? {
|
|
9067
9191
|
name: "after",
|
|
@@ -9216,8 +9340,8 @@ var Form_module_default = {
|
|
|
9216
9340
|
toggleIconOn: `toggle-icon-on toggle-icon`,
|
|
9217
9341
|
toggleIconOff: `toggle-icon-off toggle-icon`
|
|
9218
9342
|
};
|
|
9219
|
-
var _hoisted_1$
|
|
9220
|
-
var _hoisted_2$
|
|
9343
|
+
var _hoisted_1$41 = ["aria-disabled"];
|
|
9344
|
+
var _hoisted_2$19 = [
|
|
9221
9345
|
"id",
|
|
9222
9346
|
"autocomplete",
|
|
9223
9347
|
"autofocus",
|
|
@@ -9387,7 +9511,7 @@ var FluxFormInput_default = /* @__PURE__ */ defineComponent({
|
|
|
9387
9511
|
onFocus: _cache[1] || (_cache[1] = ($event) => onFocus()),
|
|
9388
9512
|
onInput,
|
|
9389
9513
|
onKeydown: onKeyDown
|
|
9390
|
-
}, null, 42, _hoisted_2$
|
|
9514
|
+
}, null, 42, _hoisted_2$19),
|
|
9391
9515
|
__props.iconLeading ? (openBlock(), createBlock(FluxIcon_default, {
|
|
9392
9516
|
key: 0,
|
|
9393
9517
|
class: normalizeClass(unref(Form_module_default).formInputIconLeading),
|
|
@@ -9411,7 +9535,7 @@ var FluxFormInput_default = /* @__PURE__ */ defineComponent({
|
|
|
9411
9535
|
class: normalizeClass(unref(Form_module_default).formInputIconTrailing),
|
|
9412
9536
|
size: 18
|
|
9413
9537
|
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
9414
|
-
], 10, _hoisted_1$
|
|
9538
|
+
], 10, _hoisted_1$41);
|
|
9415
9539
|
};
|
|
9416
9540
|
}
|
|
9417
9541
|
});
|
|
@@ -9910,7 +10034,7 @@ var FluxTicks_default = /* @__PURE__ */ defineComponent({
|
|
|
9910
10034
|
};
|
|
9911
10035
|
}
|
|
9912
10036
|
});
|
|
9913
|
-
var _hoisted_1$
|
|
10037
|
+
var _hoisted_1$40 = ["aria-disabled"];
|
|
9914
10038
|
var SliderBase_default = /* @__PURE__ */ defineComponent({
|
|
9915
10039
|
__name: "SliderBase",
|
|
9916
10040
|
props: {
|
|
@@ -9963,11 +10087,11 @@ var SliderBase_default = /* @__PURE__ */ defineComponent({
|
|
|
9963
10087
|
key: 0,
|
|
9964
10088
|
lower: __props.min,
|
|
9965
10089
|
upper: __props.max
|
|
9966
|
-
}, null, 8, ["lower", "upper"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 42, _hoisted_1$
|
|
10090
|
+
}, null, 8, ["lower", "upper"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 42, _hoisted_1$40);
|
|
9967
10091
|
};
|
|
9968
10092
|
}
|
|
9969
10093
|
});
|
|
9970
|
-
var _hoisted_1$
|
|
10094
|
+
var _hoisted_1$39 = ["aria-disabled", "tabindex"];
|
|
9971
10095
|
var SliderThumb_default = /* @__PURE__ */ defineComponent({
|
|
9972
10096
|
__name: "SliderThumb",
|
|
9973
10097
|
props: {
|
|
@@ -10008,7 +10132,7 @@ var SliderThumb_default = /* @__PURE__ */ defineComponent({
|
|
|
10008
10132
|
type: "button",
|
|
10009
10133
|
onKeydown: onKeyDown,
|
|
10010
10134
|
onPointerdown: _cache[0] || (_cache[0] = ($event) => $emit("grab", $event))
|
|
10011
|
-
}, null, 46, _hoisted_1$
|
|
10135
|
+
}, null, 46, _hoisted_1$39);
|
|
10012
10136
|
};
|
|
10013
10137
|
}
|
|
10014
10138
|
});
|
|
@@ -10041,7 +10165,7 @@ var Divider_module_default = {
|
|
|
10041
10165
|
separatorHorizontal: `separator-horizontal separator`,
|
|
10042
10166
|
separatorVertical: `separator-vertical separator`
|
|
10043
10167
|
};
|
|
10044
|
-
var _hoisted_1$
|
|
10168
|
+
var _hoisted_1$38 = ["aria-orientation"];
|
|
10045
10169
|
var FluxSeparator_default = /* @__PURE__ */ defineComponent({
|
|
10046
10170
|
__name: "FluxSeparator",
|
|
10047
10171
|
props: { direction: { default: "horizontal" } },
|
|
@@ -10051,7 +10175,7 @@ var FluxSeparator_default = /* @__PURE__ */ defineComponent({
|
|
|
10051
10175
|
class: normalizeClass(__props.direction === "horizontal" ? unref(Divider_module_default).separatorHorizontal : unref(Divider_module_default).separatorVertical),
|
|
10052
10176
|
role: "separator",
|
|
10053
10177
|
"aria-orientation": __props.direction
|
|
10054
|
-
}, null, 10, _hoisted_1$
|
|
10178
|
+
}, null, 10, _hoisted_1$38);
|
|
10055
10179
|
};
|
|
10056
10180
|
}
|
|
10057
10181
|
});
|
|
@@ -10134,8 +10258,8 @@ var DatePicker_module_default = {
|
|
|
10134
10258
|
datePickerDay: `date-picker-day`,
|
|
10135
10259
|
button: `button`
|
|
10136
10260
|
};
|
|
10137
|
-
var _hoisted_1$
|
|
10138
|
-
var _hoisted_2$
|
|
10261
|
+
var _hoisted_1$37 = ["onClick"];
|
|
10262
|
+
var _hoisted_2$18 = ["onClick"];
|
|
10139
10263
|
var FluxCalendar_default = /* @__PURE__ */ defineComponent({
|
|
10140
10264
|
__name: "FluxCalendar",
|
|
10141
10265
|
props: {
|
|
@@ -10198,7 +10322,7 @@ var FluxCalendar_default = /* @__PURE__ */ defineComponent({
|
|
|
10198
10322
|
class: normalizeClass(unref(Calendar_module_default).calendarCurrentMonth),
|
|
10199
10323
|
type: "button",
|
|
10200
10324
|
onClick: open
|
|
10201
|
-
}, toDisplayString(unref(viewMonth)), 11, _hoisted_1$
|
|
10325
|
+
}, toDisplayString(unref(viewMonth)), 11, _hoisted_1$37)]),
|
|
10202
10326
|
default: withCtx(({ close }) => [createElementVNode("div", { class: normalizeClass(unref(DatePicker_module_default).datePickerMonths) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(months), (month) => {
|
|
10203
10327
|
return openBlock(), createBlock(FluxSecondaryButton_default, {
|
|
10204
10328
|
key: month.label,
|
|
@@ -10213,7 +10337,7 @@ var FluxCalendar_default = /* @__PURE__ */ defineComponent({
|
|
|
10213
10337
|
class: normalizeClass(unref(Calendar_module_default).calendarCurrentYear),
|
|
10214
10338
|
type: "button",
|
|
10215
10339
|
onClick: open
|
|
10216
|
-
}, toDisplayString(unref(viewYear)), 11, _hoisted_2$
|
|
10340
|
+
}, toDisplayString(unref(viewYear)), 11, _hoisted_2$18)]),
|
|
10217
10341
|
default: withCtx(({ close }) => [createElementVNode("div", { class: normalizeClass(unref(DatePicker_module_default).datePickerYears) }, [
|
|
10218
10342
|
createVNode(FluxSecondaryButton_default, {
|
|
10219
10343
|
"icon-leading": "angle-left",
|
|
@@ -10309,9 +10433,8 @@ var FluxCalendarEvent_default = /* @__PURE__ */ defineComponent({
|
|
|
10309
10433
|
};
|
|
10310
10434
|
}
|
|
10311
10435
|
});
|
|
10312
|
-
var _hoisted_1$
|
|
10313
|
-
var _hoisted_2$
|
|
10314
|
-
var _hoisted_3$6 = ["aria-checked"];
|
|
10436
|
+
var _hoisted_1$36 = ["for"];
|
|
10437
|
+
var _hoisted_2$17 = ["id"];
|
|
10315
10438
|
var FluxCheckbox_default = /* @__PURE__ */ defineComponent({
|
|
10316
10439
|
__name: "FluxCheckbox",
|
|
10317
10440
|
props: /* @__PURE__ */ mergeModels({ label: {} }, {
|
|
@@ -10342,11 +10465,11 @@ var FluxCheckbox_default = /* @__PURE__ */ defineComponent({
|
|
|
10342
10465
|
type: "checkbox",
|
|
10343
10466
|
class: normalizeClass(unref(Form_module_default).checkboxNative),
|
|
10344
10467
|
id: unref(id)
|
|
10345
|
-
}, null, 10, _hoisted_2$
|
|
10468
|
+
}, null, 10, _hoisted_2$17), [[vModelCheckbox, modelValue.value]]),
|
|
10346
10469
|
createElementVNode("button", {
|
|
10470
|
+
"aria-hidden": "true",
|
|
10347
10471
|
class: normalizeClass(unref(Form_module_default).checkboxElement),
|
|
10348
|
-
|
|
10349
|
-
"aria-checked": modelValue.value ?? false
|
|
10472
|
+
tabindex: "-1"
|
|
10350
10473
|
}, [isIndeterminate.value ? (openBlock(), createBlock(FluxIcon_default, {
|
|
10351
10474
|
key: 0,
|
|
10352
10475
|
name: "minus",
|
|
@@ -10355,12 +10478,12 @@ var FluxCheckbox_default = /* @__PURE__ */ defineComponent({
|
|
|
10355
10478
|
key: 1,
|
|
10356
10479
|
name: "check",
|
|
10357
10480
|
size: 16
|
|
10358
|
-
}))],
|
|
10481
|
+
}))], 2),
|
|
10359
10482
|
__props.label ? (openBlock(), createElementBlock("span", {
|
|
10360
10483
|
key: 0,
|
|
10361
10484
|
class: normalizeClass(unref(Form_module_default).checkboxLabel)
|
|
10362
10485
|
}, toDisplayString(__props.label), 3)) : createCommentVNode("", true)
|
|
10363
|
-
], 10, _hoisted_1$
|
|
10486
|
+
], 10, _hoisted_1$36);
|
|
10364
10487
|
};
|
|
10365
10488
|
}
|
|
10366
10489
|
});
|
|
@@ -10471,8 +10594,8 @@ var Comment_module_default = {
|
|
|
10471
10594
|
isTyping: `is-typing`,
|
|
10472
10595
|
commentTyping: `comment-typing`
|
|
10473
10596
|
};
|
|
10474
|
-
var _hoisted_1$
|
|
10475
|
-
var _hoisted_2$
|
|
10597
|
+
var _hoisted_1$35 = { key: 0 };
|
|
10598
|
+
var _hoisted_2$16 = ["datetime"];
|
|
10476
10599
|
var FluxComment_default = /* @__PURE__ */ defineComponent({
|
|
10477
10600
|
__name: "FluxComment",
|
|
10478
10601
|
props: {
|
|
@@ -10514,10 +10637,10 @@ var FluxComment_default = /* @__PURE__ */ defineComponent({
|
|
|
10514
10637
|
key: 0,
|
|
10515
10638
|
class: normalizeClass(unref(Comment_module_default).commentTyping)
|
|
10516
10639
|
}, null, 2)) : renderSlot(_ctx.$slots, "default", { key: 1 })], 2),
|
|
10517
|
-
createElementVNode("div", { class: normalizeClass(unref(Comment_module_default).commentFooter) }, [__props.isReceived && __props.postedBy ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
10640
|
+
createElementVNode("div", { class: normalizeClass(unref(Comment_module_default).commentFooter) }, [__props.isReceived && __props.postedBy ? (openBlock(), createElementBlock("span", _hoisted_1$35, toDisplayString(__props.postedBy), 1)) : createCommentVNode("", true), iso.value && relative.value && !__props.isTyping ? (openBlock(), createElementBlock("time", {
|
|
10518
10641
|
key: 1,
|
|
10519
10642
|
datetime: iso.value
|
|
10520
|
-
}, toDisplayString(isJustNowVisible.value ? unref(translate)("flux.justNow") : relative.value), 9, _hoisted_2$
|
|
10643
|
+
}, toDisplayString(isJustNowVisible.value ? unref(translate)("flux.justNow") : relative.value), 9, _hoisted_2$16)) : createCommentVNode("", true)], 2)
|
|
10521
10644
|
], 2);
|
|
10522
10645
|
};
|
|
10523
10646
|
}
|
|
@@ -10529,7 +10652,7 @@ var CoordinatePicker_module_default = {
|
|
|
10529
10652
|
isDisabled: `is-disabled`,
|
|
10530
10653
|
isDragging: `is-dragging`
|
|
10531
10654
|
};
|
|
10532
|
-
var _hoisted_1$
|
|
10655
|
+
var _hoisted_1$34 = ["aria-disabled", "tabindex"];
|
|
10533
10656
|
var CoordinatePickerThumb_default = /* @__PURE__ */ defineComponent({
|
|
10534
10657
|
__name: "CoordinatePickerThumb",
|
|
10535
10658
|
props: {
|
|
@@ -10577,11 +10700,11 @@ var CoordinatePickerThumb_default = /* @__PURE__ */ defineComponent({
|
|
|
10577
10700
|
type: "button",
|
|
10578
10701
|
onKeydown: onKeyDown,
|
|
10579
10702
|
onPointerdown: _cache[0] || (_cache[0] = ($event) => $emit("grab", $event))
|
|
10580
|
-
}, null, 46, _hoisted_1$
|
|
10703
|
+
}, null, 46, _hoisted_1$34);
|
|
10581
10704
|
};
|
|
10582
10705
|
}
|
|
10583
10706
|
});
|
|
10584
|
-
var _hoisted_1$
|
|
10707
|
+
var _hoisted_1$33 = ["aria-disabled"];
|
|
10585
10708
|
var CoordinatePicker_default = /* @__PURE__ */ defineComponent({
|
|
10586
10709
|
__name: "CoordinatePicker",
|
|
10587
10710
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -10674,11 +10797,11 @@ var CoordinatePicker_default = /* @__PURE__ */ defineComponent({
|
|
|
10674
10797
|
"disabled",
|
|
10675
10798
|
"is-dragging",
|
|
10676
10799
|
"position"
|
|
10677
|
-
])], 42, _hoisted_1$
|
|
10800
|
+
])], 42, _hoisted_1$33);
|
|
10678
10801
|
};
|
|
10679
10802
|
}
|
|
10680
10803
|
});
|
|
10681
|
-
var _hoisted_1$
|
|
10804
|
+
var _hoisted_1$32 = { key: 1 };
|
|
10682
10805
|
var FluxFormFieldAddition_default = /* @__PURE__ */ defineComponent({
|
|
10683
10806
|
__name: "FluxFormFieldAddition",
|
|
10684
10807
|
props: {
|
|
@@ -10698,13 +10821,13 @@ var FluxFormFieldAddition_default = /* @__PURE__ */ defineComponent({
|
|
|
10698
10821
|
name: __props.icon,
|
|
10699
10822
|
size: 16
|
|
10700
10823
|
}, null, 8, ["class", "name"])) : createCommentVNode("", true),
|
|
10701
|
-
__props.message ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
10824
|
+
__props.message ? (openBlock(), createElementBlock("span", _hoisted_1$32, toDisplayString(__props.message), 1)) : createCommentVNode("", true),
|
|
10702
10825
|
renderSlot(_ctx.$slots, "default")
|
|
10703
10826
|
], 2);
|
|
10704
10827
|
};
|
|
10705
10828
|
}
|
|
10706
10829
|
});
|
|
10707
|
-
var _hoisted_1$
|
|
10830
|
+
var _hoisted_1$31 = ["for"];
|
|
10708
10831
|
var FluxFormField_default = /* @__PURE__ */ defineComponent({
|
|
10709
10832
|
__name: "FluxFormField",
|
|
10710
10833
|
props: {
|
|
@@ -10743,7 +10866,7 @@ var FluxFormField_default = /* @__PURE__ */ defineComponent({
|
|
|
10743
10866
|
label: __props.label,
|
|
10744
10867
|
maxLength: __props.maxLength
|
|
10745
10868
|
})))], 2)) : createCommentVNode("", true)
|
|
10746
|
-
], 10, _hoisted_1$
|
|
10869
|
+
], 10, _hoisted_1$31),
|
|
10747
10870
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ id: unref(id) }))),
|
|
10748
10871
|
__props.currentLength && __props.maxLength && __props.maxLength > 0 ? (openBlock(), createElementBlock("span", {
|
|
10749
10872
|
key: 0,
|
|
@@ -11245,8 +11368,8 @@ var FluxPrimaryButton_default = /* @__PURE__ */ defineComponent({
|
|
|
11245
11368
|
};
|
|
11246
11369
|
}
|
|
11247
11370
|
});
|
|
11248
|
-
var _hoisted_1$
|
|
11249
|
-
var _hoisted_2$
|
|
11371
|
+
var _hoisted_1$30 = ["onClick"];
|
|
11372
|
+
var _hoisted_2$15 = ["onClick"];
|
|
11250
11373
|
var FluxColorSelect_default = /* @__PURE__ */ defineComponent({
|
|
11251
11374
|
__name: "FluxColorSelect",
|
|
11252
11375
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -11294,7 +11417,7 @@ var FluxColorSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
11294
11417
|
class: normalizeClass(unref(Color_module_default).colorSelectCheck),
|
|
11295
11418
|
name: "check",
|
|
11296
11419
|
size: 16
|
|
11297
|
-
}, null, 8, ["class"])], 14, _hoisted_1$
|
|
11420
|
+
}, null, 8, ["class"])], 14, _hoisted_1$30);
|
|
11298
11421
|
}), 256)), __props.isCustomAllowed ? (openBlock(), createBlock(FluxFlyout_default, { key: 0 }, {
|
|
11299
11422
|
opener: withCtx(({ open }) => [createElementVNode("button", {
|
|
11300
11423
|
class: normalizeClass(unref(Color_module_default).colorSelectCustom),
|
|
@@ -11302,7 +11425,7 @@ var FluxColorSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
11302
11425
|
}, [createVNode(FluxIcon_default, {
|
|
11303
11426
|
name: "ellipsis-h",
|
|
11304
11427
|
size: 16
|
|
11305
|
-
})], 10, _hoisted_2$
|
|
11428
|
+
})], 10, _hoisted_2$15)]),
|
|
11306
11429
|
default: withCtx(({ close }) => [createVNode(FluxColorPicker_default, {
|
|
11307
11430
|
modelValue: customColor.value,
|
|
11308
11431
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => customColor.value = $event),
|
|
@@ -11385,7 +11508,7 @@ var FluxFormSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
11385
11508
|
};
|
|
11386
11509
|
}
|
|
11387
11510
|
});
|
|
11388
|
-
var { "secondaryButton": _0$7, "
|
|
11511
|
+
var { "secondaryButton": _0$7, "secondaryButtonIcon": _1$3, "secondaryButtonLabel": _2$1 } = Button_module_default;
|
|
11389
11512
|
var Pagination_module_default = {
|
|
11390
11513
|
pagination: `pagination`,
|
|
11391
11514
|
paginationButton: `pagination-button ${_0$7}`,
|
|
@@ -11393,8 +11516,8 @@ var Pagination_module_default = {
|
|
|
11393
11516
|
paginationButtonArrow: `pagination-button-arrow`,
|
|
11394
11517
|
paginationButtonCurrent: `pagination-button-current`,
|
|
11395
11518
|
paginationButtonSpacer: `pagination-button-spacer`,
|
|
11396
|
-
paginationButtonIcon: `pagination-button-icon ${
|
|
11397
|
-
paginationButtonLabel: `pagination-button-label ${
|
|
11519
|
+
paginationButtonIcon: `pagination-button-icon ${_1$3}`,
|
|
11520
|
+
paginationButtonLabel: `pagination-button-label ${_2$1}`,
|
|
11398
11521
|
paginationBar: `pagination-bar`,
|
|
11399
11522
|
paginationBarLimit: `pagination-bar-limit`,
|
|
11400
11523
|
paginationBarLimitDisplayingOf: `pagination-bar-limit-displaying-of`,
|
|
@@ -11470,7 +11593,7 @@ var FluxPaginationButton_default = /* @__PURE__ */ defineComponent({
|
|
|
11470
11593
|
};
|
|
11471
11594
|
}
|
|
11472
11595
|
});
|
|
11473
|
-
var _hoisted_1$
|
|
11596
|
+
var _hoisted_1$29 = ["aria-label"];
|
|
11474
11597
|
var FluxPagination_default = /* @__PURE__ */ defineComponent({
|
|
11475
11598
|
__name: "FluxPagination",
|
|
11476
11599
|
props: {
|
|
@@ -11578,7 +11701,7 @@ var FluxPagination_default = /* @__PURE__ */ defineComponent({
|
|
|
11578
11701
|
"aria-label": unref(translate)("flux.next"),
|
|
11579
11702
|
onClick: next
|
|
11580
11703
|
}, null, 8, ["disabled", "aria-label"])) : createCommentVNode("", true)
|
|
11581
|
-
], 10, _hoisted_1$
|
|
11704
|
+
], 10, _hoisted_1$29);
|
|
11582
11705
|
};
|
|
11583
11706
|
}
|
|
11584
11707
|
});
|
|
@@ -11695,8 +11818,8 @@ var FluxTableRow_default = /* @__PURE__ */ defineComponent({
|
|
|
11695
11818
|
};
|
|
11696
11819
|
}
|
|
11697
11820
|
});
|
|
11698
|
-
var _hoisted_1$
|
|
11699
|
-
var _hoisted_2$
|
|
11821
|
+
var _hoisted_1$28 = { key: 0 };
|
|
11822
|
+
var _hoisted_2$14 = { key: 1 };
|
|
11700
11823
|
var _hoisted_3$5 = { key: 2 };
|
|
11701
11824
|
var FluxTable_default = /* @__PURE__ */ defineComponent({
|
|
11702
11825
|
__name: "FluxTable",
|
|
@@ -11736,8 +11859,8 @@ var FluxTable_default = /* @__PURE__ */ defineComponent({
|
|
|
11736
11859
|
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(Table_module_default).table) }, [
|
|
11737
11860
|
createElementVNode("table", { class: normalizeClass(unref(Table_module_default).tableBase) }, [
|
|
11738
11861
|
renderSlot(_ctx.$slots, "colgroups"),
|
|
11739
|
-
slots.header ? (openBlock(), createElementBlock("thead", _hoisted_1$
|
|
11740
|
-
slots.default ? (openBlock(), createElementBlock("tbody", _hoisted_2$
|
|
11862
|
+
slots.header ? (openBlock(), createElementBlock("thead", _hoisted_1$28, [renderSlot(_ctx.$slots, "header")])) : createCommentVNode("", true),
|
|
11863
|
+
slots.default ? (openBlock(), createElementBlock("tbody", _hoisted_2$14, [renderSlot(_ctx.$slots, "default"), __props.fillColumns ? (openBlock(), createBlock(FluxTableRow_default, {
|
|
11741
11864
|
key: 0,
|
|
11742
11865
|
class: normalizeClass(unref(Table_module_default).tableFill)
|
|
11743
11866
|
}, {
|
|
@@ -11908,8 +12031,8 @@ var FluxDataTable_default = /* @__PURE__ */ defineComponent({
|
|
|
11908
12031
|
};
|
|
11909
12032
|
}
|
|
11910
12033
|
});
|
|
11911
|
-
var _hoisted_1$
|
|
11912
|
-
var _hoisted_2$
|
|
12034
|
+
var _hoisted_1$27 = ["id"];
|
|
12035
|
+
var _hoisted_2$13 = ["aria-labelledby"];
|
|
11913
12036
|
var _hoisted_3$4 = ["onClick", "onMouseover"];
|
|
11914
12037
|
var FluxDatePicker_default = /* @__PURE__ */ defineComponent({
|
|
11915
12038
|
__name: "FluxDatePicker",
|
|
@@ -12060,7 +12183,7 @@ var FluxDatePicker_default = /* @__PURE__ */ defineComponent({
|
|
|
12060
12183
|
class: normalizeClass(unref(DatePicker_module_default).datePickerHeaderViewButton),
|
|
12061
12184
|
type: "button",
|
|
12062
12185
|
onClick: _cache[1] || (_cache[1] = ($event) => setView("year"))
|
|
12063
|
-
}, toDisplayString(unref(viewYear)), 3)], 10, _hoisted_1$
|
|
12186
|
+
}, toDisplayString(unref(viewYear)), 3)], 10, _hoisted_1$27),
|
|
12064
12187
|
createVNode(unref(FluxFadeTransition_default), null, {
|
|
12065
12188
|
default: withCtx(() => [viewMode.value === "date" ? (openBlock(), createBlock(FluxSecondaryButton_default, {
|
|
12066
12189
|
key: 0,
|
|
@@ -12100,7 +12223,7 @@ var FluxDatePicker_default = /* @__PURE__ */ defineComponent({
|
|
|
12100
12223
|
}, toDisplayString(date.toLocaleString({ day: "numeric" })), 43, _hoisted_3$4);
|
|
12101
12224
|
}), 256))], 2))]),
|
|
12102
12225
|
_: 1
|
|
12103
|
-
}, 8, ["is-back"])], 10, _hoisted_2$
|
|
12226
|
+
}, 8, ["is-back"])], 10, _hoisted_2$13)) : viewMode.value === "month" ? (openBlock(), createElementBlock("div", {
|
|
12104
12227
|
key: "month",
|
|
12105
12228
|
class: normalizeClass(unref(DatePicker_module_default).datePickerMonths)
|
|
12106
12229
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(months), (month) => {
|
|
@@ -12177,12 +12300,12 @@ var FluxDivider_default = /* @__PURE__ */ defineComponent({
|
|
|
12177
12300
|
};
|
|
12178
12301
|
}
|
|
12179
12302
|
});
|
|
12180
|
-
var _hoisted_1$
|
|
12303
|
+
var _hoisted_1$26 = [
|
|
12181
12304
|
"id",
|
|
12182
12305
|
"width",
|
|
12183
12306
|
"height"
|
|
12184
12307
|
];
|
|
12185
|
-
var _hoisted_2$
|
|
12308
|
+
var _hoisted_2$12 = [
|
|
12186
12309
|
"r",
|
|
12187
12310
|
"cx",
|
|
12188
12311
|
"cy"
|
|
@@ -12230,7 +12353,7 @@ var FluxDotPattern_default = /* @__PURE__ */ defineComponent({
|
|
|
12230
12353
|
r: __props.cr,
|
|
12231
12354
|
cx: __props.width / 2 - __props.cx,
|
|
12232
12355
|
cy: __props.height / 2 - __props.cy
|
|
12233
|
-
}, null, 8, _hoisted_2$
|
|
12356
|
+
}, null, 8, _hoisted_2$12)], 8, _hoisted_1$26)]), createElementVNode("rect", {
|
|
12234
12357
|
width: "100%",
|
|
12235
12358
|
height: "100%",
|
|
12236
12359
|
"stroke-width": "0",
|
|
@@ -12251,8 +12374,8 @@ var DropZone_module_default = {
|
|
|
12251
12374
|
dropZoneBorderAnimation: `drop-zone-border-animation`,
|
|
12252
12375
|
dropZoneLoader: `drop-zone-loader`
|
|
12253
12376
|
};
|
|
12254
|
-
var _hoisted_1$
|
|
12255
|
-
var _hoisted_2$
|
|
12377
|
+
var _hoisted_1$25 = ["aria-disabled"];
|
|
12378
|
+
var _hoisted_2$11 = ["pathLength"];
|
|
12256
12379
|
var FluxDropZone_default = /* @__PURE__ */ defineComponent({
|
|
12257
12380
|
__name: "FluxDropZone",
|
|
12258
12381
|
props: {
|
|
@@ -12353,7 +12476,7 @@ var FluxDropZone_default = /* @__PURE__ */ defineComponent({
|
|
|
12353
12476
|
"stroke-linecap": "round",
|
|
12354
12477
|
"stroke-linejoin": "round",
|
|
12355
12478
|
pathLength: pathLength.value
|
|
12356
|
-
}, null, 8, _hoisted_2$
|
|
12479
|
+
}, null, 8, _hoisted_2$11)], 2)),
|
|
12357
12480
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({
|
|
12358
12481
|
isDragging: isDragging.value,
|
|
12359
12482
|
isDraggingOver: isDraggingOver.value,
|
|
@@ -12380,7 +12503,7 @@ var FluxDropZone_default = /* @__PURE__ */ defineComponent({
|
|
|
12380
12503
|
isDraggingOver: isDraggingOver.value,
|
|
12381
12504
|
showPicker
|
|
12382
12505
|
})))
|
|
12383
|
-
], 10, _hoisted_1$
|
|
12506
|
+
], 10, _hoisted_1$25);
|
|
12384
12507
|
};
|
|
12385
12508
|
}
|
|
12386
12509
|
});
|
|
@@ -12406,12 +12529,12 @@ var Expandable_module_default = {
|
|
|
12406
12529
|
basePane: `base-pane`,
|
|
12407
12530
|
expandableGroup: `expandable-group`
|
|
12408
12531
|
};
|
|
12409
|
-
var _hoisted_1$
|
|
12532
|
+
var _hoisted_1$24 = [
|
|
12410
12533
|
"id",
|
|
12411
12534
|
"aria-controls",
|
|
12412
12535
|
"aria-expanded"
|
|
12413
12536
|
];
|
|
12414
|
-
var _hoisted_2$
|
|
12537
|
+
var _hoisted_2$10 = ["id", "aria-labelledby"];
|
|
12415
12538
|
var FluxExpandable_default = /* @__PURE__ */ defineComponent({
|
|
12416
12539
|
__name: "FluxExpandable",
|
|
12417
12540
|
props: {
|
|
@@ -12499,9 +12622,9 @@ var FluxExpandable_default = /* @__PURE__ */ defineComponent({
|
|
|
12499
12622
|
})), () => [createElementVNode("div", { class: normalizeClass(unref(Expandable_module_default).expandableContent) }, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({
|
|
12500
12623
|
label: __props.label,
|
|
12501
12624
|
close
|
|
12502
|
-
})))], 2)])], 10, _hoisted_2$
|
|
12625
|
+
})))], 2)])], 10, _hoisted_2$10)) : createCommentVNode("", true)]),
|
|
12503
12626
|
_: 3
|
|
12504
|
-
})], 10, _hoisted_1$
|
|
12627
|
+
})], 10, _hoisted_1$24);
|
|
12505
12628
|
};
|
|
12506
12629
|
}
|
|
12507
12630
|
});
|
|
@@ -12882,7 +13005,10 @@ var FluxOverflowBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12882
13005
|
key: 0,
|
|
12883
13006
|
ref: "overflow",
|
|
12884
13007
|
class: normalizeClass(unref(OverflowBar_module_default).overflowBarOverflow)
|
|
12885
|
-
}, [renderSlot(_ctx.$slots, "overflow", normalizeProps(guardReactiveProps({
|
|
13008
|
+
}, [renderSlot(_ctx.$slots, "overflow", normalizeProps(guardReactiveProps({
|
|
13009
|
+
hasOverflow: hiddenItems.value.length > 0,
|
|
13010
|
+
items: hiddenItems.value
|
|
13011
|
+
})))], 2)) : createCommentVNode("", true)], 6), createElementVNode("div", {
|
|
12886
13012
|
ref: "measurer",
|
|
12887
13013
|
class: normalizeClass(unref(OverflowBar_module_default).overflowBarMeasurer)
|
|
12888
13014
|
}, [renderSlot(_ctx.$slots, "default")], 2)], 64);
|
|
@@ -12918,7 +13044,8 @@ var FluxFilterBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12918
13044
|
onReset: reset
|
|
12919
13045
|
}, {
|
|
12920
13046
|
filters: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
12921
|
-
default: withCtx(({ buttons, filters, menuItems }) => [createElementVNode("div", { class: normalizeClass(unref(Filter_module_default).filterBar) }, [
|
|
13047
|
+
default: withCtx(({ buttons, filters, menuItems }) => [createElementVNode("div", { class: normalizeClass(unref(Filter_module_default).filterBar) }, [__props.isSearchable ? (openBlock(), createBlock(FluxFormInput_default, {
|
|
13048
|
+
key: 0,
|
|
12922
13049
|
modelValue: modelSearch.value,
|
|
12923
13050
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelSearch.value = $event),
|
|
12924
13051
|
class: normalizeClass(unref(Filter_module_default).filterBarSearch),
|
|
@@ -12929,7 +13056,7 @@ var FluxFilterBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12929
13056
|
"modelValue",
|
|
12930
13057
|
"class",
|
|
12931
13058
|
"placeholder"
|
|
12932
|
-
]), createVNode(FluxOverflowBar_default, { alignment: "end" }, {
|
|
13059
|
+
])) : createCommentVNode("", true), createVNode(FluxOverflowBar_default, { alignment: "end" }, {
|
|
12933
13060
|
overflow: withCtx(() => [isFiltered.value ? (openBlock(), createBlock(FluxSeparator_default, {
|
|
12934
13061
|
key: 0,
|
|
12935
13062
|
direction: "vertical",
|
|
@@ -13505,7 +13632,7 @@ var FocalPoint_module_default = {
|
|
|
13505
13632
|
focalPointPreview: `focal-point-preview`,
|
|
13506
13633
|
focalPointPreviewImage: `focal-point-preview-image`
|
|
13507
13634
|
};
|
|
13508
|
-
var _hoisted_1$
|
|
13635
|
+
var _hoisted_1$23 = ["src"];
|
|
13509
13636
|
var FluxFocalPointEditor_default = /* @__PURE__ */ defineComponent({
|
|
13510
13637
|
__name: "FluxFocalPointEditor",
|
|
13511
13638
|
props: /* @__PURE__ */ mergeModels({ src: {} }, {
|
|
@@ -13572,7 +13699,7 @@ var FluxFocalPointEditor_default = /* @__PURE__ */ defineComponent({
|
|
|
13572
13699
|
src: __props.src,
|
|
13573
13700
|
alt: "",
|
|
13574
13701
|
onLoad: onImageLoaded
|
|
13575
|
-
}, null, 42, _hoisted_1$
|
|
13702
|
+
}, null, 42, _hoisted_1$23), createElementVNode("div", {
|
|
13576
13703
|
class: normalizeClass(unref(FocalPoint_module_default).focalPointEditorArea),
|
|
13577
13704
|
style: normalizeStyle({
|
|
13578
13705
|
top: `${focalPointY.value}%`,
|
|
@@ -13599,7 +13726,7 @@ var FluxFocalPointEditor_default = /* @__PURE__ */ defineComponent({
|
|
|
13599
13726
|
};
|
|
13600
13727
|
}
|
|
13601
13728
|
});
|
|
13602
|
-
var _hoisted_1$
|
|
13729
|
+
var _hoisted_1$22 = ["src", "alt"];
|
|
13603
13730
|
var FluxFocalPointImage_default = /* @__PURE__ */ defineComponent({
|
|
13604
13731
|
__name: "FluxFocalPointImage",
|
|
13605
13732
|
props: {
|
|
@@ -13616,11 +13743,11 @@ var FluxFocalPointImage_default = /* @__PURE__ */ defineComponent({
|
|
|
13616
13743
|
style: normalizeStyle({ objectPosition: `${x.value}% ${y.value}%` }),
|
|
13617
13744
|
src: __props.src,
|
|
13618
13745
|
alt: __props.alt
|
|
13619
|
-
}, null, 14, _hoisted_1$
|
|
13746
|
+
}, null, 14, _hoisted_1$22);
|
|
13620
13747
|
};
|
|
13621
13748
|
}
|
|
13622
13749
|
});
|
|
13623
|
-
var _hoisted_1$
|
|
13750
|
+
var _hoisted_1$21 = ["aria-disabled"];
|
|
13624
13751
|
var FluxForm_default = /* @__PURE__ */ defineComponent({
|
|
13625
13752
|
__name: "FluxForm",
|
|
13626
13753
|
props: { disabled: {
|
|
@@ -13641,7 +13768,7 @@ var FluxForm_default = /* @__PURE__ */ defineComponent({
|
|
|
13641
13768
|
}, [createVNode(FluxDisabled_default, { disabled: __props.disabled }, {
|
|
13642
13769
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
13643
13770
|
_: 3
|
|
13644
|
-
}, 8, ["disabled"])], 42, _hoisted_1$
|
|
13771
|
+
}, 8, ["disabled"])], 42, _hoisted_1$21);
|
|
13645
13772
|
};
|
|
13646
13773
|
}
|
|
13647
13774
|
});
|
|
@@ -13931,7 +14058,7 @@ var FluxFormGrid_default = /* @__PURE__ */ defineComponent({
|
|
|
13931
14058
|
};
|
|
13932
14059
|
}
|
|
13933
14060
|
});
|
|
13934
|
-
var _hoisted_1$
|
|
14061
|
+
var _hoisted_1$20 = { key: 1 };
|
|
13935
14062
|
var FluxFormInputAddition_default = /* @__PURE__ */ defineComponent({
|
|
13936
14063
|
__name: "FluxFormInputAddition",
|
|
13937
14064
|
props: {
|
|
@@ -13946,18 +14073,18 @@ var FluxFormInputAddition_default = /* @__PURE__ */ defineComponent({
|
|
|
13946
14073
|
name: __props.icon,
|
|
13947
14074
|
size: 18
|
|
13948
14075
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
13949
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
14076
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_1$20, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
13950
14077
|
renderSlot(_ctx.$slots, "default")
|
|
13951
14078
|
], 2);
|
|
13952
14079
|
};
|
|
13953
14080
|
}
|
|
13954
14081
|
});
|
|
13955
|
-
var _hoisted_1$
|
|
14082
|
+
var _hoisted_1$19 = [
|
|
13956
14083
|
"id",
|
|
13957
14084
|
"autofocus",
|
|
13958
14085
|
"aria-disabled"
|
|
13959
14086
|
];
|
|
13960
|
-
var _hoisted_2$
|
|
14087
|
+
var _hoisted_2$9 = [
|
|
13961
14088
|
"autocomplete",
|
|
13962
14089
|
"autofocus",
|
|
13963
14090
|
"disabled",
|
|
@@ -14057,8 +14184,8 @@ var FluxFormPinInput_default = /* @__PURE__ */ defineComponent({
|
|
|
14057
14184
|
onInput,
|
|
14058
14185
|
onKeydown: onKeyDown,
|
|
14059
14186
|
onPaste
|
|
14060
|
-
}, null, 42, _hoisted_2$
|
|
14061
|
-
}), 128))], 14, _hoisted_1$
|
|
14187
|
+
}, null, 42, _hoisted_2$9);
|
|
14188
|
+
}), 128))], 14, _hoisted_1$19);
|
|
14062
14189
|
};
|
|
14063
14190
|
}
|
|
14064
14191
|
});
|
|
@@ -14312,7 +14439,7 @@ var FluxFormSelectAsync_default = /* @__PURE__ */ defineComponent({
|
|
|
14312
14439
|
};
|
|
14313
14440
|
}
|
|
14314
14441
|
});
|
|
14315
|
-
var _hoisted_1$
|
|
14442
|
+
var _hoisted_1$18 = [
|
|
14316
14443
|
"id",
|
|
14317
14444
|
"autocomplete",
|
|
14318
14445
|
"autofocus",
|
|
@@ -14359,7 +14486,7 @@ var FluxFormTextArea_default = /* @__PURE__ */ defineComponent({
|
|
|
14359
14486
|
"aria-disabled": unref(disabled) ? true : void 0,
|
|
14360
14487
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur")),
|
|
14361
14488
|
onFocus: _cache[2] || (_cache[2] = ($event) => emit("focus"))
|
|
14362
|
-
}, null, 46, _hoisted_1$
|
|
14489
|
+
}, null, 46, _hoisted_1$18)), [[vModelText, modelValue.value]]);
|
|
14363
14490
|
};
|
|
14364
14491
|
}
|
|
14365
14492
|
});
|
|
@@ -15045,6 +15172,294 @@ var FluxFormTimeZonePicker_default = /* @__PURE__ */ defineComponent({
|
|
|
15045
15172
|
};
|
|
15046
15173
|
}
|
|
15047
15174
|
});
|
|
15175
|
+
var TreeViewSelect_module_default = {
|
|
15176
|
+
treeViewSelectValue: `tree-view-select-value`,
|
|
15177
|
+
treeViewSelectList: `tree-view-select-list`,
|
|
15178
|
+
treeViewSelectEmpty: `tree-view-select-empty`,
|
|
15179
|
+
treeNode: `tree-node`,
|
|
15180
|
+
isSelectable: `is-selectable`,
|
|
15181
|
+
isExpandable: `is-expandable`,
|
|
15182
|
+
isSelected: `is-selected`,
|
|
15183
|
+
isHighlighted: `is-highlighted`,
|
|
15184
|
+
treeNodeCheck: `tree-node-check`,
|
|
15185
|
+
treeNodeLineArea: `tree-node-line-area`,
|
|
15186
|
+
treeIndent: `tree-indent`,
|
|
15187
|
+
hasLine: `has-line`,
|
|
15188
|
+
treeConnector: `tree-connector`,
|
|
15189
|
+
isLast: `is-last`,
|
|
15190
|
+
treeNodeExpand: `tree-node-expand`,
|
|
15191
|
+
treeNodeColorDot: `tree-node-color-dot`,
|
|
15192
|
+
treeNodeIcon: `tree-node-icon`,
|
|
15193
|
+
treeNodeLabel: `tree-node-label`
|
|
15194
|
+
};
|
|
15195
|
+
var _hoisted_1$17 = [
|
|
15196
|
+
"role",
|
|
15197
|
+
"tabindex",
|
|
15198
|
+
"aria-selected",
|
|
15199
|
+
"onClick",
|
|
15200
|
+
"onKeydown"
|
|
15201
|
+
];
|
|
15202
|
+
var _hoisted_2$8 = ["onClick"];
|
|
15203
|
+
var FluxFormTreeViewSelect_default = /* @__PURE__ */ defineComponent({
|
|
15204
|
+
inheritAttrs: false,
|
|
15205
|
+
__name: "FluxFormTreeViewSelect",
|
|
15206
|
+
props: /* @__PURE__ */ mergeModels({
|
|
15207
|
+
disabled: { type: Boolean },
|
|
15208
|
+
isMultiple: { type: Boolean },
|
|
15209
|
+
isSearchable: { type: Boolean },
|
|
15210
|
+
levelColors: {},
|
|
15211
|
+
options: {},
|
|
15212
|
+
placeholder: {}
|
|
15213
|
+
}, {
|
|
15214
|
+
"modelValue": { required: true },
|
|
15215
|
+
"modelModifiers": {}
|
|
15216
|
+
}),
|
|
15217
|
+
emits: ["update:modelValue"],
|
|
15218
|
+
setup(__props, { attrs: $attrs }) {
|
|
15219
|
+
const modelValue = useModel(__props, "modelValue");
|
|
15220
|
+
const disabled = useDisabled_default(toRef(() => __props.disabled));
|
|
15221
|
+
const { id } = useFormFieldInjection_default();
|
|
15222
|
+
const translate = useTranslate_default();
|
|
15223
|
+
const anchorRef = useTemplateRef("anchor");
|
|
15224
|
+
const anchorPopupRef = useTemplateRef("anchorPopup");
|
|
15225
|
+
const nodeElementRefs = useTemplateRef("nodeElements");
|
|
15226
|
+
const searchInputRef = useTemplateRef("searchInput");
|
|
15227
|
+
const expandedIds = ref(/* @__PURE__ */ new Set());
|
|
15228
|
+
const isPopupOpen = ref(false);
|
|
15229
|
+
const searchQuery = ref("");
|
|
15230
|
+
const focusElement = computed(() => T(searchInputRef) ?? T(anchorRef));
|
|
15231
|
+
const selectedIds = computed(() => {
|
|
15232
|
+
const value = unref(modelValue);
|
|
15233
|
+
if (Array.isArray(value)) return new Set(value);
|
|
15234
|
+
return new Set(value !== void 0 ? [value] : []);
|
|
15235
|
+
});
|
|
15236
|
+
const selectedOptions = computed(() => {
|
|
15237
|
+
const ids = unref(selectedIds);
|
|
15238
|
+
if (ids.size === 0) return [];
|
|
15239
|
+
return flattenAll(__props.options).filter((node) => ids.has(node.id));
|
|
15240
|
+
});
|
|
15241
|
+
const visibleNodes = computed(() => {
|
|
15242
|
+
const query = unref(searchQuery).toLowerCase().trim();
|
|
15243
|
+
if (query) return flattenAll(__props.options).filter((node) => node.label.toLowerCase().includes(query)).map((node) => ({
|
|
15244
|
+
...node,
|
|
15245
|
+
depth: 0,
|
|
15246
|
+
isLast: false,
|
|
15247
|
+
lineGuides: []
|
|
15248
|
+
}));
|
|
15249
|
+
return flattenVisible(__props.options, 0, unref(expandedIds));
|
|
15250
|
+
});
|
|
15251
|
+
const { highlightedIndex, toggleExpand, onExpandClick, onKeyNavigate } = useTreeView({
|
|
15252
|
+
expandedIds,
|
|
15253
|
+
nodeElementRefs,
|
|
15254
|
+
visibleNodes
|
|
15255
|
+
});
|
|
15256
|
+
K$1([anchorRef, anchorPopupRef], isPopupOpen, () => isPopupOpen.value = false);
|
|
15257
|
+
K$1(anchorRef, isPopupOpen, () => unref(focusElement)?.focus());
|
|
15258
|
+
function toggle() {
|
|
15259
|
+
if (unref(disabled)) return;
|
|
15260
|
+
isPopupOpen.value = !unref(isPopupOpen);
|
|
15261
|
+
}
|
|
15262
|
+
function select(nodeId) {
|
|
15263
|
+
if (unref(__props.isMultiple)) {
|
|
15264
|
+
const current = [...unref(selectedIds)];
|
|
15265
|
+
if (current.includes(nodeId)) modelValue.value = current.filter((v) => v !== nodeId);
|
|
15266
|
+
else modelValue.value = [...current, nodeId];
|
|
15267
|
+
} else {
|
|
15268
|
+
modelValue.value = nodeId;
|
|
15269
|
+
isPopupOpen.value = false;
|
|
15270
|
+
}
|
|
15271
|
+
}
|
|
15272
|
+
function deselect(nodeId) {
|
|
15273
|
+
const current = unref(modelValue);
|
|
15274
|
+
if (Array.isArray(current)) modelValue.value = current.filter((v) => v !== nodeId);
|
|
15275
|
+
nextTick(() => T(anchorRef)?.focus());
|
|
15276
|
+
}
|
|
15277
|
+
function onNodeClick(node) {
|
|
15278
|
+
if (node.selectable !== false) {
|
|
15279
|
+
select(node.id);
|
|
15280
|
+
if (node.children?.length && !unref(expandedIds).has(node.id)) toggleExpand(node.id);
|
|
15281
|
+
} else if (node.children?.length) toggleExpand(node.id);
|
|
15282
|
+
}
|
|
15283
|
+
function onKeyDown(evt) {
|
|
15284
|
+
if (!unref(isPopupOpen)) {
|
|
15285
|
+
if (evt.key === "Enter" || evt.key === " ") {
|
|
15286
|
+
evt.preventDefault();
|
|
15287
|
+
isPopupOpen.value = true;
|
|
15288
|
+
}
|
|
15289
|
+
return;
|
|
15290
|
+
}
|
|
15291
|
+
switch (evt.key) {
|
|
15292
|
+
case "Backspace":
|
|
15293
|
+
if (!unref(__props.isMultiple)) return;
|
|
15294
|
+
if (unref(searchQuery).length > 0 || unref(selectedIds).size === 0) return;
|
|
15295
|
+
const selectedList = [...unref(selectedIds)];
|
|
15296
|
+
deselect(selectedList[selectedList.length - 1]);
|
|
15297
|
+
return;
|
|
15298
|
+
case "Escape":
|
|
15299
|
+
isPopupOpen.value = false;
|
|
15300
|
+
nextTick(() => T(anchorRef)?.focus());
|
|
15301
|
+
return;
|
|
15302
|
+
case "Tab":
|
|
15303
|
+
isPopupOpen.value = false;
|
|
15304
|
+
return;
|
|
15305
|
+
}
|
|
15306
|
+
if (__props.isSearchable && evt.key.length === 1 && evt.key !== "Enter" && evt.key !== " ") return;
|
|
15307
|
+
onKeyNavigate(evt, onNodeClick);
|
|
15308
|
+
}
|
|
15309
|
+
watch(isPopupOpen, (isOpen) => {
|
|
15310
|
+
if (!isOpen) {
|
|
15311
|
+
searchQuery.value = "";
|
|
15312
|
+
highlightedIndex.value = -1;
|
|
15313
|
+
return;
|
|
15314
|
+
}
|
|
15315
|
+
autoExpandSelected();
|
|
15316
|
+
nextTick(() => {
|
|
15317
|
+
const ids = unref(selectedIds);
|
|
15318
|
+
if (ids.size > 0) {
|
|
15319
|
+
const firstSelectedIndex = unref(visibleNodes).findIndex((n) => ids.has(n.id));
|
|
15320
|
+
if (firstSelectedIndex >= 0) highlightedIndex.value = firstSelectedIndex;
|
|
15321
|
+
}
|
|
15322
|
+
unref(focusElement)?.focus();
|
|
15323
|
+
});
|
|
15324
|
+
});
|
|
15325
|
+
watch(searchQuery, () => {
|
|
15326
|
+
highlightedIndex.value = -1;
|
|
15327
|
+
});
|
|
15328
|
+
function autoExpandSelected() {
|
|
15329
|
+
const ids = unref(selectedIds);
|
|
15330
|
+
if (ids.size === 0) return;
|
|
15331
|
+
const expanded = new Set(unref(expandedIds));
|
|
15332
|
+
function expandAncestors(nodes, targetId) {
|
|
15333
|
+
for (const node of nodes) {
|
|
15334
|
+
if (node.id === targetId) return true;
|
|
15335
|
+
if (node.children && expandAncestors(node.children, targetId)) {
|
|
15336
|
+
expanded.add(node.id);
|
|
15337
|
+
return true;
|
|
15338
|
+
}
|
|
15339
|
+
}
|
|
15340
|
+
return false;
|
|
15341
|
+
}
|
|
15342
|
+
for (const selectedId of ids) expandAncestors(__props.options, selectedId);
|
|
15343
|
+
expandedIds.value = expanded;
|
|
15344
|
+
}
|
|
15345
|
+
return (_ctx, _cache) => {
|
|
15346
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(Anchor_default, mergeProps({ ref: "anchor" }, $attrs, {
|
|
15347
|
+
class: unref(clsx)(unref(Form_module_default).formSelect, unref(disabled) && unref(Form_module_default).isDisabled, isPopupOpen.value && unref(Form_module_default).isFocused),
|
|
15348
|
+
id: unref(id),
|
|
15349
|
+
"aria-disabled": unref(disabled) ? true : void 0,
|
|
15350
|
+
tabindex: "0",
|
|
15351
|
+
"tag-name": "div",
|
|
15352
|
+
onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
|
|
15353
|
+
onKeydown: onKeyDown
|
|
15354
|
+
}), {
|
|
15355
|
+
default: withCtx(() => [__props.isMultiple && selectedOptions.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(selectedOptions.value, (option) => {
|
|
15356
|
+
return openBlock(), createBlock(FluxTag_default, {
|
|
15357
|
+
key: option.id,
|
|
15358
|
+
label: option.label,
|
|
15359
|
+
"is-deletable": "",
|
|
15360
|
+
onDelete: ($event) => deselect(option.id)
|
|
15361
|
+
}, null, 8, ["label", "onDelete"]);
|
|
15362
|
+
}), 128)) : !__props.isMultiple && selectedOptions.value[0] ? (openBlock(), createElementBlock("span", {
|
|
15363
|
+
key: 1,
|
|
15364
|
+
class: normalizeClass(unref(TreeViewSelect_module_default).treeViewSelectValue)
|
|
15365
|
+
}, toDisplayString(selectedOptions.value[0].label), 3)) : __props.placeholder ? (openBlock(), createElementBlock("span", {
|
|
15366
|
+
key: 2,
|
|
15367
|
+
class: normalizeClass(unref(Form_module_default).formSelectPlaceholder)
|
|
15368
|
+
}, toDisplayString(__props.placeholder), 3)) : createCommentVNode("", true), createVNode(FluxIcon_default, {
|
|
15369
|
+
class: normalizeClass(unref(Form_module_default).formSelectIcon),
|
|
15370
|
+
name: "angle-down"
|
|
15371
|
+
}, null, 8, ["class"])]),
|
|
15372
|
+
_: 1
|
|
15373
|
+
}, 16, [
|
|
15374
|
+
"class",
|
|
15375
|
+
"id",
|
|
15376
|
+
"aria-disabled"
|
|
15377
|
+
]), (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(unref(FluxFadeTransition_default), null, {
|
|
15378
|
+
default: withCtx(() => [isPopupOpen.value && !unref(disabled) ? (openBlock(), createBlock(AnchorPopup_default, {
|
|
15379
|
+
key: 0,
|
|
15380
|
+
ref: "anchorPopup",
|
|
15381
|
+
class: normalizeClass(unref(Form_module_default).formSelectPopup),
|
|
15382
|
+
anchor: anchorRef.value,
|
|
15383
|
+
direction: "vertical",
|
|
15384
|
+
"use-anchor-width": ""
|
|
15385
|
+
}, {
|
|
15386
|
+
default: withCtx(() => [__props.isSearchable ? (openBlock(), createBlock(FluxFormInput_default, {
|
|
15387
|
+
key: 0,
|
|
15388
|
+
modelValue: searchQuery.value,
|
|
15389
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchQuery.value = $event),
|
|
15390
|
+
ref: "searchInput",
|
|
15391
|
+
"auto-complete": "off",
|
|
15392
|
+
class: normalizeClass(unref(Form_module_default).formSelectInput),
|
|
15393
|
+
type: "search",
|
|
15394
|
+
"icon-trailing": "magnifying-glass",
|
|
15395
|
+
placeholder: unref(translate)("flux.search"),
|
|
15396
|
+
onKeydown: onKeyDown
|
|
15397
|
+
}, null, 8, [
|
|
15398
|
+
"modelValue",
|
|
15399
|
+
"class",
|
|
15400
|
+
"placeholder"
|
|
15401
|
+
])) : createCommentVNode("", true), createElementVNode("div", { class: normalizeClass(unref(TreeViewSelect_module_default).treeViewSelectList) }, [visibleNodes.value.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
15402
|
+
key: 0,
|
|
15403
|
+
class: normalizeClass(unref(TreeViewSelect_module_default).treeViewSelectEmpty)
|
|
15404
|
+
}, toDisplayString(unref(translate)("flux.noItems")), 3)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(visibleNodes.value, (node, nodeIndex) => {
|
|
15405
|
+
return openBlock(), createElementBlock("div", {
|
|
15406
|
+
ref_for: true,
|
|
15407
|
+
ref: "nodeElements",
|
|
15408
|
+
key: node.id,
|
|
15409
|
+
class: normalizeClass(unref(clsx)(unref(TreeViewSelect_module_default).treeNode, node.selectable !== false && unref(TreeViewSelect_module_default).isSelectable, node.selectable === false && !!node.children?.length && unref(TreeViewSelect_module_default).isExpandable, selectedIds.value.has(node.id) && unref(TreeViewSelect_module_default).isSelected, nodeIndex === unref(highlightedIndex) && unref(TreeViewSelect_module_default).isHighlighted)),
|
|
15410
|
+
role: node.selectable !== false ? "option" : void 0,
|
|
15411
|
+
tabindex: node.selectable !== false ? 0 : void 0,
|
|
15412
|
+
"aria-selected": node.selectable !== false ? selectedIds.value.has(node.id) : void 0,
|
|
15413
|
+
onClick: ($event) => onNodeClick(node),
|
|
15414
|
+
onKeydown: [withKeys(withModifiers(($event) => onNodeClick(node), ["prevent"]), ["enter"]), withKeys(withModifiers(($event) => onNodeClick(node), ["prevent"]), ["space"])]
|
|
15415
|
+
}, [
|
|
15416
|
+
createElementVNode("div", { class: normalizeClass(unref(TreeViewSelect_module_default).treeNodeLineArea) }, [
|
|
15417
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(node.lineGuides, (showLine, guideIndex) => {
|
|
15418
|
+
return openBlock(), createElementBlock("span", {
|
|
15419
|
+
key: `g-${guideIndex}`,
|
|
15420
|
+
class: normalizeClass([unref(TreeViewSelect_module_default).treeIndent, showLine && unref(TreeViewSelect_module_default).hasLine])
|
|
15421
|
+
}, null, 2);
|
|
15422
|
+
}), 128)),
|
|
15423
|
+
node.depth > 0 ? (openBlock(), createElementBlock("span", {
|
|
15424
|
+
key: 0,
|
|
15425
|
+
class: normalizeClass([unref(TreeViewSelect_module_default).treeConnector, node.isLast && unref(TreeViewSelect_module_default).isLast])
|
|
15426
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
15427
|
+
createElementVNode("span", {
|
|
15428
|
+
class: normalizeClass(unref(TreeViewSelect_module_default).treeNodeExpand),
|
|
15429
|
+
onClick: ($event) => unref(onExpandClick)(node, $event)
|
|
15430
|
+
}, [node.children?.length ? (openBlock(), createBlock(FluxIcon_default, {
|
|
15431
|
+
key: 0,
|
|
15432
|
+
name: expandedIds.value.has(node.id) ? "angle-down" : "angle-right",
|
|
15433
|
+
size: 12
|
|
15434
|
+
}, null, 8, ["name"])) : createCommentVNode("", true)], 10, _hoisted_2$8)
|
|
15435
|
+
], 2),
|
|
15436
|
+
unref(getLevelColor)(node.depth, __props.levelColors) ? (openBlock(), createElementBlock("span", {
|
|
15437
|
+
key: 0,
|
|
15438
|
+
class: normalizeClass(unref(TreeViewSelect_module_default).treeNodeColorDot),
|
|
15439
|
+
style: normalizeStyle({ background: unref(getLevelColor)(node.depth, __props.levelColors) })
|
|
15440
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
15441
|
+
node.icon ? (openBlock(), createBlock(FluxIcon_default, {
|
|
15442
|
+
key: 1,
|
|
15443
|
+
class: normalizeClass(unref(TreeViewSelect_module_default).treeNodeIcon),
|
|
15444
|
+
name: node.icon,
|
|
15445
|
+
size: 16
|
|
15446
|
+
}, null, 8, ["class", "name"])) : createCommentVNode("", true),
|
|
15447
|
+
createElementVNode("span", { class: normalizeClass(unref(TreeViewSelect_module_default).treeNodeLabel) }, toDisplayString(node.label), 3),
|
|
15448
|
+
selectedIds.value.has(node.id) ? (openBlock(), createBlock(FluxIcon_default, {
|
|
15449
|
+
key: 2,
|
|
15450
|
+
class: normalizeClass(unref(TreeViewSelect_module_default).treeNodeCheck),
|
|
15451
|
+
name: "check",
|
|
15452
|
+
size: 14
|
|
15453
|
+
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
15454
|
+
], 42, _hoisted_1$17);
|
|
15455
|
+
}), 128))], 2)]),
|
|
15456
|
+
_: 1
|
|
15457
|
+
}, 8, ["class", "anchor"])) : createCommentVNode("", true)]),
|
|
15458
|
+
_: 1
|
|
15459
|
+
})]))], 64);
|
|
15460
|
+
};
|
|
15461
|
+
}
|
|
15462
|
+
});
|
|
15048
15463
|
var Remove_module_default = {
|
|
15049
15464
|
remove: `remove`,
|
|
15050
15465
|
isHidden: `is-hidden`
|
|
@@ -15134,7 +15549,7 @@ var FluxGalleryItem_default = /* @__PURE__ */ defineComponent({
|
|
|
15134
15549
|
};
|
|
15135
15550
|
}
|
|
15136
15551
|
});
|
|
15137
|
-
var _hoisted_1$
|
|
15552
|
+
var _hoisted_1$16 = ["onClick"];
|
|
15138
15553
|
var FluxGallery_default = /* @__PURE__ */ defineComponent({
|
|
15139
15554
|
__name: "FluxGallery",
|
|
15140
15555
|
props: {
|
|
@@ -15210,7 +15625,7 @@ var FluxGallery_default = /* @__PURE__ */ defineComponent({
|
|
|
15210
15625
|
class: normalizeClass(unref(Gallery_module_default).galleryAdd),
|
|
15211
15626
|
type: "button",
|
|
15212
15627
|
onClick: ($event) => showPicker()
|
|
15213
|
-
}, [createVNode(FluxIcon_default, { name: "plus" })], 10, _hoisted_1$
|
|
15628
|
+
}, [createVNode(FluxIcon_default, { name: "plus" })], 10, _hoisted_1$16)) : createCommentVNode("", true)
|
|
15214
15629
|
]),
|
|
15215
15630
|
_: 2
|
|
15216
15631
|
}, 1032, ["class", "move-class"])]),
|
|
@@ -15271,12 +15686,12 @@ var FluxGridColumn_default = /* @__PURE__ */ defineComponent({
|
|
|
15271
15686
|
};
|
|
15272
15687
|
}
|
|
15273
15688
|
});
|
|
15274
|
-
var _hoisted_1$
|
|
15689
|
+
var _hoisted_1$15 = [
|
|
15275
15690
|
"id",
|
|
15276
15691
|
"width",
|
|
15277
15692
|
"height"
|
|
15278
15693
|
];
|
|
15279
|
-
var _hoisted_2$
|
|
15694
|
+
var _hoisted_2$7 = ["d", "stroke-dasharray"];
|
|
15280
15695
|
var _hoisted_3$2 = ["fill"];
|
|
15281
15696
|
var _hoisted_4 = {
|
|
15282
15697
|
key: 0,
|
|
@@ -15314,7 +15729,7 @@ var FluxGridPattern_default = /* @__PURE__ */ defineComponent({
|
|
|
15314
15729
|
d: `M.5 ${__props.height}V.5H${__props.width}`,
|
|
15315
15730
|
fill: "none",
|
|
15316
15731
|
"stroke-dasharray": __props.strokeDasharray
|
|
15317
|
-
}, null, 8, _hoisted_2$
|
|
15732
|
+
}, null, 8, _hoisted_2$7)], 8, _hoisted_1$15)]),
|
|
15318
15733
|
createElementVNode("rect", {
|
|
15319
15734
|
width: "100%",
|
|
15320
15735
|
height: "100%",
|
|
@@ -15664,8 +16079,8 @@ var FluxOverlay_default = defineComponent({
|
|
|
15664
16079
|
return createDialogRenderer_default(attrs, props, emit, slots, clsx(props.size === "small" && Overlay_module_default.overlaySmall, props.size === "medium" && Overlay_module_default.overlayMedium, props.size === "large" && Overlay_module_default.overlayLarge), FluxOverlayTransition_default);
|
|
15665
16080
|
}
|
|
15666
16081
|
});
|
|
15667
|
-
var _hoisted_1$
|
|
15668
|
-
var _hoisted_2$
|
|
16082
|
+
var _hoisted_1$14 = { key: 0 };
|
|
16083
|
+
var _hoisted_2$6 = { key: 1 };
|
|
15669
16084
|
var FluxPaneHeader_default = /* @__PURE__ */ defineComponent({
|
|
15670
16085
|
__name: "FluxPaneHeader",
|
|
15671
16086
|
props: {
|
|
@@ -15686,7 +16101,7 @@ var FluxPaneHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
15686
16101
|
__props.title || __props.subTitle ? (openBlock(), createElementBlock("div", {
|
|
15687
16102
|
key: 1,
|
|
15688
16103
|
class: normalizeClass(unref(Pane_module_default).paneHeaderCaption)
|
|
15689
|
-
}, [__props.title ? (openBlock(), createElementBlock("strong", _hoisted_1$
|
|
16104
|
+
}, [__props.title ? (openBlock(), createElementBlock("strong", _hoisted_1$14, toDisplayString(__props.title), 1)) : createCommentVNode("", true), __props.subTitle ? (openBlock(), createElementBlock("span", _hoisted_2$6, toDisplayString(__props.subTitle), 1)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true),
|
|
15690
16105
|
renderSlot(_ctx.$slots, "after")
|
|
15691
16106
|
], 2);
|
|
15692
16107
|
};
|
|
@@ -15923,7 +16338,7 @@ var FluxPaneIllustration_default = /* @__PURE__ */ defineComponent({
|
|
|
15923
16338
|
};
|
|
15924
16339
|
}
|
|
15925
16340
|
});
|
|
15926
|
-
var _hoisted_1$
|
|
16341
|
+
var _hoisted_1$13 = ["src", "alt"];
|
|
15927
16342
|
var FluxPaneMedia_default = /* @__PURE__ */ defineComponent({
|
|
15928
16343
|
__name: "FluxPaneMedia",
|
|
15929
16344
|
props: {
|
|
@@ -15946,7 +16361,7 @@ var FluxPaneMedia_default = /* @__PURE__ */ defineComponent({
|
|
|
15946
16361
|
}),
|
|
15947
16362
|
src: __props.imageUrl,
|
|
15948
16363
|
alt: __props.imageAlt
|
|
15949
|
-
}, null, 14, _hoisted_1$
|
|
16364
|
+
}, null, 14, _hoisted_1$13)) : createCommentVNode("", true)], 2);
|
|
15950
16365
|
};
|
|
15951
16366
|
}
|
|
15952
16367
|
});
|
|
@@ -15987,7 +16402,7 @@ var FluxPercentageBar_default = /* @__PURE__ */ defineComponent({
|
|
|
15987
16402
|
};
|
|
15988
16403
|
}
|
|
15989
16404
|
});
|
|
15990
|
-
var _hoisted_1$
|
|
16405
|
+
var _hoisted_1$12 = { key: 0 };
|
|
15991
16406
|
var FluxPersona_default = /* @__PURE__ */ defineComponent({
|
|
15992
16407
|
__name: "FluxPersona",
|
|
15993
16408
|
props: {
|
|
@@ -16025,12 +16440,12 @@ var FluxPersona_default = /* @__PURE__ */ defineComponent({
|
|
|
16025
16440
|
]), !__props.isCompact ? (openBlock(), createElementBlock("div", {
|
|
16026
16441
|
key: 0,
|
|
16027
16442
|
class: normalizeClass(unref(Avatar_module_default).personaDetails)
|
|
16028
|
-
}, [createElementVNode("strong", null, toDisplayString(__props.name), 1), __props.title ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
16443
|
+
}, [createElementVNode("strong", null, toDisplayString(__props.name), 1), __props.title ? (openBlock(), createElementBlock("span", _hoisted_1$12, toDisplayString(__props.title), 1)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)], 2);
|
|
16029
16444
|
};
|
|
16030
16445
|
}
|
|
16031
16446
|
});
|
|
16032
|
-
var _hoisted_1$
|
|
16033
|
-
var _hoisted_2$
|
|
16447
|
+
var _hoisted_1$11 = { key: 0 };
|
|
16448
|
+
var _hoisted_2$5 = { key: 1 };
|
|
16034
16449
|
var FluxPlaceholder_default = /* @__PURE__ */ defineComponent({
|
|
16035
16450
|
__name: "FluxPlaceholder",
|
|
16036
16451
|
props: {
|
|
@@ -16057,7 +16472,7 @@ var FluxPlaceholder_default = /* @__PURE__ */ defineComponent({
|
|
|
16057
16472
|
class: normalizeClass(unref(Placeholder_module_default).placeholderIcon),
|
|
16058
16473
|
name: __props.icon
|
|
16059
16474
|
}, null, 8, ["class", "name"])) : createCommentVNode("", true),
|
|
16060
|
-
createElementVNode("div", { class: normalizeClass(unref(Placeholder_module_default).placeholderCaption) }, [__props.title ? (openBlock(), createElementBlock("strong", _hoisted_1$
|
|
16475
|
+
createElementVNode("div", { class: normalizeClass(unref(Placeholder_module_default).placeholderCaption) }, [__props.title ? (openBlock(), createElementBlock("strong", _hoisted_1$11, toDisplayString(__props.title), 1)) : createCommentVNode("", true), __props.message ? (openBlock(), createElementBlock("p", _hoisted_2$5, toDisplayString(__props.message), 1)) : createCommentVNode("", true)], 2),
|
|
16061
16476
|
renderSlot(_ctx.$slots, "default")
|
|
16062
16477
|
], 2);
|
|
16063
16478
|
};
|
|
@@ -16272,7 +16687,7 @@ var FluxPublishButton_default = /* @__PURE__ */ defineComponent({
|
|
|
16272
16687
|
};
|
|
16273
16688
|
}
|
|
16274
16689
|
});
|
|
16275
|
-
var _hoisted_1$
|
|
16690
|
+
var _hoisted_1$10 = [
|
|
16276
16691
|
"disabled",
|
|
16277
16692
|
"max",
|
|
16278
16693
|
"min",
|
|
@@ -16346,7 +16761,7 @@ var FluxQuantitySelector_default = /* @__PURE__ */ defineComponent({
|
|
|
16346
16761
|
max: __props.max,
|
|
16347
16762
|
min: __props.min,
|
|
16348
16763
|
step: __props.step
|
|
16349
|
-
}, null, 14, _hoisted_1$
|
|
16764
|
+
}, null, 14, _hoisted_1$10), [[vModelText, modelValue.value]]),
|
|
16350
16765
|
createVNode(FluxSecondaryButton_default, {
|
|
16351
16766
|
class: normalizeClass(unref(Form_module_default).quantitySelectorButton),
|
|
16352
16767
|
disabled: unref(disabled) || modelValue.value >= __props.max,
|
|
@@ -16389,7 +16804,7 @@ var Snackbar_module_default = {
|
|
|
16389
16804
|
snackbarsEnterFrom: `snackbars-enter-from`,
|
|
16390
16805
|
snackbarsLeaveTo: `snackbars-leave-to`
|
|
16391
16806
|
};
|
|
16392
|
-
var _hoisted_1$
|
|
16807
|
+
var _hoisted_1$9 = ["onClick"];
|
|
16393
16808
|
var FluxSnackbar_default = /* @__PURE__ */ defineComponent({
|
|
16394
16809
|
__name: "FluxSnackbar",
|
|
16395
16810
|
props: {
|
|
@@ -16487,7 +16902,7 @@ var FluxSnackbar_default = /* @__PURE__ */ defineComponent({
|
|
|
16487
16902
|
tabindex: "-1",
|
|
16488
16903
|
type: "button",
|
|
16489
16904
|
onClick: ($event) => onAction(actionKey)
|
|
16490
|
-
}, [createElementVNode("span", null, toDisplayString(actionLabel), 1)], 10, _hoisted_1$
|
|
16905
|
+
}, [createElementVNode("span", null, toDisplayString(actionLabel), 1)], 10, _hoisted_1$9);
|
|
16491
16906
|
}), 128))], 2)) : createCommentVNode("", true),
|
|
16492
16907
|
__props.isCloseable ? (openBlock(), createBlock(FluxAction_default, {
|
|
16493
16908
|
key: 1,
|
|
@@ -16667,7 +17082,7 @@ var Root_module_default = {
|
|
|
16667
17082
|
root: `root`,
|
|
16668
17083
|
isLocked: `is-locked`
|
|
16669
17084
|
};
|
|
16670
|
-
var _hoisted_1$
|
|
17085
|
+
var _hoisted_1$8 = ["inert"];
|
|
16671
17086
|
var FluxRoot_default = /* @__PURE__ */ defineComponent({
|
|
16672
17087
|
inheritAttrs: false,
|
|
16673
17088
|
__name: "FluxRoot",
|
|
@@ -16683,7 +17098,7 @@ var FluxRoot_default = /* @__PURE__ */ defineComponent({
|
|
|
16683
17098
|
createElementVNode("div", mergeProps($attrs, {
|
|
16684
17099
|
class: unref(Root_module_default).root,
|
|
16685
17100
|
inert: unref(inertMain)
|
|
16686
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$
|
|
17101
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$8),
|
|
16687
17102
|
createVNode(FluxOverlayProvider_default),
|
|
16688
17103
|
createVNode(FluxSnackbarProvider_default),
|
|
16689
17104
|
createVNode(FluxTooltipProvider_default)
|
|
@@ -16759,7 +17174,7 @@ var SegmentedControl_module_default = {
|
|
|
16759
17174
|
isActive: `is-active`,
|
|
16760
17175
|
segmentedControlSeparator: `segmented-control-separator`
|
|
16761
17176
|
};
|
|
16762
|
-
var _hoisted_1$
|
|
17177
|
+
var _hoisted_1$7 = ["onClick"];
|
|
16763
17178
|
var FluxSegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
16764
17179
|
__name: "FluxSegmentedControl",
|
|
16765
17180
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -16776,16 +17191,28 @@ var FluxSegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
|
16776
17191
|
const itemRefs = useTemplateRef("items");
|
|
16777
17192
|
const activeItemX = ref(0);
|
|
16778
17193
|
const activeItemWidth = ref(0);
|
|
16779
|
-
|
|
16780
|
-
|
|
17194
|
+
const isAlive = ref(true);
|
|
17195
|
+
onBeforeUnmount(() => {
|
|
17196
|
+
isAlive.value = false;
|
|
17197
|
+
});
|
|
17198
|
+
watchEffect(() => updateHighlight(unref(modelValue)), { flush: "post" });
|
|
17199
|
+
ye$1(controlRef, () => updateHighlight(unref(modelValue)));
|
|
16781
17200
|
function activate(index) {
|
|
16782
|
-
const itemRef = itemRefs.value[index];
|
|
16783
|
-
const { left: controlX } = controlRef.value.getBoundingClientRect();
|
|
16784
|
-
const { width, left: x } = itemRef.getBoundingClientRect();
|
|
16785
|
-
activeItemX.value = x - controlX - 1;
|
|
16786
|
-
activeItemWidth.value = width;
|
|
16787
17201
|
modelValue.value = index;
|
|
16788
17202
|
}
|
|
17203
|
+
function updateHighlight(index) {
|
|
17204
|
+
if (!isAlive.value) return;
|
|
17205
|
+
const itemRef = itemRefs.value?.[index];
|
|
17206
|
+
const control = controlRef.value;
|
|
17207
|
+
if (!itemRef || !control) return;
|
|
17208
|
+
const width = itemRef.offsetWidth;
|
|
17209
|
+
if (width === 0) return;
|
|
17210
|
+
const controlRect = control.getBoundingClientRect();
|
|
17211
|
+
const itemRect = itemRef.getBoundingClientRect();
|
|
17212
|
+
const scaleX = control.offsetWidth > 0 ? controlRect.width / control.offsetWidth : 1;
|
|
17213
|
+
activeItemX.value = (itemRect.left - controlRect.left) / scaleX;
|
|
17214
|
+
activeItemWidth.value = width;
|
|
17215
|
+
}
|
|
16789
17216
|
return (_ctx, _cache) => {
|
|
16790
17217
|
return openBlock(), createElementBlock("nav", {
|
|
16791
17218
|
ref: "control",
|
|
@@ -16812,7 +17239,7 @@ var FluxSegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
|
16812
17239
|
key: 0,
|
|
16813
17240
|
name: item.icon,
|
|
16814
17241
|
size: 15
|
|
16815
|
-
}, null, 8, ["name"])) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(item.label), 1)], 10, _hoisted_1$
|
|
17242
|
+
}, null, 8, ["name"])) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(item.label), 1)], 10, _hoisted_1$7)], 64);
|
|
16816
17243
|
}), 256))], 2);
|
|
16817
17244
|
};
|
|
16818
17245
|
}
|
|
@@ -16923,8 +17350,8 @@ var Statistic_module_default = {
|
|
|
16923
17350
|
statisticHorizontal: `statistic-horizontal statistic`,
|
|
16924
17351
|
statisticVertical: `statistic-vertical statistic`
|
|
16925
17352
|
};
|
|
16926
|
-
var _hoisted_1$
|
|
16927
|
-
var _hoisted_2$
|
|
17353
|
+
var _hoisted_1$6 = { key: 1 };
|
|
17354
|
+
var _hoisted_2$4 = ["src", "alt"];
|
|
16928
17355
|
var _hoisted_3$1 = { key: 0 };
|
|
16929
17356
|
var FluxStatistic_default = /* @__PURE__ */ defineComponent({
|
|
16930
17357
|
__name: "FluxStatistic",
|
|
@@ -16958,11 +17385,11 @@ var FluxStatistic_default = /* @__PURE__ */ defineComponent({
|
|
|
16958
17385
|
"class",
|
|
16959
17386
|
"color",
|
|
16960
17387
|
"name"
|
|
16961
|
-
])) : __props.imageSrc ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
17388
|
+
])) : __props.imageSrc ? (openBlock(), createElementBlock("div", _hoisted_1$6, [createElementVNode("img", {
|
|
16962
17389
|
class: normalizeClass(unref(Statistic_module_default).statisticImage),
|
|
16963
17390
|
src: __props.imageSrc,
|
|
16964
17391
|
alt: __props.imageAlt
|
|
16965
|
-
}, null, 10, _hoisted_2$
|
|
17392
|
+
}, null, 10, _hoisted_2$4)])) : createCommentVNode("", true),
|
|
16966
17393
|
createElementVNode("div", { class: normalizeClass(unref(Statistic_module_default).statisticData) }, [createElementVNode("span", null, toDisplayString(__props.label), 1), createElementVNode("strong", null, toDisplayString(__props.value ?? unref(Z$2)), 1)], 2),
|
|
16967
17394
|
__props.changeIcon || __props.changeValue ? (openBlock(), createElementBlock("div", {
|
|
16968
17395
|
key: 2,
|
|
@@ -16996,8 +17423,8 @@ var Stepper_module_default = {
|
|
|
16996
17423
|
stepperStepsItemIdle: `stepper-steps-item-idle stepper-steps-item ${_0$1}`,
|
|
16997
17424
|
stepperStepsItemParticles: `stepper-steps-item-particles ${_2}`
|
|
16998
17425
|
};
|
|
16999
|
-
var _hoisted_1$
|
|
17000
|
-
var _hoisted_2$
|
|
17426
|
+
var _hoisted_1$5 = ["onClick"];
|
|
17427
|
+
var _hoisted_2$3 = { key: 1 };
|
|
17001
17428
|
var FluxStepperSteps_default = /* @__PURE__ */ defineComponent({
|
|
17002
17429
|
__name: "FluxStepperSteps",
|
|
17003
17430
|
props: {
|
|
@@ -17026,9 +17453,9 @@ var FluxStepperSteps_default = /* @__PURE__ */ defineComponent({
|
|
|
17026
17453
|
default: withCtx(() => [__props.current > step ? (openBlock(), createBlock(FluxIcon_default, {
|
|
17027
17454
|
key: 0,
|
|
17028
17455
|
name: "check"
|
|
17029
|
-
})) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
17456
|
+
})) : (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(step), 1))]),
|
|
17030
17457
|
_: 2
|
|
17031
|
-
}, 1024)], 10, _hoisted_1$
|
|
17458
|
+
}, 1024)], 10, _hoisted_1$5);
|
|
17032
17459
|
}), 128))], 6);
|
|
17033
17460
|
};
|
|
17034
17461
|
}
|
|
@@ -17186,7 +17613,7 @@ var FluxTabBar_default = /* @__PURE__ */ defineComponent({
|
|
|
17186
17613
|
};
|
|
17187
17614
|
}
|
|
17188
17615
|
});
|
|
17189
|
-
var _hoisted_1$
|
|
17616
|
+
var _hoisted_1$4 = { key: 1 };
|
|
17190
17617
|
var FluxTabBarItem_default = /* @__PURE__ */ defineComponent({
|
|
17191
17618
|
__name: "FluxTabBarItem",
|
|
17192
17619
|
props: {
|
|
@@ -17259,7 +17686,7 @@ var FluxTabBarItem_default = /* @__PURE__ */ defineComponent({
|
|
|
17259
17686
|
key: 0,
|
|
17260
17687
|
name: __props.icon,
|
|
17261
17688
|
size: 16
|
|
17262
|
-
}, null, 8, ["name"])) : createCommentVNode("", true), __props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
17689
|
+
}, null, 8, ["name"])) : createCommentVNode("", true), __props.label ? (openBlock(), createElementBlock("span", _hoisted_1$4, toDisplayString(__props.label), 1)) : createCommentVNode("", true)]),
|
|
17263
17690
|
_: 1
|
|
17264
17691
|
}, 8, [
|
|
17265
17692
|
"component-type",
|
|
@@ -17359,7 +17786,7 @@ var FluxTableBar_default = /* @__PURE__ */ defineComponent({
|
|
|
17359
17786
|
};
|
|
17360
17787
|
}
|
|
17361
17788
|
});
|
|
17362
|
-
var _hoisted_1$
|
|
17789
|
+
var _hoisted_1$3 = ["aria-label", "onClick"];
|
|
17363
17790
|
var FluxTableHeader_default = /* @__PURE__ */ defineComponent({
|
|
17364
17791
|
__name: "FluxTableHeader",
|
|
17365
17792
|
props: {
|
|
@@ -17394,7 +17821,7 @@ var FluxTableHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
17394
17821
|
}, [createVNode(FluxIcon_default, {
|
|
17395
17822
|
size: 16,
|
|
17396
17823
|
name: sortingIcon.value
|
|
17397
|
-
}, null, 8, ["name"])], 10, _hoisted_1$
|
|
17824
|
+
}, null, 8, ["name"])], 10, _hoisted_1$3)]),
|
|
17398
17825
|
default: withCtx(() => [createVNode(FluxMenu_default, null, {
|
|
17399
17826
|
default: withCtx(() => [createVNode(FluxMenuGroup_default, null, {
|
|
17400
17827
|
default: withCtx(() => [createVNode(FluxMenuItem_default, {
|
|
@@ -17468,8 +17895,8 @@ var FluxTimeline_default = /* @__PURE__ */ defineComponent({
|
|
|
17468
17895
|
};
|
|
17469
17896
|
}
|
|
17470
17897
|
});
|
|
17471
|
-
var _hoisted_1$
|
|
17472
|
-
var _hoisted_2$
|
|
17898
|
+
var _hoisted_1$2 = ["src"];
|
|
17899
|
+
var _hoisted_2$2 = { key: 0 };
|
|
17473
17900
|
var _hoisted_3 = { key: 1 };
|
|
17474
17901
|
var FluxTimelineItem_default = /* @__PURE__ */ defineComponent({
|
|
17475
17902
|
__name: "FluxTimelineItem",
|
|
@@ -17494,7 +17921,7 @@ var FluxTimelineItem_default = /* @__PURE__ */ defineComponent({
|
|
|
17494
17921
|
class: normalizeClass(unref(Timeline_module_default).timelineItemPhotoImage),
|
|
17495
17922
|
src: __props.photo,
|
|
17496
17923
|
alt: ""
|
|
17497
|
-
}, null, 10, _hoisted_1$
|
|
17924
|
+
}, null, 10, _hoisted_1$2), __props.icon ? (openBlock(), createElementBlock("div", {
|
|
17498
17925
|
key: 0,
|
|
17499
17926
|
class: normalizeClass(unref(Timeline_module_default).timelineItemPhotoIcon)
|
|
17500
17927
|
}, [createVNode(FluxIcon_default, {
|
|
@@ -17510,13 +17937,13 @@ var FluxTimelineItem_default = /* @__PURE__ */ defineComponent({
|
|
|
17510
17937
|
createElementVNode("div", { class: normalizeClass(unref(Timeline_module_default).timelineItemBody) }, [__props.title || __props.when ? (openBlock(), createElementBlock("div", {
|
|
17511
17938
|
key: 0,
|
|
17512
17939
|
class: normalizeClass(unref(Timeline_module_default).timelineItemHeader)
|
|
17513
|
-
}, [__props.title ? (openBlock(), createElementBlock("strong", _hoisted_2$
|
|
17940
|
+
}, [__props.title ? (openBlock(), createElementBlock("strong", _hoisted_2$2, toDisplayString(__props.title), 1)) : createCommentVNode("", true), __props.when ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.when), 1)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 2)
|
|
17514
17941
|
], 2);
|
|
17515
17942
|
};
|
|
17516
17943
|
}
|
|
17517
17944
|
});
|
|
17518
|
-
var _hoisted_1 = ["for", "aria-disabled"];
|
|
17519
|
-
var _hoisted_2 = [
|
|
17945
|
+
var _hoisted_1$1 = ["for", "aria-disabled"];
|
|
17946
|
+
var _hoisted_2$1 = [
|
|
17520
17947
|
"id",
|
|
17521
17948
|
"disabled",
|
|
17522
17949
|
"checked",
|
|
@@ -17571,8 +17998,8 @@ var FluxToggle_default = /* @__PURE__ */ defineComponent({
|
|
|
17571
17998
|
role: "switch",
|
|
17572
17999
|
"aria-checked": modelValue.value,
|
|
17573
18000
|
onInput: toggle
|
|
17574
|
-
}, null, 42, _hoisted_2)
|
|
17575
|
-
], 10, _hoisted_1);
|
|
18001
|
+
}, null, 42, _hoisted_2$1)
|
|
18002
|
+
], 10, _hoisted_1$1);
|
|
17576
18003
|
};
|
|
17577
18004
|
}
|
|
17578
18005
|
});
|
|
@@ -17623,6 +18050,111 @@ var FluxToolbarGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
17623
18050
|
};
|
|
17624
18051
|
}
|
|
17625
18052
|
});
|
|
17626
|
-
|
|
18053
|
+
var TreeView_module_default = {
|
|
18054
|
+
treeView: `tree-view`,
|
|
18055
|
+
treeNode: `tree-node`,
|
|
18056
|
+
isHighlighted: `is-highlighted`,
|
|
18057
|
+
treeNodeLineArea: `tree-node-line-area`,
|
|
18058
|
+
treeIndent: `tree-indent`,
|
|
18059
|
+
hasLine: `has-line`,
|
|
18060
|
+
treeConnector: `tree-connector`,
|
|
18061
|
+
isLast: `is-last`,
|
|
18062
|
+
treeNodeExpand: `tree-node-expand`,
|
|
18063
|
+
treeNodeColorDot: `tree-node-color-dot`,
|
|
18064
|
+
treeNodeIcon: `tree-node-icon`,
|
|
18065
|
+
treeNodeLabel: `tree-node-label`
|
|
18066
|
+
};
|
|
18067
|
+
var _hoisted_1 = [
|
|
18068
|
+
"aria-expanded",
|
|
18069
|
+
"onClick",
|
|
18070
|
+
"onDblclick"
|
|
18071
|
+
];
|
|
18072
|
+
var _hoisted_2 = ["onClick"];
|
|
18073
|
+
var FluxTreeView_default = /* @__PURE__ */ defineComponent({
|
|
18074
|
+
__name: "FluxTreeView",
|
|
18075
|
+
props: {
|
|
18076
|
+
levelColors: {},
|
|
18077
|
+
options: {}
|
|
18078
|
+
},
|
|
18079
|
+
emits: ["click", "dblclick"],
|
|
18080
|
+
setup(__props, { emit: __emit }) {
|
|
18081
|
+
const emit = __emit;
|
|
18082
|
+
const nodeElementRefs = useTemplateRef("nodeElements");
|
|
18083
|
+
const expandedIds = ref(/* @__PURE__ */ new Set());
|
|
18084
|
+
const visibleNodes = computed(() => flattenVisible(__props.options, 0, unref(expandedIds)));
|
|
18085
|
+
const { highlightedIndex, toggleExpand, onExpandClick, onKeyNavigate } = useTreeView({
|
|
18086
|
+
expandedIds,
|
|
18087
|
+
nodeElementRefs,
|
|
18088
|
+
visibleNodes
|
|
18089
|
+
});
|
|
18090
|
+
function onNodeClick(node) {
|
|
18091
|
+
highlightedIndex.value = unref(visibleNodes).findIndex((n) => n.id === node.id);
|
|
18092
|
+
const { depth: _depth, isLast: _isLast, lineGuides: _lineGuides, ...option } = node;
|
|
18093
|
+
emit("click", option);
|
|
18094
|
+
}
|
|
18095
|
+
function onNodeDblClick(node) {
|
|
18096
|
+
if (node.children?.length) toggleExpand(node.id);
|
|
18097
|
+
const { depth: _depth, isLast: _isLast, lineGuides: _lineGuides, ...option } = node;
|
|
18098
|
+
emit("dblclick", option);
|
|
18099
|
+
}
|
|
18100
|
+
function onKeyDown(evt) {
|
|
18101
|
+
onKeyNavigate(evt, onNodeClick);
|
|
18102
|
+
}
|
|
18103
|
+
return (_ctx, _cache) => {
|
|
18104
|
+
return openBlock(), createElementBlock("div", {
|
|
18105
|
+
class: normalizeClass(unref(TreeView_module_default).treeView),
|
|
18106
|
+
role: "tree",
|
|
18107
|
+
tabindex: "0",
|
|
18108
|
+
onKeydown: onKeyDown
|
|
18109
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(visibleNodes.value, (node, nodeIndex) => {
|
|
18110
|
+
return openBlock(), createElementBlock("div", {
|
|
18111
|
+
ref_for: true,
|
|
18112
|
+
ref: "nodeElements",
|
|
18113
|
+
key: node.id,
|
|
18114
|
+
class: normalizeClass(unref(clsx)(unref(TreeView_module_default).treeNode, nodeIndex === unref(highlightedIndex) && unref(TreeView_module_default).isHighlighted)),
|
|
18115
|
+
role: "treeitem",
|
|
18116
|
+
tabindex: "-1",
|
|
18117
|
+
"aria-expanded": node.children?.length ? expandedIds.value.has(node.id) : void 0,
|
|
18118
|
+
onClick: ($event) => onNodeClick(node),
|
|
18119
|
+
onDblclick: ($event) => onNodeDblClick(node)
|
|
18120
|
+
}, [
|
|
18121
|
+
createElementVNode("div", { class: normalizeClass(unref(TreeView_module_default).treeNodeLineArea) }, [
|
|
18122
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(node.lineGuides, (showLine, guideIndex) => {
|
|
18123
|
+
return openBlock(), createElementBlock("span", {
|
|
18124
|
+
key: `g-${guideIndex}`,
|
|
18125
|
+
class: normalizeClass([unref(TreeView_module_default).treeIndent, showLine && unref(TreeView_module_default).hasLine])
|
|
18126
|
+
}, null, 2);
|
|
18127
|
+
}), 128)),
|
|
18128
|
+
node.depth > 0 ? (openBlock(), createElementBlock("span", {
|
|
18129
|
+
key: 0,
|
|
18130
|
+
class: normalizeClass([unref(TreeView_module_default).treeConnector, node.isLast && unref(TreeView_module_default).isLast])
|
|
18131
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
18132
|
+
createElementVNode("span", {
|
|
18133
|
+
class: normalizeClass(unref(TreeView_module_default).treeNodeExpand),
|
|
18134
|
+
onClick: ($event) => unref(onExpandClick)(node, $event)
|
|
18135
|
+
}, [node.children?.length ? (openBlock(), createBlock(FluxIcon_default, {
|
|
18136
|
+
key: 0,
|
|
18137
|
+
name: expandedIds.value.has(node.id) ? "angle-down" : "angle-right",
|
|
18138
|
+
size: 12
|
|
18139
|
+
}, null, 8, ["name"])) : createCommentVNode("", true)], 10, _hoisted_2)
|
|
18140
|
+
], 2),
|
|
18141
|
+
unref(getLevelColor)(node.depth, __props.levelColors) ? (openBlock(), createElementBlock("span", {
|
|
18142
|
+
key: 0,
|
|
18143
|
+
class: normalizeClass(unref(TreeView_module_default).treeNodeColorDot),
|
|
18144
|
+
style: normalizeStyle({ background: unref(getLevelColor)(node.depth, __props.levelColors) })
|
|
18145
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
18146
|
+
node.icon ? (openBlock(), createBlock(FluxIcon_default, {
|
|
18147
|
+
key: 1,
|
|
18148
|
+
class: normalizeClass(unref(TreeView_module_default).treeNodeIcon),
|
|
18149
|
+
name: node.icon,
|
|
18150
|
+
size: 16
|
|
18151
|
+
}, null, 8, ["class", "name"])) : createCommentVNode("", true),
|
|
18152
|
+
createElementVNode("span", { class: normalizeClass(unref(TreeView_module_default).treeNodeLabel) }, toDisplayString(node.label), 3)
|
|
18153
|
+
], 42, _hoisted_1);
|
|
18154
|
+
}), 128))], 34);
|
|
18155
|
+
};
|
|
18156
|
+
}
|
|
18157
|
+
});
|
|
18158
|
+
export { FluxAction_default as FluxAction, FluxActionBar_default as FluxActionBar, FluxActionPane_default as FluxActionPane, FluxActions_default as FluxActions, FluxAnimatedColors_default as FluxAnimatedColors, FluxAspectRatio_default as FluxAspectRatio, FluxAutoGrid_default as FluxAutoGrid, FluxAutoHeightTransition_default as FluxAutoHeightTransition, FluxAutoWidthTransition_default as FluxAutoWidthTransition, FluxAvatar_default as FluxAvatar, FluxBadge_default as FluxBadge, FluxBadgeStack_default as FluxBadgeStack, FluxBorderShine_default as FluxBorderShine, FluxBoxedIcon_default as FluxBoxedIcon, FluxBreakthroughTransition_default as FluxBreakthroughTransition, FluxButton_default as FluxButton, FluxButtonGroup_default as FluxButtonGroup, FluxButtonStack_default as FluxButtonStack, FluxCalendar_default as FluxCalendar, FluxCalendarEvent_default as FluxCalendarEvent, FluxCheckbox_default as FluxCheckbox, FluxChip_default as FluxChip, FluxClickablePane_default as FluxClickablePane, FluxColorPicker_default as FluxColorPicker, FluxColorSelect_default as FluxColorSelect, FluxComment_default as FluxComment, FluxContainer_default as FluxContainer, FluxDataTable_default as FluxDataTable, FluxDatePicker_default as FluxDatePicker, FluxDestructiveButton_default as FluxDestructiveButton, FluxDisabled_default as FluxDisabled, FluxDivider_default as FluxDivider, FluxDotPattern_default as FluxDotPattern, FluxDropZone_default as FluxDropZone, FluxDynamicView_default as FluxDynamicView, FluxExpandable_default as FluxExpandable, FluxExpandableGroup_default as FluxExpandableGroup, FluxFadeTransition_default as FluxFadeTransition, FluxFader_default as FluxFader, FluxFaderItem_default as FluxFaderItem, FluxFilter_default as FluxFilter, FluxFilterBar_default as FluxFilterBar, FluxFilterDate_default as FluxFilterDate, FluxFilterDateRange_default as FluxFilterDateRange, FluxFilterOption_default as FluxFilterOption, FluxFilterOptionAsync_default as FluxFilterOptionAsync, FluxFilterOptions_default as FluxFilterOptions, FluxFilterOptionsAsync_default as FluxFilterOptionsAsync, FluxFilterRange_default as FluxFilterRange, FluxFlickeringGrid_default as FluxFlickeringGrid, FluxFlyout_default as FluxFlyout, FluxFocalPointEditor_default as FluxFocalPointEditor, FluxFocalPointImage_default as FluxFocalPointImage, FluxForm_default as FluxForm, FluxFormColumn_default as FluxFormColumn, FluxFormDateInput_default as FluxFormDateInput, FluxFormDateRangeInput_default as FluxFormDateRangeInput, FluxFormDateTimeInput_default as FluxFormDateTimeInput, FluxFormField_default as FluxFormField, FluxFormFieldAddition_default as FluxFormFieldAddition, FluxFormGrid_default as FluxFormGrid, FluxFormInput_default as FluxFormInput, FluxFormInputAddition_default as FluxFormInputAddition, FluxFormInputGroup_default as FluxFormInputGroup, FluxFormPinInput_default as FluxFormPinInput, FluxFormRangeSlider_default as FluxFormRangeSlider, FluxFormRow_default as FluxFormRow, FluxFormSection_default as FluxFormSection, FluxFormSelect_default as FluxFormSelect, FluxFormSelectAsync_default as FluxFormSelectAsync, FluxFormSlider_default as FluxFormSlider, FluxFormTextArea_default as FluxFormTextArea, FluxFormTimeZonePicker_default as FluxFormTimeZonePicker, FluxFormTreeViewSelect_default as FluxFormTreeViewSelect, FluxGallery_default as FluxGallery, FluxGalleryItem_default as FluxGalleryItem, FluxGrid_default as FluxGrid, FluxGridColumn_default as FluxGridColumn, FluxGridPattern_default as FluxGridPattern, FluxIcon_default as FluxIcon, FluxInfo_default as FluxInfo, FluxInfoStack_default as FluxInfoStack, FluxItem_default as FluxItem, FluxItemActions_default as FluxItemActions, FluxItemContent_default as FluxItemContent, FluxItemMedia_default as FluxItemMedia, FluxItemStack_default as FluxItemStack, FluxLegend_default as FluxLegend, FluxLink_default as FluxLink, FluxMenu_default as FluxMenu, FluxMenuGroup_default as FluxMenuGroup, FluxMenuItem_default as FluxMenuItem, FluxMenuOptions_default as FluxMenuOptions, FluxMenuSubHeader_default as FluxMenuSubHeader, FluxMenuTitle_default as FluxMenuTitle, FluxNotice_default as FluxNotice, FluxNoticeStack_default as FluxNoticeStack, FluxOverflowBar_default as FluxOverflowBar, FluxOverlay_default as FluxOverlay, FluxOverlayProvider_default as FluxOverlayProvider, FluxOverlayTransition_default as FluxOverlayTransition, FluxPagination_default as FluxPagination, FluxPaginationBar_default as FluxPaginationBar, FluxPane_default as FluxPane, FluxPaneBody_default as FluxPaneBody, FluxPaneDeck_default as FluxPaneDeck, FluxPaneFooter_default as FluxPaneFooter, FluxPaneGroup_default as FluxPaneGroup, FluxPaneHeader_default as FluxPaneHeader, FluxPaneIllustration_default as FluxPaneIllustration, FluxPaneMedia_default as FluxPaneMedia, FluxPercentageBar_default as FluxPercentageBar, FluxPersona_default as FluxPersona, FluxPlaceholder_default as FluxPlaceholder, FluxPressable_default as FluxPressable, FluxPrimaryButton_default as FluxPrimaryButton, FluxPrimaryLinkButton_default as FluxPrimaryLinkButton, FluxProgressBar_default as FluxProgressBar, FluxPublishButton_default as FluxPublishButton, FluxQuantitySelector_default as FluxQuantitySelector, FluxRemove_default as FluxRemove, FluxRoot_default as FluxRoot, FluxRouteTransition_default as FluxRouteTransition, FluxSecondaryButton_default as FluxSecondaryButton, FluxSecondaryLinkButton_default as FluxSecondaryLinkButton, FluxSegmentedControl_default as FluxSegmentedControl, FluxSegmentedView_default as FluxSegmentedView, FluxSeparator_default as FluxSeparator, FluxSlideOver_default as FluxSlideOver, FluxSlideOverTransition_default as FluxSlideOverTransition, FluxSnackbar_default as FluxSnackbar, FluxSnackbarProvider_default as FluxSnackbarProvider, FluxSpacer_default as FluxSpacer, FluxSpacing_default as FluxSpacing, FluxSpinner_default as FluxSpinner, FluxSplitButton_default as FluxSplitButton, FluxStack_default as FluxStack, FluxStatistic_default as FluxStatistic, FluxStepper_default as FluxStepper, FluxStepperStep_default as FluxStepperStep, FluxStepperSteps_default as FluxStepperSteps, FluxTab_default as FluxTab, FluxTabBar_default as FluxTabBar, FluxTabBarItem_default as FluxTabBarItem, FluxTable_default as FluxTable, FluxTableActions_default as FluxTableActions, FluxTableBar_default as FluxTableBar, FluxTableCell_default as FluxTableCell, FluxTableHeader_default as FluxTableHeader, FluxTableRow_default as FluxTableRow, FluxTabs_default as FluxTabs, FluxTag_default as FluxTag, FluxTagStack_default as FluxTagStack, FluxTicks_default as FluxTicks, FluxTimeline_default as FluxTimeline, FluxTimelineItem_default as FluxTimelineItem, FluxToggle_default as FluxToggle, FluxToolbar_default as FluxToolbar, FluxToolbarGroup_default as FluxToolbarGroup, FluxTooltip_default as FluxTooltip, FluxTooltipProvider_default as FluxTooltipProvider, FluxTooltipTransition_default as FluxTooltipTransition, FluxTreeView_default as FluxTreeView, FluxVerticalWindowTransition_default as FluxVerticalWindowTransition, FluxWindow_default as FluxWindow, FluxWindowTransition_default as FluxWindowTransition, fluxRegisterIcons, isFluxFormSelectGroup, isFluxFormSelectOption, showAlert, showConfirm, showPrompt, showSnackbar, useBreakpoints_default as useBreakpoints, useDisabled_default as useDisabled, useDisabledInjection_default as useDisabledInjection, useExpandableGroupInjection_default as useExpandableGroupInjection, useFilterInjection_default as useFilterInjection, useFluxStore, useFlyoutInjection_default as useFlyoutInjection, useFormFieldInjection_default as useFormFieldInjection, useTableInjection_default as useTableInjection, useTooltipInjection_default as useTooltipInjection };
|
|
17627
18159
|
|
|
17628
18160
|
//# sourceMappingURL=index.js.map
|