@genesislcap/foundation-zero-grid-pro 14.106.0 → 14.107.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.
@@ -12,7 +12,7 @@
12
12
  "type": {
13
13
  "text": "object"
14
14
  },
15
- "default": "{\n zeroAgActionRenderer,\n zeroAgActionsMenuRenderer,\n zeroAgBooleanRenderer,\n zeroAgTextRenderer,\n zeroAgSelectRenderer,\n zeroAgMultiselectEditor,\n zeroAgSelectEditor,\n zeroAgNumberEditor,\n zeroGridPro,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n this[key]().register(container, ...rest);\n }\n },\n}"
15
+ "default": "{\n zeroAgActionRenderer,\n zeroAgActionsMenuRenderer,\n zeroAgBooleanRenderer,\n zeroAgTextRenderer,\n zeroAgSelectRenderer,\n zeroAgDateEditor,\n zeroAgMultiselectEditor,\n zeroAgSelectEditor,\n zeroAgNumberEditor,\n zeroGridPro,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n this[key]().register(container, ...rest);\n }\n },\n}"
16
16
  }
17
17
  ],
18
18
  "exports": [
@@ -1257,11 +1257,294 @@
1257
1257
  }
1258
1258
  ]
1259
1259
  },
1260
+ {
1261
+ "kind": "javascript-module",
1262
+ "path": "src/cell-editors/date.editor.ts",
1263
+ "declarations": [
1264
+ {
1265
+ "kind": "class",
1266
+ "description": "",
1267
+ "name": "ZeroDateEditor",
1268
+ "superclass": {
1269
+ "name": "DateEditor",
1270
+ "package": "@genesislcap/grid-pro"
1271
+ },
1272
+ "tagName": "%%prefix%%-date-editor",
1273
+ "customElement": true,
1274
+ "members": [
1275
+ {
1276
+ "kind": "field",
1277
+ "name": "value",
1278
+ "type": {
1279
+ "text": "number"
1280
+ },
1281
+ "privacy": "public",
1282
+ "inheritedFrom": {
1283
+ "name": "DateEditor",
1284
+ "module": "src/cell-editors/date.editor.ts"
1285
+ }
1286
+ },
1287
+ {
1288
+ "kind": "field",
1289
+ "name": "dateFormat",
1290
+ "type": {
1291
+ "text": "string"
1292
+ },
1293
+ "inheritedFrom": {
1294
+ "name": "DateEditor",
1295
+ "module": "src/cell-editors/date.editor.ts"
1296
+ }
1297
+ },
1298
+ {
1299
+ "kind": "field",
1300
+ "name": "inputType",
1301
+ "type": {
1302
+ "text": "'datetime-local' | 'date'"
1303
+ },
1304
+ "inheritedFrom": {
1305
+ "name": "DateEditor",
1306
+ "module": "src/cell-editors/date.editor.ts"
1307
+ }
1308
+ },
1309
+ {
1310
+ "kind": "method",
1311
+ "name": "init",
1312
+ "privacy": "public",
1313
+ "parameters": [
1314
+ {
1315
+ "name": "params",
1316
+ "type": {
1317
+ "text": "DateEditorParams"
1318
+ }
1319
+ }
1320
+ ],
1321
+ "inheritedFrom": {
1322
+ "name": "DateEditor",
1323
+ "module": "src/cell-editors/date.editor.ts"
1324
+ }
1325
+ },
1326
+ {
1327
+ "kind": "method",
1328
+ "name": "getGui",
1329
+ "privacy": "public",
1330
+ "return": {
1331
+ "type": {
1332
+ "text": "HTMLElement"
1333
+ }
1334
+ },
1335
+ "inheritedFrom": {
1336
+ "name": "DateEditor",
1337
+ "module": "src/cell-editors/date.editor.ts"
1338
+ }
1339
+ },
1340
+ {
1341
+ "kind": "method",
1342
+ "name": "refresh",
1343
+ "privacy": "public",
1344
+ "return": {
1345
+ "type": {
1346
+ "text": "boolean"
1347
+ }
1348
+ },
1349
+ "parameters": [
1350
+ {
1351
+ "name": "params",
1352
+ "type": {
1353
+ "text": "DateEditorParams"
1354
+ }
1355
+ }
1356
+ ],
1357
+ "inheritedFrom": {
1358
+ "name": "DateEditor",
1359
+ "module": "src/cell-editors/date.editor.ts"
1360
+ }
1361
+ },
1362
+ {
1363
+ "kind": "method",
1364
+ "name": "getValue",
1365
+ "inheritedFrom": {
1366
+ "name": "DateEditor",
1367
+ "module": "src/cell-editors/date.editor.ts"
1368
+ }
1369
+ },
1370
+ {
1371
+ "kind": "method",
1372
+ "name": "isPopup",
1373
+ "return": {
1374
+ "type": {
1375
+ "text": "boolean"
1376
+ }
1377
+ },
1378
+ "inheritedFrom": {
1379
+ "name": "DateEditor",
1380
+ "module": "src/cell-editors/date.editor.ts"
1381
+ }
1382
+ },
1383
+ {
1384
+ "kind": "method",
1385
+ "name": "changeHandler",
1386
+ "parameters": [
1387
+ {
1388
+ "name": "event"
1389
+ }
1390
+ ],
1391
+ "inheritedFrom": {
1392
+ "name": "DateEditor",
1393
+ "module": "src/cell-editors/date.editor.ts"
1394
+ }
1395
+ },
1396
+ {
1397
+ "kind": "field",
1398
+ "name": "_presentation",
1399
+ "type": {
1400
+ "text": "ComponentPresentation | null | undefined"
1401
+ },
1402
+ "privacy": "private",
1403
+ "default": "void 0",
1404
+ "inheritedFrom": {
1405
+ "name": "FoundationElement",
1406
+ "module": "src/foundation-element/foundation-element.ts"
1407
+ }
1408
+ },
1409
+ {
1410
+ "kind": "field",
1411
+ "name": "$presentation",
1412
+ "type": {
1413
+ "text": "ComponentPresentation | null"
1414
+ },
1415
+ "privacy": "public",
1416
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1417
+ "inheritedFrom": {
1418
+ "name": "FoundationElement",
1419
+ "module": "src/foundation-element/foundation-element.ts"
1420
+ }
1421
+ },
1422
+ {
1423
+ "kind": "field",
1424
+ "name": "template",
1425
+ "type": {
1426
+ "text": "ElementViewTemplate | void | null"
1427
+ },
1428
+ "privacy": "public",
1429
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1430
+ "inheritedFrom": {
1431
+ "name": "FoundationElement",
1432
+ "module": "src/foundation-element/foundation-element.ts"
1433
+ }
1434
+ },
1435
+ {
1436
+ "kind": "method",
1437
+ "name": "templateChanged",
1438
+ "privacy": "protected",
1439
+ "return": {
1440
+ "type": {
1441
+ "text": "void"
1442
+ }
1443
+ },
1444
+ "inheritedFrom": {
1445
+ "name": "FoundationElement",
1446
+ "module": "src/foundation-element/foundation-element.ts"
1447
+ }
1448
+ },
1449
+ {
1450
+ "kind": "field",
1451
+ "name": "styles",
1452
+ "type": {
1453
+ "text": "ElementStyles | void | null"
1454
+ },
1455
+ "privacy": "public",
1456
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1457
+ "inheritedFrom": {
1458
+ "name": "FoundationElement",
1459
+ "module": "src/foundation-element/foundation-element.ts"
1460
+ }
1461
+ },
1462
+ {
1463
+ "kind": "method",
1464
+ "name": "stylesChanged",
1465
+ "privacy": "protected",
1466
+ "return": {
1467
+ "type": {
1468
+ "text": "void"
1469
+ }
1470
+ },
1471
+ "inheritedFrom": {
1472
+ "name": "FoundationElement",
1473
+ "module": "src/foundation-element/foundation-element.ts"
1474
+ }
1475
+ },
1476
+ {
1477
+ "kind": "method",
1478
+ "name": "compose",
1479
+ "privacy": "public",
1480
+ "static": true,
1481
+ "return": {
1482
+ "type": {
1483
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1484
+ }
1485
+ },
1486
+ "parameters": [
1487
+ {
1488
+ "name": "this",
1489
+ "type": {
1490
+ "text": "K"
1491
+ }
1492
+ },
1493
+ {
1494
+ "name": "elementDefinition",
1495
+ "type": {
1496
+ "text": "T"
1497
+ },
1498
+ "description": "The definition of the element to create the registry\nfunction for."
1499
+ }
1500
+ ],
1501
+ "description": "Defines an element registry function with a set of element definition defaults.",
1502
+ "inheritedFrom": {
1503
+ "name": "FoundationElement",
1504
+ "module": "src/foundation-element/foundation-element.ts"
1505
+ }
1506
+ }
1507
+ ]
1508
+ },
1509
+ {
1510
+ "kind": "variable",
1511
+ "name": "zeroAgDateEditor",
1512
+ "description": "The Zero Date editor",
1513
+ "privacy": "public"
1514
+ }
1515
+ ],
1516
+ "exports": [
1517
+ {
1518
+ "kind": "js",
1519
+ "name": "ZeroDateEditor",
1520
+ "declaration": {
1521
+ "name": "ZeroDateEditor",
1522
+ "module": "src/cell-editors/date.editor.ts"
1523
+ }
1524
+ },
1525
+ {
1526
+ "kind": "js",
1527
+ "name": "zeroAgDateEditor",
1528
+ "declaration": {
1529
+ "name": "zeroAgDateEditor",
1530
+ "module": "src/cell-editors/date.editor.ts"
1531
+ }
1532
+ }
1533
+ ]
1534
+ },
1260
1535
  {
1261
1536
  "kind": "javascript-module",
1262
1537
  "path": "src/cell-editors/index.ts",
1263
1538
  "declarations": [],
1264
1539
  "exports": [
1540
+ {
1541
+ "kind": "js",
1542
+ "name": "*",
1543
+ "declaration": {
1544
+ "name": "*",
1545
+ "package": "./date.editor"
1546
+ }
1547
+ },
1265
1548
  {
1266
1549
  "kind": "js",
1267
1550
  "name": "*",
@@ -1649,29 +1932,6 @@
1649
1932
  "module": "src/cell-editors/number.editor.ts"
1650
1933
  }
1651
1934
  },
1652
- {
1653
- "kind": "method",
1654
- "name": "focus",
1655
- "privacy": "public",
1656
- "inheritedFrom": {
1657
- "name": "NumberEditor",
1658
- "module": "src/cell-editors/number.editor.ts"
1659
- }
1660
- },
1661
- {
1662
- "kind": "method",
1663
- "name": "destroy",
1664
- "privacy": "public",
1665
- "return": {
1666
- "type": {
1667
- "text": "void"
1668
- }
1669
- },
1670
- "inheritedFrom": {
1671
- "name": "NumberEditor",
1672
- "module": "src/cell-editors/number.editor.ts"
1673
- }
1674
- },
1675
1935
  {
1676
1936
  "kind": "method",
1677
1937
  "name": "refresh",
@@ -0,0 +1,23 @@
1
+ import { DateEditor } from '@genesislcap/grid-pro';
2
+ /**
3
+ * @tagname %%prefix%%-date-editor
4
+ */
5
+ export declare class ZeroDateEditor extends DateEditor {
6
+ }
7
+ /**
8
+ * The Zero Date editor
9
+ *
10
+ * @public
11
+ * @remarks
12
+ * HTML Element: \<zero-date-editor\>
13
+ */
14
+ export declare const zeroAgDateEditor: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
15
+ baseName: string;
16
+ styles: import("@microsoft/fast-element").ElementStyles;
17
+ template: import("@microsoft/fast-element").ViewTemplate<DateEditor, any>;
18
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
19
+ baseName: string;
20
+ styles: import("@microsoft/fast-element").ElementStyles;
21
+ template: import("@microsoft/fast-element").ViewTemplate<DateEditor, any>;
22
+ }, typeof ZeroDateEditor>;
23
+ //# sourceMappingURL=date.editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.editor.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/date.editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA6C,MAAM,uBAAuB,CAAC;AAE9F;;GAEG;AACH,qBAAa,cAAe,SAAQ,UAAU;CAAG;AAEjD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;yBAI3B,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './date.editor';
1
2
  export * from './multiselect.editor';
2
3
  export * from './number.editor';
3
4
  export * from './select.editor';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -43,6 +43,15 @@ export declare const zeroGridComponents: {
43
43
  styles: import("@microsoft/fast-element").ElementStyles;
44
44
  template: import("@microsoft/fast-element").ViewTemplate<any, any>;
45
45
  }, typeof import("./cell-renderers").ZeroAgSelectRenderer>;
46
+ zeroAgDateEditor: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
47
+ baseName: string;
48
+ styles: import("@microsoft/fast-element").ElementStyles;
49
+ template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/grid-pro").DateEditor, any>;
50
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
51
+ baseName: string;
52
+ styles: import("@microsoft/fast-element").ElementStyles;
53
+ template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/grid-pro").DateEditor, any>;
54
+ }, typeof import("./cell-editors").ZeroDateEditor>;
46
55
  zeroAgMultiselectEditor: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
47
56
  baseName: string;
48
57
  styles: import("@microsoft/fast-element").ElementStyles;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-components.d.ts","sourceRoot":"","sources":["../../src/grid-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAW5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAUR,SAAS,WAAW,GAAG,EAAE;CAa/C,CAAC"}
1
+ {"version":3,"file":"grid-components.d.ts","sourceRoot":"","sources":["../../src/grid-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAgB5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAWR,SAAS,WAAW,GAAG,EAAE;CAa/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,OAAO,EAIR,MAAM,uBAAuB,CAAC;AAc/B;;GAEG;AACH,qBAAa,WAAY,SAAQ,OAAO;IACtC;;;OAGG;IACH,KAAK,SAAqB;IAC1B,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK/C;;;OAGG;IACH,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAkBnC;CACF;AAGD,eAAO,MAAM,wBAAwB,EAAE,cAA+C,CAAC;AACvF,eAAO,MAAM,wBAAwB;;CAAmB,CAAC;AAEzD,eAAO,MAAM,WAAW;;;;;;;;;;sBAMtB,CAAC"}
1
+ {"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,OAAO,EAIR,MAAM,uBAAuB,CAAC;AAmB/B;;GAEG;AACH,qBAAa,WAAY,SAAQ,OAAO;IACtC;;;OAGG;IACH,KAAK,SAAqB;IAC1B,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK/C;;;OAGG;IACH,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAmBnC;CACF;AAGD,eAAO,MAAM,wBAAwB,EAAE,cAA+C,CAAC;AACvF,eAAO,MAAM,wBAAwB;;CAAmB,CAAC;AAEzD,eAAO,MAAM,WAAW;;;;;;;;;;sBAMtB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { DateEditor, agDateEditorStyles, getDateEditorTemplate } from '@genesislcap/grid-pro';
2
+ /**
3
+ * @tagname %%prefix%%-date-editor
4
+ */
5
+ export class ZeroDateEditor extends DateEditor {
6
+ }
7
+ /**
8
+ * The Zero Date editor
9
+ *
10
+ * @public
11
+ * @remarks
12
+ * HTML Element: \<zero-date-editor\>
13
+ */
14
+ export const zeroAgDateEditor = ZeroDateEditor.compose({
15
+ baseName: 'date-editor',
16
+ styles: agDateEditorStyles,
17
+ template: getDateEditorTemplate('zero'),
18
+ });
@@ -1,3 +1,4 @@
1
+ export * from './date.editor';
1
2
  export * from './multiselect.editor';
2
3
  export * from './number.editor';
3
4
  export * from './select.editor';
@@ -1,4 +1,4 @@
1
- import { zeroAgNumberEditor, zeroAgSelectEditor, zeroAgMultiselectEditor } from './cell-editors';
1
+ import { zeroAgNumberEditor, zeroAgSelectEditor, zeroAgMultiselectEditor, zeroAgDateEditor, } from './cell-editors';
2
2
  import { zeroAgActionRenderer, zeroAgActionsMenuRenderer, zeroAgBooleanRenderer, zeroAgSelectRenderer, zeroAgTextRenderer, } from './cell-renderers';
3
3
  import { zeroGridPro } from './grid-pro';
4
4
  export const zeroGridComponents = {
@@ -7,6 +7,7 @@ export const zeroGridComponents = {
7
7
  zeroAgBooleanRenderer,
8
8
  zeroAgTextRenderer,
9
9
  zeroAgSelectRenderer,
10
+ zeroAgDateEditor,
10
11
  zeroAgMultiselectEditor,
11
12
  zeroAgSelectEditor,
12
13
  zeroAgNumberEditor,
@@ -1,5 +1,5 @@
1
1
  import { GridPro, GridProRendererTypes, foundationGridProShadowOptions, defaultGridProConfig as foundationConfig, } from '@genesislcap/grid-pro';
2
- import { ZeroNumberEditor, ZeroSelectEditor, ZeroMultiselectEditor } from './cell-editors';
2
+ import { ZeroNumberEditor, ZeroSelectEditor, ZeroMultiselectEditor, ZeroDateEditor, } from './cell-editors';
3
3
  import { ZeroAgActionRenderer, ZeroAgActionsMenuRenderer, ZeroBooleanRenderer, } from './cell-renderers';
4
4
  import { zeroGridProStyles as styles } from './grid-pro.styles';
5
5
  import { zeroGridProTemplate as template } from './grid-pro.template';
@@ -36,6 +36,7 @@ export class ZeroGridPro extends GridPro {
36
36
  [GridProRendererTypes.selectEditor]: ZeroSelectEditor,
37
37
  [GridProRendererTypes.numberEditor]: ZeroNumberEditor,
38
38
  [GridProRendererTypes.multiselectEditor]: ZeroMultiselectEditor,
39
+ [GridProRendererTypes.dateEditor]: ZeroDateEditor,
39
40
  };
40
41
  const isRapidTheme = this.theme === themeGenesisRapid || this.theme === themeGenesisRapidDark;
41
42
  if (isRapidTheme) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-zero-grid-pro",
3
3
  "description": "Genesis Foundation Zero Grid Pro",
4
- "version": "14.106.0",
4
+ "version": "14.107.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,13 +27,13 @@
27
27
  "serve": "genx serve"
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/genx": "14.106.0",
30
+ "@genesislcap/genx": "14.107.0",
31
31
  "rimraf": "^3.0.2"
32
32
  },
33
33
  "dependencies": {
34
- "@genesislcap/foundation-ui": "14.106.0",
35
- "@genesislcap/foundation-zero": "14.106.0",
36
- "@genesislcap/grid-pro": "14.106.0",
34
+ "@genesislcap/foundation-ui": "14.107.0",
35
+ "@genesislcap/foundation-zero": "14.107.0",
36
+ "@genesislcap/grid-pro": "14.107.0",
37
37
  "@microsoft/fast-colors": "^5.1.4",
38
38
  "@microsoft/fast-components": "^2.21.3",
39
39
  "@microsoft/fast-element": "^1.7.0",
@@ -54,5 +54,5 @@
54
54
  "access": "public"
55
55
  },
56
56
  "customElements": "dist/custom-elements.json",
57
- "gitHead": "5775af26a7db4736ab975e26d569ade3666ec303"
57
+ "gitHead": "688b8fadf0d82d432478cbac8762c93d649c1580"
58
58
  }