@bagelink/vue 0.0.1290 → 0.0.1292

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.
@@ -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
- }>(options: UseSchemaFieldOptions<T>): {
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;AACnD,KAAK,aAAa,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,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AA;CAAE,EAAE,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC;yBAkCvF,cAAc,CAAC,CAAC,CAAC,UAChB,MAAM,CAAC,MAAM,EAAE,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(options) {
10534
- const { mode = "form", getRowData, onUpdate, includeUnset = false } = options;
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
- // $el,
10581
+ $el,
10582
10582
  children: children2,
10583
- // options,
10584
- // attrs,
10583
+ options,
10584
+ attrs,
10585
10585
  class: fieldClass,
10586
- // id,
10586
+ id,
10587
10587
  transform,
10588
10588
  slots: fieldSlots,
10589
10589
  required: required2,
@@ -17418,7 +17418,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17418
17418
  disabled: _ctx.disabled,
17419
17419
  required: _ctx.required,
17420
17420
  readonly: _ctx.disabled,
17421
- inputmode: "numeric",
17421
+ inputmode: "decimal",
17422
17422
  autocomplete: "off",
17423
17423
  autocorrect: "off",
17424
17424
  spellcheck: "false",
@@ -17485,7 +17485,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17485
17485
  };
17486
17486
  }
17487
17487
  });
17488
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-3b46ec89"]]);
17488
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-36f18d20"]]);
17489
17489
  const _hoisted_1$z = ["value", "autofocus", "onKeydown", "onPaste"];
17490
17490
  const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17491
17491
  __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(options) {
10532
- const { mode = "form", getRowData, onUpdate, includeUnset = false } = options;
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
- // $el,
10579
+ $el,
10580
10580
  children: children2,
10581
- // options,
10582
- // attrs,
10581
+ options,
10582
+ attrs,
10583
10583
  class: fieldClass,
10584
- // id,
10584
+ id,
10585
10585
  transform,
10586
10586
  slots: fieldSlots,
10587
10587
  required: required2,
@@ -17416,7 +17416,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
17416
17416
  disabled: _ctx.disabled,
17417
17417
  required: _ctx.required,
17418
17418
  readonly: _ctx.disabled,
17419
- inputmode: "numeric",
17419
+ inputmode: "decimal",
17420
17420
  autocomplete: "off",
17421
17421
  autocorrect: "off",
17422
17422
  spellcheck: "false",
@@ -17483,7 +17483,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
17483
17483
  };
17484
17484
  }
17485
17485
  });
17486
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-3b46ec89"]]);
17486
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-36f18d20"]]);
17487
17487
  const _hoisted_1$z = ["value", "autofocus", "onKeydown", "onPaste"];
17488
17488
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
17489
17489
  __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-3b46ec89] {
1850
+ .txtInputIconStart .iconStart[data-v-36f18d20] {
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-3b46ec89] {
1857
+ .textInputSpinnerWrap .spinner[data-v-36f18d20] {
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-3b46ec89]{
1867
+ .top-bgl-ctrl-num-btn[data-v-36f18d20]{
1868
1868
  margin-top: calc(var(--input-height) / 10) !important;
1869
1869
  }
1870
- .bgl-ctrl-num-btn[data-v-3b46ec89]{
1870
+ .bgl-ctrl-num-btn[data-v-36f18d20]{
1871
1871
  height: calc(var(--input-height) / 2.5) !important;
1872
1872
  isolation: isolate;
1873
1873
  }
1874
- .bgl-big-ctrl-num-btn[data-v-3b46ec89]{
1874
+ .bgl-big-ctrl-num-btn[data-v-36f18d20]{
1875
1875
  width: 100% !important;
1876
1876
  isolation: isolate;
1877
1877
  }
1878
- .bgl-number-input[data-v-3b46ec89]{
1878
+ .bgl-number-input[data-v-36f18d20]{
1879
1879
  padding-inline-end: 1.75rem !important;
1880
1880
  }
1881
1881
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.1290",
4
+ "version": "0.0.1292",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -159,7 +159,7 @@ watch(() => modelValue, (newVal) => {
159
159
  :disabled
160
160
  :required
161
161
  :readonly="disabled"
162
- inputmode="numeric"
162
+ inputmode="decimal"
163
163
  autocomplete="off"
164
164
  autocorrect="off"
165
165
  spellcheck="false"
@@ -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 }>(options: UseSchemaFieldOptions<T>) {
39
- const { mode = 'form', getRowData, onUpdate, includeUnset = false } = options
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
- // $el,
97
+ $el,
98
98
  children,
99
- // options,
100
- // attrs,
99
+ options,
100
+ attrs,
101
101
  class: fieldClass,
102
- // id,
102
+ id,
103
103
  transform,
104
104
  slots: fieldSlots,
105
105
  required,