codesaaz-core 0.3.3 → 0.3.5

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.
@@ -20505,7 +20505,7 @@ const vw = { class: "w-full" }, Es = {
20505
20505
  ]);
20506
20506
  };
20507
20507
  }
20508
- }, gx = /* @__PURE__ */ qo("currentUser", {
20508
+ }, hx = /* @__PURE__ */ qo("currentUser", {
20509
20509
  state: () => ({
20510
20510
  user: {}
20511
20511
  }),
@@ -25848,7 +25848,7 @@ var ax = Os(Os({}, Ew), {}, {
25848
25848
  ripple: Tk
25849
25849
  }
25850
25850
  });
25851
- function hx() {
25851
+ function bx() {
25852
25852
  const { layoutState: e, layoutConfig: t, setMenuMode: n, isDarkTheme: o } = ww(), r = { Aura: ax };
25853
25853
  E(Object.keys(r));
25854
25854
  const a = E(t.preset);
@@ -26006,82 +26006,138 @@ function hx() {
26006
26006
  onPresetChange: p
26007
26007
  };
26008
26008
  }
26009
- function bx() {
26009
+ function yx() {
26010
26010
  const e = new bt();
26011
26011
  return { getEntityRecord: async (n, o, r = !1) => {
26012
+ var a;
26012
26013
  try {
26013
- const a = await e.getRecord(n, o, r);
26014
- if ((a == null ? void 0 : a.success) === !1)
26015
- throw a;
26016
- return a;
26017
- } catch (a) {
26018
- throw a;
26014
+ const i = await e.getRecord(n, o, r);
26015
+ if ((i == null ? void 0 : i.success) === !1)
26016
+ throw i;
26017
+ return (a = i == null ? void 0 : i.response) == null ? void 0 : a.result;
26018
+ } catch (i) {
26019
+ throw i;
26019
26020
  } finally {
26020
26021
  }
26021
26022
  } };
26022
26023
  }
26023
- function yx() {
26024
+ function vx() {
26024
26025
  const e = new bt();
26025
26026
  return { getAllEntityRecords: async (n, o = !1) => {
26027
+ var r;
26026
26028
  try {
26027
- const r = await e.getEntityRecords(n, o);
26028
- if ((r == null ? void 0 : r.success) === !1)
26029
- throw r;
26030
- return r;
26029
+ const a = await e.getEntityRecords(n, o);
26030
+ if ((a == null ? void 0 : a.success) === !1)
26031
+ throw a;
26032
+ return (r = a == null ? void 0 : a.response) == null ? void 0 : r.result;
26031
26033
  } catch {
26032
26034
  throw error;
26033
26035
  } finally {
26034
26036
  }
26035
26037
  } };
26036
26038
  }
26037
- function vx() {
26039
+ function wx() {
26038
26040
  const e = new bt();
26039
26041
  return { addEntityRecord: async (n, o, r = !1) => {
26042
+ var i;
26040
26043
  const a = {
26041
- dataDefinitions: Object.entries(o).map(([i, s]) => ({
26042
- recordColumnName: i,
26043
- recordColumnValue: s
26044
+ dataDefinitions: Object.entries(o).map(([s, c]) => ({
26045
+ recordColumnName: s,
26046
+ recordColumnValue: c
26044
26047
  }))
26045
26048
  };
26046
26049
  try {
26047
- const i = await e.addRecord(n, a, r);
26048
- if ((i == null ? void 0 : i.success) === !1)
26049
- throw i;
26050
- return i;
26051
- } catch (i) {
26052
- throw i;
26050
+ const s = await e.addRecord(n, a, r);
26051
+ if ((s == null ? void 0 : s.success) === !1)
26052
+ throw s;
26053
+ return (i = s == null ? void 0 : s.response) == null ? void 0 : i.result;
26054
+ } catch (s) {
26055
+ throw s;
26053
26056
  }
26054
26057
  } };
26055
26058
  }
26056
- function wx() {
26059
+ function kx() {
26057
26060
  const e = new bt();
26058
26061
  return { deleteEntityRecord: async (n, o, r = !1) => {
26062
+ var a;
26059
26063
  try {
26060
- const a = await e.deleteRecord(n, o, r);
26061
- if ((a == null ? void 0 : a.success) === !1)
26062
- throw a;
26063
- return a;
26064
- } catch (a) {
26065
- throw a;
26064
+ const i = await e.deleteRecord(n, o, r);
26065
+ if ((i == null ? void 0 : i.success) === !1)
26066
+ throw i;
26067
+ return (a = i == null ? void 0 : i.response) == null ? void 0 : a.result;
26068
+ } catch (i) {
26069
+ throw i;
26066
26070
  } finally {
26067
26071
  }
26068
26072
  } };
26069
26073
  }
26070
- function kx() {
26074
+ function xx() {
26071
26075
  const e = new fa();
26072
26076
  return { externalRestAPICall: async (n, o = !1) => {
26073
26077
  try {
26074
26078
  const r = await e.externalRestAPI(n, o);
26075
26079
  if ((r == null ? void 0 : r.success) === !1)
26076
26080
  throw r;
26077
- return r;
26081
+ return r == null ? void 0 : r.response;
26078
26082
  } catch (r) {
26079
26083
  throw r;
26080
26084
  } finally {
26081
26085
  }
26082
26086
  } };
26083
26087
  }
26084
- function xx() {
26088
+ function ix() {
26089
+ const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
26090
+ return {
26091
+ getNamedQueryByName: async (m, g = !1) => {
26092
+ const h = a();
26093
+ return await t(`/api/app/v1/${h}/named-query/${m}`, g);
26094
+ },
26095
+ updateNamedQuery: async (m, g, h = !1) => {
26096
+ const y = a();
26097
+ return await o(`/api/app/v1/${y}/named-query/${m}`, g, h);
26098
+ },
26099
+ deleteNamedQuery: async (m, g = !1) => {
26100
+ const h = a();
26101
+ return await r(`/api/app/v1/${h}/named-query/${m}`, {}, g);
26102
+ },
26103
+ getAllNamedQueries: async (m = !1) => {
26104
+ const g = a();
26105
+ return await t(`/api/app/v1/${g}/named-query`, m);
26106
+ },
26107
+ createNewNameQuery: async (m, g = !1) => {
26108
+ const h = a();
26109
+ return await n(`/api/app/v1/${h}/named-query`, m, g);
26110
+ },
26111
+ getAllNamedQueryNames: async (m = !1) => {
26112
+ const g = a();
26113
+ return await t(`/api/app/v1/${g}/named-query`, m);
26114
+ },
26115
+ validateNameQuery: async (m, g = !1) => {
26116
+ const h = a();
26117
+ return await n(`/api/app/v1/${h}/named-query/validate`, m, g);
26118
+ },
26119
+ executeNameQuery: async (m, g = !1) => {
26120
+ const h = a();
26121
+ return await n(`/api/app/v1/${h}/named-query/execute`, m, g);
26122
+ }
26123
+ };
26124
+ }
26125
+ function Sx() {
26126
+ const e = new ix();
26127
+ return { executeQuery: async (n, o = !1) => {
26128
+ var r;
26129
+ try {
26130
+ const a = await e.executeNameQuery(n, o);
26131
+ if ((a == null ? void 0 : a.success) === !1)
26132
+ throw a;
26133
+ return (r = a == null ? void 0 : a.response) == null ? void 0 : r.result;
26134
+ } catch (a) {
26135
+ throw a;
26136
+ } finally {
26137
+ }
26138
+ } };
26139
+ }
26140
+ function Cx() {
26085
26141
  const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
26086
26142
  return {
26087
26143
  getThemes: async (f = !1) => {
@@ -26103,14 +26159,14 @@ function xx() {
26103
26159
  }
26104
26160
  };
26105
26161
  }
26106
- function Sx() {
26162
+ function Ex() {
26107
26163
  const { get: e } = st();
26108
26164
  return {
26109
26165
  getPlatformComponents: async (o = !1) => await e("/api/platform/v1/search/COMPONENT_PALLET?page=0&size=50&continue", o),
26110
26166
  getComponentTemplates: async (o, r = !1) => await e(`api/platform/v1/search/COMPONENT_TEMPLATE?keyword=${o}&page=0&size=50`, r)
26111
26167
  };
26112
26168
  }
26113
- function Cx() {
26169
+ function $x() {
26114
26170
  const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
26115
26171
  return {
26116
26172
  getLayouts: async (f = !1) => {
@@ -26135,7 +26191,7 @@ function Cx() {
26135
26191
  }
26136
26192
  };
26137
26193
  }
26138
- function Ex() {
26194
+ function Ox() {
26139
26195
  const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
26140
26196
  return {
26141
26197
  getGlobalVars: async (d = !1) => {
@@ -26164,7 +26220,7 @@ function Ex() {
26164
26220
  }
26165
26221
  };
26166
26222
  }
26167
- function $x() {
26223
+ function Tx() {
26168
26224
  const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
26169
26225
  return {
26170
26226
  getConnectionByID: async (g, h = !1) => {
@@ -26202,7 +26258,7 @@ function $x() {
26202
26258
  }
26203
26259
  };
26204
26260
  }
26205
- const ix = { style: {
26261
+ const sx = { style: {
26206
26262
  position: "fixed",
26207
26263
  top: 0,
26208
26264
  left: 0,
@@ -26213,7 +26269,7 @@ const ix = { style: {
26213
26269
  alignItems: "center",
26214
26270
  justifyContent: "center",
26215
26271
  zIndex: 9999
26216
- } }, sx = { style: { "background-color": "white", "border-radius": "0.5rem", "min-width": "320px", "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.1)", overflow: "hidden" } }, lx = { style: { "font-size": "1.125rem", "font-weight": "600" } }, ux = { style: { padding: "1rem", "font-size": "1rem", color: "#1f2937" } }, cx = { style: { padding: "0.75rem 1rem", display: "flex", "justify-content": "flex-end", gap: "0.5rem", "border-top": "1px solid #e5e7eb" } }, dx = {
26272
+ } }, lx = { style: { "background-color": "white", "border-radius": "0.5rem", "min-width": "320px", "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.1)", overflow: "hidden" } }, ux = { style: { "font-size": "1.125rem", "font-weight": "600" } }, cx = { style: { padding: "1rem", "font-size": "1rem", color: "#1f2937" } }, dx = { style: { padding: "0.75rem 1rem", display: "flex", "justify-content": "flex-end", gap: "0.5rem", "border-top": "1px solid #e5e7eb" } }, fx = {
26217
26273
  __name: "confirm-dialog",
26218
26274
  props: {
26219
26275
  type: { type: String, default: "info" },
@@ -26273,17 +26329,17 @@ const ix = { style: {
26273
26329
  padding: "1rem"
26274
26330
  };
26275
26331
  });
26276
- return (c, l) => (b(), S("div", ix, [
26277
- v("div", sx, [
26332
+ return (c, l) => (b(), S("div", sx, [
26333
+ v("div", lx, [
26278
26334
  v("div", {
26279
26335
  style: Zn(s.value)
26280
26336
  }, [
26281
- v("span", lx, Z(e.title), 1)
26337
+ v("span", ux, Z(e.title), 1)
26282
26338
  ], 4),
26283
- v("div", ux, [
26339
+ v("div", cx, [
26284
26340
  v("span", null, Z(e.message), 1)
26285
26341
  ]),
26286
- v("div", cx, [
26342
+ v("div", dx, [
26287
26343
  v("button", {
26288
26344
  style: { padding: "0.375rem 1rem", "border-radius": "0.375rem", "background-color": "#f3f4f6", color: "#1f2937", "font-weight": "500", border: "none" },
26289
26345
  onClick: a
@@ -26297,7 +26353,7 @@ const ix = { style: {
26297
26353
  ]));
26298
26354
  }
26299
26355
  };
26300
- function Ox({
26356
+ function Ix({
26301
26357
  type: e = "danger",
26302
26358
  title: t = "Warning",
26303
26359
  message: n = "All the changes you made will be lost, do you wish to continue?",
@@ -26322,7 +26378,7 @@ function Ox({
26322
26378
  s.unmount(), i.parentNode === document.body && document.body.removeChild(i);
26323
26379
  }, 300);
26324
26380
  }
26325
- return () => tt(dx, {
26381
+ return () => tt(fx, {
26326
26382
  modelValue: a.value,
26327
26383
  "onUpdate:modelValue": (f) => {
26328
26384
  a.value = f, f || u();
@@ -26337,7 +26393,7 @@ function Ox({
26337
26393
  });
26338
26394
  s.mount(i);
26339
26395
  }
26340
- function Tx() {
26396
+ function Bx() {
26341
26397
  const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
26342
26398
  return {
26343
26399
  getAssets: async (u, f = 0, d = 50, p = !1) => {
@@ -26361,7 +26417,7 @@ function Tx() {
26361
26417
  }
26362
26418
  };
26363
26419
  }
26364
- function Ix() {
26420
+ function Rx() {
26365
26421
  const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
26366
26422
  return {
26367
26423
  getExtrenalSystemByID: async (d, p = !1) => {
@@ -26390,7 +26446,7 @@ function Ix() {
26390
26446
  }
26391
26447
  };
26392
26448
  }
26393
- function Bx() {
26449
+ function Px() {
26394
26450
  const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
26395
26451
  return {
26396
26452
  getDataBaseSchema: async (u, f = !1) => {
@@ -26411,76 +26467,40 @@ function Bx() {
26411
26467
  }
26412
26468
  };
26413
26469
  }
26414
- function Rx() {
26415
- const e = Ue(), { get: t, post: n, put: o, del: r } = st(), a = () => e.getAppId();
26416
- return {
26417
- getNamedQueryByName: async (m, g = !1) => {
26418
- const h = a();
26419
- return await t(`/api/app/v1/${h}/named-query/${m}`, g);
26420
- },
26421
- updateNamedQuery: async (m, g, h = !1) => {
26422
- const y = a();
26423
- return await o(`/api/app/v1/${y}/named-query/${m}`, g, h);
26424
- },
26425
- deleteNamedQuery: async (m, g = !1) => {
26426
- const h = a();
26427
- return await r(`/api/app/v1/${h}/named-query/${m}`, {}, g);
26428
- },
26429
- getAllNamedQueries: async (m = !1) => {
26430
- const g = a();
26431
- return await t(`/api/app/v1/${g}/named-query`, m);
26432
- },
26433
- createNewNameQuery: async (m, g = !1) => {
26434
- const h = a();
26435
- return await n(`/api/app/v1/${h}/named-query`, m, g);
26436
- },
26437
- getAllNamedQueryNames: async (m = !1) => {
26438
- const g = a();
26439
- return await t(`/api/app/v1/${g}/named-query`, m);
26440
- },
26441
- validateNameQuery: async (m, g = !1) => {
26442
- const h = a();
26443
- return await n(`/api/app/v1/${h}/named-query/validate`, m, g);
26444
- },
26445
- executeNameQuery: async (m, g = !1) => {
26446
- const h = a();
26447
- return await n(`/api/app/v1/${h}/named-query/execute`, m, g);
26448
- }
26449
- };
26450
- }
26451
- const Px = {
26470
+ const Fx = {
26452
26471
  install(e, t) {
26453
26472
  e.component("CSEntityGrid", Lr), e.component("csentitygrid", Lr), e.component("CSEntityList", bi), e.component("csentitylist", bi), e.component("CSFieldExpression", Zi), e.component("csfieldexpression", Zi), e.component("CSEntity360View", gi), e.component("csentity360view", gi), e.component("CSEntityListing", Ci), e.component("csentitylisting", Ci), e.component("CSEntityListingTile", Ei), e.component("csentitylistingtile", Ei), e.component("CSEntityListingCarousel", Ui), e.component("csentitylistingcarousel", Ui), e.component("CSEntitySelection", ps), e.component("csentityselection", ps), e.component("CSEntitySelectionWithRest", ms), e.component("csentityselectionwithrest", ms), e.component("CSEntityExplorer", es), e.component("csentityexplorer", es), e.component("CSMenu", ts), e.component("csmenu", ts), e.component("CSTextInput", ns), e.component("cstextinput", ns), e.component("CSButton", os), e.component("csbutton", os), e.component("CSStateText", rs), e.component("csstatetext", rs), e.component("CSRangeInput", as), e.component("csrangeinput", as), e.component("CSSelector", ds), e.component("csselector", ds), e.component("CSDynamicSelection", go), e.component("csdynamicselection", go), e.component("CSEntityRecordSelection", fs), e.component("csentityrecordselection", fs), e.component("CSMenuSelection", gs), e.component("csmenuSelection", gs), e.component("CSlabel", ys), e.component("cslabel", ys), e.component("CSLogin", vs), e.component("cslogin", vs), e.component("CSSignup", ws), e.component("cssignup", ws), e.component("CSRolesSelection", hs), e.component("csrolesselection", hs), e.component("CSPermissionSelection", bs), e.component("cspermissionselection", bs), e.component("CSIconSelection", ks), e.component("csiconselection", ks), e.component("CSIconComponent", xs), e.component("csiconcomponent", xs), e.component("ClassesSelection", Cs), e.component("classesselection", Cs), e.component("CSPageSelection", Es), e.component("cspageselection", Es), e.component("CSGlobalLoader", Ss), e.component("csgloballoader", Ss), e.component("CSInputText", ma), e.component("csinputtext", ma), e.component("CSInputNumber", ga), e.component("csinputnumber", ga), e.component("CSToggleButton", ha), e.component("cstogglebutton", ha), e.component("CSRadioButton", ba), e.component("csradiobutton", ba), e.component("CSColorPicker", ya), e.component("cscolorpicker", ya), e.component("CSDatePicker", va), e.component("csdatepicker", va), e.component("CSTextArea", wa), e.component("cstextarea", wa), e.component("CSInputPassword", ka), e.component("csinputpassword", ka), e.component("CSRangeDatePicker", xa), e.component("csrangedatepicker", xa), e.component("CSInputKnob", Sa), e.component("csinputknob", Sa), e.component("CSInputMask", Ca), e.component("csinputmask", Ca), e.component("CSInputOtp", Ea), e.component("csinputotp", Ea), e.component("CSInputRating", $a), e.component("csinputrating", $a), e.component("CSInputSlider", Oa), e.component("csinputslider", Oa);
26454
26473
  }
26455
26474
  };
26456
26475
  export {
26457
- Px as default,
26458
- Ox as openGlobalDialog,
26459
- vx as useAddEntityRecord,
26460
- Tx as useAssetsService,
26476
+ Fx as default,
26477
+ Ix as openGlobalDialog,
26478
+ wx as useAddEntityRecord,
26479
+ Bx as useAssetsService,
26461
26480
  uw as useClassesService,
26462
- Sx as useComponentService,
26463
- $x as useConnectionService,
26464
- gx as useCurrentUser,
26465
- Bx as useDatabaseService,
26466
- wx as useDeleteEntityRecord,
26481
+ Ex as useComponentService,
26482
+ Tx as useConnectionService,
26483
+ hx as useCurrentUser,
26484
+ Px as useDatabaseService,
26485
+ kx as useDeleteEntityRecord,
26467
26486
  nv as useEntitiesStore,
26468
26487
  bt as useEntityRecordService,
26469
26488
  tu as useEntityService,
26470
- kx as useExternalRestAPI,
26489
+ Sx as useExecuteQuery,
26490
+ xx as useExternalRestAPI,
26471
26491
  fa as useExternalRestService,
26472
- Ix as useExternalSystemService,
26473
- yx as useGetAllEntityRecords,
26474
- bx as useGetEntityRecord,
26492
+ Rx as useExternalSystemService,
26493
+ vx as useGetAllEntityRecords,
26494
+ yx as useGetEntityRecord,
26475
26495
  Ue as useGlobalConfigsStore,
26476
- Ex as useGlobalService,
26496
+ Ox as useGlobalService,
26477
26497
  st as useHttpClient,
26478
- Cx as useLayoutService,
26498
+ $x as useLayoutService,
26479
26499
  Zr as useLoadingStore,
26480
26500
  dv as useMenuService,
26481
- Rx as useNamedQueryService,
26501
+ ix as useNamedQueryService,
26482
26502
  yw as usePageService,
26483
26503
  _g as useSecurityService,
26484
- hx as useThemeConfig,
26485
- xx as useThemeService
26504
+ bx as useThemeConfig,
26505
+ Cx as useThemeService
26486
26506
  };