6.12.91 • Published 10 months ago

@swenkerorg/ipsum-nobis v6.12.91

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 @swenkerorg/ipsum-nobis --save
$ yarn add @swenkerorg/ipsum-nobis

Use Vue2

$ npm install @swenkerorg/ipsum-nobis@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>
    <@swenkerorg/ipsum-nobis :data="{ key: 'value' }" />
  </div>
</template>

<script>
import VueJsonPretty from '@swenkerorg/ipsum-nobis';
import '@swenkerorg/ipsum-nobis/lib/styles.css';

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

Use Nuxt.js

  1. In plugins/@swenkerorg/ipsum-nobis.js
import Vue from 'vue'
import VueJsonPretty from '@swenkerorg/ipsum-nobis'

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

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

webArray.prototype.flatnpmignoreefficientweakmapprivatelockfilerapidpropwhichkeyslicejsdiffeventsfunctionsspawneventEmitterbabel-corebinajvownHyBies-shimsRegExp.prototype.flagscollection.es6arraybufferfast-copybundlingECMAScript 7chromejQuerystyled-componentsdom-testing-libraryESbeanstalkconsumetimeBigUint64ArraysyntaxpurecolorshasOwnPropertyflatansichanneltoSortedsymbolcompareasciiinspectSymbol.toStringTagflattenjsonfastpackagesdynamodbtextwaapistringifysetterjoiexeceslintpluginUint32ArrayWebSocketdeep-copysource mapsymlinkshelpersstableObject.assignoffsetnativeeast-asian-widthbyteOffsethardlinksstoragegatewayfunctionaltestingreal-timecorestreamreversedlogginghigher-orderES2015queueMicrotaskArrayBuffer#sliceomitparentroute53JSON-SchemaObservablessinatraArray.prototype.findLastlinkpackage managerequalcloudtrailUint16ArrayhookformcreatetoReversedequalityconcatURLdeepfolderrmdirwafairbnbloadingECMAScript 2016findLastIndexsetroutingsortbindtschecktrimLeftglaciergraphqlpositiveECMAScript 5xhrES5tapeenvironmentimportlook-upstylingArrayprivate datasameValueZeroebssortedxmlES7definesymbolselasticachedragreworkmetadatatoolsformattingutilitiescloneWeakSetdebuggerphonecolourSystem.globaltslibdebugroutercommand-linecjkhas-ownlocationpathendpointimportexportyupcloudwatchobjectschemeframergetPrototypeOfeslintmergettysubprocesswritablejasminemapreducewritehelperavaES2021call-bindWeakMapcolumnstoStringTagsideviewcommandbufferreducestringloggerfpsES2019flatMaptypedgetterboundrouteidentifiersfile systemchromiumreadrfc4122logmochaObject.entriesponyfillpyyamlexpressintrinsicsettingschinesearrayprotochaibyteECMAScript 2023colordataviewvisual@@toStringTagsimpledbformpipespeedenumerableloadbalancingglobalmapfork__proto__classescoercibleassertionreactsnspreprocessorextendterminalcore-jsgesturesglobalThisquotemakeaccessorgetOwnPropertyDescriptorautoprefixerpnpm9negative zerotypedarraythreeRxES6guidxtermstyleguideES3fast-cloneuuidECMAScript 3matchcallboundposereact-hooksenvfinddotenvdateforEachmanipulationredirectzeroArray.prototype.containscloudformationspinnersreact-testing-librarytacitECMAScript 2017trimEndcurlmake dirgroupfileMicrosoftsomeenvironmentskinesismkdirpreadablespecquerywalkingrm -frtermsetImmediateelectroninstallwaitidvariablesgdprnopeanimationfunction.length.envfplruregular expressionsprocessschemapropertiesregexpECMAScript 2022clientes2017propertyArrayBufferbyteLengthsharedarraybufferpackage.jsonbannerfast-deep-cloneemojitraverseECMAScript 2021a11ygetintrinsicshimvestfromnodejses5optimizerpicomatchspringparentsTypedArrayjsdomBigInt64ArraynodelistenersReactiveExtensionstoolkitcircularnumberespreemovepolyfillRFC-6455superagentcloudsearchdescriptorreduxfnmatchhashlastclassnamesCSStddstyleoptionshrinkwrapec2TypeBoxio-tsObject.values_.extendcodesbrowserecmascript$.extendminimalnamefind-updommatchesshammodulesglobal objectArray.prototype.findLastIndexArray.prototype.includestesterfast-deep-copyjson-schema-validatorarktyperestfullibphonenumberdependency managerassertvartoobjectfigletes2015configurableeslintconfigtrimRighttypescriptemitArrayBuffer.prototype.slicegetoptprettyjavascriptgetrequiresafeObject.isentrieskarmaesworkspace:*argvcode pointscharactersconsoleES2023es-abstractJSONwidthassigntc39l10ndefinePropertykeysconfigObjectmanagerflagsuninstallmomentresolveprotobuftesthtmlistanbulremovePromisecolumns3syntaxerrorfull-widthstructuredClonepackageimmercontainsECMAScript 6japaneseObject.keysutilsrecursiveStreamES2022typeofInt32ArraywarningglobalsmatchAllUnderscorepluginoncejsrulesfullwidth
6.12.91

10 months ago

6.12.90

10 months ago

6.12.89

10 months ago

6.12.88

10 months ago

6.11.88

10 months ago

6.11.87

11 months ago

6.11.86

11 months ago

6.11.85

11 months ago

6.11.84

11 months ago

6.10.84

11 months ago

6.10.83

11 months ago

5.10.83

11 months ago

5.10.82

11 months ago

5.10.81

11 months ago

5.10.80

11 months ago

5.9.80

11 months ago

5.9.79

11 months ago

5.9.78

11 months ago

5.9.77

11 months ago

5.9.76

11 months ago

5.9.75

11 months ago

5.9.74

11 months ago

5.8.74

11 months ago

5.8.73

11 months ago

5.8.72

11 months ago

5.8.71

11 months ago

4.8.71

11 months ago

4.8.70

11 months ago

4.8.69

11 months ago

4.7.69

11 months ago

4.7.68

11 months ago

4.7.67

11 months ago

4.7.66

11 months ago

4.7.65

11 months ago

4.7.64

11 months ago

4.7.63

12 months ago

4.7.62

12 months ago

4.7.61

12 months ago

4.7.60

12 months ago

4.7.59

12 months ago

4.7.58

12 months ago

4.7.57

12 months ago

4.7.56

12 months ago

4.6.56

12 months ago

4.6.55

12 months ago

4.6.54

12 months ago

4.6.53

12 months ago

4.6.52

12 months ago

4.6.51

12 months ago

4.6.50

12 months ago

4.6.49

12 months ago

4.6.48

12 months ago

4.6.47

12 months ago

4.6.46

12 months ago

3.6.46

12 months ago

2.6.46

1 year ago

2.6.45

1 year ago

2.6.44

1 year ago

2.6.43

1 year ago

2.6.42

1 year ago

2.6.41

1 year ago

2.6.40

1 year ago

2.5.40

1 year ago

2.5.39

1 year ago

2.5.38

1 year ago

2.5.37

1 year ago

2.4.37

1 year ago

2.4.36

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.30

1 year ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.27

1 year ago

2.4.26

1 year ago

2.4.25

1 year ago

2.4.24

1 year ago

2.4.23

1 year ago

2.4.22

1 year ago

2.4.21

1 year ago

2.4.20

1 year ago

2.4.19

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

2.4.16

1 year ago

2.4.15

1 year ago

2.4.14

1 year ago

2.4.13

1 year ago

2.3.13

1 year ago

2.3.12

1 year ago

2.3.11

1 year ago

2.3.10

1 year ago

2.3.9

1 year ago

2.3.8

1 year ago

2.3.7

1 year ago

2.3.6

1 year ago

2.2.6

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.3

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago