@opentiny/vue-renderless 3.6.7 → 3.8.0
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.
- package/action-sheet/index.js +28 -1
- package/action-sheet/vue.js +10 -4
- package/alert/index.js +24 -2
- package/alert/vue.js +15 -11
- package/amount/index.js +4 -4
- package/anchor/index.js +1 -1
- package/autocomplete/vue.js +3 -3
- package/autonavi-map/index.js +1 -1
- package/badge/vue.js +6 -6
- package/baidu-map/index.js +1 -1
- package/bulletin-board/index.js +1 -1
- package/calendar/index.js +2 -2
- package/calendar-bar/index.js +268 -0
- package/calendar-bar/vue.js +87 -0
- package/card/index.js +84 -0
- package/card/vue.js +70 -0
- package/card-group/index.js +16 -0
- package/card-group/vue.js +21 -0
- package/card-template/index.js +1 -1
- package/carousel/index.js +89 -2
- package/carousel/vue.js +14 -5
- package/carousel-item/index.js +8 -0
- package/carousel-item/vue.js +7 -3
- package/cascader/index.js +6 -6
- package/cascader/vue.js +3 -3
- package/cascader-menu/vue.js +2 -2
- package/cascader-panel/index.js +4 -4
- package/cascader-panel/node.js +4 -4
- package/cascader-panel/vue.js +2 -2
- package/cascader-select/index.js +179 -0
- package/cascader-select/vue.js +74 -0
- package/cell/vue.js +16 -0
- package/chart-bar/index.js +3 -3
- package/chart-boxplot/index.js +2 -2
- package/chart-candle/index.js +3 -3
- package/chart-core/deps/utils.js +7 -7
- package/chart-core/index.js +2 -2
- package/chart-funnel/index.js +3 -3
- package/chart-gauge/index.js +3 -3
- package/chart-graph/index.js +1 -1
- package/chart-heatmap/index.js +2 -2
- package/chart-line/index.js +3 -3
- package/chart-liquidfill/index.js +2 -2
- package/chart-map/index.js +3 -3
- package/chart-pie/index.js +3 -3
- package/chart-radar/index.js +3 -3
- package/chart-sankey/index.js +3 -3
- package/chart-scatter/index.js +4 -4
- package/chart-sunburst/index.js +1 -1
- package/chart-tree/index.js +2 -2
- package/chart-waterfall/index.js +3 -3
- package/chart-wordcloud/index.js +2 -2
- package/checkbox/index.js +21 -0
- package/checkbox/vue.js +16 -3
- package/checkbox-button/vue.js +1 -1
- package/collapse-item/vue.js +1 -1
- package/column-list-group/index.js +0 -0
- package/column-list-group/vue.js +14 -0
- package/column-list-item/index.js +50 -0
- package/column-list-item/vue.js +39 -0
- package/common/array.js +3 -3
- package/common/bigInt.js +5 -2
- package/common/dataset/index.js +3 -3
- package/common/date.js +2 -2
- package/common/deps/ResizeObserver.js +1 -1
- package/common/deps/clickoutside.js +1 -1
- package/common/deps/date-util.js +4 -4
- package/common/deps/date.js +2 -2
- package/common/deps/debounce.js +1 -1
- package/common/deps/dom.js +1 -1
- package/common/deps/fullscreen/apis.js +3 -3
- package/common/deps/fullscreen/screenfull.js +1 -1
- package/common/deps/infinite-scroll.js +176 -0
- package/common/deps/letter-only.js +1 -1
- package/common/deps/number-only.js +1 -1
- package/common/deps/observe-visibility.js +106 -0
- package/common/deps/popper.js +20 -22
- package/common/deps/popup-manager.js +2 -2
- package/common/deps/repeat-click.js +1 -1
- package/common/deps/resize-event.js +1 -1
- package/common/deps/tree-model/node.js +5 -5
- package/common/deps/tree-model/tree-store.js +3 -3
- package/common/deps/upload-ajax.js +2 -2
- package/common/deps/vue-popper.js +4 -4
- package/common/deps/vue-popup.js +4 -4
- package/common/index.js +2 -2
- package/common/object.js +1 -1
- package/common/runtime.js +24 -24
- package/common/string.js +23 -4
- package/common/validate/rules/range.js +2 -2
- package/common/validate/rules/required.js +1 -1
- package/common/validate/rules/type.js +3 -3
- package/common/validate/schema.js +1 -1
- package/common/validate/util.js +1 -1
- package/common/validate/validations/array.js +1 -1
- package/common/validate/validations/date.js +1 -1
- package/common/validate/validations/enum.js +1 -1
- package/common/validate/validations/float.js +1 -1
- package/common/validate/validations/integer.js +1 -1
- package/common/validate/validations/method.js +1 -1
- package/common/validate/validations/number.js +1 -1
- package/common/validate/validations/pattern.js +1 -1
- package/common/validate/validations/string.js +1 -1
- package/common/validate/validations/type.js +1 -1
- package/container/index.js +1 -1
- package/crop/index.js +2 -2
- package/currency/index.js +2 -2
- package/date-panel/index.js +7 -7
- package/date-panel/vue.js +3 -2
- package/date-picker-mobile/index.js +250 -0
- package/date-picker-mobile/vue.js +86 -0
- package/date-range/index.js +1 -1
- package/date-range/vue.js +1 -1
- package/date-table/index.js +3 -3
- package/date-table/vue.js +1 -1
- package/dialog-box/index.js +10 -6
- package/dialog-box/vue.js +1 -1
- package/dialog-select/index.js +345 -0
- package/dialog-select/vue.js +110 -0
- package/drawer/index.js +83 -0
- package/drawer/vue.js +51 -0
- package/drop-times/index.js +1 -1
- package/dropdown/index.js +2 -2
- package/dropdown/vue.js +1 -1
- package/dropdown-item/index.js +1 -1
- package/dropdown-item/mf.js +79 -0
- package/dropdown-menu/index.js +30 -1
- package/dropdown-menu/vue.js +17 -7
- package/dynamic-scroller/index.js +117 -0
- package/dynamic-scroller/vue.js +88 -0
- package/dynamic-scroller-item/index.js +147 -0
- package/dynamic-scroller-item/vue.js +92 -0
- package/espace/index.js +1 -1
- package/espace/vue.js +1 -1
- package/exception/vue.js +3 -1
- package/fall-menu/index.js +4 -4
- package/file-upload/index.js +872 -408
- package/file-upload/vue.js +87 -36
- package/filter/index.js +131 -0
- package/filter/tag-group.js +43 -0
- package/filter/vue.js +73 -0
- package/filter-bar/index.js +9 -0
- package/filter-bar/vue.js +16 -0
- package/filter-box/index.js +17 -0
- package/filter-box/vue.js +19 -0
- package/filter-panel/index.js +42 -0
- package/filter-panel/vue.js +33 -0
- package/floatbar/index.js +1 -1
- package/flowchart/index.js +721 -0
- package/flowchart/vue.js +81 -0
- package/form/index.js +15 -1
- package/form/vue.js +10 -4
- package/form-item/index.js +46 -6
- package/form-item/vue.js +27 -3
- package/fullscreen/index.js +1 -1
- package/fullscreen/vue.js +1 -1
- package/grid/plugins/export.js +2 -2
- package/grid/plugins/exportExcel.js +2 -2
- package/grid/plugins/resize.js +1 -1
- package/grid/static/base/helperEqualCompare.js +1 -1
- package/grid/static/base/isPlainObject.js +1 -1
- package/grid/utils/common.js +3 -3
- package/grid/utils/dom.js +3 -3
- package/grid/utils/event.js +2 -2
- package/guide/index.js +168 -0
- package/guide/vue.js +36 -0
- package/hrapprover/index.js +1 -1
- package/image/index.js +8 -4
- package/image/vue.js +12 -6
- package/image-viewer/index.js +3 -3
- package/image-viewer/vue.js +16 -6
- package/input/index.js +34 -1
- package/input/vue.js +22 -6
- package/ip-address/index.js +1 -1
- package/ip-address/vue.js +1 -1
- package/link-menu/index.js +2 -2
- package/link-menu/vue.js +2 -2
- package/loading/index.js +2 -2
- package/loading/vue.js +2 -1
- package/locales/index.js +1 -1
- package/logout/index.js +1 -1
- package/milestone/index.js +5 -1
- package/modal/index.js +68 -39
- package/modal/vue.js +15 -12
- package/month-range/index.js +1 -1
- package/month-range/vue.js +1 -1
- package/month-table/index.js +5 -5
- package/month-table/vue.js +1 -1
- package/multi-select/index.js +5 -2
- package/multi-select/vue.js +4 -5
- package/nav-menu/index.js +6 -6
- package/notify/index.js +3 -3
- package/numeric/index.js +15 -5
- package/numeric/vue.js +15 -6
- package/option/index.js +1 -1
- package/package.json +2 -1
- package/pager-item/index.js +1 -1
- package/panel/index.js +1 -1
- package/picker/index.js +7 -7
- package/picker/vue.js +1 -1
- package/picker-column/index.js +1 -1
- package/popconfirm/index.js +25 -0
- package/popconfirm/vue.js +22 -0
- package/popeditor/index.js +7 -7
- package/popeditor/vue.js +2 -2
- package/popover/index.js +11 -3
- package/popover/vue.js +33 -10
- package/popup/index.js +4 -4
- package/pull-refresh/index.js +8 -11
- package/pull-refresh/vue.js +7 -7
- package/radio/index.js +17 -0
- package/radio/vue.js +18 -3
- package/radio-button/index.js +8 -0
- package/radio-button/vue.js +19 -4
- package/radio-group/index.js +1 -1
- package/radio-group/vue.js +5 -2
- package/rate/index.js +4 -2
- package/rate/vue.js +1 -1
- package/record/index.js +190 -0
- package/record/vue.js +44 -0
- package/recycle-scroller/index.js +470 -0
- package/recycle-scroller/vue.js +135 -0
- package/river/index.js +371 -0
- package/river/river.js +352 -0
- package/river/vue.js +77 -0
- package/roles/index.js +1 -1
- package/scrollbar/vue-bar.js +1 -1
- package/scrollbar/vue.js +1 -1
- package/search/index.js +3 -3
- package/select/index.js +17 -14
- package/select/vue.js +14 -8
- package/select-dropdown/vue.js +1 -1
- package/select-mobile/index.js +111 -0
- package/select-mobile/vue.js +58 -0
- package/select-view/index.js +170 -0
- package/select-view/vue.js +82 -0
- package/selected-box/index.js +216 -0
- package/selected-box/vue.js +98 -0
- package/slide-bar/index.js +1 -1
- package/slider/index.js +49 -4
- package/slider/vue.js +15 -4
- package/split/vue.js +1 -1
- package/standard-list-item/index.js +18 -0
- package/standard-list-item/vue.js +22 -0
- package/steps/index.js +30 -0
- package/steps/slide-bar.js +122 -0
- package/steps/vue.js +15 -3
- package/switch/index.js +1 -1
- package/switch/vue.js +2 -1
- package/tab-bar/index.js +2 -2
- package/tab-item/index.js +2 -2
- package/tab-item/vue.js +1 -1
- package/tab-item-mf/index.js +0 -0
- package/tab-item-mf/vue.js +16 -0
- package/tab-nav/index.js +78 -4
- package/tab-nav/vue.js +11 -3
- package/tabbar-item/index.js +1 -1
- package/tabbar-item/vue.js +1 -1
- package/tabs/index.js +8 -9
- package/tabs/vue.js +1 -1
- package/tabs-mf/index.js +109 -0
- package/tabs-mf/vue-bar.js +49 -0
- package/tabs-mf/vue-nav-item.js +22 -0
- package/tabs-mf/vue-nav.js +13 -0
- package/tabs-mf/vue.js +45 -0
- package/tabs-mf/wheel.js +71 -0
- package/tag/index.js +8 -2
- package/tag/vue.js +13 -5
- package/tag-group/index.js +24 -0
- package/tag-group/vue.js +29 -0
- package/tall-storage/index.js +1 -1
- package/tall-storage/vue.js +1 -1
- package/time/index.js +1 -1
- package/time/vue.js +2 -2
- package/time-line/index.js +28 -7
- package/time-line/vue.js +9 -4
- package/time-panel/index.js +2 -2
- package/time-panel/vue.js +1 -1
- package/time-picker-mobile/index.js +30 -0
- package/time-picker-mobile/vue.js +30 -0
- package/time-range/index.js +1 -1
- package/time-range/vue.js +1 -1
- package/time-spinner/index.js +2 -2
- package/time-spinner/vue.js +1 -1
- package/toggle-menu/index.js +2 -2
- package/toggle-menu/vue.js +1 -1
- package/tooltip/index.js +30 -3
- package/tooltip/vue.js +33 -12
- package/top-box/index.js +3 -3
- package/transfer/index.js +1 -1
- package/transfer-panel/index.js +2 -2
- package/tree/index.js +6 -6
- package/tree/vue.js +1 -1
- package/tree-node/index.js +1 -1
- package/upload/index.js +1 -2
- package/upload/vue.js +2 -2
- package/upload-dragger/index.js +5 -1
- package/upload-dragger/vue.js +9 -3
- package/upload-list/index.js +158 -8
- package/upload-list/vue.js +77 -25
- package/user/index.js +86 -70
- package/user/vue.js +15 -5
- package/user-account/vue.js +1 -1
- package/user-contact/index.js +49 -3
- package/user-contact/vue.js +17 -8
- package/user-head-group/vue.js +17 -0
- package/user-link/index.js +10 -2
- package/user-link/vue.js +11 -6
- package/wheel/index.js +1 -1
- package/wizard/index.js +3 -3
- package/year-range/index.js +125 -0
- package/year-range/vue.js +88 -0
- package/year-table/index.js +175 -11
- package/year-table/vue.js +17 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
|
-
import { merge } from "
|
|
3
|
-
import { markNodeData, NODE_KEY } from "
|
|
4
|
-
import { indexOf } from "
|
|
5
|
-
import { hasOwn, typeOf } from "
|
|
6
|
-
import debounce from "
|
|
2
|
+
import { merge } from "../../object";
|
|
3
|
+
import { markNodeData, NODE_KEY } from "./util";
|
|
4
|
+
import { indexOf } from "../../array";
|
|
5
|
+
import { hasOwn, typeOf } from "../../type";
|
|
6
|
+
import debounce from "../debounce";
|
|
7
7
|
const defaultChildrenKey = "children";
|
|
8
8
|
const getPropertyFromData = (node, prop) => {
|
|
9
9
|
const props = node.store.props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
|
-
import { hasOwn, isNull } from "
|
|
3
|
-
import { getNodeKey } from "
|
|
4
|
-
import Node from "
|
|
2
|
+
import { hasOwn, isNull } from "../../type";
|
|
3
|
+
import { getNodeKey } from "./util";
|
|
4
|
+
import Node from "./node";
|
|
5
5
|
class TreeStore {
|
|
6
6
|
constructor(options) {
|
|
7
7
|
this.currentNode = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../chunk-PKUHTIDK.js";
|
|
2
|
-
import { hasOwn } from "
|
|
3
|
-
import { xss } from "
|
|
2
|
+
import { hasOwn } from "../type";
|
|
3
|
+
import { xss } from "../xss";
|
|
4
4
|
const getBody = (xhr) => {
|
|
5
5
|
const text = xhr.responseText || xhr.response;
|
|
6
6
|
if (!text) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadValues
|
|
3
3
|
} from "../../chunk-PKUHTIDK.js";
|
|
4
|
-
import PopupManager from "
|
|
5
|
-
import PopperJS from "
|
|
6
|
-
import { on, off } from "
|
|
4
|
+
import PopupManager from "./popup-manager";
|
|
5
|
+
import PopperJS from "./popper";
|
|
6
|
+
import { on, off } from "./dom";
|
|
7
7
|
const stop = (e) => {
|
|
8
8
|
e.stopPropagation();
|
|
9
9
|
};
|
|
@@ -28,7 +28,7 @@ const getReferMaxZIndex = (reference) => {
|
|
|
28
28
|
reference = reference.parentNode;
|
|
29
29
|
z = getZIndex(reference);
|
|
30
30
|
max = z > max ? z : max;
|
|
31
|
-
} while (reference !== document.body && ((_a = reference == null ? void 0 : reference.parentNode) == null ? void 0 : _a.nodeType) !== 11);
|
|
31
|
+
} while (reference !== document.body && ((_a = reference == null ? void 0 : reference.parentNode) == null ? void 0 : _a.nodeType) !== 11 && reference.parentNode);
|
|
32
32
|
return `${max + 1}`;
|
|
33
33
|
};
|
|
34
34
|
const appendPopper = ({ options, props, state, parent }) => {
|
package/common/deps/vue-popup.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadValues
|
|
3
3
|
} from "../../chunk-PKUHTIDK.js";
|
|
4
|
-
import { merge } from "
|
|
5
|
-
import PopupManager from "
|
|
6
|
-
import getScrollBarWidth from "
|
|
7
|
-
import { getStyle, addClass, removeClass, hasClass } from "
|
|
4
|
+
import { merge } from "../object";
|
|
5
|
+
import PopupManager from "./popup-manager";
|
|
6
|
+
import getScrollBarWidth from "./scrollbar-width";
|
|
7
|
+
import { getStyle, addClass, removeClass, hasClass } from "./dom";
|
|
8
8
|
let idSeed = 1;
|
|
9
9
|
let scrollBarWidth;
|
|
10
10
|
const isServer = typeof window === "undefined";
|
package/common/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import { log as uLog, xss } from "
|
|
2
|
+
import { log as uLog, xss } from "./xss.js";
|
|
3
3
|
const KEY_CODE = {
|
|
4
4
|
Backspace: 8,
|
|
5
5
|
Tab: 9,
|
|
@@ -251,7 +251,7 @@ const EDOC = {
|
|
|
251
251
|
constants: 320,
|
|
252
252
|
twenty: 20
|
|
253
253
|
};
|
|
254
|
-
const version = "3.
|
|
254
|
+
const version = "3.8.0";
|
|
255
255
|
const log = (data, type = "log") => {
|
|
256
256
|
uLog.logger[type](data);
|
|
257
257
|
};
|
package/common/object.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import { hasOwn, typeOf, isObject, isPlainObject, isNull } from "
|
|
2
|
+
import { hasOwn, typeOf, isObject, isPlainObject, isNull } from "./type";
|
|
3
3
|
const each = (obj, handle) => {
|
|
4
4
|
if (typeof handle !== "function") {
|
|
5
5
|
return;
|
package/common/runtime.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import * as array from "
|
|
3
|
-
import browser from "
|
|
4
|
-
import * as date from "
|
|
5
|
-
import * as decimal from "
|
|
6
|
-
import * as object from "
|
|
7
|
-
import * as string from "
|
|
8
|
-
import * as type from "
|
|
9
|
-
import * as dataset from "
|
|
10
|
-
import afterLeave from "
|
|
11
|
-
import clickoutside from "
|
|
12
|
-
import debounce from "
|
|
13
|
-
import * as dom from "
|
|
14
|
-
import popper from "
|
|
15
|
-
import popupManager from "
|
|
16
|
-
import * as resizeEvent from "
|
|
17
|
-
import * as scrollbarWidth from "
|
|
18
|
-
import throttle from "
|
|
19
|
-
import vueEmitter from "
|
|
20
|
-
import vuePopper from "
|
|
21
|
-
import vuePopup from "
|
|
22
|
-
import validate from "
|
|
23
|
-
import memorize from "
|
|
24
|
-
import * as common from "
|
|
25
|
-
const version = "3.
|
|
2
|
+
import * as array from "./array";
|
|
3
|
+
import browser from "./browser";
|
|
4
|
+
import * as date from "./date";
|
|
5
|
+
import * as decimal from "./decimal";
|
|
6
|
+
import * as object from "./object";
|
|
7
|
+
import * as string from "./string";
|
|
8
|
+
import * as type from "./type";
|
|
9
|
+
import * as dataset from "./dataset";
|
|
10
|
+
import afterLeave from "./deps/after-leave";
|
|
11
|
+
import clickoutside from "./deps/clickoutside";
|
|
12
|
+
import debounce from "./deps/debounce";
|
|
13
|
+
import * as dom from "./deps/dom";
|
|
14
|
+
import popper from "./deps/popper";
|
|
15
|
+
import popupManager from "./deps/popup-manager";
|
|
16
|
+
import * as resizeEvent from "./deps/resize-event";
|
|
17
|
+
import * as scrollbarWidth from "./deps/scrollbar-width";
|
|
18
|
+
import throttle from "./deps/throttle";
|
|
19
|
+
import vueEmitter from "./deps/vue-emitter";
|
|
20
|
+
import vuePopper from "./deps/vue-popper";
|
|
21
|
+
import vuePopup from "./deps/vue-popup";
|
|
22
|
+
import validate from "./validate";
|
|
23
|
+
import memorize from "./deps/memorize";
|
|
24
|
+
import * as common from ".";
|
|
25
|
+
const version = "3.8.0";
|
|
26
26
|
const Renderless = {
|
|
27
27
|
browser,
|
|
28
28
|
array,
|
package/common/string.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import { isPlainObject, isNumber, isNumeric, isNull } from "
|
|
3
|
-
import { getObj, toJsonStr } from "
|
|
4
|
-
import { toFixed } from "
|
|
5
|
-
import { nanoid } from "
|
|
2
|
+
import { isPlainObject, isNumber, isNumeric, isNull } from "./type";
|
|
3
|
+
import { getObj, toJsonStr } from "./object";
|
|
4
|
+
import { toFixed } from "./decimal";
|
|
5
|
+
import { nanoid } from "./xss";
|
|
6
6
|
const formatTypes = {
|
|
7
7
|
text: "text",
|
|
8
8
|
url: "url",
|
|
@@ -341,6 +341,24 @@ const toFileSize = (value, unit, currUnit) => {
|
|
|
341
341
|
return value;
|
|
342
342
|
};
|
|
343
343
|
const isKorean = (text) => /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(text);
|
|
344
|
+
const omitText = (text, font, w) => {
|
|
345
|
+
const canvas = document.createElement("canvas");
|
|
346
|
+
const ctx = canvas.getContext("2d");
|
|
347
|
+
ctx.font = font;
|
|
348
|
+
let metric = ctx.measureText(text);
|
|
349
|
+
let t;
|
|
350
|
+
if (metric.width < w) {
|
|
351
|
+
return { t: text, o: false };
|
|
352
|
+
} else {
|
|
353
|
+
for (let i = -1; ; i--) {
|
|
354
|
+
t = text.slice(0, i) + "...";
|
|
355
|
+
metric = ctx.measureText(t);
|
|
356
|
+
if (metric.width < w) {
|
|
357
|
+
return { t, o: true };
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
};
|
|
344
362
|
export {
|
|
345
363
|
camelize,
|
|
346
364
|
capitalize,
|
|
@@ -356,6 +374,7 @@ export {
|
|
|
356
374
|
hyphenate,
|
|
357
375
|
isKorean,
|
|
358
376
|
isNullOrEmpty,
|
|
377
|
+
omitText,
|
|
359
378
|
random,
|
|
360
379
|
toBoolValue,
|
|
361
380
|
toCurrency,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import * as util from "../util";
|
|
3
|
-
import { isNumber } from "
|
|
4
|
-
import { getLength } from "
|
|
3
|
+
import { isNumber } from "../../type";
|
|
4
|
+
import { getLength } from "../../string";
|
|
5
5
|
function getErro({ min, max, val, key, rule, errors, util: util2, options }) {
|
|
6
6
|
if (min && !max && val < rule.min) {
|
|
7
7
|
errors.push(util2.format(options.messages[key].min, rule.fullField, rule.min));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import * as util from "../util";
|
|
3
|
-
import { hasOwn } from "
|
|
3
|
+
import { hasOwn } from "../../type";
|
|
4
4
|
function required_default({ rule, checkValue, source, errors, options, type }) {
|
|
5
5
|
if (rule.required && (!hasOwn.call(source, rule.field) || util.isEmptyValue(checkValue, type || rule.type))) {
|
|
6
6
|
errors.push(util.format(options.messages.required, rule.fullField));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import * as util from "../util";
|
|
3
3
|
import required from "./required";
|
|
4
|
-
import { format } from "
|
|
5
|
-
import { isNullOrEmpty } from "
|
|
6
|
-
import { isNumber, isObject, isDate, typeOf } from "
|
|
4
|
+
import { format } from "../../date";
|
|
5
|
+
import { isNullOrEmpty } from "../../string";
|
|
6
|
+
import { isNumber, isObject, isDate, typeOf } from "../../type";
|
|
7
7
|
const emailReg1 = '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))';
|
|
8
8
|
const emailReg = new RegExp(emailReg1 + "@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,6}))$");
|
|
9
9
|
const pattern = {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__spreadValues
|
|
4
4
|
} from "../../chunk-PKUHTIDK.js";
|
|
5
5
|
import { format, complementError, asyncMap, warning, deepMerge, convertFieldsError } from "./util";
|
|
6
|
-
import { hasOwn, isFunction } from "
|
|
6
|
+
import { hasOwn, isFunction } from "../type";
|
|
7
7
|
function Schema(descriptor, translate) {
|
|
8
8
|
Schema.getSystemMessage = () => Schema.getDefaultMessage(translate);
|
|
9
9
|
Schema.messages = Schema.getSystemMessage(translate);
|
package/common/validate/util.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadValues
|
|
3
3
|
} from "../../chunk-PKUHTIDK.js";
|
|
4
|
-
import { hasOwn, isNull } from "
|
|
4
|
+
import { hasOwn, isNull } from "../type";
|
|
5
5
|
const formatRegExp = /%[sdj%]/g;
|
|
6
6
|
let warning = () => void 0;
|
|
7
7
|
function convertFieldsError(errors) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
function array_default(rule, checkValue, callback, source, options) {
|
|
6
6
|
const errors = [];
|
|
7
7
|
const validate = rule.required || !rule.required && hasOwn.call(source, rule.field);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
function date_default(rule, checkValue, callback, source, options) {
|
|
6
6
|
const errors = [];
|
|
7
7
|
const validate = rule.required || !rule.required && hasOwn.call(source, rule.field);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
const ENUM = "enum";
|
|
6
6
|
function enum_default(rule, checkValue, callback, source, options) {
|
|
7
7
|
const errors = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
function float_default(rule, checkValue, cb, source, options) {
|
|
6
6
|
const errors = [];
|
|
7
7
|
const validate = rule.required || !rule.required && hasOwn.call(source, rule.field);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
function integer_default(rule, checkValue, callback, source, options) {
|
|
6
6
|
const errors = [];
|
|
7
7
|
const validate = rule.required || !rule.required && hasOwn.call(source, rule.field);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
function method_default(rule, checkValue, callback, source, options) {
|
|
6
6
|
const validate = rule.required || !rule.required && hasOwn.call(source, rule.field);
|
|
7
7
|
const errors = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
function number_default(rule, checkValue, callback, source, options) {
|
|
6
6
|
const errors = [];
|
|
7
7
|
const validate = rule.required || !rule.required && hasOwn.call(source, rule.field);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
function pattern_default(rule, checkValue, callback, source, options) {
|
|
6
6
|
const errors = [];
|
|
7
7
|
const validate = rule.required || !rule.required && hasOwn.call(source, rule.field);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
function string_default(rule, checkValue, callback, source, options) {
|
|
6
6
|
const errors = [];
|
|
7
7
|
const validate = rule.required || !rule.required && hasOwn.call(source, rule.field);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
2
|
import rules from "../rules/index";
|
|
3
3
|
import { isEmptyValue } from "../util";
|
|
4
|
-
import { hasOwn } from "
|
|
4
|
+
import { hasOwn } from "../../type";
|
|
5
5
|
function type_default(rule, checkValue, callback, source, options) {
|
|
6
6
|
const ruleType = rule.type;
|
|
7
7
|
const errors = [];
|
package/container/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import { isNumber } from "
|
|
2
|
+
import { isNumber } from "../common/type";
|
|
3
3
|
const computedShowHeader = ({ constants, props }) => () => props.pattern !== constants.SIMPLE;
|
|
4
4
|
const computedShowFooter = ({ constants, props }) => () => props.pattern === constants.LEGEND || props.pattern === constants.CLASSIC;
|
|
5
5
|
const computedShowAside = ({ constants, props }) => () => props.pattern !== constants.CLASSIC;
|
package/crop/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import { on, off } from "
|
|
3
|
-
import { toFileSize } from "
|
|
2
|
+
import { on, off } from "../common/deps/dom";
|
|
3
|
+
import { toFileSize } from "../common/string";
|
|
4
4
|
const computedCropImages = ({ constants, t }) => () => t(constants.CROP_IMAGE);
|
|
5
5
|
const watchImageSrc = (state) => (value) => state.src = value;
|
|
6
6
|
const watchAlt = (state) => (value) => state.alt = value || "image";
|
package/currency/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import { isUndefined, isNull } from "
|
|
3
|
-
import { log } from "
|
|
2
|
+
import { isUndefined, isNull } from "../grid/static";
|
|
3
|
+
import { log } from "../common";
|
|
4
4
|
const init = ({ state, service, api }) => () => {
|
|
5
5
|
const { textField, valueField } = service.fields;
|
|
6
6
|
service.fetchCurrency().then((data) => {
|
package/date-panel/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
__spreadProps,
|
|
3
3
|
__spreadValues
|
|
4
4
|
} from "../chunk-PKUHTIDK.js";
|
|
5
|
-
import { getWeekData } from "
|
|
6
|
-
import debounce from "
|
|
5
|
+
import { getWeekData } from "../picker";
|
|
6
|
+
import debounce from "../common/deps/debounce";
|
|
7
7
|
import {
|
|
8
8
|
isDate,
|
|
9
9
|
parseDate,
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
changeYearMonthAndClampDate,
|
|
21
21
|
formatDate,
|
|
22
22
|
extractTimeFormat
|
|
23
|
-
} from "
|
|
24
|
-
import { DATEPICKER } from "
|
|
25
|
-
import { on, off } from "
|
|
26
|
-
import { getDateWithNewTimezone, getLocalTimezone } from "
|
|
27
|
-
import { fillChar } from "
|
|
23
|
+
} from "../common/deps/date-util";
|
|
24
|
+
import { DATEPICKER } from "../common";
|
|
25
|
+
import { on, off } from "../common/deps/dom";
|
|
26
|
+
import { getDateWithNewTimezone, getLocalTimezone } from "../common/date";
|
|
27
|
+
import { fillChar } from "../common/string";
|
|
28
28
|
const getYearLabel = ({ state, t }) => () => {
|
|
29
29
|
const yearTranslation = t(DATEPICKER.YearI18n);
|
|
30
30
|
if (state.currentView === DATEPICKER.Year) {
|
package/date-panel/vue.js
CHANGED
|
@@ -44,8 +44,8 @@ import {
|
|
|
44
44
|
computerTimeFormat,
|
|
45
45
|
watchVisible
|
|
46
46
|
} from "./index";
|
|
47
|
-
import { getWeekNumber, extractDateFormat } from "
|
|
48
|
-
import { DATEPICKER, DATE } from "
|
|
47
|
+
import { getWeekNumber, extractDateFormat } from "../common/deps/date-util";
|
|
48
|
+
import { DATEPICKER, DATE } from "../common";
|
|
49
49
|
const api = [
|
|
50
50
|
"state",
|
|
51
51
|
"isValidValue",
|
|
@@ -101,6 +101,7 @@ const initState = ({ reactive, computed, api: api2, i18n }) => {
|
|
|
101
101
|
tz: "",
|
|
102
102
|
selectedTz: null,
|
|
103
103
|
animationName: "",
|
|
104
|
+
startYear: Math.floor((/* @__PURE__ */ new Date()).getFullYear() / 10) * 10,
|
|
104
105
|
year: computed(() => state.date.getFullYear()),
|
|
105
106
|
month: computed(() => state.date.getMonth()),
|
|
106
107
|
week: computed(() => getWeekNumber(state.date)),
|