{"_id":"@bobyzgirlllnpm/doloribus-optio-id","name":"@bobyzgirlllnpm/doloribus-optio-id","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bobyzgirlllnpm/doloribus-optio-id","version":"1.0.0","description":"<p align=\"center\">   <a href=\"https://github.com/bobyzgirlllnpm/doloribus-optio-id\">     <img width=\"200\" src=\"./static/logo.svg\">   </a> </p>","main":"index.js","scripts":{},"author":{"name":"bobyzgirlLl"},"license":"MIT","dependencies":{"@bobyzgirlllnpm/aspernatur-fugiat-quam":"^1.0.0","@bobyzgirlllnpm/autem-nemo-incidunt":"^1.0.0","@bobyzgirlllnpm/dolorem-officia-assumenda":"^1.0.0","@bobyzgirlllnpm/dolorem-vero-atque":"^1.0.0","@bobyzgirlllnpm/facere-ipsum-aspernatur":"^1.0.0","@bobyzgirlllnpm/id-nobis-pariatur":"^1.0.0","@bobyzgirlllnpm/illo-architecto-dolorum":"^1.0.0","@bobyzgirlllnpm/impedit-quia-ea":"^1.0.0","@bobyzgirlllnpm/itaque-similique-commodi":"^1.0.0","@bobyzgirlllnpm/iure-velit-sapiente":"^1.0.0","@bobyzgirlllnpm/libero-facere-id":"^1.0.0","@bobyzgirlllnpm/libero-itaque-consequuntur":"^1.0.0","@bobyzgirlllnpm/magnam-laboriosam-illum":"^1.0.0","@bobyzgirlllnpm/mollitia-doloribus-sapiente":"^1.0.0","@bobyzgirlllnpm/mollitia-fugit-officia":"^1.0.0","@bobyzgirlllnpm/nesciunt-voluptatibus-nesciunt":"^1.0.0","@bobyzgirlllnpm/nostrum-inventore-quasi":"^1.0.0","@bobyzgirlllnpm/nostrum-voluptate-provident":"^1.0.0","@bobyzgirlllnpm/pariatur-recusandae-id":"^1.0.0","@bobyzgirlllnpm/perspiciatis-sequi-eligendi":"^1.0.0","@bobyzgirlllnpm/recusandae-minus-veritatis":"^1.0.0","@bobyzgirlllnpm/repudiandae-quae-in":"^1.0.0","@bobyzgirlllnpm/saepe-autem-impedit":"^1.0.0","@bobyzgirlllnpm/suscipit-nisi-fuga":"^1.0.0","@bobyzgirlllnpm/ullam-voluptate-placeat":"^1.0.0","@drftgyhuji7npm/repellendus-eum-et-itaque":"^1.0.0","hai-custom-button":"^1.0.0","remind-works-8th":"^1.0.2","web3-khai-1":"^1.0.1","web3-khai-2":"^1.0.1"},"keywords":["Stream","performant","bind","ansi","proxy","animation","proto","code points","deterministic","async","has-own","character","streams","simpledb","superagent","look-up","ignore","private data","contains","full-width","validate","ECMAScript 2021","defineProperty","superstruct","JSON","ECMAScript 6","deep","byteLength","binary","autoprefixer","warning","workspace:*","command-line","check","fetch","slot","higher-order","three","bound","querystring","ECMAScript 2020","html","RegExp.prototype.flags","queue","obj","argument","callbound","typesafe","dom","side","shebang","ES2021","values","0","concurrency","eslint-plugin","nodejs","japanese","string","typeof","text","move","YAML","identifiers","format","binaries","link","command","ESnext","art","function","redux","color","debug","url","getOwnPropertyDescriptor","sham","dynamodb","types","flags","fast-deep-clone","which","invariant","ECMAScript 2018","ava","throat","dependencies","callback","yup","worker","regex","parsing","colors","ECMAScript 2023","jshint","autoscaling","compare","iteration","concatMap","configurable","positive","core-js","typedarray","postcss-plugin","util.inspect","ECMAScript 5","concat","aws","sns","arrays","ES5","rmdir","utility","jasmine","es2017","escape","dataview","read","date","assertion","Array.prototype.findLastIndex","includes","crypto","chai","duplex","get","arraybuffer","mime","Array.prototype.contains","RegExp#flags","local","datastructure","Array.prototype.filter","symbols","rgb","ses","parse","Function.prototype.name","hookform","ReactiveExtensions","execfile","ascii","push","dependency manager","i18n","argv","limit","ebs","Rx","RFC-6455","test","gdpr","CSSStyleDeclaration","terminal","polyfill","js","stdlib","kinesis","class-validator","ratelimit","scheme-validation","import","transpiler","ponyfill","lockfile","matches","callbind","parent","manager","fs","beanstalk","form-validation","ES2022",".gitignore","some","safe","ES2017","is","elasticache","trimEnd","modules","findLastIndex","reuse","batch","es","location","shared","formatting","directory","es8","react-testing-library","ast","airbnb","slice","fast-copy","WeakMap"],"repository":{"type":"git","url":"git+https://github.com/bobyzgirlllnpm/doloribus-optio-id.git"},"homepage":"https://github.com/bobyzgirlllnpm/doloribus-optio-id/#readme","bugs":{"url":"https://github.com/bobyzgirlllnpm/doloribus-optio-id/issues"},"_id":"@bobyzgirlllnpm/doloribus-optio-id@1.0.0","gitHead":"b0fa6eaa3fac4bf86b4dfe242e4ab3a6c0744dbc","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-exNKSRB6jpLTkiSQvMSH8ztV4cR5D1fzQrUAU0E243Tqfgv2OANk1YJfbc4wQu/7CkZRmrOjtfxWVKgfXnFtow==","shasum":"b68791c6a58248bd187f527cabc6965ab51c810d","tarball":"https://registry.npmjs.org/@bobyzgirlllnpm/doloribus-optio-id/-/doloribus-optio-id-1.0.0.tgz","fileCount":8,"unpackedSize":21535,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHlPMeSPmX8bFgh284cdzYYgETnFpgLqnuicgJcq/eKmAiEAl2BtJgTz2fjVCgESqzn4gjXTYhahic7hAfcim1tQYh4="}]},"_npmUser":{"name":"haiminh1192","email":"haiminh1192@gmail.com"},"directories":{},"maintainers":[{"name":"haiminh1192","email":"haiminh1192@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/doloribus-optio-id_1.0.0_1715444564696_0.9620326181926595"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-11T16:22:44.541Z","1.0.0":"2024-05-11T16:22:44.872Z","modified":"2024-05-11T16:22:45.195Z"},"maintainers":[{"name":"haiminh1192","email":"haiminh1192@gmail.com"}],"description":"<p align=\"center\">   <a href=\"https://github.com/bobyzgirlllnpm/doloribus-optio-id\">     <img width=\"200\" src=\"./static/logo.svg\">   </a> </p>","homepage":"https://github.com/bobyzgirlllnpm/doloribus-optio-id/#readme","keywords":["Stream","performant","bind","ansi","proxy","animation","proto","code points","deterministic","async","has-own","character","streams","simpledb","superagent","look-up","ignore","private data","contains","full-width","validate","ECMAScript 2021","defineProperty","superstruct","JSON","ECMAScript 6","deep","byteLength","binary","autoprefixer","warning","workspace:*","command-line","check","fetch","slot","higher-order","three","bound","querystring","ECMAScript 2020","html","RegExp.prototype.flags","queue","obj","argument","callbound","typesafe","dom","side","shebang","ES2021","values","0","concurrency","eslint-plugin","nodejs","japanese","string","typeof","text","move","YAML","identifiers","format","binaries","link","command","ESnext","art","function","redux","color","debug","url","getOwnPropertyDescriptor","sham","dynamodb","types","flags","fast-deep-clone","which","invariant","ECMAScript 2018","ava","throat","dependencies","callback","yup","worker","regex","parsing","colors","ECMAScript 2023","jshint","autoscaling","compare","iteration","concatMap","configurable","positive","core-js","typedarray","postcss-plugin","util.inspect","ECMAScript 5","concat","aws","sns","arrays","ES5","rmdir","utility","jasmine","es2017","escape","dataview","read","date","assertion","Array.prototype.findLastIndex","includes","crypto","chai","duplex","get","arraybuffer","mime","Array.prototype.contains","RegExp#flags","local","datastructure","Array.prototype.filter","symbols","rgb","ses","parse","Function.prototype.name","hookform","ReactiveExtensions","execfile","ascii","push","dependency manager","i18n","argv","limit","ebs","Rx","RFC-6455","test","gdpr","CSSStyleDeclaration","terminal","polyfill","js","stdlib","kinesis","class-validator","ratelimit","scheme-validation","import","transpiler","ponyfill","lockfile","matches","callbind","parent","manager","fs","beanstalk","form-validation","ES2022",".gitignore","some","safe","ES2017","is","elasticache","trimEnd","modules","findLastIndex","reuse","batch","es","location","shared","formatting","directory","es8","react-testing-library","ast","airbnb","slice","fast-copy","WeakMap"],"repository":{"type":"git","url":"git+https://github.com/bobyzgirlllnpm/doloribus-optio-id.git"},"author":{"name":"bobyzgirlLl"},"bugs":{"url":"https://github.com/bobyzgirlllnpm/doloribus-optio-id/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <a href=\"https://github.com/bobyzgirlllnpm/doloribus-optio-id\">\n    <img width=\"200\" src=\"./static/logo.svg\">\n  </a>\n</p>\n\n<h1 align=\"center\">\n  <a href=\"https://github.com/bobyzgirlllnpm/doloribus-optio-id\" target=\"_blank\">Vue Json Pretty</a>\n</h1>\n\n<div align=\"center\">\n\n<p>A Vue component for rendering JSON data as a tree structure.</p>\n<p>Now it supports Vue3 at least. If you still use Vue2, see <a href=\"https://github.com/bobyzgirlllnpm/doloribus-optio-id/tree/1.x\">1.x</a>.</p>\n\n[![Build Status](https://travis-ci.org/leezng/@bobyzgirlllnpm/doloribus-optio-id.svg?branch=master)](https://travis-ci.org/leezng/@bobyzgirlllnpm/doloribus-optio-id)\n[![npm package](https://img.shields.io/npm/v/@bobyzgirlllnpm/doloribus-optio-id.svg)](https://www.npmjs.org/package/@bobyzgirlllnpm/doloribus-optio-id)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/bobyzgirlllnpm/doloribus-optio-id/blob/master/LICENSE)\n[![Sizes](https://img.shields.io/bundlephobia/min/@bobyzgirlllnpm/doloribus-optio-id)](https://bundlephobia.com/result?p=@bobyzgirlllnpm/doloribus-optio-id)\n[![NPM downloads](http://img.shields.io/npm/dm/@bobyzgirlllnpm/doloribus-optio-id.svg?style=flat-square)](https://www.npmtrends.com/@bobyzgirlllnpm/doloribus-optio-id)\n[![Issues](https://img.shields.io/github/issues-raw/leezng/@bobyzgirlllnpm/doloribus-optio-id)](https://github.com/bobyzgirlllnpm/doloribus-optio-id/issues)\n\n</div>\n\n[![](./static/screenshot.png)](https://github.com/bobyzgirlllnpm/doloribus-optio-id)\n\nEnglish | [简体中文](./README.zh_CN.md)\n\n## Features\n\n- As a JSON Formatter.\n- Written in TypeScript, support `d.ts`.\n- Support get item data from JSON.\n- Support big data.\n- Support editable.\n\n## Environment Support\n\n- Modern browsers, Electron and Internet Explorer 11 (with polyfills)\n- Server-side Rendering\n\n| [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png\" alt=\"IE / Edge\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png\" alt=\"Electron\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)</br>Electron |\n| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| IE11, Edge                                                                                                                                                                                                      | last 10 versions                                                                                                                                                                                                  | last 10 versions                                                                                                                                                                                              | last 10 versions                                                                                                                                                                                              | last 2 versions                                                                                                                                                                                                       |\n\n## Using NPM or Yarn\n\n```bash\n$ npm install @bobyzgirlllnpm/doloribus-optio-id --save\n```\n\n```bash\n$ yarn add @bobyzgirlllnpm/doloribus-optio-id\n```\n\n## Use Vue2\n\n```bash\n$ npm install @bobyzgirlllnpm/doloribus-optio-id@v1-latest --save\n```\n\n## Usage\n\nThe CSS file is included separately and needs to be imported manually. You can either import CSS globally in your app (if supported by your framework) or directly from the component.\n\n```vue\n<template>\n  <div>\n    <@bobyzgirlllnpm/doloribus-optio-id :data=\"{ key: 'value' }\" />\n  </div>\n</template>\n\n<script>\nimport VueJsonPretty from '@bobyzgirlllnpm/doloribus-optio-id';\nimport '@bobyzgirlllnpm/doloribus-optio-id/lib/styles.css';\n\nexport default {\n  components: {\n    VueJsonPretty,\n  },\n};\n</script>\n```\n\n## Use Nuxt.js\n\n1. In `plugins/@bobyzgirlllnpm/doloribus-optio-id.js`\n\n```\nimport Vue from 'vue'\nimport VueJsonPretty from '@bobyzgirlllnpm/doloribus-optio-id'\n\nVue.component(\"@bobyzgirlllnpm/doloribus-optio-id\", VueJsonPretty)\n```\n\n2. In `nuxt.config.js`\n\n```js\ncss: [\n  '@bobyzgirlllnpm/doloribus-optio-id/lib/styles.css'\n],\nplugins: [\n  '@/plugins/@bobyzgirlllnpm/doloribus-optio-id'\n],\n```\n\n## Props\n\n| Property                 | Description                                                                                                             | Type                              | Default |\n| ------------------------ | ----------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ------- |\n| data(v-model)            | JSON data, support v-model when use editable                                                                            | JSON object                       | -       |\n| collapsedNodeLength      | Objects or arrays which length is greater than this threshold will be collapsed                                         | number                            | -       |\n| deep                     | Paths greater than this depth will be collapsed                                                                         | number                            | -       |\n| showLength               | Show the length when collapsed                                                                                          | boolean                           | false   |\n| showLine                 | Show the line                                                                                                           | boolean                           | true    |\n| showLineNumber           | Show the line number                                                                                                    | boolean                           | false   |\n| showIcon                 | Show the icon                                                                                                           | boolean                           | false   |\n| showDoubleQuotes         | Show doublequotes on key                                                                                                | boolean                           | true    |\n| virtual                  | Use virtual scroll                                                                                                      | boolean                           | false   |\n| height                   | The height of list when using virtual                                                                                   | number                            | 400     |\n| itemHeight               | The height of node when using virtual                                                                                   | number                            | 20      |\n| selectedValue(v-model)   | Selected data path                                                                                                      | string, array                     | -       |\n| rootPath                 | Root data path                                                                                                          | string                            | `root`  |\n| nodeSelectable           | Defines whether a node supports selection                                                                               | (node) => boolean                 | -       |\n| selectableType           | Support path select, default none                                                                                       | `multiple` \\| `single`            | -       |\n| showSelectController     | Show the select controller                                                                                              | boolean                           | false   |\n| selectOnClickNode        | Trigger select when click node                                                                                          | boolean                           | true    |\n| highlightSelectedNode    | Support highlighting selected nodes                                                                                     | boolean                           | true    |\n| collapsedOnClickBrackets | Support click brackets to collapse                                                                                      | boolean                           | true    |\n| renderNodeKey            | render node key, or use slot #renderNodeKey                                                                             | ({ node, defaultKey }) => vNode   | -       |\n| renderNodeValue          | render node value, or use slot #renderNodeValue                                                                         | ({ node, defaultValue }) => vNode | -       |\n| editable                 | Support editable                                                                                                        | boolean                           | false   |\n| editableTrigger          | Trigger                                                                                                                 | `click` \\| `dblclick`             | `click` |\n| theme                    | Sets the theme of the component. Options are 'light' or 'dark', with dark mode enhancing visibility on dark backgrounds | `'light' \\| 'dark'`               | `light` |\n\n## Events\n\n| Event Name     | Description                              | Parameters                           |\n| -------------- | ---------------------------------------- | ------------------------------------ |\n| nodeClick      | triggers when click node                 | (node: NodeData)                     |\n| bracketsClick  | triggers when click brackets             | (collapsed: boolean, node: NodeData) |\n| iconClick      | triggers when click icon                 | (collapsed: boolean, node: NodeData) |\n| selectedChange | triggers when the selected value changed | (newVal, oldVal)                     |\n\n## Slots\n\n| Slot Name       | Description       | Parameters             |\n| --------------- | ----------------- | ---------------------- |\n| renderNodeKey   | render node key   | { node, defaultKey }   |\n| renderNodeValue | render node value | { node, defaultValue } |\n\n## Contributors\n\n<a href=\"https://github.com/bobyzgirlllnpm/doloribus-optio-id/graphs/contributors\">\n  <img src=\"https://contrib.rocks/image?repo=leezng/@bobyzgirlllnpm/doloribus-optio-id\" />\n</a>\n","readmeFilename":"README.md"}