bitboss-ui 2.0.3 → 2.0.5
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/components/BaseDatePicker/BaseDatePicker.vue.d.ts +10 -99
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +24 -0
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +56 -0
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +21 -0
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +21 -0
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -46
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -47
- package/dist/components/BbTab/BbTab.vue.d.ts +9 -0
- package/dist/components/Transitions/Slide.vue.d.ts +43 -0
- package/dist/components/Transitions/SlideBack.vue.d.ts +43 -0
- package/dist/composables/useLogger.d.ts +1 -0
- package/dist/index103.js +150 -126
- package/dist/index103.js.map +1 -1
- package/dist/index105.js +5 -5
- package/dist/index113.js +1 -1
- package/dist/index115.js +5 -5
- package/dist/index115.js.map +1 -1
- 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/index128.js +1 -1
- package/dist/index14.js +3 -3
- package/dist/index16.js +2 -2
- package/dist/index18.js +176 -482
- package/dist/index18.js.map +1 -1
- package/dist/index198.js +3 -5
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -158
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +199 -190
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +16 -84
- package/dist/index200.js.map +1 -1
- package/dist/{index223.js → index201.js} +3 -3
- package/dist/{index223.js.map → index201.js.map} +1 -1
- package/dist/index202.js +19 -3
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +19 -3
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +26 -34
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +3 -6
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -7
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +8 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +245 -122
- package/dist/index208.js.map +1 -1
- package/dist/index210.js +51 -122
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +37 -19
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +41 -2
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -174
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +4 -42
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -0
- package/dist/index216.js.map +1 -0
- package/dist/index217.js +2 -13
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +42 -369
- package/dist/index218.js.map +1 -1
- package/dist/index22.js +5 -5
- package/dist/index220.js +13 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +158 -2
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +84 -16
- package/dist/index222.js.map +1 -1
- package/dist/index224.js +3 -19
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +34 -26
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +6 -8
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +7 -2
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +126 -3
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +123 -3
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +2 -18
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +173 -105
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +8 -0
- package/dist/index232.js.map +1 -0
- package/dist/index233.js +367 -98
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +6 -0
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +17 -9
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +106 -3
- package/dist/index236.js.map +1 -1
- package/dist/index238.js +100 -23
- package/dist/index238.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +2 -16
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +10 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +3 -3
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +224 -12
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +280 -8
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +6 -9
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -17
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -224
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -431
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +2 -89
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +2 -281
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -6
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +3 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +2 -2
- package/dist/index254.js +2 -2
- package/dist/index255.js +2 -126
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +28 -3
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +25 -0
- package/dist/index257.js.map +1 -0
- package/dist/index259.js +6 -3
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +3 -3
- package/dist/index260.js +4 -2
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +8 -68
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +23 -200
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +3 -5
- package/dist/index263.js.map +1 -1
- package/dist/index265.js +6 -127
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +16 -2
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +9 -2
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +3 -2
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +12 -2
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +7 -26
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +9 -3
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +17 -3
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +426 -206
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +92 -0
- package/dist/index274.js.map +1 -0
- package/dist/index275.js +2 -4
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +69 -4
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +5 -59
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +200 -15
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +2 -35
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.js +125 -10
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +21 -1
- package/dist/index281.js.map +1 -1
- package/dist/{index264.js → index283.js} +2 -2
- package/dist/{index264.js.map → index283.js.map} +1 -1
- package/dist/index284.js +123 -417
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +3 -47
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +6 -0
- package/dist/index286.js.map +1 -0
- package/dist/index287.js +214 -0
- package/dist/index287.js.map +1 -0
- package/dist/index289.js +18 -0
- package/dist/index289.js.map +1 -0
- package/dist/index290.js +10 -0
- package/dist/index290.js.map +1 -0
- package/dist/index291.js +22 -0
- package/dist/index291.js.map +1 -0
- package/dist/index292.js +10 -0
- package/dist/index292.js.map +1 -0
- package/dist/index293.js +7 -0
- package/dist/index293.js.map +1 -0
- package/dist/index294.js +7 -0
- package/dist/index294.js.map +1 -0
- package/dist/index295.js +62 -0
- package/dist/index295.js.map +1 -0
- package/dist/index296.js +38 -0
- package/dist/index296.js.map +1 -0
- package/dist/index297.js +14 -0
- package/dist/index297.js.map +1 -0
- package/dist/index298.js +5 -0
- package/dist/index298.js.map +1 -0
- package/dist/{index282.js → index299.js} +3 -3
- package/dist/{index282.js.map → index299.js.map} +1 -1
- package/dist/index30.js +2 -2
- package/dist/index301.js +424 -0
- package/dist/index301.js.map +1 -0
- package/dist/index302.js +50 -0
- package/dist/index302.js.map +1 -0
- package/dist/index32.js +3 -3
- package/dist/index34.js +44 -42
- package/dist/index34.js.map +1 -1
- package/dist/index36.js +4 -4
- package/dist/index38.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index42.js +6 -6
- package/dist/index44.js +2 -2
- package/dist/index46.js +2 -2
- package/dist/index52.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index58.js +2 -2
- package/dist/index66.js +16 -23
- package/dist/index66.js.map +1 -1
- package/dist/index70.js +4 -4
- 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 +3 -3
- package/dist/index85.js +1 -1
- package/dist/style.css +1 -1
- package/dist/utilities/functions/chunk.d.ts +1 -0
- package/dist/utilities/functions/negative.d.ts +1 -0
- package/dist/utilities/functions/pipe.d.ts +3 -0
- package/dist/utilities/functions/range.d.ts +1 -0
- package/dist/utilities/functions/sort.d.ts +6 -0
- package/package.json +2 -2
- package/dist/index209.js +0 -8
- package/dist/index209.js.map +0 -1
- package/dist/index219.js +0 -5
- package/dist/index219.js.map +0 -1
- package/dist/index237.js +0 -12
- package/dist/index237.js.map +0 -1
- package/dist/index239.js +0 -9
- package/dist/index239.js.map +0 -1
- package/dist/index258.js +0 -10
- package/dist/index258.js.map +0 -1
package/dist/index236.js
CHANGED
|
@@ -1,6 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
};
|
|
1
|
+
import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
|
|
2
|
+
import { hash as d } from "./index205.js";
|
|
3
|
+
import { isNil as l } from "./index124.js";
|
|
4
|
+
import E from "./index119.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const K = /* @__PURE__ */ y({
|
|
7
|
+
__name: "ChipsBox",
|
|
8
|
+
props: {
|
|
9
|
+
options: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["option:unselected"],
|
|
12
|
+
setup(f, { expose: v, emit: h }) {
|
|
13
|
+
const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
|
|
14
|
+
const s = l(n.value) ? -1 : n.value;
|
|
15
|
+
let o = (s + e) % t.options.length;
|
|
16
|
+
for (; t.options[o].disabled && o !== s; )
|
|
17
|
+
o = a(e + 1);
|
|
18
|
+
return o;
|
|
19
|
+
}, x = () => {
|
|
20
|
+
if (!i.value) return;
|
|
21
|
+
const e = a();
|
|
22
|
+
n.value = e;
|
|
23
|
+
}, c = (e = 1) => {
|
|
24
|
+
const s = l(n.value) ? 0 : n.value;
|
|
25
|
+
let o = (s - e + t.options.length) % t.options.length;
|
|
26
|
+
for (; t.options[o].disabled && o !== s; )
|
|
27
|
+
o = c(e + 1);
|
|
28
|
+
return o;
|
|
29
|
+
}, m = async () => {
|
|
30
|
+
if (!i.value) return;
|
|
31
|
+
const e = c();
|
|
32
|
+
n.value = e;
|
|
33
|
+
}, w = () => {
|
|
34
|
+
if (!i.value) return;
|
|
35
|
+
let e = 0;
|
|
36
|
+
for (; t.options[e].disabled; )
|
|
37
|
+
e++;
|
|
38
|
+
n.value = e;
|
|
39
|
+
}, b = () => {
|
|
40
|
+
if (!i.value) return;
|
|
41
|
+
let e = t.options.length - 1;
|
|
42
|
+
for (; t.options[e].disabled && e !== 0; )
|
|
43
|
+
e--;
|
|
44
|
+
n.value = e;
|
|
45
|
+
}, I = () => {
|
|
46
|
+
if (!i.value) return;
|
|
47
|
+
let e = 0;
|
|
48
|
+
for (; !t.options[e].selected && t.options.length !== e; )
|
|
49
|
+
e++;
|
|
50
|
+
n.value = e;
|
|
51
|
+
}, g = () => {
|
|
52
|
+
if (!i.value) return;
|
|
53
|
+
let e = t.options.length - 1;
|
|
54
|
+
for (; t.options[e].selected && e !== 0; )
|
|
55
|
+
e--;
|
|
56
|
+
n.value = e;
|
|
57
|
+
}, _ = (e) => {
|
|
58
|
+
if (!i.value) return;
|
|
59
|
+
const s = t.options.findIndex(
|
|
60
|
+
(o) => o.valueHash === e
|
|
61
|
+
);
|
|
62
|
+
s >= 0 && (n.value = s);
|
|
63
|
+
}, r = () => {
|
|
64
|
+
n.value = null;
|
|
65
|
+
}, k = () => {
|
|
66
|
+
if (l(n.value)) return;
|
|
67
|
+
const e = t.options[n.value];
|
|
68
|
+
e.selected && u("option:unselected", e);
|
|
69
|
+
}, C = () => l(n.value) ? void 0 : t.options[n.value];
|
|
70
|
+
return N(
|
|
71
|
+
() => t.options,
|
|
72
|
+
(e, s) => {
|
|
73
|
+
d(e) !== d(s) && r();
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
flush: "post"
|
|
77
|
+
}
|
|
78
|
+
), v({
|
|
79
|
+
focusNext: x,
|
|
80
|
+
focusPrevious: m,
|
|
81
|
+
focusFirst: w,
|
|
82
|
+
focusFirstSelected: I,
|
|
83
|
+
focusLast: b,
|
|
84
|
+
focusLastSelected: g,
|
|
85
|
+
blur: r,
|
|
86
|
+
confirmOption: k,
|
|
87
|
+
focusByHash: _,
|
|
88
|
+
getHighlighted: C
|
|
89
|
+
}), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
|
|
90
|
+
key: o.valueHash,
|
|
91
|
+
class: O({
|
|
92
|
+
"bb-chipsbox-item": !0,
|
|
93
|
+
"bb-chipsbox-item--focused": B === n.value
|
|
94
|
+
}),
|
|
95
|
+
clearable: !0,
|
|
96
|
+
text: o.text,
|
|
97
|
+
"onClick:clear": P((M) => u("option:unselected", o), ["stop"])
|
|
98
|
+
}, {
|
|
99
|
+
default: $(() => [
|
|
100
|
+
z(D(o.text), 1)
|
|
101
|
+
]),
|
|
102
|
+
_: 2
|
|
103
|
+
}, 1032, ["class", "text", "onClick:clear"]))), 128));
|
|
104
|
+
}
|
|
105
|
+
});
|
|
3
106
|
export {
|
|
4
|
-
|
|
107
|
+
K as default
|
|
5
108
|
};
|
|
6
109
|
//# sourceMappingURL=index236.js.map
|
package/dist/index236.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index236.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index236.js","sources":["../src/components/ChipsBox.vue"],"sourcesContent":["<template>\n\t<BbChip\n\t\tv-for=\"(item, index) in options\"\n\t\t:key=\"item.valueHash\"\n\t\t:class=\"{\n\t\t\t'bb-chipsbox-item': true,\n\t\t\t'bb-chipsbox-item--focused': index === focusedIndex,\n\t\t}\"\n\t\t:clearable=\"true\"\n\t\t:text=\"item.text\"\n\t\t@click:clear.stop=\"emit('option:unselected', item)\"\n\t\t>{{ item.text }}</BbChip\n\t>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { hash } from '@/utilities/functions/hash';\nimport { isNil } from '@/utilities/functions/isNil';\nimport { ref } from 'vue';\nimport { watch } from 'vue';\nimport BbChip from './BbChip/BbChip.vue';\nimport type { Option } from '@/types/Option';\n\ntype Props = {\n\toptions: Option[];\n};\nconst props = defineProps<Props>();\n\nconst emit = defineEmits<{\n\t(e: 'option:unselected', option: Option): void;\n}>();\n\n/**\n * START FOCUS HANDLING\n */\n\nconst focusedIndex = ref<null | number>(null);\n\nconst canFocus = computed(() => props.options.some((o) => !o.disabled));\n\nconst findNextAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? -1 : focusedIndex.value!;\n\tlet newIndex = (initialValue + offset) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findNextAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\n\nconst focusNext = () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findNextAvailableIndex();\n\tfocusedIndex.value = newIndex;\n};\nconst findPreviousAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? 0 : focusedIndex.value!;\n\tlet newIndex =\n\t\t(initialValue - offset + props.options.length) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findPreviousAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\nconst focusPrevious = async () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findPreviousAvailableIndex();\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusFirst = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (props.options[newIndex].disabled) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusLast = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].disabled && newIndex !== 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex;\n};\nconst focusFirstSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (\n\t\t!props.options[newIndex].selected &&\n\t\tprops.options.length !== newIndex\n\t) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex;\n};\nconst focusLastSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].selected && newIndex !== 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusByHash = (hash: Option['valueHash']) => {\n\tif (!canFocus.value) return;\n\tconst linkedOptionIndex = props.options.findIndex(\n\t\t(o) => o.valueHash === hash\n\t);\n\tif (linkedOptionIndex >= 0) {\n\t\tfocusedIndex.value = linkedOptionIndex;\n\t}\n};\n\nconst blur = () => {\n\tfocusedIndex.value = null;\n};\n\n/**\n * END FOCUS HANDLING\n */\n\nconst confirmOption = () => {\n\tif (isNil(focusedIndex.value)) return;\n\tconst option = props.options[focusedIndex.value!];\n\tif (option.selected) {\n\t\temit('option:unselected', option);\n\t}\n};\n\nconst getHighlighted = () => {\n\tif (isNil(focusedIndex.value)) return;\n\tconst option = props.options[focusedIndex.value!];\n\treturn option;\n};\n\nwatch(\n\t() => props.options,\n\t(value, previous) => {\n\t\tif (hash(value) !== hash(previous)) {\n\t\t\tblur();\n\t\t}\n\t},\n\t{\n\t\tflush: 'post',\n\t}\n);\n\ndefineExpose({\n\tfocusNext,\n\tfocusPrevious,\n\tfocusFirst,\n\tfocusFirstSelected,\n\tfocusLast,\n\tfocusLastSelected,\n\tblur,\n\tconfirmOption,\n\tfocusByHash,\n\tgetHighlighted,\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/ChipsBox';\n</style>\n"],"names":["props","__props","emit","__emit","focusedIndex","ref","canFocus","computed","o","findNextAvailableIndex","offset","initialValue","isNil","newIndex","focusNext","findPreviousAvailableIndex","focusPrevious","focusFirst","focusLast","focusFirstSelected","focusLastSelected","focusByHash","hash","linkedOptionIndex","blur","confirmOption","option","getHighlighted","watch","value","previous","__expose"],"mappings":"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"}
|
package/dist/index238.js
CHANGED
|
@@ -1,26 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { defineComponent as F, ref as H, computed as L, watch as N, openBlock as d, createElementBlock as v, Fragment as S, renderList as A, normalizeClass as O, withModifiers as P, toDisplayString as V } from "vue";
|
|
2
|
+
import { hash as f } from "./index205.js";
|
|
3
|
+
import { isNil as i } from "./index124.js";
|
|
4
|
+
const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
|
|
5
|
+
__name: "CommaBox",
|
|
6
|
+
props: {
|
|
7
|
+
options: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["option:unselected"],
|
|
10
|
+
setup(m, { expose: h, emit: x }) {
|
|
11
|
+
const t = m, a = x, n = H(null), l = L(() => t.options.some((e) => !e.disabled)), u = (e = 1) => {
|
|
12
|
+
const s = i(n.value) ? -1 : n.value;
|
|
13
|
+
let o = (s + e) % t.options.length;
|
|
14
|
+
for (; t.options[o].disabled && o !== s; )
|
|
15
|
+
o = u(e + 1);
|
|
16
|
+
return o;
|
|
17
|
+
}, b = () => {
|
|
18
|
+
if (!l.value) return;
|
|
19
|
+
const e = u();
|
|
20
|
+
n.value = e;
|
|
21
|
+
}, c = (e = 1) => {
|
|
22
|
+
const s = i(n.value) ? 0 : n.value;
|
|
23
|
+
let o = (s - e + t.options.length) % t.options.length;
|
|
24
|
+
for (; t.options[o].disabled && o !== s; )
|
|
25
|
+
o = c(e + 1);
|
|
26
|
+
return o;
|
|
27
|
+
}, w = async () => {
|
|
28
|
+
if (!l.value) return;
|
|
29
|
+
const e = c();
|
|
30
|
+
n.value = e;
|
|
31
|
+
}, I = () => {
|
|
32
|
+
if (!l.value) return;
|
|
33
|
+
let e = 0;
|
|
34
|
+
for (; t.options[e].disabled; )
|
|
35
|
+
e++;
|
|
36
|
+
n.value = e;
|
|
37
|
+
}, g = () => {
|
|
38
|
+
if (!l.value) return;
|
|
39
|
+
let e = t.options.length - 1;
|
|
40
|
+
for (; t.options[e].disabled && e !== 0; )
|
|
41
|
+
e--;
|
|
42
|
+
n.value = e;
|
|
43
|
+
}, k = () => {
|
|
44
|
+
if (!l.value) return;
|
|
45
|
+
let e = 0;
|
|
46
|
+
for (; !t.options[e].selected && t.options.length !== e; )
|
|
47
|
+
e++;
|
|
48
|
+
n.value = e;
|
|
49
|
+
}, _ = () => {
|
|
50
|
+
if (!l.value) return;
|
|
51
|
+
let e = t.options.length - 1;
|
|
52
|
+
for (; t.options[e].selected && e !== 0; )
|
|
53
|
+
e--;
|
|
54
|
+
n.value = e;
|
|
55
|
+
}, C = (e) => {
|
|
56
|
+
if (!l.value) return;
|
|
57
|
+
const s = t.options.findIndex(
|
|
58
|
+
(o) => o.valueHash === e
|
|
59
|
+
);
|
|
60
|
+
s >= 0 && (n.value = s);
|
|
61
|
+
}, r = () => {
|
|
62
|
+
n.value = null;
|
|
63
|
+
}, y = () => {
|
|
64
|
+
if (!n.value) return;
|
|
65
|
+
const e = t.options[n.value];
|
|
66
|
+
e.selected && a("option:unselected", e);
|
|
67
|
+
}, B = () => i(n.value) ? void 0 : t.options[n.value];
|
|
68
|
+
return N(
|
|
69
|
+
() => t.options,
|
|
70
|
+
(e, s) => {
|
|
71
|
+
f(e) !== f(s) && r();
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
flush: "post"
|
|
75
|
+
}
|
|
76
|
+
), h({
|
|
77
|
+
focusNext: b,
|
|
78
|
+
focusPrevious: w,
|
|
79
|
+
focusFirst: I,
|
|
80
|
+
focusFirstSelected: k,
|
|
81
|
+
focusLast: g,
|
|
82
|
+
focusLastSelected: _,
|
|
83
|
+
blur: r,
|
|
84
|
+
confirmOption: y,
|
|
85
|
+
focusByHash: C,
|
|
86
|
+
getHighlighted: B
|
|
87
|
+
}), (e, s) => (d(!0), v(S, null, A(e.options, (o, p) => (d(), v("span", {
|
|
88
|
+
key: o.valueHash,
|
|
89
|
+
class: O({
|
|
90
|
+
"bb-commabox-item": !0,
|
|
91
|
+
"bb-commabox-item--focused": p === n.value,
|
|
92
|
+
"bb-commabox-item--has-comma": p !== e.options.length - 1
|
|
93
|
+
}),
|
|
94
|
+
clearable: !0,
|
|
95
|
+
text: o.text,
|
|
96
|
+
"onClick:clear": P((D) => a("option:unselected", o), ["stop"])
|
|
97
|
+
}, V(o.text), 43, z))), 128));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
23
100
|
export {
|
|
24
|
-
|
|
101
|
+
j as default
|
|
25
102
|
};
|
|
26
103
|
//# sourceMappingURL=index238.js.map
|
package/dist/index238.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index238.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index238.js","sources":["../src/components/CommaBox.vue"],"sourcesContent":["<template>\n\t<span\n\t\tv-for=\"(item, index) in options\"\n\t\t:key=\"item.valueHash\"\n\t\t:class=\"{\n\t\t\t'bb-commabox-item': true,\n\t\t\t'bb-commabox-item--focused': index === focusedIndex,\n\t\t\t'bb-commabox-item--has-comma': index !== options.length - 1,\n\t\t}\"\n\t\t:clearable=\"true\"\n\t\t:text=\"item.text\"\n\t\t@click:clear.stop=\"emit('option:unselected', item)\"\n\t\t>{{ item.text }}</span\n\t>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { hash } from '@/utilities/functions/hash';\nimport { isNil } from '@/utilities/functions/isNil';\nimport { ref } from 'vue';\nimport { watch } from 'vue';\nimport type { Option } from '@/types/Option';\n\ntype Props = {\n\toptions: Option[];\n};\nconst props = defineProps<Props>();\n\nconst emit = defineEmits<{\n\t(e: 'option:unselected', option: Option): void;\n}>();\n\n/**\n * START FOCUS HANDLING\n */\n\nconst focusedIndex = ref<null | number>(null);\n\nconst canFocus = computed(() => props.options.some((o) => !o.disabled));\n\nconst findNextAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? -1 : focusedIndex.value!;\n\tlet newIndex = (initialValue + offset) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findNextAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\n\nconst focusNext = () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findNextAvailableIndex();\n\tfocusedIndex.value = newIndex;\n};\nconst findPreviousAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? 0 : focusedIndex.value!;\n\tlet newIndex =\n\t\t(initialValue - offset + props.options.length) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findPreviousAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\nconst focusPrevious = async () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findPreviousAvailableIndex();\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusFirst = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (props.options[newIndex].disabled) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusLast = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].disabled && newIndex !== 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex;\n};\nconst focusFirstSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (\n\t\t!props.options[newIndex].selected &&\n\t\tprops.options.length !== newIndex\n\t) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex;\n};\nconst focusLastSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].selected && newIndex !== 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusByHash = (hash: Option['valueHash']) => {\n\tif (!canFocus.value) return;\n\tconst linkedOptionIndex = props.options.findIndex(\n\t\t(o) => o.valueHash === hash\n\t);\n\tif (linkedOptionIndex >= 0) {\n\t\tfocusedIndex.value = linkedOptionIndex;\n\t}\n};\n\nconst blur = () => {\n\tfocusedIndex.value = null;\n};\n\n/**\n * END FOCUS HANDLING\n */\n\nconst confirmOption = () => {\n\tif (!focusedIndex.value) return;\n\tconst option = props.options[focusedIndex.value];\n\tif (option.selected) {\n\t\temit('option:unselected', option);\n\t}\n};\n\nconst getHighlighted = () => {\n\tif (isNil(focusedIndex.value)) return;\n\tconst option = props.options[focusedIndex.value!];\n\treturn option;\n};\n\nwatch(\n\t() => props.options,\n\t(value, previous) => {\n\t\tif (hash(value) !== hash(previous)) {\n\t\t\tblur();\n\t\t}\n\t},\n\t{\n\t\tflush: 'post',\n\t}\n);\n\ndefineExpose({\n\tfocusNext,\n\tfocusPrevious,\n\tfocusFirst,\n\tfocusFirstSelected,\n\tfocusLast,\n\tfocusLastSelected,\n\tblur,\n\tconfirmOption,\n\tfocusByHash,\n\tgetHighlighted,\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/CommaBox';\n</style>\n"],"names":["props","__props","emit","__emit","focusedIndex","ref","canFocus","computed","o","findNextAvailableIndex","offset","initialValue","isNil","newIndex","focusNext","findPreviousAvailableIndex","focusPrevious","focusFirst","focusLast","focusFirstSelected","focusLastSelected","focusByHash","hash","linkedOptionIndex","blur","confirmOption","option","getHighlighted","watch","value","previous","__expose"],"mappings":"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"}
|
package/dist/index24.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, computed as n, openBlock as r, createElementBlock as c, normalizeClass as T, createBlock as y, resolveDynamicComponent as B, normalizeProps as o, guardReactiveProps as l, withCtx as b, renderSlot as E, createTextVNode as V, toDisplayString as p, createElementVNode as d, unref as m, createVNode as P, Fragment as D, renderList as I } from "vue";
|
|
2
|
-
import { deburr as N } from "./
|
|
2
|
+
import { deburr as N } from "./index198.js";
|
|
3
3
|
import { getAsPercentage as $ } from "./index125.js";
|
|
4
4
|
import { useId as F } from "./index7.js";
|
|
5
5
|
import R from "./index120.js";
|
package/dist/index240.js
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
if (t) return t;
|
|
3
|
-
if (f(n))
|
|
4
|
-
return n;
|
|
5
|
-
if (r in n) {
|
|
6
|
-
const i = e(
|
|
7
|
-
[].concat(n[r]),
|
|
8
|
-
r,
|
|
9
|
-
f
|
|
10
|
-
);
|
|
11
|
-
if (i)
|
|
12
|
-
return i;
|
|
13
|
-
}
|
|
14
|
-
return t;
|
|
15
|
-
}, null);
|
|
1
|
+
const o = (e) => e[0];
|
|
16
2
|
export {
|
|
17
|
-
|
|
3
|
+
o as head
|
|
18
4
|
};
|
|
19
5
|
//# sourceMappingURL=index240.js.map
|
package/dist/index240.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index240.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index240.js","sources":["../src/utilities/functions/head.ts"],"sourcesContent":["/** Takes an array and returns the first item in it */\nexport const head = <T>(arr: T[]) => arr[0];\n"],"names":["head","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAI,CAAC;"}
|
package/dist/index241.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const o = (t, r) => {
|
|
2
|
+
const e = {};
|
|
3
|
+
for (const c in t)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(t, c)) {
|
|
5
|
+
const n = t[c];
|
|
6
|
+
r(n, c, t) && (e[c] = n);
|
|
7
|
+
}
|
|
8
|
+
return e;
|
|
9
|
+
};
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
o as pickBy
|
|
11
12
|
};
|
|
12
13
|
//# sourceMappingURL=index241.js.map
|
package/dist/index241.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index241.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index241.js","sources":["../src/utilities/functions/pickBy.ts"],"sourcesContent":["export const pickBy = <T extends object>(\n\tobj: T,\n\titeratee: (value: T[keyof T], key: keyof T, object: T) => boolean\n): Partial<T> => {\n\tconst accumulator: Partial<T> = {};\n\tfor (const key in obj) {\n\t\tif (Object.prototype.hasOwnProperty.call(obj, key)) {\n\t\t\tconst element = obj[key];\n\t\t\tif (iteratee(element, key, obj)) accumulator[key] = element;\n\t\t}\n\t}\n\treturn accumulator;\n};\n"],"names":["pickBy","obj","iteratee","accumulator","key","element"],"mappings":"AAAa,MAAAA,IAAS,CACrBC,GACAC,MACgB;AAChB,QAAMC,IAA0B,CAAA;AAChC,aAAWC,KAAOH;AACjB,QAAI,OAAO,UAAU,eAAe,KAAKA,GAAKG,CAAG,GAAG;AAC7C,YAAAC,IAAUJ,EAAIG,CAAG;AACvB,MAAIF,EAASG,GAASD,GAAKH,CAAG,MAAGE,EAAYC,CAAG,IAAIC;AAAA,IACrD;AAEM,SAAAF;AACR;"}
|
package/dist/index242.js
CHANGED
package/dist/index242.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index242.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index242.js","sources":["../src/utilities/functions/noop.ts"],"sourcesContent":["/* \n This function is No-OP it does nothing\n*/\nexport const noop = () => {};\n"],"names":["noop"],"mappings":"AAGO,MAAMA,IAAO,MAAM;AAAC;"}
|
package/dist/index243.js
CHANGED
|
@@ -1,15 +1,227 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as f, commonjsGlobal as r } from "./index245.js";
|
|
2
|
+
var c = 1 / 0, n = "[object Symbol]", a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, d = "\\u0300-\\u036f\\ufe20-\\ufe23", b = "\\u20d0-\\u20f0", i = "[" + d + b + "]", s = RegExp(i, "g"), l = {
|
|
3
|
+
// Latin-1 Supplement block.
|
|
4
|
+
À: "A",
|
|
5
|
+
Á: "A",
|
|
6
|
+
Â: "A",
|
|
7
|
+
Ã: "A",
|
|
8
|
+
Ä: "A",
|
|
9
|
+
Å: "A",
|
|
10
|
+
à: "a",
|
|
11
|
+
á: "a",
|
|
12
|
+
â: "a",
|
|
13
|
+
ã: "a",
|
|
14
|
+
ä: "a",
|
|
15
|
+
å: "a",
|
|
16
|
+
Ç: "C",
|
|
17
|
+
ç: "c",
|
|
18
|
+
Ð: "D",
|
|
19
|
+
ð: "d",
|
|
20
|
+
È: "E",
|
|
21
|
+
É: "E",
|
|
22
|
+
Ê: "E",
|
|
23
|
+
Ë: "E",
|
|
24
|
+
è: "e",
|
|
25
|
+
é: "e",
|
|
26
|
+
ê: "e",
|
|
27
|
+
ë: "e",
|
|
28
|
+
Ì: "I",
|
|
29
|
+
Í: "I",
|
|
30
|
+
Î: "I",
|
|
31
|
+
Ï: "I",
|
|
32
|
+
ì: "i",
|
|
33
|
+
í: "i",
|
|
34
|
+
î: "i",
|
|
35
|
+
ï: "i",
|
|
36
|
+
Ñ: "N",
|
|
37
|
+
ñ: "n",
|
|
38
|
+
Ò: "O",
|
|
39
|
+
Ó: "O",
|
|
40
|
+
Ô: "O",
|
|
41
|
+
Õ: "O",
|
|
42
|
+
Ö: "O",
|
|
43
|
+
Ø: "O",
|
|
44
|
+
ò: "o",
|
|
45
|
+
ó: "o",
|
|
46
|
+
ô: "o",
|
|
47
|
+
õ: "o",
|
|
48
|
+
ö: "o",
|
|
49
|
+
ø: "o",
|
|
50
|
+
Ù: "U",
|
|
51
|
+
Ú: "U",
|
|
52
|
+
Û: "U",
|
|
53
|
+
Ü: "U",
|
|
54
|
+
ù: "u",
|
|
55
|
+
ú: "u",
|
|
56
|
+
û: "u",
|
|
57
|
+
ü: "u",
|
|
58
|
+
Ý: "Y",
|
|
59
|
+
ý: "y",
|
|
60
|
+
ÿ: "y",
|
|
61
|
+
Æ: "Ae",
|
|
62
|
+
æ: "ae",
|
|
63
|
+
Þ: "Th",
|
|
64
|
+
þ: "th",
|
|
65
|
+
ß: "ss",
|
|
66
|
+
// Latin Extended-A block.
|
|
67
|
+
Ā: "A",
|
|
68
|
+
Ă: "A",
|
|
69
|
+
Ą: "A",
|
|
70
|
+
ā: "a",
|
|
71
|
+
ă: "a",
|
|
72
|
+
ą: "a",
|
|
73
|
+
Ć: "C",
|
|
74
|
+
Ĉ: "C",
|
|
75
|
+
Ċ: "C",
|
|
76
|
+
Č: "C",
|
|
77
|
+
ć: "c",
|
|
78
|
+
ĉ: "c",
|
|
79
|
+
ċ: "c",
|
|
80
|
+
č: "c",
|
|
81
|
+
Ď: "D",
|
|
82
|
+
Đ: "D",
|
|
83
|
+
ď: "d",
|
|
84
|
+
đ: "d",
|
|
85
|
+
Ē: "E",
|
|
86
|
+
Ĕ: "E",
|
|
87
|
+
Ė: "E",
|
|
88
|
+
Ę: "E",
|
|
89
|
+
Ě: "E",
|
|
90
|
+
ē: "e",
|
|
91
|
+
ĕ: "e",
|
|
92
|
+
ė: "e",
|
|
93
|
+
ę: "e",
|
|
94
|
+
ě: "e",
|
|
95
|
+
Ĝ: "G",
|
|
96
|
+
Ğ: "G",
|
|
97
|
+
Ġ: "G",
|
|
98
|
+
Ģ: "G",
|
|
99
|
+
ĝ: "g",
|
|
100
|
+
ğ: "g",
|
|
101
|
+
ġ: "g",
|
|
102
|
+
ģ: "g",
|
|
103
|
+
Ĥ: "H",
|
|
104
|
+
Ħ: "H",
|
|
105
|
+
ĥ: "h",
|
|
106
|
+
ħ: "h",
|
|
107
|
+
Ĩ: "I",
|
|
108
|
+
Ī: "I",
|
|
109
|
+
Ĭ: "I",
|
|
110
|
+
Į: "I",
|
|
111
|
+
İ: "I",
|
|
112
|
+
ĩ: "i",
|
|
113
|
+
ī: "i",
|
|
114
|
+
ĭ: "i",
|
|
115
|
+
į: "i",
|
|
116
|
+
ı: "i",
|
|
117
|
+
Ĵ: "J",
|
|
118
|
+
ĵ: "j",
|
|
119
|
+
Ķ: "K",
|
|
120
|
+
ķ: "k",
|
|
121
|
+
ĸ: "k",
|
|
122
|
+
Ĺ: "L",
|
|
123
|
+
Ļ: "L",
|
|
124
|
+
Ľ: "L",
|
|
125
|
+
Ŀ: "L",
|
|
126
|
+
Ł: "L",
|
|
127
|
+
ĺ: "l",
|
|
128
|
+
ļ: "l",
|
|
129
|
+
ľ: "l",
|
|
130
|
+
ŀ: "l",
|
|
131
|
+
ł: "l",
|
|
132
|
+
Ń: "N",
|
|
133
|
+
Ņ: "N",
|
|
134
|
+
Ň: "N",
|
|
135
|
+
Ŋ: "N",
|
|
136
|
+
ń: "n",
|
|
137
|
+
ņ: "n",
|
|
138
|
+
ň: "n",
|
|
139
|
+
ŋ: "n",
|
|
140
|
+
Ō: "O",
|
|
141
|
+
Ŏ: "O",
|
|
142
|
+
Ő: "O",
|
|
143
|
+
ō: "o",
|
|
144
|
+
ŏ: "o",
|
|
145
|
+
ő: "o",
|
|
146
|
+
Ŕ: "R",
|
|
147
|
+
Ŗ: "R",
|
|
148
|
+
Ř: "R",
|
|
149
|
+
ŕ: "r",
|
|
150
|
+
ŗ: "r",
|
|
151
|
+
ř: "r",
|
|
152
|
+
Ś: "S",
|
|
153
|
+
Ŝ: "S",
|
|
154
|
+
Ş: "S",
|
|
155
|
+
Š: "S",
|
|
156
|
+
ś: "s",
|
|
157
|
+
ŝ: "s",
|
|
158
|
+
ş: "s",
|
|
159
|
+
š: "s",
|
|
160
|
+
Ţ: "T",
|
|
161
|
+
Ť: "T",
|
|
162
|
+
Ŧ: "T",
|
|
163
|
+
ţ: "t",
|
|
164
|
+
ť: "t",
|
|
165
|
+
ŧ: "t",
|
|
166
|
+
Ũ: "U",
|
|
167
|
+
Ū: "U",
|
|
168
|
+
Ŭ: "U",
|
|
169
|
+
Ů: "U",
|
|
170
|
+
Ű: "U",
|
|
171
|
+
Ų: "U",
|
|
172
|
+
ũ: "u",
|
|
173
|
+
ū: "u",
|
|
174
|
+
ŭ: "u",
|
|
175
|
+
ů: "u",
|
|
176
|
+
ű: "u",
|
|
177
|
+
ų: "u",
|
|
178
|
+
Ŵ: "W",
|
|
179
|
+
ŵ: "w",
|
|
180
|
+
Ŷ: "Y",
|
|
181
|
+
ŷ: "y",
|
|
182
|
+
Ÿ: "Y",
|
|
183
|
+
Ź: "Z",
|
|
184
|
+
Ż: "Z",
|
|
185
|
+
Ž: "Z",
|
|
186
|
+
ź: "z",
|
|
187
|
+
ż: "z",
|
|
188
|
+
ž: "z",
|
|
189
|
+
IJ: "IJ",
|
|
190
|
+
ij: "ij",
|
|
191
|
+
Œ: "Oe",
|
|
192
|
+
œ: "oe",
|
|
193
|
+
ʼn: "'n",
|
|
194
|
+
ſ: "ss"
|
|
195
|
+
}, y = typeof r == "object" && r && r.Object === Object && r, m = typeof self == "object" && self && self.Object === Object && self, O = y || m || Function("return this")();
|
|
196
|
+
function p(u) {
|
|
197
|
+
return function(e) {
|
|
198
|
+
return u == null ? void 0 : u[e];
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
var S = p(l), g = Object.prototype, j = g.toString, o = O.Symbol, x = o ? o.prototype : void 0, t = x ? x.toString : void 0;
|
|
202
|
+
function I(u) {
|
|
203
|
+
if (typeof u == "string")
|
|
204
|
+
return u;
|
|
205
|
+
if (A(u))
|
|
206
|
+
return t ? t.call(u) : "";
|
|
207
|
+
var e = u + "";
|
|
208
|
+
return e == "0" && 1 / u == -c ? "-0" : e;
|
|
209
|
+
}
|
|
210
|
+
function E(u) {
|
|
211
|
+
return !!u && typeof u == "object";
|
|
212
|
+
}
|
|
213
|
+
function A(u) {
|
|
214
|
+
return typeof u == "symbol" || E(u) && j.call(u) == n;
|
|
215
|
+
}
|
|
216
|
+
function C(u) {
|
|
217
|
+
return u == null ? "" : I(u);
|
|
218
|
+
}
|
|
219
|
+
function U(u) {
|
|
220
|
+
return u = C(u), u && u.replace(a, S).replace(s, "");
|
|
221
|
+
}
|
|
222
|
+
var L = U;
|
|
223
|
+
const v = /* @__PURE__ */ f(L);
|
|
12
224
|
export {
|
|
13
|
-
|
|
225
|
+
v as default
|
|
14
226
|
};
|
|
15
227
|
//# sourceMappingURL=index243.js.map
|