@quoreadmin/ui 1.7.3 → 1.7.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.
- package/dist/index140.js +361 -307
- package/dist/index142.js +1 -1
- package/dist/index171.js +14 -14
- package/dist/index172.js +3 -3
- package/dist/index175.js +4 -4
- package/dist/index182.js +10 -10
- package/dist/index184.js +9 -9
- package/dist/index186.js +36 -1190
- package/dist/{index189.js → index187.js} +17 -17
- package/dist/index188.js +1190 -36
- package/dist/index190.js +27 -27
- package/dist/index191.js +2 -2
- package/dist/index192.js +2 -2
- package/dist/index193.js +1 -1
- package/dist/index195.js +2 -2
- package/dist/index197.js +14 -14
- package/dist/index198.js +1 -1
- package/dist/index199.js +1 -1
- package/dist/index200.js +3 -3
- package/dist/index201.js +6 -6
- package/dist/index202.js +29 -84
- package/dist/index203.js +109 -400
- package/dist/index204.js +36 -22
- package/dist/index205.js +26 -33
- package/dist/index206.js +31 -111
- package/dist/index207.js +9 -36
- package/dist/index208.js +19 -26
- package/dist/index209.js +10 -36
- package/dist/index210.js +10 -9
- package/dist/index211.js +50 -18
- package/dist/index212.js +43 -10
- package/dist/index213.js +4 -10
- package/dist/index214.js +36 -48
- package/dist/index215.js +21 -43
- package/dist/index216.js +87 -3
- package/dist/index217.js +403 -35
- package/dist/index218.js +22 -21
- package/dist/index219.js +126 -21
- package/dist/index220.js +37 -21
- package/dist/index221.js +80 -20
- package/dist/index222.js +20 -836
- package/dist/index223.js +19 -701
- package/dist/index224.js +19 -175
- package/dist/index225.js +1 -1
- package/dist/index226.js +11 -11
- package/dist/index227.js +160 -21
- package/dist/index228.js +228 -20
- package/dist/index229.js +36 -19
- package/dist/index230.js +10 -20
- package/dist/index231.js +161 -3
- package/dist/index232.js +19 -186
- package/dist/index233.js +21 -132
- package/dist/index234.js +167 -129
- package/dist/index235.js +46 -1199
- package/dist/index236.js +31 -124
- package/dist/index237.js +39 -19
- package/dist/index238.js +3632 -22
- package/dist/index239.js +55 -20
- package/dist/index240.js +77 -22
- package/dist/index241.js +46 -32
- package/dist/index242.js +215 -29
- package/dist/index243.js +10 -20
- package/dist/index244.js +57 -20
- package/dist/index245.js +61 -2
- package/dist/index246.js +54 -2
- package/dist/index247.js +74 -160
- package/dist/index248.js +707 -212
- package/dist/index249.js +39 -37
- package/dist/index250.js +64 -10
- package/dist/index251.js +11 -22
- package/dist/index252.js +689 -183
- package/dist/index253.js +813 -63
- package/dist/index254.js +22 -34
- package/dist/index255.js +20 -38
- package/dist/index256.js +20 -80
- package/dist/index257.js +836 -20
- package/dist/index258.js +701 -19
- package/dist/index259.js +170 -3626
- package/dist/index260.js +22 -55
- package/dist/index261.js +20 -77
- package/dist/index262.js +20 -52
- package/dist/index263.js +3 -215
- package/dist/index264.js +187 -10
- package/dist/index265.js +128 -52
- package/dist/index266.js +1214 -52
- package/dist/index267.js +20 -54
- package/dist/index268.js +22 -75
- package/dist/index269.js +21 -722
- package/dist/index270.js +29 -39
- package/dist/index271.js +20 -64
- package/dist/index272.js +20 -11
- package/dist/index273.js +2 -705
- package/dist/index274.js +2 -820
- package/dist/index279.js +2 -79
- package/dist/index280.js +71 -71
- package/dist/index281.js +3 -22
- package/dist/index282.js +24 -932
- package/dist/index283.js +53 -21
- package/dist/index284.js +18 -12
- package/dist/index285.js +13 -11
- package/dist/index286.js +21 -68
- package/dist/index287.js +14 -17
- package/dist/index288.js +14 -16
- package/dist/index289.js +21 -52
- package/dist/index290.js +1518 -22
- package/dist/index291.js +386 -22
- package/dist/index292.js +2731 -63
- package/dist/index293.js +86 -2
- package/dist/index294.js +3770 -26
- package/dist/index295.js +59 -21
- package/dist/index296.js +15 -22
- package/dist/index297.js +84 -16
- package/dist/index298.js +201 -16
- package/dist/index299.js +246 -23
- package/dist/index300.js +235 -3
- package/dist/index301.js +4 -25
- package/dist/index302.js +123 -1507
- package/dist/index303.js +61 -379
- package/dist/index304.js +81 -2725
- package/dist/index305.js +26 -83
- package/dist/index306.js +9 -3770
- package/dist/index307.js +72 -57
- package/dist/index308.js +4 -15
- package/dist/index309.js +2 -84
- package/dist/index310.js +74 -193
- package/dist/index311.js +54 -246
- package/dist/index312.js +4 -233
- package/dist/index313.js +4 -5
- package/dist/index314.js +166 -121
- package/dist/index315.js +58 -63
- package/dist/index316.js +73 -85
- package/dist/index317.js +75 -25
- package/dist/index318.js +21 -8
- package/dist/index319.js +926 -66
- package/dist/index320.js +21 -3
- package/dist/index321.js +20 -2
- package/dist/index322.js +19 -82
- package/dist/index323.js +66 -51
- package/dist/index324.js +19 -6
- package/dist/index325.js +19 -5
- package/dist/index326.js +21 -178
- package/dist/index327.js +21 -62
- package/dist/index328.js +62 -74
- package/dist/index330.js +8 -19
- package/dist/index331.js +12 -19
- package/dist/index332.js +51 -60
- package/dist/index333.js +12 -37
- package/dist/index334.js +13 -8
- package/dist/index335.js +57 -12
- package/dist/index336.js +48 -51
- package/dist/index337.js +28 -9
- package/dist/index338.js +2 -14
- package/dist/index339.js +5 -58
- package/dist/index340.js +2 -52
- package/dist/index341.js +22 -30
- package/dist/index342.js +41 -2
- package/dist/index343.js +2 -5
- package/dist/index344.js +11 -2
- package/dist/index345.js +19 -22
- package/dist/index346.js +14 -38
- package/dist/index347.js +10 -2
- package/dist/index348.js +9 -10
- package/dist/index349.js +2 -20
- package/dist/index350.js +8 -16
- package/dist/index351.js +10 -10
- package/dist/index352.js +13 -9
- package/dist/index353.js +21 -2
- package/dist/index354.js +56 -9
- package/dist/index355.js +28 -9
- package/dist/index356.js +7 -14
- package/dist/index357.js +49 -18
- package/dist/index358.js +6 -56
- package/dist/index359.js +10 -27
- package/dist/index360.js +7 -7
- package/dist/index361.js +27 -51
- package/dist/index362.js +2 -6
- package/dist/index363.js +69 -11
- package/dist/index364.js +166 -6
- package/dist/index365.js +20 -28
- package/dist/index366.js +20 -2
- package/dist/index367.js +61 -67
- package/dist/index368.js +36 -166
- package/dist/index369.js +100 -16
- package/dist/index370.js +91 -98
- package/dist/index371.js +95 -98
- package/dist/index372.js +30 -90
- package/dist/index373.js +10 -30
- package/dist/index374.js +3 -10
- package/dist/index375.js +3 -3
- package/dist/index376.js +13 -4
- package/dist/index377.js +7 -13
- package/dist/index378.js +12 -7
- package/dist/index379.js +4 -11
- package/dist/index380.js +33 -5
- package/dist/index381.js +31 -33
- package/dist/index382.js +26 -29
- package/dist/index383.js +59 -26
- package/dist/index384.js +16 -60
- package/dist/index385.js +1 -1
- package/dist/index390.js +1 -1
- package/dist/index391.js +2 -2
- package/package.json +1 -1
package/dist/index224.js
CHANGED
|
@@ -1,178 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./index280.js";
|
|
2
|
+
import { createElementBlock as t, openBlock as o, mergeProps as n, createElementVNode as i } from "vue";
|
|
2
3
|
var p = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}];
|
|
20
|
-
},
|
|
21
|
-
loadingOverlay: "p-datatable-loading-overlay p-component-overlay",
|
|
22
|
-
loadingIcon: "p-datatable-loading-icon",
|
|
23
|
-
header: "p-datatable-header",
|
|
24
|
-
paginator: function(t) {
|
|
25
|
-
var e = t.instance;
|
|
26
|
-
return e.paginatorTop ? "p-paginator-top" : e.paginatorBottom ? "p-paginator-bottom" : "";
|
|
27
|
-
},
|
|
28
|
-
wrapper: "p-datatable-wrapper",
|
|
29
|
-
table: function(t) {
|
|
30
|
-
var e = t.props;
|
|
31
|
-
return ["p-datatable-table", {
|
|
32
|
-
"p-datatable-scrollable-table": e.scrollable,
|
|
33
|
-
"p-datatable-resizable-table": e.resizableColumns,
|
|
34
|
-
"p-datatable-resizable-table-fit": e.resizableColumns && e.columnResizeMode === "fit"
|
|
35
|
-
}];
|
|
36
|
-
},
|
|
37
|
-
//tablehead
|
|
38
|
-
thead: "p-datatable-thead",
|
|
39
|
-
// headercell
|
|
40
|
-
headerCell: function(t) {
|
|
41
|
-
var e = t.instance, o = t.props, l = t.column;
|
|
42
|
-
return l && !e.columnProp(l, "hidden") && (o.rowGroupMode !== "subheader" || o.groupRowsBy !== e.columnProp(l, "field")) ? ["p-filter-column", {
|
|
43
|
-
"p-frozen-column": e.columnProp(l, "frozen")
|
|
44
|
-
}] : [{
|
|
45
|
-
"p-sortable-column": e.columnProp("sortable"),
|
|
46
|
-
"p-resizable-column": e.resizableColumns,
|
|
47
|
-
"p-highlight": e.isColumnSorted(),
|
|
48
|
-
"p-filter-column": o.filterColumn,
|
|
49
|
-
"p-frozen-column": e.columnProp("frozen"),
|
|
50
|
-
"p-reorderable-column": o.reorderableColumns
|
|
51
|
-
}];
|
|
52
|
-
},
|
|
53
|
-
columnResizer: "p-column-resizer",
|
|
54
|
-
headerContent: "p-column-header-content",
|
|
55
|
-
headerTitle: "p-column-title",
|
|
56
|
-
sortIcon: "p-sortable-column-icon",
|
|
57
|
-
sortBadge: "p-sortable-column-badge",
|
|
58
|
-
// columnfilter
|
|
59
|
-
columnFilter: function(t) {
|
|
60
|
-
var e = t.props;
|
|
61
|
-
return ["p-column-filter p-fluid", {
|
|
62
|
-
"p-column-filter-row": e.display === "row",
|
|
63
|
-
"p-column-filter-menu": e.display === "menu"
|
|
64
|
-
}];
|
|
65
|
-
},
|
|
66
|
-
filterInput: "p-fluid p-column-filter-element",
|
|
67
|
-
filterMenuButton: function(t) {
|
|
68
|
-
var e = t.instance;
|
|
69
|
-
return ["p-column-filter-menu-button p-link", {
|
|
70
|
-
"p-column-filter-menu-button-open": e.overlayVisible,
|
|
71
|
-
"p-column-filter-menu-button-active": e.hasFilter()
|
|
72
|
-
}];
|
|
73
|
-
},
|
|
74
|
-
headerFilterClearButton: function(t) {
|
|
75
|
-
var e = t.instance;
|
|
76
|
-
return ["p-column-filter-clear-button p-link", {
|
|
77
|
-
"p-hidden-space": !e.hasRowFilter()
|
|
78
|
-
}];
|
|
79
|
-
},
|
|
80
|
-
filterOverlay: function(t) {
|
|
81
|
-
var e = t.instance, o = t.props;
|
|
82
|
-
return [{
|
|
83
|
-
"p-column-filter-overlay p-component p-fluid": !0,
|
|
84
|
-
"p-column-filter-overlay-menu": o.display === "menu",
|
|
85
|
-
"p-ripple-disabled": e.$primevue.config.ripple === !1
|
|
86
|
-
}];
|
|
87
|
-
},
|
|
88
|
-
filterRowItems: "p-column-filter-row-items",
|
|
89
|
-
filterRowItem: function(t) {
|
|
90
|
-
var e = t.instance, o = t.matchMode;
|
|
91
|
-
return ["p-column-filter-row-item", {
|
|
92
|
-
"p-highlight": o && e.isRowMatchModeSelected(o.value)
|
|
93
|
-
}];
|
|
94
|
-
},
|
|
95
|
-
filterSeparator: "p-column-filter-separator",
|
|
96
|
-
filterOperator: "p-column-filter-operator",
|
|
97
|
-
filterOperatorDropdown: "p-column-filter-operator-dropdown",
|
|
98
|
-
filterConstraints: "p-column-filter-constraints",
|
|
99
|
-
filterConstraint: "p-column-filter-constraint",
|
|
100
|
-
filterMatchModeDropdown: "p-column-filter-matchmode-dropdown",
|
|
101
|
-
filterRemoveButton: "p-column-filter-remove-button p-button-text p-button-danger p-button-sm",
|
|
102
|
-
filterAddRule: "p-column-filter-add-rule",
|
|
103
|
-
filterAddRuleButton: "p-column-filter-add-button p-button-text p-button-sm",
|
|
104
|
-
filterButtonbar: "p-column-filter-buttonbar",
|
|
105
|
-
filterClearButton: "p-button-outlined p-button-sm",
|
|
106
|
-
filterApplyButton: "p-button-sm",
|
|
107
|
-
//tablebody
|
|
108
|
-
tbody: function(t) {
|
|
109
|
-
var e = t.props;
|
|
110
|
-
return e.frozenRow ? "p-datatable-tbody p-datatable-frozen-tbody" : "p-datatable-tbody";
|
|
111
|
-
},
|
|
112
|
-
rowgroupHeader: "p-rowgroup-header",
|
|
113
|
-
rowGroupToggler: "p-row-toggler p-link",
|
|
114
|
-
rowGroupTogglerIcon: "p-row-toggler-icon",
|
|
115
|
-
row: function(t) {
|
|
116
|
-
var e = t.instance, o = t.props, l = t.index, a = t.columnSelectionMode, n = [];
|
|
117
|
-
return o.selectionMode && n.push("p-selectable-row"), o.selection && n.push({
|
|
118
|
-
"p-highlight": a ? e.isSelected && e.$parentInstance.$parentInstance.highlightOnSelect : e.isSelected
|
|
119
|
-
}), o.contextMenuSelection && n.push({
|
|
120
|
-
"p-highlight-contextmenu": e.isSelectedWithContextMenu
|
|
121
|
-
}), n.push(l % 2 === 0 ? "p-row-even" : "p-row-odd"), n;
|
|
122
|
-
},
|
|
123
|
-
rowExpansion: "p-datatable-row-expansion",
|
|
124
|
-
rowgroupFooter: "p-rowgroup-footer",
|
|
125
|
-
emptyMessage: "p-datatable-emptymessage",
|
|
126
|
-
//bodycell
|
|
127
|
-
bodyCell: function(t) {
|
|
128
|
-
var e = t.instance;
|
|
129
|
-
return [{
|
|
130
|
-
"p-selection-column": e.columnProp("selectionMode") != null,
|
|
131
|
-
"p-editable-column": e.isEditable(),
|
|
132
|
-
"p-cell-editing": e.d_editing,
|
|
133
|
-
"p-frozen-column": e.columnProp("frozen")
|
|
134
|
-
}];
|
|
135
|
-
},
|
|
136
|
-
columnTitle: "p-column-title",
|
|
137
|
-
rowReorderIcon: "p-datatable-reorderablerow-handle",
|
|
138
|
-
rowToggler: "p-row-toggler p-link",
|
|
139
|
-
rowTogglerIcon: "p-row-toggler-icon",
|
|
140
|
-
rowEditorInitButton: "p-row-editor-init p-link",
|
|
141
|
-
rowEditorInitIcon: "p-row-editor-init-icon",
|
|
142
|
-
rowEditorSaveButton: "p-row-editor-save p-link",
|
|
143
|
-
rowEditorSaveIcon: "p-row-editor-save-icon",
|
|
144
|
-
rowEditorCancelButton: "p-row-editor-cancel p-link",
|
|
145
|
-
rowEditorCancelIcon: "p-row-editor-cancel-icon",
|
|
146
|
-
//tablefooter
|
|
147
|
-
tfoot: "p-datatable-tfoot",
|
|
148
|
-
//footercell
|
|
149
|
-
footerCell: function(t) {
|
|
150
|
-
var e = t.instance;
|
|
151
|
-
return [{
|
|
152
|
-
"p-frozen-column": e.columnProp("frozen")
|
|
153
|
-
}];
|
|
154
|
-
},
|
|
155
|
-
//datatable
|
|
156
|
-
virtualScrollerSpacer: "p-datatable-virtualscroller-spacer",
|
|
157
|
-
footer: "p-datatable-footer",
|
|
158
|
-
resizeHelper: "p-column-resizer-helper",
|
|
159
|
-
reorderIndicatorUp: "p-datatable-reorder-indicator-up",
|
|
160
|
-
reorderIndicatorDown: "p-datatable-reorder-indicator-down"
|
|
161
|
-
}, u = {
|
|
162
|
-
wrapper: {
|
|
163
|
-
overflow: "auto"
|
|
164
|
-
},
|
|
165
|
-
thead: {
|
|
166
|
-
position: "sticky"
|
|
167
|
-
},
|
|
168
|
-
tfoot: {
|
|
169
|
-
position: "sticky"
|
|
170
|
-
}
|
|
171
|
-
}, s = i.extend({
|
|
172
|
-
name: "datatable",
|
|
173
|
-
classes: p,
|
|
174
|
-
inlineStyles: u
|
|
175
|
-
});
|
|
4
|
+
name: "ChevronRightIcon",
|
|
5
|
+
extends: r
|
|
6
|
+
}, C = /* @__PURE__ */ i("path", {
|
|
7
|
+
d: "M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",
|
|
8
|
+
fill: "currentColor"
|
|
9
|
+
}, null, -1), l = [C];
|
|
10
|
+
function s(e, a, c, d, h, m) {
|
|
11
|
+
return o(), t("svg", n({
|
|
12
|
+
width: "14",
|
|
13
|
+
height: "14",
|
|
14
|
+
viewBox: "0 0 14 14",
|
|
15
|
+
fill: "none",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
17
|
+
}, e.pti()), l, 16);
|
|
18
|
+
}
|
|
19
|
+
p.render = s;
|
|
176
20
|
export {
|
|
177
|
-
|
|
21
|
+
p as default
|
|
178
22
|
};
|
package/dist/index225.js
CHANGED
package/dist/index226.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import r from "./
|
|
2
|
-
import { createElementBlock as t, openBlock as o, mergeProps as n, createElementVNode as
|
|
3
|
-
var
|
|
4
|
-
name: "
|
|
1
|
+
import r from "./index280.js";
|
|
2
|
+
import { createElementBlock as t, openBlock as o, mergeProps as n, createElementVNode as p } from "vue";
|
|
3
|
+
var i = {
|
|
4
|
+
name: "ChevronUpIcon",
|
|
5
5
|
extends: r
|
|
6
|
-
},
|
|
7
|
-
d: "
|
|
6
|
+
}, l = /* @__PURE__ */ p("path", {
|
|
7
|
+
d: "M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z",
|
|
8
8
|
fill: "currentColor"
|
|
9
|
-
}, null, -1),
|
|
10
|
-
function
|
|
9
|
+
}, null, -1), s = [l];
|
|
10
|
+
function C(e, a, c, d, h, m) {
|
|
11
11
|
return o(), t("svg", n({
|
|
12
12
|
width: "14",
|
|
13
13
|
height: "14",
|
|
14
14
|
viewBox: "0 0 14 14",
|
|
15
15
|
fill: "none",
|
|
16
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
17
|
-
}, e.pti()),
|
|
17
|
+
}, e.pti()), s, 16);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
i.render = C;
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
i as default
|
|
22
22
|
};
|
package/dist/index227.js
CHANGED
|
@@ -1,24 +1,163 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { toDate as m, isValidDate as M, getWeek as l } from "./index229.js";
|
|
2
|
+
import h from "./index230.js";
|
|
3
|
+
var Y = /\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;
|
|
4
|
+
function r(n) {
|
|
5
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2, e = "".concat(Math.abs(n)), u = n < 0 ? "-" : ""; e.length < t; )
|
|
6
|
+
e = "0".concat(e);
|
|
7
|
+
return u + e;
|
|
8
|
+
}
|
|
9
|
+
function c(n) {
|
|
10
|
+
return Math.round(n.getTimezoneOffset() / 15) * 15;
|
|
11
|
+
}
|
|
12
|
+
function g(n) {
|
|
13
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n > 0 ? "-" : "+", u = Math.abs(n), o = Math.floor(u / 60), a = u % 60;
|
|
14
|
+
return e + r(o, 2) + t + r(a, 2);
|
|
15
|
+
}
|
|
16
|
+
var d = function(t, e, u) {
|
|
17
|
+
var o = t < 12 ? "AM" : "PM";
|
|
18
|
+
return u ? o.toLocaleLowerCase() : o;
|
|
19
|
+
}, i = {
|
|
20
|
+
Y: function(t) {
|
|
21
|
+
var e = t.getFullYear();
|
|
22
|
+
return e <= 9999 ? "".concat(e) : "+".concat(e);
|
|
23
|
+
},
|
|
24
|
+
// Year: 00, 01, ..., 99
|
|
25
|
+
YY: function(t) {
|
|
26
|
+
return r(t.getFullYear(), 4).substr(2);
|
|
27
|
+
},
|
|
28
|
+
// Year: 1900, 1901, ..., 2099
|
|
29
|
+
YYYY: function(t) {
|
|
30
|
+
return r(t.getFullYear(), 4);
|
|
31
|
+
},
|
|
32
|
+
// Month: 1, 2, ..., 12
|
|
33
|
+
M: function(t) {
|
|
34
|
+
return t.getMonth() + 1;
|
|
35
|
+
},
|
|
36
|
+
// Month: 01, 02, ..., 12
|
|
37
|
+
MM: function(t) {
|
|
38
|
+
return r(t.getMonth() + 1, 2);
|
|
39
|
+
},
|
|
40
|
+
MMM: function(t, e) {
|
|
41
|
+
return e.monthsShort[t.getMonth()];
|
|
42
|
+
},
|
|
43
|
+
MMMM: function(t, e) {
|
|
44
|
+
return e.months[t.getMonth()];
|
|
45
|
+
},
|
|
46
|
+
// Day of month: 1, 2, ..., 31
|
|
47
|
+
D: function(t) {
|
|
48
|
+
return t.getDate();
|
|
49
|
+
},
|
|
50
|
+
// Day of month: 01, 02, ..., 31
|
|
51
|
+
DD: function(t) {
|
|
52
|
+
return r(t.getDate(), 2);
|
|
53
|
+
},
|
|
54
|
+
// Hour: 0, 1, ... 23
|
|
55
|
+
H: function(t) {
|
|
56
|
+
return t.getHours();
|
|
57
|
+
},
|
|
58
|
+
// Hour: 00, 01, ..., 23
|
|
59
|
+
HH: function(t) {
|
|
60
|
+
return r(t.getHours(), 2);
|
|
61
|
+
},
|
|
62
|
+
// Hour: 1, 2, ..., 12
|
|
63
|
+
h: function(t) {
|
|
64
|
+
var e = t.getHours();
|
|
65
|
+
return e === 0 ? 12 : e > 12 ? e % 12 : e;
|
|
66
|
+
},
|
|
67
|
+
// Hour: 01, 02, ..., 12
|
|
68
|
+
hh: function() {
|
|
69
|
+
var t = i.h.apply(i, arguments);
|
|
70
|
+
return r(t, 2);
|
|
71
|
+
},
|
|
72
|
+
// Minute: 0, 1, ..., 59
|
|
73
|
+
m: function(t) {
|
|
74
|
+
return t.getMinutes();
|
|
75
|
+
},
|
|
76
|
+
// Minute: 00, 01, ..., 59
|
|
77
|
+
mm: function(t) {
|
|
78
|
+
return r(t.getMinutes(), 2);
|
|
79
|
+
},
|
|
80
|
+
// Second: 0, 1, ..., 59
|
|
81
|
+
s: function(t) {
|
|
82
|
+
return t.getSeconds();
|
|
83
|
+
},
|
|
84
|
+
// Second: 00, 01, ..., 59
|
|
85
|
+
ss: function(t) {
|
|
86
|
+
return r(t.getSeconds(), 2);
|
|
87
|
+
},
|
|
88
|
+
// 1/10 of second: 0, 1, ..., 9
|
|
89
|
+
S: function(t) {
|
|
90
|
+
return Math.floor(t.getMilliseconds() / 100);
|
|
91
|
+
},
|
|
92
|
+
// 1/100 of second: 00, 01, ..., 99
|
|
93
|
+
SS: function(t) {
|
|
94
|
+
return r(Math.floor(t.getMilliseconds() / 10), 2);
|
|
95
|
+
},
|
|
96
|
+
// Millisecond: 000, 001, ..., 999
|
|
97
|
+
SSS: function(t) {
|
|
98
|
+
return r(t.getMilliseconds(), 3);
|
|
99
|
+
},
|
|
100
|
+
// Day of week: 0, 1, ..., 6
|
|
101
|
+
d: function(t) {
|
|
102
|
+
return t.getDay();
|
|
103
|
+
},
|
|
104
|
+
// Day of week: 'Su', 'Mo', ..., 'Sa'
|
|
105
|
+
dd: function(t, e) {
|
|
106
|
+
return e.weekdaysMin[t.getDay()];
|
|
107
|
+
},
|
|
108
|
+
// Day of week: 'Sun', 'Mon',..., 'Sat'
|
|
109
|
+
ddd: function(t, e) {
|
|
110
|
+
return e.weekdaysShort[t.getDay()];
|
|
111
|
+
},
|
|
112
|
+
// Day of week: 'Sunday', 'Monday', ...,'Saturday'
|
|
113
|
+
dddd: function(t, e) {
|
|
114
|
+
return e.weekdays[t.getDay()];
|
|
115
|
+
},
|
|
116
|
+
// AM, PM
|
|
117
|
+
A: function(t, e) {
|
|
118
|
+
var u = e.meridiem || d;
|
|
119
|
+
return u(t.getHours(), t.getMinutes(), !1);
|
|
120
|
+
},
|
|
121
|
+
// am, pm
|
|
122
|
+
a: function(t, e) {
|
|
123
|
+
var u = e.meridiem || d;
|
|
124
|
+
return u(t.getHours(), t.getMinutes(), !0);
|
|
125
|
+
},
|
|
126
|
+
// Timezone: -01:00, +00:00, ... +12:00
|
|
127
|
+
Z: function(t) {
|
|
128
|
+
return g(c(t), ":");
|
|
129
|
+
},
|
|
130
|
+
// Timezone: -0100, +0000, ... +1200
|
|
131
|
+
ZZ: function(t) {
|
|
132
|
+
return g(c(t));
|
|
133
|
+
},
|
|
134
|
+
// Seconds timestamp: 512969520
|
|
135
|
+
X: function(t) {
|
|
136
|
+
return Math.floor(t.getTime() / 1e3);
|
|
137
|
+
},
|
|
138
|
+
// Milliseconds timestamp: 512969520900
|
|
139
|
+
x: function(t) {
|
|
140
|
+
return t.getTime();
|
|
141
|
+
},
|
|
142
|
+
w: function(t, e) {
|
|
143
|
+
return l(t, {
|
|
144
|
+
firstDayOfWeek: e.firstDayOfWeek,
|
|
145
|
+
firstWeekContainsDate: e.firstWeekContainsDate
|
|
146
|
+
});
|
|
147
|
+
},
|
|
148
|
+
ww: function(t, e) {
|
|
149
|
+
return r(i.w(t, e), 2);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
function v(n, t) {
|
|
153
|
+
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, u = t ? String(t) : "YYYY-MM-DDTHH:mm:ss.SSSZ", o = m(n);
|
|
154
|
+
if (!M(o))
|
|
155
|
+
return "Invalid Date";
|
|
156
|
+
var a = e.locale || h;
|
|
157
|
+
return u.replace(Y, function(f, s) {
|
|
158
|
+
return s || (typeof i[f] == "function" ? "".concat(i[f](o, a)) : f);
|
|
159
|
+
});
|
|
20
160
|
}
|
|
21
|
-
l.render = d;
|
|
22
161
|
export {
|
|
23
|
-
|
|
162
|
+
v as format
|
|
24
163
|
};
|