@kyfe/fms-vue2-components 0.0.2 → 0.0.4

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 (154) hide show
  1. package/dist/assets/css/fms-ks-clamp-text.css +1 -0
  2. package/dist/assets/css/fms-ks-components.css +1 -0
  3. package/dist/assets/css/fms-ks-popover.css +1 -0
  4. package/dist/assets/css/fms-ks-search-tips-new.css +1 -0
  5. package/dist/assets/css/fms-ks-search-tips.css +1 -0
  6. package/dist/assets/css/fms-ks-select-box.css +1 -0
  7. package/dist/assets/css/fms-ks-select.css +1 -0
  8. package/dist/date-picker-bottom.17e75dc0.js +45 -0
  9. package/dist/date-picker-dropdown.1d8e9f00.js +34 -0
  10. package/dist/date-picker-right.b939e886.js +23 -0
  11. package/dist/date-picker-top.c38046f7.js +23 -0
  12. package/dist/date-range-select.647edaf6.js +69 -0
  13. package/dist/date-select.96eb3a9d.js +60 -0
  14. package/dist/date-week-month.169b98bc.js +57 -0
  15. package/dist/datetime-popup/index.js +411 -0
  16. package/dist/filter.c93f4ddb.js +45 -0
  17. package/dist/fms-copy-box/index.js +1 -1
  18. package/dist/fms-ks-block-title/index.js +38 -0
  19. package/dist/fms-ks-block-title/style.css +1 -0
  20. package/dist/fms-ks-clamp-text/index.js +9 -0
  21. package/dist/fms-ks-clamp-text.24eb5e8d.js +53 -0
  22. package/dist/fms-ks-components/index.js +9 -0
  23. package/dist/fms-ks-components.a5d9329b.js +4392 -0
  24. package/dist/fms-ks-decrypt/index.js +2 -2
  25. package/dist/fms-ks-decrypt.2f88e659.js +312 -0
  26. package/dist/fms-ks-file-upload/index.js +32 -31
  27. package/dist/fms-ks-file-upload/style.css +1 -1
  28. package/dist/fms-ks-form-grid/index.js +101 -0
  29. package/dist/fms-ks-form-grid/style.css +1 -0
  30. package/dist/fms-ks-more-lines/index.js +31 -0
  31. package/dist/fms-ks-more-lines/style.css +1 -0
  32. package/dist/fms-ks-page-popup/index.js +68 -0
  33. package/dist/fms-ks-page-popup/style.css +1 -0
  34. package/dist/fms-ks-picker/index.js +9 -0
  35. package/dist/fms-ks-picker.766b55f9.js +61 -0
  36. package/dist/fms-ks-popover/index.js +9 -0
  37. package/dist/fms-ks-popover.55ab4b82.js +95 -0
  38. package/dist/fms-ks-search-tips/index.js +9 -0
  39. package/dist/fms-ks-search-tips-new/index.js +9 -0
  40. package/dist/fms-ks-search-tips-new.7d08f710.js +125 -0
  41. package/dist/fms-ks-search-tips.d36859c3.js +142 -0
  42. package/dist/fms-ks-select/index.js +9 -0
  43. package/dist/fms-ks-select-box/index.js +9 -0
  44. package/dist/fms-ks-select-box.a00f0f08.js +43 -0
  45. package/dist/fms-ks-select.59416fd8.js +157 -0
  46. package/dist/fms-ks-warn-drawer/index.js +37 -0
  47. package/dist/fms-ks-warn-drawer/style.css +1 -0
  48. package/dist/fms-scroll-list/index.js +3 -1
  49. package/dist/index.js +30 -30
  50. package/dist/mixin.f4bc60f0.js +59 -0
  51. package/dist/month-range-select.374653da.js +97 -0
  52. package/dist/month-select.30ae7335.js +71 -0
  53. package/dist/oa-datetime-picker-new/style.css +1 -0
  54. package/dist/quarter-select.b6256880.js +73 -0
  55. package/dist/utils.159fba19.js +64 -0
  56. package/dist/week-select.27efca5c.js +70 -0
  57. package/package.json +31 -31
  58. package/src/assets/images/attachment/icon_default.svg +23 -0
  59. package/src/assets/images/attachment/icon_default_new.png +0 -0
  60. package/src/assets/images/attachment/icon_excel.svg +20 -0
  61. package/src/assets/images/attachment/icon_excel_new.png +0 -0
  62. package/src/assets/images/attachment/icon_file.png +0 -0
  63. package/src/assets/images/attachment/icon_pdf_new.png +0 -0
  64. package/src/assets/images/attachment/icon_ppt.svg +20 -0
  65. package/src/assets/images/attachment/icon_ppt_new.png +0 -0
  66. package/src/assets/images/attachment/icon_preview_file.png +0 -0
  67. package/src/assets/images/attachment/icon_txt.png +0 -0
  68. package/src/assets/images/attachment/icon_word.svg +19 -0
  69. package/src/assets/images/attachment/icon_word_new.png +0 -0
  70. package/src/assets/images/attachment/icon_xmind.png +0 -0
  71. package/src/assets/images/icon-arrow.png +0 -0
  72. package/src/assets/images/icon-forewarning.svg +1 -0
  73. package/src/components/date-picker/index.vue +205 -0
  74. package/src/components/datetime-picker-general/index.vue +161 -0
  75. package/src/components/datetime-popup/date-picker.js +217 -0
  76. package/src/components/datetime-popup/index.js +37 -0
  77. package/src/components/datetime-popup/index.vue +111 -0
  78. package/src/components/datetime-popup/mixin.js +125 -0
  79. package/src/components/datetime-popup/time-picker.js +102 -0
  80. package/src/components/datetime-popup/utils.js +124 -0
  81. package/src/components/datetime-popup//347/244/272/344/276/213/345/233/276.png +0 -0
  82. package/src/components/decrypt/README.md +0 -0
  83. package/src/components/decrypt/index.vue +73 -0
  84. package/src/components/fms-ks-block-title/fms-ks-block-title.vue +75 -0
  85. package/src/components/fms-ks-block-title/index.js +7 -0
  86. package/src/components/fms-ks-block-title//346/240/207/351/242/230.md +0 -0
  87. package/src/components/fms-ks-clamp-text/fms-ks-clamp-text.vue +66 -0
  88. package/src/components/fms-ks-clamp-text/images/icon-clamp.png +0 -0
  89. package/src/components/fms-ks-clamp-text/index.js +7 -0
  90. package/src/components/fms-ks-clamp-text//346/226/207/346/234/254/346/224/266/350/265/267/345/261/225/345/274/200.md +0 -0
  91. package/src/components/fms-ks-components/fms-ks-components.vue +699 -0
  92. package/src/components/fms-ks-components/index.js +7 -0
  93. package/src/components/fms-ks-components/money-directive.js +73 -0
  94. package/src/components/fms-ks-components//350/241/250/345/215/225/351/205/215/347/275/256/347/273/204/344/273/266/350/257/264/346/230/216.md +10 -0
  95. package/src/components/fms-ks-file-upload/fms-ks-file-upload.vue +8 -1
  96. package/src/components/fms-ks-form-grid/fields-conversion.js +107 -0
  97. package/src/components/fms-ks-form-grid/fms-ks-form-grid.vue +127 -0
  98. package/src/components/fms-ks-form-grid/index.js +7 -0
  99. package/src/components/fms-ks-more-lines/fms-ks-more-lines.vue +108 -0
  100. package/src/components/fms-ks-more-lines/index.js +7 -0
  101. package/src/components/fms-ks-more-lines//346/233/264/345/244/232.md +0 -0
  102. package/src/components/fms-ks-page-popup/fms-ks-page-popup.vue +153 -0
  103. package/src/components/fms-ks-page-popup/index.js +7 -0
  104. package/src/components/fms-ks-page-popup//345/274/271/345/207/272/345/261/202.md +0 -0
  105. package/src/components/fms-ks-picker/fms-ks-picker.vue +67 -0
  106. package/src/components/fms-ks-picker/index.js +7 -0
  107. package/src/components/fms-ks-picker//351/200/211/346/213/251/345/274/271/345/207/272/345/261/202.md +0 -0
  108. package/src/components/fms-ks-popover/click-outside.js +68 -0
  109. package/src/components/fms-ks-popover/fms-ks-popover.vue +89 -0
  110. package/src/components/fms-ks-popover/index.js +7 -0
  111. package/src/components/fms-ks-popover//345/274/271/345/207/272/345/261/202.md +0 -0
  112. package/src/components/fms-ks-search-tips/fms-ks-search-tips.vue +296 -0
  113. package/src/components/fms-ks-search-tips/index.js +7 -0
  114. package/src/components/fms-ks-search-tips//350/277/234/347/250/213/346/220/234/347/264/242.md +118 -0
  115. package/src/components/fms-ks-search-tips-new/fms-ks-search-tips-new.vue +242 -0
  116. package/src/components/fms-ks-search-tips-new/index.js +7 -0
  117. package/src/components/fms-ks-search-tips-new/style.less +137 -0
  118. package/src/components/fms-ks-search-tips-new//350/277/234/347/250/213/346/220/234/347/264/242-/346/226/260.md +118 -0
  119. package/src/components/fms-ks-select/fms-ks-select.vue +421 -0
  120. package/src/components/fms-ks-select/index.js +7 -0
  121. package/src/components/fms-ks-select//351/200/211/346/213/251/346/241/206.md +0 -0
  122. package/src/components/fms-ks-select-box/fms-ks-select-box.vue +84 -0
  123. package/src/components/fms-ks-select-box/index.js +7 -0
  124. package/src/components/fms-ks-select-box//344/270/215/351/234/200/350/246/201popup/347/232/204select.md +0 -0
  125. package/src/components/fms-ks-warn-drawer/fms-ks-warn-drawer.vue +111 -0
  126. package/src/components/fms-ks-warn-drawer/index.js +7 -0
  127. package/src/components/fms-ks-warn-drawer//351/242/204/350/255/246/346/217/220/347/244/272.md +0 -0
  128. package/src/components/ks-decrypt/README.md +140 -0
  129. package/src/components/ks-decrypt/index.vue +155 -0
  130. package/src/components/ks-popover/index.vue +483 -0
  131. package/src/components/ks-popover/mixin.js +28 -0
  132. package/src/components/ks-popover/utils.js +60 -0
  133. package/src/components/oa-datetime-picker/index.vue +169 -0
  134. package/src/components/oa-datetime-picker-new/components/date-picker/README.md +21 -0
  135. package/src/components/oa-datetime-picker-new/components/date-picker/date-picker-bottom.vue +121 -0
  136. package/src/components/oa-datetime-picker-new/components/date-picker/date-picker-dropdown.vue +78 -0
  137. package/src/components/oa-datetime-picker-new/components/date-picker/date-picker-right.vue +86 -0
  138. package/src/components/oa-datetime-picker-new/components/date-picker/date-picker-top.vue +82 -0
  139. package/src/components/oa-datetime-picker-new/components/date-picker/date-picker.js +12 -0
  140. package/src/components/oa-datetime-picker-new/components/date-picker/date-range-select.vue +106 -0
  141. package/src/components/oa-datetime-picker-new/components/date-picker/date-select.vue +66 -0
  142. package/src/components/oa-datetime-picker-new/components/date-picker/date-week-month.vue +131 -0
  143. package/src/components/oa-datetime-picker-new/components/date-picker/index.js +39 -0
  144. package/src/components/oa-datetime-picker-new/components/date-picker/mixin.js +85 -0
  145. package/src/components/oa-datetime-picker-new/components/date-picker/month-range-select.vue +127 -0
  146. package/src/components/oa-datetime-picker-new/components/date-picker/month-select.vue +87 -0
  147. package/src/components/oa-datetime-picker-new/components/date-picker/quarter-select.vue +95 -0
  148. package/src/components/oa-datetime-picker-new/components/date-picker/style.less +117 -0
  149. package/src/components/oa-datetime-picker-new/components/date-picker/utils.js +109 -0
  150. package/src/components/oa-datetime-picker-new/components/date-picker/week-select.vue +100 -0
  151. package/src/components/oa-datetime-picker-new/index.vue +212 -0
  152. package/src/index.js +8 -2
  153. package/vite.config.js +12 -1
  154. package/dist/fms-ks-decrypt.bcc12f44.js +0 -335
@@ -0,0 +1,157 @@
1
+ import { cloneDeep as a } from "lodash";
2
+ import { F as c } from "./fms-ks-popover.55ab4b82.js";
3
+ import { n } from "./plugin-vue2_normalizer.ed7092a9.js";
4
+ import './assets/css/fms-ks-select.css';const r = {
5
+ name: "FmsKsSelect",
6
+ components: {
7
+ FmsPopover: c
8
+ },
9
+ props: {
10
+ value: [String, Number, Array],
11
+ label: String,
12
+ placeholder: String,
13
+ required: Boolean,
14
+ tipText: String,
15
+ popoverStyle: {
16
+ type: Object,
17
+ default: () => {
18
+ }
19
+ },
20
+ arrowStyle: {
21
+ type: Object,
22
+ default: () => {
23
+ }
24
+ },
25
+ type: {
26
+ type: String,
27
+ default: () => "single"
28
+ },
29
+ columns: {
30
+ type: Array,
31
+ default: () => []
32
+ },
33
+ customeToolbar: {
34
+ type: Boolean,
35
+ default: !0
36
+ },
37
+ showSelectAll: Boolean,
38
+ search: {
39
+ type: Object,
40
+ default: () => ({})
41
+ }
42
+ },
43
+ watch: {
44
+ value: {
45
+ handler() {
46
+ this.exchangeActiveOfList();
47
+ },
48
+ immediate: !0
49
+ },
50
+ show(l) {
51
+ l ? this.exchangeActiveOfList() : (this.searchValue = "", this.columnList.forEach((e) => {
52
+ e.show = !0;
53
+ }));
54
+ },
55
+ columns() {
56
+ this.columnList = a(this.columns);
57
+ }
58
+ },
59
+ data() {
60
+ return {
61
+ showPopover: !1,
62
+ show: !1,
63
+ columnList: a(this.columns),
64
+ selectAll: !1,
65
+ searchValue: ""
66
+ };
67
+ },
68
+ methods: {
69
+ setPopoverOpt() {
70
+ console.log("1222--", this.showPopover), this.showPopover = !this.showPopover;
71
+ },
72
+ exchangeActiveOfList() {
73
+ if (this.type === "multiple") {
74
+ const l = this.value instanceof Array ? this.value : (this.value || "").split(",");
75
+ this.columnList.forEach((e) => {
76
+ e.active = l.includes(e.text);
77
+ });
78
+ }
79
+ },
80
+ onChange(l) {
81
+ if (console.log("\u70B9\u51FB", this.columnList), this.type === "single")
82
+ this.$emit("input", l && l.code), this.$emit("blur");
83
+ else {
84
+ const e = this.columnList.filter((t) => t.active);
85
+ console.log("selectedList", e), this.value = e.map((t) => t.text).join(","), this.$emit("input", e.map((t) => t.code)), this.$emit("blur");
86
+ }
87
+ this.show = !1;
88
+ },
89
+ clickHandle(l, e) {
90
+ console.log("col", l, e);
91
+ const t = {
92
+ ...l,
93
+ active: !l.active
94
+ };
95
+ this.columnList.splice(e, 1, t), this.selectAll = !this.columnList.some((s) => !s.active);
96
+ },
97
+ customeConfirm() {
98
+ this.type === "single" ? this.$refs.single.confirm() : this.onChange();
99
+ },
100
+ openPicker() {
101
+ this.$emit("openPicker"), this.$attrs.disabled || (this.show = !0);
102
+ },
103
+ selectAllChange() {
104
+ this.selectAll = !this.selectAll, this.columnList = this.columnList.map((l) => (l.active = this.selectAll, l));
105
+ },
106
+ handleSearchInput() {
107
+ this.columnList.forEach((l) => {
108
+ !this.searchValue || l.text.includes(this.searchValue) ? this.$set(l, "show", !0) : this.$set(l, "show", !1);
109
+ });
110
+ }
111
+ }
112
+ };
113
+ var u = function() {
114
+ var e = this, t = e._self._c;
115
+ return t("div", { staticClass: "flow-fms-select-component" }, [t("van-field", e._b({ attrs: { name: e.title, "error-message-align": "right", readonly: "", required: e.required, rules: [{ required: e.required, message: `\u8BF7\u9009\u62E9${e.label}` }], value: e.value, label: e.label, placeholder: e.placeholder }, on: { click: e.openPicker } }, "van-field", e.$attrs, !1), [t("span", { class: { "tips-label": e.tipText || e.$attrs.headerTips }, attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.label) + " "), e.tipText || e.$attrs.headerTips ? t("ks-popover", { attrs: { trigger: "click", placement: "bottom", theme: "dark", "get-container": ".flow-fms-select-component", offset: [60, 10] }, model: { value: e.showPopover, callback: function(s) {
116
+ e.showPopover = s;
117
+ }, expression: "showPopover" } }, [t("div", { staticStyle: { "font-size": "14px", width: "300px", padding: "12px", "line-height": "20px" }, domProps: { innerHTML: e._s(e.tipText || e.$attrs.headerTips) } }), t("template", { slot: "reference" }, [t("van-icon", { staticStyle: { color: "#858793" }, attrs: { name: "question-o" } })], 1)], 2) : e._e()], 1)]), t("van-popup", { staticClass: "flow-fms-select-popup", class: { "is-custome-toolbar": e.customeToolbar }, attrs: { "get-container": "body", position: "bottom" }, model: { value: e.show, callback: function(s) {
118
+ e.show = s;
119
+ }, expression: "show" } }, [e.customeToolbar ? t("div", [t("div", { staticClass: "fms-select__header" }, [e.customeToolbar ? t("div", { staticClass: "custome-toolbar" }, [t("strong", [e._v(e._s(e.label))]), t("van-icon", { attrs: { name: "cross", color: "#A2A2AD" }, on: { click: function(s) {
120
+ e.show = !1;
121
+ } } })], 1) : e._e(), e.search.show ? t("div", { staticClass: "fms-select__search" }, [t("ks-search", e._b({ on: { input: e.handleSearchInput }, model: { value: e.searchValue, callback: function(s) {
122
+ e.searchValue = typeof s == "string" ? s.trim() : s;
123
+ }, expression: "searchValue" } }, "ks-search", e.search.props, !1))], 1) : e._e()]), e.type === "single" ? t("van-picker", { ref: "single", attrs: { columns: e.columns, title: e.label }, on: { cancel: function(s) {
124
+ e.show = !1;
125
+ }, confirm: e.onChange } }) : t("div", { staticClass: "muiltiple" }, e._l(e.columnList, function(s, i) {
126
+ return t("div", { key: s.code }, [s.show === void 0 || s.show ? t("van-cell", { staticClass: "muiltiple-item", attrs: { clickable: "", title: s.text, "title-style": `${s.active ? "color: #8b83ff" : ""}` }, on: { click: function(o) {
127
+ return e.clickHandle(s, i);
128
+ } }, scopedSlots: e._u([{ key: "right-icon", fn: function() {
129
+ return [t("van-checkbox", { ref: "checkboxes", refInFor: !0, attrs: { "icon-size": "16px", "checked-color": "#8b83ff" }, model: { value: s.active, callback: function(o) {
130
+ e.$set(s, "active", o);
131
+ }, expression: "col.active" } })];
132
+ }, proxy: !0 }], null, !0) }) : e._e()], 1);
133
+ }), 0), t("div", { staticClass: "custome-btn" }, [e.showSelectAll && e.type === "multiple" ? t("div", { staticClass: "van-picker__selectAll" }, [t("van-checkbox", { ref: "checkboxes", attrs: { "icon-size": "16px", "checked-color": "#8b83ff" }, on: { click: e.selectAllChange }, model: { value: e.selectAll, callback: function(s) {
134
+ e.selectAll = s;
135
+ }, expression: "selectAll" } }, [e._v("\u5168\u9009")])], 1) : e._e(), t("van-button", { staticClass: "btn", attrs: { type: "primary" }, on: { click: e.customeConfirm } }, [e._v("\u786E\u5B9A")])], 1)], 1) : t("div", [e.type === "single" ? t("van-picker", { attrs: { columns: e.columns, "show-toolbar": "", title: e.label }, on: { cancel: function(s) {
136
+ e.show = !1;
137
+ }, confirm: e.onChange } }) : t("div", { staticClass: "muiltiple" }, [t("div", { staticClass: "van-hairline--top-bottom van-picker__toolbar" }, [t("button", { staticClass: "van-picker__cancel", attrs: { type: "button" }, on: { click: function(s) {
138
+ e.show = !1;
139
+ } } }, [e._v("\u53D6\u6D88")]), t("div", { staticClass: "van-ellipsis van-picker__title" }, [e._v(" " + e._s(e.label) + " ")]), t("button", { staticClass: "van-picker__confirm", attrs: { type: "button" }, on: { click: e.onChange } }, [e._v("\u786E\u8BA4")])]), t("div", { staticClass: "van-picker__columns" }, [t("div", { staticClass: "van-picker-column" }, [t("ul", { staticClass: "van-picker-column__wrapper" }, e._l(e.columnList, function(s, i) {
140
+ return t("li", { key: s.code, staticClass: "van-ellipsis van-picker-column__item van-hairline-unset--top-bottom", attrs: { role: "button", tabindex: "0" }, on: { click: function(o) {
141
+ return e.clickHandle(s, i);
142
+ } } }, [t("span", [e._v(e._s(s.text))]), t("van-icon", { directives: [{ name: "show", rawName: "v-show", value: s.active, expression: "col.active" }], staticClass: "selected-icon", attrs: { name: "success" } })], 1);
143
+ }), 0)])])])], 1)])], 1);
144
+ }, h = [], p = /* @__PURE__ */ n(
145
+ r,
146
+ u,
147
+ h,
148
+ !1,
149
+ null,
150
+ "2ae6d875",
151
+ null,
152
+ null
153
+ );
154
+ const d = p.exports;
155
+ export {
156
+ d as F
157
+ };
@@ -0,0 +1,37 @@
1
+ import './../fms-copy-box/style.css';
2
+ import { n as s } from "../plugin-vue2_normalizer.ed7092a9.js";
3
+ import './style.css';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4Ue2puqMT9qlGzpi04zVMfqj0PD7fDmsOBXCvcO/h8acVbTjprSpxAWAfFfKjE/YpI5aYgcJ1gXxX6fnL7PRi1QzuKQBFTddPdprZhpPekiqGAAAaXIBXAfmiUuo/F+QtrhtFBcCFcKjTDQBw5+v0jvgYIVAWwad/l/qnNjeTXpB764arw5c1KqQALAVFAbwaCGkKiljwa6cNjJhdNK3ZyLMOEjRMazZixOwiUD9LKUyJ7wda4VFCfH+JwtQ+mF3puwUyZFh2vNuYYdlxkKFan3PwP/Q9yhQEC4aVGOwelhiEYMGjTDWaKq2R/HnH3XvjTKRI8JPXT0fuPthxf3tejOAalVz51sl837iuNRcVf3R3w2ciRQhvh0+/9+eDHXf7aJgdh/Am1b/7GeD/0CYexAtshFujm63+P49+rK9zfkmdAAAAAElFTkSuQmCC";
4
+ const L = {
5
+ name: "FmsKsWarnDrawer",
6
+ props: ["warningInfos", "warningColor", "title"],
7
+ data() {
8
+ return {
9
+ arrowShow: !1
10
+ };
11
+ },
12
+ methods: {
13
+ arrowClick() {
14
+ this.arrowShow = !this.arrowShow;
15
+ }
16
+ }
17
+ };
18
+ var z = function() {
19
+ var M = this, w = M._self._c;
20
+ return w("div", { staticClass: "flow-fms-warning-box" }, [w("div", { staticClass: "flow-fms-warning-title" }, [w("div", { staticClass: "flow-fms-title-text" }, [w("img", { staticClass: "icon-waring", attrs: { src: A } }), M._v("\u5355\u636E\u5B58\u5728"), w("span", { staticClass: "flow-fms-warning-number" }, [M._v("1")]), M._v("\u9879\u9884\u8B66 ")]), w("div", { staticClass: "arrow-icon", on: { click: M.arrowClick } }, [w("img", { staticClass: "arrow", class: { closures: M.arrowShow }, attrs: { src: j } })])]), M.arrowShow ? w("div", { staticClass: "flow-fms-warning-detail" }, [w("div", { staticClass: "flow-fms-waring-present" }, [M._v("\u9884\u8B66\u4FE1\u606F\u4F9B\u53C2\u8003\uFF0C\u8BF7\u7ED3\u5408\u5B9E\u9645\u5408\u7406\u6027\u5BA1\u6279")]), w("div", { staticClass: "title flow-fms-warning-content" }, [M._v(M._s(M.title))]), M._t("default", null, { warningInfos: M.warningInfos })], 2) : M._e()]);
21
+ }, a = [], i = /* @__PURE__ */ s(
22
+ L,
23
+ z,
24
+ a,
25
+ !1,
26
+ null,
27
+ "bd59a474",
28
+ null,
29
+ null
30
+ );
31
+ const D = i.exports;
32
+ D.install = function(N) {
33
+ N.component(D.name, FmsKsSelectBox);
34
+ };
35
+ export {
36
+ D as default
37
+ };
@@ -0,0 +1 @@
1
+ .flow-fms-warning-box[data-v-bd59a474]{position:absolute;bottom:0;z-index:999;width:100%}.flow-fms-warning-box .flow-fms-warning-title[data-v-bd59a474]{border-radius:10px 20px 0 0;height:36px;background-color:#ffecec;line-height:36px;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:space-between;padding:0 20px}.flow-fms-warning-box .flow-fms-warning-title .arrow-icon[data-v-bd59a474]{width:100px;height:36px;display:flex;align-items:center;justify-content:flex-end}.flow-fms-warning-box .flow-fms-warning-title .flow-fms-title-text .flow-fms-warning-number[data-v-bd59a474]{color:#fd4948;margin:0 5px}.flow-fms-warning-box .flow-fms-warning-title .flow-fms-title-text .icon-waring[data-v-bd59a474]{width:12px;margin-right:4px}.flow-fms-warning-box .flow-fms-warning-title .arrow[data-v-bd59a474]{display:block;width:17px;height:17px}.flow-fms-warning-box .flow-fms-warning-title .arrow.closures[data-v-bd59a474]{transform:rotate(180deg)}.flow-fms-warning-box .flow-fms-warning-detail[data-v-bd59a474]{background-color:#fff;padding:8px 16px 10px;max-height:55vh;overflow:auto}.flow-fms-warning-box .flow-fms-warning-detail .flow-fms-waring-present[data-v-bd59a474]{font-size:12px;color:#6e6d72}.flow-fms-warning-box .flow-fms-warning-detail .flow-fms-warning-content[data-v-bd59a474]{font-size:12px;margin-top:10px}.flow-fms-warning-box .flow-fms-warning-detail .flow-fms-warning-content .red[data-v-bd59a474]{color:#fd4948}.flow-fms-warning-box .flow-fms-warning-detail .flow-fms-warning-content .yellow[data-v-bd59a474]{color:#fb0}.flow-fms-warning-box .flow-fms-warning-detail .flow-fms-warning-content .orange[data-v-bd59a474]{color:#ff7613}.flow-fms-warning-box .title[data-v-bd59a474]{font-size:12px;margin:5px 0;color:#fd4948}
@@ -3,7 +3,9 @@ import f from "../fms-empty/index.js";
3
3
  import { MaxDecrypt as d } from "@kyfe/decrypt";
4
4
  import { n as g } from "../plugin-vue2_normalizer.ed7092a9.js";
5
5
  import './style.css';class p {
6
- constructor({ gap: t } = {}) {
6
+ constructor({
7
+ gap: t
8
+ } = {}) {
7
9
  this.observer = null, this.intersectionObserver = null, this.container = null, this.refScroll = null, this.leftHeight = 0, this.rightHeight = 0, this.intersectionRatio = 0, this.gap = t || [0, 0], this.init();
8
10
  }
9
11
  get containerHeight() {
package/dist/index.js CHANGED
@@ -1,37 +1,37 @@
1
1
  import './fms-copy-box/style.css';
2
- import s from "./fms-copy-box/index.js";
3
- import { default as w } from "./fms-copy-box/index.js";
4
- import t from "./fms-empty/index.js";
5
- import { default as C } from "./fms-empty/index.js";
2
+ import r from "./fms-copy-box/index.js";
3
+ import { default as D } from "./fms-copy-box/index.js";
4
+ import s from "./fms-empty/index.js";
5
+ import { default as L } from "./fms-empty/index.js";
6
6
  import "./fms-ks-decrypt/index.js";
7
- import r from "./fms-ks-file-upload/index.js";
8
- import { default as L } from "./fms-ks-file-upload/index.js";
9
- import e from "./fms-ks-file-view/index.js";
10
- import { default as U } from "./fms-ks-file-view/index.js";
11
- import p from "./fms-scroll-list/index.js";
12
- import { default as h } from "./fms-scroll-list/index.js";
13
- import { F as f } from "./fms-ks-decrypt.bcc12f44.js";
14
- import { F as g } from "./fms-ks-decrypt.bcc12f44.js";
15
- const a = [
16
- s,
17
- t,
18
- f,
19
- r,
20
- e,
21
- p
22
- ], i = function(m) {
23
- a.forEach((o) => {
7
+ import t from "./fms-ks-file-upload/index.js";
8
+ import { default as U } from "./fms-ks-file-upload/index.js";
9
+ import p from "./fms-ks-file-view/index.js";
10
+ import { default as b } from "./fms-ks-file-view/index.js";
11
+ import e from "./fms-scroll-list/index.js";
12
+ import { default as j } from "./fms-scroll-list/index.js";
13
+ import F from "./fms-ks-form-grid/index.js";
14
+ import { default as q } from "./fms-ks-form-grid/index.js";
15
+ import "./fms-ks-search-tips/index.js";
16
+ import { F as a } from "./fms-ks-decrypt.2f88e659.js";
17
+ import { F as z } from "./fms-ks-decrypt.2f88e659.js";
18
+ import { F as f } from "./fms-ks-search-tips.d36859c3.js";
19
+ import { F as H } from "./fms-ks-search-tips.d36859c3.js";
20
+ const i = [r, s, a, t, p, e, F, f], l = function(m) {
21
+ i.forEach((o) => {
24
22
  m.component(o.name, o);
25
23
  });
26
- }, y = {
27
- install: i
24
+ }, w = {
25
+ install: l
28
26
  };
29
27
  export {
30
- w as FmsCopyBox,
31
- C as FmsEmpty,
32
- g as FmsKsDecrypt,
33
- L as FmsKsFileUpload,
34
- U as FmsKsFileView,
35
- h as FmsScrollList,
36
- y as default
28
+ D as FmsCopyBox,
29
+ L as FmsEmpty,
30
+ z as FmsKsDecrypt,
31
+ U as FmsKsFileUpload,
32
+ b as FmsKsFileView,
33
+ q as FmsKsFormGrid,
34
+ H as FmsKsSearchTips,
35
+ j as FmsScrollList,
36
+ w as default
37
37
  };
@@ -0,0 +1,59 @@
1
+ import { t as s } from "./utils.159fba19.js";
2
+ import { D as a, a as n, M as r, b as i, W as l, Q as h, c as o } from "./fms-ks-components.a5d9329b.js";
3
+ const m = {
4
+ components: {
5
+ DateSelect: a,
6
+ DateRangeSelect: n,
7
+ MonthSelect: r,
8
+ MonthRangeSelect: i,
9
+ WeekSelect: l,
10
+ QuarterSelect: h,
11
+ DateWeekMonth: o
12
+ },
13
+ props: {
14
+ value: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ type: {
19
+ type: String,
20
+ default: "date"
21
+ },
22
+ showConfirm: {
23
+ type: Boolean,
24
+ default: !0
25
+ }
26
+ },
27
+ data() {
28
+ return {
29
+ currentCom: null,
30
+ currentSelectedValue: null,
31
+ startText: "",
32
+ endText: ""
33
+ };
34
+ },
35
+ methods: {
36
+ init() {
37
+ this.currentCom = s[this.type], setTimeout(() => {
38
+ this.$nextTick(() => {
39
+ this.$refs.selector && this.$refs.selector.init();
40
+ });
41
+ }, 100);
42
+ },
43
+ handleOpenPopup() {
44
+ this.init();
45
+ },
46
+ handleClosePopup(t) {
47
+ this.$emit("input", t), this.currentCom = null, this.currentSelectedValue = null, this.startText = "", this.endText = "";
48
+ },
49
+ handleSelect(t, e = this.type) {
50
+ this.$emit("select", t), this.currentSelectedValue = t, this.type === "dateweekmonth" && (this.dateweekmonthType = e), e === "week" ? this.startText = `${t.year}\u5E74 ${t.num < 10 ? "0" + t.num : t.num}\u5468(${t.week.startDayStr}~${t.week.endDayStr})` : e === "quarter" ? this.startText = `${t.year}\u5E74 ${t.cn}` : e === "month" || e === "date" ? this.startText = t.str : (e === "monthrange" || e === "daterange") && (this.startText = t.str[0], this.endText = t.str[1]);
51
+ },
52
+ handleConfirm() {
53
+ this.$emit("confirm", this.currentSelectedValue);
54
+ }
55
+ }
56
+ };
57
+ export {
58
+ m as M
59
+ };
@@ -0,0 +1,97 @@
1
+ import { g as c, b as l, a as s } from "./utils.159fba19.js";
2
+ import { n as i } from "./plugin-vue2_normalizer.ed7092a9.js";
3
+ import './oa-datetime-picker-new/style.css';const u = {
4
+ name: "month-range-select",
5
+ props: {
6
+ defaultValue: {
7
+ type: Array,
8
+ default: () => []
9
+ },
10
+ yearRange: {
11
+ type: Array,
12
+ default: () => [new Date().getFullYear() - 5, new Date().getFullYear()]
13
+ },
14
+ horizontal: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ min: [String, Number, Date],
19
+ max: [String, Number, Date]
20
+ },
21
+ data() {
22
+ return {
23
+ years: c(this.yearRange),
24
+ months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
25
+ currentStart: null,
26
+ currentEnd: null,
27
+ currentMin: null,
28
+ currentMax: null
29
+ };
30
+ },
31
+ methods: {
32
+ init() {
33
+ if (this.currentMin = this.min ? +l(this.min) : null, this.currentMax = this.max ? +l(this.max) : null, this.defaultValue.length === 2) {
34
+ let a = l(this.defaultValue[0]), t = l(this.defaultValue[1]);
35
+ if (a && t) {
36
+ this.currentStart = a;
37
+ let e = s(t, "month").split("/");
38
+ this.handleSelect(e[0], e[1], !1);
39
+ } else if (a && !t) {
40
+ let e = s(a, "month").split("/");
41
+ this.handleSelect(e[0], e[1], !1);
42
+ }
43
+ this.scrollInto();
44
+ }
45
+ },
46
+ scrollInto() {
47
+ setTimeout(() => {
48
+ if (this.currentMonth) {
49
+ let a = this.$el.querySelector(".van-calendar__day--start");
50
+ this.$refs.body && (this.$refs.body.scrollTop = a ? a.getBoundingClientRect().top - 100 : 0);
51
+ }
52
+ }, 240);
53
+ },
54
+ handleSelect(a, t, r) {
55
+ if (!r) {
56
+ let e = l(`${a}/${t}`);
57
+ this.currentStart && !this.currentEnd && +this.currentStart <= +e ? (this.currentEnd = e, this.$emit("select", {
58
+ date: [this.currentStart, this.currentEnd],
59
+ str: [s(this.currentStart, "month"), s(this.currentEnd, "month")]
60
+ })) : (this.currentEnd = null, this.currentStart = e, this.$emit("select", {
61
+ date: [this.currentStart, null],
62
+ str: [s(this.currentStart, "month"), ""]
63
+ }));
64
+ }
65
+ }
66
+ }
67
+ };
68
+ var d = function() {
69
+ var t = this, r = t._self._c;
70
+ return r("div", { ref: "body", staticClass: "van-calendar__body" }, t._l(t.years, function(e) {
71
+ return r("div", { key: e, staticClass: "van-calendar__month" }, [r("div", { staticClass: "van-calendar__month-title" }, [t._v(t._s(e) + "\u5E74")]), r("div", { staticClass: "van-calendar__days" }, t._l(t.months, function(n) {
72
+ return r("div", { key: n, staticClass: "van-calendar__day ks-month__day", class: {
73
+ "van-calendar__day--disabled": t.currentMin && +new Date(`${e}/${n}/1`) < t.currentMin || t.currentMax && +new Date(`${e}/${n}/1`) > t.currentMax
74
+ }, on: { click: function(_) {
75
+ t.handleSelect(e, n, t.currentMin && +new Date(`${e}/${n}/1`) < t.currentMin || t.currentMax && +new Date(`${e}/${n}/1`) > t.currentMax);
76
+ } } }, [r("div", { class: {
77
+ "van-calendar__day--start": +t.currentStart == +new Date(`${e}/${n}/1`) && +t.currentEnd != +new Date(`${e}/${n}/1`),
78
+ "van-calendar__day--end": +t.currentEnd == +new Date(`${e}/${n}/1`) && +t.currentStart != +new Date(`${e}/${n}/1`),
79
+ "van-calendar__day--middle": +t.currentStart < +new Date(`${e}/${n}/1`) && +t.currentEnd > +new Date(`${e}/${n}/1`),
80
+ "van-calendar__day--start-end": +t.currentStart == +new Date(`${e}/${n}/1`) && +t.currentEnd == +new Date(`${e}/${n}/1`)
81
+ } }, [t._v(" " + t._s(n) + "\u6708 "), +t.currentStart == +new Date(`${e}/${n}/1`) || +t.currentEnd == +new Date(`${e}/${n}/1`) ? r("div", { staticClass: "van-calendar__bottom-info" }, [t._v(" " + t._s(+t.currentStart == +new Date(`${e}/${n}/1`) && +t.currentEnd == +new Date(`${e}/${n}/1`) ? "\u5F00\u59CB/\u7ED3\u675F" : +t.currentStart == +new Date(`${e}/${n}/1`) && +t.currentEnd != +new Date(`${e}/${n}/1`) ? "\u5F00\u59CB" : "\u7ED3\u675F") + " ")]) : t._e()])]);
82
+ }), 0)]);
83
+ }), 0);
84
+ }, o = [], h = /* @__PURE__ */ i(
85
+ u,
86
+ d,
87
+ o,
88
+ !1,
89
+ null,
90
+ null,
91
+ null,
92
+ null
93
+ );
94
+ const v = h.exports;
95
+ export {
96
+ v as default
97
+ };
@@ -0,0 +1,71 @@
1
+ import { g as i, b as l, a as s } from "./utils.159fba19.js";
2
+ import { n as o } from "./plugin-vue2_normalizer.ed7092a9.js";
3
+ import './oa-datetime-picker-new/style.css';const c = {
4
+ name: "month-select",
5
+ props: {
6
+ defaultValue: {
7
+ type: [Date, String, Number],
8
+ default: new Date()
9
+ },
10
+ yearRange: {
11
+ type: Array,
12
+ default: () => [new Date().getFullYear() - 5, new Date().getFullYear()]
13
+ },
14
+ horizontal: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ min: [String, Number, Date],
19
+ max: [String, Number, Date]
20
+ },
21
+ data() {
22
+ return {
23
+ years: i(this.yearRange),
24
+ months: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
25
+ currentMonth: null,
26
+ currentMin: null,
27
+ currentMax: null
28
+ };
29
+ },
30
+ methods: {
31
+ init() {
32
+ this.currentMonth = l(this.defaultValue), console.log("this.currentMonth111", this.currentMonth), this.currentMin = this.min ? +l(this.min) : null, this.currentMax = this.max ? +l(this.max) : null;
33
+ let t = s(this.currentMonth, "month").split("/");
34
+ this.handleSelect(t[0], t[1], !1), this.scrollInto();
35
+ },
36
+ scrollInto() {
37
+ setTimeout(() => {
38
+ if (this.currentMonth) {
39
+ let r = this.$el.querySelector(".van-calendar__selected-day");
40
+ this.$refs.body && (this.$refs.body.scrollTop = r ? r.getBoundingClientRect().top - 100 : 0);
41
+ }
42
+ }, 240);
43
+ },
44
+ handleSelect(r, t, e) {
45
+ e || (this.currentMonth = l(`${r}/${t}`), this.$emit("select", { date: this.currentMonth, str: s(this.currentMonth, "month") }));
46
+ }
47
+ }
48
+ };
49
+ var u = function() {
50
+ var t = this, e = t._self._c;
51
+ return e("div", { ref: "body", staticClass: "van-calendar__body" }, t._l(t.years, function(n) {
52
+ return e("div", { key: n, staticClass: "van-calendar__month" }, [e("div", { staticClass: "van-calendar__month-title" }, [t._v(t._s(n) + "\u5E74")]), e("div", { staticClass: "van-calendar__days" }, t._l(t.months, function(a) {
53
+ return e("div", { key: a, staticClass: "van-calendar__day ks-month__day", class: { "van-calendar__day--disabled": t.currentMin && +new Date(`${n}/${a}/1`) < t.currentMin || t.currentMax && +new Date(`${n}/${a}/1`) > t.currentMax }, on: { click: function(_) {
54
+ t.handleSelect(n, a, t.currentMin && +new Date(`${n}/${a}/1`) < t.currentMin || t.currentMax && +new Date(`${n}/${a}/1`) > t.currentMax);
55
+ } } }, [e("div", { class: { "van-calendar__selected-day": +t.currentMonth == +new Date(`${n}/${a}/1`) } }, [t._v(t._s(a) + "\u6708")])]);
56
+ }), 0)]);
57
+ }), 0);
58
+ }, h = [], d = /* @__PURE__ */ o(
59
+ c,
60
+ u,
61
+ h,
62
+ !1,
63
+ null,
64
+ null,
65
+ null,
66
+ null
67
+ );
68
+ const v = d.exports;
69
+ export {
70
+ v as default
71
+ };
@@ -0,0 +1 @@
1
+ .ks-month__day{width:16.666%;height:50px}
@@ -0,0 +1,73 @@
1
+ import { g as s } from "./utils.159fba19.js";
2
+ import { n as u } from "./plugin-vue2_normalizer.ed7092a9.js";
3
+ import './oa-datetime-picker-new/style.css';const c = {
4
+ name: "quarter-select",
5
+ props: {
6
+ defaultValue: {
7
+ type: String,
8
+ default: function() {
9
+ let t = [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4], e = new Date(), r = e.getFullYear(), a = e.getMonth();
10
+ return `${r}-${t[a]}`;
11
+ }()
12
+ },
13
+ yearRange: {
14
+ type: Array,
15
+ default: () => [new Date().getFullYear() - 2, new Date().getFullYear()]
16
+ },
17
+ horizontal: {
18
+ type: Boolean,
19
+ default: !1
20
+ }
21
+ },
22
+ data() {
23
+ return {
24
+ years: s(this.yearRange),
25
+ cnQuarters: {
26
+ 1: "\u4E00\u5B63\u5EA6",
27
+ 2: "\u4E8C\u5B63\u5EA6",
28
+ 3: "\u4E09\u5B63\u5EA6",
29
+ 4: "\u56DB\u5B63\u5EA6"
30
+ },
31
+ currentYear: null,
32
+ currentQuarter: null
33
+ };
34
+ },
35
+ methods: {
36
+ init() {
37
+ let t = this.defaultValue.split("-");
38
+ this.handleSelect(t[0], t[1]), this.scrollInto();
39
+ },
40
+ scrollInto() {
41
+ setTimeout(() => {
42
+ let t = this.$el.querySelector(".ks-quarte__selected-day");
43
+ this.$refs.body && (this.$refs.body.scrollTop = t ? t.getBoundingClientRect().top - 100 : 0);
44
+ }, 240);
45
+ },
46
+ handleSelect(t, e) {
47
+ this.currentYear = t, this.currentQuarter = e, this.$emit("select", { year: t, quarter: e, cn: this.cnQuarters[e] });
48
+ }
49
+ }
50
+ };
51
+ var i = function() {
52
+ var e = this, r = e._self._c;
53
+ return r("div", { ref: "body", staticClass: "van-calendar__body" }, e._l(e.years, function(a) {
54
+ return r("div", { key: a, staticClass: "van-calendar__month" }, [r("div", { staticClass: "van-calendar__month-title" }, [e._v(e._s(a) + "\u5E74")]), r("div", { staticClass: "van-calendar__days" }, e._l(e.cnQuarters, function(l, n) {
55
+ return r("div", { key: n, staticClass: "van-calendar__day ks-quarter__day", on: { click: function(d) {
56
+ return e.handleSelect(a, n);
57
+ } } }, [r("div", { class: { "ks-quarter__selected-day": String(a) === String(e.currentYear) && String(n) === String(e.currentQuarter) } }, [e._v(" " + e._s(l) + " ")])]);
58
+ }), 0)]);
59
+ }), 0);
60
+ }, _ = [], o = /* @__PURE__ */ u(
61
+ c,
62
+ i,
63
+ _,
64
+ !1,
65
+ null,
66
+ null,
67
+ null,
68
+ null
69
+ );
70
+ const h = o.exports;
71
+ export {
72
+ h as default
73
+ };
@@ -0,0 +1,64 @@
1
+ const $ = (e, r) => {
2
+ if (!e)
3
+ return null;
4
+ let t = new Date(e), s = t.getFullYear(), n = t.getMonth() + 1;
5
+ n = n < 10 ? "0" + n : n;
6
+ let a = t.getDate();
7
+ return a = a < 10 ? "0" + a : a, r === "month" ? `${s}/${n}` : `${s}/${n}/${a}`;
8
+ }, S = (e) => e ? typeof e == "string" ? (e = e.replace(/-/g, "/"), new Date(e)) : new Date(e) : null, m = (e) => {
9
+ if (!e)
10
+ return null;
11
+ let r = null;
12
+ if (typeof e == "string") {
13
+ let t = e.replace(/-/g, "/").split("/");
14
+ r = new Date(`${t[0]}/${t[1]}/01`);
15
+ } else {
16
+ let t = new Date(e);
17
+ r = new Date(`${t.getFullYear()}/${t.getMonth() + 1}/01`);
18
+ }
19
+ return r;
20
+ }, i = (e) => {
21
+ let r = e[1], t = [];
22
+ for (; r >= e[0]; )
23
+ t.unshift(r), r = r - 1;
24
+ return t;
25
+ }, p = (e, r) => {
26
+ let t = i(e);
27
+ const s = (n) => {
28
+ let a = [], h = new Date(n, 11, 31).getDay() - r + 1, c = new Date(n, 11, 31 - h), g = new Date(n + 1, 0, 6 - h);
29
+ const w = (l) => {
30
+ let o = l.getFullYear(), D = l.getMonth() + 1, u = l.getDate();
31
+ return [`${o}/${D}/${u}`, `${String(D).length > 1 ? D : "0" + D}/${String(u).length > 1 ? u : "0" + u}`];
32
+ };
33
+ for (; g.getFullYear() >= n; ) {
34
+ let l = w(c), o = w(g);
35
+ a.unshift({
36
+ startDay: new Date(l[0]),
37
+ startDayStr: l[1],
38
+ endDay: new Date(o[0]),
39
+ endDayStr: o[1]
40
+ }), c.setDate(c.getDate() - 7), g.setDate(g.getDate() - 7);
41
+ }
42
+ return a;
43
+ };
44
+ return t.map((n) => ({
45
+ year: n,
46
+ weeks: s(n)
47
+ }));
48
+ }, y = {
49
+ date: "DateSelect",
50
+ daterange: "DateRangeSelect",
51
+ month: "MonthSelect",
52
+ monthrange: "MonthRangeSelect",
53
+ week: "WeekSelect",
54
+ quarter: "QuarterSelect",
55
+ dateweekmonth: "DateWeekMonth"
56
+ };
57
+ export {
58
+ $ as a,
59
+ m as b,
60
+ p as c,
61
+ S as f,
62
+ i as g,
63
+ y as t
64
+ };