playbook_ui 13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2178 → 13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2197

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af16199bf3de903780fbe8aef3da42bc2864cdbed9ef37c559bd9c6e3b823ec8
4
- data.tar.gz: 3d64795bc4c41d875381d33a8303280f184fe0cc4915471f6f1cf11455ef604f
3
+ metadata.gz: 1d13491eeaf89f384cadbe0e40e8f2c5bc003d2e2ee8ff453dcc21f6b9e7e927
4
+ data.tar.gz: 639e2234b5d18e5c4eac2b27c1e3154009f82f179fcab4061e07e823bf6e009d
5
5
  SHA512:
6
- metadata.gz: fad31fe23e5f08b313d6e7b0d7c571c3ca20c08bd59d5e75b001009c8a2ccf2657eb84f3ac882093745458d494ca9d3d54056d83f76f06aafd6897f9c33285a4
7
- data.tar.gz: f0e6431938db0f7fec379cf5c6374d89f7383a9cd6936c3b302811519c74f96fd40df04580f7a5c0c8bfb8ce889c15567ed3075f65e4d32d6e792a83b5e84140
6
+ metadata.gz: 95be71f2516973805804bb9e11b4aecf43d4fb08ba20e0f9350154c40a5096df7599f43be99e5a0df57b497c595a60ede0240c077480bfb5bc08c106729d9298
7
+ data.tar.gz: 3b54c38e159aa79762919749aa2467f4b6177620b166a550144513377008439ba61340406f4ee493fb03052b7bbe7c81d0ae45a091ced7bc27e15082cdbd8aec
@@ -42,6 +42,36 @@ const MOCK_DATA = [
42
42
  },
43
43
  ];
44
44
 
45
+ const MOCK_DATA_LOADING = [
46
+ {
47
+ year: "2021",
48
+ quarter: null,
49
+ month: null,
50
+ day: null,
51
+ newEnrollments: "20",
52
+ scheduledMeetings: "10",
53
+ children: [],
54
+ },
55
+ {
56
+ year: "2022",
57
+ quarter: null,
58
+ month: null,
59
+ day: null,
60
+ newEnrollments: "20",
61
+ scheduledMeetings: "10",
62
+ children: [
63
+ {
64
+ year: "2022",
65
+ quarter: "Q1",
66
+ month: null,
67
+ day: null,
68
+ newEnrollments: "2",
69
+ scheduledMeetings: "35",
70
+ },
71
+ ],
72
+ },
73
+ ];
74
+
45
75
  const columnDefinitions = [
46
76
  {
47
77
  accessor: "year",
@@ -379,3 +409,21 @@ test("Generates Table.Body default + custom classname", () => {
379
409
  const tableHeader = kit.querySelector('tbody')
380
410
  expect(tableHeader).toHaveClass('pb_advanced_table_body custom-body-classname')
381
411
  });
412
+
413
+ test("inlineRowLoading prop renders inline loading if true", () => {
414
+ render(
415
+ <AdvancedTable
416
+ columnDefinitions={columnDefinitions}
417
+ data={{ testid: testId }}
418
+ inlineRowLoading
419
+ tableData={MOCK_DATA_LOADING}
420
+ />
421
+ );
422
+
423
+ const kit = screen.getByTestId(testId);
424
+ const rowButton = kit.querySelector(".gray-icon.expand-toggle-icon")
425
+ expect(rowButton).toBeInTheDocument()
426
+ rowButton.click()
427
+ const inlineLoading = kit.querySelector(".fa-spinner")
428
+ expect(inlineLoading).toBeInTheDocument()
429
+ });
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.18.0"
5
- VERSION = "13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2178"
5
+ VERSION = "13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2197"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2178
4
+ version: 13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2197
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-02-19 00:00:00.000000000 Z
12
+ date: 2024-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack