@genesislcap/foundation-forms 14.354.0 → 14.354.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1399,6 +1399,232 @@
1399
1399
  }
1400
1400
  ]
1401
1401
  },
1402
+ {
1403
+ "kind": "javascript-module",
1404
+ "path": "src/jsonforms/testers/isArray.ts",
1405
+ "declarations": [
1406
+ {
1407
+ "kind": "function",
1408
+ "name": "isArray",
1409
+ "parameters": [
1410
+ {
1411
+ "name": "itemsType",
1412
+ "type": {
1413
+ "text": "ArrayItemsType"
1414
+ }
1415
+ }
1416
+ ]
1417
+ }
1418
+ ],
1419
+ "exports": [
1420
+ {
1421
+ "kind": "js",
1422
+ "name": "isArray",
1423
+ "declaration": {
1424
+ "name": "isArray",
1425
+ "module": "src/jsonforms/testers/isArray.ts"
1426
+ }
1427
+ }
1428
+ ]
1429
+ },
1430
+ {
1431
+ "kind": "javascript-module",
1432
+ "path": "src/jsonforms/testers/isDate.ts",
1433
+ "declarations": [
1434
+ {
1435
+ "kind": "variable",
1436
+ "name": "isOneOfDate"
1437
+ }
1438
+ ],
1439
+ "exports": [
1440
+ {
1441
+ "kind": "js",
1442
+ "name": "isOneOfDate",
1443
+ "declaration": {
1444
+ "name": "isOneOfDate",
1445
+ "module": "src/jsonforms/testers/isDate.ts"
1446
+ }
1447
+ }
1448
+ ]
1449
+ },
1450
+ {
1451
+ "kind": "javascript-module",
1452
+ "path": "src/jsonforms/testers/isInvisible.ts",
1453
+ "declarations": [
1454
+ {
1455
+ "kind": "function",
1456
+ "name": "isInvisible",
1457
+ "return": {
1458
+ "type": {
1459
+ "text": "boolean"
1460
+ }
1461
+ },
1462
+ "parameters": [
1463
+ {
1464
+ "name": "uischema",
1465
+ "type": {
1466
+ "text": "UISchemaElement"
1467
+ }
1468
+ },
1469
+ {
1470
+ "name": "schema",
1471
+ "type": {
1472
+ "text": "JsonSchema"
1473
+ }
1474
+ },
1475
+ {
1476
+ "name": "context",
1477
+ "type": {
1478
+ "text": "TesterContext"
1479
+ }
1480
+ }
1481
+ ]
1482
+ }
1483
+ ],
1484
+ "exports": [
1485
+ {
1486
+ "kind": "js",
1487
+ "name": "isInvisible",
1488
+ "declaration": {
1489
+ "name": "isInvisible",
1490
+ "module": "src/jsonforms/testers/isInvisible.ts"
1491
+ }
1492
+ }
1493
+ ]
1494
+ },
1495
+ {
1496
+ "kind": "javascript-module",
1497
+ "path": "src/jsonforms/testers/isOneOfBoolean.ts",
1498
+ "declarations": [
1499
+ {
1500
+ "kind": "variable",
1501
+ "name": "isOneOfBoolean"
1502
+ }
1503
+ ],
1504
+ "exports": [
1505
+ {
1506
+ "kind": "js",
1507
+ "name": "isOneOfBoolean",
1508
+ "declaration": {
1509
+ "name": "isOneOfBoolean",
1510
+ "module": "src/jsonforms/testers/isOneOfBoolean.ts"
1511
+ }
1512
+ }
1513
+ ]
1514
+ },
1515
+ {
1516
+ "kind": "javascript-module",
1517
+ "path": "src/jsonforms/testers/isOneOfEnum.ts",
1518
+ "declarations": [
1519
+ {
1520
+ "kind": "variable",
1521
+ "name": "isOneOfEnum"
1522
+ }
1523
+ ],
1524
+ "exports": [
1525
+ {
1526
+ "kind": "js",
1527
+ "name": "isOneOfEnum",
1528
+ "declaration": {
1529
+ "name": "isOneOfEnum",
1530
+ "module": "src/jsonforms/testers/isOneOfEnum.ts"
1531
+ }
1532
+ }
1533
+ ]
1534
+ },
1535
+ {
1536
+ "kind": "javascript-module",
1537
+ "path": "src/jsonforms/testers/isOneOfNumber.ts",
1538
+ "declarations": [
1539
+ {
1540
+ "kind": "variable",
1541
+ "name": "isOneOfNumber"
1542
+ }
1543
+ ],
1544
+ "exports": [
1545
+ {
1546
+ "kind": "js",
1547
+ "name": "isOneOfNumber",
1548
+ "declaration": {
1549
+ "name": "isOneOfNumber",
1550
+ "module": "src/jsonforms/testers/isOneOfNumber.ts"
1551
+ }
1552
+ }
1553
+ ]
1554
+ },
1555
+ {
1556
+ "kind": "javascript-module",
1557
+ "path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
1558
+ "declarations": [
1559
+ {
1560
+ "kind": "variable",
1561
+ "name": "isOneOfOptionMultiselect"
1562
+ }
1563
+ ],
1564
+ "exports": [
1565
+ {
1566
+ "kind": "js",
1567
+ "name": "isOneOfOptionMultiselect",
1568
+ "declaration": {
1569
+ "name": "isOneOfOptionMultiselect",
1570
+ "module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
1571
+ }
1572
+ }
1573
+ ]
1574
+ },
1575
+ {
1576
+ "kind": "javascript-module",
1577
+ "path": "src/jsonforms/testers/isTime.ts",
1578
+ "declarations": [
1579
+ {
1580
+ "kind": "variable",
1581
+ "name": "isOneOfTime"
1582
+ }
1583
+ ],
1584
+ "exports": [
1585
+ {
1586
+ "kind": "js",
1587
+ "name": "isOneOfTime",
1588
+ "declaration": {
1589
+ "name": "isOneOfTime",
1590
+ "module": "src/jsonforms/testers/isTime.ts"
1591
+ }
1592
+ }
1593
+ ]
1594
+ },
1595
+ {
1596
+ "kind": "javascript-module",
1597
+ "path": "src/jsonforms/testers/optionIs.ts",
1598
+ "declarations": [
1599
+ {
1600
+ "kind": "function",
1601
+ "name": "optionIs",
1602
+ "return": {
1603
+ "type": {
1604
+ "text": "Tester"
1605
+ }
1606
+ },
1607
+ "parameters": [
1608
+ {
1609
+ "name": "optionName",
1610
+ "type": {
1611
+ "text": "string"
1612
+ }
1613
+ }
1614
+ ]
1615
+ }
1616
+ ],
1617
+ "exports": [
1618
+ {
1619
+ "kind": "js",
1620
+ "name": "optionIs",
1621
+ "declaration": {
1622
+ "name": "optionIs",
1623
+ "module": "src/jsonforms/testers/optionIs.ts"
1624
+ }
1625
+ }
1626
+ ]
1627
+ },
1402
1628
  {
1403
1629
  "kind": "javascript-module",
1404
1630
  "path": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts",
@@ -3089,232 +3315,6 @@
3089
3315
  }
3090
3316
  }
3091
3317
  ]
3092
- },
3093
- {
3094
- "kind": "javascript-module",
3095
- "path": "src/jsonforms/testers/isArray.ts",
3096
- "declarations": [
3097
- {
3098
- "kind": "function",
3099
- "name": "isArray",
3100
- "parameters": [
3101
- {
3102
- "name": "itemsType",
3103
- "type": {
3104
- "text": "ArrayItemsType"
3105
- }
3106
- }
3107
- ]
3108
- }
3109
- ],
3110
- "exports": [
3111
- {
3112
- "kind": "js",
3113
- "name": "isArray",
3114
- "declaration": {
3115
- "name": "isArray",
3116
- "module": "src/jsonforms/testers/isArray.ts"
3117
- }
3118
- }
3119
- ]
3120
- },
3121
- {
3122
- "kind": "javascript-module",
3123
- "path": "src/jsonforms/testers/isDate.ts",
3124
- "declarations": [
3125
- {
3126
- "kind": "variable",
3127
- "name": "isOneOfDate"
3128
- }
3129
- ],
3130
- "exports": [
3131
- {
3132
- "kind": "js",
3133
- "name": "isOneOfDate",
3134
- "declaration": {
3135
- "name": "isOneOfDate",
3136
- "module": "src/jsonforms/testers/isDate.ts"
3137
- }
3138
- }
3139
- ]
3140
- },
3141
- {
3142
- "kind": "javascript-module",
3143
- "path": "src/jsonforms/testers/isInvisible.ts",
3144
- "declarations": [
3145
- {
3146
- "kind": "function",
3147
- "name": "isInvisible",
3148
- "return": {
3149
- "type": {
3150
- "text": "boolean"
3151
- }
3152
- },
3153
- "parameters": [
3154
- {
3155
- "name": "uischema",
3156
- "type": {
3157
- "text": "UISchemaElement"
3158
- }
3159
- },
3160
- {
3161
- "name": "schema",
3162
- "type": {
3163
- "text": "JsonSchema"
3164
- }
3165
- },
3166
- {
3167
- "name": "context",
3168
- "type": {
3169
- "text": "TesterContext"
3170
- }
3171
- }
3172
- ]
3173
- }
3174
- ],
3175
- "exports": [
3176
- {
3177
- "kind": "js",
3178
- "name": "isInvisible",
3179
- "declaration": {
3180
- "name": "isInvisible",
3181
- "module": "src/jsonforms/testers/isInvisible.ts"
3182
- }
3183
- }
3184
- ]
3185
- },
3186
- {
3187
- "kind": "javascript-module",
3188
- "path": "src/jsonforms/testers/isOneOfBoolean.ts",
3189
- "declarations": [
3190
- {
3191
- "kind": "variable",
3192
- "name": "isOneOfBoolean"
3193
- }
3194
- ],
3195
- "exports": [
3196
- {
3197
- "kind": "js",
3198
- "name": "isOneOfBoolean",
3199
- "declaration": {
3200
- "name": "isOneOfBoolean",
3201
- "module": "src/jsonforms/testers/isOneOfBoolean.ts"
3202
- }
3203
- }
3204
- ]
3205
- },
3206
- {
3207
- "kind": "javascript-module",
3208
- "path": "src/jsonforms/testers/isOneOfEnum.ts",
3209
- "declarations": [
3210
- {
3211
- "kind": "variable",
3212
- "name": "isOneOfEnum"
3213
- }
3214
- ],
3215
- "exports": [
3216
- {
3217
- "kind": "js",
3218
- "name": "isOneOfEnum",
3219
- "declaration": {
3220
- "name": "isOneOfEnum",
3221
- "module": "src/jsonforms/testers/isOneOfEnum.ts"
3222
- }
3223
- }
3224
- ]
3225
- },
3226
- {
3227
- "kind": "javascript-module",
3228
- "path": "src/jsonforms/testers/isOneOfNumber.ts",
3229
- "declarations": [
3230
- {
3231
- "kind": "variable",
3232
- "name": "isOneOfNumber"
3233
- }
3234
- ],
3235
- "exports": [
3236
- {
3237
- "kind": "js",
3238
- "name": "isOneOfNumber",
3239
- "declaration": {
3240
- "name": "isOneOfNumber",
3241
- "module": "src/jsonforms/testers/isOneOfNumber.ts"
3242
- }
3243
- }
3244
- ]
3245
- },
3246
- {
3247
- "kind": "javascript-module",
3248
- "path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
3249
- "declarations": [
3250
- {
3251
- "kind": "variable",
3252
- "name": "isOneOfOptionMultiselect"
3253
- }
3254
- ],
3255
- "exports": [
3256
- {
3257
- "kind": "js",
3258
- "name": "isOneOfOptionMultiselect",
3259
- "declaration": {
3260
- "name": "isOneOfOptionMultiselect",
3261
- "module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
3262
- }
3263
- }
3264
- ]
3265
- },
3266
- {
3267
- "kind": "javascript-module",
3268
- "path": "src/jsonforms/testers/isTime.ts",
3269
- "declarations": [
3270
- {
3271
- "kind": "variable",
3272
- "name": "isOneOfTime"
3273
- }
3274
- ],
3275
- "exports": [
3276
- {
3277
- "kind": "js",
3278
- "name": "isOneOfTime",
3279
- "declaration": {
3280
- "name": "isOneOfTime",
3281
- "module": "src/jsonforms/testers/isTime.ts"
3282
- }
3283
- }
3284
- ]
3285
- },
3286
- {
3287
- "kind": "javascript-module",
3288
- "path": "src/jsonforms/testers/optionIs.ts",
3289
- "declarations": [
3290
- {
3291
- "kind": "function",
3292
- "name": "optionIs",
3293
- "return": {
3294
- "type": {
3295
- "text": "Tester"
3296
- }
3297
- },
3298
- "parameters": [
3299
- {
3300
- "name": "optionName",
3301
- "type": {
3302
- "text": "string"
3303
- }
3304
- }
3305
- ]
3306
- }
3307
- ],
3308
- "exports": [
3309
- {
3310
- "kind": "js",
3311
- "name": "optionIs",
3312
- "declaration": {
3313
- "name": "optionIs",
3314
- "module": "src/jsonforms/testers/optionIs.ts"
3315
- }
3316
- }
3317
- ]
3318
3318
  }
3319
3319
  ]
3320
3320
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/filters/filters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAO1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAa1C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAMnD,gBAAgB;AAChB,eAAO,MAAM,aAAa,iDAAqC,CAAC;AAchE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,OAa5B,CAAC;;;;;;;kBAG8B,CAAC;;;;;;;;8BAyD0C,CAAC,cAEvE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAsCK,CAAC;4IAGgC,CAAC;wFAGvB,CAAC;+IAOjB,CAAC;2FAOE,CAAC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AAY;IA4BZ,iBAAiB;IAOjB,mBAAmB;IAsBzB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAW9C,cAAc,CAAC,SAAS,EAAE,MAAM;CAcvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FilterDateControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/FilterDateControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,eAAO,MAAM,2BAA2B,GAAI,SAAQ,MAAe,6DAuDlE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,aAM5C,CAAC"}
1
+ {"version":3,"file":"FilterDateControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/FilterDateControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA6B5C,eAAO,MAAM,2BAA2B,GAAI,SAAQ,MAAe,6DAmFlE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,aAM5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FilterNumberControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/FilterNumberControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,eAAO,MAAM,mCAAmC,GAAI,SAAQ,MAAe,6DAyD1E,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,aAM9C,CAAC"}
1
+ {"version":3,"file":"FilterNumberControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/FilterNumberControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,eAAO,MAAM,mCAAmC,GAAI,SAAQ,MAAe,6DA0D1E,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,aAM9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FilterTimeControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/FilterTimeControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,eAAO,MAAM,2BAA2B,GAAI,SAAQ,MAAe,6DA0DlE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,aAM5C,CAAC"}
1
+ {"version":3,"file":"FilterTimeControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/FilterTimeControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,eAAO,MAAM,2BAA2B,GAAI,SAAQ,MAAe,6DAiElE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,aAM5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isDate.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/testers/isDate.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,kCAOvB,CAAC"}
1
+ {"version":3,"file":"isDate.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/testers/isDate.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,kCAUvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isOneOfNumber.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/testers/isOneOfNumber.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,kCAKzB,CAAC"}
1
+ {"version":3,"file":"isOneOfNumber.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/testers/isOneOfNumber.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa,kCAYzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/utils/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkC,MAAM,kCAAkC,CAAC;AAM9F,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,aAAa,EAAE,UAAU,EAAE,CAAC;IAC5B,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,GAAG,gBA8E7C,CAAC"}
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/utils/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkC,MAAM,kCAAkC,CAAC;AAE9F,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,aAAa,EAAE,UAAU,EAAE,CAAC;IAC5B,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,GAAG,gBAoF7C,CAAC"}
@@ -83,12 +83,17 @@ let Filters = class Filters extends LifecycleMixin(FoundationElement) {
83
83
  }
84
84
  resourceNameChanged() {
85
85
  return __awaiter(this, void 0, void 0, function* () {
86
- var _a, _b, _c;
86
+ var _a, _b, _c, _d, _e, _f, _g;
87
87
  this.jsonSchema = undefined;
88
88
  if (this.resourceName) {
89
89
  const jsonSchemaResponse = yield this.connect.getJSONSchema(this.resourceName);
90
- this.jsonSchema = (_b = (_a = jsonSchemaResponse === null || jsonSchemaResponse === void 0 ? void 0 : jsonSchemaResponse.OUTBOUND) === null || _a === void 0 ? void 0 : _a.$defs) === null || _b === void 0 ? void 0 : _b['global.genesis.message.core.dataserver.QueryRow'];
91
- (_c = this.jsonSchema) === null || _c === void 0 ? true : delete _c.properties['DETAILS'];
90
+ if ((_b = (_a = jsonSchemaResponse.OUTBOUND) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b['REPLY']) {
91
+ this.jsonSchema = (_d = (_c = jsonSchemaResponse.OUTBOUND.properties) === null || _c === void 0 ? void 0 : _c['REPLY']) === null || _d === void 0 ? void 0 : _d['items'];
92
+ }
93
+ else {
94
+ this.jsonSchema = (_f = (_e = jsonSchemaResponse === null || jsonSchemaResponse === void 0 ? void 0 : jsonSchemaResponse.OUTBOUND) === null || _e === void 0 ? void 0 : _e.$defs) === null || _f === void 0 ? void 0 : _f['global.genesis.message.core.dataserver.QueryRow'];
95
+ (_g = this.jsonSchema) === null || _g === void 0 ? true : delete _g.properties['DETAILS'];
96
+ }
92
97
  }
93
98
  });
94
99
  }
@@ -1,61 +1,100 @@
1
1
  import { mapStateToControlProps, rankWith } from '@jsonforms/core';
2
2
  import { html } from '@microsoft/fast-element';
3
+ import { GenesisType } from '../../utils';
3
4
  import { isOneOfDate } from '../testers/isDate';
4
5
  import { DATE_CONTROL_RANK } from './RenderersRanks';
6
+ /**
7
+ * @internal
8
+ */
9
+ const typeSwitch = (control) => { var _a; return ((_a = control.schema) === null || _a === void 0 ? void 0 : _a.genesisType) === GenesisType.DATETIME ? 'datetime-local' : 'date'; };
10
+ /**
11
+ * Formats a timestamp value for date/datetime-local input
12
+ * @internal
13
+ */
14
+ const formatDateValue = (timestamp, inputType) => {
15
+ if (timestamp === undefined || timestamp === null)
16
+ return '';
17
+ const date = new Date(timestamp);
18
+ const padded = (dateComponent) => dateComponent.toString().padStart(2, '0');
19
+ const year = date.getFullYear();
20
+ const month = padded(date.getMonth() + 1);
21
+ const day = padded(date.getDate());
22
+ const hour = padded(date.getHours());
23
+ const minute = padded(date.getMinutes());
24
+ return `${year}-${month}-${day}` + (inputType === 'datetime-local' ? `T${hour}:${minute}` : '');
25
+ };
5
26
  export const DateControlRendererTemplate = (prefix = 'zero') => html `
6
27
  <template>
7
28
  <control-wrapper :control=${(x) => x.control} ?submitted=${(x) => x.submitted} prefix="${prefix}">
8
29
  <${prefix}-text-field
9
30
  :value=${(x) => {
10
- var _a, _b;
11
- return ((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.min) === undefined || ((_b = x.control.data) === null || _b === void 0 ? void 0 : _b.min) === null
12
- ? ''
13
- : new Intl.DateTimeFormat('fr-CA', {
14
- year: 'numeric',
15
- month: '2-digit',
16
- day: '2-digit',
17
- timeZone: 'UTC',
18
- }).format(x.control.data.min);
31
+ var _a;
32
+ const inputType = typeSwitch(x.control);
33
+ return formatDateValue((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.min, inputType);
19
34
  }}
20
35
  id=${(x) => `min-${x.control.path}`}
21
- type="date"
36
+ type="${(x) => typeSwitch(x.control)}"
22
37
  data-test-id=${(x) => `min-${x.control.path}`}
23
38
  tabindex="${(x) => { var _a, _b; return (_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.tabIndex; }}"
24
39
  @blur=${(x, c) => {
25
- var _a, _b;
26
- const value = c.event.target.control.valueAsNumber;
40
+ var _a, _b, _c;
41
+ const target = c.event.target;
42
+ const inputValue = target.value;
43
+ const inputType = typeSwitch(x.control);
44
+ let minValue;
45
+ if (inputValue) {
46
+ minValue = new Date(inputValue).getTime();
47
+ }
48
+ const maxValue = ((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.max) !== undefined &&
49
+ minValue !== undefined &&
50
+ ((_b = x.control.data) === null || _b === void 0 ? void 0 : _b.max) < minValue
51
+ ? undefined
52
+ : (_c = x.control.data) === null || _c === void 0 ? void 0 : _c.max;
27
53
  x.control.handleChange(x.control.path, {
28
- min: value ? value : undefined,
29
- max: ((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.max) < value ? undefined : (_b = x.control.data) === null || _b === void 0 ? void 0 : _b.max,
30
- type: 'date',
54
+ min: minValue,
55
+ max: maxValue,
56
+ type: inputType === 'datetime-local' ? 'datetime' : 'date',
31
57
  });
32
58
  x.onBlur();
33
59
  }}
34
60
  style="width: 100%"
35
61
  ></${prefix}-text-field>
62
+ <span
63
+ style="
64
+ font-size: xx-large;
65
+ color: var(--neutral-stroke-divider-rest);
66
+ padding: calc(var(--design-unit) * 1px);"
67
+ >
68
+ -
69
+ </span>
36
70
  <${prefix}-text-field
37
71
  :value=${(x) => {
38
- var _a, _b;
39
- return ((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.max) === undefined || ((_b = x.control.data) === null || _b === void 0 ? void 0 : _b.max) === null
40
- ? ''
41
- : new Intl.DateTimeFormat('fr-CA', {
42
- year: 'numeric',
43
- month: '2-digit',
44
- day: '2-digit',
45
- timeZone: 'UTC',
46
- }).format(x.control.data.max);
72
+ var _a;
73
+ const inputType = typeSwitch(x.control);
74
+ return formatDateValue((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.max, inputType);
47
75
  }}
48
76
  id=${(x) => `max-${x.control.path}`}
49
- type="date"
77
+ type="${(x) => typeSwitch(x.control)}"
50
78
  data-test-id=${(x) => `max-${x.control.path}`}
51
79
  tabindex="${(x) => { var _a, _b; return (_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.tabIndex; }}"
52
80
  @blur=${(x, c) => {
53
- var _a, _b;
54
- const value = c.event.target.control.valueAsNumber;
81
+ var _a, _b, _c;
82
+ const target = c.event.target;
83
+ const inputValue = target.value;
84
+ const inputType = typeSwitch(x.control);
85
+ let maxValue;
86
+ if (inputValue) {
87
+ maxValue = new Date(inputValue).getTime();
88
+ }
89
+ const minValue = ((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.min) !== undefined &&
90
+ maxValue !== undefined &&
91
+ ((_b = x.control.data) === null || _b === void 0 ? void 0 : _b.min) > maxValue
92
+ ? undefined
93
+ : (_c = x.control.data) === null || _c === void 0 ? void 0 : _c.min;
55
94
  x.control.handleChange(x.control.path, {
56
- min: ((_a = x.control.data) === null || _a === void 0 ? void 0 : _a.min) > value ? undefined : (_b = x.control.data) === null || _b === void 0 ? void 0 : _b.min,
57
- max: value ? value : undefined,
58
- type: 'date',
95
+ min: minValue,
96
+ max: maxValue,
97
+ type: inputType === 'datetime-local' ? 'datetime' : 'date',
59
98
  });
60
99
  x.onBlur();
61
100
  }}
@@ -29,7 +29,8 @@ export const FilterNumberControlRendererTemplate = (prefix = 'zero') => html `
29
29
  <span
30
30
  style="
31
31
  font-size: xx-large;
32
- color: rgb(135, 155, 166);"
32
+ color: var(--neutral-stroke-divider-rest);
33
+ padding: calc(var(--design-unit) * 1px);"
33
34
  >
34
35
  -
35
36
  </span>
@@ -36,7 +36,14 @@ export const TimeControlRendererTemplate = (prefix = 'zero') => html `
36
36
  }}
37
37
  style="width: 100%"
38
38
  ></${prefix}-text-field>
39
-
39
+ <span
40
+ style="
41
+ font-size: xx-large;
42
+ color: var(--neutral-stroke-divider-rest);
43
+ padding: calc(var(--design-unit) * 1px);"
44
+ >
45
+ -
46
+ </span>
40
47
  <${prefix}-text-field
41
48
  :value=${(x) => {
42
49
  var _a;
@@ -1,5 +1,8 @@
1
1
  import { or, schemaMatches } from '@jsonforms/core';
2
+ import { GenesisType } from '../../utils/types';
2
3
  const isDateDescription = (s) => s.description === 'org.joda.time.DateTime';
3
4
  const isDate = schemaMatches(isDateDescription);
4
- export const isOneOfDate = or(isDate, schemaMatches((schema) => schema.hasOwnProperty('oneOf') &&
5
- schema.oneOf.some((s) => s.description === 'org.joda.time.DateTime')));
5
+ const isDateGenesisType = (s) => s.genesisType === GenesisType.DATE || s.genesisType === GenesisType.DATETIME;
6
+ const isDateByGenesisType = schemaMatches(isDateGenesisType);
7
+ export const isOneOfDate = or(isDate, isDateByGenesisType, schemaMatches((schema) => schema.hasOwnProperty('oneOf') &&
8
+ schema.oneOf.some((s) => s.description === 'org.joda.time.DateTime' || isDateGenesisType(s))));
@@ -1,5 +1,12 @@
1
- import { hasType, schemaMatches } from '@jsonforms/core';
1
+ import { hasType, or, schemaMatches } from '@jsonforms/core';
2
+ import { GenesisType } from '../../utils/types';
2
3
  const hasTypeNumberOrInteger = (schema) => hasType(schema, 'number') || hasType(schema, 'integer');
3
- export const isOneOfNumber = schemaMatches((schema) => hasTypeNumberOrInteger(schema) ||
4
+ const isNumberGenesisType = (s) => s.genesisType === GenesisType.DOUBLE ||
5
+ s.genesisType === GenesisType.INT ||
6
+ s.genesisType === GenesisType.SHORT ||
7
+ s.genesisType === GenesisType.LONG ||
8
+ s.genesisType === GenesisType.BIGDECIMAL;
9
+ const isNumberByGenesisType = schemaMatches(isNumberGenesisType);
10
+ export const isOneOfNumber = or(schemaMatches((schema) => hasTypeNumberOrInteger(schema) ||
4
11
  (schema.hasOwnProperty('oneOf') &&
5
- schema.oneOf.some((s) => hasTypeNumberOrInteger(s))));
12
+ schema.oneOf.some((s) => hasTypeNumberOrInteger(s)))), isNumberByGenesisType, schemaMatches((schema) => schema.hasOwnProperty('oneOf') && schema.oneOf.some((s) => isNumberGenesisType(s))));
@@ -1,7 +1,4 @@
1
1
  import { ExpressionBuilder, Serialisers } from '@genesislcap/foundation-criteria';
2
- const hour = 23;
3
- const minute = 59;
4
- const sec = 999;
5
2
  /**
6
3
  * Creates a expressions/criteria from given payload
7
4
  * @internal
@@ -37,6 +34,12 @@ export const createExpressions = (payload) => {
37
34
  ...expressions.dateOptions,
38
35
  ];
39
36
  }
37
+ if (value.type == 'datetime') {
38
+ expressions.dateOptions = [
39
+ ...dateNumberExpressions(key, value, 'datetime'),
40
+ ...expressions.dateOptions,
41
+ ];
42
+ }
40
43
  if (value.type == 'time') {
41
44
  expressions.dateOptions = [
42
45
  ...dateNumberExpressions(key, value, 'time'),
@@ -106,6 +109,13 @@ const dateNumberExpressions = (key, value, type) => {
106
109
  endSerialiser = Serialisers.dateIsLessEqual;
107
110
  break;
108
111
  }
112
+ case 'datetime': {
113
+ startValue = value.min ? convertTimestampToDateTime(value.min) : undefined;
114
+ endValue = value.max ? convertTimestampToDateTime(value.max) : undefined;
115
+ startSerialiser = Serialisers.dateTimeIsGreaterEqual;
116
+ endSerialiser = Serialisers.dateTimeIsLessEqual;
117
+ break;
118
+ }
109
119
  case 'number':
110
120
  default: {
111
121
  startValue = value.min;
@@ -135,11 +145,23 @@ const dateNumberExpressions = (key, value, type) => {
135
145
  return expressions;
136
146
  };
137
147
  const convertTimestampToDate = (timestamp) => {
138
- const months = (new Date(timestamp).getUTCMonth() + 1).toString().padStart(2, '0');
139
- const days = new Date(timestamp).getUTCDate().toString().padStart(2, '0');
140
- const year = new Date(timestamp).getUTCFullYear().toString();
148
+ const months = (new Date(timestamp).getMonth() + 1).toString().padStart(2, '0');
149
+ const days = new Date(timestamp).getDate().toString().padStart(2, '0');
150
+ const year = new Date(timestamp).getFullYear().toString();
141
151
  return [year, months, days].join('');
142
152
  };
153
+ const convertTimestampToDateTime = (timestamp) => {
154
+ const date = new Date(timestamp);
155
+ const year = date.getFullYear().toString();
156
+ const months = (date.getMonth() + 1).toString().padStart(2, '0');
157
+ const days = date.getDate().toString().padStart(2, '0');
158
+ const hours = date.getHours().toString().padStart(2, '0');
159
+ const minutes = date.getMinutes().toString().padStart(2, '0');
160
+ const seconds = date.getSeconds().toString().padStart(2, '0');
161
+ const datePart = [year, months, days].join('');
162
+ const timePart = [hours, minutes, seconds].join(':');
163
+ return `${datePart}-${timePart}`;
164
+ };
143
165
  const convertTimeToDateTime = (time) => {
144
166
  const [hours, minutes] = time.split(':').map(Number);
145
167
  const today = new Date();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-forms",
3
3
  "description": "Genesis Foundation Forms",
4
- "version": "14.354.0",
4
+ "version": "14.354.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -48,22 +48,22 @@
48
48
  }
49
49
  },
50
50
  "devDependencies": {
51
- "@genesislcap/foundation-testing": "14.354.0",
52
- "@genesislcap/genx": "14.354.0",
53
- "@genesislcap/rollup-builder": "14.354.0",
54
- "@genesislcap/ts-builder": "14.354.0",
55
- "@genesislcap/uvu-playwright-builder": "14.354.0",
56
- "@genesislcap/vite-builder": "14.354.0",
57
- "@genesislcap/webpack-builder": "14.354.0",
51
+ "@genesislcap/foundation-testing": "14.354.2",
52
+ "@genesislcap/genx": "14.354.2",
53
+ "@genesislcap/rollup-builder": "14.354.2",
54
+ "@genesislcap/ts-builder": "14.354.2",
55
+ "@genesislcap/uvu-playwright-builder": "14.354.2",
56
+ "@genesislcap/vite-builder": "14.354.2",
57
+ "@genesislcap/webpack-builder": "14.354.2",
58
58
  "@types/json-schema": "^7.0.11"
59
59
  },
60
60
  "dependencies": {
61
- "@genesislcap/foundation-comms": "14.354.0",
62
- "@genesislcap/foundation-criteria": "14.354.0",
63
- "@genesislcap/foundation-logger": "14.354.0",
64
- "@genesislcap/foundation-notifications": "14.354.0",
65
- "@genesislcap/foundation-ui": "14.354.0",
66
- "@genesislcap/foundation-utils": "14.354.0",
61
+ "@genesislcap/foundation-comms": "14.354.2",
62
+ "@genesislcap/foundation-criteria": "14.354.2",
63
+ "@genesislcap/foundation-logger": "14.354.2",
64
+ "@genesislcap/foundation-notifications": "14.354.2",
65
+ "@genesislcap/foundation-ui": "14.354.2",
66
+ "@genesislcap/foundation-utils": "14.354.2",
67
67
  "@json-schema-tools/dereferencer": "^1.6.1",
68
68
  "@jsonforms/core": "^3.2.1",
69
69
  "@microsoft/fast-components": "2.30.6",
@@ -84,5 +84,5 @@
84
84
  "access": "public"
85
85
  },
86
86
  "customElements": "dist/custom-elements.json",
87
- "gitHead": "a039dbb62a416e049fb61d2e2451bac4c2e56950"
87
+ "gitHead": "6736ae7e39fd72cd8e8c42a524b7fe0ed13d4a83"
88
88
  }