sd-render 1.0.22 → 1.0.23

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 (140) hide show
  1. package/package.json +1 -1
  2. package/{sd-lib-DGKllvu9.js → sd-lib-DxRR6mJt.js} +826 -826
  3. package/{sd-render-C2QEeeT2.js → sd-render-Db7-FEvT.js} +1 -1
  4. package/sd-render.es.js +51 -50
  5. package/types/src/components/sdlib.d.ts +1 -0
  6. package/types/sdlib.es.d.ts +0 -2
  7. package/types/src/App.vue.d.ts +0 -2
  8. package/types/src/components/form-builder/BuilderNotUse.d.ts +0 -75
  9. package/types/src/components/form-builder/ContainerWrapper.vue.d.ts +0 -74
  10. package/types/src/components/form-builder/CoreContainerMixin.d.ts +0 -69
  11. package/types/src/components/form-builder/SdFormBuilder.vue.d.ts +0 -2765
  12. package/types/src/components/form-builder/builder-property/ButtonsItemSetting.vue.d.ts +0 -85
  13. package/types/src/components/form-builder/builder-property/ColorItemSetting.vue.d.ts +0 -39
  14. package/types/src/components/form-builder/builder-property/FormSetting.vue.d.ts +0 -155
  15. package/types/src/components/form-builder/builder-property/OptionsItemSetting.vue.d.ts +0 -37
  16. package/types/src/components/form-builder/builder-property/PropertyMixin.d.ts +0 -45
  17. package/types/src/components/form-builder/builder-property/PropertyRegister.d.ts +0 -6
  18. package/types/src/components/form-builder/builder-property/StepsItemSetting.vue.d.ts +0 -49
  19. package/types/src/components/form-builder/builder-property/index.vue.d.ts +0 -181
  20. package/types/src/components/form-builder/builder-property/property-editor/autocom-editor.vue.d.ts +0 -50
  21. package/types/src/components/form-builder/builder-property/property-editor/boolean-editor.vue.d.ts +0 -52
  22. package/types/src/components/form-builder/builder-property/property-editor/box-name-editor.vue.d.ts +0 -59
  23. package/types/src/components/form-builder/builder-property/property-editor/buttons-editor.vue.d.ts +0 -147
  24. package/types/src/components/form-builder/builder-property/property-editor/chart-dataset-editor.vue.d.ts +0 -294
  25. package/types/src/components/form-builder/builder-property/property-editor/chartapex-dataset-editor.vue.d.ts +0 -295
  26. package/types/src/components/form-builder/builder-property/property-editor/code-editor.vue.d.ts +0 -82
  27. package/types/src/components/form-builder/builder-property/property-editor/code-one-editor.vue.d.ts +0 -82
  28. package/types/src/components/form-builder/builder-property/property-editor/color-editor.vue.d.ts +0 -52
  29. package/types/src/components/form-builder/builder-property/property-editor/color-progress-editor.vue.d.ts +0 -84
  30. package/types/src/components/form-builder/builder-property/property-editor/colspan-editor.vue.d.ts +0 -52
  31. package/types/src/components/form-builder/builder-property/property-editor/custom-class-editor.vue.d.ts +0 -52
  32. package/types/src/components/form-builder/builder-property/property-editor/custom-value-editor.vue.d.ts +0 -89
  33. package/types/src/components/form-builder/builder-property/property-editor/date-editor.vue.d.ts +0 -50
  34. package/types/src/components/form-builder/builder-property/property-editor/date-type-editor.vue.d.ts +0 -52
  35. package/types/src/components/form-builder/builder-property/property-editor/event-editor.vue.d.ts +0 -60
  36. package/types/src/components/form-builder/builder-property/property-editor/field-name-editor.vue.d.ts +0 -59
  37. package/types/src/components/form-builder/builder-property/property-editor/grid-column-editor.vue.d.ts +0 -85
  38. package/types/src/components/form-builder/builder-property/property-editor/gutter-editor.vue.d.ts +0 -54
  39. package/types/src/components/form-builder/builder-property/property-editor/hidden-editor.vue.d.ts +0 -50
  40. package/types/src/components/form-builder/builder-property/property-editor/html-editor.vue.d.ts +0 -70
  41. package/types/src/components/form-builder/builder-property/property-editor/icon-editor.vue.d.ts +0 -76
  42. package/types/src/components/form-builder/builder-property/property-editor/index.d.ts +0 -2
  43. package/types/src/components/form-builder/builder-property/property-editor/json-editor.vue.d.ts +0 -277
  44. package/types/src/components/form-builder/builder-property/property-editor/menulist-editor.vue.d.ts +0 -68
  45. package/types/src/components/form-builder/builder-property/property-editor/multi-date-editor.vue.d.ts +0 -50
  46. package/types/src/components/form-builder/builder-property/property-editor/multiselect-editor.vue.d.ts +0 -50
  47. package/types/src/components/form-builder/builder-property/property-editor/num-string-editor.vue.d.ts +0 -50
  48. package/types/src/components/form-builder/builder-property/property-editor/number-editor.vue.d.ts +0 -50
  49. package/types/src/components/form-builder/builder-property/property-editor/options-editor.vue.d.ts +0 -82
  50. package/types/src/components/form-builder/builder-property/property-editor/orderby-editor.vue.d.ts +0 -56
  51. package/types/src/components/form-builder/builder-property/property-editor/radio-editor.vue.d.ts +0 -50
  52. package/types/src/components/form-builder/builder-property/property-editor/rate-editor.vue.d.ts +0 -50
  53. package/types/src/components/form-builder/builder-property/property-editor/report-editor.vue.d.ts +0 -84
  54. package/types/src/components/form-builder/builder-property/property-editor/select-db-editor.vue.d.ts +0 -58
  55. package/types/src/components/form-builder/builder-property/property-editor/select-editor.vue.d.ts +0 -52
  56. package/types/src/components/form-builder/builder-property/property-editor/select-sub-editor.vue.d.ts +0 -63
  57. package/types/src/components/form-builder/builder-property/property-editor/span-editor.vue.d.ts +0 -50
  58. package/types/src/components/form-builder/builder-property/property-editor/steps-editor.vue.d.ts +0 -107
  59. package/types/src/components/form-builder/builder-property/property-editor/tab-editor.vue.d.ts +0 -60
  60. package/types/src/components/form-builder/builder-property/property-editor/text-editor.vue.d.ts +0 -50
  61. package/types/src/components/form-builder/builder-property/property-editor/textarea-editor.vue.d.ts +0 -50
  62. package/types/src/components/form-builder/builder-property/property-editor/time-editor.vue.d.ts +0 -50
  63. package/types/src/components/form-builder/builder-property/property-editor/time-range-editor.vue.d.ts +0 -50
  64. package/types/src/components/form-builder/builder-property/property-editor/ui-column-editor.vue.d.ts +0 -85
  65. package/types/src/components/form-builder/builder-property/property-editor/varname-editor.vue.d.ts +0 -53
  66. package/types/src/components/form-builder/builder-tool/BuilderWidget.vue.d.ts +0 -353
  67. package/types/src/components/form-builder/builder-tool/FieldWidget.vue.d.ts +0 -148
  68. package/types/src/components/form-builder/builder-tool/ToolbarWidget.vue.d.ts +0 -1773
  69. package/types/src/components/form-builder/container/affix-layout.vue.d.ts +0 -149
  70. package/types/src/components/form-builder/container/card-layout.vue.d.ts +0 -150
  71. package/types/src/components/form-builder/container/collapse-layout.vue.d.ts +0 -150
  72. package/types/src/components/form-builder/container/grid-col-layout.vue.d.ts +0 -102
  73. package/types/src/components/form-builder/container/grid-layout.vue.d.ts +0 -247
  74. package/types/src/components/form-builder/container/index.d.ts +0 -4
  75. package/types/src/components/form-builder/container/object-group-layout.vue.d.ts +0 -149
  76. package/types/src/components/form-builder/container/scrollbar-layout.vue.d.ts +0 -152
  77. package/types/src/components/form-builder/container/space-layout.vue.d.ts +0 -149
  78. package/types/src/components/form-builder/container/sub-form-layout.vue.d.ts +0 -150
  79. package/types/src/components/form-builder/container/tab-layout.vue.d.ts +0 -201
  80. package/types/src/components/form-builder/container/table-cell-layout.vue.d.ts +0 -161
  81. package/types/src/components/form-builder/container/table-layout.vue.d.ts +0 -306
  82. package/types/src/components/layouts/EmptyContent.vue.d.ts +0 -2
  83. package/types/src/components/layouts/LoadingContent.vue.d.ts +0 -4
  84. package/types/src/components/layouts/NavHeader.vue.d.ts +0 -24
  85. package/types/src/components/layouts/SettingConfig.vue.d.ts +0 -11
  86. package/types/src/components/layouts/Unauthorized.vue.d.ts +0 -2
  87. package/types/src/components.d.ts +0 -629
  88. package/types/src/config/Acl.d.ts +0 -2
  89. package/types/src/config/AppConfig.d.ts +0 -12
  90. package/types/src/config/BuilderConfig.d.ts +0 -24
  91. package/types/src/config/SdFieldList.d.ts +0 -4
  92. package/types/src/config/StartApp.d.ts +0 -2
  93. package/types/src/config/font/thai-font.d.ts +0 -7
  94. package/types/src/config/locale/th.d.ts +0 -143
  95. package/types/src/config/sd-field/AdvancedInput.d.ts +0 -2
  96. package/types/src/config/sd-field/BasicInput.d.ts +0 -2
  97. package/types/src/config/sd-field/Container.d.ts +0 -2
  98. package/types/src/config/sd-field/DisplayUi.d.ts +0 -2
  99. package/types/src/core/dayjs-plugin.d.ts +0 -4
  100. package/types/src/core/prototype.d.ts +0 -6
  101. package/types/src/main.d.ts +0 -0
  102. package/types/src/routers/index.d.ts +0 -2
  103. package/types/src/stores/AppState.d.ts +0 -14
  104. package/types/src/stores/BuilderState.d.ts +0 -112
  105. package/types/src/stores/ConnectState.d.ts +0 -94
  106. package/types/src/stores/UserState.d.ts +0 -123
  107. package/types/src/views/InitApp.vue.d.ts +0 -2
  108. package/types/src/views/MainPage.vue.d.ts +0 -2
  109. package/types/src/views/PublicApp.vue.d.ts +0 -1012
  110. package/types/src/views/core/ConnectForm.vue.d.ts +0 -2856
  111. package/types/src/views/core/ConnectLogin.vue.d.ts +0 -1423
  112. package/types/src/views/core/ConnectManager.vue.d.ts +0 -348
  113. package/types/src/views/core/FilesManager.vue.d.ts +0 -348
  114. package/types/src/views/core/LicenseForm.vue.d.ts +0 -2856
  115. package/types/src/views/core/LicenseManager.vue.d.ts +0 -348
  116. package/types/src/views/core/LicenseMyToken.vue.d.ts +0 -348
  117. package/types/src/views/core/LicenseRegister.vue.d.ts +0 -351
  118. package/types/src/views/core/RolesForm.vue.d.ts +0 -2856
  119. package/types/src/views/core/RolesManager.vue.d.ts +0 -348
  120. package/types/src/views/core/SettingForm.vue.d.ts +0 -2856
  121. package/types/src/views/core/SettingManager.vue.d.ts +0 -348
  122. package/types/src/views/custom-widget/index.d.ts +0 -4
  123. package/types/src/views/modules/ApiFactory.vue.d.ts +0 -1121
  124. package/types/src/views/modules/AppFactory.vue.d.ts +0 -1121
  125. package/types/src/views/modules/AppViewer.vue.d.ts +0 -191
  126. package/types/src/views/modules/ReportFactory.vue.d.ts +0 -1121
  127. package/types/src/views/modules/SqlFactory.vue.d.ts +0 -1121
  128. package/types/src/views/sdform/SdFormCreate.vue.d.ts +0 -2859
  129. package/types/src/views/sdform/SdFormEvent.vue.d.ts +0 -15
  130. package/types/src/views/sdform/SdFormIndex.vue.d.ts +0 -2
  131. package/types/src/views/sdform/SdFormManage.vue.d.ts +0 -667
  132. package/types/src/views/user/ChangePassword.vue.d.ts +0 -1419
  133. package/types/src/views/user/ConfirmEmail.vue.d.ts +0 -2
  134. package/types/src/views/user/ForgotPassword.vue.d.ts +0 -1419
  135. package/types/src/views/user/Login.vue.d.ts +0 -2834
  136. package/types/src/views/user/Profile.vue.d.ts +0 -2
  137. package/types/src/views/user/Register.vue.d.ts +0 -2
  138. package/types/src/views/user/TwoFactorEnable.vue.d.ts +0 -2834
  139. package/types/src/views/user/UserForm.vue.d.ts +0 -3602
  140. package/types/src/views/user/UserManage.vue.d.ts +0 -348
@@ -79,50 +79,50 @@ import "ace-builds/src-min-noconflict/mode-css";
79
79
  import "ace-builds/src-min-noconflict/mode-sql";
80
80
  import "ace-builds/src-min-noconflict/ext-language_tools";
81
81
  import si from "resize-observer-polyfill";
82
- import ri from "cropperjs";
82
+ import ve from "dayjs";
83
+ import ri from "dompurify";
84
+ import di from "cropperjs";
83
85
  import "element-plus/es/components/tooltip/style/index";
84
- import { Editor as Te, FloatingMenu as di, BubbleMenu as ui, EditorContent as pi, useEditor as mi, nodeViewProps as we, NodeViewWrapper as Qe, VueNodeViewRenderer as it, NodeViewContent as fi, getMarkAttributes as ca } from "@tiptap/vue-3";
85
- import { splitCell as hi, mergeCells as ci, CellSelection as bi } from "prosemirror-tables";
86
- import { TextSelection as ba, AllSelection as Ea, Plugin as gi } from "prosemirror-state";
87
- import yi from "@tiptap/extension-placeholder";
88
- import vi from "@tiptap/extension-character-count";
89
- import wi from "@tiptap/extension-document";
90
- import Fi from "@tiptap/extension-heading";
91
- import _i from "@tiptap/extension-blockquote";
92
- import Si from "@tiptap/extension-code-block";
93
- import ki from "@tiptap/extension-code-block-lowlight";
94
- import { createLowlight as Ci, common as Di } from "lowlight";
95
- import Ii from "highlight.js/lib/languages/css";
96
- import $i from "highlight.js/lib/languages/javascript";
97
- import Ti from "highlight.js/lib/languages/typescript";
98
- import Mi from "highlight.js/lib/languages/xml";
99
- import Pi from "@tiptap/extension-bullet-list";
100
- import Vi from "@tiptap/extension-ordered-list";
101
- import Ai from "@tiptap/extension-image";
86
+ import { Editor as Te, FloatingMenu as ui, BubbleMenu as pi, EditorContent as mi, useEditor as fi, nodeViewProps as we, NodeViewWrapper as Qe, VueNodeViewRenderer as it, NodeViewContent as hi, getMarkAttributes as ca } from "@tiptap/vue-3";
87
+ import { splitCell as ci, mergeCells as bi, CellSelection as gi } from "prosemirror-tables";
88
+ import { TextSelection as ba, AllSelection as Ea, Plugin as yi } from "prosemirror-state";
89
+ import vi from "@tiptap/extension-placeholder";
90
+ import wi from "@tiptap/extension-character-count";
91
+ import Fi from "@tiptap/extension-document";
92
+ import _i from "@tiptap/extension-heading";
93
+ import Si from "@tiptap/extension-blockquote";
94
+ import ki from "@tiptap/extension-code-block";
95
+ import Ci from "@tiptap/extension-code-block-lowlight";
96
+ import { createLowlight as Di, common as Ii } from "lowlight";
97
+ import $i from "highlight.js/lib/languages/css";
98
+ import Ti from "highlight.js/lib/languages/javascript";
99
+ import Mi from "highlight.js/lib/languages/typescript";
100
+ import Pi from "highlight.js/lib/languages/xml";
101
+ import Vi from "@tiptap/extension-bullet-list";
102
+ import Ai from "@tiptap/extension-ordered-list";
103
+ import Oi from "@tiptap/extension-image";
102
104
  import "element-plus/es/components/upload/style/index";
103
105
  import he from "axios";
104
- import Oi from "@tiptap/extension-task-list";
105
- import Ni from "@tiptap/extension-task-item";
106
- import { Table as Ei } from "@tiptap/extension-table";
107
- import Li from "@tiptap/extension-table-row";
108
- import Bi from "@tiptap/extension-table-header";
109
- import ji from "@tiptap/extension-table-cell";
110
- import Ui from "@tiptap/extension-bold";
111
- import Ri from "@tiptap/extension-underline";
112
- import zi from "@tiptap/extension-italic";
113
- import qi from "@tiptap/extension-strike";
114
- import Hi from "@tiptap/extension-link";
115
- import xi from "@tiptap/extension-color";
116
- import Wi from "@tiptap/extension-text-style";
117
- import Ki from "@tiptap/extension-highlight";
118
- import Gi from "@tiptap/extension-youtube";
119
- import Yi from "@tiptap/extension-subscript";
120
- import Ji from "@tiptap/extension-superscript";
121
- import Xi from "@tiptap/extension-horizontal-rule";
122
- import Qi from "@tiptap/extension-history";
123
- import Zi from "@tiptap/extension-text-align";
124
- import ve from "dayjs";
125
- import en from "dompurify";
106
+ import Ni from "@tiptap/extension-task-list";
107
+ import Ei from "@tiptap/extension-task-item";
108
+ import { Table as Li } from "@tiptap/extension-table";
109
+ import Bi from "@tiptap/extension-table-row";
110
+ import ji from "@tiptap/extension-table-header";
111
+ import Ui from "@tiptap/extension-table-cell";
112
+ import Ri from "@tiptap/extension-bold";
113
+ import zi from "@tiptap/extension-underline";
114
+ import qi from "@tiptap/extension-italic";
115
+ import Hi from "@tiptap/extension-strike";
116
+ import xi from "@tiptap/extension-link";
117
+ import Wi from "@tiptap/extension-color";
118
+ import Ki from "@tiptap/extension-text-style";
119
+ import Gi from "@tiptap/extension-highlight";
120
+ import Yi from "@tiptap/extension-youtube";
121
+ import Ji from "@tiptap/extension-subscript";
122
+ import Xi from "@tiptap/extension-superscript";
123
+ import Qi from "@tiptap/extension-horizontal-rule";
124
+ import Zi from "@tiptap/extension-history";
125
+ import en from "@tiptap/extension-text-align";
126
126
  import "element-plus/es/components/rate/style/index";
127
127
  import "element-plus/es/components/space/style/index";
128
128
  import { Chart as tn, CategoryScale as an, LinearScale as ln, BarElement as on, Title as nn, Tooltip as sn, Legend as rn, Filler as dn, plugins as un, TimeScale as pn, TimeSeriesScale as mn, RadialLinearScale as fn, LineElement as hn, PointElement as cn, ArcElement as bn } from "chart.js";
@@ -824,7 +824,7 @@ function ce(e, t) {
824
824
  }
825
825
  }
826
826
  function Tt(e) {
827
- return en.sanitize(e, {});
827
+ return ri.sanitize(e, {});
828
828
  }
829
829
  function re(e, t) {
830
830
  const a = (i) => `{{###~${i}~###}}`, l = Object.keys(t).map((i, d) => ({
@@ -976,7 +976,7 @@ const Un = L({
976
976
  methods: {
977
977
  onCropperImageOpen() {
978
978
  const e = new Image();
979
- e.src = this.picture, e.alt = "Picture", this.cropper = new ri(e, {
979
+ e.src = this.picture, e.alt = "Picture", this.cropper = new di(e, {
980
980
  container: this.cropperBox,
981
981
  template: this.resizeEnable ? this.tempResize : this.tempFixed
982
982
  });
@@ -1316,10 +1316,10 @@ function zt(e) {
1316
1316
  }), d;
1317
1317
  }
1318
1318
  function ns(e) {
1319
- return zt(e) && ci(e);
1319
+ return zt(e) && bi(e);
1320
1320
  }
1321
1321
  function ss(e) {
1322
- return zt(e) && hi(e);
1322
+ return zt(e) && ci(e);
1323
1323
  }
1324
1324
  const rs = L({
1325
1325
  name: "MergeCellCommandButton",
@@ -1669,11 +1669,11 @@ function Fs(e, t, a, l, o, i) {
1669
1669
  const to = /* @__PURE__ */ B(vs, [["render", Fs]]), _s = L({
1670
1670
  name: "MenuBubble",
1671
1671
  components: {
1672
- BubbleMenu: ui,
1672
+ BubbleMenu: pi,
1673
1673
  LinkBubbleMenu: to,
1674
1674
  MergeCellBubbleMenu: Xl,
1675
1675
  VIcon: Yl,
1676
- FloatingMenu: di
1676
+ FloatingMenu: ui
1677
1677
  },
1678
1678
  props: {
1679
1679
  editor: {
@@ -1756,7 +1756,7 @@ const to = /* @__PURE__ */ B(vs, [["render", Fs]]), _s = L({
1756
1756
  return this.editor.isActive("link");
1757
1757
  },
1758
1758
  $_getCurrentMenuType() {
1759
- return this.isLinkSelection ? "link" : this.editor.state.selection instanceof bi ? "cell" : (this.editor.state.selection instanceof ba || this.editor.state.selection instanceof Ea) && !this.activeImage ? "default" : "none";
1759
+ return this.isLinkSelection ? "link" : this.editor.state.selection instanceof gi ? "cell" : (this.editor.state.selection instanceof ba || this.editor.state.selection instanceof Ea) && !this.activeImage ? "default" : "none";
1760
1760
  }
1761
1761
  }
1762
1762
  }), Ss = { ref: "parentRef" }, ks = { class: "el-tiptap-editor__menu-floating" };
@@ -2156,7 +2156,7 @@ const Ms = L({
2156
2156
  name: "ElementTiptap",
2157
2157
  emits: ["update:modelValue", "update:content", "onUpdate", "change", "onCreate", "onTransaction", "onBlur", "onFocus", "onDestroy"],
2158
2158
  components: {
2159
- EditorContent: pi,
2159
+ EditorContent: mi,
2160
2160
  MenuBar: Kl,
2161
2161
  MenuBubble: ao
2162
2162
  },
@@ -2275,21 +2275,21 @@ const Ms = L({
2275
2275
  setup(e, { emit: t }) {
2276
2276
  const a = K(""), l = K(!1), o = e.extensions;
2277
2277
  o.push(
2278
- yi.configure({
2278
+ vi.configure({
2279
2279
  emptyEditorClass: "el-tiptap-editor--empty",
2280
2280
  emptyNodeClass: "el-tiptap-editor__placeholder",
2281
2281
  showOnlyCurrent: !1,
2282
2282
  placeholder: ({ node: f }) => e.placeholder
2283
2283
  })
2284
2284
  ), e.enableCharCount !== !1 && o.push(
2285
- vi.configure({
2285
+ wi.configure({
2286
2286
  limit: e.charCountMax
2287
2287
  })
2288
2288
  );
2289
2289
  const i = ({ editor: f }) => {
2290
2290
  let y;
2291
2291
  e.output === "html" ? y = f.getHTML() : y = f.getJSON(), l.value = !0, a.value = y, t("update:modelValue", y), t("update:content", y), t("onUpdate", y, f), t("change", y);
2292
- }, d = mi({
2292
+ }, d = fi({
2293
2293
  content: a.value,
2294
2294
  extensions: o,
2295
2295
  editable: !e.readonly,
@@ -2417,7 +2417,7 @@ const Os = /* @__PURE__ */ B(Ms, [["render", As]]), Ns = ot.create({
2417
2417
  renderHTML({ HTMLAttributes: e }) {
2418
2418
  return ["h1", Xe(e), 0];
2419
2419
  }
2420
- }), il = wi.extend({
2420
+ }), il = Fi.extend({
2421
2421
  addOptions() {
2422
2422
  return {
2423
2423
  title: !1
@@ -2516,7 +2516,7 @@ function Bs(e, t, a, l, o, i) {
2516
2516
  _: 1
2517
2517
  }, 8, ["disabled", "onCommand"]);
2518
2518
  }
2519
- const js = /* @__PURE__ */ B(Es, [["render", Bs]]), nl = Fi.extend({
2519
+ const js = /* @__PURE__ */ B(Es, [["render", Bs]]), nl = _i.extend({
2520
2520
  addOptions() {
2521
2521
  return {
2522
2522
  ...this.parent?.(),
@@ -2531,7 +2531,7 @@ const js = /* @__PURE__ */ B(Es, [["render", Bs]]), nl = Fi.extend({
2531
2531
  }
2532
2532
  };
2533
2533
  }
2534
- }), Us = _i.extend({
2534
+ }), Us = Si.extend({
2535
2535
  addOptions() {
2536
2536
  return {
2537
2537
  ...this.parent?.(),
@@ -2551,7 +2551,7 @@ const js = /* @__PURE__ */ B(Es, [["render", Bs]]), nl = Fi.extend({
2551
2551
  };
2552
2552
  }
2553
2553
  });
2554
- Si.extend({
2554
+ ki.extend({
2555
2555
  addOptions() {
2556
2556
  return {
2557
2557
  ...this.parent?.(),
@@ -2571,12 +2571,12 @@ Si.extend({
2571
2571
  };
2572
2572
  }
2573
2573
  });
2574
- const qt = Ci(Di);
2575
- qt.register("html", Mi);
2576
- qt.register("css", Ii);
2577
- qt.register("js", $i);
2578
- qt.register("ts", Ti);
2579
- const Rs = ki.extend({
2574
+ const qt = Di(Ii);
2575
+ qt.register("html", Pi);
2576
+ qt.register("css", $i);
2577
+ qt.register("js", Ti);
2578
+ qt.register("ts", Mi);
2579
+ const Rs = Ci.extend({
2580
2580
  addOptions() {
2581
2581
  return {
2582
2582
  ...this.parent?.(),
@@ -2598,7 +2598,7 @@ const Rs = ki.extend({
2598
2598
  // defaultLanguage: 'plaintext',
2599
2599
  };
2600
2600
  }
2601
- }), sl = Pi.extend({
2601
+ }), sl = Vi.extend({
2602
2602
  addOptions() {
2603
2603
  return {
2604
2604
  ...this.parent?.(),
@@ -2620,7 +2620,7 @@ const Rs = ki.extend({
2620
2620
  // addExtensions() {
2621
2621
  // return [ListItem];
2622
2622
  // },
2623
- }), rl = Vi.extend({
2623
+ }), rl = Ai.extend({
2624
2624
  addOptions() {
2625
2625
  return {
2626
2626
  ...this.parent?.(),
@@ -3488,7 +3488,7 @@ function wr(e, t, a, l, o, i) {
3488
3488
  _: 1
3489
3489
  }, 8, ["class"]);
3490
3490
  }
3491
- const Fr = /* @__PURE__ */ B(br, [["render", wr]]), _r = Ai.extend({
3491
+ const Fr = /* @__PURE__ */ B(br, [["render", wr]]), _r = Oi.extend({
3492
3492
  // https://github.com/ueberdosis/tiptap/issues/1206
3493
3493
  inline() {
3494
3494
  return !0;
@@ -3566,7 +3566,7 @@ const Fr = /* @__PURE__ */ B(br, [["render", wr]]), _r = Ai.extend({
3566
3566
  name: "TaskItemView",
3567
3567
  components: {
3568
3568
  NodeViewWrapper: Qe,
3569
- NodeViewContent: fi,
3569
+ NodeViewContent: hi,
3570
3570
  ElCheckbox: Bt
3571
3571
  },
3572
3572
  props: we,
@@ -3604,7 +3604,7 @@ function Dr(e, t, a, l, o, i) {
3604
3604
  _: 1
3605
3605
  });
3606
3606
  }
3607
- const Ir = /* @__PURE__ */ B(Sr, [["render", Dr]]), $r = Ni.extend({
3607
+ const Ir = /* @__PURE__ */ B(Sr, [["render", Dr]]), $r = Ei.extend({
3608
3608
  addAttributes() {
3609
3609
  return {
3610
3610
  ...this.parent?.(),
@@ -3642,7 +3642,7 @@ const Ir = /* @__PURE__ */ B(Sr, [["render", Dr]]), $r = Ni.extend({
3642
3642
  addNodeView() {
3643
3643
  return it(Ir);
3644
3644
  }
3645
- }), Tr = Oi.extend({
3645
+ }), Tr = Ni.extend({
3646
3646
  addOptions() {
3647
3647
  return {
3648
3648
  ...this.parent?.(),
@@ -3907,7 +3907,7 @@ function jr(e, t, a, l, o, i) {
3907
3907
  _: 1
3908
3908
  }, 512);
3909
3909
  }
3910
- const Ur = /* @__PURE__ */ B(Br, [["render", jr]]), ml = Ei.extend({
3910
+ const Ur = /* @__PURE__ */ B(Br, [["render", jr]]), ml = Li.extend({
3911
3911
  addOptions() {
3912
3912
  return {
3913
3913
  ...this.parent?.(),
@@ -3922,7 +3922,7 @@ const Ur = /* @__PURE__ */ B(Br, [["render", jr]]), ml = Ei.extend({
3922
3922
  };
3923
3923
  },
3924
3924
  addExtensions() {
3925
- return [Li, Bi, ji];
3925
+ return [Bi, ji, Ui];
3926
3926
  }
3927
3927
  }), Rr = L({
3928
3928
  name: "IframeCommandButton",
@@ -4029,7 +4029,7 @@ const Hr = ot.create({
4029
4029
  };
4030
4030
  };
4031
4031
  }
4032
- }), fl = Ui.extend({
4032
+ }), fl = Ri.extend({
4033
4033
  addOptions() {
4034
4034
  return {
4035
4035
  ...this.parent?.(),
@@ -4048,7 +4048,7 @@ const Hr = ot.create({
4048
4048
  }
4049
4049
  };
4050
4050
  }
4051
- }), hl = Ri.extend({
4051
+ }), hl = zi.extend({
4052
4052
  addOptions() {
4053
4053
  return {
4054
4054
  ...this.parent?.(),
@@ -4067,7 +4067,7 @@ const Hr = ot.create({
4067
4067
  }
4068
4068
  };
4069
4069
  }
4070
- }), cl = zi.extend({
4070
+ }), cl = qi.extend({
4071
4071
  addOptions() {
4072
4072
  return {
4073
4073
  ...this.parent?.(),
@@ -4086,7 +4086,7 @@ const Hr = ot.create({
4086
4086
  }
4087
4087
  };
4088
4088
  }
4089
- }), xr = qi.extend({
4089
+ }), xr = Hi.extend({
4090
4090
  addOptions() {
4091
4091
  return {
4092
4092
  ...this.parent?.(),
@@ -4238,7 +4238,7 @@ function Kr(e, t, a, l, o, i) {
4238
4238
  }, 8, ["modelValue", "title", "width"])
4239
4239
  ]);
4240
4240
  }
4241
- const Gr = /* @__PURE__ */ B(Wr, [["render", Kr]]), bl = Hi.extend({
4241
+ const Gr = /* @__PURE__ */ B(Wr, [["render", Kr]]), bl = xi.extend({
4242
4242
  priority: 100,
4243
4243
  addOptions() {
4244
4244
  return {
@@ -4255,7 +4255,7 @@ const Gr = /* @__PURE__ */ B(Wr, [["render", Kr]]), bl = Hi.extend({
4255
4255
  },
4256
4256
  addProseMirrorPlugins() {
4257
4257
  return [
4258
- new gi({
4258
+ new yi({
4259
4259
  props: {
4260
4260
  handleClick(e, t) {
4261
4261
  const { schema: a, doc: l, tr: o } = e.state;
@@ -4396,7 +4396,7 @@ function ed(e, t, a, l, o, i) {
4396
4396
  _: 1
4397
4397
  }, 8, ["disabled"]);
4398
4398
  }
4399
- const td = /* @__PURE__ */ B(Yr, [["render", ed]]), gl = xi.extend({
4399
+ const td = /* @__PURE__ */ B(Yr, [["render", ed]]), gl = Wi.extend({
4400
4400
  addOptions() {
4401
4401
  return {
4402
4402
  ...this.parent?.(),
@@ -4412,7 +4412,7 @@ const td = /* @__PURE__ */ B(Yr, [["render", ed]]), gl = xi.extend({
4412
4412
  };
4413
4413
  },
4414
4414
  addExtensions() {
4415
- return [Wi];
4415
+ return [Ki];
4416
4416
  }
4417
4417
  }), ad = L({
4418
4418
  name: "HighlightPopover",
@@ -4522,7 +4522,7 @@ function sd(e, t, a, l, o, i) {
4522
4522
  _: 1
4523
4523
  }, 8, ["disabled"]);
4524
4524
  }
4525
- const rd = /* @__PURE__ */ B(ad, [["render", sd]]), yl = Ki.extend({
4525
+ const rd = /* @__PURE__ */ B(ad, [["render", sd]]), yl = Gi.extend({
4526
4526
  addOptions() {
4527
4527
  return {
4528
4528
  ...this.parent?.(),
@@ -4981,7 +4981,7 @@ function Dd(e, t, a, l, o, i) {
4981
4981
  }, 8, ["modelValue"])
4982
4982
  ]);
4983
4983
  }
4984
- const Id = /* @__PURE__ */ B(Cd, [["render", Dd]]), $d = Gi.extend({
4984
+ const Id = /* @__PURE__ */ B(Cd, [["render", Dd]]), $d = Yi.extend({
4985
4985
  addOptions() {
4986
4986
  return {
4987
4987
  ...this.parent?.(),
@@ -4995,7 +4995,7 @@ const Id = /* @__PURE__ */ B(Cd, [["render", Dd]]), $d = Gi.extend({
4995
4995
  }
4996
4996
  };
4997
4997
  }
4998
- }), Td = Yi.extend({
4998
+ }), Td = Ji.extend({
4999
4999
  addOptions() {
5000
5000
  return {
5001
5001
  ...this.parent?.(),
@@ -5014,7 +5014,7 @@ const Id = /* @__PURE__ */ B(Cd, [["render", Dd]]), $d = Gi.extend({
5014
5014
  }
5015
5015
  };
5016
5016
  }
5017
- }), Md = Ji.extend({
5017
+ }), Md = Xi.extend({
5018
5018
  addOptions() {
5019
5019
  return {
5020
5020
  ...this.parent?.(),
@@ -5335,7 +5335,7 @@ const Ed = /* @__PURE__ */ B(Od, [["render", Nd]]), Ld = He.create({
5335
5335
  }
5336
5336
  };
5337
5337
  }
5338
- }), vl = Xi.extend({
5338
+ }), vl = Qi.extend({
5339
5339
  addOptions() {
5340
5340
  return {
5341
5341
  ...this.parent?.(),
@@ -5353,7 +5353,7 @@ const Ed = /* @__PURE__ */ B(Od, [["render", Nd]]), Ld = He.create({
5353
5353
  }
5354
5354
  };
5355
5355
  }
5356
- }), wl = Qi.extend({
5356
+ }), wl = Zi.extend({
5357
5357
  addOptions() {
5358
5358
  return {
5359
5359
  ...this.parent?.(),
@@ -5383,7 +5383,7 @@ const Ed = /* @__PURE__ */ B(Od, [["render", Nd]]), Ld = He.create({
5383
5383
  }
5384
5384
  };
5385
5385
  }
5386
- }), Fl = Zi.extend({
5386
+ }), Fl = en.extend({
5387
5387
  addOptions() {
5388
5388
  return {
5389
5389
  ...this.parent?.(),
@@ -9515,7 +9515,7 @@ const Tp = /* @__PURE__ */ B(Lu, [["render", $p], ["__scopeId", "data-v-11e15de9
9515
9515
  function Ta(e) {
9516
9516
  return e.includes("admin") || e.includes("super");
9517
9517
  }
9518
- const Mp = Xo(() => import("./sd-render-C2QEeeT2.js").then((e) => e.S)), Pp = L({
9518
+ const Mp = Xo(() => import("./sd-render-Db7-FEvT.js").then((e) => e.S)), Pp = L({
9519
9519
  name: "SdCrudForm",
9520
9520
  components: {
9521
9521
  SdFormRenderAsync: Mp
@@ -10492,216 +10492,569 @@ function Gp(e, t, a, l, o, i) {
10492
10492
  ], 4);
10493
10493
  }
10494
10494
  const fg = /* @__PURE__ */ B(Kp, [["render", Gp]]), Yp = L({
10495
- name: "SdExportData",
10496
- emits: ["update:modelValue", "change"],
10495
+ name: "SdApexChart",
10496
+ components: {},
10497
10497
  props: {
10498
- modelValue: null,
10499
- dataProvider: {
10500
- type: Object,
10498
+ sqlId: {
10499
+ type: String,
10501
10500
  required: !0
10502
10501
  },
10503
- fileName: {
10502
+ params: {
10503
+ type: Object,
10504
+ default: {}
10505
+ },
10506
+ width: {
10507
+ type: Number
10508
+ },
10509
+ height: {
10510
+ type: Number
10511
+ },
10512
+ type: {
10513
+ type: String
10514
+ //timeline,pyramid,boxPlot
10515
+ },
10516
+ title: {
10504
10517
  type: String,
10505
- default: "Export",
10506
- required: !0
10518
+ default: "Chart"
10507
10519
  },
10508
- dynamicName: {
10520
+ titleDisplay: {
10521
+ type: Boolean,
10522
+ default: !0
10523
+ },
10524
+ gridDisplay: {
10525
+ type: Boolean,
10526
+ default: !0
10527
+ },
10528
+ gridCustom: {
10529
+ type: Object,
10530
+ default: {}
10531
+ },
10532
+ legendDisplay: {
10533
+ type: Boolean,
10534
+ default: !0
10535
+ },
10536
+ legendCustom: {
10537
+ type: Object,
10538
+ default: {}
10539
+ },
10540
+ scalesXDisplay: {
10541
+ type: Boolean,
10542
+ default: !0
10543
+ },
10544
+ scalesXLabel: {
10509
10545
  type: String,
10510
10546
  default: ""
10511
10547
  },
10512
- popupName: {
10548
+ scalesXCustom: {
10549
+ type: Object,
10550
+ default: {}
10551
+ },
10552
+ xField: {
10513
10553
  type: String,
10514
- default: "Export Data"
10554
+ default: ""
10515
10555
  },
10516
- popupWidth: {
10556
+ xType: {
10517
10557
  type: String,
10518
- default: "50%"
10558
+ default: "category"
10519
10559
  },
10520
- backdrop: {
10560
+ scalesYDisplay: {
10521
10561
  type: Boolean,
10522
- default: !1
10562
+ default: !0
10523
10563
  },
10524
- cancelCallback: {
10525
- type: Function,
10526
- required: !0
10564
+ scalesYLabel: {
10565
+ type: String,
10566
+ default: ""
10567
+ },
10568
+ scalesYCustom: {
10569
+ type: Object,
10570
+ default: {}
10571
+ },
10572
+ yDataset: {
10573
+ type: Array,
10574
+ default: []
10575
+ },
10576
+ customOptions: {
10577
+ type: Object,
10578
+ default: {}
10527
10579
  },
10528
10580
  userState: {
10529
10581
  type: Object,
10530
10582
  required: !0
10583
+ },
10584
+ mockup: {
10585
+ type: Boolean,
10586
+ default: !1
10587
+ },
10588
+ dataLabelsShow: {
10589
+ type: Boolean,
10590
+ default: !1
10591
+ },
10592
+ toolbarShow: {
10593
+ type: Boolean,
10594
+ default: !1
10595
+ },
10596
+ zoomEnable: {
10597
+ type: Boolean,
10598
+ default: !0
10599
+ },
10600
+ tooltipShow: {
10601
+ type: Boolean,
10602
+ default: !0
10603
+ },
10604
+ buildState: {
10605
+ type: Boolean,
10606
+ default: !1
10531
10607
  }
10532
10608
  },
10533
10609
  data() {
10534
10610
  return {
10535
- fName: "",
10536
- fullName: "",
10537
- filePath: "",
10538
- showFile: !1,
10539
- popupWidthdefault: this.popupWidth
10611
+ // data: {
10612
+ // datasets: [],
10613
+ // } as ChartData,
10614
+ options: {},
10615
+ dataMockup: [
10616
+ { name: "Count", type: "bar", data: [40, 20, 12, 39, 10, 40, 39, 80, 40, 20, 12, 11] },
10617
+ { name: "Value", type: "line", data: [80, 40, 20, 12, 11, 40, 20, 12, 39, 10, 40, 39] }
10618
+ ],
10619
+ optionsMockup: {},
10620
+ defaultParams: this.params,
10621
+ rawData: [],
10622
+ loadEnable: !1,
10623
+ preLoading: !1,
10624
+ showChart: !1,
10625
+ apiUrl: "",
10626
+ isDark: se(),
10627
+ useUserState: this.$props.userState
10540
10628
  };
10541
10629
  },
10542
- created() {
10630
+ watch: {
10631
+ isDark: {
10632
+ deep: !1,
10633
+ handler(e) {
10634
+ this.createOptions(), this.optionsMockup = this.createOpMockup();
10635
+ }
10636
+ }
10543
10637
  },
10544
10638
  computed: {
10545
- showPopupFlag: {
10546
- get() {
10547
- return this.modelValue;
10548
- },
10549
- set(e) {
10550
- let t = e;
10551
- this.$emit("update:modelValue", t), this.$emit("change", e);
10552
- }
10639
+ color() {
10640
+ return se().value ? "#414243" : "#e4e7ed";
10641
+ },
10642
+ dataChart() {
10643
+ let e = [];
10644
+ if (this.yDataset && this.yDataset.length > 0)
10645
+ for (const [t, a] of this.yDataset.entries()) {
10646
+ const l = a.custom ? a.custom : {}, o = this.rawData.map((i) => {
10647
+ if (a.type === "heatmap" || a.type === "treemap") {
10648
+ if (i[a.field] && i[this.xField])
10649
+ return { x: i[this.xField], y: i[a.field] };
10650
+ } else if (i[a.field])
10651
+ return i[a.field];
10652
+ });
10653
+ a.type === "radialBar" ? e = o : e.push({
10654
+ data: o,
10655
+ name: a.name ? a.name : "Unit" + t,
10656
+ type: a.type ? a.type : "bar",
10657
+ color: a.color && Object.keys(a.color).length > 0 ? a.color : void 0,
10658
+ hidden: !!a.hidden,
10659
+ zIndex: a.zIndex != null || a.zIndex != null ? a.zIndex : void 0,
10660
+ group: a.group ? a.group : void 0,
10661
+ ...l
10662
+ });
10663
+ }
10664
+ return e;
10553
10665
  }
10554
10666
  },
10555
- setup(e, t) {
10556
- return {};
10667
+ created() {
10668
+ this.apiUrl = "";
10557
10669
  },
10558
10670
  mounted() {
10559
- Ce(() => {
10560
- this.$nextTick(() => {
10561
- this.popupWidthdefault = ee(this.popupWidth);
10562
- });
10563
- });
10671
+ this.buildState || (this.loadEnable = !0), this.optionsMockup = this.createOpMockup(), this.initdata();
10672
+ },
10673
+ unmounted() {
10674
+ },
10675
+ setup(e, t) {
10676
+ return {
10677
+ chartRef: K()
10678
+ };
10564
10679
  },
10565
10680
  methods: {
10566
- handleOpen() {
10567
- const e = aa.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)", fullscreen: !0 });
10568
- this.fullName = `${this.fileName}`, this.fName = `${this.fileName}`, this.showFile = !1, this.userState.exportData(
10569
- { sdProvider: this.dataProvider, fileName: this.fileName, dynamicName: this.dynamicName },
10570
- (t) => {
10571
- this.fName = `${t.fileName}`, this.fullName = `${t.fileName}`, this.filePath = `${t.filePath}`, this.showFile = !0, e.close();
10572
- },
10573
- () => {
10574
- e.close();
10575
- }
10576
- ), this.popupWidthdefault = ee(this.popupWidth);
10577
- },
10578
- handleCancel() {
10579
- this.cancelCallback && this.cancelCallback();
10580
- },
10581
- async handleClose() {
10582
- if (this.showFile) {
10583
- this.showFile = !1;
10584
- const e = `export/${this.userState.user?.username}`;
10585
- let t = { filePath: this.filePath, fileName: this.fName, fileType: "json", fileGroup: e, fileId: "" };
10586
- await he.delete(`${this.userState.host}/v1/files/remove-one`, {
10587
- data: t,
10588
- headers: {
10589
- Authorization: `Bearer ${this.userState.user?.token}`
10590
- }
10591
- }).then((a) => {
10592
- }).catch((a) => {
10593
- console.log(a);
10594
- });
10681
+ async initdata() {
10682
+ const e = {
10683
+ providerId: this.sqlId,
10684
+ providerType: de.SQL,
10685
+ params: this.params
10686
+ };
10687
+ if (this.rawData = [], this.loadEnable) {
10688
+ const t = await at(e, !1, this.useUserState);
10689
+ t && t.response && t.data && t.data.data && (this.rawData = D(t.data.data), this.xField && (this.createOptions(), this.showChart = !0));
10595
10690
  }
10596
- }
10597
- }
10598
- }), Jp = {
10599
- role: "heading",
10600
- class: "el-dialog__title"
10601
- }, Xp = { class: "dialog-footer" };
10602
- function Qp(e, t, a, l, o, i) {
10603
- const d = Y("Document"), u = Ge, m = ra, h = oe, c = Fe;
10604
- return n(), p(c, {
10605
- title: e.popupName,
10606
- modelValue: e.showPopupFlag,
10607
- "onUpdate:modelValue": t[1] || (t[1] = (_) => e.showPopupFlag = _),
10608
- width: e.popupWidthdefault,
10609
- "show-close": !0,
10610
- class: "dialog-grid dialog-form",
10611
- "before-close": e.handleCancel,
10612
- onOpen: e.handleOpen,
10613
- onClose: e.handleClose,
10614
- "append-to-body": "",
10615
- "close-on-click-modal": e.backdrop,
10616
- "close-on-press-escape": !0,
10617
- "destroy-on-close": !0
10618
- }, {
10619
- header: s(({ close: _, titleId: C, titleClass: b }) => [
10620
- P("span", Jp, O(e.popupName), 1)
10621
- ]),
10622
- footer: s(() => [
10623
- P("div", Xp, [
10624
- r(h, {
10625
- onClick: t[0] || (t[0] = (_) => e.showPopupFlag = !1)
10626
- }, {
10627
- default: s(() => [...t[3] || (t[3] = [
10628
- S("Close", -1)
10629
- ])]),
10630
- _: 1
10631
- })
10632
- ])
10633
- ]),
10634
- default: s(() => [
10635
- fe(e.$slots, "popup", {}, () => [
10636
- t[2] || (t[2] = S(" Download click here => ", -1)),
10637
- e.showFile ? (n(), p(m, {
10638
- key: 0,
10639
- type: "primary",
10640
- href: e.filePath,
10641
- target: "_blank"
10642
- }, {
10643
- default: s(() => [
10644
- r(u, { class: "mr-1" }, {
10645
- default: s(() => [
10646
- r(d)
10647
- ]),
10648
- _: 1
10649
- }),
10650
- S(" " + O(e.fullName), 1)
10651
- ]),
10652
- _: 1
10653
- }, 8, ["href"])) : g("", !0)
10654
- ])
10655
- ]),
10656
- _: 3
10657
- }, 8, ["title", "modelValue", "width", "before-close", "onOpen", "onClose", "close-on-click-modal"]);
10691
+ },
10692
+ createOptions() {
10693
+ const e = this.rawData.map((t) => {
10694
+ if (t[this.xField])
10695
+ return t[this.xField];
10696
+ });
10697
+ this.options = {
10698
+ chart: {
10699
+ type: this.type ? this.type : void 0,
10700
+ toolbar: {
10701
+ show: this.toolbarShow
10702
+ },
10703
+ zoom: {
10704
+ enabled: this.zoomEnable
10705
+ },
10706
+ background: "transparent"
10707
+ },
10708
+ title: {
10709
+ text: this.titleDisplay ? this.title : void 0
10710
+ },
10711
+ legend: {
10712
+ show: this.legendDisplay,
10713
+ ...this.legendCustom
10714
+ },
10715
+ grid: {
10716
+ show: this.gridDisplay,
10717
+ borderColor: se().value ? "#414243" : "#e4e7ed",
10718
+ ...this.gridCustom
10719
+ },
10720
+ dataLabels: {
10721
+ enabled: this.dataLabelsShow
10722
+ },
10723
+ labels: this.type === "radialBar" && e ? e : void 0,
10724
+ xaxis: {
10725
+ type: this.xType,
10726
+ categories: e || [],
10727
+ title: {
10728
+ text: this.scalesXLabel
10729
+ },
10730
+ axisBorder: {
10731
+ color: se().value ? "#414243" : "#e4e7ed"
10732
+ },
10733
+ axisTicks: {
10734
+ color: se().value ? "#414243" : "#e4e7ed"
10735
+ },
10736
+ ...this.scalesXCustom
10737
+ },
10738
+ yaxis: {
10739
+ show: this.scalesYDisplay,
10740
+ title: {
10741
+ text: this.scalesYLabel
10742
+ },
10743
+ axisBorder: {
10744
+ color: se().value ? "#414243" : "#e4e7ed"
10745
+ },
10746
+ axisTicks: {
10747
+ color: se().value ? "#414243" : "#e4e7ed"
10748
+ },
10749
+ ...this.scalesYCustom
10750
+ },
10751
+ tooltip: {
10752
+ enabled: this.tooltipShow,
10753
+ theme: "dark"
10754
+ },
10755
+ theme: {
10756
+ mode: se().value ? "dark" : "light"
10757
+ },
10758
+ ...this.customOptions
10759
+ };
10760
+ },
10761
+ createOpMockup() {
10762
+ return {
10763
+ chart: {
10764
+ toolbar: {
10765
+ show: this.toolbarShow
10766
+ },
10767
+ zoom: {
10768
+ enabled: this.zoomEnable
10769
+ },
10770
+ background: "transparent"
10771
+ },
10772
+ title: {
10773
+ text: this.titleDisplay ? this.title : void 0
10774
+ },
10775
+ legend: {
10776
+ show: this.legendDisplay,
10777
+ ...this.legendCustom
10778
+ },
10779
+ dataLabels: {
10780
+ enabled: this.dataLabelsShow
10781
+ },
10782
+ grid: {
10783
+ show: this.gridDisplay,
10784
+ borderColor: se().value ? "#414243" : "#e4e7ed",
10785
+ ...this.gridCustom
10786
+ },
10787
+ xaxis: {
10788
+ type: this.xType,
10789
+ categories: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
10790
+ title: {
10791
+ text: this.scalesXLabel
10792
+ },
10793
+ axisBorder: {
10794
+ color: se().value ? "#414243" : "#e4e7ed"
10795
+ },
10796
+ axisTicks: {
10797
+ color: se().value ? "#414243" : "#e4e7ed"
10798
+ },
10799
+ ...this.scalesXCustom
10800
+ },
10801
+ yaxis: {
10802
+ show: this.scalesYDisplay,
10803
+ title: {
10804
+ text: this.scalesYLabel
10805
+ },
10806
+ axisBorder: {
10807
+ color: se().value ? "#414243" : "#e4e7ed"
10808
+ },
10809
+ axisTicks: {
10810
+ color: se().value ? "#414243" : "#e4e7ed"
10811
+ },
10812
+ ...this.scalesYCustom
10813
+ },
10814
+ tooltip: {
10815
+ enabled: this.tooltipShow,
10816
+ theme: "dark"
10817
+ },
10818
+ theme: {
10819
+ mode: se().value ? "dark" : "light"
10820
+ },
10821
+ ...this.customOptions
10822
+ };
10823
+ }
10824
+ }
10825
+ });
10826
+ function Jp(e, t, a, l, o, i) {
10827
+ const d = Y("apexchart");
10828
+ return n(), w("div", {
10829
+ ref: "chartRef",
10830
+ style: te(`width: ${e.width ? e.width + "px" : "100%"}; height: ${e.height ? e.height + "px" : "100%"}`)
10831
+ }, [
10832
+ e.mockup && e.buildState ? (n(), p(d, {
10833
+ key: 0,
10834
+ height: "100%",
10835
+ options: e.optionsMockup,
10836
+ series: e.dataMockup
10837
+ }, null, 8, ["options", "series"])) : (n(), w(E, { key: 1 }, [
10838
+ e.showChart ? (n(), p(d, {
10839
+ key: 0,
10840
+ height: "100%",
10841
+ options: e.options,
10842
+ series: e.dataChart
10843
+ }, null, 8, ["options", "series"])) : g("", !0)
10844
+ ], 64))
10845
+ ], 4);
10658
10846
  }
10659
- const Zp = /* @__PURE__ */ B(Yp, [["render", Qp]]), em = L({
10660
- name: "SdGridColumnBy",
10847
+ const hg = /* @__PURE__ */ B(Yp, [["render", Jp]]), Xp = L({
10848
+ name: "SdExportData",
10849
+ emits: ["update:modelValue", "change"],
10661
10850
  props: {
10662
- columnProp: {
10851
+ modelValue: null,
10852
+ dataProvider: {
10853
+ type: Object,
10854
+ required: !0
10855
+ },
10856
+ fileName: {
10663
10857
  type: String,
10664
- default: "created_by"
10858
+ default: "Export",
10859
+ required: !0
10665
10860
  },
10666
- columnLabel: {
10861
+ dynamicName: {
10667
10862
  type: String,
10668
- default: "Created By"
10863
+ default: ""
10669
10864
  },
10670
- // sortable: {
10671
- // type: Boolean,
10672
- // default: true,
10673
- // },
10674
- width: {
10865
+ popupName: {
10675
10866
  type: String,
10676
- default: "180"
10677
- }
10678
- },
10679
- computed: {},
10680
- methods: {
10681
- getName(e) {
10682
- const t = e[this.columnProp] && e[this.columnProp].name ? e[this.columnProp].name : "";
10683
- return t != "" ? t.split(" (")[0] : null;
10867
+ default: "Export Data"
10684
10868
  },
10685
- getFullName(e) {
10686
- return e[this.columnProp] && e[this.columnProp].name ? e[this.columnProp].name : null;
10869
+ popupWidth: {
10870
+ type: String,
10871
+ default: "50%"
10872
+ },
10873
+ backdrop: {
10874
+ type: Boolean,
10875
+ default: !1
10876
+ },
10877
+ cancelCallback: {
10878
+ type: Function,
10879
+ required: !0
10880
+ },
10881
+ userState: {
10882
+ type: Object,
10883
+ required: !0
10687
10884
  }
10688
- // getName(row: any) {
10689
- // const propName = this.columnProp.split('.');
10690
- // const value = !!row[propName[0]].name ? row[propName[0]].name : '';
10691
- // if (value != '') {
10692
- // const valuePath = value.split(' (');
10693
- // return valuePath[0];
10694
- // }
10695
- // return null;
10696
- // },
10697
- // getFullName(row: any) {
10698
- // const propName = this.columnProp.split('.');
10699
- // const value = !!row[propName[0]].name ? row[propName[0]].name : null;
10700
- // return value;
10701
- // },
10702
- }
10885
+ },
10886
+ data() {
10887
+ return {
10888
+ fName: "",
10889
+ fullName: "",
10890
+ filePath: "",
10891
+ showFile: !1,
10892
+ popupWidthdefault: this.popupWidth
10893
+ };
10894
+ },
10895
+ created() {
10896
+ },
10897
+ computed: {
10898
+ showPopupFlag: {
10899
+ get() {
10900
+ return this.modelValue;
10901
+ },
10902
+ set(e) {
10903
+ let t = e;
10904
+ this.$emit("update:modelValue", t), this.$emit("change", e);
10905
+ }
10906
+ }
10907
+ },
10908
+ setup(e, t) {
10909
+ return {};
10910
+ },
10911
+ mounted() {
10912
+ Ce(() => {
10913
+ this.$nextTick(() => {
10914
+ this.popupWidthdefault = ee(this.popupWidth);
10915
+ });
10916
+ });
10917
+ },
10918
+ methods: {
10919
+ handleOpen() {
10920
+ const e = aa.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)", fullscreen: !0 });
10921
+ this.fullName = `${this.fileName}`, this.fName = `${this.fileName}`, this.showFile = !1, this.userState.exportData(
10922
+ { sdProvider: this.dataProvider, fileName: this.fileName, dynamicName: this.dynamicName },
10923
+ (t) => {
10924
+ this.fName = `${t.fileName}`, this.fullName = `${t.fileName}`, this.filePath = `${t.filePath}`, this.showFile = !0, e.close();
10925
+ },
10926
+ () => {
10927
+ e.close();
10928
+ }
10929
+ ), this.popupWidthdefault = ee(this.popupWidth);
10930
+ },
10931
+ handleCancel() {
10932
+ this.cancelCallback && this.cancelCallback();
10933
+ },
10934
+ async handleClose() {
10935
+ if (this.showFile) {
10936
+ this.showFile = !1;
10937
+ const e = `export/${this.userState.user?.username}`;
10938
+ let t = { filePath: this.filePath, fileName: this.fName, fileType: "json", fileGroup: e, fileId: "" };
10939
+ await he.delete(`${this.userState.host}/v1/files/remove-one`, {
10940
+ data: t,
10941
+ headers: {
10942
+ Authorization: `Bearer ${this.userState.user?.token}`
10943
+ }
10944
+ }).then((a) => {
10945
+ }).catch((a) => {
10946
+ console.log(a);
10947
+ });
10948
+ }
10949
+ }
10950
+ }
10951
+ }), Qp = {
10952
+ role: "heading",
10953
+ class: "el-dialog__title"
10954
+ }, Zp = { class: "dialog-footer" };
10955
+ function em(e, t, a, l, o, i) {
10956
+ const d = Y("Document"), u = Ge, m = ra, h = oe, c = Fe;
10957
+ return n(), p(c, {
10958
+ title: e.popupName,
10959
+ modelValue: e.showPopupFlag,
10960
+ "onUpdate:modelValue": t[1] || (t[1] = (_) => e.showPopupFlag = _),
10961
+ width: e.popupWidthdefault,
10962
+ "show-close": !0,
10963
+ class: "dialog-grid dialog-form",
10964
+ "before-close": e.handleCancel,
10965
+ onOpen: e.handleOpen,
10966
+ onClose: e.handleClose,
10967
+ "append-to-body": "",
10968
+ "close-on-click-modal": e.backdrop,
10969
+ "close-on-press-escape": !0,
10970
+ "destroy-on-close": !0
10971
+ }, {
10972
+ header: s(({ close: _, titleId: C, titleClass: b }) => [
10973
+ P("span", Qp, O(e.popupName), 1)
10974
+ ]),
10975
+ footer: s(() => [
10976
+ P("div", Zp, [
10977
+ r(h, {
10978
+ onClick: t[0] || (t[0] = (_) => e.showPopupFlag = !1)
10979
+ }, {
10980
+ default: s(() => [...t[3] || (t[3] = [
10981
+ S("Close", -1)
10982
+ ])]),
10983
+ _: 1
10984
+ })
10985
+ ])
10986
+ ]),
10987
+ default: s(() => [
10988
+ fe(e.$slots, "popup", {}, () => [
10989
+ t[2] || (t[2] = S(" Download click here => ", -1)),
10990
+ e.showFile ? (n(), p(m, {
10991
+ key: 0,
10992
+ type: "primary",
10993
+ href: e.filePath,
10994
+ target: "_blank"
10995
+ }, {
10996
+ default: s(() => [
10997
+ r(u, { class: "mr-1" }, {
10998
+ default: s(() => [
10999
+ r(d)
11000
+ ]),
11001
+ _: 1
11002
+ }),
11003
+ S(" " + O(e.fullName), 1)
11004
+ ]),
11005
+ _: 1
11006
+ }, 8, ["href"])) : g("", !0)
11007
+ ])
11008
+ ]),
11009
+ _: 3
11010
+ }, 8, ["title", "modelValue", "width", "before-close", "onOpen", "onClose", "close-on-click-modal"]);
11011
+ }
11012
+ const tm = /* @__PURE__ */ B(Xp, [["render", em]]), am = L({
11013
+ name: "SdGridColumnBy",
11014
+ props: {
11015
+ columnProp: {
11016
+ type: String,
11017
+ default: "created_by"
11018
+ },
11019
+ columnLabel: {
11020
+ type: String,
11021
+ default: "Created By"
11022
+ },
11023
+ // sortable: {
11024
+ // type: Boolean,
11025
+ // default: true,
11026
+ // },
11027
+ width: {
11028
+ type: String,
11029
+ default: "180"
11030
+ }
11031
+ },
11032
+ computed: {},
11033
+ methods: {
11034
+ getName(e) {
11035
+ const t = e[this.columnProp] && e[this.columnProp].name ? e[this.columnProp].name : "";
11036
+ return t != "" ? t.split(" (")[0] : null;
11037
+ },
11038
+ getFullName(e) {
11039
+ return e[this.columnProp] && e[this.columnProp].name ? e[this.columnProp].name : null;
11040
+ }
11041
+ // getName(row: any) {
11042
+ // const propName = this.columnProp.split('.');
11043
+ // const value = !!row[propName[0]].name ? row[propName[0]].name : '';
11044
+ // if (value != '') {
11045
+ // const valuePath = value.split(' (');
11046
+ // return valuePath[0];
11047
+ // }
11048
+ // return null;
11049
+ // },
11050
+ // getFullName(row: any) {
11051
+ // const propName = this.columnProp.split('.');
11052
+ // const value = !!row[propName[0]].name ? row[propName[0]].name : null;
11053
+ // return value;
11054
+ // },
11055
+ }
10703
11056
  });
10704
- function tm(e, t, a, l, o, i) {
11057
+ function lm(e, t, a, l, o, i) {
10705
11058
  const d = Vl, u = qe;
10706
11059
  return n(), p(u, {
10707
11060
  prop: e.columnProp,
@@ -10722,7 +11075,7 @@ function tm(e, t, a, l, o, i) {
10722
11075
  _: 1
10723
11076
  }, 8, ["prop", "label", "width"]);
10724
11077
  }
10725
- const go = /* @__PURE__ */ B(em, [["render", tm]]), am = L({
11078
+ const go = /* @__PURE__ */ B(am, [["render", lm]]), om = L({
10726
11079
  name: "SdGridColumnDate",
10727
11080
  props: {
10728
11081
  columnProp: {
@@ -10749,7 +11102,7 @@ const go = /* @__PURE__ */ B(em, [["render", tm]]), am = L({
10749
11102
  }
10750
11103
  }
10751
11104
  });
10752
- function lm(e, t, a, l, o, i) {
11105
+ function im(e, t, a, l, o, i) {
10753
11106
  const d = qe;
10754
11107
  return n(), p(d, {
10755
11108
  prop: e.columnProp,
@@ -10764,7 +11117,7 @@ function lm(e, t, a, l, o, i) {
10764
11117
  _: 1
10765
11118
  }, 8, ["prop", "label", "width", "sortable"]);
10766
11119
  }
10767
- const yo = /* @__PURE__ */ B(am, [["render", lm]]), om = L({
11120
+ const yo = /* @__PURE__ */ B(om, [["render", im]]), nm = L({
10768
11121
  name: "SdGridColumnDynamic",
10769
11122
  components: { SdGridColumnDate: yo, SdGridColumnBy: go, SdValueWidget: xt },
10770
11123
  props: {
@@ -10931,8 +11284,8 @@ const yo = /* @__PURE__ */ B(am, [["render", lm]]), om = L({
10931
11284
  return l;
10932
11285
  }
10933
11286
  }
10934
- }), im = ["innerHTML"], nm = ["innerHTML"];
10935
- function sm(e, t, a, l, o, i) {
11287
+ }), sm = ["innerHTML"], rm = ["innerHTML"];
11288
+ function dm(e, t, a, l, o, i) {
10936
11289
  const d = xt, u = qe, m = Nt, h = $e, c = kt, _ = Nl, C = ze, b = yo, M = go;
10937
11290
  return n(), w(E, null, [
10938
11291
  e.columnFields && Object.keys(e.columnFields).length > 0 ? (n(), w(E, { key: 0 }, [
@@ -11054,7 +11407,7 @@ function sm(e, t, a, l, o, i) {
11054
11407
  f.htmlValue ? (n(), w("span", {
11055
11408
  key: 0,
11056
11409
  innerHTML: e.htmlValue(f.htmlValue, y.row, f)
11057
- }, null, 8, im)) : g("", !0)
11410
+ }, null, 8, sm)) : g("", !0)
11058
11411
  ]),
11059
11412
  _: 2
11060
11413
  }, 1032, ["type", "truncated", "line-clamp"])
@@ -11082,7 +11435,7 @@ function sm(e, t, a, l, o, i) {
11082
11435
  f.htmlValue ? (n(), w("span", {
11083
11436
  key: 0,
11084
11437
  innerHTML: e.htmlValue(f.htmlValue, y.row, f)
11085
- }, null, 8, nm)) : g("", !0)
11438
+ }, null, 8, rm)) : g("", !0)
11086
11439
  ]),
11087
11440
  _: 2
11088
11441
  }, 1032, ["type", "truncated", "line-clamp"])
@@ -11163,7 +11516,7 @@ function sm(e, t, a, l, o, i) {
11163
11516
  ], 64)) : g("", !0)
11164
11517
  ], 64);
11165
11518
  }
11166
- const rm = /* @__PURE__ */ B(om, [["render", sm]]), dm = L({
11519
+ const um = /* @__PURE__ */ B(nm, [["render", dm]]), pm = L({
11167
11520
  name: "SdCrudGrid",
11168
11521
  components: {},
11169
11522
  emits: ["aftersave"],
@@ -11871,30 +12224,30 @@ const rm = /* @__PURE__ */ B(om, [["render", sm]]), dm = L({
11871
12224
  this.dpExportRow.params.id = "", this.exportName = "", this.showExportRow = !1;
11872
12225
  }
11873
12226
  }
11874
- }), um = { class: "card-header" }, pm = {
12227
+ }), mm = { class: "card-header" }, fm = {
11875
12228
  key: 0,
11876
12229
  class: "mb-2",
11877
12230
  style: { position: "relative" }
11878
- }, mm = { class: "text-6" }, fm = { style: { position: "absolute", top: "0px", right: "0px" } }, hm = {
12231
+ }, hm = { class: "text-6" }, cm = { style: { position: "absolute", top: "0px", right: "0px" } }, bm = {
11879
12232
  class: "ml-1 text-3",
11880
12233
  style: { height: "32px", display: "inline-grid", "align-content": "center" }
11881
- }, cm = {
12234
+ }, gm = {
11882
12235
  class: "text-3",
11883
12236
  style: { height: "32px", display: "inline-grid", "align-content": "center" }
11884
- }, bm = { class: "card-footer" };
11885
- function gm(e, t, a, l, o, i) {
11886
- const d = Ze, u = ge, m = ze, h = oe, c = ia, _ = sa, C = lt, b = $e, M = na, f = St, y = Et, k = qe, A = rm, q = Lt, F = Aa, I = Zp, V = ua;
12237
+ }, ym = { class: "card-footer" };
12238
+ function vm(e, t, a, l, o, i) {
12239
+ const d = Ze, u = ge, m = ze, h = oe, c = ia, _ = sa, C = lt, b = $e, M = na, f = St, y = Et, k = qe, A = um, q = Lt, F = Aa, I = tm, V = ua;
11887
12240
  return n(), w(E, null, [
11888
12241
  r(F, {
11889
12242
  class: "box-card",
11890
12243
  shadow: "never"
11891
12244
  }, {
11892
12245
  header: s(() => [
11893
- P("div", um, [
11894
- (e.iconName != "" || e.iconForm != "" || e.titleNameForm != "") && e.titleEnable ? (n(), w("div", pm, [
12246
+ P("div", mm, [
12247
+ (e.iconName != "" || e.iconForm != "" || e.titleNameForm != "") && e.titleEnable ? (n(), w("div", fm, [
11895
12248
  r(m, { truncated: "" }, {
11896
12249
  default: s(() => [
11897
- P("span", mm, [
12250
+ P("span", hm, [
11898
12251
  e.iconForm != "" ? (n(), p(d, {
11899
12252
  key: 0,
11900
12253
  "svg-data": e.iconForm
@@ -11910,7 +12263,7 @@ function gm(e, t, a, l, o, i) {
11910
12263
  ]),
11911
12264
  _: 1
11912
12265
  }),
11913
- P("span", fm, [
12266
+ P("span", cm, [
11914
12267
  fe(e.$slots, "actionsBar", {}, void 0, !0)
11915
12268
  ])
11916
12269
  ])) : g("", !0),
@@ -11969,7 +12322,7 @@ function gm(e, t, a, l, o, i) {
11969
12322
  icon: "Refresh",
11970
12323
  onClick: e.handleRefresh
11971
12324
  }, null, 8, ["onClick"]),
11972
- P("span", hm, [
12325
+ P("span", bm, [
11973
12326
  r(m, { "line-clamp": "2" }, {
11974
12327
  default: s(() => [
11975
12328
  S(" Showing " + O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items. ", 1)
@@ -12042,7 +12395,7 @@ function gm(e, t, a, l, o, i) {
12042
12395
  style: { "text-align": "right" }
12043
12396
  }, {
12044
12397
  default: s(() => [
12045
- P("span", cm, [
12398
+ P("span", gm, [
12046
12399
  r(m, { "line-clamp": "2" }, {
12047
12400
  default: s(() => [
12048
12401
  S(" Showing " + O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items. ", 1)
@@ -12192,7 +12545,7 @@ function gm(e, t, a, l, o, i) {
12192
12545
  }, 8, ["data", "border", "show-summary", "summary-method", "onSortChange", "height", "max-height", "row-key", "lazy", "load", "expand-row-keys", "tree-props", "onExpandChange", "onFilterChange"])), [
12193
12546
  [V, e.preLoading]
12194
12547
  ]),
12195
- P("div", bm, [
12548
+ P("div", ym, [
12196
12549
  e.total > e.limit ? (n(), p(M, {
12197
12550
  key: 0,
12198
12551
  "current-page": e.optionProvider.page,
@@ -12227,7 +12580,7 @@ function gm(e, t, a, l, o, i) {
12227
12580
  }, null, 8, ["modelValue", "dynamic-name", "data-provider", "user-state", "cancel-callback"])
12228
12581
  ], 64);
12229
12582
  }
12230
- const ym = /* @__PURE__ */ B(dm, [["render", gm], ["__scopeId", "data-v-2d047125"]]), vm = L({
12583
+ const wm = /* @__PURE__ */ B(pm, [["render", vm], ["__scopeId", "data-v-2d047125"]]), Fm = L({
12231
12584
  name: "SdCrudPopupForm",
12232
12585
  components: {},
12233
12586
  emits: ["update:modelValue", "change"],
@@ -12356,11 +12709,11 @@ const ym = /* @__PURE__ */ B(dm, [["render", gm], ["__scopeId", "data-v-2d047125
12356
12709
  this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user), this.allowUpdate = Re(this.sdformModel, this.initData, this.userState.user)), this.titleNameForm = this.sdformModel.form_name ? this.sdformModel.form_name : "", this.popupName = `${this.titleNameForm}`, this.sdformModel.form_options && this.sdformModel.form_options.popup_size && (this.popupWidth = `${this.sdformModel.form_options.popup_size}%`, this.popupWidthdefault = this.popupWidth), this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = "", this.loading?.close(), this.showContent = !0, this.popupWidth = ee(this.popupWidthdefault);
12357
12710
  }
12358
12711
  }
12359
- }), wm = {
12712
+ }), _m = {
12360
12713
  role: "heading",
12361
12714
  class: "el-dialog__title"
12362
12715
  };
12363
- function Fm(e, t, a, l, o, i) {
12716
+ function Sm(e, t, a, l, o, i) {
12364
12717
  const d = Ze, u = ge, m = Et, h = oe, c = bo, _ = Fe;
12365
12718
  return n(), p(_, {
12366
12719
  title: e.popupName,
@@ -12376,7 +12729,7 @@ function Fm(e, t, a, l, o, i) {
12376
12729
  "destroy-on-close": !0
12377
12730
  }, {
12378
12731
  header: s(({ close: C, titleId: b, titleClass: M }) => [
12379
- P("span", wm, [
12732
+ P("span", _m, [
12380
12733
  e.iconForm != "" ? (n(), p(d, {
12381
12734
  key: 0,
12382
12735
  "svg-data": e.iconForm
@@ -12431,7 +12784,7 @@ function Fm(e, t, a, l, o, i) {
12431
12784
  _: 1
12432
12785
  }, 8, ["title", "modelValue", "width", "before-close", "close-on-click-modal"]);
12433
12786
  }
12434
- const _m = /* @__PURE__ */ B(vm, [["render", Fm]]), Sm = L({
12787
+ const km = /* @__PURE__ */ B(Fm, [["render", Sm]]), Cm = L({
12435
12788
  name: "SdCrudPopupGrid",
12436
12789
  components: {
12437
12790
  // SdCrudGrid,
@@ -12681,12 +13034,12 @@ const _m = /* @__PURE__ */ B(vm, [["render", Fm]]), Sm = L({
12681
13034
  this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.showContent = !0, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user), this.allowUpdate = Re(this.sdformModel, this.initData, this.userState.user)), this.titleNameForm = this.sdformModel.form_name ? this.sdformModel.form_name : "", this.popupName = `${this.titleNameForm}`, this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = "", this.popupWidth = ee(this.popupWidthdefault);
12682
13035
  }
12683
13036
  }
12684
- }), km = {
13037
+ }), Dm = {
12685
13038
  role: "heading",
12686
13039
  class: "el-dialog__title"
12687
13040
  };
12688
- function Cm(e, t, a, l, o, i) {
12689
- const d = Ze, u = ge, m = ym, h = Fe;
13041
+ function Im(e, t, a, l, o, i) {
13042
+ const d = Ze, u = ge, m = wm, h = Fe;
12690
13043
  return n(), p(h, {
12691
13044
  title: e.popupName,
12692
13045
  modelValue: e.showPopupFlag,
@@ -12701,7 +13054,7 @@ function Cm(e, t, a, l, o, i) {
12701
13054
  "destroy-on-close": !0
12702
13055
  }, {
12703
13056
  header: s(({ close: c, titleId: _, titleClass: C }) => [
12704
- P("span", km, [
13057
+ P("span", Dm, [
12705
13058
  e.iconForm != "" ? (n(), p(d, {
12706
13059
  key: 0,
12707
13060
  "svg-data": e.iconForm
@@ -12763,7 +13116,7 @@ function Cm(e, t, a, l, o, i) {
12763
13116
  _: 1
12764
13117
  }, 8, ["title", "modelValue", "width", "before-close", "close-on-click-modal"]);
12765
13118
  }
12766
- const Dm = /* @__PURE__ */ B(Sm, [["render", Cm]]), Im = L({
13119
+ const $m = /* @__PURE__ */ B(Cm, [["render", Im]]), Tm = L({
12767
13120
  name: "SdSelectRemoteList",
12768
13121
  emits: ["update:modelValue", "change", "visibleChange", "remoteMethod"],
12769
13122
  props: {
@@ -13108,8 +13461,8 @@ const Dm = /* @__PURE__ */ B(Sm, [["render", Cm]]), Im = L({
13108
13461
  }
13109
13462
  }
13110
13463
  }
13111
- }), $m = ["innerHTML"], Tm = ["innerHTML"], Mm = ["innerHTML"], Pm = ["innerHTML"];
13112
- function Vm(e, t, a, l, o, i) {
13464
+ }), Mm = ["innerHTML"], Pm = ["innerHTML"], Vm = ["innerHTML"], Am = ["innerHTML"];
13465
+ function Om(e, t, a, l, o, i) {
13113
13466
  const d = sa, u = Dt, m = Ct;
13114
13467
  return n(), p(m, {
13115
13468
  ref: "refSelect",
@@ -13133,7 +13486,7 @@ function Vm(e, t, a, l, o, i) {
13133
13486
  label: s(({ label: h, value: c }) => [
13134
13487
  P("div", {
13135
13488
  innerHTML: e.htmlRender(h)
13136
- }, null, 8, Pm)
13489
+ }, null, 8, Am)
13137
13490
  ]),
13138
13491
  default: s(() => [
13139
13492
  e.optionsTemplate ? (n(!0), w(E, { key: 0 }, G(e.itemsList, (h) => (n(), p(u, {
@@ -13146,10 +13499,10 @@ function Vm(e, t, a, l, o, i) {
13146
13499
  e.optionsUi[h.value] ? (n(), w("div", {
13147
13500
  key: 0,
13148
13501
  innerHTML: e.htmlRender(e.optionsUi[h.value])
13149
- }, null, 8, $m)) : (n(), w("div", {
13502
+ }, null, 8, Mm)) : (n(), w("div", {
13150
13503
  key: 1,
13151
13504
  innerHTML: e.htmlRender(h.label)
13152
- }, null, 8, Tm))
13505
+ }, null, 8, Pm))
13153
13506
  ]),
13154
13507
  _: 2
13155
13508
  }, 1032, ["label", "value"]))), 128)) : g("", !0),
@@ -13161,7 +13514,7 @@ function Vm(e, t, a, l, o, i) {
13161
13514
  default: s(() => [
13162
13515
  P("div", {
13163
13516
  innerHTML: e.htmlRender(h.label)
13164
- }, null, 8, Mm)
13517
+ }, null, 8, Vm)
13165
13518
  ]),
13166
13519
  _: 2
13167
13520
  }, 1032, ["label", "value"]))), 128))
@@ -13187,7 +13540,7 @@ function Vm(e, t, a, l, o, i) {
13187
13540
  } : void 0
13188
13541
  ]), 1032, ["modelValue", "multiple", "multiple-limit", "placeholder", "remote-method", "loading", "suffix-icon", "onRemoveTag", "onClear", "onVisibleChange"]);
13189
13542
  }
13190
- const Ra = /* @__PURE__ */ B(Im, [["render", Vm]]), Am = L({
13543
+ const Ra = /* @__PURE__ */ B(Tm, [["render", Om]]), Nm = L({
13191
13544
  name: "SdCrudSelect",
13192
13545
  components: {
13193
13546
  // SdSelectRemoteList,
@@ -13411,9 +13764,9 @@ const Ra = /* @__PURE__ */ B(Im, [["render", Vm]]), Am = L({
13411
13764
  return this.enableObjectType ? e.value ? e.value : null : e;
13412
13765
  }
13413
13766
  }
13414
- }), Om = { key: 2 };
13415
- function Nm(e, t, a, l, o, i) {
13416
- const d = oe, u = _m, m = Ra;
13767
+ }), Em = { key: 2 };
13768
+ function Lm(e, t, a, l, o, i) {
13769
+ const d = oe, u = km, m = Ra;
13417
13770
  return n(), p(m, {
13418
13771
  ref: "selectInput",
13419
13772
  filterable: "",
@@ -13484,7 +13837,7 @@ function Nm(e, t, a, l, o, i) {
13484
13837
  style: { margin: "0px" }
13485
13838
  }, null, 8, ["onClick"])) : g("", !0)
13486
13839
  ], 64)),
13487
- e.showPopupFlag ? (n(), w("div", Om, [
13840
+ e.showPopupFlag ? (n(), w("div", Em, [
13488
13841
  r(u, {
13489
13842
  ref: "refSdForm",
13490
13843
  modelValue: e.showPopupFlag,
@@ -13506,7 +13859,7 @@ function Nm(e, t, a, l, o, i) {
13506
13859
  } : void 0
13507
13860
  ]), 1032, ["modelValue", "multiple", "allow-create", "placeholder", "enable-object-type", "disabled", "data-provider", "value-field", "search-field", "label-field", "ref-field", "limit", "label-template", "options-template", "user-state", "onRemoteMethod", "onVisibleChange", "onChange"]);
13508
13861
  }
13509
- const hg = /* @__PURE__ */ B(Am, [["render", Nm]]), Em = L({
13862
+ const cg = /* @__PURE__ */ B(Nm, [["render", Lm]]), Bm = L({
13510
13863
  name: "SdCrudSelectSubForm",
13511
13864
  components: {
13512
13865
  // SdSelectRemoteList,
@@ -13829,7 +14182,7 @@ const hg = /* @__PURE__ */ B(Am, [["render", Nm]]), Em = L({
13829
14182
  }
13830
14183
  }
13831
14184
  });
13832
- function Lm(e, t, a, l, o, i) {
14185
+ function jm(e, t, a, l, o, i) {
13833
14186
  const d = oe, u = Ra;
13834
14187
  return n(), p(u, {
13835
14188
  ref: "selectInput",
@@ -13913,7 +14266,7 @@ function Lm(e, t, a, l, o, i) {
13913
14266
  } : void 0
13914
14267
  ]), 1032, ["modelValue", "multiple", "allow-create", "placeholder", "enable-object-type", "disabled", "data-provider", "value-field", "search-field", "label-field", "ref-field", "limit", "value-object-id", "label-template", "options-template", "user-state", "build-state", "onRemoteMethod", "onVisibleChange", "onChange"]);
13915
14268
  }
13916
- const Bm = /* @__PURE__ */ B(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
14269
+ const Um = /* @__PURE__ */ B(Bm, [["render", jm]]), vo = /* @__PURE__ */ L({
13917
14270
  __name: "SdSelectPathData",
13918
14271
  props: {
13919
14272
  modelValue: null,
@@ -14147,7 +14500,7 @@ const Bm = /* @__PURE__ */ B(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
14147
14500
  ]), 1032, ["modelValue", "disabled", "allow-create", "multiple"]);
14148
14501
  };
14149
14502
  }
14150
- }), jm = /* @__PURE__ */ L({
14503
+ }), Rm = /* @__PURE__ */ L({
14151
14504
  __name: "SdFormSchemaForm",
14152
14505
  props: {
14153
14506
  joinerField: {},
@@ -14418,7 +14771,7 @@ const Bm = /* @__PURE__ */ B(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
14418
14771
  }, 8, ["model"]);
14419
14772
  };
14420
14773
  }
14421
- }), Um = /* @__PURE__ */ L({
14774
+ }), zm = /* @__PURE__ */ L({
14422
14775
  __name: "SdSubSchema",
14423
14776
  props: {
14424
14777
  formDb: {},
@@ -14875,10 +15228,10 @@ const Bm = /* @__PURE__ */ B(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
14875
15228
  ]);
14876
15229
  };
14877
15230
  }
14878
- }), Rm = yn();
14879
- async function zm(e) {
15231
+ }), qm = yn();
15232
+ async function Hm(e) {
14880
15233
  try {
14881
- await Rm.toClipboard(e), N({
15234
+ await qm.toClipboard(e), N({
14882
15235
  message: "Copied to clipboard",
14883
15236
  type: "success"
14884
15237
  });
@@ -14886,7 +15239,7 @@ async function zm(e) {
14886
15239
  console.error(t);
14887
15240
  }
14888
15241
  }
14889
- const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" }, Wm = { class: "dialog-footer" }, Km = { key: 4 }, Gm = { class: "dialog-footer" }, Ym = { key: 5 }, Jm = { class: "dialog-footer" }, Xm = { key: 6 }, Qm = /* @__PURE__ */ L({
15242
+ const xm = { key: 3 }, Wm = { class: "items-box" }, Km = { class: "opt-item" }, Gm = { class: "dialog-footer" }, Ym = { key: 4 }, Jm = { class: "dialog-footer" }, Xm = { key: 5 }, Qm = { class: "dialog-footer" }, Zm = { key: 6 }, ef = /* @__PURE__ */ L({
14890
15243
  __name: "SdFormSchema",
14891
15244
  props: {
14892
15245
  joinerField: {},
@@ -15329,7 +15682,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
15329
15682
  });
15330
15683
  }
15331
15684
  return (U, v) => {
15332
- const W = oe, J = Ll, ue = El, je = da, nt = ge, _e = ze, ie = lt, st = St, rt = Et, Ee = $e, _a = Nt, za = Ye, qa = jo, Ha = Bo, ne = qe, wo = Y("Link"), Wt = Ge, Fo = Y("Aim"), xa = Lt, Se = Dt, Mt = Ct, ct = kt, _o = va, So = Ra, ye = pt, Sa = vo, Wa = Y("InfoFilled"), ko = ra, Co = Nl, Do = Y("draggable"), Io = ut, Kt = Fe, $o = Y("sd-form-schema", !0), To = Um, Mo = jm, Po = ua;
15685
+ const W = oe, J = Ll, ue = El, je = da, nt = ge, _e = ze, ie = lt, st = St, rt = Et, Ee = $e, _a = Nt, za = Ye, qa = jo, Ha = Bo, ne = qe, wo = Y("Link"), Wt = Ge, Fo = Y("Aim"), xa = Lt, Se = Dt, Mt = Ct, ct = kt, _o = va, So = Ra, ye = pt, Sa = vo, Wa = Y("InfoFilled"), ko = ra, Co = Nl, Do = Y("draggable"), Io = ut, Kt = Fe, $o = Y("sd-form-schema", !0), To = zm, Mo = Rm, Po = ua;
15333
15686
  return n(), w(E, null, [
15334
15687
  r(ue, {
15335
15688
  title: "Parent Form",
@@ -16300,7 +16653,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16300
16653
  ]),
16301
16654
  _: 1
16302
16655
  }, 8, ["modelValue"])) : g("", !0),
16303
- a.showPopupJoiner ? (n(), w("div", qm, [
16656
+ a.showPopupJoiner ? (n(), w("div", xm, [
16304
16657
  r(Kt, {
16305
16658
  title: "Join Parent Form",
16306
16659
  modelValue: a.showPopupJoiner,
@@ -16314,7 +16667,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16314
16667
  "destroy-on-close": !0
16315
16668
  }, {
16316
16669
  footer: s(() => [
16317
- P("div", Wm, [
16670
+ P("div", Gm, [
16318
16671
  r(W, {
16319
16672
  onClick: v[20] || (v[20] = R(($) => H(l.value), ["prevent"])),
16320
16673
  type: "success",
@@ -16671,7 +17024,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16671
17024
  dark: a.isDark,
16672
17025
  class: "mb-1",
16673
17026
  plain: "",
16674
- onClick: (Q) => pe(zm)("{{" + $.value + "}}")
17027
+ onClick: (Q) => pe(Hm)("{{" + $.value + "}}")
16675
17028
  }, {
16676
17029
  default: s(() => [
16677
17030
  S(O($.value), 1)
@@ -16779,7 +17132,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16779
17132
  class: "option-items-pane"
16780
17133
  }, {
16781
17134
  default: s(() => [
16782
- P("div", Hm, [
17135
+ P("div", Wm, [
16783
17136
  r(Do, ae({
16784
17137
  tag: "ul",
16785
17138
  list: e.joinerField.order_by,
@@ -16790,7 +17143,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16790
17143
  handle: ".drag-option"
16791
17144
  }), {
16792
17145
  item: s(({ element: $, index: Q }) => [
16793
- P("li", xm, [
17146
+ P("li", Km, [
16794
17147
  r(Co, {
16795
17148
  modelValue: $.column,
16796
17149
  "onUpdate:modelValue": (Gt) => $.column = Gt,
@@ -16874,7 +17227,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16874
17227
  _: 1
16875
17228
  }, 8, ["modelValue", "width"])
16876
17229
  ])) : g("", !0),
16877
- a.showDataDicDialogFlag ? (n(), w("div", Km, [
17230
+ a.showDataDicDialogFlag ? (n(), w("div", Ym, [
16878
17231
  r(Kt, {
16879
17232
  title: `Data Dic - ${a.formDataDic && a.formDataDic._id ? a.formDataDic.form_name : ""}`,
16880
17233
  class: "dialog-grid dialog-form",
@@ -16889,7 +17242,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16889
17242
  "destroy-on-close": !1
16890
17243
  }, {
16891
17244
  footer: s(() => [
16892
- P("div", Gm, [
17245
+ P("div", Jm, [
16893
17246
  r(W, {
16894
17247
  onClick: v[23] || (v[23] = ($) => a.showDataDicDialogFlag = !1)
16895
17248
  }, {
@@ -16915,7 +17268,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16915
17268
  _: 1
16916
17269
  }, 8, ["title", "modelValue", "width"])
16917
17270
  ])) : g("", !0),
16918
- a.showSchemaFlag ? (n(), w("div", Ym, [
17271
+ a.showSchemaFlag ? (n(), w("div", Xm, [
16919
17272
  r(Kt, {
16920
17273
  title: "Sub Schema",
16921
17274
  class: "dialog-grid dialog-form",
@@ -16929,7 +17282,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16929
17282
  "destroy-on-close": !1
16930
17283
  }, {
16931
17284
  footer: s(() => [
16932
- P("div", Jm, [
17285
+ P("div", Qm, [
16933
17286
  r(W, {
16934
17287
  onClick: v[25] || (v[25] = ($) => a.showSchemaFlag = !1)
16935
17288
  }, {
@@ -16951,7 +17304,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16951
17304
  _: 1
16952
17305
  }, 8, ["modelValue", "width"])
16953
17306
  ])) : g("", !0),
16954
- a.showSchemaAddFlag ? (n(), w("div", Xm, [
17307
+ a.showSchemaAddFlag ? (n(), w("div", Zm, [
16955
17308
  r(Kt, {
16956
17309
  title: "Custom Schema",
16957
17310
  class: "dialog-grid dialog-form",
@@ -16982,7 +17335,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
16982
17335
  ], 64);
16983
17336
  };
16984
17337
  }
16985
- }), Zm = /* @__PURE__ */ B(Qm, [["__scopeId", "data-v-6afd5dfa"]]), ef = L({
17338
+ }), tf = /* @__PURE__ */ B(ef, [["__scopeId", "data-v-6afd5dfa"]]), af = L({
16986
17339
  name: "SdDataDicPopup",
16987
17340
  components: {},
16988
17341
  emits: ["update:modelValue", "change"],
@@ -17061,12 +17414,12 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, xm = { class: "opt-item" },
17061
17414
  this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.showForm = !0, this.titleNameForm = this.sdformModel.form_name ? this.sdformModel.form_name : "", this.popupName = `${this.titleNameForm}`, this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = "", this.popupWidth = ee(this.popupWidthdefault);
17062
17415
  }
17063
17416
  }
17064
- }), tf = {
17417
+ }), lf = {
17065
17418
  role: "heading",
17066
17419
  class: "el-dialog__title"
17067
- }, af = { class: "dialog-footer" };
17068
- function lf(e, t, a, l, o, i) {
17069
- const d = Ze, u = ge, m = Zm, h = oe, c = Fe;
17420
+ }, of = { class: "dialog-footer" };
17421
+ function nf(e, t, a, l, o, i) {
17422
+ const d = Ze, u = ge, m = tf, h = oe, c = Fe;
17070
17423
  return n(), p(c, {
17071
17424
  title: `Data Dic - ${e.popupName}`,
17072
17425
  modelValue: e.showPopupFlag,
@@ -17081,7 +17434,7 @@ function lf(e, t, a, l, o, i) {
17081
17434
  "destroy-on-close": !0
17082
17435
  }, {
17083
17436
  header: s(({ close: _, titleId: C, titleClass: b }) => [
17084
- P("span", tf, [
17437
+ P("span", lf, [
17085
17438
  e.iconForm != "" ? (n(), p(d, {
17086
17439
  key: 0,
17087
17440
  "svg-data": e.iconForm
@@ -17093,7 +17446,7 @@ function lf(e, t, a, l, o, i) {
17093
17446
  ])
17094
17447
  ]),
17095
17448
  footer: s(() => [
17096
- P("div", af, [
17449
+ P("div", of, [
17097
17450
  r(h, {
17098
17451
  onClick: R(e.handleCancel, ["prevent"])
17099
17452
  }, {
@@ -17119,7 +17472,7 @@ function lf(e, t, a, l, o, i) {
17119
17472
  _: 1
17120
17473
  }, 8, ["title", "modelValue", "width", "before-close", "close-on-click-modal"]);
17121
17474
  }
17122
- const cg = /* @__PURE__ */ B(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17475
+ const bg = /* @__PURE__ */ B(af, [["render", nf]]), sf = /* @__PURE__ */ L({
17123
17476
  __name: "SdDynamicInput",
17124
17477
  props: {
17125
17478
  modelValue: {},
@@ -17441,13 +17794,13 @@ const cg = /* @__PURE__ */ B(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17441
17794
  ], 64);
17442
17795
  };
17443
17796
  }
17444
- }), bg = /* @__PURE__ */ B(of, [["__scopeId", "data-v-3bca21e7"]]), nf = {
17797
+ }), gg = /* @__PURE__ */ B(sf, [["__scopeId", "data-v-3bca21e7"]]), rf = {
17445
17798
  role: "heading",
17446
17799
  class: "el-dialog__title"
17447
- }, sf = { style: { width: "100%", "min-height": "500px", height: "500px" } }, rf = {
17800
+ }, df = { style: { width: "100%", "min-height": "500px", height: "500px" } }, uf = {
17448
17801
  key: 0,
17449
17802
  style: { color: "var(--el-color-warning)", "font-size": "9px" }
17450
- }, gg = /* @__PURE__ */ L({
17803
+ }, yg = /* @__PURE__ */ L({
17451
17804
  __name: "SdFormErd",
17452
17805
  props: {
17453
17806
  modelValue: null,
@@ -17602,7 +17955,7 @@ const cg = /* @__PURE__ */ B(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17602
17955
  "destroy-on-close": !0
17603
17956
  }, {
17604
17957
  header: s(({ close: k, titleId: A, titleClass: q }) => [
17605
- P("span", nf, [
17958
+ P("span", rf, [
17606
17959
  o.iconForm != "" ? (n(), p(M, {
17607
17960
  key: 0,
17608
17961
  "svg-data": o.iconForm
@@ -17614,7 +17967,7 @@ const cg = /* @__PURE__ */ B(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17614
17967
  ])
17615
17968
  ]),
17616
17969
  default: s(() => [
17617
- P("div", sf, [
17970
+ P("div", df, [
17618
17971
  o.showContent ? (n(), p(pe(ni), {
17619
17972
  key: 0,
17620
17973
  nodes: o.nodes,
@@ -17646,7 +17999,7 @@ const cg = /* @__PURE__ */ B(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17646
17999
  })),
17647
18000
  S(" " + O(k.data.label), 1)
17648
18001
  ]),
17649
- k.data.isParent ? g("", !0) : (n(), w("div", rf, O(k.data.ref_fields && Object.keys(k.data.ref_fields).length > 0 ? `REF: ${k.data.ref_fields.join(", ")}` : ""), 1))
18002
+ k.data.isParent ? g("", !0) : (n(), w("div", uf, O(k.data.ref_fields && Object.keys(k.data.ref_fields).length > 0 ? `REF: ${k.data.ref_fields.join(", ")}` : ""), 1))
17650
18003
  ], 4)
17651
18004
  ]),
17652
18005
  _: 1
@@ -17657,7 +18010,7 @@ const cg = /* @__PURE__ */ B(ef, [["render", lf]]), of = /* @__PURE__ */ L({
17657
18010
  }, 8, ["title", "modelValue", "close-on-click-modal"]);
17658
18011
  };
17659
18012
  }
17660
- }), df = L({
18013
+ }), pf = L({
17661
18014
  name: "SdGrid",
17662
18015
  props: {
17663
18016
  dataProvider: {
@@ -18019,18 +18372,18 @@ const cg = /* @__PURE__ */ B(ef, [["render", lf]]), of = /* @__PURE__ */ L({
18019
18372
  }), l;
18020
18373
  }
18021
18374
  }
18022
- }), uf = { class: "card-header" }, pf = {
18375
+ }), mf = { class: "card-header" }, ff = {
18023
18376
  key: 0,
18024
18377
  class: "mb-2",
18025
18378
  style: { position: "relative" }
18026
- }, mf = { class: "text-6" }, ff = { style: { position: "absolute", top: "0px", right: "0px" } }, hf = {
18379
+ }, hf = { class: "text-6" }, cf = { style: { position: "absolute", top: "0px", right: "0px" } }, bf = {
18027
18380
  class: "text-3",
18028
18381
  style: { height: "32px", display: "inline-grid", "align-content": "center" }
18029
- }, cf = {
18382
+ }, gf = {
18030
18383
  class: "text-3",
18031
18384
  style: { height: "32px", display: "inline-grid", "align-content": "center" }
18032
- }, bf = { class: "card-footer" }, gf = { key: 0 };
18033
- function yf(e, t, a, l, o, i) {
18385
+ }, yf = { class: "card-footer" }, vf = { key: 0 };
18386
+ function wf(e, t, a, l, o, i) {
18034
18387
  const d = ge, u = ze, m = oe, h = lt, c = $e, _ = na, C = St, b = qe, M = Lt, f = Aa, y = Fe, k = ua;
18035
18388
  return n(), w(E, null, [
18036
18389
  r(f, {
@@ -18038,11 +18391,11 @@ function yf(e, t, a, l, o, i) {
18038
18391
  shadow: "never"
18039
18392
  }, {
18040
18393
  header: s(() => [
18041
- P("div", uf, [
18042
- e.iconName != "" || e.titleName != "" ? (n(), w("div", pf, [
18394
+ P("div", mf, [
18395
+ e.iconName != "" || e.titleName != "" ? (n(), w("div", ff, [
18043
18396
  r(u, { truncated: "" }, {
18044
18397
  default: s(() => [
18045
- P("span", mf, [
18398
+ P("span", hf, [
18046
18399
  e.iconName != "" ? (n(), p(d, {
18047
18400
  key: 0,
18048
18401
  "icon-name": e.iconName
@@ -18052,7 +18405,7 @@ function yf(e, t, a, l, o, i) {
18052
18405
  ]),
18053
18406
  _: 1
18054
18407
  }),
18055
- P("span", ff, [
18408
+ P("span", cf, [
18056
18409
  fe(e.$slots, "actionsBar", {}, void 0, !0)
18057
18410
  ])
18058
18411
  ])) : g("", !0),
@@ -18088,7 +18441,7 @@ function yf(e, t, a, l, o, i) {
18088
18441
  onClick: e.handleRefresh,
18089
18442
  class: "mr-1"
18090
18443
  }, null, 8, ["onClick"]),
18091
- P("span", hf, [
18444
+ P("span", bf, [
18092
18445
  r(u, { "line-clamp": 2 }, {
18093
18446
  default: s(() => [
18094
18447
  P("span", null, O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items.", 1)
@@ -18160,7 +18513,7 @@ function yf(e, t, a, l, o, i) {
18160
18513
  style: { "text-align": "right" }
18161
18514
  }, {
18162
18515
  default: s(() => [
18163
- P("span", cf, [
18516
+ P("span", gf, [
18164
18517
  r(u, { "line-clamp": "2" }, {
18165
18518
  default: s(() => [
18166
18519
  S(" Showing " + O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items. ", 1)
@@ -18248,7 +18601,7 @@ function yf(e, t, a, l, o, i) {
18248
18601
  }, 8, ["data", "border", "show-summary", "summary-method", "onSortChange", "height", "max-height", "row-key", "onExpandChange", "lazy", "load", "tree-props", "onFilterChange"])), [
18249
18602
  [k, e.preLoading]
18250
18603
  ]),
18251
- P("div", bf, [
18604
+ P("div", yf, [
18252
18605
  e.total > e.limit ? (n(), p(_, {
18253
18606
  key: 0,
18254
18607
  "current-page": e.optionProvider.page,
@@ -18264,7 +18617,7 @@ function yf(e, t, a, l, o, i) {
18264
18617
  ]),
18265
18618
  _: 3
18266
18619
  }),
18267
- e.showPopupFlag ? (n(), w("div", gf, [
18620
+ e.showPopupFlag ? (n(), w("div", vf, [
18268
18621
  r(y, {
18269
18622
  title: e.popupName,
18270
18623
  modelValue: e.showPopupFlag,
@@ -18285,7 +18638,7 @@ function yf(e, t, a, l, o, i) {
18285
18638
  ])) : g("", !0)
18286
18639
  ], 64);
18287
18640
  }
18288
- const yg = /* @__PURE__ */ B(df, [["render", yf], ["__scopeId", "data-v-a6ab139e"]]), vf = L({
18641
+ const vg = /* @__PURE__ */ B(pf, [["render", wf], ["__scopeId", "data-v-a6ab139e"]]), Ff = L({
18289
18642
  name: "SdGridColumnIndex",
18290
18643
  props: {
18291
18644
  columnLabel: {
@@ -18306,7 +18659,7 @@ const yg = /* @__PURE__ */ B(df, [["render", yf], ["__scopeId", "data-v-a6ab139e
18306
18659
  computed: {},
18307
18660
  methods: {}
18308
18661
  });
18309
- function wf(e, t, a, l, o, i) {
18662
+ function _f(e, t, a, l, o, i) {
18310
18663
  const d = qe;
18311
18664
  return n(), p(d, {
18312
18665
  type: "index",
@@ -18321,7 +18674,7 @@ function wf(e, t, a, l, o, i) {
18321
18674
  align: "center"
18322
18675
  }, null, 8, ["index", "label", "width"]);
18323
18676
  }
18324
- const vg = /* @__PURE__ */ B(vf, [["render", wf]]), Ff = L({
18677
+ const wg = /* @__PURE__ */ B(Ff, [["render", _f]]), Sf = L({
18325
18678
  name: "SdGridColumnDate",
18326
18679
  props: {
18327
18680
  columnProp: {
@@ -18360,7 +18713,7 @@ const vg = /* @__PURE__ */ B(vf, [["render", wf]]), Ff = L({
18360
18713
  }
18361
18714
  }
18362
18715
  });
18363
- function _f(e, t, a, l, o, i) {
18716
+ function kf(e, t, a, l, o, i) {
18364
18717
  const d = qe;
18365
18718
  return n(), p(d, {
18366
18719
  prop: e.columnProp,
@@ -18374,7 +18727,7 @@ function _f(e, t, a, l, o, i) {
18374
18727
  _: 1
18375
18728
  }, 8, ["prop", "label", "width", "sortable"]);
18376
18729
  }
18377
- const wg = /* @__PURE__ */ B(Ff, [["render", _f]]), Sf = [
18730
+ const Fg = /* @__PURE__ */ B(Sf, [["render", kf]]), Cf = [
18378
18731
  {
18379
18732
  value: "addon-api",
18380
18733
  label: "Api"
@@ -20571,7 +20924,7 @@ const wg = /* @__PURE__ */ B(Ff, [["render", _f]]), Sf = [
20571
20924
  value: "undo",
20572
20925
  label: "Undo"
20573
20926
  }
20574
- ], kf = [
20927
+ ], Df = [
20575
20928
  {
20576
20929
  value: "add-location",
20577
20930
  label: "Add Location"
@@ -21744,7 +22097,7 @@ const wg = /* @__PURE__ */ B(Ff, [["render", _f]]), Sf = [
21744
22097
  value: "zoom-out",
21745
22098
  label: "Zoom Out"
21746
22099
  }
21747
- ], Cf = L({
22100
+ ], If = L({
21748
22101
  name: "SdIcon",
21749
22102
  // components: { svg-icon },
21750
22103
  emits: ["update:modelValue", "change"],
@@ -21790,7 +22143,7 @@ const wg = /* @__PURE__ */ B(Ff, [["render", _f]]), Sf = [
21790
22143
  };
21791
22144
  },
21792
22145
  created() {
21793
- this.elIcons ? this.restaurants = D(kf) : this.restaurants = D(Sf);
22146
+ this.elIcons ? this.restaurants = D(Df) : this.restaurants = D(Cf);
21794
22147
  },
21795
22148
  setup(e, t) {
21796
22149
  return {
@@ -21843,8 +22196,8 @@ const wg = /* @__PURE__ */ B(Ff, [["render", _f]]), Sf = [
21843
22196
  });
21844
22197
  }
21845
22198
  }
21846
- }), Df = { class: "value" }, If = { class: "value" };
21847
- function $f(e, t, a, l, o, i) {
22199
+ }), $f = { class: "value" }, Tf = { class: "value" };
22200
+ function Mf(e, t, a, l, o, i) {
21848
22201
  const d = ge, u = Dt, m = Ct;
21849
22202
  return n(), p(m, {
21850
22203
  modelValue: e.value,
@@ -21869,7 +22222,7 @@ function $f(e, t, a, l, o, i) {
21869
22222
  class: "mr-1"
21870
22223
  }, null, 8, ["icon-name"]),
21871
22224
  t[1] || (t[1] = S()),
21872
- P("span", Df, O(h), 1)
22225
+ P("span", $f, O(h), 1)
21873
22226
  ]),
21874
22227
  default: s(() => [
21875
22228
  (n(!0), w(E, null, G(e.itemsData, (h) => (n(), p(u, {
@@ -21884,7 +22237,7 @@ function $f(e, t, a, l, o, i) {
21884
22237
  class: "mr-1"
21885
22238
  }, null, 8, ["icon-name"]),
21886
22239
  t[2] || (t[2] = S()),
21887
- P("span", If, O(h.label), 1)
22240
+ P("span", Tf, O(h.label), 1)
21888
22241
  ]),
21889
22242
  _: 2
21890
22243
  }, 1032, ["label", "value"]))), 128))
@@ -21892,7 +22245,7 @@ function $f(e, t, a, l, o, i) {
21892
22245
  _: 1
21893
22246
  }, 8, ["modelValue", "multiple", "allow-create", "disabled", "remote-method", "placeholder", "loading", "onChange"]);
21894
22247
  }
21895
- const Fg = /* @__PURE__ */ B(Cf, [["render", $f]]), Tf = L({
22248
+ const _g = /* @__PURE__ */ B(If, [["render", Mf]]), Pf = L({
21896
22249
  name: "OptionsItemSetting",
21897
22250
  props: {
21898
22251
  typeSelect: String,
@@ -21959,13 +22312,13 @@ const Fg = /* @__PURE__ */ B(Cf, [["render", $f]]), Tf = L({
21959
22312
  })) : this.optionItems = [], this.showImportDialogFlag = !1;
21960
22313
  }
21961
22314
  }
21962
- }), Mf = { class: "option-items-pane" }, Pf = { class: "opt-item" }, Vf = { key: 1 }, Af = {
22315
+ }), Vf = { class: "option-items-pane" }, Af = { class: "opt-item" }, Of = { key: 1 }, Nf = {
21963
22316
  key: 3,
21964
22317
  class: ""
21965
- }, Of = { class: "dialog-footer" };
21966
- function Nf(e, t, a, l, o, i) {
22318
+ }, Ef = { class: "dialog-footer" };
22319
+ function Lf(e, t, a, l, o, i) {
21967
22320
  const d = $e, u = ge, m = oe, h = Y("draggable"), c = ze, _ = Al, C = Fe;
21968
- return n(), w("div", Mf, [
22321
+ return n(), w("div", Vf, [
21969
22322
  e.optionItems && e.optionItems.length > 0 ? (n(), p(h, ae({
21970
22323
  key: 0,
21971
22324
  tag: "ul",
@@ -21977,7 +22330,7 @@ function Nf(e, t, a, l, o, i) {
21977
22330
  handle: ".drag-option"
21978
22331
  }), {
21979
22332
  item: s(({ element: b, index: M }) => [
21980
- P("li", Pf, [
22333
+ P("li", Af, [
21981
22334
  r(d, {
21982
22335
  modelValue: b.value,
21983
22336
  "onUpdate:modelValue": (f) => b.value = f,
@@ -22019,7 +22372,7 @@ function Nf(e, t, a, l, o, i) {
22019
22372
  ])
22020
22373
  ]),
22021
22374
  _: 1
22022
- }, 16, ["list"])) : (n(), w("div", Vf, [
22375
+ }, 16, ["list"])) : (n(), w("div", Of, [
22023
22376
  r(c, { type: "info" }, {
22024
22377
  default: s(() => [...t[3] || (t[3] = [
22025
22378
  S("No Data", -1)
@@ -22058,7 +22411,7 @@ function Nf(e, t, a, l, o, i) {
22058
22411
  ]),
22059
22412
  _: 1
22060
22413
  })),
22061
- e.showImportDialogFlag ? (n(), w("div", Af, [
22414
+ e.showImportDialogFlag ? (n(), w("div", Nf, [
22062
22415
  r(C, {
22063
22416
  title: "Import Options",
22064
22417
  modelValue: e.showImportDialogFlag,
@@ -22073,7 +22426,7 @@ function Nf(e, t, a, l, o, i) {
22073
22426
  "destroy-on-close": !0
22074
22427
  }, {
22075
22428
  footer: s(() => [
22076
- P("div", Of, [
22429
+ P("div", Ef, [
22077
22430
  r(m, {
22078
22431
  type: "primary",
22079
22432
  onClick: e.saveOptions
@@ -22106,7 +22459,7 @@ function Nf(e, t, a, l, o, i) {
22106
22459
  ])) : g("", !0)
22107
22460
  ]);
22108
22461
  }
22109
- const _g = /* @__PURE__ */ B(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad"]]), Ef = L({
22462
+ const Sg = /* @__PURE__ */ B(Pf, [["render", Lf], ["__scopeId", "data-v-cc3dcbad"]]), Bf = L({
22110
22463
  name: "SdReport",
22111
22464
  components: {},
22112
22465
  props: {
@@ -22952,12 +23305,12 @@ const _g = /* @__PURE__ */ B(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
22952
23305
  }
22953
23306
  }
22954
23307
  }
22955
- }), Lf = { key: 2 }, Bf = { class: "dialog-footer" }, jf = { key: 3 }, Uf = {
23308
+ }), jf = { key: 2 }, Uf = { class: "dialog-footer" }, Rf = { key: 3 }, zf = {
22956
23309
  role: "heading",
22957
23310
  class: "el-dialog__title"
22958
- }, Rf = ["src"], zf = { key: 4 };
22959
- function qf(e, t, a, l, o, i) {
22960
- const d = ge, u = Y("arrow-down"), m = Ge, h = oe, c = _t, _ = Ft, C = wt, b = $e, M = Nt, f = kt, y = Bl, k = Bm, A = pt, q = ut, F = Fe, I = Y("Document"), V = ra;
23311
+ }, qf = ["src"], Hf = { key: 4 };
23312
+ function xf(e, t, a, l, o, i) {
23313
+ const d = ge, u = Y("arrow-down"), m = Ge, h = oe, c = _t, _ = Ft, C = wt, b = $e, M = Nt, f = kt, y = Bl, k = Um, A = pt, q = ut, F = Fe, I = Y("Document"), V = ra;
22961
23314
  return n(), w(E, null, [
22962
23315
  Object.keys(e.reportList).length > 1 ? (n(), p(C, {
22963
23316
  key: 0,
@@ -23031,7 +23384,7 @@ function qf(e, t, a, l, o, i) {
23031
23384
  ]),
23032
23385
  _: 2
23033
23386
  }, 1032, ["size", "onClick"]))), 128)),
23034
- e.showPopupFlag ? (n(), w("div", Lf, [
23387
+ e.showPopupFlag ? (n(), w("div", jf, [
23035
23388
  r(F, {
23036
23389
  title: "Report Parameters",
23037
23390
  modelValue: e.showPopupFlag,
@@ -23045,7 +23398,7 @@ function qf(e, t, a, l, o, i) {
23045
23398
  "destroy-on-close": !0
23046
23399
  }, {
23047
23400
  footer: s(() => [
23048
- P("div", Bf, [
23401
+ P("div", Uf, [
23049
23402
  r(h, {
23050
23403
  type: "primary",
23051
23404
  icon: "Edit",
@@ -23143,7 +23496,7 @@ function qf(e, t, a, l, o, i) {
23143
23496
  _: 1
23144
23497
  }, 8, ["modelValue", "width"])
23145
23498
  ])) : g("", !0),
23146
- e.showReportPopupFlag ? (n(), w("div", jf, [
23499
+ e.showReportPopupFlag ? (n(), w("div", Rf, [
23147
23500
  r(F, {
23148
23501
  title: "Report Preview",
23149
23502
  modelValue: e.showReportPopupFlag,
@@ -23158,7 +23511,7 @@ function qf(e, t, a, l, o, i) {
23158
23511
  "destroy-on-close": !0
23159
23512
  }, {
23160
23513
  header: s(({ close: T, titleId: H, titleClass: Z }) => [
23161
- P("span", Uf, [
23514
+ P("span", zf, [
23162
23515
  r(d, { "icon-name": "icon-pdf" }),
23163
23516
  t[8] || (t[8] = S(" Report Preview ", -1))
23164
23517
  ])
@@ -23171,12 +23524,12 @@ function qf(e, t, a, l, o, i) {
23171
23524
  style: te([{ width: "100%", "min-height": "400px" }, `height: ${e.scrollerHeight}px`]),
23172
23525
  class: "pdf-viewer",
23173
23526
  frameborder: "0"
23174
- }, null, 12, Rf)) : g("", !0)
23527
+ }, null, 12, qf)) : g("", !0)
23175
23528
  ]),
23176
23529
  _: 1
23177
23530
  }, 8, ["modelValue", "width"])
23178
23531
  ])) : g("", !0),
23179
- e.showDownloadPopupFlag ? (n(), w("div", zf, [
23532
+ e.showDownloadPopupFlag ? (n(), w("div", Hf, [
23180
23533
  r(F, {
23181
23534
  title: e.popupDownloadName,
23182
23535
  modelValue: e.showDownloadPopupFlag,
@@ -23215,7 +23568,7 @@ function qf(e, t, a, l, o, i) {
23215
23568
  ])) : g("", !0)
23216
23569
  ], 64);
23217
23570
  }
23218
- const Sg = /* @__PURE__ */ B(Ef, [["render", qf], ["__scopeId", "data-v-1702f01f"]]), Hf = L({
23571
+ const kg = /* @__PURE__ */ B(Bf, [["render", xf], ["__scopeId", "data-v-1702f01f"]]), Wf = L({
23219
23572
  name: "SdUiCarousel",
23220
23573
  components: {},
23221
23574
  props: {
@@ -23501,21 +23854,21 @@ const Sg = /* @__PURE__ */ B(Ef, [["render", qf], ["__scopeId", "data-v-1702f01f
23501
23854
  // }
23502
23855
  // },
23503
23856
  }
23504
- }), xf = { class: "list-title" }, Wf = {
23857
+ }), Kf = { class: "list-title" }, Gf = {
23505
23858
  key: 0,
23506
23859
  class: "text-5"
23507
- }, Kf = {
23860
+ }, Yf = {
23508
23861
  key: 3,
23509
23862
  style: { "font-size": "12px", "font-weight": "300" }
23510
- }, Gf = { style: { position: "relative" } }, Yf = { class: "el-image__error" }, Jf = {
23863
+ }, Jf = { style: { position: "relative" } }, Xf = { class: "el-image__error" }, Qf = {
23511
23864
  key: 1,
23512
23865
  class: "img-content"
23513
- }, Xf = ["innerHTML"], Qf = ["innerHTML"], Zf = { class: "text-card" }, eh = { style: { "text-align": "center" } }, th = ["innerHTML"], ah = ["innerHTML"];
23514
- function lh(e, t, a, l, o, i) {
23866
+ }, Zf = ["innerHTML"], eh = ["innerHTML"], th = { class: "text-card" }, ah = { style: { "text-align": "center" } }, lh = ["innerHTML"], oh = ["innerHTML"];
23867
+ function ih(e, t, a, l, o, i) {
23515
23868
  const d = Ze, u = ge, m = Y("Loading"), h = Ge, c = Y("Picture"), _ = vt, C = xt, b = ze, M = Ho, f = qo;
23516
23869
  return n(), w(E, null, [
23517
- P("div", xf, [
23518
- e.titleEnable ? (n(), w("span", Wf, [
23870
+ P("div", Kf, [
23871
+ e.titleEnable ? (n(), w("span", Gf, [
23519
23872
  e.iconForm != "" ? (n(), p(d, {
23520
23873
  key: 0,
23521
23874
  "svg-data": e.iconForm
@@ -23527,7 +23880,7 @@ function lh(e, t, a, l, o, i) {
23527
23880
  "icon-name": "icon-sdform"
23528
23881
  })),
23529
23882
  S(" " + O(e.titleNameForm) + " ", 1),
23530
- e.totalEnable ? (n(), w("span", Kf, " ( " + O(e.totalLabel()) + " )", 1)) : g("", !0)
23883
+ e.totalEnable ? (n(), w("span", Yf, " ( " + O(e.totalLabel()) + " )", 1)) : g("", !0)
23531
23884
  ])) : g("", !0),
23532
23885
  e.preLoading ? (n(), p(h, {
23533
23886
  key: 1,
@@ -23561,7 +23914,7 @@ function lh(e, t, a, l, o, i) {
23561
23914
  onClick: (A) => e.handleClick(y, k)
23562
23915
  }, {
23563
23916
  default: s(() => [
23564
- P("div", Gf, [
23917
+ P("div", Jf, [
23565
23918
  e.iconField ? (n(), p(_, {
23566
23919
  key: 0,
23567
23920
  style: te(`width: 100%; height: ${e.height}`),
@@ -23569,7 +23922,7 @@ function lh(e, t, a, l, o, i) {
23569
23922
  fit: "cover"
23570
23923
  }, {
23571
23924
  error: s(() => [
23572
- P("div", Yf, [
23925
+ P("div", Xf, [
23573
23926
  r(h, { style: { "font-size": "50px" } }, {
23574
23927
  default: s(() => [
23575
23928
  r(c)
@@ -23580,7 +23933,7 @@ function lh(e, t, a, l, o, i) {
23580
23933
  ]),
23581
23934
  _: 1
23582
23935
  }, 8, ["style", "src"])) : g("", !0),
23583
- e.titleField || e.titleContent || e.detailContent ? (n(), w("div", Jf, [
23936
+ e.titleField || e.titleContent || e.detailContent ? (n(), w("div", Qf, [
23584
23937
  P("div", null, [
23585
23938
  r(b, {
23586
23939
  class: "body-title",
@@ -23597,7 +23950,7 @@ function lh(e, t, a, l, o, i) {
23597
23950
  }, null, 8, ["sdform-model", "field-name", "field-setting", "raw-data", "user-state"])) : (n(), w("span", {
23598
23951
  key: 1,
23599
23952
  innerHTML: e.htmlValue(e.titleContent, y)
23600
- }, null, 8, Xf))
23953
+ }, null, 8, Zf))
23601
23954
  ]),
23602
23955
  _: 2
23603
23956
  }, 1024)
@@ -23610,7 +23963,7 @@ function lh(e, t, a, l, o, i) {
23610
23963
  e.detailContent ? (n(), w("span", {
23611
23964
  key: 0,
23612
23965
  innerHTML: e.htmlValue(e.detailContent, y)
23613
- }, null, 8, Qf)) : g("", !0)
23966
+ }, null, 8, eh)) : g("", !0)
23614
23967
  ]),
23615
23968
  _: 2
23616
23969
  }, 1032, ["line-clamp"])) : g("", !0)
@@ -23624,9 +23977,9 @@ function lh(e, t, a, l, o, i) {
23624
23977
  onClick: (A) => e.handleClick(y, k)
23625
23978
  }, {
23626
23979
  default: s(() => [
23627
- P("div", Zf, [
23980
+ P("div", th, [
23628
23981
  P("div", null, [
23629
- P("div", eh, [
23982
+ P("div", ah, [
23630
23983
  r(b, {
23631
23984
  class: "body-title",
23632
23985
  truncated: ""
@@ -23642,7 +23995,7 @@ function lh(e, t, a, l, o, i) {
23642
23995
  }, null, 8, ["sdform-model", "field-name", "field-setting", "raw-data", "user-state"])) : (n(), w("span", {
23643
23996
  key: 1,
23644
23997
  innerHTML: e.htmlValue(e.titleContent, y)
23645
- }, null, 8, th))
23998
+ }, null, 8, lh))
23646
23999
  ]),
23647
24000
  _: 2
23648
24001
  }, 1024)
@@ -23655,7 +24008,7 @@ function lh(e, t, a, l, o, i) {
23655
24008
  e.detailContent ? (n(), w("span", {
23656
24009
  key: 0,
23657
24010
  innerHTML: e.htmlValue(e.detailContent, y)
23658
- }, null, 8, ah)) : g("", !0)
24011
+ }, null, 8, oh)) : g("", !0)
23659
24012
  ]),
23660
24013
  _: 2
23661
24014
  }, 1032, ["line-clamp"])) : g("", !0)
@@ -23670,7 +24023,7 @@ function lh(e, t, a, l, o, i) {
23670
24023
  }, 8, ["indicator-position", "motionBlur", "interval", "autoplay", "direction", "type", "trigger", "height"])) : g("", !0)
23671
24024
  ], 64);
23672
24025
  }
23673
- const kg = /* @__PURE__ */ B(Hf, [["render", lh], ["__scopeId", "data-v-ea5295de"]]), oh = L({
24026
+ const Cg = /* @__PURE__ */ B(Wf, [["render", ih], ["__scopeId", "data-v-ea5295de"]]), nh = L({
23674
24027
  name: "SdUiMenu",
23675
24028
  components: {},
23676
24029
  props: {
@@ -23992,17 +24345,17 @@ const kg = /* @__PURE__ */ B(Hf, [["render", lh], ["__scopeId", "data-v-ea5295de
23992
24345
  // }
23993
24346
  // },
23994
24347
  }
23995
- }), ih = { key: 0 }, nh = {
24348
+ }), sh = { key: 0 }, rh = {
23996
24349
  key: 1,
23997
24350
  class: "menu-label"
23998
- }, sh = {
24351
+ }, dh = {
23999
24352
  key: 1,
24000
24353
  class: "menu-label"
24001
- }, rh = {
24354
+ }, uh = {
24002
24355
  key: 1,
24003
24356
  class: "menu-label"
24004
24357
  };
24005
- function dh(e, t, a, l, o, i) {
24358
+ function ph(e, t, a, l, o, i) {
24006
24359
  const d = ge, u = Wo, m = ia, h = Ko, c = xo, _ = Ol, C = zl("can");
24007
24360
  return n(), w(E, null, [
24008
24361
  r(_, {
@@ -24026,7 +24379,7 @@ function dh(e, t, a, l, o, i) {
24026
24379
  "menu-trigger": e.trigger
24027
24380
  }, {
24028
24381
  default: s(() => [
24029
- e.expandEnable ? (n(), w("div", ih, [
24382
+ e.expandEnable ? (n(), w("div", sh, [
24030
24383
  r(u, {
24031
24384
  class: "menu-expand",
24032
24385
  style: te(`height: ${e.expandHeight}px;`),
@@ -24063,7 +24416,7 @@ function dh(e, t, a, l, o, i) {
24063
24416
  class: "menu-icon",
24064
24417
  "icon-name": b[e.iconField]
24065
24418
  }, null, 8, ["icon-name"])) : g("", !0),
24066
- e.labelField ? (n(), w("span", nh, O(b[e.labelField]), 1)) : g("", !0)
24419
+ e.labelField ? (n(), w("span", rh, O(b[e.labelField]), 1)) : g("", !0)
24067
24420
  ]),
24068
24421
  default: s(() => [
24069
24422
  (n(!0), w(E, null, G(b[e.subMenuField], (f, y) => Ve((n(), p(u, {
@@ -24078,7 +24431,7 @@ function dh(e, t, a, l, o, i) {
24078
24431
  class: "menu-icon",
24079
24432
  "icon-name": f[`${e.subMenuPrefix}${e.iconField}`]
24080
24433
  }, null, 8, ["icon-name"])) : g("", !0),
24081
- e.labelField && e.subMenuPrefix ? (n(), w("span", sh, O(f[`${e.subMenuPrefix}${e.labelField}`]), 1)) : g("", !0)
24434
+ e.labelField && e.subMenuPrefix ? (n(), w("span", dh, O(f[`${e.subMenuPrefix}${e.labelField}`]), 1)) : g("", !0)
24082
24435
  ]),
24083
24436
  _: 2
24084
24437
  }, 1032, ["index", "onClick"])), [
@@ -24110,7 +24463,7 @@ function dh(e, t, a, l, o, i) {
24110
24463
  class: "menu-icon",
24111
24464
  "icon-name": b[e.iconField]
24112
24465
  }, null, 8, ["icon-name"])) : g("", !0),
24113
- e.labelField ? (n(), w("span", rh, O(b[e.labelField]), 1)) : g("", !0)
24466
+ e.labelField ? (n(), w("span", uh, O(b[e.labelField]), 1)) : g("", !0)
24114
24467
  ]),
24115
24468
  _: 2
24116
24469
  }, 1032, ["index", "onClick"])), [
@@ -24133,7 +24486,7 @@ function dh(e, t, a, l, o, i) {
24133
24486
  }, null, 4)
24134
24487
  ], 64);
24135
24488
  }
24136
- const Cg = /* @__PURE__ */ B(oh, [["render", dh]]), uh = L({
24489
+ const Dg = /* @__PURE__ */ B(nh, [["render", ph]]), mh = L({
24137
24490
  name: "SdUiRecordView",
24138
24491
  components: {
24139
24492
  // SdCrudPopupGrid,
@@ -24465,9 +24818,9 @@ const Cg = /* @__PURE__ */ B(oh, [["render", dh]]), uh = L({
24465
24818
  return this.sdformModel.form_db.schema[e];
24466
24819
  }
24467
24820
  }
24468
- }), ph = { class: "text-6" }, mh = ["innerHTML"];
24469
- function fh(e, t, a, l, o, i) {
24470
- const d = Ze, u = ge, m = oe, h = xt, c = Ll, _ = El, C = Dm;
24821
+ }), fh = { class: "text-6" }, hh = ["innerHTML"];
24822
+ function ch(e, t, a, l, o, i) {
24823
+ const d = Ze, u = ge, m = oe, h = xt, c = Ll, _ = El, C = $m;
24471
24824
  return n(), w(E, null, [
24472
24825
  r(_, {
24473
24826
  class: X({ blockUi: e.blockEnable }),
@@ -24491,7 +24844,7 @@ function fh(e, t, a, l, o, i) {
24491
24844
  b.htmlValue ? (n(), w("span", {
24492
24845
  key: 0,
24493
24846
  innerHTML: e.htmlValue(b.htmlValue, e.rawData, b)
24494
- }, null, 8, mh)) : (n(), p(h, {
24847
+ }, null, 8, hh)) : (n(), p(h, {
24495
24848
  key: 1,
24496
24849
  "sdform-model": e.sdformModel,
24497
24850
  "field-name": b.fieldName,
@@ -24518,7 +24871,7 @@ function fh(e, t, a, l, o, i) {
24518
24871
  e.titleEnable ? {
24519
24872
  name: "title",
24520
24873
  fn: s(() => [
24521
- P("span", ph, [
24874
+ P("span", fh, [
24522
24875
  e.iconForm != "" ? (n(), p(d, {
24523
24876
  key: 0,
24524
24877
  "svg-data": e.iconForm
@@ -24605,416 +24958,63 @@ function fh(e, t, a, l, o, i) {
24605
24958
  }, null, 8, ["modelValue", "parent-id", "readonly", "form-id", "user-state", "cancel-callback"])) : g("", !0)
24606
24959
  ], 64);
24607
24960
  }
24608
- const Dg = /* @__PURE__ */ B(uh, [["render", fh], ["__scopeId", "data-v-88128e90"]]), hh = L({
24609
- name: "SdApexChart",
24610
- components: {},
24611
- props: {
24612
- sqlId: {
24613
- type: String,
24614
- required: !0
24615
- },
24616
- params: {
24617
- type: Object,
24618
- default: {}
24619
- },
24620
- width: {
24621
- type: Number
24622
- },
24623
- height: {
24624
- type: Number
24625
- },
24626
- type: {
24627
- type: String
24628
- //timeline,pyramid,boxPlot
24629
- },
24630
- title: {
24631
- type: String,
24632
- default: "Chart"
24633
- },
24634
- titleDisplay: {
24635
- type: Boolean,
24636
- default: !0
24637
- },
24638
- gridDisplay: {
24639
- type: Boolean,
24640
- default: !0
24641
- },
24642
- gridCustom: {
24643
- type: Object,
24644
- default: {}
24645
- },
24646
- legendDisplay: {
24647
- type: Boolean,
24648
- default: !0
24649
- },
24650
- legendCustom: {
24651
- type: Object,
24652
- default: {}
24653
- },
24654
- scalesXDisplay: {
24655
- type: Boolean,
24656
- default: !0
24657
- },
24658
- scalesXLabel: {
24659
- type: String,
24660
- default: ""
24661
- },
24662
- scalesXCustom: {
24663
- type: Object,
24664
- default: {}
24665
- },
24666
- xField: {
24667
- type: String,
24668
- default: ""
24669
- },
24670
- xType: {
24671
- type: String,
24672
- default: "category"
24673
- },
24674
- scalesYDisplay: {
24675
- type: Boolean,
24676
- default: !0
24677
- },
24678
- scalesYLabel: {
24679
- type: String,
24680
- default: ""
24681
- },
24682
- scalesYCustom: {
24683
- type: Object,
24684
- default: {}
24685
- },
24686
- yDataset: {
24687
- type: Array,
24688
- default: []
24689
- },
24690
- customOptions: {
24691
- type: Object,
24692
- default: {}
24693
- },
24694
- userState: {
24695
- type: Object,
24696
- required: !0
24697
- },
24698
- mockup: {
24699
- type: Boolean,
24700
- default: !1
24701
- },
24702
- dataLabelsShow: {
24703
- type: Boolean,
24704
- default: !1
24705
- },
24706
- toolbarShow: {
24707
- type: Boolean,
24708
- default: !1
24709
- },
24710
- zoomEnable: {
24711
- type: Boolean,
24712
- default: !0
24713
- },
24714
- tooltipShow: {
24715
- type: Boolean,
24716
- default: !0
24717
- },
24718
- buildState: {
24719
- type: Boolean,
24720
- default: !1
24721
- }
24722
- },
24723
- data() {
24724
- return {
24725
- // data: {
24726
- // datasets: [],
24727
- // } as ChartData,
24728
- options: {},
24729
- dataMockup: [
24730
- { name: "Count", type: "bar", data: [40, 20, 12, 39, 10, 40, 39, 80, 40, 20, 12, 11] },
24731
- { name: "Value", type: "line", data: [80, 40, 20, 12, 11, 40, 20, 12, 39, 10, 40, 39] }
24732
- ],
24733
- optionsMockup: {},
24734
- defaultParams: this.params,
24735
- rawData: [],
24736
- loadEnable: !1,
24737
- preLoading: !1,
24738
- showChart: !1,
24739
- apiUrl: "",
24740
- isDark: se(),
24741
- useUserState: this.$props.userState
24742
- };
24743
- },
24744
- watch: {
24745
- isDark: {
24746
- deep: !1,
24747
- handler(e) {
24748
- this.createOptions(), this.optionsMockup = this.createOpMockup();
24749
- }
24750
- }
24751
- },
24752
- computed: {
24753
- color() {
24754
- return se().value ? "#414243" : "#e4e7ed";
24755
- },
24756
- dataChart() {
24757
- let e = [];
24758
- if (this.yDataset && this.yDataset.length > 0)
24759
- for (const [t, a] of this.yDataset.entries()) {
24760
- const l = a.custom ? a.custom : {}, o = this.rawData.map((i) => {
24761
- if (a.type === "heatmap" || a.type === "treemap") {
24762
- if (i[a.field] && i[this.xField])
24763
- return { x: i[this.xField], y: i[a.field] };
24764
- } else if (i[a.field])
24765
- return i[a.field];
24766
- });
24767
- a.type === "radialBar" ? e = o : e.push({
24768
- data: o,
24769
- name: a.name ? a.name : "Unit" + t,
24770
- type: a.type ? a.type : "bar",
24771
- color: a.color && Object.keys(a.color).length > 0 ? a.color : void 0,
24772
- hidden: !!a.hidden,
24773
- zIndex: a.zIndex != null || a.zIndex != null ? a.zIndex : void 0,
24774
- group: a.group ? a.group : void 0,
24775
- ...l
24776
- });
24777
- }
24778
- return e;
24779
- }
24780
- },
24781
- created() {
24782
- this.apiUrl = "";
24783
- },
24784
- mounted() {
24785
- this.buildState || (this.loadEnable = !0), this.optionsMockup = this.createOpMockup(), this.initdata();
24786
- },
24787
- unmounted() {
24788
- },
24789
- setup(e, t) {
24790
- return {
24791
- chartRef: K()
24792
- };
24793
- },
24794
- methods: {
24795
- async initdata() {
24796
- const e = {
24797
- providerId: this.sqlId,
24798
- providerType: de.SQL,
24799
- params: this.params
24800
- };
24801
- if (this.rawData = [], this.loadEnable) {
24802
- const t = await at(e, !1, this.useUserState);
24803
- t && t.response && t.data && t.data.data && (this.rawData = D(t.data.data), this.xField && (this.createOptions(), this.showChart = !0));
24804
- }
24805
- },
24806
- createOptions() {
24807
- const e = this.rawData.map((t) => {
24808
- if (t[this.xField])
24809
- return t[this.xField];
24810
- });
24811
- this.options = {
24812
- chart: {
24813
- type: this.type ? this.type : void 0,
24814
- toolbar: {
24815
- show: this.toolbarShow
24816
- },
24817
- zoom: {
24818
- enabled: this.zoomEnable
24819
- },
24820
- background: "transparent"
24821
- },
24822
- title: {
24823
- text: this.titleDisplay ? this.title : void 0
24824
- },
24825
- legend: {
24826
- show: this.legendDisplay,
24827
- ...this.legendCustom
24828
- },
24829
- grid: {
24830
- show: this.gridDisplay,
24831
- borderColor: se().value ? "#414243" : "#e4e7ed",
24832
- ...this.gridCustom
24833
- },
24834
- dataLabels: {
24835
- enabled: this.dataLabelsShow
24836
- },
24837
- labels: this.type === "radialBar" && e ? e : void 0,
24838
- xaxis: {
24839
- type: this.xType,
24840
- categories: e || [],
24841
- title: {
24842
- text: this.scalesXLabel
24843
- },
24844
- axisBorder: {
24845
- color: se().value ? "#414243" : "#e4e7ed"
24846
- },
24847
- axisTicks: {
24848
- color: se().value ? "#414243" : "#e4e7ed"
24849
- },
24850
- ...this.scalesXCustom
24851
- },
24852
- yaxis: {
24853
- show: this.scalesYDisplay,
24854
- title: {
24855
- text: this.scalesYLabel
24856
- },
24857
- axisBorder: {
24858
- color: se().value ? "#414243" : "#e4e7ed"
24859
- },
24860
- axisTicks: {
24861
- color: se().value ? "#414243" : "#e4e7ed"
24862
- },
24863
- ...this.scalesYCustom
24864
- },
24865
- tooltip: {
24866
- enabled: this.tooltipShow,
24867
- theme: "dark"
24868
- },
24869
- theme: {
24870
- mode: se().value ? "dark" : "light"
24871
- },
24872
- ...this.customOptions
24873
- };
24874
- },
24875
- createOpMockup() {
24876
- return {
24877
- chart: {
24878
- toolbar: {
24879
- show: this.toolbarShow
24880
- },
24881
- zoom: {
24882
- enabled: this.zoomEnable
24883
- },
24884
- background: "transparent"
24885
- },
24886
- title: {
24887
- text: this.titleDisplay ? this.title : void 0
24888
- },
24889
- legend: {
24890
- show: this.legendDisplay,
24891
- ...this.legendCustom
24892
- },
24893
- dataLabels: {
24894
- enabled: this.dataLabelsShow
24895
- },
24896
- grid: {
24897
- show: this.gridDisplay,
24898
- borderColor: se().value ? "#414243" : "#e4e7ed",
24899
- ...this.gridCustom
24900
- },
24901
- xaxis: {
24902
- type: this.xType,
24903
- categories: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
24904
- title: {
24905
- text: this.scalesXLabel
24906
- },
24907
- axisBorder: {
24908
- color: se().value ? "#414243" : "#e4e7ed"
24909
- },
24910
- axisTicks: {
24911
- color: se().value ? "#414243" : "#e4e7ed"
24912
- },
24913
- ...this.scalesXCustom
24914
- },
24915
- yaxis: {
24916
- show: this.scalesYDisplay,
24917
- title: {
24918
- text: this.scalesYLabel
24919
- },
24920
- axisBorder: {
24921
- color: se().value ? "#414243" : "#e4e7ed"
24922
- },
24923
- axisTicks: {
24924
- color: se().value ? "#414243" : "#e4e7ed"
24925
- },
24926
- ...this.scalesYCustom
24927
- },
24928
- tooltip: {
24929
- enabled: this.tooltipShow,
24930
- theme: "dark"
24931
- },
24932
- theme: {
24933
- mode: se().value ? "dark" : "light"
24934
- },
24935
- ...this.customOptions
24936
- };
24937
- }
24938
- }
24939
- });
24940
- function ch(e, t, a, l, o, i) {
24941
- const d = Y("apexchart");
24942
- return n(), w("div", {
24943
- ref: "chartRef",
24944
- style: te(`width: ${e.width ? e.width + "px" : "100%"}; height: ${e.height ? e.height + "px" : "100%"}`)
24945
- }, [
24946
- e.mockup && e.buildState ? (n(), p(d, {
24947
- key: 0,
24948
- height: "100%",
24949
- options: e.optionsMockup,
24950
- series: e.dataMockup
24951
- }, null, 8, ["options", "series"])) : (n(), w(E, { key: 1 }, [
24952
- e.showChart ? (n(), p(d, {
24953
- key: 0,
24954
- height: "100%",
24955
- options: e.options,
24956
- series: e.dataChart
24957
- }, null, 8, ["options", "series"])) : g("", !0)
24958
- ], 64))
24959
- ], 4);
24960
- }
24961
- const Ig = /* @__PURE__ */ B(hh, [["render", ch]]);
24961
+ const Ig = /* @__PURE__ */ B(mh, [["render", ch], ["__scopeId", "data-v-88128e90"]]);
24962
24962
  export {
24963
- Fa as $,
24964
- kg as A,
24965
- Tp as B,
24966
- Cg as C,
24963
+ Ua as $,
24964
+ vo as A,
24965
+ Cg as B,
24966
+ Tp as C,
24967
24967
  Dg as D,
24968
- Ad as E,
24969
- xt as F,
24970
- Zm as G,
24971
- at as H,
24972
- Ot as I,
24973
- Ie as J,
24974
- Mu as K,
24975
- wa as L,
24976
- Pu as M,
24977
- dt as N,
24978
- ja as O,
24979
- rg as P,
24980
- Vu as Q,
24981
- dg as R,
24968
+ Ig as E,
24969
+ Ad as F,
24970
+ xt as G,
24971
+ tf as H,
24972
+ at as I,
24973
+ Ot as J,
24974
+ Ie as K,
24975
+ Mu as L,
24976
+ wa as M,
24977
+ Pu as N,
24978
+ dt as O,
24979
+ ja as P,
24980
+ rg as Q,
24981
+ Vu as R,
24982
24982
  mg as S,
24983
- co as T,
24984
- Pl as U,
24985
- ug as V,
24986
- oa as W,
24987
- Oe as X,
24988
- Re as Y,
24989
- Ua as Z,
24983
+ dg as T,
24984
+ co as U,
24985
+ Pl as V,
24986
+ ug as W,
24987
+ oa as X,
24988
+ Oe as Y,
24989
+ Re as Z,
24990
24990
  Ze as _,
24991
24991
  ge as a,
24992
- Au as a0,
24993
- Ae as a1,
24994
- Ou as a2,
24995
- B as a3,
24996
- Nn as a4,
24997
- Ce as a5,
24998
- D as a6,
24999
- De as a7,
25000
- Rt as a8,
25001
- Gb as a9,
25002
- Kb as aa,
25003
- ce as ab,
25004
- $a as ac,
25005
- og as ad,
25006
- lg as ae,
25007
- En as af,
25008
- ig as ag,
25009
- ag as ah,
25010
- tg as ai,
25011
- Ba as aj,
25012
- Yb as ak,
25013
- La as al,
25014
- Wb as am,
25015
- ga as an,
25016
- Qb as ao,
25017
- Ig as ap,
24992
+ Fa as a0,
24993
+ Au as a1,
24994
+ Ae as a2,
24995
+ Ou as a3,
24996
+ B as a4,
24997
+ Nn as a5,
24998
+ Ce as a6,
24999
+ D as a7,
25000
+ De as a8,
25001
+ Rt as a9,
25002
+ Gb as aa,
25003
+ Kb as ab,
25004
+ ce as ac,
25005
+ $a as ad,
25006
+ og as ae,
25007
+ lg as af,
25008
+ En as ag,
25009
+ ig as ah,
25010
+ ag as ai,
25011
+ tg as aj,
25012
+ Ba as ak,
25013
+ Yb as al,
25014
+ La as am,
25015
+ Wb as an,
25016
+ ga as ao,
25017
+ Qb as ap,
25018
25018
  ee as aq,
25019
25019
  xb as ar,
25020
25020
  eg as as,
@@ -25023,7 +25023,7 @@ export {
25023
25023
  Xb as av,
25024
25024
  Jb as aw,
25025
25025
  de as ax,
25026
- zm as ay,
25026
+ Hm as ay,
25027
25027
  Ra as az,
25028
25028
  On as b,
25029
25029
  ng as c,
@@ -25031,23 +25031,23 @@ export {
25031
25031
  sg as e,
25032
25032
  pg as f,
25033
25033
  fg as g,
25034
- bo as h,
25035
- ym as i,
25036
- _m as j,
25037
- Dm as k,
25038
- hg as l,
25039
- Bm as m,
25040
- cg as n,
25034
+ hg as h,
25035
+ bo as i,
25036
+ wm as j,
25037
+ km as k,
25038
+ $m as l,
25039
+ cg as m,
25040
+ Um as n,
25041
25041
  bg as o,
25042
25042
  gg as p,
25043
25043
  yg as q,
25044
- go as r,
25045
- yo as s,
25046
- rm as t,
25047
- vg as u,
25044
+ vg as r,
25045
+ go as s,
25046
+ yo as t,
25047
+ um as u,
25048
25048
  wg as v,
25049
25049
  Fg as w,
25050
25050
  _g as x,
25051
25051
  Sg as y,
25052
- vo as z
25052
+ kg as z
25053
25053
  };