@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/cjs/index.js
CHANGED
|
@@ -15221,6 +15221,54 @@ var getCookieValue = (name) => {
|
|
|
15221
15221
|
// ../vuu-utils/src/DataWindow.ts
|
|
15222
15222
|
var { KEY } = metadataKeys;
|
|
15223
15223
|
|
|
15224
|
+
// ../vuu-utils/src/date/formatter.ts
|
|
15225
|
+
var baseTimeFormatOptions = {
|
|
15226
|
+
hour: "2-digit",
|
|
15227
|
+
minute: "2-digit",
|
|
15228
|
+
second: "2-digit"
|
|
15229
|
+
};
|
|
15230
|
+
var formatConfigByTimePatterns = {
|
|
15231
|
+
"hh:mm:ss": {
|
|
15232
|
+
locale: "en-GB",
|
|
15233
|
+
options: { ...baseTimeFormatOptions, hour12: false }
|
|
15234
|
+
},
|
|
15235
|
+
"hh:mm:ss a": {
|
|
15236
|
+
locale: "en-GB",
|
|
15237
|
+
options: { ...baseTimeFormatOptions, hour12: true }
|
|
15238
|
+
}
|
|
15239
|
+
};
|
|
15240
|
+
var baseDateFormatOptions = {
|
|
15241
|
+
day: "2-digit",
|
|
15242
|
+
month: "2-digit",
|
|
15243
|
+
year: "numeric"
|
|
15244
|
+
};
|
|
15245
|
+
var formatConfigByDatePatterns = {
|
|
15246
|
+
"dd.mm.yyyy": {
|
|
15247
|
+
locale: "en-GB",
|
|
15248
|
+
options: { ...baseDateFormatOptions },
|
|
15249
|
+
postProcessor: (s) => s.replaceAll("/", ".")
|
|
15250
|
+
},
|
|
15251
|
+
"dd/mm/yyyy": { locale: "en-GB", options: { ...baseDateFormatOptions } },
|
|
15252
|
+
"dd MMM yyyy": {
|
|
15253
|
+
locale: "en-GB",
|
|
15254
|
+
options: { ...baseDateFormatOptions, month: "short" }
|
|
15255
|
+
},
|
|
15256
|
+
"dd MMMM yyyy": {
|
|
15257
|
+
locale: "en-GB",
|
|
15258
|
+
options: { ...baseDateFormatOptions, month: "long" }
|
|
15259
|
+
},
|
|
15260
|
+
"mm/dd/yyyy": { locale: "en-US", options: { ...baseDateFormatOptions } },
|
|
15261
|
+
"MMM dd, yyyy": {
|
|
15262
|
+
locale: "en-US",
|
|
15263
|
+
options: { ...baseDateFormatOptions, month: "short" }
|
|
15264
|
+
},
|
|
15265
|
+
"MMMM dd, yyyy": {
|
|
15266
|
+
locale: "en-US",
|
|
15267
|
+
options: { ...baseDateFormatOptions, month: "long" }
|
|
15268
|
+
}
|
|
15269
|
+
};
|
|
15270
|
+
var formatConfigByDateTimePatterns = { ...formatConfigByDatePatterns, ...formatConfigByTimePatterns };
|
|
15271
|
+
|
|
15224
15272
|
// ../vuu-utils/src/logging-utils.ts
|
|
15225
15273
|
var logLevels = ["error", "warn", "info", "debug"];
|
|
15226
15274
|
var isValidLogLevel = (value) => typeof value === "string" && logLevels.includes(value);
|