@sme.up/ketchup 10.4.1 → 10.4.2
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/{f-cell-16a8492f.js → f-cell-2dce1c47.js} +4 -4
- package/dist/cjs/{f-chip-8160bfaa.js → f-chip-b2b2de76.js} +1 -1
- package/dist/cjs/{f-object-field-b7914a75.js → f-object-field-508fe712.js} +2 -2
- package/dist/cjs/{f-paginator-utils-b8255f5e.js → f-paginator-utils-40479dab.js} +1 -1
- package/dist/cjs/{f-text-field-8e987ba6.js → f-text-field-5634b79e.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +8 -8
- package/dist/cjs/kup-box.cjs.entry.js +8 -8
- package/dist/cjs/kup-calendar.cjs.entry.js +3 -3
- package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-cell.cjs.entry.js +6 -6
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +1 -1
- package/dist/cjs/kup-dashboard.cjs.entry.js +3 -3
- package/dist/cjs/{kup-data-table-helper-85813cb3.js → kup-data-table-helper-262a013d.js} +2 -2
- package/dist/cjs/{kup-dates-1d88c05d.js → kup-dates-2ff08e4f.js} +91 -0
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- package/dist/cjs/kup-editor.cjs.entry.js +2 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +2 -2
- package/dist/cjs/kup-gantt_10.cjs.entry.js +2 -2
- package/dist/cjs/kup-grid.cjs.entry.js +2 -2
- package/dist/cjs/kup-htm.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-input-panel.cjs.entry.js +15 -11
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-088948ee.js → kup-manager-57f5a949.js} +1 -1
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-object-field.cjs.entry.js +4 -4
- package/dist/cjs/{kup-planner-renderer-helper-c13561ca.js → kup-planner-renderer-helper-7dfe474d.js} +1 -1
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/kup-txt.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography.cjs.entry.js +2 -2
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +9 -5
- package/dist/collection/managers/kup-dates/kup-dates.js +91 -0
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +3 -3
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-custom-task-list-table.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gantt.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +12 -8
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-planner-renderer.js +1 -1
- package/dist/components/kup-planner.js +6 -6
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-task-list.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-807b9585.js → p-00cf9dd2.js} +2 -2
- package/dist/components/{p-8f165438.js → p-0406cd83.js} +2 -2
- package/dist/components/{p-f7ff351a.js → p-200cb22e.js} +2 -2
- package/dist/components/{p-cb019ce0.js → p-2097fdc9.js} +2 -2
- package/dist/components/{p-61a69626.js → p-25602d9a.js} +1 -1
- package/dist/components/{p-5c463e65.js → p-2d2e8390.js} +2 -2
- package/dist/components/{p-1f7417f2.js → p-38d8b309.js} +2 -2
- package/dist/components/{p-511f2a65.js → p-873d5549.js} +1 -1
- package/dist/components/{p-fea0aa53.js → p-9c67c242.js} +4 -4
- package/dist/components/{p-5dcc763f.js → p-d7365aa4.js} +91 -0
- package/dist/components/{p-18f46a77.js → p-f23c2bc2.js} +2 -2
- package/dist/esm/{f-cell-2be92867.js → f-cell-1a087912.js} +4 -4
- package/dist/esm/{f-chip-e44754c0.js → f-chip-876f5447.js} +1 -1
- package/dist/esm/{f-object-field-973503a4.js → f-object-field-4382c70d.js} +2 -2
- package/dist/esm/{f-paginator-utils-29c1ba4a.js → f-paginator-utils-95d00f42.js} +1 -1
- package/dist/esm/{f-text-field-a0a6f8ca.js → f-text-field-a13130d7.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-activity-timeline.entry.js +3 -3
- package/dist/esm/kup-autocomplete_30.entry.js +8 -8
- package/dist/esm/kup-box.entry.js +8 -8
- package/dist/esm/kup-calendar.entry.js +3 -3
- package/dist/esm/kup-card-list.entry.js +2 -2
- package/dist/esm/kup-cell.entry.js +6 -6
- package/dist/esm/kup-custom-task-list-header_4.entry.js +1 -1
- package/dist/esm/kup-dashboard.entry.js +3 -3
- package/dist/esm/{kup-data-table-helper-acee1f33.js → kup-data-table-helper-4ab72247.js} +2 -2
- package/dist/esm/{kup-dates-ad66e957.js → kup-dates-bf500166.js} +91 -0
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +2 -2
- package/dist/esm/kup-editor.entry.js +2 -2
- package/dist/esm/kup-family-tree.entry.js +2 -2
- package/dist/esm/kup-gantt_10.entry.js +2 -2
- package/dist/esm/kup-grid.entry.js +2 -2
- package/dist/esm/kup-htm.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-input-panel.entry.js +15 -11
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-b62b2fe2.js → kup-manager-150e2ada.js} +1 -1
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-object-field.entry.js +4 -4
- package/dist/esm/{kup-planner-renderer-helper-c5a632c2.js → kup-planner-renderer-helper-b328ea3f.js} +1 -1
- package/dist/esm/kup-planner-renderer.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +2 -2
- package/dist/esm/kup-txt.entry.js +2 -2
- package/dist/esm/kup-typography-list.entry.js +2 -2
- package/dist/esm/kup-typography.entry.js +2 -2
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-24dce2bd.entry.js → p-018a6d06.entry.js} +1 -1
- package/dist/ketchup/{p-982ec7cd.entry.js → p-091b08ff.entry.js} +1 -1
- package/dist/ketchup/{p-839cd69a.entry.js → p-0bede0f7.entry.js} +1 -1
- package/dist/ketchup/{p-1201309c.entry.js → p-10812295.entry.js} +1 -1
- package/dist/ketchup/{p-b7999698.entry.js → p-17d03bbb.entry.js} +1 -1
- package/dist/ketchup/{p-6e282c98.entry.js → p-33d9524e.entry.js} +1 -1
- package/dist/ketchup/{p-16a066a8.entry.js → p-36b5d26b.entry.js} +1 -1
- package/dist/ketchup/{p-906d57d4.js → p-5154c3cd.js} +1 -1
- package/dist/ketchup/{p-5f48df2e.js → p-65509faf.js} +1 -1
- package/dist/ketchup/{p-461e36f2.entry.js → p-672cab52.entry.js} +1 -1
- package/dist/ketchup/p-6e751ce8.entry.js +1 -0
- package/dist/ketchup/{p-0fee6fb1.entry.js → p-763fd00d.entry.js} +1 -1
- package/dist/ketchup/{p-5475b9ee.entry.js → p-76868077.entry.js} +1 -1
- package/dist/ketchup/{p-d7b4d302.entry.js → p-7940d143.entry.js} +1 -1
- package/dist/ketchup/{p-313a46c4.entry.js → p-7e92c87c.entry.js} +1 -1
- package/dist/ketchup/{p-ba4a1c5d.entry.js → p-7f8582e3.entry.js} +1 -1
- package/dist/ketchup/{p-db865fc1.js → p-8721b809.js} +1 -1
- package/dist/ketchup/p-878f1dc1.entry.js +1 -0
- package/dist/ketchup/{p-fff372ee.entry.js → p-983576c3.entry.js} +1 -1
- package/dist/ketchup/{p-7ea0370a.entry.js → p-99b4d81d.entry.js} +1 -1
- package/dist/ketchup/{p-7013d156.entry.js → p-9cbf5d71.entry.js} +1 -1
- package/dist/ketchup/{p-d763a372.entry.js → p-a69b7815.entry.js} +1 -1
- package/dist/ketchup/{p-ce1c315f.entry.js → p-a8a09ca2.entry.js} +1 -1
- package/dist/ketchup/{p-e53a5835.entry.js → p-aa29831e.entry.js} +1 -1
- package/dist/ketchup/{p-5c04c239.js → p-ad52ea4a.js} +1 -1
- package/dist/ketchup/{p-76f49ffa.js → p-adadf8b5.js} +1 -1
- package/dist/ketchup/{p-cd40feb5.js → p-b20c5416.js} +1 -1
- package/dist/ketchup/{p-3f0cffa0.js → p-b669cdca.js} +1 -1
- package/dist/ketchup/{p-1dec57af.entry.js → p-cbec9dd6.entry.js} +1 -1
- package/dist/ketchup/{p-f4ca42b1.entry.js → p-d27d8ad1.entry.js} +1 -1
- package/dist/ketchup/{p-66c469fb.js → p-d3e2500c.js} +1 -1
- package/dist/ketchup/{p-b3084147.entry.js → p-d48d6b9b.entry.js} +1 -1
- package/dist/ketchup/{p-cc310650.entry.js → p-dbd00009.entry.js} +1 -1
- package/dist/ketchup/{p-c9b228ed.entry.js → p-df030135.entry.js} +1 -1
- package/dist/ketchup/{p-00850338.entry.js → p-e3da3084.entry.js} +1 -1
- package/dist/ketchup/{p-90800b86.entry.js → p-e618deeb.entry.js} +1 -1
- package/dist/ketchup/{p-6f65a7b3.entry.js → p-e7feebf1.entry.js} +1 -1
- package/dist/ketchup/{p-66b068ee.entry.js → p-e9c66132.entry.js} +1 -1
- package/dist/ketchup/{p-241cabfb.js → p-f2edb49f.js} +1 -1
- package/dist/ketchup/p-fa4a5da1.entry.js +1 -0
- package/package.json +1 -1
- package/dist/ketchup/p-2b5b8f6f.entry.js +0 -1
- package/dist/ketchup/p-5eca02b8.entry.js +0 -1
- package/dist/ketchup/p-ed249849.entry.js +0 -1
|
@@ -308,6 +308,31 @@ class KupDates {
|
|
|
308
308
|
if (!format) {
|
|
309
309
|
format = 'L'; // MM/DD/YYYY, DD/MM/YYYY depending on locale
|
|
310
310
|
}
|
|
311
|
+
// Check if input is an ISO date string with early year (0001-0999)
|
|
312
|
+
if (typeof input === 'string' && /^0\d{3}-/.test(input)) {
|
|
313
|
+
const yearStr = input.substring(0, 4);
|
|
314
|
+
const year = Number(yearStr);
|
|
315
|
+
if (year >= 1 && year <= 999) {
|
|
316
|
+
// Use native Date for early years
|
|
317
|
+
const nativeDate = new Date(input);
|
|
318
|
+
if (!isNaN(nativeDate.getTime())) {
|
|
319
|
+
// Manual formatting for common ISO formats
|
|
320
|
+
if (format === 'YYYY-MM-DD' ||
|
|
321
|
+
format === KupDatesFormats.ISO_DATE) {
|
|
322
|
+
return nativeDate.toISOString().substring(0, 10);
|
|
323
|
+
}
|
|
324
|
+
else if (format === 'YYYY-MM-DD HH:mm:ss' ||
|
|
325
|
+
format === KupDatesFormats.ISO_DATE_TIME) {
|
|
326
|
+
return nativeDate
|
|
327
|
+
.toISOString()
|
|
328
|
+
.substring(0, 19)
|
|
329
|
+
.replace('T', ' ');
|
|
330
|
+
}
|
|
331
|
+
// For other formats, convert to dayjs but be aware of year issues
|
|
332
|
+
return dayjs.utc(nativeDate).format(format);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
311
336
|
return dayjs.utc(input).format(format);
|
|
312
337
|
}
|
|
313
338
|
/**
|
|
@@ -328,6 +353,48 @@ class KupDates {
|
|
|
328
353
|
return time.toLocaleTimeString(this.getLocale() + '-u-hc-h23', options);
|
|
329
354
|
}
|
|
330
355
|
isIsoDate(dateString) {
|
|
356
|
+
// Validate input
|
|
357
|
+
if (!dateString || typeof dateString !== 'string') {
|
|
358
|
+
return false;
|
|
359
|
+
}
|
|
360
|
+
// ISO date must be at least 10 characters (YYYY-MM-DD)
|
|
361
|
+
if (dateString.length < 10) {
|
|
362
|
+
return false;
|
|
363
|
+
}
|
|
364
|
+
// Extract year from the string
|
|
365
|
+
const yearStr = dateString.substring(0, 4);
|
|
366
|
+
const year = Number(yearStr);
|
|
367
|
+
// Year 0 doesn't exist in Gregorian calendar (goes from 1 BC to 1 AD)
|
|
368
|
+
if (year === 0 || isNaN(year)) {
|
|
369
|
+
return false;
|
|
370
|
+
}
|
|
371
|
+
// For years 0001-0999, dayjs misinterprets them, so use native Date parsing
|
|
372
|
+
if (year >= 1 && year <= 999) {
|
|
373
|
+
try {
|
|
374
|
+
const nativeDate = new Date(dateString);
|
|
375
|
+
if (isNaN(nativeDate.getTime())) {
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
// Validate the parsed components match the input
|
|
379
|
+
const isoString = nativeDate.toISOString();
|
|
380
|
+
if (Number(isoString.substring(0, 4)) != year) {
|
|
381
|
+
return false;
|
|
382
|
+
}
|
|
383
|
+
if (Number(dateString.substring(5, 7)) !=
|
|
384
|
+
nativeDate.getUTCMonth() + 1) {
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
if (Number(dateString.substring(8, 10)) !=
|
|
388
|
+
nativeDate.getUTCDate()) {
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
return true;
|
|
392
|
+
}
|
|
393
|
+
catch (_a) {
|
|
394
|
+
return false;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
// For years 1000 and above, use dayjs as usual
|
|
331
398
|
const isoDate = dayjs(dateString, [
|
|
332
399
|
KupDatesFormats.ISO_DATE,
|
|
333
400
|
KupDatesFormats.ISO_DATE_TIME,
|
|
@@ -435,6 +502,18 @@ class KupDates {
|
|
|
435
502
|
* @returns {Date} Date object.
|
|
436
503
|
*/
|
|
437
504
|
toDate(input, format) {
|
|
505
|
+
// Check if input is an ISO date string with early year (0001-0999)
|
|
506
|
+
if (typeof input === 'string' && /^0\d{3}-/.test(input)) {
|
|
507
|
+
const yearStr = input.substring(0, 4);
|
|
508
|
+
const year = Number(yearStr);
|
|
509
|
+
if (year >= 1 && year <= 999) {
|
|
510
|
+
// Use native Date for early years
|
|
511
|
+
const nativeDate = new Date(input);
|
|
512
|
+
if (!isNaN(nativeDate.getTime())) {
|
|
513
|
+
return nativeDate;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
438
517
|
const parsed = format ? dayjs.utc(input, format) : dayjs.utc(input);
|
|
439
518
|
return parsed.isValid() ? parsed.toDate() : null;
|
|
440
519
|
}
|
|
@@ -445,6 +524,18 @@ class KupDates {
|
|
|
445
524
|
* @returns {dayjs.Dayjs} Dayjs object.
|
|
446
525
|
*/
|
|
447
526
|
toDayjs(input, format) {
|
|
527
|
+
// Check if input is an ISO date string with early year (0001-0999)
|
|
528
|
+
if (typeof input === 'string' && /^0\d{3}-/.test(input)) {
|
|
529
|
+
const yearStr = input.substring(0, 4);
|
|
530
|
+
const year = Number(yearStr);
|
|
531
|
+
if (year >= 1 && year <= 999) {
|
|
532
|
+
// Use native Date for early years, then convert to dayjs
|
|
533
|
+
const nativeDate = new Date(input);
|
|
534
|
+
if (!isNaN(nativeDate.getTime())) {
|
|
535
|
+
return dayjs(nativeDate);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
448
539
|
const dayJsResult = format ? dayjs(input, format) : dayjs(input);
|
|
449
540
|
return dayJsResult.isValid() ? dayJsResult : null;
|
|
450
541
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host, g as getAssetPath } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, u as KupDebugCategory, L as getColumnByName, D as KupDataNewColumnTypes } from './p-
|
|
3
|
-
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, u as KupDebugCategory, L as getColumnByName, D as KupDataNewColumnTypes } from './p-25602d9a.js';
|
|
3
|
+
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-0406cd83.js';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, F as Fragment } from './index-9b0f4a0d.js';
|
|
2
|
-
import { aq as editableTypes, ar as kupTypes, R as FCellClasses, ad as FCellTypes, f as KupThemeColorValues, ao as CHIAdapter, am as RADAdapter, al as CMBandACPAdapter, as as KupTagNames, F as FCellShapes, ai as getCellValueForDisplay, a as KupComponentSizing, at as fullWidthFieldsComps, I as ItemsDisplayMode, au as autoCenterComps, av as adaptContentToDisplayMode, aw as FCellEvents, ax as isForceUppercase, ay as isForceLowercase, h as KupDebugCategory } from './kup-manager-
|
|
2
|
+
import { aq as editableTypes, ar as kupTypes, R as FCellClasses, ad as FCellTypes, f as KupThemeColorValues, ao as CHIAdapter, am as RADAdapter, al as CMBandACPAdapter, as as KupTagNames, F as FCellShapes, ai as getCellValueForDisplay, a as KupComponentSizing, at as fullWidthFieldsComps, I as ItemsDisplayMode, au as autoCenterComps, av as adaptContentToDisplayMode, aw as FCellEvents, ax as isForceUppercase, ay as isForceLowercase, h as KupDebugCategory } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { F as FButton } from './f-button-6298565d.js';
|
|
4
4
|
import { F as FCheckbox } from './f-checkbox-191ec2e7.js';
|
|
5
|
-
import { F as FChipType, d as FChip } from './f-chip-
|
|
5
|
+
import { F as FChipType, d as FChip } from './f-chip-876f5447.js';
|
|
6
6
|
import { F as FImage } from './f-image-96ea1421.js';
|
|
7
|
-
import { F as FObjectField } from './f-object-field-
|
|
8
|
-
import { F as FTextField } from './f-text-field-
|
|
7
|
+
import { F as FObjectField } from './f-object-field-4382c70d.js';
|
|
8
|
+
import { F as FTextField } from './f-text-field-a13130d7.js';
|
|
9
9
|
|
|
10
10
|
var FRadioType;
|
|
11
11
|
(function (FRadioType) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
2
|
import { F as FImage } from './f-image-96ea1421.js';
|
|
3
|
-
import { I as ItemsDisplayMode, d as KupThemeIconValues, b as KupLanguageGeneric } from './kup-manager-
|
|
3
|
+
import { I as ItemsDisplayMode, d as KupThemeIconValues, b as KupLanguageGeneric } from './kup-manager-150e2ada.js';
|
|
4
4
|
|
|
5
5
|
function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
6
6
|
const { id, value } = item;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
|
-
import { a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement } from './kup-manager-
|
|
2
|
+
import { a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { F as FButton } from './f-button-6298565d.js';
|
|
4
4
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
5
|
-
import { F as FTextField } from './f-text-field-
|
|
5
|
+
import { F as FTextField } from './f-text-field-a13130d7.js';
|
|
6
6
|
|
|
7
7
|
const STATE = new WeakMap();
|
|
8
8
|
const FObjectField = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
|
-
import { I as ItemsDisplayMode, az as KupLanguagePage, t as KupLanguageRow, a as KupComponentSizing, b as KupLanguageGeneric } from './kup-manager-
|
|
2
|
+
import { I as ItemsDisplayMode, az as KupLanguagePage, t as KupLanguageRow, a as KupComponentSizing, b as KupLanguageGeneric } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { F as FButton } from './f-button-6298565d.js';
|
|
4
4
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, g as getAssetPath } from './index-9b0f4a0d.js';
|
|
2
|
-
import { d as KupThemeIconValues } from './kup-manager-
|
|
2
|
+
import { d as KupThemeIconValues } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { F as FImage } from './f-image-96ea1421.js';
|
|
4
4
|
|
|
5
5
|
const dom = document.documentElement;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as KupManager } from './kup-manager-
|
|
2
|
-
import './kup-dates-
|
|
1
|
+
import { K as KupManager } from './kup-manager-150e2ada.js';
|
|
2
|
+
import './kup-dates-bf500166.js';
|
|
3
3
|
import './index-9b0f4a0d.js';
|
|
4
4
|
|
|
5
5
|
/** used for obtain a KupManager instance without a dom document (for UT) */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, d as KupThemeIconValues, f as KupThemeColorValues, e as KupDynamicPositionPlacement } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, d as KupThemeIconValues, f as KupThemeColorValues, e as KupDynamicPositionPlacement } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { F as FImage } from './f-image-96ea1421.js';
|
|
4
4
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
5
5
|
import { M as MDCRipple } from './component-a35bc7f1.js';
|
|
6
|
-
import './kup-dates-
|
|
6
|
+
import './kup-dates-bf500166.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Props of the kup-accordion component.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, F as Fragment, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory, ai as getCellValueForDisplay } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory, ai as getCellValueForDisplay } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import { F as FImage } from './f-image-96ea1421.js';
|
|
5
|
-
import { s as sortRows } from './kup-data-table-helper-
|
|
6
|
-
import './kup-dates-
|
|
5
|
+
import { s as sortRows } from './kup-data-table-helper-4ab72247.js';
|
|
6
|
+
import './kup-dates-bf500166.js';
|
|
7
7
|
|
|
8
8
|
var KupActivityTimelineProps;
|
|
9
9
|
(function (KupActivityTimelineProps) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement$1, F as Fragment, g as getAssetPath } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, I as ItemsDisplayMode, a as KupComponentSizing, g as getProps, s as setProps, b as KupLanguageGeneric, c as getSizeOfInputElement, d as KupThemeIconValues, e as KupDynamicPositionPlacement, f as KupThemeColorValues, h as KupDebugCategory, F as FCellShapes, i as FCellPadding, j as fillString, l as KupCardBuiltInClockElements, m as KupCardCSSClasses, n as KupLanguageTotals, o as KupLanguageColumn, p as KupDataNewColumnTypes, q as KupCardSubEvents, r as KupCardIds, t as KupLanguageRow, u as KupLanguageSearch, v as KupCardFamily, w as KupCardProps, x as getColumnByName, y as formatToNumber, z as KupObjects, A as identify, G as GroupLabelDisplayMode, S as SelectionMode, B as KupLanguageGrouping, C as KupLanguageCheckbox, D as getValueForDisplay2, E as Filters, H as getValueForDisplay, J as FILTER_ANALYZER, L as LoadMoreMode, P as PaginatorPos, M as ShowGrid, T as TotalLabel, N as TotalMode, O as getRegExpFromString, Q as isNegativeNumber, R as FCellClasses, U as kupDynamicPositionAttribute, V as KupPointerEventTypes, W as kupDraggableColumnAttr, X as kupDragActiveAttr, Y as KupDragEffect, Z as kupDraggableCellAttr, _ as KupDropEventTypes, $ as DataTableAreasEnum, a0 as TypesToDuplicate, a1 as FixedCellsClasses, a2 as FixedCellsCSSVarsBase, a3 as KupLanguageFontsize, a4 as KupLanguageDensity, a5 as KupLanguageGrid, a6 as KupDataTableProps, a7 as UseAsValue, a8 as SortMode, a9 as iconColumn, aa as keyColumn, ab as fieldColumn, ac as KupLanguageUpload, ad as FCellTypes, ae as KupListRole, af as KupListProps, ag as addColumnValueFromRow, ah as KupGlobalFilterMode } from './kup-manager-
|
|
3
|
-
import { F as FTextField } from './f-text-field-
|
|
2
|
+
import { k as kupManagerInstance, I as ItemsDisplayMode, a as KupComponentSizing, g as getProps, s as setProps, b as KupLanguageGeneric, c as getSizeOfInputElement, d as KupThemeIconValues, e as KupDynamicPositionPlacement, f as KupThemeColorValues, h as KupDebugCategory, F as FCellShapes, i as FCellPadding, j as fillString, l as KupCardBuiltInClockElements, m as KupCardCSSClasses, n as KupLanguageTotals, o as KupLanguageColumn, p as KupDataNewColumnTypes, q as KupCardSubEvents, r as KupCardIds, t as KupLanguageRow, u as KupLanguageSearch, v as KupCardFamily, w as KupCardProps, x as getColumnByName, y as formatToNumber, z as KupObjects, A as identify, G as GroupLabelDisplayMode, S as SelectionMode, B as KupLanguageGrouping, C as KupLanguageCheckbox, D as getValueForDisplay2, E as Filters, H as getValueForDisplay, J as FILTER_ANALYZER, L as LoadMoreMode, P as PaginatorPos, M as ShowGrid, T as TotalLabel, N as TotalMode, O as getRegExpFromString, Q as isNegativeNumber, R as FCellClasses, U as kupDynamicPositionAttribute, V as KupPointerEventTypes, W as kupDraggableColumnAttr, X as kupDragActiveAttr, Y as KupDragEffect, Z as kupDraggableCellAttr, _ as KupDropEventTypes, $ as DataTableAreasEnum, a0 as TypesToDuplicate, a1 as FixedCellsClasses, a2 as FixedCellsCSSVarsBase, a3 as KupLanguageFontsize, a4 as KupLanguageDensity, a5 as KupLanguageGrid, a6 as KupDataTableProps, a7 as UseAsValue, a8 as SortMode, a9 as iconColumn, aa as keyColumn, ab as fieldColumn, ac as KupLanguageUpload, ad as FCellTypes, ae as KupListRole, af as KupListProps, ag as addColumnValueFromRow, ah as KupGlobalFilterMode } from './kup-manager-150e2ada.js';
|
|
3
|
+
import { F as FTextField } from './f-text-field-a13130d7.js';
|
|
4
4
|
import { F as FTextFieldMDC } from './f-text-field-mdc-81ce6c7c.js';
|
|
5
|
-
import { g as getIdOfItemByDisplayMode, c as consistencyCheck, F as FChipType, a as FChipSize, b as FChipStyling, d as FChip } from './f-chip-
|
|
5
|
+
import { g as getIdOfItemByDisplayMode, c as consistencyCheck, F as FChipType, a as FChipSize, b as FChipStyling, d as FChip } from './f-chip-876f5447.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
7
|
import { F as FImage } from './f-image-96ea1421.js';
|
|
8
8
|
import { F as FButton } from './f-button-6298565d.js';
|
|
9
9
|
import { F as FButtonAlign, a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
10
|
-
import { F as FCell, a as FRadio, b as FRating, c as FSwitchSizing, d as FSwitch } from './f-cell-
|
|
11
|
-
import { d as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './kup-dates-
|
|
10
|
+
import { F as FCell, a as FRadio, b as FRating, c as FSwitchSizing, d as FSwitch } from './f-cell-1a087912.js';
|
|
11
|
+
import { d as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './kup-dates-bf500166.js';
|
|
12
12
|
import { M as MDCRipple } from './component-a35bc7f1.js';
|
|
13
13
|
import { F as FCheckbox } from './f-checkbox-191ec2e7.js';
|
|
14
|
-
import { F as FiltersColumnMenu, a as FiltersRows, g as getDiffData, d as decorateDataTable, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, b as groupRows, s as sortRows, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './kup-data-table-helper-
|
|
15
|
-
import { F as FPaginator, p as pageChange, r as rowsPerPageChange } from './f-paginator-utils-
|
|
16
|
-
import './f-object-field-
|
|
14
|
+
import { F as FiltersColumnMenu, a as FiltersRows, g as getDiffData, d as decorateDataTable, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, b as groupRows, s as sortRows, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './kup-data-table-helper-4ab72247.js';
|
|
15
|
+
import { F as FPaginator, p as pageChange, r as rowsPerPageChange } from './f-paginator-utils-95d00f42.js';
|
|
16
|
+
import './f-object-field-4382c70d.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Props of the kup-autocomplete component.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, A as identify, g as getProps, s as setProps, a8 as SortMode, x as getColumnByName, b as KupLanguageGeneric, d as KupThemeIconValues, h as KupDebugCategory, V as KupPointerEventTypes, Y as KupDragEffect, aG as kupDraggableAttr, _ as KupDropEventTypes, u as KupLanguageSearch } from './kup-manager-
|
|
3
|
-
import { f as filterRows, p as paginateRows, s as sortRows } from './kup-data-table-helper-
|
|
2
|
+
import { k as kupManagerInstance, A as identify, g as getProps, s as setProps, a8 as SortMode, x as getColumnByName, b as KupLanguageGeneric, d as KupThemeIconValues, h as KupDebugCategory, V as KupPointerEventTypes, Y as KupDragEffect, aG as kupDraggableAttr, _ as KupDropEventTypes, u as KupLanguageSearch } from './kup-manager-150e2ada.js';
|
|
3
|
+
import { f as filterRows, p as paginateRows, s as sortRows } from './kup-data-table-helper-4ab72247.js';
|
|
4
4
|
import { F as FImage } from './f-image-96ea1421.js';
|
|
5
|
-
import { d as FChip } from './f-chip-
|
|
5
|
+
import { d as FChip } from './f-chip-876f5447.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
|
-
import { F as FCell } from './f-cell-
|
|
8
|
-
import { p as pageChange, r as rowsPerPageChange, F as FPaginator } from './f-paginator-utils-
|
|
7
|
+
import { F as FCell } from './f-cell-1a087912.js';
|
|
8
|
+
import { p as pageChange, r as rowsPerPageChange, F as FPaginator } from './f-paginator-utils-95d00f42.js';
|
|
9
9
|
import { F as FTextFieldMDC } from './f-text-field-mdc-81ce6c7c.js';
|
|
10
|
-
import './kup-dates-
|
|
10
|
+
import './kup-dates-bf500166.js';
|
|
11
11
|
import './f-button-6298565d.js';
|
|
12
12
|
import './f-button-declarations-6c8f8abe.js';
|
|
13
13
|
import './f-checkbox-191ec2e7.js';
|
|
14
|
-
import './f-object-field-
|
|
15
|
-
import './f-text-field-
|
|
14
|
+
import './f-object-field-4382c70d.js';
|
|
15
|
+
import './f-text-field-a13130d7.js';
|
|
16
16
|
import './component-a35bc7f1.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h as h$1, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, x as getColumnByName, h as KupDebugCategory } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, x as getColumnByName, h as KupDebugCategory } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import { F as FButton } from './f-button-6298565d.js';
|
|
5
|
-
import { d as FChip, F as FChipType } from './f-chip-
|
|
6
|
-
import { b as KupDatesLocales, K as KupDatesFormats } from './kup-dates-
|
|
5
|
+
import { d as FChip, F as FChipType } from './f-chip-876f5447.js';
|
|
6
|
+
import { b as KupDatesLocales, K as KupDatesFormats } from './kup-dates-bf500166.js';
|
|
7
7
|
import './f-button-declarations-6c8f8abe.js';
|
|
8
8
|
import './f-image-96ea1421.js';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, v as KupCardFamily, ai as getCellValueForDisplay } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, v as KupCardFamily, ai as getCellValueForDisplay } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
|
-
import './kup-dates-
|
|
4
|
+
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Props of the kup-card-list component.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, i as FCellPadding, aA as KupCellElementsPosition, g as getProps, s as setProps, Y as KupDragEffect, aB as submitPositionAdapter, b as KupLanguageGeneric, aC as KupCellProps } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, i as FCellPadding, aA as KupCellElementsPosition, g as getProps, s as setProps, Y as KupDragEffect, aB as submitPositionAdapter, b as KupLanguageGeneric, aC as KupCellProps } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import { F as FButton } from './f-button-6298565d.js';
|
|
5
|
-
import { F as FCell } from './f-cell-
|
|
6
|
-
import './kup-dates-
|
|
5
|
+
import { F as FCell } from './f-cell-1a087912.js';
|
|
6
|
+
import './kup-dates-bf500166.js';
|
|
7
7
|
import './f-button-declarations-6c8f8abe.js';
|
|
8
8
|
import './f-image-96ea1421.js';
|
|
9
9
|
import './f-checkbox-191ec2e7.js';
|
|
10
|
-
import './f-chip-
|
|
11
|
-
import './f-object-field-
|
|
12
|
-
import './f-text-field-
|
|
10
|
+
import './f-chip-876f5447.js';
|
|
11
|
+
import './f-object-field-4382c70d.js';
|
|
12
|
+
import './f-text-field-a13130d7.js';
|
|
13
13
|
|
|
14
14
|
const kupCellCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{display:block;height:fit-content;width:100%}#kup-component{height:fit-content;width:100%}";
|
|
15
15
|
const KupCellStyle0 = kupCellCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment } from './index-9b0f4a0d.js';
|
|
2
|
-
import { a as KupDates, c as commonjsGlobal } from './kup-dates-
|
|
2
|
+
import { a as KupDates, c as commonjsGlobal } from './kup-dates-bf500166.js';
|
|
3
3
|
import { d as createArrayFromNum, i as isKeyboardEvent, g as getProgressPoint, h as handleTaskBySVGMouseEvent } from './bar.helpers-23a51579.js';
|
|
4
4
|
import { d as defaultDateTimeFormatters, a as getDaysInMonth, b as getCachedDateTimeFormat, c as getLocalDayOfWeek, e as getLocaleMonth } from './kup-planner-time-formatter-ddf84f9b.js';
|
|
5
5
|
import { d as defaultStylingOptions } from './kup-planner-declarations-0704bc6c.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
2
|
import { F as FButton } from './f-button-6298565d.js';
|
|
3
3
|
import { F as FCheckbox } from './f-checkbox-191ec2e7.js';
|
|
4
|
-
import { F as FTextField } from './f-text-field-
|
|
4
|
+
import { F as FTextField } from './f-text-field-a13130d7.js';
|
|
5
5
|
import { F as FTextFieldMDC } from './f-text-field-mdc-81ce6c7c.js';
|
|
6
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, aD as KupLanguageDashboard, b as KupLanguageGeneric, Y as KupDragEffect, h as KupDebugCategory } from './kup-manager-
|
|
6
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, aD as KupLanguageDashboard, b as KupLanguageGeneric, Y as KupDragEffect, h as KupDebugCategory } from './kup-manager-150e2ada.js';
|
|
7
7
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
8
8
|
import './f-button-declarations-6c8f8abe.js';
|
|
9
9
|
import './f-image-96ea1421.js';
|
|
10
10
|
import './component-a35bc7f1.js';
|
|
11
|
-
import './kup-dates-
|
|
11
|
+
import './kup-dates-bf500166.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Props of the kup-dashboard component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Filters, H as getValueForDisplay, D as getValueForDisplay2, ai as getCellValueForDisplay, x as getColumnByName, z as KupObjects, aj as KupData, ak as compareCell, N as TotalMode, O as getRegExpFromString, F as FCellShapes, al as CMBandACPAdapter, am as RADAdapter, an as CHKAdapter, ao as CHIAdapter, ap as SWTAdapter, a8 as SortMode } from './kup-manager-
|
|
2
|
-
import { K as KupDatesFormats } from './kup-dates-
|
|
1
|
+
import { E as Filters, H as getValueForDisplay, D as getValueForDisplay2, ai as getCellValueForDisplay, x as getColumnByName, z as KupObjects, aj as KupData, ak as compareCell, N as TotalMode, O as getRegExpFromString, F as FCellShapes, al as CMBandACPAdapter, am as RADAdapter, an as CHKAdapter, ao as CHIAdapter, ap as SWTAdapter, a8 as SortMode } from './kup-manager-150e2ada.js';
|
|
2
|
+
import { K as KupDatesFormats } from './kup-dates-bf500166.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Filtering algorithms related to column menus.
|
|
@@ -312,6 +312,31 @@ class KupDates {
|
|
|
312
312
|
if (!format) {
|
|
313
313
|
format = 'L'; // MM/DD/YYYY, DD/MM/YYYY depending on locale
|
|
314
314
|
}
|
|
315
|
+
// Check if input is an ISO date string with early year (0001-0999)
|
|
316
|
+
if (typeof input === 'string' && /^0\d{3}-/.test(input)) {
|
|
317
|
+
const yearStr = input.substring(0, 4);
|
|
318
|
+
const year = Number(yearStr);
|
|
319
|
+
if (year >= 1 && year <= 999) {
|
|
320
|
+
// Use native Date for early years
|
|
321
|
+
const nativeDate = new Date(input);
|
|
322
|
+
if (!isNaN(nativeDate.getTime())) {
|
|
323
|
+
// Manual formatting for common ISO formats
|
|
324
|
+
if (format === 'YYYY-MM-DD' ||
|
|
325
|
+
format === KupDatesFormats.ISO_DATE) {
|
|
326
|
+
return nativeDate.toISOString().substring(0, 10);
|
|
327
|
+
}
|
|
328
|
+
else if (format === 'YYYY-MM-DD HH:mm:ss' ||
|
|
329
|
+
format === KupDatesFormats.ISO_DATE_TIME) {
|
|
330
|
+
return nativeDate
|
|
331
|
+
.toISOString()
|
|
332
|
+
.substring(0, 19)
|
|
333
|
+
.replace('T', ' ');
|
|
334
|
+
}
|
|
335
|
+
// For other formats, convert to dayjs but be aware of year issues
|
|
336
|
+
return dayjs.utc(nativeDate).format(format);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
315
340
|
return dayjs.utc(input).format(format);
|
|
316
341
|
}
|
|
317
342
|
/**
|
|
@@ -332,6 +357,48 @@ class KupDates {
|
|
|
332
357
|
return time.toLocaleTimeString(this.getLocale() + '-u-hc-h23', options);
|
|
333
358
|
}
|
|
334
359
|
isIsoDate(dateString) {
|
|
360
|
+
// Validate input
|
|
361
|
+
if (!dateString || typeof dateString !== 'string') {
|
|
362
|
+
return false;
|
|
363
|
+
}
|
|
364
|
+
// ISO date must be at least 10 characters (YYYY-MM-DD)
|
|
365
|
+
if (dateString.length < 10) {
|
|
366
|
+
return false;
|
|
367
|
+
}
|
|
368
|
+
// Extract year from the string
|
|
369
|
+
const yearStr = dateString.substring(0, 4);
|
|
370
|
+
const year = Number(yearStr);
|
|
371
|
+
// Year 0 doesn't exist in Gregorian calendar (goes from 1 BC to 1 AD)
|
|
372
|
+
if (year === 0 || isNaN(year)) {
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
375
|
+
// For years 0001-0999, dayjs misinterprets them, so use native Date parsing
|
|
376
|
+
if (year >= 1 && year <= 999) {
|
|
377
|
+
try {
|
|
378
|
+
const nativeDate = new Date(dateString);
|
|
379
|
+
if (isNaN(nativeDate.getTime())) {
|
|
380
|
+
return false;
|
|
381
|
+
}
|
|
382
|
+
// Validate the parsed components match the input
|
|
383
|
+
const isoString = nativeDate.toISOString();
|
|
384
|
+
if (Number(isoString.substring(0, 4)) != year) {
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
if (Number(dateString.substring(5, 7)) !=
|
|
388
|
+
nativeDate.getUTCMonth() + 1) {
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
if (Number(dateString.substring(8, 10)) !=
|
|
392
|
+
nativeDate.getUTCDate()) {
|
|
393
|
+
return false;
|
|
394
|
+
}
|
|
395
|
+
return true;
|
|
396
|
+
}
|
|
397
|
+
catch (_a) {
|
|
398
|
+
return false;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
// For years 1000 and above, use dayjs as usual
|
|
335
402
|
const isoDate = dayjs(dateString, [
|
|
336
403
|
KupDatesFormats.ISO_DATE,
|
|
337
404
|
KupDatesFormats.ISO_DATE_TIME,
|
|
@@ -439,6 +506,18 @@ class KupDates {
|
|
|
439
506
|
* @returns {Date} Date object.
|
|
440
507
|
*/
|
|
441
508
|
toDate(input, format) {
|
|
509
|
+
// Check if input is an ISO date string with early year (0001-0999)
|
|
510
|
+
if (typeof input === 'string' && /^0\d{3}-/.test(input)) {
|
|
511
|
+
const yearStr = input.substring(0, 4);
|
|
512
|
+
const year = Number(yearStr);
|
|
513
|
+
if (year >= 1 && year <= 999) {
|
|
514
|
+
// Use native Date for early years
|
|
515
|
+
const nativeDate = new Date(input);
|
|
516
|
+
if (!isNaN(nativeDate.getTime())) {
|
|
517
|
+
return nativeDate;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
442
521
|
const parsed = format ? dayjs.utc(input, format) : dayjs.utc(input);
|
|
443
522
|
return parsed.isValid() ? parsed.toDate() : null;
|
|
444
523
|
}
|
|
@@ -449,6 +528,18 @@ class KupDates {
|
|
|
449
528
|
* @returns {dayjs.Dayjs} Dayjs object.
|
|
450
529
|
*/
|
|
451
530
|
toDayjs(input, format) {
|
|
531
|
+
// Check if input is an ISO date string with early year (0001-0999)
|
|
532
|
+
if (typeof input === 'string' && /^0\d{3}-/.test(input)) {
|
|
533
|
+
const yearStr = input.substring(0, 4);
|
|
534
|
+
const year = Number(yearStr);
|
|
535
|
+
if (year >= 1 && year <= 999) {
|
|
536
|
+
// Use native Date for early years, then convert to dayjs
|
|
537
|
+
const nativeDate = new Date(input);
|
|
538
|
+
if (!isNaN(nativeDate.getTime())) {
|
|
539
|
+
return dayjs(nativeDate);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
452
543
|
const dayJsResult = format ? dayjs(input, format) : dayjs(input);
|
|
453
544
|
return dayJsResult.isValid() ? dayJsResult : null;
|
|
454
545
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
|
-
import './kup-dates-
|
|
4
|
+
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
6
6
|
const drawerClass = 'drawer';
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement, g as getAssetPath } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, f as KupThemeColorValues, h as KupDebugCategory, x as getColumnByName, p as KupDataNewColumnTypes } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, f as KupThemeColorValues, h as KupDebugCategory, x as getColumnByName, p as KupDataNewColumnTypes } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
|
-
import './kup-dates-
|
|
4
|
+
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
6
6
|
/*! *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './kup-dates-
|
|
4
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './kup-dates-bf500166.js';
|
|
5
5
|
|
|
6
6
|
var toastuiEditor = {exports: {}};
|
|
7
7
|
|
|
@@ -2,9 +2,9 @@ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host
|
|
|
2
2
|
import { F as FButton } from './f-button-6298565d.js';
|
|
3
3
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
4
4
|
import { F as FImage } from './f-image-96ea1421.js';
|
|
5
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, V as KupPointerEventTypes } from './kup-manager-
|
|
5
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, V as KupPointerEventTypes } from './kup-manager-150e2ada.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
|
-
import './kup-dates-
|
|
7
|
+
import './kup-dates-bf500166.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Props of the kup-family-tree component.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, f as forceUpdate, d as getElement, F as Fragment } from './index-9b0f4a0d.js';
|
|
2
|
-
import { f as ganttDateRangeFromTask, s as seedDates, g as getPhaseById, b as getProjectById } from './kup-planner-renderer-helper-
|
|
2
|
+
import { f as ganttDateRangeFromTask, s as seedDates, g as getPhaseById, b as getProjectById } from './kup-planner-renderer-helper-b328ea3f.js';
|
|
3
3
|
import { r as removeHiddenTasks, s as sortTasks, c as convertToBarTasks, a as calculateCurrentDateCalculator, b as calculateProjection } from './bar.helpers-23a51579.js';
|
|
4
4
|
import { e as KUP_PLANNER_MAIN_GANTT_ID } from './kup-planner-declarations-0704bc6c.js';
|
|
5
|
-
import './kup-dates-
|
|
5
|
+
import './kup-dates-bf500166.js';
|
|
6
6
|
|
|
7
7
|
const kupGanttCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.wrapper{display:flex;padding:0;margin:0;list-style:none;outline:none;position:relative}.ganttContainer{background:var(--kup-layer-2);border-radius:var(--kup-radius-00);overflow:hidden;padding:var(--kup-space-05)}.ganttVerticalContainer{overflow:hidden;font-size:0;margin:0;padding:0}.horizontalContainer{margin:0;padding:0;overflow:hidden}.horizontalContainerScrollable{overflow:auto !important;scrollbar-width:0}.horizontalContainerScrollable::-webkit-scrollbar{width:0;height:0}.task-gantt{overflow:hidden}";
|
|
8
8
|
const KupGanttStyle0 = kupGanttCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
|
-
import './kup-dates-
|
|
4
|
+
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Props of the kup-grid component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, F as Fragment, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric } from './kup-manager-150e2ada.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
|
-
import './kup-dates-
|
|
4
|
+
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Props of the kup-htm component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory } from './kup-manager-
|
|
3
|
-
import './kup-dates-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory } from './kup-manager-150e2ada.js';
|
|
3
|
+
import './kup-dates-bf500166.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-iframe component.
|