@king-one/form-antdv 0.0.5 → 0.0.8
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/CHANGELOG.md +20 -0
- package/dist/es/{packages/form-antdv/src → src}/components/ArrayCard/array-card.vue2.mjs +23 -24
- package/dist/es/src/components/ArrayCard/index.mjs +11 -0
- package/dist/es/{packages/form-antdv/src → src}/components/ArrayTable/array-table.vue2.mjs +16 -17
- package/dist/es/src/components/ArrayTable/index.mjs +11 -0
- package/dist/es/src/components/DateRange/index.mjs +10 -0
- package/dist/es/src/components/FormArea/index.mjs +9 -0
- package/dist/es/src/components/Input/index.mjs +10 -0
- package/dist/es/src/components/InputNumber/index.mjs +10 -0
- package/dist/es/src/components/Select/index.mjs +13 -0
- package/dist/es/src/internal.mjs +9 -0
- package/dist/lib/src/components/ArrayCard/array-card.vue2.js +1 -0
- package/dist/lib/src/components/ArrayCard/index.js +1 -0
- package/dist/lib/src/components/ArrayTable/array-table.vue2.js +1 -0
- package/dist/lib/src/components/ArrayTable/index.js +1 -0
- package/dist/lib/src/components/DateRange/index.js +1 -0
- package/dist/lib/src/components/FormArea/index.js +1 -0
- package/dist/lib/src/components/Input/index.js +1 -0
- package/dist/lib/src/components/InputNumber/index.js +1 -0
- package/dist/lib/src/components/Select/index.js +1 -0
- package/dist/lib/src/internal.js +1 -0
- package/dist/types/src/components/ArrayCard/index.d.ts +2 -2
- package/dist/types/src/components/ArrayTable/index.d.ts +2 -2
- package/dist/types/src/components/DateRange/index.d.ts +2 -2
- package/dist/types/src/components/FormArea/index.d.ts +2 -2
- package/dist/types/src/components/Input/index.d.ts +2 -2
- package/dist/types/src/components/InputNumber/index.d.ts +2 -2
- package/dist/types/src/components/Select/index.d.ts +2 -2
- package/dist/types/src/internal.d.ts +1 -1
- package/package.json +2 -2
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/index.mjs +0 -4
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/contexts.mjs +0 -15
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/destructor.mjs +0 -72
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/index.mjs +0 -317
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/matcher.mjs +0 -83
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/parser.mjs +0 -232
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/shared.mjs +0 -62
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/tokenizer.mjs +0 -192
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/tokens.mjs +0 -140
- package/dist/es/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/types.mjs +0 -18
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/index.mjs +0 -47
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/array.mjs +0 -124
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/checkers.mjs +0 -43
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/delay.mjs +0 -10
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/file.mjs +0 -10
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/img.mjs +0 -20
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/install.mjs +0 -19
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/number.mjs +0 -18
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/uid.mjs +0 -11
- package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/validate.mjs +0 -6
- package/dist/es/node_modules/.pnpm/async-validator@4.2.5/node_modules/async-validator/dist-web/index.mjs +0 -648
- package/dist/es/packages/form-antdv/src/components/ArrayCard/index.mjs +0 -13
- package/dist/es/packages/form-antdv/src/components/ArrayTable/index.mjs +0 -13
- package/dist/es/packages/form-antdv/src/components/DateRange/index.mjs +0 -12
- package/dist/es/packages/form-antdv/src/components/FormArea/index.mjs +0 -11
- package/dist/es/packages/form-antdv/src/components/Input/index.mjs +0 -12
- package/dist/es/packages/form-antdv/src/components/InputNumber/index.mjs +0 -12
- package/dist/es/packages/form-antdv/src/components/Select/index.mjs +0 -15
- package/dist/es/packages/form-antdv/src/internal.mjs +0 -2
- package/dist/es/packages/form-render/src/components/FormProvider.vue.mjs +0 -4
- package/dist/es/packages/form-render/src/components/FormProvider.vue2.mjs +0 -39
- package/dist/es/packages/form-render/src/components/SchemaField.mjs +0 -31
- package/dist/es/packages/form-render/src/components/propsType.mjs +0 -34
- package/dist/es/packages/form-render/src/components/widget/ArrayField.mjs +0 -40
- package/dist/es/packages/form-render/src/components/widget/ErrorField.mjs +0 -14
- package/dist/es/packages/form-render/src/components/widget/Field.mjs +0 -43
- package/dist/es/packages/form-render/src/components/widget/FormItem.mjs +0 -48
- package/dist/es/packages/form-render/src/components/widget/ObjectField.mjs +0 -54
- package/dist/es/packages/form-render/src/components/widget/RecursionField.mjs +0 -31
- package/dist/es/packages/form-render/src/components/widget/index.mjs +0 -8
- package/dist/es/packages/form-render/src/context/field.mjs +0 -12
- package/dist/es/packages/form-render/src/context/form.mjs +0 -12
- package/dist/es/packages/form-render/src/context/index.mjs +0 -8
- package/dist/es/packages/form-render/src/core/ArrayField.mjs +0 -22
- package/dist/es/packages/form-render/src/core/Base.mjs +0 -162
- package/dist/es/packages/form-render/src/core/Field.mjs +0 -17
- package/dist/es/packages/form-render/src/core/Form.mjs +0 -96
- package/dist/es/packages/form-render/src/core/Heart.mjs +0 -25
- package/dist/es/packages/form-render/src/core/ObjectField.mjs +0 -13
- package/dist/es/packages/form-render/src/core/index.mjs +0 -7
- package/dist/es/packages/form-render/src/effects/LifeCycle.mjs +0 -25
- package/dist/es/packages/form-render/src/effects/contants.mjs +0 -10
- package/dist/es/packages/form-render/src/effects/effect.enum.mjs +0 -5
- package/dist/es/packages/form-render/src/effects/effective.mjs +0 -25
- package/dist/es/packages/form-render/src/effects/index.mjs +0 -15
- package/dist/es/packages/form-render/src/effects/onEffects.mjs +0 -21
- package/dist/es/packages/form-render/src/hooks/index.mjs +0 -7
- package/dist/es/packages/form-render/src/hooks/use-namespace/index.mjs +0 -49
- package/dist/es/packages/form-render/src/index.mjs +0 -21
- package/dist/es/packages/form-render/src/internal.mjs +0 -7
- package/dist/es/packages/form-render/src/schema/index.mjs +0 -5
- package/dist/es/packages/form-render/src/schema/makeProxy.mjs +0 -46
- package/dist/es/packages/form-render/src/utils/connect.mjs +0 -12
- package/dist/es/packages/form-render/src/utils/index.mjs +0 -7
- package/dist/es/packages/form-render/src/utils/mapProps.mjs +0 -26
- package/dist/es/packages/form-render/src/utils/schema.mjs +0 -26
- package/dist/es/packages/form-render/src/utils/style.mjs +0 -13
- package/dist/es/packages/form-render/src/utils/transformComponent.mjs +0 -20
- package/dist/es/packages/form-render/theme-chalk/index.css +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/index.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/contexts.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/destructor.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/index.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/matcher.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/parser.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/shared.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/tokenizer.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/tokens.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_path@1.0.4/node_modules/@king-one/path/dist/es/src/types.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/index.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/array.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/checkers.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/delay.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/file.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/img.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/install.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/number.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/uid.js +0 -1
- package/dist/lib/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/validate.js +0 -1
- package/dist/lib/node_modules/.pnpm/async-validator@4.2.5/node_modules/async-validator/dist-web/index.js +0 -12
- package/dist/lib/packages/form-antdv/src/components/ArrayCard/array-card.vue2.js +0 -1
- package/dist/lib/packages/form-antdv/src/components/ArrayCard/index.js +0 -1
- package/dist/lib/packages/form-antdv/src/components/ArrayTable/array-table.vue2.js +0 -1
- package/dist/lib/packages/form-antdv/src/components/ArrayTable/index.js +0 -1
- package/dist/lib/packages/form-antdv/src/components/DateRange/index.js +0 -1
- package/dist/lib/packages/form-antdv/src/components/FormArea/index.js +0 -1
- package/dist/lib/packages/form-antdv/src/components/Input/index.js +0 -1
- package/dist/lib/packages/form-antdv/src/components/InputNumber/index.js +0 -1
- package/dist/lib/packages/form-antdv/src/components/Select/index.js +0 -1
- package/dist/lib/packages/form-antdv/src/internal.js +0 -1
- package/dist/lib/packages/form-render/src/components/FormProvider.vue.js +0 -1
- package/dist/lib/packages/form-render/src/components/FormProvider.vue2.js +0 -1
- package/dist/lib/packages/form-render/src/components/SchemaField.js +0 -1
- package/dist/lib/packages/form-render/src/components/propsType.js +0 -1
- package/dist/lib/packages/form-render/src/components/widget/ArrayField.js +0 -1
- package/dist/lib/packages/form-render/src/components/widget/ErrorField.js +0 -1
- package/dist/lib/packages/form-render/src/components/widget/Field.js +0 -1
- package/dist/lib/packages/form-render/src/components/widget/FormItem.js +0 -1
- package/dist/lib/packages/form-render/src/components/widget/ObjectField.js +0 -1
- package/dist/lib/packages/form-render/src/components/widget/RecursionField.js +0 -1
- package/dist/lib/packages/form-render/src/components/widget/index.js +0 -1
- package/dist/lib/packages/form-render/src/context/field.js +0 -1
- package/dist/lib/packages/form-render/src/context/form.js +0 -1
- package/dist/lib/packages/form-render/src/context/index.js +0 -1
- package/dist/lib/packages/form-render/src/core/ArrayField.js +0 -1
- package/dist/lib/packages/form-render/src/core/Base.js +0 -5
- package/dist/lib/packages/form-render/src/core/Field.js +0 -1
- package/dist/lib/packages/form-render/src/core/Form.js +0 -1
- package/dist/lib/packages/form-render/src/core/Heart.js +0 -1
- package/dist/lib/packages/form-render/src/core/ObjectField.js +0 -1
- package/dist/lib/packages/form-render/src/core/index.js +0 -1
- package/dist/lib/packages/form-render/src/effects/LifeCycle.js +0 -1
- package/dist/lib/packages/form-render/src/effects/contants.js +0 -1
- package/dist/lib/packages/form-render/src/effects/effect.enum.js +0 -1
- package/dist/lib/packages/form-render/src/effects/effective.js +0 -1
- package/dist/lib/packages/form-render/src/effects/index.js +0 -1
- package/dist/lib/packages/form-render/src/effects/onEffects.js +0 -1
- package/dist/lib/packages/form-render/src/hooks/index.js +0 -1
- package/dist/lib/packages/form-render/src/hooks/use-namespace/index.js +0 -1
- package/dist/lib/packages/form-render/src/index.js +0 -1
- package/dist/lib/packages/form-render/src/internal.js +0 -1
- package/dist/lib/packages/form-render/src/schema/index.js +0 -1
- package/dist/lib/packages/form-render/src/schema/makeProxy.js +0 -1
- package/dist/lib/packages/form-render/src/utils/connect.js +0 -1
- package/dist/lib/packages/form-render/src/utils/index.js +0 -1
- package/dist/lib/packages/form-render/src/utils/mapProps.js +0 -1
- package/dist/lib/packages/form-render/src/utils/schema.js +0 -1
- package/dist/lib/packages/form-render/src/utils/style.js +0 -1
- package/dist/lib/packages/form-render/src/utils/transformComponent.js +0 -1
- package/dist/lib/packages/form-render/theme-chalk/index.css +0 -1
- /package/dist/es/{packages/form-antdv/index.mjs → index.mjs} +0 -0
- /package/dist/es/{packages/form-antdv/src → src}/components/ArrayCard/array-card.vue.mjs +0 -0
- /package/dist/es/{packages/form-antdv/src → src}/components/ArrayTable/array-table.vue.mjs +0 -0
- /package/dist/es/{packages/form-antdv/src → src}/components/FormArea/form-area.vue.mjs +0 -0
- /package/dist/es/{packages/form-antdv/src → src}/components/FormArea/form-area.vue2.mjs +0 -0
- /package/dist/es/{packages/form-antdv/src → src}/hooks/index.mjs +0 -0
- /package/dist/es/{packages/form-antdv/src → src}/hooks/use-namespace/index.mjs +0 -0
- /package/dist/es/{packages/form-antdv/src → src}/index.mjs +0 -0
- /package/dist/es/{packages/form-antdv/src → src}/style/index.mjs +0 -0
- /package/dist/lib/{packages/form-antdv/index.js → index.js} +0 -0
- /package/dist/lib/{packages/form-antdv/src → src}/components/ArrayCard/array-card.vue.js +0 -0
- /package/dist/lib/{packages/form-antdv/src → src}/components/ArrayTable/array-table.vue.js +0 -0
- /package/dist/lib/{packages/form-antdv/src → src}/components/FormArea/form-area.vue.js +0 -0
- /package/dist/lib/{packages/form-antdv/src → src}/components/FormArea/form-area.vue2.js +0 -0
- /package/dist/lib/{packages/form-antdv/src → src}/hooks/index.js +0 -0
- /package/dist/lib/{packages/form-antdv/src → src}/hooks/use-namespace/index.js +0 -0
- /package/dist/lib/{packages/form-antdv/src → src}/index.js +0 -0
- /package/dist/lib/{packages/form-antdv/src → src}/style/index.js +0 -0
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { eofTok as p, nameTok as u, ignoreTok as c, bracketDRTok as k, braceLTok as T, braceRTok as g, dbStarTok as C, starTok as x, bangTok as d, dotTok as b, bracketDLTok as m, bracketLTok as P, expandTok as A, bracketRTok as w, parenLTok as S, parenRTok as _, commaTok as $, colonTok as v } from "./tokens.mjs";
|
|
2
|
-
import { bracketDContext as f } from "./contexts.mjs";
|
|
3
|
-
var F = Object.defineProperty, I = (e, t, s) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, n = (e, t, s) => I(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
-
const l = /[\u1680\u180E\u2000-\u200A\u202F\u205F\u3000\uFEFF]/;
|
|
5
|
-
function N(e, t) {
|
|
6
|
-
if (String.fromCharCode)
|
|
7
|
-
return e.codePointAt(t);
|
|
8
|
-
const s = e.charCodeAt(t);
|
|
9
|
-
if (s <= 55295 || s >= 57344)
|
|
10
|
-
return s;
|
|
11
|
-
const i = e.charCodeAt(t + 1);
|
|
12
|
-
return (s << 10) + i - 56613888;
|
|
13
|
-
}
|
|
14
|
-
function R(e) {
|
|
15
|
-
return e === 42 || e === 46 || e === 33 || e === 91 || e === 93 || e === 40 || e === 41 || e === 44 || e === 58 || e === 126 || e === 123 || e === 125;
|
|
16
|
-
}
|
|
17
|
-
function r(e, t) {
|
|
18
|
-
const s = new Error(e);
|
|
19
|
-
return Object.assign(s, t), s;
|
|
20
|
-
}
|
|
21
|
-
function o(e, t, s) {
|
|
22
|
-
let i = "";
|
|
23
|
-
for (let h = t; h < s; h++) {
|
|
24
|
-
const a = e.charAt(h);
|
|
25
|
-
a !== "\\" && (i += a);
|
|
26
|
-
}
|
|
27
|
-
return i;
|
|
28
|
-
}
|
|
29
|
-
class W {
|
|
30
|
-
constructor(t) {
|
|
31
|
-
n(this, "input"), n(this, "state"), n(this, "type_"), this.input = t, this.state = {
|
|
32
|
-
context: [],
|
|
33
|
-
type: null,
|
|
34
|
-
pos: 0
|
|
35
|
-
}, this.type_ = null;
|
|
36
|
-
}
|
|
37
|
-
curContext() {
|
|
38
|
-
return this.state.context[this.state.context.length - 1];
|
|
39
|
-
}
|
|
40
|
-
includesContext(t) {
|
|
41
|
-
for (let s = this.state.context.length - 1; s >= 0; s--)
|
|
42
|
-
if (this.state.context[s] === t)
|
|
43
|
-
return !0;
|
|
44
|
-
return !1;
|
|
45
|
-
}
|
|
46
|
-
unexpect(t) {
|
|
47
|
-
return t = t || this.state.type, r(
|
|
48
|
-
`Unexpect token "${t.flag}" in ${this.state.pos} char.`,
|
|
49
|
-
{
|
|
50
|
-
pos: this.state.pos
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
expectNext(t, s) {
|
|
55
|
-
if (t && t.expectNext && s && !t.expectNext.call(this, s))
|
|
56
|
-
throw r(
|
|
57
|
-
`Unexpect token "${s.flag}" token should not be behind "${t.flag}" token.(${this.state.pos}th char)`,
|
|
58
|
-
{
|
|
59
|
-
pos: this.state.pos
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
expectPrev(t, s) {
|
|
64
|
-
if (t && t.expectPrev && s && !t.expectPrev.call(this, s))
|
|
65
|
-
throw r(
|
|
66
|
-
`Unexpect token "${t.flag}" should not be behind "${s.flag}"(${this.state.pos}th char).`,
|
|
67
|
-
{
|
|
68
|
-
pos: this.state.pos
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
match(t) {
|
|
73
|
-
return this.state.type === t;
|
|
74
|
-
}
|
|
75
|
-
skipSpace() {
|
|
76
|
-
if (this.curContext() !== f)
|
|
77
|
-
t: for (; this.state.pos < this.input.length; ) {
|
|
78
|
-
const t = this.input.charCodeAt(this.state.pos);
|
|
79
|
-
switch (t) {
|
|
80
|
-
case 32:
|
|
81
|
-
case 160:
|
|
82
|
-
++this.state.pos;
|
|
83
|
-
break;
|
|
84
|
-
case 13:
|
|
85
|
-
this.input.charCodeAt(this.state.pos + 1) === 10 && ++this.state.pos;
|
|
86
|
-
case 10:
|
|
87
|
-
case 8232:
|
|
88
|
-
case 8233:
|
|
89
|
-
++this.state.pos;
|
|
90
|
-
break;
|
|
91
|
-
default:
|
|
92
|
-
if (t > 8 && t < 14 || t >= 5760 && l.test(String.fromCharCode(t)))
|
|
93
|
-
++this.state.pos;
|
|
94
|
-
else
|
|
95
|
-
break t;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
next() {
|
|
100
|
-
if (this.type_ = this.state.type, this.input.length <= this.state.pos)
|
|
101
|
-
return this.finishToken(p);
|
|
102
|
-
this.skipSpace(), this.readToken(
|
|
103
|
-
this.getCode(),
|
|
104
|
-
this.state.pos > 0 ? this.getCode(this.state.pos - 1) : -1 / 0
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
getCode(t = this.state.pos) {
|
|
108
|
-
return N(this.input, t);
|
|
109
|
-
}
|
|
110
|
-
eat(t) {
|
|
111
|
-
return this.match(t) ? (this.next(), !0) : !1;
|
|
112
|
-
}
|
|
113
|
-
readKeyWord() {
|
|
114
|
-
const t = this.state.pos;
|
|
115
|
-
let s = "";
|
|
116
|
-
for (; ; ) {
|
|
117
|
-
const i = this.getCode(), h = this.getCode(this.state.pos - 1);
|
|
118
|
-
if (this.input.length === this.state.pos) {
|
|
119
|
-
s = o(this.input, t, this.state.pos + 1);
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
if (!R(i) || h === 92) {
|
|
123
|
-
if (i === 32 || i === 160 || i === 10 || i === 8232 || i === 8233) {
|
|
124
|
-
s = o(this.input, t, this.state.pos);
|
|
125
|
-
break;
|
|
126
|
-
}
|
|
127
|
-
if (i === 13 && this.input.charCodeAt(this.state.pos + 1) === 10) {
|
|
128
|
-
s = o(this.input, t, this.state.pos);
|
|
129
|
-
break;
|
|
130
|
-
}
|
|
131
|
-
if (i > 8 && i < 14 || i >= 5760 && l.test(String.fromCharCode(i))) {
|
|
132
|
-
s = o(this.input, t, this.state.pos);
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
this.state.pos++;
|
|
136
|
-
} else {
|
|
137
|
-
s = o(this.input, t, this.state.pos);
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
this.finishToken(u, s);
|
|
142
|
-
}
|
|
143
|
-
readIgnoreString() {
|
|
144
|
-
const t = this.state.pos;
|
|
145
|
-
let s, i = "";
|
|
146
|
-
for (; ; ) {
|
|
147
|
-
const h = this.getCode();
|
|
148
|
-
if (this.state.pos >= this.input.length)
|
|
149
|
-
break;
|
|
150
|
-
if ((h === 91 || h === 93) && s === 92)
|
|
151
|
-
this.state.pos++, s = "";
|
|
152
|
-
else if (h === 93 && s === 93) {
|
|
153
|
-
i = this.input.slice(t, this.state.pos - 1).replace(/\\([[\]])/g, "$1"), this.state.pos++;
|
|
154
|
-
break;
|
|
155
|
-
} else
|
|
156
|
-
this.state.pos++, s = h;
|
|
157
|
-
}
|
|
158
|
-
this.finishToken(c, i), this.finishToken(k);
|
|
159
|
-
}
|
|
160
|
-
finishToken(t, s) {
|
|
161
|
-
const i = this.state.type;
|
|
162
|
-
this.state.type = t, s !== void 0 && (this.state.value = s), this.expectNext(i, t), this.expectPrev(t, i), t.updateContext && t.updateContext.call(this, i);
|
|
163
|
-
}
|
|
164
|
-
readToken(t, s) {
|
|
165
|
-
if (s === 92)
|
|
166
|
-
return this.readKeyWord();
|
|
167
|
-
if (this.input.length <= this.state.pos)
|
|
168
|
-
this.finishToken(p);
|
|
169
|
-
else if (this.curContext() === f)
|
|
170
|
-
this.readIgnoreString();
|
|
171
|
-
else if (t === 123)
|
|
172
|
-
this.state.pos++, this.finishToken(T);
|
|
173
|
-
else if (t === 125)
|
|
174
|
-
this.state.pos++, this.finishToken(g);
|
|
175
|
-
else if (t === 42) {
|
|
176
|
-
if (this.state.pos++, this.getCode() === 42)
|
|
177
|
-
return this.state.pos++, this.finishToken(C);
|
|
178
|
-
this.finishToken(x);
|
|
179
|
-
} else if (t === 33)
|
|
180
|
-
this.state.pos++, this.finishToken(d);
|
|
181
|
-
else if (t === 46)
|
|
182
|
-
this.state.pos++, this.finishToken(b);
|
|
183
|
-
else if (t === 91) {
|
|
184
|
-
if (this.state.pos++, this.getCode() === 91)
|
|
185
|
-
return this.state.pos++, this.finishToken(m);
|
|
186
|
-
this.finishToken(P);
|
|
187
|
-
} else t === 126 ? (this.state.pos++, this.finishToken(A)) : t === 93 ? (this.state.pos++, this.finishToken(w)) : t === 40 ? (this.state.pos++, this.finishToken(S)) : t === 41 ? (this.state.pos++, this.finishToken(_)) : t === 44 ? (this.state.pos++, this.finishToken($)) : t === 58 ? (this.state.pos++, this.finishToken(v)) : this.readKeyWord();
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
export {
|
|
191
|
-
W as Tokenizer
|
|
192
|
-
};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { destructorContext as a, braceContext as f, bracketContext as N, bracketArrayContext as L, bracketDContext as b, parenContext as l } from "./contexts.mjs";
|
|
2
|
-
function o(t, x) {
|
|
3
|
-
return {
|
|
4
|
-
flag: t,
|
|
5
|
-
...x
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
const e = o("name", {
|
|
9
|
-
expectNext(t) {
|
|
10
|
-
return this.includesContext(a) ? t === e || t === c || t === u || t === k || t === h : t === s || t === c || t === i || t === u || t === p || t === h || t === P || t === r;
|
|
11
|
-
}
|
|
12
|
-
}), d = o("*", {
|
|
13
|
-
expectNext(t) {
|
|
14
|
-
return t === s || t === T || t === r || t === i || t === c || t === p;
|
|
15
|
-
}
|
|
16
|
-
}), R = o("**", {
|
|
17
|
-
expectNext(t) {
|
|
18
|
-
return t === s || t === r || t === i || t === c || t === p;
|
|
19
|
-
}
|
|
20
|
-
}), s = o(".", {
|
|
21
|
-
expectNext(t) {
|
|
22
|
-
return t === s || t === e || t === n || t === d || t === R || t === r || t === C || t === i;
|
|
23
|
-
},
|
|
24
|
-
expectPrev(t) {
|
|
25
|
-
return t === s || t === e || t === m || t === d || t === p || t === u || t === P || t === k;
|
|
26
|
-
}
|
|
27
|
-
}), g = o("!", {
|
|
28
|
-
expectNext(t) {
|
|
29
|
-
return t === e || t === n;
|
|
30
|
-
}
|
|
31
|
-
}), h = o(":", {
|
|
32
|
-
expectNext(t) {
|
|
33
|
-
return this.includesContext(a) ? t === e || t === C || t === r : t === e || t === n || t === u;
|
|
34
|
-
}
|
|
35
|
-
}), C = o("{", {
|
|
36
|
-
expectNext(t) {
|
|
37
|
-
return t === e;
|
|
38
|
-
},
|
|
39
|
-
expectPrev(t) {
|
|
40
|
-
return this.includesContext(a) ? t === h || t === c || t === r : t === s || t === h || t === T;
|
|
41
|
-
},
|
|
42
|
-
updateContext() {
|
|
43
|
-
this.state.context.push(f);
|
|
44
|
-
}
|
|
45
|
-
}), k = o("}", {
|
|
46
|
-
expectNext(t) {
|
|
47
|
-
return this.includesContext(a) ? t === c || t === k || t === i || t === u : t === s || t === i || t === c;
|
|
48
|
-
},
|
|
49
|
-
expectPrev(t) {
|
|
50
|
-
return t === e || t === k || t === u;
|
|
51
|
-
},
|
|
52
|
-
updateContext() {
|
|
53
|
-
this.state.context.pop(f);
|
|
54
|
-
}
|
|
55
|
-
}), r = o("[", {
|
|
56
|
-
expectNext(t) {
|
|
57
|
-
return this.includesContext(a) ? t === e || t === r || t === C || t === u : t === e || t === n || t === h || t === r || t === w || t === u;
|
|
58
|
-
},
|
|
59
|
-
expectPrev(t) {
|
|
60
|
-
return this.includesContext(a) ? t === h || t === c || t === r : t === d || t === r || t === s || t === e || t === T || t === c;
|
|
61
|
-
},
|
|
62
|
-
updateContext() {
|
|
63
|
-
this.state.context.push(N);
|
|
64
|
-
}
|
|
65
|
-
}), u = o("]", {
|
|
66
|
-
expectNext(t) {
|
|
67
|
-
return this.includesContext(a) ? t === c || t === k || t === u || t === i : t === s || t === i || t === c || t === p || t === u;
|
|
68
|
-
},
|
|
69
|
-
updateContext() {
|
|
70
|
-
if (!this.includesContext(L)) {
|
|
71
|
-
if (!this.includesContext(N))
|
|
72
|
-
throw this.unexpect();
|
|
73
|
-
this.state.context.pop();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}), n = o("[[", {
|
|
77
|
-
updateContext() {
|
|
78
|
-
this.state.context.push(b);
|
|
79
|
-
}
|
|
80
|
-
}), m = o("]]", {
|
|
81
|
-
updateContext() {
|
|
82
|
-
if (this.curContext() !== b)
|
|
83
|
-
throw this.unexpect();
|
|
84
|
-
this.state.context.pop();
|
|
85
|
-
}
|
|
86
|
-
}), T = o("(", {
|
|
87
|
-
expectNext(t) {
|
|
88
|
-
return t === e || t === n || t === C || t === g || t === r;
|
|
89
|
-
},
|
|
90
|
-
expectPrev(t) {
|
|
91
|
-
return t === d;
|
|
92
|
-
},
|
|
93
|
-
updateContext() {
|
|
94
|
-
this.state.context.push(l);
|
|
95
|
-
}
|
|
96
|
-
}), p = o(")", {
|
|
97
|
-
expectNext(t) {
|
|
98
|
-
return t === s || t === i || t === c || t === p;
|
|
99
|
-
},
|
|
100
|
-
updateContext() {
|
|
101
|
-
if (this.curContext() !== l)
|
|
102
|
-
throw this.unexpect();
|
|
103
|
-
this.state.context.pop();
|
|
104
|
-
}
|
|
105
|
-
}), c = o(",", {
|
|
106
|
-
expectNext(t) {
|
|
107
|
-
return t === e || t === n || t === r || t === C;
|
|
108
|
-
}
|
|
109
|
-
}), w = o("ignore", {
|
|
110
|
-
expectNext(t) {
|
|
111
|
-
return t === m;
|
|
112
|
-
},
|
|
113
|
-
expectPrev(t) {
|
|
114
|
-
return t === n;
|
|
115
|
-
}
|
|
116
|
-
}), P = o("expandTok", {
|
|
117
|
-
expectNext(t) {
|
|
118
|
-
return t === s || t === i || t === c || t === p;
|
|
119
|
-
}
|
|
120
|
-
}), i = o("eof");
|
|
121
|
-
export {
|
|
122
|
-
g as bangTok,
|
|
123
|
-
C as braceLTok,
|
|
124
|
-
k as braceRTok,
|
|
125
|
-
n as bracketDLTok,
|
|
126
|
-
m as bracketDRTok,
|
|
127
|
-
r as bracketLTok,
|
|
128
|
-
u as bracketRTok,
|
|
129
|
-
h as colonTok,
|
|
130
|
-
c as commaTok,
|
|
131
|
-
R as dbStarTok,
|
|
132
|
-
s as dotTok,
|
|
133
|
-
i as eofTok,
|
|
134
|
-
P as expandTok,
|
|
135
|
-
w as ignoreTok,
|
|
136
|
-
e as nameTok,
|
|
137
|
-
T as parenLTok,
|
|
138
|
-
p as parenRTok,
|
|
139
|
-
d as starTok
|
|
140
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
function r(e) {
|
|
2
|
-
return (t) => t && t.type === e;
|
|
3
|
-
}
|
|
4
|
-
const s = r("Identifier"), n = r("IgnoreExpression"), o = r("DotOperator"), i = r("WildcardOperator"), p = r("ExpandOperator"), a = r("GroupExpression"), c = r("RangeExpression"), x = r("DestructorExpression"), E = r("ObjectPattern"), O = r("ObjectPatternProperty"), d = r("ArrayPattern");
|
|
5
|
-
export {
|
|
6
|
-
d as isArrayPattern,
|
|
7
|
-
x as isDestructorExpression,
|
|
8
|
-
o as isDotOperator,
|
|
9
|
-
p as isExpandOperator,
|
|
10
|
-
a as isGroupExpression,
|
|
11
|
-
s as isIdentifier,
|
|
12
|
-
n as isIgnoreExpression,
|
|
13
|
-
E as isObjectPattern,
|
|
14
|
-
O as isObjectPatternProperty,
|
|
15
|
-
c as isRangeExpression,
|
|
16
|
-
r as isType,
|
|
17
|
-
i as isWildcardOperator
|
|
18
|
-
};
|
package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/index.mjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { getType as i, isArr as o, isBool as t, isFn as s, isHTMLElement as m, isMap as a, isNum as p, isNumberLike as f, isObj as l, isPlainObj as n, isReactElement as x, isRegExp as d, isSet as g, isStr as u, isWeakMap as b, isWeakSet as c } from "./src/checkers.mjs";
|
|
2
|
-
import { each as v, every as y, find as I, findIndex as S, includes as k, map as A, move as E, reduce as M, shuffleArray as N, some as R, toArr as T } from "./src/array.mjs";
|
|
3
|
-
import { getImgSize as w, mmtopx as F } from "./src/img.mjs";
|
|
4
|
-
import { uid as O } from "./src/uid.mjs";
|
|
5
|
-
import { validatePageRange as W } from "./src/validate.mjs";
|
|
6
|
-
import { rangeNumber as B } from "./src/number.mjs";
|
|
7
|
-
import { base64ToFile as H } from "./src/file.mjs";
|
|
8
|
-
import { withInstall as C, withInstallDirectives as G } from "./src/install.mjs";
|
|
9
|
-
import { delay as K } from "./src/delay.mjs";
|
|
10
|
-
export {
|
|
11
|
-
H as base64ToFile,
|
|
12
|
-
K as delay,
|
|
13
|
-
v as each,
|
|
14
|
-
y as every,
|
|
15
|
-
I as find,
|
|
16
|
-
S as findIndex,
|
|
17
|
-
w as getImgSize,
|
|
18
|
-
i as getType,
|
|
19
|
-
k as includes,
|
|
20
|
-
o as isArr,
|
|
21
|
-
t as isBool,
|
|
22
|
-
s as isFn,
|
|
23
|
-
m as isHTMLElement,
|
|
24
|
-
a as isMap,
|
|
25
|
-
p as isNum,
|
|
26
|
-
f as isNumberLike,
|
|
27
|
-
l as isObj,
|
|
28
|
-
n as isPlainObj,
|
|
29
|
-
x as isReactElement,
|
|
30
|
-
d as isRegExp,
|
|
31
|
-
g as isSet,
|
|
32
|
-
u as isStr,
|
|
33
|
-
b as isWeakMap,
|
|
34
|
-
c as isWeakSet,
|
|
35
|
-
A as map,
|
|
36
|
-
F as mmtopx,
|
|
37
|
-
E as move,
|
|
38
|
-
B as rangeNumber,
|
|
39
|
-
M as reduce,
|
|
40
|
-
N as shuffleArray,
|
|
41
|
-
R as some,
|
|
42
|
-
T as toArr,
|
|
43
|
-
O as uid,
|
|
44
|
-
W as validatePageRange,
|
|
45
|
-
C as withInstall,
|
|
46
|
-
G as withInstallDirectives
|
|
47
|
-
};
|
package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/array.mjs
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { isArr as c, isStr as l, isObj as o } from "./checkers.mjs";
|
|
2
|
-
const p = (e) => c(e) ? e : e ? [e] : [];
|
|
3
|
-
function r(e, n, f) {
|
|
4
|
-
if (c(e) || l(e)) {
|
|
5
|
-
if (f) {
|
|
6
|
-
for (let t = e.length - 1; t >= 0; t--)
|
|
7
|
-
if (n(e[t], t) === !1)
|
|
8
|
-
return;
|
|
9
|
-
} else
|
|
10
|
-
for (let t = 0; t < e.length; t++)
|
|
11
|
-
if (n(e[t], t) === !1)
|
|
12
|
-
return;
|
|
13
|
-
} else if (o(e)) {
|
|
14
|
-
let t;
|
|
15
|
-
for (t in e)
|
|
16
|
-
if (Object.hasOwnProperty.call(e, t) && n(e[t], t) === !1)
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function j(e, n, f) {
|
|
21
|
-
const t = c(e) || l(e) ? [] : {};
|
|
22
|
-
return r(
|
|
23
|
-
e,
|
|
24
|
-
(i, u) => {
|
|
25
|
-
const s = n(i, u);
|
|
26
|
-
c(t) ? t.push(s) : t[u] = s;
|
|
27
|
-
},
|
|
28
|
-
f
|
|
29
|
-
), t;
|
|
30
|
-
}
|
|
31
|
-
function A(e, n, f, t) {
|
|
32
|
-
let i = f;
|
|
33
|
-
return r(
|
|
34
|
-
e,
|
|
35
|
-
(u, s) => {
|
|
36
|
-
i = n(i, u, s);
|
|
37
|
-
},
|
|
38
|
-
t
|
|
39
|
-
), i;
|
|
40
|
-
}
|
|
41
|
-
function O(e, n, f) {
|
|
42
|
-
let t = !0;
|
|
43
|
-
return r(
|
|
44
|
-
e,
|
|
45
|
-
(i, u) => {
|
|
46
|
-
if (!n(i, u))
|
|
47
|
-
return t = !1, !1;
|
|
48
|
-
},
|
|
49
|
-
f
|
|
50
|
-
), t;
|
|
51
|
-
}
|
|
52
|
-
function h(e, n, f) {
|
|
53
|
-
let t = !1;
|
|
54
|
-
return r(
|
|
55
|
-
e,
|
|
56
|
-
(i, u) => {
|
|
57
|
-
if (n(i, u))
|
|
58
|
-
return t = !0, !1;
|
|
59
|
-
},
|
|
60
|
-
f
|
|
61
|
-
), t;
|
|
62
|
-
}
|
|
63
|
-
function b(e, n, f) {
|
|
64
|
-
let t = -1;
|
|
65
|
-
return r(
|
|
66
|
-
e,
|
|
67
|
-
(i, u) => {
|
|
68
|
-
if (n(i, u))
|
|
69
|
-
return t = u, !1;
|
|
70
|
-
},
|
|
71
|
-
f
|
|
72
|
-
), t;
|
|
73
|
-
}
|
|
74
|
-
function M(e, n, f) {
|
|
75
|
-
let t;
|
|
76
|
-
return r(
|
|
77
|
-
e,
|
|
78
|
-
(i, u) => {
|
|
79
|
-
if (n(i, u))
|
|
80
|
-
return t = i, !1;
|
|
81
|
-
},
|
|
82
|
-
f
|
|
83
|
-
), t;
|
|
84
|
-
}
|
|
85
|
-
function m(e, n, f) {
|
|
86
|
-
return l(e) ? e.includes(n) : h(e, (t) => t === n, f);
|
|
87
|
-
}
|
|
88
|
-
function w(e, n, f) {
|
|
89
|
-
if (n === f || f < 0 || n < 0 || f > e.length - 1 || n > e.length - 1)
|
|
90
|
-
return e;
|
|
91
|
-
if (n < f) {
|
|
92
|
-
const t = e[n];
|
|
93
|
-
for (let i = n; i < f; i++)
|
|
94
|
-
e[i] = e[i + 1];
|
|
95
|
-
e[f] = t;
|
|
96
|
-
} else {
|
|
97
|
-
const t = e[n];
|
|
98
|
-
for (let i = n; i > f; i--)
|
|
99
|
-
e[i] = e[i - 1];
|
|
100
|
-
e[f] = t;
|
|
101
|
-
}
|
|
102
|
-
return e;
|
|
103
|
-
}
|
|
104
|
-
function P(e) {
|
|
105
|
-
const n = e.slice();
|
|
106
|
-
for (let f = n.length - 1; f > 0; f--) {
|
|
107
|
-
const t = Math.floor(Math.random() * (f + 1));
|
|
108
|
-
[n[f], n[t]] = [n[t], n[f]];
|
|
109
|
-
}
|
|
110
|
-
return n;
|
|
111
|
-
}
|
|
112
|
-
export {
|
|
113
|
-
r as each,
|
|
114
|
-
O as every,
|
|
115
|
-
M as find,
|
|
116
|
-
b as findIndex,
|
|
117
|
-
m as includes,
|
|
118
|
-
j as map,
|
|
119
|
-
w as move,
|
|
120
|
-
A as reduce,
|
|
121
|
-
P as shuffleArray,
|
|
122
|
-
h as some,
|
|
123
|
-
p as toArr
|
|
124
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const o = Object.prototype.toString, i = (t) => o.call(t);
|
|
2
|
-
function n(t) {
|
|
3
|
-
return (e) => i(e) === `[object ${t}]`;
|
|
4
|
-
}
|
|
5
|
-
const c = (t) => typeof t == "function", r = Array.isArray, u = n("Object"), p = n("String"), a = n("Boolean"), s = n("Number");
|
|
6
|
-
function f(t) {
|
|
7
|
-
return t && t instanceof Map;
|
|
8
|
-
}
|
|
9
|
-
const y = (t) => t && t instanceof Set;
|
|
10
|
-
function S(t) {
|
|
11
|
-
return t && t instanceof WeakMap;
|
|
12
|
-
}
|
|
13
|
-
function b(t) {
|
|
14
|
-
return t && t instanceof WeakSet;
|
|
15
|
-
}
|
|
16
|
-
function g(t) {
|
|
17
|
-
return s(t) || /^\d+$/.test(t);
|
|
18
|
-
}
|
|
19
|
-
const l = (t) => typeof t == "object", M = n("RegExp");
|
|
20
|
-
function j(t) {
|
|
21
|
-
return t && t.$$typeof && t._owner;
|
|
22
|
-
}
|
|
23
|
-
function k(t) {
|
|
24
|
-
return Object.prototype.toString.call(t).includes("HTML");
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
i as getType,
|
|
28
|
-
r as isArr,
|
|
29
|
-
a as isBool,
|
|
30
|
-
c as isFn,
|
|
31
|
-
k as isHTMLElement,
|
|
32
|
-
f as isMap,
|
|
33
|
-
s as isNum,
|
|
34
|
-
g as isNumberLike,
|
|
35
|
-
l as isObj,
|
|
36
|
-
u as isPlainObj,
|
|
37
|
-
j as isReactElement,
|
|
38
|
-
M as isRegExp,
|
|
39
|
-
y as isSet,
|
|
40
|
-
p as isStr,
|
|
41
|
-
S as isWeakMap,
|
|
42
|
-
b as isWeakSet
|
|
43
|
-
};
|
package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/file.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
function b(a, i) {
|
|
2
|
-
var c, s;
|
|
3
|
-
const n = a.split(","), l = (s = (c = n[0]) == null ? void 0 : c.match(/:(.*?);/)) == null ? void 0 : s[1], e = atob(n[1]), r = e.length, o = new Uint8Array(r);
|
|
4
|
-
for (let t = 0; t < r; t++)
|
|
5
|
-
o[t] = e.charCodeAt(t);
|
|
6
|
-
return new File([o], i, { type: l });
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
b as base64ToFile
|
|
10
|
-
};
|
package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/img.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function r(i, t = 1) {
|
|
2
|
-
return new Promise((n, o) => {
|
|
3
|
-
const e = new Image();
|
|
4
|
-
e.src = i, e.onload = () => {
|
|
5
|
-
n({
|
|
6
|
-
width: (e.width / t).toFixed(2),
|
|
7
|
-
height: (e.height / t).toFixed(2)
|
|
8
|
-
});
|
|
9
|
-
}, e.onerror = () => {
|
|
10
|
-
o(!1);
|
|
11
|
-
};
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function g(i, t = 72) {
|
|
15
|
-
return i / 10 / 2.54 * t;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
r as getImgSize,
|
|
19
|
-
g as mmtopx
|
|
20
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const i = "K";
|
|
2
|
-
function c(t) {
|
|
3
|
-
return t.install = (n) => {
|
|
4
|
-
const e = t;
|
|
5
|
-
n.component(i + e.name, e);
|
|
6
|
-
}, t;
|
|
7
|
-
}
|
|
8
|
-
function l(t, n) {
|
|
9
|
-
return {
|
|
10
|
-
install: (e) => {
|
|
11
|
-
e.directive(n, t);
|
|
12
|
-
},
|
|
13
|
-
directive: t
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
c as withInstall,
|
|
18
|
-
l as withInstallDirectives
|
|
19
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
function m(i) {
|
|
2
|
-
const N = i.split(/[,,]/).map((r) => r.trim()), t = [];
|
|
3
|
-
return N.forEach((r) => {
|
|
4
|
-
if (r.includes("-")) {
|
|
5
|
-
const [s, u] = r.split("-").map(Number);
|
|
6
|
-
if (Number.isNaN(s) || Number.isNaN(u))
|
|
7
|
-
return;
|
|
8
|
-
for (let e = s; e <= u; e++)
|
|
9
|
-
t.push(e);
|
|
10
|
-
} else {
|
|
11
|
-
const s = Number(r);
|
|
12
|
-
Number.isNaN(s) || t.push(s);
|
|
13
|
-
}
|
|
14
|
-
}), t;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
m as rangeNumber
|
|
18
|
-
};
|
package/dist/es/node_modules/.pnpm/@king-one_utils@1.0.14/node_modules/@king-one/utils/src/uid.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
let l = 36, e = "";
|
|
2
|
-
for (; l--; ) e += l.toString(36);
|
|
3
|
-
const r = e.replace(/\d/g, "");
|
|
4
|
-
function a(o) {
|
|
5
|
-
let t = "", n = o || 11;
|
|
6
|
-
for (t += r[Math.random() * r.length | 0], n--; n--; ) t += e[Math.random() * 36 | 0];
|
|
7
|
-
return t;
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
a as uid
|
|
11
|
-
};
|