@sme.up/ketchup 4.2.0-SNAPSHOT → 4.2.0
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/{cell-utils-1d44a3f0.js → cell-utils-dc0884a3.js} +2 -2
- package/dist/cjs/{f-button-a5788453.js → f-button-2ba74fb5.js} +1 -1
- package/dist/cjs/{f-cell-eba6f39e.js → f-cell-fe60a08d.js} +31 -27
- package/dist/cjs/{f-chip-ce69b7d2.js → f-chip-90d95d22.js} +2 -2
- package/dist/cjs/{f-image-e03842eb.js → f-image-d3bd4e08.js} +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_28.cjs.entry.js +1050 -650
- package/dist/cjs/kup-calendar.cjs.entry.js +6 -6
- package/dist/cjs/kup-cell.cjs.entry.js +6 -6
- package/dist/cjs/kup-dash-list.cjs.entry.js +3 -3
- package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-field.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/{kup-manager-75f1a2cd.js → kup-manager-1a2688ca.js} +20 -1
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-b3ec89fe.js → utils-0cc466b9.js} +1 -59
- package/dist/collection/assets/data-table.js +44 -0
- package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +20 -0
- package/dist/collection/components/kup-card/builtin/kup-card-calendar.js +458 -0
- package/dist/collection/components/kup-card/builtin/kup-card-clock.js +321 -0
- package/dist/collection/components/kup-card/free/kup-card-free.js +13 -0
- package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
- package/dist/collection/components/kup-card/kup-card.css +502 -3
- package/dist/collection/components/kup-card/kup-card.js +18 -9
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.css +0 -38
- package/dist/collection/components/kup-data-table/kup-data-table.js +27 -10
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +0 -82
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +35 -309
- package/dist/collection/components/kup-text-field/kup-text-field.css +1 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +1 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +51 -241
- package/dist/collection/components/kup-tree/kup-tree.js +20 -15
- package/dist/collection/f-components/f-cell/f-cell.js +26 -22
- package/dist/collection/utils/kup-search/kup-search.js +0 -1
- package/dist/esm/{cell-utils-9a2914fc.js → cell-utils-8f512ea9.js} +2 -2
- package/dist/esm/{f-button-55a9ed88.js → f-button-30dbcaa9.js} +1 -1
- package/dist/esm/{f-cell-ac520cb2.js → f-cell-95c186c6.js} +31 -27
- package/dist/esm/{f-chip-babf1740.js → f-chip-c0e9c0ff.js} +2 -2
- package/dist/esm/{f-image-70ca9dfe.js → f-image-3bc8b24f.js} +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_28.entry.js +1079 -679
- package/dist/esm/kup-calendar.entry.js +6 -6
- package/dist/esm/kup-cell.entry.js +6 -6
- package/dist/esm/kup-dash-list.entry.js +3 -3
- package/dist/esm/kup-dash_2.entry.js +2 -2
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-field.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/{kup-manager-bba32828.js → kup-manager-7fc234da.js} +21 -2
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-cfcbe33f.js → utils-6c73709d.js} +2 -58
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-1ce9a037.js → p-15321eae.js} +1 -1
- package/dist/ketchup/{p-daf03877.entry.js → p-1baf1205.entry.js} +1 -1
- package/dist/ketchup/p-1c6178e4.entry.js +1 -0
- package/dist/ketchup/{p-52038ccb.js → p-44375e49.js} +1 -1
- package/dist/ketchup/p-4dcdbd31.entry.js +45 -0
- package/dist/ketchup/{p-d58dbf0e.js → p-5a5f2a53.js} +1 -1
- package/dist/ketchup/{p-4748be4b.js → p-61faaa38.js} +2 -2
- package/dist/ketchup/{p-69a705ae.entry.js → p-62816d0b.entry.js} +1 -1
- package/dist/ketchup/{p-ff7d590e.entry.js → p-65adc15b.entry.js} +1 -1
- package/dist/ketchup/p-7e23ea7c.entry.js +1 -0
- package/dist/ketchup/{p-5faf7715.entry.js → p-a378ba56.entry.js} +1 -1
- package/dist/ketchup/{p-74259992.entry.js → p-a878016f.entry.js} +1 -1
- package/dist/ketchup/{p-d6ce1ac6.entry.js → p-a96e6e32.entry.js} +1 -1
- package/dist/ketchup/{p-6cc8264d.entry.js → p-ad32821e.entry.js} +1 -1
- package/dist/ketchup/{p-03ae1be9.entry.js → p-af4a6191.entry.js} +1 -1
- package/dist/ketchup/{p-a7687c0e.entry.js → p-c18c7bb0.entry.js} +5 -5
- package/dist/ketchup/{p-62208488.entry.js → p-ca0ca27f.entry.js} +1 -1
- package/dist/ketchup/{p-e90934b5.entry.js → p-ccda584a.entry.js} +1 -1
- package/dist/ketchup/p-d4aa4922.js +1 -0
- package/dist/ketchup/{p-40df35de.entry.js → p-dbb6998b.entry.js} +1 -1
- package/dist/ketchup/{p-06c209a5.js → p-de83f2f6.js} +1 -1
- package/dist/ketchup/p-ec3a3db9.js +1 -0
- package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +14 -0
- package/dist/types/components/kup-card/builtin/kup-card-calendar.d.ts +2 -0
- package/dist/types/components/kup-card/builtin/kup-card-clock.d.ts +2 -0
- package/dist/types/components/kup-card/free/kup-card-free.d.ts +8 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +74 -0
- package/dist/types/components/kup-card/kup-card.d.ts +3 -3
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -6
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -2
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +0 -10
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +2 -9
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/dist/ketchup/p-1e2c3497.js +0 -1
- package/dist/ketchup/p-5db41fae.entry.js +0 -45
- package/dist/ketchup/p-756aa8b1.entry.js +0 -1
- package/dist/ketchup/p-ea387b49.entry.js +0 -1
- package/dist/ketchup/p-f6bff949.js +0 -1
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0416afab.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
7
|
-
const fCell = require('./f-cell-
|
|
6
|
+
const kupManager = require('./kup-manager-1a2688ca.js');
|
|
7
|
+
const fCell = require('./f-cell-fe60a08d.js');
|
|
8
8
|
const tslib_es6 = require('./tslib.es6-4360c099.js');
|
|
9
9
|
const component = require('./component-8fbc31a2.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-0cc466b9.js');
|
|
11
11
|
const GenericVariables = require('./GenericVariables-9cd88034.js');
|
|
12
|
-
const fImage = require('./f-image-
|
|
13
|
-
const cellUtils = require('./cell-utils-
|
|
14
|
-
const fChip = require('./f-chip-
|
|
15
|
-
const fButton = require('./f-button-
|
|
12
|
+
const fImage = require('./f-image-d3bd4e08.js');
|
|
13
|
+
const cellUtils = require('./cell-utils-dc0884a3.js');
|
|
14
|
+
const fChip = require('./f-chip-90d95d22.js');
|
|
15
|
+
const fButton = require('./f-button-2ba74fb5.js');
|
|
16
16
|
const fButtonDeclarations = require('./f-button-declarations-76b4fb4c.js');
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -3106,8 +3106,8 @@ var KupDataTableProps;
|
|
|
3106
3106
|
KupDataTableProps["dropEnabled"] = "Enables drop.";
|
|
3107
3107
|
KupDataTableProps["editableData"] = "When set to true, editable cells will be rendered using input components.";
|
|
3108
3108
|
KupDataTableProps["emptyDataLabel"] = "Defines the label to show when the table is empty.";
|
|
3109
|
-
KupDataTableProps["enableSortableColumns"] = "Enables the sorting of columns by dragging them into different columns.";
|
|
3110
3109
|
KupDataTableProps["enableExtraColumns"] = "Enables adding extra columns.";
|
|
3110
|
+
KupDataTableProps["enableSortableColumns"] = "Enables the sorting of columns by dragging them into different columns.";
|
|
3111
3111
|
KupDataTableProps["expandGroups"] = "Expands groups when set to true.";
|
|
3112
3112
|
KupDataTableProps["filters"] = "List of filters set by the user.";
|
|
3113
3113
|
KupDataTableProps["fixedColumns"] = "Fixes the given number of columns so that they stay visible when horizontally scrolling the data-table. If grouping is active or the value of the prop is <= 0, this prop will have no effect. Can be combined with fixedRows.";
|
|
@@ -3306,7 +3306,7 @@ var KupGlobalFilterMode;
|
|
|
3306
3306
|
KupGlobalFilterMode["HIGHLIGHT"] = "highlight";
|
|
3307
3307
|
})(KupGlobalFilterMode || (KupGlobalFilterMode = {}));
|
|
3308
3308
|
|
|
3309
|
-
const dom$
|
|
3309
|
+
const dom$6 = document.documentElement;
|
|
3310
3310
|
/**
|
|
3311
3311
|
* Filtering algorithms.
|
|
3312
3312
|
* @module Filters
|
|
@@ -3322,16 +3322,16 @@ class Filters {
|
|
|
3322
3322
|
return comp.rootElement.tagName === 'KUP-TREE';
|
|
3323
3323
|
}
|
|
3324
3324
|
isObjFiltrableByInterval(obj) {
|
|
3325
|
-
if (dom$
|
|
3325
|
+
if (dom$6.ketchup.objects.isDate(obj)) {
|
|
3326
3326
|
return true;
|
|
3327
3327
|
}
|
|
3328
|
-
if (dom$
|
|
3328
|
+
if (dom$6.ketchup.objects.isTime(obj)) {
|
|
3329
3329
|
return true;
|
|
3330
3330
|
}
|
|
3331
|
-
if (dom$
|
|
3331
|
+
if (dom$6.ketchup.objects.isTimestamp(obj)) {
|
|
3332
3332
|
return true;
|
|
3333
3333
|
}
|
|
3334
|
-
if (dom$
|
|
3334
|
+
if (dom$6.ketchup.objects.isNumber(obj)) {
|
|
3335
3335
|
return true;
|
|
3336
3336
|
}
|
|
3337
3337
|
return false;
|
|
@@ -3341,17 +3341,17 @@ class Filters {
|
|
|
3341
3341
|
if (newValue == null || newValue == '' || smeupObj == null) {
|
|
3342
3342
|
return newValue;
|
|
3343
3343
|
}
|
|
3344
|
-
if (dom$
|
|
3345
|
-
if (dom$
|
|
3344
|
+
if (dom$6.ketchup.objects.isDate(smeupObj)) {
|
|
3345
|
+
if (dom$6.ketchup.dates.isValid(value, kupManager.KupDatesFormats.ISO_DATE)) {
|
|
3346
3346
|
return newValue;
|
|
3347
3347
|
}
|
|
3348
|
-
if (dom$
|
|
3349
|
-
return dom$
|
|
3348
|
+
if (dom$6.ketchup.dates.isValid(value)) {
|
|
3349
|
+
return dom$6.ketchup.dates.format(dom$6.ketchup.dates.normalize(value, kupManager.KupDatesNormalize.DATE), kupManager.KupDatesFormats.ISO_DATE);
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
3352
|
-
else if (dom$
|
|
3353
|
-
let manageSeconds = dom$
|
|
3354
|
-
if (dom$
|
|
3352
|
+
else if (dom$6.ketchup.objects.isTime(smeupObj)) {
|
|
3353
|
+
let manageSeconds = dom$6.ketchup.objects.isTimeWithSeconds(smeupObj);
|
|
3354
|
+
if (dom$6.ketchup.dates.isValid(value, manageSeconds
|
|
3355
3355
|
? kupManager.KupDatesFormats.ISO_TIME
|
|
3356
3356
|
: kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS)) {
|
|
3357
3357
|
return newValue;
|
|
@@ -3362,15 +3362,15 @@ class Filters {
|
|
|
3362
3362
|
: kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, manageSeconds);
|
|
3363
3363
|
}
|
|
3364
3364
|
}
|
|
3365
|
-
else if (dom$
|
|
3366
|
-
if (dom$
|
|
3365
|
+
else if (dom$6.ketchup.objects.isTimestamp(smeupObj)) {
|
|
3366
|
+
if (dom$6.ketchup.dates.isValid(value, kupManager.KupDatesFormats.ISO_DATE_TIME)) {
|
|
3367
3367
|
return newValue;
|
|
3368
3368
|
}
|
|
3369
3369
|
if (utils.isValidFormattedStringTime(value, true)) {
|
|
3370
3370
|
return utils.formattedStringToDefaultUnformattedStringTimestamp(value);
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
|
-
else if (dom$
|
|
3373
|
+
else if (dom$6.ketchup.objects.isNumber(smeupObj)) {
|
|
3374
3374
|
if (utils.isValidFormattedStringNumber(value, smeupObj ? smeupObj.p : '')) {
|
|
3375
3375
|
return utils.formattedStringToUnformattedStringNumber(value, smeupObj ? smeupObj.p : '');
|
|
3376
3376
|
}
|
|
@@ -3493,7 +3493,7 @@ class Filters {
|
|
|
3493
3493
|
to = interval[FilterInterval.TO];
|
|
3494
3494
|
}
|
|
3495
3495
|
let checkByRegularExpression = true;
|
|
3496
|
-
if (dom$
|
|
3496
|
+
if (dom$6.ketchup.objects.isNumber(obj)) {
|
|
3497
3497
|
value = utils.unformattedStringNumberToNumber(value, obj ? obj.p : '');
|
|
3498
3498
|
let valueNumber = utils.stringToNumber(value);
|
|
3499
3499
|
if (from != '') {
|
|
@@ -3521,30 +3521,30 @@ class Filters {
|
|
|
3521
3521
|
}
|
|
3522
3522
|
}
|
|
3523
3523
|
}
|
|
3524
|
-
if (dom$
|
|
3525
|
-
dom$
|
|
3526
|
-
dom$
|
|
3524
|
+
if (dom$6.ketchup.objects.isDate(obj) ||
|
|
3525
|
+
dom$6.ketchup.objects.isTime(obj) ||
|
|
3526
|
+
dom$6.ketchup.objects.isTimestamp(obj)) {
|
|
3527
3527
|
let valueDate = null;
|
|
3528
3528
|
let defaultFormat = kupManager.KupDatesFormats.ISO_DATE;
|
|
3529
|
-
if (dom$
|
|
3529
|
+
if (dom$6.ketchup.objects.isDate(obj)) {
|
|
3530
3530
|
defaultFormat = kupManager.KupDatesFormats.ISO_DATE;
|
|
3531
3531
|
}
|
|
3532
|
-
else if (dom$
|
|
3533
|
-
defaultFormat = dom$
|
|
3532
|
+
else if (dom$6.ketchup.objects.isTime(obj)) {
|
|
3533
|
+
defaultFormat = dom$6.ketchup.objects.isTimeWithSeconds(obj)
|
|
3534
3534
|
? kupManager.KupDatesFormats.ISO_TIME
|
|
3535
3535
|
: kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS;
|
|
3536
3536
|
}
|
|
3537
|
-
else if (dom$
|
|
3537
|
+
else if (dom$6.ketchup.objects.isTimestamp(obj)) {
|
|
3538
3538
|
defaultFormat = kupManager.KupDatesFormats.ISO_DATE_TIME;
|
|
3539
3539
|
}
|
|
3540
|
-
if (dom$
|
|
3541
|
-
valueDate = dom$
|
|
3540
|
+
if (dom$6.ketchup.dates.isValid(value, defaultFormat, true)) {
|
|
3541
|
+
valueDate = dom$6.ketchup.dates.toDate(value, defaultFormat);
|
|
3542
3542
|
}
|
|
3543
3543
|
if (from != '') {
|
|
3544
3544
|
if (valueDate != null &&
|
|
3545
|
-
dom$
|
|
3545
|
+
dom$6.ketchup.dates.isValid(from, defaultFormat, true)) {
|
|
3546
3546
|
checkByRegularExpression = false;
|
|
3547
|
-
let fromDate = dom$
|
|
3547
|
+
let fromDate = dom$6.ketchup.dates.toDate(from, defaultFormat);
|
|
3548
3548
|
if (valueDate < fromDate) {
|
|
3549
3549
|
return false;
|
|
3550
3550
|
}
|
|
@@ -3555,9 +3555,9 @@ class Filters {
|
|
|
3555
3555
|
}
|
|
3556
3556
|
if (to != '') {
|
|
3557
3557
|
if (valueDate != null &&
|
|
3558
|
-
dom$
|
|
3558
|
+
dom$6.ketchup.dates.isValid(to, defaultFormat, true)) {
|
|
3559
3559
|
checkByRegularExpression = false;
|
|
3560
|
-
let toDate = dom$
|
|
3560
|
+
let toDate = dom$6.ketchup.dates.toDate(to, defaultFormat);
|
|
3561
3561
|
if (valueDate > toDate) {
|
|
3562
3562
|
return false;
|
|
3563
3563
|
}
|
|
@@ -3566,9 +3566,9 @@ class Filters {
|
|
|
3566
3566
|
filterValue = to;
|
|
3567
3567
|
}
|
|
3568
3568
|
}
|
|
3569
|
-
if (!dom$
|
|
3570
|
-
!dom$
|
|
3571
|
-
value = dom$
|
|
3569
|
+
if (!dom$6.ketchup.dates.isValid(filterValue, defaultFormat) &&
|
|
3570
|
+
!dom$6.ketchup.dates.isValid(filterValue)) {
|
|
3571
|
+
value = dom$6.ketchup.dates.format(value);
|
|
3572
3572
|
}
|
|
3573
3573
|
}
|
|
3574
3574
|
if (checkByRegularExpression) {
|
|
@@ -4005,9 +4005,9 @@ var KupTreeExpansionMode;
|
|
|
4005
4005
|
KupTreeExpansionMode["NODE"] = "node";
|
|
4006
4006
|
})(KupTreeExpansionMode || (KupTreeExpansionMode = {}));
|
|
4007
4007
|
|
|
4008
|
-
const dom$
|
|
4009
|
-
const kupObjects = dom$
|
|
4010
|
-
? dom$
|
|
4008
|
+
const dom$5 = document.documentElement;
|
|
4009
|
+
const kupObjects = dom$5.ketchup
|
|
4010
|
+
? dom$5.ketchup.objects
|
|
4011
4011
|
: new kupManager.KupObjects();
|
|
4012
4012
|
/**
|
|
4013
4013
|
* Filtering algorithms related to data-table rows.
|
|
@@ -4256,7 +4256,7 @@ class FiltersRows extends Filters {
|
|
|
4256
4256
|
}
|
|
4257
4257
|
}
|
|
4258
4258
|
|
|
4259
|
-
const dom$
|
|
4259
|
+
const dom$4 = document.documentElement;
|
|
4260
4260
|
function sortRows(rows = [], sort = []) {
|
|
4261
4261
|
if (!rows || rows.length === 0) {
|
|
4262
4262
|
return [];
|
|
@@ -4490,7 +4490,7 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
4490
4490
|
const currentTotalValue = groupRow.group.totals[key] || 0;
|
|
4491
4491
|
const cell = addedRow.cells[key];
|
|
4492
4492
|
if (cell) {
|
|
4493
|
-
let _isNumber = dom$
|
|
4493
|
+
let _isNumber = dom$4.ketchup.objects.isNumber(cell.obj);
|
|
4494
4494
|
const totalMode = totals[key];
|
|
4495
4495
|
switch (totalMode) {
|
|
4496
4496
|
case TotalMode.COUNT:
|
|
@@ -4599,19 +4599,19 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
4599
4599
|
parent = parent.group.parent;
|
|
4600
4600
|
}
|
|
4601
4601
|
}
|
|
4602
|
-
else if (dom$
|
|
4602
|
+
else if (dom$4.ketchup.objects.isDate(cell.obj)) {
|
|
4603
4603
|
const momentValue = cell.obj
|
|
4604
|
-
? dom$
|
|
4605
|
-
: dom$
|
|
4606
|
-
if (dom$
|
|
4607
|
-
const cellValue = dom$
|
|
4604
|
+
? dom$4.ketchup.objects.parseDate(cell.obj)
|
|
4605
|
+
: dom$4.ketchup.dates.toDayjs(cell.value);
|
|
4606
|
+
if (dom$4.ketchup.dates.isValid(momentValue)) {
|
|
4607
|
+
const cellValue = dom$4.ketchup.dates.toDate(momentValue);
|
|
4608
4608
|
const currentTotalValue = groupRow.group.totals[key];
|
|
4609
4609
|
if (currentTotalValue) {
|
|
4610
4610
|
let moments = [];
|
|
4611
4611
|
moments.push(cellValue);
|
|
4612
|
-
moments.push(dom$
|
|
4612
|
+
moments.push(dom$4.ketchup.dates.format(currentTotalValue));
|
|
4613
4613
|
groupRow.group.totals[key] =
|
|
4614
|
-
dom$
|
|
4614
|
+
dom$4.ketchup.dates.format(dom$4.ketchup.dates.min(moments));
|
|
4615
4615
|
}
|
|
4616
4616
|
else {
|
|
4617
4617
|
groupRow.group.totals[key] = cellValue;
|
|
@@ -4623,9 +4623,9 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
4623
4623
|
if (currentParentMin) {
|
|
4624
4624
|
let moments = [];
|
|
4625
4625
|
moments.push(cellValue);
|
|
4626
|
-
moments.push(dom$
|
|
4626
|
+
moments.push(dom$4.ketchup.dates.format(currentParentMin));
|
|
4627
4627
|
parent.group.totals[key] =
|
|
4628
|
-
dom$
|
|
4628
|
+
dom$4.ketchup.dates.format(dom$4.ketchup.dates.min(moments));
|
|
4629
4629
|
}
|
|
4630
4630
|
else {
|
|
4631
4631
|
// first round
|
|
@@ -4662,19 +4662,19 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
4662
4662
|
parent = parent.group.parent;
|
|
4663
4663
|
}
|
|
4664
4664
|
}
|
|
4665
|
-
else if (dom$
|
|
4665
|
+
else if (dom$4.ketchup.objects.isDate(cell.obj)) {
|
|
4666
4666
|
const momentValue = cell.obj
|
|
4667
|
-
? dom$
|
|
4668
|
-
: dom$
|
|
4669
|
-
if (dom$
|
|
4670
|
-
const cellValue = dom$
|
|
4667
|
+
? dom$4.ketchup.objects.parseDate(cell.obj)
|
|
4668
|
+
: dom$4.ketchup.dates.toDayjs(cell.value);
|
|
4669
|
+
if (dom$4.ketchup.dates.isValid(momentValue)) {
|
|
4670
|
+
const cellValue = dom$4.ketchup.dates.toDate(momentValue);
|
|
4671
4671
|
const currentTotalValue = groupRow.group.totals[key];
|
|
4672
4672
|
if (currentTotalValue) {
|
|
4673
4673
|
let moments = [];
|
|
4674
4674
|
moments.push(cellValue);
|
|
4675
|
-
moments.push(dom$
|
|
4675
|
+
moments.push(dom$4.ketchup.dates.format(currentTotalValue));
|
|
4676
4676
|
groupRow.group.totals[key] =
|
|
4677
|
-
dom$
|
|
4677
|
+
dom$4.ketchup.dates.format(dom$4.ketchup.dates.max(moments));
|
|
4678
4678
|
}
|
|
4679
4679
|
else {
|
|
4680
4680
|
groupRow.group.totals[key] = cellValue;
|
|
@@ -4686,9 +4686,9 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
|
|
|
4686
4686
|
if (currentParentMin) {
|
|
4687
4687
|
let moments = [];
|
|
4688
4688
|
moments.push(cellValue);
|
|
4689
|
-
moments.push(dom$
|
|
4689
|
+
moments.push(dom$4.ketchup.dates.format(currentParentMin));
|
|
4690
4690
|
parent.group.totals[key] =
|
|
4691
|
-
dom$
|
|
4691
|
+
dom$4.ketchup.dates.format(dom$4.ketchup.dates.max(moments));
|
|
4692
4692
|
}
|
|
4693
4693
|
else {
|
|
4694
4694
|
// first round
|
|
@@ -4861,7 +4861,7 @@ function calcTotals(rows = [], totals = {}) {
|
|
|
4861
4861
|
if (cell) {
|
|
4862
4862
|
if (totals[key] === TotalMode.DISTINCT) {
|
|
4863
4863
|
let cellValue;
|
|
4864
|
-
if (dom$
|
|
4864
|
+
if (dom$4.ketchup.objects.isNumber(cell.obj)) {
|
|
4865
4865
|
cellValue = utils.numeral(utils.stringToNumber(cell.value)).value();
|
|
4866
4866
|
}
|
|
4867
4867
|
else {
|
|
@@ -4878,7 +4878,7 @@ function calcTotals(rows = [], totals = {}) {
|
|
|
4878
4878
|
distinctList.push(cellValue);
|
|
4879
4879
|
}
|
|
4880
4880
|
}
|
|
4881
|
-
else if (dom$
|
|
4881
|
+
else if (dom$4.ketchup.objects.isNumber(cell.obj)) {
|
|
4882
4882
|
const cellValue = utils.numeral(utils.stringToNumber(cell.value));
|
|
4883
4883
|
let currentFooterValue = footerRow[key];
|
|
4884
4884
|
switch (true) {
|
|
@@ -4908,21 +4908,21 @@ function calcTotals(rows = [], totals = {}) {
|
|
|
4908
4908
|
}
|
|
4909
4909
|
// TODO DRY the MIN and MAX functions
|
|
4910
4910
|
}
|
|
4911
|
-
else if (dom$
|
|
4911
|
+
else if (dom$4.ketchup.objects.isDate(cell.obj)) {
|
|
4912
4912
|
const momentValue = cell.obj
|
|
4913
|
-
? dom$
|
|
4914
|
-
: dom$
|
|
4915
|
-
if (dom$
|
|
4916
|
-
const cellValue = dom$
|
|
4913
|
+
? dom$4.ketchup.objects.parseDate(cell.obj)
|
|
4914
|
+
: dom$4.ketchup.dates.toDayjs(cell.value);
|
|
4915
|
+
if (dom$4.ketchup.dates.isValid(momentValue)) {
|
|
4916
|
+
const cellValue = dom$4.ketchup.dates.toDate(momentValue);
|
|
4917
4917
|
const currentFooterValue = footerRow[key];
|
|
4918
4918
|
switch (true) {
|
|
4919
4919
|
case totals[key] === TotalMode.MIN:
|
|
4920
4920
|
if (currentFooterValue) {
|
|
4921
4921
|
let moments = [];
|
|
4922
4922
|
moments.push(cellValue);
|
|
4923
|
-
moments.push(dom$
|
|
4923
|
+
moments.push(dom$4.ketchup.dates.format(currentFooterValue));
|
|
4924
4924
|
footerRow[key] =
|
|
4925
|
-
dom$
|
|
4925
|
+
dom$4.ketchup.dates.format(dom$4.ketchup.dates.min(moments));
|
|
4926
4926
|
}
|
|
4927
4927
|
else {
|
|
4928
4928
|
footerRow[key] = cellValue;
|
|
@@ -4932,9 +4932,9 @@ function calcTotals(rows = [], totals = {}) {
|
|
|
4932
4932
|
if (currentFooterValue) {
|
|
4933
4933
|
let moments = [];
|
|
4934
4934
|
moments.push(cellValue);
|
|
4935
|
-
moments.push(dom$
|
|
4935
|
+
moments.push(dom$4.ketchup.dates.format(currentFooterValue));
|
|
4936
4936
|
footerRow[key] =
|
|
4937
|
-
dom$
|
|
4937
|
+
dom$4.ketchup.dates.format(dom$4.ketchup.dates.max(moments));
|
|
4938
4938
|
}
|
|
4939
4939
|
else {
|
|
4940
4940
|
footerRow[key] = cellValue;
|
|
@@ -6897,6 +6897,818 @@ let KupButtonList = class {
|
|
|
6897
6897
|
};
|
|
6898
6898
|
KupButtonList.style = kupButtonListCss;
|
|
6899
6899
|
|
|
6900
|
+
/**
|
|
6901
|
+
* Props of the kup-date-picker component.
|
|
6902
|
+
* Used to export every prop in an object.
|
|
6903
|
+
*/
|
|
6904
|
+
var KupDatePickerProps;
|
|
6905
|
+
(function (KupDatePickerProps) {
|
|
6906
|
+
KupDatePickerProps["customStyle"] = "Custom style of the component.";
|
|
6907
|
+
KupDatePickerProps["data"] = "Props of the sub-components.";
|
|
6908
|
+
KupDatePickerProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
|
|
6909
|
+
KupDatePickerProps["firstDayIndex"] = "First day number (0 - sunday, 1 - monday, ...)";
|
|
6910
|
+
KupDatePickerProps["initialValue"] = "Sets the initial value of the component";
|
|
6911
|
+
})(KupDatePickerProps || (KupDatePickerProps = {}));
|
|
6912
|
+
var SourceEvent;
|
|
6913
|
+
(function (SourceEvent) {
|
|
6914
|
+
SourceEvent["DATE"] = "date";
|
|
6915
|
+
SourceEvent["MONTH"] = "month";
|
|
6916
|
+
SourceEvent["YEAR"] = "year";
|
|
6917
|
+
})(SourceEvent || (SourceEvent = {}));
|
|
6918
|
+
|
|
6919
|
+
const dom$3 = document.documentElement;
|
|
6920
|
+
function prepareCalendar(component) {
|
|
6921
|
+
const el = component.rootElement;
|
|
6922
|
+
if (!el.kupData)
|
|
6923
|
+
el.kupData = {};
|
|
6924
|
+
if (component.data && component.data.options) {
|
|
6925
|
+
const opts = component.data.options;
|
|
6926
|
+
if (opts.resetStatus) {
|
|
6927
|
+
el.kupData = {};
|
|
6928
|
+
const obj = opts.initialValue;
|
|
6929
|
+
if (opts.initialValue) {
|
|
6930
|
+
if (obj && obj.k)
|
|
6931
|
+
setValue$1(component, new Date(obj.k));
|
|
6932
|
+
else
|
|
6933
|
+
setValue$1(component, new Date(opts.initialValue));
|
|
6934
|
+
}
|
|
6935
|
+
if (opts.firstDayIndex)
|
|
6936
|
+
el.kupData.firstDayIndex = opts.firstDayIndex;
|
|
6937
|
+
opts.resetStatus = false;
|
|
6938
|
+
}
|
|
6939
|
+
}
|
|
6940
|
+
if (!el.kupData.value)
|
|
6941
|
+
setValue$1(component, new Date());
|
|
6942
|
+
const months = utils.getMonthsAsStringByLocale();
|
|
6943
|
+
const curYear = getYear(component);
|
|
6944
|
+
const curMonth = getMonth(component);
|
|
6945
|
+
const yearRange = getInitEndYear(curYear);
|
|
6946
|
+
const initYear = yearRange.initYear;
|
|
6947
|
+
const endYear = yearRange.endYear;
|
|
6948
|
+
let changeViewButtonLabel = 'not-set';
|
|
6949
|
+
switch (getView(component)) {
|
|
6950
|
+
case SourceEvent.DATE: {
|
|
6951
|
+
changeViewButtonLabel =
|
|
6952
|
+
months[curMonth] + ', ' + curYear.toString();
|
|
6953
|
+
break;
|
|
6954
|
+
}
|
|
6955
|
+
case SourceEvent.MONTH: {
|
|
6956
|
+
changeViewButtonLabel = curYear.toString();
|
|
6957
|
+
break;
|
|
6958
|
+
}
|
|
6959
|
+
case SourceEvent.YEAR: {
|
|
6960
|
+
changeViewButtonLabel =
|
|
6961
|
+
initYear.toString() + ' - ' + endYear.toString();
|
|
6962
|
+
break;
|
|
6963
|
+
}
|
|
6964
|
+
}
|
|
6965
|
+
const prevButtonProp = {
|
|
6966
|
+
icon: 'chevron_left',
|
|
6967
|
+
wrapperClass: 'prev-page',
|
|
6968
|
+
onClick: () => prevPage(component),
|
|
6969
|
+
};
|
|
6970
|
+
const prevButtonComp = index.h(fButton.FButton, Object.assign({}, prevButtonProp));
|
|
6971
|
+
const nextButtonProp = {
|
|
6972
|
+
icon: 'chevron_right',
|
|
6973
|
+
wrapperClass: 'next-page',
|
|
6974
|
+
onClick: () => nextPage(component),
|
|
6975
|
+
};
|
|
6976
|
+
const nextButtonComp = index.h(fButton.FButton, Object.assign({}, nextButtonProp));
|
|
6977
|
+
const changeViewButtonProp = {
|
|
6978
|
+
wrapperClass: 'change-view-button',
|
|
6979
|
+
styling: fButtonDeclarations.FButtonStyling.FLAT,
|
|
6980
|
+
label: changeViewButtonLabel,
|
|
6981
|
+
onClick: () => changeView(component),
|
|
6982
|
+
id: 'change-view-button',
|
|
6983
|
+
};
|
|
6984
|
+
//text-transform:capitalize
|
|
6985
|
+
return (index.h("div", { id: component.rootElement.id + '_calendar' },
|
|
6986
|
+
index.h("div", { class: "section-1" },
|
|
6987
|
+
index.h("div", { class: "sub-1 nav" },
|
|
6988
|
+
prevButtonComp,
|
|
6989
|
+
index.h(fButton.FButton, Object.assign({}, changeViewButtonProp)),
|
|
6990
|
+
nextButtonComp)),
|
|
6991
|
+
index.h("div", { class: "section-2" }, createCalendar(component))));
|
|
6992
|
+
}
|
|
6993
|
+
function setValue$1(component, value) {
|
|
6994
|
+
const el = component.rootElement;
|
|
6995
|
+
el.kupData.value = value;
|
|
6996
|
+
el.kupData.day = el.kupData.value.getDate();
|
|
6997
|
+
el.kupData.month = el.kupData.value.getMonth();
|
|
6998
|
+
el.kupData.year = el.kupData.value.getFullYear();
|
|
6999
|
+
}
|
|
7000
|
+
function getValue$1(component) {
|
|
7001
|
+
const el = component.rootElement;
|
|
7002
|
+
if (el.kupData.value == null)
|
|
7003
|
+
setValue$1(component, new Date());
|
|
7004
|
+
return el.kupData.value;
|
|
7005
|
+
}
|
|
7006
|
+
function getDay(component) {
|
|
7007
|
+
const el = component.rootElement;
|
|
7008
|
+
if (el.kupData.day != null)
|
|
7009
|
+
return el.kupData.day;
|
|
7010
|
+
return null;
|
|
7011
|
+
}
|
|
7012
|
+
function getMonth(component) {
|
|
7013
|
+
const el = component.rootElement;
|
|
7014
|
+
if (el.kupData.month != null)
|
|
7015
|
+
return el.kupData.month;
|
|
7016
|
+
return null;
|
|
7017
|
+
}
|
|
7018
|
+
function getYear(component) {
|
|
7019
|
+
const el = component.rootElement;
|
|
7020
|
+
if (el.kupData.year != null)
|
|
7021
|
+
return el.kupData.year;
|
|
7022
|
+
return null;
|
|
7023
|
+
}
|
|
7024
|
+
function setDay(component, value) {
|
|
7025
|
+
const el = component.rootElement;
|
|
7026
|
+
el.kupData.day = value;
|
|
7027
|
+
}
|
|
7028
|
+
function setMonth(component, value) {
|
|
7029
|
+
const el = component.rootElement;
|
|
7030
|
+
el.kupData.month = value;
|
|
7031
|
+
}
|
|
7032
|
+
function setYear(component, value) {
|
|
7033
|
+
const el = component.rootElement;
|
|
7034
|
+
el.kupData.year = value;
|
|
7035
|
+
}
|
|
7036
|
+
function getFirstDayIndex(component) {
|
|
7037
|
+
const el = component.rootElement;
|
|
7038
|
+
if (el.kupData.firstDayIndex)
|
|
7039
|
+
return el.kupData.firstDayIndex;
|
|
7040
|
+
return 1;
|
|
7041
|
+
}
|
|
7042
|
+
function getView(component) {
|
|
7043
|
+
const el = component.rootElement;
|
|
7044
|
+
if (el.kupData.calendarView)
|
|
7045
|
+
return el.kupData.calendarView;
|
|
7046
|
+
return SourceEvent.DATE;
|
|
7047
|
+
}
|
|
7048
|
+
function setView(component, value) {
|
|
7049
|
+
const el = component.rootElement;
|
|
7050
|
+
el.kupData.calendarView = value;
|
|
7051
|
+
}
|
|
7052
|
+
function createCalendar(component) {
|
|
7053
|
+
switch (getView(component)) {
|
|
7054
|
+
case SourceEvent.DATE: {
|
|
7055
|
+
return createDaysCalendar(component);
|
|
7056
|
+
}
|
|
7057
|
+
case SourceEvent.MONTH: {
|
|
7058
|
+
return createMonthsCalendar(component);
|
|
7059
|
+
}
|
|
7060
|
+
case SourceEvent.YEAR: {
|
|
7061
|
+
return createYearsCalendar(component);
|
|
7062
|
+
}
|
|
7063
|
+
}
|
|
7064
|
+
}
|
|
7065
|
+
function createDaysCalendar(component) {
|
|
7066
|
+
const days = getDaysOfWeekAsStringByLocale(getFirstDayIndex(component));
|
|
7067
|
+
const selectedDate = getValue$1(component);
|
|
7068
|
+
const selectedDay = getDay(component);
|
|
7069
|
+
const selectedMonth = getMonth(component);
|
|
7070
|
+
const selectedYear = getYear(component);
|
|
7071
|
+
const thead = [];
|
|
7072
|
+
const tbody = [];
|
|
7073
|
+
for (let index$1 = 0; index$1 < days.length; index$1++) {
|
|
7074
|
+
thead.push(index.h("th", null,
|
|
7075
|
+
index.h("span", { class: "item-text" }, days[index$1])));
|
|
7076
|
+
}
|
|
7077
|
+
const firstMonthDay = new Date(selectedYear, selectedMonth, 1);
|
|
7078
|
+
const lastMonthDay = new Date(selectedYear, selectedMonth + 1, 0);
|
|
7079
|
+
const finish = false;
|
|
7080
|
+
let currentDayIndex = getFirstDayIndex(component);
|
|
7081
|
+
const firstMonthDayIndex = firstMonthDay.getDay();
|
|
7082
|
+
let row = [];
|
|
7083
|
+
let daysForRowAdded = 0;
|
|
7084
|
+
while (!finish) {
|
|
7085
|
+
if (currentDayIndex == firstMonthDayIndex) {
|
|
7086
|
+
break;
|
|
7087
|
+
}
|
|
7088
|
+
row.push(index.h("td", { class: "item empty" }));
|
|
7089
|
+
currentDayIndex++;
|
|
7090
|
+
daysForRowAdded++;
|
|
7091
|
+
if (currentDayIndex > 6) {
|
|
7092
|
+
currentDayIndex = 0;
|
|
7093
|
+
}
|
|
7094
|
+
}
|
|
7095
|
+
let dayCount = 1;
|
|
7096
|
+
while (dayCount <= lastMonthDay.getDate()) {
|
|
7097
|
+
for (let i = daysForRowAdded; i < 7; i++) {
|
|
7098
|
+
let dayClass = 'item';
|
|
7099
|
+
let dataIndex = {
|
|
7100
|
+
'data-index': selectedYear.toString() +
|
|
7101
|
+
'-' +
|
|
7102
|
+
fillString((selectedMonth + 1).toString(), '0', 2, true) +
|
|
7103
|
+
'-' +
|
|
7104
|
+
fillString(dayCount.toString(), '0', 2, true),
|
|
7105
|
+
};
|
|
7106
|
+
if ((selectedDay != null && dayCount === selectedDay) ||
|
|
7107
|
+
(dayCount === selectedDate.getDate() &&
|
|
7108
|
+
selectedMonth === selectedDate.getMonth() &&
|
|
7109
|
+
selectedYear === selectedDate.getFullYear())) {
|
|
7110
|
+
dayClass += ' selected';
|
|
7111
|
+
}
|
|
7112
|
+
row.push(index.h("td", { class: dayClass },
|
|
7113
|
+
index.h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
|
|
7114
|
+
onCalendarItemClick(component, dataIndex['data-index']);
|
|
7115
|
+
} }), dayCount)));
|
|
7116
|
+
dayCount++;
|
|
7117
|
+
if (dayCount > lastMonthDay.getDate()) {
|
|
7118
|
+
break;
|
|
7119
|
+
}
|
|
7120
|
+
}
|
|
7121
|
+
if (row.length > 0) {
|
|
7122
|
+
tbody.push(index.h("tr", null, row));
|
|
7123
|
+
row = [];
|
|
7124
|
+
}
|
|
7125
|
+
daysForRowAdded = 0;
|
|
7126
|
+
}
|
|
7127
|
+
return (index.h("table", { class: "calendar" },
|
|
7128
|
+
index.h("thead", null, thead),
|
|
7129
|
+
index.h("tbody", null, tbody)));
|
|
7130
|
+
}
|
|
7131
|
+
function createMonthsCalendar(component) {
|
|
7132
|
+
const months = utils.getMonthsAsStringByLocale(utils.DateTimeFormatOptionsMonth.SHORT);
|
|
7133
|
+
let selectedDay = getDay(component);
|
|
7134
|
+
const selectedMonth = getMonth(component);
|
|
7135
|
+
const selectedYear = getYear(component);
|
|
7136
|
+
if (selectedDay == null)
|
|
7137
|
+
selectedDay = 1;
|
|
7138
|
+
const tbody = [];
|
|
7139
|
+
let row = [];
|
|
7140
|
+
let monthCount = 0;
|
|
7141
|
+
while (monthCount < 12) {
|
|
7142
|
+
for (let i = 0; i < 4; i++) {
|
|
7143
|
+
let monthClass = 'item';
|
|
7144
|
+
const dataIndex = {
|
|
7145
|
+
'data-index': selectedYear.toString() +
|
|
7146
|
+
'-' +
|
|
7147
|
+
fillString((monthCount + 1).toString(), '0', 2, true) +
|
|
7148
|
+
'-' +
|
|
7149
|
+
fillString(selectedDay.toString(), '0', 2, true),
|
|
7150
|
+
};
|
|
7151
|
+
if (monthCount === selectedMonth) {
|
|
7152
|
+
monthClass += ' selected';
|
|
7153
|
+
}
|
|
7154
|
+
row.push(index.h("td", { class: monthClass },
|
|
7155
|
+
index.h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
|
|
7156
|
+
onCalendarMonthYearItemClick(component, dataIndex['data-index']);
|
|
7157
|
+
} }), months[monthCount])));
|
|
7158
|
+
monthCount++;
|
|
7159
|
+
}
|
|
7160
|
+
if (row.length > 0) {
|
|
7161
|
+
tbody.push(index.h("tr", null, row));
|
|
7162
|
+
row = [];
|
|
7163
|
+
}
|
|
7164
|
+
}
|
|
7165
|
+
return (index.h("table", { class: "calendar" },
|
|
7166
|
+
index.h("tbody", null, tbody)));
|
|
7167
|
+
}
|
|
7168
|
+
function createYearsCalendar(component) {
|
|
7169
|
+
let selectedDay = getDay(component);
|
|
7170
|
+
const selectedMonth = getMonth(component);
|
|
7171
|
+
const selectedYear = getYear(component);
|
|
7172
|
+
if (selectedDay == null)
|
|
7173
|
+
selectedDay = 1;
|
|
7174
|
+
const yearRange = getInitEndYear(selectedYear);
|
|
7175
|
+
const initYear = yearRange.initYear;
|
|
7176
|
+
const endYear = yearRange.endYear;
|
|
7177
|
+
const tbody = [];
|
|
7178
|
+
let row = [];
|
|
7179
|
+
let yearCount = initYear;
|
|
7180
|
+
while (yearCount <= endYear) {
|
|
7181
|
+
for (let i = 0; i < 4; i++) {
|
|
7182
|
+
let yearClass = 'item';
|
|
7183
|
+
let dataIndex = {
|
|
7184
|
+
'data-index': yearCount.toString() +
|
|
7185
|
+
'-' +
|
|
7186
|
+
fillString((selectedMonth + 1).toString(), '0', 2, true) +
|
|
7187
|
+
'-' +
|
|
7188
|
+
fillString(selectedDay.toString(), '0', 2, true),
|
|
7189
|
+
};
|
|
7190
|
+
if (yearCount === selectedYear) {
|
|
7191
|
+
yearClass += ' selected';
|
|
7192
|
+
}
|
|
7193
|
+
row.push(index.h("td", { class: yearClass },
|
|
7194
|
+
index.h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
|
|
7195
|
+
onCalendarMonthYearItemClick(component, dataIndex['data-index']);
|
|
7196
|
+
} }), yearCount)));
|
|
7197
|
+
yearCount++;
|
|
7198
|
+
}
|
|
7199
|
+
if (row.length > 0) {
|
|
7200
|
+
tbody.push(index.h("tr", null, row));
|
|
7201
|
+
row = [];
|
|
7202
|
+
}
|
|
7203
|
+
}
|
|
7204
|
+
return (index.h("table", { class: "calendar" },
|
|
7205
|
+
index.h("tbody", null, tbody)));
|
|
7206
|
+
}
|
|
7207
|
+
function getDaysOfWeekAsStringByLocale(firstDayIndex) {
|
|
7208
|
+
const thisWeekDays = thisWeek(firstDayIndex);
|
|
7209
|
+
const monday = thisWeekDays.startDate;
|
|
7210
|
+
const days = [];
|
|
7211
|
+
for (var i = 0; i < 7; i++) {
|
|
7212
|
+
var date = new Date(monday.toISOString());
|
|
7213
|
+
date.setDate(date.getDate() + i);
|
|
7214
|
+
days[i] = getDayAsStringByLocale(date);
|
|
7215
|
+
}
|
|
7216
|
+
return days;
|
|
7217
|
+
}
|
|
7218
|
+
function thisWeek(firstDayIndex) {
|
|
7219
|
+
const firstDay = firstDayThisWeek(firstDayIndex);
|
|
7220
|
+
return {
|
|
7221
|
+
startDate: firstDay,
|
|
7222
|
+
endDate: offsetDate(firstDay, 6),
|
|
7223
|
+
};
|
|
7224
|
+
}
|
|
7225
|
+
function firstDayThisWeek(firstDayIndex) {
|
|
7226
|
+
const d = new Date();
|
|
7227
|
+
const day = d.getDay();
|
|
7228
|
+
// dayIndex0
|
|
7229
|
+
d.setDate(d.getDate() - day);
|
|
7230
|
+
// dayIndexX
|
|
7231
|
+
d.setDate(d.getDate() + firstDayIndex);
|
|
7232
|
+
return d;
|
|
7233
|
+
}
|
|
7234
|
+
const offsetDate = (base, count) => {
|
|
7235
|
+
const date = new Date(base);
|
|
7236
|
+
date.setDate(base.getDate() + count);
|
|
7237
|
+
return date;
|
|
7238
|
+
};
|
|
7239
|
+
function getDayAsStringByLocale(date) {
|
|
7240
|
+
if (date == null) {
|
|
7241
|
+
return '';
|
|
7242
|
+
}
|
|
7243
|
+
const options = {
|
|
7244
|
+
weekday: 'narrow',
|
|
7245
|
+
/** weekday: 'narrow' 'short' 'long' */
|
|
7246
|
+
};
|
|
7247
|
+
const dateTimeFormat = new Intl.DateTimeFormat(dom$3.ketchup.dates.getLocale(), options);
|
|
7248
|
+
return dateTimeFormat.format(date);
|
|
7249
|
+
}
|
|
7250
|
+
function fillString(stringIn, stringForFill, finalLen, addBefore) {
|
|
7251
|
+
const initSize = stringIn.length;
|
|
7252
|
+
let stringOut = '';
|
|
7253
|
+
for (let i = initSize; i < finalLen; i += stringForFill.length) {
|
|
7254
|
+
stringOut += stringForFill;
|
|
7255
|
+
}
|
|
7256
|
+
if (addBefore) {
|
|
7257
|
+
return stringOut + stringIn;
|
|
7258
|
+
}
|
|
7259
|
+
else {
|
|
7260
|
+
return stringIn + stringOut;
|
|
7261
|
+
}
|
|
7262
|
+
}
|
|
7263
|
+
function prevPage(component) {
|
|
7264
|
+
let mm = getMonth(component);
|
|
7265
|
+
let yy = getYear(component);
|
|
7266
|
+
if (getView(component) == SourceEvent.DATE) {
|
|
7267
|
+
if (mm < 1) {
|
|
7268
|
+
mm = 11;
|
|
7269
|
+
yy--;
|
|
7270
|
+
}
|
|
7271
|
+
else {
|
|
7272
|
+
mm--;
|
|
7273
|
+
}
|
|
7274
|
+
}
|
|
7275
|
+
if (getView(component) == SourceEvent.MONTH) {
|
|
7276
|
+
yy--;
|
|
7277
|
+
}
|
|
7278
|
+
if (getView(component) == SourceEvent.YEAR) {
|
|
7279
|
+
let yearRange = getInitEndYear(yy);
|
|
7280
|
+
yy = yearRange.initYear - 1;
|
|
7281
|
+
}
|
|
7282
|
+
setDay(component, null);
|
|
7283
|
+
setMonth(component, mm);
|
|
7284
|
+
setYear(component, yy);
|
|
7285
|
+
refresh(component);
|
|
7286
|
+
}
|
|
7287
|
+
function nextPage(component) {
|
|
7288
|
+
let mm = getMonth(component);
|
|
7289
|
+
let yy = getYear(component);
|
|
7290
|
+
if (getView(component) == SourceEvent.DATE) {
|
|
7291
|
+
if (mm > 10) {
|
|
7292
|
+
mm = 0;
|
|
7293
|
+
yy++;
|
|
7294
|
+
}
|
|
7295
|
+
else {
|
|
7296
|
+
mm++;
|
|
7297
|
+
}
|
|
7298
|
+
}
|
|
7299
|
+
if (getView(component) == SourceEvent.MONTH) {
|
|
7300
|
+
yy++;
|
|
7301
|
+
}
|
|
7302
|
+
if (getView(component) == SourceEvent.YEAR) {
|
|
7303
|
+
const yearRange = getInitEndYear(yy);
|
|
7304
|
+
yy = yearRange.endYear + 1;
|
|
7305
|
+
}
|
|
7306
|
+
setDay(component, null);
|
|
7307
|
+
setMonth(component, mm);
|
|
7308
|
+
setYear(component, yy);
|
|
7309
|
+
refresh(component);
|
|
7310
|
+
}
|
|
7311
|
+
function getInitEndYear(curYear) {
|
|
7312
|
+
const initYear = curYear - (curYear % 10);
|
|
7313
|
+
const endYear = initYear + 16 - 1;
|
|
7314
|
+
return { initYear: initYear, endYear: endYear };
|
|
7315
|
+
}
|
|
7316
|
+
function changeView(component) {
|
|
7317
|
+
setDay(component, null);
|
|
7318
|
+
switch (getView(component)) {
|
|
7319
|
+
case SourceEvent.DATE: {
|
|
7320
|
+
setView(component, SourceEvent.MONTH);
|
|
7321
|
+
break;
|
|
7322
|
+
}
|
|
7323
|
+
case SourceEvent.MONTH: {
|
|
7324
|
+
setView(component, SourceEvent.YEAR);
|
|
7325
|
+
break;
|
|
7326
|
+
}
|
|
7327
|
+
case SourceEvent.YEAR: {
|
|
7328
|
+
setView(component, SourceEvent.DATE);
|
|
7329
|
+
break;
|
|
7330
|
+
}
|
|
7331
|
+
}
|
|
7332
|
+
refresh(component);
|
|
7333
|
+
}
|
|
7334
|
+
function refresh(component) {
|
|
7335
|
+
component.refresh();
|
|
7336
|
+
}
|
|
7337
|
+
function onCalendarMonthYearItemClick(component, value) {
|
|
7338
|
+
let d;
|
|
7339
|
+
if (dom$3.ketchup.dates.isValid(value, kupManager.KupDatesFormats.ISO_DATE)) {
|
|
7340
|
+
d = new Date(value);
|
|
7341
|
+
}
|
|
7342
|
+
else {
|
|
7343
|
+
d = new Date();
|
|
7344
|
+
}
|
|
7345
|
+
setMonth(component, d.getMonth());
|
|
7346
|
+
setYear(component, d.getFullYear());
|
|
7347
|
+
switch (getView(component)) {
|
|
7348
|
+
case SourceEvent.MONTH: {
|
|
7349
|
+
setView(component, SourceEvent.DATE);
|
|
7350
|
+
break;
|
|
7351
|
+
}
|
|
7352
|
+
case SourceEvent.YEAR: {
|
|
7353
|
+
setView(component, SourceEvent.MONTH);
|
|
7354
|
+
break;
|
|
7355
|
+
}
|
|
7356
|
+
}
|
|
7357
|
+
refresh(component);
|
|
7358
|
+
}
|
|
7359
|
+
function onCalendarItemClick(component, value) {
|
|
7360
|
+
let d;
|
|
7361
|
+
if (dom$3.ketchup.dates.isValid(value, kupManager.KupDatesFormats.ISO_DATE)) {
|
|
7362
|
+
d = new Date(value);
|
|
7363
|
+
}
|
|
7364
|
+
else {
|
|
7365
|
+
d = new Date();
|
|
7366
|
+
}
|
|
7367
|
+
setValue$1(component, d);
|
|
7368
|
+
component.onKupClick(component.rootElement.id, value);
|
|
7369
|
+
refresh(component);
|
|
7370
|
+
}
|
|
7371
|
+
|
|
7372
|
+
const dom$2 = document.documentElement;
|
|
7373
|
+
function prepareClock(component) {
|
|
7374
|
+
const el = component.rootElement;
|
|
7375
|
+
el.kupData = {};
|
|
7376
|
+
if (component.data && component.data.options) {
|
|
7377
|
+
const opts = component.data.options;
|
|
7378
|
+
const obj = opts.initialValue;
|
|
7379
|
+
if (opts.initialValue) {
|
|
7380
|
+
if (obj && obj.k)
|
|
7381
|
+
el.kupData.value = obj.k;
|
|
7382
|
+
else
|
|
7383
|
+
el.kupData.value = opts.initialValue;
|
|
7384
|
+
}
|
|
7385
|
+
if (opts.manageSeconds != null)
|
|
7386
|
+
el.kupData.manageSeconds = opts.manageSeconds;
|
|
7387
|
+
if (opts.hoursActive != null)
|
|
7388
|
+
el.kupData.hoursActive = opts.hoursActive;
|
|
7389
|
+
if (opts.minutesActive != null)
|
|
7390
|
+
el.kupData.minutesActive = opts.minutesActive;
|
|
7391
|
+
if (opts.secondsActive != null)
|
|
7392
|
+
el.kupData.secondsActive = opts.secondsActive;
|
|
7393
|
+
}
|
|
7394
|
+
else {
|
|
7395
|
+
el.kupData.hoursActive = true;
|
|
7396
|
+
}
|
|
7397
|
+
return prepTimeArea(component);
|
|
7398
|
+
}
|
|
7399
|
+
function isManageSeconds(component) {
|
|
7400
|
+
const el = component.rootElement;
|
|
7401
|
+
if (el.kupData.manageSeconds != null)
|
|
7402
|
+
return el.kupData.manageSeconds;
|
|
7403
|
+
return false;
|
|
7404
|
+
}
|
|
7405
|
+
function getValue(component) {
|
|
7406
|
+
const el = component.rootElement;
|
|
7407
|
+
if (el.kupData.value)
|
|
7408
|
+
return el.kupData.value;
|
|
7409
|
+
return '';
|
|
7410
|
+
}
|
|
7411
|
+
function setValue(component, value) {
|
|
7412
|
+
const el = component.rootElement;
|
|
7413
|
+
el.kupData.value = value;
|
|
7414
|
+
}
|
|
7415
|
+
function getHoursActive(component) {
|
|
7416
|
+
const el = component.rootElement;
|
|
7417
|
+
if (el.kupData.hoursActive != null)
|
|
7418
|
+
return el.kupData.hoursActive;
|
|
7419
|
+
return false;
|
|
7420
|
+
}
|
|
7421
|
+
function getMinutesActive(component) {
|
|
7422
|
+
const el = component.rootElement;
|
|
7423
|
+
if (el.kupData.minutesActive != null)
|
|
7424
|
+
return el.kupData.minutesActive;
|
|
7425
|
+
return false;
|
|
7426
|
+
}
|
|
7427
|
+
function getSecondsActive(component) {
|
|
7428
|
+
const el = component.rootElement;
|
|
7429
|
+
if (el.kupData.secondsActive != null)
|
|
7430
|
+
return el.kupData.secondsActive;
|
|
7431
|
+
return false;
|
|
7432
|
+
}
|
|
7433
|
+
function setElement(component, elem) {
|
|
7434
|
+
if (elem) {
|
|
7435
|
+
const el = component.rootElement;
|
|
7436
|
+
el.kupData[elem.id] = elem;
|
|
7437
|
+
}
|
|
7438
|
+
}
|
|
7439
|
+
function getElement(component, elemId) {
|
|
7440
|
+
return component.rootElement.shadowRoot.getElementById(elemId);
|
|
7441
|
+
}
|
|
7442
|
+
function prepTimeArea(component) {
|
|
7443
|
+
return (index.h("div", { id: "clock-div", onBlur: (e) => {
|
|
7444
|
+
if (!isRelatedTargetInThisComponent(e, component)) {
|
|
7445
|
+
onKupBlur(component);
|
|
7446
|
+
}
|
|
7447
|
+
} }, createClock(component)));
|
|
7448
|
+
}
|
|
7449
|
+
function onKupClockItemClick(e, component, value) {
|
|
7450
|
+
if (e != null) {
|
|
7451
|
+
if (value == null) {
|
|
7452
|
+
value = e.detail.selected.value;
|
|
7453
|
+
}
|
|
7454
|
+
}
|
|
7455
|
+
setClockValueSelected(component, value);
|
|
7456
|
+
component.onKupClick(component.rootElement.id, value);
|
|
7457
|
+
}
|
|
7458
|
+
function setClockValueSelected(component, newValue) {
|
|
7459
|
+
if (newValue == null) {
|
|
7460
|
+
newValue = getValue(component);
|
|
7461
|
+
}
|
|
7462
|
+
if (newValue == null) {
|
|
7463
|
+
return;
|
|
7464
|
+
}
|
|
7465
|
+
setValue(component, newValue);
|
|
7466
|
+
}
|
|
7467
|
+
function isRelatedTargetInThisComponent(e, component) {
|
|
7468
|
+
if (!e.relatedTarget) {
|
|
7469
|
+
return false;
|
|
7470
|
+
}
|
|
7471
|
+
let id = e.relatedTarget.id;
|
|
7472
|
+
if (id == null || id.trim() == '') {
|
|
7473
|
+
return false;
|
|
7474
|
+
}
|
|
7475
|
+
if (id == getElement(component, kupManager.KupCardBuiltinClockElements.CLOCK).id) {
|
|
7476
|
+
return true;
|
|
7477
|
+
}
|
|
7478
|
+
let idConc = '#clock-div#confirm#';
|
|
7479
|
+
return idConc.indexOf('#' + id + '#') >= 0;
|
|
7480
|
+
}
|
|
7481
|
+
function onKupBlur(component) {
|
|
7482
|
+
component.onKupClick(component.rootElement.id, getValue(component));
|
|
7483
|
+
}
|
|
7484
|
+
function createClock(component) {
|
|
7485
|
+
let selectedTime;
|
|
7486
|
+
if (getValue(component)) {
|
|
7487
|
+
selectedTime = dom$2.ketchup.dates.toDate(getValue(component), isManageSeconds(component)
|
|
7488
|
+
? kupManager.KupDatesFormats.ISO_TIME
|
|
7489
|
+
: kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
|
|
7490
|
+
}
|
|
7491
|
+
else {
|
|
7492
|
+
selectedTime = new Date();
|
|
7493
|
+
}
|
|
7494
|
+
let hh = selectedTime.getHours().toString();
|
|
7495
|
+
let mm = selectedTime.getMinutes().toString();
|
|
7496
|
+
if (hh.length === 1) {
|
|
7497
|
+
hh = '0' + hh;
|
|
7498
|
+
}
|
|
7499
|
+
if (mm.length === 1) {
|
|
7500
|
+
mm = '0' + mm;
|
|
7501
|
+
}
|
|
7502
|
+
let ss = '';
|
|
7503
|
+
if (isManageSeconds(component)) {
|
|
7504
|
+
ss = selectedTime.getSeconds().toString();
|
|
7505
|
+
if (ss.length === 1) {
|
|
7506
|
+
ss = '0' + ss;
|
|
7507
|
+
}
|
|
7508
|
+
}
|
|
7509
|
+
let seconds;
|
|
7510
|
+
let time = [
|
|
7511
|
+
index.h("span", { id: kupManager.KupCardBuiltinClockElements.HOURS, class: `h ${getHoursActive(component) ? kupManager.KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
|
|
7512
|
+
setElement(component, el);
|
|
7513
|
+
}, onClick: () => {
|
|
7514
|
+
setClockViewActive(component, true, false, false);
|
|
7515
|
+
switchView(component, kupManager.KupCardBuiltinClockElements.HOURS, kupManager.KupCardBuiltinClockElements.HOURSCIRCLE);
|
|
7516
|
+
}, innerHTML: hh }),
|
|
7517
|
+
':',
|
|
7518
|
+
index.h("span", { id: kupManager.KupCardBuiltinClockElements.MINUTES, class: `m ${getMinutesActive(component) ? kupManager.KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
|
|
7519
|
+
setElement(component, el);
|
|
7520
|
+
}, onClick: () => {
|
|
7521
|
+
setClockViewActive(component, false, true, false);
|
|
7522
|
+
switchView(component, kupManager.KupCardBuiltinClockElements.MINUTES, kupManager.KupCardBuiltinClockElements.MINUTESCIRCLE);
|
|
7523
|
+
}, innerHTML: mm }),
|
|
7524
|
+
];
|
|
7525
|
+
if (isManageSeconds(component)) {
|
|
7526
|
+
seconds = (index.h("div", { id: kupManager.KupCardBuiltinClockElements.SECONDSCIRCLE, class: `circle seconds ${getSecondsActive(component) ? kupManager.KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
|
|
7527
|
+
setElement(component, el);
|
|
7528
|
+
} },
|
|
7529
|
+
buildClock(60, 101, 115, 115, 'sec unit', 0, 5, ss, component),
|
|
7530
|
+
index.h("div", { class: "mid" })));
|
|
7531
|
+
time.push(':', index.h("span", { id: kupManager.KupCardBuiltinClockElements.SECONDS, class: `s ${getSecondsActive(component) ? kupManager.KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
|
|
7532
|
+
setElement(component, el);
|
|
7533
|
+
}, onClick: () => {
|
|
7534
|
+
setClockViewActive(component, false, false, true);
|
|
7535
|
+
switchView(component, kupManager.KupCardBuiltinClockElements.SECONDS, kupManager.KupCardBuiltinClockElements.SECONDSCIRCLE);
|
|
7536
|
+
}, innerHTML: ss }));
|
|
7537
|
+
}
|
|
7538
|
+
const confirmButtonProp = {
|
|
7539
|
+
label: 'Ok',
|
|
7540
|
+
styling: fButtonDeclarations.FButtonStyling.FLAT,
|
|
7541
|
+
onClick: (e) => {
|
|
7542
|
+
setTimeFromClock(e, component);
|
|
7543
|
+
},
|
|
7544
|
+
};
|
|
7545
|
+
return (index.h("div", { class: "clock", id: kupManager.KupCardBuiltinClockElements.CLOCK, ref: (el) => {
|
|
7546
|
+
setElement(component, el);
|
|
7547
|
+
} },
|
|
7548
|
+
index.h("div", { class: "top" }, time),
|
|
7549
|
+
index.h("div", { id: kupManager.KupCardBuiltinClockElements.HOURSCIRCLE, class: `circle hours ${getHoursActive(component) ? kupManager.KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
|
|
7550
|
+
setElement(component, el);
|
|
7551
|
+
} },
|
|
7552
|
+
buildClock(12, 101, 105, 105, 'hour', 0, 1, hh, component),
|
|
7553
|
+
buildClock(12, 64, 110, 110, 'hour2', 12, 1, hh, component),
|
|
7554
|
+
index.h("div", { class: "mid" })),
|
|
7555
|
+
index.h("div", { id: kupManager.KupCardBuiltinClockElements.MINUTESCIRCLE, class: `circle minutes ${getMinutesActive(component) ? kupManager.KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
|
|
7556
|
+
setElement(component, el);
|
|
7557
|
+
} },
|
|
7558
|
+
buildClock(60, 101, 115, 115, 'min unit', 0, 5, mm, component),
|
|
7559
|
+
index.h("div", { class: "mid" })),
|
|
7560
|
+
seconds,
|
|
7561
|
+
index.h("div", { class: "actions" },
|
|
7562
|
+
index.h(fButton.FButton, Object.assign({}, confirmButtonProp)))));
|
|
7563
|
+
}
|
|
7564
|
+
function setClockViewActive(component, hoursAct, minutesAct, secondsAct) {
|
|
7565
|
+
const el = component.rootElement;
|
|
7566
|
+
el.kupData.hoursActive = hoursAct;
|
|
7567
|
+
el.kupData.minutesActive = minutesAct;
|
|
7568
|
+
el.kupData.secondsActive = secondsAct;
|
|
7569
|
+
}
|
|
7570
|
+
function switchView(component, elId, elCircleId) {
|
|
7571
|
+
getElement(component, kupManager.KupCardBuiltinClockElements.HOURS).classList.remove(kupManager.KupCardCSSClasses.VISIBLE);
|
|
7572
|
+
getElement(component, kupManager.KupCardBuiltinClockElements.HOURSCIRCLE).classList.remove(kupManager.KupCardCSSClasses.VISIBLE);
|
|
7573
|
+
getElement(component, kupManager.KupCardBuiltinClockElements.MINUTES).classList.remove(kupManager.KupCardCSSClasses.VISIBLE);
|
|
7574
|
+
getElement(component, kupManager.KupCardBuiltinClockElements.MINUTESCIRCLE).classList.remove(kupManager.KupCardCSSClasses.VISIBLE);
|
|
7575
|
+
if (isManageSeconds(component)) {
|
|
7576
|
+
getElement(component, kupManager.KupCardBuiltinClockElements.SECONDS).classList.remove(kupManager.KupCardCSSClasses.VISIBLE);
|
|
7577
|
+
getElement(component, kupManager.KupCardBuiltinClockElements.SECONDSCIRCLE).classList.remove(kupManager.KupCardCSSClasses.VISIBLE);
|
|
7578
|
+
}
|
|
7579
|
+
getElement(component, elId).classList.add(kupManager.KupCardCSSClasses.VISIBLE);
|
|
7580
|
+
getElement(component, elCircleId).classList.add(kupManager.KupCardCSSClasses.VISIBLE);
|
|
7581
|
+
}
|
|
7582
|
+
function buildClock(num, radius, offsetX, offsetY, className, add, separator, selectedValue, component) {
|
|
7583
|
+
let x, y;
|
|
7584
|
+
const divsArray = [];
|
|
7585
|
+
for (let n = 0; n < num; n++) {
|
|
7586
|
+
x = radius * Math.cos((n / num) * 2 * Math.PI);
|
|
7587
|
+
y = radius * Math.sin((n / num) * 2 * Math.PI);
|
|
7588
|
+
let text;
|
|
7589
|
+
let dataValue = {};
|
|
7590
|
+
let style = {};
|
|
7591
|
+
if (separator == 1) {
|
|
7592
|
+
if (n + 3 > 12) {
|
|
7593
|
+
text = n + 3 - 12 + add + '';
|
|
7594
|
+
}
|
|
7595
|
+
else {
|
|
7596
|
+
let calc = n + 3 + add;
|
|
7597
|
+
if (calc !== 24) {
|
|
7598
|
+
text = n + 3 + add + '';
|
|
7599
|
+
}
|
|
7600
|
+
else {
|
|
7601
|
+
text = '00';
|
|
7602
|
+
}
|
|
7603
|
+
}
|
|
7604
|
+
dataValue['data-value'] = text;
|
|
7605
|
+
}
|
|
7606
|
+
else {
|
|
7607
|
+
if (n % separator == 0) {
|
|
7608
|
+
if (n + 15 >= 60) {
|
|
7609
|
+
dataValue['data-value'] = n + 15 - 60 + '';
|
|
7610
|
+
text = n + 15 - 60 + add + '';
|
|
7611
|
+
}
|
|
7612
|
+
else {
|
|
7613
|
+
dataValue['data-value'] = n + 15 + '';
|
|
7614
|
+
text = n + 15 + add + '';
|
|
7615
|
+
}
|
|
7616
|
+
}
|
|
7617
|
+
else {
|
|
7618
|
+
if (n + 15 >= 60) {
|
|
7619
|
+
dataValue['data-value'] = n + 15 - 60 + '';
|
|
7620
|
+
text = '⋅';
|
|
7621
|
+
}
|
|
7622
|
+
else {
|
|
7623
|
+
dataValue['data-value'] = n + 15 + '';
|
|
7624
|
+
text = '\u00B7';
|
|
7625
|
+
}
|
|
7626
|
+
}
|
|
7627
|
+
}
|
|
7628
|
+
style['left'] = x + offsetX + 'px';
|
|
7629
|
+
style['top'] = y + offsetY + 'px';
|
|
7630
|
+
if (dataValue['data-value'].length === 1) {
|
|
7631
|
+
dataValue['data-value'] = '0' + dataValue['data-value'];
|
|
7632
|
+
}
|
|
7633
|
+
let elClass = className;
|
|
7634
|
+
if (dataValue['data-value'] === selectedValue) {
|
|
7635
|
+
elClass += ' selected';
|
|
7636
|
+
}
|
|
7637
|
+
let div = (index.h("div", Object.assign({ class: elClass, style: style }, dataValue, { onClick: (e) => setClockTime(e, component) }), text));
|
|
7638
|
+
divsArray.push(div);
|
|
7639
|
+
}
|
|
7640
|
+
return divsArray;
|
|
7641
|
+
}
|
|
7642
|
+
function setTimeFromClock(e, component) {
|
|
7643
|
+
const hoursEl = getElement(component, kupManager.KupCardBuiltinClockElements.HOURS);
|
|
7644
|
+
const minutesEl = getElement(component, kupManager.KupCardBuiltinClockElements.MINUTES);
|
|
7645
|
+
const secondsEl = getElement(component, kupManager.KupCardBuiltinClockElements.SECONDS);
|
|
7646
|
+
let text = hoursEl.innerText + ':' + minutesEl.innerText;
|
|
7647
|
+
if (isManageSeconds(component)) {
|
|
7648
|
+
text += ':' + secondsEl.innerText;
|
|
7649
|
+
}
|
|
7650
|
+
onKupClockItemClick(e, component, text);
|
|
7651
|
+
}
|
|
7652
|
+
function setClockTime(e, component) {
|
|
7653
|
+
const hoursEl = getElement(component, kupManager.KupCardBuiltinClockElements.HOURS);
|
|
7654
|
+
const minutesEl = getElement(component, kupManager.KupCardBuiltinClockElements.MINUTES);
|
|
7655
|
+
const hoursCircleEl = getElement(component, kupManager.KupCardBuiltinClockElements.HOURSCIRCLE);
|
|
7656
|
+
const minutesCircleEl = getElement(component, kupManager.KupCardBuiltinClockElements.MINUTESCIRCLE);
|
|
7657
|
+
const secondsEl = getElement(component, kupManager.KupCardBuiltinClockElements.SECONDS);
|
|
7658
|
+
const secondsCircleEl = getElement(component, kupManager.KupCardBuiltinClockElements.SECONDSCIRCLE);
|
|
7659
|
+
let time = e.target.getAttribute('data-value');
|
|
7660
|
+
if (getHoursActive(component)) {
|
|
7661
|
+
hoursEl.innerText = time;
|
|
7662
|
+
hoursCircleEl.querySelector('.selected').classList.remove('selected');
|
|
7663
|
+
setClockViewActive(component, false, true, false);
|
|
7664
|
+
switchView(component, kupManager.KupCardBuiltinClockElements.MINUTES, kupManager.KupCardBuiltinClockElements.MINUTESCIRCLE);
|
|
7665
|
+
}
|
|
7666
|
+
else if (getMinutesActive(component)) {
|
|
7667
|
+
minutesEl.innerText = time;
|
|
7668
|
+
minutesCircleEl.querySelector('.selected').classList.remove('selected');
|
|
7669
|
+
if (isManageSeconds(component)) {
|
|
7670
|
+
setClockViewActive(component, false, false, true);
|
|
7671
|
+
switchView(component, kupManager.KupCardBuiltinClockElements.SECONDS, kupManager.KupCardBuiltinClockElements.SECONDSCIRCLE);
|
|
7672
|
+
}
|
|
7673
|
+
else {
|
|
7674
|
+
setTimeFromClock(e, component);
|
|
7675
|
+
setClockViewActive(component, true, false, false);
|
|
7676
|
+
switchView(component, kupManager.KupCardBuiltinClockElements.HOURS, kupManager.KupCardBuiltinClockElements.HOURSCIRCLE);
|
|
7677
|
+
}
|
|
7678
|
+
}
|
|
7679
|
+
else {
|
|
7680
|
+
secondsEl.innerText = time;
|
|
7681
|
+
secondsCircleEl.querySelector('.selected').classList.remove('selected');
|
|
7682
|
+
setTimeFromClock(e, component);
|
|
7683
|
+
setClockViewActive(component, true, false, false);
|
|
7684
|
+
switchView(component, kupManager.KupCardBuiltinClockElements.HOURS, kupManager.KupCardBuiltinClockElements.HOURSCIRCLE);
|
|
7685
|
+
}
|
|
7686
|
+
e.target.classList.add('selected');
|
|
7687
|
+
}
|
|
7688
|
+
|
|
7689
|
+
/**
|
|
7690
|
+
* 1st builtin card layout, calendar view.
|
|
7691
|
+
* @param {KupCard} component - Card component.
|
|
7692
|
+
* @returns {VNode} 1st builtin layout virtual node.
|
|
7693
|
+
*/
|
|
7694
|
+
function create1$5(component) {
|
|
7695
|
+
return (index.h("div", { class: `builtin-layout-${component.layoutNumber} ${kupManager.KupCardCSSClasses.BUILTIN_CARD}` }, prepareCalendar(component)));
|
|
7696
|
+
}
|
|
7697
|
+
/**
|
|
7698
|
+
* 2st builtin card layout, time view.
|
|
7699
|
+
* @param {KupCard} component - Card component.
|
|
7700
|
+
* @returns {VNode} 2st builtin layout virtual node.
|
|
7701
|
+
*/
|
|
7702
|
+
function create2$4(component) {
|
|
7703
|
+
return (index.h("div", { class: `builtin-layout-${component.layoutNumber} ${kupManager.KupCardCSSClasses.BUILTIN_CARD}` }, prepareClock(component)));
|
|
7704
|
+
}
|
|
7705
|
+
|
|
7706
|
+
const builtinLayouts = /*#__PURE__*/Object.freeze({
|
|
7707
|
+
__proto__: null,
|
|
7708
|
+
create1: create1$5,
|
|
7709
|
+
create2: create2$4
|
|
7710
|
+
});
|
|
7711
|
+
|
|
6900
7712
|
/**
|
|
6901
7713
|
* Component IDs.
|
|
6902
7714
|
*/
|
|
@@ -7119,7 +7931,7 @@ function layoutSpecificEvents(component, e) {
|
|
|
7119
7931
|
* @param {KupCard} component - Card component.
|
|
7120
7932
|
* @returns {VNode} 1st collapsible layout virtual node.
|
|
7121
7933
|
*/
|
|
7122
|
-
function create1$
|
|
7934
|
+
function create1$4(component) {
|
|
7123
7935
|
//Chips
|
|
7124
7936
|
const chipArray = component.data['chip']
|
|
7125
7937
|
? component.data['chip']
|
|
@@ -7194,7 +8006,7 @@ function create2$3(component) {
|
|
|
7194
8006
|
|
|
7195
8007
|
const collapsibleLayouts = /*#__PURE__*/Object.freeze({
|
|
7196
8008
|
__proto__: null,
|
|
7197
|
-
create1: create1$
|
|
8009
|
+
create1: create1$4,
|
|
7198
8010
|
create2: create2$3
|
|
7199
8011
|
});
|
|
7200
8012
|
|
|
@@ -7204,7 +8016,7 @@ const dom$1 = document.documentElement;
|
|
|
7204
8016
|
* @param {KupCard} component - Card component.
|
|
7205
8017
|
* @returns {VNode} 1st standard layout virtual node.
|
|
7206
8018
|
*/
|
|
7207
|
-
function create1$
|
|
8019
|
+
function create1$3(component) {
|
|
7208
8020
|
//Title, subtitle and description
|
|
7209
8021
|
const textArray = component.data['text']
|
|
7210
8022
|
? component.data['text']
|
|
@@ -7428,7 +8240,7 @@ function getVisibleColumn(data) {
|
|
|
7428
8240
|
|
|
7429
8241
|
const dialogLayouts = /*#__PURE__*/Object.freeze({
|
|
7430
8242
|
__proto__: null,
|
|
7431
|
-
create1: create1$
|
|
8243
|
+
create1: create1$3,
|
|
7432
8244
|
create2: create2$2,
|
|
7433
8245
|
create3: create3$2,
|
|
7434
8246
|
create4: create4$2,
|
|
@@ -7436,6 +8248,22 @@ const dialogLayouts = /*#__PURE__*/Object.freeze({
|
|
|
7436
8248
|
create6: create6$2
|
|
7437
8249
|
});
|
|
7438
8250
|
|
|
8251
|
+
/**
|
|
8252
|
+
* 1st free card layout, only slots.
|
|
8253
|
+
* @param {KupCard} component - Card component.
|
|
8254
|
+
* @returns {VNode} 1st standard layout virtual node.
|
|
8255
|
+
*/
|
|
8256
|
+
function create1$2(component) {
|
|
8257
|
+
//Slot list
|
|
8258
|
+
const slots = Array.prototype.slice.call(component.rootElement.children, 0);
|
|
8259
|
+
return (index.h("div", { class: `free-layout-${component.layoutNumber}` }, slots.length > 0 ? compList(slots, 'slot') : null));
|
|
8260
|
+
}
|
|
8261
|
+
|
|
8262
|
+
const freeLayouts = /*#__PURE__*/Object.freeze({
|
|
8263
|
+
__proto__: null,
|
|
8264
|
+
create1: create1$2
|
|
8265
|
+
});
|
|
8266
|
+
|
|
7439
8267
|
/**
|
|
7440
8268
|
* 1st scalable card layout, column of 2 texts.
|
|
7441
8269
|
* @param {KupCard} component - Card component.
|
|
@@ -8473,7 +9301,7 @@ const standardLayouts = /*#__PURE__*/Object.freeze({
|
|
|
8473
9301
|
create15: create15
|
|
8474
9302
|
});
|
|
8475
9303
|
|
|
8476
|
-
const kupCardCss = ".collapsible-layout-1{color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-1 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.collapsible-layout-1 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.collapsible-layout-1 .section-2 .sub-1{min-height:1.5em;display:flex;padding:0.6rem 0.8em 0;font-weight:bold;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.collapsible-layout-1 .section-2 .sub-1 div{font-size:1em}.collapsible-layout-1 .section-2 .sub-1 .left{text-align:left;width:80%}.collapsible-layout-1 .section-2 .sub-1 .right{text-align:right;width:20%}.collapsible-layout-1 .section-2 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em}.collapsible-layout-2{color:var(--kup-text-color);box-shadow:rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;border-radius:4px;display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-2 .section-1{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:100%;width:100%}.collapsible-layout-2 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.collapsible-layout-2 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;max-width:75%}.collapsible-layout-2 .section-1 .sub-2 div{font-size:0.875em}.collapsible-layout-2 .section-1 .sub-3{color:var(--color-0);text-align:center;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;overflow:hidden;max-height:calc(24px + 2.25em);padding:0 1em}.collapsible-layout-2 .section-1 .sub-3 kup-image{margin:auto}.collapsible-layout-2 .section-1 .sub-3 div{font-size:1.25em}.collapsible-card .collapsible-trigger{display:none;position:absolute;bottom:0;left:0;height:50px;width:100%}.collapsible-card .collapsible-trigger kup-button{margin:auto;width:48px}.collapsible-card .collapsible-wrapper{overflow:auto}.collapsible-card.collapsible-active{padding-bottom:50px}.collapsible-card.collapsible-active .collapsible-trigger{display:block}.dialog-layout-1{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);color:var(--kup-text-color);display:flex;flex-direction:column;height:100%;width:100%;overflow:auto}.dialog-layout-1 .section-1{display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-1 .section-1 .text{min-width:max-content}.dialog-layout-1 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-2 .section-1{text-align:center;touch-action:none;padding-bottom:1em}.dialog-layout-2 .section-1 .text{padding-top:0.75em}.dialog-layout-2 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2 .section-2{border-top:1px solid var(--kup-border-color);display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-2 .section-2 .text{min-width:max-content}.dialog-layout-2 .section-2 .text:not(.label){font-weight:bold}.dialog-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;overflow:visible;flex-direction:column;height:100%;position:relative;width:100%}.dialog-layout-3 kup-button{margin-left:0}.dialog-layout-3 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right;touch-action:none}.dialog-layout-3 .section-1 kup-button{margin-right:0.25em}.dialog-layout-3 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.dialog-layout-3 ::slotted(.text){color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.dialog-layout-4{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-4 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-4 .section-2{height:100%;overflow:auto;padding:0.25em;touch-action:none}.dialog-layout-5{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-5 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-5 .section-2{height:100%;overflow:auto}.dialog-layout-6{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;max-height:95vh;max-width:95vw;width:100%}.dialog-layout-6 .section-1{display:flex;height:100%;justify-content:space-evenly;overflow:auto}.dialog-layout-6 kup-data-table{width:100%}#drag-handle{-ms-touch-action:none;touch-action:none}#drag-handle:not(.header-bar){display:flex;height:100%}#drag-handle:not(.header-bar) .f-image{margin:auto}#drag-handle.header-bar{background-color:var(--kup-title-background-color);color:var(--kup-title-color);display:flex;flex-direction:row;height:2em;position:relative;width:100%}#drag-handle.header-bar .dialog-title{font-weight:bold;line-height:2em;padding-left:0.5em;padding-right:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#drag-handle.header-bar #dialog-close{cursor:pointer;margin-right:0;transition:opacity 0.25s;position:absolute;right:0;background:var(--kup-title-background-color)}#drag-handle.header-bar #dialog-close:hover{opacity:0.5}.scalable-layout-1 .descr{font-size:70%;width:100%}.scalable-layout-1 .value{font-size:220%}.scalable-layout-2 #image1 img{object-fit:contain}.scalable-layout-2 .scalable-element{display:grid;grid-template-columns:1fr 1fr 0.5fr 0.5fr}.scalable-layout-2 .icon{margin:auto;font-size:150%;margin-right:5%}.scalable-layout-2 .value-int{font-size:250%}.scalable-layout-2 .value-dec,.scalable-layout-2 .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-2 .value-dec{margin-left:2%}.scalable-layout-2 .unit{margin-left:4%}.scalable-layout-3 .descr{font-size:70%;width:100%}.scalable-layout-3 .value{font-size:220%}.scalable-layout-4 #image1 img{object-fit:contain}.scalable-layout-4 .scalable-element{display:grid;grid-template-columns:1fr 5fr}.scalable-layout-4 .icon{font-size:150%;margin:auto 5% auto auto}.scalable-layout-4 .value-and-unit{display:flex;color:var(--color-0)}.scalable-layout-4 .value-and-unit .value-int{font-size:250%}.scalable-layout-4 .value-and-unit .value-dec,.scalable-layout-4 .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-4 .value-and-unit .value-dec{margin-left:2%}.scalable-layout-4 .value-and-unit .unit{margin-left:4%}.scalable-layout-4 .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}.scalable-layout-5 #image1 img{object-fit:contain}.scalable-layout-5 .scalable-element{display:flex}.scalable-layout-5 .text-wrapper{margin-right:10px}.scalable-layout-5 .icon{font-size:150%;margin:auto;margin-bottom:0.35em}.scalable-layout-5 .value{font-size:200%}.scalable-layout-5 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:-10%}.scalable-layout-6 #image1 img{object-fit:contain}.scalable-layout-6 .scalable-element{display:flex;justify-content:space-between}.scalable-layout-6 .text-wrapper{margin-left:1em}.scalable-layout-6 .icon{font-size:150%;margin:auto}.scalable-layout-6 .value{font-size:220%;text-align:right}.scalable-layout-6 .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}.scalable-layout-7 #image1 img{object-fit:contain}.scalable-layout-7 .scalable-element{display:flex}.scalable-layout-7 .text-wrapper{margin-right:0.5em}.scalable-layout-7 .icon{font-size:150%;margin:auto;margin-top:0.35em}.scalable-layout-7 .value{font-size:200%}.scalable-layout-7 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:10%}.scalable-layout-8 #image1 img{object-fit:contain}.scalable-layout-8 .scalable-element{align-items:center;display:grid;grid-template-columns:0.25fr 1.25fr 0.25fr}.scalable-layout-8 .icon{margin-right:4%;font-size:75%}.scalable-layout-8 .value{margin:0 10%;font-size:250%}.scalable-layout-8 .descr{font-size:60%;text-align:left}.scalable-card{align-items:center;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);border-radius:4px;display:flex;font-size:calc(var(--kup-font-size) * var(--kup_card_multiplier));height:100%;justify-content:center;position:relative;text-align:center;word-break:normal;width:100%}.standard-layout-1{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-1 kup-button{margin-right:0}.standard-layout-1 #image1 img{object-fit:cover}.standard-layout-1.has-actions{padding-bottom:52px}.standard-layout-1.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-1 .section-1{height:60%;width:100%}.standard-layout-1 .section-2{height:40%;width:100%;overflow:auto}.standard-layout-1 .section-2 .sub-2.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-1 .section-2 .sub-2.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-1 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-1 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-1 .section-3 kup-button{margin-left:0.25em}.standard-layout-2{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-2 kup-button{margin-right:0}.standard-layout-2 #image1 img{object-fit:cover}.standard-layout-2.has-actions{padding-bottom:52px}.standard-layout-2.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-2 .section-1{width:100%}.standard-layout-2 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-2 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-2 .section-2{height:75%;width:100%}.standard-layout-2 .section-3{width:100%;overflow:auto}.standard-layout-2 .section-3 .sub-3.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-2 .section-3 .sub-3.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-2 .section-4{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-2 .section-4 kup-button{margin-left:0.25em}.standard-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-3 kup-button{margin-right:0}.standard-layout-3 #image1 img{object-fit:cover}.standard-layout-3.has-actions{padding-bottom:52px}.standard-layout-3.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-3 .section-1{height:75%;width:100%}.standard-layout-3 .section-1 .media{position:relative;height:100%;width:100%}.standard-layout-3 .section-1 .text-on-media{position:absolute;bottom:0;left:0}.standard-layout-3 .section-1 .sub-1.title{color:white;padding:0 1em;padding-top:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-3 .section-1 .sub-1.subtitle{color:white;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-3 .section-2{width:100%;overflow:auto}.standard-layout-3 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-3 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-3 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-3 .section-3 kup-button{margin-left:0.25em}.standard-layout-4{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-4 kup-button{margin-right:0}.standard-layout-4 #image1 img{object-fit:cover}.standard-layout-4.has-actions{padding-bottom:52px}.standard-layout-4.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-4 .section-1{display:flex;height:100%;width:100%}.standard-layout-4 .section-1 .sub-1.image{width:33%}.standard-layout-4 .section-1 .sub-1.text{width:77%}.standard-layout-4 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-4 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-4 .section-2{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-4 .section-2 kup-button{margin-left:0.25em}.standard-layout-5{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);height:100%;overflow:hidden;width:100%}.standard-layout-5 .section-1{background-color:var(--color-0);height:3%}.standard-layout-5 .section-2{display:flex;height:53%}.standard-layout-5 .section-3{display:flex;height:24%}.standard-layout-5 .section-4{display:flex;height:20%;background-color:var(--color-1)}.standard-layout-5 .sub-2{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center}.standard-layout-5 .sub-2.icon{min-height:20px;flex:0 0 10%;max-width:10%}.standard-layout-5 .sub-2.icon #image1{box-sizing:border-box;margin:auto;padding:0 20%}.standard-layout-5 .sub-2.icon #image1 img{object-fit:contain}.standard-layout-5 .sub-2.text{flex:0 0 70%;max-width:70%;margin:auto;height:100%;flex-wrap:nowrap;padding:1em;text-align:left}.standard-layout-5 .sub-2.image{box-sizing:border-box;flex:0 0 20%;padding:1.5vh 0;max-width:20%}.standard-layout-5 .sub-2.image #image2{box-sizing:border-box;margin:auto;padding:0 10%}.standard-layout-5 .sub-2.image #image2 img{object-fit:contain}.standard-layout-5 .sub-2 .desc-text{overflow:auto}.standard-layout-5 .sub-2 .alt-text{color:var(--kup-primary-color)}.standard-layout-5 .sub-3{box-sizing:border-box}.standard-layout-5 .sub-3.progress-bar{margin:auto;padding:0 5%;vertical-align:2px;width:80%}.standard-layout-5 .sub-3.button{margin:auto;text-align:center;width:20%}.standard-layout-5 .sub-3 kup-button{margin:auto}.standard-layout-5 .sub-4{box-sizing:border-box;margin:auto}.standard-layout-5 .sub-4.text{width:50%;font-size:0.875em}.standard-layout-5 .sub-4 div{padding:0 5%}.standard-layout-5 .sub-4 .alt-text{color:var(--color-0);font-size:1em}.standard-layout-5 .alt-text{font-weight:bold}@media screen and (max-width: 767px){.standard-layout-5 .sub-2.image{display:none}.standard-layout-5 .sub-2.icon{flex-basis:30%;max-width:30%}}.standard-layout-6{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%}.standard-layout-6 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.standard-layout-6 .section-1 .alt-text{color:var(--kup_card_dynamic_color_0);height:100%;text-align:center;writing-mode:vertical-lr;margin:auto;font-size:1.25em}.standard-layout-6 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.standard-layout-6 .section-2 .sub-2{margin:auto;text-align:center}.standard-layout-6 .section-2 .sub-2 kup-progress-bar{margin-bottom:1em}.standard-layout-6 kup-button{position:absolute;bottom:2%;right:2%}.standard-layout-7{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.standard-layout-7 #image1 img{margin:auto;object-fit:contain}.standard-layout-7 .section-1{background-color:var(--color-0);height:5%;width:100%}.standard-layout-7 .section-2{height:80%;width:100%;text-align:center;padding:25px 25%;box-sizing:border-box}.standard-layout-7 .section-2 .sub-2{margin:auto}.standard-layout-7 .section-2 .sub-2.image{box-sizing:border-box;height:65%}.standard-layout-7 .section-2 .sub-2.text{font-size:1.4em;letter-spacing:1.2px;padding-top:1em;height:35%}.standard-layout-7 .section-3{display:flex;height:15%;width:100%}.standard-layout-7 .section-3 .alt-text{margin:auto;opacity:0.75;width:50%}.standard-layout-7 .section-3 .alt-text:nth-child(1){margin-left:1em;text-align:left}.standard-layout-7 .section-3 .alt-text:nth-child(2){margin-right:1em;text-align:right}.standard-layout-8{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-8 .background{background-color:var(--color-0);content:\"\";height:100%;width:100%;opacity:0.1;pointer-events:none;position:absolute;top:0;left:0;z-index:1}.standard-layout-8 .section-1{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;overflow:auto;height:auto}.standard-layout-8 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.standard-layout-8 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em;max-width:75%}.standard-layout-8 .section-1 .sub-3{color:var(--color-0);font-weight:bold;text-align:center;font-size:1.2em;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;max-height:calc(24px + 2.25em);padding:0 1em;overflow:hidden}.standard-layout-8 .section-1 .sub-3 kup-image{margin:auto}.standard-layout-8 .section-2{display:flex;height:auto;overflow:auto}.standard-layout-9{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-9 #image1 img{object-fit:contain}.standard-layout-9 .section-1{margin-top:auto;margin-right:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-9 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-9 .sub-2{display:flex;flex-direction:row}.standard-layout-9 .text{text-align:left}.standard-layout-9 .text-wrapper{display:flex;flex-direction:column}.standard-layout-9 .icon{margin:auto;padding:0 1.25em}.standard-layout-9 .description{font-size:1.5em;letter-spacing:1px;padding-left:1.25em;padding-top:0.25em}.standard-layout-9 .title{font-size:2.75em;font-weight:bold}.standard-layout-9 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-10{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-10 #image1 img{object-fit:contain}.standard-layout-10 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-10 .section-2{margin-top:auto;margin-left:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-10 .sub-2{display:flex;flex-direction:row-reverse}.standard-layout-10 .text{text-align:right}.standard-layout-10 .text-wrapper{display:flex;flex-direction:column}.standard-layout-10 .icon{margin:auto;padding:0 1.25em}.standard-layout-10 .description{font-size:1.5em;letter-spacing:1px;padding-right:1.25em;padding-top:0.25em}.standard-layout-10 .title{font-size:2.75em;font-weight:bold}.standard-layout-10 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-11{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-11 #image1 img{object-fit:contain}.standard-layout-11 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;min-width:6em;max-width:6em;overflow:hidden;transition:0.25s ease-in}.standard-layout-11 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-11 .sub-1{background-color:var(--color-0);height:100%;text-align:center;writing-mode:vertical-lr;min-width:6em;display:flex;transition:width 0.25s ease-in}.standard-layout-11 .sub-1 div{font-size:1.25em}.standard-layout-11 .sub-2{display:flex;flex-direction:row}.standard-layout-11 .text:not(.description){text-align:left}.standard-layout-11 .text-wrapper{display:flex;flex-direction:column}.standard-layout-11 .icon{margin:auto;padding:0 1.25em}.standard-layout-11 .description{font-size:1.5em;letter-spacing:1px;margin:auto;color:var(--kup_card_dynamic_color_0)}.standard-layout-11 .title{font-size:2.75em;font-weight:bold;margin-top:auto}.standard-layout-11 .subtitle{font-size:1.5em;opacity:0.75;margin-bottom:auto}.standard-layout-12{background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-12 .section-1{display:inline-flex;border-bottom:1px solid var(--kup-border-color);width:100%}.standard-layout-12 .section-1 kup-button{margin:0}.standard-layout-12 .section-2{display:flex;flex-direction:column}.standard-layout-12 .section-2.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-12 .section-2 kup-date-picker:first-of-type,.standard-layout-12 .section-2 kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-12 .section-3{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-12 .section-3 kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-13{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-13 kup-button{margin-left:0}.standard-layout-13 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right}.standard-layout-13 .section-1 kup-button{margin-right:0.25em}.standard-layout-13 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.standard-layout-13 .text{color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.standard-layout-14{background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-14 .section-1{display:flex;padding:1em}.standard-layout-14 .section-1 .sub-1{width:100%}.standard-layout-14 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-14 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-14 .section-1 .title{font-size:1.25em;margin-top:-0.5em;padding:0 0.25em 0.25em}.standard-layout-14 .section-1 .title .label{cursor:pointer;padding-right:0.25em}.standard-layout-14 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-14 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-14 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-14 .section-1 .info .value{width:100%}.standard-layout-14 .sub-button{display:inline-flex;width:100%}.standard-layout-14 .sub-button kup-button{margin:0}.standard-layout-14 .sub-checkbox{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-14 .sub-checkbox kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-14 .sub-chip{max-width:25vw;overflow:auto;box-shadow:0 3px 2px -2px var(--kup-border-color)}.standard-layout-14 .sub-field{display:flex;flex-direction:column}.standard-layout-14 .sub-field.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-14 .sub-field kup-date-picker:first-of-type,.standard-layout-14 .sub-field kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-14 .sub-spinner{height:100px}.standard-layout-14 .sub-autocomplete{padding-top:1em}.standard-layout-14 .sub-autocomplete kup-autocomplete{margin:auto;padding:0.5em 0;width:max-content}.standard-layout-14 .sub-switch{display:flex;justify-content:space-evenly;padding:2em}.standard-layout-14 .sub-tree{max-height:25vh;overflow:auto}.standard-layout-14 #apply{display:none}.standard-layout-14 #apply.visible{display:block}.standard-layout-14 #open-in-new,.standard-layout-14 #search,.standard-layout-14 #new{margin:0;display:inline-flex}.standard-layout-15{outline:none;display:block;font-size:var(--kup-font-size);background:var(--kup-background-color);color:var(--kup-text-color);box-shadow:var(--kup-box-shadow);border-radius:3px;min-width:350px;max-width:700px}.standard-layout-15 .section-1{box-sizing:border-box;display:flex;padding:1em}.standard-layout-15 .section-1 .sub-1{width:100%}.standard-layout-15 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-15 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-15 .section-1 .title{font-size:1.25em;padding:0 0.25em 0.25em;text-align:left}.standard-layout-15 .section-1 .title .label{cursor:pointer;padding-right:0.25em}.standard-layout-15 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-15 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-15 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-15 .section-1 .info .value{width:100%}.standard-layout-15 .section-2{border-top:1px solid var(--kup-border-color);box-sizing:border-box;height:180px;opacity:1;overflow:auto;transition:height 250ms ease-out, opacity 250ms ease-out}.standard-layout-15 .section-2 .info{box-sizing:border-box;height:100%;padding:1.25em}.standard-layout-15 .section-2 .detail-row{display:flex;justify-content:space-between}.standard-layout-15 .section-2 .detail-row:not(:last-child){margin-bottom:6px}.standard-layout-15 .section-2 .detail-row__label{color:rgba(var(--kup-text-color-rgb), 0.5);margin-top:0.175em;max-width:320px}.standard-layout-15 .section-2 .detail-row__value{color:var(--kup-text-color);font-size:120%;max-width:320px}.standard-layout-15 .section-2 kup-tree{text-align:left}.standard-layout-15 .section-3{border-top:1px solid var(--kup-border-color);display:flex;justify-content:flex-end;padding:6px;padding-top:2px;padding-bottom:2px}.standard-layout-15 .section-3 kup-button{margin:auto 0}.standard-layout-15 #open-in-new,.standard-layout-15 #search,.standard-layout-15 #new{margin:0;display:inline-flex}:host{--kup_card_ripple_color:var(\n --kup-card-ripple-color,\n var(--kup-primary-color)\n );display:block;font-size:var(--kup-font-size);height:var(--kup_card_height);min-height:var(--kup_card_height);min-width:var(--kup_card_width);outline:none;position:relative;width:var(--kup_card_width)}:host([is-menu]) #kup-component{animation:fade-in 0.25s ease-out;display:none}:host([menu-visible]) #kup-component{display:block}#kup-component{height:100%;width:100%}.mdc-ripple-surface{cursor:pointer;flex-direction:column;display:flex;height:100%;position:relative}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_card_ripple_color)}.card-view{animation:fade-in 0.25s ease-out;display:none;height:100%;width:100%}.card-view.visible{display:block}";
|
|
9304
|
+
const kupCardCss = ".builtin-layout-1{padding:0.5em}.builtin-layout-1 .section-1{box-sizing:border-box;height:5em;overflow:auto;padding-bottom:1em;width:100%}.builtin-layout-1 .section-1 .sub-1{display:flex;flex-direction:row;justify-content:center}.builtin-layout-1 .section-2{height:calc(100% - 60px);overflow:auto;width:100%}.builtin-layout-1 .prev-page{margin-left:auto}.builtin-layout-1 .change-view-button{margin:auto;width:12em;text-align:center}.builtin-layout-1 #change-view-button button{text-transform:capitalize}.builtin-layout-1 .next-page{margin-right:auto}.builtin-layout-1 .calendar{border-collapse:collapse;width:100%}.builtin-layout-1 thead{border-bottom:1px solid var(--kup-border-color)}.builtin-layout-1 .item-text{color:rgba(var(--kup-text-color-rgb), 0.5)}.builtin-layout-1 .item{text-align:center}.builtin-layout-1 .item:not(.selected) .item-number:hover{background-color:var(--kup-hover-background-color)}.builtin-layout-1 .item.selected .item-number,.builtin-layout-1 .item.selected .item-number:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}.builtin-layout-1 .item-number{border-radius:50%;cursor:pointer;display:flex;justify-content:center;line-height:2.5em;margin:auto;width:2.5em;transition:background-color 0.25s;text-transform:capitalize}.builtin-layout-2 .clock{box-shadow:var(--kup-box-shadow);width:300px;height:450px;background-color:var(--kup-background-color);position:relative;font-family:var(--kup-font-family)}.builtin-layout-2 .top{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color);height:100px;line-height:100px;font-size:50px;text-align:center}.builtin-layout-2 .top span{cursor:pointer;opacity:0.75;transition:0.25s ease-in-out}.builtin-layout-2 .top .visible{opacity:1}.builtin-layout-2 .circle{user-select:none;background-color:rgba(var(--kup-text-color-rgb), 0.1);width:250px;height:250px;border-radius:1000px;position:relative;top:25px;left:25px;box-sizing:border-box;display:none}.builtin-layout-2 .circle.visible{display:block}.builtin-layout-2 .mid{position:absolute;left:calc(50% - 0px);top:calc(50% - 0px);width:2px;height:2px;border-radius:10px;background-color:var(--kup-text-color)}.builtin-layout-2 .hour{position:absolute;height:40px;line-height:40px;width:40px;border-radius:40px;text-align:center}.builtin-layout-2 .hour.selected{z-index:2}.builtin-layout-2 .hour.selected::after{content:\"\";z-index:-1;background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.builtin-layout-2 .hour2{z-index:2;position:absolute;height:30px;line-height:30px;width:30px;border-radius:40px;text-align:center;font-size:14px}.builtin-layout-2 .hour2.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:64px;right:50%;z-index:-1}.builtin-layout-2 .unit{position:absolute;height:20px;line-height:20px;width:20px;border-radius:40px;text-align:center;font-size:12px}.builtin-layout-2 .unit.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.builtin-layout-2 .hour,.builtin-layout-2 .hour2,.builtin-layout-2 .unit{cursor:pointer;transition:background-color 0.25s}.builtin-layout-2 .hour:hover,.builtin-layout-2 .hour2:hover,.builtin-layout-2 .unit:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.275)}.builtin-layout-2 .hour.selected,.builtin-layout-2 .hour2.selected,.builtin-layout-2 .unit.selected{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color)}.builtin-layout-2 .actions{color:var(--kup-primary-color);font-weight:bold;font-size:20px;display:flex;justify-content:flex-end;position:absolute;width:100%;box-sizing:border-box;bottom:10px}.builtin-layout-2 .action{display:inline-block;width:100px;text-align:center;height:37.5px;line-height:37.5px;margin-right:10px;cursor:pointer;border-radius:2px}.builtin-layout-2 .clock .actions .action:hover{background-color:rgba(0, 0, 0, 0.1)}.builtin-layout-2 .clock .actions .action:visible{background-color:rgba(0, 0, 0, 0.3)}.builtin-layout-2 .hour:nth-child(12):after{transform:rotate(330deg)}.builtin-layout-2 .hour:nth-child(11):after{transform:rotate(300deg)}.builtin-layout-2 .hour:nth-child(10):after{transform:rotate(270deg)}.builtin-layout-2 .hour:nth-child(9):after{transform:rotate(240deg)}.builtin-layout-2 .hour:nth-child(8):after{transform:rotate(210deg)}.builtin-layout-2 .hour:nth-child(7):after{transform:rotate(180deg)}.builtin-layout-2 .hour:nth-child(6):after{transform:rotate(150deg)}.builtin-layout-2 .hour:nth-child(5):after{transform:rotate(120deg)}.builtin-layout-2 .hour:nth-child(4):after{transform:rotate(90deg)}.builtin-layout-2 .hour:nth-child(3):after{transform:rotate(60deg)}.builtin-layout-2 .hour:nth-child(2):after{transform:rotate(30deg)}.builtin-layout-2 .hour:nth-child(1):after{transform:rotate(0deg)}.builtin-layout-2 .hour2:nth-child(24):after{transform:rotate(690deg)}.builtin-layout-2 .hour2:nth-child(23):after{transform:rotate(660deg)}.builtin-layout-2 .hour2:nth-child(22):after{transform:rotate(630deg)}.builtin-layout-2 .hour2:nth-child(21):after{transform:rotate(600deg)}.builtin-layout-2 .hour2:nth-child(20):after{transform:rotate(570deg)}.builtin-layout-2 .hour2:nth-child(19):after{transform:rotate(540deg)}.builtin-layout-2 .hour2:nth-child(18):after{transform:rotate(510deg)}.builtin-layout-2 .hour2:nth-child(17):after{transform:rotate(480deg)}.builtin-layout-2 .hour2:nth-child(16):after{transform:rotate(450deg)}.builtin-layout-2 .hour2:nth-child(15):after{transform:rotate(420deg)}.builtin-layout-2 .hour2:nth-child(14):after{transform:rotate(390deg)}.builtin-layout-2 .hour2:nth-child(13):after{transform:rotate(360deg)}.builtin-layout-2 .unit:nth-child(60):after{transform:rotate(354deg)}.builtin-layout-2 .unit:nth-child(59):after{transform:rotate(348deg)}.builtin-layout-2 .unit:nth-child(58):after{transform:rotate(342deg)}.builtin-layout-2 .unit:nth-child(57):after{transform:rotate(336deg)}.builtin-layout-2 .unit:nth-child(56):after{transform:rotate(330deg)}.builtin-layout-2 .unit:nth-child(55):after{transform:rotate(324deg)}.builtin-layout-2 .unit:nth-child(54):after{transform:rotate(318deg)}.builtin-layout-2 .unit:nth-child(53):after{transform:rotate(312deg)}.builtin-layout-2 .unit:nth-child(52):after{transform:rotate(306deg)}.builtin-layout-2 .unit:nth-child(51):after{transform:rotate(300deg)}.builtin-layout-2 .unit:nth-child(50):after{transform:rotate(294deg)}.builtin-layout-2 .unit:nth-child(49):after{transform:rotate(288deg)}.builtin-layout-2 .unit:nth-child(48):after{transform:rotate(282deg)}.builtin-layout-2 .unit:nth-child(47):after{transform:rotate(276deg)}.builtin-layout-2 .unit:nth-child(46):after{transform:rotate(270deg)}.builtin-layout-2 .unit:nth-child(45):after{transform:rotate(264deg)}.builtin-layout-2 .unit:nth-child(44):after{transform:rotate(258deg)}.builtin-layout-2 .unit:nth-child(43):after{transform:rotate(252deg)}.builtin-layout-2 .unit:nth-child(42):after{transform:rotate(246deg)}.builtin-layout-2 .unit:nth-child(41):after{transform:rotate(240deg)}.builtin-layout-2 .unit:nth-child(40):after{transform:rotate(234deg)}.builtin-layout-2 .unit:nth-child(39):after{transform:rotate(228deg)}.builtin-layout-2 .unit:nth-child(38):after{transform:rotate(222deg)}.builtin-layout-2 .unit:nth-child(37):after{transform:rotate(216deg)}.builtin-layout-2 .unit:nth-child(36):after{transform:rotate(210deg)}.builtin-layout-2 .unit:nth-child(35):after{transform:rotate(204deg)}.builtin-layout-2 .unit:nth-child(34):after{transform:rotate(198deg)}.builtin-layout-2 .unit:nth-child(33):after{transform:rotate(192deg)}.builtin-layout-2 .unit:nth-child(32):after{transform:rotate(186deg)}.builtin-layout-2 .unit:nth-child(31):after{transform:rotate(180deg)}.builtin-layout-2 .unit:nth-child(30):after{transform:rotate(174deg)}.builtin-layout-2 .unit:nth-child(29):after{transform:rotate(168deg)}.builtin-layout-2 .unit:nth-child(28):after{transform:rotate(162deg)}.builtin-layout-2 .unit:nth-child(27):after{transform:rotate(156deg)}.builtin-layout-2 .unit:nth-child(26):after{transform:rotate(150deg)}.builtin-layout-2 .unit:nth-child(25):after{transform:rotate(144deg)}.builtin-layout-2 .unit:nth-child(24):after{transform:rotate(138deg)}.builtin-layout-2 .unit:nth-child(23):after{transform:rotate(132deg)}.builtin-layout-2 .unit:nth-child(22):after{transform:rotate(126deg)}.builtin-layout-2 .unit:nth-child(21):after{transform:rotate(120deg)}.builtin-layout-2 .unit:nth-child(20):after{transform:rotate(114deg)}.builtin-layout-2 .unit:nth-child(19):after{transform:rotate(108deg)}.builtin-layout-2 .unit:nth-child(18):after{transform:rotate(102deg)}.builtin-layout-2 .unit:nth-child(17):after{transform:rotate(96deg)}.builtin-layout-2 .unit:nth-child(16):after{transform:rotate(90deg)}.builtin-layout-2 .unit:nth-child(15):after{transform:rotate(84deg)}.builtin-layout-2 .unit:nth-child(14):after{transform:rotate(78deg)}.builtin-layout-2 .unit:nth-child(13):after{transform:rotate(72deg)}.builtin-layout-2 .unit:nth-child(12):after{transform:rotate(66deg)}.builtin-layout-2 .unit:nth-child(11):after{transform:rotate(60deg)}.builtin-layout-2 .unit:nth-child(10):after{transform:rotate(54deg)}.builtin-layout-2 .unit:nth-child(9):after{transform:rotate(48deg)}.builtin-layout-2 .unit:nth-child(8):after{transform:rotate(42deg)}.builtin-layout-2 .unit:nth-child(7):after{transform:rotate(36deg)}.builtin-layout-2 .unit:nth-child(6):after{transform:rotate(30deg)}.builtin-layout-2 .unit:nth-child(5):after{transform:rotate(24deg)}.builtin-layout-2 .unit:nth-child(4):after{transform:rotate(18deg)}.builtin-layout-2 .unit:nth-child(3):after{transform:rotate(12deg)}.builtin-layout-2 .unit:nth-child(2):after{transform:rotate(6deg)}.builtin-layout-2 .unit:nth-child(1):after{transform:rotate(0deg)}.builtin-card{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.collapsible-layout-1{color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-1 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.collapsible-layout-1 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.collapsible-layout-1 .section-2 .sub-1{min-height:1.5em;display:flex;padding:0.6rem 0.8em 0;font-weight:bold;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.collapsible-layout-1 .section-2 .sub-1 div{font-size:1em}.collapsible-layout-1 .section-2 .sub-1 .left{text-align:left;width:80%}.collapsible-layout-1 .section-2 .sub-1 .right{text-align:right;width:20%}.collapsible-layout-1 .section-2 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em}.collapsible-layout-2{color:var(--kup-text-color);box-shadow:rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;border-radius:4px;display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-2 .section-1{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:100%;width:100%}.collapsible-layout-2 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.collapsible-layout-2 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;max-width:75%}.collapsible-layout-2 .section-1 .sub-2 div{font-size:0.875em}.collapsible-layout-2 .section-1 .sub-3{color:var(--color-0);text-align:center;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;overflow:hidden;max-height:calc(24px + 2.25em);padding:0 1em}.collapsible-layout-2 .section-1 .sub-3 kup-image{margin:auto}.collapsible-layout-2 .section-1 .sub-3 div{font-size:1.25em}.collapsible-card .collapsible-trigger{display:none;position:absolute;bottom:0;left:0;height:50px;width:100%}.collapsible-card .collapsible-trigger kup-button{margin:auto;width:48px}.collapsible-card .collapsible-wrapper{overflow:auto}.collapsible-card.collapsible-active{padding-bottom:50px}.collapsible-card.collapsible-active .collapsible-trigger{display:block}.dialog-layout-1{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);color:var(--kup-text-color);display:flex;flex-direction:column;height:100%;width:100%;overflow:auto}.dialog-layout-1 .section-1{display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-1 .section-1 .text{min-width:max-content}.dialog-layout-1 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-2 .section-1{text-align:center;touch-action:none;padding-bottom:1em}.dialog-layout-2 .section-1 .text{padding-top:0.75em}.dialog-layout-2 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2 .section-2{border-top:1px solid var(--kup-border-color);display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-2 .section-2 .text{min-width:max-content}.dialog-layout-2 .section-2 .text:not(.label){font-weight:bold}.dialog-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;overflow:visible;flex-direction:column;height:100%;position:relative;width:100%}.dialog-layout-3 kup-button{margin-left:0}.dialog-layout-3 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right;touch-action:none}.dialog-layout-3 .section-1 kup-button{margin-right:0.25em}.dialog-layout-3 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.dialog-layout-3 ::slotted(.text){color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.dialog-layout-4{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-4 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-4 .section-2{height:100%;overflow:auto;padding:0.25em;touch-action:none}.dialog-layout-5{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-5 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-5 .section-2{height:100%;overflow:auto}.dialog-layout-6{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;max-height:95vh;max-width:95vw;width:100%}.dialog-layout-6 .section-1{display:flex;height:100%;justify-content:space-evenly;overflow:auto}.dialog-layout-6 kup-data-table{width:100%}#drag-handle{-ms-touch-action:none;touch-action:none}#drag-handle:not(.header-bar){display:flex;height:100%}#drag-handle:not(.header-bar) .f-image{margin:auto}#drag-handle.header-bar{background-color:var(--kup-title-background-color);color:var(--kup-title-color);display:flex;flex-direction:row;height:2em;position:relative;width:100%}#drag-handle.header-bar .dialog-title{font-weight:bold;line-height:2em;padding-left:0.5em;padding-right:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#drag-handle.header-bar #dialog-close{cursor:pointer;margin-right:0;transition:opacity 0.25s;position:absolute;right:0;background:var(--kup-title-background-color)}#drag-handle.header-bar #dialog-close:hover{opacity:0.5}.free-layout-1{background:var(--kup-background-color);box-shadow:var(--kup-box-shadow);box-sizing:border-box;overflow:auto;padding:1em}.scalable-layout-1 .descr{font-size:70%;width:100%}.scalable-layout-1 .value{font-size:220%}.scalable-layout-2 #image1 img{object-fit:contain}.scalable-layout-2 .scalable-element{display:grid;grid-template-columns:1fr 1fr 0.5fr 0.5fr}.scalable-layout-2 .icon{margin:auto;font-size:150%;margin-right:5%}.scalable-layout-2 .value-int{font-size:250%}.scalable-layout-2 .value-dec,.scalable-layout-2 .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-2 .value-dec{margin-left:2%}.scalable-layout-2 .unit{margin-left:4%}.scalable-layout-3 .descr{font-size:70%;width:100%}.scalable-layout-3 .value{font-size:220%}.scalable-layout-4 #image1 img{object-fit:contain}.scalable-layout-4 .scalable-element{display:grid;grid-template-columns:1fr 5fr}.scalable-layout-4 .icon{font-size:150%;margin:auto 5% auto auto}.scalable-layout-4 .value-and-unit{display:flex;color:var(--color-0)}.scalable-layout-4 .value-and-unit .value-int{font-size:250%}.scalable-layout-4 .value-and-unit .value-dec,.scalable-layout-4 .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-4 .value-and-unit .value-dec{margin-left:2%}.scalable-layout-4 .value-and-unit .unit{margin-left:4%}.scalable-layout-4 .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}.scalable-layout-5 #image1 img{object-fit:contain}.scalable-layout-5 .scalable-element{display:flex}.scalable-layout-5 .text-wrapper{margin-right:10px}.scalable-layout-5 .icon{font-size:150%;margin:auto;margin-bottom:0.35em}.scalable-layout-5 .value{font-size:200%}.scalable-layout-5 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:-10%}.scalable-layout-6 #image1 img{object-fit:contain}.scalable-layout-6 .scalable-element{display:flex;justify-content:space-between}.scalable-layout-6 .text-wrapper{margin-left:1em}.scalable-layout-6 .icon{font-size:150%;margin:auto}.scalable-layout-6 .value{font-size:220%;text-align:right}.scalable-layout-6 .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}.scalable-layout-7 #image1 img{object-fit:contain}.scalable-layout-7 .scalable-element{display:flex}.scalable-layout-7 .text-wrapper{margin-right:0.5em}.scalable-layout-7 .icon{font-size:150%;margin:auto;margin-top:0.35em}.scalable-layout-7 .value{font-size:200%}.scalable-layout-7 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:10%}.scalable-layout-8 #image1 img{object-fit:contain}.scalable-layout-8 .scalable-element{align-items:center;display:grid;grid-template-columns:0.25fr 1.25fr 0.25fr}.scalable-layout-8 .icon{margin-right:4%;font-size:75%}.scalable-layout-8 .value{margin:0 10%;font-size:250%}.scalable-layout-8 .descr{font-size:60%;text-align:left}.scalable-card{align-items:center;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);border-radius:4px;display:flex;font-size:calc(var(--kup-font-size) * var(--kup_card_multiplier));height:100%;justify-content:center;position:relative;text-align:center;word-break:normal;width:100%}.standard-layout-1{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-1 kup-button{margin-right:0}.standard-layout-1 #image1 img{object-fit:cover}.standard-layout-1.has-actions{padding-bottom:52px}.standard-layout-1.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-1 .section-1{height:60%;width:100%}.standard-layout-1 .section-2{height:40%;width:100%;overflow:auto}.standard-layout-1 .section-2 .sub-2.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-1 .section-2 .sub-2.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-1 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-1 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-1 .section-3 kup-button{margin-left:0.25em}.standard-layout-2{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-2 kup-button{margin-right:0}.standard-layout-2 #image1 img{object-fit:cover}.standard-layout-2.has-actions{padding-bottom:52px}.standard-layout-2.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-2 .section-1{width:100%}.standard-layout-2 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-2 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-2 .section-2{height:75%;width:100%}.standard-layout-2 .section-3{width:100%;overflow:auto}.standard-layout-2 .section-3 .sub-3.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-2 .section-3 .sub-3.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-2 .section-4{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-2 .section-4 kup-button{margin-left:0.25em}.standard-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-3 kup-button{margin-right:0}.standard-layout-3 #image1 img{object-fit:cover}.standard-layout-3.has-actions{padding-bottom:52px}.standard-layout-3.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-3 .section-1{height:75%;width:100%}.standard-layout-3 .section-1 .media{position:relative;height:100%;width:100%}.standard-layout-3 .section-1 .text-on-media{position:absolute;bottom:0;left:0}.standard-layout-3 .section-1 .sub-1.title{color:white;padding:0 1em;padding-top:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-3 .section-1 .sub-1.subtitle{color:white;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-3 .section-2{width:100%;overflow:auto}.standard-layout-3 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-3 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-3 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-3 .section-3 kup-button{margin-left:0.25em}.standard-layout-4{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-4 kup-button{margin-right:0}.standard-layout-4 #image1 img{object-fit:cover}.standard-layout-4.has-actions{padding-bottom:52px}.standard-layout-4.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-4 .section-1{display:flex;height:100%;width:100%}.standard-layout-4 .section-1 .sub-1.image{width:33%}.standard-layout-4 .section-1 .sub-1.text{width:77%}.standard-layout-4 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-4 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-4 .section-2{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-4 .section-2 kup-button{margin-left:0.25em}.standard-layout-5{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);height:100%;overflow:hidden;width:100%}.standard-layout-5 .section-1{background-color:var(--color-0);height:3%}.standard-layout-5 .section-2{display:flex;height:53%}.standard-layout-5 .section-3{display:flex;height:24%}.standard-layout-5 .section-4{display:flex;height:20%;background-color:var(--color-1)}.standard-layout-5 .sub-2{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center}.standard-layout-5 .sub-2.icon{min-height:20px;flex:0 0 10%;max-width:10%}.standard-layout-5 .sub-2.icon #image1{box-sizing:border-box;margin:auto;padding:0 20%}.standard-layout-5 .sub-2.icon #image1 img{object-fit:contain}.standard-layout-5 .sub-2.text{flex:0 0 70%;max-width:70%;margin:auto;height:100%;flex-wrap:nowrap;padding:1em;text-align:left}.standard-layout-5 .sub-2.image{box-sizing:border-box;flex:0 0 20%;padding:1.5vh 0;max-width:20%}.standard-layout-5 .sub-2.image #image2{box-sizing:border-box;margin:auto;padding:0 10%}.standard-layout-5 .sub-2.image #image2 img{object-fit:contain}.standard-layout-5 .sub-2 .desc-text{overflow:auto}.standard-layout-5 .sub-2 .alt-text{color:var(--kup-primary-color)}.standard-layout-5 .sub-3{box-sizing:border-box}.standard-layout-5 .sub-3.progress-bar{margin:auto;padding:0 5%;vertical-align:2px;width:80%}.standard-layout-5 .sub-3.button{margin:auto;text-align:center;width:20%}.standard-layout-5 .sub-3 kup-button{margin:auto}.standard-layout-5 .sub-4{box-sizing:border-box;margin:auto}.standard-layout-5 .sub-4.text{width:50%;font-size:0.875em}.standard-layout-5 .sub-4 div{padding:0 5%}.standard-layout-5 .sub-4 .alt-text{color:var(--color-0);font-size:1em}.standard-layout-5 .alt-text{font-weight:bold}@media screen and (max-width: 767px){.standard-layout-5 .sub-2.image{display:none}.standard-layout-5 .sub-2.icon{flex-basis:30%;max-width:30%}}.standard-layout-6{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%}.standard-layout-6 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.standard-layout-6 .section-1 .alt-text{color:var(--kup_card_dynamic_color_0);height:100%;text-align:center;writing-mode:vertical-lr;margin:auto;font-size:1.25em}.standard-layout-6 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.standard-layout-6 .section-2 .sub-2{margin:auto;text-align:center}.standard-layout-6 .section-2 .sub-2 kup-progress-bar{margin-bottom:1em}.standard-layout-6 kup-button{position:absolute;bottom:2%;right:2%}.standard-layout-7{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.standard-layout-7 #image1 img{margin:auto;object-fit:contain}.standard-layout-7 .section-1{background-color:var(--color-0);height:5%;width:100%}.standard-layout-7 .section-2{height:80%;width:100%;text-align:center;padding:25px 25%;box-sizing:border-box}.standard-layout-7 .section-2 .sub-2{margin:auto}.standard-layout-7 .section-2 .sub-2.image{box-sizing:border-box;height:65%}.standard-layout-7 .section-2 .sub-2.text{font-size:1.4em;letter-spacing:1.2px;padding-top:1em;height:35%}.standard-layout-7 .section-3{display:flex;height:15%;width:100%}.standard-layout-7 .section-3 .alt-text{margin:auto;opacity:0.75;width:50%}.standard-layout-7 .section-3 .alt-text:nth-child(1){margin-left:1em;text-align:left}.standard-layout-7 .section-3 .alt-text:nth-child(2){margin-right:1em;text-align:right}.standard-layout-8{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-8 .background{background-color:var(--color-0);content:\"\";height:100%;width:100%;opacity:0.1;pointer-events:none;position:absolute;top:0;left:0;z-index:1}.standard-layout-8 .section-1{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;overflow:auto;height:auto}.standard-layout-8 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.standard-layout-8 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em;max-width:75%}.standard-layout-8 .section-1 .sub-3{color:var(--color-0);font-weight:bold;text-align:center;font-size:1.2em;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;max-height:calc(24px + 2.25em);padding:0 1em;overflow:hidden}.standard-layout-8 .section-1 .sub-3 kup-image{margin:auto}.standard-layout-8 .section-2{display:flex;height:auto;overflow:auto}.standard-layout-9{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-9 #image1 img{object-fit:contain}.standard-layout-9 .section-1{margin-top:auto;margin-right:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-9 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-9 .sub-2{display:flex;flex-direction:row}.standard-layout-9 .text{text-align:left}.standard-layout-9 .text-wrapper{display:flex;flex-direction:column}.standard-layout-9 .icon{margin:auto;padding:0 1.25em}.standard-layout-9 .description{font-size:1.5em;letter-spacing:1px;padding-left:1.25em;padding-top:0.25em}.standard-layout-9 .title{font-size:2.75em;font-weight:bold}.standard-layout-9 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-10{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-10 #image1 img{object-fit:contain}.standard-layout-10 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-10 .section-2{margin-top:auto;margin-left:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-10 .sub-2{display:flex;flex-direction:row-reverse}.standard-layout-10 .text{text-align:right}.standard-layout-10 .text-wrapper{display:flex;flex-direction:column}.standard-layout-10 .icon{margin:auto;padding:0 1.25em}.standard-layout-10 .description{font-size:1.5em;letter-spacing:1px;padding-right:1.25em;padding-top:0.25em}.standard-layout-10 .title{font-size:2.75em;font-weight:bold}.standard-layout-10 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-11{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-11 #image1 img{object-fit:contain}.standard-layout-11 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;min-width:6em;max-width:6em;overflow:hidden;transition:0.25s ease-in}.standard-layout-11 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-11 .sub-1{background-color:var(--color-0);height:100%;text-align:center;writing-mode:vertical-lr;min-width:6em;display:flex;transition:width 0.25s ease-in}.standard-layout-11 .sub-1 div{font-size:1.25em}.standard-layout-11 .sub-2{display:flex;flex-direction:row}.standard-layout-11 .text:not(.description){text-align:left}.standard-layout-11 .text-wrapper{display:flex;flex-direction:column}.standard-layout-11 .icon{margin:auto;padding:0 1.25em}.standard-layout-11 .description{font-size:1.5em;letter-spacing:1px;margin:auto;color:var(--kup_card_dynamic_color_0)}.standard-layout-11 .title{font-size:2.75em;font-weight:bold;margin-top:auto}.standard-layout-11 .subtitle{font-size:1.5em;opacity:0.75;margin-bottom:auto}.standard-layout-12{background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-12 .section-1{display:inline-flex;border-bottom:1px solid var(--kup-border-color);width:100%}.standard-layout-12 .section-1 kup-button{margin:0}.standard-layout-12 .section-2{display:flex;flex-direction:column}.standard-layout-12 .section-2.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-12 .section-2 kup-date-picker:first-of-type,.standard-layout-12 .section-2 kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-12 .section-3{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-12 .section-3 kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-13{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-13 kup-button{margin-left:0}.standard-layout-13 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right}.standard-layout-13 .section-1 kup-button{margin-right:0.25em}.standard-layout-13 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.standard-layout-13 .text{color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.standard-layout-14{background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-14 .section-1{display:flex;padding:1em}.standard-layout-14 .section-1 .sub-1{width:100%}.standard-layout-14 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-14 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-14 .section-1 .title{font-size:1.25em;margin-top:-0.5em;padding:0 0.25em 0.25em}.standard-layout-14 .section-1 .title .label{cursor:pointer;padding-right:0.25em}.standard-layout-14 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-14 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-14 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-14 .section-1 .info .value{width:100%}.standard-layout-14 .sub-button{display:inline-flex;width:100%}.standard-layout-14 .sub-button kup-button{margin:0}.standard-layout-14 .sub-checkbox{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-14 .sub-checkbox kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-14 .sub-chip{max-width:25vw;overflow:auto;box-shadow:0 3px 2px -2px var(--kup-border-color)}.standard-layout-14 .sub-field{display:flex;flex-direction:column}.standard-layout-14 .sub-field.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-14 .sub-field kup-date-picker:first-of-type,.standard-layout-14 .sub-field kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-14 .sub-spinner{height:100px}.standard-layout-14 .sub-autocomplete{padding-top:1em}.standard-layout-14 .sub-autocomplete kup-autocomplete{margin:auto;padding:0.5em 0;width:max-content}.standard-layout-14 .sub-switch{display:flex;justify-content:space-evenly;padding:2em}.standard-layout-14 .sub-tree{max-height:25vh;overflow:auto}.standard-layout-14 #apply{display:none}.standard-layout-14 #apply.visible{display:block}.standard-layout-14 #open-in-new,.standard-layout-14 #search,.standard-layout-14 #new{margin:0;display:inline-flex}.standard-layout-15{outline:none;display:block;font-size:var(--kup-font-size);background:var(--kup-background-color);color:var(--kup-text-color);box-shadow:var(--kup-box-shadow);border-radius:3px;min-width:350px;max-width:700px}.standard-layout-15 .section-1{box-sizing:border-box;display:flex;padding:1em}.standard-layout-15 .section-1 .sub-1{width:100%}.standard-layout-15 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-15 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-15 .section-1 .title{font-size:1.25em;padding:0 0.25em 0.25em;text-align:left}.standard-layout-15 .section-1 .title .label{cursor:pointer;padding-right:0.25em}.standard-layout-15 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-15 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-15 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-15 .section-1 .info .value{width:100%}.standard-layout-15 .section-2{border-top:1px solid var(--kup-border-color);box-sizing:border-box;height:180px;opacity:1;overflow:auto;transition:height 250ms ease-out, opacity 250ms ease-out}.standard-layout-15 .section-2 .info{box-sizing:border-box;height:100%;padding:1.25em}.standard-layout-15 .section-2 .detail-row{display:flex;justify-content:space-between}.standard-layout-15 .section-2 .detail-row:not(:last-child){margin-bottom:6px}.standard-layout-15 .section-2 .detail-row__label{color:rgba(var(--kup-text-color-rgb), 0.5);margin-top:0.175em;max-width:320px}.standard-layout-15 .section-2 .detail-row__value{color:var(--kup-text-color);font-size:120%;max-width:320px}.standard-layout-15 .section-2 kup-tree{text-align:left}.standard-layout-15 .section-3{border-top:1px solid var(--kup-border-color);display:flex;justify-content:flex-end;padding:6px;padding-top:2px;padding-bottom:2px}.standard-layout-15 .section-3 kup-button{margin:auto 0}.standard-layout-15 #open-in-new,.standard-layout-15 #search,.standard-layout-15 #new{margin:0;display:inline-flex}:host{--kup_card_ripple_color:var(\n --kup-card-ripple-color,\n var(--kup-primary-color)\n );display:block;font-size:var(--kup-font-size);height:var(--kup_card_height);min-height:var(--kup_card_height);min-width:var(--kup_card_width);outline:none;position:relative;width:var(--kup_card_width)}:host([is-menu]){display:none;animation:fade-in 0.25s ease-out}:host([menu-visible]){display:block}#kup-component{height:100%;width:100%}.mdc-ripple-surface{cursor:pointer;flex-direction:column;display:flex;height:100%;position:relative}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_card_ripple_color)}.card-view{animation:fade-in 0.25s ease-out;display:none;height:100%;width:100%}.card-view.visible{display:block}";
|
|
8477
9305
|
|
|
8478
9306
|
let KupCard = class {
|
|
8479
9307
|
constructor(hostRef) {
|
|
@@ -8547,10 +9375,11 @@ let KupCard = class {
|
|
|
8547
9375
|
*/
|
|
8548
9376
|
this.scalingActive = false;
|
|
8549
9377
|
}
|
|
8550
|
-
onKupClick(id) {
|
|
9378
|
+
onKupClick(id, value) {
|
|
8551
9379
|
this.kupClick.emit({
|
|
8552
9380
|
comp: this,
|
|
8553
9381
|
id: id,
|
|
9382
|
+
value: value,
|
|
8554
9383
|
});
|
|
8555
9384
|
}
|
|
8556
9385
|
onKupClose(id) {
|
|
@@ -8621,7 +9450,7 @@ let KupCard = class {
|
|
|
8621
9450
|
const link = links[index];
|
|
8622
9451
|
link.onclick = (e) => {
|
|
8623
9452
|
e.stopPropagation();
|
|
8624
|
-
this.onKupClick(link.id);
|
|
9453
|
+
this.onKupClick(link.id, null);
|
|
8625
9454
|
};
|
|
8626
9455
|
}
|
|
8627
9456
|
}
|
|
@@ -8657,12 +9486,18 @@ let KupCard = class {
|
|
|
8657
9486
|
const method = 'create' + this.layoutNumber;
|
|
8658
9487
|
try {
|
|
8659
9488
|
switch (family) {
|
|
9489
|
+
case kupManager.KupCardFamily.BUILTIN: {
|
|
9490
|
+
return builtinLayouts[method](this);
|
|
9491
|
+
}
|
|
8660
9492
|
case kupManager.KupCardFamily.COLLAPSIBLE: {
|
|
8661
9493
|
return collapsibleLayouts[method](this);
|
|
8662
9494
|
}
|
|
8663
9495
|
case kupManager.KupCardFamily.DIALOG: {
|
|
8664
9496
|
return dialogLayouts[method](this);
|
|
8665
9497
|
}
|
|
9498
|
+
case kupManager.KupCardFamily.FREE: {
|
|
9499
|
+
return freeLayouts[method](this);
|
|
9500
|
+
}
|
|
8666
9501
|
case kupManager.KupCardFamily.SCALABLE: {
|
|
8667
9502
|
return scalableLayouts[method](this);
|
|
8668
9503
|
}
|
|
@@ -8855,14 +9690,14 @@ let KupCard = class {
|
|
|
8855
9690
|
this.kupManager.debug.logRender(this, true);
|
|
8856
9691
|
}
|
|
8857
9692
|
render() {
|
|
8858
|
-
if (!this.data) {
|
|
9693
|
+
if (!this.data && this.rootElement.children.length < 1) {
|
|
8859
9694
|
return;
|
|
8860
9695
|
}
|
|
8861
9696
|
const style = {
|
|
8862
9697
|
'--kup_card_height': this.sizeY ? this.sizeY : '100%',
|
|
8863
9698
|
'--kup_card_width': this.sizeX ? this.sizeX : '100%',
|
|
8864
9699
|
};
|
|
8865
|
-
return (index.h(index.Host, { style: style }, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId, onClick: () => this.onKupClick(null) }, this.getLayout())));
|
|
9700
|
+
return (index.h(index.Host, { style: style }, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId, onClick: () => this.onKupClick(null, null) }, this.getLayout())));
|
|
8866
9701
|
}
|
|
8867
9702
|
disconnectedCallback() {
|
|
8868
9703
|
this.kupManager.interact.unregister([this.rootElement]);
|
|
@@ -11536,8 +12371,8 @@ class KupDataTableState {
|
|
|
11536
12371
|
this.expandGroups = false;
|
|
11537
12372
|
this.groupLabelDisplay = GroupLabelDisplayMode.BOTH;
|
|
11538
12373
|
this.density = 'small';
|
|
11539
|
-
this.enableSortableColumns = false;
|
|
11540
12374
|
this.enableExtraColumns = true;
|
|
12375
|
+
this.enableSortableColumns = false;
|
|
11541
12376
|
this.forceOneLine = false;
|
|
11542
12377
|
this.globalFilter = false;
|
|
11543
12378
|
this.globalFilterValue = '';
|
|
@@ -12294,7 +13129,7 @@ class KupColumnMenu {
|
|
|
12294
13129
|
}
|
|
12295
13130
|
}
|
|
12296
13131
|
|
|
12297
|
-
const kupDataTableCss = ":host{--kup_datatable_background_color:var(\n --kup-datatable-background-color,\n var(--kup-background-color)\n );--kup_datatable_border:var(\n --kup-datatable-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_color:var(--kup-datatable-color, var(--kup-text-color));--kup_datatable_font_family:var(\n --kup-datatable-font-family,\n var(--kup-font-family)\n );--kup_datatable_font_family_monospace:var(\n --kup-datatable-font-family-monospace,\n var(--kup-font-family-monospace)\n );--kup_datatable_font_size:var(\n --kup-datatable-font-size,\n var(--kup-font-size)\n );--kup_datatable_th_border:var(\n --kup-datatable-th-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_th_resize_handle_width:var(\n --kup-datatable-th-resize-handle-width,\n 3px\n );display:block;font-family:var(--kup_datatable_font_family);font-size:var(--kup_datatable_font_size);position:relative}:host([kup-toolbar]) .settings-trigger{height:12px}:host([kup-toolbar]) .customize-panel{visibility:visible}:host([force-one-line]) .f-cell__text{white-space:nowrap}table{background-color:var(--kup_datatable_background_color);border-spacing:0;border-collapse:separate;color:var(--kup_datatable_color);min-width:intrinsic;min-width:-moz-max-content;min-width:-webkit-max-content;text-align:left;width:100%}table.auto-width{min-width:auto;width:0}table>tbody>tr.focus td:first-of-type,table>tbody>tr[kup-drag-over] td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}table>tbody>tr>td:first-of-type,table>tbody>tr>td.placeholder~td:not(.placeholder){border-left:var(--kup_datatable_border)}table>tbody>tr>td:last-of-type{border-right:var(--kup_datatable_border)}table>tbody>tr:last-of-type>td{border-bottom:var(--kup_datatable_border)}table.border-top>tbody>tr:first-of-type>td{border-top:var(--kup_datatable_border)}table.row-separation>tbody>tr>td{border-bottom:var(--kup_datatable_border)}table.column-separation>tbody>tr>td{border-right:var(--kup_datatable_border)}table.noGrid,table.noGrid td{border:none}table tfoot td{border-bottom:var(--kup_datatable_border);border-right:var(--kup_datatable_border);box-sizing:border-box;height:36px;text-align:right;font-weight:bold;padding:0.5em 0.3125em}table tfoot td:hover{background-color:var(--kup_datatable_background_color)}table tfoot td:first-of-type{border-left:var(--kup_datatable_border)}#global-filter{margin:0.5em 0px;min-width:140px;width:100%}.kup-icon:not(.f-image){background-color:var(--kup-title-color);margin:0 0.25em;height:1.25em;width:1.25em}.kup-icon:not(.f-image).kup-ascending-icon,.kup-icon:not(.f-image).kup-descending-icon,.kup-icon:not(.f-image).kup-key-icon,.kup-icon:not(.f-image).kup-filter-remove-icon{height:auto}.kup-icon:not(.f-image).kup-collapsed-icon,.kup-icon:not(.f-image).kup-expanded-icon{float:left}.kup-icon:not(.f-image).kup-filter-remove-icon,.kup-icon:not(.f-image).kup-key-icon{margin:0 0.25em}.below-wrapper{backface-visibility:hidden;height:auto;overflow:auto}.below-wrapper.custom-size{overflow:unset}.below-wrapper:not(.custom-size){overflow-x:auto}.density-dense tbody>tr.group td{padding-top:0.25em;padding-bottom:0.25em}.density-wide tbody>tr.group>td{padding-top:0.75em;padding-bottom:0.75em}.fontsize-small{font-size:calc(var(--kup_datatable_font_size) * 0.75);transition:font-size 0.1s}.fontsize-small .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1) !important}.fontsize-big{font-size:calc(var(--kup_datatable_font_size) * 1.25);transition:font-size 0.1s}.fontsize-big .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1.5) !important}th{background-color:var(--kup-title-background-color);border:var(--kup_datatable_th_border);border-left:0 none;border-bottom-width:2px;box-sizing:border-box;top:0;touch-action:none;transition:background-color 0.25s ease;user-select:none}th:first-of-type{border-left:var(--kup_datatable_th_border)}.header-cell__content{color:var(--kup-title-color);display:flex;justify-content:space-between;padding:0.5em 0.3125em;text-overflow:ellipsis;white-space:nowrap}.header-cell--centered .header-cell__content{justify-content:center}.header-cell--is-number .header-cell__content{justify-content:flex-end}.header-cell__title{overflow:hidden;text-overflow:ellipsis;user-select:none}.header-cell__icons{display:flex}.header-cell__drag-handler{background:rgba(var(--kup-title-color-rgb), 0.25);height:100%;position:absolute;right:0;top:0;touch-action:none;user-select:none;width:var(--kup_datatable_th_resize_handle_width)}.header-cell__drag-handler:hover{background:rgba(var(--kup-title-color-rgb), 0.5)}.header-cell--sortable{cursor:pointer}.header-cell--is-icon{width:30px}tbody{cursor:auto}tbody td{height:0;padding:0}tbody td>*{border:none !important}tbody tr kup-button{max-width:max-content}tbody tr[kup-draggable]{opacity:0.5}tbody tr.selected td{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}tbody tr:hover:not(.group):not(.selected) td{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tbody tr.group{background:var(--kup-title-background-color);border-top:var(--kup_datatable_border);color:var(--kup-title-color);font-weight:bold;cursor:pointer}tbody tr.group.group-label{border-bottom:none}tbody tr.group.group-total{border-top:none;line-height:0.5em}tbody tr.group>td{padding:0.5em 0}tbody tr.group>td .group-cell-content .indent{float:left;margin-left:0.25em}tbody tr.group>td .group-cell-content>span{display:inline-flex;outline:none;margin-left:0.25em}tbody tr.group>td.total{text-align:right;padding:0.5em 0.3125em}tbody tr.group>td.total.negative-number{color:var(--kup-danger-color)}tbody tr>td{box-sizing:border-box;transition:box-shadow 0.1s}tbody tr>td .row-expander{margin-right:0.5em}tbody tr>td .row-action{margin-right:0.2em}tbody tr [row-select-cell]{min-height:40px}tbody tr td[row-action-cell]{width:calc(3em * var(--kup_datatable_row_actions))}tbody tr td[row-action-cell] .f-image{cursor:pointer;margin-left:0.75em;display:inline-block;opacity:1;transition:0.25s ease-in-out}tbody tr td[row-action-cell] .f-image:hover{opacity:0.5}.above-wrapper{display:flex;width:100%}.kup-icon.overlay-action{display:none;position:absolute;top:0.5em;left:calc(50% - 0.625em)}th:hover .kup-icon.overlay-action{display:block}thead th{position:relative}th.obj:hover span:not(.overlay-action){opacity:0.5}.hidden span{color:transparent;position:relative;text-overflow:ellipsis;transition:color 200ms}.hidden span:hover{color:var(--kup_datatable_color)}.totals-value{font-weight:bold}.settings-trigger{cursor:pointer;display:block;width:32px;height:0;border-top-left-radius:25px 30px;border-top-right-radius:25px 30px;background-color:var(--kup-border-color);transition:height 0.25s}.settings-trigger.toggled{background-color:var(--kup-primary-color)}.settings-trigger.toggled .f-image__icon{background:var(--kup-text-on-primary-color) !important}.customize-panel{visibility:hidden;background:var(--kup_datatable_background_color);box-shadow:var(--kup-box-shadow);min-width:200px;width:fit-content;transition:height 0.25s}.customize-panel kup-switch{text-align:center}.customize-element{padding:0 1em 1em 1em}.customize-element:nth-child(1){padding-top:1em}.kup-menu{animation:fade-in 0.25s ease-out;background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);display:none;max-height:33vh;overflow:auto;position:relative;transform:none;transform-origin:unset;transition:height 0.2s;will-change:unset}.kup-menu.visible{display:block}.indent{display:inline-block;height:1em;width:2em}.indent~kup-image,.indent~kup-button{margin:0;vertical-align:middle}.indent~kup-image{display:inline-block}.indent~kup-button,.indent~kup-checkbox{display:inline-block}.kup-icon.kup-ascending-icon{-webkit-mask:var(--kup-ascending-icon);mask:var(--kup-ascending-icon)}.kup-icon.kup-collapsed-icon{-webkit-mask:var(--kup-collapsed-icon);mask:var(--kup-collapsed-icon)}.kup-icon.kup-descending-icon{-webkit-mask:var(--kup-descending-icon);mask:var(--kup-descending-icon)}.kup-icon.kup-expanded-icon{-webkit-mask:var(--kup-expanded-icon);mask:var(--kup-expanded-icon)}.kup-icon.kup-filter-remove-icon{-webkit-mask:var(--kup-filter-remove-icon);mask:var(--kup-filter-remove-icon)}.kup-icon.kup-key-icon{-webkit-mask:var(--kup-key-icon);mask:var(--kup-key-icon)}.paginator-wrapper{display:flex;flex-flow:wrap;min-width:max-content}.paginator-tabs{width:100%}.paginator-tabs kup-paginator{display:inline-flex}.paginator-tabs kup-button{position:relative;height:100%;margin-left:0.25em;float:right}.paginator-tabs .load-more-button{margin:0.5em 0px 0px}sticky-header{display:none}.persistent-header~sticky-header{background:var(--kup-title-background-color);border-bottom:2px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);color:var(--kup-title-color);display:block;opacity:0;overflow:hidden;pointer-events:none;position:fixed;top:0;transition:opacity 0.25s ease-in-out;z-index:10}.persistent-header~sticky-header.activated{opacity:1;pointer-events:all}.persistent-header~sticky-header[hidden]{display:none}.persistent-header~sticky-header tr-sticky{display:inline-flex}.persistent-header~sticky-header th-sticky{box-sizing:border-box;display:inline-flex;padding:0 0.3125em}.persistent-header~sticky-header th-sticky .header-cell__content{width:100%}.fixed-column,.fixed-row{background-color:var(--kup_datatable_background_color);color:var(--kup-text-color);position:sticky}thead .fixed-column,thead .fixed-row,tfoot .fixed-column,tfoot .fixed-row{z-index:10}table.custom-size th{position:sticky;top:0;z-index:10}table.custom-size th.fixed-column{z-index:11}tr:hover .fixed-row,tr:hover .fixed-column{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tr.selected .fixed-column,tr.selected .fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-primary-color-rgb), 0.175) 0%, rgba(var(--kup-primary-color-rgb), 0.175) 0.1%, rgba(var(--kup-primary-color-rgb), 0.175))}.fixed-row{top:0;z-index:4}.fixed-column{left:0;z-index:6}.fixed-column.fixed-row{z-index:8}thead tr .fixed-column,thead tr:hover:not(.group):not(.selected) .fixed-column{background-color:var(--kup-title-background-color);color:var(--kup-title-color)}tfoot tr:hover:not(.group):not(.selected) .fixed-row,tfoot tr:hover:not(.group):not(.selected) .fixed-column{color:var(--kup-text-color);background-color:var(--kup_datatable_background_color)}:host([drag-enabled]) tr{touch-action:none}th[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}th[kup-draggable]{cursor:grabbing !important;opacity:0.5}.droparea{animation:fade-in 0.25s ease-out;background:var(--kup_datatable_background_color);border-radius:8px;box-shadow:var(--kup-box-shadow);display:none;padding:1em 0.5em}.droparea--visible{display:flex}.droparea__groups{border:2px dashed var(--kup-text-color)}.droparea__remove{border:2px dashed var(--kup-danger-color)}.droparea__groups,.droparea__remove{background:var(--kup_datatable_background_color);box-shadow:var(--kup-box-shadow);display:block;height:50px;margin:0 0.5em;opacity:0.5;position:relative;transition:opacity 0.25s;width:50px}.droparea__groups .f-image,.droparea__remove .f-image{width:100%;position:absolute}.droparea__groups .f-image:first-of-type,.droparea__remove .f-image:first-of-type{opacity:1}.droparea__groups .f-image:last-of-type,.droparea__remove .f-image:last-of-type{opacity:0}.droparea__groups[kup-drag-over],.droparea__remove[kup-drag-over]{opacity:1}.droparea__groups[kup-drag-over] .f-image:first-of-type,.droparea__remove[kup-drag-over] .f-image:first-of-type{opacity:0}.droparea__groups[kup-drag-over] .f-image:last-of-type,.droparea__remove[kup-drag-over] .f-image:last-of-type{opacity:1}:host(.kup-cross-selection) #kup-component th.selected{box-shadow:inset 0px 4px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component td.selected.fixed-column,:host(.kup-cross-selection) #kup-component td.selected.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component tr.selected td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component tr.selected td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.15)}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column.selected,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row.selected{background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.15) 0%, rgba(var(--kup-text-color-rgb), 0.15) 0.1%, rgba(var(--kup-text-color-rgb), 0.15))}:host(.kup-layout-fixed) #kup-component table{table-layout:fixed;width:100%}tr.clickable{cursor:pointer}";
|
|
13132
|
+
const kupDataTableCss = ":host{--kup_datatable_background_color:var(\n --kup-datatable-background-color,\n var(--kup-background-color)\n );--kup_datatable_border:var(\n --kup-datatable-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_color:var(--kup-datatable-color, var(--kup-text-color));--kup_datatable_font_family:var(\n --kup-datatable-font-family,\n var(--kup-font-family)\n );--kup_datatable_font_family_monospace:var(\n --kup-datatable-font-family-monospace,\n var(--kup-font-family-monospace)\n );--kup_datatable_font_size:var(\n --kup-datatable-font-size,\n var(--kup-font-size)\n );--kup_datatable_th_border:var(\n --kup-datatable-th-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_th_resize_handle_width:var(\n --kup-datatable-th-resize-handle-width,\n 3px\n );display:block;font-family:var(--kup_datatable_font_family);font-size:var(--kup_datatable_font_size);position:relative}:host([kup-toolbar]) .settings-trigger{height:12px}:host([kup-toolbar]) .customize-panel{visibility:visible}:host([force-one-line]) .f-cell__text{white-space:nowrap}table{background-color:var(--kup_datatable_background_color);border-spacing:0;border-collapse:separate;color:var(--kup_datatable_color);min-width:intrinsic;min-width:-moz-max-content;min-width:-webkit-max-content;text-align:left;width:100%}table.auto-width{min-width:auto;width:0}table>tbody>tr.focus td:first-of-type,table>tbody>tr[kup-drag-over] td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}table>tbody>tr>td:first-of-type,table>tbody>tr>td.placeholder~td:not(.placeholder){border-left:var(--kup_datatable_border)}table>tbody>tr>td:last-of-type{border-right:var(--kup_datatable_border)}table>tbody>tr:last-of-type>td{border-bottom:var(--kup_datatable_border)}table.border-top>tbody>tr:first-of-type>td{border-top:var(--kup_datatable_border)}table.row-separation>tbody>tr>td{border-bottom:var(--kup_datatable_border)}table.column-separation>tbody>tr>td{border-right:var(--kup_datatable_border)}table.noGrid,table.noGrid td{border:none}table tfoot td{border-bottom:var(--kup_datatable_border);border-right:var(--kup_datatable_border);box-sizing:border-box;height:36px;text-align:right;font-weight:bold;padding:0.5em 0.3125em}table tfoot td:hover{background-color:var(--kup_datatable_background_color)}table tfoot td:first-of-type{border-left:var(--kup_datatable_border)}#global-filter{margin:0.5em 0px;min-width:140px;width:100%}.kup-icon:not(.f-image){background-color:var(--kup-title-color);margin:0 0.25em;height:1.25em;width:1.25em}.kup-icon:not(.f-image).kup-ascending-icon,.kup-icon:not(.f-image).kup-descending-icon,.kup-icon:not(.f-image).kup-key-icon,.kup-icon:not(.f-image).kup-filter-remove-icon{height:auto}.kup-icon:not(.f-image).kup-collapsed-icon,.kup-icon:not(.f-image).kup-expanded-icon{float:left}.kup-icon:not(.f-image).kup-filter-remove-icon,.kup-icon:not(.f-image).kup-key-icon{margin:0 0.25em}.below-wrapper{backface-visibility:hidden;height:auto;overflow:auto}.below-wrapper.custom-size{overflow:unset}.below-wrapper:not(.custom-size){overflow-x:auto}.density-dense tbody>tr.group td{padding-top:0.25em;padding-bottom:0.25em}.density-wide tbody>tr.group>td{padding-top:0.75em;padding-bottom:0.75em}.fontsize-small{font-size:calc(var(--kup_datatable_font_size) * 0.75);transition:font-size 0.1s}.fontsize-small .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1) !important}.fontsize-big{font-size:calc(var(--kup_datatable_font_size) * 1.25);transition:font-size 0.1s}.fontsize-big .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1.5) !important}th{background-color:var(--kup-title-background-color);border:var(--kup_datatable_th_border);border-left:0 none;border-bottom-width:2px;box-sizing:border-box;top:0;touch-action:none;transition:background-color 0.25s ease;user-select:none}th:first-of-type{border-left:var(--kup_datatable_th_border)}.header-cell__content{color:var(--kup-title-color);display:flex;justify-content:space-between;padding:0.5em 0.3125em;text-overflow:ellipsis;white-space:nowrap}.header-cell--centered .header-cell__content{justify-content:center}.header-cell--is-number .header-cell__content{justify-content:flex-end}.header-cell__title{overflow:hidden;text-overflow:ellipsis;user-select:none}.header-cell__icons{display:flex}.header-cell__drag-handler{background:rgba(var(--kup-title-color-rgb), 0.25);height:100%;position:absolute;right:0;top:0;touch-action:none;user-select:none;width:var(--kup_datatable_th_resize_handle_width)}.header-cell__drag-handler:hover{background:rgba(var(--kup-title-color-rgb), 0.5)}.header-cell--sortable{cursor:pointer}.header-cell--is-icon{width:30px}tbody{cursor:auto}tbody td{height:0;padding:0}tbody td>*{border:none !important}tbody tr kup-button{max-width:max-content}tbody tr[kup-draggable]{opacity:0.5}tbody tr.selected td{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}tbody tr:hover:not(.group):not(.selected) td{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tbody tr.group{background:var(--kup-title-background-color);border-top:var(--kup_datatable_border);color:var(--kup-title-color);font-weight:bold;cursor:pointer}tbody tr.group.group-label{border-bottom:none}tbody tr.group.group-total{border-top:none;line-height:0.5em}tbody tr.group>td{padding:0.5em 0}tbody tr.group>td .group-cell-content .indent{float:left;margin-left:0.25em}tbody tr.group>td .group-cell-content>span{display:inline-flex;outline:none;margin-left:0.25em}tbody tr.group>td.total{text-align:right;padding:0.5em 0.3125em}tbody tr.group>td.total.negative-number{color:var(--kup-danger-color)}tbody tr>td{box-sizing:border-box;transition:box-shadow 0.1s}tbody tr>td .row-expander{margin-right:0.5em}tbody tr>td .row-action{margin-right:0.2em}tbody tr [row-select-cell]{min-height:40px}tbody tr td[row-action-cell]{width:calc(3em * var(--kup_datatable_row_actions))}tbody tr td[row-action-cell] .f-image{cursor:pointer;margin-left:0.75em;display:inline-block;opacity:1;transition:0.25s ease-in-out}tbody tr td[row-action-cell] .f-image:hover{opacity:0.5}.above-wrapper{display:flex;width:100%}.kup-icon.overlay-action{display:none;position:absolute;top:0.5em;left:calc(50% - 0.625em)}th:hover .kup-icon.overlay-action{display:block}thead th{position:relative}th.obj:hover span:not(.overlay-action){opacity:0.5}.hidden span{color:transparent;position:relative;text-overflow:ellipsis;transition:color 200ms}.hidden span:hover{color:var(--kup_datatable_color)}.totals-value{font-weight:bold}.settings-trigger{cursor:pointer;display:block;width:32px;height:0;border-top-left-radius:25px 30px;border-top-right-radius:25px 30px;background-color:var(--kup-border-color);transition:height 0.25s}.settings-trigger.toggled{background-color:var(--kup-primary-color)}.settings-trigger.toggled .f-image__icon{background:var(--kup-text-on-primary-color) !important}.indent{display:inline-block;height:1em;width:2em}.indent~kup-image,.indent~kup-button{margin:0;vertical-align:middle}.indent~kup-image{display:inline-block}.indent~kup-button,.indent~kup-checkbox{display:inline-block}.kup-icon.kup-ascending-icon{-webkit-mask:var(--kup-ascending-icon);mask:var(--kup-ascending-icon)}.kup-icon.kup-collapsed-icon{-webkit-mask:var(--kup-collapsed-icon);mask:var(--kup-collapsed-icon)}.kup-icon.kup-descending-icon{-webkit-mask:var(--kup-descending-icon);mask:var(--kup-descending-icon)}.kup-icon.kup-expanded-icon{-webkit-mask:var(--kup-expanded-icon);mask:var(--kup-expanded-icon)}.kup-icon.kup-filter-remove-icon{-webkit-mask:var(--kup-filter-remove-icon);mask:var(--kup-filter-remove-icon)}.kup-icon.kup-key-icon{-webkit-mask:var(--kup-key-icon);mask:var(--kup-key-icon)}.paginator-wrapper{display:flex;flex-flow:wrap;min-width:max-content}.paginator-tabs{width:100%}.paginator-tabs kup-paginator{display:inline-flex}.paginator-tabs kup-button{position:relative;height:100%;margin-left:0.25em;float:right}.paginator-tabs .load-more-button{margin:0.5em 0px 0px}sticky-header{display:none}.persistent-header~sticky-header{background:var(--kup-title-background-color);border-bottom:2px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);color:var(--kup-title-color);display:block;opacity:0;overflow:hidden;pointer-events:none;position:fixed;top:0;transition:opacity 0.25s ease-in-out;z-index:10}.persistent-header~sticky-header.activated{opacity:1;pointer-events:all}.persistent-header~sticky-header[hidden]{display:none}.persistent-header~sticky-header tr-sticky{display:inline-flex}.persistent-header~sticky-header th-sticky{box-sizing:border-box;display:inline-flex;padding:0 0.3125em}.persistent-header~sticky-header th-sticky .header-cell__content{width:100%}.fixed-column,.fixed-row{background-color:var(--kup_datatable_background_color);color:var(--kup-text-color);position:sticky}thead .fixed-column,thead .fixed-row,tfoot .fixed-column,tfoot .fixed-row{z-index:10}table.custom-size th{position:sticky;top:0;z-index:10}table.custom-size th.fixed-column{z-index:11}tr:hover .fixed-row,tr:hover .fixed-column{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tr.selected .fixed-column,tr.selected .fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-primary-color-rgb), 0.175) 0%, rgba(var(--kup-primary-color-rgb), 0.175) 0.1%, rgba(var(--kup-primary-color-rgb), 0.175))}.fixed-row{top:0;z-index:4}.fixed-column{left:0;z-index:6}.fixed-column.fixed-row{z-index:8}thead tr .fixed-column,thead tr:hover:not(.group):not(.selected) .fixed-column{background-color:var(--kup-title-background-color);color:var(--kup-title-color)}tfoot tr:hover:not(.group):not(.selected) .fixed-row,tfoot tr:hover:not(.group):not(.selected) .fixed-column{color:var(--kup-text-color);background-color:var(--kup_datatable_background_color)}:host([drag-enabled]) tr{touch-action:none}th[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}th[kup-draggable]{cursor:grabbing !important;opacity:0.5}.droparea{animation:fade-in 0.25s ease-out;background:var(--kup_datatable_background_color);border-radius:8px;box-shadow:var(--kup-box-shadow);display:none;padding:1em 0.5em}.droparea--visible{display:flex}.droparea__groups{border:2px dashed var(--kup-text-color)}.droparea__remove{border:2px dashed var(--kup-danger-color)}.droparea__groups,.droparea__remove{background:var(--kup_datatable_background_color);box-shadow:var(--kup-box-shadow);display:block;height:50px;margin:0 0.5em;opacity:0.5;position:relative;transition:opacity 0.25s;width:50px}.droparea__groups .f-image,.droparea__remove .f-image{width:100%;position:absolute}.droparea__groups .f-image:first-of-type,.droparea__remove .f-image:first-of-type{opacity:1}.droparea__groups .f-image:last-of-type,.droparea__remove .f-image:last-of-type{opacity:0}.droparea__groups[kup-drag-over],.droparea__remove[kup-drag-over]{opacity:1}.droparea__groups[kup-drag-over] .f-image:first-of-type,.droparea__remove[kup-drag-over] .f-image:first-of-type{opacity:0}.droparea__groups[kup-drag-over] .f-image:last-of-type,.droparea__remove[kup-drag-over] .f-image:last-of-type{opacity:1}:host(.kup-cross-selection) #kup-component th.selected{box-shadow:inset 0px 4px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component td.selected.fixed-column,:host(.kup-cross-selection) #kup-component td.selected.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component tr.selected td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component tr.selected td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.15)}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column.selected,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row.selected{background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.15) 0%, rgba(var(--kup-text-color-rgb), 0.15) 0.1%, rgba(var(--kup-text-color-rgb), 0.15))}:host(.kup-layout-fixed) #kup-component table{table-layout:fixed;width:100%}tr.clickable{cursor:pointer}";
|
|
12298
13133
|
|
|
12299
13134
|
let KupDataTable = class {
|
|
12300
13135
|
constructor(hostRef) {
|
|
@@ -12577,6 +13412,7 @@ let KupDataTable = class {
|
|
|
12577
13412
|
this.removeDropareaRef = null;
|
|
12578
13413
|
this.groupsDropareaRef = null;
|
|
12579
13414
|
this.clickCb = null;
|
|
13415
|
+
this.clickCbCustomPanel = null;
|
|
12580
13416
|
/**
|
|
12581
13417
|
* Reference to the row detail card.
|
|
12582
13418
|
*/
|
|
@@ -13569,11 +14405,9 @@ let KupDataTable = class {
|
|
|
13569
14405
|
}
|
|
13570
14406
|
}
|
|
13571
14407
|
customizePanelPosition() {
|
|
13572
|
-
if (this.customizeTopButtonRef
|
|
13573
|
-
this.kupManager.dynamicPosition.
|
|
13574
|
-
|
|
13575
|
-
if (this.customizeBottomButtonRef) {
|
|
13576
|
-
this.kupManager.dynamicPosition.register(this.customizeBottomPanelRef, this.customizeBottomButtonRef);
|
|
14408
|
+
if (this.customizeTopButtonRef &&
|
|
14409
|
+
!this.kupManager.dynamicPosition.isRegistered(this.customizeTopPanelRef)) {
|
|
14410
|
+
this.kupManager.dynamicPosition.register(this.customizeTopPanelRef, this.customizeTopButtonRef, 0, kupManager.KupDynamicPositionPlacement.BOTTOM, true);
|
|
13577
14411
|
}
|
|
13578
14412
|
}
|
|
13579
14413
|
rowsPointLength() {
|
|
@@ -14840,13 +15674,17 @@ let KupDataTable = class {
|
|
|
14840
15674
|
}
|
|
14841
15675
|
renderFooter() {
|
|
14842
15676
|
let extraCells = 0;
|
|
14843
|
-
// Composes initial cells if necessary
|
|
14844
15677
|
let selectRowCell = null;
|
|
14845
15678
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
14846
15679
|
extraCells++;
|
|
14847
15680
|
const fixedCellStyle = this.composeFixedCellStyleAndClass(extraCells, 0, extraCells);
|
|
14848
15681
|
selectRowCell = (index.h("td", { class: fixedCellStyle ? fixedCellStyle.fixedCellClasses : null, style: fixedCellStyle ? fixedCellStyle.fixedCellStyle : null }));
|
|
14849
15682
|
}
|
|
15683
|
+
if (this.rowActions) {
|
|
15684
|
+
extraCells++;
|
|
15685
|
+
const fixedCellStyle = this.composeFixedCellStyleAndClass(extraCells, 0, extraCells);
|
|
15686
|
+
(index.h("td", { class: fixedCellStyle ? fixedCellStyle.fixedCellClasses : null, style: fixedCellStyle ? fixedCellStyle.fixedCellStyle : null }));
|
|
15687
|
+
}
|
|
14850
15688
|
// Action cell
|
|
14851
15689
|
let actionsCell = null;
|
|
14852
15690
|
if (this.hasRowActions()) {
|
|
@@ -15284,19 +16122,28 @@ let KupDataTable = class {
|
|
|
15284
16122
|
}
|
|
15285
16123
|
}
|
|
15286
16124
|
openCustomSettings() {
|
|
15287
|
-
this.customizeTopPanelRef.
|
|
16125
|
+
this.customizeTopPanelRef.menuVisible = true;
|
|
15288
16126
|
this.customizeTopButtonRef.classList.add('toggled');
|
|
15289
16127
|
this.kupManager.dynamicPosition.start(this.customizeTopPanelRef);
|
|
15290
16128
|
this.openedCustomSettings = true;
|
|
16129
|
+
if (!this.clickCbCustomPanel) {
|
|
16130
|
+
this.clickCbCustomPanel = {
|
|
16131
|
+
cb: () => {
|
|
16132
|
+
this.closeCustomSettings();
|
|
16133
|
+
},
|
|
16134
|
+
el: this.customizeTopPanelRef,
|
|
16135
|
+
};
|
|
16136
|
+
}
|
|
16137
|
+
this.kupManager.addClickCallback(this.clickCbCustomPanel, true);
|
|
15291
16138
|
}
|
|
15292
16139
|
closeCustomSettings() {
|
|
15293
16140
|
this.customizeTopButtonRef.classList.remove('toggled');
|
|
15294
16141
|
if (this.customizeTopPanelRef == null) {
|
|
15295
16142
|
return;
|
|
15296
16143
|
}
|
|
15297
|
-
this.customizeTopPanelRef.
|
|
15298
|
-
this.kupManager.dynamicPosition.stop(this.customizeTopPanelRef);
|
|
16144
|
+
this.customizeTopPanelRef.menuVisible = false;
|
|
15299
16145
|
this.openedCustomSettings = false;
|
|
16146
|
+
this.kupManager.removeClickCallback(this.clickCbCustomPanel);
|
|
15300
16147
|
}
|
|
15301
16148
|
renderPaginator(top) {
|
|
15302
16149
|
return (index.h("div", { class: "paginator-wrapper" }, index.h("div", { class: "paginator-tabs" }, !this.lazyLoadRows &&
|
|
@@ -15317,9 +16164,9 @@ let KupDataTable = class {
|
|
|
15317
16164
|
totalsMatrix = this.renderTotalsMatrix();
|
|
15318
16165
|
}
|
|
15319
16166
|
}
|
|
15320
|
-
return (index.h("
|
|
16167
|
+
return (index.h("kup-card", { customStyle: "::slotted(kup-switch) { width: max-content !important; } ::slotted(*) { margin: auto !important; } ::slotted(.customize-element) { margin: auto !important; padding: 0 1em 1em 1em !important; width: max-content !important; } ::slotted(.customize-element):nth-child(1) { padding-top: 1em !important; }", isMenu: true, layoutFamily: kupManager.KupCardFamily.FREE, ref: (el) => {
|
|
15321
16168
|
this.customizeTopPanelRef = el;
|
|
15322
|
-
} }, density, grid, fontsize, transpose, index.h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: this.kupManager.language.translate(kupManager.KupLanguageGeneric.DRAG_AND_DROP), leadingLabel: true, "onkup-switch-change": () => (this.dragEnabled = !this.dragEnabled) }), index.h("kup-switch", { class: "customize-element", checked: this.editableData, label: this.kupManager.language.translate(kupManager.KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), index.h("kup-button", { title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.TOGGLE) +
|
|
16169
|
+
}, sizeX: "360px", sizeY: "300px" }, density, grid, fontsize, transpose, index.h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: this.kupManager.language.translate(kupManager.KupLanguageGeneric.DRAG_AND_DROP), leadingLabel: true, "onkup-switch-change": () => (this.dragEnabled = !this.dragEnabled) }), index.h("kup-switch", { class: "customize-element", checked: this.editableData, label: this.kupManager.language.translate(kupManager.KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), index.h("kup-button", { title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.TOGGLE) +
|
|
15323
16170
|
' Magic Box ' +
|
|
15324
16171
|
'(' +
|
|
15325
16172
|
this.kupManager.language.translate(kupManager.KupLanguageGeneric.EXPERIMENTAL_FEAT) +
|
|
@@ -15680,6 +16527,9 @@ let KupDataTable = class {
|
|
|
15680
16527
|
if (dynamicPositionElements.length > 0) {
|
|
15681
16528
|
this.kupManager.dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
|
|
15682
16529
|
}
|
|
16530
|
+
if (this.customizeTopPanelRef) {
|
|
16531
|
+
this.customizeTopPanelRef.remove();
|
|
16532
|
+
}
|
|
15683
16533
|
if (this.columnMenuCard) {
|
|
15684
16534
|
this.columnMenuCard.remove();
|
|
15685
16535
|
}
|
|
@@ -15708,26 +16558,7 @@ let KupDataTable = class {
|
|
|
15708
16558
|
};
|
|
15709
16559
|
KupDataTable.style = kupDataTableCss;
|
|
15710
16560
|
|
|
15711
|
-
|
|
15712
|
-
* Props of the kup-date-picker component.
|
|
15713
|
-
* Used to export every prop in an object.
|
|
15714
|
-
*/
|
|
15715
|
-
var KupDatePickerProps;
|
|
15716
|
-
(function (KupDatePickerProps) {
|
|
15717
|
-
KupDatePickerProps["customStyle"] = "Custom style of the component.";
|
|
15718
|
-
KupDatePickerProps["data"] = "Props of the sub-components.";
|
|
15719
|
-
KupDatePickerProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
|
|
15720
|
-
KupDatePickerProps["firstDayIndex"] = "First day number (0 - sunday, 1 - monday, ...)";
|
|
15721
|
-
KupDatePickerProps["initialValue"] = "Sets the initial value of the component";
|
|
15722
|
-
})(KupDatePickerProps || (KupDatePickerProps = {}));
|
|
15723
|
-
var SourceEvent;
|
|
15724
|
-
(function (SourceEvent) {
|
|
15725
|
-
SourceEvent["DATE"] = "date";
|
|
15726
|
-
SourceEvent["MONTH"] = "month";
|
|
15727
|
-
SourceEvent["YEAR"] = "year";
|
|
15728
|
-
})(SourceEvent || (SourceEvent = {}));
|
|
15729
|
-
|
|
15730
|
-
const kupDatePickerCss = ":host{display:block;font-size:var(--kup-font-size)}#date-picker-div{outline:none;pointer-events:all;background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);display:none;overflow:hidden;padding:10px;box-sizing:border-box;flex-direction:column;justify-content:center;height:22em;width:22em;position:absolute;z-index:1}#date-picker-div.visible{display:block}#date-picker-div.dynamic-position-active{display:flex}#date-picker-div .section-1{box-sizing:border-box;height:5em;overflow:auto;padding-bottom:1em;width:100%}#date-picker-div .section-1 .sub-1{display:flex;flex-direction:row;justify-content:center}#date-picker-div .section-2{height:calc(100% - 60px);overflow:auto;width:100%}#date-picker-div #prev-page{margin-left:auto}#date-picker-div #change-view-button{margin:auto;width:12em;text-align:center}#date-picker-div #next-page{margin-right:auto}#date-picker-div #calendar{border-collapse:collapse;width:100%}#date-picker-div thead{border-bottom:1px solid var(--kup-border-color)}#date-picker-div .item-text{color:rgba(var(--kup-text-color-rgb), 0.5)}#date-picker-div .item{text-align:center}#date-picker-div .item:not(.selected) .item-number:hover{background-color:var(--kup-hover-background-color)}#date-picker-div .item.selected .item-number,#date-picker-div .item.selected .item-number:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}#date-picker-div .item-number{border-radius:50%;cursor:pointer;display:flex;justify-content:center;line-height:2.5em;margin:auto;width:2.5em;transition:background-color 0.25s;text-transform:capitalize}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}";
|
|
16561
|
+
const kupDatePickerCss = ":host{display:block;font-size:var(--kup-font-size)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}";
|
|
15731
16562
|
|
|
15732
16563
|
let KupDatePicker = class {
|
|
15733
16564
|
constructor(hostRef) {
|
|
@@ -15783,14 +16614,12 @@ let KupDatePicker = class {
|
|
|
15783
16614
|
* Instance of the KupManager class.
|
|
15784
16615
|
*/
|
|
15785
16616
|
this.kupManager = kupManager.kupManagerInstance();
|
|
15786
|
-
this.calendarView = SourceEvent.DATE;
|
|
15787
16617
|
this.textfieldEl = null;
|
|
15788
16618
|
this.pickerContainerEl = null;
|
|
15789
16619
|
this.pickerEl = {
|
|
15790
16620
|
value: new Date().toISOString(),
|
|
15791
16621
|
date: new Date(),
|
|
15792
16622
|
};
|
|
15793
|
-
this.pickerOpened = false;
|
|
15794
16623
|
this.clickCb = null;
|
|
15795
16624
|
}
|
|
15796
16625
|
onKupDatePickerItemClick(value) {
|
|
@@ -15805,6 +16634,7 @@ let KupDatePicker = class {
|
|
|
15805
16634
|
id: this.rootElement.id,
|
|
15806
16635
|
value: this.value,
|
|
15807
16636
|
});
|
|
16637
|
+
this.setFocus();
|
|
15808
16638
|
}
|
|
15809
16639
|
onKupClearIconClick() {
|
|
15810
16640
|
this.setPickerValueSelected('');
|
|
@@ -15818,19 +16648,6 @@ let KupDatePicker = class {
|
|
|
15818
16648
|
id: this.rootElement.id,
|
|
15819
16649
|
});
|
|
15820
16650
|
}
|
|
15821
|
-
onKupDatePickerMonthYearItemClick(value) {
|
|
15822
|
-
switch (this.calendarView) {
|
|
15823
|
-
case SourceEvent.MONTH: {
|
|
15824
|
-
this.calendarView = SourceEvent.DATE;
|
|
15825
|
-
break;
|
|
15826
|
-
}
|
|
15827
|
-
case SourceEvent.YEAR: {
|
|
15828
|
-
this.calendarView = SourceEvent.MONTH;
|
|
15829
|
-
break;
|
|
15830
|
-
}
|
|
15831
|
-
}
|
|
15832
|
-
this.refreshPickerComponentValue(value);
|
|
15833
|
-
}
|
|
15834
16651
|
onKupBlur() {
|
|
15835
16652
|
this.kupBlur.emit({
|
|
15836
16653
|
id: this.rootElement.id,
|
|
@@ -16006,20 +16823,22 @@ let KupDatePicker = class {
|
|
|
16006
16823
|
return this.value;
|
|
16007
16824
|
}
|
|
16008
16825
|
openPicker() {
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16826
|
+
const textfieldEl = this.textfieldEl;
|
|
16827
|
+
this.pickerContainerEl.menuVisible = true;
|
|
16828
|
+
const elStyle = this.pickerContainerEl.style;
|
|
16829
|
+
elStyle.height = 'auto';
|
|
16830
|
+
elStyle.minWidth = this.textfieldEl.parentElement.clientWidth + 'px';
|
|
16013
16831
|
this.refreshPickerComponentValue(this.getValueForPickerComponent());
|
|
16014
16832
|
if (textfieldEl != null) {
|
|
16015
16833
|
textfieldEl.classList.add('toggled');
|
|
16016
16834
|
}
|
|
16017
|
-
if (
|
|
16018
|
-
|
|
16019
|
-
|
|
16020
|
-
|
|
16021
|
-
|
|
16835
|
+
if (this.kupManager.dynamicPosition.isRegistered(this.pickerContainerEl)) {
|
|
16836
|
+
this.kupManager.dynamicPosition.changeAnchor(this.pickerContainerEl, this.textfieldEl.parentElement);
|
|
16837
|
+
}
|
|
16838
|
+
else {
|
|
16839
|
+
this.kupManager.dynamicPosition.register(this.pickerContainerEl, this.textfieldEl.parentElement, 0, kupManager.KupDynamicPositionPlacement.AUTO, true);
|
|
16022
16840
|
}
|
|
16841
|
+
this.kupManager.dynamicPosition.start(this.pickerContainerEl);
|
|
16023
16842
|
if (!this.clickCb) {
|
|
16024
16843
|
this.clickCb = {
|
|
16025
16844
|
cb: () => {
|
|
@@ -16036,22 +16855,21 @@ let KupDatePicker = class {
|
|
|
16036
16855
|
return;
|
|
16037
16856
|
}
|
|
16038
16857
|
let textfieldEl = this.textfieldEl;
|
|
16039
|
-
let containerEl = this.pickerContainerEl;
|
|
16040
|
-
this.pickerOpened = false;
|
|
16041
16858
|
if (textfieldEl != null) {
|
|
16042
16859
|
textfieldEl.classList.remove('toggled');
|
|
16043
16860
|
}
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
}
|
|
16861
|
+
this.pickerContainerEl.menuVisible = false;
|
|
16862
|
+
this.kupManager.dynamicPosition.stop(this.pickerContainerEl);
|
|
16047
16863
|
}
|
|
16048
16864
|
isPickerOpened() {
|
|
16049
|
-
return this.
|
|
16865
|
+
return this.pickerContainerEl.menuVisible == true;
|
|
16050
16866
|
}
|
|
16051
16867
|
getTextFieldId() {
|
|
16052
16868
|
return this.textfieldEl.id;
|
|
16053
16869
|
}
|
|
16054
16870
|
prepTextfield(initialValue) {
|
|
16871
|
+
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
16872
|
+
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
16055
16873
|
const textfieldData = Object.assign({}, this.data['kup-text-field']);
|
|
16056
16874
|
if (!textfieldData.icon) {
|
|
16057
16875
|
textfieldData.icon = 'calendar';
|
|
@@ -16059,7 +16877,7 @@ let KupDatePicker = class {
|
|
|
16059
16877
|
if (textfieldData.icon) {
|
|
16060
16878
|
textfieldData.trailingIcon = true;
|
|
16061
16879
|
}
|
|
16062
|
-
return (index.h(fCell.FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, id: this.rootElement.id + '_text-field', value: initialValue, onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onkupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), this.prepDatePicker()));
|
|
16880
|
+
return (index.h(fCell.FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, id: this.rootElement.id + '_text-field', value: initialValue, onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onkupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), this.prepDatePicker()));
|
|
16063
16881
|
}
|
|
16064
16882
|
getInitEndYear(curYear) {
|
|
16065
16883
|
let initYear = curYear - (curYear % 10);
|
|
@@ -16081,254 +16899,17 @@ let KupDatePicker = class {
|
|
|
16081
16899
|
return idConc.indexOf('#' + id + '#') >= 0;
|
|
16082
16900
|
}
|
|
16083
16901
|
prepDatePicker() {
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16088
|
-
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
|
|
16092
|
-
|
|
16093
|
-
|
|
16094
|
-
|
|
16095
|
-
break;
|
|
16096
|
-
}
|
|
16097
|
-
case SourceEvent.MONTH: {
|
|
16098
|
-
changeViewButtonLabel = curYear.toString();
|
|
16099
|
-
break;
|
|
16100
|
-
}
|
|
16101
|
-
case SourceEvent.YEAR: {
|
|
16102
|
-
changeViewButtonLabel =
|
|
16103
|
-
initYear.toString() + ' - ' + endYear.toString();
|
|
16104
|
-
break;
|
|
16105
|
-
}
|
|
16106
|
-
}
|
|
16107
|
-
let prevButtonComp = null;
|
|
16108
|
-
let nextButtonComp = null;
|
|
16109
|
-
prevButtonComp = (index.h("kup-button", { id: "prev-page", icon: "chevron_left", "onkup-button-click": () => this.prevPage() }));
|
|
16110
|
-
nextButtonComp = (index.h("kup-button", { id: "next-page", icon: "chevron_right", "onkup-button-click": () => this.nextPage() }));
|
|
16111
|
-
return (index.h("div", { id: "date-picker-div", ref: (el) => (this.pickerContainerEl = el) }, index.h("div", { class: "section-1" }, index.h("div", { class: "sub-1 nav" }, prevButtonComp, index.h("kup-button", { customStyle: "#kup-component button {text-transform:capitalize}", id: "change-view-button", styling: fButtonDeclarations.FButtonStyling.FLAT, label: changeViewButtonLabel, "onkup-button-click": () => this.changeView() }), nextButtonComp)), index.h("div", { class: "section-2" }, this.createCalendar())));
|
|
16112
|
-
}
|
|
16113
|
-
createCalendar() {
|
|
16114
|
-
switch (this.calendarView) {
|
|
16115
|
-
case SourceEvent.DATE: {
|
|
16116
|
-
return this.createDaysCalendar();
|
|
16117
|
-
}
|
|
16118
|
-
case SourceEvent.MONTH: {
|
|
16119
|
-
return this.createMonthsCalendar();
|
|
16120
|
-
}
|
|
16121
|
-
case SourceEvent.YEAR: {
|
|
16122
|
-
return this.createYearsCalendar();
|
|
16123
|
-
}
|
|
16124
|
-
}
|
|
16125
|
-
}
|
|
16126
|
-
createDaysCalendar() {
|
|
16127
|
-
let days = utils.getDaysOfWeekAsStringByLocale(this.firstDayIndex);
|
|
16128
|
-
let date = this.pickerEl.date;
|
|
16129
|
-
let selecteDate = new Date(date);
|
|
16130
|
-
let thead = [];
|
|
16131
|
-
let tbody = [];
|
|
16132
|
-
for (let index$1 = 0; index$1 < days.length; index$1++) {
|
|
16133
|
-
thead.push(index.h("th", null, index.h("span", { class: "item-text" }, days[index$1])));
|
|
16134
|
-
}
|
|
16135
|
-
let firstMonthDay = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
16136
|
-
let lastMonthDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
16137
|
-
let finish = false;
|
|
16138
|
-
let currentDayIndex = this.firstDayIndex;
|
|
16139
|
-
let firstMonthDayIndex = firstMonthDay.getDay();
|
|
16140
|
-
let row = [];
|
|
16141
|
-
let daysForRowAdded = 0;
|
|
16142
|
-
while (!finish) {
|
|
16143
|
-
if (currentDayIndex == firstMonthDayIndex) {
|
|
16144
|
-
break;
|
|
16145
|
-
}
|
|
16146
|
-
row.push(index.h("td", { class: "item empty" }));
|
|
16147
|
-
currentDayIndex++;
|
|
16148
|
-
daysForRowAdded++;
|
|
16149
|
-
if (currentDayIndex > 6) {
|
|
16150
|
-
currentDayIndex = 0;
|
|
16151
|
-
}
|
|
16152
|
-
}
|
|
16153
|
-
let dayCount = 1;
|
|
16154
|
-
while (dayCount <= lastMonthDay.getDate()) {
|
|
16155
|
-
for (let i = daysForRowAdded; i < 7; i++) {
|
|
16156
|
-
let dayClass = 'item';
|
|
16157
|
-
let dataIndex = {
|
|
16158
|
-
'data-index': date.getFullYear().toString() +
|
|
16159
|
-
'-' +
|
|
16160
|
-
utils.fillString((date.getMonth() + 1).toString(), '0', 2, true) +
|
|
16161
|
-
'-' +
|
|
16162
|
-
utils.fillString(dayCount.toString(), '0', 2, true),
|
|
16163
|
-
};
|
|
16164
|
-
if (dayCount === selecteDate.getDate() &&
|
|
16165
|
-
date.getMonth() === selecteDate.getMonth() &&
|
|
16166
|
-
date.getFullYear() === selecteDate.getFullYear()) {
|
|
16167
|
-
dayClass += ' selected';
|
|
16168
|
-
}
|
|
16169
|
-
row.push(index.h("td", { class: dayClass }, index.h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
|
|
16170
|
-
this.onKupDatePickerItemClick(dataIndex['data-index']);
|
|
16171
|
-
} }), dayCount)));
|
|
16172
|
-
dayCount++;
|
|
16173
|
-
if (dayCount > lastMonthDay.getDate()) {
|
|
16174
|
-
break;
|
|
16175
|
-
}
|
|
16176
|
-
}
|
|
16177
|
-
if (row.length > 0) {
|
|
16178
|
-
tbody.push(index.h("tr", null, row));
|
|
16179
|
-
row = [];
|
|
16180
|
-
}
|
|
16181
|
-
daysForRowAdded = 0;
|
|
16182
|
-
}
|
|
16183
|
-
return (index.h("table", { id: "calendar" }, index.h("thead", null, thead), index.h("tbody", null, tbody)));
|
|
16184
|
-
}
|
|
16185
|
-
createMonthsCalendar() {
|
|
16186
|
-
let months = utils.getMonthsAsStringByLocale(utils.DateTimeFormatOptionsMonth.SHORT);
|
|
16187
|
-
let date = this.pickerEl.date;
|
|
16188
|
-
let selecteDate;
|
|
16189
|
-
if (this.value == null || this.value.trim() == '') {
|
|
16190
|
-
selecteDate = new Date();
|
|
16191
|
-
}
|
|
16192
|
-
else {
|
|
16193
|
-
selecteDate = new Date(this.value);
|
|
16194
|
-
}
|
|
16195
|
-
let tbody = [];
|
|
16196
|
-
let row = [];
|
|
16197
|
-
let monthCount = 0;
|
|
16198
|
-
while (monthCount < 12) {
|
|
16199
|
-
for (let i = 0; i < 4; i++) {
|
|
16200
|
-
let monthClass = 'item';
|
|
16201
|
-
let dataIndex = {
|
|
16202
|
-
'data-index': date.getFullYear().toString() +
|
|
16203
|
-
'-' +
|
|
16204
|
-
utils.fillString((monthCount + 1).toString(), '0', 2, true) +
|
|
16205
|
-
'-' +
|
|
16206
|
-
utils.fillString(date.getDate().toString(), '0', 2, true),
|
|
16207
|
-
};
|
|
16208
|
-
if (monthCount === selecteDate.getMonth() &&
|
|
16209
|
-
date.getFullYear() == selecteDate.getFullYear()) {
|
|
16210
|
-
monthClass += ' selected';
|
|
16211
|
-
}
|
|
16212
|
-
row.push(index.h("td", { class: monthClass }, index.h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
|
|
16213
|
-
this.onKupDatePickerMonthYearItemClick(dataIndex['data-index']);
|
|
16214
|
-
} }), months[monthCount])));
|
|
16215
|
-
monthCount++;
|
|
16216
|
-
}
|
|
16217
|
-
if (row.length > 0) {
|
|
16218
|
-
tbody.push(index.h("tr", null, row));
|
|
16219
|
-
row = [];
|
|
16220
|
-
}
|
|
16221
|
-
}
|
|
16222
|
-
return (index.h("table", { id: "calendar" }, index.h("tbody", null, tbody)));
|
|
16223
|
-
}
|
|
16224
|
-
createYearsCalendar() {
|
|
16225
|
-
let date = this.pickerEl.date;
|
|
16226
|
-
let curYear = date.getFullYear();
|
|
16227
|
-
let yearRange = this.getInitEndYear(curYear);
|
|
16228
|
-
let initYear = yearRange.initYear;
|
|
16229
|
-
let endYear = yearRange.endYear;
|
|
16230
|
-
let selecteDate;
|
|
16231
|
-
if (this.value == null || this.value.trim() == '') {
|
|
16232
|
-
selecteDate = new Date();
|
|
16233
|
-
}
|
|
16234
|
-
else {
|
|
16235
|
-
selecteDate = new Date(this.value);
|
|
16236
|
-
}
|
|
16237
|
-
let tbody = [];
|
|
16238
|
-
let row = [];
|
|
16239
|
-
let yearCount = initYear;
|
|
16240
|
-
while (yearCount <= endYear) {
|
|
16241
|
-
for (let i = 0; i < 4; i++) {
|
|
16242
|
-
let yearClass = 'item';
|
|
16243
|
-
let dataIndex = {
|
|
16244
|
-
'data-index': yearCount.toString() +
|
|
16245
|
-
'-' +
|
|
16246
|
-
utils.fillString((date.getMonth() + 1).toString(), '0', 2, true) +
|
|
16247
|
-
'-' +
|
|
16248
|
-
utils.fillString(date.getDate().toString(), '0', 2, true),
|
|
16249
|
-
};
|
|
16250
|
-
if (yearCount === selecteDate.getFullYear()) {
|
|
16251
|
-
yearClass += ' selected';
|
|
16252
|
-
}
|
|
16253
|
-
row.push(index.h("td", { class: yearClass }, index.h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
|
|
16254
|
-
this.onKupDatePickerMonthYearItemClick(dataIndex['data-index']);
|
|
16255
|
-
} }), yearCount)));
|
|
16256
|
-
yearCount++;
|
|
16257
|
-
}
|
|
16258
|
-
if (row.length > 0) {
|
|
16259
|
-
tbody.push(index.h("tr", null, row));
|
|
16260
|
-
row = [];
|
|
16261
|
-
}
|
|
16262
|
-
}
|
|
16263
|
-
return (index.h("table", { id: "calendar" }, index.h("tbody", null, tbody)));
|
|
16264
|
-
}
|
|
16265
|
-
changeView() {
|
|
16266
|
-
switch (this.calendarView) {
|
|
16267
|
-
case SourceEvent.DATE: {
|
|
16268
|
-
this.calendarView = SourceEvent.MONTH;
|
|
16269
|
-
break;
|
|
16270
|
-
}
|
|
16271
|
-
case SourceEvent.MONTH: {
|
|
16272
|
-
this.calendarView = SourceEvent.YEAR;
|
|
16273
|
-
break;
|
|
16274
|
-
}
|
|
16275
|
-
case SourceEvent.YEAR: {
|
|
16276
|
-
this.calendarView = SourceEvent.DATE;
|
|
16277
|
-
}
|
|
16278
|
-
}
|
|
16279
|
-
this.refresh();
|
|
16280
|
-
}
|
|
16281
|
-
prevPage() {
|
|
16282
|
-
let date = this.pickerEl.date;
|
|
16283
|
-
let yy = date.getFullYear();
|
|
16284
|
-
let mm = date.getMonth();
|
|
16285
|
-
if (this.calendarView == SourceEvent.DATE) {
|
|
16286
|
-
if (mm < 1) {
|
|
16287
|
-
mm = 11;
|
|
16288
|
-
yy--;
|
|
16289
|
-
}
|
|
16290
|
-
else {
|
|
16291
|
-
mm--;
|
|
16292
|
-
}
|
|
16293
|
-
}
|
|
16294
|
-
if (this.calendarView == SourceEvent.MONTH) {
|
|
16295
|
-
yy--;
|
|
16296
|
-
}
|
|
16297
|
-
if (this.calendarView == SourceEvent.YEAR) {
|
|
16298
|
-
let yearRange = this.getInitEndYear(yy);
|
|
16299
|
-
yy = yearRange.initYear - 1;
|
|
16300
|
-
}
|
|
16301
|
-
date.setFullYear(yy);
|
|
16302
|
-
date.setMonth(mm);
|
|
16303
|
-
this.pickerEl.value = date.toISOString();
|
|
16304
|
-
this.pickerEl.date = date;
|
|
16305
|
-
this.refresh();
|
|
16306
|
-
}
|
|
16307
|
-
nextPage() {
|
|
16308
|
-
let date = this.pickerEl.date;
|
|
16309
|
-
let yy = date.getFullYear();
|
|
16310
|
-
let mm = date.getMonth();
|
|
16311
|
-
if (this.calendarView == SourceEvent.DATE) {
|
|
16312
|
-
if (mm > 10) {
|
|
16313
|
-
mm = 0;
|
|
16314
|
-
yy++;
|
|
16315
|
-
}
|
|
16316
|
-
else {
|
|
16317
|
-
mm++;
|
|
16318
|
-
}
|
|
16319
|
-
}
|
|
16320
|
-
if (this.calendarView == SourceEvent.MONTH) {
|
|
16321
|
-
yy++;
|
|
16322
|
-
}
|
|
16323
|
-
if (this.calendarView == SourceEvent.YEAR) {
|
|
16324
|
-
let yearRange = this.getInitEndYear(yy);
|
|
16325
|
-
yy = yearRange.endYear + 1;
|
|
16326
|
-
}
|
|
16327
|
-
date.setFullYear(yy);
|
|
16328
|
-
date.setMonth(mm);
|
|
16329
|
-
this.pickerEl.value = date.toISOString();
|
|
16330
|
-
this.pickerEl.date = date;
|
|
16331
|
-
this.refresh();
|
|
16902
|
+
const data = {
|
|
16903
|
+
options: {
|
|
16904
|
+
initialValue: this.value,
|
|
16905
|
+
firstDayIndex: this.firstDayIndex,
|
|
16906
|
+
resetStatus: true,
|
|
16907
|
+
},
|
|
16908
|
+
};
|
|
16909
|
+
return (index.h("kup-card", { ref: (el) => (this.pickerContainerEl = el), data: data, "layout-family": "builtin", "layout-number": "1", "size-x": "300px", "size-y": "300px", "is-menu": true, "onkup-card-click": (ev) => {
|
|
16910
|
+
if (ev.detail.value != null && ev.detail.value != '')
|
|
16911
|
+
this.onKupDatePickerItemClick(ev.detail.value);
|
|
16912
|
+
} }));
|
|
16332
16913
|
}
|
|
16333
16914
|
getDateForOutput() {
|
|
16334
16915
|
if (this.value == null || this.value.trim() == '') {
|
|
@@ -16369,22 +16950,13 @@ let KupDatePicker = class {
|
|
|
16369
16950
|
this.kupManager.debug.logRender(this, true);
|
|
16370
16951
|
}
|
|
16371
16952
|
render() {
|
|
16372
|
-
|
|
16373
|
-
if (this.data &&
|
|
16374
|
-
this.data['kup-text-field'] &&
|
|
16375
|
-
this.data['kup-text-field']['className'] &&
|
|
16376
|
-
this.data['kup-text-field']['className'].indexOf('kup-full-height') > -1) {
|
|
16377
|
-
hostClass['kup-full-height'] = true;
|
|
16378
|
-
}
|
|
16379
|
-
if (this.data &&
|
|
16380
|
-
this.data['kup-text-field'] &&
|
|
16381
|
-
this.data['kup-text-field']['fullWidth']) {
|
|
16382
|
-
hostClass['kup-full-width'] = true;
|
|
16383
|
-
}
|
|
16384
|
-
return (index.h(index.Host, { class: hostClass }, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, this.prepTextfield(this.getDateForOutput()))));
|
|
16953
|
+
return (index.h(index.Host, null, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, this.prepTextfield(this.getDateForOutput()))));
|
|
16385
16954
|
}
|
|
16386
16955
|
disconnectedCallback() {
|
|
16387
16956
|
this.kupManager.theme.unregister(this);
|
|
16957
|
+
if (this.pickerContainerEl) {
|
|
16958
|
+
this.pickerContainerEl.remove();
|
|
16959
|
+
}
|
|
16388
16960
|
}
|
|
16389
16961
|
get rootElement() { return index.getElement(this); }
|
|
16390
16962
|
static get watchers() { return {
|
|
@@ -20442,7 +21014,7 @@ var KupTimePickerProps;
|
|
|
20442
21014
|
KupTimePickerProps["timeMinutesStep"] = "Minutes step";
|
|
20443
21015
|
})(KupTimePickerProps || (KupTimePickerProps = {}));
|
|
20444
21016
|
|
|
20445
|
-
const kupTimePickerCss = ":host{display:block;font-size:var(--kup-font-size)}#time-picker-div{display:none;outline:none;position:absolute;z-index:1}#time-picker-div.visible{display:block}.clock{box-shadow:var(--kup-box-shadow);width:300px;height:450px;background-color:var(--kup-background-color);position:relative;font-family:var(--kup-font-family)}.top{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color);height:100px;line-height:100px;font-size:50px;text-align:center}.top span{cursor:pointer;opacity:0.75;transition:0.25s ease-in-out}.top .active{opacity:1}.circle{user-select:none;background-color:rgba(var(--kup-text-color-rgb), 0.1);width:250px;height:250px;border-radius:1000px;position:relative;top:25px;left:25px;box-sizing:border-box;display:none}.circle.active{display:block}.mid{position:absolute;left:calc(50% - 0px);top:calc(50% - 0px);width:2px;height:2px;border-radius:10px;background-color:var(--kup-text-color)}.hour{position:absolute;height:40px;line-height:40px;width:40px;border-radius:40px;text-align:center}.hour.selected{z-index:2}.hour.selected::after{content:\"\";z-index:-1;background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.hour2{z-index:2;position:absolute;height:30px;line-height:30px;width:30px;border-radius:40px;text-align:center;font-size:14px}.hour2.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:64px;right:50%;z-index:-1}.unit{position:absolute;height:20px;line-height:20px;width:20px;border-radius:40px;text-align:center;font-size:12px}.unit.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.hour,.hour2,.unit{cursor:pointer;transition:background-color 0.25s}.hour:hover,.hour2:hover,.unit:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.275)}.hour.selected,.hour2.selected,.unit.selected{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color)}.actions{color:var(--kup-primary-color);font-weight:bold;font-size:20px;display:flex;justify-content:flex-end;position:absolute;width:100%;box-sizing:border-box;bottom:10px}.action{display:inline-block;width:100px;text-align:center;height:37.5px;line-height:37.5px;margin-right:10px;cursor:pointer;border-radius:2px}.clock .actions .action:hover{background-color:rgba(0, 0, 0, 0.1)}.clock .actions .action:active{background-color:rgba(0, 0, 0, 0.3)}.hour:nth-child(12):after{transform:rotate(330deg)}.hour:nth-child(11):after{transform:rotate(300deg)}.hour:nth-child(10):after{transform:rotate(270deg)}.hour:nth-child(9):after{transform:rotate(240deg)}.hour:nth-child(8):after{transform:rotate(210deg)}.hour:nth-child(7):after{transform:rotate(180deg)}.hour:nth-child(6):after{transform:rotate(150deg)}.hour:nth-child(5):after{transform:rotate(120deg)}.hour:nth-child(4):after{transform:rotate(90deg)}.hour:nth-child(3):after{transform:rotate(60deg)}.hour:nth-child(2):after{transform:rotate(30deg)}.hour:nth-child(1):after{transform:rotate(0deg)}.hour2:nth-child(24):after{transform:rotate(690deg)}.hour2:nth-child(23):after{transform:rotate(660deg)}.hour2:nth-child(22):after{transform:rotate(630deg)}.hour2:nth-child(21):after{transform:rotate(600deg)}.hour2:nth-child(20):after{transform:rotate(570deg)}.hour2:nth-child(19):after{transform:rotate(540deg)}.hour2:nth-child(18):after{transform:rotate(510deg)}.hour2:nth-child(17):after{transform:rotate(480deg)}.hour2:nth-child(16):after{transform:rotate(450deg)}.hour2:nth-child(15):after{transform:rotate(420deg)}.hour2:nth-child(14):after{transform:rotate(390deg)}.hour2:nth-child(13):after{transform:rotate(360deg)}.unit:nth-child(60):after{transform:rotate(354deg)}.unit:nth-child(59):after{transform:rotate(348deg)}.unit:nth-child(58):after{transform:rotate(342deg)}.unit:nth-child(57):after{transform:rotate(336deg)}.unit:nth-child(56):after{transform:rotate(330deg)}.unit:nth-child(55):after{transform:rotate(324deg)}.unit:nth-child(54):after{transform:rotate(318deg)}.unit:nth-child(53):after{transform:rotate(312deg)}.unit:nth-child(52):after{transform:rotate(306deg)}.unit:nth-child(51):after{transform:rotate(300deg)}.unit:nth-child(50):after{transform:rotate(294deg)}.unit:nth-child(49):after{transform:rotate(288deg)}.unit:nth-child(48):after{transform:rotate(282deg)}.unit:nth-child(47):after{transform:rotate(276deg)}.unit:nth-child(46):after{transform:rotate(270deg)}.unit:nth-child(45):after{transform:rotate(264deg)}.unit:nth-child(44):after{transform:rotate(258deg)}.unit:nth-child(43):after{transform:rotate(252deg)}.unit:nth-child(42):after{transform:rotate(246deg)}.unit:nth-child(41):after{transform:rotate(240deg)}.unit:nth-child(40):after{transform:rotate(234deg)}.unit:nth-child(39):after{transform:rotate(228deg)}.unit:nth-child(38):after{transform:rotate(222deg)}.unit:nth-child(37):after{transform:rotate(216deg)}.unit:nth-child(36):after{transform:rotate(210deg)}.unit:nth-child(35):after{transform:rotate(204deg)}.unit:nth-child(34):after{transform:rotate(198deg)}.unit:nth-child(33):after{transform:rotate(192deg)}.unit:nth-child(32):after{transform:rotate(186deg)}.unit:nth-child(31):after{transform:rotate(180deg)}.unit:nth-child(30):after{transform:rotate(174deg)}.unit:nth-child(29):after{transform:rotate(168deg)}.unit:nth-child(28):after{transform:rotate(162deg)}.unit:nth-child(27):after{transform:rotate(156deg)}.unit:nth-child(26):after{transform:rotate(150deg)}.unit:nth-child(25):after{transform:rotate(144deg)}.unit:nth-child(24):after{transform:rotate(138deg)}.unit:nth-child(23):after{transform:rotate(132deg)}.unit:nth-child(22):after{transform:rotate(126deg)}.unit:nth-child(21):after{transform:rotate(120deg)}.unit:nth-child(20):after{transform:rotate(114deg)}.unit:nth-child(19):after{transform:rotate(108deg)}.unit:nth-child(18):after{transform:rotate(102deg)}.unit:nth-child(17):after{transform:rotate(96deg)}.unit:nth-child(16):after{transform:rotate(90deg)}.unit:nth-child(15):after{transform:rotate(84deg)}.unit:nth-child(14):after{transform:rotate(78deg)}.unit:nth-child(13):after{transform:rotate(72deg)}.unit:nth-child(12):after{transform:rotate(66deg)}.unit:nth-child(11):after{transform:rotate(60deg)}.unit:nth-child(10):after{transform:rotate(54deg)}.unit:nth-child(9):after{transform:rotate(48deg)}.unit:nth-child(8):after{transform:rotate(42deg)}.unit:nth-child(7):after{transform:rotate(36deg)}.unit:nth-child(6):after{transform:rotate(30deg)}.unit:nth-child(5):after{transform:rotate(24deg)}.unit:nth-child(4):after{transform:rotate(18deg)}.unit:nth-child(3):after{transform:rotate(12deg)}.unit:nth-child(2):after{transform:rotate(6deg)}.unit:nth-child(1):after{transform:rotate(0deg)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb);--kup-list-primary-color:var(--kup-danger-color);--kup-list-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb);--kup-list-primary-color:var(--kup-info-color);--kup-list-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-list-primary-color:var(--kup-secondary-color);--kup-list-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb);--kup-list-primary-color:var(--kup-success-color);--kup-list-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb);--kup-list-primary-color:var(--kup-warning-color);--kup-list-primary-color-rgb:var(--kup-warning-color-rgb)}";
|
|
21017
|
+
const kupTimePickerCss = ":host{display:block;font-size:var(--kup-font-size);width:max-content}#time-picker-div{display:none;outline:none;position:absolute;z-index:1}#time-picker-div.visible{display:block}.clock{box-shadow:var(--kup-box-shadow);width:300px;height:450px;background-color:var(--kup-background-color);position:relative;font-family:var(--kup-font-family)}.top{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color);height:100px;line-height:100px;font-size:50px;text-align:center}.top span{cursor:pointer;opacity:0.75;transition:0.25s ease-in-out}.top .active{opacity:1}.circle{user-select:none;background-color:rgba(var(--kup-text-color-rgb), 0.1);width:250px;height:250px;border-radius:1000px;position:relative;top:25px;left:25px;box-sizing:border-box;display:none}.circle.active{display:block}.mid{position:absolute;left:calc(50% - 0px);top:calc(50% - 0px);width:2px;height:2px;border-radius:10px;background-color:var(--kup-text-color)}.hour{position:absolute;height:40px;line-height:40px;width:40px;border-radius:40px;text-align:center}.hour.selected{z-index:2}.hour.selected::after{content:\"\";z-index:-1;background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.hour2{z-index:2;position:absolute;height:30px;line-height:30px;width:30px;border-radius:40px;text-align:center;font-size:14px}.hour2.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:64px;right:50%;z-index:-1}.unit{position:absolute;height:20px;line-height:20px;width:20px;border-radius:40px;text-align:center;font-size:12px}.unit.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.hour,.hour2,.unit{cursor:pointer;transition:background-color 0.25s}.hour:hover,.hour2:hover,.unit:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.275)}.hour.selected,.hour2.selected,.unit.selected{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color)}.actions{color:var(--kup-primary-color);font-weight:bold;font-size:20px;display:flex;justify-content:flex-end;position:absolute;width:100%;box-sizing:border-box;bottom:10px}.action{display:inline-block;width:100px;text-align:center;height:37.5px;line-height:37.5px;margin-right:10px;cursor:pointer;border-radius:2px}.clock .actions .action:hover{background-color:rgba(0, 0, 0, 0.1)}.clock .actions .action:active{background-color:rgba(0, 0, 0, 0.3)}.hour:nth-child(12):after{transform:rotate(330deg)}.hour:nth-child(11):after{transform:rotate(300deg)}.hour:nth-child(10):after{transform:rotate(270deg)}.hour:nth-child(9):after{transform:rotate(240deg)}.hour:nth-child(8):after{transform:rotate(210deg)}.hour:nth-child(7):after{transform:rotate(180deg)}.hour:nth-child(6):after{transform:rotate(150deg)}.hour:nth-child(5):after{transform:rotate(120deg)}.hour:nth-child(4):after{transform:rotate(90deg)}.hour:nth-child(3):after{transform:rotate(60deg)}.hour:nth-child(2):after{transform:rotate(30deg)}.hour:nth-child(1):after{transform:rotate(0deg)}.hour2:nth-child(24):after{transform:rotate(690deg)}.hour2:nth-child(23):after{transform:rotate(660deg)}.hour2:nth-child(22):after{transform:rotate(630deg)}.hour2:nth-child(21):after{transform:rotate(600deg)}.hour2:nth-child(20):after{transform:rotate(570deg)}.hour2:nth-child(19):after{transform:rotate(540deg)}.hour2:nth-child(18):after{transform:rotate(510deg)}.hour2:nth-child(17):after{transform:rotate(480deg)}.hour2:nth-child(16):after{transform:rotate(450deg)}.hour2:nth-child(15):after{transform:rotate(420deg)}.hour2:nth-child(14):after{transform:rotate(390deg)}.hour2:nth-child(13):after{transform:rotate(360deg)}.unit:nth-child(60):after{transform:rotate(354deg)}.unit:nth-child(59):after{transform:rotate(348deg)}.unit:nth-child(58):after{transform:rotate(342deg)}.unit:nth-child(57):after{transform:rotate(336deg)}.unit:nth-child(56):after{transform:rotate(330deg)}.unit:nth-child(55):after{transform:rotate(324deg)}.unit:nth-child(54):after{transform:rotate(318deg)}.unit:nth-child(53):after{transform:rotate(312deg)}.unit:nth-child(52):after{transform:rotate(306deg)}.unit:nth-child(51):after{transform:rotate(300deg)}.unit:nth-child(50):after{transform:rotate(294deg)}.unit:nth-child(49):after{transform:rotate(288deg)}.unit:nth-child(48):after{transform:rotate(282deg)}.unit:nth-child(47):after{transform:rotate(276deg)}.unit:nth-child(46):after{transform:rotate(270deg)}.unit:nth-child(45):after{transform:rotate(264deg)}.unit:nth-child(44):after{transform:rotate(258deg)}.unit:nth-child(43):after{transform:rotate(252deg)}.unit:nth-child(42):after{transform:rotate(246deg)}.unit:nth-child(41):after{transform:rotate(240deg)}.unit:nth-child(40):after{transform:rotate(234deg)}.unit:nth-child(39):after{transform:rotate(228deg)}.unit:nth-child(38):after{transform:rotate(222deg)}.unit:nth-child(37):after{transform:rotate(216deg)}.unit:nth-child(36):after{transform:rotate(210deg)}.unit:nth-child(35):after{transform:rotate(204deg)}.unit:nth-child(34):after{transform:rotate(198deg)}.unit:nth-child(33):after{transform:rotate(192deg)}.unit:nth-child(32):after{transform:rotate(186deg)}.unit:nth-child(31):after{transform:rotate(180deg)}.unit:nth-child(30):after{transform:rotate(174deg)}.unit:nth-child(29):after{transform:rotate(168deg)}.unit:nth-child(28):after{transform:rotate(162deg)}.unit:nth-child(27):after{transform:rotate(156deg)}.unit:nth-child(26):after{transform:rotate(150deg)}.unit:nth-child(25):after{transform:rotate(144deg)}.unit:nth-child(24):after{transform:rotate(138deg)}.unit:nth-child(23):after{transform:rotate(132deg)}.unit:nth-child(22):after{transform:rotate(126deg)}.unit:nth-child(21):after{transform:rotate(120deg)}.unit:nth-child(20):after{transform:rotate(114deg)}.unit:nth-child(19):after{transform:rotate(108deg)}.unit:nth-child(18):after{transform:rotate(102deg)}.unit:nth-child(17):after{transform:rotate(96deg)}.unit:nth-child(16):after{transform:rotate(90deg)}.unit:nth-child(15):after{transform:rotate(84deg)}.unit:nth-child(14):after{transform:rotate(78deg)}.unit:nth-child(13):after{transform:rotate(72deg)}.unit:nth-child(12):after{transform:rotate(66deg)}.unit:nth-child(11):after{transform:rotate(60deg)}.unit:nth-child(10):after{transform:rotate(54deg)}.unit:nth-child(9):after{transform:rotate(48deg)}.unit:nth-child(8):after{transform:rotate(42deg)}.unit:nth-child(7):after{transform:rotate(36deg)}.unit:nth-child(6):after{transform:rotate(30deg)}.unit:nth-child(5):after{transform:rotate(24deg)}.unit:nth-child(4):after{transform:rotate(18deg)}.unit:nth-child(3):after{transform:rotate(12deg)}.unit:nth-child(2):after{transform:rotate(6deg)}.unit:nth-child(1):after{transform:rotate(0deg)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb);--kup-list-primary-color:var(--kup-danger-color);--kup-list-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb);--kup-list-primary-color:var(--kup-info-color);--kup-list-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-list-primary-color:var(--kup-secondary-color);--kup-list-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb);--kup-list-primary-color:var(--kup-success-color);--kup-list-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb);--kup-list-primary-color:var(--kup-warning-color);--kup-list-primary-color-rgb:var(--kup-warning-color-rgb)}";
|
|
20446
21018
|
|
|
20447
21019
|
let KupTimePicker = class {
|
|
20448
21020
|
constructor(hostRef) {
|
|
@@ -20515,10 +21087,9 @@ let KupTimePicker = class {
|
|
|
20515
21087
|
this.hoursActive = true;
|
|
20516
21088
|
this.minutesActive = false;
|
|
20517
21089
|
this.secondsActive = false;
|
|
21090
|
+
this.textFieldContainerEl = undefined;
|
|
20518
21091
|
this.textfieldEl = undefined;
|
|
20519
|
-
this.
|
|
20520
|
-
this.pickerEl = undefined;
|
|
20521
|
-
this.pickerOpened = false;
|
|
21092
|
+
this.pickerKupEl = undefined;
|
|
20522
21093
|
this.clickCb = null;
|
|
20523
21094
|
}
|
|
20524
21095
|
onKupTimePickerItemClick(e, value) {
|
|
@@ -20538,6 +21109,7 @@ let KupTimePicker = class {
|
|
|
20538
21109
|
id: this.rootElement.id,
|
|
20539
21110
|
value: this.value,
|
|
20540
21111
|
});
|
|
21112
|
+
this.setFocus();
|
|
20541
21113
|
}
|
|
20542
21114
|
onKupClearIconClick() {
|
|
20543
21115
|
this.setPickerValueSelected('');
|
|
@@ -20659,7 +21231,7 @@ let KupTimePicker = class {
|
|
|
20659
21231
|
*/
|
|
20660
21232
|
async setFocus() {
|
|
20661
21233
|
if (this.textfieldEl != null) {
|
|
20662
|
-
this.textfieldEl.
|
|
21234
|
+
this.textfieldEl.focus();
|
|
20663
21235
|
}
|
|
20664
21236
|
}
|
|
20665
21237
|
/**
|
|
@@ -20720,61 +21292,61 @@ let KupTimePicker = class {
|
|
|
20720
21292
|
return this.value;
|
|
20721
21293
|
}
|
|
20722
21294
|
openPicker() {
|
|
20723
|
-
|
|
20724
|
-
|
|
20725
|
-
|
|
20726
|
-
this.
|
|
20727
|
-
if (textfieldEl != null) {
|
|
20728
|
-
textfieldEl.classList.add('toggled');
|
|
21295
|
+
const elStyle = this.pickerKupEl.style;
|
|
21296
|
+
elStyle.height = 'auto';
|
|
21297
|
+
elStyle.minWidth = this.textFieldContainerEl.clientWidth + 'px';
|
|
21298
|
+
this.pickerKupEl.menuVisible = true;
|
|
21299
|
+
if (this.textfieldEl != null) {
|
|
21300
|
+
this.textfieldEl.classList.add('toggled');
|
|
20729
21301
|
}
|
|
20730
|
-
if (
|
|
20731
|
-
|
|
20732
|
-
const elStyle = containerEl.style;
|
|
20733
|
-
elStyle.height = 'auto';
|
|
20734
|
-
elStyle.minWidth = textfieldEl.clientWidth + 'px';
|
|
21302
|
+
if (this.kupManager.dynamicPosition.isRegistered(this.pickerKupEl)) {
|
|
21303
|
+
this.kupManager.dynamicPosition.changeAnchor(this.pickerKupEl, this.textFieldContainerEl);
|
|
20735
21304
|
}
|
|
21305
|
+
else {
|
|
21306
|
+
this.kupManager.dynamicPosition.register(this.pickerKupEl, this.textFieldContainerEl, 0, kupManager.KupDynamicPositionPlacement.AUTO, true);
|
|
21307
|
+
}
|
|
21308
|
+
this.kupManager.dynamicPosition.start(this.pickerKupEl);
|
|
20736
21309
|
if (!this.clickCb) {
|
|
20737
21310
|
this.clickCb = {
|
|
20738
21311
|
cb: () => {
|
|
20739
21312
|
this.closePicker();
|
|
20740
21313
|
},
|
|
20741
|
-
el: this.
|
|
21314
|
+
el: this.pickerKupEl,
|
|
20742
21315
|
};
|
|
20743
21316
|
}
|
|
20744
21317
|
this.kupManager.addClickCallback(this.clickCb, true);
|
|
20745
|
-
this.refresh();
|
|
20746
21318
|
}
|
|
20747
21319
|
closePicker() {
|
|
21320
|
+
this.pickerKupEl.menuVisible = false;
|
|
21321
|
+
this.kupManager.removeClickCallback(this.clickCb);
|
|
20748
21322
|
let textfieldEl = this.textfieldEl;
|
|
20749
|
-
let containerEl = this.pickerContainerEl;
|
|
20750
|
-
this.pickerOpened = false;
|
|
20751
21323
|
if (textfieldEl != null) {
|
|
20752
21324
|
textfieldEl.classList.remove('toggled');
|
|
20753
|
-
textfieldEl.emitSubmitEventOnEnter = true;
|
|
20754
|
-
}
|
|
20755
|
-
if (containerEl != null) {
|
|
20756
|
-
containerEl.classList.remove('visible');
|
|
20757
21325
|
}
|
|
21326
|
+
this.pickerKupEl.menuVisible = false;
|
|
21327
|
+
this.kupManager.dynamicPosition.stop(this.pickerKupEl);
|
|
20758
21328
|
this.kupManager.removeClickCallback(this.clickCb);
|
|
20759
21329
|
}
|
|
20760
21330
|
isPickerOpened() {
|
|
20761
|
-
return this.
|
|
21331
|
+
return this.pickerKupEl.menuVisible == true;
|
|
20762
21332
|
}
|
|
20763
21333
|
getTextFieldId() {
|
|
20764
21334
|
return this.textfieldEl.id;
|
|
20765
21335
|
}
|
|
20766
21336
|
getPickerElId() {
|
|
20767
|
-
return this.
|
|
21337
|
+
return this.pickerKupEl.id;
|
|
20768
21338
|
}
|
|
20769
21339
|
prepTextfield(initialValue) {
|
|
20770
|
-
|
|
20771
|
-
|
|
20772
|
-
|
|
21340
|
+
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
21341
|
+
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
21342
|
+
const textfieldData = Object.assign({}, this.data['kup-text-field']);
|
|
21343
|
+
if (!textfieldData.icon) {
|
|
21344
|
+
textfieldData.icon = 'access_time';
|
|
20773
21345
|
}
|
|
20774
|
-
if (textfieldData
|
|
20775
|
-
textfieldData
|
|
21346
|
+
if (textfieldData.icon) {
|
|
21347
|
+
textfieldData.trailingIcon = true;
|
|
20776
21348
|
}
|
|
20777
|
-
let comp = (index.h(fCell.FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, id: this.rootElement.id + '_text-field', value: initialValue, onChange: (e) => this.onKupChange(e), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onInput: (e) => this.onKupInput(e), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onClearIconClick: () => this.onKupClearIconClick() }), this.prepTimePicker()));
|
|
21349
|
+
let comp = (index.h(fCell.FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, id: this.rootElement.id + '_text-field', value: initialValue, onChange: (e) => this.onKupChange(e), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onInput: (e) => this.onKupInput(e), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onClearIconClick: () => this.onKupClearIconClick() }), this.prepTimePicker()));
|
|
20778
21350
|
return comp;
|
|
20779
21351
|
}
|
|
20780
21352
|
isRelatedTargetInThisComponent(e) {
|
|
@@ -20794,183 +21366,25 @@ let KupTimePicker = class {
|
|
|
20794
21366
|
let idConc = '#time-picker-div#confirm#';
|
|
20795
21367
|
return idConc.indexOf('#' + id + '#') >= 0;
|
|
20796
21368
|
}
|
|
20797
|
-
setTimeFromClock(e) {
|
|
20798
|
-
let text = this.hoursEl.innerText + ':' + this.minutesEl.innerText;
|
|
20799
|
-
if (this.manageSeconds) {
|
|
20800
|
-
text += ':' + this.secondsEl.innerText;
|
|
20801
|
-
}
|
|
20802
|
-
this.onKupTimePickerItemClick(e, text);
|
|
20803
|
-
}
|
|
20804
|
-
createClock() {
|
|
20805
|
-
let selectedTime;
|
|
20806
|
-
if (this.value) {
|
|
20807
|
-
selectedTime = this.kupManager.dates.toDate(this.value, this.manageSeconds
|
|
20808
|
-
? kupManager.KupDatesFormats.ISO_TIME
|
|
20809
|
-
: kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
|
|
20810
|
-
}
|
|
20811
|
-
else {
|
|
20812
|
-
selectedTime = new Date();
|
|
20813
|
-
}
|
|
20814
|
-
let hh = selectedTime.getHours().toString();
|
|
20815
|
-
let mm = selectedTime.getMinutes().toString();
|
|
20816
|
-
if (hh.length === 1) {
|
|
20817
|
-
hh = '0' + hh;
|
|
20818
|
-
}
|
|
20819
|
-
if (mm.length === 1) {
|
|
20820
|
-
mm = '0' + mm;
|
|
20821
|
-
}
|
|
20822
|
-
let ss = '';
|
|
20823
|
-
if (this.manageSeconds) {
|
|
20824
|
-
ss = selectedTime.getSeconds().toString();
|
|
20825
|
-
if (ss.length === 1) {
|
|
20826
|
-
ss = '0' + ss;
|
|
20827
|
-
}
|
|
20828
|
-
}
|
|
20829
|
-
let seconds;
|
|
20830
|
-
let time = [
|
|
20831
|
-
index.h("span", { class: "h", ref: (el) => (this.hoursEl = el), onClick: () => {
|
|
20832
|
-
this.setClockViewActive(true, false, false);
|
|
20833
|
-
this.switchView(this.hoursEl, this.hoursCircleEl);
|
|
20834
|
-
}, innerHTML: hh }),
|
|
20835
|
-
':',
|
|
20836
|
-
index.h("span", { class: "m", ref: (el) => (this.minutesEl = el), onClick: () => {
|
|
20837
|
-
this.setClockViewActive(false, true, false);
|
|
20838
|
-
this.switchView(this.minutesEl, this.minutesCircleEl);
|
|
20839
|
-
}, innerHTML: mm }),
|
|
20840
|
-
];
|
|
20841
|
-
if (this.manageSeconds) {
|
|
20842
|
-
seconds = (index.h("div", { class: "circle seconds", ref: (el) => (this.secondsCircleEl = el) }, this.buildClock(60, 101, 115, 115, 'sec unit', 0, 5, ss), index.h("div", { class: "mid" })));
|
|
20843
|
-
time.push(':', index.h("span", { class: "s", ref: (el) => (this.secondsEl = el), onClick: () => {
|
|
20844
|
-
this.setClockViewActive(false, false, true);
|
|
20845
|
-
this.switchView(this.secondsEl, this.secondsCircleEl);
|
|
20846
|
-
}, innerHTML: ss }));
|
|
20847
|
-
}
|
|
20848
|
-
return (index.h("div", { class: "clock", id: this.rootElement.id + '_clock', ref: (el) => (this.pickerEl = el) }, index.h("div", { class: "top" }, time), index.h("div", { class: "circle hours", ref: (el) => (this.hoursCircleEl = el) }, this.buildClock(12, 101, 105, 105, 'hour', 0, 1, hh), this.buildClock(12, 64, 110, 110, 'hour2', 12, 1, hh), index.h("div", { class: "mid" })), index.h("div", { class: "circle minutes", ref: (el) => (this.minutesCircleEl = el) }, this.buildClock(60, 101, 115, 115, 'min unit', 0, 5, mm), index.h("div", { class: "mid" })), seconds, index.h("div", { class: "actions" }, index.h("kup-button", { "onkup-button-click": (e) => {
|
|
20849
|
-
this.setTimeFromClock(e);
|
|
20850
|
-
}, id: "confirm", styling: fButtonDeclarations.FButtonStyling.FLAT, label: "Ok" }))));
|
|
20851
|
-
}
|
|
20852
|
-
switchView(el, elCircle) {
|
|
20853
|
-
this.hoursEl.classList.remove('active');
|
|
20854
|
-
this.hoursCircleEl.classList.remove('active');
|
|
20855
|
-
this.minutesEl.classList.remove('active');
|
|
20856
|
-
this.minutesCircleEl.classList.remove('active');
|
|
20857
|
-
if (this.secondsEl) {
|
|
20858
|
-
this.secondsEl.classList.remove('active');
|
|
20859
|
-
this.secondsCircleEl.classList.remove('active');
|
|
20860
|
-
}
|
|
20861
|
-
el.classList.add('active');
|
|
20862
|
-
elCircle.classList.add('active');
|
|
20863
|
-
}
|
|
20864
|
-
setClockViewActive(hoursActive, minutesActive, secondsActive) {
|
|
20865
|
-
this.hoursActive = hoursActive;
|
|
20866
|
-
this.minutesActive = minutesActive;
|
|
20867
|
-
this.secondsActive = secondsActive;
|
|
20868
|
-
}
|
|
20869
|
-
buildClock(num, radius, offsetX, offsetY, className, add, separator, selectedValue) {
|
|
20870
|
-
let x, y;
|
|
20871
|
-
let divsArray = [];
|
|
20872
|
-
for (var n = 0; n < num; n++) {
|
|
20873
|
-
x = radius * Math.cos((n / num) * 2 * Math.PI);
|
|
20874
|
-
y = radius * Math.sin((n / num) * 2 * Math.PI);
|
|
20875
|
-
let text;
|
|
20876
|
-
let dataValue = {};
|
|
20877
|
-
let style = {};
|
|
20878
|
-
if (separator == 1) {
|
|
20879
|
-
if (n + 3 > 12) {
|
|
20880
|
-
text = n + 3 - 12 + add + '';
|
|
20881
|
-
}
|
|
20882
|
-
else {
|
|
20883
|
-
let calc = n + 3 + add;
|
|
20884
|
-
if (calc !== 24) {
|
|
20885
|
-
text = n + 3 + add + '';
|
|
20886
|
-
}
|
|
20887
|
-
else {
|
|
20888
|
-
text = '00';
|
|
20889
|
-
}
|
|
20890
|
-
}
|
|
20891
|
-
dataValue['data-value'] = text;
|
|
20892
|
-
}
|
|
20893
|
-
else {
|
|
20894
|
-
if (n % separator == 0) {
|
|
20895
|
-
if (n + 15 >= 60) {
|
|
20896
|
-
dataValue['data-value'] = n + 15 - 60 + '';
|
|
20897
|
-
text = n + 15 - 60 + add + '';
|
|
20898
|
-
}
|
|
20899
|
-
else {
|
|
20900
|
-
dataValue['data-value'] = n + 15 + '';
|
|
20901
|
-
text = n + 15 + add + '';
|
|
20902
|
-
}
|
|
20903
|
-
}
|
|
20904
|
-
else {
|
|
20905
|
-
if (n + 15 >= 60) {
|
|
20906
|
-
dataValue['data-value'] = n + 15 - 60 + '';
|
|
20907
|
-
text = '⋅';
|
|
20908
|
-
}
|
|
20909
|
-
else {
|
|
20910
|
-
dataValue['data-value'] = n + 15 + '';
|
|
20911
|
-
text = '\u00B7';
|
|
20912
|
-
}
|
|
20913
|
-
}
|
|
20914
|
-
}
|
|
20915
|
-
style['left'] = x + offsetX + 'px';
|
|
20916
|
-
style['top'] = y + offsetY + 'px';
|
|
20917
|
-
if (dataValue['data-value'].length === 1) {
|
|
20918
|
-
dataValue['data-value'] = '0' + dataValue['data-value'];
|
|
20919
|
-
}
|
|
20920
|
-
let elClass = className;
|
|
20921
|
-
if (dataValue['data-value'] === selectedValue) {
|
|
20922
|
-
elClass += ' selected';
|
|
20923
|
-
}
|
|
20924
|
-
let div = (index.h("div", Object.assign({ class: elClass, style: style }, dataValue, { onClick: (e) => this.setClockTime(e) }), text));
|
|
20925
|
-
divsArray.push(div);
|
|
20926
|
-
}
|
|
20927
|
-
return divsArray;
|
|
20928
|
-
}
|
|
20929
|
-
setClockTime(e) {
|
|
20930
|
-
let time = e.target.getAttribute('data-value');
|
|
20931
|
-
if (this.hoursActive) {
|
|
20932
|
-
this.hoursEl.innerText = time;
|
|
20933
|
-
this.hoursCircleEl
|
|
20934
|
-
.querySelector('.selected')
|
|
20935
|
-
.classList.remove('selected');
|
|
20936
|
-
this.setClockViewActive(false, true, false);
|
|
20937
|
-
this.switchView(this.minutesEl, this.minutesCircleEl);
|
|
20938
|
-
}
|
|
20939
|
-
else if (this.minutesActive) {
|
|
20940
|
-
this.minutesEl.innerText = time;
|
|
20941
|
-
this.minutesCircleEl
|
|
20942
|
-
.querySelector('.selected')
|
|
20943
|
-
.classList.remove('selected');
|
|
20944
|
-
if (this.manageSeconds) {
|
|
20945
|
-
this.setClockViewActive(false, false, true);
|
|
20946
|
-
this.switchView(this.secondsEl, this.secondsCircleEl);
|
|
20947
|
-
}
|
|
20948
|
-
else {
|
|
20949
|
-
this.setTimeFromClock(e);
|
|
20950
|
-
}
|
|
20951
|
-
}
|
|
20952
|
-
else {
|
|
20953
|
-
this.secondsEl.innerText = time;
|
|
20954
|
-
this.secondsCircleEl
|
|
20955
|
-
.querySelector('.selected')
|
|
20956
|
-
.classList.remove('selected');
|
|
20957
|
-
this.setTimeFromClock(e);
|
|
20958
|
-
}
|
|
20959
|
-
e.target.classList.add('selected');
|
|
20960
|
-
}
|
|
20961
21369
|
prepTimePicker() {
|
|
20962
|
-
let widget = undefined;
|
|
20963
21370
|
if (this.clockVariant) {
|
|
20964
|
-
|
|
21371
|
+
const data = {
|
|
21372
|
+
options: {
|
|
21373
|
+
initialValue: this.value,
|
|
21374
|
+
manageSeconds: this.manageSeconds,
|
|
21375
|
+
hoursActive: this.hoursActive,
|
|
21376
|
+
minutesActive: this.minutesActive,
|
|
21377
|
+
secondsActive: this.secondsActive,
|
|
21378
|
+
},
|
|
21379
|
+
};
|
|
21380
|
+
return (index.h("kup-card", { ref: (el) => (this.pickerKupEl = el), data: data, "layout-family": "builtin", "layout-number": "2", "size-x": "300px", "size-y": "450px", "is-menu": true, "onkup-card-click": (ev) => {
|
|
21381
|
+
if (ev.detail.value != null && ev.detail.value != '')
|
|
21382
|
+
this.onKupTimePickerItemClick(ev, ev.detail.value);
|
|
21383
|
+
} }));
|
|
20965
21384
|
}
|
|
20966
21385
|
else {
|
|
20967
|
-
|
|
21386
|
+
return (index.h("kup-list", { ref: (el) => (this.pickerKupEl = el), data: this.createTimeListData(this.value), "is-menu": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.value), id: this.rootElement.id + '_list' }));
|
|
20968
21387
|
}
|
|
20969
|
-
return (index.h("div", { id: "time-picker-div", ref: (el) => (this.pickerContainerEl = el), onBlur: (e) => {
|
|
20970
|
-
if (!this.isRelatedTargetInThisComponent(e)) {
|
|
20971
|
-
this.onKupBlur();
|
|
20972
|
-
}
|
|
20973
|
-
} }, widget));
|
|
20974
21388
|
}
|
|
20975
21389
|
createTimeListData(value) {
|
|
20976
21390
|
let listData = [];
|
|
@@ -21040,40 +21454,21 @@ let KupTimePicker = class {
|
|
|
21040
21454
|
if (root) {
|
|
21041
21455
|
const f = root.querySelector('.f-text-field');
|
|
21042
21456
|
if (f) {
|
|
21457
|
+
this.textFieldContainerEl = f;
|
|
21043
21458
|
this.textfieldEl = f.querySelector('input');
|
|
21044
21459
|
FTextFieldMDC(f);
|
|
21045
21460
|
}
|
|
21046
21461
|
}
|
|
21047
|
-
if (this.clockVariant) {
|
|
21048
|
-
if (this.hoursActive) {
|
|
21049
|
-
this.switchView(this.hoursEl, this.hoursCircleEl);
|
|
21050
|
-
}
|
|
21051
|
-
else if (this.minutesActive) {
|
|
21052
|
-
this.switchView(this.minutesEl, this.minutesCircleEl);
|
|
21053
|
-
}
|
|
21054
|
-
else if (this.secondsActive) {
|
|
21055
|
-
this.switchView(this.secondsEl, this.secondsCircleEl);
|
|
21056
|
-
}
|
|
21057
|
-
}
|
|
21058
21462
|
this.kupManager.debug.logRender(this, true);
|
|
21059
21463
|
}
|
|
21060
21464
|
render() {
|
|
21061
|
-
|
|
21062
|
-
if (this.data &&
|
|
21063
|
-
this.data['kup-text-field'] &&
|
|
21064
|
-
this.data['kup-text-field']['className'] &&
|
|
21065
|
-
this.data['kup-text-field']['className'].indexOf('kup-full-height') > -1) {
|
|
21066
|
-
hostClass['kup-full-height'] = true;
|
|
21067
|
-
}
|
|
21068
|
-
if (this.data &&
|
|
21069
|
-
this.data['kup-text-field'] &&
|
|
21070
|
-
this.data['kup-text-field']['fullWidth']) {
|
|
21071
|
-
hostClass['kup-full-width'] = true;
|
|
21072
|
-
}
|
|
21073
|
-
return (index.h(index.Host, { class: hostClass }, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, this.prepTextfield(this.getTimeForOutput()))));
|
|
21465
|
+
return (index.h(index.Host, null, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, this.prepTextfield(this.getTimeForOutput()))));
|
|
21074
21466
|
}
|
|
21075
21467
|
disconnectedCallback() {
|
|
21076
21468
|
this.kupManager.theme.unregister(this);
|
|
21469
|
+
if (this.pickerKupEl) {
|
|
21470
|
+
this.pickerKupEl.remove();
|
|
21471
|
+
}
|
|
21077
21472
|
}
|
|
21078
21473
|
get rootElement() { return index.getElement(this); }
|
|
21079
21474
|
static get watchers() { return {
|
|
@@ -22865,20 +23260,25 @@ let KupTree = class {
|
|
|
22865
23260
|
// Renders all the cells
|
|
22866
23261
|
for (let j = 0; j < visibleCols.length; j++) {
|
|
22867
23262
|
const column = visibleCols[j];
|
|
22868
|
-
|
|
22869
|
-
|
|
22870
|
-
|
|
22871
|
-
|
|
22872
|
-
|
|
22873
|
-
|
|
22874
|
-
|
|
22875
|
-
|
|
22876
|
-
|
|
22877
|
-
|
|
22878
|
-
|
|
22879
|
-
|
|
22880
|
-
|
|
22881
|
-
|
|
23263
|
+
if (treeNodeData.cells && treeNodeData.cells[column.name]) {
|
|
23264
|
+
const cell = treeNodeData.cells[column.name]
|
|
23265
|
+
? treeNodeData.cells[column.name]
|
|
23266
|
+
: null;
|
|
23267
|
+
const cellProps = {
|
|
23268
|
+
cell: cell,
|
|
23269
|
+
column: column,
|
|
23270
|
+
component: this,
|
|
23271
|
+
density: this.density,
|
|
23272
|
+
editable: this.editableData,
|
|
23273
|
+
renderKup: true,
|
|
23274
|
+
row: treeNodeData,
|
|
23275
|
+
setSizes: true,
|
|
23276
|
+
};
|
|
23277
|
+
treeNodeCells.push(index.h("td", { class: `grid-cell` }, index.h(fCell.FCell, Object.assign({}, cellProps))));
|
|
23278
|
+
}
|
|
23279
|
+
else {
|
|
23280
|
+
treeNodeCells.push(index.h("td", { class: `grid-cell` }));
|
|
23281
|
+
}
|
|
22882
23282
|
}
|
|
22883
23283
|
}
|
|
22884
23284
|
const _hasTooltip = !this.kupManager.objects.isEmptyKupObj(treeNodeData.obj);
|