bt-core-app 2.0.93 → 2.0.94

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 (2) hide show
  1. package/dist/bt-core-app.js +141 -129
  2. package/package.json +1 -1
@@ -46788,7 +46788,7 @@ const hY = Ue({
46788
46788
  }, {
46789
46789
  default: H(() => [
46790
46790
  ve(m.$slots, "form-toolbar", {}, () => [
46791
- ve(m.$slots, "form-toolbar-left"),
46791
+ ve(m.$slots, "form-toolbar-left", { schema: m.schema }),
46792
46792
  k(Pe, {
46793
46793
  icon: "$chevron-left",
46794
46794
  onClick: y[0] || (y[0] = (M) => s.value--),
@@ -46803,7 +46803,7 @@ const hY = Ue({
46803
46803
  }, null, 8, ["disabled"]),
46804
46804
  ae("div", HY, Ne(m.label ?? m.schema.title), 1),
46805
46805
  k(ga),
46806
- ve(m.$slots, "form-toolbar-right"),
46806
+ ve(m.$slots, "form-toolbar-right", { schema: m.schema }),
46807
46807
  k(Ba, null, {
46808
46808
  default: H(() => [
46809
46809
  r.value && m.canSaveProgress !== !1 ? (N(), ue(Pe, {
@@ -46857,15 +46857,18 @@ const hY = Ue({
46857
46857
  group: "",
46858
46858
  "hide-on-leave": ""
46859
46859
  }, {
46860
- default: H(() => [
46861
- s.value != 0 ? (N(), ue(Pe, {
46862
- onClick: y[2] || (y[2] = (M) => s.value--),
46863
- class: "ma-4",
46864
- color: m.schema.ctlColor,
46865
- key: "1",
46866
- text: "Back"
46867
- }, null, 8, ["color"])) : ee("", !0)
46868
- ]),
46860
+ default: H(() => {
46861
+ var M;
46862
+ return [
46863
+ s.value != 0 ? (N(), ue(Pe, {
46864
+ onClick: y[2] || (y[2] = (T) => s.value--),
46865
+ class: "ma-4",
46866
+ color: (M = m.schema) == null ? void 0 : M.ctlColor,
46867
+ key: "1",
46868
+ text: "Back"
46869
+ }, null, 8, ["color"])) : ee("", !0)
46870
+ ];
46871
+ }),
46869
46872
  _: 1
46870
46873
  }),
46871
46874
  k(ga),
@@ -46873,23 +46876,26 @@ const hY = Ue({
46873
46876
  group: "",
46874
46877
  "hide-on-leave": ""
46875
46878
  }, {
46876
- default: H(() => [
46877
- s.value < m.schema.slides.length - 1 ? (N(), ue(Pe, {
46878
- onClick: y[3] || (y[3] = (M) => s.value++),
46879
- class: "ma-4",
46880
- color: m.schema.ctlColor,
46881
- disabled: !C.value,
46882
- key: "1",
46883
- text: "Next"
46884
- }, null, 8, ["color", "disabled"])) : m.isEditing && m.canSubmit && !u.value && s.value >= m.schema.slides.length - 1 ? (N(), ue(Pe, {
46885
- onClick: h,
46886
- class: "ma-4",
46887
- color: m.schema.ctlColor,
46888
- disabled: !C.value,
46889
- key: "2",
46890
- text: "Submit"
46891
- }, null, 8, ["color", "disabled"])) : ee("", !0)
46892
- ]),
46879
+ default: H(() => {
46880
+ var M, T;
46881
+ return [
46882
+ s.value < m.schema.slides.length - 1 ? (N(), ue(Pe, {
46883
+ onClick: y[3] || (y[3] = (D) => s.value++),
46884
+ class: "ma-4",
46885
+ color: (M = m.schema) == null ? void 0 : M.ctlColor,
46886
+ disabled: !C.value,
46887
+ key: "1",
46888
+ text: "Next"
46889
+ }, null, 8, ["color", "disabled"])) : m.isEditing && m.canSubmit && !u.value && s.value >= m.schema.slides.length - 1 ? (N(), ue(Pe, {
46890
+ onClick: h,
46891
+ class: "ma-4",
46892
+ color: (T = m.schema) == null ? void 0 : T.ctlColor,
46893
+ disabled: !C.value,
46894
+ key: "2",
46895
+ text: "Submit"
46896
+ }, null, 8, ["color", "disabled"])) : ee("", !0)
46897
+ ];
46898
+ }),
46893
46899
  _: 2
46894
46900
  }, 1024)
46895
46901
  ])
@@ -46957,97 +46963,100 @@ const hY = Ue({
46957
46963
  class: "w-100",
46958
46964
  style: Oe(`background-color: ${m.schema.bgColor}`)
46959
46965
  }, {
46960
- default: H(() => [
46961
- m.hideHeader !== !0 ? (N(), ue(qr, {
46962
- key: 0,
46963
- style: Oe(`background-color: ${m.schema.bgColor}`)
46964
- }, {
46965
- default: H(() => [
46966
- ve(m.$slots, "form-toolbar", {}, () => [
46967
- ve(m.$slots, "form-toolbar-left"),
46968
- k(Pe, {
46969
- icon: "$chevron-left",
46970
- onClick: y[6] || (y[6] = (S) => s.value--),
46971
- disabled: s.value == 0,
46972
- variant: "text"
46973
- }, null, 8, ["disabled"]),
46974
- k(Pe, {
46975
- icon: "$chevron-right",
46976
- onClick: y[7] || (y[7] = (S) => s.value++),
46977
- disabled: !b.value || s.value >= m.schema.slides.length - 1,
46978
- variant: "text"
46979
- }, null, 8, ["disabled"]),
46980
- ae("div", qY, Ne(m.label ?? m.schema.title), 1),
46981
- k(ga),
46982
- ve(m.$slots, "form-toolbar-right"),
46983
- k(Ba, null, {
46984
- default: H(() => [
46985
- r.value && m.canSaveProgress !== !1 ? (N(), ue(Pe, {
46986
- key: 0,
46987
- onClick: Wt(g, ["stop"]),
46988
- class: "mr-4",
46989
- "prepend-icon": "$content-save",
46990
- size: "small",
46991
- text: "Save",
46992
- variant: "outlined"
46993
- })) : ee("", !0)
46994
- ]),
46995
- _: 1
46996
- }),
46997
- f.value != null ? (N(), ne("div", GY, [
46998
- f.value != null ? (N(), ue(w, {
46999
- key: 0,
47000
- src: f.value
47001
- }, null, 8, ["src"])) : ee("", !0)
47002
- ])) : ee("", !0)
47003
- ])
47004
- ]),
47005
- _: 2
47006
- }, 1032, ["style"])) : ee("", !0),
47007
- ae("div", {
47008
- style: Oe(m.useScroll ? _(i) : void 0)
47009
- }, [
47010
- k(p, { errorMsg: c.value }, null, 8, ["errorMsg"]),
47011
- k(x, { loadingMsg: d.value }, null, 8, ["loadingMsg"]),
47012
- (N(!0), ne(Me, null, Ge(m.schema.slides, (S, C) => (N(), ne("div", { key: C }, [
47013
- _(Na)(S.name) ? ee("", !0) : (N(), ne("div", ZY, [
47014
- k(rr, { style: { "max-width": "50px" } }),
47015
- ae("div", KY, Ne(S.name), 1),
47016
- k(rr)
47017
- ])),
47018
- ve(m.$slots, S.name, {
47019
- data: m.data,
47020
- slide: S
47021
- }, () => [
47022
- (N(!0), ne(Me, null, Ge(S.fields, (M, T) => (N(), ne("div", { key: T }, [
47023
- ve(m.$slots, M.prop, {
47024
- data: m.data,
47025
- field: M,
46966
+ default: H(() => {
46967
+ var S;
46968
+ return [
46969
+ m.hideHeader !== !0 ? (N(), ue(qr, {
46970
+ key: 0,
46971
+ style: Oe(`background-color: ${m.schema.bgColor}`)
46972
+ }, {
46973
+ default: H(() => [
46974
+ ve(m.$slots, "form-toolbar", {}, () => [
46975
+ ve(m.$slots, "form-toolbar-left"),
46976
+ k(Pe, {
46977
+ icon: "$chevron-left",
46978
+ onClick: y[6] || (y[6] = (C) => s.value--),
46979
+ disabled: s.value == 0,
46980
+ variant: "text"
46981
+ }, null, 8, ["disabled"]),
46982
+ k(Pe, {
46983
+ icon: "$chevron-right",
46984
+ onClick: y[7] || (y[7] = (C) => s.value++),
46985
+ disabled: !b.value || s.value >= m.schema.slides.length - 1,
47026
46986
  variant: "text"
47027
- }, () => [
47028
- k(am, {
46987
+ }, null, 8, ["disabled"]),
46988
+ ae("div", qY, Ne(m.label ?? m.schema.title), 1),
46989
+ k(ga),
46990
+ ve(m.$slots, "form-toolbar-right"),
46991
+ k(Ba, null, {
46992
+ default: H(() => [
46993
+ r.value && m.canSaveProgress !== !1 ? (N(), ue(Pe, {
46994
+ key: 0,
46995
+ onClick: Wt(g, ["stop"]),
46996
+ class: "mr-4",
46997
+ "prepend-icon": "$content-save",
46998
+ size: "small",
46999
+ text: "Save",
47000
+ variant: "outlined"
47001
+ })) : ee("", !0)
47002
+ ]),
47003
+ _: 1
47004
+ }),
47005
+ f.value != null ? (N(), ne("div", GY, [
47006
+ f.value != null ? (N(), ue(w, {
47007
+ key: 0,
47008
+ src: f.value
47009
+ }, null, 8, ["src"])) : ee("", !0)
47010
+ ])) : ee("", !0)
47011
+ ])
47012
+ ]),
47013
+ _: 2
47014
+ }, 1032, ["style"])) : ee("", !0),
47015
+ ae("div", {
47016
+ style: Oe(m.useScroll ? _(i) : void 0)
47017
+ }, [
47018
+ k(p, { errorMsg: c.value }, null, 8, ["errorMsg"]),
47019
+ k(x, { loadingMsg: d.value }, null, 8, ["loadingMsg"]),
47020
+ (N(!0), ne(Me, null, Ge(m.schema.slides, (C, M) => (N(), ne("div", { key: M }, [
47021
+ _(Na)(C.name) ? ee("", !0) : (N(), ne("div", ZY, [
47022
+ k(rr, { style: { "max-width": "50px" } }),
47023
+ ae("div", KY, Ne(C.name), 1),
47024
+ k(rr)
47025
+ ])),
47026
+ ve(m.$slots, C.name, {
47027
+ data: m.data,
47028
+ slide: C
47029
+ }, () => [
47030
+ (N(!0), ne(Me, null, Ge(C.fields, (T, D) => (N(), ne("div", { key: D }, [
47031
+ ve(m.$slots, T.prop, {
47029
47032
  data: m.data,
47030
- field: M,
47031
- isEditing: v.value,
47033
+ field: T,
47032
47034
  variant: "text"
47033
- }, null, 8, ["data", "field", "isEditing"])
47034
- ])
47035
- ]))), 128))
47036
- ])
47037
- ]))), 128)),
47038
- m.isEditing && m.canSubmit ? (N(), ne("div", XY, [
47039
- k(ga),
47040
- u.value ? (N(), ne("div", QY, " Done. Thankyou! ")) : (N(), ue(Pe, {
47041
- key: 0,
47042
- onClick: h,
47043
- class: "ma-4",
47044
- color: m.schema.ctlColor,
47045
- disabled: !b.value,
47046
- text: "Submit"
47047
- }, null, 8, ["color", "disabled"]))
47048
- ])) : ee("", !0)
47049
- ], 4)
47050
- ]),
47035
+ }, () => [
47036
+ k(am, {
47037
+ data: m.data,
47038
+ field: T,
47039
+ isEditing: v.value,
47040
+ variant: "text"
47041
+ }, null, 8, ["data", "field", "isEditing"])
47042
+ ])
47043
+ ]))), 128))
47044
+ ])
47045
+ ]))), 128)),
47046
+ m.isEditing && m.canSubmit ? (N(), ne("div", XY, [
47047
+ k(ga),
47048
+ u.value ? (N(), ne("div", QY, " Done. Thankyou! ")) : (N(), ue(Pe, {
47049
+ key: 0,
47050
+ onClick: h,
47051
+ class: "ma-4",
47052
+ color: (S = m.schema) == null ? void 0 : S.ctlColor,
47053
+ disabled: !b.value,
47054
+ text: "Submit"
47055
+ }, null, 8, ["color", "disabled"]))
47056
+ ])) : ee("", !0)
47057
+ ], 4)
47058
+ ];
47059
+ }),
47051
47060
  _: 2
47052
47061
  }, 1032, ["style"])
47053
47062
  ]),
@@ -47074,7 +47083,8 @@ const hY = Ue({
47074
47083
  k(Et, {
47075
47084
  class: "w-100",
47076
47085
  style: Oe(`background-color: ${m.schema.bgColor}`),
47077
- tile: ""
47086
+ tile: "",
47087
+ theme: m.schema.theme
47078
47088
  }, {
47079
47089
  default: H(() => [
47080
47090
  k(kc, {
@@ -47170,10 +47180,9 @@ const hY = Ue({
47170
47180
  s.value != 0 ? (N(), ue(Pe, {
47171
47181
  onClick: y[10] || (y[10] = (M) => s.value--),
47172
47182
  class: "ma-4",
47173
- color: m.schema.ctlColor,
47174
47183
  key: "1",
47175
47184
  text: "Back"
47176
- }, null, 8, ["color"])) : ee("", !0)
47185
+ })) : ee("", !0)
47177
47186
  ]),
47178
47187
  _: 1
47179
47188
  }),
@@ -47186,18 +47195,16 @@ const hY = Ue({
47186
47195
  s.value < m.schema.slides.length - 1 ? (N(), ue(Pe, {
47187
47196
  onClick: y[11] || (y[11] = (M) => s.value++),
47188
47197
  class: "ma-4",
47189
- color: m.schema.ctlColor,
47190
47198
  disabled: !C.value,
47191
47199
  key: "1",
47192
47200
  text: "Next"
47193
- }, null, 8, ["color", "disabled"])) : m.isEditing && m.canSubmit && !u.value && s.value >= m.schema.slides.length - 1 ? (N(), ue(Pe, {
47201
+ }, null, 8, ["disabled"])) : m.isEditing && m.canSubmit && !u.value && s.value >= m.schema.slides.length - 1 ? (N(), ue(Pe, {
47194
47202
  onClick: h,
47195
47203
  class: "ma-4",
47196
- color: m.schema.ctlColor,
47197
47204
  disabled: !C.value,
47198
47205
  key: "2",
47199
47206
  text: "Submit"
47200
- }, null, 8, ["color", "disabled"])) : ee("", !0)
47207
+ }, null, 8, ["disabled"])) : ee("", !0)
47201
47208
  ]),
47202
47209
  _: 2
47203
47210
  }, 1024)
@@ -47248,7 +47255,7 @@ const hY = Ue({
47248
47255
  }, 8, ["modelValue"])
47249
47256
  ]),
47250
47257
  _: 3
47251
- }, 8, ["style"])
47258
+ }, 8, ["style", "theme"])
47252
47259
  ]),
47253
47260
  _: 3
47254
47261
  }),
@@ -79234,10 +79241,11 @@ const Sie = Ue({
79234
79241
  k(Fa, null, {
79235
79242
  activator: H(({ props: E }) => [
79236
79243
  k(Pe, ge({
79244
+ color: _(b).ctlColor,
79237
79245
  icon: "$view-carousel",
79238
79246
  size: "x-small",
79239
79247
  title: "Form Variant"
79240
- }, E), null, 16)
79248
+ }, E), null, 16, ["color"])
79241
79249
  ]),
79242
79250
  default: H(() => [
79243
79251
  k(va, null, {
@@ -79273,10 +79281,11 @@ const Sie = Ue({
79273
79281
  activator: H(({ props: E }) => [
79274
79282
  k(Pe, ge({
79275
79283
  class: "ml-1",
79284
+ color: _(b).ctlColor,
79276
79285
  icon: "$format-color-fill",
79277
79286
  size: "x-small",
79278
79287
  title: "Background Color"
79279
- }, E), null, 16)
79288
+ }, E), null, 16, ["color"])
79280
79289
  ]),
79281
79290
  default: H(() => [
79282
79291
  k(Et, null, {
@@ -79305,10 +79314,11 @@ const Sie = Ue({
79305
79314
  activator: H(({ props: E }) => [
79306
79315
  k(Pe, ge({
79307
79316
  class: "ml-1",
79317
+ color: _(b).ctlColor,
79308
79318
  icon: "$palette",
79309
79319
  size: "x-small",
79310
79320
  title: "Button Color"
79311
- }, E), null, 16)
79321
+ }, E), null, 16, ["color"])
79312
79322
  ]),
79313
79323
  default: H(() => [
79314
79324
  k(Et, null, {
@@ -79336,17 +79346,19 @@ const Sie = Ue({
79336
79346
  k(Pe, {
79337
79347
  onClick: I[23] || (I[23] = (E) => _(b).theme = _(b).theme == "light" ? "dark" : "light"),
79338
79348
  class: "ml-1",
79349
+ color: _(b).ctlColor,
79339
79350
  icon: "$theme-light-dark",
79340
79351
  size: "small"
79341
- }),
79352
+ }, null, 8, ["color"]),
79342
79353
  k(Pe, {
79343
79354
  onClick: V,
79344
79355
  class: "ml-1",
79356
+ color: _(b).ctlColor,
79345
79357
  "prepend-icon": "$pencil",
79346
79358
  size: "small",
79347
79359
  text: "Edit",
79348
79360
  title: "Edit Template"
79349
- })
79361
+ }, null, 8, ["color"])
79350
79362
  ])
79351
79363
  ]),
79352
79364
  _: 2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.93",
3
+ "version": "2.0.94",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {