@pure-ds/core 0.6.3 → 0.6.5
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/.cursorrules +2 -1
- package/.github/copilot-instructions.md +2 -1
- package/custom-elements.json +329 -17
- package/dist/types/public/assets/js/pds-manager.d.ts +1 -1
- package/dist/types/public/assets/js/pds-manager.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-live-edit.d.ts +28 -8
- package/dist/types/public/assets/pds/components/pds-live-edit.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-generator.d.ts.map +1 -1
- package/package.json +1 -1
- package/public/assets/js/app.js +57 -15
- package/public/assets/js/pds-manager.js +162 -163
- package/public/assets/pds/components/pds-live-edit.js +1939 -1554
- package/public/assets/pds/custom-elements.json +329 -17
- package/public/assets/pds/pds-css-complete.json +1 -1
- package/public/assets/pds/vscode-custom-data.json +9 -7
- package/src/js/pds-core/pds-generator.js +80 -67
package/.cursorrules
CHANGED
|
@@ -35,7 +35,8 @@ PDS follows the [Pure Web Manifesto](https://pureweb.dev/manifesto): "The browse
|
|
|
35
35
|
| **Primitives & Utilities** | `src/js/pds-core/pds-ontology.js` | `.card`, `.badge`, `.btn-*`, `.flex`, `.gap-*`, `.surface-*` |
|
|
36
36
|
| **Enhancements** | `src/js/pds-core/pds-enhancers.js` | Enhancement metadata (`defaultPDSEnhancerMetadata`) + runtime (`defaultPDSEnhancers`) |
|
|
37
37
|
| **Generator Logic** | `src/js/pds-core/pds-generator.js` | How CSS is generated, token naming conventions |
|
|
38
|
-
| **Config** | `pds.config.js` | What's enabled in this workspace |
|
|
38
|
+
| **Config (Runtime)** | `pds.config.js` | What's enabled in this workspace |
|
|
39
|
+
| **Config (SSoT)** | `src/js/pds-core/pds-config.js` | JSDoc types + validation spec + `PDS_CONFIG_RELATIONS` for deterministic token mapping |
|
|
39
40
|
|
|
40
41
|
**For consuming projects** using `@pure-ds/core`, files are in `node_modules/@pure-ds/core/`:
|
|
41
42
|
- `custom-elements.json`
|
|
@@ -35,7 +35,8 @@ PDS follows the [Pure Web Manifesto](https://pureweb.dev/manifesto): "The browse
|
|
|
35
35
|
| **Primitives & Utilities** | `src/js/pds-core/pds-ontology.js` | `.card`, `.badge`, `.btn-*`, `.flex`, `.gap-*`, `.surface-*` |
|
|
36
36
|
| **Enhancements** | `src/js/pds-core/pds-enhancers.js` | Enhancement metadata (`defaultPDSEnhancerMetadata`) + runtime (`defaultPDSEnhancers`) |
|
|
37
37
|
| **Generator Logic** | `src/js/pds-core/pds-generator.js` | How CSS is generated, token naming conventions |
|
|
38
|
-
| **Config** | `pds.config.js` | What's enabled in this workspace |
|
|
38
|
+
| **Config (Runtime)** | `pds.config.js` | What's enabled in this workspace |
|
|
39
|
+
| **Config (SSoT)** | `src/js/pds-core/pds-config.js` | JSDoc types + validation spec + `PDS_CONFIG_RELATIONS` for deterministic token mapping |
|
|
39
40
|
|
|
40
41
|
**For consuming projects** using `@pure-ds/core`, files are in `node_modules/@pure-ds/core/`:
|
|
41
42
|
- `custom-elements.json`
|
package/custom-elements.json
CHANGED
|
@@ -1256,6 +1256,327 @@
|
|
|
1256
1256
|
}
|
|
1257
1257
|
]
|
|
1258
1258
|
},
|
|
1259
|
+
{
|
|
1260
|
+
"kind": "javascript-module",
|
|
1261
|
+
"path": "public/assets/pds/components/pds-live-edit.js",
|
|
1262
|
+
"declarations": [
|
|
1263
|
+
{
|
|
1264
|
+
"kind": "variable",
|
|
1265
|
+
"name": "EDITOR_TAG",
|
|
1266
|
+
"type": {
|
|
1267
|
+
"text": "string"
|
|
1268
|
+
},
|
|
1269
|
+
"default": "\"pds-live-edit\""
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"kind": "class",
|
|
1273
|
+
"description": "",
|
|
1274
|
+
"name": "PdsLiveEdit",
|
|
1275
|
+
"members": [
|
|
1276
|
+
{
|
|
1277
|
+
"kind": "method",
|
|
1278
|
+
"name": "_teardown"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"kind": "method",
|
|
1282
|
+
"name": "_handleMouseOver",
|
|
1283
|
+
"parameters": [
|
|
1284
|
+
{
|
|
1285
|
+
"name": "event"
|
|
1286
|
+
}
|
|
1287
|
+
]
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"kind": "method",
|
|
1291
|
+
"name": "_handleMouseOut",
|
|
1292
|
+
"parameters": [
|
|
1293
|
+
{
|
|
1294
|
+
"name": "event"
|
|
1295
|
+
}
|
|
1296
|
+
]
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"kind": "method",
|
|
1300
|
+
"name": "_findEditableTarget",
|
|
1301
|
+
"parameters": [
|
|
1302
|
+
{
|
|
1303
|
+
"name": "node"
|
|
1304
|
+
}
|
|
1305
|
+
]
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"kind": "method",
|
|
1309
|
+
"name": "_showForTarget",
|
|
1310
|
+
"parameters": [
|
|
1311
|
+
{
|
|
1312
|
+
"name": "target"
|
|
1313
|
+
}
|
|
1314
|
+
]
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"kind": "method",
|
|
1318
|
+
"name": "_removeActiveUI"
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"kind": "method",
|
|
1322
|
+
"name": "_addDocumentListeners"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"kind": "method",
|
|
1326
|
+
"name": "_removeDocumentListeners"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
"kind": "method",
|
|
1330
|
+
"name": "_handleDocumentPointer",
|
|
1331
|
+
"parameters": [
|
|
1332
|
+
{
|
|
1333
|
+
"name": "event"
|
|
1334
|
+
}
|
|
1335
|
+
]
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"kind": "method",
|
|
1339
|
+
"name": "_handleDocumentKeydown",
|
|
1340
|
+
"parameters": [
|
|
1341
|
+
{
|
|
1342
|
+
"name": "event"
|
|
1343
|
+
}
|
|
1344
|
+
]
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"kind": "method",
|
|
1348
|
+
"name": "_scheduleClose"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"kind": "method",
|
|
1352
|
+
"name": "_clearCloseTimer"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"kind": "method",
|
|
1356
|
+
"name": "_addRepositionListeners"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"kind": "method",
|
|
1360
|
+
"name": "_removeRepositionListeners"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"kind": "method",
|
|
1364
|
+
"name": "_repositionDropdown"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"kind": "method",
|
|
1368
|
+
"name": "_positionDropdown",
|
|
1369
|
+
"parameters": [
|
|
1370
|
+
{
|
|
1371
|
+
"name": "target"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"name": "dropdown"
|
|
1375
|
+
}
|
|
1376
|
+
]
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"kind": "method",
|
|
1380
|
+
"name": "_handleMouseMove",
|
|
1381
|
+
"parameters": [
|
|
1382
|
+
{
|
|
1383
|
+
"name": "event"
|
|
1384
|
+
}
|
|
1385
|
+
]
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"kind": "method",
|
|
1389
|
+
"name": "_isPointerWithinSafeZone"
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"kind": "method",
|
|
1393
|
+
"name": "_buildDropdown",
|
|
1394
|
+
"parameters": [
|
|
1395
|
+
{
|
|
1396
|
+
"name": "target"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"name": "quickPaths"
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"name": "hints"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"name": "debug"
|
|
1406
|
+
}
|
|
1407
|
+
]
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
"kind": "method",
|
|
1411
|
+
"name": "_renderQuickForm",
|
|
1412
|
+
"parameters": [
|
|
1413
|
+
{
|
|
1414
|
+
"name": "container"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
"name": "paths"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"name": "design"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"name": "hints"
|
|
1424
|
+
}
|
|
1425
|
+
]
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"kind": "method",
|
|
1429
|
+
"name": "_openDrawer",
|
|
1430
|
+
"parameters": [
|
|
1431
|
+
{
|
|
1432
|
+
"name": "target"
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
"name": "quickPaths"
|
|
1436
|
+
}
|
|
1437
|
+
]
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"kind": "method",
|
|
1441
|
+
"name": "_handleValueChange",
|
|
1442
|
+
"parameters": [
|
|
1443
|
+
{
|
|
1444
|
+
"name": "event"
|
|
1445
|
+
}
|
|
1446
|
+
]
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"kind": "method",
|
|
1450
|
+
"name": "_schedulePatch",
|
|
1451
|
+
"parameters": [
|
|
1452
|
+
{
|
|
1453
|
+
"name": "patch"
|
|
1454
|
+
}
|
|
1455
|
+
]
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"kind": "field",
|
|
1459
|
+
"name": "_boundMouseOver"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"kind": "field",
|
|
1463
|
+
"name": "_boundMouseOut"
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"kind": "field",
|
|
1467
|
+
"name": "_boundMouseMove"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"kind": "field",
|
|
1471
|
+
"name": "_boundReposition"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"kind": "field",
|
|
1475
|
+
"name": "_activeTarget",
|
|
1476
|
+
"type": {
|
|
1477
|
+
"text": "null"
|
|
1478
|
+
},
|
|
1479
|
+
"default": "null"
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"kind": "field",
|
|
1483
|
+
"name": "_activeDropdown",
|
|
1484
|
+
"type": {
|
|
1485
|
+
"text": "null"
|
|
1486
|
+
},
|
|
1487
|
+
"default": "null"
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"kind": "field",
|
|
1491
|
+
"name": "_holdOpen",
|
|
1492
|
+
"type": {
|
|
1493
|
+
"text": "boolean"
|
|
1494
|
+
},
|
|
1495
|
+
"default": "false"
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"kind": "field",
|
|
1499
|
+
"name": "_closeTimer",
|
|
1500
|
+
"type": {
|
|
1501
|
+
"text": "null"
|
|
1502
|
+
},
|
|
1503
|
+
"default": "null"
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"kind": "field",
|
|
1507
|
+
"name": "_drawer",
|
|
1508
|
+
"type": {
|
|
1509
|
+
"text": "null"
|
|
1510
|
+
},
|
|
1511
|
+
"default": "null"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"kind": "field",
|
|
1515
|
+
"name": "_pendingPatch",
|
|
1516
|
+
"type": {
|
|
1517
|
+
"text": "null"
|
|
1518
|
+
},
|
|
1519
|
+
"default": "null"
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"kind": "field",
|
|
1523
|
+
"name": "_applyTimer",
|
|
1524
|
+
"type": {
|
|
1525
|
+
"text": "null"
|
|
1526
|
+
},
|
|
1527
|
+
"default": "null"
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"kind": "field",
|
|
1531
|
+
"name": "_selectors",
|
|
1532
|
+
"type": {
|
|
1533
|
+
"text": "null"
|
|
1534
|
+
},
|
|
1535
|
+
"default": "null"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
"kind": "field",
|
|
1539
|
+
"name": "_lastPointer",
|
|
1540
|
+
"type": {
|
|
1541
|
+
"text": "null"
|
|
1542
|
+
},
|
|
1543
|
+
"default": "null"
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"kind": "field",
|
|
1547
|
+
"name": "_boundDocPointer"
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"kind": "field",
|
|
1551
|
+
"name": "_boundDocKeydown"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"kind": "field",
|
|
1555
|
+
"name": "_connected",
|
|
1556
|
+
"type": {
|
|
1557
|
+
"text": "boolean"
|
|
1558
|
+
},
|
|
1559
|
+
"default": "false"
|
|
1560
|
+
}
|
|
1561
|
+
],
|
|
1562
|
+
"superclass": {
|
|
1563
|
+
"name": "HTMLElement"
|
|
1564
|
+
},
|
|
1565
|
+
"tagName": "EDITOR_TAG",
|
|
1566
|
+
"customElement": true
|
|
1567
|
+
}
|
|
1568
|
+
],
|
|
1569
|
+
"exports": [
|
|
1570
|
+
{
|
|
1571
|
+
"kind": "custom-element-definition",
|
|
1572
|
+
"name": "EDITOR_TAG",
|
|
1573
|
+
"declaration": {
|
|
1574
|
+
"name": "PdsLiveEdit",
|
|
1575
|
+
"module": "public/assets/pds/components/pds-live-edit.js"
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
]
|
|
1579
|
+
},
|
|
1259
1580
|
{
|
|
1260
1581
|
"kind": "javascript-module",
|
|
1261
1582
|
"path": "public/assets/pds/components/pds-omnibox.js",
|
|
@@ -1306,6 +1627,10 @@
|
|
|
1306
1627
|
"kind": "field",
|
|
1307
1628
|
"name": "icon"
|
|
1308
1629
|
},
|
|
1630
|
+
{
|
|
1631
|
+
"kind": "field",
|
|
1632
|
+
"name": "itemGrid"
|
|
1633
|
+
},
|
|
1309
1634
|
{
|
|
1310
1635
|
"kind": "method",
|
|
1311
1636
|
"name": "formAssociatedCallback"
|
|
@@ -1382,6 +1707,9 @@
|
|
|
1382
1707
|
},
|
|
1383
1708
|
{
|
|
1384
1709
|
"name": "icon"
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"name": "item-grid"
|
|
1385
1713
|
}
|
|
1386
1714
|
],
|
|
1387
1715
|
"superclass": {
|
|
@@ -2240,23 +2568,7 @@
|
|
|
2240
2568
|
"kind": "class",
|
|
2241
2569
|
"description": "",
|
|
2242
2570
|
"name": "PdsTheme",
|
|
2243
|
-
"members": [
|
|
2244
|
-
{
|
|
2245
|
-
"kind": "field",
|
|
2246
|
-
"name": "label",
|
|
2247
|
-
"description": "Gets the legend/aria-label text to display.",
|
|
2248
|
-
"return": {
|
|
2249
|
-
"type": {
|
|
2250
|
-
"text": "string"
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
}
|
|
2254
|
-
],
|
|
2255
|
-
"attributes": [
|
|
2256
|
-
{
|
|
2257
|
-
"name": "label"
|
|
2258
|
-
}
|
|
2259
|
-
],
|
|
2571
|
+
"members": [],
|
|
2260
2572
|
"superclass": {
|
|
2261
2573
|
"name": "HTMLElement"
|
|
2262
2574
|
},
|
|
@@ -785,7 +785,7 @@ export function startLive(PDS2: any, config: any, { emitReady, applyResolvedThem
|
|
|
785
785
|
"__#private@#generateMeshGradientsDark"(colors: any): string;
|
|
786
786
|
"__#private@#generateDarkModeComponentRules"(): string;
|
|
787
787
|
"__#private@#generateBodyBackgroundMeshRule"(): string;
|
|
788
|
-
"__#private@#generateLiquidGlassUtility"(): "" | "/* Liquid glass utility (opt-in via options.liquidGlassEffects) */\n.liquid-glass {\n border-radius: var(--radius-lg);\n /* Subtle translucent fill blended with surface */\n background: color-mix(in oklab, var(--color-surface-subtle) 45%, transparent);\n\n background-image: linear-gradient(\n 135deg,\n rgba(255,255,255,0.35),\n rgba(255,255,255,0.12)\n );\n /* Frosted glass blur + saturation */\n -webkit-backdrop-filter: blur(12px) saturate(140%);\n backdrop-filter: blur(12px) saturate(140%);\n /* Soft inner highlight and outer depth */\n box-shadow:\n inset 0 1px 0 rgba(255,255,255,0.6),\n inset 0 -40px 80px rgba(255,255,255,0.12),\n 0 10px 30px rgba(0,0,0,0.10);\n /* Glossy border with slight light and dark edges */\n border:
|
|
788
|
+
"__#private@#generateLiquidGlassUtility"(): "" | "/* Liquid glass utility (opt-in via options.liquidGlassEffects) */\n.liquid-glass {\n border-radius: var(--radius-lg);\n /* Subtle translucent fill blended with surface */\n background: color-mix(in oklab, var(--color-surface-subtle) 45%, transparent);\n\n background-image: linear-gradient(\n 135deg,\n rgba(255,255,255,0.35),\n rgba(255,255,255,0.12)\n );\n /* Frosted glass blur + saturation */\n -webkit-backdrop-filter: blur(12px) saturate(140%);\n backdrop-filter: blur(12px) saturate(140%);\n /* Soft inner highlight and outer depth */\n box-shadow:\n inset 0 1px 0 rgba(255,255,255,0.6),\n inset 0 -40px 80px rgba(255,255,255,0.12),\n 0 10px 30px rgba(0,0,0,0.10);\n /* Glossy border with slight light and dark edges */\n border: var(--border-width-thin) solid color-mix(in oklab, var(--color-primary-500) 22%, transparent);\n outline: 1px solid color-mix(in oklab, #ffffff 18%, transparent);\n outline-offset: -1px;\n}\n\nhtml[data-theme=\"dark\"] .liquid-glass {\n background: color-mix(in oklab, var(--color-surface-inverse) 45%, transparent);\n background-image: linear-gradient(\n 135deg,\n color-mix(in oklab, var(--color-primary-300) 40%, transparent),\n color-mix(in oklab, var(--color-surface-overlay) 48%, transparent)\n );\n box-shadow:\n inset 0 1px 0 rgba(255,255,255,0.12),\n inset 0 -40px 80px rgba(0,0,0,0.55),\n 0 18px 38px rgba(0,0,0,0.65);\n border: var(--border-width-thin) solid color-mix(in oklab, var(--color-primary-300) 26%, transparent);\n outline: 1px solid color-mix(in oklab, #ffffff 16%, transparent);\n}\n\n/* Fallback when backdrop-filter isn't supported */\n@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {\n .liquid-glass {\n /* Strengthen fill a bit to compensate for lack of blur */\n background: color-mix(in oklab, var(--color-surface-subtle) 70%, rgba(255,255,255,0.4));\n box-shadow:\n inset 0 1px 0 rgba(255,255,255,0.6),\n 0 10px 24px rgba(0,0,0,0.08);\n }\n\n html[data-theme=\"dark\"] .liquid-glass {\n background: color-mix(in oklab, var(--color-surface-inverse) 70%, transparent);\n box-shadow:\n inset 0 1px 0 rgba(255,255,255,0.1),\n 0 18px 32px rgba(0,0,0,0.58);\n }\n}\n";
|
|
789
789
|
"__#private@#generateBorderGradientUtilities"(): string;
|
|
790
790
|
"__#private@#generateSemanticHTMLStyles"(): string;
|
|
791
791
|
"__#private@#generateFormStyles"(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-manager.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds-manager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-manager.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds-manager.js"],"names":[],"mappings":"AAo8TA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA3hME;;;WAGG;;;QAgCH;;;;;;WAMG;;;;;QA8EH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAugHH;;;WAGG;;;;;;QAwrBH;;WAEG;;;;;;;;QAoFH;;;;;;WAMG;;;;;;QAsKH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoqDJ"}
|
|
@@ -11,10 +11,13 @@ declare function titleize(value: any): string;
|
|
|
11
11
|
declare function getValueAtPath(obj: any, pathSegments: any): any;
|
|
12
12
|
declare function setValueAtPath(target: any, pathSegments: any, value: any): void;
|
|
13
13
|
declare function setValueAtJsonPath(target: any, jsonPath: any, value: any): void;
|
|
14
|
+
declare function getEnumOptions(path: any): any;
|
|
15
|
+
declare function normalizeEnumValue(path: any, value: any): any;
|
|
14
16
|
declare function normalizePaths(paths: any): any[];
|
|
15
17
|
declare function collectRelationPathsByCategory(): {};
|
|
16
18
|
declare function collectPathsFromRelations(target: any): any[];
|
|
17
19
|
declare function collectQuickRulePaths(target: any): string[];
|
|
20
|
+
declare function pathExistsInDesign(path: any, design: any): boolean;
|
|
18
21
|
declare function filterPathsByContext(target: any, paths: any): any;
|
|
19
22
|
declare function getActiveTheme(): {
|
|
20
23
|
value: string;
|
|
@@ -30,8 +33,10 @@ declare function getCustomPropertyNames(style: any): any[];
|
|
|
30
33
|
declare function makeTokenMatchers(relations: any): any[];
|
|
31
34
|
declare function addToValueMap(map: any, key: any, value: any): void;
|
|
32
35
|
declare function getTokenIndex(): any;
|
|
36
|
+
declare function extractAllVarRefs(text: any): Set<any>;
|
|
33
37
|
declare function collectVarRefsFromInline(element: any): Set<any>;
|
|
34
38
|
declare function collectScanTargets(target: any, limit?: number): any[];
|
|
39
|
+
declare function collectVarRefsFromMatchingRules(element: any): Set<any>;
|
|
35
40
|
declare function collectPathsFromComputedStyles(target: any): any[] | {
|
|
36
41
|
paths: any[];
|
|
37
42
|
hints: {};
|
|
@@ -64,7 +69,11 @@ declare function getPresetOptions(): {
|
|
|
64
69
|
declare function getActivePresetId(): any;
|
|
65
70
|
declare function applyPresetSelection(presetId: any): Promise<void>;
|
|
66
71
|
declare function setFormSchemas(form: any, schema: any, uiSchema: any, design: any): void;
|
|
67
|
-
declare function buildForm(paths: any, design: any,
|
|
72
|
+
declare function buildForm(paths: any, design: any, onSubmit: any, onUndo: any, hints?: {}): Promise<{
|
|
73
|
+
form: import("../../../../src/js/pds").SchemaForm;
|
|
74
|
+
applyBtn: HTMLButtonElement;
|
|
75
|
+
undoBtn: HTMLButtonElement;
|
|
76
|
+
}>;
|
|
68
77
|
declare const PDS: any;
|
|
69
78
|
declare const EDITOR_TAG: "pds-live-edit";
|
|
70
79
|
declare const STYLE_ID: "pds-live-editor-styles";
|
|
@@ -88,7 +97,11 @@ declare const QUICK_RULES: {
|
|
|
88
97
|
declare const DEFAULT_QUICK_PATHS: string[];
|
|
89
98
|
declare const QUICK_STYLE_PROPERTIES: string[];
|
|
90
99
|
declare const INLINE_VAR_REGEX: RegExp;
|
|
100
|
+
declare const CUSTOM_PROP_REGEX: RegExp;
|
|
91
101
|
declare const COLOR_VALUE_REGEX: RegExp;
|
|
102
|
+
declare const ENUM_FIELD_OPTIONS: {
|
|
103
|
+
"shape.borderWidth": string[];
|
|
104
|
+
};
|
|
92
105
|
declare let cachedTokenIndex: any;
|
|
93
106
|
declare let cachedTokenIndexMeta: any;
|
|
94
107
|
declare let colorNormalizer: any;
|
|
@@ -108,8 +121,6 @@ declare class PdsLiveEdit extends HTMLElement {
|
|
|
108
121
|
_holdOpen: boolean;
|
|
109
122
|
_closeTimer: number;
|
|
110
123
|
_drawer: HTMLElement;
|
|
111
|
-
_pendingPatch: any;
|
|
112
|
-
_applyTimer: any;
|
|
113
124
|
_selectors: {
|
|
114
125
|
selector: string;
|
|
115
126
|
list: any[];
|
|
@@ -118,9 +129,11 @@ declare class PdsLiveEdit extends HTMLElement {
|
|
|
118
129
|
x: any;
|
|
119
130
|
y: any;
|
|
120
131
|
};
|
|
121
|
-
_boundDocPointer: any;
|
|
122
132
|
_boundDocKeydown: any;
|
|
123
133
|
_connected: boolean;
|
|
134
|
+
_undoStack: any[];
|
|
135
|
+
_dropdownMenuOpen: boolean;
|
|
136
|
+
_dropdownObserver: MutationObserver;
|
|
124
137
|
connectedCallback(): void;
|
|
125
138
|
disconnectedCallback(): void;
|
|
126
139
|
_teardown(): void;
|
|
@@ -131,7 +144,6 @@ declare class PdsLiveEdit extends HTMLElement {
|
|
|
131
144
|
_removeActiveUI(): void;
|
|
132
145
|
_addDocumentListeners(): void;
|
|
133
146
|
_removeDocumentListeners(): void;
|
|
134
|
-
_handleDocumentPointer(event: any): void;
|
|
135
147
|
_handleDocumentKeydown(event: any): void;
|
|
136
148
|
_scheduleClose(): void;
|
|
137
149
|
_clearCloseTimer(): void;
|
|
@@ -140,11 +152,19 @@ declare class PdsLiveEdit extends HTMLElement {
|
|
|
140
152
|
_repositionDropdown(): void;
|
|
141
153
|
_positionDropdown(target: any, dropdown: any): void;
|
|
142
154
|
_handleMouseMove(event: any): void;
|
|
155
|
+
_addMouseMoveListener(): void;
|
|
156
|
+
_removeMouseMoveListener(): void;
|
|
157
|
+
_addMouseOverListener(): void;
|
|
158
|
+
_removeMouseOverListener(): void;
|
|
159
|
+
_watchDropdownState(): void;
|
|
160
|
+
_watchDropdownState(): void;
|
|
161
|
+
_unwatchDropdownState(): void;
|
|
162
|
+
_unwatchDropdownState(): void;
|
|
143
163
|
_isPointerWithinSafeZone(): boolean;
|
|
144
164
|
_buildDropdown(target: any, quickPaths: any, hints: any, debug: any): HTMLElement;
|
|
145
|
-
_renderQuickForm(container: any, paths: any, design: any, hints: any): Promise<void>;
|
|
165
|
+
_renderQuickForm(container: any, footer: any, paths: any, design: any, hints: any, target: any, quickPaths: any): Promise<void>;
|
|
146
166
|
_openDrawer(target: any, quickPaths: any): Promise<void>;
|
|
147
|
-
|
|
148
|
-
|
|
167
|
+
_handleFormSubmit(event: any, form: any): Promise<void>;
|
|
168
|
+
_handleUndo(): Promise<void>;
|
|
149
169
|
}
|
|
150
170
|
//# sourceMappingURL=pds-live-edit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-live-edit.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-live-edit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-live-edit.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-live-edit.js"],"names":[],"mappings":"AA4IA,2CAGC;AAED,sCA2FC;AAED,6DAgBC;AAED;;;EAoCC;AAED,+CAGC;AAED,yDAWC;AAED,8CAOC;AAED,kEAOC;AAED,kFAaC;AAED,kFAeC;AAED,gDAMC;AAED,gEAiBC;AAED,mDAWC;AAED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GC;IAED,yCAMC;IAED,uBAcC;IAED,yBAKC;IAED,gCAIC;IAED,mCAIC;IAED,4BAOC;IAED,oDA+DC;IAED,mCAGC;IAED,8BAGC;IAED,iCAGC;IAED,8BAGC;IAED,iCAGC;IAED,4BA6BC;IASD,4BA6BC;IApCD,8BAKC;IAiCD,8BAKC;IAED,oCAWC;IAED,kFA2DC;IAED,gIAyCC;IAED,yDA0HC;IAED,wDA6BC;IAED,6BAyBC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-generator.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-generator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-generator.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-generator.js"],"names":[],"mappings":"AAwoKA;;;;;;;;;GASG;AACH,8CALW,MAAM,YAEd;IAAyB,WAAW,GAA5B,MAAM;CACd,GAAU;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,KAAK,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,OAAO,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAC;QAAC,GAAG,EAAC,MAAM,CAAC;QAAC,OAAO,CAAC,EAAC,MAAM,CAAA;KAAC,CAAC,CAAA;CAAE,CAyIpH;AAED;;;;;;;GAOG;AACH,0CAJW,KAAK,CAAC,MAAM,CAAC,YACb,MAAM,GACJ;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,KAAK,CAAC;YAAC,IAAI,EAAC,MAAM,CAAC;YAAC,OAAO,EAAC,MAAM,CAAC;YAAC,KAAK,EAAC,MAAM,CAAC;YAAC,GAAG,EAAC,MAAM,CAAC;YAAC,OAAO,CAAC,EAAC,MAAM,CAAA;SAAC,CAAC,CAAA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