bitboss-ui 1.0.54 → 1.0.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/index105.js +3 -3
- package/dist/index113.js +1 -1
- package/dist/index115.js +4 -4
- package/dist/index117.js +1 -1
- package/dist/index12.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index14.js +3 -3
- package/dist/index16.js +1 -1
- package/dist/index18.js +8 -8
- package/dist/index198.js +2 -2
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +4 -3
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +11 -11
- package/dist/index200.js +2 -3
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +2 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +174 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +5 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +16 -26
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +14 -172
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +19 -5
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +17 -13
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +26 -13
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +8 -19
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +2 -20
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -29
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +3 -8
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +35 -2
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +6 -122
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +7 -134
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +3 -2
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +3 -35
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +114 -166
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +134 -6
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +4 -4
- package/dist/index220.js +2 -369
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +163 -416
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +369 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +427 -7
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +26 -5
- package/dist/index224.js.map +1 -1
- package/dist/index232.js +74 -219
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +6 -258
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +17 -4
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +11 -1
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +23 -7
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +4 -295
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -6
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +295 -2
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.js +6 -2
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -2
- package/dist/index245.js +2 -6
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -17
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +428 -72
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +88 -8
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +224 -23
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +258 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +68 -105
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +5 -435
- package/dist/index252.js.map +1 -1
- package/dist/index254.js +2 -118
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +105 -88
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +1 -7
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +7 -2
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +117 -68
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +1 -1
- package/dist/index26.js +6 -5
- package/dist/index26.js.map +1 -1
- package/dist/index264.js +2 -2
- package/dist/index265.js +2 -2
- package/dist/index28.js +2 -2
- package/dist/index30.js +1 -1
- package/dist/index32.js +3 -3
- package/dist/index34.js +6 -6
- package/dist/index36.js +2 -2
- package/dist/index38.js +2 -2
- package/dist/index40.js +1 -1
- package/dist/index42.js +1 -1
- package/dist/index46.js +3 -3
- package/dist/index46.js.map +1 -1
- package/dist/index52.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index70.js +5 -5
- package/dist/index74.js +2 -2
- package/dist/index76.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index83.js +4 -4
- package/dist/index85.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index105.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as q, computed as p, onMounted as de, watch as J, openBlock as n, createBlock as be, resolveDynamicComponent as re, normalizeClass as f, withCtx as ue, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, unref as C, createVNode as j, Fragment as N, renderList as S, createTextVNode as pe, mergeProps as fe } from "vue";
|
|
2
|
-
import { add as me } from "./
|
|
3
|
-
import { clamp as ye } from "./
|
|
2
|
+
import { add as me } from "./index238.js";
|
|
3
|
+
import { clamp as ye } from "./index201.js";
|
|
4
4
|
import { deepEqual as K } from "./index225.js";
|
|
5
5
|
import { isNil as x } from "./index124.js";
|
|
6
6
|
import { isNotNil as he } from "./index129.js";
|
|
7
7
|
import { useId as _e } from "./index7.js";
|
|
8
8
|
import { useItemValue as ke } from "./index228.js";
|
|
9
|
-
import { when as ge } from "./
|
|
9
|
+
import { when as ge } from "./index199.js";
|
|
10
10
|
import Q from "./index14.js";
|
|
11
11
|
import "./index15.js";
|
|
12
12
|
import ve from "./index28.js";
|
package/dist/index113.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as d, Fragment as f, renderList as _, unref as r, mergeProps as b } from "vue";
|
|
2
2
|
import { state as k, useToast as C } from "./index10.js";
|
|
3
|
-
import B from "./
|
|
3
|
+
import B from "./index251.js";
|
|
4
4
|
const N = /* @__PURE__ */ s({
|
|
5
5
|
__name: "BbToast",
|
|
6
6
|
props: {
|
package/dist/index115.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as A, ref as o, computed as $, watch as I, openBlock as b, createElementBlock as D, mergeProps as L, createElementVNode as c, renderSlot as M, normalizeProps as R, guardReactiveProps as U, unref as u, createBlock as O, Teleport as W, normalizeClass as j, normalizeStyle as q, withCtx as G, createCommentVNode as P } from "vue";
|
|
2
|
-
import { useFloating as J, arrow as K } from "./
|
|
2
|
+
import { useFloating as J, arrow as K } from "./index218.js";
|
|
3
3
|
import { useId as Q } from "./index7.js";
|
|
4
4
|
import { wait as T } from "./index126.js";
|
|
5
5
|
import X from "./index12.js";
|
|
6
6
|
import "./index13.js";
|
|
7
|
-
import { throttle as w } from "./
|
|
8
|
-
import { waitFor as Y } from "./
|
|
9
|
-
import { autoUpdate as Z, flip as ee, shift as te, hide as oe } from "./
|
|
7
|
+
import { throttle as w } from "./index212.js";
|
|
8
|
+
import { waitFor as Y } from "./index214.js";
|
|
9
|
+
import { autoUpdate as Z, flip as ee, shift as te, hide as oe } from "./index222.js";
|
|
10
10
|
const ae = { class: "bb-tooltip__bubble" }, ne = /* @__PURE__ */ c("svg", {
|
|
11
11
|
fill: "none",
|
|
12
12
|
viewBox: "0 0 24 24",
|
package/dist/index117.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as v, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as p, createVNode as k, createSlots as B, withCtx as C, normalizeProps as T, guardReactiveProps as _ } from "vue";
|
|
2
|
-
import { flattenTree as P } from "./
|
|
2
|
+
import { flattenTree as P } from "./index252.js";
|
|
3
3
|
const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
|
|
4
4
|
__name: "BbTree",
|
|
5
5
|
props: {
|
package/dist/index12.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, getCurrentInstance as d, computed as s, resolveComponent as p, openBlock as k, createBlock as h, resolveDynamicComponent as C, mergeProps as x, withCtx as S, renderSlot as L, createTextVNode as B, toDisplayString as N } from "vue";
|
|
2
2
|
import { _config as n } from "./index3.js";
|
|
3
|
-
import { useLogger as b } from "./
|
|
3
|
+
import { useLogger as b } from "./index211.js";
|
|
4
4
|
const A = /* @__PURE__ */ y({
|
|
5
5
|
__name: "BaseButton",
|
|
6
6
|
props: {
|
package/dist/index121.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
|
|
2
|
-
import { isCssColor as z } from "./
|
|
2
|
+
import { isCssColor as z } from "./index198.js";
|
|
3
3
|
const g = ["innerHTML"], $ = /* @__PURE__ */ m({
|
|
4
4
|
__name: "BbIcon",
|
|
5
5
|
props: {
|
package/dist/index122.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
|
|
2
|
-
import { throttle as g } from "./
|
|
2
|
+
import { throttle as g } from "./index212.js";
|
|
3
3
|
const O = /* @__PURE__ */ v({
|
|
4
4
|
__name: "BbSmoothHeight",
|
|
5
5
|
props: {
|
package/dist/index123.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, computed as l, openBlock as _, createElementBlock as a, normalizeProps as b, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
|
2
|
-
import { isCssColor as d } from "./
|
|
2
|
+
import { isCssColor as d } from "./index198.js";
|
|
3
3
|
const u = /* @__PURE__ */ m('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle class="bb-spinner__circle" cx="12" cy="3" r="0"></circle><circle class="bb-spinner__circle circle--1" cx="16.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--2" cx="7.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--3" cx="19.79" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--4" cx="4.21" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--5" cx="21.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--6" cx="3.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--7" cx="19.79" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--8" cx="4.21" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--9" cx="16.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--10" cx="7.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--11" cx="12" cy="21" r="0"></circle></svg>', 1), y = [
|
|
4
4
|
u
|
|
5
5
|
], g = /* @__PURE__ */ p({
|
package/dist/index125.js
CHANGED
package/dist/index14.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, ref as b, computed as n, watch as E, openBlock as m, createElementBlock as p, normalizeProps as c, guardReactiveProps as h, mergeProps as f, createCommentVNode as I, createElementVNode as r, renderSlot as F } from "vue";
|
|
2
|
-
import { isCssColor as k } from "./
|
|
3
|
-
import { when as N } from "./
|
|
4
|
-
import { booleanishToBoolean as S } from "./
|
|
2
|
+
import { isCssColor as k } from "./index198.js";
|
|
3
|
+
import { when as N } from "./index199.js";
|
|
4
|
+
import { booleanishToBoolean as S } from "./index200.js";
|
|
5
5
|
const A = {
|
|
6
6
|
"aria-hidden": "true",
|
|
7
7
|
class: "bb-base-checkbox-container"
|
package/dist/index16.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as y, toRef as l, openBlock as c, createElementBlock as r, normalizeClass as p, createElementVNode as g, renderSlot as n, unref as i, createTextVNode as k, toDisplayString as v, createCommentVNode as w, Fragment as V, renderList as z, createVNode as S, mergeProps as T, withCtx as F } from "vue";
|
|
2
|
-
import { useOptions as N } from "./
|
|
2
|
+
import { useOptions as N } from "./index202.js";
|
|
3
3
|
import I from "./index14.js";
|
|
4
4
|
import "./index15.js";
|
|
5
5
|
const M = { class: "bb-base-checkbox-group__container" }, H = {
|
package/dist/index18.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Ve, ref as k, computed as p, watch as F, nextTick as U, openBlock as d, createElementBlock as u, mergeProps as Se, createElementVNode as r, createTextVNode as De, toDisplayString as f, unref as y, withDirectives as q, createVNode as V, Transition as S, withCtx as D, vShow as j, createCommentVNode as Y, normalizeClass as g, Fragment as w, renderList as O, renderSlot as G } from "vue";
|
|
2
|
-
import i from "./
|
|
3
|
-
import Me from "./
|
|
4
|
-
import Ae from "./
|
|
5
|
-
import xe from "./
|
|
6
|
-
import Ce from "./
|
|
7
|
-
import Ye from "./
|
|
8
|
-
import { groupBy as J } from "./
|
|
2
|
+
import i from "./index203.js";
|
|
3
|
+
import Me from "./index204.js";
|
|
4
|
+
import Ae from "./index205.js";
|
|
5
|
+
import xe from "./index206.js";
|
|
6
|
+
import Ce from "./index207.js";
|
|
7
|
+
import Ye from "./index208.js";
|
|
8
|
+
import { groupBy as J } from "./index209.js";
|
|
9
9
|
import { isNil as Be } from "./index124.js";
|
|
10
|
-
import { last as Q } from "./
|
|
10
|
+
import { last as Q } from "./index210.js";
|
|
11
11
|
const Ie = { class: "bb-base-date-picker__header" }, Ee = ["disabled"], Ne = /* @__PURE__ */ r("span", null, null, -1), Te = {
|
|
12
12
|
"aria-live": "polite",
|
|
13
13
|
class: "bb-base-date-picker__selected-day-label"
|
package/dist/index198.js
CHANGED
package/dist/index198.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index198.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index198.js","sources":["../src/utilities/functions/isCssColor.ts"],"sourcesContent":["/**\n * Taken from vuetify colorable mixin\n * https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/mixins/colorable/index.ts\n */\nexport const isCssColor = (color: string): boolean => {\n\treturn !!color && !!color.match(/^(#|var\\(--|(rgb|hsl)a?\\()/);\n};\n"],"names":["isCssColor","color"],"mappings":"AAIa,MAAAA,IAAa,CAACC,MACnB,CAAC,CAACA,KAAS,CAAC,CAACA,EAAM,MAAM,4BAA4B;"}
|
package/dist/index199.js
CHANGED
package/dist/index199.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index199.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index199.js","sources":["../src/utilities/functions/when.ts"],"sourcesContent":["import { curry } from './curry';\n/**\n * Runs fn on item if iteratee(item) is thruthy\n * @param iteratee The test\n * @param item The item to test\n * @param fn The transformer function\n * @returns\n */\nexport const baseWhen = <T, U>(\n\titeratee: (item: T) => boolean,\n\tfn: (item: T) => U,\n\titem: T\n) => {\n\tif (iteratee(item)) return fn(item);\n\treturn item;\n};\n\nexport const when = curry(baseWhen);\n"],"names":["baseWhen","iteratee","fn","item","when","curry"],"mappings":";AAQO,MAAMA,IAAW,CACvBC,GACAC,GACAC,MAEIF,EAASE,CAAI,IAAUD,EAAGC,CAAI,IAC3BA,GAGKC,IAAOC,EAAML,CAAQ;"}
|
package/dist/index20.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as te, ref as n, computed as p, watch as ne, openBlock as z, createElementBlock as re, normalizeClass as L, renderSlot as m, createElementVNode as o, withDirectives as le, mergeProps as F, unref as f, toDisplayString as I, createBlock as oe, Teleport as ie, normalizeStyle as se, createVNode as ue, createSlots as de, renderList as ce, withCtx as pe, normalizeProps as me, guardReactiveProps as fe, createCommentVNode as be } from "vue";
|
|
2
|
-
import { useFloating as ve } from "./
|
|
3
|
-
import l from "./
|
|
4
|
-
import ye from "./
|
|
5
|
-
import ge from "./
|
|
6
|
-
import { identity as he } from "./
|
|
7
|
-
import { last as ke } from "./
|
|
8
|
-
import { useFocusTrap as Me } from "./
|
|
2
|
+
import { useFloating as ve } from "./index218.js";
|
|
3
|
+
import l from "./index203.js";
|
|
4
|
+
import ye from "./index219.js";
|
|
5
|
+
import ge from "./index206.js";
|
|
6
|
+
import { identity as he } from "./index220.js";
|
|
7
|
+
import { last as ke } from "./index210.js";
|
|
8
|
+
import { useFocusTrap as Me } from "./index213.js";
|
|
9
9
|
import { useId as we } from "./index7.js";
|
|
10
10
|
import { useIntersectionObserver as Ve } from "./index127.js";
|
|
11
11
|
import { useMobile as _e } from "./index8.js";
|
|
12
|
-
import { vMaska as Ye } from "./
|
|
12
|
+
import { vMaska as Ye } from "./index221.js";
|
|
13
13
|
import { wait as A } from "./index126.js";
|
|
14
|
-
import { waitFor as De } from "./
|
|
14
|
+
import { waitFor as De } from "./index214.js";
|
|
15
15
|
import Ae from "./index18.js";
|
|
16
16
|
import "./index19.js";
|
|
17
|
-
import { autoUpdate as Se, flip as Ce, shift as Oe, hide as $e } from "./
|
|
18
|
-
import { offset as Ee } from "./
|
|
17
|
+
import { autoUpdate as Se, flip as Ce, shift as Oe, hide as $e } from "./index222.js";
|
|
18
|
+
import { offset as Ee } from "./index223.js";
|
|
19
19
|
const Be = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "value"], ze = ["disabled"], Le = /* @__PURE__ */ o("svg", {
|
|
20
20
|
viewBox: "-2 -3 24 24",
|
|
21
21
|
xmlns: "http://www.w3.org/2000/svg"
|
package/dist/index200.js
CHANGED
package/dist/index200.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index200.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index200.js","sources":["../src/utilities/functions/booleanishToBoolean.ts"],"sourcesContent":["/**\n * Accepts a booleanish input and returns a boolean value\n * @param input booleanish input\n * @returns\n */\nexport const booleanishToBoolean = (input: boolean | 'true' | 'false') => {\n\tif (typeof input === 'boolean') return input;\n\telse return input === 'true';\n};\n"],"names":["booleanishToBoolean","input"],"mappings":"AAKa,MAAAA,IAAsB,CAACC,MAC/B,OAAOA,KAAU,YAAkBA,IAC3BA,MAAU;"}
|
package/dist/index201.js
CHANGED
package/dist/index201.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index201.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index201.js","sources":["../src/utilities/functions/clamp.ts"],"sourcesContent":["/**\n * Returns value ensuring it doesn't go below min and exceed max.\n * EXAMPLE: clamp(5, 7, 20) === 7\n * @param value The value to clamp\n * @param min Minimum bound\n * @param max Maximum bound\n * @returns\n */\n\nexport const clamp = (value: number, min: number, max: number) => {\n\treturn Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MAC1C,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
|
package/dist/index202.js
CHANGED
|
@@ -1,7 +1,177 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ref as _, computed as T, watch as h } from "vue";
|
|
2
|
+
import { deepEqual as j } from "./index225.js";
|
|
3
|
+
import { isNotNil as o } from "./index129.js";
|
|
4
|
+
import { useItemText as D } from "./index227.js";
|
|
5
|
+
import { useItemValue as G } from "./index228.js";
|
|
6
|
+
const U = ({
|
|
7
|
+
/** Component dependencies */
|
|
8
|
+
dependencies: q,
|
|
9
|
+
/** Time the component will wait before triggering a response from changed dependencies */
|
|
10
|
+
depsDebounceTime: b,
|
|
11
|
+
/** Boolean, flag if the component is disabled, as a whole */
|
|
12
|
+
disabled: g,
|
|
13
|
+
/** Function used to emit update:modelValue */
|
|
14
|
+
emitter: l,
|
|
15
|
+
/** Flag to enforce coherence between the items and modelValue. If `enforceCoherence` is active whenever a change made to props would result in a modelValue that is not present among the selectable items, it will be reset */
|
|
16
|
+
enforceCoherence: f,
|
|
17
|
+
/** ID of the component */
|
|
18
|
+
id: E,
|
|
19
|
+
/** Flag to trigger immediate search for the items on first load. If set to false items are not retrieved until a change to props happens or getOptions is called */
|
|
20
|
+
immediate: S,
|
|
21
|
+
/** Items from which to compute options */
|
|
22
|
+
initialItems: i,
|
|
23
|
+
/** Transformer to obtain a text label for the item */
|
|
24
|
+
itemText: k,
|
|
25
|
+
/** Transformer to obtain a value for the option */
|
|
26
|
+
itemValue: B,
|
|
27
|
+
/** Strategy used to identify unique objects in the component */
|
|
28
|
+
matchStrategy: d,
|
|
29
|
+
/** modelValue of the component */
|
|
30
|
+
modelValue: u,
|
|
31
|
+
/** Time the component will wait before triggering a response from changed modelValue */
|
|
32
|
+
modelValueDebounceTime: P,
|
|
33
|
+
multiple: p
|
|
34
|
+
}) => {
|
|
35
|
+
const y = _(0), A = _([]), v = async ({ prefill: e = !1 }) => {
|
|
36
|
+
let t = [];
|
|
37
|
+
Array.isArray(i.value) ? t = i.value : typeof i.value == "function" && (y.value++, t = await i.value(e, u.value), y.value--), A.value = t;
|
|
38
|
+
}, { getItemText: R } = D(), { getItemValue: W } = G(), w = T(() => A.value.map((e, t) => {
|
|
39
|
+
const n = R(e, k), r = W(e, B);
|
|
40
|
+
if (r === void 0)
|
|
41
|
+
throw new Error(
|
|
42
|
+
'The result of extracting "value" from option was undefined. Affected item is ' + JSON.stringify(e) + " please check itemValue property is correct."
|
|
43
|
+
);
|
|
44
|
+
const s = JSON.stringify(r), c = e, I = !!(g != null && g.value || e != null && e.disabled);
|
|
45
|
+
let x;
|
|
46
|
+
(E || e != null && e.id) && (x = [E, o(e == null ? void 0 : e.id) ? e.id : s.replace(/\W/g, "_")].filter(o).join("_"));
|
|
47
|
+
const J = z.value.get(r);
|
|
48
|
+
return o(J) ? {
|
|
49
|
+
disabled: I,
|
|
50
|
+
id: x,
|
|
51
|
+
index: t,
|
|
52
|
+
jsonValue: s,
|
|
53
|
+
original: c,
|
|
54
|
+
selected: !0,
|
|
55
|
+
selectedIndex: J,
|
|
56
|
+
text: n,
|
|
57
|
+
value: r
|
|
58
|
+
} : {
|
|
59
|
+
disabled: I,
|
|
60
|
+
id: x,
|
|
61
|
+
index: t,
|
|
62
|
+
jsonValue: s,
|
|
63
|
+
original: c,
|
|
64
|
+
selected: !1,
|
|
65
|
+
selectedIndex: J,
|
|
66
|
+
text: n,
|
|
67
|
+
value: r
|
|
68
|
+
};
|
|
69
|
+
})), a = T(() => {
|
|
70
|
+
if (d === "string") {
|
|
71
|
+
const e = w.value.reduce(
|
|
72
|
+
(t, n) => (t[n.jsonValue] = n, t),
|
|
73
|
+
{}
|
|
74
|
+
);
|
|
75
|
+
return {
|
|
76
|
+
get: (t) => e[JSON.stringify(t)]
|
|
77
|
+
};
|
|
78
|
+
} else if (d === "equality") {
|
|
79
|
+
const e = w.value.map((t) => [
|
|
80
|
+
t.value,
|
|
81
|
+
t
|
|
82
|
+
]);
|
|
83
|
+
return {
|
|
84
|
+
get: (t) => {
|
|
85
|
+
var n;
|
|
86
|
+
return (n = e.find((r) => j(r[0], t))) == null ? void 0 : n[1];
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
} else
|
|
90
|
+
throw new Error("No match strategy has been defined");
|
|
91
|
+
}), z = T(() => {
|
|
92
|
+
if (d === "string") {
|
|
93
|
+
const e = {};
|
|
94
|
+
return [].concat(u.value).forEach((t, n) => {
|
|
95
|
+
e[JSON.stringify(t)] = n;
|
|
96
|
+
}), {
|
|
97
|
+
get: (t) => e[JSON.stringify(t)]
|
|
98
|
+
};
|
|
99
|
+
} else if (d === "equality") {
|
|
100
|
+
const e = [].concat(u.value).map((t, n) => [t, n]);
|
|
101
|
+
return {
|
|
102
|
+
get: (t) => {
|
|
103
|
+
var n;
|
|
104
|
+
return (n = e.find((r) => j(r[0], t))) == null ? void 0 : n[1];
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
} else
|
|
108
|
+
throw new Error("No match strategy has been defined");
|
|
109
|
+
});
|
|
110
|
+
let N, F = !1;
|
|
111
|
+
h(
|
|
112
|
+
u,
|
|
113
|
+
(e, t) => {
|
|
114
|
+
N && clearTimeout(N), N = setTimeout(
|
|
115
|
+
async () => {
|
|
116
|
+
if (F = !0, p) {
|
|
117
|
+
if (!Array.isArray(u.value))
|
|
118
|
+
throw new Error("Passed modelValue is not an array.");
|
|
119
|
+
let n = u.value.every(
|
|
120
|
+
(r) => a.value.get(r)
|
|
121
|
+
);
|
|
122
|
+
if ((!n || t === void 0) && (await v({ prefill: !0 }), n = u.value.every(
|
|
123
|
+
(r) => a.value.get(r)
|
|
124
|
+
)), !n) {
|
|
125
|
+
const r = e.filter((s) => a.value.get(s));
|
|
126
|
+
f.value && l(r);
|
|
127
|
+
}
|
|
128
|
+
} else {
|
|
129
|
+
let n = a.value.get(u.value);
|
|
130
|
+
(!n && o(u.value) || t === void 0) && await v({ prefill: !0 }), n = a.value.get(u.value), n || f.value && o(e) && l(null);
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
F || !S ? P : 0
|
|
134
|
+
);
|
|
135
|
+
},
|
|
136
|
+
// Immediate here triggers first search for items
|
|
137
|
+
{ immediate: S, deep: !0 }
|
|
138
|
+
), h(i, async (e, t) => {
|
|
139
|
+
if (typeof e == "function" || // Circumvent arrays defined in the template by the parent
|
|
140
|
+
JSON.stringify(e) !== JSON.stringify(t))
|
|
141
|
+
if (await v({ prefill: !0 }), p) {
|
|
142
|
+
if (!u.value.every(
|
|
143
|
+
(r) => a.value.get(r)
|
|
144
|
+
) && f.value) {
|
|
145
|
+
const r = u.value.filter((s) => a.value.get(s));
|
|
146
|
+
l(r);
|
|
147
|
+
}
|
|
148
|
+
} else
|
|
149
|
+
!a.value.get(u.value) && f && o(u.value) && l(null);
|
|
150
|
+
});
|
|
151
|
+
let O;
|
|
152
|
+
return h(
|
|
153
|
+
q,
|
|
154
|
+
(e, t) => {
|
|
155
|
+
JSON.stringify(e) !== JSON.stringify(t) && (O && clearTimeout(O), O = setTimeout(async () => {
|
|
156
|
+
if (await v({ prefill: !0 }), p) {
|
|
157
|
+
if (!u.value.every(
|
|
158
|
+
(r) => a.value.get(r)
|
|
159
|
+
) && f) {
|
|
160
|
+
const r = u.value.filter((s) => a.value.get(s));
|
|
161
|
+
l(r);
|
|
162
|
+
}
|
|
163
|
+
} else
|
|
164
|
+
!a.value.get(u.value) && f && o(u.value) && l(null);
|
|
165
|
+
}, b));
|
|
166
|
+
},
|
|
167
|
+
{ deep: !0 }
|
|
168
|
+
), {
|
|
169
|
+
getOptions: v,
|
|
170
|
+
loading: y,
|
|
171
|
+
options: w
|
|
172
|
+
};
|
|
173
|
+
};
|
|
3
174
|
export {
|
|
4
|
-
|
|
5
|
-
s as when
|
|
175
|
+
U as useOptions
|
|
6
176
|
};
|
|
7
177
|
//# sourceMappingURL=index202.js.map
|
package/dist/index202.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index202.js","sources":["../src/utilities/functions/when.ts"],"sourcesContent":["import { curry } from './curry';\n/**\n * Runs fn on item if iteratee(item) is thruthy\n * @param iteratee The test\n * @param item The item to test\n * @param fn The transformer function\n * @returns\n */\nexport const baseWhen = <T, U>(\n\titeratee: (item: T) => boolean,\n\tfn: (item: T) => U,\n\titem: T\n) => {\n\tif (iteratee(item)) return fn(item);\n\treturn item;\n};\n\nexport const when = curry(baseWhen);\n"],"names":["baseWhen","iteratee","fn","item","when","curry"],"mappings":";AAQO,MAAMA,IAAW,CACvBC,GACAC,GACAC,MAEIF,EAASE,CAAI,IAAUD,EAAGC,CAAI,IAC3BA,GAGKC,IAAOC,EAAML,CAAQ;"}
|
|
1
|
+
{"version":3,"file":"index202.js","sources":["../src/composables/useOptions.ts"],"sourcesContent":["import { computed, ref, watch } from 'vue';\nimport { deepEqual } from 'fast-equals';\nimport { isNotNil } from '@/utilities/functions/isNotNil';\nimport { useItemText } from '@/composables/useItemText';\nimport { useItemValue } from '@/composables/useItemValue';\nimport type { CommonProps } from '@/types/CommonProps';\nimport type { Ref } from 'vue';\n\nexport type BaseOption = {\n\tdisabled?: boolean;\n\tid?: string;\n\tjsonValue: string;\n\tname?: string;\n\toriginal: any;\n\treadonly?: boolean;\n\ttext: string;\n\tvalue: any;\n};\n\nexport type Option = BaseOption & { index: number } & (\n\t\t| {\n\t\t\t\tselected: true;\n\t\t\t\tselectedIndex: number;\n\t\t }\n\t\t| {\n\t\t\t\tselected: false;\n\t\t\t\tselectedIndex: undefined;\n\t\t }\n\t);\n\ntype Params = {\n\tdependencies: Ref<any[] | undefined>;\n\tdepsDebounceTime: number;\n\tdisabled?: Ref<boolean>;\n\temitter: (...args: any[]) => any;\n\tenforceCoherence: Ref<boolean>;\n\tid?: string;\n\timmediate: boolean;\n\tinitialItems: Ref<\n\t\t| any[]\n\t\t| ((prefill: boolean, modelValue?: any[]) => Promise<any[]>)\n\t\t| ((prefill: boolean, modelValue?: any[]) => any[])\n\t>;\n\titemText?: string | ((item: any) => string);\n\titemValue?: string | ((item: any) => any);\n\tmatchStrategy: Exclude<CommonProps['matchStrategy'], undefined>;\n\tmodelValue: Ref<any>;\n\tmodelValueDebounceTime: number;\n\tmultiple?: boolean;\n};\n\nexport const useOptions = ({\n\t/** Component dependencies */\n\tdependencies,\n\t/** Time the component will wait before triggering a response from changed dependencies */\n\tdepsDebounceTime,\n\t/** Boolean, flag if the component is disabled, as a whole */\n\tdisabled,\n\t/** Function used to emit update:modelValue */\n\temitter,\n\t/** Flag to enforce coherence between the items and modelValue. If `enforceCoherence` is active whenever a change made to props would result in a modelValue that is not present among the selectable items, it will be reset */\n\tenforceCoherence,\n\t/** ID of the component */\n\tid,\n\t/** Flag to trigger immediate search for the items on first load. If set to false items are not retrieved until a change to props happens or getOptions is called */\n\timmediate,\n\t/** Items from which to compute options */\n\tinitialItems,\n\t/** Transformer to obtain a text label for the item */\n\titemText,\n\t/** Transformer to obtain a value for the option */\n\titemValue,\n\t/** Strategy used to identify unique objects in the component */\n\tmatchStrategy,\n\t/** modelValue of the component */\n\tmodelValue,\n\t/** Time the component will wait before triggering a response from changed modelValue */\n\tmodelValueDebounceTime,\n\tmultiple,\n}: Params) => {\n\t/**\n\t * Loading is a counter so it can be accumulated\n\t */\n\tconst loading = ref(0);\n\n\t/**\n\t * Items as retrieved from outside\n\t */\n\tconst internalItems = ref<BaseOption[]>([]);\n\n\t/**\n\t * The option getter\n\t * @param options\n\t */\n\tconst getOptions = async ({ prefill = false }) => {\n\t\tlet items = [];\n\t\tif (Array.isArray(initialItems.value)) {\n\t\t\titems = initialItems.value;\n\t\t} else {\n\t\t\tif (typeof initialItems.value === 'function') {\n\t\t\t\tloading.value++;\n\t\t\t\titems = await initialItems.value(prefill, modelValue.value);\n\t\t\t\tloading.value--;\n\t\t\t}\n\t\t}\n\t\tinternalItems.value = items;\n\t};\n\n\t/**\n\t * Map the items returned from outside to a set of useful information.\n\t * If a value can't be obtained throw an error\n\t */\n\tconst { getItemText } = useItemText();\n\tconst { getItemValue } = useItemValue();\n\tconst options = computed<Option[]>(() => {\n\t\treturn internalItems.value.map((item: any, index: number) => {\n\t\t\tconst text = getItemText(item, itemText);\n\t\t\tconst value = getItemValue(item, itemValue);\n\n\t\t\t// Undefined is not JSONable\n\t\t\tif (value === undefined)\n\t\t\t\tthrow new Error(\n\t\t\t\t\t'The result of extracting \"value\" from option was undefined. Affected item is ' +\n\t\t\t\t\t\tJSON.stringify(item) +\n\t\t\t\t\t\t' please check itemValue property is correct.'\n\t\t\t\t);\n\n\t\t\tconst jsonValue = JSON.stringify(value);\n\t\t\tconst original = item;\n\t\t\tconst _disabled = !!(disabled?.value || item?.disabled);\n\n\t\t\tlet _id;\n\n\t\t\t// Props that are handled externally\n\t\t\tif (id || item?.id) {\n\t\t\t\t_id = [id, isNotNil(item?.id) ? item.id : jsonValue.replace(/\\W/g, '_')]\n\t\t\t\t\t.filter(isNotNil)\n\t\t\t\t\t.join('_');\n\t\t\t}\n\n\t\t\tconst selectedIndex = modelValueIndexed.value.get(value);\n\n\t\t\t// Workaround for TS discriminated union not being resolved\n\t\t\tif (isNotNil(selectedIndex))\n\t\t\t\treturn {\n\t\t\t\t\tdisabled: _disabled,\n\t\t\t\t\tid: _id,\n\t\t\t\t\tindex,\n\t\t\t\t\tjsonValue,\n\t\t\t\t\toriginal,\n\t\t\t\t\tselected: true,\n\t\t\t\t\tselectedIndex,\n\t\t\t\t\ttext,\n\t\t\t\t\tvalue,\n\t\t\t\t};\n\n\t\t\treturn {\n\t\t\t\tdisabled: _disabled,\n\t\t\t\tid: _id,\n\t\t\t\tindex,\n\t\t\t\tjsonValue,\n\t\t\t\toriginal,\n\t\t\t\tselected: false,\n\t\t\t\tselectedIndex,\n\t\t\t\ttext,\n\t\t\t\tvalue,\n\t\t\t};\n\t\t});\n\t});\n\n\t/**\n\t * Indexes options by their value\n\t * (using JSON to circumvent identical objects not being equal in JS)\n\t */\n\tconst optionsIndexedByValue = computed(() => {\n\t\tif (matchStrategy === 'string') {\n\t\t\tconst indexed = options.value.reduce(\n\t\t\t\t(acc: { [key: string]: BaseOption }, curr: BaseOption) => {\n\t\t\t\t\tacc[curr.jsonValue] = curr;\n\t\t\t\t\treturn acc;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t);\n\t\t\treturn {\n\t\t\t\tget: (key: any) => {\n\t\t\t\t\treturn indexed[JSON.stringify(key)];\n\t\t\t\t},\n\t\t\t};\n\t\t} else if (matchStrategy === 'equality') {\n\t\t\tconst indexed: [any, BaseOption][] = options.value.map((option) => [\n\t\t\t\toption.value,\n\t\t\t\toption,\n\t\t\t]);\n\n\t\t\treturn {\n\t\t\t\tget: (key: any) => {\n\t\t\t\t\treturn indexed.find((pairs) => deepEqual(pairs[0], key))?.[1];\n\t\t\t\t},\n\t\t\t};\n\t\t} else {\n\t\t\tthrow new Error('No match strategy has been defined');\n\t\t}\n\t});\n\n\t/**\n\t * Indexes modelValue to a map so when can easily know which values are selected\n\t * (using JSON to circumvent identical object not being equal in JS)\n\t */\n\tconst modelValueIndexed = computed(() => {\n\t\tif (matchStrategy === 'string') {\n\t\t\tconst map: { [key: string]: number } = {};\n\t\t\t[].concat(modelValue.value).forEach((value: any, index: number) => {\n\t\t\t\tmap[JSON.stringify(value)] = index;\n\t\t\t});\n\t\t\treturn {\n\t\t\t\tget: (value: any) => map[JSON.stringify(value)],\n\t\t\t};\n\t\t} else if (matchStrategy === 'equality') {\n\t\t\tconst map = []\n\t\t\t\t.concat(modelValue.value)\n\t\t\t\t.map((value, index) => [value, index]);\n\n\t\t\treturn {\n\t\t\t\tget: (key: any) => {\n\t\t\t\t\treturn map.find((pairs) => deepEqual(pairs[0], key))?.[1];\n\t\t\t\t},\n\t\t\t};\n\t\t} else {\n\t\t\tthrow new Error('No match strategy has been defined');\n\t\t}\n\t});\n\n\t/**\n\t * When modelValue changes see if we already have the new value in the current options.\n\t * If we don't - try searching again in case the prefill might return the correct items\n\t * If not found and coherence is enforced reset modelValue\n\t */\n\tlet modelValueTimeout: ReturnType<typeof setTimeout>;\n\tlet hasRunOnce = false;\n\twatch(\n\t\tmodelValue,\n\t\t(current, previous) => {\n\t\t\tif (modelValueTimeout) clearTimeout(modelValueTimeout);\n\t\t\tmodelValueTimeout = setTimeout(\n\t\t\t\tasync () => {\n\t\t\t\t\thasRunOnce = true;\n\t\t\t\t\tif (multiple) {\n\t\t\t\t\t\tif (!Array.isArray(modelValue.value)) {\n\t\t\t\t\t\t\tthrow new Error('Passed modelValue is not an array.');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlet allFound = modelValue.value.every((value: any) =>\n\t\t\t\t\t\t\toptionsIndexedByValue.value.get(value)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (!allFound || previous === undefined) {\n\t\t\t\t\t\t\tawait getOptions({ prefill: true });\n\t\t\t\t\t\t\tallFound = modelValue.value.every((value: any) =>\n\t\t\t\t\t\t\t\toptionsIndexedByValue.value.get(value)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!allFound) {\n\t\t\t\t\t\t\tconst coherent = current.filter((value: any) => {\n\t\t\t\t\t\t\t\tconst found = optionsIndexedByValue.value.get(value);\n\t\t\t\t\t\t\t\treturn found;\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tif (enforceCoherence.value) {\n\t\t\t\t\t\t\t\temitter(coherent);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlet found = optionsIndexedByValue.value.get(modelValue.value);\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t(!found && isNotNil(modelValue.value)) ||\n\t\t\t\t\t\t\tprevious === undefined\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tawait getOptions({ prefill: true });\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfound = optionsIndexedByValue.value.get(modelValue.value);\n\t\t\t\t\t\tif (!found) {\n\t\t\t\t\t\t\tif (enforceCoherence.value && isNotNil(current)) {\n\t\t\t\t\t\t\t\temitter(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Run immediately the first time to load intiial items\n\t\t\t\t},\n\t\t\t\thasRunOnce || !immediate ? modelValueDebounceTime : 0\n\t\t\t);\n\t\t},\n\t\t// Immediate here triggers first search for items\n\t\t{ immediate, deep: true }\n\t);\n\n\t/**\n\t * Refresh items on change.\n\t * To avoid refreshing every time the parent rerenders (happens when items are an array defined in the template)\n\t * we check by comparing the stringified version\n\t */\n\twatch(initialItems, async (current, previous) => {\n\t\tif (\n\t\t\ttypeof current === 'function' ||\n\t\t\t// Circumvent arrays defined in the template by the parent\n\t\t\tJSON.stringify(current) !== JSON.stringify(previous)\n\t\t) {\n\t\t\tawait getOptions({ prefill: true });\n\n\t\t\tif (multiple) {\n\t\t\t\tconst allFound = modelValue.value.every((value: any) =>\n\t\t\t\t\toptionsIndexedByValue.value.get(value)\n\t\t\t\t);\n\n\t\t\t\tif (!allFound) {\n\t\t\t\t\tif (enforceCoherence.value) {\n\t\t\t\t\t\tconst coherent = modelValue.value.filter((value: any) => {\n\t\t\t\t\t\t\tconst found = optionsIndexedByValue.value.get(value);\n\t\t\t\t\t\t\treturn found;\n\t\t\t\t\t\t});\n\t\t\t\t\t\temitter(coherent);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst found = optionsIndexedByValue.value.get(modelValue.value);\n\t\t\t\tif (!found && enforceCoherence && isNotNil(modelValue.value)) {\n\t\t\t\t\temitter(null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t/**\n\t * When dependencies change\n\t * Check dependencies are the same by value and not reference\n\t * Otherwise we search again for options as they might be different base on dependencies.\n\t * If coherence is enforced we set the state accordingly\n\t */\n\tlet depsTimeout: ReturnType<typeof setTimeout>;\n\twatch(\n\t\tdependencies,\n\t\t(current, previous) => {\n\t\t\t// Circumvent array defined in the template by the parent\n\t\t\tif (JSON.stringify(current) === JSON.stringify(previous)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (depsTimeout) clearTimeout(depsTimeout);\n\t\t\tdepsTimeout = setTimeout(async () => {\n\t\t\t\tawait getOptions({ prefill: true });\n\t\t\t\tif (multiple) {\n\t\t\t\t\tconst allFound = modelValue.value.every((value: any) =>\n\t\t\t\t\t\toptionsIndexedByValue.value.get(value)\n\t\t\t\t\t);\n\t\t\t\t\tif (!allFound && enforceCoherence) {\n\t\t\t\t\t\tconst coherent = modelValue.value.filter((value: any) => {\n\t\t\t\t\t\t\tconst found = optionsIndexedByValue.value.get(value);\n\t\t\t\t\t\t\treturn found;\n\t\t\t\t\t\t});\n\t\t\t\t\t\temitter(coherent);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tconst found = optionsIndexedByValue.value.get(modelValue.value);\n\t\t\t\t\tif (!found && enforceCoherence && isNotNil(modelValue.value)) {\n\t\t\t\t\t\temitter(null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, depsDebounceTime);\n\t\t},\n\t\t{ deep: true }\n\t);\n\n\treturn {\n\t\tgetOptions,\n\t\tloading,\n\t\toptions,\n\t};\n};\n"],"names":["useOptions","dependencies","depsDebounceTime","disabled","emitter","enforceCoherence","id","immediate","initialItems","itemText","itemValue","matchStrategy","modelValue","modelValueDebounceTime","multiple","loading","ref","internalItems","getOptions","prefill","items","getItemText","useItemText","getItemValue","useItemValue","options","computed","item","index","text","value","jsonValue","original","_disabled","_id","isNotNil","selectedIndex","modelValueIndexed","optionsIndexedByValue","indexed","acc","curr","key","option","_a","pairs","deepEqual","map","modelValueTimeout","hasRunOnce","watch","current","previous","allFound","coherent","found","depsTimeout"],"mappings":";;;;;AAmDO,MAAMA,IAAa,CAAC;AAAA;AAAA,EAE1B,cAAAC;AAAA;AAAA,EAEA,kBAAAC;AAAA;AAAA,EAEA,UAAAC;AAAA;AAAA,EAEA,SAAAC;AAAA;AAAA,EAEA,kBAAAC;AAAA;AAAA,EAEA,IAAAC;AAAA;AAAA,EAEA,WAAAC;AAAA;AAAA,EAEA,cAAAC;AAAA;AAAA,EAEA,UAAAC;AAAA;AAAA,EAEA,WAAAC;AAAA;AAAA,EAEA,eAAAC;AAAA;AAAA,EAEA,YAAAC;AAAA;AAAA,EAEA,wBAAAC;AAAA,EACA,UAAAC;AACD,MAAc;AAIP,QAAAC,IAAUC,EAAI,CAAC,GAKfC,IAAgBD,EAAkB,CAAA,CAAE,GAMpCE,IAAa,OAAO,EAAE,SAAAC,IAAU,SAAY;AACjD,QAAIC,IAAQ,CAAA;AACZ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AQ,IAAI;AAAA,SAGZF,CAAgB;AAAA,IACpB;AAAA,IACA,EAAE,MAAM,GAAK;AAAA,EAAA,GAGP;AAAA,IACN,YAAAgB;AAAA,IACA,SAAAH;AAAA,IACA,SAAAU;AAAA,EAAA;AAEF;"}
|
package/dist/index203.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index240.js";
|
|
2
|
+
import { __require as o } from "./index239.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const s = /* @__PURE__ */ r(t);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
s as default
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=index203.js.map
|
package/dist/index203.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index203.js","sources":[
|
|
1
|
+
{"version":3,"file":"index203.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index204.js
CHANGED
|
@@ -1,29 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"stroke-linejoin": "round",
|
|
17
|
-
"stroke-width": "2"
|
|
18
|
-
}, null, -1), i = [
|
|
19
|
-
c,
|
|
20
|
-
l
|
|
21
|
-
];
|
|
22
|
-
function _(d, f) {
|
|
23
|
-
return e(), t("svg", s, i);
|
|
24
|
-
}
|
|
25
|
-
const m = /* @__PURE__ */ r(n, [["render", _]]);
|
|
1
|
+
import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./index240.js";
|
|
2
|
+
import { __module as e } from "./index242.js";
|
|
3
|
+
(function(s, a) {
|
|
4
|
+
(function(i, t) {
|
|
5
|
+
s.exports = t();
|
|
6
|
+
})(n, function() {
|
|
7
|
+
return function(i, t) {
|
|
8
|
+
t.prototype.isSameOrAfter = function(r, o) {
|
|
9
|
+
return this.isSame(r, o) || this.isAfter(r, o);
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
})(e);
|
|
14
|
+
var m = e.exports;
|
|
15
|
+
const c = /* @__PURE__ */ f(m);
|
|
26
16
|
export {
|
|
27
|
-
|
|
17
|
+
c as default
|
|
28
18
|
};
|
|
29
19
|
//# sourceMappingURL=index204.js.map
|
package/dist/index204.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index204.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index204.js","sources":["../node_modules/dayjs/plugin/isSameOrAfter.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrAfter=t()}(this,(function(){\"use strict\";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}));"],"names":["e","module","this","t"],"mappings":";;;AAAA,GAAC,SAASA,GAAE,GAAE;AAAsD,IAAAC,EAAe,UAAA,EAAwI;AAAA,EAAA,GAAEC,GAAM,WAAU;AAAc,WAAO,SAASF,GAAE,GAAE;AAAC,QAAE,UAAU,gBAAc,SAASA,GAAEG,GAAE;AAAC,eAAO,KAAK,OAAOH,GAAEG,CAAC,KAAG,KAAK,QAAQH,GAAEG,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
|