@vc-shell/framework 1.0.312 → 1.0.314

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 (30) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{azuread-Csgs_sKj.js → azuread-D_qWdbIb.js} +2 -2
  3. package/dist/{external-provider-CyDAiiDP.js → external-provider-ZB29o5L8.js} +1 -1
  4. package/dist/{external-provider.vue_vue_type_script_setup_true_lang-CnVoBBp4.js → external-provider.vue_vue_type_script_setup_true_lang-BoZpnPym.js} +1 -1
  5. package/dist/external-providers-BTfiGYYz.js +4 -0
  6. package/dist/framework.js +1 -1
  7. package/dist/{index-Be_7BCcT.js → index-BfP-N8bc.js} +1 -1
  8. package/dist/{index-Bpdi_Sze.js → index-CA2rByRm.js} +1 -1
  9. package/dist/{index-CQGYL1ZP.js → index-CTrW6zct.js} +1 -1
  10. package/dist/{index-DdKKc4hb.js → index-CgTxEsoB.js} +1 -1
  11. package/dist/{index-Dc7_DReQ.js → index-Ch4PSjU6.js} +1 -1
  12. package/dist/{index-DoJZnaE4.js → index-CrPpCQbY.js} +1 -1
  13. package/dist/{index-CWxBR18X.js → index-Cwb2WlLw.js} +1 -1
  14. package/dist/{index-CaBPmZRk.js → index-Cx4hwvEp.js} +1 -1
  15. package/dist/{index-VqeC_uGQ.js → index-Cx8k449a.js} +1 -1
  16. package/dist/{index-i_fSWJAs.js → index-DAAdxMve.js} +1 -1
  17. package/dist/{index-D987uc87.js → index-DSm8NYdG.js} +1 -1
  18. package/dist/{index-C0vdLxzV.js → index-Dmdb9CjG.js} +1 -1
  19. package/dist/{index-B19dE8eg.js → index-HhaId0N7.js} +4422 -4411
  20. package/dist/{index-CqnDQOLE.js → index-iJRTNnoF.js} +1 -1
  21. package/dist/{index-BOUFJM1n.js → index-lGwHOLBK.js} +1 -1
  22. package/dist/{index-BzCp1GTJ.js → index-rS8GCO_i.js} +1 -1
  23. package/dist/{index-C7XsNd0G.js → index-tlaj1xQS.js} +1 -1
  24. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -1
  25. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
  26. package/package.json +4 -4
  27. package/shared/modules/dynamic/components/fields/DynamicProperty.ts +6 -7
  28. package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +34 -7
  29. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +1 -1
  30. package/dist/external-providers-True-qPq.js +0 -4
@@ -1,4 +1,4 @@
1
- import { E as Y, s as S, t as Q, e as l, L as o, i as n, c as i, k as s, l as W, f as c, m as f, d as x } from "./index-B19dE8eg.js";
1
+ import { E as Y, s as S, t as Q, e as l, L as o, i as n, c as i, k as s, l as W, f as c, m as f, d as x } from "./index-HhaId0N7.js";
2
2
  const r = 1, Z = 2, V = 3, u = 82, p = 76, w = 117, q = 85, T = 97, y = 122, z = 65, b = 90, j = 95, a = 48, P = 34, v = 40, U = 41, d = 32, t = 62, _ = new Y((O) => {
3
3
  if (O.next == p || O.next == q ? O.advance() : O.next == w && (O.advance(), O.next == a + 8 && O.advance()), O.next != u || (O.advance(), O.next != P)) return;
4
4
  O.advance();
@@ -1,4 +1,4 @@
1
- import { E as s, C as R, s as Y, t as O, e as x, n as w, o as X, j as d, L as k, i as h, c as l, k as f, l as u, f as y, m as g, d as j, g as U, h as G, I as b, N as Z } from "./index-B19dE8eg.js";
1
+ import { E as s, C as R, s as Y, t as O, e as x, n as w, o as X, j as d, L as k, i as h, c as l, k as f, l as u, f as y, m as g, d as j, g as U, h as G, I as b, N as Z } from "./index-HhaId0N7.js";
2
2
  const _ = 177, q = 179, E = 184, v = 12, C = 13, D = 17, z = 20, F = 25, B = 53, N = 95, I = 142, L = 144, A = 145, J = 148, M = 10, H = 13, K = 32, OO = 9, $ = 47, QO = 41, eO = 125, aO = new s((Q, e) => {
3
3
  for (let n = 0, a = Q.next; (e.context && (a < 0 || a == M || a == H || a == $ && Q.peek(n + 1) == $) || a == QO || a == eO) && Q.acceptToken(_), !(a != K && a != OO); )
4
4
  a = Q.peek(++n);
@@ -1,4 +1,4 @@
1
- import { E as S, s as o, t as $, e as t, L as l, i as x, c as W, l as R, f as V, m as r, v as U, d as v, w as u } from "./index-B19dE8eg.js";
1
+ import { E as S, s as o, t as $, e as t, L as l, i as x, c as W, l as R, f as V, m as r, v as U, d as v, w as u } from "./index-HhaId0N7.js";
2
2
  const b = 1, m = 2, p = 263, k = 3, c = 264, s = 265, Y = 266, Z = 4, w = 5, _ = 6, h = 7, X = 8, j = 9, f = 10, G = 11, g = 12, E = 13, I = 14, N = 15, F = 16, C = 17, L = 18, A = 19, H = 20, K = 21, D = 22, B = 23, M = 24, J = 25, OO = 26, $O = 27, QO = 28, iO = 29, yO = 30, aO = 31, zO = 32, SO = 33, PO = 34, WO = 35, eO = 36, TO = 37, sO = 38, XO = 39, dO = 40, nO = 41, qO = 42, oO = 43, tO = 44, lO = 45, xO = 46, RO = 47, VO = 48, rO = 49, UO = 50, vO = 51, uO = 52, bO = 53, mO = 54, pO = 55, kO = 56, cO = 57, YO = 58, ZO = 59, wO = 60, _O = 61, e = 62, hO = 63, jO = 64, fO = 65, GO = {
3
3
  abstract: Z,
4
4
  and: w,
@@ -1,4 +1,4 @@
1
- import { E as a, s as o, t as Q, e as Z, L as _, i as q, c as r, f as l, m as w, d as V } from "./index-B19dE8eg.js";
1
+ import { E as a, s as o, t as Q, e as Z, L as _, i as q, c as r, f as l, m as w, d as V } from "./index-HhaId0N7.js";
2
2
  const R = 1, g = 2, b = 3, y = 4, T = 5, s = 98, c = 101, v = 102, t = 114, p = 69, X = 48, W = 46, d = 43, f = 45, Y = 35, z = 34, x = 124, U = 60, h = 62;
3
3
  function n(O) {
4
4
  return O >= 48 && O <= 57;
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicProperty.d.ts","sourceRoot":"","sources":["../../../../../../shared/modules/dynamic/components/fields/DynamicProperty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAiE,MAAM,KAAK,CAAC;AAEtG,OAAO,cAAc,MAAM,SAAS,CAAC;AAIrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBvC,iBAAiB,qBAAqB,CAAC,GAAG;QAAE,OAAO,EAAE,uBAAuB,CAAA;KAAE;;;;AAJ7F,wBA8GE"}
1
+ {"version":3,"file":"DynamicProperty.d.ts","sourceRoot":"","sources":["../../../../../../shared/modules/dynamic/components/fields/DynamicProperty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAiE,MAAM,KAAK,CAAC;AAEtG,OAAO,cAAc,MAAM,SAAS,CAAC;AAIrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBvC,iBAAiB,qBAAqB,CAAC,GAAG;QAAE,OAAO,EAAE,uBAAuB,CAAA;KAAE;;;;AAJ7F,wBA6GE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDetailsFactory.d.ts","sourceRoot":"","sources":["../../../../../../shared/modules/dynamic/factories/base/useDetailsFactory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAoB,UAAU,EAAE,MAAM,UAAU,CAAC;AAGrE,MAAM,WAAW,uBAAuB,CAAC,IAAI;IAC3C,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACtE,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;IACpE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,iBAAiB;;yIAkG7B,CAAC"}
1
+ {"version":3,"file":"useDetailsFactory.d.ts","sourceRoot":"","sources":["../../../../../../shared/modules/dynamic/factories/base/useDetailsFactory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAoB,UAAU,EAAE,MAAM,UAAU,CAAC;AAGrE,MAAM,WAAW,uBAAuB,CAAC,IAAI;IAC3C,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACtE,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;IACpE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,iBAAiB;;yIA6H7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.312",
3
+ "version": "1.0.314",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -59,9 +59,9 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/dompurify": "^3.0.5",
62
- "@vc-shell/api-client-generator": "^1.0.312",
63
- "@vc-shell/config-generator": "^1.0.312",
64
- "@vc-shell/ts-config": "^1.0.312",
62
+ "@vc-shell/api-client-generator": "^1.0.314",
63
+ "@vc-shell/config-generator": "^1.0.314",
64
+ "@vc-shell/ts-config": "^1.0.314",
65
65
  "@vitejs/plugin-vue": "5.0.3",
66
66
  "cypress-signalr-mock": "^1.5.0",
67
67
  "sass": "^1.69.6",
@@ -125,13 +125,12 @@ export default {
125
125
 
126
126
  return () => {
127
127
  return properties && properties.length
128
- ? properties?.map((field) =>
129
- h(
130
- field.component as Component,
131
- Object.assign(unrefNested(field.props), {
132
- class: unrefNested(props.baseProps).classNames ?? "",
133
- }),
134
- ),
128
+ ? properties.map((field) =>
129
+ h(field.component as Component, {
130
+ ...unrefNested(field.props),
131
+ class: unrefNested(props.baseProps).classNames ?? "",
132
+ key: field.props.key,
133
+ }),
135
134
  )
136
135
  : null;
137
136
  };
@@ -1,4 +1,4 @@
1
- import { ComputedRef, MaybeRef, computed, ref, watch } from "vue";
1
+ import { ComputedRef, MaybeRef, computed, ref, watch, toRaw } from "vue";
2
2
  import * as _ from "lodash-es";
3
3
  import { useForm, useIsFormValid } from "vee-validate";
4
4
  import { useAsync, useLoading } from "../../../../../core/composables";
@@ -74,14 +74,41 @@ export const useDetailsFactory = <Item extends { id?: string }>(factoryParams: U
74
74
  }),
75
75
  );
76
76
 
77
+ function normalizeData(data: unknown): unknown {
78
+ if (
79
+ data === null ||
80
+ data === undefined ||
81
+ data === "" ||
82
+ (Array.isArray(data) && data.length === 0) ||
83
+ (typeof data === "object" && data !== null && Object.keys(data).length === 0)
84
+ ) {
85
+ return undefined;
86
+ }
87
+
88
+ if (Array.isArray(data)) {
89
+ return data.map((item) => normalizeData(item));
90
+ }
91
+
92
+ if (typeof data === "object") {
93
+ const normalizedObj: Record<string, unknown> = {};
94
+ for (const key in data) {
95
+ if (Object.prototype.hasOwnProperty.call(data, key)) {
96
+ normalizedObj[key] = normalizeData(data[key as keyof typeof data]);
97
+ }
98
+ }
99
+ return normalizedObj;
100
+ }
101
+
102
+ return data;
103
+ }
104
+
77
105
  watch(
78
- [() => item, () => itemTemp],
106
+ [() => item.value, () => itemTemp.value],
79
107
  ([state, stateCopy]) => {
80
- isModified.value = !_.isEqualWith(stateCopy.value, state.value, (a, b) => {
81
- if (a === undefined && b === null) return true;
82
- if (a === null && b === undefined) return true;
83
- return undefined; // Use default comparison for other cases
84
- });
108
+ const normalizedState = normalizeData(state);
109
+ const normalizedStateCopy = normalizeData(stateCopy);
110
+
111
+ isModified.value = !_.isEqual(normalizedState, normalizedStateCopy);
85
112
  },
86
113
  { deep: true },
87
114
  );
@@ -6,7 +6,7 @@
6
6
  <slot name="app-switcher"></slot>
7
7
 
8
8
  <template v-if="!$isMobile.value || quantity === 0">
9
- <div class="tw-w-auto">
9
+ <div class="tw-w-auto tw-h-[var(--app-bar-height)] tw-flex tw-items-center">
10
10
  <!-- Logo -->
11
11
  <img
12
12
  class="vc-app-bar__logo"
@@ -1,4 +0,0 @@
1
- import { b as f } from "./index-B19dE8eg.js";
2
- export {
3
- f as default
4
- };