egova-urbanpro-web 0.0.1

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 (79) hide show
  1. package/README.md +134 -0
  2. package/es/_plugin-vue_export-helper-BwmSBgGG.js +9 -0
  3. package/es/act-menu-refresh-3YeQne1X.js +77 -0
  4. package/es/async-select-modal-lRKCEMBM.js +316 -0
  5. package/es/bulletin-add-Dt1Xi_oL.js +1251 -0
  6. package/es/bulletin-config-Ber1L1T2.js +297 -0
  7. package/es/bulletin-detail-Ce7riX6X.js +1430 -0
  8. package/es/bulletin-detail-file-2Ij39UlM.js +187 -0
  9. package/es/bulletin-drawer-DmwW23ng.js +461 -0
  10. package/es/bulletin-level-Cz_6Mg2x.js +501 -0
  11. package/es/bulletin-manage-JMjvzUhg.js +1526 -0
  12. package/es/bulletin-notify-info-drawer-vR3KSaRS.js +487 -0
  13. package/es/bulletin-property-CvohCK8q.js +656 -0
  14. package/es/bulletin-type-CQS6_MYv.js +675 -0
  15. package/es/bulletin-view-DcdZrV19.js +870 -0
  16. package/es/business-collection-and-repair-B2DfBAsx.js +109 -0
  17. package/es/cascader-filter-DOg-iNnE.js +68 -0
  18. package/es/cascader-multiple-filter-C-cKxmkk.js +103 -0
  19. package/es/chat-BB8_LIT6.js +4634 -0
  20. package/es/checkbox-filter-DC1VaGo9.js +39 -0
  21. package/es/chunk-CHb_fpD5.js +29 -0
  22. package/es/condition-search-criteria-B_HnHQBy.js +190 -0
  23. package/es/constant-CYnp-Cj8.js +4925 -0
  24. package/es/constants-BijBPSuc.js +480 -0
  25. package/es/constants-DQ6XzzDS.js +137 -0
  26. package/es/contact-DxLrJ_f_.js +339 -0
  27. package/es/contact-unit-BvCPmyNK.js +708 -0
  28. package/es/department-radio-filter-BbrntEcc.js +72 -0
  29. package/es/downtime-timer-repair-D_SuN4fE.js +255 -0
  30. package/es/dynamic-form-input-10ce5824-Cju2XHEl.js +60 -0
  31. package/es/dynamic-form-input-number-c60b4ff5-gYvoAgss.js +61 -0
  32. package/es/dynamic-form-login-type-6c9d78bf-CxtLGfA6.js +175 -0
  33. package/es/dynamic-form-multiple-select-3e2bd885-CrD_ALk8.js +77 -0
  34. package/es/dynamic-form-password-57dc81c4-CcmoNfq0.js +84 -0
  35. package/es/dynamic-form-region-tree-b2c57d1c-BRm2M8Er.js +133 -0
  36. package/es/dynamic-form-select-cdbf49ad-C0eLS2zd.js +76 -0
  37. package/es/dynamic-form-upload-768a0d32-ClHw2ZkO.js +116 -0
  38. package/es/egova-urbanpro-web.css +10907 -0
  39. package/es/egova-urbanpro-web.d.ts +79 -0
  40. package/es/egova-urbanpro-web.js +9223 -0
  41. package/es/field-cell-PNcIBk8w.js +93 -0
  42. package/es/field-icon-cell-BQvkUM-O.js +65 -0
  43. package/es/file-cell-ClyA9XoC.js +147 -0
  44. package/es/hooks-CuXq9j8q.js +324 -0
  45. package/es/icon-cell-BF-Nf-QP.js +78 -0
  46. package/es/im-conversation-06-TFmZZ.js +158 -0
  47. package/es/image-cell-cu9ezfsV.js +92 -0
  48. package/es/image-gray-surS1IZ2.js +5 -0
  49. package/es/index-15d85366-BVTMMFAV.js +97 -0
  50. package/es/index-lib-23bd328c-DtcJvHvJ.js +42122 -0
  51. package/es/info-card-DgYedeWN.js +30 -0
  52. package/es/localforage-B_66fZyP.js +1798 -0
  53. package/es/number-filter-SyfJaaIG.js +55 -0
  54. package/es/operation-selector-TEcr5s2w.js +157 -0
  55. package/es/option-style-BTFl4VQj.js +32 -0
  56. package/es/package.json +46 -0
  57. package/es/query-CiRQQsE1.js +11 -0
  58. package/es/radio-filter-t5QSYiRY.js +68 -0
  59. package/es/rec-delete-DBvqRiKp.js +74 -0
  60. package/es/rec-timer-refresh-Dfd6hH2t.js +74 -0
  61. package/es/region-radio-filter-CoybNPaj.js +271 -0
  62. package/es/render-cell-BI9mUiTe.js +45 -0
  63. package/es/select-checkbox-filter-B89vKdLG.js +60 -0
  64. package/es/select-multiple-tree-filter-BEYUKg7q.js +298 -0
  65. package/es/select-radio-filter-BW2P3uwp.js +58 -0
  66. package/es/select-single-tree-filter-CKYo3kV1.js +94 -0
  67. package/es/service-BabEdPB2.js +100 -0
  68. package/es/service-fs3hJh7w.js +126 -0
  69. package/es/text-filter-B80UB8KG.js +66 -0
  70. package/es/time-filter-Nc-cflut.js +211 -0
  71. package/es/types-DjDPFQk1.js +44 -0
  72. package/es/use-file-D_9JbApO.js +58 -0
  73. package/es/user-radio-filter-T79Kp2jW.js +72 -0
  74. package/es/utils-4fqWDxwG.js +2643 -0
  75. package/es/utils-BlJtAQle.js +161 -0
  76. package/es/utils-Cn_7yZzr.js +355 -0
  77. package/es/utils-D-E5UJPP.js +14 -0
  78. package/es/version.json +33 -0
  79. package/package.json +165 -0
@@ -0,0 +1,44 @@
1
+ /*! egova-urbanpro-web v0.0.1 */
2
+ //#region ../egova-urbanpro-core/src/components/linglong/condition-panel/types.ts
3
+ var ModalType = /* @__PURE__ */ function(ModalType) {
4
+ ModalType["USER"] = "user";
5
+ ModalType["DEPARTMENT"] = "department";
6
+ ModalType["REGION"] = "region";
7
+ return ModalType;
8
+ }({});
9
+ var TimeType = /* @__PURE__ */ function(TimeType) {
10
+ TimeType["YEAR"] = "year";
11
+ TimeType["MONTH"] = "month";
12
+ TimeType["DATE"] = "date";
13
+ TimeType["DAY"] = "day";
14
+ TimeType["TIME"] = "time";
15
+ return TimeType;
16
+ }({});
17
+ var LinglongSearchType = /* @__PURE__ */ function(LinglongSearchType) {
18
+ LinglongSearchType["Drawer"] = "drawer";
19
+ LinglongSearchType["Rec"] = "rec";
20
+ return LinglongSearchType;
21
+ }({});
22
+ var ComponentFilterType = /* @__PURE__ */ function(ComponentFilterType) {
23
+ ComponentFilterType["TextFilter"] = "TextFilter";
24
+ ComponentFilterType["SelectCheckboxFilter"] = "SelectCheckboxFilter";
25
+ ComponentFilterType["CascaderFilter"] = "CascaderFilter";
26
+ ComponentFilterType["QueryFieldCascaderMultipleFilter"] = "QueryFieldCascaderMultipleFilter";
27
+ ComponentFilterType["TimeFilter"] = "TimeFilter";
28
+ ComponentFilterType["SelectMultipleTreeFilter"] = "SelectMultipleTreeFilter";
29
+ ComponentFilterType["SelectSingleTreeFilter"] = "SelectSingleTreeFilter";
30
+ ComponentFilterType["SelectRadioFilter"] = "SelectRadioFilter";
31
+ ComponentFilterType["RadioFilter"] = "RadioFilter";
32
+ return ComponentFilterType;
33
+ }({});
34
+ var SelectComponentFilterTypes = [
35
+ ComponentFilterType.SelectCheckboxFilter,
36
+ ComponentFilterType.SelectRadioFilter,
37
+ ComponentFilterType.CascaderFilter,
38
+ ComponentFilterType.QueryFieldCascaderMultipleFilter,
39
+ ComponentFilterType.SelectMultipleTreeFilter,
40
+ ComponentFilterType.SelectSingleTreeFilter,
41
+ ComponentFilterType.RadioFilter
42
+ ];
43
+ //#endregion
44
+ export { TimeType as a, SelectComponentFilterTypes as i, LinglongSearchType as n, ModalType as r, ComponentFilterType as t };
@@ -0,0 +1,58 @@
1
+ /*! egova-urbanpro-web v0.0.1 */
2
+ import { auth, isEmptyText } from "@kyjian/libs/utils";
3
+ import { onMounted, ref } from "vue";
4
+ //#region ../egova-urbanpro-core/src/components/linglong/table-panel/hooks/use-file.ts
5
+ function useLingLongFile() {
6
+ const token = ref();
7
+ const baseUrl = window.commonSetting.linglongServerUrl;
8
+ const casType = window.commonSetting.LINGLONG_TOKEN_CAS_TYPE;
9
+ /**
10
+ * 将后台返回的图片相对地址拼接成完整的访问地址
11
+ * @param path 图片相对地址
12
+ * @returns
13
+ */
14
+ function relativePathWrapper(path) {
15
+ if (!path || path.startsWith("http://") || path.startsWith("https://") || path.startsWith(baseUrl)) return path;
16
+ return baseUrl + path;
17
+ }
18
+ function getFileUrl(fileId, serviceType) {
19
+ if (!fileId) return "";
20
+ if (fileId.startsWith("http")) return fileId;
21
+ if (fileId.includes("/")) return fileId.startsWith(baseUrl) ? fileId : `${baseUrl}/${fileId}`;
22
+ if (isEmptyText(casType)) return `${baseUrl}unity/establish/file/${fileId}/download?access_token=${token.value}&serviceType=${serviceType || ""}`;
23
+ return `${baseUrl}unity/establish/file/${fileId}/download?cas_type=${casType}&cas_token=${token.value}&serviceType=${serviceType || ""}`;
24
+ }
25
+ function geneUrl(file) {
26
+ if (file?.url) return relativePathWrapper(file.url);
27
+ else if (file.fileId) return getFileUrl(file.fileId, file?.serviceType);
28
+ }
29
+ /**
30
+ * a标签下载
31
+ * @param content
32
+ * @param fileName
33
+ * @returns
34
+ */
35
+ function adownloadFile(url, fileName) {
36
+ const a = document.createElement("a");
37
+ a.href = url;
38
+ a.download = fileName;
39
+ a.click();
40
+ a.remove();
41
+ window.URL.revokeObjectURL(url);
42
+ }
43
+ onMounted(async () => {
44
+ try {
45
+ const { accessToken } = await auth.get() ?? { accessToken: "" };
46
+ token.value = accessToken;
47
+ } catch (e) {
48
+ console.log(e);
49
+ }
50
+ });
51
+ return {
52
+ adownloadFile,
53
+ getFileUrl,
54
+ geneUrl
55
+ };
56
+ }
57
+ //#endregion
58
+ export { useLingLongFile as t };
@@ -0,0 +1,72 @@
1
+ /*! egova-urbanpro-web v0.0.1 */
2
+ import "./utils-4fqWDxwG.js";
3
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwmSBgGG.js";
4
+ import "./types-DjDPFQk1.js";
5
+ import "./service-BabEdPB2.js";
6
+ import { t as async_select_modal_default } from "./async-select-modal-lRKCEMBM.js";
7
+ import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock, ref, resolveComponent } from "vue";
8
+ import { Input } from "ant-design-vue/es";
9
+ //#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/user-radio-filter/index.ts?vue&type=script&src=true&lang.ts
10
+ var index_ts_vue_type_script_src_true_lang_default = defineComponent({
11
+ name: "CUserRadioFilter",
12
+ components: { CAsyncSelectModal: async_select_modal_default },
13
+ inheritAttrs: false,
14
+ props: {
15
+ name: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ modelRef: {
20
+ type: Object,
21
+ default: () => null
22
+ }
23
+ },
24
+ emits: ["update"],
25
+ setup(props, { emit, expose }) {
26
+ const visible = ref(false);
27
+ function getValue() {
28
+ return props.modelRef[props.name];
29
+ }
30
+ function handleClick() {
31
+ visible.value = true;
32
+ }
33
+ function ok(node) {
34
+ const values = node.map((item) => item?.name);
35
+ emit("update", props.name, values.join(","));
36
+ }
37
+ expose({ getValue });
38
+ return {
39
+ visible,
40
+ getValue,
41
+ handleClick,
42
+ ok
43
+ };
44
+ }
45
+ });
46
+ //#endregion
47
+ //#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/user-radio-filter/index.vue
48
+ var _hoisted_1 = { class: "c-user-radio-filter" };
49
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
50
+ const _component_a_input = Input;
51
+ const _component_c_async_select_modal = resolveComponent("c-async-select-modal");
52
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_a_input, mergeProps(_ctx.$attrs, {
53
+ value: _ctx.modelRef[_ctx.name].value1,
54
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.modelRef[_ctx.name].value1 = $event),
55
+ "allow-clear": "",
56
+ onClick: _ctx.handleClick
57
+ }), null, 16, ["value", "onClick"]), createVNode(_component_c_async_select_modal, {
58
+ visible: _ctx.visible,
59
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.visible = $event),
60
+ title: "人员",
61
+ value: _ctx.modelRef[_ctx.name].value1,
62
+ type: "user",
63
+ onOk: _ctx.ok
64
+ }, null, 8, [
65
+ "visible",
66
+ "value",
67
+ "onOk"
68
+ ])]);
69
+ }
70
+ var user_radio_filter_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-8731818b"]]);
71
+ //#endregion
72
+ export { user_radio_filter_default as default };