@vuu-ui/vuu-codemirror 0.8.14-debug → 0.8.15-debug
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/cjs/index.js +48 -0
- package/cjs/index.js.map +3 -3
- package/esm/index.js +48 -0
- package/esm/index.js.map +3 -3
- package/package.json +1 -1
package/esm/index.js
CHANGED
|
@@ -15161,6 +15161,54 @@ var getCookieValue = (name) => {
|
|
|
15161
15161
|
// ../vuu-utils/src/DataWindow.ts
|
|
15162
15162
|
var { KEY } = metadataKeys;
|
|
15163
15163
|
|
|
15164
|
+
// ../vuu-utils/src/date/formatter.ts
|
|
15165
|
+
var baseTimeFormatOptions = {
|
|
15166
|
+
hour: "2-digit",
|
|
15167
|
+
minute: "2-digit",
|
|
15168
|
+
second: "2-digit"
|
|
15169
|
+
};
|
|
15170
|
+
var formatConfigByTimePatterns = {
|
|
15171
|
+
"hh:mm:ss": {
|
|
15172
|
+
locale: "en-GB",
|
|
15173
|
+
options: { ...baseTimeFormatOptions, hour12: false }
|
|
15174
|
+
},
|
|
15175
|
+
"hh:mm:ss a": {
|
|
15176
|
+
locale: "en-GB",
|
|
15177
|
+
options: { ...baseTimeFormatOptions, hour12: true }
|
|
15178
|
+
}
|
|
15179
|
+
};
|
|
15180
|
+
var baseDateFormatOptions = {
|
|
15181
|
+
day: "2-digit",
|
|
15182
|
+
month: "2-digit",
|
|
15183
|
+
year: "numeric"
|
|
15184
|
+
};
|
|
15185
|
+
var formatConfigByDatePatterns = {
|
|
15186
|
+
"dd.mm.yyyy": {
|
|
15187
|
+
locale: "en-GB",
|
|
15188
|
+
options: { ...baseDateFormatOptions },
|
|
15189
|
+
postProcessor: (s) => s.replaceAll("/", ".")
|
|
15190
|
+
},
|
|
15191
|
+
"dd/mm/yyyy": { locale: "en-GB", options: { ...baseDateFormatOptions } },
|
|
15192
|
+
"dd MMM yyyy": {
|
|
15193
|
+
locale: "en-GB",
|
|
15194
|
+
options: { ...baseDateFormatOptions, month: "short" }
|
|
15195
|
+
},
|
|
15196
|
+
"dd MMMM yyyy": {
|
|
15197
|
+
locale: "en-GB",
|
|
15198
|
+
options: { ...baseDateFormatOptions, month: "long" }
|
|
15199
|
+
},
|
|
15200
|
+
"mm/dd/yyyy": { locale: "en-US", options: { ...baseDateFormatOptions } },
|
|
15201
|
+
"MMM dd, yyyy": {
|
|
15202
|
+
locale: "en-US",
|
|
15203
|
+
options: { ...baseDateFormatOptions, month: "short" }
|
|
15204
|
+
},
|
|
15205
|
+
"MMMM dd, yyyy": {
|
|
15206
|
+
locale: "en-US",
|
|
15207
|
+
options: { ...baseDateFormatOptions, month: "long" }
|
|
15208
|
+
}
|
|
15209
|
+
};
|
|
15210
|
+
var formatConfigByDateTimePatterns = { ...formatConfigByDatePatterns, ...formatConfigByTimePatterns };
|
|
15211
|
+
|
|
15164
15212
|
// ../vuu-utils/src/logging-utils.ts
|
|
15165
15213
|
var logLevels = ["error", "warn", "info", "debug"];
|
|
15166
15214
|
var isValidLogLevel = (value) => typeof value === "string" && logLevels.includes(value);
|