├── .DS_Store ├── .Rbuildignore ├── .Rhistory ├── .github ├── .gitignore └── workflows │ ├── R-CMD-check.yaml │ └── pkgdown.yaml ├── .gitignore ├── DESCRIPTION ├── LICENSE.md ├── NAMESPACE ├── NEWS.md ├── R ├── add_cell_message.R ├── cheetah.R ├── cheetah_utils.R ├── js_ifelse.R └── utils.R ├── README.Rmd ├── README.md ├── _pkgdown.yml ├── app.R ├── cheetahR.Rproj ├── inst ├── .DS_Store └── htmlwidgets │ ├── .DS_Store │ ├── cheetah.js │ ├── cheetah.js.LICENSE.txt │ └── cheetah_grid.yaml ├── man ├── add_cell_message.Rd ├── cheetah-shiny.Rd ├── cheetah.Rd ├── column_def.Rd ├── column_group.Rd ├── figures │ ├── image1.png │ ├── image2.png │ └── image3.png └── js_ifelse.Rd ├── package-lock.json ├── package.json ├── script └── test_cheetah.R ├── srcjs ├── cheetah-grid │ └── dist │ │ └── cheetahGrid.es5.min.js ├── config │ ├── entry_points.json │ ├── externals.json │ ├── loaders.json │ ├── misc.json │ └── output_path.json ├── index.js ├── modules │ ├── header.js │ └── utils.js └── widgets │ └── cheetah.js ├── tests ├── testthat.R └── testthat │ ├── _snaps │ ├── cheetah.md │ └── utils.md │ ├── test-cheetah.R │ ├── test-js_ifelse.R │ ├── test-test-add_cell_message.R │ └── test-utils.R ├── vignettes ├── .gitignore ├── cheetahR.qmd └── figures │ ├── customized_menucolumn_img.png │ ├── default_menucolumn_img_1.png │ └── default_menucolumn_img_2.png ├── webpack.common.js ├── webpack.dev.js └── webpack.prod.js /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cynkra/cheetahR/6e3a7cda433776dbc59270843f56e5e29a2f8a66/.DS_Store -------------------------------------------------------------------------------- /.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^cheetahR\.Rproj$ 2 | ^\.Rproj\.user$ 3 | ^srcjs$ 4 | ^node_modules$ 5 | ^package\.json$ 6 | ^package-lock\.json$ 7 | ^webpack\.dev\.js$ 8 | ^webpack\.prod\.js$ 9 | ^webpack\.common\.js$ 10 | ^LICENSE\.md$ 11 | ^app\.R$ 12 | ^script$ 13 | ^\.github$ 14 | ^_pkgdown\.yml$ 15 | ^docs$ 16 | ^pkgdown$ 17 | ^README\.Rmd$ 18 | ^vignettes/*_files$ 19 | ^vignettes/\.quarto 20 | -------------------------------------------------------------------------------- /.Rhistory: -------------------------------------------------------------------------------- 1 | devtools::load_all(".") 2 | packer::bundle_dev() 3 | shiny::runApp() 4 | devtools::load_all(".") 5 | packer::bundle_dev() 6 | devtools::document() 7 | devtools::load_all(".") 8 | packer::bundle_dev() 9 | runApp() 10 | devtools::load_all(".") 11 | runApp() 12 | devtools::load_all(".") 13 | packer::bundle_dev() 14 | devtools::load_all(".") 15 | packer::bundle_dev() 16 | devtools::load_all(".") 17 | packer::bundle_dev() 18 | devtools::load_all(".") 19 | packer::bundle_dev() 20 | devtools::load_all(".") 21 | packer::bundle_dev() 22 | runApp() 23 | -------------------------------------------------------------------------------- /.github/.gitignore: -------------------------------------------------------------------------------- 1 | *.html 2 | -------------------------------------------------------------------------------- /.github/workflows/R-CMD-check.yaml: -------------------------------------------------------------------------------- 1 | name: R CMD check 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | pull_request: 7 | branches: [main] 8 | 9 | jobs: 10 | R-CMD-check: 11 | runs-on: ubuntu-latest 12 | env: 13 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} 14 | R_KEEP_PKG_SOURCE: yes 15 | steps: 16 | - uses: actions/checkout@v3 17 | 18 | - uses: r-lib/actions/setup-r@v2 19 | with: 20 | use-public-rspm: true 21 | 22 | - uses: r-lib/actions/setup-r-dependencies@v2 23 | with: 24 | extra-packages: any::rcmdcheck 25 | needs: check 26 | 27 | - uses: r-lib/actions/check-r-package@v2 -------------------------------------------------------------------------------- /.github/workflows/pkgdown.yaml: -------------------------------------------------------------------------------- 1 | # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples 2 | # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help 3 | on: 4 | push: 5 | branches: [main, master] 6 | pull_request: 7 | release: 8 | types: [published] 9 | workflow_dispatch: 10 | 11 | name: pkgdown.yaml 12 | 13 | permissions: read-all 14 | 15 | jobs: 16 | pkgdown: 17 | runs-on: ubuntu-latest 18 | # Only restrict concurrency for non-PR jobs 19 | concurrency: 20 | group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} 21 | env: 22 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} 23 | permissions: 24 | contents: write 25 | steps: 26 | - uses: actions/checkout@v4 27 | 28 | - uses: r-lib/actions/setup-pandoc@v2 29 | 30 | - uses: r-lib/actions/setup-r@v2 31 | with: 32 | use-public-rspm: true 33 | 34 | - uses: r-lib/actions/setup-r-dependencies@v2 35 | with: 36 | extra-packages: any::pkgdown, local::. 37 | needs: website 38 | 39 | - name: Build site 40 | run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) 41 | shell: Rscript {0} 42 | 43 | - name: Deploy to GitHub pages 🚀 44 | if: github.event_name != 'pull_request' 45 | uses: JamesIves/github-pages-deploy-action@v4.5.0 46 | with: 47 | clean: false 48 | branch: gh-pages 49 | folder: docs 50 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .Rproj.user 2 | node_modules 3 | docs 4 | inst/doc 5 | 6 | /.quarto/ 7 | -------------------------------------------------------------------------------- /DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: cheetahR 2 | Title: High Performance Tables Using 'Cheetah Grid' 3 | Version: 0.2.0 4 | License: GPL (>= 3) 5 | Authors@R: c( 6 | person("Olajoke", "Oladipo", , "olajoke@cynkra.com", role = c("aut", "cre")), 7 | person(given = "David", family = "Granjon", role = c("aut"), 8 | email = "david@cynkra.com"), 9 | person("cynkra GmbH", email = "mail@cynkra.com", role = "fnd") 10 | ) 11 | Description: An R interface to 'Cheetah Grid', a high-performance JavaScript table widget. 12 | 'cheetahR' allows users to render millions of rows in just a few milliseconds, 13 | making it an excellent alternative to other R table widgets. The package wraps 14 | the 'Cheetah Grid' JavaScript functions and makes them readily available for R users. 15 | The underlying grid implementation is based on 'Cheetah Grid' 16 | . 17 | Encoding: UTF-8 18 | Roxygen: list(markdown = TRUE) 19 | RoxygenNote: 7.3.2 20 | Depends: 21 | R (>= 4.1.0) 22 | Imports: 23 | htmlwidgets, 24 | jsonlite, 25 | tibble 26 | Suggests: 27 | testthat (>= 3.0.0), 28 | utils, 29 | shiny, 30 | quarto, 31 | knitr, 32 | dplyr, 33 | palmerpenguins 34 | Config/testthat/edition: 3 35 | VignetteBuilder: quarto 36 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | GNU General Public License 2 | ========================== 3 | 4 | _Version 3, 29 June 2007_ 5 | _Copyright © 2007 Free Software Foundation, Inc. <>_ 6 | 7 | Everyone is permitted to copy and distribute verbatim copies of this license 8 | document, but changing it is not allowed. 9 | 10 | ## Preamble 11 | 12 | The GNU General Public License is a free, copyleft license for software and other 13 | kinds of works. 14 | 15 | The licenses for most software and other practical works are designed to take away 16 | your freedom to share and change the works. By contrast, the GNU General Public 17 | License is intended to guarantee your freedom to share and change all versions of a 18 | program--to make sure it remains free software for all its users. We, the Free 19 | Software Foundation, use the GNU General Public License for most of our software; it 20 | applies also to any other work released this way by its authors. You can apply it to 21 | your programs, too. 22 | 23 | When we speak of free software, we are referring to freedom, not price. Our General 24 | Public Licenses are designed to make sure that you have the freedom to distribute 25 | copies of free software (and charge for them if you wish), that you receive source 26 | code or can get it if you want it, that you can change the software or use pieces of 27 | it in new free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you these rights or 30 | asking you to surrender the rights. Therefore, you have certain responsibilities if 31 | you distribute copies of the software, or if you modify it: responsibilities to 32 | respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether gratis or for a fee, 35 | you must pass on to the recipients the same freedoms that you received. You must make 36 | sure that they, too, receive or can get the source code. And you must show them these 37 | terms so they know their rights. 38 | 39 | Developers that use the GNU GPL protect your rights with two steps: **(1)** assert 40 | copyright on the software, and **(2)** offer you this License giving you legal permission 41 | to copy, distribute and/or modify it. 42 | 43 | For the developers' and authors' protection, the GPL clearly explains that there is 44 | no warranty for this free software. For both users' and authors' sake, the GPL 45 | requires that modified versions be marked as changed, so that their problems will not 46 | be attributed erroneously to authors of previous versions. 47 | 48 | Some devices are designed to deny users access to install or run modified versions of 49 | the software inside them, although the manufacturer can do so. This is fundamentally 50 | incompatible with the aim of protecting users' freedom to change the software. The 51 | systematic pattern of such abuse occurs in the area of products for individuals to 52 | use, which is precisely where it is most unacceptable. Therefore, we have designed 53 | this version of the GPL to prohibit the practice for those products. If such problems 54 | arise substantially in other domains, we stand ready to extend this provision to 55 | those domains in future versions of the GPL, as needed to protect the freedom of 56 | users. 57 | 58 | Finally, every program is threatened constantly by software patents. States should 59 | not allow patents to restrict development and use of software on general-purpose 60 | computers, but in those that do, we wish to avoid the special danger that patents 61 | applied to a free program could make it effectively proprietary. To prevent this, the 62 | GPL assures that patents cannot be used to render the program non-free. 63 | 64 | The precise terms and conditions for copying, distribution and modification follow. 65 | 66 | ## TERMS AND CONDITIONS 67 | 68 | ### 0. Definitions 69 | 70 | “This License” refers to version 3 of the GNU General Public License. 71 | 72 | “Copyright” also means copyright-like laws that apply to other kinds of 73 | works, such as semiconductor masks. 74 | 75 | “The Program” refers to any copyrightable work licensed under this 76 | License. Each licensee is addressed as “you”. “Licensees” and 77 | “recipients” may be individuals or organizations. 78 | 79 | To “modify” a work means to copy from or adapt all or part of the work in 80 | a fashion requiring copyright permission, other than the making of an exact copy. The 81 | resulting work is called a “modified version” of the earlier work or a 82 | work “based on” the earlier work. 83 | 84 | A “covered work” means either the unmodified Program or a work based on 85 | the Program. 86 | 87 | To “propagate” a work means to do anything with it that, without 88 | permission, would make you directly or secondarily liable for infringement under 89 | applicable copyright law, except executing it on a computer or modifying a private 90 | copy. Propagation includes copying, distribution (with or without modification), 91 | making available to the public, and in some countries other activities as well. 92 | 93 | To “convey” a work means any kind of propagation that enables other 94 | parties to make or receive copies. Mere interaction with a user through a computer 95 | network, with no transfer of a copy, is not conveying. 96 | 97 | An interactive user interface displays “Appropriate Legal Notices” to the 98 | extent that it includes a convenient and prominently visible feature that **(1)** 99 | displays an appropriate copyright notice, and **(2)** tells the user that there is no 100 | warranty for the work (except to the extent that warranties are provided), that 101 | licensees may convey the work under this License, and how to view a copy of this 102 | License. If the interface presents a list of user commands or options, such as a 103 | menu, a prominent item in the list meets this criterion. 104 | 105 | ### 1. Source Code 106 | 107 | The “source code” for a work means the preferred form of the work for 108 | making modifications to it. “Object code” means any non-source form of a 109 | work. 110 | 111 | A “Standard Interface” means an interface that either is an official 112 | standard defined by a recognized standards body, or, in the case of interfaces 113 | specified for a particular programming language, one that is widely used among 114 | developers working in that language. 115 | 116 | The “System Libraries” of an executable work include anything, other than 117 | the work as a whole, that **(a)** is included in the normal form of packaging a Major 118 | Component, but which is not part of that Major Component, and **(b)** serves only to 119 | enable use of the work with that Major Component, or to implement a Standard 120 | Interface for which an implementation is available to the public in source code form. 121 | A “Major Component”, in this context, means a major essential component 122 | (kernel, window system, and so on) of the specific operating system (if any) on which 123 | the executable work runs, or a compiler used to produce the work, or an object code 124 | interpreter used to run it. 125 | 126 | The “Corresponding Source” for a work in object code form means all the 127 | source code needed to generate, install, and (for an executable work) run the object 128 | code and to modify the work, including scripts to control those activities. However, 129 | it does not include the work's System Libraries, or general-purpose tools or 130 | generally available free programs which are used unmodified in performing those 131 | activities but which are not part of the work. For example, Corresponding Source 132 | includes interface definition files associated with source files for the work, and 133 | the source code for shared libraries and dynamically linked subprograms that the work 134 | is specifically designed to require, such as by intimate data communication or 135 | control flow between those subprograms and other parts of the work. 136 | 137 | The Corresponding Source need not include anything that users can regenerate 138 | automatically from other parts of the Corresponding Source. 139 | 140 | The Corresponding Source for a work in source code form is that same work. 141 | 142 | ### 2. Basic Permissions 143 | 144 | All rights granted under this License are granted for the term of copyright on the 145 | Program, and are irrevocable provided the stated conditions are met. This License 146 | explicitly affirms your unlimited permission to run the unmodified Program. The 147 | output from running a covered work is covered by this License only if the output, 148 | given its content, constitutes a covered work. This License acknowledges your rights 149 | of fair use or other equivalent, as provided by copyright law. 150 | 151 | You may make, run and propagate covered works that you do not convey, without 152 | conditions so long as your license otherwise remains in force. You may convey covered 153 | works to others for the sole purpose of having them make modifications exclusively 154 | for you, or provide you with facilities for running those works, provided that you 155 | comply with the terms of this License in conveying all material for which you do not 156 | control copyright. Those thus making or running the covered works for you must do so 157 | exclusively on your behalf, under your direction and control, on terms that prohibit 158 | them from making any copies of your copyrighted material outside their relationship 159 | with you. 160 | 161 | Conveying under any other circumstances is permitted solely under the conditions 162 | stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 163 | 164 | ### 3. Protecting Users' Legal Rights From Anti-Circumvention Law 165 | 166 | No covered work shall be deemed part of an effective technological measure under any 167 | applicable law fulfilling obligations under article 11 of the WIPO copyright treaty 168 | adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention 169 | of such measures. 170 | 171 | When you convey a covered work, you waive any legal power to forbid circumvention of 172 | technological measures to the extent such circumvention is effected by exercising 173 | rights under this License with respect to the covered work, and you disclaim any 174 | intention to limit operation or modification of the work as a means of enforcing, 175 | against the work's users, your or third parties' legal rights to forbid circumvention 176 | of technological measures. 177 | 178 | ### 4. Conveying Verbatim Copies 179 | 180 | You may convey verbatim copies of the Program's source code as you receive it, in any 181 | medium, provided that you conspicuously and appropriately publish on each copy an 182 | appropriate copyright notice; keep intact all notices stating that this License and 183 | any non-permissive terms added in accord with section 7 apply to the code; keep 184 | intact all notices of the absence of any warranty; and give all recipients a copy of 185 | this License along with the Program. 186 | 187 | You may charge any price or no price for each copy that you convey, and you may offer 188 | support or warranty protection for a fee. 189 | 190 | ### 5. Conveying Modified Source Versions 191 | 192 | You may convey a work based on the Program, or the modifications to produce it from 193 | the Program, in the form of source code under the terms of section 4, provided that 194 | you also meet all of these conditions: 195 | 196 | * **a)** The work must carry prominent notices stating that you modified it, and giving a 197 | relevant date. 198 | * **b)** The work must carry prominent notices stating that it is released under this 199 | License and any conditions added under section 7. This requirement modifies the 200 | requirement in section 4 to “keep intact all notices”. 201 | * **c)** You must license the entire work, as a whole, under this License to anyone who 202 | comes into possession of a copy. This License will therefore apply, along with any 203 | applicable section 7 additional terms, to the whole of the work, and all its parts, 204 | regardless of how they are packaged. This License gives no permission to license the 205 | work in any other way, but it does not invalidate such permission if you have 206 | separately received it. 207 | * **d)** If the work has interactive user interfaces, each must display Appropriate Legal 208 | Notices; however, if the Program has interactive interfaces that do not display 209 | Appropriate Legal Notices, your work need not make them do so. 210 | 211 | A compilation of a covered work with other separate and independent works, which are 212 | not by their nature extensions of the covered work, and which are not combined with 213 | it such as to form a larger program, in or on a volume of a storage or distribution 214 | medium, is called an “aggregate” if the compilation and its resulting 215 | copyright are not used to limit the access or legal rights of the compilation's users 216 | beyond what the individual works permit. Inclusion of a covered work in an aggregate 217 | does not cause this License to apply to the other parts of the aggregate. 218 | 219 | ### 6. Conveying Non-Source Forms 220 | 221 | You may convey a covered work in object code form under the terms of sections 4 and 222 | 5, provided that you also convey the machine-readable Corresponding Source under the 223 | terms of this License, in one of these ways: 224 | 225 | * **a)** Convey the object code in, or embodied in, a physical product (including a 226 | physical distribution medium), accompanied by the Corresponding Source fixed on a 227 | durable physical medium customarily used for software interchange. 228 | * **b)** Convey the object code in, or embodied in, a physical product (including a 229 | physical distribution medium), accompanied by a written offer, valid for at least 230 | three years and valid for as long as you offer spare parts or customer support for 231 | that product model, to give anyone who possesses the object code either **(1)** a copy of 232 | the Corresponding Source for all the software in the product that is covered by this 233 | License, on a durable physical medium customarily used for software interchange, for 234 | a price no more than your reasonable cost of physically performing this conveying of 235 | source, or **(2)** access to copy the Corresponding Source from a network server at no 236 | charge. 237 | * **c)** Convey individual copies of the object code with a copy of the written offer to 238 | provide the Corresponding Source. This alternative is allowed only occasionally and 239 | noncommercially, and only if you received the object code with such an offer, in 240 | accord with subsection 6b. 241 | * **d)** Convey the object code by offering access from a designated place (gratis or for 242 | a charge), and offer equivalent access to the Corresponding Source in the same way 243 | through the same place at no further charge. You need not require recipients to copy 244 | the Corresponding Source along with the object code. If the place to copy the object 245 | code is a network server, the Corresponding Source may be on a different server 246 | (operated by you or a third party) that supports equivalent copying facilities, 247 | provided you maintain clear directions next to the object code saying where to find 248 | the Corresponding Source. Regardless of what server hosts the Corresponding Source, 249 | you remain obligated to ensure that it is available for as long as needed to satisfy 250 | these requirements. 251 | * **e)** Convey the object code using peer-to-peer transmission, provided you inform 252 | other peers where the object code and Corresponding Source of the work are being 253 | offered to the general public at no charge under subsection 6d. 254 | 255 | A separable portion of the object code, whose source code is excluded from the 256 | Corresponding Source as a System Library, need not be included in conveying the 257 | object code work. 258 | 259 | A “User Product” is either **(1)** a “consumer product”, which 260 | means any tangible personal property which is normally used for personal, family, or 261 | household purposes, or **(2)** anything designed or sold for incorporation into a 262 | dwelling. In determining whether a product is a consumer product, doubtful cases 263 | shall be resolved in favor of coverage. For a particular product received by a 264 | particular user, “normally used” refers to a typical or common use of 265 | that class of product, regardless of the status of the particular user or of the way 266 | in which the particular user actually uses, or expects or is expected to use, the 267 | product. A product is a consumer product regardless of whether the product has 268 | substantial commercial, industrial or non-consumer uses, unless such uses represent 269 | the only significant mode of use of the product. 270 | 271 | “Installation Information” for a User Product means any methods, 272 | procedures, authorization keys, or other information required to install and execute 273 | modified versions of a covered work in that User Product from a modified version of 274 | its Corresponding Source. The information must suffice to ensure that the continued 275 | functioning of the modified object code is in no case prevented or interfered with 276 | solely because modification has been made. 277 | 278 | If you convey an object code work under this section in, or with, or specifically for 279 | use in, a User Product, and the conveying occurs as part of a transaction in which 280 | the right of possession and use of the User Product is transferred to the recipient 281 | in perpetuity or for a fixed term (regardless of how the transaction is 282 | characterized), the Corresponding Source conveyed under this section must be 283 | accompanied by the Installation Information. But this requirement does not apply if 284 | neither you nor any third party retains the ability to install modified object code 285 | on the User Product (for example, the work has been installed in ROM). 286 | 287 | The requirement to provide Installation Information does not include a requirement to 288 | continue to provide support service, warranty, or updates for a work that has been 289 | modified or installed by the recipient, or for the User Product in which it has been 290 | modified or installed. Access to a network may be denied when the modification itself 291 | materially and adversely affects the operation of the network or violates the rules 292 | and protocols for communication across the network. 293 | 294 | Corresponding Source conveyed, and Installation Information provided, in accord with 295 | this section must be in a format that is publicly documented (and with an 296 | implementation available to the public in source code form), and must require no 297 | special password or key for unpacking, reading or copying. 298 | 299 | ### 7. Additional Terms 300 | 301 | “Additional permissions” are terms that supplement the terms of this 302 | License by making exceptions from one or more of its conditions. Additional 303 | permissions that are applicable to the entire Program shall be treated as though they 304 | were included in this License, to the extent that they are valid under applicable 305 | law. If additional permissions apply only to part of the Program, that part may be 306 | used separately under those permissions, but the entire Program remains governed by 307 | this License without regard to the additional permissions. 308 | 309 | When you convey a copy of a covered work, you may at your option remove any 310 | additional permissions from that copy, or from any part of it. (Additional 311 | permissions may be written to require their own removal in certain cases when you 312 | modify the work.) You may place additional permissions on material, added by you to a 313 | covered work, for which you have or can give appropriate copyright permission. 314 | 315 | Notwithstanding any other provision of this License, for material you add to a 316 | covered work, you may (if authorized by the copyright holders of that material) 317 | supplement the terms of this License with terms: 318 | 319 | * **a)** Disclaiming warranty or limiting liability differently from the terms of 320 | sections 15 and 16 of this License; or 321 | * **b)** Requiring preservation of specified reasonable legal notices or author 322 | attributions in that material or in the Appropriate Legal Notices displayed by works 323 | containing it; or 324 | * **c)** Prohibiting misrepresentation of the origin of that material, or requiring that 325 | modified versions of such material be marked in reasonable ways as different from the 326 | original version; or 327 | * **d)** Limiting the use for publicity purposes of names of licensors or authors of the 328 | material; or 329 | * **e)** Declining to grant rights under trademark law for use of some trade names, 330 | trademarks, or service marks; or 331 | * **f)** Requiring indemnification of licensors and authors of that material by anyone 332 | who conveys the material (or modified versions of it) with contractual assumptions of 333 | liability to the recipient, for any liability that these contractual assumptions 334 | directly impose on those licensors and authors. 335 | 336 | All other non-permissive additional terms are considered “further 337 | restrictions” within the meaning of section 10. If the Program as you received 338 | it, or any part of it, contains a notice stating that it is governed by this License 339 | along with a term that is a further restriction, you may remove that term. If a 340 | license document contains a further restriction but permits relicensing or conveying 341 | under this License, you may add to a covered work material governed by the terms of 342 | that license document, provided that the further restriction does not survive such 343 | relicensing or conveying. 344 | 345 | If you add terms to a covered work in accord with this section, you must place, in 346 | the relevant source files, a statement of the additional terms that apply to those 347 | files, or a notice indicating where to find the applicable terms. 348 | 349 | Additional terms, permissive or non-permissive, may be stated in the form of a 350 | separately written license, or stated as exceptions; the above requirements apply 351 | either way. 352 | 353 | ### 8. Termination 354 | 355 | You may not propagate or modify a covered work except as expressly provided under 356 | this License. Any attempt otherwise to propagate or modify it is void, and will 357 | automatically terminate your rights under this License (including any patent licenses 358 | granted under the third paragraph of section 11). 359 | 360 | However, if you cease all violation of this License, then your license from a 361 | particular copyright holder is reinstated **(a)** provisionally, unless and until the 362 | copyright holder explicitly and finally terminates your license, and **(b)** permanently, 363 | if the copyright holder fails to notify you of the violation by some reasonable means 364 | prior to 60 days after the cessation. 365 | 366 | Moreover, your license from a particular copyright holder is reinstated permanently 367 | if the copyright holder notifies you of the violation by some reasonable means, this 368 | is the first time you have received notice of violation of this License (for any 369 | work) from that copyright holder, and you cure the violation prior to 30 days after 370 | your receipt of the notice. 371 | 372 | Termination of your rights under this section does not terminate the licenses of 373 | parties who have received copies or rights from you under this License. If your 374 | rights have been terminated and not permanently reinstated, you do not qualify to 375 | receive new licenses for the same material under section 10. 376 | 377 | ### 9. Acceptance Not Required for Having Copies 378 | 379 | You are not required to accept this License in order to receive or run a copy of the 380 | Program. Ancillary propagation of a covered work occurring solely as a consequence of 381 | using peer-to-peer transmission to receive a copy likewise does not require 382 | acceptance. However, nothing other than this License grants you permission to 383 | propagate or modify any covered work. These actions infringe copyright if you do not 384 | accept this License. Therefore, by modifying or propagating a covered work, you 385 | indicate your acceptance of this License to do so. 386 | 387 | ### 10. Automatic Licensing of Downstream Recipients 388 | 389 | Each time you convey a covered work, the recipient automatically receives a license 390 | from the original licensors, to run, modify and propagate that work, subject to this 391 | License. You are not responsible for enforcing compliance by third parties with this 392 | License. 393 | 394 | An “entity transaction” is a transaction transferring control of an 395 | organization, or substantially all assets of one, or subdividing an organization, or 396 | merging organizations. If propagation of a covered work results from an entity 397 | transaction, each party to that transaction who receives a copy of the work also 398 | receives whatever licenses to the work the party's predecessor in interest had or 399 | could give under the previous paragraph, plus a right to possession of the 400 | Corresponding Source of the work from the predecessor in interest, if the predecessor 401 | has it or can get it with reasonable efforts. 402 | 403 | You may not impose any further restrictions on the exercise of the rights granted or 404 | affirmed under this License. For example, you may not impose a license fee, royalty, 405 | or other charge for exercise of rights granted under this License, and you may not 406 | initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging 407 | that any patent claim is infringed by making, using, selling, offering for sale, or 408 | importing the Program or any portion of it. 409 | 410 | ### 11. Patents 411 | 412 | A “contributor” is a copyright holder who authorizes use under this 413 | License of the Program or a work on which the Program is based. The work thus 414 | licensed is called the contributor's “contributor version”. 415 | 416 | A contributor's “essential patent claims” are all patent claims owned or 417 | controlled by the contributor, whether already acquired or hereafter acquired, that 418 | would be infringed by some manner, permitted by this License, of making, using, or 419 | selling its contributor version, but do not include claims that would be infringed 420 | only as a consequence of further modification of the contributor version. For 421 | purposes of this definition, “control” includes the right to grant patent 422 | sublicenses in a manner consistent with the requirements of this License. 423 | 424 | Each contributor grants you a non-exclusive, worldwide, royalty-free patent license 425 | under the contributor's essential patent claims, to make, use, sell, offer for sale, 426 | import and otherwise run, modify and propagate the contents of its contributor 427 | version. 428 | 429 | In the following three paragraphs, a “patent license” is any express 430 | agreement or commitment, however denominated, not to enforce a patent (such as an 431 | express permission to practice a patent or covenant not to sue for patent 432 | infringement). To “grant” such a patent license to a party means to make 433 | such an agreement or commitment not to enforce a patent against the party. 434 | 435 | If you convey a covered work, knowingly relying on a patent license, and the 436 | Corresponding Source of the work is not available for anyone to copy, free of charge 437 | and under the terms of this License, through a publicly available network server or 438 | other readily accessible means, then you must either **(1)** cause the Corresponding 439 | Source to be so available, or **(2)** arrange to deprive yourself of the benefit of the 440 | patent license for this particular work, or **(3)** arrange, in a manner consistent with 441 | the requirements of this License, to extend the patent license to downstream 442 | recipients. “Knowingly relying” means you have actual knowledge that, but 443 | for the patent license, your conveying the covered work in a country, or your 444 | recipient's use of the covered work in a country, would infringe one or more 445 | identifiable patents in that country that you have reason to believe are valid. 446 | 447 | If, pursuant to or in connection with a single transaction or arrangement, you 448 | convey, or propagate by procuring conveyance of, a covered work, and grant a patent 449 | license to some of the parties receiving the covered work authorizing them to use, 450 | propagate, modify or convey a specific copy of the covered work, then the patent 451 | license you grant is automatically extended to all recipients of the covered work and 452 | works based on it. 453 | 454 | A patent license is “discriminatory” if it does not include within the 455 | scope of its coverage, prohibits the exercise of, or is conditioned on the 456 | non-exercise of one or more of the rights that are specifically granted under this 457 | License. You may not convey a covered work if you are a party to an arrangement with 458 | a third party that is in the business of distributing software, under which you make 459 | payment to the third party based on the extent of your activity of conveying the 460 | work, and under which the third party grants, to any of the parties who would receive 461 | the covered work from you, a discriminatory patent license **(a)** in connection with 462 | copies of the covered work conveyed by you (or copies made from those copies), or **(b)** 463 | primarily for and in connection with specific products or compilations that contain 464 | the covered work, unless you entered into that arrangement, or that patent license 465 | was granted, prior to 28 March 2007. 466 | 467 | Nothing in this License shall be construed as excluding or limiting any implied 468 | license or other defenses to infringement that may otherwise be available to you 469 | under applicable patent law. 470 | 471 | ### 12. No Surrender of Others' Freedom 472 | 473 | If conditions are imposed on you (whether by court order, agreement or otherwise) 474 | that contradict the conditions of this License, they do not excuse you from the 475 | conditions of this License. If you cannot convey a covered work so as to satisfy 476 | simultaneously your obligations under this License and any other pertinent 477 | obligations, then as a consequence you may not convey it at all. For example, if you 478 | agree to terms that obligate you to collect a royalty for further conveying from 479 | those to whom you convey the Program, the only way you could satisfy both those terms 480 | and this License would be to refrain entirely from conveying the Program. 481 | 482 | ### 13. Use with the GNU Affero General Public License 483 | 484 | Notwithstanding any other provision of this License, you have permission to link or 485 | combine any covered work with a work licensed under version 3 of the GNU Affero 486 | General Public License into a single combined work, and to convey the resulting work. 487 | The terms of this License will continue to apply to the part which is the covered 488 | work, but the special requirements of the GNU Affero General Public License, section 489 | 13, concerning interaction through a network will apply to the combination as such. 490 | 491 | ### 14. Revised Versions of this License 492 | 493 | The Free Software Foundation may publish revised and/or new versions of the GNU 494 | General Public License from time to time. Such new versions will be similar in spirit 495 | to the present version, but may differ in detail to address new problems or concerns. 496 | 497 | Each version is given a distinguishing version number. If the Program specifies that 498 | a certain numbered version of the GNU General Public License “or any later 499 | version” applies to it, you have the option of following the terms and 500 | conditions either of that numbered version or of any later version published by the 501 | Free Software Foundation. If the Program does not specify a version number of the GNU 502 | General Public License, you may choose any version ever published by the Free 503 | Software Foundation. 504 | 505 | If the Program specifies that a proxy can decide which future versions of the GNU 506 | General Public License can be used, that proxy's public statement of acceptance of a 507 | version permanently authorizes you to choose that version for the Program. 508 | 509 | Later license versions may give you additional or different permissions. However, no 510 | additional obligations are imposed on any author or copyright holder as a result of 511 | your choosing to follow a later version. 512 | 513 | ### 15. Disclaimer of Warranty 514 | 515 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 516 | EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 517 | PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER 518 | EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 519 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE 520 | QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE 521 | DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 522 | 523 | ### 16. Limitation of Liability 524 | 525 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY 526 | COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS 527 | PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, 528 | INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 529 | PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE 530 | OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE 531 | WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 532 | POSSIBILITY OF SUCH DAMAGES. 533 | 534 | ### 17. Interpretation of Sections 15 and 16 535 | 536 | If the disclaimer of warranty and limitation of liability provided above cannot be 537 | given local legal effect according to their terms, reviewing courts shall apply local 538 | law that most closely approximates an absolute waiver of all civil liability in 539 | connection with the Program, unless a warranty or assumption of liability accompanies 540 | a copy of the Program in return for a fee. 541 | 542 | _END OF TERMS AND CONDITIONS_ 543 | 544 | ## How to Apply These Terms to Your New Programs 545 | 546 | If you develop a new program, and you want it to be of the greatest possible use to 547 | the public, the best way to achieve this is to make it free software which everyone 548 | can redistribute and change under these terms. 549 | 550 | To do so, attach the following notices to the program. It is safest to attach them 551 | to the start of each source file to most effectively state the exclusion of warranty; 552 | and each file should have at least the “copyright” line and a pointer to 553 | where the full notice is found. 554 | 555 | 556 | Copyright (C) 557 | 558 | This program is free software: you can redistribute it and/or modify 559 | it under the terms of the GNU General Public License as published by 560 | the Free Software Foundation, either version 3 of the License, or 561 | (at your option) any later version. 562 | 563 | This program is distributed in the hope that it will be useful, 564 | but WITHOUT ANY WARRANTY; without even the implied warranty of 565 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 566 | GNU General Public License for more details. 567 | 568 | You should have received a copy of the GNU General Public License 569 | along with this program. If not, see . 570 | 571 | Also add information on how to contact you by electronic and paper mail. 572 | 573 | If the program does terminal interaction, make it output a short notice like this 574 | when it starts in an interactive mode: 575 | 576 | Copyright (C) 577 | This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. 578 | This is free software, and you are welcome to redistribute it 579 | under certain conditions; type 'show c' for details. 580 | 581 | The hypothetical commands `show w` and `show c` should show the appropriate parts of 582 | the General Public License. Of course, your program's commands might be different; 583 | for a GUI interface, you would use an “about box”. 584 | 585 | You should also get your employer (if you work as a programmer) or school, if any, to 586 | sign a “copyright disclaimer” for the program, if necessary. For more 587 | information on this, and how to apply and follow the GNU GPL, see 588 | <>. 589 | 590 | The GNU General Public License does not permit incorporating your program into 591 | proprietary programs. If your program is a subroutine library, you may consider it 592 | more useful to permit linking proprietary applications with the library. If this is 593 | what you want to do, use the GNU Lesser General Public License instead of this 594 | License. But first, please read 595 | <>. 596 | -------------------------------------------------------------------------------- /NAMESPACE: -------------------------------------------------------------------------------- 1 | # Generated by roxygen2: do not edit by hand 2 | 3 | export(add_cell_message) 4 | export(cheetah) 5 | export(cheetahOutput) 6 | export(column_def) 7 | export(column_group) 8 | export(js_ifelse) 9 | export(renderCheetah) 10 | import(htmlwidgets) 11 | import(jsonlite) 12 | import(tibble) 13 | -------------------------------------------------------------------------------- /NEWS.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # cheetahR 0.2.0 4 | 5 | - Implement menu column options 6 | - Add filtering and sorting functions 7 | - Add cell messages 8 | - Implement column grouping 9 | 10 | 11 | # cheetahR 0.1.0 12 | 13 | * Initial release to CRAN. 14 | * Provides a fast HTML widget wrapping the Cheetah Grid JS library. 15 | * Supports column customization and integration with Shiny. 16 | -------------------------------------------------------------------------------- /R/add_cell_message.R: -------------------------------------------------------------------------------- 1 | #' Create a JavaScript cell message function for cheetahR widgets 2 | #' 3 | #' Generates a JS function (wrapped with `htmlwidgets::JS`) that, 4 | #' given a record (`rec`), returns an object with `type` and `message`. 5 | #' 6 | #' @param type A string that specifies the type of message. 7 | #' One of `"error"`, `"warning"`, or `"info"`. Default is `"error"`. 8 | #' @param message A string or JS expression. If it contains `rec.`, `?`, `:`, 9 | #' or a trailing `;`, it is treated as raw JS (no additional quoting). 10 | #' Otherwise, it is escaped and wrapped in single quotes. 11 | #' 12 | #' @return A `htmlwidgets::JS` object containing a JavaScript function definition: 13 | #'```js 14 | #' function(rec) { 15 | #' return { 16 | #' type: "", 17 | #' message: 18 | #' }; 19 | #' } 20 | #'``` 21 | #' Use this within `column_def()` for cell validation 22 | #' 23 | #' @examples 24 | #' set.seed(123) 25 | #' iris_rows <- sample(nrow(iris), 10) 26 | #' data <- iris[iris_rows, ] 27 | #' 28 | #' # Simple warning 29 | #' cheetah( 30 | #' data, 31 | #' columns = list( 32 | #' Species = column_def( 33 | #' message = add_cell_message(type = "info", message = "Ok") 34 | #' ) 35 | #' ) 36 | #' ) 37 | #' 38 | #' # Conditional error using `js_ifelse()` 39 | #' cheetah( 40 | #' data, 41 | #' columns = list( 42 | #' Species = column_def( 43 | #' message = add_cell_message( 44 | #' message = js_ifelse(Species == "setosa", "", "Invalid") 45 | #' ) 46 | #' ) 47 | #' ) 48 | #' ) 49 | #' 50 | #' # Directly using a JS expression as string 51 | #' cheetah( 52 | #' data, 53 | #' columns = list( 54 | #' Sepal.Width = column_def( 55 | #' style = list(textAlign = "left"), 56 | #' message = add_cell_message( 57 | #' type = "warning", 58 | #' message = "rec['Sepal.Width'] <= 3 ? 'NarrowSepal' : 'WideSepal';" 59 | #' ) 60 | #' ) 61 | #' ) 62 | #' ) 63 | #' 64 | #' @export 65 | add_cell_message <- function( 66 | type = c("error", "warning", "info"), 67 | message = "message" 68 | ) { 69 | type <- match.arg(type) 70 | 71 | is_js_expr <- grepl("rec\\.|\\?|\\:|;$", message) 72 | js_msg <- if (is_js_expr) { 73 | sub(";$", "", message) 74 | } else { 75 | msg_esc <- gsub("'", "\\'", message) 76 | paste0("'", msg_esc, "'") 77 | } 78 | 79 | js_fn <- paste0( 80 | "function(rec) {\n", 81 | " return {\n", 82 | " type: '", 83 | type, 84 | "',\n", 85 | " message: ", 86 | js_msg, 87 | "\n", 88 | " };\n", 89 | "}" 90 | ) 91 | 92 | htmlwidgets::JS(js_fn) 93 | } 94 | -------------------------------------------------------------------------------- /R/cheetah.R: -------------------------------------------------------------------------------- 1 | #' Create a Cheetah Grid widget 2 | #' 3 | #' Creates a high-performance table widget using Cheetah Grid. 4 | #' 5 | #' @param data A data frame or matrix to display 6 | #' @param columns A list of column definitions. Each column can be customized using 7 | #' \code{column_def()}. 8 | #' @param column_group A list of column groups. Each group can be customized using 9 | #' @param width Width of the widget 10 | #' @param height Height of the widget 11 | #' @param elementId The element ID for the widget 12 | #' @param rownames Logical. Whether to show rownames. Defaults to TRUE. 13 | #' @param search Whether to enable a search field on top of the table. 14 | #' Default to `disabled`. Use `exact` for exact matching 15 | #' or `contains` to get larger matches. 16 | #' @param sortable Logical. Whether to enable sorting on all columns. Defaults to TRUE. 17 | #' 18 | #' @return An HTML widget object of class 'cheetah' that can be: 19 | #' \itemize{ 20 | #' \item Rendered in R Markdown documents 21 | #' \item Used in Shiny applications 22 | #' \item Displayed in R interactive sessions 23 | #' } 24 | #' The widget renders as an HTML table with all specified customizations. 25 | #' 26 | #' @import htmlwidgets 27 | #' @import jsonlite 28 | #' @import tibble 29 | #' 30 | #' @export 31 | cheetah <- function( 32 | data, 33 | columns = NULL, 34 | column_group = NULL, 35 | width = NULL, 36 | height = NULL, 37 | elementId = NULL, 38 | rownames = TRUE, 39 | search = c("disabled", "exact", "contains"), 40 | sortable = TRUE 41 | ) { 42 | search <- match.arg(search) 43 | # Only show rownames if they are character strings (meaningful) and rownames is TRUE 44 | processed_rn <- process_rownames(data, columns, rownames) 45 | 46 | data <- processed_rn$data 47 | columns <- processed_rn$columns 48 | 49 | stopifnot( 50 | is.null(columns) | 51 | is_named_list(columns) & names(columns) %in% colnames(data) 52 | ) 53 | 54 | stopifnot( 55 | "If not NULL, `column_groups` must be a named list or list of named lists" = 56 | is.null(columns) | 57 | is_named_list(column_group) | 58 | all(unlist(lapply(column_group, is_named_list))) 59 | ) 60 | 61 | columns <- 62 | update_col_list_with_classes(data, columns) %>% 63 | make_table_sortable(sortable = sortable) %>% 64 | add_field_to_list() 65 | 66 | data_json <- toJSON(data, dataframe = "rows") 67 | # forward options using x 68 | x <- list(data = data_json, columns = columns, colGroup = column_group, search = search) 69 | 70 | # create widget 71 | htmlwidgets::createWidget( 72 | name = 'cheetah', 73 | x = x, 74 | width = width, 75 | height = height, 76 | package = 'cheetahR', 77 | elementId = elementId 78 | ) 79 | } 80 | 81 | #' Shiny bindings for cheetah 82 | #' 83 | #' Output and render functions for using cheetah within Shiny 84 | #' applications and interactive Rmd documents. 85 | #' 86 | #' @param outputId output variable to read from 87 | #' @param width,height Must be a valid CSS unit (like \code{'100\%'}, 88 | #' \code{'400px'}, \code{'auto'}) or a number, which will be coerced to a 89 | #' string and have \code{'px'} appended. 90 | #' @param expr An expression that generates a cheetah 91 | #' @param env The environment in which to evaluate \code{expr}. 92 | #' @param quoted Is \code{expr} a quoted expression (with \code{quote()})? This 93 | #' is useful if you want to save an expression in a variable. 94 | #' 95 | #' @return \code{cheetahOutput} returns a Shiny output function that can be used in the UI definition. 96 | #' \code{renderCheetah} returns a Shiny render function that can be used in the server definition. 97 | #' 98 | #' @name cheetah-shiny 99 | #' 100 | #' @export 101 | cheetahOutput <- function(outputId, width = '100%', height = '400px') { 102 | htmlwidgets::shinyWidgetOutput( 103 | outputId, 104 | 'cheetah', 105 | width, 106 | height, 107 | package = 'cheetahR' 108 | ) 109 | } 110 | 111 | #' @rdname cheetah-shiny 112 | #' @export 113 | renderCheetah <- function(expr, env = parent.frame(), quoted = FALSE) { 114 | if (!quoted) { 115 | expr <- substitute(expr) 116 | } # force quoted 117 | htmlwidgets::shinyRenderWidget(expr, cheetahOutput, env, quoted = TRUE) 118 | } 119 | -------------------------------------------------------------------------------- /R/cheetah_utils.R: -------------------------------------------------------------------------------- 1 | #' Column definition utility 2 | #' 3 | #' Needed by \link{cheetah} to customize 4 | #' columns individually. 5 | #' 6 | #' @param name Custom name. 7 | #' @param width Column width. 8 | #' @param min_width Column minimal width. 9 | #' @param max_width Column max width. 10 | #' @param column_type Column type. By default, the column type is inferred from the data type of the column. 11 | #' There are 7 possible options: 12 | #' \itemize{ 13 | #' \item \code{"text"} for text columns. 14 | #' \item \code{"number"} for numeric columns. 15 | #' \item \code{"check"} for check columns. 16 | #' \item \code{"image"} for image columns. 17 | #' \item \code{"radio"} for radio columns. 18 | #' \item \code{"multilinetext"} for multiline text columns. 19 | #' \item \code{"menu"} for menu selection columns. If \code{column_type == "menu"}, 20 | #' action parameter must be set to "inline_menu" and menu_options must be provided. 21 | #' Note: Works efficiently only in shiny. 22 | #' } 23 | #' @param action The action property defines column actions. Select 24 | #' the appropriate Action class for the column type. 25 | #' \itemize{ 26 | #' \item \code{"input"} for input action columns. 27 | #' \item \code{"check"} for check action columns. 28 | #' \item \code{"radio"} for radio action columns. 29 | #' \item \code{"inline_menu"} for menu selection columns. 30 | #' } 31 | #' @param menu_options A list of menu options when using \code{column_type = "menu"}. 32 | #' Each option should be a list with \code{value} and \code{label} elements. 33 | #' The menu options must be a list of lists, each containing a \code{value} 34 | #' and \code{label} element. 35 | #' The \code{label} element is the label that will be displayed in the menu. 36 | #' @param style Column style. 37 | #' @param message Cell message. Expect a [htmlwidgets::JS()] function that 38 | #' takes `rec` as argument. It must return an object with two properties: `type` for the message 39 | #' type (`"info"`, `"warning"`, `"error"`) and the `message` that holds the text to display. 40 | #' The latter can leverage a JavaScript ternary operator involving `rec.` (`COLNAME` being the name 41 | #' of the column for which we define the message) to check whether the predicate function is TRUE. You can also 42 | #' use `add_cell_message()` to generated the expected JS expression. 43 | #' See details for example of usage. 44 | #' 45 | #' @details 46 | #' ## Cell messages 47 | #' When you write a message, you can pass a function like so: 48 | #' ``` 49 | #' = column_def( 50 | #' action = "input", 51 | #' message = JS( 52 | #' "function(rec) { 53 | #' return { 54 | #' //info message 55 | #' type: 'info', 56 | #' message: rec. ? null : 'Please check.', 57 | #' } 58 | #' }") 59 | #' ) 60 | #' ``` 61 | #' Or use `add_cell_message()`: 62 | #' ``` 63 | #' = column_def( 64 | #' action = "input", 65 | #' message = add_cell_message(type = "info", message = "Ok") 66 | #' ) 67 | #' ``` 68 | #' See [add_cell_message()] for more details. 69 | #' @param sort Whether to sort the column. Default to FALSE. May also be 70 | #' a JS callback to create custom logic (does not work yet). 71 | #' 72 | #' @return A list of column options to pass to the JavaScript API. 73 | #' 74 | #' @examples 75 | #' cheetah( 76 | #' iris, 77 | #' columns = list( 78 | #' Sepal.Length = column_def(name = "Length"), 79 | #' Sepal.Width = column_def(name = "Width"), 80 | #' Petal.Length = column_def(name = "Length"), 81 | #' Petal.Width = column_def(name = "Width") 82 | #' ) 83 | #' ) 84 | #' 85 | #' @export 86 | column_def <- function( 87 | name = NULL, 88 | width = NULL, 89 | min_width = NULL, 90 | max_width = NULL, 91 | column_type = NULL, 92 | action = NULL, 93 | menu_options = NULL, 94 | style = NULL, 95 | message = NULL, 96 | sort = FALSE 97 | ) { 98 | check_column_type(column_type) 99 | check_action_type(action, column_type) 100 | in_shiny <- shiny::isRunning() 101 | 102 | if (all(!is.null(column_type), column_type == "menu", !in_shiny)) { 103 | warning( 104 | "Dropdown menu action does not work properly outside a shiny environment" 105 | ) 106 | } 107 | 108 | if ( 109 | all(!is.null(column_type), column_type == "menu", is.null(menu_options)) 110 | ) { 111 | stop("menu_options must be provided when column_type is 'menu'") 112 | } 113 | 114 | if (!is.null(message) && !inherits(message, "JS_EVAL")) { 115 | stop("message must be a JavaScript function wrapped by htmlwidgets::JS().") 116 | } 117 | 118 | list( 119 | caption = name, 120 | width = width, 121 | minWidth = min_width, 122 | maxWidth = max_width, 123 | columnType = column_type, 124 | action = if (!is.null(action)) { 125 | if (action == "inline_menu") { 126 | list( 127 | type = action, 128 | options = menu_options 129 | ) 130 | } else { 131 | action 132 | } 133 | }, 134 | style = style, 135 | message = message, 136 | sort = sort 137 | ) 138 | } 139 | 140 | #' Column group definitions 141 | #' 142 | #' Creates a column group definition for grouping columns in a Cheetah Grid widget. 143 | #' 144 | #' @param name Character string. The name to display for the column group. 145 | #' @param columns Character vector. The names of the columns to include in this group. 146 | #' @param header_style Named list of possibleCSS style properties to apply to the column group header. 147 | #' 148 | #' @return A list containing the column group definition. 149 | #' 150 | #' @examples 151 | #' cheetah( 152 | #' iris, 153 | #' columns = list( 154 | #' Sepal.Length = column_def(name = "Length"), 155 | #' Sepal.Width = column_def(name = "Width"), 156 | #' Petal.Length = column_def(name = "Length"), 157 | #' Petal.Width = column_def(name = "Width") 158 | #' ), 159 | #' column_group = list( 160 | #' column_group(name = "Sepal", columns = c("Sepal.Length", "Sepal.Width")), 161 | #' column_group(name = "Petal", columns = c("Petal.Length", "Petal.Width")) 162 | #' ) 163 | #' ) 164 | #' 165 | #' @export 166 | column_group <- function(name = NULL, columns, header_style = NULL) { 167 | column_style_check(header_style) 168 | 169 | dropNulls( 170 | list( 171 | caption = name, 172 | columns = columns, 173 | headerStyle = header_style 174 | ) 175 | ) 176 | } 177 | -------------------------------------------------------------------------------- /R/js_ifelse.R: -------------------------------------------------------------------------------- 1 | #' Convert an R logical expression into a JS ternary expression 2 | #' 3 | #' @param condition An R logical expression (supports %in% / %notin% / grepl() / comparisons / & |) 4 | #' @param if_true String to return when the condition is TRUE. Default is an empty string, which interprets as `null` in JS. 5 | #' @param if_false String to return when the condition is FALSE. Default is an empty string, which interprets as `null` in JS. 6 | #' @return A single character string containing a JavaScript ternary expression. 7 | #' @export 8 | js_ifelse <- function(condition, if_true = "", if_false = "") { 9 | # 1) Capture the unevaluated condition as a single string 10 | txt <- paste(deparse(substitute(condition)), collapse = " ") 11 | 12 | # 2) Force all " to ' in the condition itself 13 | txt <- gsub("\"", "'", txt, fixed = TRUE) 14 | 15 | # 3) Handle %notin% and %in% 16 | handle_in <- function(text) { 17 | pat <- "(\\b[[:alnum:]_.]+)\\s*%(not)?in%\\s*c\\(([^)]+)\\)" 18 | matches <- gregexpr(pat, text, perl = TRUE)[[1]] 19 | if (matches[1] == -1) return(text) 20 | 21 | for (raw in regmatches(text, gregexpr(pat, text, perl = TRUE))[[1]]) { 22 | parts <- regmatches(raw, regexec(pat, raw, perl = TRUE))[[1]] 23 | var <- parts[2] 24 | neg <- !is.na(parts[3]) && nzchar(parts[3]) 25 | vals <- strsplit(parts[4], ",")[[1]] 26 | # Trim only whitespace, leave the single quotes intact: 27 | vals <- trimws(vals) 28 | 29 | # Paste them back together (they already have their single quotes): 30 | arr <- sprintf("[%s]", paste(vals, collapse = ",")) 31 | expr <- sprintf("%s.includes(rec['%s'])", arr, var) 32 | if (neg) expr <- paste0("!", expr) 33 | 34 | text <- sub(pat, expr, text, perl = TRUE) 35 | } 36 | text 37 | } 38 | txt <- handle_in(txt) 39 | 40 | # 4) Handle grepl() and !grepl(), capturing the inner regex 41 | handle_grep <- function(text) { 42 | pat <- "(!?)grepl\\((['\"])(.*?)\\2,\\s*([[:alnum:]_.]+)\\)" 43 | matches <- gregexpr(pat, text, perl = TRUE)[[1]] 44 | if (matches[1] == -1) return(text) 45 | 46 | for (raw in regmatches(text, gregexpr(pat, text, perl = TRUE))[[1]]) { 47 | parts <- regmatches(raw, regexec(pat, raw, perl = TRUE))[[1]] 48 | notp <- nzchar(parts[2]) 49 | pattern <- parts[4] 50 | var <- parts[5] 51 | 52 | expr <- sprintf("%s/%s/.test(rec['%s'])", 53 | if (notp) "!" else "", pattern, var) 54 | text <- sub(pat, expr, text, perl = TRUE) 55 | } 56 | text 57 | } 58 | txt <- handle_grep(txt) 59 | 60 | # 5) Replace R logical operators with JS equivalents 61 | txt <- gsub("!=", "!==", txt, fixed = TRUE) 62 | txt <- gsub("==", "===", txt, fixed = TRUE) 63 | txt <- gsub(" & ", " && ", txt, fixed = TRUE) 64 | txt <- gsub(" | ", " || ", txt, fixed = TRUE) 65 | 66 | # 6) Prefix all remaining bare names with rec['...'], skipping 'rec' itself 67 | prefix_pat <- "(? 6 | 7 | ```{r, include = FALSE} 8 | knitr::opts_chunk$set( 9 | collapse = TRUE, 10 | comment = "#>", 11 | fig.path = "man/figures/README-", 12 | out.width = "100%" 13 | ) 14 | ``` 15 | 16 | # cheetahR 17 | 18 | 19 | [![CRAN status](https://www.r-pkg.org/badges/version/cheetahR)](https://CRAN.R-project.org/package=cheetahR) 20 | [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) 21 | 22 | 23 | `cheetahR` is an R package that brings the power of [Cheetah Grid](https://github.com/future-architect/cheetah-grid) to R. Designed for __speed__ and __efficiency__, `cheetahR` will allow you to __render millions of rows__ in just a few milliseconds, making it an excellent alternative to reactable and other R table widgets. The goal of cheetahR is to wrap the JavaScript functions of Cheetah Grid and make them readily available for R users, providing a seamless and high-performance table widget for R applications. 24 | 25 | ## Features 26 | 27 | - __Ultra-fast__ rendering of large datasets. 28 | - __Lightweight__ and efficient memory usage. 29 | - __Customizable__ styling and formatting. 30 | - __Smooth__ scrolling and interaction. 31 | - __Seamless integration__ with R and Shiny. 32 | 33 | ## Installation 34 | 35 | You can install `cheetahR` from GitHub: 36 | 37 | ```r 38 | pak::pak("cynkra/cheetahR") 39 | ``` 40 | 41 | ## Getting Started 42 | 43 | So far, `cheetah()` is available to render a dataframe in R 44 | 45 | ```r 46 | library(cheetahR) 47 | 48 | # Render table 49 | cheetah(iris) 50 | 51 | # Change some feature of some columns in the data 52 | cheetah( 53 | iris, 54 | columns = list( 55 | Sepal.Length = column_def(name = "Sepal_Length"), 56 | Sepal.Width = column_def(name = "Sepal_Width", width = 100) 57 | ) 58 | ) 59 | ``` 60 | 61 | ## API Integration 62 | 63 | `cheetahR` is compatible with Shiny, allowing for dynamic and interactive tables in web applications. Although still a work in progress. 64 | 65 | ## Contributing 66 | 67 | We welcome contributions! If you’d like to help improve `cheetahR`, feel free to submit issues, feature requests, or pull requests. 68 | 69 | ### Software Pre-requiste 70 | 71 | To contribute to this project, some software installations are required, such as `npm`, `node`, and `packer`. Please follow the slides attached to help you get started [pre-requisites](https://rsc.cynkra.com/js4Shiny/#/software-pre-requisites). Click here to install [packer](https://rsc.cynkra.com/js4Shiny/#/solutions). 72 | 73 | When you are in the project, do the following: 74 | 75 | ```r 76 | packer::npm_install() 77 | # Change the code and then rebundle 78 | packer::bundle("development") # For developement mode 79 | packer::bundle() # For production. Defaut! 80 | ``` 81 | 82 | You may as well bundle for `dev` using `packer::bundle_dev()` when in developer mode and when ready for production use `packer::bundle_prod()`. You may also consider `watch()` which watches for changes in the `srcjs` and rebuilds if necessary, equivalent to `⁠npm run watch⁠`. 83 | 84 | ### Debugging steps 85 | 86 | 1. Once you run a function, for instance, `cheetah(iris)`, open the viewer on a web browser window (preferably Chrome as it is used to illustrate the action in this step). Note! Other browser pages may differ. 87 | 2. Right-click on the widget and navigate to the "inspect" option on the drop-down menu 88 | ![widget opened on the browser](man/figures/image1.png) 89 | 3. At the top, where the tabs are displayed, navigate to the "Sources" tab. Open from the sidepanel "cheetahr/srcjs/widgets/cheetah.js" script 90 | ![Inspector tabs are opened](man/figures/image2.png) 91 | 4. Once the "cheetah.js" is opened on the main panel. You can set a breakpoint on any line number of the script and reload the page. 92 | ![The breakpoint is shown](man/figures/image3.png) 93 | 94 | ## Acknowledgments 95 | 96 | This package is built on top of the amazing [Cheetah Grid](https://github.com/future-architect/cheetah-grid) JavaScript library. 97 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | # cheetahR 5 | 6 | 7 | 8 | [![CRAN 9 | status](https://www.r-pkg.org/badges/version/cheetahR)](https://CRAN.R-project.org/package=cheetahR) 10 | [![Lifecycle: 11 | experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) 12 | 13 | 14 | `cheetahR` is an R package that brings the power of [Cheetah 15 | Grid](https://github.com/future-architect/cheetah-grid) to R. Designed 16 | for **speed** and **efficiency**, `cheetahR` will allow you to **render 17 | millions of rows** in just a few milliseconds, making it an excellent 18 | alternative to reactable and other R table widgets. The goal of cheetahR 19 | is to wrap the JavaScript functions of Cheetah Grid and make them 20 | readily available for R users, providing a seamless and high-performance 21 | table widget for R applications. 22 | 23 | ## Features 24 | 25 | - **Ultra-fast** rendering of large datasets. 26 | - **Lightweight** and efficient memory usage. 27 | - **Customizable** styling and formatting. 28 | - **Smooth** scrolling and interaction. 29 | - **Seamless integration** with R and Shiny. 30 | 31 | ## Installation 32 | 33 | You can install `cheetahR` from GitHub: 34 | 35 | ``` r 36 | pak::pak("cynkra/cheetahR") 37 | ``` 38 | 39 | ## Getting Started 40 | 41 | So far, `cheetah()` is available to render a dataframe in R 42 | 43 | ``` r 44 | library(cheetahR) 45 | 46 | # Render table 47 | cheetah(iris) 48 | 49 | # Change some feature of some columns in the data 50 | cheetah( 51 | iris, 52 | columns = list( 53 | Sepal.Length = column_def(name = "Sepal_Length"), 54 | Sepal.Width = column_def(name = "Sepal_Width", width = 100) 55 | ) 56 | ) 57 | ``` 58 | 59 | ## API Integration 60 | 61 | `cheetahR` is compatible with Shiny, allowing for dynamic and 62 | interactive tables in web applications. Although still a work in 63 | progress. 64 | 65 | ## Contributing 66 | 67 | We welcome contributions! If you’d like to help improve `cheetahR`, feel 68 | free to submit issues, feature requests, or pull requests. 69 | 70 | ### Software Pre-requiste 71 | 72 | To contribute to this project, some software installations are required, 73 | such as `npm`, `node`, and `packer`. Please follow the slides attached 74 | to help you get started 75 | [pre-requisites](https://rsc.cynkra.com/js4Shiny/#/software-pre-requisites). 76 | Click here to install 77 | [packer](https://rsc.cynkra.com/js4Shiny/#/solutions). 78 | 79 | When you are in the project, do the following: 80 | 81 | ``` r 82 | packer::npm_install() 83 | # Change the code and then rebundle 84 | packer::bundle("development") # For developement mode 85 | packer::bundle() # For production. Defaut! 86 | ``` 87 | 88 | You may as well bundle for `dev` using `packer::bundle_dev()` when in 89 | developer mode and when ready for production use 90 | `packer::bundle_prod()`. You may also consider `watch()` which watches 91 | for changes in the `srcjs` and rebuilds if necessary, equivalent to 92 | `⁠npm run watch⁠`. 93 | 94 | ### Debugging steps 95 | 96 | 1. Once you run a function, for instance, `cheetah(iris)`, open the 97 | viewer on a web browser window (preferably Chrome as it is used to 98 | illustrate the action in this step). Note! Other browser pages may 99 | differ. 100 | 2. Right-click on the widget and navigate to the “inspect” option on 101 | the drop-down menu ![widget opened on the 102 | browser](man/figures/image1.png) 103 | 3. At the top, where the tabs are displayed, navigate to the “Sources” 104 | tab. Open from the sidepanel “cheetahr/srcjs/widgets/cheetah.js” 105 | script ![Inspector tabs are opened](man/figures/image2.png) 106 | 4. Once the “cheetah.js” is opened on the main panel. You can set a 107 | breakpoint on any line number of the script and reload the page. 108 | ![The breakpoint is shown](man/figures/image3.png) 109 | 110 | ## Acknowledgments 111 | 112 | This package is built on top of the amazing [Cheetah 113 | Grid](https://github.com/future-architect/cheetah-grid) JavaScript 114 | library. 115 | -------------------------------------------------------------------------------- /_pkgdown.yml: -------------------------------------------------------------------------------- 1 | url: ~ 2 | template: 3 | bootstrap: 5 4 | 5 | -------------------------------------------------------------------------------- /app.R: -------------------------------------------------------------------------------- 1 | library(shiny) 2 | library(bslib) 3 | 4 | # Define UI for application that draws a histogram 5 | ui <- page_fluid(cheetahOutput("grid")) 6 | 7 | # Define server logic 8 | server <- function(input, output) { 9 | output$grid <- renderCheetah({ 10 | cheetah(data = mtcars) 11 | }) 12 | } 13 | 14 | shinyApp(ui = ui, server = server) 15 | -------------------------------------------------------------------------------- /cheetahR.Rproj: -------------------------------------------------------------------------------- 1 | Version: 1.0 2 | 3 | RestoreWorkspace: No 4 | SaveWorkspace: No 5 | AlwaysSaveHistory: Default 6 | 7 | EnableCodeIndexing: Yes 8 | UseSpacesForTab: Yes 9 | NumSpacesForTab: 2 10 | Encoding: UTF-8 11 | 12 | RnwWeave: Sweave 13 | LaTeX: pdfLaTeX 14 | 15 | AutoAppendNewline: Yes 16 | StripTrailingWhitespace: Yes 17 | LineEndingConversion: Posix 18 | 19 | BuildType: Package 20 | PackageUseDevtools: Yes 21 | PackageInstallArgs: --no-multiarch --with-keep.source 22 | PackageRoxygenize: rd,collate,namespace 23 | -------------------------------------------------------------------------------- /inst/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cynkra/cheetahR/6e3a7cda433776dbc59270843f56e5e29a2f8a66/inst/.DS_Store -------------------------------------------------------------------------------- /inst/htmlwidgets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cynkra/cheetahR/6e3a7cda433776dbc59270843f56e5e29a2f8a66/inst/htmlwidgets/.DS_Store -------------------------------------------------------------------------------- /inst/htmlwidgets/cheetah.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! !../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/postcss-loader/src??ref--5-2!./ErrorMessageElement.css */ 2 | 3 | /*! !../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/postcss-loader/src??ref--5-2!./InlineInputElement.css */ 4 | 5 | /*! !../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/postcss-loader/src??ref--5-2!./InlineMenuElement.css */ 6 | 7 | /*! !../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/postcss-loader/src??ref--5-2!./MessageElement.css */ 8 | 9 | /*! !../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/postcss-loader/src??ref--5-2!./SmallDialogInputElement.css */ 10 | 11 | /*! !../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/postcss-loader/src??ref--5-2!./WarningMessageElement.css */ 12 | 13 | /*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/postcss-loader/src??ref--5-2!./TooltipElement.css */ 14 | 15 | /*! !../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../node_modules/postcss-loader/src??ref--5-2!./style.css */ 16 | 17 | /*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ 18 | 19 | /*! ../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ 20 | 21 | /*! ../../../../node_modules/css-loader/dist/runtime/api.js */ 22 | 23 | /*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ 24 | 25 | /*! ../../../columns */ 26 | 27 | /*! ../../../header/action */ 28 | 29 | /*! ../../../header/type */ 30 | 31 | /*! ../../../internal/EventHandler */ 32 | 33 | /*! ../../../internal/dom */ 34 | 35 | /*! ../../../internal/utils */ 36 | 37 | /*! ../../../node_modules/css-loader/dist/runtime/api.js */ 38 | 39 | /*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ 40 | 41 | /*! ../../columns/type/columnUtils */ 42 | 43 | /*! ../../core/DG_EVENT_TYPE */ 44 | 45 | /*! ../../core/EventTarget */ 46 | 47 | /*! ../../element/inlines */ 48 | 49 | /*! ../../internal/EventHandler */ 50 | 51 | /*! ../../internal/Rect */ 52 | 53 | /*! ../../internal/animate */ 54 | 55 | /*! ../../internal/canvases */ 56 | 57 | /*! ../../internal/dom */ 58 | 59 | /*! ../../internal/icons */ 60 | 61 | /*! ../../internal/imgs */ 62 | 63 | /*! ../../internal/menu-items */ 64 | 65 | /*! ../../internal/symbolManager */ 66 | 67 | /*! ../../internal/utils */ 68 | 69 | /*! ../../list-grid/LG_EVENT_TYPE */ 70 | 71 | /*! ../columns/type/TreeColumn */ 72 | 73 | /*! ../core/DG_EVENT_TYPE */ 74 | 75 | /*! ../core/EventTarget */ 76 | 77 | /*! ../icons */ 78 | 79 | /*! ../indicator/handlers */ 80 | 81 | /*! ../internal/EventHandler */ 82 | 83 | /*! ../internal/NumberMap */ 84 | 85 | /*! ../internal/Rect */ 86 | 87 | /*! ../internal/Scrollable */ 88 | 89 | /*! ../internal/calc */ 90 | 91 | /*! ../internal/canvases */ 92 | 93 | /*! ../internal/fonts */ 94 | 95 | /*! ../internal/hiDPI */ 96 | 97 | /*! ../internal/imgs */ 98 | 99 | /*! ../internal/paste-utils */ 100 | 101 | /*! ../internal/path2DManager */ 102 | 103 | /*! ../internal/sort */ 104 | 105 | /*! ../internal/style */ 106 | 107 | /*! ../internal/symbolManager */ 108 | 109 | /*! ../internal/utils */ 110 | 111 | /*! ../list-grid/LG_EVENT_TYPE */ 112 | 113 | /*! ../style */ 114 | 115 | /*! ../style/BaseStyle */ 116 | 117 | /*! ../style/BranchGraphStyle */ 118 | 119 | /*! ../style/ButtonStyle */ 120 | 121 | /*! ../style/CheckHeaderStyle */ 122 | 123 | /*! ../style/CheckStyle */ 124 | 125 | /*! ../style/IconStyle */ 126 | 127 | /*! ../style/ImageStyle */ 128 | 129 | /*! ../style/MenuStyle */ 130 | 131 | /*! ../style/MultilineTextHeaderStyle */ 132 | 133 | /*! ../style/MultilineTextStyle */ 134 | 135 | /*! ../style/NumberStyle */ 136 | 137 | /*! ../style/PercentCompleteBarStyle */ 138 | 139 | /*! ../style/RadioStyle */ 140 | 141 | /*! ../style/SortHeaderStyle */ 142 | 143 | /*! ../style/Style */ 144 | 145 | /*! ../style/TreeStyle */ 146 | 147 | /*! ../type */ 148 | 149 | /*! ../utils */ 150 | 151 | /*! ./../../node_modules/webpack/buildin/global.js */ 152 | 153 | /*! ./Action */ 154 | 155 | /*! ./BaseAction */ 156 | 157 | /*! ./BaseColumn */ 158 | 159 | /*! ./BaseHeader */ 160 | 161 | /*! ./BaseInputEditor */ 162 | 163 | /*! ./BaseMessage */ 164 | 165 | /*! ./BaseStyle */ 166 | 167 | /*! ./BaseTooltip */ 168 | 169 | /*! ./Column */ 170 | 171 | /*! ./DG_EVENT_TYPE */ 172 | 173 | /*! ./DataSource */ 174 | 175 | /*! ./Editor */ 176 | 177 | /*! ./ErrorMessage */ 178 | 179 | /*! ./EventHandler */ 180 | 181 | /*! ./EventTarget */ 182 | 183 | /*! ./FontRuler */ 184 | 185 | /*! ./GridCanvasHelper */ 186 | 187 | /*! ./InfoMessage */ 188 | 189 | /*! ./Inline */ 190 | 191 | /*! ./InlineDrawer */ 192 | 193 | /*! ./InlineIcon */ 194 | 195 | /*! ./InlineImage */ 196 | 197 | /*! ./InlinePath2D */ 198 | 199 | /*! ./InlineSvg */ 200 | 201 | /*! ./LRUCache */ 202 | 203 | /*! ./ListGrid */ 204 | 205 | /*! ./MessageElement */ 206 | 207 | /*! ./PathCommands */ 208 | 209 | /*! ./PathCommandsParser */ 210 | 211 | /*! ./StdBaseStyle */ 212 | 213 | /*! ./StdMultilineTextBaseStyle */ 214 | 215 | /*! ./StdTextBaseStyle */ 216 | 217 | /*! ./Style */ 218 | 219 | /*! ./Tooltip */ 220 | 221 | /*! ./WarningMessage */ 222 | 223 | /*! ./action-utils */ 224 | 225 | /*! ./action/Action */ 226 | 227 | /*! ./action/BaseAction */ 228 | 229 | /*! ./action/ButtonAction */ 230 | 231 | /*! ./action/CheckEditor */ 232 | 233 | /*! ./action/CheckHeaderAction */ 234 | 235 | /*! ./action/Editor */ 236 | 237 | /*! ./action/InlineInputEditor */ 238 | 239 | /*! ./action/InlineMenuEditor */ 240 | 241 | /*! ./action/RadioEditor */ 242 | 243 | /*! ./action/SmallDialogInputEditor */ 244 | 245 | /*! ./action/SortHeaderAction */ 246 | 247 | /*! ./actionBind */ 248 | 249 | /*! ./columnUtils */ 250 | 251 | /*! ./columns */ 252 | 253 | /*! ./columns/action */ 254 | 255 | /*! ./columns/message/MessageHandler */ 256 | 257 | /*! ./columns/style */ 258 | 259 | /*! ./columns/type */ 260 | 261 | /*! ./core */ 262 | 263 | /*! ./core/DG_EVENT_TYPE */ 264 | 265 | /*! ./core/DrawGrid */ 266 | 267 | /*! ./data */ 268 | 269 | /*! ./data/CachedDataSource */ 270 | 271 | /*! ./data/DataSource */ 272 | 273 | /*! ./data/FilterDataSource */ 274 | 275 | /*! ./element/InlineDrawer */ 276 | 277 | /*! ./element/inlines */ 278 | 279 | /*! ./get-internal */ 280 | 281 | /*! ./header/action */ 282 | 283 | /*! ./header/style */ 284 | 285 | /*! ./header/type */ 286 | 287 | /*! ./headers */ 288 | 289 | /*! ./icons */ 290 | 291 | /*! ./input-value-handler */ 292 | 293 | /*! ./internal/ErrorMessageElement */ 294 | 295 | /*! ./internal/InlineInputElement */ 296 | 297 | /*! ./internal/InlineMenuElement */ 298 | 299 | /*! ./internal/MessageElement */ 300 | 301 | /*! ./internal/Rect */ 302 | 303 | /*! ./internal/SmallDialogInputElement */ 304 | 305 | /*! ./internal/TooltipElement */ 306 | 307 | /*! ./internal/WarningMessageElement */ 308 | 309 | /*! ./internal/calc */ 310 | 311 | /*! ./internal/canvases */ 312 | 313 | /*! ./internal/color */ 314 | 315 | /*! ./internal/fonts */ 316 | 317 | /*! ./internal/icons */ 318 | 319 | /*! ./internal/multi-layout */ 320 | 321 | /*! ./internal/paste-utils */ 322 | 323 | /*! ./internal/path2DManager */ 324 | 325 | /*! ./internal/simple-header-layout */ 326 | 327 | /*! ./internal/sort */ 328 | 329 | /*! ./internal/symbolManager */ 330 | 331 | /*! ./internal/utils */ 332 | 333 | /*! ./legacy/canvas/Path2DShim */ 334 | 335 | /*! ./legacy/fontwatch/FontWatchRunner */ 336 | 337 | /*! ./list-grid/LG_EVENT_TYPE */ 338 | 339 | /*! ./list-grid/layout-map */ 340 | 341 | /*! ./messageUtils */ 342 | 343 | /*! ./plugins/icons */ 344 | 345 | /*! ./plugins/themes */ 346 | 347 | /*! ./register */ 348 | 349 | /*! ./style */ 350 | 351 | /*! ./style/BaseStyle */ 352 | 353 | /*! ./style/ButtonStyle */ 354 | 355 | /*! ./style/CheckHeaderStyle */ 356 | 357 | /*! ./style/CheckStyle */ 358 | 359 | /*! ./style/IconStyle */ 360 | 361 | /*! ./style/ImageStyle */ 362 | 363 | /*! ./style/MenuStyle */ 364 | 365 | /*! ./style/MultilineTextHeaderStyle */ 366 | 367 | /*! ./style/MultilineTextStyle */ 368 | 369 | /*! ./style/NumberStyle */ 370 | 371 | /*! ./style/PercentCompleteBarStyle */ 372 | 373 | /*! ./style/RadioStyle */ 374 | 375 | /*! ./style/SortHeaderStyle */ 376 | 377 | /*! ./style/Style */ 378 | 379 | /*! ./style/TreeStyle */ 380 | 381 | /*! ./themes */ 382 | 383 | /*! ./themes/BASIC */ 384 | 385 | /*! ./themes/MATERIAL_DESIGN */ 386 | 387 | /*! ./themes/theme */ 388 | 389 | /*! ./tools */ 390 | 391 | /*! ./tools/canvashelper */ 392 | 393 | /*! ./tooltip/TooltipHandler */ 394 | 395 | /*! ./triangle */ 396 | 397 | /*! ./type/BaseHeader */ 398 | 399 | /*! ./type/BranchGraphColumn */ 400 | 401 | /*! ./type/ButtonColumn */ 402 | 403 | /*! ./type/CheckColumn */ 404 | 405 | /*! ./type/CheckHeader */ 406 | 407 | /*! ./type/Column */ 408 | 409 | /*! ./type/Header */ 410 | 411 | /*! ./type/IconColumn */ 412 | 413 | /*! ./type/ImageColumn */ 414 | 415 | /*! ./type/MenuColumn */ 416 | 417 | /*! ./type/MultilineTextColumn */ 418 | 419 | /*! ./type/MultilineTextHeader */ 420 | 421 | /*! ./type/NumberColumn */ 422 | 423 | /*! ./type/PercentCompleteBarColumn */ 424 | 425 | /*! ./type/RadioColumn */ 426 | 427 | /*! ./type/SortHeader */ 428 | 429 | /*! ./type/TreeColumn */ 430 | 431 | /*! ./utils */ 432 | 433 | /*! @/columns/action/internal/InlineInputElement.css */ 434 | 435 | /*! @/columns/action/internal/InlineMenuElement.css */ 436 | 437 | /*! @/columns/action/internal/SmallDialogInputElement.css */ 438 | 439 | /*! @/columns/message/internal/ErrorMessageElement.css */ 440 | 441 | /*! @/columns/message/internal/MessageElement.css */ 442 | 443 | /*! @/columns/message/internal/WarningMessageElement.css */ 444 | 445 | /*! @/internal/style.css */ 446 | 447 | /*! @/tooltip/internal/TooltipElement.css */ 448 | 449 | /*! Cheetah Grid v1.16.0 | license MIT */ 450 | 451 | /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ 452 | 453 | /*! ModuleConcatenation bailout: Module uses module.id */ 454 | 455 | /*! exports provided: default */ 456 | 457 | /*! no static exports found */ 458 | 459 | /*!*****************!*\ 460 | !*** ./core.js ***! 461 | \*****************/ 462 | 463 | /*!*****************!*\ 464 | !*** ./data.js ***! 465 | \*****************/ 466 | 467 | /*!*****************!*\ 468 | !*** ./main.js ***! 469 | \*****************/ 470 | 471 | /*!******************!*\ 472 | !*** ./icons.js ***! 473 | \******************/ 474 | 475 | /*!******************!*\ 476 | !*** ./tools.js ***! 477 | \******************/ 478 | 479 | /*!*******************!*\ 480 | !*** ./themes.js ***! 481 | \*******************/ 482 | 483 | /*!********************!*\ 484 | !*** ./columns.js ***! 485 | \********************/ 486 | 487 | /*!********************!*\ 488 | !*** ./headers.js ***! 489 | \********************/ 490 | 491 | /*!*********************!*\ 492 | !*** ./ListGrid.js ***! 493 | \*********************/ 494 | 495 | /*!*********************!*\ 496 | !*** ./register.js ***! 497 | \*********************/ 498 | 499 | /*!************************!*\ 500 | !*** ./header/type.js ***! 501 | \************************/ 502 | 503 | /*!*************************!*\ 504 | !*** ./columns/type.js ***! 505 | \*************************/ 506 | 507 | /*!*************************!*\ 508 | !*** ./get-internal.js ***! 509 | \*************************/ 510 | 511 | /*!*************************!*\ 512 | !*** ./header/style.js ***! 513 | \*************************/ 514 | 515 | /*!*************************!*\ 516 | !*** ./internal/dom.js ***! 517 | \*************************/ 518 | 519 | /*!*************************!*\ 520 | !*** ./themes/BASIC.js ***! 521 | \*************************/ 522 | 523 | /*!*************************!*\ 524 | !*** ./themes/theme.js ***! 525 | \*************************/ 526 | 527 | /*!**************************!*\ 528 | !*** ./columns/style.js ***! 529 | \**************************/ 530 | 531 | /*!**************************!*\ 532 | !*** ./core/DrawGrid.js ***! 533 | \**************************/ 534 | 535 | /*!**************************!*\ 536 | !*** ./header/action.js ***! 537 | \**************************/ 538 | 539 | /*!**************************!*\ 540 | !*** ./internal/Rect.js ***! 541 | \**************************/ 542 | 543 | /*!**************************!*\ 544 | !*** ./internal/calc.js ***! 545 | \**************************/ 546 | 547 | /*!**************************!*\ 548 | !*** ./internal/imgs.js ***! 549 | \**************************/ 550 | 551 | /*!**************************!*\ 552 | !*** ./internal/sort.js ***! 553 | \**************************/ 554 | 555 | /*!**************************!*\ 556 | !*** ./plugins/icons.js ***! 557 | \**************************/ 558 | 559 | /*!***************************!*\ 560 | !*** ./columns/action.js ***! 561 | \***************************/ 562 | 563 | /*!***************************!*\ 564 | !*** ./element/Inline.js ***! 565 | \***************************/ 566 | 567 | /*!***************************!*\ 568 | !*** ./internal/color.js ***! 569 | \***************************/ 570 | 571 | /*!***************************!*\ 572 | !*** ./internal/fonts.js ***! 573 | \***************************/ 574 | 575 | /*!***************************!*\ 576 | !*** ./internal/hiDPI.js ***! 577 | \***************************/ 578 | 579 | /*!***************************!*\ 580 | !*** ./internal/icons.js ***! 581 | \***************************/ 582 | 583 | /*!***************************!*\ 584 | !*** ./internal/style.js ***! 585 | \***************************/ 586 | 587 | /*!***************************!*\ 588 | !*** ./internal/utils.js ***! 589 | \***************************/ 590 | 591 | /*!***************************!*\ 592 | !*** ./plugins/themes.js ***! 593 | \***************************/ 594 | 595 | /*!****************************!*\ 596 | !*** ./data/DataSource.js ***! 597 | \****************************/ 598 | 599 | /*!****************************!*\ 600 | !*** ./element/inlines.js ***! 601 | \****************************/ 602 | 603 | /*!****************************!*\ 604 | !*** ./tooltip/Tooltip.js ***! 605 | \****************************/ 606 | 607 | /*!*****************************!*\ 608 | !*** ./GridCanvasHelper.js ***! 609 | \*****************************/ 610 | 611 | /*!*****************************!*\ 612 | !*** ./core/EventTarget.js ***! 613 | \*****************************/ 614 | 615 | /*!*****************************!*\ 616 | !*** ./internal/animate.js ***! 617 | \*****************************/ 618 | 619 | /*!******************************!*\ 620 | !*** ./element/InlineSvg.js ***! 621 | \******************************/ 622 | 623 | /*!******************************!*\ 624 | !*** ./internal/LRUCache.js ***! 625 | \******************************/ 626 | 627 | /*!******************************!*\ 628 | !*** ./internal/canvases.js ***! 629 | \******************************/ 630 | 631 | /*!*******************************!*\ 632 | !*** ./core/DG_EVENT_TYPE.js ***! 633 | \*******************************/ 634 | 635 | /*!*******************************!*\ 636 | !*** ./element/InlineIcon.js ***! 637 | \*******************************/ 638 | 639 | /*!*******************************!*\ 640 | !*** ./header/style/Style.js ***! 641 | \*******************************/ 642 | 643 | /*!*******************************!*\ 644 | !*** ./header/type/Header.js ***! 645 | \*******************************/ 646 | 647 | /*!*******************************!*\ 648 | !*** ./internal/NumberMap.js ***! 649 | \*******************************/ 650 | 651 | /*!*******************************!*\ 652 | !*** ./tools/canvashelper.js ***! 653 | \*******************************/ 654 | 655 | /*!********************************!*\ 656 | !*** ./columns/style/Style.js ***! 657 | \********************************/ 658 | 659 | /*!********************************!*\ 660 | !*** ./columns/type/Column.js ***! 661 | \********************************/ 662 | 663 | /*!********************************!*\ 664 | !*** ./columns/utils/index.js ***! 665 | \********************************/ 666 | 667 | /*!********************************!*\ 668 | !*** ./element/InlineImage.js ***! 669 | \********************************/ 670 | 671 | /*!********************************!*\ 672 | !*** ./internal/Scrollable.js ***! 673 | \********************************/ 674 | 675 | /*!********************************!*\ 676 | !*** ./internal/menu-items.js ***! 677 | \********************************/ 678 | 679 | /*!********************************!*\ 680 | !*** ./tooltip/BaseTooltip.js ***! 681 | \********************************/ 682 | 683 | /*!*********************************!*\ 684 | !*** ./element/InlineDrawer.js ***! 685 | \*********************************/ 686 | 687 | /*!*********************************!*\ 688 | !*** ./element/InlinePath2D.js ***! 689 | \*********************************/ 690 | 691 | /*!*********************************!*\ 692 | !*** ./internal/paste-utils.js ***! 693 | \*********************************/ 694 | 695 | /*!**********************************!*\ 696 | !*** ./columns/action/Action.js ***! 697 | \**********************************/ 698 | 699 | /*!**********************************!*\ 700 | !*** ./columns/action/Editor.js ***! 701 | \**********************************/ 702 | 703 | /*!**********************************!*\ 704 | !*** ./data/CachedDataSource.js ***! 705 | \**********************************/ 706 | 707 | /*!**********************************!*\ 708 | !*** ./data/FilterDataSource.js ***! 709 | \**********************************/ 710 | 711 | /*!**********************************!*\ 712 | !*** ./internal/EventHandler.js ***! 713 | \**********************************/ 714 | 715 | /*!***********************************!*\ 716 | !*** ./header/style/BaseStyle.js ***! 717 | \***********************************/ 718 | 719 | /*!***********************************!*\ 720 | !*** ./header/type/BaseHeader.js ***! 721 | \***********************************/ 722 | 723 | /*!***********************************!*\ 724 | !*** ./header/type/SortHeader.js ***! 725 | \***********************************/ 726 | 727 | /*!***********************************!*\ 728 | !*** ./internal/path2DManager.js ***! 729 | \***********************************/ 730 | 731 | /*!***********************************!*\ 732 | !*** ./internal/symbolManager.js ***! 733 | \***********************************/ 734 | 735 | /*!***********************************!*\ 736 | !*** ./themes/MATERIAL_DESIGN.js ***! 737 | \***********************************/ 738 | 739 | /*!***********************************!*\ 740 | !*** ./tooltip/TooltipHandler.js ***! 741 | \***********************************/ 742 | 743 | /*!************************************!*\ 744 | !*** ../src/js/internal/style.css ***! 745 | \************************************/ 746 | 747 | /*!************************************!*\ 748 | !*** ./columns/style/BaseStyle.js ***! 749 | \************************************/ 750 | 751 | /*!************************************!*\ 752 | !*** ./columns/style/IconStyle.js ***! 753 | \************************************/ 754 | 755 | /*!************************************!*\ 756 | !*** ./columns/style/MenuStyle.js ***! 757 | \************************************/ 758 | 759 | /*!************************************!*\ 760 | !*** ./columns/style/TreeStyle.js ***! 761 | \************************************/ 762 | 763 | /*!************************************!*\ 764 | !*** ./columns/type/BaseColumn.js ***! 765 | \************************************/ 766 | 767 | /*!************************************!*\ 768 | !*** ./columns/type/IconColumn.js ***! 769 | \************************************/ 770 | 771 | /*!************************************!*\ 772 | !*** ./columns/type/MenuColumn.js ***! 773 | \************************************/ 774 | 775 | /*!************************************!*\ 776 | !*** ./columns/type/TreeColumn.js ***! 777 | \************************************/ 778 | 779 | /*!************************************!*\ 780 | !*** ./header/type/CheckHeader.js ***! 781 | \************************************/ 782 | 783 | /*!************************************!*\ 784 | !*** ./list-grid/LG_EVENT_TYPE.js ***! 785 | \************************************/ 786 | 787 | /*!*************************************!*\ 788 | !*** ./columns/style/CheckStyle.js ***! 789 | \*************************************/ 790 | 791 | /*!*************************************!*\ 792 | !*** ./columns/style/ImageStyle.js ***! 793 | \*************************************/ 794 | 795 | /*!*************************************!*\ 796 | !*** ./columns/style/RadioStyle.js ***! 797 | \*************************************/ 798 | 799 | /*!*************************************!*\ 800 | !*** ./columns/type/CheckColumn.js ***! 801 | \*************************************/ 802 | 803 | /*!*************************************!*\ 804 | !*** ./columns/type/ImageColumn.js ***! 805 | \*************************************/ 806 | 807 | /*!*************************************!*\ 808 | !*** ./columns/type/RadioColumn.js ***! 809 | \*************************************/ 810 | 811 | /*!*************************************!*\ 812 | !*** ./columns/type/columnUtils.js ***! 813 | \*************************************/ 814 | 815 | /*!*************************************!*\ 816 | !*** ./header/action/BaseAction.js ***! 817 | \*************************************/ 818 | 819 | /*!*************************************!*\ 820 | !*** ./header/action/actionBind.js ***! 821 | \*************************************/ 822 | 823 | /*!**************************************!*\ 824 | !*** ./columns/action/BaseAction.js ***! 825 | \**************************************/ 826 | 827 | /*!**************************************!*\ 828 | !*** ./columns/action/actionBind.js ***! 829 | \**************************************/ 830 | 831 | /*!**************************************!*\ 832 | !*** ./columns/style/ButtonStyle.js ***! 833 | \**************************************/ 834 | 835 | /*!**************************************!*\ 836 | !*** ./columns/style/NumberStyle.js ***! 837 | \**************************************/ 838 | 839 | /*!**************************************!*\ 840 | !*** ./columns/type/ButtonColumn.js ***! 841 | \**************************************/ 842 | 843 | /*!**************************************!*\ 844 | !*** ./columns/type/NumberColumn.js ***! 845 | \**************************************/ 846 | 847 | /*!**************************************!*\ 848 | !*** ./header/style/StdBaseStyle.js ***! 849 | \**************************************/ 850 | 851 | /*!***************************************!*\ 852 | !*** ./columns/action/CheckEditor.js ***! 853 | \***************************************/ 854 | 855 | /*!***************************************!*\ 856 | !*** ./columns/action/RadioEditor.js ***! 857 | \***************************************/ 858 | 859 | /*!***************************************!*\ 860 | !*** ./columns/indicator/handlers.js ***! 861 | \***************************************/ 862 | 863 | /*!***************************************!*\ 864 | !*** ./columns/indicator/triangle.js ***! 865 | \***************************************/ 866 | 867 | /*!***************************************!*\ 868 | !*** ./columns/style/StdBaseStyle.js ***! 869 | \***************************************/ 870 | 871 | /*!***************************************!*\ 872 | !*** ./list-grid/layout-map/index.js ***! 873 | \***************************************/ 874 | 875 | /*!****************************************!*\ 876 | !*** ./columns/action/ButtonAction.js ***! 877 | \****************************************/ 878 | 879 | /*!****************************************!*\ 880 | !*** ./columns/action/action-utils.js ***! 881 | \****************************************/ 882 | 883 | /*!****************************************!*\ 884 | !*** ./columns/message/BaseMessage.js ***! 885 | \****************************************/ 886 | 887 | /*!****************************************!*\ 888 | !*** ./columns/message/InfoMessage.js ***! 889 | \****************************************/ 890 | 891 | /*!*****************************************!*\ 892 | !*** ./columns/message/ErrorMessage.js ***! 893 | \*****************************************/ 894 | 895 | /*!*****************************************!*\ 896 | !*** ./columns/message/messageUtils.js ***! 897 | \*****************************************/ 898 | 899 | /*!*****************************************!*\ 900 | !*** ./header/style/SortHeaderStyle.js ***! 901 | \*****************************************/ 902 | 903 | /*!******************************************!*\ 904 | !*** ./header/style/CheckHeaderStyle.js ***! 905 | \******************************************/ 906 | 907 | /*!******************************************!*\ 908 | !*** ./header/style/StdTextBaseStyle.js ***! 909 | \******************************************/ 910 | 911 | /*!*******************************************!*\ 912 | !*** ./columns/action/BaseInputEditor.js ***! 913 | \*******************************************/ 914 | 915 | /*!*******************************************!*\ 916 | !*** ./columns/message/MessageHandler.js ***! 917 | \*******************************************/ 918 | 919 | /*!*******************************************!*\ 920 | !*** ./columns/message/WarningMessage.js ***! 921 | \*******************************************/ 922 | 923 | /*!*******************************************!*\ 924 | !*** ./columns/style/BranchGraphStyle.js ***! 925 | \*******************************************/ 926 | 927 | /*!*******************************************!*\ 928 | !*** ./columns/type/BranchGraphColumn.js ***! 929 | \*******************************************/ 930 | 931 | /*!*******************************************!*\ 932 | !*** ./header/action/SortHeaderAction.js ***! 933 | \*******************************************/ 934 | 935 | /*!********************************************!*\ 936 | !*** ./columns/action/InlineMenuEditor.js ***! 937 | \********************************************/ 938 | 939 | /*!********************************************!*\ 940 | !*** ./header/action/CheckHeaderAction.js ***! 941 | \********************************************/ 942 | 943 | /*!********************************************!*\ 944 | !*** ./header/type/MultilineTextHeader.js ***! 945 | \********************************************/ 946 | 947 | /*!********************************************!*\ 948 | !*** ./tooltip/internal/TooltipElement.js ***! 949 | \********************************************/ 950 | 951 | /*!*********************************************!*\ 952 | !*** ./columns/action/InlineInputEditor.js ***! 953 | \*********************************************/ 954 | 955 | /*!*********************************************!*\ 956 | !*** ./columns/style/MultilineTextStyle.js ***! 957 | \*********************************************/ 958 | 959 | /*!*********************************************!*\ 960 | !*** ./columns/type/MultilineTextColumn.js ***! 961 | \*********************************************/ 962 | 963 | /*!**********************************************!*\ 964 | !*** ./internal/legacy/canvas/Path2DShim.js ***! 965 | \**********************************************/ 966 | 967 | /*!************************************************!*\ 968 | !*** ./internal/legacy/canvas/PathCommands.js ***! 969 | \************************************************/ 970 | 971 | /*!************************************************!*\ 972 | !*** ./internal/legacy/fontwatch/FontRuler.js ***! 973 | \************************************************/ 974 | 975 | /*!************************************************!*\ 976 | !*** ./list-grid/layout-map/internal/utils.js ***! 977 | \************************************************/ 978 | 979 | /*!*************************************************!*\ 980 | !*** ../node_modules/webpack/buildin/global.js ***! 981 | \*************************************************/ 982 | 983 | /*!**************************************************!*\ 984 | !*** ./columns/action/SmallDialogInputEditor.js ***! 985 | \**************************************************/ 986 | 987 | /*!**************************************************!*\ 988 | !*** ./columns/style/PercentCompleteBarStyle.js ***! 989 | \**************************************************/ 990 | 991 | /*!**************************************************!*\ 992 | !*** ./columns/type/PercentCompleteBarColumn.js ***! 993 | \**************************************************/ 994 | 995 | /*!**************************************************!*\ 996 | !*** ./header/style/MultilineTextHeaderStyle.js ***! 997 | \**************************************************/ 998 | 999 | /*!***************************************************!*\ 1000 | !*** ./header/style/StdMultilineTextBaseStyle.js ***! 1001 | \***************************************************/ 1002 | 1003 | /*!****************************************************!*\ 1004 | !*** ./columns/message/internal/MessageElement.js ***! 1005 | \****************************************************/ 1006 | 1007 | /*!*****************************************************!*\ 1008 | !*** ../src/js/tooltip/internal/TooltipElement.css ***! 1009 | \*****************************************************/ 1010 | 1011 | /*!******************************************************!*\ 1012 | !*** ../node_modules/css-loader/dist/runtime/api.js ***! 1013 | \******************************************************/ 1014 | 1015 | /*!******************************************************!*\ 1016 | !*** ./columns/action/internal/InlineMenuElement.js ***! 1017 | \******************************************************/ 1018 | 1019 | /*!******************************************************!*\ 1020 | !*** ./internal/legacy/canvas/PathCommandsParser.js ***! 1021 | \******************************************************/ 1022 | 1023 | /*!******************************************************!*\ 1024 | !*** ./internal/legacy/fontwatch/FontWatchRunner.js ***! 1025 | \******************************************************/ 1026 | 1027 | /*!*******************************************************!*\ 1028 | !*** ./columns/action/internal/InlineInputElement.js ***! 1029 | \*******************************************************/ 1030 | 1031 | /*!*******************************************************!*\ 1032 | !*** ./list-grid/layout-map/internal/multi-layout.js ***! 1033 | \*******************************************************/ 1034 | 1035 | /*!********************************************************!*\ 1036 | !*** ./columns/action/internal/input-value-handler.js ***! 1037 | \********************************************************/ 1038 | 1039 | /*!*********************************************************!*\ 1040 | !*** ./columns/message/internal/ErrorMessageElement.js ***! 1041 | \*********************************************************/ 1042 | 1043 | /*!***********************************************************!*\ 1044 | !*** ./columns/message/internal/WarningMessageElement.js ***! 1045 | \***********************************************************/ 1046 | 1047 | /*!************************************************************!*\ 1048 | !*** ./columns/action/internal/SmallDialogInputElement.js ***! 1049 | \************************************************************/ 1050 | 1051 | /*!*************************************************************!*\ 1052 | !*** ../src/js/columns/message/internal/MessageElement.css ***! 1053 | \*************************************************************/ 1054 | 1055 | /*!***************************************************************!*\ 1056 | !*** ../src/js/columns/action/internal/InlineMenuElement.css ***! 1057 | \***************************************************************/ 1058 | 1059 | /*!***************************************************************!*\ 1060 | !*** ./list-grid/layout-map/internal/simple-header-layout.js ***! 1061 | \***************************************************************/ 1062 | 1063 | /*!****************************************************************!*\ 1064 | !*** ../src/js/columns/action/internal/InlineInputElement.css ***! 1065 | \****************************************************************/ 1066 | 1067 | /*!******************************************************************!*\ 1068 | !*** ../src/js/columns/message/internal/ErrorMessageElement.css ***! 1069 | \******************************************************************/ 1070 | 1071 | /*!********************************************************************!*\ 1072 | !*** ../src/js/columns/message/internal/WarningMessageElement.css ***! 1073 | \********************************************************************/ 1074 | 1075 | /*!*********************************************************************!*\ 1076 | !*** ../src/js/columns/action/internal/SmallDialogInputElement.css ***! 1077 | \*********************************************************************/ 1078 | 1079 | /*!*****************************************************************************!*\ 1080 | !*** ../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! 1081 | \*****************************************************************************/ 1082 | 1083 | /*!**********************************************************************************************************************************!*\ 1084 | !*** ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/postcss-loader/src??ref--5-2!../src/js/internal/style.css ***! 1085 | \**********************************************************************************************************************************/ 1086 | 1087 | /*!***************************************************************************************************************************************************!*\ 1088 | !*** ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/postcss-loader/src??ref--5-2!../src/js/tooltip/internal/TooltipElement.css ***! 1089 | \***************************************************************************************************************************************************/ 1090 | 1091 | /*!***********************************************************************************************************************************************************!*\ 1092 | !*** ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/postcss-loader/src??ref--5-2!../src/js/columns/message/internal/MessageElement.css ***! 1093 | \***********************************************************************************************************************************************************/ 1094 | 1095 | /*!*************************************************************************************************************************************************************!*\ 1096 | !*** ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/postcss-loader/src??ref--5-2!../src/js/columns/action/internal/InlineMenuElement.css ***! 1097 | \*************************************************************************************************************************************************************/ 1098 | 1099 | /*!**************************************************************************************************************************************************************!*\ 1100 | !*** ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/postcss-loader/src??ref--5-2!../src/js/columns/action/internal/InlineInputElement.css ***! 1101 | \**************************************************************************************************************************************************************/ 1102 | 1103 | /*!****************************************************************************************************************************************************************!*\ 1104 | !*** ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/postcss-loader/src??ref--5-2!../src/js/columns/message/internal/ErrorMessageElement.css ***! 1105 | \****************************************************************************************************************************************************************/ 1106 | 1107 | /*!******************************************************************************************************************************************************************!*\ 1108 | !*** ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/postcss-loader/src??ref--5-2!../src/js/columns/message/internal/WarningMessageElement.css ***! 1109 | \******************************************************************************************************************************************************************/ 1110 | 1111 | /*!*******************************************************************************************************************************************************************!*\ 1112 | !*** ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/postcss-loader/src??ref--5-2!../src/js/columns/action/internal/SmallDialogInputElement.css ***! 1113 | \*******************************************************************************************************************************************************************/ 1114 | -------------------------------------------------------------------------------- /inst/htmlwidgets/cheetah_grid.yaml: -------------------------------------------------------------------------------- 1 | # (uncomment to add a dependency) 2 | dependencies: 3 | - name: 'cheetah-grid' 4 | version: '1.16.0' 5 | src: 'htmlwidgets/cheetah-grid/dist' 6 | script: 'cheetahGrid.es5.min.js' 7 | stylesheet: 8 | -------------------------------------------------------------------------------- /man/add_cell_message.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/add_cell_message.R 3 | \name{add_cell_message} 4 | \alias{add_cell_message} 5 | \title{Create a JavaScript cell message function for cheetahR widgets} 6 | \usage{ 7 | add_cell_message(type = c("error", "warning", "info"), message = "message") 8 | } 9 | \arguments{ 10 | \item{type}{A string that specifies the type of message. 11 | One of \code{"error"}, \code{"warning"}, or \code{"info"}. Default is \code{"error"}.} 12 | 13 | \item{message}{A string or JS expression. If it contains \code{rec.}, \verb{?}, \code{:}, 14 | or a trailing \verb{;}, it is treated as raw JS (no additional quoting). 15 | Otherwise, it is escaped and wrapped in single quotes.} 16 | } 17 | \value{ 18 | A \code{htmlwidgets::JS} object containing a JavaScript function definition: 19 | 20 | \if{html}{\out{
}}\preformatted{function(rec) \{ 21 | return \{ 22 | type: "", 23 | message: 24 | \}; 25 | \} 26 | }\if{html}{\out{
}} 27 | 28 | Use this within \code{column_def()} for cell validation 29 | } 30 | \description{ 31 | Generates a JS function (wrapped with \code{htmlwidgets::JS}) that, 32 | given a record (\code{rec}), returns an object with \code{type} and \code{message}. 33 | } 34 | \examples{ 35 | set.seed(123) 36 | iris_rows <- sample(nrow(iris), 10) 37 | data <- iris[iris_rows, ] 38 | 39 | # Simple warning 40 | cheetah( 41 | data, 42 | columns = list( 43 | Species = column_def( 44 | message = add_cell_message(type = "info", message = "Ok") 45 | ) 46 | ) 47 | ) 48 | 49 | # Conditional error using `js_ifelse()` 50 | cheetah( 51 | data, 52 | columns = list( 53 | Species = column_def( 54 | message = add_cell_message( 55 | message = js_ifelse(Species == "setosa", "", "Invalid") 56 | ) 57 | ) 58 | ) 59 | ) 60 | 61 | # Directly using a JS expression as string 62 | cheetah( 63 | data, 64 | columns = list( 65 | Sepal.Width = column_def( 66 | style = list(textAlign = "left"), 67 | message = add_cell_message( 68 | type = "warning", 69 | message = "rec['Sepal.Width'] <= 3 ? 'NarrowSepal' : 'WideSepal';" 70 | ) 71 | ) 72 | ) 73 | ) 74 | 75 | } 76 | -------------------------------------------------------------------------------- /man/cheetah-shiny.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/cheetah.R 3 | \name{cheetah-shiny} 4 | \alias{cheetah-shiny} 5 | \alias{cheetahOutput} 6 | \alias{renderCheetah} 7 | \title{Shiny bindings for cheetah} 8 | \usage{ 9 | cheetahOutput(outputId, width = "100\%", height = "400px") 10 | 11 | renderCheetah(expr, env = parent.frame(), quoted = FALSE) 12 | } 13 | \arguments{ 14 | \item{outputId}{output variable to read from} 15 | 16 | \item{width, height}{Must be a valid CSS unit (like \code{'100\%'}, 17 | \code{'400px'}, \code{'auto'}) or a number, which will be coerced to a 18 | string and have \code{'px'} appended.} 19 | 20 | \item{expr}{An expression that generates a cheetah} 21 | 22 | \item{env}{The environment in which to evaluate \code{expr}.} 23 | 24 | \item{quoted}{Is \code{expr} a quoted expression (with \code{quote()})? This 25 | is useful if you want to save an expression in a variable.} 26 | } 27 | \value{ 28 | \code{cheetahOutput} returns a Shiny output function that can be used in the UI definition. 29 | \code{renderCheetah} returns a Shiny render function that can be used in the server definition. 30 | } 31 | \description{ 32 | Output and render functions for using cheetah within Shiny 33 | applications and interactive Rmd documents. 34 | } 35 | -------------------------------------------------------------------------------- /man/cheetah.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/cheetah.R 3 | \name{cheetah} 4 | \alias{cheetah} 5 | \title{Create a Cheetah Grid widget} 6 | \usage{ 7 | cheetah( 8 | data, 9 | columns = NULL, 10 | column_group = NULL, 11 | width = NULL, 12 | height = NULL, 13 | elementId = NULL, 14 | rownames = TRUE, 15 | search = c("disabled", "exact", "contains"), 16 | sortable = TRUE 17 | ) 18 | } 19 | \arguments{ 20 | \item{data}{A data frame or matrix to display} 21 | 22 | \item{columns}{A list of column definitions. Each column can be customized using 23 | \code{column_def()}.} 24 | 25 | \item{column_group}{A list of column groups. Each group can be customized using} 26 | 27 | \item{width}{Width of the widget} 28 | 29 | \item{height}{Height of the widget} 30 | 31 | \item{elementId}{The element ID for the widget} 32 | 33 | \item{rownames}{Logical. Whether to show rownames. Defaults to TRUE.} 34 | 35 | \item{search}{Whether to enable a search field on top of the table. 36 | Default to \code{disabled}. Use \code{exact} for exact matching 37 | or \code{contains} to get larger matches.} 38 | 39 | \item{sortable}{Logical. Whether to enable sorting on all columns. Defaults to TRUE.} 40 | } 41 | \value{ 42 | An HTML widget object of class 'cheetah' that can be: 43 | \itemize{ 44 | \item Rendered in R Markdown documents 45 | \item Used in Shiny applications 46 | \item Displayed in R interactive sessions 47 | } 48 | The widget renders as an HTML table with all specified customizations. 49 | } 50 | \description{ 51 | Creates a high-performance table widget using Cheetah Grid. 52 | } 53 | -------------------------------------------------------------------------------- /man/column_def.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/cheetah_utils.R 3 | \name{column_def} 4 | \alias{column_def} 5 | \title{Column definition utility} 6 | \usage{ 7 | column_def( 8 | name = NULL, 9 | width = NULL, 10 | min_width = NULL, 11 | max_width = NULL, 12 | column_type = NULL, 13 | action = NULL, 14 | menu_options = NULL, 15 | style = NULL, 16 | message = NULL, 17 | sort = FALSE 18 | ) 19 | } 20 | \arguments{ 21 | \item{name}{Custom name.} 22 | 23 | \item{width}{Column width.} 24 | 25 | \item{min_width}{Column minimal width.} 26 | 27 | \item{max_width}{Column max width.} 28 | 29 | \item{column_type}{Column type. By default, the column type is inferred from the data type of the column. 30 | There are 7 possible options: 31 | \itemize{ 32 | \item \code{"text"} for text columns. 33 | \item \code{"number"} for numeric columns. 34 | \item \code{"check"} for check columns. 35 | \item \code{"image"} for image columns. 36 | \item \code{"radio"} for radio columns. 37 | \item \code{"multilinetext"} for multiline text columns. 38 | \item \code{"menu"} for menu selection columns. If \code{column_type == "menu"}, 39 | action parameter must be set to "inline_menu" and menu_options must be provided. 40 | Note: Works efficiently only in shiny. 41 | }} 42 | 43 | \item{action}{The action property defines column actions. Select 44 | the appropriate Action class for the column type. 45 | \itemize{ 46 | \item \code{"input"} for input action columns. 47 | \item \code{"check"} for check action columns. 48 | \item \code{"radio"} for radio action columns. 49 | \item \code{"inline_menu"} for menu selection columns. 50 | }} 51 | 52 | \item{menu_options}{A list of menu options when using \code{column_type = "menu"}. 53 | Each option should be a list with \code{value} and \code{label} elements. 54 | The menu options must be a list of lists, each containing a \code{value} 55 | and \code{label} element. 56 | The \code{label} element is the label that will be displayed in the menu.} 57 | 58 | \item{style}{Column style.} 59 | 60 | \item{message}{Cell message. Expect a \code{\link[htmlwidgets:JS]{htmlwidgets::JS()}} function that 61 | takes \code{rec} as argument. It must return an object with two properties: \code{type} for the message 62 | type (\code{"info"}, \code{"warning"}, \code{"error"}) and the \code{message} that holds the text to display. 63 | The latter can leverage a JavaScript ternary operator involving \verb{rec.} (\code{COLNAME} being the name 64 | of the column for which we define the message) to check whether the predicate function is TRUE. You can also 65 | use \code{add_cell_message()} to generated the expected JS expression. 66 | See details for example of usage.} 67 | 68 | \item{sort}{Whether to sort the column. Default to FALSE. May also be 69 | a JS callback to create custom logic (does not work yet).} 70 | } 71 | \value{ 72 | A list of column options to pass to the JavaScript API. 73 | } 74 | \description{ 75 | Needed by \link{cheetah} to customize 76 | columns individually. 77 | } 78 | \details{ 79 | \subsection{Cell messages}{ 80 | 81 | When you write a message, you can pass a function like so: 82 | 83 | \if{html}{\out{
}}\preformatted{ = column_def( 84 | action = "input", 85 | message = JS( 86 | "function(rec) \{ 87 | return \{ 88 | //info message 89 | type: 'info', 90 | message: rec. ? null : 'Please check.', 91 | \} 92 | \}") 93 | ) 94 | }\if{html}{\out{
}} 95 | 96 | Or use \code{add_cell_message()}: 97 | 98 | \if{html}{\out{
}}\preformatted{ = column_def( 99 | action = "input", 100 | message = add_cell_message(type = "info", message = "Ok") 101 | ) 102 | }\if{html}{\out{
}} 103 | 104 | See \code{\link[=add_cell_message]{add_cell_message()}} for more details. 105 | } 106 | } 107 | \examples{ 108 | cheetah( 109 | iris, 110 | columns = list( 111 | Sepal.Length = column_def(name = "Length"), 112 | Sepal.Width = column_def(name = "Width"), 113 | Petal.Length = column_def(name = "Length"), 114 | Petal.Width = column_def(name = "Width") 115 | ) 116 | ) 117 | 118 | } 119 | -------------------------------------------------------------------------------- /man/column_group.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/cheetah_utils.R 3 | \name{column_group} 4 | \alias{column_group} 5 | \title{Column group definitions} 6 | \usage{ 7 | column_group(name = NULL, columns, header_style = NULL) 8 | } 9 | \arguments{ 10 | \item{name}{Character string. The name to display for the column group.} 11 | 12 | \item{columns}{Character vector. The names of the columns to include in this group.} 13 | 14 | \item{header_style}{Named list of possibleCSS style properties to apply to the column group header.} 15 | } 16 | \value{ 17 | A list containing the column group definition. 18 | } 19 | \description{ 20 | Creates a column group definition for grouping columns in a Cheetah Grid widget. 21 | } 22 | \examples{ 23 | cheetah( 24 | iris, 25 | columns = list( 26 | Sepal.Length = column_def(name = "Length"), 27 | Sepal.Width = column_def(name = "Width"), 28 | Petal.Length = column_def(name = "Length"), 29 | Petal.Width = column_def(name = "Width") 30 | ), 31 | column_group = list( 32 | column_group(name = "Sepal", columns = c("Sepal.Length", "Sepal.Width")), 33 | column_group(name = "Petal", columns = c("Petal.Length", "Petal.Width")) 34 | ) 35 | ) 36 | 37 | } 38 | -------------------------------------------------------------------------------- /man/figures/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cynkra/cheetahR/6e3a7cda433776dbc59270843f56e5e29a2f8a66/man/figures/image1.png -------------------------------------------------------------------------------- /man/figures/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cynkra/cheetahR/6e3a7cda433776dbc59270843f56e5e29a2f8a66/man/figures/image2.png -------------------------------------------------------------------------------- /man/figures/image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cynkra/cheetahR/6e3a7cda433776dbc59270843f56e5e29a2f8a66/man/figures/image3.png -------------------------------------------------------------------------------- /man/js_ifelse.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/js_ifelse.R 3 | \name{js_ifelse} 4 | \alias{js_ifelse} 5 | \title{Convert an R logical expression into a JS ternary expression} 6 | \usage{ 7 | js_ifelse(condition, if_true = "", if_false = "") 8 | } 9 | \arguments{ 10 | \item{condition}{An R logical expression (supports \%in\% / \%notin\% / grepl() / comparisons / & |)} 11 | 12 | \item{if_true}{String to return when the condition is TRUE. Default is an empty string, which interprets as \code{null} in JS.} 13 | 14 | \item{if_false}{String to return when the condition is FALSE. Default is an empty string, which interprets as \code{null} in JS.} 15 | } 16 | \value{ 17 | A single character string containing a JavaScript ternary expression. 18 | } 19 | \description{ 20 | Convert an R logical expression into a JS ternary expression 21 | } 22 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cheetahr", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "cheetahr", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "cheetah-grid": "^1.16.0" 13 | }, 14 | "devDependencies": { 15 | "webpack": "^5.97.1", 16 | "webpack-cli": "^6.0.1", 17 | "webpack-merge": "^6.0.1" 18 | } 19 | }, 20 | "node_modules/@discoveryjs/json-ext": { 21 | "version": "0.6.3", 22 | "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.6.3.tgz", 23 | "integrity": "sha512-4B4OijXeVNOPZlYA2oEwWOTkzyltLao+xbotHQeqN++Rv27Y6s818+n2Qkp8q+Fxhn0t/5lA5X1Mxktud8eayQ==", 24 | "dev": true, 25 | "engines": { 26 | "node": ">=14.17.0" 27 | } 28 | }, 29 | "node_modules/@jridgewell/gen-mapping": { 30 | "version": "0.3.8", 31 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", 32 | "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", 33 | "dev": true, 34 | "dependencies": { 35 | "@jridgewell/set-array": "^1.2.1", 36 | "@jridgewell/sourcemap-codec": "^1.4.10", 37 | "@jridgewell/trace-mapping": "^0.3.24" 38 | }, 39 | "engines": { 40 | "node": ">=6.0.0" 41 | } 42 | }, 43 | "node_modules/@jridgewell/resolve-uri": { 44 | "version": "3.1.2", 45 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 46 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 47 | "dev": true, 48 | "engines": { 49 | "node": ">=6.0.0" 50 | } 51 | }, 52 | "node_modules/@jridgewell/set-array": { 53 | "version": "1.2.1", 54 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", 55 | "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 56 | "dev": true, 57 | "engines": { 58 | "node": ">=6.0.0" 59 | } 60 | }, 61 | "node_modules/@jridgewell/source-map": { 62 | "version": "0.3.6", 63 | "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", 64 | "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", 65 | "dev": true, 66 | "dependencies": { 67 | "@jridgewell/gen-mapping": "^0.3.5", 68 | "@jridgewell/trace-mapping": "^0.3.25" 69 | } 70 | }, 71 | "node_modules/@jridgewell/sourcemap-codec": { 72 | "version": "1.5.0", 73 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 74 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 75 | "dev": true 76 | }, 77 | "node_modules/@jridgewell/trace-mapping": { 78 | "version": "0.3.25", 79 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 80 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 81 | "dev": true, 82 | "dependencies": { 83 | "@jridgewell/resolve-uri": "^3.1.0", 84 | "@jridgewell/sourcemap-codec": "^1.4.14" 85 | } 86 | }, 87 | "node_modules/@types/eslint": { 88 | "version": "9.6.1", 89 | "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", 90 | "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", 91 | "dev": true, 92 | "dependencies": { 93 | "@types/estree": "*", 94 | "@types/json-schema": "*" 95 | } 96 | }, 97 | "node_modules/@types/eslint-scope": { 98 | "version": "3.7.7", 99 | "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", 100 | "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", 101 | "dev": true, 102 | "dependencies": { 103 | "@types/eslint": "*", 104 | "@types/estree": "*" 105 | } 106 | }, 107 | "node_modules/@types/estree": { 108 | "version": "1.0.6", 109 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", 110 | "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", 111 | "dev": true 112 | }, 113 | "node_modules/@types/json-schema": { 114 | "version": "7.0.15", 115 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", 116 | "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", 117 | "dev": true 118 | }, 119 | "node_modules/@types/node": { 120 | "version": "22.12.0", 121 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz", 122 | "integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==", 123 | "dev": true, 124 | "dependencies": { 125 | "undici-types": "~6.20.0" 126 | } 127 | }, 128 | "node_modules/@webassemblyjs/ast": { 129 | "version": "1.14.1", 130 | "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", 131 | "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", 132 | "dev": true, 133 | "dependencies": { 134 | "@webassemblyjs/helper-numbers": "1.13.2", 135 | "@webassemblyjs/helper-wasm-bytecode": "1.13.2" 136 | } 137 | }, 138 | "node_modules/@webassemblyjs/floating-point-hex-parser": { 139 | "version": "1.13.2", 140 | "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", 141 | "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", 142 | "dev": true 143 | }, 144 | "node_modules/@webassemblyjs/helper-api-error": { 145 | "version": "1.13.2", 146 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", 147 | "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", 148 | "dev": true 149 | }, 150 | "node_modules/@webassemblyjs/helper-buffer": { 151 | "version": "1.14.1", 152 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", 153 | "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", 154 | "dev": true 155 | }, 156 | "node_modules/@webassemblyjs/helper-numbers": { 157 | "version": "1.13.2", 158 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", 159 | "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", 160 | "dev": true, 161 | "dependencies": { 162 | "@webassemblyjs/floating-point-hex-parser": "1.13.2", 163 | "@webassemblyjs/helper-api-error": "1.13.2", 164 | "@xtuc/long": "4.2.2" 165 | } 166 | }, 167 | "node_modules/@webassemblyjs/helper-wasm-bytecode": { 168 | "version": "1.13.2", 169 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", 170 | "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", 171 | "dev": true 172 | }, 173 | "node_modules/@webassemblyjs/helper-wasm-section": { 174 | "version": "1.14.1", 175 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", 176 | "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", 177 | "dev": true, 178 | "dependencies": { 179 | "@webassemblyjs/ast": "1.14.1", 180 | "@webassemblyjs/helper-buffer": "1.14.1", 181 | "@webassemblyjs/helper-wasm-bytecode": "1.13.2", 182 | "@webassemblyjs/wasm-gen": "1.14.1" 183 | } 184 | }, 185 | "node_modules/@webassemblyjs/ieee754": { 186 | "version": "1.13.2", 187 | "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", 188 | "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", 189 | "dev": true, 190 | "dependencies": { 191 | "@xtuc/ieee754": "^1.2.0" 192 | } 193 | }, 194 | "node_modules/@webassemblyjs/leb128": { 195 | "version": "1.13.2", 196 | "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", 197 | "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", 198 | "dev": true, 199 | "dependencies": { 200 | "@xtuc/long": "4.2.2" 201 | } 202 | }, 203 | "node_modules/@webassemblyjs/utf8": { 204 | "version": "1.13.2", 205 | "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", 206 | "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", 207 | "dev": true 208 | }, 209 | "node_modules/@webassemblyjs/wasm-edit": { 210 | "version": "1.14.1", 211 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", 212 | "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", 213 | "dev": true, 214 | "dependencies": { 215 | "@webassemblyjs/ast": "1.14.1", 216 | "@webassemblyjs/helper-buffer": "1.14.1", 217 | "@webassemblyjs/helper-wasm-bytecode": "1.13.2", 218 | "@webassemblyjs/helper-wasm-section": "1.14.1", 219 | "@webassemblyjs/wasm-gen": "1.14.1", 220 | "@webassemblyjs/wasm-opt": "1.14.1", 221 | "@webassemblyjs/wasm-parser": "1.14.1", 222 | "@webassemblyjs/wast-printer": "1.14.1" 223 | } 224 | }, 225 | "node_modules/@webassemblyjs/wasm-gen": { 226 | "version": "1.14.1", 227 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", 228 | "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", 229 | "dev": true, 230 | "dependencies": { 231 | "@webassemblyjs/ast": "1.14.1", 232 | "@webassemblyjs/helper-wasm-bytecode": "1.13.2", 233 | "@webassemblyjs/ieee754": "1.13.2", 234 | "@webassemblyjs/leb128": "1.13.2", 235 | "@webassemblyjs/utf8": "1.13.2" 236 | } 237 | }, 238 | "node_modules/@webassemblyjs/wasm-opt": { 239 | "version": "1.14.1", 240 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", 241 | "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", 242 | "dev": true, 243 | "dependencies": { 244 | "@webassemblyjs/ast": "1.14.1", 245 | "@webassemblyjs/helper-buffer": "1.14.1", 246 | "@webassemblyjs/wasm-gen": "1.14.1", 247 | "@webassemblyjs/wasm-parser": "1.14.1" 248 | } 249 | }, 250 | "node_modules/@webassemblyjs/wasm-parser": { 251 | "version": "1.14.1", 252 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", 253 | "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", 254 | "dev": true, 255 | "dependencies": { 256 | "@webassemblyjs/ast": "1.14.1", 257 | "@webassemblyjs/helper-api-error": "1.13.2", 258 | "@webassemblyjs/helper-wasm-bytecode": "1.13.2", 259 | "@webassemblyjs/ieee754": "1.13.2", 260 | "@webassemblyjs/leb128": "1.13.2", 261 | "@webassemblyjs/utf8": "1.13.2" 262 | } 263 | }, 264 | "node_modules/@webassemblyjs/wast-printer": { 265 | "version": "1.14.1", 266 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", 267 | "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", 268 | "dev": true, 269 | "dependencies": { 270 | "@webassemblyjs/ast": "1.14.1", 271 | "@xtuc/long": "4.2.2" 272 | } 273 | }, 274 | "node_modules/@webpack-cli/configtest": { 275 | "version": "3.0.1", 276 | "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-3.0.1.tgz", 277 | "integrity": "sha512-u8d0pJ5YFgneF/GuvEiDA61Tf1VDomHHYMjv/wc9XzYj7nopltpG96nXN5dJRstxZhcNpV1g+nT6CydO7pHbjA==", 278 | "dev": true, 279 | "engines": { 280 | "node": ">=18.12.0" 281 | }, 282 | "peerDependencies": { 283 | "webpack": "^5.82.0", 284 | "webpack-cli": "6.x.x" 285 | } 286 | }, 287 | "node_modules/@webpack-cli/info": { 288 | "version": "3.0.1", 289 | "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-3.0.1.tgz", 290 | "integrity": "sha512-coEmDzc2u/ffMvuW9aCjoRzNSPDl/XLuhPdlFRpT9tZHmJ/039az33CE7uH+8s0uL1j5ZNtfdv0HkfaKRBGJsQ==", 291 | "dev": true, 292 | "engines": { 293 | "node": ">=18.12.0" 294 | }, 295 | "peerDependencies": { 296 | "webpack": "^5.82.0", 297 | "webpack-cli": "6.x.x" 298 | } 299 | }, 300 | "node_modules/@webpack-cli/serve": { 301 | "version": "3.0.1", 302 | "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-3.0.1.tgz", 303 | "integrity": "sha512-sbgw03xQaCLiT6gcY/6u3qBDn01CWw/nbaXl3gTdTFuJJ75Gffv3E3DBpgvY2fkkrdS1fpjaXNOmJlnbtKauKg==", 304 | "dev": true, 305 | "engines": { 306 | "node": ">=18.12.0" 307 | }, 308 | "peerDependencies": { 309 | "webpack": "^5.82.0", 310 | "webpack-cli": "6.x.x" 311 | }, 312 | "peerDependenciesMeta": { 313 | "webpack-dev-server": { 314 | "optional": true 315 | } 316 | } 317 | }, 318 | "node_modules/@xtuc/ieee754": { 319 | "version": "1.2.0", 320 | "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", 321 | "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", 322 | "dev": true 323 | }, 324 | "node_modules/@xtuc/long": { 325 | "version": "4.2.2", 326 | "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", 327 | "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", 328 | "dev": true 329 | }, 330 | "node_modules/acorn": { 331 | "version": "8.14.0", 332 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", 333 | "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", 334 | "dev": true, 335 | "bin": { 336 | "acorn": "bin/acorn" 337 | }, 338 | "engines": { 339 | "node": ">=0.4.0" 340 | } 341 | }, 342 | "node_modules/ajv": { 343 | "version": "6.12.6", 344 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 345 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 346 | "dev": true, 347 | "dependencies": { 348 | "fast-deep-equal": "^3.1.1", 349 | "fast-json-stable-stringify": "^2.0.0", 350 | "json-schema-traverse": "^0.4.1", 351 | "uri-js": "^4.2.2" 352 | }, 353 | "funding": { 354 | "type": "github", 355 | "url": "https://github.com/sponsors/epoberezkin" 356 | } 357 | }, 358 | "node_modules/ajv-formats": { 359 | "version": "2.1.1", 360 | "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", 361 | "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", 362 | "dev": true, 363 | "dependencies": { 364 | "ajv": "^8.0.0" 365 | }, 366 | "peerDependencies": { 367 | "ajv": "^8.0.0" 368 | }, 369 | "peerDependenciesMeta": { 370 | "ajv": { 371 | "optional": true 372 | } 373 | } 374 | }, 375 | "node_modules/ajv-formats/node_modules/ajv": { 376 | "version": "8.17.1", 377 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", 378 | "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", 379 | "dev": true, 380 | "dependencies": { 381 | "fast-deep-equal": "^3.1.3", 382 | "fast-uri": "^3.0.1", 383 | "json-schema-traverse": "^1.0.0", 384 | "require-from-string": "^2.0.2" 385 | }, 386 | "funding": { 387 | "type": "github", 388 | "url": "https://github.com/sponsors/epoberezkin" 389 | } 390 | }, 391 | "node_modules/ajv-formats/node_modules/json-schema-traverse": { 392 | "version": "1.0.0", 393 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", 394 | "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", 395 | "dev": true 396 | }, 397 | "node_modules/ajv-keywords": { 398 | "version": "3.5.2", 399 | "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", 400 | "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", 401 | "dev": true, 402 | "peerDependencies": { 403 | "ajv": "^6.9.1" 404 | } 405 | }, 406 | "node_modules/browserslist": { 407 | "version": "4.24.4", 408 | "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", 409 | "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", 410 | "dev": true, 411 | "funding": [ 412 | { 413 | "type": "opencollective", 414 | "url": "https://opencollective.com/browserslist" 415 | }, 416 | { 417 | "type": "tidelift", 418 | "url": "https://tidelift.com/funding/github/npm/browserslist" 419 | }, 420 | { 421 | "type": "github", 422 | "url": "https://github.com/sponsors/ai" 423 | } 424 | ], 425 | "dependencies": { 426 | "caniuse-lite": "^1.0.30001688", 427 | "electron-to-chromium": "^1.5.73", 428 | "node-releases": "^2.0.19", 429 | "update-browserslist-db": "^1.1.1" 430 | }, 431 | "bin": { 432 | "browserslist": "cli.js" 433 | }, 434 | "engines": { 435 | "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" 436 | } 437 | }, 438 | "node_modules/buffer-from": { 439 | "version": "1.1.2", 440 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 441 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 442 | "dev": true 443 | }, 444 | "node_modules/caniuse-lite": { 445 | "version": "1.0.30001696", 446 | "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001696.tgz", 447 | "integrity": "sha512-pDCPkvzfa39ehJtJ+OwGT/2yvT2SbjfHhiIW2LWOAcMQ7BzwxT/XuyUp4OTOd0XFWA6BKw0JalnBHgSi5DGJBQ==", 448 | "dev": true, 449 | "funding": [ 450 | { 451 | "type": "opencollective", 452 | "url": "https://opencollective.com/browserslist" 453 | }, 454 | { 455 | "type": "tidelift", 456 | "url": "https://tidelift.com/funding/github/npm/caniuse-lite" 457 | }, 458 | { 459 | "type": "github", 460 | "url": "https://github.com/sponsors/ai" 461 | } 462 | ] 463 | }, 464 | "node_modules/cheetah-grid": { 465 | "version": "1.16.0", 466 | "resolved": "https://registry.npmjs.org/cheetah-grid/-/cheetah-grid-1.16.0.tgz", 467 | "integrity": "sha512-Kz0rAo5qZOVwLwbZEhPQK6YExIuoS5oPxWbbXy9MeP3wXHLQTPkGrDwvbytKYSFDPaAsJHdimsTacm9pJ5Zw5Q==" 468 | }, 469 | "node_modules/chrome-trace-event": { 470 | "version": "1.0.4", 471 | "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", 472 | "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", 473 | "dev": true, 474 | "engines": { 475 | "node": ">=6.0" 476 | } 477 | }, 478 | "node_modules/clone-deep": { 479 | "version": "4.0.1", 480 | "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", 481 | "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", 482 | "dev": true, 483 | "dependencies": { 484 | "is-plain-object": "^2.0.4", 485 | "kind-of": "^6.0.2", 486 | "shallow-clone": "^3.0.0" 487 | }, 488 | "engines": { 489 | "node": ">=6" 490 | } 491 | }, 492 | "node_modules/colorette": { 493 | "version": "2.0.20", 494 | "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", 495 | "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", 496 | "dev": true 497 | }, 498 | "node_modules/commander": { 499 | "version": "2.20.3", 500 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 501 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 502 | "dev": true 503 | }, 504 | "node_modules/cross-spawn": { 505 | "version": "7.0.6", 506 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", 507 | "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", 508 | "dev": true, 509 | "dependencies": { 510 | "path-key": "^3.1.0", 511 | "shebang-command": "^2.0.0", 512 | "which": "^2.0.1" 513 | }, 514 | "engines": { 515 | "node": ">= 8" 516 | } 517 | }, 518 | "node_modules/electron-to-chromium": { 519 | "version": "1.5.88", 520 | "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.88.tgz", 521 | "integrity": "sha512-K3C2qf1o+bGzbilTDCTBhTQcMS9KW60yTAaTeeXsfvQuTDDwlokLam/AdqlqcSy9u4UainDgsHV23ksXAOgamw==", 522 | "dev": true 523 | }, 524 | "node_modules/enhanced-resolve": { 525 | "version": "5.18.0", 526 | "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.0.tgz", 527 | "integrity": "sha512-0/r0MySGYG8YqlayBZ6MuCfECmHFdJ5qyPh8s8wa5Hnm6SaFLSK1VYCbj+NKp090Nm1caZhD+QTnmxO7esYGyQ==", 528 | "dev": true, 529 | "dependencies": { 530 | "graceful-fs": "^4.2.4", 531 | "tapable": "^2.2.0" 532 | }, 533 | "engines": { 534 | "node": ">=10.13.0" 535 | } 536 | }, 537 | "node_modules/envinfo": { 538 | "version": "7.14.0", 539 | "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz", 540 | "integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==", 541 | "dev": true, 542 | "bin": { 543 | "envinfo": "dist/cli.js" 544 | }, 545 | "engines": { 546 | "node": ">=4" 547 | } 548 | }, 549 | "node_modules/es-module-lexer": { 550 | "version": "1.6.0", 551 | "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.6.0.tgz", 552 | "integrity": "sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==", 553 | "dev": true 554 | }, 555 | "node_modules/escalade": { 556 | "version": "3.2.0", 557 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", 558 | "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", 559 | "dev": true, 560 | "engines": { 561 | "node": ">=6" 562 | } 563 | }, 564 | "node_modules/eslint-scope": { 565 | "version": "5.1.1", 566 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 567 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 568 | "dev": true, 569 | "dependencies": { 570 | "esrecurse": "^4.3.0", 571 | "estraverse": "^4.1.1" 572 | }, 573 | "engines": { 574 | "node": ">=8.0.0" 575 | } 576 | }, 577 | "node_modules/esrecurse": { 578 | "version": "4.3.0", 579 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 580 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 581 | "dev": true, 582 | "dependencies": { 583 | "estraverse": "^5.2.0" 584 | }, 585 | "engines": { 586 | "node": ">=4.0" 587 | } 588 | }, 589 | "node_modules/esrecurse/node_modules/estraverse": { 590 | "version": "5.3.0", 591 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 592 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 593 | "dev": true, 594 | "engines": { 595 | "node": ">=4.0" 596 | } 597 | }, 598 | "node_modules/estraverse": { 599 | "version": "4.3.0", 600 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 601 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 602 | "dev": true, 603 | "engines": { 604 | "node": ">=4.0" 605 | } 606 | }, 607 | "node_modules/events": { 608 | "version": "3.3.0", 609 | "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", 610 | "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", 611 | "dev": true, 612 | "engines": { 613 | "node": ">=0.8.x" 614 | } 615 | }, 616 | "node_modules/fast-deep-equal": { 617 | "version": "3.1.3", 618 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 619 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 620 | "dev": true 621 | }, 622 | "node_modules/fast-json-stable-stringify": { 623 | "version": "2.1.0", 624 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 625 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 626 | "dev": true 627 | }, 628 | "node_modules/fast-uri": { 629 | "version": "3.0.6", 630 | "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", 631 | "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", 632 | "dev": true, 633 | "funding": [ 634 | { 635 | "type": "github", 636 | "url": "https://github.com/sponsors/fastify" 637 | }, 638 | { 639 | "type": "opencollective", 640 | "url": "https://opencollective.com/fastify" 641 | } 642 | ] 643 | }, 644 | "node_modules/fastest-levenshtein": { 645 | "version": "1.0.16", 646 | "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", 647 | "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", 648 | "dev": true, 649 | "engines": { 650 | "node": ">= 4.9.1" 651 | } 652 | }, 653 | "node_modules/find-up": { 654 | "version": "4.1.0", 655 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", 656 | "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", 657 | "dev": true, 658 | "dependencies": { 659 | "locate-path": "^5.0.0", 660 | "path-exists": "^4.0.0" 661 | }, 662 | "engines": { 663 | "node": ">=8" 664 | } 665 | }, 666 | "node_modules/flat": { 667 | "version": "5.0.2", 668 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 669 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 670 | "dev": true, 671 | "bin": { 672 | "flat": "cli.js" 673 | } 674 | }, 675 | "node_modules/function-bind": { 676 | "version": "1.1.2", 677 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 678 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 679 | "dev": true, 680 | "funding": { 681 | "url": "https://github.com/sponsors/ljharb" 682 | } 683 | }, 684 | "node_modules/glob-to-regexp": { 685 | "version": "0.4.1", 686 | "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", 687 | "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", 688 | "dev": true 689 | }, 690 | "node_modules/graceful-fs": { 691 | "version": "4.2.11", 692 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 693 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", 694 | "dev": true 695 | }, 696 | "node_modules/has-flag": { 697 | "version": "4.0.0", 698 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 699 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 700 | "dev": true, 701 | "engines": { 702 | "node": ">=8" 703 | } 704 | }, 705 | "node_modules/hasown": { 706 | "version": "2.0.2", 707 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 708 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 709 | "dev": true, 710 | "dependencies": { 711 | "function-bind": "^1.1.2" 712 | }, 713 | "engines": { 714 | "node": ">= 0.4" 715 | } 716 | }, 717 | "node_modules/import-local": { 718 | "version": "3.2.0", 719 | "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", 720 | "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", 721 | "dev": true, 722 | "dependencies": { 723 | "pkg-dir": "^4.2.0", 724 | "resolve-cwd": "^3.0.0" 725 | }, 726 | "bin": { 727 | "import-local-fixture": "fixtures/cli.js" 728 | }, 729 | "engines": { 730 | "node": ">=8" 731 | }, 732 | "funding": { 733 | "url": "https://github.com/sponsors/sindresorhus" 734 | } 735 | }, 736 | "node_modules/interpret": { 737 | "version": "3.1.1", 738 | "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz", 739 | "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==", 740 | "dev": true, 741 | "engines": { 742 | "node": ">=10.13.0" 743 | } 744 | }, 745 | "node_modules/is-core-module": { 746 | "version": "2.16.1", 747 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", 748 | "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", 749 | "dev": true, 750 | "dependencies": { 751 | "hasown": "^2.0.2" 752 | }, 753 | "engines": { 754 | "node": ">= 0.4" 755 | }, 756 | "funding": { 757 | "url": "https://github.com/sponsors/ljharb" 758 | } 759 | }, 760 | "node_modules/is-plain-object": { 761 | "version": "2.0.4", 762 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", 763 | "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", 764 | "dev": true, 765 | "dependencies": { 766 | "isobject": "^3.0.1" 767 | }, 768 | "engines": { 769 | "node": ">=0.10.0" 770 | } 771 | }, 772 | "node_modules/isexe": { 773 | "version": "2.0.0", 774 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 775 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 776 | "dev": true 777 | }, 778 | "node_modules/isobject": { 779 | "version": "3.0.1", 780 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", 781 | "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", 782 | "dev": true, 783 | "engines": { 784 | "node": ">=0.10.0" 785 | } 786 | }, 787 | "node_modules/jest-worker": { 788 | "version": "27.5.1", 789 | "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", 790 | "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", 791 | "dev": true, 792 | "dependencies": { 793 | "@types/node": "*", 794 | "merge-stream": "^2.0.0", 795 | "supports-color": "^8.0.0" 796 | }, 797 | "engines": { 798 | "node": ">= 10.13.0" 799 | } 800 | }, 801 | "node_modules/json-parse-even-better-errors": { 802 | "version": "2.3.1", 803 | "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", 804 | "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", 805 | "dev": true 806 | }, 807 | "node_modules/json-schema-traverse": { 808 | "version": "0.4.1", 809 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 810 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 811 | "dev": true 812 | }, 813 | "node_modules/kind-of": { 814 | "version": "6.0.3", 815 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", 816 | "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", 817 | "dev": true, 818 | "engines": { 819 | "node": ">=0.10.0" 820 | } 821 | }, 822 | "node_modules/loader-runner": { 823 | "version": "4.3.0", 824 | "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", 825 | "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", 826 | "dev": true, 827 | "engines": { 828 | "node": ">=6.11.5" 829 | } 830 | }, 831 | "node_modules/locate-path": { 832 | "version": "5.0.0", 833 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", 834 | "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", 835 | "dev": true, 836 | "dependencies": { 837 | "p-locate": "^4.1.0" 838 | }, 839 | "engines": { 840 | "node": ">=8" 841 | } 842 | }, 843 | "node_modules/merge-stream": { 844 | "version": "2.0.0", 845 | "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", 846 | "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", 847 | "dev": true 848 | }, 849 | "node_modules/mime-db": { 850 | "version": "1.52.0", 851 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 852 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 853 | "dev": true, 854 | "engines": { 855 | "node": ">= 0.6" 856 | } 857 | }, 858 | "node_modules/mime-types": { 859 | "version": "2.1.35", 860 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 861 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 862 | "dev": true, 863 | "dependencies": { 864 | "mime-db": "1.52.0" 865 | }, 866 | "engines": { 867 | "node": ">= 0.6" 868 | } 869 | }, 870 | "node_modules/neo-async": { 871 | "version": "2.6.2", 872 | "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", 873 | "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", 874 | "dev": true 875 | }, 876 | "node_modules/node-releases": { 877 | "version": "2.0.19", 878 | "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", 879 | "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", 880 | "dev": true 881 | }, 882 | "node_modules/p-limit": { 883 | "version": "2.3.0", 884 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 885 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 886 | "dev": true, 887 | "dependencies": { 888 | "p-try": "^2.0.0" 889 | }, 890 | "engines": { 891 | "node": ">=6" 892 | }, 893 | "funding": { 894 | "url": "https://github.com/sponsors/sindresorhus" 895 | } 896 | }, 897 | "node_modules/p-locate": { 898 | "version": "4.1.0", 899 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", 900 | "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", 901 | "dev": true, 902 | "dependencies": { 903 | "p-limit": "^2.2.0" 904 | }, 905 | "engines": { 906 | "node": ">=8" 907 | } 908 | }, 909 | "node_modules/p-try": { 910 | "version": "2.2.0", 911 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 912 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 913 | "dev": true, 914 | "engines": { 915 | "node": ">=6" 916 | } 917 | }, 918 | "node_modules/path-exists": { 919 | "version": "4.0.0", 920 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 921 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 922 | "dev": true, 923 | "engines": { 924 | "node": ">=8" 925 | } 926 | }, 927 | "node_modules/path-key": { 928 | "version": "3.1.1", 929 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 930 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 931 | "dev": true, 932 | "engines": { 933 | "node": ">=8" 934 | } 935 | }, 936 | "node_modules/path-parse": { 937 | "version": "1.0.7", 938 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 939 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 940 | "dev": true 941 | }, 942 | "node_modules/picocolors": { 943 | "version": "1.1.1", 944 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 945 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 946 | "dev": true 947 | }, 948 | "node_modules/pkg-dir": { 949 | "version": "4.2.0", 950 | "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", 951 | "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", 952 | "dev": true, 953 | "dependencies": { 954 | "find-up": "^4.0.0" 955 | }, 956 | "engines": { 957 | "node": ">=8" 958 | } 959 | }, 960 | "node_modules/punycode": { 961 | "version": "2.3.1", 962 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 963 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 964 | "dev": true, 965 | "engines": { 966 | "node": ">=6" 967 | } 968 | }, 969 | "node_modules/randombytes": { 970 | "version": "2.1.0", 971 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 972 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 973 | "dev": true, 974 | "dependencies": { 975 | "safe-buffer": "^5.1.0" 976 | } 977 | }, 978 | "node_modules/rechoir": { 979 | "version": "0.8.0", 980 | "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", 981 | "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", 982 | "dev": true, 983 | "dependencies": { 984 | "resolve": "^1.20.0" 985 | }, 986 | "engines": { 987 | "node": ">= 10.13.0" 988 | } 989 | }, 990 | "node_modules/require-from-string": { 991 | "version": "2.0.2", 992 | "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", 993 | "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", 994 | "dev": true, 995 | "engines": { 996 | "node": ">=0.10.0" 997 | } 998 | }, 999 | "node_modules/resolve": { 1000 | "version": "1.22.10", 1001 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", 1002 | "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", 1003 | "dev": true, 1004 | "dependencies": { 1005 | "is-core-module": "^2.16.0", 1006 | "path-parse": "^1.0.7", 1007 | "supports-preserve-symlinks-flag": "^1.0.0" 1008 | }, 1009 | "bin": { 1010 | "resolve": "bin/resolve" 1011 | }, 1012 | "engines": { 1013 | "node": ">= 0.4" 1014 | }, 1015 | "funding": { 1016 | "url": "https://github.com/sponsors/ljharb" 1017 | } 1018 | }, 1019 | "node_modules/resolve-cwd": { 1020 | "version": "3.0.0", 1021 | "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", 1022 | "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", 1023 | "dev": true, 1024 | "dependencies": { 1025 | "resolve-from": "^5.0.0" 1026 | }, 1027 | "engines": { 1028 | "node": ">=8" 1029 | } 1030 | }, 1031 | "node_modules/resolve-from": { 1032 | "version": "5.0.0", 1033 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", 1034 | "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", 1035 | "dev": true, 1036 | "engines": { 1037 | "node": ">=8" 1038 | } 1039 | }, 1040 | "node_modules/safe-buffer": { 1041 | "version": "5.2.1", 1042 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1043 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1044 | "dev": true, 1045 | "funding": [ 1046 | { 1047 | "type": "github", 1048 | "url": "https://github.com/sponsors/feross" 1049 | }, 1050 | { 1051 | "type": "patreon", 1052 | "url": "https://www.patreon.com/feross" 1053 | }, 1054 | { 1055 | "type": "consulting", 1056 | "url": "https://feross.org/support" 1057 | } 1058 | ] 1059 | }, 1060 | "node_modules/schema-utils": { 1061 | "version": "3.3.0", 1062 | "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", 1063 | "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", 1064 | "dev": true, 1065 | "dependencies": { 1066 | "@types/json-schema": "^7.0.8", 1067 | "ajv": "^6.12.5", 1068 | "ajv-keywords": "^3.5.2" 1069 | }, 1070 | "engines": { 1071 | "node": ">= 10.13.0" 1072 | }, 1073 | "funding": { 1074 | "type": "opencollective", 1075 | "url": "https://opencollective.com/webpack" 1076 | } 1077 | }, 1078 | "node_modules/serialize-javascript": { 1079 | "version": "6.0.2", 1080 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", 1081 | "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", 1082 | "dev": true, 1083 | "dependencies": { 1084 | "randombytes": "^2.1.0" 1085 | } 1086 | }, 1087 | "node_modules/shallow-clone": { 1088 | "version": "3.0.1", 1089 | "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", 1090 | "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", 1091 | "dev": true, 1092 | "dependencies": { 1093 | "kind-of": "^6.0.2" 1094 | }, 1095 | "engines": { 1096 | "node": ">=8" 1097 | } 1098 | }, 1099 | "node_modules/shebang-command": { 1100 | "version": "2.0.0", 1101 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1102 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1103 | "dev": true, 1104 | "dependencies": { 1105 | "shebang-regex": "^3.0.0" 1106 | }, 1107 | "engines": { 1108 | "node": ">=8" 1109 | } 1110 | }, 1111 | "node_modules/shebang-regex": { 1112 | "version": "3.0.0", 1113 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1114 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1115 | "dev": true, 1116 | "engines": { 1117 | "node": ">=8" 1118 | } 1119 | }, 1120 | "node_modules/source-map": { 1121 | "version": "0.6.1", 1122 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1123 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1124 | "dev": true, 1125 | "engines": { 1126 | "node": ">=0.10.0" 1127 | } 1128 | }, 1129 | "node_modules/source-map-support": { 1130 | "version": "0.5.21", 1131 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", 1132 | "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", 1133 | "dev": true, 1134 | "dependencies": { 1135 | "buffer-from": "^1.0.0", 1136 | "source-map": "^0.6.0" 1137 | } 1138 | }, 1139 | "node_modules/supports-color": { 1140 | "version": "8.1.1", 1141 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1142 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1143 | "dev": true, 1144 | "dependencies": { 1145 | "has-flag": "^4.0.0" 1146 | }, 1147 | "engines": { 1148 | "node": ">=10" 1149 | }, 1150 | "funding": { 1151 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1152 | } 1153 | }, 1154 | "node_modules/supports-preserve-symlinks-flag": { 1155 | "version": "1.0.0", 1156 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1157 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1158 | "dev": true, 1159 | "engines": { 1160 | "node": ">= 0.4" 1161 | }, 1162 | "funding": { 1163 | "url": "https://github.com/sponsors/ljharb" 1164 | } 1165 | }, 1166 | "node_modules/tapable": { 1167 | "version": "2.2.1", 1168 | "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", 1169 | "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", 1170 | "dev": true, 1171 | "engines": { 1172 | "node": ">=6" 1173 | } 1174 | }, 1175 | "node_modules/terser": { 1176 | "version": "5.37.0", 1177 | "resolved": "https://registry.npmjs.org/terser/-/terser-5.37.0.tgz", 1178 | "integrity": "sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA==", 1179 | "dev": true, 1180 | "dependencies": { 1181 | "@jridgewell/source-map": "^0.3.3", 1182 | "acorn": "^8.8.2", 1183 | "commander": "^2.20.0", 1184 | "source-map-support": "~0.5.20" 1185 | }, 1186 | "bin": { 1187 | "terser": "bin/terser" 1188 | }, 1189 | "engines": { 1190 | "node": ">=10" 1191 | } 1192 | }, 1193 | "node_modules/terser-webpack-plugin": { 1194 | "version": "5.3.11", 1195 | "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.11.tgz", 1196 | "integrity": "sha512-RVCsMfuD0+cTt3EwX8hSl2Ks56EbFHWmhluwcqoPKtBnfjiT6olaq7PRIRfhyU8nnC2MrnDrBLfrD/RGE+cVXQ==", 1197 | "dev": true, 1198 | "dependencies": { 1199 | "@jridgewell/trace-mapping": "^0.3.25", 1200 | "jest-worker": "^27.4.5", 1201 | "schema-utils": "^4.3.0", 1202 | "serialize-javascript": "^6.0.2", 1203 | "terser": "^5.31.1" 1204 | }, 1205 | "engines": { 1206 | "node": ">= 10.13.0" 1207 | }, 1208 | "funding": { 1209 | "type": "opencollective", 1210 | "url": "https://opencollective.com/webpack" 1211 | }, 1212 | "peerDependencies": { 1213 | "webpack": "^5.1.0" 1214 | }, 1215 | "peerDependenciesMeta": { 1216 | "@swc/core": { 1217 | "optional": true 1218 | }, 1219 | "esbuild": { 1220 | "optional": true 1221 | }, 1222 | "uglify-js": { 1223 | "optional": true 1224 | } 1225 | } 1226 | }, 1227 | "node_modules/terser-webpack-plugin/node_modules/ajv": { 1228 | "version": "8.17.1", 1229 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", 1230 | "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", 1231 | "dev": true, 1232 | "dependencies": { 1233 | "fast-deep-equal": "^3.1.3", 1234 | "fast-uri": "^3.0.1", 1235 | "json-schema-traverse": "^1.0.0", 1236 | "require-from-string": "^2.0.2" 1237 | }, 1238 | "funding": { 1239 | "type": "github", 1240 | "url": "https://github.com/sponsors/epoberezkin" 1241 | } 1242 | }, 1243 | "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": { 1244 | "version": "5.1.0", 1245 | "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", 1246 | "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", 1247 | "dev": true, 1248 | "dependencies": { 1249 | "fast-deep-equal": "^3.1.3" 1250 | }, 1251 | "peerDependencies": { 1252 | "ajv": "^8.8.2" 1253 | } 1254 | }, 1255 | "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { 1256 | "version": "1.0.0", 1257 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", 1258 | "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", 1259 | "dev": true 1260 | }, 1261 | "node_modules/terser-webpack-plugin/node_modules/schema-utils": { 1262 | "version": "4.3.0", 1263 | "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.0.tgz", 1264 | "integrity": "sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g==", 1265 | "dev": true, 1266 | "dependencies": { 1267 | "@types/json-schema": "^7.0.9", 1268 | "ajv": "^8.9.0", 1269 | "ajv-formats": "^2.1.1", 1270 | "ajv-keywords": "^5.1.0" 1271 | }, 1272 | "engines": { 1273 | "node": ">= 10.13.0" 1274 | }, 1275 | "funding": { 1276 | "type": "opencollective", 1277 | "url": "https://opencollective.com/webpack" 1278 | } 1279 | }, 1280 | "node_modules/undici-types": { 1281 | "version": "6.20.0", 1282 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", 1283 | "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", 1284 | "dev": true 1285 | }, 1286 | "node_modules/update-browserslist-db": { 1287 | "version": "1.1.2", 1288 | "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz", 1289 | "integrity": "sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==", 1290 | "dev": true, 1291 | "funding": [ 1292 | { 1293 | "type": "opencollective", 1294 | "url": "https://opencollective.com/browserslist" 1295 | }, 1296 | { 1297 | "type": "tidelift", 1298 | "url": "https://tidelift.com/funding/github/npm/browserslist" 1299 | }, 1300 | { 1301 | "type": "github", 1302 | "url": "https://github.com/sponsors/ai" 1303 | } 1304 | ], 1305 | "dependencies": { 1306 | "escalade": "^3.2.0", 1307 | "picocolors": "^1.1.1" 1308 | }, 1309 | "bin": { 1310 | "update-browserslist-db": "cli.js" 1311 | }, 1312 | "peerDependencies": { 1313 | "browserslist": ">= 4.21.0" 1314 | } 1315 | }, 1316 | "node_modules/uri-js": { 1317 | "version": "4.4.1", 1318 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1319 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 1320 | "dev": true, 1321 | "dependencies": { 1322 | "punycode": "^2.1.0" 1323 | } 1324 | }, 1325 | "node_modules/watchpack": { 1326 | "version": "2.4.2", 1327 | "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", 1328 | "integrity": "sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==", 1329 | "dev": true, 1330 | "dependencies": { 1331 | "glob-to-regexp": "^0.4.1", 1332 | "graceful-fs": "^4.1.2" 1333 | }, 1334 | "engines": { 1335 | "node": ">=10.13.0" 1336 | } 1337 | }, 1338 | "node_modules/webpack": { 1339 | "version": "5.97.1", 1340 | "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.97.1.tgz", 1341 | "integrity": "sha512-EksG6gFY3L1eFMROS/7Wzgrii5mBAFe4rIr3r2BTfo7bcc+DWwFZ4OJ/miOuHJO/A85HwyI4eQ0F6IKXesO7Fg==", 1342 | "dev": true, 1343 | "dependencies": { 1344 | "@types/eslint-scope": "^3.7.7", 1345 | "@types/estree": "^1.0.6", 1346 | "@webassemblyjs/ast": "^1.14.1", 1347 | "@webassemblyjs/wasm-edit": "^1.14.1", 1348 | "@webassemblyjs/wasm-parser": "^1.14.1", 1349 | "acorn": "^8.14.0", 1350 | "browserslist": "^4.24.0", 1351 | "chrome-trace-event": "^1.0.2", 1352 | "enhanced-resolve": "^5.17.1", 1353 | "es-module-lexer": "^1.2.1", 1354 | "eslint-scope": "5.1.1", 1355 | "events": "^3.2.0", 1356 | "glob-to-regexp": "^0.4.1", 1357 | "graceful-fs": "^4.2.11", 1358 | "json-parse-even-better-errors": "^2.3.1", 1359 | "loader-runner": "^4.2.0", 1360 | "mime-types": "^2.1.27", 1361 | "neo-async": "^2.6.2", 1362 | "schema-utils": "^3.2.0", 1363 | "tapable": "^2.1.1", 1364 | "terser-webpack-plugin": "^5.3.10", 1365 | "watchpack": "^2.4.1", 1366 | "webpack-sources": "^3.2.3" 1367 | }, 1368 | "bin": { 1369 | "webpack": "bin/webpack.js" 1370 | }, 1371 | "engines": { 1372 | "node": ">=10.13.0" 1373 | }, 1374 | "funding": { 1375 | "type": "opencollective", 1376 | "url": "https://opencollective.com/webpack" 1377 | }, 1378 | "peerDependenciesMeta": { 1379 | "webpack-cli": { 1380 | "optional": true 1381 | } 1382 | } 1383 | }, 1384 | "node_modules/webpack-cli": { 1385 | "version": "6.0.1", 1386 | "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-6.0.1.tgz", 1387 | "integrity": "sha512-MfwFQ6SfwinsUVi0rNJm7rHZ31GyTcpVE5pgVA3hwFRb7COD4TzjUUwhGWKfO50+xdc2MQPuEBBJoqIMGt3JDw==", 1388 | "dev": true, 1389 | "dependencies": { 1390 | "@discoveryjs/json-ext": "^0.6.1", 1391 | "@webpack-cli/configtest": "^3.0.1", 1392 | "@webpack-cli/info": "^3.0.1", 1393 | "@webpack-cli/serve": "^3.0.1", 1394 | "colorette": "^2.0.14", 1395 | "commander": "^12.1.0", 1396 | "cross-spawn": "^7.0.3", 1397 | "envinfo": "^7.14.0", 1398 | "fastest-levenshtein": "^1.0.12", 1399 | "import-local": "^3.0.2", 1400 | "interpret": "^3.1.1", 1401 | "rechoir": "^0.8.0", 1402 | "webpack-merge": "^6.0.1" 1403 | }, 1404 | "bin": { 1405 | "webpack-cli": "bin/cli.js" 1406 | }, 1407 | "engines": { 1408 | "node": ">=18.12.0" 1409 | }, 1410 | "funding": { 1411 | "type": "opencollective", 1412 | "url": "https://opencollective.com/webpack" 1413 | }, 1414 | "peerDependencies": { 1415 | "webpack": "^5.82.0" 1416 | }, 1417 | "peerDependenciesMeta": { 1418 | "webpack-bundle-analyzer": { 1419 | "optional": true 1420 | }, 1421 | "webpack-dev-server": { 1422 | "optional": true 1423 | } 1424 | } 1425 | }, 1426 | "node_modules/webpack-cli/node_modules/commander": { 1427 | "version": "12.1.0", 1428 | "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", 1429 | "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", 1430 | "dev": true, 1431 | "engines": { 1432 | "node": ">=18" 1433 | } 1434 | }, 1435 | "node_modules/webpack-merge": { 1436 | "version": "6.0.1", 1437 | "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-6.0.1.tgz", 1438 | "integrity": "sha512-hXXvrjtx2PLYx4qruKl+kyRSLc52V+cCvMxRjmKwoA+CBbbF5GfIBtR6kCvl0fYGqTUPKB+1ktVmTHqMOzgCBg==", 1439 | "dev": true, 1440 | "dependencies": { 1441 | "clone-deep": "^4.0.1", 1442 | "flat": "^5.0.2", 1443 | "wildcard": "^2.0.1" 1444 | }, 1445 | "engines": { 1446 | "node": ">=18.0.0" 1447 | } 1448 | }, 1449 | "node_modules/webpack-sources": { 1450 | "version": "3.2.3", 1451 | "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", 1452 | "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", 1453 | "dev": true, 1454 | "engines": { 1455 | "node": ">=10.13.0" 1456 | } 1457 | }, 1458 | "node_modules/which": { 1459 | "version": "2.0.2", 1460 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 1461 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 1462 | "dev": true, 1463 | "dependencies": { 1464 | "isexe": "^2.0.0" 1465 | }, 1466 | "bin": { 1467 | "node-which": "bin/node-which" 1468 | }, 1469 | "engines": { 1470 | "node": ">= 8" 1471 | } 1472 | }, 1473 | "node_modules/wildcard": { 1474 | "version": "2.0.1", 1475 | "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", 1476 | "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", 1477 | "dev": true 1478 | } 1479 | } 1480 | } 1481 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cheetahr", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "none": "webpack --config webpack.dev.js --mode=none", 9 | "development": "webpack --config webpack.dev.js", 10 | "production": "webpack --config webpack.prod.js", 11 | "watch": "webpack --config webpack.dev.js -d --watch" 12 | }, 13 | "keywords": [], 14 | "author": "", 15 | "license": "ISC", 16 | "devDependencies": { 17 | "webpack": "^5.97.1", 18 | "webpack-cli": "^6.0.1", 19 | "webpack-merge": "^6.0.1" 20 | }, 21 | "dependencies": { 22 | "cheetah-grid": "^1.16.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /script/test_cheetah.R: -------------------------------------------------------------------------------- 1 | cheetah( 2 | head(iris), 3 | columns = list( 4 | Sepal.Length = column_def(name = "Sepal_Length"), 5 | Species = column_def(width = 50, style = list(textOverflow = "ellipsis")) 6 | ) 7 | ) 8 | 9 | cheetah( 10 | mtcars, 11 | columns = list( 12 | mpg = column_def(name = "MPG"), 13 | cyl = column_def(name = "Cylinder", width = 100), 14 | rownames = column_def(width = 50, style = list(color = "red")) 15 | ) 16 | ) 17 | 18 | -------------------------------------------------------------------------------- /srcjs/config/entry_points.json: -------------------------------------------------------------------------------- 1 | { 2 | "cheetah": "./srcjs/widgets/cheetah.js" 3 | } 4 | -------------------------------------------------------------------------------- /srcjs/config/externals.json: -------------------------------------------------------------------------------- 1 | { 2 | "widgets": "HTMLWidgets", 3 | "shiny": "Shiny" 4 | } 5 | -------------------------------------------------------------------------------- /srcjs/config/loaders.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /srcjs/config/misc.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /srcjs/config/output_path.json: -------------------------------------------------------------------------------- 1 | "./inst/htmlwidgets" 2 | -------------------------------------------------------------------------------- /srcjs/index.js: -------------------------------------------------------------------------------- 1 | import './widgets/cheetah.js' 2 | -------------------------------------------------------------------------------- /srcjs/modules/header.js: -------------------------------------------------------------------------------- 1 | const asHeader = (x) => { 2 | return '

' + x.message + '

'; 3 | } 4 | 5 | export { asHeader }; 6 | -------------------------------------------------------------------------------- /srcjs/modules/utils.js: -------------------------------------------------------------------------------- 1 | export function combineColumnsAndGroups(columnsList, colGroups) { 2 | // 1. Build a lookup by field 3 | const colsByField = {}; 4 | columnsList.forEach(col => { 5 | colsByField[col.field] = col; 6 | }); 7 | 8 | // 2. Find each group's first member and all members 9 | const groupFirst = colGroups.map(g => g.columns[0]); 10 | const groupMembers = colGroups.reduce((acc, g) => acc.concat(g.columns), []); 11 | 12 | const result = []; 13 | 14 | // 3. Iterate in original order 15 | columnsList.forEach(col => { 16 | const f = col.field; 17 | const gi = groupFirst.indexOf(f); 18 | 19 | if (gi !== -1) { 20 | // this is the first field of group gi → emit the group 21 | const grp = colGroups[gi]; 22 | 23 | // build nested column definitions 24 | const nested = grp.columns.map(fieldName => colsByField[fieldName]); 25 | 26 | // extract everything except `columns` from grp 27 | const { columns, ...grpMeta } = grp; 28 | 29 | result.push({ ...grpMeta, columns: nested }); 30 | 31 | } else if (groupMembers.includes(f)) { 32 | // a member of some group but not its first → skip 33 | 34 | } else { 35 | // standalone column 36 | result.push(colsByField[f]); 37 | } 38 | }); 39 | 40 | return result; 41 | } 42 | 43 | -------------------------------------------------------------------------------- /srcjs/widgets/cheetah.js: -------------------------------------------------------------------------------- 1 | import 'widgets'; 2 | import { combineColumnsAndGroups } from '../modules/utils.js'; 3 | import * as cheetahGrid from "cheetah-grid"; 4 | 5 | HTMLWidgets.widget({ 6 | 7 | name: 'cheetah', 8 | 9 | type: 'output', 10 | 11 | factory: function (el, width, height) { 12 | 13 | let id = el.id; 14 | 15 | return { 16 | 17 | renderValue: function (x, id = el.id) { 18 | let columns; 19 | const header = Object.keys(x.data[0]) 20 | const defaultCol = header.map((key) => { 21 | return ({ field: key, caption: key, width: 'auto' }); 22 | }); 23 | 24 | if (x.columns !== null) { 25 | // Create a lookup map from user input 26 | const userMap = Object.fromEntries(x.columns.map(item => [item.field, item])); 27 | 28 | // Merge user input values into defaultCol 29 | columns = defaultCol.map(item => ({ 30 | ...item, 31 | ...(userMap[item.field] || {}) 32 | })); 33 | 34 | // Iterate over the list and process the `action` property if it is not null or undefined 35 | columns.forEach((obj) => { 36 | if (obj.action != null) { // Checks for both null and undefined 37 | if (obj.action.type === "inline_menu") { 38 | obj.columnType = new cheetahGrid.columns.type.MenuColumn({ 39 | options: obj.action.options, 40 | }); 41 | 42 | obj.action = new cheetahGrid.columns.action.InlineMenuEditor({ 43 | options: obj.action.options, 44 | }); 45 | } 46 | } 47 | }); 48 | 49 | } else { 50 | columns = defaultCol; 51 | } 52 | 53 | if (x.colGroup !== null) { 54 | columns = combineColumnsAndGroups(columns, x.colGroup); 55 | } 56 | 57 | const grid = new cheetahGrid.ListGrid({ 58 | parentElement: document.getElementById(id), 59 | header: columns, 60 | // Column fixed position 61 | // frozenColCount: 1, 62 | }); 63 | 64 | // Search feature 65 | if (x.search !== 'disabled') { 66 | const filterDataSource = new cheetahGrid 67 | .data 68 | .FilterDataSource( 69 | cheetahGrid.data.DataSource.ofArray(x.data) 70 | ); 71 | grid.dataSource = filterDataSource; 72 | 73 | const widget = document.getElementById(el.id); 74 | const label = document.createElement('label'); 75 | label.textContent = 'Filter:'; 76 | // Create input 77 | const input = document.createElement('input'); 78 | input.id = `${el.id}-filter-input`; 79 | input.style.margin = '10px'; 80 | widget.prepend(label, input); 81 | 82 | const filterInput = document.getElementById(`${el.id}-filter-input`); 83 | filterInput.addEventListener('input', (e) => { 84 | const filterValue = document.getElementById(e.currentTarget.id).value; 85 | filterDataSource.filter = filterValue 86 | ? (record) => { 87 | // filtering method 88 | for (const k in record) { 89 | let testCond; 90 | switch (x.search) { 91 | case 'contains': 92 | testCond = `${record[k]}`.indexOf(filterValue) >= 0;; 93 | break; 94 | case 'exact': 95 | let r = new RegExp(`^${filterValue}$`); 96 | testCond = r.test(`${record[k]}`); 97 | break; 98 | default: 99 | console.log(`${x.search} value not implemented yet.`); 100 | } 101 | if (testCond) { 102 | return true; 103 | } 104 | } 105 | return false; 106 | } 107 | : null; 108 | grid.invalidate(); 109 | }) 110 | } else { 111 | // Array data to be displayed on the grid 112 | grid.records = x.data; 113 | } 114 | 115 | // Only is Shiny exists 116 | if (HTMLWidgets.shinyMode) { 117 | const { 118 | CLICK_CELL, 119 | CHANGED_VALUE, 120 | } = cheetahGrid.ListGrid.EVENT_TYPE; 121 | 122 | grid.listen( 123 | CLICK_CELL, (...args) => { 124 | Shiny.setInputValue(`${id}_click_cell`, args); 125 | } 126 | ); 127 | 128 | grid.listen( 129 | CHANGED_VALUE, (...args) => { 130 | Shiny.setInputValue(`${id}_changed_value`, args); 131 | } 132 | ); 133 | } 134 | }, 135 | 136 | resize: function (width, height) { 137 | 138 | // TODO: code to re-render the widget with a new size 139 | 140 | } 141 | 142 | }; 143 | } 144 | }); 145 | -------------------------------------------------------------------------------- /tests/testthat.R: -------------------------------------------------------------------------------- 1 | # This file is part of the standard setup for testthat. 2 | # It is recommended that you do not modify it. 3 | # 4 | # Where should you do additional test configuration? 5 | # Learn more about the roles of various files in: 6 | # * https://r-pkgs.org/tests.html 7 | # * https://testthat.r-lib.org/reference/test_package.html#special-files 8 | 9 | library(testthat) 10 | library(cheetahR) 11 | 12 | test_check("cheetahR") 13 | -------------------------------------------------------------------------------- /tests/testthat/_snaps/cheetah.md: -------------------------------------------------------------------------------- 1 | # test cheetah 2 | 3 | Code 4 | cheetah(iris, search = "plop") 5 | Condition 6 | Error in `match.arg()`: 7 | ! 'arg' should be one of "disabled", "exact", "contains" 8 | 9 | -------------------------------------------------------------------------------- /tests/testthat/_snaps/utils.md: -------------------------------------------------------------------------------- 1 | # test column defintion 2 | 3 | Code 4 | column_def(message = "test") 5 | Condition 6 | Error in `column_def()`: 7 | ! message must be a JavaScript function wrapped by htmlwidgets::JS(). 8 | 9 | -------------------------------------------------------------------------------- /tests/testthat/test-cheetah.R: -------------------------------------------------------------------------------- 1 | test_that("cheetah handles rownames correctly", { 2 | # Test with default rowname behavior (TRUE) 3 | widget <- cheetah(swiss) 4 | expect_s3_class(widget, "htmlwidget") 5 | expect_s3_class(widget, "cheetah") 6 | 7 | # Test with rownames explicitly set to TRUE 8 | widget_explicit <- cheetah(swiss, rownames = TRUE) 9 | expect_s3_class(widget_explicit, "htmlwidget") 10 | expect_s3_class(widget_explicit, "cheetah") 11 | 12 | # Test with rownames disabled 13 | widget_no_row <- cheetah(swiss, rownames = FALSE) 14 | expect_s3_class(widget_no_row, "htmlwidget") 15 | expect_s3_class(widget_no_row, "cheetah") 16 | 17 | # Test with iris (numeric rownames should not be shown) 18 | widget_iris <- cheetah(iris) 19 | expect_s3_class(widget_iris, "htmlwidget") 20 | expect_s3_class(widget_iris, "cheetah") 21 | }) 22 | 23 | test_that("test cheetah", { 24 | server <- function(input, output, session) { 25 | output$grid <- renderCheetah({ 26 | cheetah(data = head(iris)) 27 | }) 28 | } 29 | 30 | shiny::testServer(server, { 31 | expect_s3_class(session$getOutput("grid"), "json") 32 | }) 33 | 34 | expect_snapshot(error = TRUE, { 35 | cheetah(iris, search = "plop") 36 | }) 37 | }) 38 | -------------------------------------------------------------------------------- /tests/testthat/test-js_ifelse.R: -------------------------------------------------------------------------------- 1 | test_that("js_ifelse conversion", { 2 | # Simple logic: numeric comparisons and equality 3 | expect_equal( 4 | js_ifelse(Sepal.Length > 5, "BigSepal", ""), 5 | "rec['Sepal.Length'] > 5 ? 'BigSepal' : null;" 6 | ) 7 | expect_equal( 8 | js_ifelse(Species == "setosa", "IsSetosa", ""), 9 | "rec['Species'] === 'setosa' ? 'IsSetosa' : null;" 10 | ) 11 | expect_equal( 12 | js_ifelse(Sepal.Width <= 3, "NarrowSepal", "WideSepal"), 13 | "rec['Sepal.Width'] <= 3 ? 'NarrowSepal' : 'WideSepal';" 14 | ) 15 | 16 | # Combined logic 17 | expr <- js_ifelse(Sepal.Length > 5 & Species %notin% c("setosa"), "E", "X") 18 | expect_true(grepl("rec['Sepal.Length'] > 5 && !['setosa'].includes", expr, fixed = TRUE)) 19 | 20 | # Truthiness of bare variable 21 | expect_equal( 22 | js_ifelse(Species, "", "Please check."), 23 | "rec['Species'] ? null : 'Please check.';" 24 | ) 25 | 26 | # Basic %in% and %notin% 27 | expect_equal( 28 | js_ifelse(Species %in% c("setosa", "virginica"), "Bad", ""), 29 | "['setosa','virginica'].includes(rec['Species']) ? 'Bad' : null;" 30 | ) 31 | expect_equal( 32 | js_ifelse(Species %notin% c("setosa"), "OK", ""), 33 | "!['setosa'].includes(rec['Species']) ? 'OK' : null;" 34 | ) 35 | 36 | # grepl() and !grepl() 37 | expect_equal( 38 | js_ifelse(grepl("^vir", Species), "Yes", ""), 39 | "/^vir/.test(rec['Species']) ? 'Yes' : null;" 40 | ) 41 | expect_equal( 42 | js_ifelse(!grepl("set", Species), "NoSet", ""), 43 | "!/set/.test(rec['Species']) ? 'NoSet' : null;" 44 | ) 45 | }) 46 | -------------------------------------------------------------------------------- /tests/testthat/test-test-add_cell_message.R: -------------------------------------------------------------------------------- 1 | test_that("add_cell_message generates correct JS function", { 2 | get_js_text <- function(js_obj) { 3 | js_obj[1] 4 | } 5 | 6 | # Simple string message 7 | fn1 <- add_cell_message("warning", "Check this.") 8 | js1 <- get_js_text(fn1) 9 | expect_true(grepl("type: 'warning'", js1)) 10 | expect_true(grepl("message: 'Check this.'", js1)) 11 | 12 | # Test: raw JS expression 13 | raw_expr <- "rec.Species ? null : 'Please check.';" 14 | fn2 <- add_cell_message("error", raw_expr) 15 | js2 <- get_js_text(fn2) 16 | expect_true(grepl("type: 'error'", js2)) 17 | expect_true(grepl("message: rec.Species ? null : 'Please check.'", js2, , fixed = TRUE)) 18 | 19 | # Test: info type and escaping quotes 20 | fn3 <- add_cell_message("info", "It's OK") 21 | js3 <- get_js_text(fn3) 22 | expect_true(grepl("type: 'info'", js3)) 23 | expect_true(grepl("message: 'It\\'s OK'", js3)) 24 | 25 | # Test: invalid type throws error 26 | expect_error(add_cell_message("critical", "Oops"), 27 | "'arg' should be one of") 28 | }) 29 | -------------------------------------------------------------------------------- /tests/testthat/test-utils.R: -------------------------------------------------------------------------------- 1 | test_that("test column defintion", { 2 | expect_type(column_def(name = "Sepal_Length"), "list") 3 | 4 | expect_named( 5 | column_def(name = "Sepal_Length"), 6 | c( 7 | "caption", 8 | "width", 9 | "minWidth", 10 | "maxWidth", 11 | "columnType", 12 | "action", 13 | "style", 14 | "message", 15 | "sort" 16 | ) 17 | ) 18 | 19 | expect_snapshot( 20 | error = TRUE, 21 | { 22 | # Message must be wrapped by JS 23 | column_def(message = "test") 24 | } 25 | ) 26 | }) 27 | 28 | test_that("test column group", { 29 | expect_type( 30 | column_group( 31 | name = "Sepal", 32 | columns = c("Sepal.Length", "Sepal.Width") 33 | ), 34 | "list" 35 | ) 36 | 37 | expect_named( 38 | column_group( 39 | name = "Sepal", 40 | columns = c("Sepal.Length", "Sepal.Width") 41 | ), 42 | c( 43 | "caption", 44 | "columns" 45 | ) 46 | ) 47 | 48 | expect_error( 49 | column_group(name = "Sepal"), 50 | 'argument "columns" is missing, with no default' 51 | ) 52 | }) 53 | 54 | test_that("test column style check", { 55 | columns <- list( 56 | Sepal.Length = column_def(name = "Sepal_Length"), 57 | Species = column_def(style = "red") 58 | ) 59 | 60 | expect_error( 61 | column_style_check(columns), 62 | "The style attribute expects a list" 63 | ) 64 | }) 65 | 66 | test_that("update_col_list_with_classes sets columnType correctly", { 67 | data <- data.frame( 68 | full_name = c("Anne Smith", "Mike John", "John Doe", "Janet Jones"), 69 | grade = c(78, 52, 3, 27), 70 | passed = c(TRUE, TRUE, FALSE, FALSE), 71 | gender = c("female", "male", "male", "female") 72 | ) 73 | 74 | # Set 'gender' to a factor column 75 | data$gender <- as.factor(data$gender) 76 | 77 | columns <- list( 78 | passed = list(columnType = "check"), 79 | full_name = list(name = "Names") 80 | ) 81 | 82 | updated_col_list <- update_col_list_with_classes(data, columns) 83 | 84 | # Column 'grade' is numeric, columnType becomes "number" 85 | expect_equal(updated_col_list$grade$columnType, "number") 86 | 87 | # Column 'passed' is set, so the columnType remains unchanged 88 | expect_equal(updated_col_list$passed$columnType, "check") 89 | 90 | # Column 'full_name' is (non-numeric), columnType becomes "text" 91 | expect_equal(updated_col_list$full_name$columnType, "text") 92 | 93 | # Column 'gender' is a factor, columnType becomes "menu" and action to "inline_menu" 94 | expect_equal(updated_col_list$gender$columnType, "menu") 95 | expect_equal(updated_col_list$gender$action$type, "inline_menu") 96 | }) 97 | -------------------------------------------------------------------------------- /vignettes/.gitignore: -------------------------------------------------------------------------------- 1 | *.html 2 | *.R 3 | *_files 4 | 5 | /.quarto/ 6 | -------------------------------------------------------------------------------- /vignettes/cheetahR.qmd: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Get Started" 3 | output: rmarkdown::html_vignette 4 | vignette: > 5 | %\VignetteIndexEntry{Get Started} 6 | %\VignetteEngine{quarto::html} 7 | %\VignetteEncoding{UTF-8} 8 | --- 9 | 10 | ```{r, include = FALSE} 11 | knitr::opts_chunk$set( 12 | collapse = TRUE, 13 | comment = "#>" 14 | ) 15 | ``` 16 | 17 | ```{r setup} 18 | library(cheetahR) 19 | library(palmerpenguins) 20 | library(dplyr) 21 | ``` 22 | 23 | ## Your first table 24 | 25 | ```{r} 26 | # Render table 27 | cheetah(iris) 28 | ``` 29 | 30 | ## Customize columns 31 | 32 | ```{r} 33 | # Change some feature of some columns in the data 34 | cheetah( 35 | iris, 36 | columns = list( 37 | Sepal.Length = column_def(name = "Sepal_Length", width = 120), 38 | Sepal.Width = column_def(name = "Sepal_Width", width = 120), 39 | Petal.Length = column_def(name = "Petal_Length", width = 120), 40 | Petal.Width = column_def(name = "Petal_Width", width = 120), 41 | Species = column_def(name = "Species") 42 | ) 43 | ) 44 | ``` 45 | 46 | ## Customize `rownames` 47 | 48 | The default for the row names column is `TRUE` if present in the data; however, to modify it, include a column definition with "rownames" as the designated column name. 49 | 50 | ```{r} 51 | # Example of customizing rownames with color and width 52 | cheetah( 53 | mtcars, 54 | columns = list( 55 | rownames = column_def(width = 150, style = list(color = "red")) 56 | ) 57 | ) 58 | ``` 59 | 60 | ## Defining the column types 61 | 62 | The `column_type` parameter in `column_def()` allows you to specify different types of columns. There are 6 possible options: 63 | 64 | - `"text"`: For text columns 65 | - `"number"`: For numeric columns 66 | - `"check"`: For checkbox columns 67 | - `"image"`: For image columns 68 | - `"radio"`: For radio button columns 69 | - `"multilinetext"`: For multiline text columns 70 | - `"menu"`: For dropdown menu selection columns 71 | 72 | The `column_type` parameter is optional. If it is not specified, the column type will be inferred from the data type. 73 | 74 | ```{r} 75 | # Using checkbox column type to indicate NA values 76 | head(airquality, 10) %>% 77 | mutate( 78 | has_na = if_any(everything(), is.na), 79 | has_na = ifelse(has_na, "true", "false"), 80 | .before = 1 81 | ) %>% 82 | cheetah( 83 | columns = list( 84 | has_na = column_def( 85 | name = "Contains NA", 86 | column_type = "check", 87 | style = list( 88 | uncheckBgColor = "#FDD", 89 | checkBgColor = "rgb(255, 73, 72)", 90 | borderColor = "red" 91 | ) 92 | ) 93 | ) 94 | ) 95 | ``` 96 | Note! The check column is not clickable. This is because a corresponding value of "check" is required for the action parameter to activate the interactivity of the column. 97 | 98 | ## Defining the column actions 99 | 100 | The `action` parameter in `column_def()` allows you to define interactive behaviors for columns. There are 4 possible actions: 101 | 102 | - `"input"`: Makes the column editable with text input 103 | - `"check"`: Makes the column editable with checkboxes 104 | - `"radio"`: Makes the column editable with radio buttons 105 | - `"inline_menu"`: Makes the column editable with a dropdown menu (requires `column_type = "menu"` and `menu_options`) 106 | 107 | The action type must be compatible with the column type. For example, `"check"` action can only be used with `"check"` column type. 108 | ```{r} 109 | head(airquality, 10) %>% 110 | mutate( 111 | has_na = if_any(everything(), is.na), 112 | has_na = ifelse(has_na, "true", "false"), 113 | .before = 1 114 | ) %>% 115 | cheetah( 116 | columns = list( 117 | has_na = column_def( 118 | name = "Contains NA", 119 | column_type = "check", 120 | action = "check", 121 | style = list( 122 | uncheckBgColor = "#FDD", 123 | checkBgColor = "rgb(255, 73, 72)", 124 | borderColor = "red" 125 | ) 126 | ) 127 | ) 128 | ) 129 | ``` 130 | 131 | ### Adding image to the table 132 | 133 | The `cheetah` widget supports displaying images in table cells by setting `column_type = "image"`. You can customize how images are displayed using style properties like `imageSizing`. 134 | ```{r} 135 | img_url <- c( 136 | "https://assets.shannons.com.au/JD166AU033OKSAEF/Z8E73PWLE94D365M/7g7i8dxq4xdx0g61-me9867ab4krp0uio/jpg/2000x1500x3/vehicle/1973-mazda-rx4.jpg", 137 | "https://live.staticflickr.com/2529/3854349010_4783baf575_o.jpg", 138 | "https://photos.classiccars.com/cc-temp/listing/129/6646/18583131-1974-datsun-710-std.jpg", 139 | "https://tse2.mm.bing.net/th?id=OIP.qV1ZAVktze35RwUpEgtPmwAAAA&pid=Api&P=0&h=180", 140 | "https://tse1.mm.bing.net/th?id=OIP.OA_V14TTdu8nx36mC6VUeAHaEo&pid=Api&P=0&h=180", 141 | "https://res.cloudinary.com/carsguide/image/upload/f_auto,fl_lossy,q_auto,t_cg_hero_low/v1/editorial/dp/albums/album-3483/lg/Valiant-50-years-_6_.jpg" 142 | ) 143 | ``` 144 | 145 | ```{r, fig.height=3} 146 | data <- mutate(head(mtcars), image = img_url, .before = 1) 147 | cheetah( 148 | data, 149 | columns = list( 150 | rownames = column_def(width = 150), 151 | image = column_def("images", width = 100, column_type = "image", style = list(imageSizing = "keep-aspect-ratio" )) 152 | ) 153 | ) 154 | ``` 155 | 156 | 157 | ## Cell messages 158 | 159 | There are two ways to add __cell messages__ for validation 160 | 161 | 1. Define __cell messages__ by passing a JS function wrapped within `htmlwidget::JS()`. This function takes a single 162 | parameter `rec` which refers to data row. It must return an object with 2 properties: 163 | 164 | - `type`: the message type. Valid types are `"info"`, `"warning"` and `"error"`. 165 | - `message`: the message content. As shown below, you can use a [__ternary operator__](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_operator) to check whether a condition is respected, for instance `rec.Species === 'setosa'` check if the recorded specie is `"setosa"`. Since `rec` refers to an entire data row, you can also target multiple columns in your check logic. 166 | 167 | ```{r} 168 | cheetah( 169 | iris, 170 | columns = list( 171 | Species = column_def( 172 | action = "input", 173 | message = htmlwidgets::JS( 174 | "function(rec) { 175 | return { 176 | type: 'error', 177 | message: rec.Species === 'setosa' ? 'Invalid specie type.' : null, 178 | } 179 | }" 180 | ) 181 | ) 182 | ) 183 | ) 184 | ``` 185 | 186 | 2. Using `add_cell_message()`. A R helper function which provides a simpler interface to create cell messages. The function takes two arguments: 187 | 188 | - `type`: Message type (`"error"`, `"warning"`, or `"info"`). Defaults to `"error"`. 189 | - `message`: A string or JavaScript expression. If the message contains `rec.`, `?`, `:`, or ends with `;`, it is treated as raw JavaScript. Otherwise, it is escaped and wrapped in quotes. 190 | 191 | Here are some examples: 192 | 193 | ```{r} 194 | # Prepare data 195 | set.seed(123) 196 | iris_rows <- sample(nrow(iris), 10) 197 | data <- iris[iris_rows, ] 198 | ``` 199 | 200 | ```{r} 201 | # Simple cell message 202 | cheetah( 203 | data, 204 | columns = list( 205 | Species = column_def( 206 | action = "input", 207 | message = add_cell_message(type = "info", message = "Ok") 208 | ) 209 | ) 210 | ) 211 | ``` 212 | 213 | ### Cell message using `js_ifelse()` 214 | 215 | The `js_ifelse()` helper function provides a convenient way to write conditional JavaScript expressions in R. It follows the same syntax as R's `ifelse()` function but generates JavaScript code for use in cell messages. See possible examples: 216 | 217 | #### 1. Simple logic: numeric comparisons and equality 218 | ```{r} 219 | cheetah( 220 | data, 221 | columns = list( 222 | Species = column_def( 223 | action = "input", 224 | message = add_cell_message(message = js_ifelse(Species == "setosa", "", "Invalid")) 225 | ) 226 | ) 227 | ) 228 | ``` 229 | ```{r} 230 | cheetah( 231 | data, 232 | columns = list( 233 | Species = column_def( 234 | action = "input", 235 | message = add_cell_message( 236 | type = "warning", 237 | message = js_ifelse(Sepal.Length > 5, "BigSepal", "") 238 | ) 239 | ) 240 | ) 241 | ) 242 | ``` 243 | ```{r} 244 | cheetah( 245 | data, 246 | columns = list( 247 | Species = column_def( 248 | action = "input", 249 | message = add_cell_message( 250 | type = "warning", 251 | message = js_ifelse(Sepal.Width <= 3, "NarrowSepal", "WideSepal") 252 | ) 253 | ) 254 | ) 255 | ) 256 | ``` 257 | 258 | #### 2. Combined logic 259 | ```{r} 260 | `%notin%` <- Negate('%in%') 261 | 262 | cheetah( 263 | data, 264 | columns = list( 265 | Species = column_def( 266 | action = "input", 267 | message = add_cell_message( 268 | type = "info", 269 | message = js_ifelse(Sepal.Length > 5 & Species %notin% c("setosa"), "E", "X") 270 | ) 271 | ) 272 | ) 273 | ) 274 | ``` 275 | 276 | #### 3. Basic `%in%` and `%notin%` 277 | ```{r} 278 | cheetah( 279 | data, 280 | columns = list( 281 | Species = column_def( 282 | action = "input", 283 | message = add_cell_message( 284 | message = js_ifelse(Species %in% c("setosa", "virginica"), "Bad") 285 | ) 286 | ) 287 | ) 288 | ) 289 | ``` 290 | ```{r} 291 | cheetah( 292 | data, 293 | columns = list( 294 | Species = column_def( 295 | action = "input", 296 | message = add_cell_message( 297 | type = "info", 298 | message = js_ifelse(Species %notin% c("setosa"), "OK") 299 | ) 300 | ) 301 | ) 302 | ) 303 | ``` 304 | 305 | #### 4. Using `grepl()` and `!grepl()` 306 | ```{r} 307 | cheetah( 308 | data, 309 | columns = list( 310 | Species = column_def( 311 | action = "input", 312 | message = add_cell_message( 313 | type = "info", 314 | message = js_ifelse(grepl("^vir", Species), "Yes") 315 | ) 316 | ) 317 | ) 318 | ) 319 | ``` 320 | ```{r} 321 | cheetah( 322 | data, 323 | columns = list( 324 | Species = column_def( 325 | action = "input", 326 | message = add_cell_message( 327 | type = "warning", 328 | message = js_ifelse(!grepl("set", Species), "NoSet", "") 329 | ) 330 | ) 331 | ) 332 | ) 333 | ``` 334 | 335 | #### 5. Truthiness of a bare variable 336 | 337 | The `js_ifelse()` function can check the truthiness of a variable directly, similar to JavaScript's truthy/falsy behavior. Empty strings, `NA`, `null`, and `undefined` are considered falsy values, while non-empty strings and other values are considered truthy. This is useful for simple existence checks. 338 | ```{r} 339 | # Add an extra column to the data 340 | check <- 341 | c( 342 | "", NA, 343 | "ok", NA, 344 | "good", "", 345 | "", "good", 346 | "ok", "better" 347 | ) 348 | 349 | data <- mutate(data, Check = check, .before = 1) 350 | 351 | cheetah( 352 | data, 353 | columns = list( 354 | Check = column_def( 355 | name = "", 356 | column_type = "check", 357 | action = "check", 358 | message = add_cell_message( 359 | message = js_ifelse(Check, if_false = "Please check.") 360 | ) 361 | ) 362 | ) 363 | ) 364 | ``` 365 | 366 | 367 | ### Cell message using raw JS expression as string 368 | 369 | Finally, within `add_cell_message()` you can pass raw JavaScript expressions as strings to the `message` option. In this case, you can either pass the JavaScript string directly or wrap it in `htmlwidgets::JS()`. The JavaScript expression should evaluate to a string that will be displayed as the message. 370 | ```{r} 371 | cheetah( 372 | data[,-1], 373 | columns = list( 374 | Sepal.Width = column_def( 375 | action = "input", 376 | style = list(textAlign = "center"), 377 | message = add_cell_message( 378 | type = "warning", 379 | message = "rec['Sepal.Width'] <= 3 ? 'NarrowSepal' : 'WideSepal';" 380 | ) 381 | ) 382 | ) 383 | ) 384 | ``` 385 | 386 | 387 | ## Sorting options in cheetahR 388 | 389 | By default a cheetahR table is sortable. Otherwise, set `sortable = FALSE` in `cheetah()` to disable this functionality: 390 | ```{r, eval=TRUE} 391 | cheetah(mtcars, rownames = FALSE, sortable = FALSE) 392 | ``` 393 | 394 | 395 | However, to indivdually control the sorting option of each columns in the table, pass `sort = TRUE` to the `column_def()`: 396 | 397 | ```{r} 398 | cheetah( 399 | mtcars, 400 | sortable = FALSE, 401 | columns = list( 402 | rownames = column_def( 403 | width = 150, 404 | sort = TRUE 405 | ) 406 | ) 407 | ) 408 | ``` 409 | 410 | 411 | ### Coming soon (TBD) 412 | 413 | If you want finer control over the sorting logic and provide your own, you can pass a `htmlwidgets::JS` callback instead: 414 | 415 | ```{r} 416 | cheetah( 417 | mtcars, 418 | sortable = FALSE, 419 | columns = list( 420 | rownames = column_def( 421 | width = 150, 422 | sort = htmlwidgets::JS( 423 | "function(order, col, grid) { 424 | // your logic 425 | }" 426 | ) 427 | ) 428 | ) 429 | ) 430 | ``` 431 | 432 | ## Column Grouping 433 | 434 | cheetahR allows you to group related columns together under a common header using `column_group()`. This creates a hierarchical structure in your table headers, making it easier to organize and understand related data. 435 | 436 | To group columns, use the `column_group()` function to define each group and specify which columns belong to it. Then pass the list of column groups to the `column_group` parameter in `cheetah()`. 437 | 438 | Here's an example grouping the Sepal and Petal measurements in the iris dataset: 439 | ```{r} 440 | cheetah( 441 | iris, 442 | columns = list( 443 | Sepal.Length = column_def(name = "Length"), 444 | Sepal.Width = column_def(name = "Width"), 445 | Petal.Length = column_def(name = "Length"), 446 | Petal.Width = column_def(name = "Width") 447 | ), 448 | column_group = list( 449 | column_group( 450 | name = "Sepal", 451 | columns = c("Sepal.Length", "Sepal.Width"), 452 | header_style = list(textAlign = "center", bgColor = "#fbd4dd") 453 | ), 454 | column_group( 455 | name = "Petal", 456 | columns = c("Petal.Length", "Petal.Width"), 457 | header_style = list(textAlign = "center", bgColor = "#d8edfc") 458 | ) 459 | ) 460 | ) 461 | ``` 462 | 463 | ## Filtering data 464 | 465 | You can filter data by setting `search` to either `exact` or `contains` when you call `cheetah()` like so: 466 | 467 | ```{r} 468 | cheetah(penguins, search = "contains") 469 | ``` 470 | 471 |
472 | 473 | 474 | ## `cheetah()` usage in Shiny 475 | cheetahR works seamlessly in a Shiny app. You can use it in both the UI and server components. In the UI, simply call `cheetahR::cheetahOutput()` to create a placeholder for the grid. In the server, use `cheetahR::renderCheetah()` to render the grid with your data and options. 476 | 477 | The grid will automatically update when the underlying data changes, making it perfect for reactive applications. All features like filtering, sorting, and custom column definitions work exactly the same way as in standalone R usage. 478 | 479 | 480 | One special feature that works particularly well in Shiny is the `menu` column type, which allows users to select from predefined options in a dropdown menu. This is ideal for interactive data editing workflows. 481 | 482 | ## Menu column in Shiny 483 | By default, `cheetah()` automatically detects any "factor" columns in your data and converts them into menu columns. A menu column displays a dropdown menu with predefined options that users can select from. This is particularly useful when you want to restrict input to a specific set of valid choices. For example, if you have a factor column with levels "Low", "Medium", and "High", it will be displayed as a dropdown menu with these three options. 484 | ```{r, eval=FALSE} 485 | library(shiny) 486 | library(bslib) 487 | library(cheetahR) 488 | 489 | 490 | ui <- page_fluid(cheetahOutput("grid")) 491 | 492 | server <- function(input, output) { 493 | output$grid <- renderCheetah({ 494 | cheetah(data = iris) 495 | }) 496 | } 497 | 498 | shinyApp(ui = ui, server = server) 499 | ``` 500 | ![Default menu column sample 1](figures/default_menucolumn_img_1.png) 501 | 502 | ![Default menu column sample 2](figures/default_menucolumn_img_2.png) 503 | 504 | ### Customizing the 'menu options' 505 | ```{r, eval=FALSE} 506 | library(shiny) 507 | library(bslib) 508 | library(cheetahR) 509 | 510 | ui <- page_fluid(cheetahOutput("grid")) 511 | 512 | server <- function(input, output) { 513 | output$grid <- renderCheetah({ 514 | cheetah(data = iris, 515 | columns = list( 516 | Species = column_def( 517 | column_type = "menu", 518 | action = "inline_menu", 519 | menu_options = list( 520 | setosa = "Option Setosa", 521 | versicolor = "Option Vericolor" , 522 | virginica = "Option Virginica" 523 | ) 524 | ) 525 | ) 526 | ) 527 | }) 528 | } 529 | 530 | shinyApp(ui = ui, server = server) 531 | ``` 532 | ![Customized menu column sample ](figures/customized_menucolumn_img.png) 533 | -------------------------------------------------------------------------------- /vignettes/figures/customized_menucolumn_img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cynkra/cheetahR/6e3a7cda433776dbc59270843f56e5e29a2f8a66/vignettes/figures/customized_menucolumn_img.png -------------------------------------------------------------------------------- /vignettes/figures/default_menucolumn_img_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cynkra/cheetahR/6e3a7cda433776dbc59270843f56e5e29a2f8a66/vignettes/figures/default_menucolumn_img_1.png -------------------------------------------------------------------------------- /vignettes/figures/default_menucolumn_img_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cynkra/cheetahR/6e3a7cda433776dbc59270843f56e5e29a2f8a66/vignettes/figures/default_menucolumn_img_2.png -------------------------------------------------------------------------------- /webpack.common.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const fs = require('fs'); 3 | 4 | // defaults 5 | var outputPath = [], 6 | entryPoints = [], 7 | externals = [], 8 | misc = [], 9 | loaders = []; 10 | 11 | var outputPathFile = './srcjs/config/output_path.json', 12 | entryPointsFile = './srcjs/config/entry_points.json', 13 | externalsFile = './srcjs/config/externals.json', 14 | miscFile = './srcjs/config/misc.json', 15 | loadersFile = './srcjs/config/loaders.json'; 16 | 17 | // Read config files 18 | if(fs.existsSync(outputPathFile)){ 19 | outputPath = fs.readFileSync(outputPathFile, 'utf8'); 20 | } 21 | 22 | if(fs.existsSync(entryPointsFile)){ 23 | entryPoints = fs.readFileSync(entryPointsFile, 'utf8'); 24 | } 25 | 26 | if(fs.existsSync(externalsFile)){ 27 | externals = fs.readFileSync(externalsFile, 'utf8'); 28 | } 29 | 30 | if(fs.existsSync(miscFile)){ 31 | misc = fs.readFileSync(miscFile, 'utf8'); 32 | } 33 | 34 | if(fs.existsSync(loadersFile)){ 35 | loaders = fs.readFileSync(loadersFile, 'utf8'); 36 | } 37 | 38 | if(fs.existsSync(loadersFile)){ 39 | loaders = fs.readFileSync(loadersFile, 'utf8'); 40 | } 41 | 42 | // parse 43 | loaders = JSON.parse(loaders); 44 | misc = JSON.parse(misc); 45 | externals = JSON.parse(externals); 46 | entryPoints = JSON.parse(entryPoints); 47 | 48 | // parse regex 49 | loaders.forEach((loader) => { 50 | loader.test = RegExp(loader.test); 51 | return(loader); 52 | }) 53 | 54 | // placeholder for plugins 55 | var plugins = [ 56 | ]; 57 | 58 | // define options 59 | var options = { 60 | entry: entryPoints, 61 | output: { 62 | filename: '[name].js', 63 | path: path.resolve(__dirname, JSON.parse(outputPath)), 64 | }, 65 | externals: externals, 66 | module: { 67 | rules: loaders 68 | }, 69 | resolve: { 70 | extensions: ['.tsx', '.ts', '.js'], 71 | }, 72 | plugins: plugins 73 | }; 74 | 75 | // add misc 76 | if(misc.resolve) 77 | options.resolve = misc.resolve; 78 | 79 | // export 80 | module.exports = options; 81 | -------------------------------------------------------------------------------- /webpack.dev.js: -------------------------------------------------------------------------------- 1 | const { merge } = require('webpack-merge'); 2 | const common = require('./webpack.common.js'); 3 | 4 | module.exports = merge(common, { 5 | mode: 'development', 6 | devtool: 'inline-source-map' 7 | }); 8 | -------------------------------------------------------------------------------- /webpack.prod.js: -------------------------------------------------------------------------------- 1 | const { merge } = require('webpack-merge'); 2 | const common = require('./webpack.common.js'); 3 | 4 | module.exports = merge(common, { 5 | mode: 'production', 6 | }); 7 | --------------------------------------------------------------------------------