@bagelink/vue 0.0.1290 → 0.0.1294
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/form/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/composables/useSchemaField.d.ts +1 -1
- package/dist/composables/useSchemaField.d.ts.map +1 -1
- package/dist/index.cjs +9 -8
- package/dist/index.mjs +9 -8
- package/dist/style.css +6 -6
- package/package.json +1 -1
- package/src/components/form/inputs/NumberInput.vue +2 -1
- package/src/composables/useSchemaField.ts +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/NumberInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/NumberInput.vue"],"names":[],"mappings":"AAuOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAI7C,KAAK,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAAA;AAEzD,UAAU,gBAAgB;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,QAAQ,CAAA;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;;;;;;AA6VD,wBAQG"}
|
|
@@ -14,7 +14,7 @@ type SlotFunction<T> = (props: SlotProps<T>) => any;
|
|
|
14
14
|
type SupportedSlot<T> = BglFormSchemaT<T> | VNode | SlotFunction<T>;
|
|
15
15
|
export declare function useSchemaField<T extends {
|
|
16
16
|
[key: string]: any;
|
|
17
|
-
}>(
|
|
17
|
+
}>(optns: UseSchemaFieldOptions<T>): {
|
|
18
18
|
renderField: (field: BaseBagelField<T>, slots?: Record<string, SupportedSlot<T>>) => VNode | null;
|
|
19
19
|
getComponent: (field: BaseBagelField<T>) => any;
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSchemaField.d.ts","sourceRoot":"","sources":["../../src/composables/useSchemaField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAuBxE,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IACzD,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB;AAID,UAAU,SAAS,CAAC,CAAC;IAAI,GAAG,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CAAE;AAC3D,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AACn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,aAAa,CAAC,CAAC,CAAC,CAAC,KACtC,KAAK,GAAG,IAAI;0BAjCc,cAAc,CAAC,CAAC,CAAC;EA4M9C"}
|
package/dist/index.cjs
CHANGED
|
@@ -10530,8 +10530,8 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
10530
10530
|
});
|
|
10531
10531
|
const SLOT_VALUE_COMPONENTS$1 = /* @__PURE__ */ new Set(["div", "span", "p"]);
|
|
10532
10532
|
const SRC_VALUE_COMPONENTS$1 = /* @__PURE__ */ new Set(["img", "iframe"]);
|
|
10533
|
-
function useSchemaField(
|
|
10534
|
-
const { mode = "form", getRowData, onUpdate, includeUnset = false } =
|
|
10533
|
+
function useSchemaField(optns) {
|
|
10534
|
+
const { mode = "form", getRowData, onUpdate, includeUnset = false } = optns;
|
|
10535
10535
|
function getComponent(field) {
|
|
10536
10536
|
var _a;
|
|
10537
10537
|
const componentMap = {
|
|
@@ -10578,12 +10578,12 @@ function useSchemaField(options) {
|
|
|
10578
10578
|
}
|
|
10579
10579
|
}
|
|
10580
10580
|
const {
|
|
10581
|
-
|
|
10581
|
+
$el,
|
|
10582
10582
|
children: children2,
|
|
10583
|
-
|
|
10584
|
-
|
|
10583
|
+
options,
|
|
10584
|
+
attrs,
|
|
10585
10585
|
class: fieldClass,
|
|
10586
|
-
|
|
10586
|
+
id,
|
|
10587
10587
|
transform,
|
|
10588
10588
|
slots: fieldSlots,
|
|
10589
10589
|
required: required2,
|
|
@@ -17418,8 +17418,9 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
17418
17418
|
disabled: _ctx.disabled,
|
|
17419
17419
|
required: _ctx.required,
|
|
17420
17420
|
readonly: _ctx.disabled,
|
|
17421
|
-
inputmode: "
|
|
17421
|
+
inputmode: "decimal",
|
|
17422
17422
|
autocomplete: "off",
|
|
17423
|
+
pattern: "^-?\\d*\\.?\\d*$",
|
|
17423
17424
|
autocorrect: "off",
|
|
17424
17425
|
spellcheck: "false",
|
|
17425
17426
|
onInput: inputHandler,
|
|
@@ -17485,7 +17486,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
17485
17486
|
};
|
|
17486
17487
|
}
|
|
17487
17488
|
});
|
|
17488
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-
|
|
17489
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-8f9331b5"]]);
|
|
17489
17490
|
const _hoisted_1$z = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
17490
17491
|
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
17491
17492
|
__name: "OTP",
|
package/dist/index.mjs
CHANGED
|
@@ -10528,8 +10528,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10528
10528
|
});
|
|
10529
10529
|
const SLOT_VALUE_COMPONENTS$1 = /* @__PURE__ */ new Set(["div", "span", "p"]);
|
|
10530
10530
|
const SRC_VALUE_COMPONENTS$1 = /* @__PURE__ */ new Set(["img", "iframe"]);
|
|
10531
|
-
function useSchemaField(
|
|
10532
|
-
const { mode = "form", getRowData, onUpdate, includeUnset = false } =
|
|
10531
|
+
function useSchemaField(optns) {
|
|
10532
|
+
const { mode = "form", getRowData, onUpdate, includeUnset = false } = optns;
|
|
10533
10533
|
function getComponent(field) {
|
|
10534
10534
|
var _a;
|
|
10535
10535
|
const componentMap = {
|
|
@@ -10576,12 +10576,12 @@ function useSchemaField(options) {
|
|
|
10576
10576
|
}
|
|
10577
10577
|
}
|
|
10578
10578
|
const {
|
|
10579
|
-
|
|
10579
|
+
$el,
|
|
10580
10580
|
children: children2,
|
|
10581
|
-
|
|
10582
|
-
|
|
10581
|
+
options,
|
|
10582
|
+
attrs,
|
|
10583
10583
|
class: fieldClass,
|
|
10584
|
-
|
|
10584
|
+
id,
|
|
10585
10585
|
transform,
|
|
10586
10586
|
slots: fieldSlots,
|
|
10587
10587
|
required: required2,
|
|
@@ -17416,8 +17416,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
17416
17416
|
disabled: _ctx.disabled,
|
|
17417
17417
|
required: _ctx.required,
|
|
17418
17418
|
readonly: _ctx.disabled,
|
|
17419
|
-
inputmode: "
|
|
17419
|
+
inputmode: "decimal",
|
|
17420
17420
|
autocomplete: "off",
|
|
17421
|
+
pattern: "^-?\\d*\\.?\\d*$",
|
|
17421
17422
|
autocorrect: "off",
|
|
17422
17423
|
spellcheck: "false",
|
|
17423
17424
|
onInput: inputHandler,
|
|
@@ -17483,7 +17484,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
17483
17484
|
};
|
|
17484
17485
|
}
|
|
17485
17486
|
});
|
|
17486
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-
|
|
17487
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-8f9331b5"]]);
|
|
17487
17488
|
const _hoisted_1$z = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
17488
17489
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
17489
17490
|
__name: "OTP",
|
package/dist/style.css
CHANGED
|
@@ -1847,14 +1847,14 @@ pre code.hljs{
|
|
|
1847
1847
|
direction: ltr;
|
|
1848
1848
|
}
|
|
1849
1849
|
|
|
1850
|
-
.txtInputIconStart .iconStart[data-v-
|
|
1850
|
+
.txtInputIconStart .iconStart[data-v-8f9331b5] {
|
|
1851
1851
|
color: var(--input-color);
|
|
1852
1852
|
position: absolute;
|
|
1853
1853
|
inset-inline-start:calc(var(--input-height) / 3 - 0.25rem);
|
|
1854
1854
|
margin-top: calc(var(--input-height) / 2 );
|
|
1855
1855
|
line-height: 0;
|
|
1856
1856
|
}
|
|
1857
|
-
.textInputSpinnerWrap .spinner[data-v-
|
|
1857
|
+
.textInputSpinnerWrap .spinner[data-v-8f9331b5] {
|
|
1858
1858
|
color: var(--input-color);
|
|
1859
1859
|
position: absolute;
|
|
1860
1860
|
inset-inline-end: 0;
|
|
@@ -1864,18 +1864,18 @@ pre code.hljs{
|
|
|
1864
1864
|
flex-direction: column;
|
|
1865
1865
|
gap: 0;
|
|
1866
1866
|
}
|
|
1867
|
-
.top-bgl-ctrl-num-btn[data-v-
|
|
1867
|
+
.top-bgl-ctrl-num-btn[data-v-8f9331b5]{
|
|
1868
1868
|
margin-top: calc(var(--input-height) / 10) !important;
|
|
1869
1869
|
}
|
|
1870
|
-
.bgl-ctrl-num-btn[data-v-
|
|
1870
|
+
.bgl-ctrl-num-btn[data-v-8f9331b5]{
|
|
1871
1871
|
height: calc(var(--input-height) / 2.5) !important;
|
|
1872
1872
|
isolation: isolate;
|
|
1873
1873
|
}
|
|
1874
|
-
.bgl-big-ctrl-num-btn[data-v-
|
|
1874
|
+
.bgl-big-ctrl-num-btn[data-v-8f9331b5]{
|
|
1875
1875
|
width: 100% !important;
|
|
1876
1876
|
isolation: isolate;
|
|
1877
1877
|
}
|
|
1878
|
-
.bgl-number-input[data-v-
|
|
1878
|
+
.bgl-number-input[data-v-8f9331b5]{
|
|
1879
1879
|
padding-inline-end: 1.75rem !important;
|
|
1880
1880
|
}
|
|
1881
1881
|
|
package/package.json
CHANGED
|
@@ -159,8 +159,9 @@ watch(() => modelValue, (newVal) => {
|
|
|
159
159
|
:disabled
|
|
160
160
|
:required
|
|
161
161
|
:readonly="disabled"
|
|
162
|
-
inputmode="
|
|
162
|
+
inputmode="decimal"
|
|
163
163
|
autocomplete="off"
|
|
164
|
+
pattern="^-?\d*\.?\d*$"
|
|
164
165
|
autocorrect="off"
|
|
165
166
|
spellcheck="false"
|
|
166
167
|
@input="inputHandler"
|
|
@@ -35,8 +35,8 @@ interface SlotProps<T> { row: T, field: BaseBagelField<T> }
|
|
|
35
35
|
type SlotFunction<T> = (props: SlotProps<T>) => any
|
|
36
36
|
type SupportedSlot<T> = BglFormSchemaT<T> | VNode | SlotFunction<T>
|
|
37
37
|
|
|
38
|
-
export function useSchemaField<T extends { [key: string]: any }>(
|
|
39
|
-
const { mode = 'form', getRowData, onUpdate, includeUnset = false } =
|
|
38
|
+
export function useSchemaField<T extends { [key: string]: any }>(optns: UseSchemaFieldOptions<T>) {
|
|
39
|
+
const { mode = 'form', getRowData, onUpdate, includeUnset = false } = optns
|
|
40
40
|
|
|
41
41
|
function getComponent(field: BaseBagelField<T>) {
|
|
42
42
|
const componentMap = {
|
|
@@ -94,12 +94,12 @@ export function useSchemaField<T extends { [key: string]: any }>(options: UseSch
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
const {
|
|
97
|
-
|
|
97
|
+
$el,
|
|
98
98
|
children,
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
options,
|
|
100
|
+
attrs,
|
|
101
101
|
class: fieldClass,
|
|
102
|
-
|
|
102
|
+
id,
|
|
103
103
|
transform,
|
|
104
104
|
slots: fieldSlots,
|
|
105
105
|
required,
|