cft-builder 0.2.145 → 0.2.147

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.
@@ -58647,7 +58647,7 @@ var yde = function() {
58647
58647
  theme: i.theme,
58648
58648
  formats: i.formats
58649
58649
  };
58650
- yde ? A(new Quill(d.current, M)) : import("./quill-D9cRDNMi.js").then(function(q) {
58650
+ yde ? A(new Quill(d.current, M)) : import("./quill-IzFMz81f.js").then(function(q) {
58651
58651
  if (q && Ee.isExist(d.current)) {
58652
58652
  var k;
58653
58653
  q.default ? k = new q.default(d.current, M) : k = new q(d.current, M), A(k);
@@ -103807,101 +103807,87 @@ const V5e = (t) => {
103807
103807
  children: /* @__PURE__ */ c(q, {})
103808
103808
  }
103809
103809
  ),
103810
- /* @__PURE__ */ E(
103810
+ /* @__PURE__ */ c(
103811
103811
  No,
103812
103812
  {
103813
103813
  visible: p,
103814
103814
  position: "left",
103815
103815
  className: "p-sidebar-lg",
103816
+ header: () => /* @__PURE__ */ c(Te, { children: /* @__PURE__ */ E("div", { className: "flex justify-content-between gap-2 align-items-center", children: [
103817
+ /* @__PURE__ */ c("div", { className: "text-gray-900 font-bold text-2xl", children: C }),
103818
+ /* @__PURE__ */ c("div", { className: "", children: !a && /* @__PURE__ */ c(
103819
+ Rt,
103820
+ {
103821
+ size: "small",
103822
+ label: "Update",
103823
+ type: "button",
103824
+ outlined: !0,
103825
+ onClick: () => P(),
103826
+ "aria-label": "Update"
103827
+ }
103828
+ ) })
103829
+ ] }) }),
103816
103830
  onHide: () => v(),
103817
- children: [
103818
- /* @__PURE__ */ E("div", { className: "flex justify-content-between flex-wrap card-container ", children: [
103819
- /* @__PURE__ */ E("div", { className: "flex align-items-center justify-content-center ", children: [
103820
- " ",
103821
- /* @__PURE__ */ c("h5", { children: C }),
103822
- " "
103823
- ] }),
103824
- !a && /* @__PURE__ */ c("div", { className: "flex align-items-center justify-content-center", children: /* @__PURE__ */ c(
103825
- Rt,
103826
- {
103827
- className: "mt-3",
103828
- label: "Update",
103829
- type: "button",
103830
- onClick: () => P(),
103831
- "aria-label": "Update"
103832
- }
103833
- ) })
103834
- ] }),
103835
- /* @__PURE__ */ E(qa, { children: [
103836
- /* @__PURE__ */ c(mr, { header: "Resource", children: /* @__PURE__ */ E("div", { className: "shadow-2 border-round surface-card p-4", children: [
103837
- /* @__PURE__ */ c("div", { className: "flex align-items-center justify-content-between mb-4", children: /* @__PURE__ */ c("span", { className: "text-xl font-medium text-900", children: "Selected files" }) }),
103838
- /* @__PURE__ */ c("div", { className: "card", children: /* @__PURE__ */ E(ro, { value: A == null ? void 0 : A.documents, children: [
103839
- /* @__PURE__ */ c(gr, { field: "uuid", header: "Uid" }),
103840
- /* @__PURE__ */ c(gr, { field: "media_file_id", header: "Id" }),
103841
- /* @__PURE__ */ c(gr, { field: "url", header: "Url" }),
103842
- /* @__PURE__ */ c(gr, { field: "basename", header: "Base name" }),
103843
- /* @__PURE__ */ c(
103844
- gr,
103845
- {
103846
- header: "Size",
103847
- body: (X) => {
103848
- const se = GE(X == null ? void 0 : X.meta_data) ? JSON.parse(X == null ? void 0 : X.meta_data) : null;
103849
- return /* @__PURE__ */ E(Te, { children: [
103850
- " ",
103851
- f.formatBytes(se == null ? void 0 : se.size)
103852
- ] });
103853
- }
103854
- }
103855
- ),
103856
- /* @__PURE__ */ c(
103857
- gr,
103858
- {
103859
- header: "Delete",
103860
- body: (X, se) => fe(X, se)
103831
+ children: /* @__PURE__ */ E(qa, { children: [
103832
+ /* @__PURE__ */ c(mr, { header: "Resource", children: /* @__PURE__ */ E("div", { className: "", children: [
103833
+ /* @__PURE__ */ c("div", { className: "flex align-items-center justify-content-between mb-4", children: /* @__PURE__ */ c("span", { className: "text-xl font-medium text-900", children: "Selected files" }) }),
103834
+ /* @__PURE__ */ c("div", { className: "card", children: /* @__PURE__ */ E(ro, { value: A == null ? void 0 : A.documents, children: [
103835
+ /* @__PURE__ */ c(gr, { field: "uuid", header: "Uid" }),
103836
+ /* @__PURE__ */ c(gr, { field: "media_file_id", header: "Id" }),
103837
+ /* @__PURE__ */ c(gr, { field: "url", header: "Url" }),
103838
+ /* @__PURE__ */ c(gr, { field: "basename", header: "Base name" }),
103839
+ /* @__PURE__ */ c(
103840
+ gr,
103841
+ {
103842
+ header: "Size",
103843
+ body: (X) => {
103844
+ const se = GE(X == null ? void 0 : X.meta_data) ? JSON.parse(X == null ? void 0 : X.meta_data) : null;
103845
+ return /* @__PURE__ */ E(Te, { children: [
103846
+ " ",
103847
+ f.formatBytes(se == null ? void 0 : se.size)
103848
+ ] });
103861
103849
  }
103862
- )
103863
- ] }) }),
103864
- /* @__PURE__ */ c("h5", { children: "Media library" }),
103865
- /* @__PURE__ */ E("div", { className: "grid", children: [
103866
- /* @__PURE__ */ E("div", { className: "col-8", children: [
103867
- /* @__PURE__ */ E("div", { className: "grid", children: [
103868
- /* @__PURE__ */ c("div", { className: "col-12 mb-5", children: /* @__PURE__ */ E("div", { className: "flex", children: [
103869
- /* @__PURE__ */ E(rt.Fragment, { children: [
103870
- /* @__PURE__ */ E("span", { className: "p-input-icon-right", children: [
103871
- e ? /* @__PURE__ */ c(
103872
- "i",
103873
- {
103874
- style: { cursor: "pointer", position: "absolute", right: "10px" },
103875
- className: "pi pi-times",
103876
- onClick: () => n("")
103877
- }
103878
- ) : /* @__PURE__ */ c(Te, {}),
103879
- /* @__PURE__ */ c(
103880
- bn,
103881
- {
103882
- value: e,
103883
- onChange: (X) => {
103884
- n(X.target.value), X.target.value || (le({
103885
- filter: "",
103886
- page: 1,
103887
- per_page: 10,
103888
- sort: "media_file.created_at|desc"
103889
- }), k());
103890
- },
103891
- placeholder: "Keyword",
103892
- onKeyDown: (X) => {
103893
- X.key;
103894
- }
103895
- }
103896
- )
103897
- ] }),
103850
+ }
103851
+ ),
103852
+ /* @__PURE__ */ c(
103853
+ gr,
103854
+ {
103855
+ header: "Delete",
103856
+ body: (X, se) => fe(X, se)
103857
+ }
103858
+ )
103859
+ ] }) }),
103860
+ /* @__PURE__ */ c("h5", { children: "Media library" }),
103861
+ /* @__PURE__ */ E("div", { className: "grid", children: [
103862
+ /* @__PURE__ */ E("div", { className: "col-8", children: [
103863
+ /* @__PURE__ */ E("div", { className: "grid", children: [
103864
+ /* @__PURE__ */ c("div", { className: "col-12 mb-5", children: /* @__PURE__ */ E("div", { className: "flex", children: [
103865
+ /* @__PURE__ */ E(rt.Fragment, { children: [
103866
+ /* @__PURE__ */ E("span", { className: "p-input-icon-right", children: [
103867
+ e ? /* @__PURE__ */ c(
103868
+ "i",
103869
+ {
103870
+ style: { cursor: "pointer", position: "absolute", right: "10px" },
103871
+ className: "pi pi-times",
103872
+ onClick: () => n("")
103873
+ }
103874
+ ) : /* @__PURE__ */ c(Te, {}),
103898
103875
  /* @__PURE__ */ c(
103899
- Rt,
103876
+ bn,
103900
103877
  {
103901
- text: !0,
103902
- icon: "pi pi-search",
103903
- className: "mr-2",
103904
- onClick: U
103878
+ value: e,
103879
+ onChange: (X) => {
103880
+ n(X.target.value), X.target.value || (le({
103881
+ filter: "",
103882
+ page: 1,
103883
+ per_page: 10,
103884
+ sort: "media_file.created_at|desc"
103885
+ }), k());
103886
+ },
103887
+ placeholder: "Keyword",
103888
+ onKeyDown: (X) => {
103889
+ X.key;
103890
+ }
103905
103891
  }
103906
103892
  )
103907
103893
  ] }),
@@ -103909,139 +103895,150 @@ const V5e = (t) => {
103909
103895
  Rt,
103910
103896
  {
103911
103897
  text: !0,
103912
- icon: "pi pi-upload",
103913
- className: "p-button-primary ml-2",
103914
- label: "Upload media",
103915
- style: { width: "200px" },
103916
- onClick: () => {
103917
- o(!0);
103918
- }
103898
+ type: "button",
103899
+ icon: "pi pi-search",
103900
+ className: "mr-2",
103901
+ onClick: U
103919
103902
  }
103920
103903
  )
103921
- ] }) }),
103922
- /* @__PURE__ */ c("div", { className: "col-12 mb-5", children: /* @__PURE__ */ c("div", { className: "surface-section ", children: /* @__PURE__ */ c("div", { className: "grid -mt-3 -ml-3 -mr-3", children: B.length > 0 && B.map(
103923
- (X, se) => /* @__PURE__ */ c(
103924
- "div",
103925
- {
103926
- onClick: () => M(X),
103927
- className: "col-12 md:col-6 lg:col-2 xl:col-1 border-bottom-1 surface-border md:border-bottom-none",
103928
- children: /* @__PURE__ */ E("div", { className: "p-2", children: [
103929
- /* @__PURE__ */ c(
103930
- d,
103931
- {
103932
- style: {
103933
- height: "50px",
103934
- width: "50px",
103935
- objectFit: "cover"
103936
- },
103937
- className: "w-full mb-3 border-round-2xl",
103938
- mediaId: X == null ? void 0 : X.media_file_id,
103939
- alt: ""
103940
- }
103941
- ),
103942
- /* @__PURE__ */ c("span", { className: "text-900 text-sm", children: X == null ? void 0 : X.filename })
103943
- ] })
103944
- },
103945
- `media-${se}`
103946
- )
103947
- ) }) }) })
103948
- ] }),
103949
- /* @__PURE__ */ c(H, {})
103904
+ ] }),
103905
+ /* @__PURE__ */ c(
103906
+ Rt,
103907
+ {
103908
+ text: !0,
103909
+ type: "button",
103910
+ icon: "pi pi-upload",
103911
+ className: "p-button-primary ml-2",
103912
+ label: "Upload media",
103913
+ style: { width: "200px" },
103914
+ onClick: () => {
103915
+ o(!0);
103916
+ }
103917
+ }
103918
+ )
103919
+ ] }) }),
103920
+ /* @__PURE__ */ c("div", { className: "flex flex-row gap-3 flex-wrap -mt-3 -ml-3 -mr-3", children: B.length > 0 && B.map(
103921
+ (X, se) => /* @__PURE__ */ c(
103922
+ "div",
103923
+ {
103924
+ onClick: () => M(X),
103925
+ className: "border-bottom-1 surface-border md:border-bottom-none",
103926
+ children: /* @__PURE__ */ E("div", { className: "gap-2 flex flex-column align-items-center text-wrap", style: { width: "100px" }, children: [
103927
+ /* @__PURE__ */ c(
103928
+ d,
103929
+ {
103930
+ style: {
103931
+ height: "75px",
103932
+ width: "75px",
103933
+ objectFit: "cover"
103934
+ },
103935
+ className: "mb-3 border-round-2xl",
103936
+ mediaId: X == null ? void 0 : X.media_file_id,
103937
+ alt: ""
103938
+ }
103939
+ ),
103940
+ /* @__PURE__ */ c("div", { className: "text-900 text-sm text-overflow-ellipsis", children: X == null ? void 0 : X.filename })
103941
+ ] })
103942
+ },
103943
+ `media-${se}`
103944
+ )
103945
+ ) })
103950
103946
  ] }),
103951
- /* @__PURE__ */ c("div", { className: "col-4 card ", children: _ !== null && /* @__PURE__ */ E(Te, { children: [
103952
- /* @__PURE__ */ E(
103953
- "div",
103954
- {
103955
- style: { position: "relative" },
103956
- className: "surface-card p-4 shadow-2 border-round scroll-height-600",
103957
- children: [
103958
- /* @__PURE__ */ c(
103959
- d,
103960
- {
103961
- style: {
103962
- height: "150px",
103963
- width: "150px",
103964
- objectFit: "contain"
103965
- },
103966
- className: "w-full mb-3 border-round-2xl",
103967
- mediaId: _ == null ? void 0 : _.media_file_id,
103968
- alt: "https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png"
103969
- }
103970
- ),
103971
- /* @__PURE__ */ E("ul", { className: "list-none p-0 m-0 border-top-1 surface-border ", children: [
103972
- /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap surface-ground", children: [
103973
- /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Name" }),
103974
- /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: _ == null ? void 0 : _.name })
103975
- ] }),
103976
- /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap", children: [
103977
- /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Base url:" }),
103978
- /* @__PURE__ */ c(
103979
- "div",
103980
- {
103981
- className: "text-900 w-full md:w-8 line-height-3",
103982
- style: { wordWrap: "break-word" },
103983
- children: /* @__PURE__ */ c("a", { href: _ == null ? void 0 : _.url, children: _ == null ? void 0 : _.url })
103984
- }
103985
- )
103986
- ] }),
103987
- /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap surface-ground", children: [
103988
- /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Base name:" }),
103989
- /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: _ == null ? void 0 : _.basename })
103990
- ] }),
103991
- /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap", children: [
103992
- /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Dir name:" }),
103993
- /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: _ == null ? void 0 : _.dirname })
103994
- ] }),
103995
- /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap surface-ground", children: [
103996
- /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Size:" }),
103997
- /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: f.formatBytes(
103998
- GE(_ == null ? void 0 : _.meta_data) ? JSON.parse(_ == null ? void 0 : _.meta_data).size : 0
103999
- ) })
104000
- ] }),
104001
- /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap surface-ground", children: [
104002
- /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Upload date:" }),
104003
- /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: Rn(_ == null ? void 0 : _.created_at).format(
104004
- "Do MMM YYYY - HH:mm"
104005
- ) })
104006
- ] })
103947
+ /* @__PURE__ */ c(H, {})
103948
+ ] }),
103949
+ /* @__PURE__ */ c("div", { className: "col-4 card ", children: _ !== null && /* @__PURE__ */ E(Te, { children: [
103950
+ /* @__PURE__ */ E(
103951
+ "div",
103952
+ {
103953
+ style: { position: "relative" },
103954
+ className: "surface-card p-4 shadow-2 border-round scroll-height-600",
103955
+ children: [
103956
+ /* @__PURE__ */ c(
103957
+ d,
103958
+ {
103959
+ style: {
103960
+ height: "150px",
103961
+ width: "150px",
103962
+ objectFit: "contain"
103963
+ },
103964
+ className: "w-full mb-3 border-round-2xl",
103965
+ mediaId: _ == null ? void 0 : _.media_file_id,
103966
+ alt: "https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png"
103967
+ }
103968
+ ),
103969
+ /* @__PURE__ */ E("ul", { className: "list-none p-0 m-0 border-top-1 surface-border ", children: [
103970
+ /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap surface-ground", children: [
103971
+ /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Name" }),
103972
+ /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: _ == null ? void 0 : _.name })
103973
+ ] }),
103974
+ /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap", children: [
103975
+ /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Base url:" }),
103976
+ /* @__PURE__ */ c(
103977
+ "div",
103978
+ {
103979
+ className: "text-900 w-full md:w-8 line-height-3",
103980
+ style: { wordWrap: "break-word" },
103981
+ children: /* @__PURE__ */ c("a", { href: _ == null ? void 0 : _.url, children: _ == null ? void 0 : _.url })
103982
+ }
103983
+ )
103984
+ ] }),
103985
+ /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap surface-ground", children: [
103986
+ /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Base name:" }),
103987
+ /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: _ == null ? void 0 : _.basename })
103988
+ ] }),
103989
+ /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap", children: [
103990
+ /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Dir name:" }),
103991
+ /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: _ == null ? void 0 : _.dirname })
103992
+ ] }),
103993
+ /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap surface-ground", children: [
103994
+ /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Size:" }),
103995
+ /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: f.formatBytes(
103996
+ GE(_ == null ? void 0 : _.meta_data) ? JSON.parse(_ == null ? void 0 : _.meta_data).size : 0
103997
+ ) })
103998
+ ] }),
103999
+ /* @__PURE__ */ E("li", { className: "flex align-items-center py-1 px-2 flex-wrap surface-ground", children: [
104000
+ /* @__PURE__ */ c("div", { className: "text-500 w-full md:w-4 font-medium", children: "Upload date:" }),
104001
+ /* @__PURE__ */ c("div", { className: "text-900 w-full md:w-8", children: Rn(_ == null ? void 0 : _.created_at).format(
104002
+ "Do MMM YYYY - HH:mm"
104003
+ ) })
104007
104004
  ] })
104008
- ]
104009
- }
104010
- ),
104011
- /* @__PURE__ */ c(
104012
- Rt,
104013
- {
104014
- style: { bottom: 0 },
104015
- className: "mt-3 w-full",
104016
- label: "Add resource",
104017
- onClick: () => Y(_),
104018
- "aria-label": "Update"
104019
- }
104020
- )
104021
- ] }) })
104022
- ] })
104023
- ] }) }),
104024
- /* @__PURE__ */ c(mr, { header: "Text", children: /* @__PURE__ */ c(eo, { activeIndex: 0, children: i != null && i.length ? i.map(
104025
- (X, se) => /* @__PURE__ */ c(
104026
- Zs,
104027
- {
104028
- tabIndex: se,
104029
- header: X == null ? void 0 : X.language,
104030
- children: /* @__PURE__ */ c(
104031
- V5e,
104032
- {
104033
- field: m,
104034
- fieldState: A,
104035
- onHandleChange: F,
104036
- language: X
104037
- }
104038
- )
104039
- },
104040
- se
104041
- )
104042
- ) : "" }) })
104043
- ] })
104044
- ]
104005
+ ] })
104006
+ ]
104007
+ }
104008
+ ),
104009
+ /* @__PURE__ */ c(
104010
+ Rt,
104011
+ {
104012
+ style: { bottom: 0 },
104013
+ className: "mt-3 w-full",
104014
+ label: "Add resource",
104015
+ onClick: () => Y(_),
104016
+ "aria-label": "Update"
104017
+ }
104018
+ )
104019
+ ] }) })
104020
+ ] })
104021
+ ] }) }),
104022
+ /* @__PURE__ */ c(mr, { header: "Text", children: /* @__PURE__ */ c(eo, { activeIndex: 0, children: i != null && i.length ? i.map(
104023
+ (X, se) => /* @__PURE__ */ c(
104024
+ Zs,
104025
+ {
104026
+ tabIndex: se,
104027
+ header: X == null ? void 0 : X.language,
104028
+ children: /* @__PURE__ */ c(
104029
+ V5e,
104030
+ {
104031
+ field: m,
104032
+ fieldState: A,
104033
+ onHandleChange: F,
104034
+ language: X
104035
+ }
104036
+ )
104037
+ },
104038
+ se
104039
+ )
104040
+ ) : "" }) })
104041
+ ] })
104045
104042
  }
104046
104043
  )
104047
104044
  ] });
@@ -1,7 +1,7 @@
1
1
  var Bl = Object.defineProperty;
2
2
  var Ml = (n, t, e) => t in n ? Bl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var T = (n, t, e) => Ml(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-BiD9UxJK.js";
4
+ import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-a1QwPr7b.js";
5
5
  function Ki(n) {
6
6
  return n;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cft-builder",
3
- "version": "0.2.145",
3
+ "version": "0.2.147",
4
4
  "type": "module",
5
5
  "types": "dist/types/index",
6
6
  "files": [