{"_id":"@advanced-rest-client/saved-menu","_rev":"12-51649ffeb80d52e653b5a4c71fb1f11d","name":"@advanced-rest-client/saved-menu","dist-tags":{"latest":"3.0.0"},"versions":{"2.0.0":{"name":"@advanced-rest-client/saved-menu","version":"2.0.0","license":"Apache-2.0","_id":"@advanced-rest-client/saved-menu@2.0.0","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"homepage":"https://github.com/advanced-rest-client/saved-menu#readme","bugs":{"url":"https://github.com/advanced-rest-client/saved-menu/issues","email":"arc@mulesoft.com"},"dist":{"shasum":"a9a02036c02bc7f21c885ba2817ffb5064dc60d1","tarball":"https://registry.npmjs.org/@advanced-rest-client/saved-menu/-/saved-menu-2.0.0.tgz","fileCount":18,"integrity":"sha512-VIM2s2Swf6KnoE1CAXsofk5itlTyEhFM9L4DLtEv6cYFNllq96joubIcvsg6kcRbHhOqTIyFAPFS7iARC2dqxQ==","signatures":[{"sig":"MEUCIQDbpcNUUpBbtChk80GRH1SgmOxARtLAvPA/pCxOuY+EEAIgANBZsFIXwW4mgIqWAMQ/wpx9jiETi3EuXKRq9ZOO1Mo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":130896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLw1ZCRA9TVsSAnZWagAAUvMP/ivNwE2dbZq9rkGmWdZt\nwhtbczXuRXV+oBT4KBlGaglPHsrjnqyr8rF2NkktRUIRHCdz3pCTTPluAUgW\nlgX4ifkHjV1fp+bMtVdrvXRRXGBN+MYNL43WtvU/ifKMJyG77Y0koMy5oWj5\nE1ePXcHjlVHtOUDl2s7E3KUynGi3QbrWvneAL+C+tvD5JKgexOnzAgIDF8HP\nEmUW1xpEHVQ2nSrV7VqJlhuRIQeIRzB8ZqDuWp6RGFWn8rf8/rW2MqpV4cdt\nelYB9xJT8VK829oNRjjRSYYygk7ickxHhBwpaeh+4Ljp8k1a1G6/klDuYa5p\nduS16XzVj9rWBSmQYZTN60iEgGnzmPqHSeNbU3QAzWb/GHLZkqeWxhGdIHcO\nz8MKjqoEowvx0B8kBkrcFEKJrekk1itPu8MbZhfZM0BlL6G/rRMzhy+eVf/b\nyq0XFRn+0xMLqPQFQePMuVs2gzS5akJwvy9NO0W0kXsW57MG6co98AesrZcc\nBV/j5KJJp+OyYBD6ZEd1khPVPXGLpsaAURgE/XDWzAlqKM6REAflfb6h61SS\nJnGBSD1J1H1BD5aMDhztOvZ80hV5ITXGs9JLviBurxrDhurmNMg8sqexRDLW\n6/6tyu8U3wVbbe/Tbdly+gzJOtTM0BuX1RF/74eyzE42o+HnSsa+ZHmvMnqK\nOwht\r\n=nIMH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"saved-menu.html","authors":["Pawel Psztyc","The Advanced REST client authors <arc@mulesoft.com>"],"gitHead":"0ffa49f5722171044d83b61e30f7e395e04b8ab4","private":false,"scripts":{"lint":"polymer lint saved-menu.html","test":"polymer test --plugin local","test-sauce":"polymer test --plugin sauce --job-name \"saved-menu:local-test\"","update-types":"gen-typescript-declarations --deleteExisting --outDir ."},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"deprecated":"Use @advanced-rest-client/arc-menu instead.","repository":{"url":"git://github.com/advanced-rest-client/saved-menu.git","type":"git"},"_npmVersion":"6.5.0","description":"A list of history items in the ARC main menu","directories":{},"_nodeVersion":"8.11.2","_hasShrinkwrap":false,"devDependencies":{"@polymer/gen-typescript-declarations":"^1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/saved-menu_2.0.0_1546587481044_0.3976718821244143","host":"s3://npm-registry-packages"}},"3.0.0-preview.1":{"name":"@advanced-rest-client/saved-menu","version":"3.0.0-preview.1","keywords":["web-components","polymer"],"license":"Apache-2.0","_id":"@advanced-rest-client/saved-menu@3.0.0-preview.1","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"contributors":[{"name":"Pawel Psztyc"},{"name":"The Advanced REST client authors","email":"arc@mulesoft.com"}],"homepage":"https://github.com/advanced-rest-client/saved-menu#readme","bugs":{"url":"https://github.com/advanced-rest-client/saved-menu/issues","email":"arc@mulesoft.com"},"dist":{"shasum":"42e50ef70844e53cb4f4b503ec2260f2caed83cb","tarball":"https://registry.npmjs.org/@advanced-rest-client/saved-menu/-/saved-menu-3.0.0-preview.1.tgz","fileCount":6,"integrity":"sha512-2NgZ8/MVAi2i81JkIQVI3QAf7fdH679CugqVQL9+kmAEZdKBZM8jNCMupEFzjDkWmxuGfCgOI+HuNQIMjpIKHw==","signatures":[{"sig":"MEYCIQC6AtuxUnlVeM50wWRV3i+Y3nae3k1XQtSlnpCIri7tJwIhAIKvwLYWzp3W1BVQCMSvjIMXW97QllF6lMcs/D/cNKpZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpF9WCRA9TVsSAnZWagAAFGMP/0W0ZA+NOswCd2PX/EIt\nrNL4yRK59438aALvJfyrOo9cOf3GQmTsJTTzcpVcy9yCEEzKgTGspmJUGOhq\nuVDf4QtOpH5SLd6GyGdKQvRQpMo2/Rhr4jaxslw3P39PtnxCduvlxblxwBs9\nG7XptGLM6pCJrRPdOy9pXD5CFfx2yjzDvEqEqEyCZYLXRk+4zSmRTAOq0e1c\nS0P/vVMOt8SEwXqBbdpJRMndZBTOAbQp3fZsFFBCBmRI1Yy3wso+lm6QiJd+\nN4nvVYRvy8CcPJytU4GpV59teHPE60ATTndRADBsLD/G9a4C7deu+e/yMj55\noa4A6YODSJfVgZi29Y48wxSb+u8jq3vAaE6mxYccbBUx8vWO/kYNKeOpQPn0\nzsUkWUZTbFaf0rD+pN0VZ+xn3sA9TNz38yQkwbHGnqrp2WYJbd15NvQ5FdAQ\neuvK1Ww96a3K+Bhevg4r7ZGep51RdksqUO//P620vY7Erc5DoW7WD1xr6L+I\nHwzD4uynCPxjNF4LSX2Gluv6zxdooR5MbmB+Xo/DDMlT1DKkf9o3UTpyv9E4\nlS29Mi0+13FKdSK5DAJm2p6tNcH7MNNksoG82FzXDz1zggai4gCI+/5YkyKZ\nerRtEcIwjJgt1linUWHKND7mjuBT1fr6vMEoN0w7nDNPEvyzZOuNIZqlX+ig\nPidb\r\n=FRyE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"saved-menu.js","authors":["Pawel Psztyc","The Advanced REST client authors <arc@mulesoft.com>"],"gitHead":"5ce89d98ff4ffe7685b1fc26db0c0e5f0c5647de","scripts":{"lint":"polymer lint saved-menu.html","test":"polymer test --plugin local","test-sauce":"polymer test --plugin sauce --job-name \"saved-menu:local-test\"","update-types":"gen-typescript-declarations --deleteExisting --outDir ."},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"repository":{"url":"git://github.com/advanced-rest-client/saved-menu.git","type":"git"},"_npmVersion":"6.9.0","description":"A list of history items in the ARC main menu","directories":{},"_nodeVersion":"10.14.0","dependencies":{"@polymer/polymer":"^3.0.0","@polymer/iron-icon":"^3.0.0","@polymer/iron-list":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-ripple":"^3.0.0","@polymer/paper-progress":"^3.0.0","@advanced-rest-client/arc-icons":"^3.0.0-preview.2","@api-components/http-method-label":"^3.0.0-preview.2","@advanced-rest-client/saved-list-mixin":"^3.0.0-preview.1","@advanced-rest-client/requests-list-mixin":"^3.0.0-preview.1"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^5.2.0","sinon":"^7.2.3","wct-mocha":"^1.0.0","web-animations-js":"^2.3.1","@polymer/paper-toast":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/test-fixture":"^4.0.2","@polymer/paper-listbox":"^3.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-test-helpers":"^3.0.0","@polymer/iron-component-page":"^4.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-toggle-button":"^3.0.0","@webcomponents/webcomponentsjs":"^2.0.0","@advanced-rest-client/arc-models":"^3.0.0-preview.3","@advanced-rest-client/history-menu":"^3.0.0-preview.1","@polymer/gen-typescript-declarations":"^1.6.1","@advanced-rest-client/arc-data-generator":"^3.0.0-preview.1","@advanced-rest-client/arc-electron-default-theme":"^3.0.0-preview.2"},"_npmOperationalInternal":{"tmp":"tmp/saved-menu_3.0.0-preview.1_1554276181634_0.6188612007690166","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@advanced-rest-client/saved-menu","version":"3.0.0","keywords":["advanced-rest-client","app-menu","history"],"license":"Apache-2.0","_id":"@advanced-rest-client/saved-menu@3.0.0","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"contributors":[{"name":"The Advanced REST client authors","email":"arc@mulesoft.com"}],"homepage":"https://github.com/advanced-rest-client/saved-menu#readme","bugs":{"url":"https://github.com/advanced-rest-client/saved-menu/issues","email":"arc@mulesoft.com"},"dist":{"shasum":"c222f16d268e0e00f9e522fc611adcaba235d334","tarball":"https://registry.npmjs.org/@advanced-rest-client/saved-menu/-/saved-menu-3.0.0.tgz","fileCount":6,"integrity":"sha512-Y7QUjiCWN/g8x5gXIMoE4gU4+jwbl9AB9g1krQIWMyl0FsADVgX50bbMOhilKej53ujxXutlG7Yz5Jhq19A44Q==","signatures":[{"sig":"MEUCIAqRZMhrhb9z4ZZJubVvF1yZ3vhnQ/f8x9/nHDi12NfeAiEApOuMslKOMdUu5QhzQfWUEfaw9Y1OGZCvjGCjCnqc5n4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62436,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdceBdCRA9TVsSAnZWagAA+K4P/1Pfv9fGSM17jpwOYOl3\n6MD0wxk1799Av7KN+tiDCPjpQwTi7SwWe6VtRNEgrw4tTcg5m8o/izV1mu77\nS1rjdvwAm585hmbE4aTt9NcUbbTEAaxduxQpHT8kYLMweCWsS/D2wpiup6XH\np9MaJ7peQKQopUoLgrt4E5/u4oTO3spGOcaewpPLI+5eZZT0gCoZjHSOtGSN\nYjdP2svkYKPUDh0ZI+lr8xwbvtWL7/YaQy5mqFDPNbvgl7JmAMmXDLGnZcmT\nFmooPCaNJ9ZBwQVBqi2Xw/twh0EdCI7Hc/QyMtPJ8GjKq6DI2ehrJibCtXRY\nWTmWRtluPfZzUACzdxPtVG9UIU8a+t+eoPCk2Rd68TRuoU3Qd5zI7xF2jxLg\nI5M9stJd/NMefgjT1/ImfTFSZZth+1KebEyGGGfmdxW3+f7qxzFeh2f3d+aE\n9fVIYuOrLd2mnxDE/xYfLpBo5qE/LwgVucL92/joilLwUfWMzJItiRTwpJRu\ns03qFzWGYwXE9CLkMYOIR59FIbAvz67XYmUgq1fesm26/02f0/G0SpvnglWP\nTxyntAviBBo0BnxVB2PBBA+VHafmbs0wzZ0hMFrdGMz1C7onH30GmWOnXLn2\nRyG+0oHfKyvovOqLPz981h8NnFpppInA2d2pYuz+YJX5D+O42rSmLxW7aCQE\nvf31\r\n=00Jl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"saved-menu.js","authors":["Pawel Psztyc"],"gitHead":"abc16e7b0a182d3ee93066894ba38d5d48659abe","scripts":{"lint":"npm run lint:eslint && npm run lint:prettier","test":"karma start --coverage","start":"es-dev-server --app-index demo/index.html --node-resolve --open --watch","format":"npm run format:eslint && npm run format:prettier","test:sl":"karma start karma.sl.config.js --compatibility all --coverage","test:watch":"karma start --auto-watch=true --single-run=false","lint:eslint":"eslint --ext .js,.html .","test:legacy":"karma start --compatibility all --coverage","update-types":"gen-typescript-declarations --deleteExisting --outDir .","format:eslint":"eslint --ext .js,.html . --fix","lint:prettier":"prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)","format:prettier":"prettier \"**/*.js\" --write","test:legacy:watch":"karma start --compatibility all --auto-watch=true --single-run=false","start:compatibility":"es-dev-server --app-index demo/index.html --compatibility all --node-resolve --open --watch"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"deprecated":"Use @advanced-rest-client/arc-menu instead.","repository":{"url":"git://github.com/advanced-rest-client/saved-menu.git","type":"git"},"_npmVersion":"6.11.3","description":"A list of saved items in the ARC main menu","directories":{},"lint-staged":{"*.js":["eslint --fix","git add"]},"_nodeVersion":"10.15.3","dependencies":{"lit-element":"^2.2.1","@polymer/iron-icon":"^3.0.0","@polymer/paper-progress":"^3.0.0","@advanced-rest-client/arc-icons":"^3.0.0","@api-components/http-method-label":"^3.0.0","@advanced-rest-client/saved-list-mixin":"^3.0.1","@anypoint-web-components/anypoint-item":"^1.0.3","@advanced-rest-client/requests-list-mixin":"^3.0.1","@anypoint-web-components/anypoint-menu-mixin":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^1.0.0","sinon":"^7.4.2","deepmerge":"^4.0.0","lint-staged":"^8.0.0","es-dev-server":"^1.17.2","@commitlint/cli":"^8.1.0","@open-wc/testing":"^2.3.3","web-animations-js":"^2.3.1","@polymer/paper-toast":"^3.0.0","@open-wc/testing-karma":"^3.1.29","@polymer/paper-toggle-button":"^3.0.1","@commitlint/config-conventional":"^7.0.0","@advanced-rest-client/arc-models":"^3.0.0-preview.7","@advanced-rest-client/history-menu":"^3.0.0","@advanced-rest-client/eslint-config":"^1.1.2","@polymer/gen-typescript-declarations":"^1.6.2","@advanced-rest-client/arc-demo-helper":"^1.0.14","@advanced-rest-client/prettier-config":"^0.1.0","@advanced-rest-client/testing-karma-sl":"^1.0.4","@anypoint-web-components/anypoint-input":"^0.2.4","@advanced-rest-client/arc-data-generator":"^3.0.3","@anypoint-web-components/anypoint-button":"^1.0.10","@anypoint-web-components/anypoint-listbox":"^1.0.3","@advanced-rest-client/http-method-selector":"^3.0.0","@anypoint-web-components/anypoint-checkbox":"^1.0.1","@anypoint-web-components/anypoint-radio-button":"^0.1.2","@anypoint-web-components/anypoint-dropdown-menu":"^0.1.10"},"_npmOperationalInternal":{"tmp":"tmp/saved-menu_3.0.0_1567744092890_0.5749181061498245","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-01-04T07:38:00.889Z","modified":"2026-04-07T19:31:07.394Z","2.0.0":"2019-01-04T07:38:01.215Z","3.0.0-preview.1":"2019-04-03T07:23:01.775Z","3.0.0":"2019-09-06T04:28:13.105Z"},"bugs":{"url":"https://github.com/advanced-rest-client/saved-menu/issues","email":"arc@mulesoft.com"},"license":"Apache-2.0","homepage":"https://github.com/advanced-rest-client/saved-menu#readme","keywords":["advanced-rest-client","app-menu","history"],"repository":{"url":"git://github.com/advanced-rest-client/saved-menu.git","type":"git"},"description":"A list of saved items in the ARC main menu","contributors":[{"name":"The Advanced REST client authors","email":"arc@mulesoft.com"}],"maintainers":[{"email":"jarrodek@gmail.com","name":"jarrodek"},{"email":"alexperez@mulesoft.com","name":"alexperez_march_2024"},{"email":"elmellidiego@gmail.com","name":"dmacias"}],"readme":"[![Published on NPM](https://img.shields.io/npm/v/@advanced-rest-client/saved-menu.svg)](https://www.npmjs.com/package/@advanced-rest-client/saved-menu)\n\n[![Build Status](https://travis-ci.org/advanced-rest-client/saved-menu.svg?branch=stage)](https://travis-ci.org/advanced-rest-client/saved-menu)\n\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/advanced-rest-client/saved-menu)\n\n# &lt;saved-menu&gt;\n\nThe saved menu for Advanced REST Client is accessible list of saved items retrieved from local data store.\n\n## Usage\n\n### Installation\n```\nnpm install --save @advanced-rest-client/saved-menu\n```\n\n### In a LitElement\n\n```js\nimport { LitElement, html } from 'lit-element';\nimport '@advanced-rest-client/saved-menu/saved-menu.js';\n\nclass SampleElement extends LitElement {\n  get styles() {\n    return css`\n      saved-menu {\n        height: 500px;\n      }\n    `;\n  }\n\n  render() {\n    return html`\n    <saved-menu draggableenabled></saved-menu>\n    `;\n  }\n}\ncustomElements.define('sample-element', SampleElement);\n```\n\n### List sizing\n\nIt is important to set implicit height of the element. It can be static value like `500px`, relative value like `100%` as long as a parent is sized for height, or a flex value, as long as parent is sized for height.\nThe list of requests is set to load only portion of the requests from the data store and load more when list scroll is near end. If there's no scroll then the element will load whole data store at initialization time.\n\n### Drag and drop\n\nAPI components related to a request object support drag and drop. Set `draggableenabled` property to enable the support.\n\nThe `DataTransfer` property of the drag event contains `effectAllowed` set to `copy` as this is only allowed operation on a saved object. Only targets that allow the same effect will accept the saved item.\nThe same propery contains serialized request data under `arc/request-object` media type. It contains request ID under `arc/saved-request` and `arc-source/saved-menu` media types.\n\n```javascript\n_dropHandler(e) {\n  e.preventDefault();\n  const data = e.dataTransfer.getData('arc/request-object');\n  const request = JSON.parse(data);\n  const id = e.dataTransfer.getData('arc/saved-request');\n  console.log(request, id);\n}\n```\n\n## Development\n\n```sh\ngit clone https://github.com/advanced-rest-client/saved-list-mixin\ncd saved-list-mixin\nnpm install\n```\n\n### Running the tests\n\n```sh\nnpm test\n```\n\n## API components\n\nThis components is a part of [API components ecosystem](https://elements.advancedrestclient.com/)\n","readmeFilename":"README.md"}