hlrender 0.0.185 → 0.0.187

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 (106) hide show
  1. package/{_pdf-131f9449.js → _pdf-3bd0d20d.js} +2 -2
  2. package/{_txt-c9c148a4.js → _txt-0d4eb820.js} +2 -2
  3. package/{affix-widget-2d25c06b.js → affix-widget-0b1455f1.js} +10 -10
  4. package/{alert-widget-90c93ef7.js → alert-widget-44926896.js} +10 -10
  5. package/{anchor-widget-057950e1.js → anchor-widget-c768e705.js} +7 -7
  6. package/{auto-complete-widget-27351a6b.js → auto-complete-widget-e0a5e3fc.js} +9 -9
  7. package/{avatar-widget-eabedfac.js → avatar-widget-44211b2d.js} +10 -10
  8. package/{backtop-widget-ee4a1a25.js → backtop-widget-a0b0b038.js} +10 -10
  9. package/{badge-widget-e2671e78.js → badge-widget-c994e5b1.js} +10 -10
  10. package/{barcode-widget-93b8415a.js → barcode-widget-fbf9b586.js} +7 -7
  11. package/{baseImp-34df94a9.js → baseImp-eeae6e62.js} +32 -31
  12. package/{breadcrumb-widget-dee72e7d.js → breadcrumb-widget-553e07be.js} +7 -7
  13. package/{button-widget-1ebb0c98.js → button-widget-8104b3ea.js} +10 -10
  14. package/{cache-widget-c2439285.js → cache-widget-51f27b93.js} +8 -8
  15. package/{card-widget-3ba653a3.js → card-widget-ef051848.js} +8 -8
  16. package/{carousel-widget-3b96e3b3.js → carousel-widget-7ccd0238.js} +8 -8
  17. package/{cascader-widget-236b97a3.js → cascader-widget-78048aee.js} +8 -8
  18. package/{chart-widget-f35ff5ea.js → chart-widget-df741397.js} +7 -7
  19. package/{checkbox-widget-e88f1cb2.js → checkbox-widget-4b660967.js} +8 -8
  20. package/{collapse-widget-f821cdc3.js → collapse-widget-a0f0963b.js} +8 -8
  21. package/{color-picker-widget-25959d37.js → color-picker-widget-863179a2.js} +8 -8
  22. package/{cont-cell-widget-23ea3095.js → cont-cell-widget-3646bd70.js} +1 -1
  23. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-f26211c6.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-1a616458.js} +5 -5
  24. package/{cont-widget-7b006e0a.js → cont-widget-ab7090c3.js} +5 -5
  25. package/{content-wrapper-55a66c65.js → content-wrapper-c145f7f5.js} +3 -3
  26. package/{content-wrapper.vue_vue_type_script_setup_true_lang-3bded546.js → content-wrapper.vue_vue_type_script_setup_true_lang-cd9a08e8.js} +2 -2
  27. package/{date-picker-range-widget-68b2f423.js → date-picker-range-widget-8cbca545.js} +8 -8
  28. package/{date-picker-widget-31035760.js → date-picker-widget-71ec5e3b.js} +8 -8
  29. package/{default-slot-widget-07b0dbb8.js → default-slot-widget-001091e8.js} +8 -8
  30. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-1d8bb756.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7b72063a.js} +5 -5
  31. package/{descriptions-widget-ac6bc935.js → descriptions-widget-cdc334fe.js} +8 -8
  32. package/{dialog-widget-2a83d23d.js → dialog-widget-ceae3799.js} +9 -9
  33. package/{divider-widget-ec2747d2.js → divider-widget-6fac0dfb.js} +10 -10
  34. package/{drag-wrapper-c59c4c2e.js → drag-wrapper-1bdfa424.js} +5 -5
  35. package/{drawer-widget-2cb72ad4.js → drawer-widget-f3f48ea7.js} +9 -9
  36. package/{dropdown-widget-a24ca70d.js → dropdown-widget-9939392d.js} +8 -8
  37. package/{empty-widget-0595c77a.js → empty-widget-6e8579ec.js} +10 -10
  38. package/{expression-74fda04b.js → expression-d0123c5e.js} +1508 -1598
  39. package/{feedback-widget-314e2d51.js → feedback-widget-e1e18fba.js} +9 -9
  40. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-8618f96a.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-82f64c7d.js} +5 -5
  41. package/{file-upload-widget-4628ce22.js → file-upload-widget-dcafb2be.js} +12 -12
  42. package/{form-item-wrapper-191c53dd.js → form-item-wrapper-84598375.js} +4 -4
  43. package/{form-widget-144239ca.js → form-widget-9b0b18df.js} +24 -24
  44. package/{grid-col-widget-c67ef62e.js → grid-col-widget-99c72f79.js} +1 -1
  45. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-7c17a34b.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ed9bc97d.js} +5 -5
  46. package/{grid-widget-f8fc5208.js → grid-widget-b6b76d70.js} +5 -5
  47. package/{html-text-widget-6fa493bb.js → html-text-widget-67b8c978.js} +8 -8
  48. package/{icon-widget-b77fdd06.js → icon-widget-f7e35b5a.js} +7 -7
  49. package/{iframe-widget-7e427a5a.js → iframe-widget-44c375cf.js} +21 -21
  50. package/{image-widget-984c9c2e.js → image-widget-5e761ae1.js} +7 -7
  51. package/{index-f91caf30.js → index-14f9aa2a.js} +2 -2
  52. package/{input-number-widget-77310794.js → input-number-widget-2df910db.js} +8 -8
  53. package/{input-widget-16224b56.js → input-widget-f974ab2a.js} +9 -9
  54. package/{link-widget-b404b671.js → link-widget-54ac65f0.js} +10 -10
  55. package/{ltable-col-widget-896404c4.js → ltable-col-widget-7e6d51d4.js} +1 -1
  56. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-0707cd74.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-2320114b.js} +7 -7
  57. package/{ltable-widget-3e8b7b6a.js → ltable-widget-d92b3be0.js} +5 -5
  58. package/{menu-widget-2d99d149.js → menu-widget-3e385a3b.js} +23 -23
  59. package/{model-widget-ed157607.js → model-widget-cfeb5dcc.js} +17 -17
  60. package/{multirow-b2374237.js → multirow-d0073f18.js} +4 -4
  61. package/{multirow-widget-7a4c0368.js → multirow-widget-c27ebf37.js} +8 -8
  62. package/package.json +1 -1
  63. package/{pagination-widget-aadb3bb1.js → pagination-widget-b309f17e.js} +7 -7
  64. package/{picture-upload-widget-0925cbd5.js → picture-upload-widget-7f60776a.js} +9 -9
  65. package/{progress-widget-3151b146.js → progress-widget-ea485fdc.js} +8 -8
  66. package/{propresult-f48ce2a4.js → propresult-9ceda396.js} +1 -1
  67. package/{qrcode-widget-adabf82e.js → qrcode-widget-da751760.js} +7 -7
  68. package/{radio-widget-8961be07.js → radio-widget-c0fab6b9.js} +8 -8
  69. package/{range-widget-a68b01e2.js → range-widget-3e722b7b.js} +9 -9
  70. package/{rate-widget-8c6a70c1.js → rate-widget-22986fd6.js} +8 -8
  71. package/render.es.js +318 -318
  72. package/render.umd.js +1035 -757
  73. package/{result-widget-6494639a.js → result-widget-8e55ec2a.js} +8 -8
  74. package/{rich-editor-widget-191be094.js → rich-editor-widget-9c7e538d.js} +8 -8
  75. package/{router-widget-44ff4834.js → router-widget-841c8835.js} +7 -7
  76. package/{select-widget-bdf04cd8.js → select-widget-316a2f53.js} +8 -8
  77. package/{sfc-daae578a.js → sfc-dfe623cb.js} +4 -4
  78. package/{sfcview-26ae5b36.js → sfcview-694f177c.js} +10 -10
  79. package/{share-field-30152a7e.js → share-field-ff475cc4.js} +29 -29
  80. package/{share-file-6fcb2d58.js → share-file-6ddfaf13.js} +7 -7
  81. package/{slider-widget-e13b7d99.js → slider-widget-b80de511.js} +8 -8
  82. package/slot-c2bd5ea0.js +130468 -0
  83. package/{static-text-widget-abeae5d3.js → static-text-widget-ba300124.js} +8 -8
  84. package/{steps-widget-cdae8f63.js → steps-widget-037fe073.js} +7 -7
  85. package/{subMenu-widget-fd5f022f.js → subMenu-widget-645e66f4.js} +3 -3
  86. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-e5528e4e.js → subMenu-widget.vue_vue_type_script_setup_true_lang-8cc57ba7.js} +7 -7
  87. package/{switch-widget-0e6ac18f.js → switch-widget-879a0b79.js} +8 -8
  88. package/{tab-pane-widget-7bf76d89.js → tab-pane-widget-2d3f5da9.js} +1 -1
  89. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-11fd8e16.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-48649121.js} +5 -5
  90. package/{table-col-widget-738ea32a.js → table-col-widget-fe7bff20.js} +7 -7
  91. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-9463394c.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-265408ac.js} +4 -4
  92. package/{table-widget-fb7433b8.js → table-widget-bf69337e.js} +30 -30
  93. package/{tabs-widget-eae56e2a.js → tabs-widget-238a3621.js} +6 -6
  94. package/{tag-widget-a6c52426.js → tag-widget-ccaa9add.js} +10 -10
  95. package/{text-widget-0cf49a0b.js → text-widget-a2c9cc5b.js} +10 -10
  96. package/{textarea-widget-0bf78e68.js → textarea-widget-bba679f3.js} +8 -8
  97. package/{time-picker-range-widget-c7daba5c.js → time-picker-range-widget-fa18dfce.js} +8 -8
  98. package/{time-picker-widget-71408102.js → time-picker-widget-e20b1564.js} +8 -8
  99. package/{time-select-widget-117c318d.js → time-select-widget-533ac7ec.js} +8 -8
  100. package/{tmpl-widget-5dbf17d3.js → tmpl-widget-80c1cbd9.js} +8 -8
  101. package/{tree-select-widget-3478e584.js → tree-select-widget-ebf50e0c.js} +8 -8
  102. package/{tree-widget-247ed2df.js → tree-widget-374533fa.js} +7 -7
  103. package/{verifycode-widget-e2dfd194.js → verifycode-widget-0d8c86a6.js} +7 -7
  104. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-0d831629.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e0ddef3b.js} +3 -3
  105. package/{wrapper-widget-9e0bc20a.js → wrapper-widget-5e0007e2.js} +5 -5
  106. package/slot-e51118c3.js +0 -208
@@ -1,21 +1,21 @@
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-5eeafa5c.js";
3
3
  import { I as G } from "./widget-base-4c2d6265.js";
4
- import { b as H } from "./share-field-30152a7e.js";
5
- import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-0d831629.js";
6
- import { D as v } from "./drag-wrapper-c59c4c2e.js";
7
- import { i as Q, d as U } from "./slot-e51118c3.js";
8
- import { c as X } from "./multirow-b2374237.js";
9
- import { b as Y } from "./expression-74fda04b.js";
4
+ import { b as H } from "./share-field-ff475cc4.js";
5
+ import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e0ddef3b.js";
6
+ import { D as v } from "./drag-wrapper-1bdfa424.js";
7
+ import { i as Q, d as U } from "./slot-c2bd5ea0.js";
8
+ import { c as X } from "./multirow-d0073f18.js";
9
+ import { b as Y } from "./expression-d0123c5e.js";
10
10
  import { _ as Z } from "./_plugin-vue_export-helper-dad06003.js";
11
11
  import "./icon-a0e0cdb0.js";
12
- import "./baseImp-34df94a9.js";
12
+ import "./baseImp-eeae6e62.js";
13
13
  import "./enum-type-c44af727.js";
14
14
  import "./dialog-265a6e9e.js";
15
15
  import "./_commonjsHelpers-e7ea1525.js";
16
16
  import "./uuid-f9e11f04.js";
17
17
  import "element-plus";
18
- import "./index-f91caf30.js";
18
+ import "./index-14f9aa2a.js";
19
19
  import "./index-5a2da8b2.js";
20
20
  import "./fieldobj-8b1bd2cd.js";
21
21
  import "./source-map-b04aec4a.js";
@@ -1,21 +1,21 @@
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-5eeafa5c.js";
3
3
  import { I as te } from "./field-base-5547436d.js";
4
- import { b as oe } from "./share-field-30152a7e.js";
5
- import re from "./form-item-wrapper-191c53dd.js";
6
- import { b as y, w as le } from "./expression-74fda04b.js";
4
+ import { b as oe } from "./share-field-ff475cc4.js";
5
+ import re from "./form-item-wrapper-84598375.js";
6
+ import { b as y, w as le } from "./expression-d0123c5e.js";
7
7
  import "./widget-base-4c2d6265.js";
8
- import "./multirow-b2374237.js";
9
- import "./baseImp-34df94a9.js";
8
+ import "./multirow-d0073f18.js";
9
+ import "./baseImp-eeae6e62.js";
10
10
  import "./enum-type-c44af727.js";
11
11
  import "./icon-a0e0cdb0.js";
12
12
  import "./dialog-265a6e9e.js";
13
13
  import "./_commonjsHelpers-e7ea1525.js";
14
14
  import "./uuid-f9e11f04.js";
15
15
  import "element-plus";
16
- import "./index-f91caf30.js";
17
- import "./slot-e51118c3.js";
18
- import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-0d831629.js";
16
+ import "./index-14f9aa2a.js";
17
+ import "./slot-c2bd5ea0.js";
18
+ import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e0ddef3b.js";
19
19
  import "./index-5a2da8b2.js";
20
20
  import "./_plugin-vue_export-helper-dad06003.js";
21
21
  import "./fieldobj-8b1bd2cd.js";
@@ -1,20 +1,20 @@
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-30152a7e.js";
4
- import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-0d831629.js";
5
- import { b as n, w as G } from "./expression-74fda04b.js";
3
+ import { b as U } from "./share-field-ff475cc4.js";
4
+ import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e0ddef3b.js";
5
+ import { b as n, w as G } from "./expression-d0123c5e.js";
6
6
  import { s as a } from "./enum-type-5eeafa5c.js";
7
7
  import "./widget-base-4c2d6265.js";
8
- import "./multirow-b2374237.js";
9
- import "./baseImp-34df94a9.js";
8
+ import "./multirow-d0073f18.js";
9
+ import "./baseImp-eeae6e62.js";
10
10
  import "./enum-type-c44af727.js";
11
11
  import "./icon-a0e0cdb0.js";
12
12
  import "./dialog-265a6e9e.js";
13
13
  import "./_commonjsHelpers-e7ea1525.js";
14
14
  import "./uuid-f9e11f04.js";
15
15
  import "element-plus";
16
- import "./index-f91caf30.js";
17
- import "./slot-e51118c3.js";
16
+ import "./index-14f9aa2a.js";
17
+ import "./slot-c2bd5ea0.js";
18
18
  import "./index-5a2da8b2.js";
19
19
  import "./_plugin-vue_export-helper-dad06003.js";
20
20
  import "./fieldobj-8b1bd2cd.js";
@@ -1,8 +1,8 @@
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
- import { w as V } from "./expression-74fda04b.js";
2
+ import { w as V } from "./expression-d0123c5e.js";
3
3
  import { I as z } from "./field-base-5547436d.js";
4
- import { b as T } from "./share-field-30152a7e.js";
5
- import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-0d831629.js";
4
+ import { b as T } from "./share-field-ff475cc4.js";
5
+ import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e0ddef3b.js";
6
6
  import { R as E } from "./enum-type-5eeafa5c.js";
7
7
  import { _ as R } from "./_plugin-vue_export-helper-dad06003.js";
8
8
  import "./source-map-b04aec4a.js";
@@ -10,14 +10,14 @@ import "./uuid-f9e11f04.js";
10
10
  import "./_commonjsHelpers-e7ea1525.js";
11
11
  import "./esprima-e8d15055.js";
12
12
  import "./widget-base-4c2d6265.js";
13
- import "./multirow-b2374237.js";
14
- import "./baseImp-34df94a9.js";
13
+ import "./multirow-d0073f18.js";
14
+ import "./baseImp-eeae6e62.js";
15
15
  import "./enum-type-c44af727.js";
16
16
  import "./icon-a0e0cdb0.js";
17
17
  import "./dialog-265a6e9e.js";
18
18
  import "element-plus";
19
- import "./index-f91caf30.js";
20
- import "./slot-e51118c3.js";
19
+ import "./index-14f9aa2a.js";
20
+ import "./slot-c2bd5ea0.js";
21
21
  import "./index-5a2da8b2.js";
22
22
  import "./fieldobj-8b1bd2cd.js";
23
23
  const F = { class: "s-canvas" }, L = ["width", "height"], $ = /* @__PURE__ */ g({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as le, resolveComponent as U, openBlock as l, createElementBlock as v, Fragment as j, createVNode as o, createCommentVNode as y, createBlock as W, createSlots as ne, withCtx as r, createElementVNode as z, renderList as ie, createTextVNode as C, toDisplayString as b, withModifiers as w, unref as n, renderSlot as S, computed as h, ref as se, resolveDynamicComponent as de, mergeProps as E, toHandlers as pe } from "vue";
2
2
  import { e as g, c as ue, R as oe } from "./enum-type-5eeafa5c.js";
3
3
  import { I as me, a as ge } from "./widget-base-4c2d6265.js";
4
- import { a as re, i as fe, j as we, k as ve } from "./index-f91caf30.js";
4
+ import { a as re, i as fe, j as we, k as ve } from "./index-14f9aa2a.js";
5
5
  import { S as m } from "./index-5a2da8b2.js";
6
- import { f as he } from "./baseImp-34df94a9.js";
6
+ import { h as he } from "./baseImp-eeae6e62.js";
7
7
  import { c as X, S as ye } from "./enum-type-c44af727.js";
8
8
  import { u as We } from "./fieldobj-8b1bd2cd.js";
9
- import { b as N } from "./expression-74fda04b.js";
9
+ import { b as N } from "./expression-d0123c5e.js";
10
10
  const ce = { key: 0 }, ke = { class: "clWhite" }, Ce = { class: "clWhite" }, be = ["title"], Le = ["title"], $e = ["title"], Se = ["title"], Te = /* @__PURE__ */ le({
11
11
  __name: "drag-handler",
12
12
  props: { ...me, parentTree: { type: Object, default: null }, hidden: { type: Boolean, default: !1 }, simple: { type: Boolean } },
@@ -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-c59c4c2e.js";
4
- import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-0d831629.js";
5
- import { w as F } from "./expression-74fda04b.js";
3
+ import { D as A } from "./drag-wrapper-1bdfa424.js";
4
+ import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e0ddef3b.js";
5
+ import { w as F } from "./expression-d0123c5e.js";
6
6
  import { W as v } from "./enum-type-c44af727.js";
7
- import { b as N, a as $ } from "./share-field-30152a7e.js";
8
- import { c as E } from "./slot-e51118c3.js";
7
+ import { b as N, a as $ } from "./share-field-ff475cc4.js";
8
+ import { c as E } from "./slot-c2bd5ea0.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-e51118c3.js DELETED
@@ -1,208 +0,0 @@
1
- var V = Object.defineProperty;
2
- var q = (o, l, t) => l in o ? V(o, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[l] = t;
3
- var c = (o, l, t) => (q(o, typeof l != "symbol" ? l + "" : l, t), t);
4
- import { inject as h, provide as C, computed as r } from "vue";
5
- import { d as g, b as a, r as x, u as B, s as E } from "./expression-74fda04b.js";
6
- import { B as _ } from "./baseImp-34df94a9.js";
7
- import { c as F, i as G, j as H, o as z } from "./enum-type-5eeafa5c.js";
8
- class M {
9
- constructor() {
10
- /**
11
- * 当前表单引用库
12
- * 假设表单组件位于表单form中,则该引用注册入库
13
- */
14
- c(this, "formRefList", {});
15
- /**
16
- * 全局引用库
17
- */
18
- c(this, "globalRefList", {});
19
- /**
20
- * 全局数据对象
21
- */
22
- c(this, "globalDataModel", {});
23
- /**
24
- * 当前表单名称
25
- */
26
- c(this, "globalFormName", "");
27
- /**
28
- * 全局页面名称
29
- */
30
- // globalPageName?: string = "";
31
- /**
32
- * 用于类似template组件的数据绑定传递
33
- */
34
- c(this, "rowScope", {});
35
- /**
36
- * 渲染器调用者传入的配置参数,如接口地址、密钥等
37
- */
38
- c(this, "globalConfig", {});
39
- }
40
- static globalInject() {
41
- const l = new M();
42
- return l.formRefList = h(g.refList, {}), l.globalRefList = h(g.allRefList, {}), l.globalDataModel = h(g.globalModel, {}), l.rowScope = h(g.rowScope, {}), l.globalFormName = h(g.globalForm, ""), l.globalConfig = h(g.globalConfig, {}), l;
43
- }
44
- static globalProvide(l) {
45
- if ((l == null ? void 0 : l.globalDataModel) !== void 0) {
46
- const t = (l == null ? void 0 : l.globalDataModel) || {};
47
- C(g.globalModel, t);
48
- }
49
- if ((l == null ? void 0 : l.rowScope) !== void 0) {
50
- const t = (l == null ? void 0 : l.rowScope) || {};
51
- C(g.rowScope, t);
52
- }
53
- if ((l == null ? void 0 : l.globalRefList) !== void 0) {
54
- const t = (l == null ? void 0 : l.globalRefList) || {};
55
- C(g.allRefList, t);
56
- }
57
- if ((l == null ? void 0 : l.formRefList) !== void 0) {
58
- const t = (l == null ? void 0 : l.formRefList) || {};
59
- C(g.refList, t);
60
- }
61
- if ((l == null ? void 0 : l.globalFormName) !== void 0) {
62
- const t = (l == null ? void 0 : l.globalFormName) || "";
63
- C(g.globalForm, t);
64
- }
65
- if ((l == null ? void 0 : l.globalConfig) !== void 0) {
66
- const t = (l == null ? void 0 : l.globalConfig) || "";
67
- C(g.globalConfig, t);
68
- }
69
- }
70
- }
71
- function j(o) {
72
- const l = (e, w = !1) => _.getOptions(o == null ? void 0 : o.widget, e, w, !(o != null && o.designState)), t = r(() => l(a.ctrlWidth) || "auto"), n = r(() => l(a.ctrlHeight) || "auto"), s = r(() => l(a.displayLayout)), i = r(() => {
73
- var e = l(a.customClass);
74
- return Array.isArray(e) ? e == null ? void 0 : e.join(" ") : e;
75
- }), b = r(() => {
76
- var e = l(a.componentWrapperClass);
77
- return Array.isArray(e) ? e == null ? void 0 : e.join(" ") : e;
78
- }), f = r(() => l(a.css)), u = r(() => {
79
- var e = l(a.componentRootClass);
80
- return Array.isArray(e) ? e == null ? void 0 : e.join(" ") : e;
81
- }), N = r(() => {
82
- var e, w;
83
- return (w = F((e = l(a.required, !0)) == null ? void 0 : e.options)) == null ? void 0 : w.enable;
84
- }), K = r(() => l(a.hidden)), y = r(() => l(a.labelTooltip)), L = r(() => l(a.labelIconClass)), R = r(() => l(a.labelIconPosition)), S = r(() => l(a.labelHidden)), A = r(() => l(a.label)), W = r(() => l(a.labelWidth)), d = r(() => l(a.labelAlign));
85
- return {
86
- //size,
87
- attrs: r(() => ({
88
- required: N.value,
89
- label: A.value,
90
- labelHidden: S.value,
91
- labelAlign: d.value,
92
- labelIconClass: L.value,
93
- labelIconPosition: R.value,
94
- labelTooltip: y.value,
95
- labelWidth: W.value,
96
- ctrlWidth: t.value
97
- })),
98
- labelAlign: d,
99
- labelHidden: S,
100
- labelIconClass: L,
101
- labelIconPosition: R,
102
- labelTooltip: y,
103
- labelWidth: W,
104
- label: A,
105
- displayLayout: s,
106
- hidden: K,
107
- // required,
108
- ctrlWidth: t,
109
- ctrlHeight: n,
110
- customClass: i,
111
- componentWrapperClass: b,
112
- componentRootClass: u,
113
- css: f
114
- };
115
- }
116
- const T = (o = "") => new Promise((l) => {
117
- import("./index-3aaf8638.js").then((t) => {
118
- const n = t.parse(o, {
119
- positions: !0,
120
- parseValue: !1
121
- }), s = [];
122
- t.walk(n, {
123
- visit: "Rule",
124
- enter(i) {
125
- const b = t.generate(i.prelude), f = {};
126
- t.walk(i, {
127
- visit: "Declaration",
128
- enter(u) {
129
- u.property && (f[u.property] = t.generate(u.value));
130
- }
131
- }), s.push({ selector: b, declarations: f });
132
- }
133
- }), l(s);
134
- });
135
- }), D = (o) => new Promise((l) => {
136
- import("./index-3aaf8638.js").then((t) => {
137
- const n = J(o), s = t.parse(n, { context: "stylesheet" });
138
- l(t.generate(s));
139
- });
140
- });
141
- function J(o) {
142
- return o.map((t) => {
143
- var s, i, b;
144
- const n = (b = (i = (s = Object.entries(t.declarations)) == null ? void 0 : s.filter(([f, u]) => !G(u) && u !== "")) == null ? void 0 : i.sort(([f], [u]) => f > u ? 1 : -1)) == null ? void 0 : b.map(([f, u]) => `${f}: ${u};`);
145
- return `${t.selector} { ${n.join(" ")} }`;
146
- }).join(`
147
- `);
148
- }
149
- const O = [
150
- "width",
151
- "height",
152
- "display",
153
- "margin",
154
- "margin-left",
155
- "margin-right",
156
- "margin-top",
157
- "margin-bottom"
158
- ], Q = (o, l, t) => {
159
- const n = {};
160
- return l.forEach((s) => {
161
- var i = o[s];
162
- H(i) || (n[s] = t ? t(s, i) : i);
163
- }), n;
164
- }, U = (o, l, t) => {
165
- var s;
166
- const n = {};
167
- return (s = z(o)) == null || s.forEach((i) => {
168
- var b = o[i];
169
- l != null && l.includes(i) || (n[i] = t ? t(i, b) : b);
170
- }), n;
171
- }, $ = (o, l) => ["width", "height", "display"].includes(o) ? H(l) || l == "auto" ? l : `${l} !important` : l, I = (o) => new Promise((l) => {
172
- T(o).then((t) => {
173
- var n = t == null ? void 0 : t.map((s) => ({ selector: s.selector, declarations: Q(s.declarations, O, $) }));
174
- D(n).then((s) => {
175
- l(s);
176
- });
177
- });
178
- }), P = (o) => new Promise((l) => {
179
- T(o).then((t) => {
180
- var n = t == null ? void 0 : t.map((s) => ({ selector: s.selector, declarations: U(s.declarations, O, $) }));
181
- D(n).then((s) => {
182
- l(s);
183
- });
184
- });
185
- }), ll = (o, l) => {
186
- if (!l || !o)
187
- return;
188
- const t = x(o, ":root", `.${l}`), { insertCustomCssToHead: n } = B();
189
- n(t, void 0, l);
190
- }, tl = (o, l = !0, t) => {
191
- if (t != null && t === !1)
192
- return [];
193
- const n = X(o);
194
- return l || (o == null ? void 0 : o.length) <= 0 ? n : n == null ? void 0 : n.filter((s) => {
195
- var i;
196
- return !!(s != null && s.widgetList) && ((i = s == null ? void 0 : s.widgetList) == null ? void 0 : i.length) > 0 || !!s.default || (s == null ? void 0 : s.slotName) === E.default;
197
- });
198
- }, ol = (o, l) => o == null ? void 0 : o.find((t) => (t == null ? void 0 : t.slotName) === l), X = (o) => F(o);
199
- export {
200
- M as F,
201
- ll as a,
202
- P as b,
203
- j as c,
204
- ol as d,
205
- tl as g,
206
- X as i,
207
- I as p
208
- };