@gramlot/gramlot-examples 0.3.3 → 0.3.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.
Files changed (32) hide show
  1. package/README.md +6 -3
  2. package/package.json +4 -3
  3. package/src/gramlot_examples/catalog.json +54 -0
  4. package/src/gramlot_examples/gallery/dist/frame.js +548 -36
  5. package/src/gramlot_examples/gallery/dist/gallery.js +2467 -16677
  6. package/src/gramlot_examples/gallery/dist/inputs.js +12 -6
  7. package/src/gramlot_examples/gallery/dist/inspector.js +547 -35
  8. package/src/gramlot_examples/gallery/dist/layout.js +847 -28
  9. package/src/gramlot_examples/gallery/dist/notices.json +0 -24
  10. package/src/gramlot_examples/gallery/dist/theme-styles.js +1 -1
  11. package/src/gramlot_examples/gallery/gallery-page.js +77 -47
  12. package/src/gramlot_examples/gallery/gallery.css +61 -38
  13. package/src/gramlot_examples/gallery/guided-demo.js +151 -0
  14. package/src/gramlot_examples/gallery/page.js +6 -6
  15. package/src/gramlot_examples/index.js +1 -0
  16. package/src/gramlot_examples/pages/layout/01_border.js +80 -0
  17. package/src/gramlot_examples/pages/layout/01_border.md +23 -0
  18. package/src/gramlot_examples/pages/layout/02_nested.js +99 -0
  19. package/src/gramlot_examples/pages/layout/02_nested.md +23 -0
  20. package/src/gramlot_examples/pages/layout/03_rounded.js +111 -0
  21. package/src/gramlot_examples/pages/layout/03_rounded.md +25 -0
  22. package/src/gramlot_examples/pages/layout/04_drawer_handles.js +140 -0
  23. package/src/gramlot_examples/pages/layout/04_drawer_handles.md +33 -0
  24. package/src/gramlot_examples/pages/layout/05_nested_lab.js +251 -0
  25. package/src/gramlot_examples/pages/layout/05_nested_lab.md +25 -0
  26. package/src/gramlot_examples/pages/layout/06_border_events.js +118 -0
  27. package/src/gramlot_examples/pages/layout/06_border_events.md +25 -0
  28. package/src/gramlot_examples/pages/layout/07_tabs.js +300 -0
  29. package/src/gramlot_examples/pages/layout/07_tabs.md +37 -0
  30. package/src/gramlot_examples/pages/layout/08_stack.js +142 -0
  31. package/src/gramlot_examples/pages/layout/08_stack.md +27 -0
  32. package/src/gramlot_examples/pages/layout/README.md +15 -0
package/README.md CHANGED
@@ -12,7 +12,7 @@ npm install @gramlot/gramlot-examples
12
12
  [![PyPI](https://img.shields.io/pypi/v/gramlot-examples)](https://pypi.org/project/gramlot-examples/)
13
13
  [![npm](https://img.shields.io/npm/v/@gramlot/gramlot-examples)](https://www.npmjs.com/package/@gramlot/gramlot-examples)
14
14
 
15
- Current release: 0.3.3.
15
+ Current release: 0.3.5.
16
16
 
17
17
  [Documentation and learning sequence](https://gramlot-examples.readthedocs.io/en/latest/)
18
18
  include every lesson, its Python and JavaScript source, and the gallery guide.
@@ -30,7 +30,7 @@ Choose [packaged or source-checkout updates](docs/010-gallery.md#ge-010-050). A
30
30
 
31
31
  ## Pages
32
32
 
33
- [`src/gramlot_examples/pages/`](https://github.com/gramlot-org/gramlot-examples/blob/main/src/gramlot_examples/pages/README.md) holds four
33
+ [`src/gramlot_examples/pages/`](https://github.com/gramlot-org/gramlot-examples/blob/main/src/gramlot_examples/pages/README.md) holds five
34
34
  families. Each example is a Python page and its JavaScript equivalent, with a
35
35
  same-name README:
36
36
 
@@ -43,7 +43,10 @@ same-name README:
43
43
  requires the current core release; each lesson states which features it uses.
44
44
 
45
45
  - `components/`: twenty-five lessons for inputs, labelbox, formlet, group copy,
46
- command buttons and field validation (`w01`–`w25`), with compact touch previews.
46
+ command buttons and field validation (`w01`–`w25`), with compact controls.
47
+ - `layout/`: eight container lessons (`l01`–`l08`), with live splitters, drawers,
48
+ nested layouts, selection and closing events, fourteen tab presentations,
49
+ a guided drawer tour and a lazy carousel with retained live previews.
47
50
 
48
51
  Each `NN_name.js` exports `Page` and `Logic`; the Python page `NN_name.py` takes its
49
52
  `Logic` from the module beside it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gramlot/gramlot-examples",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Gramlot example pages, the gallery page and its catalogue.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "prepack": "node scripts/build-browser.mjs"
15
15
  },
16
16
  "dependencies": {
17
- "@gramlot/gramlot": ">=0.3.1"
17
+ "@gramlot/gramlot": ">=0.3.3"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@genrojs/bag": ">=0.11.0",
@@ -42,7 +42,8 @@
42
42
  "src/gramlot_examples/gallery/gallery-page.js",
43
43
  "src/gramlot_examples/gallery/gallery.css",
44
44
  "src/gramlot_examples/gallery/dist",
45
- "src/gramlot_examples/gallery/collections.js"
45
+ "src/gramlot_examples/gallery/collections.js",
46
+ "src/gramlot_examples/gallery/guided-demo.js"
46
47
  ],
47
48
  "engines": {
48
49
  "node": ">=22"
@@ -487,6 +487,60 @@
487
487
  "description": "Transformations, conditions, warnings, local callbacks and remote validation."
488
488
  }
489
489
  ]
490
+ },
491
+ {
492
+ "key": "layout",
493
+ "title": "Containers",
494
+ "examples": [
495
+ {
496
+ "key": "l01",
497
+ "folder": "01_border",
498
+ "title": "Border regions and splitters",
499
+ "description": "A customer workspace divided into a header, filters, an editor and a live summary. The center uses the space left by the other regions."
500
+ },
501
+ {
502
+ "key": "l02",
503
+ "folder": "02_nested",
504
+ "title": "Nested borders and layout designs",
505
+ "description": "An outer workspace contains another independent borderContainer. This separates application navigation from the editor and its output."
506
+ },
507
+ {
508
+ "key": "l03",
509
+ "folder": "03_rounded",
510
+ "title": "Rounded borders and popups",
511
+ "description": "Two nested containers share a reactive corner radius, while date and choice popups open inside the editor."
512
+ },
513
+ {
514
+ "key": "l04",
515
+ "folder": "04_drawer_handles",
516
+ "title": "Drawers: handles, content and retained Data",
517
+ "description": "Four drawers surround one customer workspace. Each contains useful controls or shared output, so closing a pane has a visible purpose."
518
+ },
519
+ {
520
+ "key": "l05",
521
+ "folder": "05_nested_lab",
522
+ "title": "Nested regions playground",
523
+ "description": "A small application workspace built from five nested containers. Size controls let you inspect several levels of layout while real widgets keep working."
524
+ },
525
+ {
526
+ "key": "l06",
527
+ "folder": "06_border_events",
528
+ "title": "Border events and controllers",
529
+ "description": "The example makes container notifications visible as counters and payloads, using ordinary dataController subscriptions."
530
+ },
531
+ {
532
+ "key": "l07",
533
+ "folder": "07_tabs",
534
+ "title": "Tabs, selection and closing",
535
+ "description": "Compare fourteen working tab presentations: styles on four sides, horizontal and vertical alignment, then selection, icons, badges and closing."
536
+ },
537
+ {
538
+ "key": "l08",
539
+ "folder": "08_stack",
540
+ "title": "Demo carousel and live preview",
541
+ "description": "The left drawer browses every other demo as a miniature; the center lets you try the chosen demo at its normal size."
542
+ }
543
+ ]
490
544
  }
491
545
  ]
492
546
  }