@flux-ui/components 3.0.0-next.28 → 3.0.0-next.29
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/primitive/FilterBadge.vue.d.ts +12 -0
- package/dist/component/primitive/index.d.ts +2 -0
- package/dist/index.css +151 -109
- package/dist/index.js +263 -167
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/component/FluxFilterBar.vue +32 -8
- package/src/component/FluxOverflowBar.vue +11 -1
- package/src/component/primitive/FilterBadge.vue +43 -0
- package/src/component/primitive/index.ts +2 -0
- package/src/css/component/Badge.module.scss +1 -0
- package/src/css/component/Filter.module.scss +31 -2
- package/src/css/component/Icon.module.scss +25 -23
- package/src/css/component/Item.module.scss +2 -1
- package/src/css/component/Menu.module.scss +3 -0
- package/src/css/component/Timeline.module.scss +6 -2
- package/src/css/component/base/Button.module.scss +10 -0
- package/src/css/typography.scss +4 -2
package/dist/index.js
CHANGED
|
@@ -3850,76 +3850,91 @@ function c(e) {
|
|
|
3850
3850
|
}
|
|
3851
3851
|
};
|
|
3852
3852
|
}
|
|
3853
|
-
var l = Symbol(), u = Symbol(), d = Symbol(), f$1 = Symbol(), p$1 = Symbol(), m$1 = Symbol(), h$2 = Symbol(), g$1 = Symbol(), _$1 = Symbol(), v$1 = Symbol(), y$1 = Symbol();
|
|
3854
|
-
function b$1(e) {
|
|
3855
|
-
return e && typeof e == `object` && !!e[p$1];
|
|
3856
|
-
}
|
|
3857
3853
|
function ne$1(e, t) {
|
|
3858
|
-
return
|
|
3854
|
+
return e === t ? !0 : e === t;
|
|
3855
|
+
}
|
|
3856
|
+
var l = Symbol(), u = Symbol(), d = Symbol(), f$1 = Symbol(), p$1 = Symbol(), m$1 = Symbol(), h$2 = Symbol(), g$1 = Symbol(), _$1 = Symbol(), v$1 = Symbol(), re$1 = Symbol();
|
|
3857
|
+
function y$1(e) {
|
|
3858
|
+
return e && typeof e == `object` && !!e[p$1];
|
|
3859
3859
|
}
|
|
3860
|
-
function
|
|
3861
|
-
if (!
|
|
3860
|
+
function b$1(e) {
|
|
3861
|
+
if (!y$1(e)) throw Error(`@dto assert given object is not a class decorated with @Dto.`);
|
|
3862
3862
|
}
|
|
3863
|
-
var
|
|
3864
|
-
function
|
|
3863
|
+
var ie$1 = Symbol();
|
|
3864
|
+
function x$1(e, t = 0, n) {
|
|
3865
3865
|
return function(...r) {
|
|
3866
|
-
let i =
|
|
3867
|
-
if (typeof
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3866
|
+
let i = e[ie$1] ??= /* @__PURE__ */ new WeakMap(), a = r[t], o = n === void 0 ? `self` : r[n];
|
|
3867
|
+
if (typeof a != `object` || !a) return e.call(this, ...r);
|
|
3868
|
+
i.has(a) || i.set(a, []);
|
|
3869
|
+
let s = i.get(a);
|
|
3870
|
+
if (!s.includes(o)) {
|
|
3871
|
+
s.push(o);
|
|
3872
|
+
try {
|
|
3873
|
+
return e.call(this, ...r);
|
|
3874
|
+
} finally {
|
|
3875
|
+
let e = s.lastIndexOf(o);
|
|
3876
|
+
e !== -1 && s.splice(e, 1), s.length === 0 && i.delete(a);
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3872
3879
|
};
|
|
3873
3880
|
}
|
|
3874
|
-
function
|
|
3875
|
-
return
|
|
3881
|
+
function S$1(e) {
|
|
3882
|
+
return b$1(e), e[f$1];
|
|
3876
3883
|
}
|
|
3877
|
-
var
|
|
3878
|
-
let i = e[
|
|
3879
|
-
i(e, t, n, r), e[m$1] &&
|
|
3880
|
-
}, 0, 1),
|
|
3881
|
-
|
|
3884
|
+
var C$1 = x$1(function(e, t, n, r) {
|
|
3885
|
+
let i = e[re$1];
|
|
3886
|
+
i(e, t, n, r), e[m$1] && C$1(e[m$1], e[h$2], e[m$1][e[h$2]]);
|
|
3887
|
+
}, 0, 1), w = x$1(function(e) {
|
|
3888
|
+
b$1(e), e[f$1] && (e[f$1] = !1, C$1(e, f$1, !1, !0)), !(!e[u] || e[u].length === 0) && e[u].filter(S$1).forEach(w);
|
|
3882
3889
|
});
|
|
3883
|
-
var
|
|
3884
|
-
|
|
3890
|
+
var T$1 = x$1(function(e, t) {
|
|
3891
|
+
b$1(e), e[f$1] || (e[f$1] = !0, C$1(e, f$1, !0, !1)), e[m$1] && T$1(e[m$1], e[h$2]);
|
|
3885
3892
|
});
|
|
3886
|
-
function
|
|
3893
|
+
function E$1(e, t, n) {
|
|
3887
3894
|
t[u] ??= [], !t[u].includes(e) && t[u].push(e), e[m$1] !== t && (e[m$1] = t), e[h$2] !== n && (e[h$2] = n);
|
|
3888
3895
|
}
|
|
3889
|
-
function
|
|
3890
|
-
|
|
3896
|
+
function D$1(e, t, n) {
|
|
3897
|
+
if (y$1(n)) E$1(n, e, t);
|
|
3898
|
+
else if (Array.isArray(n)) {
|
|
3899
|
+
for (let r of n) y$1(r) && E$1(r, e, t);
|
|
3900
|
+
n[m$1] = e, n[h$2] = t;
|
|
3901
|
+
}
|
|
3891
3902
|
}
|
|
3892
|
-
function
|
|
3903
|
+
function O$2(e, t) {
|
|
3893
3904
|
let n = e[v$1];
|
|
3894
3905
|
n(e, t);
|
|
3895
3906
|
}
|
|
3896
3907
|
function ce$2(e, t) {
|
|
3897
3908
|
if (u in t) {
|
|
3898
3909
|
let n = t[u].indexOf(e);
|
|
3899
|
-
t[u].splice(n, 1);
|
|
3910
|
+
n !== -1 && t[u].splice(n, 1);
|
|
3900
3911
|
}
|
|
3901
3912
|
e[m$1] = void 0, e[h$2] = void 0;
|
|
3902
3913
|
}
|
|
3903
3914
|
function le$1(e, t) {
|
|
3904
|
-
|
|
3915
|
+
if (y$1(t)) ce$2(t, e);
|
|
3916
|
+
else if (Array.isArray(t)) {
|
|
3917
|
+
for (let n of t) y$1(n) && ce$2(n, e);
|
|
3918
|
+
t[m$1] = void 0, t[h$2] = void 0;
|
|
3919
|
+
}
|
|
3905
3920
|
}
|
|
3906
3921
|
var k$2 = {};
|
|
3907
3922
|
var ue$1 = {
|
|
3908
3923
|
deleteProperty(e, t) {
|
|
3909
3924
|
if (Reflect.deleteProperty(e, t), A$2(e, t)) return !0;
|
|
3910
3925
|
let n = e[m$1];
|
|
3911
|
-
return n &&
|
|
3926
|
+
return n && C$1(n, e[h$2], n[e[h$2]]), n && T$1(n, e[h$2]), !0;
|
|
3912
3927
|
},
|
|
3913
3928
|
get(e, t, n) {
|
|
3914
3929
|
if (t === _$1) return !0;
|
|
3915
3930
|
if (A$2(e, t)) return Reflect.get(e, t, n);
|
|
3916
3931
|
let r = e[m$1];
|
|
3917
|
-
return r &&
|
|
3932
|
+
return r && O$2(r, e[h$2]), Reflect.get(e, t);
|
|
3918
3933
|
},
|
|
3919
3934
|
set(e, t, n, r) {
|
|
3920
3935
|
if (A$2(e, t)) return Reflect.set(e, t, n, r);
|
|
3921
3936
|
let i = e[m$1];
|
|
3922
|
-
return i &&
|
|
3937
|
+
return i && C$1(i, e[h$2], i[e[h$2]]), i && T$1(i, e[h$2]), Reflect.set(e, t, n);
|
|
3923
3938
|
}
|
|
3924
3939
|
};
|
|
3925
3940
|
function A$2(e, t) {
|
|
@@ -3932,7 +3947,7 @@ var de$1 = {
|
|
|
3932
3947
|
let r = e[d][t];
|
|
3933
3948
|
if (!r || !r.get) return Reflect.get(e, t, n);
|
|
3934
3949
|
let i = r.get.call(e);
|
|
3935
|
-
return
|
|
3950
|
+
return O$2(e, t), D$1(e, t, i), i;
|
|
3936
3951
|
},
|
|
3937
3952
|
getOwnPropertyDescriptor(e, t) {
|
|
3938
3953
|
return e[d][t];
|
|
@@ -3945,7 +3960,7 @@ var de$1 = {
|
|
|
3945
3960
|
let i = e[d][t];
|
|
3946
3961
|
if (!i || !i.set) return Reflect.set(e, t, n, r);
|
|
3947
3962
|
let a = i.get?.call(e) ?? void 0;
|
|
3948
|
-
return ne$1(n, a) ? !0 : (le$1(e, a), Array.isArray(n) && !n[_$1] && (n = new Proxy(n, ue$1)), i.set.call(e, n),
|
|
3963
|
+
return ne$1(n, a) ? !0 : (le$1(e, a), Array.isArray(n) && !n[_$1] && (n = new Proxy(n, ue$1)), i.set.call(e, n), D$1(e, t, n), T$1(e, t), C$1(e, t, n, a), !0);
|
|
3949
3964
|
}
|
|
3950
3965
|
}, fe$1 = {
|
|
3951
3966
|
get(e, t, n) {
|
|
@@ -3964,7 +3979,7 @@ var de$1 = {
|
|
|
3964
3979
|
t = t.map((e) => Array.isArray(e) ? new Proxy(e, ue$1) : e);
|
|
3965
3980
|
let r = customRef((r, i) => {
|
|
3966
3981
|
let a = markRaw(Reflect.construct(e, t, n));
|
|
3967
|
-
a[l] = t, a[f$1] = !1, a[v$1] = r, a[
|
|
3982
|
+
a[l] = t, a[f$1] = !1, a[v$1] = r, a[re$1] = i;
|
|
3968
3983
|
let s = new Proxy(a, de$1);
|
|
3969
3984
|
return {
|
|
3970
3985
|
get: () => (r(), s),
|
|
@@ -3975,21 +3990,24 @@ var de$1 = {
|
|
|
3975
3990
|
} };
|
|
3976
3991
|
function me$1() {
|
|
3977
3992
|
let e = this;
|
|
3978
|
-
|
|
3993
|
+
b$1(e);
|
|
3979
3994
|
let t = k$2[e[p$1]], n = new t(...e[l]);
|
|
3980
|
-
|
|
3995
|
+
for (let [e, t] of Object.entries(this[d])) t.set && (n[e] = y$1(this[e]) ? this[e].clone() : this[e]);
|
|
3996
|
+
return n;
|
|
3981
3997
|
}
|
|
3982
3998
|
function he$1(e) {
|
|
3983
3999
|
for (let t in e) {
|
|
3984
4000
|
let n = this[d][t];
|
|
3985
|
-
|
|
4001
|
+
y$1(this[t]) && typeof e[t] == `object` ? this[t].fill(e[t]) : n && n.set && (this[t] = e[t]);
|
|
3986
4002
|
}
|
|
3987
4003
|
}
|
|
3988
4004
|
function ge$2() {
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
4005
|
+
let e = {};
|
|
4006
|
+
for (let t of this[g$1]) {
|
|
4007
|
+
let n = this[t];
|
|
4008
|
+
y$1(n) && (n = n.toJSON()), e[t] = n;
|
|
4009
|
+
}
|
|
4010
|
+
return e;
|
|
3993
4011
|
}
|
|
3994
4012
|
function j$1(e) {
|
|
3995
4013
|
ve$1(e);
|
|
@@ -7166,7 +7184,8 @@ var Button_module_default$1 = {
|
|
|
7166
7184
|
isXl: `is-xl`,
|
|
7167
7185
|
isFilled: `is-filled`,
|
|
7168
7186
|
buttonIcon: `button-icon`,
|
|
7169
|
-
buttonLabel: `button-label
|
|
7187
|
+
buttonLabel: `button-label`,
|
|
7188
|
+
badge: `badge`
|
|
7170
7189
|
};
|
|
7171
7190
|
const SLOTS = [
|
|
7172
7191
|
"default",
|
|
@@ -7275,13 +7294,13 @@ var FluxButton_default = /* @__PURE__ */ defineComponent({
|
|
|
7275
7294
|
};
|
|
7276
7295
|
}
|
|
7277
7296
|
});
|
|
7278
|
-
var { "
|
|
7297
|
+
var { "button": _0$15, "buttonIcon": _1$8, "buttonLabel": _2$5 } = Button_module_default$1;
|
|
7279
7298
|
var Action_module_default = {
|
|
7280
|
-
action: `action ${
|
|
7299
|
+
action: `action ${_0$15}`,
|
|
7281
7300
|
spinner: `spinner`,
|
|
7282
7301
|
actionIcon: `action-icon ${_1$8}`,
|
|
7283
7302
|
isDestructive: `is-destructive`,
|
|
7284
|
-
actionLabel: `action-label ${
|
|
7303
|
+
actionLabel: `action-label ${_2$5}`,
|
|
7285
7304
|
actionBar: `action-bar`,
|
|
7286
7305
|
separator: `separator`,
|
|
7287
7306
|
formInput: `form-input`,
|
|
@@ -7343,32 +7362,32 @@ var FluxAction_default = /* @__PURE__ */ defineComponent({
|
|
|
7343
7362
|
};
|
|
7344
7363
|
}
|
|
7345
7364
|
});
|
|
7346
|
-
var { "buttonIcon": _0$14, "
|
|
7365
|
+
var { "buttonIcon": _0$14, "button": _1$7, "buttonLabel": _2$4 } = Button_module_default$1;
|
|
7347
7366
|
var Button_module_default = {
|
|
7348
|
-
primaryButton: `primary-button ${
|
|
7367
|
+
primaryButton: `primary-button ${_1$7}`,
|
|
7349
7368
|
spinner: `spinner`,
|
|
7350
7369
|
primaryButtonIcon: `primary-button-icon ${_0$14}`,
|
|
7351
|
-
primaryButtonLabel: `primary-button-label ${
|
|
7352
|
-
secondaryButton: `secondary-button ${
|
|
7370
|
+
primaryButtonLabel: `primary-button-label ${_2$4}`,
|
|
7371
|
+
secondaryButton: `secondary-button ${_1$7}`,
|
|
7353
7372
|
secondaryButtonIcon: `secondary-button-icon ${_0$14}`,
|
|
7354
|
-
secondaryButtonLabel: `secondary-button-label ${
|
|
7355
|
-
destructiveButton: `destructive-button ${
|
|
7373
|
+
secondaryButtonLabel: `secondary-button-label ${_2$4}`,
|
|
7374
|
+
destructiveButton: `destructive-button ${_1$7}`,
|
|
7356
7375
|
destructiveButtonIcon: `destructive-button-icon ${_0$14}`,
|
|
7357
|
-
destructiveButtonLabel: `destructive-button-label ${
|
|
7358
|
-
baseLinkButton: `base-link-button ${
|
|
7359
|
-
primaryLinkButton: `primary-link-button base-link-button ${
|
|
7376
|
+
destructiveButtonLabel: `destructive-button-label ${_2$4}`,
|
|
7377
|
+
baseLinkButton: `base-link-button ${_1$7}`,
|
|
7378
|
+
primaryLinkButton: `primary-link-button base-link-button ${_1$7}`,
|
|
7360
7379
|
primaryLinkButtonIcon: `primary-link-button-icon ${_0$14}`,
|
|
7361
|
-
primaryLinkButtonLabel: `primary-link-button-label ${
|
|
7362
|
-
secondaryLinkButton: `secondary-link-button base-link-button ${
|
|
7380
|
+
primaryLinkButtonLabel: `primary-link-button-label ${_2$4}`,
|
|
7381
|
+
secondaryLinkButton: `secondary-link-button base-link-button ${_1$7}`,
|
|
7363
7382
|
secondaryLinkButtonIcon: `secondary-link-button-icon ${_0$14}`,
|
|
7364
|
-
secondaryLinkButtonLabel: `secondary-link-button-label ${
|
|
7365
|
-
linkButton: `link-button ${
|
|
7383
|
+
secondaryLinkButtonLabel: `secondary-link-button-label ${_2$4}`,
|
|
7384
|
+
linkButton: `link-button ${_1$7}`,
|
|
7366
7385
|
linkButtonIcon: `link-button-icon ${_0$14}`,
|
|
7367
7386
|
icon: `icon`,
|
|
7368
|
-
linkButtonLabel: `link-button-label ${
|
|
7369
|
-
publishButton: `publish-button primary-button ${
|
|
7387
|
+
linkButtonLabel: `link-button-label ${_2$4}`,
|
|
7388
|
+
publishButton: `publish-button primary-button ${_1$7}`,
|
|
7370
7389
|
publishButtonIcon: `publish-button-icon primary-button-icon ${_0$14}`,
|
|
7371
|
-
publishButtonLabel: `publish-button-label primary-button-label ${
|
|
7390
|
+
publishButtonLabel: `publish-button-label primary-button-label ${_2$4}`,
|
|
7372
7391
|
publishButtonAnimation: `publish-button-animation`,
|
|
7373
7392
|
isDone: `is-done`,
|
|
7374
7393
|
publishButtonAnimationArrow: `publish-button-animation-arrow`,
|
|
@@ -8871,7 +8890,72 @@ var AnchorPopup_default = /* @__PURE__ */ defineComponent({
|
|
|
8871
8890
|
};
|
|
8872
8891
|
}
|
|
8873
8892
|
});
|
|
8874
|
-
var
|
|
8893
|
+
var Filter_module_default = {
|
|
8894
|
+
filter: `filter`,
|
|
8895
|
+
menu: `menu`,
|
|
8896
|
+
divider: `divider`,
|
|
8897
|
+
separator: `separator`,
|
|
8898
|
+
menuGroup: `menu-group`,
|
|
8899
|
+
menuSubHeader: `menu-sub-header`,
|
|
8900
|
+
filterSearch: `filter-search`,
|
|
8901
|
+
menuItemLabel: `menu-item-label`,
|
|
8902
|
+
paneBody: `pane-body`,
|
|
8903
|
+
filterBadge: `filter-badge`,
|
|
8904
|
+
badgeLabel: `badge-label`,
|
|
8905
|
+
filterButton: `filter-button`,
|
|
8906
|
+
badge: `badge`,
|
|
8907
|
+
buttonIcon: `button-icon`,
|
|
8908
|
+
filterHeader: `filter-header`,
|
|
8909
|
+
filterBack: `filter-back`,
|
|
8910
|
+
filterReset: `filter-reset`,
|
|
8911
|
+
filterDatePicker: `filter-date-picker`,
|
|
8912
|
+
filterBar: `filter-bar`,
|
|
8913
|
+
filterBarSearch: `filter-bar-search`
|
|
8914
|
+
};
|
|
8915
|
+
var FilterBadge_default = /* @__PURE__ */ defineComponent({
|
|
8916
|
+
__name: "FilterBadge",
|
|
8917
|
+
props: {
|
|
8918
|
+
item: {},
|
|
8919
|
+
value: { type: [
|
|
8920
|
+
Object,
|
|
8921
|
+
String,
|
|
8922
|
+
Boolean,
|
|
8923
|
+
Number,
|
|
8924
|
+
null,
|
|
8925
|
+
Array
|
|
8926
|
+
] }
|
|
8927
|
+
},
|
|
8928
|
+
emits: ["click"],
|
|
8929
|
+
setup(__props, { emit: __emit }) {
|
|
8930
|
+
const emit = __emit;
|
|
8931
|
+
const { isLoading, loaded } = Z$1();
|
|
8932
|
+
const getValueLabel = computed(() => loaded(__props.item.getValueLabel));
|
|
8933
|
+
const valueLabel = ref();
|
|
8934
|
+
function onClick(evt) {
|
|
8935
|
+
emit("click", evt);
|
|
8936
|
+
}
|
|
8937
|
+
watch([() => __props.item, () => __props.value], async () => {
|
|
8938
|
+
valueLabel.value = await unref(getValueLabel)(__props.value) ?? void 0;
|
|
8939
|
+
}, {
|
|
8940
|
+
deep: true,
|
|
8941
|
+
immediate: true
|
|
8942
|
+
});
|
|
8943
|
+
return (_ctx, _cache) => {
|
|
8944
|
+
return valueLabel.value ? (openBlock(), createBlock(unref(FluxBadge_default), {
|
|
8945
|
+
key: 0,
|
|
8946
|
+
class: normalizeClass(unref(Filter_module_default).filterBadge),
|
|
8947
|
+
"is-loading": unref(isLoading),
|
|
8948
|
+
label: valueLabel.value,
|
|
8949
|
+
onClick
|
|
8950
|
+
}, null, 8, [
|
|
8951
|
+
"class",
|
|
8952
|
+
"is-loading",
|
|
8953
|
+
"label"
|
|
8954
|
+
])) : createCommentVNode("", true);
|
|
8955
|
+
};
|
|
8956
|
+
}
|
|
8957
|
+
});
|
|
8958
|
+
var { "button": _0$11, "buttonIcon": _1$5, "buttonLabel": _2$2 } = Button_module_default$1;
|
|
8875
8959
|
var Menu_module_default = {
|
|
8876
8960
|
menu: `menu`,
|
|
8877
8961
|
menuNormal: `menu-normal menu`,
|
|
@@ -8881,13 +8965,13 @@ var Menu_module_default = {
|
|
|
8881
8965
|
menuGroupVertical: `menu-group-vertical menu-group`,
|
|
8882
8966
|
menuItem: `menu-item ${_0$11}`,
|
|
8883
8967
|
badge: `badge`,
|
|
8884
|
-
menuItemIcon: `menu-item-icon ${
|
|
8885
|
-
menuItemLabel: `menu-item-label ${
|
|
8968
|
+
menuItemIcon: `menu-item-icon ${_1$5}`,
|
|
8969
|
+
menuItemLabel: `menu-item-label ${_2$2}`,
|
|
8886
8970
|
menuItemActive: `menu-item-active`,
|
|
8887
8971
|
menuItemDestructive: `menu-item-destructive`,
|
|
8888
8972
|
menuItemHighlighted: `menu-item-highlighted`,
|
|
8889
8973
|
menuItemIndented: `menu-item-indented`,
|
|
8890
|
-
menuItemSelectableIcon: `menu-item-selectable-icon ${
|
|
8974
|
+
menuItemSelectableIcon: `menu-item-selectable-icon ${_1$5}`,
|
|
8891
8975
|
menuItemSelected: `menu-item-selected`,
|
|
8892
8976
|
menuItemCommand: `menu-item-command`,
|
|
8893
8977
|
menuItemCommandIcon: `menu-item-command-icon`,
|
|
@@ -9006,6 +9090,52 @@ var FluxMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
|
9006
9090
|
};
|
|
9007
9091
|
}
|
|
9008
9092
|
});
|
|
9093
|
+
var FilterItem_default = /* @__PURE__ */ defineComponent({
|
|
9094
|
+
__name: "FilterItem",
|
|
9095
|
+
props: {
|
|
9096
|
+
item: {},
|
|
9097
|
+
value: { type: [
|
|
9098
|
+
Object,
|
|
9099
|
+
String,
|
|
9100
|
+
Boolean,
|
|
9101
|
+
Number,
|
|
9102
|
+
null,
|
|
9103
|
+
Array
|
|
9104
|
+
] }
|
|
9105
|
+
},
|
|
9106
|
+
emits: ["click"],
|
|
9107
|
+
setup(__props, { emit: __emit }) {
|
|
9108
|
+
const emit = __emit;
|
|
9109
|
+
const { isLoading, loaded } = Z$1();
|
|
9110
|
+
const getValueLabel = computed(() => loaded(__props.item.getValueLabel));
|
|
9111
|
+
const valueLabel = ref();
|
|
9112
|
+
function onClick(evt) {
|
|
9113
|
+
emit("click", evt);
|
|
9114
|
+
}
|
|
9115
|
+
watch(() => __props.item, async () => {
|
|
9116
|
+
valueLabel.value = await unref(getValueLabel)(__props.value) ?? void 0;
|
|
9117
|
+
}, {
|
|
9118
|
+
deep: true,
|
|
9119
|
+
immediate: true
|
|
9120
|
+
});
|
|
9121
|
+
return (_ctx, _cache) => {
|
|
9122
|
+
return openBlock(), createBlock(FluxMenuItem_default, {
|
|
9123
|
+
command: valueLabel.value,
|
|
9124
|
+
"command-icon": "angle-right",
|
|
9125
|
+
"command-loading": unref(isLoading),
|
|
9126
|
+
"icon-leading": __props.item.icon,
|
|
9127
|
+
label: __props.item.label,
|
|
9128
|
+
type: "button",
|
|
9129
|
+
onClick
|
|
9130
|
+
}, null, 8, [
|
|
9131
|
+
"command",
|
|
9132
|
+
"command-loading",
|
|
9133
|
+
"icon-leading",
|
|
9134
|
+
"label"
|
|
9135
|
+
]);
|
|
9136
|
+
};
|
|
9137
|
+
}
|
|
9138
|
+
});
|
|
9009
9139
|
var { "basePane": _0$10 } = Pane_module_default$1;
|
|
9010
9140
|
var Form_module_default = {
|
|
9011
9141
|
formInputGroup: `form-input-group form-input`,
|
|
@@ -9325,23 +9455,6 @@ var FluxMenuSubHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
9325
9455
|
};
|
|
9326
9456
|
}
|
|
9327
9457
|
});
|
|
9328
|
-
var Filter_module_default = {
|
|
9329
|
-
filter: `filter`,
|
|
9330
|
-
menu: `menu`,
|
|
9331
|
-
divider: `divider`,
|
|
9332
|
-
separator: `separator`,
|
|
9333
|
-
menuGroup: `menu-group`,
|
|
9334
|
-
menuSubHeader: `menu-sub-header`,
|
|
9335
|
-
filterSearch: `filter-search`,
|
|
9336
|
-
menuItemLabel: `menu-item-label`,
|
|
9337
|
-
paneBody: `pane-body`,
|
|
9338
|
-
filterHeader: `filter-header`,
|
|
9339
|
-
filterBack: `filter-back`,
|
|
9340
|
-
filterReset: `filter-reset`,
|
|
9341
|
-
filterDatePicker: `filter-date-picker`,
|
|
9342
|
-
filterBar: `filter-bar`,
|
|
9343
|
-
filterBarSearch: `filter-bar-search`
|
|
9344
|
-
};
|
|
9345
9458
|
var FilterOptionBase_default = /* @__PURE__ */ defineComponent({
|
|
9346
9459
|
__name: "FilterOptionBase",
|
|
9347
9460
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -9942,52 +10055,6 @@ var FluxSeparator_default = /* @__PURE__ */ defineComponent({
|
|
|
9942
10055
|
};
|
|
9943
10056
|
}
|
|
9944
10057
|
});
|
|
9945
|
-
var FilterItem_default = /* @__PURE__ */ defineComponent({
|
|
9946
|
-
__name: "FilterItem",
|
|
9947
|
-
props: {
|
|
9948
|
-
item: {},
|
|
9949
|
-
value: { type: [
|
|
9950
|
-
Object,
|
|
9951
|
-
String,
|
|
9952
|
-
Boolean,
|
|
9953
|
-
Number,
|
|
9954
|
-
null,
|
|
9955
|
-
Array
|
|
9956
|
-
] }
|
|
9957
|
-
},
|
|
9958
|
-
emits: ["click"],
|
|
9959
|
-
setup(__props, { emit: __emit }) {
|
|
9960
|
-
const emit = __emit;
|
|
9961
|
-
const { isLoading, loaded } = Z$1();
|
|
9962
|
-
const getValueLabel = computed(() => loaded(__props.item.getValueLabel));
|
|
9963
|
-
const valueLabel = ref();
|
|
9964
|
-
function onClick(evt) {
|
|
9965
|
-
emit("click", evt);
|
|
9966
|
-
}
|
|
9967
|
-
watch(() => __props.item, async () => {
|
|
9968
|
-
valueLabel.value = await unref(getValueLabel)(__props.value) ?? void 0;
|
|
9969
|
-
}, {
|
|
9970
|
-
deep: true,
|
|
9971
|
-
immediate: true
|
|
9972
|
-
});
|
|
9973
|
-
return (_ctx, _cache) => {
|
|
9974
|
-
return openBlock(), createBlock(FluxMenuItem_default, {
|
|
9975
|
-
command: valueLabel.value,
|
|
9976
|
-
"command-icon": "angle-right",
|
|
9977
|
-
"command-loading": unref(isLoading),
|
|
9978
|
-
"icon-leading": __props.item.icon,
|
|
9979
|
-
label: __props.item.label,
|
|
9980
|
-
type: "button",
|
|
9981
|
-
onClick
|
|
9982
|
-
}, null, 8, [
|
|
9983
|
-
"command",
|
|
9984
|
-
"command-loading",
|
|
9985
|
-
"icon-leading",
|
|
9986
|
-
"label"
|
|
9987
|
-
]);
|
|
9988
|
-
};
|
|
9989
|
-
}
|
|
9990
|
-
});
|
|
9991
10058
|
const FilterMenuRenderer = defineComponent({
|
|
9992
10059
|
props: {
|
|
9993
10060
|
menuItems: {
|
|
@@ -12769,7 +12836,11 @@ var FluxOverflowBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12769
12836
|
const measurer = unref(measurerRef);
|
|
12770
12837
|
const overflow = T(overflowRef);
|
|
12771
12838
|
availableSize.value = __props.direction === "horizontal" ? bar.offsetWidth : bar.offsetHeight;
|
|
12772
|
-
itemSizes.value = Array.from(measurer.children).filter((item) => item instanceof HTMLElement).map((item) =>
|
|
12839
|
+
itemSizes.value = Array.from(measurer.children).filter((item) => item instanceof HTMLElement).map((item) => {
|
|
12840
|
+
const { display } = getComputedStyle(item);
|
|
12841
|
+
if (display === "contents") item = item.children[0];
|
|
12842
|
+
return __props.direction === "horizontal" ? item.offsetWidth : item.offsetHeight;
|
|
12843
|
+
});
|
|
12773
12844
|
let size = 0;
|
|
12774
12845
|
let visible = 0;
|
|
12775
12846
|
if (overflow) size += Array.from(overflow.children).map((item) => getComputedStyle(item).display === "contents" ? item.children[0] : item).filter((item) => item instanceof HTMLElement).map((item) => __props.direction === "horizontal" ? item.offsetWidth : item.offsetHeight).reduce((acc, curr, index) => acc + curr + (index === 0 ? 0 : __props.gap), 0);
|
|
@@ -12817,35 +12888,6 @@ var FluxOverflowBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12817
12888
|
};
|
|
12818
12889
|
}
|
|
12819
12890
|
});
|
|
12820
|
-
var FluxSpacing_default = /* @__PURE__ */ defineComponent({
|
|
12821
|
-
__name: "FluxSpacing",
|
|
12822
|
-
props: { size: {} },
|
|
12823
|
-
setup(__props) {
|
|
12824
|
-
const spacings = [
|
|
12825
|
-
0,
|
|
12826
|
-
3,
|
|
12827
|
-
6,
|
|
12828
|
-
9,
|
|
12829
|
-
12,
|
|
12830
|
-
15,
|
|
12831
|
-
18,
|
|
12832
|
-
24,
|
|
12833
|
-
30,
|
|
12834
|
-
36,
|
|
12835
|
-
42,
|
|
12836
|
-
48,
|
|
12837
|
-
54,
|
|
12838
|
-
60,
|
|
12839
|
-
72,
|
|
12840
|
-
84,
|
|
12841
|
-
90,
|
|
12842
|
-
120
|
|
12843
|
-
];
|
|
12844
|
-
return (_ctx, _cache) => {
|
|
12845
|
-
return openBlock(), createElementBlock("div", { style: normalizeStyle({ flex: `0 0 ${spacings[__props.size]}px` }) }, null, 4);
|
|
12846
|
-
};
|
|
12847
|
-
}
|
|
12848
|
-
});
|
|
12849
12891
|
var FluxFilterBar_default = /* @__PURE__ */ defineComponent({
|
|
12850
12892
|
__name: "FluxFilterBar",
|
|
12851
12893
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -12863,6 +12905,7 @@ var FluxFilterBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12863
12905
|
const emit = __emit;
|
|
12864
12906
|
const modelSearch = useModel(__props, "search");
|
|
12865
12907
|
const modelValue = useModel(__props, "modelValue");
|
|
12908
|
+
const isFiltered = computed(() => Object.entries(unref(modelValue)).filter(([, val]) => Boolean(val)).length > 0);
|
|
12866
12909
|
function reset(name) {
|
|
12867
12910
|
emit("reset", name);
|
|
12868
12911
|
}
|
|
@@ -12886,9 +12929,13 @@ var FluxFilterBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12886
12929
|
"class",
|
|
12887
12930
|
"placeholder"
|
|
12888
12931
|
]), createVNode(FluxOverflowBar_default, { alignment: "end" }, {
|
|
12889
|
-
overflow: withCtx(() => [
|
|
12932
|
+
overflow: withCtx(() => [isFiltered.value ? (openBlock(), createBlock(FluxSeparator_default, {
|
|
12890
12933
|
key: 0,
|
|
12891
|
-
|
|
12934
|
+
direction: "vertical",
|
|
12935
|
+
style: {
|
|
12936
|
+
"margin-top": "9px",
|
|
12937
|
+
"margin-bottom": "9px"
|
|
12938
|
+
}
|
|
12892
12939
|
})) : createCommentVNode("", true), createVNode(FluxFlyout_default, null, {
|
|
12893
12940
|
opener: withCtx(({ open }) => [createVNode(FluxSecondaryButton_default, {
|
|
12894
12941
|
"icon-leading": "sliders-simple",
|
|
@@ -12908,11 +12955,31 @@ var FluxFilterBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12908
12955
|
_: 2
|
|
12909
12956
|
}, 1024)]),
|
|
12910
12957
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(buttons, (button) => {
|
|
12911
|
-
return openBlock(),
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12958
|
+
return openBlock(), createBlock(FluxFlyout_default, { key: button.name }, {
|
|
12959
|
+
opener: withCtx(({ open }) => [modelValue.value[button.name] ? (openBlock(), createBlock(FluxSecondaryButton_default, {
|
|
12960
|
+
key: 0,
|
|
12961
|
+
class: normalizeClass(unref(Filter_module_default).filterButton),
|
|
12962
|
+
"icon-leading": button.icon,
|
|
12963
|
+
label: button.label,
|
|
12964
|
+
onClick: ($event) => open()
|
|
12965
|
+
}, {
|
|
12966
|
+
after: withCtx(() => [createVNode(unref(FilterBadge_default), {
|
|
12967
|
+
item: button,
|
|
12968
|
+
value: modelValue.value[button.name]
|
|
12969
|
+
}, null, 8, ["item", "value"])]),
|
|
12970
|
+
_: 2
|
|
12971
|
+
}, 1032, [
|
|
12972
|
+
"class",
|
|
12973
|
+
"icon-leading",
|
|
12974
|
+
"label",
|
|
12975
|
+
"onClick"
|
|
12976
|
+
])) : createCommentVNode("", true)]),
|
|
12977
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(Filter_module_default).filter) }, [createVNode(FluxMenu_default, null, {
|
|
12978
|
+
default: withCtx(() => [createVNode(unref(VNodeRenderer), { vnode: filters[button.name] }, null, 8, ["vnode"])]),
|
|
12979
|
+
_: 2
|
|
12980
|
+
}, 1024)], 2)]),
|
|
12981
|
+
_: 2
|
|
12982
|
+
}, 1024);
|
|
12916
12983
|
}), 128))]),
|
|
12917
12984
|
_: 2
|
|
12918
12985
|
}, 1024)], 2)]),
|
|
@@ -16774,6 +16841,35 @@ var FluxSlideOver_default = defineComponent({
|
|
|
16774
16841
|
return createDialogRenderer_default(attrs, props, emit, slots, Overlay_module_default.slideOver, FluxSlideOverTransition_default);
|
|
16775
16842
|
}
|
|
16776
16843
|
});
|
|
16844
|
+
var FluxSpacing_default = /* @__PURE__ */ defineComponent({
|
|
16845
|
+
__name: "FluxSpacing",
|
|
16846
|
+
props: { size: {} },
|
|
16847
|
+
setup(__props) {
|
|
16848
|
+
const spacings = [
|
|
16849
|
+
0,
|
|
16850
|
+
3,
|
|
16851
|
+
6,
|
|
16852
|
+
9,
|
|
16853
|
+
12,
|
|
16854
|
+
15,
|
|
16855
|
+
18,
|
|
16856
|
+
24,
|
|
16857
|
+
30,
|
|
16858
|
+
36,
|
|
16859
|
+
42,
|
|
16860
|
+
48,
|
|
16861
|
+
54,
|
|
16862
|
+
60,
|
|
16863
|
+
72,
|
|
16864
|
+
84,
|
|
16865
|
+
90,
|
|
16866
|
+
120
|
|
16867
|
+
];
|
|
16868
|
+
return (_ctx, _cache) => {
|
|
16869
|
+
return openBlock(), createElementBlock("div", { style: normalizeStyle({ flex: `0 0 ${spacings[__props.size]}px` }) }, null, 4);
|
|
16870
|
+
};
|
|
16871
|
+
}
|
|
16872
|
+
});
|
|
16777
16873
|
var FluxSplitButton_default = /* @__PURE__ */ defineComponent({
|
|
16778
16874
|
__name: "FluxSplitButton",
|
|
16779
16875
|
props: {
|