1.11.98 • Published 10 months ago

@taktikorg/consequatur-voluptates v1.11.98

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Build Status npm package GitHub license Sizes NPM downloads Issues

npm.io

English | 简体中文

Features

  • As a JSON Formatter.
  • Written in TypeScript, support d.ts.
  • Support get item data from JSON.
  • Support big data.
  • Support editable.

Environment Support

  • Modern browsers, Electron and Internet Explorer 11 (with polyfills)
  • Server-side Rendering
IE / EdgeFirefoxChromeSafariElectron
IE11, Edgelast 10 versionslast 10 versionslast 10 versionslast 2 versions

Using NPM or Yarn

$ npm install @taktikorg/consequatur-voluptates --save
$ yarn add @taktikorg/consequatur-voluptates

Use Vue2

$ npm install @taktikorg/consequatur-voluptates@v1-latest --save

Usage

The 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.

<template>
  <div>
    <@taktikorg/consequatur-voluptates :data="{ key: 'value' }" />
  </div>
</template>

<script>
import VueJsonPretty from '@taktikorg/consequatur-voluptates';
import '@taktikorg/consequatur-voluptates/lib/styles.css';

export default {
  components: {
    VueJsonPretty,
  },
};
</script>

Use Nuxt.js

  1. In plugins/@taktikorg/consequatur-voluptates.js
import Vue from 'vue'
import VueJsonPretty from '@taktikorg/consequatur-voluptates'

Vue.component("@taktikorg/consequatur-voluptates", VueJsonPretty)
  1. In nuxt.config.js
css: [
  '@taktikorg/consequatur-voluptates/lib/styles.css'
],
plugins: [
  '@/plugins/@taktikorg/consequatur-voluptates'
],

Props

PropertyDescriptionTypeDefault
data(v-model)JSON data, support v-model when use editableJSON object-
collapsedNodeLengthObjects or arrays which length is greater than this threshold will be collapsednumber-
deepPaths greater than this depth will be collapsednumber-
showLengthShow the length when collapsedbooleanfalse
showLineShow the linebooleantrue
showLineNumberShow the line numberbooleanfalse
showIconShow the iconbooleanfalse
showDoubleQuotesShow doublequotes on keybooleantrue
virtualUse virtual scrollbooleanfalse
heightThe height of list when using virtualnumber400
itemHeightThe height of node when using virtualnumber20
selectedValue(v-model)Selected data pathstring, array-
rootPathRoot data pathstringroot
nodeSelectableDefines whether a node supports selection(node) => boolean-
selectableTypeSupport path select, default nonemultiple | single-
showSelectControllerShow the select controllerbooleanfalse
selectOnClickNodeTrigger select when click nodebooleantrue
highlightSelectedNodeSupport highlighting selected nodesbooleantrue
collapsedOnClickBracketsSupport click brackets to collapsebooleantrue
renderNodeKeyrender node key, or use slot #renderNodeKey({ node, defaultKey }) => vNode-
renderNodeValuerender node value, or use slot #renderNodeValue({ node, defaultValue }) => vNode-
editableSupport editablebooleanfalse
editableTriggerTriggerclick | dblclickclick
themeSets the theme of the component. Options are 'light' or 'dark', with dark mode enhancing visibility on dark backgrounds'light' \| 'dark'light

Events

Event NameDescriptionParameters
nodeClicktriggers when click node(node: NodeData)
bracketsClicktriggers when click brackets(collapsed: boolean, node: NodeData)
iconClicktriggers when click icon(collapsed: boolean, node: NodeData)
selectedChangetriggers when the selected value changed(newVal, oldVal)

Slots

Slot NameDescriptionParameters
renderNodeKeyrender node key{ node, defaultKey }
renderNodeValuerender node value{ node, defaultValue }

Contributors

ignoreidleassertsshimnumberRxJScloudformationtelephoneschemefeedECMAScript 2020simpledbgetPrototypeOflistenerseverychildrest3dappstyletsES3rssES2017cloudsearchtypescriptES2020fpscliJSONkoreanexpressexecsiderequirePromiserandomreverseclonemodulecharacterbannergetOwnPropertyDescriptoreslint-plugin[[Prototype]]Object.valuesfindreducerhtmljapanesees2018snscore-jsajvmapdroppositiveapitoolsES8l10nSethelperinvariantfull-widthregularperformantmanipulationconsolenegativesafeargvObservablecoveragereact posewhatwgarrayurlrestfulbundlinglanguageaccessorObject.isinternalcssapolloramdareduxInt8ArrayObject.entriesglobalelasticache_.extendkeyremoveisConcatSpreadablecurrieddeepcopyaccessibilityframeworkvarses-shim APIindicatorfunctionsvariablesguidutil.inspectregular expressionshasOwnPropertykarmaiexmlflatMapes7animationmakeECMAScript 2022TypeScriptform-validationenderebsformatArrayBufferArraytoReversedespreefast-clonecolumnmomenti18nstringifierprefixes5fastifyweaksetsymbolscompilermruesreact-hookstestsyntaxerrorimportexportkeysqueueinputslotObservableshasES7pinosharedvalidationequalvpcchaicommand-linesettingsjson-schema-validationoptionbytenodeyamlreducewgetforEachnamespatchfixed-widthproxyReflect.getPrototypeOfmatchestypeofgetterHyBidayjsnamefile systemlockfilenativemkdirsreadablestreamfunctionalcachefnmatchflatmoveBigUint64Arraydependenciesinternal slotec2nodejsparentes-abstractURLassertawesomesaucetypetslibStreamstc39serializerpackagesstyleguidetoArrayredirectsuperstructeslintplugina11ycodesreact-hook-formECMAScript 6dragworkspace:*utilitybyteLengthflaguser-streamsfindLastIndexUint16Arrayflagsrm -rfReactiveXdescriptioncommanderrecursiveECMAScript 5visualstylingES2022writewaittakeArray.prototype.findLastIndexdeleteiteratorshebangexecutedeep-copyES2015timehashthreeeventsECMAScript 3make direlbtoobjectregular-expressionFunction.prototype.namejoinpmignorediffcall-bindlogpolyfillhookshigher-orderfigletObject.assignlinkassertionhttpglobalThisECMAScriptdatashrinkwrapenvspinnersdefinegenericspipejsdiffextendviewwarningroutingcloudfrontruntimeglobalsharmonyECMAScript 2017folderfileformattingwalkspawnArray.prototype.flattenmetadataio-tsmatchtypedfunctionfast-copydynamodbgetoptpicomatchStyleSheetArrayBuffer.prototype.slicees2017ECMAScript 2021concatchromeparentscircularyupcreateES2016protocol-buffersUint8ClampedArrayzodECMAScript 7merge0AsyncIteratorpropertybrowserfetchfinduplook-upconcatMapstringframertacitInt16ArrayshamvaluestoragegatewayeslintconfigcontainstrimStartimmereffect-tsjshintsharedarraybufferfpBigInt64ArraycallbindtraversetransportlocalefficientsetterisMicrosoft@@toStringTagvarpathiteratetestingtermTypeBoxcolorqueueMicrotaskpreprocessortransformlibphonenumberrouterquoteWeakSetwindowcollectionrfc4122ownpostcss-pluginpropertiesposedeterministicworkersortedvalidatescheme-validationmonorepoparserbindomES5filterfastspeedconfigurablesomeglobal this valueerrorinstallerbufferssameValueZeroUint8ArraycolourprototypeclassnamedateSymbol.toStringTagCSSStyleDeclaration$.extendxtermsuperagentECMAScript 2016onceArrayBuffer#slicephonetoSortedestreebrowserslistecmascriptes-shimsglobal objectArray.prototype.findLastURLSearchParamsflattenpurecall-boundfullwidthstyled-componentsforkreadableECMAScript 2015terminalroute53specsesacornawsfullvestCSStrimRightchineseperformanceexecfileObject.keys256eventDispatchertypesafe.envES2023ajaxponyfillpusheast-asian-widthvalidloggingprettypromiseobjupredactrmdirpruneresolvecode pointsuninstallObject.definePropertyschemaprocesshasOwnreversedArray.prototype.filterjson-schemasymlinksES2018syntaxFloat64Arraytapemrbabel-coretypanionslicearraysmapreducehookformwhichObjectnopeasyncwritabletesteroptimistselfidlocationtyped arraypackage.jsondependency manageres8emitfindLastcjksymbolbddes2015ES6autoscalingreworkgitignorearktypeserializeescape.gitignoreES2019transpilemodulesObject.getPrototypeOfjavascriptlookchromiumcryptos3environmentclass-validatorIteratorlintcolorsfromdataviewprogressinstrumentationPushprivate datareact-testing-libraryrobustistanbulArray.prototype.flatMapJSON-SchemarequestStream__proto__beanstalkpoint-freehas-ownbusyString.prototype.matchAllloggerstablesubprocesstypesroutedirectorystarterdeep-cloneInt32ArrayclientutilpluginprotobuftypedarrayspostcsseventEmittercallbackarraybufferstylescolumnssetinstallpyyamlbrowserlistcomputed-typesUint32Array
1.11.98

10 months ago

1.11.97

10 months ago

1.11.96

10 months ago

1.11.95

10 months ago

1.10.95

10 months ago

1.10.94

10 months ago

1.10.93

10 months ago

1.10.92

11 months ago

1.10.91

11 months ago

1.10.90

11 months ago

1.9.90

11 months ago

1.9.89

11 months ago

1.9.88

11 months ago

1.9.87

11 months ago

1.9.86

11 months ago

1.9.85

11 months ago

1.9.84

11 months ago

1.9.83

11 months ago

1.9.82

11 months ago

1.9.81

11 months ago

1.9.80

11 months ago

1.9.79

11 months ago

1.9.78

11 months ago

1.9.77

11 months ago

1.9.76

11 months ago

1.9.75

11 months ago

1.9.74

11 months ago

1.9.73

11 months ago

1.9.72

11 months ago

1.9.71

11 months ago

1.9.70

11 months ago

1.9.69

11 months ago

1.9.68

11 months ago

1.9.67

11 months ago

1.9.66

11 months ago

1.9.65

11 months ago

1.9.64

11 months ago

1.9.63

12 months ago

1.9.62

12 months ago

1.9.61

12 months ago

1.9.60

12 months ago

1.8.60

12 months ago

1.8.59

12 months ago

1.8.58

12 months ago

1.8.57

12 months ago

1.8.56

12 months ago

1.8.55

12 months ago

1.8.54

12 months ago

1.8.53

12 months ago

1.8.52

12 months ago

1.8.51

12 months ago

1.8.50

12 months ago

1.8.49

12 months ago

1.8.48

12 months ago

1.8.47

12 months ago

1.8.46

12 months ago

1.8.45

12 months ago

1.8.44

1 year ago

1.8.43

1 year ago

1.8.42

1 year ago

1.8.41

1 year ago

1.8.40

1 year ago

1.7.40

1 year ago

1.7.39

1 year ago

1.7.38

1 year ago

1.6.38

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.5.36

1 year ago

1.4.36

1 year ago

1.4.35

1 year ago

1.3.35

1 year ago

1.3.34

1 year ago

1.3.33

1 year ago

1.3.32

1 year ago

1.3.31

1 year ago

1.3.30

1 year ago

1.3.29

1 year ago

1.3.28

1 year ago

1.3.27

1 year ago

1.2.27

1 year ago

1.2.26

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago