hlrender 0.0.201 → 0.0.202

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 (93) hide show
  1. package/{affix-widget-01984956.js → affix-widget-ddc78fd2.js} +5 -5
  2. package/{alert-widget-3bd3f4cd.js → alert-widget-a9d39f29.js} +5 -5
  3. package/{anchor-widget-2b3f18b4.js → anchor-widget-3d626be6.js} +3 -3
  4. package/{auto-complete-widget-2cbb008a.js → auto-complete-widget-7db0de11.js} +4 -4
  5. package/{avatar-widget-d1108ad6.js → avatar-widget-481b4ab1.js} +5 -5
  6. package/{backtop-widget-1b8fa8f7.js → backtop-widget-27954a77.js} +5 -5
  7. package/{badge-widget-b823a6d1.js → badge-widget-8fd64136.js} +5 -5
  8. package/{barcode-widget-18de3d18.js → barcode-widget-213a15b9.js} +3 -3
  9. package/{breadcrumb-widget-eb963780.js → breadcrumb-widget-71a1c2fd.js} +3 -3
  10. package/{button-widget-37fe1d2b.js → button-widget-9f5a3fb4.js} +5 -5
  11. package/{cache-widget-a45745a1.js → cache-widget-38b72fda.js} +3 -3
  12. package/{card-widget-74937a78.js → card-widget-1528e123.js} +4 -4
  13. package/{carousel-widget-d753a733.js → carousel-widget-95b2c9ed.js} +3 -3
  14. package/{cascader-widget-168c9ebd.js → cascader-widget-fe9aff54.js} +3 -3
  15. package/{chart-widget-cda6f103.js → chart-widget-611e48bd.js} +3 -3
  16. package/{checkbox-widget-5d80c960.js → checkbox-widget-09707dc4.js} +3 -3
  17. package/{collapse-widget-e4f0fb07.js → collapse-widget-0b6b4eca.js} +3 -3
  18. package/{color-picker-widget-012a962b.js → color-picker-widget-84549c6f.js} +3 -3
  19. package/{cont-cell-widget-0f398cba.js → cont-cell-widget-77c16652.js} +1 -1
  20. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-14defd89.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a4d8969a.js} +3 -3
  21. package/{cont-widget-f83910ba.js → cont-widget-17f438f8.js} +3 -3
  22. package/{date-picker-range-widget-cff89500.js → date-picker-range-widget-d6e754cd.js} +3 -3
  23. package/{date-picker-widget-8c4b2534.js → date-picker-widget-b8e833dc.js} +3 -3
  24. package/{default-slot-widget-47f401ce.js → default-slot-widget-187a0a77.js} +3 -3
  25. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-a552a4be.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-fcf48830.js} +2 -2
  26. package/{descriptions-widget-4addc4c7.js → descriptions-widget-e294abe8.js} +4 -4
  27. package/{dialog-widget-815c80a1.js → dialog-widget-03845073.js} +5 -5
  28. package/{divider-widget-925d418b.js → divider-widget-f03b1dd9.js} +5 -5
  29. package/{drag-wrapper-de9be57d.js → drag-wrapper-6f9d27ca.js} +2 -2
  30. package/{drawer-widget-5444a0c0.js → drawer-widget-1d3d5b3f.js} +5 -5
  31. package/{dropdown-widget-980baf81.js → dropdown-widget-0c7af6ed.js} +4 -4
  32. package/{empty-widget-b810eafb.js → empty-widget-ea1bbed0.js} +5 -5
  33. package/{feedback-widget-98708e19.js → feedback-widget-f6ab7210.js} +5 -5
  34. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-0bdb5053.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-5b8dd13d.js} +3 -3
  35. package/{file-upload-widget-3126e728.js → file-upload-widget-2d109e94.js} +5 -5
  36. package/{form-widget-12c6d64a.js → form-widget-034a08b6.js} +4 -4
  37. package/{grid-col-widget-1e3755fc.js → grid-col-widget-64f6dcd4.js} +1 -1
  38. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-5f050ef2.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-c8c7af67.js} +3 -3
  39. package/{grid-widget-d6f4ce7f.js → grid-widget-63a5f5dc.js} +3 -3
  40. package/{html-text-widget-e997e2ec.js → html-text-widget-39de395d.js} +3 -3
  41. package/{icon-widget-5f8d6b85.js → icon-widget-a92659c0.js} +3 -3
  42. package/{iframe-widget-37713ad4.js → iframe-widget-52faa612.js} +3 -3
  43. package/{image-widget-0f84aa93.js → image-widget-17dd79c8.js} +3 -3
  44. package/{input-number-widget-d642316d.js → input-number-widget-2ec5fbb9.js} +3 -3
  45. package/{input-widget-f5a85bb5.js → input-widget-0fcb2818.js} +4 -4
  46. package/{link-widget-8ef800c5.js → link-widget-5874c9bd.js} +5 -5
  47. package/{ltable-col-widget-2163c281.js → ltable-col-widget-dba43068.js} +1 -1
  48. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-330519b7.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-b21fceac.js} +3 -3
  49. package/{ltable-widget-9535b0b0.js → ltable-widget-003f718c.js} +3 -3
  50. package/{menu-widget-70e03b60.js → menu-widget-d0e533ed.js} +3 -3
  51. package/{model-widget-cdea91c7.js → model-widget-31487103.js} +3 -3
  52. package/{multirow-b0df65a6.js → multirow-d79e0604.js} +1 -1
  53. package/{multirow-widget-62f63080.js → multirow-widget-0b8d2b58.js} +4 -4
  54. package/package.json +1 -1
  55. package/{pagination-widget-cac6d5e8.js → pagination-widget-f7ab8680.js} +3 -3
  56. package/{picture-upload-widget-ee543b0d.js → picture-upload-widget-78d34bf8.js} +4 -4
  57. package/{progress-widget-ca7ea304.js → progress-widget-6c7e162f.js} +4 -4
  58. package/{qrcode-widget-92d4793e.js → qrcode-widget-16957a62.js} +3 -3
  59. package/{radio-widget-ec65fc97.js → radio-widget-188c1438.js} +3 -3
  60. package/{range-widget-2978212c.js → range-widget-7f289ea1.js} +4 -4
  61. package/{rate-widget-1460ddde.js → rate-widget-2dd26126.js} +3 -3
  62. package/render.es.js +535 -526
  63. package/render.umd.js +2 -2
  64. package/{result-widget-a9ebf939.js → result-widget-2aa7e9a0.js} +4 -4
  65. package/{rich-editor-widget-bee3b659.js → rich-editor-widget-a00fe33d.js} +3 -3
  66. package/{router-widget-202c76b6.js → router-widget-967e9b1d.js} +3 -3
  67. package/{select-widget-4944eaa4.js → select-widget-c17f0591.js} +3 -3
  68. package/{sfc-d8640942.js → sfc-cfdb858f.js} +1 -1
  69. package/{share-field-33bed9fb.js → share-field-fcd3dafc.js} +2 -2
  70. package/{share-file-a6294200.js → share-file-73cef45a.js} +1 -1
  71. package/{slider-widget-e43a8310.js → slider-widget-07a59d1e.js} +3 -3
  72. package/slot-7eaafaa3.js +317 -0
  73. package/{static-text-widget-51e52e92.js → static-text-widget-91ff9511.js} +3 -3
  74. package/{steps-widget-0dcfd664.js → steps-widget-b1e0882e.js} +3 -3
  75. package/{switch-widget-7d9065d3.js → switch-widget-a555b084.js} +3 -3
  76. package/{tab-pane-widget-3b2d74c3.js → tab-pane-widget-ac8c950e.js} +1 -1
  77. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-117fa09b.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-66244ac0.js} +3 -3
  78. package/{table-col-widget-9282e34a.js → table-col-widget-c0db0601.js} +4 -4
  79. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-4562e88c.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-27776f4a.js} +3 -3
  80. package/{table-widget-ae2a296e.js → table-widget-7fd05bf7.js} +5 -5
  81. package/{tabs-widget-99c5a2eb.js → tabs-widget-dc5727ef.js} +2 -2
  82. package/{tag-widget-d6549de3.js → tag-widget-1a6e5fc4.js} +5 -5
  83. package/{text-widget-7be180e6.js → text-widget-538a206e.js} +5 -5
  84. package/{textarea-widget-4c60a73c.js → textarea-widget-9b7f1126.js} +3 -3
  85. package/{time-picker-range-widget-40493bad.js → time-picker-range-widget-61caae19.js} +3 -3
  86. package/{time-picker-widget-88bcac2a.js → time-picker-widget-5753a44d.js} +3 -3
  87. package/{time-select-widget-c87dadbe.js → time-select-widget-6d373331.js} +3 -3
  88. package/{tmpl-widget-14f305d2.js → tmpl-widget-3fb389f8.js} +4 -4
  89. package/{tree-select-widget-f4c1edc6.js → tree-select-widget-d987b456.js} +3 -3
  90. package/{tree-widget-08a43889.js → tree-widget-6b6ff0ad.js} +3 -3
  91. package/{verifycode-widget-10f54ed3.js → verifycode-widget-15cf3e5c.js} +3 -3
  92. package/{wrapper-widget-b13f1dd0.js → wrapper-widget-e243df5a.js} +3 -3
  93. package/slot-9818013e.js +0 -314
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as l, resolveComponent as w, openBlock as p, createBlock as i, mergeProps as m, unref as e, withCtx as C, isRef as F, toHandlers as O } from "vue";
2
- import { b as V } from "./share-field-33bed9fb.js";
2
+ import { b as V } from "./share-field-fcd3dafc.js";
3
3
  import { I as b } from "./field-base-5547436d.js";
4
4
  import v from "./form-item-wrapper-b761d512.js";
5
5
  import { w as I } from "./expression-d514d13e.js";
6
6
  import "./enum-type-1c0ae1da.js";
7
- import "./multirow-b0df65a6.js";
7
+ import "./multirow-d79e0604.js";
8
8
  import "./baseImp-242db99f.js";
9
9
  import "./enum-type-768f07b9.js";
10
10
  import "./icon-a0e0cdb0.js";
@@ -13,7 +13,7 @@ import "./_commonjsHelpers-e7ea1525.js";
13
13
  import "./uuid-81bac653.js";
14
14
  import "element-plus";
15
15
  import "./index-38b887d7.js";
16
- import "./slot-9818013e.js";
16
+ import "./slot-7eaafaa3.js";
17
17
  import "./widget-base-4c2d6265.js";
18
18
  import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
19
19
  import "./index-a152420d.js";
@@ -2,11 +2,11 @@ import { defineComponent as _, computed as x, resolveComponent as z, openBlock a
2
2
  import { a as B, f as E, n as M, e as f, c as s } from "./enum-type-1c0ae1da.js";
3
3
  import { b as m, d as n } from "./uuid-81bac653.js";
4
4
  import { I as S } from "./field-base-5547436d.js";
5
- import { b as W } from "./share-field-33bed9fb.js";
5
+ import { b as W } from "./share-field-fcd3dafc.js";
6
6
  import D from "./form-item-wrapper-b761d512.js";
7
7
  import { w as H } from "./expression-d514d13e.js";
8
8
  import "./widget-base-4c2d6265.js";
9
- import "./multirow-b0df65a6.js";
9
+ import "./multirow-d79e0604.js";
10
10
  import "./baseImp-242db99f.js";
11
11
  import "./enum-type-768f07b9.js";
12
12
  import "./icon-a0e0cdb0.js";
@@ -14,7 +14,7 @@ import "./dialog-cb26ee83.js";
14
14
  import "./_commonjsHelpers-e7ea1525.js";
15
15
  import "element-plus";
16
16
  import "./index-38b887d7.js";
17
- import "./slot-9818013e.js";
17
+ import "./slot-7eaafaa3.js";
18
18
  import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
19
19
  import "./index-a152420d.js";
20
20
  import "./_plugin-vue_export-helper-dad06003.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as a, resolveComponent as C, openBlock as p, createBlock as m, mergeProps as s, unref as e, withCtx as F, isRef as O, toHandlers as b } from "vue";
2
2
  import { e as x, c as z } from "./enum-type-1c0ae1da.js";
3
- import { b as I } from "./share-field-33bed9fb.js";
3
+ import { b as I } from "./share-field-fcd3dafc.js";
4
4
  import { I as K } from "./field-base-5547436d.js";
5
5
  import P from "./form-item-wrapper-b761d512.js";
6
6
  import { w as B } from "./expression-d514d13e.js";
7
7
  import { t as E } from "./uuid-81bac653.js";
8
- import "./multirow-b0df65a6.js";
8
+ import "./multirow-d79e0604.js";
9
9
  import "./baseImp-242db99f.js";
10
10
  import "./enum-type-768f07b9.js";
11
11
  import "./icon-a0e0cdb0.js";
@@ -13,7 +13,7 @@ import "./dialog-cb26ee83.js";
13
13
  import "./_commonjsHelpers-e7ea1525.js";
14
14
  import "element-plus";
15
15
  import "./index-38b887d7.js";
16
- import "./slot-9818013e.js";
16
+ import "./slot-7eaafaa3.js";
17
17
  import "./widget-base-4c2d6265.js";
18
18
  import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
19
19
  import "./index-a152420d.js";
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as s, resolveComponent as w, openBlock as p, createBlock as l, mergeProps as m, unref as e, withCtx as C, isRef as F, toHandlers as O } from "vue";
2
2
  import { e as V } from "./enum-type-1c0ae1da.js";
3
- import { b } from "./share-field-33bed9fb.js";
3
+ import { b } from "./share-field-fcd3dafc.js";
4
4
  import { I as v } from "./field-base-5547436d.js";
5
5
  import x from "./form-item-wrapper-b761d512.js";
6
6
  import { w as z } from "./expression-d514d13e.js";
7
- import "./multirow-b0df65a6.js";
7
+ import "./multirow-d79e0604.js";
8
8
  import "./baseImp-242db99f.js";
9
9
  import "./enum-type-768f07b9.js";
10
10
  import "./icon-a0e0cdb0.js";
@@ -13,7 +13,7 @@ import "./_commonjsHelpers-e7ea1525.js";
13
13
  import "./uuid-81bac653.js";
14
14
  import "element-plus";
15
15
  import "./index-38b887d7.js";
16
- import "./slot-9818013e.js";
16
+ import "./slot-7eaafaa3.js";
17
17
  import "./widget-base-4c2d6265.js";
18
18
  import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
19
19
  import "./index-a152420d.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as F, computed as I, ref as T, onMounted as j, resolveDirective as L, openBlock as a, createBlock as d, mergeProps as u, unref as t, withCtx as M, createElementBlock as n, Fragment as c, withDirectives as P, renderList as R, createTextVNode as z, toDisplayString as A } from "vue";
2
2
  import { e as E, t as J, f as q } from "./enum-type-1c0ae1da.js";
3
3
  import { I as G } from "./widget-base-4c2d6265.js";
4
- import { b as H } from "./share-field-33bed9fb.js";
4
+ import { b as H } from "./share-field-fcd3dafc.js";
5
5
  import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
6
- import { D as v } from "./drag-wrapper-de9be57d.js";
7
- import { i as Q, d as U } from "./slot-9818013e.js";
8
- import { c as X } from "./multirow-b0df65a6.js";
6
+ import { D as v } from "./drag-wrapper-6f9d27ca.js";
7
+ import { i as Q, d as U } from "./slot-7eaafaa3.js";
8
+ import { c as X } from "./multirow-d79e0604.js";
9
9
  import { b as Y } from "./expression-d514d13e.js";
10
10
  import { _ as Z } from "./_plugin-vue_export-helper-dad06003.js";
11
11
  import "./icon-a0e0cdb0.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as T, computed as s, resolveComponent as ee, openBlock as d, createBlock as p, mergeProps as j, unref as e, withCtx as a, isRef as W, toHandlers as A, createSlots as B, resolveDynamicComponent as i, createCommentVNode as g } from "vue";
2
2
  import { s as f, t as D } from "./enum-type-1c0ae1da.js";
3
3
  import { I as te } from "./field-base-5547436d.js";
4
- import { b as oe } from "./share-field-33bed9fb.js";
4
+ import { b as oe } from "./share-field-fcd3dafc.js";
5
5
  import re from "./form-item-wrapper-b761d512.js";
6
6
  import { b as y, w as le } from "./expression-d514d13e.js";
7
7
  import "./widget-base-4c2d6265.js";
8
- import "./multirow-b0df65a6.js";
8
+ import "./multirow-d79e0604.js";
9
9
  import "./baseImp-242db99f.js";
10
10
  import "./enum-type-768f07b9.js";
11
11
  import "./icon-a0e0cdb0.js";
@@ -14,7 +14,7 @@ import "./_commonjsHelpers-e7ea1525.js";
14
14
  import "./uuid-81bac653.js";
15
15
  import "element-plus";
16
16
  import "./index-38b887d7.js";
17
- import "./slot-9818013e.js";
17
+ import "./slot-7eaafaa3.js";
18
18
  import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
19
19
  import "./index-a152420d.js";
20
20
  import "./_plugin-vue_export-helper-dad06003.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as h, computed as s, resolveComponent as $, openBlock as u, createBlock as f, mergeProps as x, unref as t, withCtx as K, isRef as A, toHandlers as H, createSlots as M, resolveDynamicComponent as P } from "vue";
2
2
  import { I as R } from "./field-base-5547436d.js";
3
- import { b as U } from "./share-field-33bed9fb.js";
3
+ import { b as U } from "./share-field-fcd3dafc.js";
4
4
  import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
5
5
  import { b as n, w as G } from "./expression-d514d13e.js";
6
6
  import { s as a } from "./enum-type-1c0ae1da.js";
7
7
  import "./widget-base-4c2d6265.js";
8
- import "./multirow-b0df65a6.js";
8
+ import "./multirow-d79e0604.js";
9
9
  import "./baseImp-242db99f.js";
10
10
  import "./enum-type-768f07b9.js";
11
11
  import "./icon-a0e0cdb0.js";
@@ -14,7 +14,7 @@ import "./_commonjsHelpers-e7ea1525.js";
14
14
  import "./uuid-81bac653.js";
15
15
  import "element-plus";
16
16
  import "./index-38b887d7.js";
17
- import "./slot-9818013e.js";
17
+ import "./slot-7eaafaa3.js";
18
18
  import "./index-a152420d.js";
19
19
  import "./_plugin-vue_export-helper-dad06003.js";
20
20
  import "./fieldobj-5eca64a8.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as g, ref as v, onMounted as N, watch as k, openBlock as w, createElementBlock as S, createElementVNode as x, computed as C, nextTick as H, createBlock as P, mergeProps as b, unref as u, withCtx as W, createVNode as I } from "vue";
2
2
  import { w as V } from "./expression-d514d13e.js";
3
3
  import { I as z } from "./field-base-5547436d.js";
4
- import { b as T } from "./share-field-33bed9fb.js";
4
+ import { b as T } from "./share-field-fcd3dafc.js";
5
5
  import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
6
6
  import { R as E } from "./enum-type-1c0ae1da.js";
7
7
  import { _ as R } from "./_plugin-vue_export-helper-dad06003.js";
@@ -10,14 +10,14 @@ import "./uuid-81bac653.js";
10
10
  import "./_commonjsHelpers-e7ea1525.js";
11
11
  import "./esprima-e8d15055.js";
12
12
  import "./widget-base-4c2d6265.js";
13
- import "./multirow-b0df65a6.js";
13
+ import "./multirow-d79e0604.js";
14
14
  import "./baseImp-242db99f.js";
15
15
  import "./enum-type-768f07b9.js";
16
16
  import "./icon-a0e0cdb0.js";
17
17
  import "./dialog-cb26ee83.js";
18
18
  import "element-plus";
19
19
  import "./index-38b887d7.js";
20
- import "./slot-9818013e.js";
20
+ import "./slot-7eaafaa3.js";
21
21
  import "./index-a152420d.js";
22
22
  import "./fieldobj-5eca64a8.js";
23
23
  const F = { class: "s-canvas" }, L = ["width", "height"], $ = /* @__PURE__ */ g({
@@ -1,11 +1,11 @@
1
1
  import { ref as y, watch as L, defineComponent as h, resolveDirective as j, openBlock as b, createBlock as D, mergeProps as W, unref as s, withCtx as O, withDirectives as P, createElementBlock as x, normalizeClass as z, createVNode as R, createCommentVNode as S } from "vue";
2
2
  import { I as k } from "./widget-base-4c2d6265.js";
3
- import { D as A } from "./drag-wrapper-de9be57d.js";
3
+ import { D as A } from "./drag-wrapper-6f9d27ca.js";
4
4
  import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
5
5
  import { w as F } from "./expression-d514d13e.js";
6
6
  import { W as v } from "./enum-type-768f07b9.js";
7
- import { b as N, a as $ } from "./share-field-33bed9fb.js";
8
- import { c as E } from "./slot-9818013e.js";
7
+ import { b as N, a as $ } from "./share-field-fcd3dafc.js";
8
+ import { c as E } from "./slot-7eaafaa3.js";
9
9
  function H(i) {
10
10
  const n = y({}), { componentWrapperClass: c, customClass: a } = E({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: f, fieldKey: g, fieldObj: m } = N(i), { setAllRefList: l } = $(n.value), p = (o = !1) => {
11
11
  l(v.setDisabled, { flag: o });
package/slot-9818013e.js DELETED
@@ -1,314 +0,0 @@
1
- var M = Object.defineProperty;
2
- var _ = (e, t, o) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var L = (e, t, o) => (_(e, typeof t != "symbol" ? t + "" : t, o), o);
4
- import { inject as p, provide as S, computed as f } from "vue";
5
- import { d as y, b, r as O, s as B } from "./expression-d514d13e.js";
6
- import { B as G } from "./baseImp-242db99f.js";
7
- import { c as N, i as V, m as R, j as A, o as q } from "./enum-type-1c0ae1da.js";
8
- class W {
9
- constructor() {
10
- /**
11
- * 当前表单引用库
12
- * 假设表单组件位于表单form中,则该引用注册入库
13
- */
14
- L(this, "formRefList", {});
15
- /**
16
- * 全局引用库
17
- */
18
- L(this, "globalRefList", {});
19
- /**
20
- * 全局数据对象
21
- */
22
- L(this, "globalDataModel", {});
23
- /**
24
- * 当前表单名称
25
- */
26
- L(this, "globalFormName", "");
27
- /**
28
- * 全局页面名称
29
- */
30
- // globalPageName?: string = "";
31
- /**
32
- * 用于类似template组件的数据绑定传递
33
- */
34
- L(this, "rowScope", {});
35
- /**
36
- * 渲染器调用者传入的配置参数,如接口地址、密钥等
37
- */
38
- L(this, "globalConfig", {});
39
- }
40
- static globalInject() {
41
- const t = new W();
42
- return t.formRefList = p(y.refList, {}), t.globalRefList = p(y.allRefList, {}), t.globalDataModel = p(y.globalModel, {}), t.rowScope = p(y.rowScope, {}), t.globalFormName = p(y.globalForm, ""), t.globalConfig = p(y.globalConfig, {}), t;
43
- }
44
- static globalProvide(t) {
45
- if ((t == null ? void 0 : t.globalDataModel) !== void 0) {
46
- const o = (t == null ? void 0 : t.globalDataModel) || {};
47
- S(y.globalModel, o);
48
- }
49
- if ((t == null ? void 0 : t.rowScope) !== void 0) {
50
- const o = (t == null ? void 0 : t.rowScope) || {};
51
- S(y.rowScope, o);
52
- }
53
- if ((t == null ? void 0 : t.globalRefList) !== void 0) {
54
- const o = (t == null ? void 0 : t.globalRefList) || {};
55
- S(y.allRefList, o);
56
- }
57
- if ((t == null ? void 0 : t.formRefList) !== void 0) {
58
- const o = (t == null ? void 0 : t.formRefList) || {};
59
- S(y.refList, o);
60
- }
61
- if ((t == null ? void 0 : t.globalFormName) !== void 0) {
62
- const o = (t == null ? void 0 : t.globalFormName) || "";
63
- S(y.globalForm, o);
64
- }
65
- if ((t == null ? void 0 : t.globalConfig) !== void 0) {
66
- const o = (t == null ? void 0 : t.globalConfig) || "";
67
- S(y.globalConfig, o);
68
- }
69
- }
70
- }
71
- function ot(e) {
72
- const t = (u, H = !1) => G.getOptions(e == null ? void 0 : e.widget, u, H, !(e != null && e.designState)), o = f(() => t(b.ctrlWidth) || "auto"), l = f(() => t(b.ctrlHeight) || "auto"), n = f(() => t(b.displayLayout)), i = f(() => {
73
- var u = t(b.customClass);
74
- return Array.isArray(u) ? u == null ? void 0 : u.join(" ") : u;
75
- }), h = f(() => {
76
- var u = t(b.componentWrapperClass);
77
- return Array.isArray(u) ? u == null ? void 0 : u.join(" ") : u;
78
- }), a = f(() => t(b.css)), s = f(() => {
79
- var u = t(b.componentRootClass);
80
- return Array.isArray(u) ? u == null ? void 0 : u.join(" ") : u;
81
- }), c = f(() => {
82
- var u, H;
83
- return (H = N((u = t(b.required, !0)) == null ? void 0 : u.options)) == null ? void 0 : H.enable;
84
- }), g = f(() => t(b.hidden)), d = f(() => t(b.labelTooltip)), C = f(() => t(b.labelIconClass)), r = f(() => t(b.labelIconPosition)), w = f(() => t(b.labelHidden)), F = f(() => t(b.label)), m = f(() => t(b.labelWidth)), T = f(() => t(b.labelAlign));
85
- return {
86
- //size,
87
- attrs: f(() => ({
88
- required: c.value,
89
- label: F.value,
90
- labelHidden: w.value,
91
- labelAlign: T.value,
92
- labelIconClass: C.value,
93
- labelIconPosition: r.value,
94
- labelTooltip: d.value,
95
- labelWidth: m.value,
96
- ctrlWidth: o.value
97
- })),
98
- labelAlign: T,
99
- labelHidden: w,
100
- labelIconClass: C,
101
- labelIconPosition: r,
102
- labelTooltip: d,
103
- labelWidth: m,
104
- label: F,
105
- displayLayout: n,
106
- hidden: g,
107
- // required,
108
- ctrlWidth: o,
109
- ctrlHeight: l,
110
- customClass: i,
111
- componentWrapperClass: h,
112
- componentRootClass: s,
113
- css: a
114
- };
115
- }
116
- const $ = (e = "") => new Promise((t) => {
117
- import("./index-3aaf8638.js").then((o) => {
118
- const l = o.parse(e, {
119
- positions: !0,
120
- parseValue: !1
121
- }), n = [];
122
- o.walk(l, {
123
- visit: "Rule",
124
- enter(i) {
125
- const h = o.generate(i.prelude), a = {};
126
- o.walk(i, {
127
- visit: "Declaration",
128
- enter(s) {
129
- s.property && (a[s.property] = o.generate(s.value));
130
- }
131
- }), n.push({ selector: h, declarations: a });
132
- }
133
- }), t(n);
134
- });
135
- }), E = (e) => new Promise((t) => {
136
- import("./index-3aaf8638.js").then((o) => {
137
- const l = x(e), n = o.parse(l, { context: "stylesheet" });
138
- t(o.generate(n));
139
- });
140
- });
141
- function x(e) {
142
- return e.map((o) => {
143
- var n, i, h;
144
- const l = (h = (i = (n = Object.entries(o.declarations)) == null ? void 0 : n.filter(([a, s]) => !V(s) && s !== "")) == null ? void 0 : i.sort(([a], [s]) => a > s ? 1 : -1)) == null ? void 0 : h.map(([a, s]) => `${a}: ${s};`);
145
- return `${o.selector} { ${l.join(" ")} }`;
146
- }).join(`
147
- `);
148
- }
149
- const z = () => new Promise((e) => {
150
- import("./acorn-a3705767.js").then((t) => {
151
- e(t);
152
- });
153
- });
154
- function J(e) {
155
- return new Promise((t) => {
156
- z().then((o) => {
157
- var l = Q(o, e);
158
- t(l);
159
- });
160
- });
161
- }
162
- function Q(e, t) {
163
- var i, h;
164
- const o = e.parse(t, {
165
- ecmaVersion: "latest",
166
- sourceType: "script",
167
- ranges: !0
168
- // ←←← 必须启用,才能 slice 源码
169
- }), l = [], n = [];
170
- for (const a of o.body) {
171
- if (a.type === "FunctionDeclaration" && ((i = a.id) != null && i.name) && a.range) {
172
- const s = a.id.name, c = t.slice(a.range[0], a.range[1]);
173
- l.push({ name: s, text: c });
174
- }
175
- if (a.type === "ClassDeclaration" && ((h = a.id) != null && h.name) && a.range) {
176
- const s = a.id.name, c = t.slice(a.range[0], a.range[1]);
177
- n.push({ name: s, text: c });
178
- }
179
- }
180
- return { functions: l, classes: n };
181
- }
182
- const U = () => {
183
- const e = "v_form_global_css", t = (s = "", c = e) => {
184
- var g = n(s, c);
185
- l(g);
186
- }, o = (s = "", c = "", g = e) => {
187
- if (!s)
188
- return;
189
- let d = document.getElementsByTagName("head")[0];
190
- if (d)
191
- try {
192
- var C = n(c, g);
193
- l(g), l(C);
194
- let r = document.createElement("style");
195
- if (!r)
196
- return;
197
- r.type = "text/css", r.id = c ? g + "-" + c : g;
198
- try {
199
- r.appendChild(document.createTextNode(s.toString()));
200
- } catch {
201
- r.innerHTML = s.toString();
202
- }
203
- d.appendChild(r);
204
- } catch (r) {
205
- R.error("insert css to head fail", r);
206
- }
207
- }, l = (s) => {
208
- let c = document.getElementById(s);
209
- try {
210
- c && c.parentNode && c.parentNode.removeChild(c);
211
- } catch (g) {
212
- console.log(g, c);
213
- }
214
- }, n = (s, c) => s ? c + "-" + s : c, i = "v_form_global_functions";
215
- return {
216
- insertCustomCssToHead: o,
217
- insertGlobalFunctionsToHtml: (s, c = "") => {
218
- if (s)
219
- try {
220
- J(s).then((g) => {
221
- var d, C;
222
- console.log("acron", g), (d = g.functions) == null || d.forEach((r) => {
223
- let w;
224
- const F = r == null ? void 0 : r.text, m = r == null ? void 0 : r.name;
225
- try {
226
- w = new Function(`return ${F}`)();
227
- } catch (T) {
228
- R.error(`Failed to compile function "${m}":`, T);
229
- return;
230
- }
231
- window[m] = w;
232
- }), (C = g.classes) == null || C.forEach((r) => {
233
- const w = r == null ? void 0 : r.text, F = r == null ? void 0 : r.name;
234
- let m;
235
- try {
236
- m = new Function(`return ${w}`)();
237
- } catch (T) {
238
- R.error(`Failed to compile class "${F}":`, T);
239
- return;
240
- }
241
- window[F] = m;
242
- });
243
- });
244
- } catch (g) {
245
- R.error("insert js to head fail", g);
246
- }
247
- },
248
- removeGlobalFunctionsToHtml: (s, c = i) => {
249
- var g = n(s, c);
250
- l(g);
251
- },
252
- removeCustomCssToHead: t
253
- };
254
- }, K = [
255
- "width",
256
- "height",
257
- "display",
258
- "margin",
259
- "margin-left",
260
- "margin-right",
261
- "margin-top",
262
- "margin-bottom"
263
- ], X = (e, t, o) => {
264
- const l = {};
265
- return t.forEach((n) => {
266
- var i = e[n];
267
- A(i) || (l[n] = o ? o(n, i) : i);
268
- }), l;
269
- }, Y = (e, t, o) => {
270
- var n;
271
- const l = {};
272
- return (n = q(e)) == null || n.forEach((i) => {
273
- var h = e[i];
274
- t != null && t.includes(i) || (l[i] = o ? o(i, h) : h);
275
- }), l;
276
- }, D = (e, t) => ["width", "height", "display"].includes(e) ? A(t) || t == "auto" ? t : `${t} !important` : t, et = (e) => new Promise((t) => {
277
- $(e).then((o) => {
278
- var l = o == null ? void 0 : o.map((n) => ({ selector: n.selector, declarations: X(n.declarations, K, D) }));
279
- E(l).then((n) => {
280
- t(n);
281
- });
282
- });
283
- }), nt = (e) => new Promise((t) => {
284
- $(e).then((o) => {
285
- var l = o == null ? void 0 : o.map((n) => ({ selector: n.selector, declarations: Y(n.declarations, K, D) }));
286
- E(l).then((n) => {
287
- t(n);
288
- });
289
- });
290
- }), lt = (e, t) => {
291
- if (!t || !e)
292
- return;
293
- const o = O(e, ":root", `.${t}`), { insertCustomCssToHead: l } = U();
294
- l(o, void 0, t);
295
- }, st = (e, t = !0, o) => {
296
- if (o != null && o === !1)
297
- return [];
298
- const l = Z(e);
299
- return t || (e == null ? void 0 : e.length) <= 0 ? l : l == null ? void 0 : l.filter((n) => {
300
- var i;
301
- return !!(n != null && n.widgetList) && ((i = n == null ? void 0 : n.widgetList) == null ? void 0 : i.length) > 0 || !!n.default || (n == null ? void 0 : n.slotName) === B.default;
302
- });
303
- }, rt = (e, t) => e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.slotName) === t), Z = (e) => N(e);
304
- export {
305
- W as F,
306
- lt as a,
307
- nt as b,
308
- ot as c,
309
- rt as d,
310
- st as g,
311
- Z as i,
312
- et as p,
313
- U as u
314
- };