@flux-ui/application 3.0.0-next.53 → 3.0.0-next.55

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/index.js CHANGED
@@ -1,7 +1,8 @@
1
- import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, customRef, defineComponent, getCurrentInstance, h, inject, markRaw, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, ref, renderList, renderSlot, shallowRef, toDisplayString, toRef, unref, useSlots, watch, withCtx } from "vue";
1
+ import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, customRef, defineComponent, h, inject, markRaw, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, ref, renderList, renderSlot, shallowRef, toDisplayString, toRef, unref, useSlots, watch, withCtx } from "vue";
2
2
  import { DateTime } from "luxon";
3
+ import { RouterView, matchedRouteKey, useRoute, viewDepthKey } from "vue-router";
3
4
  import { FluxFadeTransition, FluxFlyout, FluxIcon, FluxMenu, FluxMenuItem, FluxPane, FluxRouteTransition, FluxSecondaryButton, FluxSpacer, FluxTabBar } from "@flux-ui/components";
4
- //#region ../../node_modules/.bun/@basmilius+utils@3.19.0/node_modules/@basmilius/utils/dist/index.mjs
5
+ //#region ../../node_modules/.bun/@basmilius+utils@3.20.2/node_modules/@basmilius/utils/dist/index.mjs
5
6
  function x$2(e) {
6
7
  let t = {};
7
8
  do {
@@ -3102,7 +3103,7 @@ useMode(definition$2);
3102
3103
  useMode(definition$1);
3103
3104
  useMode(definition);
3104
3105
  //#endregion
3105
- //#region ../../node_modules/.bun/@basmilius+http-client@3.19.0+7524df1edfed9f02/node_modules/@basmilius/http-client/dist/index.mjs
3106
+ //#region ../../node_modules/.bun/@basmilius+http-client@3.20.2+96a7401e32316653/node_modules/@basmilius/http-client/dist/index.mjs
3106
3107
  function c(e) {
3107
3108
  return class extends e {
3108
3109
  constructor(...e) {
@@ -3400,197 +3401,6 @@ var X = Y = class {
3400
3401
  }
3401
3402
  };
3402
3403
  X = Y = B([c], X);
3403
- //#endregion
3404
- //#region ../../node_modules/.bun/vue-router@5.0.6+b33d84df931f4fef/node_modules/vue-router/dist/useApi-DtucMc-S.js
3405
- /*!
3406
- * vue-router v5.0.6
3407
- * (c) 2026 Eduardo San Martin Morote
3408
- * @license MIT
3409
- */
3410
- var isBrowser = typeof document !== "undefined";
3411
- var assign = Object.assign;
3412
- /**
3413
- * Typesafe alternative to Array.isArray
3414
- * https://github.com/microsoft/TypeScript/pull/48228
3415
- *
3416
- * @internal
3417
- */
3418
- var isArray = Array.isArray;
3419
- /**
3420
- * Flags so we can combine them when checking for multiple errors. This is the internal version of
3421
- * {@link NavigationFailureType}.
3422
- *
3423
- * @internal
3424
- */
3425
- var ErrorTypes = /* @__PURE__ */ function(ErrorTypes) {
3426
- ErrorTypes[ErrorTypes["MATCHER_NOT_FOUND"] = 1] = "MATCHER_NOT_FOUND";
3427
- ErrorTypes[ErrorTypes["NAVIGATION_GUARD_REDIRECT"] = 2] = "NAVIGATION_GUARD_REDIRECT";
3428
- ErrorTypes[ErrorTypes["NAVIGATION_ABORTED"] = 4] = "NAVIGATION_ABORTED";
3429
- ErrorTypes[ErrorTypes["NAVIGATION_CANCELLED"] = 8] = "NAVIGATION_CANCELLED";
3430
- ErrorTypes[ErrorTypes["NAVIGATION_DUPLICATED"] = 16] = "NAVIGATION_DUPLICATED";
3431
- return ErrorTypes;
3432
- }({});
3433
- Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
3434
- ErrorTypes.MATCHER_NOT_FOUND, ErrorTypes.NAVIGATION_GUARD_REDIRECT, ErrorTypes.NAVIGATION_ABORTED, ErrorTypes.NAVIGATION_CANCELLED, ErrorTypes.NAVIGATION_DUPLICATED;
3435
- /**
3436
- * RouteRecord being rendered by the closest ancestor Router View. Used for
3437
- * `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
3438
- * Location Matched
3439
- *
3440
- * @internal
3441
- */
3442
- var matchedRouteKey = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
3443
- /**
3444
- * Allows overriding the router view depth to control which component in
3445
- * `matched` is rendered. rvd stands for Router View Depth
3446
- *
3447
- * @internal
3448
- */
3449
- var viewDepthKey = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
3450
- Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
3451
- /**
3452
- * Allows overriding the current route returned by `useRoute` in tests. rl
3453
- * stands for route location
3454
- *
3455
- * @internal
3456
- */
3457
- var routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
3458
- /**
3459
- * Allows overriding the current route used by router-view. Internally this is
3460
- * used when the `route` prop is passed.
3461
- *
3462
- * @internal
3463
- */
3464
- var routerViewLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
3465
- /**
3466
- * Returns the current route location. Equivalent to using `$route` inside
3467
- * templates.
3468
- */
3469
- function useRoute(_name) {
3470
- return inject(routeLocationKey);
3471
- }
3472
- //#endregion
3473
- //#region ../../node_modules/.bun/vue-router@5.0.6+b33d84df931f4fef/node_modules/vue-router/dist/devtools-BPov6AZY.js
3474
- function warn$1(msg) {
3475
- const args = Array.from(arguments).slice(1);
3476
- console.warn.apply(console, ["[Vue Router warn]: " + msg].concat(args));
3477
- }
3478
- /**
3479
- * Check if two `RouteRecords` are equal. Takes into account aliases: they are
3480
- * considered equal to the `RouteRecord` they are aliasing.
3481
- *
3482
- * @param a - first {@link RouteRecord}
3483
- * @param b - second {@link RouteRecord}
3484
- */
3485
- function isSameRouteRecord(a, b) {
3486
- return (a.aliasOf || a) === (b.aliasOf || b);
3487
- }
3488
- (/* @__PURE__ */ (function(TokenType) {
3489
- TokenType[TokenType["Static"] = 0] = "Static";
3490
- TokenType[TokenType["Param"] = 1] = "Param";
3491
- TokenType[TokenType["Group"] = 2] = "Group";
3492
- return TokenType;
3493
- })({})).Static;
3494
- var RouterViewImpl = /* @__PURE__ */ defineComponent({
3495
- name: "RouterView",
3496
- inheritAttrs: false,
3497
- props: {
3498
- name: {
3499
- type: String,
3500
- default: "default"
3501
- },
3502
- route: Object
3503
- },
3504
- compatConfig: { MODE: 3 },
3505
- setup(props, { attrs, slots }) {
3506
- process.env.NODE_ENV !== "production" && warnDeprecatedUsage();
3507
- const injectedRoute = inject(routerViewLocationKey);
3508
- const routeToDisplay = computed(() => props.route || injectedRoute.value);
3509
- const injectedDepth = inject(viewDepthKey, 0);
3510
- const depth = computed(() => {
3511
- let initialDepth = unref(injectedDepth);
3512
- const { matched } = routeToDisplay.value;
3513
- let matchedRoute;
3514
- while ((matchedRoute = matched[initialDepth]) && !matchedRoute.components) initialDepth++;
3515
- return initialDepth;
3516
- });
3517
- const matchedRouteRef = computed(() => routeToDisplay.value.matched[depth.value]);
3518
- provide(viewDepthKey, computed(() => depth.value + 1));
3519
- provide(matchedRouteKey, matchedRouteRef);
3520
- provide(routerViewLocationKey, routeToDisplay);
3521
- const viewRef = ref();
3522
- watch(() => [
3523
- viewRef.value,
3524
- matchedRouteRef.value,
3525
- props.name
3526
- ], ([instance, to, name], [oldInstance, from, _oldName]) => {
3527
- if (to) {
3528
- to.instances[name] = instance;
3529
- if (from && from !== to && instance && instance === oldInstance) {
3530
- if (!to.leaveGuards.size) to.leaveGuards = from.leaveGuards;
3531
- if (!to.updateGuards.size) to.updateGuards = from.updateGuards;
3532
- }
3533
- }
3534
- if (instance && to && (!from || !isSameRouteRecord(to, from) || !oldInstance)) (to.enterCallbacks[name] || []).forEach((callback) => callback(instance));
3535
- }, { flush: "post" });
3536
- return () => {
3537
- const route = routeToDisplay.value;
3538
- const currentName = props.name;
3539
- const matchedRoute = matchedRouteRef.value;
3540
- const ViewComponent = matchedRoute && matchedRoute.components[currentName];
3541
- if (!ViewComponent) return normalizeSlot(slots.default, {
3542
- Component: ViewComponent,
3543
- route
3544
- });
3545
- const routePropsOption = matchedRoute.props[currentName];
3546
- const routeProps = routePropsOption ? routePropsOption === true ? route.params : typeof routePropsOption === "function" ? routePropsOption(route) : routePropsOption : null;
3547
- const onVnodeUnmounted = (vnode) => {
3548
- if (vnode.component.isUnmounted) matchedRoute.instances[currentName] = null;
3549
- };
3550
- const component = h(ViewComponent, assign({}, routeProps, attrs, {
3551
- onVnodeUnmounted,
3552
- ref: viewRef
3553
- }));
3554
- if ((process.env.NODE_ENV !== "production" || false) && isBrowser && component.ref) {
3555
- const info = {
3556
- depth: depth.value,
3557
- name: matchedRoute.name,
3558
- path: matchedRoute.path,
3559
- meta: matchedRoute.meta
3560
- };
3561
- (isArray(component.ref) ? component.ref.map((r) => r.i) : [component.ref.i]).forEach((instance) => {
3562
- instance.__vrv_devtools = info;
3563
- });
3564
- }
3565
- return normalizeSlot(slots.default, {
3566
- Component: component,
3567
- route
3568
- }) || component;
3569
- };
3570
- }
3571
- });
3572
- function normalizeSlot(slot, data) {
3573
- if (!slot) return null;
3574
- const slotContent = slot(data);
3575
- return slotContent.length === 1 ? slotContent[0] : slotContent;
3576
- }
3577
- /**
3578
- * Component to display the current route the user is at.
3579
- */
3580
- var RouterView = RouterViewImpl;
3581
- function warnDeprecatedUsage() {
3582
- const instance = getCurrentInstance();
3583
- const parentName = instance.parent && instance.parent.type.name;
3584
- const parentSubTreeType = instance.parent && instance.parent.subTree && instance.parent.subTree.type;
3585
- if (parentName && (parentName === "KeepAlive" || parentName.includes("Transition")) && typeof parentSubTreeType === "object" && parentSubTreeType.name === "RouterView") {
3586
- const comp = parentName === "KeepAlive" ? "keep-alive" : "transition";
3587
- warn$1(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
3588
- Use slot props instead:
3589
-
3590
- <router-view v-slot="{ Component }">
3591
- <${comp}>\n <component :is="Component" />\n </${comp}>\n</router-view>`);
3592
- }
3593
- }
3594
3404
  converter(`oklch`);
3595
3405
  RegExp(`[a-z]`), RegExp(`[A-Z]`), RegExp(`[0-9]`), RegExp(`[!"#$%&'()*+,-./:;<=>?@[\\\\\\]^_\`{|}~]`);
3596
3406
  //#endregion