playbook_ui_docs 14.16.0.pre.alpha.PBNTR881advancedtablefullscreen6884 → 14.16.0.pre.alpha.PBNTR881advancedtablefullscreen6929

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6dc9d3bcfd59d38f62b3394d0f454e221851e173068b08431b4782a5c8fe97b6
4
- data.tar.gz: 11faec3dade3eecb3f47101cb7ee8d8cdb51aa467768388da501954c2a156f69
3
+ metadata.gz: 630e3b382df0be94083216d7c14a0d676c861920e0fa2e907e677ad107386571
4
+ data.tar.gz: cba9f953eb2f33b6efad702f05bae942e02a59a4e46885c772e3c8c6ac060797
5
5
  SHA512:
6
- metadata.gz: a14d8b66c5a793f3fed1eb7898ea1f891236ff16a8555f334274dfaaf71ac7ac13639ed8120e4927cab18185669ad4d21250dc1090c83e65c4bc77946bbba6cf
7
- data.tar.gz: 9d8b4fcf3dcd6e08db4b902d1c429d6a206e8eb8debbd1b64fea4afc3c6c5238acf0475a3e67ea2168bde4f35881672683fd620359811f1c875eb68bec8b7d93
6
+ metadata.gz: e14ae80708867494840a17cf4106119f6ed1c99984723f8ab119ae17d92599520070e68bf27f65468921514f86b1a542a72d9e0306f9c07dd45d941623b0d85c
7
+ data.tar.gz: 923b4b666668c9fb361e73f19dd8b13f226b158b662021ccde64dea6510f85dd0ae07e038b6b91f38ff08bef67dab58090952aefb054c27356fcba6480c0f271
@@ -54,9 +54,9 @@ const AdvancedTableFullscreen = (props) => {
54
54
  />
55
55
  </Flex>
56
56
  <AdvancedTable
57
+ allowFullScreen
57
58
  columnDefinitions={columnDefinitions}
58
- fullscreenable
59
- getFullscreenControls={({ toggleFullscreen }) => setFullscreenToggleSmall(() => toggleFullscreen)}
59
+ fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleSmall(() => toggleFullscreen)}
60
60
  tableData={MOCK_DATA}
61
61
  {...props}
62
62
  >
@@ -72,9 +72,9 @@ const AdvancedTableFullscreen = (props) => {
72
72
  />
73
73
  </Flex>
74
74
  <AdvancedTable
75
+ allowFullScreen
75
76
  columnDefinitions={columnDefinitions}
76
- fullscreenable
77
- getFullscreenControls={({ toggleFullscreen }) => setFullscreenToggleLarge(() => toggleFullscreen)}
77
+ fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleLarge(() => toggleFullscreen)}
78
78
  responsive="none"
79
79
  tableData={PAGINATION_MOCK_DATA}
80
80
  tableProps={tableProps}
@@ -1,3 +1,3 @@
1
- Trigger Fullscreen mode with the `fullscreenable`and `getFullscreenControls` props. `fullscreenable` is a boolean that enables Fullscreen functionality for an Advanced Table. `getFullscreenControls` is a callback function that receives an object containing the table's internal `toggleFullscreen` function, allowing you to store and trigger Fullscreen from the parent component. An external trigger (like a button) must be used to activate Fullscreen mode.
1
+ Trigger Fullscreen mode with the `allowFullScreen`and `fullScreenControl` props. `allowFullScreen` is a boolean that enables Fullscreen functionality for an Advanced Table. `fullScreenControl` is a callback function that receives an object containing the table's internal `toggleFullscreen` function, allowing you to store and trigger Fullscreen from the parent component. An external trigger (like a button) must be used to activate Fullscreen mode.
2
2
 
3
3
  Exit Fullscreen mode by clicking the minimize top-right-corner icon or by pressing the "Escape" keyboard key.
@@ -4,14 +4,3 @@
4
4
  inline: true,
5
5
  picker_id: "date-picker-inline"
6
6
  }) %>
7
-
8
- <%= javascript_tag do %>
9
- window.addEventListener("DOMContentLoaded", (event) => {
10
- const fpInline = document.querySelector("#date-picker-inline")._flatpickr
11
- <!-- Display the angle-down icon when a date has been selected -->
12
- const showAngleDownHandler = () => {
13
- document.querySelector('.inline-date-picker').classList.add('show-angle-down-icon')
14
- }
15
- fpInline.config.onChange.push(showAngleDownHandler)
16
- })
17
- <% end %>
@@ -3,19 +3,12 @@ import React from 'react'
3
3
  import DatePicker from '../_date_picker'
4
4
 
5
5
  const DatePickerInline = (props) => {
6
- const showAngleDownHandler = (dateSelected) => {
7
- if (dateSelected) {
8
- document.querySelector('.inline-date-picker').classList.add('show-angle-down-icon')
9
- }
10
- }
11
-
12
6
  return (
13
7
  <div>
14
8
  <DatePicker
15
9
  className="inline-date-picker"
16
10
  hideIcon
17
11
  inLine
18
- onChange={showAngleDownHandler}
19
12
  pickerId="date-picker-inline"
20
13
  {...props}
21
14
  />