@bagelink/vue 0.0.124 → 0.0.128

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.
@@ -1,4 +1,4 @@
1
- import { BtnOptions } from '..';
1
+ import { type BtnOptions } from '..';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  side?: boolean | undefined;
4
4
  title?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AA+BA;AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;AAwL7B,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AA+BA;AAGA,OAAO,EAAE,KAAK,UAAU,EAAO,MAAM,eAAe,CAAC;AACrD,OAAO,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;AAwL7B,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import type { MaterialIcons } from '..';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- links?: {
3
+ links?: (() => {
4
4
  label: string;
5
5
  to: string;
6
6
  materialIcon: MaterialIcons;
7
7
  localized?: string | undefined;
8
- }[] | undefined;
8
+ }[]) | undefined;
9
9
  homeIcon?: MaterialIcons | undefined;
10
10
  homeLabel?: string | undefined;
11
11
  homeTo?: string | undefined;
@@ -14,12 +14,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
14
  homeLabel: string;
15
15
  homeTo: string;
16
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
- links?: {
17
+ links?: (() => {
18
18
  label: string;
19
19
  to: string;
20
20
  materialIcon: MaterialIcons;
21
21
  localized?: string | undefined;
22
- }[] | undefined;
22
+ }[]) | undefined;
23
23
  homeIcon?: MaterialIcons | undefined;
24
24
  homeLabel?: string | undefined;
25
25
  homeTo?: string | undefined;
package/dist/index.cjs CHANGED
@@ -14613,6 +14613,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14613
14613
  setup(__props) {
14614
14614
  const isOpen = vue.ref(true);
14615
14615
  return (_ctx, _cache) => {
14616
+ var _a;
14616
14617
  const _component_RouterLink = vue.resolveComponent("RouterLink");
14617
14618
  return vue.openBlock(), vue.createElementBlock("div", {
14618
14619
  class: vue.normalizeClass({ open: isOpen.value, closed: !isOpen.value })
@@ -14629,7 +14630,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14629
14630
  vue.createElementVNode("div", _hoisted_3$F, [
14630
14631
  vue.createElementVNode("div", _hoisted_4$p, [
14631
14632
  vue.createElementVNode("div", _hoisted_5$l, [
14632
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
14633
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a = _ctx.links) == null ? void 0 : _a.call(_ctx), (link) => {
14633
14634
  return vue.openBlock(), vue.createBlock(_component_RouterLink, {
14634
14635
  class: "nav-button",
14635
14636
  to: link.to,
@@ -17910,7 +17911,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
17910
17911
  modalForm({
17911
17912
  side: true,
17912
17913
  title: `${first_name} ${last_name}`,
17913
- schema: props2.personSchema,
17914
+ schema: props2.personSchema(),
17914
17915
  modelValue: person.value,
17915
17916
  onSubmit: (newPerson) => bagel.put("/person", newPerson)
17916
17917
  // .then(() => toast.success(i18nT('updatedSuccessfully'))), // TODO: use toast
package/dist/index.mjs CHANGED
@@ -14611,6 +14611,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14611
14611
  setup(__props) {
14612
14612
  const isOpen = ref(true);
14613
14613
  return (_ctx, _cache) => {
14614
+ var _a;
14614
14615
  const _component_RouterLink = resolveComponent("RouterLink");
14615
14616
  return openBlock(), createElementBlock("div", {
14616
14617
  class: normalizeClass({ open: isOpen.value, closed: !isOpen.value })
@@ -14627,7 +14628,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14627
14628
  createElementVNode("div", _hoisted_3$F, [
14628
14629
  createElementVNode("div", _hoisted_4$p, [
14629
14630
  createElementVNode("div", _hoisted_5$l, [
14630
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
14631
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList((_a = _ctx.links) == null ? void 0 : _a.call(_ctx), (link) => {
14631
14632
  return openBlock(), createBlock(_component_RouterLink, {
14632
14633
  class: "nav-button",
14633
14634
  to: link.to,
@@ -17908,7 +17909,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17908
17909
  modalForm({
17909
17910
  side: true,
17910
17911
  title: `${first_name} ${last_name}`,
17911
- schema: props2.personSchema,
17912
+ schema: props2.personSchema(),
17912
17913
  modelValue: person.value,
17913
17914
  onSubmit: (newPerson) => bagel.put("/person", newPerson)
17914
17915
  // .then(() => toast.success(i18nT('updatedSuccessfully'))), // TODO: use toast
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.124",
4
+ "version": "0.0.128",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -32,8 +32,7 @@
32
32
 
33
33
  <script lang="ts" setup>
34
34
  import { onMounted } from 'vue';
35
- import { BtnOptions } from '@bagelink/vue';
36
- import { Btn } from '@bagelink/vue';
35
+ import { type BtnOptions, Btn } from '@bagelink/vue';
37
36
  import '../styles/modal.css';
38
37
 
39
38
  defineProps<{
@@ -18,7 +18,7 @@
18
18
  <div class="nav-scroll">
19
19
  <div class="nav-links-wrapper">
20
20
  <RouterLink
21
- v-for="link in links"
21
+ v-for="link in links?.()"
22
22
  class="nav-button"
23
23
  :to="link.to"
24
24
  :key="link.label"
@@ -48,7 +48,7 @@ const isOpen = $ref(true);
48
48
 
49
49
  withDefaults(
50
50
  defineProps<{
51
- links?: { label: string; to: string; materialIcon: MaterialIcons, localized?: string }[];
51
+ links?: () => { label: string; to: string; materialIcon: MaterialIcons, localized?: string }[];
52
52
  homeIcon?: MaterialIcons;
53
53
  homeLabel?: string;
54
54
  homeTo?: string;
@@ -99,7 +99,7 @@ const showEditForm = async () => {
99
99
  modalForm({
100
100
  side: true,
101
101
  title: `${first_name} ${last_name}`,
102
- schema: props.personSchema,
102
+ schema: props.personSchema(),
103
103
  modelValue: person,
104
104
  onSubmit: (newPerson) => bagel.put('/person', newPerson),
105
105
  // .then(() => toast.success(i18nT('updatedSuccessfully'))), // TODO: use toast