@bagelink/vue 0.0.160 → 0.0.164

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.
Files changed (82) hide show
  1. package/dist/components/Btn.vue.d.ts +2 -2
  2. package/dist/components/Btn.vue.d.ts.map +1 -1
  3. package/dist/components/Comments.vue.d.ts.map +1 -1
  4. package/dist/components/DropDown.vue.d.ts.map +1 -1
  5. package/dist/components/FileUploader.vue.d.ts.map +1 -1
  6. package/dist/components/LangText.vue.d.ts.map +1 -1
  7. package/dist/components/NavBar.vue.d.ts.map +1 -1
  8. package/dist/components/PersonPreview.vue.d.ts +1 -1
  9. package/dist/components/PersonPreview.vue.d.ts.map +1 -1
  10. package/dist/components/PersonPreviewFormkit.vue.d.ts +1 -1
  11. package/dist/components/PersonPreviewFormkit.vue.d.ts.map +1 -1
  12. package/dist/components/RTXEditor.vue.d.ts.map +1 -1
  13. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  14. package/dist/components/charts/BarChart.vue.d.ts.map +1 -1
  15. package/dist/components/dashboard/Lineart.vue.d.ts +1 -1
  16. package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
  17. package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
  18. package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
  19. package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
  20. package/dist/components/formkit/AddressArray.vue.d.ts.map +1 -1
  21. package/dist/components/formkit/BankDetailsArray.vue.d.ts.map +1 -1
  22. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts.map +1 -1
  23. package/dist/components/formkit/FileUploader.vue.d.ts.map +1 -1
  24. package/dist/components/formkit/MiscFields.vue.d.ts.map +1 -1
  25. package/dist/index.cjs +60 -49
  26. package/dist/index.mjs +60 -49
  27. package/dist/style.css +1468 -1402
  28. package/package.json +2 -2
  29. package/src/components/Btn.vue +127 -132
  30. package/src/components/Comments.vue +155 -169
  31. package/src/components/DropDown.vue +73 -77
  32. package/src/components/FileUploader.vue +133 -141
  33. package/src/components/FormKitTable.vue +191 -205
  34. package/src/components/LangText.vue +14 -14
  35. package/src/components/NavBar.vue +264 -261
  36. package/src/components/PersonPreview.vue +123 -148
  37. package/src/components/PersonPreviewFormkit.vue +124 -148
  38. package/src/components/RTXEditor.vue +91 -91
  39. package/src/components/TableSchema.vue +150 -156
  40. package/src/components/charts/BarChart.vue +212 -227
  41. package/src/components/dashboard/Lineart.vue +117 -130
  42. package/src/components/form/inputs/CheckInput.vue +90 -90
  43. package/src/components/form/inputs/Checkbox.vue +38 -41
  44. package/src/components/form/inputs/PasswordInput.vue +56 -63
  45. package/src/components/formkit/AddressArray.vue +150 -173
  46. package/src/components/formkit/BankDetailsArray.vue +175 -198
  47. package/src/components/formkit/ContactArrayFormKit.vue +124 -142
  48. package/src/components/formkit/FileUploader.vue +256 -260
  49. package/src/components/formkit/MiscFields.vue +42 -42
  50. package/src/components/formkit/Toggle.vue +97 -97
  51. package/src/styles/bagel.css +1 -0
  52. package/src/styles/buttons.css +5 -0
  53. package/src/styles/dark.css +46 -0
  54. package/src/styles/fonts/Ploni.css +8 -8
  55. package/src/styles/inputs.css +57 -13
  56. package/src/styles/layout.css +43 -0
  57. package/src/styles/text.css +83 -10
  58. package/src/styles/theme.css +25 -155
  59. package/src/styles/fonts/Ploni/ploni-black.eot +0 -0
  60. package/src/styles/fonts/Ploni/ploni-black.woff +0 -0
  61. package/src/styles/fonts/Ploni/ploni-black.woff2 +0 -0
  62. package/src/styles/fonts/Ploni/ploni-bold.eot +0 -0
  63. package/src/styles/fonts/Ploni/ploni-bold.woff +0 -0
  64. package/src/styles/fonts/Ploni/ploni-bold.woff2 +0 -0
  65. package/src/styles/fonts/Ploni/ploni-demibold.eot +0 -0
  66. package/src/styles/fonts/Ploni/ploni-demibold.woff +0 -0
  67. package/src/styles/fonts/Ploni/ploni-demibold.woff2 +0 -0
  68. package/src/styles/fonts/Ploni/ploni-light.eot +0 -0
  69. package/src/styles/fonts/Ploni/ploni-light.woff +0 -0
  70. package/src/styles/fonts/Ploni/ploni-light.woff2 +0 -0
  71. package/src/styles/fonts/Ploni/ploni-medium.eot +0 -0
  72. package/src/styles/fonts/Ploni/ploni-medium.woff +0 -0
  73. package/src/styles/fonts/Ploni/ploni-medium.woff2 +0 -0
  74. package/src/styles/fonts/Ploni/ploni-regular.eot +0 -0
  75. package/src/styles/fonts/Ploni/ploni-regular.woff +0 -0
  76. package/src/styles/fonts/Ploni/ploni-regular.woff2 +0 -0
  77. package/src/styles/fonts/Ploni/ploni-ultrabold.eot +0 -0
  78. package/src/styles/fonts/Ploni/ploni-ultrabold.woff +0 -0
  79. package/src/styles/fonts/Ploni/ploni-ultrabold.woff2 +0 -0
  80. package/src/styles/fonts/Ploni/ploni-ultralight.eot +0 -0
  81. package/src/styles/fonts/Ploni/ploni-ultralight.woff +0 -0
  82. package/src/styles/fonts/Ploni/ploni-ultralight.woff2 +0 -0
package/dist/index.mjs CHANGED
@@ -14589,7 +14589,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14589
14589
  };
14590
14590
  }
14591
14591
  });
14592
- const _hoisted_1$Y = /* @__PURE__ */ createElementVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
14592
+ const _hoisted_1$Y = /* @__PURE__ */ createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
14593
14593
  const _hoisted_2$Q = [
14594
14594
  _hoisted_1$Y
14595
14595
  ];
@@ -14721,7 +14721,7 @@ const _export_sfc = (sfc, props2) => {
14721
14721
  }
14722
14722
  return target;
14723
14723
  };
14724
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-b94d75fb"]]);
14724
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-8fe48560"]]);
14725
14725
  const _hoisted_1$W = { class: "tool-bar" };
14726
14726
  const _hoisted_2$O = { class: "modal-title" };
14727
14727
  const _hoisted_3$H = { class: "modal-footer mt-3" };
@@ -15003,9 +15003,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
15003
15003
  const props2 = __props;
15004
15004
  const fetchData = async () => {
15005
15005
  comments.value = [];
15006
- comments.value = await bagel.get(
15007
- `comments/${props2.ref_table}/${props2.ref_id}`
15008
- );
15006
+ comments.value = await bagel.get(`comments/${props2.ref_table}/${props2.ref_id}`);
15009
15007
  };
15010
15008
  onMounted(fetchData);
15011
15009
  watch(() => props2.ref_id, fetchData);
@@ -15103,7 +15101,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
15103
15101
  };
15104
15102
  }
15105
15103
  });
15106
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-ff29354a"]]);
15104
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-2eead7c8"]]);
15107
15105
  const _hoisted_1$Q = { class: "page-top" };
15108
15106
  const _hoisted_2$I = { class: "top-title" };
15109
15107
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
@@ -15319,14 +15317,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
15319
15317
  emit2("select", data2);
15320
15318
  };
15321
15319
  const bindAttrs = (attrs, field, row) => {
15322
- const arr = Object.entries(
15323
- attrs || {}
15324
- ).map(
15325
- ([key, value]) => [
15326
- key,
15327
- typeof value === "function" ? value(field, row) : value
15328
- ]
15329
- );
15320
+ const arr = Object.entries(attrs || {}).map(([key, value]) => [
15321
+ key,
15322
+ typeof value === "function" ? value(field, row) : value
15323
+ ]);
15330
15324
  const resolvedAttrs = Object.fromEntries(arr);
15331
15325
  return resolvedAttrs;
15332
15326
  };
@@ -15419,7 +15413,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
15419
15413
  };
15420
15414
  }
15421
15415
  });
15422
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-fa7146ce"]]);
15416
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-fb5b163a"]]);
15423
15417
  const _sfc_main$F = {};
15424
15418
  const _hoisted_1$N = { class: "flex space-between" };
15425
15419
  function _sfc_render$1(_ctx, _cache) {
@@ -15811,7 +15805,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15811
15805
  };
15812
15806
  }
15813
15807
  });
15814
- const _withScopeId$2 = (n) => (pushScopeId("data-v-f7af54ed"), n = n(), popScopeId(), n);
15808
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-fe5af582"), n = n(), popScopeId(), n);
15815
15809
  const _hoisted_1$I = { class: "bar-chart" };
15816
15810
  const _hoisted_2$C = {
15817
15811
  key: 0,
@@ -15836,7 +15830,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15836
15830
  },
15837
15831
  setup(__props) {
15838
15832
  useCssVars((_ctx) => ({
15839
- "6227cb5e": floodPercent.value
15833
+ "b74eb91e": floodPercent.value
15840
15834
  }));
15841
15835
  const props2 = __props;
15842
15836
  const loaded = ref(false);
@@ -15859,12 +15853,14 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15859
15853
  // }
15860
15854
  // return allData;
15861
15855
  );
15862
- const maxValue = computed(() => Math.ceil(
15863
- Math.max(
15864
- ...dataArray.value.map((d) => d.value),
15865
- ...dataArray.value.map((d) => (d == null ? void 0 : d.compareValue) || 0)
15856
+ const maxValue = computed(
15857
+ () => Math.ceil(
15858
+ Math.max(
15859
+ ...dataArray.value.map((d) => d.value),
15860
+ ...dataArray.value.map((d) => (d == null ? void 0 : d.compareValue) || 0)
15861
+ )
15866
15862
  )
15867
- ));
15863
+ );
15868
15864
  const marks2 = computed(() => {
15869
15865
  const marksArray = [];
15870
15866
  for (let i2 = 0; i2 <= 5; i2 += 1) {
@@ -15927,7 +15923,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15927
15923
  };
15928
15924
  }
15929
15925
  });
15930
- const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-f7af54ed"]]);
15926
+ const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-fe5af582"]]);
15931
15927
  const explicitKeys = [
15932
15928
  "__key",
15933
15929
  "__init",
@@ -17222,7 +17218,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17222
17218
  };
17223
17219
  }
17224
17220
  });
17225
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-5f3ff6ea"]]);
17221
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-5d0f75db"]]);
17226
17222
  const _hoisted_1$G = { class: "bagel-input" };
17227
17223
  const _hoisted_2$B = { class: "mt-1" };
17228
17224
  const _hoisted_3$x = {
@@ -17241,10 +17237,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17241
17237
  setup(__props) {
17242
17238
  const bagel = useBagel();
17243
17239
  const props2 = __props;
17244
- const formPlaceholders = computed(() => {
17245
- var _a, _b;
17246
- return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17247
- });
17240
+ const formPlaceholders = computed(
17241
+ () => {
17242
+ var _a, _b;
17243
+ return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17244
+ }
17245
+ );
17248
17246
  let val = ref([]);
17249
17247
  let deleteCandidate = ref(-1);
17250
17248
  const del2 = (i2) => {
@@ -17377,7 +17375,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17377
17375
  };
17378
17376
  }
17379
17377
  });
17380
- const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-0533667e"]]);
17378
+ const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-312e5767"]]);
17381
17379
  const _hoisted_1$F = { class: "bagel-input" };
17382
17380
  const _hoisted_2$A = { class: "mt-1" };
17383
17381
  const _hoisted_3$w = {
@@ -17401,10 +17399,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17401
17399
  setup(__props) {
17402
17400
  const bagel = useBagel();
17403
17401
  const props2 = __props;
17404
- const formPlaceholders = computed(() => {
17405
- var _a, _b;
17406
- return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17407
- });
17402
+ const formPlaceholders = computed(
17403
+ () => {
17404
+ var _a, _b;
17405
+ return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17406
+ }
17407
+ );
17408
17408
  let val = ref([]);
17409
17409
  const addNew = () => {
17410
17410
  if (!val.value)
@@ -17560,7 +17560,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17560
17560
  };
17561
17561
  }
17562
17562
  });
17563
- const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-98a4f943"]]);
17563
+ const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-1e3274f9"]]);
17564
17564
  const _hoisted_1$E = { class: "bagel-input" };
17565
17565
  const _hoisted_2$z = { class: "mt-1" };
17566
17566
  const _hoisted_3$v = {
@@ -17589,10 +17589,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17589
17589
  setup(__props) {
17590
17590
  const bagel = useBagel();
17591
17591
  const props2 = __props;
17592
- const formPlaceholders = computed(() => {
17593
- var _a, _b;
17594
- return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17595
- });
17592
+ const formPlaceholders = computed(
17593
+ () => {
17594
+ var _a, _b;
17595
+ return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17596
+ }
17597
+ );
17596
17598
  let val = ref([]);
17597
17599
  let deleteCandidate = ref(-1);
17598
17600
  const del2 = (i2) => {
@@ -17776,7 +17778,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17776
17778
  };
17777
17779
  }
17778
17780
  });
17779
- const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-0928eb22"]]);
17781
+ const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-cc20bcbb"]]);
17780
17782
  const _hoisted_1$D = { class: "misc-wrap" };
17781
17783
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
17782
17784
  __name: "MiscFields",
@@ -17823,8 +17825,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17823
17825
  };
17824
17826
  }
17825
17827
  });
17826
- const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-bac6c2ee"]]);
17827
- const _withScopeId$1 = (n) => (pushScopeId("data-v-d12598ff"), n = n(), popScopeId(), n);
17828
+ const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-91b04350"]]);
17829
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-d0543d4b"), n = n(), popScopeId(), n);
17828
17830
  const _hoisted_1$C = ["title"];
17829
17831
  const _hoisted_2$y = { class: "switch" };
17830
17832
  const _hoisted_3$u = ["id"];
@@ -17871,7 +17873,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17871
17873
  };
17872
17874
  }
17873
17875
  });
17874
- const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-d12598ff"]]);
17876
+ const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-d0543d4b"]]);
17875
17877
  const _hoisted_1$B = { class: "files-wrapper flex" };
17876
17878
  const _hoisted_2$x = {
17877
17879
  key: 0,
@@ -18433,7 +18435,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18433
18435
  };
18434
18436
  }
18435
18437
  });
18436
- const _withScopeId = (n) => (pushScopeId("data-v-69f0d857"), n = n(), popScopeId(), n);
18438
+ const _withScopeId = (n) => (pushScopeId("data-v-0dacba34"), n = n(), popScopeId(), n);
18437
18439
  const _hoisted_1$x = ["title"];
18438
18440
  const _hoisted_2$u = ["for"];
18439
18441
  const _hoisted_3$q = { class: "switch" };
@@ -18488,7 +18490,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18488
18490
  };
18489
18491
  }
18490
18492
  });
18491
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-69f0d857"]]);
18493
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-0dacba34"]]);
18492
18494
  const _hoisted_1$w = ["title"];
18493
18495
  const _hoisted_2$t = { key: 0 };
18494
18496
  const _hoisted_3$p = { class: "flex gap-3" };
@@ -19108,7 +19110,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
19108
19110
  };
19109
19111
  }
19110
19112
  });
19111
- const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-eec3e237"]]);
19113
+ const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-525f5e2e"]]);
19112
19114
  const _hoisted_1$n = ["title"];
19113
19115
  const _hoisted_2$k = ["for"];
19114
19116
  const _hoisted_3$g = ["id", "type", "placeholder", "required", "pattern"];
@@ -28645,7 +28647,7 @@ const _hoisted_1$1 = /* @__PURE__ */ createElementVNode("stop", {
28645
28647
  "stop-color": "white",
28646
28648
  "stop-opacity": "0.4"
28647
28649
  }, null, -1);
28648
- const BRAND_COLOR = "var(--bgl-blue)";
28650
+ const BRAND_COLOR = "var(--bgl-primary)";
28649
28651
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28650
28652
  __name: "Lineart",
28651
28653
  props: {
@@ -28654,7 +28656,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28654
28656
  },
28655
28657
  setup(__props) {
28656
28658
  const props2 = __props;
28657
- const data2 = computed(() => props2.locale === "he" ? [...props2.data].reverse() : props2.data);
28659
+ const data2 = computed(
28660
+ () => props2.locale === "he" ? [...props2.data].reverse() : props2.data
28661
+ );
28658
28662
  const meanValue = computed(() => {
28659
28663
  const sum = props2.data.reduce((acc, curr) => acc + +curr.total_value, 0);
28660
28664
  return sum / props2.data.length;
@@ -28678,8 +28682,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28678
28682
  });
28679
28683
  const tooltipConfiguration = {
28680
28684
  date: { label: "תאריך" },
28681
- total_value: { color: BRAND_COLOR, label: "סכום", format: (v) => `₪${v.toLocaleString()}` },
28682
- total_count: { label: "מספר התרומות", format: (v) => `${v.toLocaleString()}` }
28685
+ total_value: {
28686
+ color: BRAND_COLOR,
28687
+ label: "סכום",
28688
+ format: (v) => `₪${v.toLocaleString()}`
28689
+ },
28690
+ total_count: {
28691
+ label: "מספר התרומות",
28692
+ format: (v) => `${v.toLocaleString()}`
28693
+ }
28683
28694
  };
28684
28695
  let chartSize = ref(null);
28685
28696
  const chartContainer = ref();