pict-section-recordset 1.0.69 → 1.0.70

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.
@@ -59,7 +59,7 @@ tmpAnticipate.anticipate(
59
59
  const libOratorHTTPProxy = require(`orator-http-proxy`);
60
60
  _Fable.serviceManager.addServiceType('OratorHTTPProxy', libOratorHTTPProxy);
61
61
  _Fable.serviceManager.instantiateServiceProvider('OratorHTTPProxy', {LogLevel: 2});
62
- // Proxy all /1.0/ requests to the locally-running bookstore service (you need to run this from https://github.com/stevenvelozo/retold-harness ... it's a one-liner to start the service)
62
+ // Proxy all /1.0/ requests to the locally-running bookstore service (you need to run this from https://github.com/fable-retold/retold-harness ... it's a one-liner to start the service)
63
63
  tmpAnticipate.anticipate(
64
64
  (fNext)=>
65
65
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict-section-recordset",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "Pict dynamic record set management views",
5
5
  "main": "source/Pict-Section-RecordSet.js",
6
6
  "directories": {
@@ -8,12 +8,12 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/stevenvelozo/pict-section-recordset.git"
11
+ "url": "git+https://github.com/fable-retold/pict-section-recordset.git"
12
12
  },
13
13
  "bugs": {
14
- "url": "https://github.com/stevenvelozo/pict-section-recordset/issues"
14
+ "url": "https://github.com/fable-retold/pict-section-recordset/issues"
15
15
  },
16
- "homepage": "https://github.com/stevenvelozo/pict-section-recordset#readme",
16
+ "homepage": "https://github.com/fable-retold/pict-section-recordset#readme",
17
17
  "scripts": {
18
18
  "start": "node source/Pict-Section-RecordSet.js",
19
19
  "tests": "npx quack test -g",
@@ -35,9 +35,9 @@
35
35
  "jquery": "^3.7.1",
36
36
  "pict": "^1.0.372",
37
37
  "pict-application": "^1.0.34",
38
- "pict-docuserve": "^1.0.1",
38
+ "pict-docuserve": "^1.4.4",
39
39
  "pict-service-commandlineutility": "^1.0.19",
40
- "quackage": "^1.2.3",
40
+ "quackage": "^1.3.0",
41
41
  "typescript": "^5.9.3"
42
42
  },
43
43
  "dependencies": {
@@ -373,6 +373,14 @@ class viewRecordSetList extends libPictRecordSetRecordView
373
373
  tmpRecordListData.PageLinkBookmarks.NextLink = tmpRecordListData.PageLinks[tmpRecordListData.PageLinkBookmarks.Next];
374
374
  }
375
375
 
376
+ // When there is only a single page there is nothing to paginate: hide the page
377
+ // buttons and the previous/next links. The "Showing X to Y of Z" summary stays.
378
+ if (tmpRecordListData.PageCount <= 1)
379
+ {
380
+ tmpRecordListData.PageLinksLimited = [];
381
+ tmpRecordListData.PageLinkBookmarks.ShowPreviousLink = false;
382
+ tmpRecordListData.PageLinkBookmarks.ShowNextLink = false;
383
+ }
376
384
  // Put code here to preprocess columns into other data parts.
377
385
  if (tmpRecordListData.RecordSetConfiguration.hasOwnProperty('RecordSetListColumns'))
378
386
  {
@@ -625,6 +633,14 @@ class viewRecordSetList extends libPictRecordSetRecordView
625
633
  tmpRecordListData.PageLinkBookmarks.NextLink = tmpRecordListData.PageLinks[tmpRecordListData.PageLinkBookmarks.Next];
626
634
  }
627
635
 
636
+ // When there is only a single page there is nothing to paginate: hide the page
637
+ // buttons and the previous/next links. The "Showing X to Y of Z" summary stays.
638
+ if (tmpRecordListData.PageCount <= 1)
639
+ {
640
+ tmpRecordListData.PageLinksLimited = [];
641
+ tmpRecordListData.PageLinkBookmarks.ShowPreviousLink = false;
642
+ tmpRecordListData.PageLinkBookmarks.ShowNextLink = false;
643
+ }
628
644
  tmpRecordListData.TableCells = pManifest?.TableCells;
629
645
 
630
646
  if (!tmpRecordListData.TableCells)