smoothly 0.1.84 → 0.1.88
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/cjs/{generate-a6821b82.js → generate-f9a36f25.js} +1 -1
- package/dist/cjs/{index-fc82954f.js → index-ac32385c.js} +230 -184
- package/dist/cjs/index-bc3845e8.js +1670 -0
- package/dist/cjs/index.cjs.js +214 -116
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/smoothly-accordion_47.cjs.entry.js +1163 -19143
- package/dist/cjs/smoothly-calendar.cjs.entry.js +40 -12
- package/dist/cjs/smoothly-display-amount.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-display.cjs.entry.js +2 -1
- package/dist/cjs/smoothly-input-date-range.cjs.entry.js +10 -11
- package/dist/cjs/smoothly-input-date.cjs.entry.js +6 -2
- package/dist/cjs/smoothly-input-month.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-input.cjs.entry.js +17 -10
- package/dist/cjs/smoothly-select-demo.cjs.entry.js +2 -2
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/components/calendar/index.js +80 -11
- package/dist/collection/components/display/index.js +1 -1
- package/dist/collection/components/input/index.js +17 -10
- package/dist/collection/components/input-date/index.js +12 -1
- package/dist/collection/components/input-date/style.css +4 -0
- package/dist/collection/components/input-date-range/index.js +14 -15
- package/dist/collection/components/input-date-range/style.css +4 -0
- package/dist/collection/components/select-demo/index.js +2 -2
- package/dist/collection/index.js +1 -1
- package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js +90 -0
- package/dist/collection/utilities/Cosmetic/Color/Hex.js +11 -0
- package/dist/collection/utilities/Cosmetic/Color/Hsl.js +32 -0
- package/dist/collection/utilities/{colorNames.js → Cosmetic/Color/Name.js} +9 -1
- package/dist/collection/utilities/Cosmetic/Color/Rgb.js +19 -0
- package/dist/collection/utilities/Cosmetic/Color/index.js +23 -0
- package/dist/collection/utilities/Cosmetic/index.js +40 -0
- package/dist/collection/utilities/index.js +1 -1
- package/dist/custom-elements/index.js +1539 -19619
- package/dist/esm/{generate-776b3b0f.js → generate-50b98474.js} +1 -1
- package/dist/esm/index-37a67c97.js +1668 -0
- package/dist/{smoothly/index-a28d88cf.js → esm/index-a5a08f46.js} +230 -184
- package/dist/esm/index.js +215 -116
- package/dist/esm/loader.js +1 -1
- package/dist/esm/smoothly-accordion_47.entry.js +1163 -19143
- package/dist/esm/smoothly-calendar.entry.js +40 -12
- package/dist/esm/smoothly-display-amount.entry.js +1 -1
- package/dist/esm/smoothly-display.entry.js +2 -1
- package/dist/esm/smoothly-input-date-range.entry.js +10 -11
- package/dist/esm/smoothly-input-date.entry.js +6 -2
- package/dist/esm/smoothly-input-month.entry.js +2 -2
- package/dist/esm/smoothly-input.entry.js +17 -10
- package/dist/esm/smoothly-select-demo.entry.js +2 -2
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/{generate-776b3b0f.js → generate-50b98474.js} +1 -1
- package/dist/smoothly/index-37a67c97.js +1668 -0
- package/dist/{esm/index-a28d88cf.js → smoothly/index-a5a08f46.js} +230 -184
- package/dist/smoothly/index.esm.js +215 -116
- package/dist/smoothly/p-0286085b.entry.js +1 -0
- package/dist/smoothly/smoothly-calendar.entry.js +40 -12
- package/dist/smoothly/smoothly-display-amount.entry.js +1 -1
- package/dist/smoothly/smoothly-display.entry.js +2 -1
- package/dist/smoothly/smoothly-input-date-range.entry.js +10 -11
- package/dist/smoothly/smoothly-input-date.entry.js +6 -2
- package/dist/smoothly/smoothly-input-month.entry.js +2 -2
- package/dist/smoothly/smoothly-input.entry.js +17 -10
- package/dist/smoothly/smoothly-select-demo.entry.js +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/calendar/index.d.ts +6 -1
- package/dist/types/components/input/index.d.ts +1 -0
- package/dist/types/components/input-date/index.d.ts +1 -0
- package/dist/types/components/input-date-range/index.d.ts +2 -2
- package/dist/types/components.d.ts +3 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/CommaRgb.d.ts +11 -0
- package/dist/types/utilities/Cosmetic/Color/Hex.d.ts +4 -0
- package/dist/types/utilities/Cosmetic/Color/Hsl.d.ts +4 -0
- package/dist/types/utilities/Cosmetic/Color/Name.d.ts +155 -0
- package/dist/types/utilities/Cosmetic/Color/Rgb.d.ts +4 -0
- package/dist/types/utilities/Cosmetic/Color/index.d.ts +170 -0
- package/dist/types/utilities/Cosmetic/index.d.ts +23 -0
- package/dist/types/utilities/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cjs/index-42db74b3.js +0 -19931
- package/dist/collection/utilities/colorTransform.js +0 -120
- package/dist/esm/index-36a04e8c.js +0 -19929
- package/dist/smoothly/index-36a04e8c.js +0 -19929
- package/dist/smoothly/p-5ca32c49.entry.js +0 -1
- package/dist/types/utilities/colorNames.d.ts +0 -3
- package/dist/types/utilities/colorTransform.d.ts +0 -8
|
@@ -0,0 +1,1670 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const _commonjsHelpers = require('./_commonjsHelpers-10109b76.js');
|
|
4
|
+
const index$3 = require('./index-ac32385c.js');
|
|
5
|
+
|
|
6
|
+
var getAdjecentWordBreakIndex_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
7
|
+
"use strict";
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.getAdjecentWordBreakIndex = void 0;
|
|
10
|
+
function getForwardWordBreakIndex(str, index, wordRegex) {
|
|
11
|
+
let result = 0;
|
|
12
|
+
while (wordRegex.exec(str) != null) {
|
|
13
|
+
result = wordRegex.lastIndex;
|
|
14
|
+
if (wordRegex.lastIndex > index)
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
wordRegex.lastIndex <= index && (result = str.length);
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
function getBackwardWordBreakIndex(str, index, wordRegex) {
|
|
21
|
+
let result = 0;
|
|
22
|
+
let execArray;
|
|
23
|
+
while ((execArray = wordRegex.exec(str)) != null) {
|
|
24
|
+
if (wordRegex.lastIndex - execArray[0].length < index)
|
|
25
|
+
result = wordRegex.lastIndex - execArray[0].length;
|
|
26
|
+
else
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
function getAdjecentWordBreakIndex(str, index, direction) {
|
|
32
|
+
const wordRegex = /([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;
|
|
33
|
+
return direction == "backward"
|
|
34
|
+
? getBackwardWordBreakIndex(str, index, wordRegex)
|
|
35
|
+
: getForwardWordBreakIndex(str, index, wordRegex);
|
|
36
|
+
}
|
|
37
|
+
exports.getAdjecentWordBreakIndex = getAdjecentWordBreakIndex;
|
|
38
|
+
//# sourceMappingURL=getAdjecentWordBreakIndex.js.map
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const getAdjecentWordBreakIndex = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(getAdjecentWordBreakIndex_1);
|
|
42
|
+
|
|
43
|
+
var Selection_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
44
|
+
"use strict";
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.Selection = void 0;
|
|
47
|
+
var Selection;
|
|
48
|
+
(function (Selection) {
|
|
49
|
+
function getCursor(selection) {
|
|
50
|
+
return selection.direction == "backward" ? selection.start : selection.end;
|
|
51
|
+
}
|
|
52
|
+
Selection.getCursor = getCursor;
|
|
53
|
+
function getStalker(selection) {
|
|
54
|
+
return selection.direction != "backward" ? selection.start : selection.end;
|
|
55
|
+
}
|
|
56
|
+
Selection.getStalker = getStalker;
|
|
57
|
+
})(Selection = exports.Selection || (exports.Selection = {}));
|
|
58
|
+
//# sourceMappingURL=Selection.js.map
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const Selection = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(Selection_1);
|
|
62
|
+
|
|
63
|
+
var State_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
64
|
+
"use strict";
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
exports.State = void 0;
|
|
67
|
+
var State;
|
|
68
|
+
(function (State) {
|
|
69
|
+
function copy(state) {
|
|
70
|
+
return {
|
|
71
|
+
value: state.value,
|
|
72
|
+
selection: { start: state.selection.start, end: state.selection.end, direction: state.selection.direction },
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
State.copy = copy;
|
|
76
|
+
})(State = exports.State || (exports.State = {}));
|
|
77
|
+
//# sourceMappingURL=State.js.map
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
const State = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(State_1);
|
|
81
|
+
|
|
82
|
+
var StateEditor_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
83
|
+
"use strict";
|
|
84
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
85
|
+
exports.StateEditor = void 0;
|
|
86
|
+
class StateEditor {
|
|
87
|
+
constructor(state) {
|
|
88
|
+
this.value = state.value;
|
|
89
|
+
this.selection = { start: state.selection.start, end: state.selection.end, direction: state.selection.direction };
|
|
90
|
+
}
|
|
91
|
+
get(index, length = 1) {
|
|
92
|
+
return this.value.substr(index, length);
|
|
93
|
+
}
|
|
94
|
+
is(index, ...character) {
|
|
95
|
+
const c = this.get(index);
|
|
96
|
+
return character.some(d => c == d);
|
|
97
|
+
}
|
|
98
|
+
isDigit(index) {
|
|
99
|
+
const character = this.get(index);
|
|
100
|
+
return character >= "0" && character <= "9";
|
|
101
|
+
}
|
|
102
|
+
match(matcher) {
|
|
103
|
+
return this.value.match(matcher);
|
|
104
|
+
}
|
|
105
|
+
replace(start, end, value) {
|
|
106
|
+
let result;
|
|
107
|
+
if (typeof start == "string" && typeof end == "string") {
|
|
108
|
+
let s;
|
|
109
|
+
result = this;
|
|
110
|
+
while ((s = result.value.search(start)) > -1)
|
|
111
|
+
result = result.replace(s, s + start.length, end);
|
|
112
|
+
}
|
|
113
|
+
else if (typeof start == "number" && typeof end == "number") {
|
|
114
|
+
const state = {
|
|
115
|
+
value: this.value,
|
|
116
|
+
selection: { start: this.selection.start, end: this.selection.end, direction: this.selection.direction },
|
|
117
|
+
};
|
|
118
|
+
if (!value)
|
|
119
|
+
value = "";
|
|
120
|
+
state.value = this.value.slice(0, start) + value + this.value.slice(end, this.value.length);
|
|
121
|
+
if (this.selection.start >= end)
|
|
122
|
+
state.selection.start = this.selection.start + value.length - end + start;
|
|
123
|
+
else if (this.selection.start > start && this.selection.start < end)
|
|
124
|
+
state.selection.start = Math.min(this.selection.start, start + value.length);
|
|
125
|
+
if (this.selection.end >= end)
|
|
126
|
+
state.selection.end = this.selection.end + value.length - end + start;
|
|
127
|
+
else if (this.selection.end > start && this.selection.end < end)
|
|
128
|
+
state.selection.end = Math.min(this.selection.end, start + value.length);
|
|
129
|
+
result = new StateEditor(state);
|
|
130
|
+
}
|
|
131
|
+
return result || this;
|
|
132
|
+
}
|
|
133
|
+
insert(index, value) {
|
|
134
|
+
return this.replace(index, index, value);
|
|
135
|
+
}
|
|
136
|
+
append(value) {
|
|
137
|
+
return this.insert(this.value.length, value);
|
|
138
|
+
}
|
|
139
|
+
prepend(value) {
|
|
140
|
+
return this.insert(0, value);
|
|
141
|
+
}
|
|
142
|
+
suffix(value) {
|
|
143
|
+
return new StateEditor({ value: this.value + value, selection: this.selection });
|
|
144
|
+
}
|
|
145
|
+
delete(start, end) {
|
|
146
|
+
let result;
|
|
147
|
+
if (!this.value)
|
|
148
|
+
result = this;
|
|
149
|
+
else if (typeof start == "string") {
|
|
150
|
+
let s;
|
|
151
|
+
result = this;
|
|
152
|
+
while ((s = result.value.search(start)) > -1)
|
|
153
|
+
result = result.delete(s, s + start.length);
|
|
154
|
+
}
|
|
155
|
+
else
|
|
156
|
+
result = this.replace(start, end || start + 1, "");
|
|
157
|
+
return result;
|
|
158
|
+
}
|
|
159
|
+
truncate(end) {
|
|
160
|
+
return this.value.length >= end ? this.delete(end, this.value.length) : this;
|
|
161
|
+
}
|
|
162
|
+
pad(length, padding, index) {
|
|
163
|
+
let result = this;
|
|
164
|
+
while (length > result.value.length + padding.length)
|
|
165
|
+
result = result.insert(index, padding);
|
|
166
|
+
if (length > result.value.length)
|
|
167
|
+
result = result.insert(index, padding.substring(0, length - result.value.length));
|
|
168
|
+
return result;
|
|
169
|
+
}
|
|
170
|
+
padEnd(length, padding) {
|
|
171
|
+
return this.pad(length, padding, this.value.length);
|
|
172
|
+
}
|
|
173
|
+
padStart(length, padding) {
|
|
174
|
+
return this.pad(length, padding, 0);
|
|
175
|
+
}
|
|
176
|
+
map(mapping) {
|
|
177
|
+
let result = this;
|
|
178
|
+
let j = 0;
|
|
179
|
+
for (let i = 0; i < this.value.length; i++) {
|
|
180
|
+
const replacement = mapping(this.get(i), i);
|
|
181
|
+
result = result.replace(j, j + 1, replacement);
|
|
182
|
+
j += replacement.length;
|
|
183
|
+
}
|
|
184
|
+
return result;
|
|
185
|
+
}
|
|
186
|
+
static copy(state) {
|
|
187
|
+
return new StateEditor(Object.assign({}, state));
|
|
188
|
+
}
|
|
189
|
+
static create() {
|
|
190
|
+
return new StateEditor({ value: "", selection: { start: 0, end: 0 } });
|
|
191
|
+
}
|
|
192
|
+
static modify(state) {
|
|
193
|
+
return new StateEditor(typeof state == "string" ? { value: state, selection: { start: state.length, end: state.length } } : state);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.StateEditor = StateEditor;
|
|
197
|
+
//# sourceMappingURL=StateEditor.js.map
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
const StateEditor = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(StateEditor_1);
|
|
201
|
+
|
|
202
|
+
var Action_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
203
|
+
"use strict";
|
|
204
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205
|
+
exports.Action = void 0;
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
var Action;
|
|
211
|
+
(function (Action) {
|
|
212
|
+
function apply(formatter, state, action) {
|
|
213
|
+
var _a, _b;
|
|
214
|
+
let result = State_1.State.copy(formatter.unformat(StateEditor_1.StateEditor.copy(state)));
|
|
215
|
+
if (action) {
|
|
216
|
+
if (action.ctrlKey || action.metaKey) {
|
|
217
|
+
if (action.key == "a")
|
|
218
|
+
select(result, 0, result.value.length, "forward");
|
|
219
|
+
else if (["ArrowLeft", "ArrowRight"].includes(action.key) && ((_a = state) === null || _a === void 0 ? void 0 : _a.type) != "password")
|
|
220
|
+
result = ctrlArrow(formatter, state, action);
|
|
221
|
+
else if (["Delete", "Backspace"].includes(action.key) && ((_b = state) === null || _b === void 0 ? void 0 : _b.type) != "password")
|
|
222
|
+
result = ctrlBackspaceDelete(formatter, state, action);
|
|
223
|
+
}
|
|
224
|
+
else if (["ArrowLeft", "ArrowRight", "Home", "End"].includes(action.key))
|
|
225
|
+
arrowHomeEnd(result, action);
|
|
226
|
+
else if (["Delete", "Backspace"].includes(action.key)) {
|
|
227
|
+
result.selection.start == result.selection.end &&
|
|
228
|
+
select(result, result.selection.start + (action.key == "Backspace" ? -1 : 0), result.selection.end + (action.key == "Delete" ? 1 : 0));
|
|
229
|
+
erase(result);
|
|
230
|
+
}
|
|
231
|
+
else if (action.key != "Unidentified") {
|
|
232
|
+
erase(result);
|
|
233
|
+
formatter.allowed(action.key, result) && replace(result, action.key);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return formatter.format(StateEditor_1.StateEditor.copy(result));
|
|
237
|
+
}
|
|
238
|
+
Action.apply = apply;
|
|
239
|
+
function ctrlArrow(formatter, state, action) {
|
|
240
|
+
let cursorPosition = Selection_1.Selection.getCursor(state.selection);
|
|
241
|
+
let stalkPosition = Selection_1.Selection.getStalker(state.selection);
|
|
242
|
+
cursorPosition = getAdjecentWordBreakIndex_1.getAdjecentWordBreakIndex(state.value, cursorPosition, action.key == "ArrowLeft" ? "backward" : "forward");
|
|
243
|
+
stalkPosition = action.shiftKey ? stalkPosition : cursorPosition;
|
|
244
|
+
return State_1.State.copy(formatter.unformat(StateEditor_1.StateEditor.copy(Object.assign(Object.assign({}, state), { selection: {
|
|
245
|
+
start: Math.min(stalkPosition, cursorPosition),
|
|
246
|
+
end: Math.max(stalkPosition, cursorPosition),
|
|
247
|
+
direction: stalkPosition < cursorPosition ? "forward" : stalkPosition > cursorPosition ? "backward" : "none",
|
|
248
|
+
} }))));
|
|
249
|
+
}
|
|
250
|
+
function ctrlBackspaceDelete(formatter, state, action) {
|
|
251
|
+
const cursorPosition = Selection_1.Selection.getCursor(state.selection);
|
|
252
|
+
const adjecentIndex = getAdjecentWordBreakIndex_1.getAdjecentWordBreakIndex(state.value, cursorPosition, action.key == "Backspace" ? "backward" : "forward");
|
|
253
|
+
const result = State_1.State.copy(formatter.unformat(StateEditor_1.StateEditor.copy(Object.assign(Object.assign({}, state), { selection: {
|
|
254
|
+
start: Math.min(cursorPosition, adjecentIndex),
|
|
255
|
+
end: Math.max(cursorPosition, adjecentIndex),
|
|
256
|
+
direction: "none",
|
|
257
|
+
} }))));
|
|
258
|
+
result.value = result.value.substring(0, result.selection.start) + result.value.substring(result.selection.end);
|
|
259
|
+
result.selection.end = result.selection.start;
|
|
260
|
+
return result;
|
|
261
|
+
}
|
|
262
|
+
function arrowHomeEnd(state, action) {
|
|
263
|
+
let cursorPosition = Selection_1.Selection.getCursor(state.selection);
|
|
264
|
+
let stalkPosition = Selection_1.Selection.getStalker(state.selection);
|
|
265
|
+
cursorPosition =
|
|
266
|
+
action.key == "Home"
|
|
267
|
+
? 0
|
|
268
|
+
: action.key == "End"
|
|
269
|
+
? state.value.length
|
|
270
|
+
: state.selection.start == state.selection.end || action.shiftKey
|
|
271
|
+
? Math.min(Math.max(cursorPosition + (action.key == "ArrowLeft" ? -1 : 1), 0), state.value.length)
|
|
272
|
+
: action.key == "ArrowLeft"
|
|
273
|
+
? state.selection.start
|
|
274
|
+
: state.selection.end;
|
|
275
|
+
stalkPosition = action.shiftKey ? stalkPosition : cursorPosition;
|
|
276
|
+
state.selection.direction =
|
|
277
|
+
stalkPosition < cursorPosition ? "forward" : stalkPosition > cursorPosition ? "backward" : "none";
|
|
278
|
+
state.selection.start = Math.min(stalkPosition, cursorPosition);
|
|
279
|
+
state.selection.end = Math.max(stalkPosition, cursorPosition);
|
|
280
|
+
}
|
|
281
|
+
function select(state, from, to, direction) {
|
|
282
|
+
state.selection.start = from;
|
|
283
|
+
state.selection.end = to;
|
|
284
|
+
direction && (state.selection.direction = direction);
|
|
285
|
+
}
|
|
286
|
+
function erase(state) {
|
|
287
|
+
replace(state, "");
|
|
288
|
+
}
|
|
289
|
+
function replace(state, insertString) {
|
|
290
|
+
state.value =
|
|
291
|
+
state.value.substring(0, state.selection.start) + insertString + state.value.substring(state.selection.end);
|
|
292
|
+
state.selection.start = state.selection.start + insertString.length;
|
|
293
|
+
state.selection.end = state.selection.start;
|
|
294
|
+
}
|
|
295
|
+
})(Action = exports.Action || (exports.Action = {}));
|
|
296
|
+
//# sourceMappingURL=Action.js.map
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
const Action = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(Action_1);
|
|
300
|
+
|
|
301
|
+
var base = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
302
|
+
"use strict";
|
|
303
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
304
|
+
exports.parse = exports.format = exports.get = exports.add = void 0;
|
|
305
|
+
|
|
306
|
+
const handlers = {};
|
|
307
|
+
function add(type, create) {
|
|
308
|
+
handlers[type] = create;
|
|
309
|
+
}
|
|
310
|
+
exports.add = add;
|
|
311
|
+
function get(type, ...argument) {
|
|
312
|
+
const create = handlers[type];
|
|
313
|
+
return create && create(argument);
|
|
314
|
+
}
|
|
315
|
+
exports.get = get;
|
|
316
|
+
function format(data, type, ...argument) {
|
|
317
|
+
const handler = get(type, argument);
|
|
318
|
+
return handler
|
|
319
|
+
? handler.format(StateEditor_1.StateEditor.modify(handler.toString(typeof data == "string" ? parse(data, type, argument) : data)))
|
|
320
|
+
.value
|
|
321
|
+
: "";
|
|
322
|
+
}
|
|
323
|
+
exports.format = format;
|
|
324
|
+
function parse(value, type, ...argument) {
|
|
325
|
+
const handler = get(type, argument);
|
|
326
|
+
return handler ? handler.fromString(handler.unformat(StateEditor_1.StateEditor.modify(value)).value) : undefined;
|
|
327
|
+
}
|
|
328
|
+
exports.parse = parse;
|
|
329
|
+
//# sourceMappingURL=base.js.map
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
const base$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(base);
|
|
333
|
+
|
|
334
|
+
var cardCsc = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
335
|
+
"use strict";
|
|
336
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
337
|
+
|
|
338
|
+
class Handler {
|
|
339
|
+
toString(data) {
|
|
340
|
+
return typeof data == "string" ? data : "";
|
|
341
|
+
}
|
|
342
|
+
fromString(value) {
|
|
343
|
+
return typeof value == "string" ? value : undefined;
|
|
344
|
+
}
|
|
345
|
+
format(unformated) {
|
|
346
|
+
return Object.assign(Object.assign({}, unformated), { type: "text", autocomplete: "cc-csc", length: [3, 3], pattern: /^\d{3}$/ });
|
|
347
|
+
}
|
|
348
|
+
unformat(formated) {
|
|
349
|
+
return formated;
|
|
350
|
+
}
|
|
351
|
+
allowed(symbol, state) {
|
|
352
|
+
return state.value.length < 3 && symbol >= "0" && symbol <= "9";
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
base.add("card-csc", () => new Handler());
|
|
356
|
+
//# sourceMappingURL=card-csc.js.map
|
|
357
|
+
});
|
|
358
|
+
|
|
359
|
+
const cardCsc$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(cardCsc);
|
|
360
|
+
|
|
361
|
+
var cardExpires = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
362
|
+
"use strict";
|
|
363
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
364
|
+
|
|
365
|
+
class Handler {
|
|
366
|
+
toString(data) {
|
|
367
|
+
return Array.isArray(data) && data.length == 2 && typeof data[0] == "number" && typeof data[1] == "number"
|
|
368
|
+
? data[0].toString().padStart(2, "0") + data[1].toString().padStart(2, "0")
|
|
369
|
+
: "";
|
|
370
|
+
}
|
|
371
|
+
fromString(value) {
|
|
372
|
+
return typeof value == "string" && value.length == 4
|
|
373
|
+
? [Number.parseInt(value.slice(0, 2)), Number.parseInt(value.slice(2))]
|
|
374
|
+
: undefined;
|
|
375
|
+
}
|
|
376
|
+
format(unformated) {
|
|
377
|
+
let result = unformated;
|
|
378
|
+
if (unformated.value.length > 0 && !unformated.is(0, "0", "1"))
|
|
379
|
+
result = result.prepend("0");
|
|
380
|
+
if (result.value.length > 1)
|
|
381
|
+
result = result.insert(2, " / ");
|
|
382
|
+
return Object.assign(Object.assign({}, result), { type: "text", autocomplete: "cc-exp", length: [7, 7], pattern: /^(0[1-9]|1[012]) \/ \d\d$/ });
|
|
383
|
+
}
|
|
384
|
+
unformat(formated) {
|
|
385
|
+
return formated.delete(" / ");
|
|
386
|
+
}
|
|
387
|
+
allowed(symbol, state) {
|
|
388
|
+
return state.value.length < 4 && symbol >= "0" && symbol <= "9";
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
base.add("card-expires", () => new Handler());
|
|
392
|
+
//# sourceMappingURL=card-expires.js.map
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
const cardExpires$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(cardExpires);
|
|
396
|
+
|
|
397
|
+
var cardNumber = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
398
|
+
"use strict";
|
|
399
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
400
|
+
|
|
401
|
+
class Handler {
|
|
402
|
+
toString(data) {
|
|
403
|
+
return typeof data == "string" ? data : "";
|
|
404
|
+
}
|
|
405
|
+
fromString(value) {
|
|
406
|
+
return typeof value == "string" ? value : undefined;
|
|
407
|
+
}
|
|
408
|
+
format(unformated) {
|
|
409
|
+
const issuer = getIssuer(unformated.value);
|
|
410
|
+
const result = unformated.map((symbol, index) => symbol + (index % 4 == 3 && index + 1 < issuer.length[0] ? " " : ""));
|
|
411
|
+
return Object.assign(Object.assign({}, result), { type: "text", autocomplete: "cc-number", length: issuer.length.slice(1), pattern: issuer.verification, classes: ["issuer-" + issuer.icon] });
|
|
412
|
+
}
|
|
413
|
+
unformat(formated) {
|
|
414
|
+
return formated.delete(" ");
|
|
415
|
+
}
|
|
416
|
+
allowed(symbol, state) {
|
|
417
|
+
const issuer = getIssuer(state.value);
|
|
418
|
+
return symbol >= "0" && symbol <= "9" && state.value.length < issuer.length[0];
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
base.add("card-number", () => new Handler());
|
|
422
|
+
function getIssuer(value) {
|
|
423
|
+
let result = defaultIssuer;
|
|
424
|
+
for (const key in issuers)
|
|
425
|
+
if (Object.prototype.hasOwnProperty.call(issuers, key) && issuers[key].identification.test(value)) {
|
|
426
|
+
result = Object.assign(Object.assign(Object.assign({}, defaultIssuer), { name: key }), issuers[key]);
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
return result;
|
|
430
|
+
}
|
|
431
|
+
const defaultIssuer = {
|
|
432
|
+
name: "unknown",
|
|
433
|
+
verification: /^\d{19}$/,
|
|
434
|
+
identification: /^\d/,
|
|
435
|
+
length: [16, 16, 19],
|
|
436
|
+
icon: "generic",
|
|
437
|
+
};
|
|
438
|
+
const issuers = {
|
|
439
|
+
amex: {
|
|
440
|
+
verification: /^3[47][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{3}$/,
|
|
441
|
+
identification: /^3[47]/,
|
|
442
|
+
length: [15, 18, 18],
|
|
443
|
+
icon: "amex",
|
|
444
|
+
},
|
|
445
|
+
dankort: {
|
|
446
|
+
verification: /^(5019)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,
|
|
447
|
+
identification: /^(5019)\d+/,
|
|
448
|
+
length: [16, 19, 19],
|
|
449
|
+
icon: "generic",
|
|
450
|
+
},
|
|
451
|
+
diners: {
|
|
452
|
+
verification: /^3(?:0[0-5]|[68][0-9])[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{2}$/,
|
|
453
|
+
identification: /^3(?:0[0-5]|[68][0-9])/,
|
|
454
|
+
length: [14, 17, 17],
|
|
455
|
+
icon: "diners",
|
|
456
|
+
},
|
|
457
|
+
discover: {
|
|
458
|
+
verification: /^6(?:011|5[0-9]{2})\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,
|
|
459
|
+
identification: /^6(?:011|5[0-9]{2})/,
|
|
460
|
+
length: [16, 19, 19],
|
|
461
|
+
icon: "generic",
|
|
462
|
+
},
|
|
463
|
+
electron: {
|
|
464
|
+
verification: /^((4026|4405|4508|4844|4913|4917)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|((4175)\s(00)[0-9]{2}\s[0-9]{4}\s[0-9]{4})$/,
|
|
465
|
+
identification: /^(4026|417500|4405|4508|4844|4913|4917)/,
|
|
466
|
+
length: [16, 19, 19],
|
|
467
|
+
icon: "generic",
|
|
468
|
+
},
|
|
469
|
+
interpayment: {
|
|
470
|
+
verification: /^(636)[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,
|
|
471
|
+
identification: /^(636)/,
|
|
472
|
+
length: [16, 19, 19],
|
|
473
|
+
icon: "generic",
|
|
474
|
+
},
|
|
475
|
+
jcb: {
|
|
476
|
+
verification: /^((?:2131|1800)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|(35[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})$/,
|
|
477
|
+
identification: /^(?:2131|1800|35\d{3})/,
|
|
478
|
+
length: [16, 19, 19],
|
|
479
|
+
icon: "generic",
|
|
480
|
+
},
|
|
481
|
+
unionpay: {
|
|
482
|
+
verification: /^(62|88)[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,
|
|
483
|
+
identification: /^(62|88)/,
|
|
484
|
+
length: [16, 19, 19],
|
|
485
|
+
icon: "generic",
|
|
486
|
+
},
|
|
487
|
+
maestro: {
|
|
488
|
+
verification: /^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,
|
|
489
|
+
identification: /^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)/,
|
|
490
|
+
length: [16, 19, 19],
|
|
491
|
+
icon: "maestro",
|
|
492
|
+
},
|
|
493
|
+
mastercard: {
|
|
494
|
+
verification: /^5[1-5][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,
|
|
495
|
+
identification: /^5[1-5][0-9]/,
|
|
496
|
+
length: [16, 19, 19],
|
|
497
|
+
icon: "mastercard",
|
|
498
|
+
},
|
|
499
|
+
visa: {
|
|
500
|
+
verification: /^4[0-9]{3}\s[0-9]{4}\s[0-9]{4}\s[0-9](?:[0-9]{3})?$/,
|
|
501
|
+
identification: /^4[0-9]/,
|
|
502
|
+
length: [16, 16, 19],
|
|
503
|
+
icon: "visa",
|
|
504
|
+
},
|
|
505
|
+
};
|
|
506
|
+
//# sourceMappingURL=card-number.js.map
|
|
507
|
+
});
|
|
508
|
+
|
|
509
|
+
const cardNumber$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(cardNumber);
|
|
510
|
+
|
|
511
|
+
var DateFormat_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
512
|
+
"use strict";
|
|
513
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
514
|
+
exports.DateFormat = void 0;
|
|
515
|
+
var DateFormat;
|
|
516
|
+
(function (DateFormat) {
|
|
517
|
+
function fromLocale(locale) {
|
|
518
|
+
let result;
|
|
519
|
+
switch (locale) {
|
|
520
|
+
case "sq-AL":
|
|
521
|
+
case "es-AR":
|
|
522
|
+
case "it-IT":
|
|
523
|
+
case "en-GB":
|
|
524
|
+
case "fr-FR":
|
|
525
|
+
result = "dd/mm/YYYY";
|
|
526
|
+
break;
|
|
527
|
+
case "en-US":
|
|
528
|
+
result = "mm/dd/YYYY";
|
|
529
|
+
break;
|
|
530
|
+
case "et-EE":
|
|
531
|
+
case "de-AT":
|
|
532
|
+
case "de-DE":
|
|
533
|
+
case "he-IL":
|
|
534
|
+
case "is-IS":
|
|
535
|
+
case "lv-LV":
|
|
536
|
+
case "pl-PL":
|
|
537
|
+
case "ru-RU":
|
|
538
|
+
case "fi-FI":
|
|
539
|
+
result = "dd.mm.YYYY";
|
|
540
|
+
break;
|
|
541
|
+
case "hi-IN":
|
|
542
|
+
case "en-IN":
|
|
543
|
+
result = "dd-mm-YYYY";
|
|
544
|
+
break;
|
|
545
|
+
default:
|
|
546
|
+
result = "YYYY-mm-dd";
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
return result;
|
|
550
|
+
}
|
|
551
|
+
DateFormat.fromLocale = fromLocale;
|
|
552
|
+
function toLocale(format) {
|
|
553
|
+
let result;
|
|
554
|
+
switch (format) {
|
|
555
|
+
case "dd/mm/YYYY":
|
|
556
|
+
result = "en-GB";
|
|
557
|
+
break;
|
|
558
|
+
case "mm/dd/YYYY":
|
|
559
|
+
result = "en-US";
|
|
560
|
+
break;
|
|
561
|
+
case "dd.mm.YYYY":
|
|
562
|
+
result = "de-DE";
|
|
563
|
+
break;
|
|
564
|
+
default:
|
|
565
|
+
result = "sv-SE";
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
return result;
|
|
569
|
+
}
|
|
570
|
+
DateFormat.toLocale = toLocale;
|
|
571
|
+
function is(value) {
|
|
572
|
+
return (typeof value == "string" &&
|
|
573
|
+
(value == "YYYY-mm-dd" || value == "dd/mm/YYYY" || value == "dd.mm.YYYY" || value == "mm/dd/YYYY"));
|
|
574
|
+
}
|
|
575
|
+
DateFormat.is = is;
|
|
576
|
+
})(DateFormat = exports.DateFormat || (exports.DateFormat = {}));
|
|
577
|
+
//# sourceMappingURL=DateFormat.js.map
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
const DateFormat = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(DateFormat_1);
|
|
581
|
+
|
|
582
|
+
var Base_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
583
|
+
"use strict";
|
|
584
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
585
|
+
exports.register = exports.Base = void 0;
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
class Base {
|
|
590
|
+
constructor(seperator) {
|
|
591
|
+
this.seperator = seperator;
|
|
592
|
+
}
|
|
593
|
+
unformat(formated) {
|
|
594
|
+
return formated.delete(this.seperator);
|
|
595
|
+
}
|
|
596
|
+
daysInMonth(value) {
|
|
597
|
+
var _a;
|
|
598
|
+
return (32 -
|
|
599
|
+
Number.parseInt(index$3.dist.Date.next(((_a = this.fromString(value.padEnd(8, "1"))) !== null && _a !== void 0 ? _a : "1970-01-01").substring(0, 8) + "28", 4).substring(8, 10)));
|
|
600
|
+
}
|
|
601
|
+
validMonth(day, month, year) {
|
|
602
|
+
return (new Date(Number.parseInt(year !== null && year !== void 0 ? year : "2004"), Number.parseInt(month), 0).getDate() >=
|
|
603
|
+
Number.parseInt(day));
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
exports.Base = Base;
|
|
607
|
+
const handlers = {};
|
|
608
|
+
function register(format, create) {
|
|
609
|
+
handlers[format] = create;
|
|
610
|
+
}
|
|
611
|
+
exports.register = register;
|
|
612
|
+
base.add("date", (parameters) => {
|
|
613
|
+
var _a;
|
|
614
|
+
const argument = parameters && parameters.length > 0 ? parameters[0] : undefined;
|
|
615
|
+
const format = DateFormat_1.DateFormat.is(argument) ? argument : DateFormat_1.DateFormat.fromLocale(argument);
|
|
616
|
+
const create = (_a = handlers[format]) !== null && _a !== void 0 ? _a : handlers["YYYY-mm-dd"];
|
|
617
|
+
return create();
|
|
618
|
+
});
|
|
619
|
+
//# sourceMappingURL=Base.js.map
|
|
620
|
+
});
|
|
621
|
+
|
|
622
|
+
const Base = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(Base_1);
|
|
623
|
+
|
|
624
|
+
var dmy = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
625
|
+
"use strict";
|
|
626
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
class Handler extends Base_1.Base {
|
|
630
|
+
constructor(seperator) {
|
|
631
|
+
super(seperator);
|
|
632
|
+
}
|
|
633
|
+
toString(data) {
|
|
634
|
+
return data.length == 10
|
|
635
|
+
? [data.substring(8, 10), data.substring(5, 7), data.substring(0, 4)].join(this.seperator)
|
|
636
|
+
: "";
|
|
637
|
+
}
|
|
638
|
+
fromString(value) {
|
|
639
|
+
const result = value.length == 8 ? `${value.substring(4, 8)}-${value.substring(2, 4)}-${value.substring(0, 2)}` : undefined;
|
|
640
|
+
return index$3.dist.Date.is(result) ? result : undefined;
|
|
641
|
+
}
|
|
642
|
+
format(unformatted) {
|
|
643
|
+
let result = unformatted;
|
|
644
|
+
if (result.get(0, 1) > "3")
|
|
645
|
+
result = result.insert(0, "0");
|
|
646
|
+
if (result.value.length > 1)
|
|
647
|
+
result = result.insert(2, this.seperator);
|
|
648
|
+
if (result.get(3, 1) > "1")
|
|
649
|
+
result = result.insert(3, "0");
|
|
650
|
+
if (result.value.length > 4)
|
|
651
|
+
result = result.insert(5, this.seperator);
|
|
652
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [0, 10], pattern: new RegExp(["^(0[1-9]|[12][0-9]|3[01])", "(0[1-9]|1[012])", "\\d{4}$"].join(this.seperator)) });
|
|
653
|
+
}
|
|
654
|
+
allowed(symbol, state) {
|
|
655
|
+
return state.selection.start == 1 && state.value[0] == "3"
|
|
656
|
+
? symbol >= "0" && symbol <= "1"
|
|
657
|
+
: state.selection.start == 1 && state.value[0] == "0"
|
|
658
|
+
? symbol >= "1" && symbol <= "9"
|
|
659
|
+
: state.selection.start == 2
|
|
660
|
+
? symbol >= "0" &&
|
|
661
|
+
symbol <= "9" &&
|
|
662
|
+
(symbol == "0" || symbol == "1" || this.validMonth(state.value.substring(0, 2), symbol))
|
|
663
|
+
: state.selection.start == 3
|
|
664
|
+
? symbol >= "0" && symbol <= "9" && this.validMonth(state.value.substring(0, 2), state.value[2] + symbol)
|
|
665
|
+
: state.selection.start == 7
|
|
666
|
+
? symbol >= "0" &&
|
|
667
|
+
symbol <= "9" &&
|
|
668
|
+
this.validMonth(state.value.substring(0, 2), state.value.substring(2, 4), state.value.substring(4, 7) + symbol)
|
|
669
|
+
: state.selection.start < 8 && symbol >= "0" && symbol <= "9";
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
Base_1.register("dd.mm.YYYY", () => new Handler("."));
|
|
673
|
+
Base_1.register("dd/mm/YYYY", () => new Handler("/"));
|
|
674
|
+
Base_1.register("dd-mm-YYYY", () => new Handler("-"));
|
|
675
|
+
//# sourceMappingURL=dmy.js.map
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
const dmy$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(dmy);
|
|
679
|
+
|
|
680
|
+
var mdy = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
681
|
+
"use strict";
|
|
682
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
class Handler extends Base_1.Base {
|
|
686
|
+
constructor(seperator) {
|
|
687
|
+
super(seperator);
|
|
688
|
+
}
|
|
689
|
+
toString(data) {
|
|
690
|
+
return data.length == 10
|
|
691
|
+
? [data.substring(5, 7), data.substring(8, 10), data.substring(0, 4)].join(this.seperator)
|
|
692
|
+
: "";
|
|
693
|
+
}
|
|
694
|
+
fromString(value) {
|
|
695
|
+
const result = value.length == 8 ? `${value.substring(4, 8)}-${value.substring(0, 2)}-${value.substring(2, 4)}` : undefined;
|
|
696
|
+
return index$3.dist.Date.is(result) ? result : undefined;
|
|
697
|
+
}
|
|
698
|
+
format(unformatted) {
|
|
699
|
+
let result = unformatted;
|
|
700
|
+
if (result.get(0, 1) > "1")
|
|
701
|
+
result = result.insert(0, "0");
|
|
702
|
+
if (result.value.length > 1)
|
|
703
|
+
result = result.insert(2, this.seperator);
|
|
704
|
+
if (result.get(3, 1) > (result.get(0, 2) == "02" ? "2" : "3"))
|
|
705
|
+
result = result.insert(3, "0");
|
|
706
|
+
if (result.value.length > 4)
|
|
707
|
+
result = result.insert(5, this.seperator);
|
|
708
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [0, 10], pattern: new RegExp(["^(0[1-9]|1[012])", "(0[1-9]|[12][0-9]|3[01])", "\\d{4}$"].join(this.seperator)) });
|
|
709
|
+
}
|
|
710
|
+
allowed(symbol, state) {
|
|
711
|
+
const result = state.selection.start == 1 && state.value[0] == "1"
|
|
712
|
+
? symbol >= "0" && symbol <= "2"
|
|
713
|
+
: state.selection.start == 1 && state.value[0] == "0"
|
|
714
|
+
? symbol >= "1" && symbol <= "9"
|
|
715
|
+
: state.selection.start == 3
|
|
716
|
+
? symbol >= "0" && symbol <= "9" && this.validMonth(state.value[2] + symbol, state.value.substring(0, 2))
|
|
717
|
+
: state.selection.start == 7
|
|
718
|
+
? symbol >= "0" &&
|
|
719
|
+
symbol <= "9" &&
|
|
720
|
+
this.validMonth(state.value.substring(2, 4), state.value.substring(0, 2), state.value.substring(4, 7) + symbol)
|
|
721
|
+
: state.selection.start < 8 && symbol >= "0" && symbol <= "9";
|
|
722
|
+
return result;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
Base_1.register("mm/dd/YYYY", () => new Handler("/"));
|
|
726
|
+
//# sourceMappingURL=mdy.js.map
|
|
727
|
+
});
|
|
728
|
+
|
|
729
|
+
const mdy$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(mdy);
|
|
730
|
+
|
|
731
|
+
var ymd = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
732
|
+
"use strict";
|
|
733
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
class Handler extends Base_1.Base {
|
|
737
|
+
constructor(seperator) {
|
|
738
|
+
super(seperator);
|
|
739
|
+
}
|
|
740
|
+
toString(data) {
|
|
741
|
+
return typeof data != "string" ? "" : data;
|
|
742
|
+
}
|
|
743
|
+
fromString(value) {
|
|
744
|
+
const result = value.length == 8 ? `${value.substring(0, 4)}-${value.substring(4, 6)}-${value.substring(6, 8)}` : undefined;
|
|
745
|
+
return index$3.dist.Date.is(result) ? result : undefined;
|
|
746
|
+
}
|
|
747
|
+
format(unformatted) {
|
|
748
|
+
let result = unformatted;
|
|
749
|
+
if (result.value.length > 3) {
|
|
750
|
+
result = result.insert(4, this.seperator);
|
|
751
|
+
if (result.get(5, 1) > "1")
|
|
752
|
+
result = result.insert(5, "0");
|
|
753
|
+
if (result.value.length > 6) {
|
|
754
|
+
result = result.insert(7, this.seperator);
|
|
755
|
+
if (result.get(8, 1) > this.daysInMonth(unformatted.value).toString().substring(0, 1))
|
|
756
|
+
result = result.insert(8, "0");
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [0, 10], pattern: new RegExp(["^\\d{4}", "(0[1-9]|1[012])", "(0[1-9]|[12][0-9]|3[01])$"].join(this.seperator)) });
|
|
760
|
+
}
|
|
761
|
+
allowed(symbol, state) {
|
|
762
|
+
const daysInMonth = this.daysInMonth(state.value);
|
|
763
|
+
return state.selection.start == 5 && state.value[4] == "0"
|
|
764
|
+
? symbol >= "1" && symbol <= "9"
|
|
765
|
+
: state.selection.start == 5 && state.value[4] == "1"
|
|
766
|
+
? symbol >= "0" && symbol <= "2"
|
|
767
|
+
: state.selection.start == 7 && state.value[6] == "0"
|
|
768
|
+
? symbol >= "1" && symbol <= "9"
|
|
769
|
+
: state.selection.start == 7 && ((state.value[6] == "2" && daysInMonth < 30) || state.value[6] == "3")
|
|
770
|
+
? symbol >= "0" && symbol <= daysInMonth.toString().substring(1)
|
|
771
|
+
: state.selection.start < 8 && symbol >= "0" && symbol <= "9";
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
Base_1.register("YYYY-mm-dd", () => new Handler("-"));
|
|
775
|
+
//# sourceMappingURL=ymd.js.map
|
|
776
|
+
});
|
|
777
|
+
|
|
778
|
+
const ymd$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(ymd);
|
|
779
|
+
|
|
780
|
+
var date = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
781
|
+
"use strict";
|
|
782
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
//# sourceMappingURL=index.js.map
|
|
787
|
+
});
|
|
788
|
+
|
|
789
|
+
const index$2 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(date);
|
|
790
|
+
|
|
791
|
+
var dateTime = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
792
|
+
"use strict";
|
|
793
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
794
|
+
exports.formatDate = void 0;
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
class Handler {
|
|
798
|
+
toString(data) {
|
|
799
|
+
return typeof data == "string" ? data : "";
|
|
800
|
+
}
|
|
801
|
+
fromString(value) {
|
|
802
|
+
let result = value.replace(" ", "T");
|
|
803
|
+
const fillerDate = "0000-01-01T00:00:00.000Z";
|
|
804
|
+
if (result === null || result === void 0 ? void 0 : result.match(/-\d$/))
|
|
805
|
+
result = result.substring(0, result.length - 1) + "0" + result.substring(result.length - 1, result.length);
|
|
806
|
+
result = !result.match(/^\d{4}-(0[1-9]|1[012])/)
|
|
807
|
+
? undefined
|
|
808
|
+
: result + fillerDate.substring(result.length, fillerDate.length);
|
|
809
|
+
return index$3.dist.DateTime.is(result) ? result : undefined;
|
|
810
|
+
}
|
|
811
|
+
format(unformated) {
|
|
812
|
+
let result = formatDate(unformated);
|
|
813
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))
|
|
814
|
+
result = result.insert(10, " ");
|
|
815
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))
|
|
816
|
+
result = result.replace(11, 12, "23:");
|
|
817
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))
|
|
818
|
+
result = result.insert(11, "23:");
|
|
819
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))
|
|
820
|
+
result = result.insert(11, "23:5");
|
|
821
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))
|
|
822
|
+
result = result.replace(10, 13, "00:");
|
|
823
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))
|
|
824
|
+
result = result.insert(12, "3:");
|
|
825
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))
|
|
826
|
+
result = result.insert(12, "3:5").append(":");
|
|
827
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])\d[\s\S]$/))
|
|
828
|
+
result = result.insert(13, ":");
|
|
829
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))
|
|
830
|
+
result = result.insert(14, "5");
|
|
831
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d\d$/))
|
|
832
|
+
result = result.insert(16, ":");
|
|
833
|
+
if (result.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d:[6-9]$/))
|
|
834
|
+
result = result.insert(17, "5");
|
|
835
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [0, 19], pattern: /^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])(:[0-5]\d){2}$/ });
|
|
836
|
+
}
|
|
837
|
+
unformat(formated) {
|
|
838
|
+
return formated;
|
|
839
|
+
}
|
|
840
|
+
allowed(symbol, state) {
|
|
841
|
+
return (state.value.length < 19 &&
|
|
842
|
+
((symbol >= "0" && symbol <= "9") || symbol == "-" || symbol == ":" || symbol == "." || symbol == " "));
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
base.add("date-time", () => new Handler());
|
|
846
|
+
function formatDate(unformated, format) {
|
|
847
|
+
let result = unformated;
|
|
848
|
+
switch (format) {
|
|
849
|
+
case "dd/mm/YYYY":
|
|
850
|
+
case "dd.mm.YYYY":
|
|
851
|
+
if (!validDate(result.value, format))
|
|
852
|
+
result = result.replace(0, 10, validDate("31" + result.value.substring(2, 10), format)
|
|
853
|
+
? "31" + result.value.substring(2, 10)
|
|
854
|
+
: validDate("30" + result.value.substring(2, 10), format)
|
|
855
|
+
? "30" + result.value.substring(2, 10)
|
|
856
|
+
: validDate("29" + result.value.substring(2, 10), format)
|
|
857
|
+
? "29" + result.value.substring(2, 10)
|
|
858
|
+
: validDate("28" + result.value.substring(2, 10), format)
|
|
859
|
+
? "28" + result.value.substring(2, 10)
|
|
860
|
+
: result.value);
|
|
861
|
+
break;
|
|
862
|
+
case "mm/dd/YYYY":
|
|
863
|
+
if (!validDate(result.value, format))
|
|
864
|
+
result = result.replace(0, 10, validDate(result.value.substring(0, 3) + "31" + result.value.substring(5, 10), format)
|
|
865
|
+
? result.value.substring(0, 3) + "31" + result.value.substring(5, 10)
|
|
866
|
+
: validDate(result.value.substring(0, 3) + "30" + result.value.substring(5, 10), format)
|
|
867
|
+
? result.value.substring(0, 3) + "30" + result.value.substring(5, 10)
|
|
868
|
+
: validDate(result.value.substring(0, 3) + "29" + result.value.substring(5, 10), format)
|
|
869
|
+
? result.value.substring(0, 3) + "29" + result.value.substring(5, 10)
|
|
870
|
+
: validDate(result.value.substring(0, 3) + "28" + result.value.substring(5, 10), format)
|
|
871
|
+
? result.value.substring(0, 3) + "28" + result.value.substring(5, 10)
|
|
872
|
+
: result.value);
|
|
873
|
+
break;
|
|
874
|
+
default:
|
|
875
|
+
if (unformated.value.length == 10) {
|
|
876
|
+
if (!validDate(result.value)) {
|
|
877
|
+
result = result.replace(0, 10, validDate(result.value.substring(0, 8) + "31")
|
|
878
|
+
? result.value.substring(0, 8) + "31"
|
|
879
|
+
: validDate(result.value.substring(0, 8) + "30")
|
|
880
|
+
? result.value.substring(0, 8) + "30"
|
|
881
|
+
: validDate(result.value.substring(0, 8) + "29")
|
|
882
|
+
? result.value.substring(0, 8) + "29"
|
|
883
|
+
: validDate(result.value.substring(0, 8) + "28")
|
|
884
|
+
? result.value.substring(0, 8) + "28"
|
|
885
|
+
: result.value);
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
return unformated;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
return result;
|
|
892
|
+
}
|
|
893
|
+
exports.formatDate = formatDate;
|
|
894
|
+
function validDate(date, format) {
|
|
895
|
+
let year;
|
|
896
|
+
let month;
|
|
897
|
+
let day;
|
|
898
|
+
switch (format) {
|
|
899
|
+
case "dd/mm/YYYY":
|
|
900
|
+
case "dd.mm.YYYY":
|
|
901
|
+
year = parseInt(date.substring(6, 10));
|
|
902
|
+
month = parseInt(date.substring(3, 5));
|
|
903
|
+
day = parseInt(date.substring(0, 2));
|
|
904
|
+
return year && month && day ? day > 0 && daysPerMonth(year, month) >= day : false;
|
|
905
|
+
case "mm/dd/YYYY":
|
|
906
|
+
year = parseInt(date.substring(6, 10));
|
|
907
|
+
month = parseInt(date.substring(0, 2));
|
|
908
|
+
day = parseInt(date.substring(3, 5));
|
|
909
|
+
return year && month && day ? day > 0 && daysPerMonth(year, month) >= day : false;
|
|
910
|
+
default:
|
|
911
|
+
year = parseInt(date.substring(0, 4));
|
|
912
|
+
month = parseInt(date.substring(5, 7));
|
|
913
|
+
day = parseInt(date.substring(8, 10));
|
|
914
|
+
return year && month && day ? day > 0 && daysPerMonth(year, month) >= day : false;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
function daysPerMonth(year, month) {
|
|
918
|
+
let result;
|
|
919
|
+
switch (month) {
|
|
920
|
+
case 1:
|
|
921
|
+
case 3:
|
|
922
|
+
case 5:
|
|
923
|
+
case 7:
|
|
924
|
+
case 8:
|
|
925
|
+
case 10:
|
|
926
|
+
case 12:
|
|
927
|
+
default:
|
|
928
|
+
result = 31;
|
|
929
|
+
break;
|
|
930
|
+
case 4:
|
|
931
|
+
case 6:
|
|
932
|
+
case 9:
|
|
933
|
+
case 11:
|
|
934
|
+
result = 30;
|
|
935
|
+
break;
|
|
936
|
+
case 2:
|
|
937
|
+
result = 28;
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
|
+
return result;
|
|
941
|
+
}
|
|
942
|
+
//# sourceMappingURL=date-time.js.map
|
|
943
|
+
});
|
|
944
|
+
|
|
945
|
+
const dateTime$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(dateTime);
|
|
946
|
+
|
|
947
|
+
var divisor = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
948
|
+
"use strict";
|
|
949
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
950
|
+
|
|
951
|
+
class Handler {
|
|
952
|
+
toString(data) {
|
|
953
|
+
return Array.isArray(data) && data.length == 2 && typeof data[0] == "number" && typeof data[1] == "number"
|
|
954
|
+
? data[0].toString() + " / " + data[1].toString()
|
|
955
|
+
: typeof data == "number"
|
|
956
|
+
? data.toString()
|
|
957
|
+
: "";
|
|
958
|
+
}
|
|
959
|
+
fromString(value) {
|
|
960
|
+
return typeof value == "string" && value.match(/^\d{1,2}\s+\/\s+\d{1,2}$/)
|
|
961
|
+
? [Number.parseInt(value.slice(0, 2)), Number.parseInt(value.slice(value.length - 2))]
|
|
962
|
+
: typeof value == "string" && value.match(/\d{1,2}/)
|
|
963
|
+
? Number.parseInt(value)
|
|
964
|
+
: undefined;
|
|
965
|
+
}
|
|
966
|
+
format(unformated) {
|
|
967
|
+
let result = unformated;
|
|
968
|
+
if (unformated.match(/^\d\/$/))
|
|
969
|
+
result = unformated.replace(1, 2, " / ");
|
|
970
|
+
else if (unformated.match(/^\d{1,2}\s$/))
|
|
971
|
+
result = unformated.replace(unformated.value.length - 1, unformated.value.length, " / ");
|
|
972
|
+
else if (unformated.match(/^[\D.]+\/[\D.]+$/))
|
|
973
|
+
result = unformated.delete(0, unformated.value.length);
|
|
974
|
+
else if (unformated.match(/^[\D.]+\/[\D.]+\d$/))
|
|
975
|
+
result = unformated.delete(0, unformated.value.length - 1);
|
|
976
|
+
else if (unformated.match(/^[\D.]+\/[\D.]+\d\d$/))
|
|
977
|
+
result = unformated.delete(0, unformated.value.length - 2);
|
|
978
|
+
else if (unformated.match(/^[\D.]+\//))
|
|
979
|
+
result = unformated.delete(0, unformated.value.search("/") + 1);
|
|
980
|
+
else if (unformated.match(/^\d\d\/$/))
|
|
981
|
+
result = unformated.replace(2, 3, " / ");
|
|
982
|
+
else if (unformated.match(/^\d\d\s+\/$/))
|
|
983
|
+
result = unformated.delete(2, unformated.value.length);
|
|
984
|
+
else if (unformated.match(/^\d\s+\/$/))
|
|
985
|
+
result = unformated.delete(1, unformated.value.length);
|
|
986
|
+
else if (unformated.match(/^\d\d\s\s+\/\s*$/))
|
|
987
|
+
result = unformated.replace(2, unformated.value.length, " / ");
|
|
988
|
+
else if (unformated.match(/^\d\s\s+(\/\s*)?$/))
|
|
989
|
+
result = unformated.replace(1, unformated.value.length, " / ");
|
|
990
|
+
else if (unformated.match(/^\d\s\/\s\d\d.+$/))
|
|
991
|
+
result = unformated.delete(6, unformated.value.length);
|
|
992
|
+
else if (unformated.value.length > 1 && unformated.value.indexOf("/") < 1)
|
|
993
|
+
result = unformated.insert(2, " / ");
|
|
994
|
+
else if (unformated.value.length > 1 && unformated.value.split("/").length > 2)
|
|
995
|
+
result = unformated.delete(unformated.value.lastIndexOf("/"));
|
|
996
|
+
else if (unformated.value.length == 1 && !unformated.isDigit(0))
|
|
997
|
+
result = unformated.delete(0);
|
|
998
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [1, 7], pattern: /^(\d{1,2}|\d{1,2} \/ \d{1,2})$/ });
|
|
999
|
+
}
|
|
1000
|
+
unformat(formated) {
|
|
1001
|
+
return formated;
|
|
1002
|
+
}
|
|
1003
|
+
allowed(symbol, state) {
|
|
1004
|
+
return state.value.length < 7 && ((symbol >= "0" && symbol <= "9") || symbol == "/" || symbol == " ");
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
base.add("divisor", () => new Handler());
|
|
1008
|
+
//# sourceMappingURL=divisor.js.map
|
|
1009
|
+
});
|
|
1010
|
+
|
|
1011
|
+
const divisor$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(divisor);
|
|
1012
|
+
|
|
1013
|
+
var identityNumber = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1014
|
+
"use strict";
|
|
1015
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1016
|
+
|
|
1017
|
+
class Handler {
|
|
1018
|
+
constructor(country) {
|
|
1019
|
+
this.country = country;
|
|
1020
|
+
}
|
|
1021
|
+
toString(data) {
|
|
1022
|
+
return typeof data == "string" ? data : "";
|
|
1023
|
+
}
|
|
1024
|
+
fromString(value) {
|
|
1025
|
+
return typeof value == "string" ? value : undefined;
|
|
1026
|
+
}
|
|
1027
|
+
format(unformated) {
|
|
1028
|
+
let result = unformated;
|
|
1029
|
+
const year = new Date().getFullYear().toString();
|
|
1030
|
+
if (unformated.value.length > 1 && unformated.get(0, 2) != "19" && unformated.get(0, 2) != "20")
|
|
1031
|
+
result = result.prepend(unformated.get(0, 2) > year.substr(2, 2) ? "19" : "20");
|
|
1032
|
+
if (result.value.length >= 8)
|
|
1033
|
+
result = result.insert(8, "-");
|
|
1034
|
+
return Object.assign(Object.assign({}, result.truncate(13)), { type: "text", length: [11, 13], pattern: /^\d{6,8}-\d{4}$/ });
|
|
1035
|
+
}
|
|
1036
|
+
unformat(formated) {
|
|
1037
|
+
return formated.delete("-");
|
|
1038
|
+
}
|
|
1039
|
+
allowed(symbol, state) {
|
|
1040
|
+
return state.value.length < 13 && symbol >= "0" && symbol <= "9";
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
base.add("identity-number", (argument) => new Handler(argument && argument.length > 0 ? argument[0] : undefined));
|
|
1044
|
+
//# sourceMappingURL=identity-number.js.map
|
|
1045
|
+
});
|
|
1046
|
+
|
|
1047
|
+
const identityNumber$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(identityNumber);
|
|
1048
|
+
|
|
1049
|
+
var password = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1050
|
+
"use strict";
|
|
1051
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1052
|
+
|
|
1053
|
+
class Handler {
|
|
1054
|
+
toString(data) {
|
|
1055
|
+
return typeof data == "string" ? data : "";
|
|
1056
|
+
}
|
|
1057
|
+
fromString(value) {
|
|
1058
|
+
return typeof value == "string" ? value : undefined;
|
|
1059
|
+
}
|
|
1060
|
+
format(unformated) {
|
|
1061
|
+
return Object.assign(Object.assign({}, unformated), { type: "password", autocomplete: "current-password" });
|
|
1062
|
+
}
|
|
1063
|
+
unformat(formated) {
|
|
1064
|
+
return formated;
|
|
1065
|
+
}
|
|
1066
|
+
allowed(symbol, state) {
|
|
1067
|
+
return true;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
base.add("password", () => new Handler());
|
|
1071
|
+
//# sourceMappingURL=password.js.map
|
|
1072
|
+
});
|
|
1073
|
+
|
|
1074
|
+
const password$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(password);
|
|
1075
|
+
|
|
1076
|
+
var percent = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1077
|
+
"use strict";
|
|
1078
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1079
|
+
|
|
1080
|
+
class Handler {
|
|
1081
|
+
toString(data) {
|
|
1082
|
+
return data && typeof data == "number" ? (data * 100).toString() : "";
|
|
1083
|
+
}
|
|
1084
|
+
fromString(value) {
|
|
1085
|
+
return typeof value != "string" || !Number.parseFloat(value) ? undefined : Number.parseFloat(value) / 100;
|
|
1086
|
+
}
|
|
1087
|
+
format(unformated) {
|
|
1088
|
+
return Object.assign(Object.assign({}, (unformated.value ? unformated.suffix(" %") : unformated)), { type: "text", length: [3, undefined], pattern: /^\d+(.\d)? %+$/ });
|
|
1089
|
+
}
|
|
1090
|
+
unformat(formated) {
|
|
1091
|
+
return formated.delete(" %");
|
|
1092
|
+
}
|
|
1093
|
+
allowed(symbol, state) {
|
|
1094
|
+
return (symbol >= "0" && symbol <= "9") || (symbol == "." && !state.value.includes("."));
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
base.add("percent", () => new Handler());
|
|
1098
|
+
//# sourceMappingURL=percent.js.map
|
|
1099
|
+
});
|
|
1100
|
+
|
|
1101
|
+
const percent$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(percent);
|
|
1102
|
+
|
|
1103
|
+
var phonePrefix = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1104
|
+
"use strict";
|
|
1105
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1106
|
+
exports.phonePrefix = void 0;
|
|
1107
|
+
exports.phonePrefix = [
|
|
1108
|
+
{
|
|
1109
|
+
countryCode: "+46",
|
|
1110
|
+
areaCodes: [
|
|
1111
|
+
"011",
|
|
1112
|
+
"0120",
|
|
1113
|
+
"0121",
|
|
1114
|
+
"0122",
|
|
1115
|
+
"0123",
|
|
1116
|
+
"0125",
|
|
1117
|
+
"013",
|
|
1118
|
+
"0140",
|
|
1119
|
+
"0141",
|
|
1120
|
+
"0142",
|
|
1121
|
+
"0143",
|
|
1122
|
+
"0144",
|
|
1123
|
+
"0150",
|
|
1124
|
+
"0151",
|
|
1125
|
+
"0152",
|
|
1126
|
+
"0155",
|
|
1127
|
+
"0156",
|
|
1128
|
+
"0157",
|
|
1129
|
+
"0158",
|
|
1130
|
+
"0159",
|
|
1131
|
+
"016",
|
|
1132
|
+
"0171",
|
|
1133
|
+
"0173",
|
|
1134
|
+
"0174",
|
|
1135
|
+
"0175",
|
|
1136
|
+
"0176",
|
|
1137
|
+
"018",
|
|
1138
|
+
"019",
|
|
1139
|
+
"021",
|
|
1140
|
+
"0220",
|
|
1141
|
+
"0221",
|
|
1142
|
+
"0222",
|
|
1143
|
+
"0223",
|
|
1144
|
+
"0224",
|
|
1145
|
+
"0225",
|
|
1146
|
+
"0226",
|
|
1147
|
+
"0227",
|
|
1148
|
+
"023",
|
|
1149
|
+
"0240",
|
|
1150
|
+
"0241",
|
|
1151
|
+
"0243",
|
|
1152
|
+
"0246",
|
|
1153
|
+
"0247",
|
|
1154
|
+
"0248",
|
|
1155
|
+
"0250",
|
|
1156
|
+
"0251",
|
|
1157
|
+
"0253",
|
|
1158
|
+
"0258",
|
|
1159
|
+
"026",
|
|
1160
|
+
"0270",
|
|
1161
|
+
"0271",
|
|
1162
|
+
"0278",
|
|
1163
|
+
"0280",
|
|
1164
|
+
"0281",
|
|
1165
|
+
"0290",
|
|
1166
|
+
"0291",
|
|
1167
|
+
"0292",
|
|
1168
|
+
"0293",
|
|
1169
|
+
"0294",
|
|
1170
|
+
"0295",
|
|
1171
|
+
"0297",
|
|
1172
|
+
"0300",
|
|
1173
|
+
"0301",
|
|
1174
|
+
"0302",
|
|
1175
|
+
"0303",
|
|
1176
|
+
"0304",
|
|
1177
|
+
"031",
|
|
1178
|
+
"0320",
|
|
1179
|
+
"0321",
|
|
1180
|
+
"0322",
|
|
1181
|
+
"0325",
|
|
1182
|
+
"033",
|
|
1183
|
+
"0340",
|
|
1184
|
+
"0345",
|
|
1185
|
+
"0346",
|
|
1186
|
+
"035",
|
|
1187
|
+
"036",
|
|
1188
|
+
"0370",
|
|
1189
|
+
"0371",
|
|
1190
|
+
"0372",
|
|
1191
|
+
"0380",
|
|
1192
|
+
"0381",
|
|
1193
|
+
"0382",
|
|
1194
|
+
"0383",
|
|
1195
|
+
"0390",
|
|
1196
|
+
"0392",
|
|
1197
|
+
"0393",
|
|
1198
|
+
"040",
|
|
1199
|
+
"0410",
|
|
1200
|
+
"0411",
|
|
1201
|
+
"0413",
|
|
1202
|
+
"0414",
|
|
1203
|
+
"0415",
|
|
1204
|
+
"0416",
|
|
1205
|
+
"0417",
|
|
1206
|
+
"0418",
|
|
1207
|
+
"042",
|
|
1208
|
+
"0430",
|
|
1209
|
+
"0431",
|
|
1210
|
+
"0433",
|
|
1211
|
+
"0435",
|
|
1212
|
+
"044",
|
|
1213
|
+
"0451",
|
|
1214
|
+
"0454",
|
|
1215
|
+
"0455",
|
|
1216
|
+
"0456",
|
|
1217
|
+
"0457",
|
|
1218
|
+
"0459",
|
|
1219
|
+
"046",
|
|
1220
|
+
"0470",
|
|
1221
|
+
"0471",
|
|
1222
|
+
"0472",
|
|
1223
|
+
"0474",
|
|
1224
|
+
"0476",
|
|
1225
|
+
"0477",
|
|
1226
|
+
"0478",
|
|
1227
|
+
"0479",
|
|
1228
|
+
"0480",
|
|
1229
|
+
"0481",
|
|
1230
|
+
"0485",
|
|
1231
|
+
"0486",
|
|
1232
|
+
"0490",
|
|
1233
|
+
"0491",
|
|
1234
|
+
"0492",
|
|
1235
|
+
"0493",
|
|
1236
|
+
"0494",
|
|
1237
|
+
"0495",
|
|
1238
|
+
"0496",
|
|
1239
|
+
"0498",
|
|
1240
|
+
"0499",
|
|
1241
|
+
"0500",
|
|
1242
|
+
"0501",
|
|
1243
|
+
"0502",
|
|
1244
|
+
"0503",
|
|
1245
|
+
"0504",
|
|
1246
|
+
"0505",
|
|
1247
|
+
"0506",
|
|
1248
|
+
"0510",
|
|
1249
|
+
"0511",
|
|
1250
|
+
"0512",
|
|
1251
|
+
"0513",
|
|
1252
|
+
"0514",
|
|
1253
|
+
"0515",
|
|
1254
|
+
"0520",
|
|
1255
|
+
"0521",
|
|
1256
|
+
"0522",
|
|
1257
|
+
"0523",
|
|
1258
|
+
"0524",
|
|
1259
|
+
"0525",
|
|
1260
|
+
"0526",
|
|
1261
|
+
"0528",
|
|
1262
|
+
"0530",
|
|
1263
|
+
"0531",
|
|
1264
|
+
"0532",
|
|
1265
|
+
"0533",
|
|
1266
|
+
"0534",
|
|
1267
|
+
"054",
|
|
1268
|
+
"0550",
|
|
1269
|
+
"0551",
|
|
1270
|
+
"0552",
|
|
1271
|
+
"0553",
|
|
1272
|
+
"0554",
|
|
1273
|
+
"0555",
|
|
1274
|
+
"0560",
|
|
1275
|
+
"0563",
|
|
1276
|
+
"0564",
|
|
1277
|
+
"0565",
|
|
1278
|
+
"0570",
|
|
1279
|
+
"0571",
|
|
1280
|
+
"0573",
|
|
1281
|
+
"0580",
|
|
1282
|
+
"0581",
|
|
1283
|
+
"0582",
|
|
1284
|
+
"0583",
|
|
1285
|
+
"0584",
|
|
1286
|
+
"0585",
|
|
1287
|
+
"0586",
|
|
1288
|
+
"0587",
|
|
1289
|
+
"0589",
|
|
1290
|
+
"0590",
|
|
1291
|
+
"0591",
|
|
1292
|
+
"060",
|
|
1293
|
+
"0611",
|
|
1294
|
+
"0612",
|
|
1295
|
+
"0613",
|
|
1296
|
+
"0620",
|
|
1297
|
+
"0621",
|
|
1298
|
+
"0622",
|
|
1299
|
+
"0623",
|
|
1300
|
+
"0624",
|
|
1301
|
+
"063",
|
|
1302
|
+
"0640",
|
|
1303
|
+
"0642",
|
|
1304
|
+
"0643",
|
|
1305
|
+
"0644",
|
|
1306
|
+
"0645",
|
|
1307
|
+
"0647",
|
|
1308
|
+
"0650",
|
|
1309
|
+
"0651",
|
|
1310
|
+
"0652",
|
|
1311
|
+
"0653",
|
|
1312
|
+
"0657",
|
|
1313
|
+
"0660",
|
|
1314
|
+
"0661",
|
|
1315
|
+
"0662",
|
|
1316
|
+
"0663",
|
|
1317
|
+
"0670",
|
|
1318
|
+
"0671",
|
|
1319
|
+
"0672",
|
|
1320
|
+
"0680",
|
|
1321
|
+
"0682",
|
|
1322
|
+
"0684",
|
|
1323
|
+
"0687",
|
|
1324
|
+
"0690",
|
|
1325
|
+
"0691",
|
|
1326
|
+
"0692",
|
|
1327
|
+
"0693",
|
|
1328
|
+
"0695",
|
|
1329
|
+
"0696",
|
|
1330
|
+
"08",
|
|
1331
|
+
"090",
|
|
1332
|
+
"0910",
|
|
1333
|
+
"0911",
|
|
1334
|
+
"0912",
|
|
1335
|
+
"0913",
|
|
1336
|
+
"0914",
|
|
1337
|
+
"0915",
|
|
1338
|
+
"0916",
|
|
1339
|
+
"0918",
|
|
1340
|
+
"0920",
|
|
1341
|
+
"0921",
|
|
1342
|
+
"0922",
|
|
1343
|
+
"0923",
|
|
1344
|
+
"0924",
|
|
1345
|
+
"0925",
|
|
1346
|
+
"0926",
|
|
1347
|
+
"0927",
|
|
1348
|
+
"0928",
|
|
1349
|
+
"0929",
|
|
1350
|
+
"0930",
|
|
1351
|
+
"0932",
|
|
1352
|
+
"0933",
|
|
1353
|
+
"0934",
|
|
1354
|
+
"0935",
|
|
1355
|
+
"0940",
|
|
1356
|
+
"0941",
|
|
1357
|
+
"0942",
|
|
1358
|
+
"0943",
|
|
1359
|
+
"0950",
|
|
1360
|
+
"0951",
|
|
1361
|
+
"0952",
|
|
1362
|
+
"0953",
|
|
1363
|
+
"0954",
|
|
1364
|
+
"0960",
|
|
1365
|
+
"0961",
|
|
1366
|
+
"0970",
|
|
1367
|
+
"0971",
|
|
1368
|
+
"0973",
|
|
1369
|
+
"0975",
|
|
1370
|
+
"0976",
|
|
1371
|
+
"0977",
|
|
1372
|
+
"0978",
|
|
1373
|
+
"0980",
|
|
1374
|
+
"0981",
|
|
1375
|
+
"010",
|
|
1376
|
+
"020",
|
|
1377
|
+
"0378",
|
|
1378
|
+
"070",
|
|
1379
|
+
"072",
|
|
1380
|
+
"073",
|
|
1381
|
+
"076",
|
|
1382
|
+
"079",
|
|
1383
|
+
"0710",
|
|
1384
|
+
"0740",
|
|
1385
|
+
"0746",
|
|
1386
|
+
"0749",
|
|
1387
|
+
"0741",
|
|
1388
|
+
"0742",
|
|
1389
|
+
"0743",
|
|
1390
|
+
"0744",
|
|
1391
|
+
"0745",
|
|
1392
|
+
"0747",
|
|
1393
|
+
"075",
|
|
1394
|
+
"077",
|
|
1395
|
+
"078",
|
|
1396
|
+
"0900",
|
|
1397
|
+
"0939",
|
|
1398
|
+
"0944",
|
|
1399
|
+
"0969",
|
|
1400
|
+
"099",
|
|
1401
|
+
],
|
|
1402
|
+
},
|
|
1403
|
+
];
|
|
1404
|
+
//# sourceMappingURL=phonePrefix.js.map
|
|
1405
|
+
});
|
|
1406
|
+
|
|
1407
|
+
const phonePrefix$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(phonePrefix);
|
|
1408
|
+
|
|
1409
|
+
var phone = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1410
|
+
"use strict";
|
|
1411
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
class Handler {
|
|
1415
|
+
toString(data) {
|
|
1416
|
+
return typeof data == "string" ? data : "";
|
|
1417
|
+
}
|
|
1418
|
+
fromString(value) {
|
|
1419
|
+
return typeof value == "string" ? value : undefined;
|
|
1420
|
+
}
|
|
1421
|
+
format(unformated) {
|
|
1422
|
+
let result = unformated;
|
|
1423
|
+
if (result.value.startsWith("+")) {
|
|
1424
|
+
for (const country of phonePrefix.phonePrefix)
|
|
1425
|
+
if (result.value.startsWith(country.countryCode))
|
|
1426
|
+
for (let prefix of country.areaCodes) {
|
|
1427
|
+
prefix = prefix.substring(1);
|
|
1428
|
+
if (result.value.startsWith(country.countryCode + prefix) && !result.value.includes("-"))
|
|
1429
|
+
result = result
|
|
1430
|
+
.insert(country.countryCode.length, "-")
|
|
1431
|
+
.insert(country.countryCode.length + 1 + prefix.length, "-");
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
else {
|
|
1435
|
+
const first = phonePrefix.phonePrefix[0];
|
|
1436
|
+
for (const prefix of first.areaCodes)
|
|
1437
|
+
if (result.value.startsWith(prefix) && !result.value.includes("-")) {
|
|
1438
|
+
result = result.insert(prefix.length, "-");
|
|
1439
|
+
result = result.delete(0);
|
|
1440
|
+
result = result.insert(0, "-").insert(0, first.countryCode);
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
if (result.value.includes("-")) {
|
|
1444
|
+
const digitIndex = result.value.indexOf("-", result.value.indexOf("-") + 1) + 1;
|
|
1445
|
+
const digitCount = result.value.substring(digitIndex, result.value.length + 1).length;
|
|
1446
|
+
switch (digitCount) {
|
|
1447
|
+
case 4:
|
|
1448
|
+
result = result.insert(digitIndex + 2, " ");
|
|
1449
|
+
break;
|
|
1450
|
+
case 5:
|
|
1451
|
+
result = result.insert(digitIndex + 3, " ");
|
|
1452
|
+
break;
|
|
1453
|
+
case 6:
|
|
1454
|
+
result = result.insert(digitIndex + 2, " ");
|
|
1455
|
+
result = result.insert(digitIndex + 5, " ");
|
|
1456
|
+
break;
|
|
1457
|
+
case 7:
|
|
1458
|
+
result = result.insert(digitIndex + 3, " ");
|
|
1459
|
+
result = result.insert(digitIndex + 6, " ");
|
|
1460
|
+
break;
|
|
1461
|
+
case 8:
|
|
1462
|
+
case 9:
|
|
1463
|
+
result = result.insert(digitIndex + 3, " ");
|
|
1464
|
+
result = result.insert(digitIndex + 7, " ");
|
|
1465
|
+
break;
|
|
1466
|
+
default:
|
|
1467
|
+
break;
|
|
1468
|
+
}
|
|
1469
|
+
if (digitCount > 9) {
|
|
1470
|
+
const spaces = Math.ceil(digitCount / 3) - 1;
|
|
1471
|
+
if (spaces > 0) {
|
|
1472
|
+
for (let i = 0; i < spaces; i++) {
|
|
1473
|
+
const position = i * 3 + 3 + i;
|
|
1474
|
+
result = result.insert(position + digitIndex, " ");
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
return Object.assign(Object.assign({}, result), { type: "text", autocomplete: "tel" });
|
|
1480
|
+
}
|
|
1481
|
+
unformat(formated) {
|
|
1482
|
+
return formated.delete(" ").delete("-");
|
|
1483
|
+
}
|
|
1484
|
+
allowed(symbol, state) {
|
|
1485
|
+
return ((symbol >= "0" && symbol <= "9") || (state.selection.start == 0 && symbol == "+" && !state.value.includes("+")));
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
base.add("phone", () => new Handler());
|
|
1489
|
+
//# sourceMappingURL=phone.js.map
|
|
1490
|
+
});
|
|
1491
|
+
|
|
1492
|
+
const phone$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(phone);
|
|
1493
|
+
|
|
1494
|
+
var postalCode = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1495
|
+
"use strict";
|
|
1496
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1497
|
+
|
|
1498
|
+
class Handler {
|
|
1499
|
+
constructor(country) {
|
|
1500
|
+
this.country = country;
|
|
1501
|
+
}
|
|
1502
|
+
toString(data) {
|
|
1503
|
+
return typeof data == "string" ? data : "";
|
|
1504
|
+
}
|
|
1505
|
+
fromString(value) {
|
|
1506
|
+
return typeof value == "string" ? value : undefined;
|
|
1507
|
+
}
|
|
1508
|
+
format(unformated) {
|
|
1509
|
+
const result = !unformated.value.includes(" ") && unformated.value.length >= 4 ? unformated.insert(3, " ") : unformated;
|
|
1510
|
+
return Object.assign(Object.assign({}, result.truncate(6)), { type: "text", autocomplete: "postal-code", length: [6, 6], pattern: /^\d{3} \d{2}$/ });
|
|
1511
|
+
}
|
|
1512
|
+
unformat(formated) {
|
|
1513
|
+
return formated.delete(" ");
|
|
1514
|
+
}
|
|
1515
|
+
allowed(symbol, state) {
|
|
1516
|
+
return state.value.length <= 5 && symbol >= "0" && symbol <= "9";
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
base.add("postal-code", (argument) => new Handler(argument && argument.length > 0 ? argument[0] : undefined));
|
|
1520
|
+
//# sourceMappingURL=postal-code.js.map
|
|
1521
|
+
});
|
|
1522
|
+
|
|
1523
|
+
const postalCode$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(postalCode);
|
|
1524
|
+
|
|
1525
|
+
var price = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1526
|
+
"use strict";
|
|
1527
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
class Handler {
|
|
1532
|
+
constructor(currency) {
|
|
1533
|
+
this.currency = currency;
|
|
1534
|
+
}
|
|
1535
|
+
toString(data) {
|
|
1536
|
+
return typeof data == "number" ? (isNaN(data) ? "" : data.toString()) : "";
|
|
1537
|
+
}
|
|
1538
|
+
fromString(value) {
|
|
1539
|
+
const result = typeof value == "string" ? Number.parseFloat(value) : undefined;
|
|
1540
|
+
return result && !isNaN(result) ? result : undefined;
|
|
1541
|
+
}
|
|
1542
|
+
format(unformated) {
|
|
1543
|
+
var _a;
|
|
1544
|
+
let separator = unformated.value && unformated.value.includes(".") ? unformated.value.indexOf(".") : undefined;
|
|
1545
|
+
let result = unformated.value == "NaN" ? unformated.replace(0, unformated.value.length, "") : StateEditor_1.StateEditor.copy(unformated);
|
|
1546
|
+
if (separator == 0) {
|
|
1547
|
+
result = result.prepend("0");
|
|
1548
|
+
separator++;
|
|
1549
|
+
}
|
|
1550
|
+
if (separator != undefined) {
|
|
1551
|
+
const adjust = separator +
|
|
1552
|
+
1 +
|
|
1553
|
+
(!this.currency || index$3.dist.Currency.decimalDigits(this.currency) == undefined
|
|
1554
|
+
? 2
|
|
1555
|
+
: (_a = index$3.dist.Currency.decimalDigits(this.currency)) !== null && _a !== void 0 ? _a : 2) -
|
|
1556
|
+
result.value.length;
|
|
1557
|
+
result = adjust < 0 ? result.truncate(result.value.length + adjust) : result.suffix("0".repeat(adjust));
|
|
1558
|
+
}
|
|
1559
|
+
else
|
|
1560
|
+
separator = result.value.length;
|
|
1561
|
+
const spaces = separator <= 0 ? 0 : Math.ceil(separator / 3) - 1;
|
|
1562
|
+
for (let i = 0; i < spaces; i++) {
|
|
1563
|
+
const position = separator - (spaces - i) * 3;
|
|
1564
|
+
result = result.insert(position, " ");
|
|
1565
|
+
separator++;
|
|
1566
|
+
}
|
|
1567
|
+
if (result.match(/^[0\s]{2,}$/))
|
|
1568
|
+
result = result.replace(0, result.value.length, "0");
|
|
1569
|
+
else if (result.match(/^[0\s]{2,}(\s\w{3}){1}$/))
|
|
1570
|
+
result = result.replace(0, result.value.length - 4, "0");
|
|
1571
|
+
result =
|
|
1572
|
+
this.currency && (result.value.length > 1 || (result.value.length == 1 && result.value.charAt(0) != "."))
|
|
1573
|
+
? result.suffix(" " + this.currency)
|
|
1574
|
+
: result;
|
|
1575
|
+
return Object.assign(Object.assign({}, result), { type: "text", length: [3, undefined], pattern: new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?" + (this.currency ? " " + this.currency : "") + "$") });
|
|
1576
|
+
}
|
|
1577
|
+
unformat(formated) {
|
|
1578
|
+
return this.currency ? formated.delete(" ").delete("" + this.currency) : formated.delete(" ");
|
|
1579
|
+
}
|
|
1580
|
+
allowed(symbol, state) {
|
|
1581
|
+
return (symbol >= "0" && symbol <= "9") || (symbol == "." && !state.value.includes("."));
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
base.add("price", (argument) => new Handler(argument && argument.length > 0 ? argument[0] : undefined));
|
|
1585
|
+
//# sourceMappingURL=price.js.map
|
|
1586
|
+
});
|
|
1587
|
+
|
|
1588
|
+
const price$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(price);
|
|
1589
|
+
|
|
1590
|
+
var text = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1591
|
+
"use strict";
|
|
1592
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1593
|
+
|
|
1594
|
+
class Handler {
|
|
1595
|
+
constructor(settings) {
|
|
1596
|
+
this.settings = settings;
|
|
1597
|
+
}
|
|
1598
|
+
toString(data) {
|
|
1599
|
+
return typeof data == "string" ? data : "";
|
|
1600
|
+
}
|
|
1601
|
+
fromString(value) {
|
|
1602
|
+
return typeof value == "string" ? value : undefined;
|
|
1603
|
+
}
|
|
1604
|
+
format(unformated) {
|
|
1605
|
+
return Object.assign(Object.assign(Object.assign({}, unformated), { type: "text" }), this.settings);
|
|
1606
|
+
}
|
|
1607
|
+
unformat(formated) {
|
|
1608
|
+
return formated;
|
|
1609
|
+
}
|
|
1610
|
+
allowed(symbol, state) {
|
|
1611
|
+
return (this.settings.length == undefined ||
|
|
1612
|
+
this.settings.length[1] == undefined ||
|
|
1613
|
+
state.value.length < this.settings.length[1]);
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
base.add("text", (settings) => new Handler(settings || {}));
|
|
1617
|
+
base.add("email", (settings) => new Handler(settings || {}));
|
|
1618
|
+
//# sourceMappingURL=text.js.map
|
|
1619
|
+
});
|
|
1620
|
+
|
|
1621
|
+
const text$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(text);
|
|
1622
|
+
|
|
1623
|
+
var Handler = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1624
|
+
"use strict";
|
|
1625
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1626
|
+
exports.parse = exports.format = exports.get = void 0;
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return base.format; } });
|
|
1642
|
+
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return base.get; } });
|
|
1643
|
+
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return base.parse; } });
|
|
1644
|
+
//# sourceMappingURL=index.js.map
|
|
1645
|
+
});
|
|
1646
|
+
|
|
1647
|
+
const index$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(Handler);
|
|
1648
|
+
|
|
1649
|
+
var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
1650
|
+
"use strict";
|
|
1651
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1652
|
+
exports.parse = exports.format = exports.get = exports.StateEditor = exports.State = exports.Selection = exports.Action = void 0;
|
|
1653
|
+
|
|
1654
|
+
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return Action_1.Action; } });
|
|
1655
|
+
|
|
1656
|
+
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return Handler.format; } });
|
|
1657
|
+
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return Handler.get; } });
|
|
1658
|
+
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return Handler.parse; } });
|
|
1659
|
+
|
|
1660
|
+
Object.defineProperty(exports, "Selection", { enumerable: true, get: function () { return Selection_1.Selection; } });
|
|
1661
|
+
|
|
1662
|
+
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return State_1.State; } });
|
|
1663
|
+
|
|
1664
|
+
Object.defineProperty(exports, "StateEditor", { enumerable: true, get: function () { return StateEditor_1.StateEditor; } });
|
|
1665
|
+
//# sourceMappingURL=index.js.map
|
|
1666
|
+
});
|
|
1667
|
+
|
|
1668
|
+
const index = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(dist);
|
|
1669
|
+
|
|
1670
|
+
exports.dist = dist;
|