{"id":28433512,"url":"https://github.com/vlad-km/jq","last_synced_at":"2025-06-30T07:32:24.988Z","repository":{"id":180154004,"uuid":"115602086","full_name":"vlad-km/jq","owner":"vlad-km","description":"JQ package - JSCL wrapper for JQuery library","archived":false,"fork":false,"pushed_at":"2024-03-01T21:35:42.000Z","size":87,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-05T18:09:59.672Z","etag":null,"topics":["common-lisp","jquery","jscl","moren"],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vlad-km.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-12-28T08:24:30.000Z","updated_at":"2024-02-27T20:34:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"a99cd4fe-ea8f-469e-a24e-a5bbff6712d5","html_url":"https://github.com/vlad-km/jq","commit_stats":null,"previous_names":["vlad-km/jq"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vlad-km/jq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlad-km%2Fjq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlad-km%2Fjq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlad-km%2Fjq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlad-km%2Fjq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vlad-km","download_url":"https://codeload.github.com/vlad-km/jq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlad-km%2Fjq/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262731555,"owners_count":23355378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["common-lisp","jquery","jscl","moren"],"created_at":"2025-06-05T18:09:59.387Z","updated_at":"2025-06-30T07:32:24.965Z","avatar_url":"https://github.com/vlad-km.png","language":"Common Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JQ package \n\nPackage **JQ** - CommonLisp JSCL (Moren edition) wrap for JQuery library.\n\n\n# Release\n\n\n## Names convention\n\nIn the release all files have the following names:\n\n```\n\u003cpackage\u003e:\u003cprefix\u003e\u003cfunction-ename\u003e\n\u003cpackage\u003e  ::= jq\n\u003cprefix\u003e   ::= [q] | [qui]\n\u003cfunction-name\u003e ::=  {dot} function-name as used at JQuery\n```\n\nSo: JS-function _`.next`_ this is a lisp name  _`(jq:[q].next)`_ or _`([q].next)`_\n\n#### For example \nNext function from demo https://jqueryui.com/droppable/#photo-manager\n\n```js\nfunction recycleImage( $item ) {\n\t\t\t$item.fadeOut(function() {\n\t\t\t\t$item\n\t\t\t\t\t.find( \"a.ui-icon-refresh\" )\n\t\t\t\t\t\t.remove()\n\t\t\t\t\t.end()\n\t\t\t\t\t.css( \"width\", \"96px\")\n\t\t\t\t\t.append( trash_icon )\n\t\t\t\t\t.find( \"img\" )\n\t\t\t\t\t\t.css( \"height\", \"72px\" )\n\t\t\t\t\t.end()\n\t\t\t\t\t.appendTo( $gallery )\n\t\t\t\t\t.fadeIn();\n\t\t\t});\n\t\t}\n```\n\ncan be implemented as\n\n```lisp\n(defun recycle-image ($item)\n  (let* ((fade-out-fn\n          (lambda ()\n            (funcall\n             (chain (rcurry #'[q].find \"a.ui-icon-refresh\")\n                        #'[q].end\n                        (rcurry #'[q].css  \"height\" \"72px\")\n                        (rcurry #'[q].append trash_icon)\n                        (rcurry #'[q].find \"img\")\n                        (rcurry #'[q].css \"height\" \"72px\")\n                        #'[q].end\n                        (rcurry #'[q].append-to $gallery)\n                        #'[q].fade-in)\n             $item))))\n    (jq:fade-out fade-out-fn)))\n```\n\n## Disclaim\nСompiles only in the environment _`JSCL (Moren edition) Electron`_\n\nJQuiery version _`1.8.3`_\n\nAll Function comments are from https://api.jquery.com \u0026 https://api.jqueryui.com/\n\n\n## Category: Class Attribute\n\u003e Location: \n\n\n#### .addClass() [+]\nAdds the specified class(es) to each element in the set of matched elements.\n\n#### .hasClass() [+]\nDetermine whether any of the matched elements are assigned the given class.\n\n#### .removeClass() [+]\nRemove a single class, multiple classes, or all classes from each element in the set of matched elements.\n\n#### .toggleClass() [+]\nAdd or remove one or more classes from each element in the set of matched elements, depending on either the class’s presence or the value of the state argument.\n\n\n## Category: Dimensions\n\u003e Location: \n\n\n#### .height() [+]\nGet the current computed height for the first element in the set of matched elements or set the height of every matched element.\n\n#### .innerHeight() [+]\nGet the current computed inner height (including padding but not border) for the first element in the set of matched elements or set the inner height of every matched element.\n\n#### .innerWidth() [+]\nGet the current computed inner width (including padding but not border) for the first element in the set of matched elements or set the inner width of every matched element.\n\n#### .outerHeight() [+]\nGet the current computed outer height (including padding, border, and optionally margin) for the first element in the set of matched elements or set the outer height of every matched element.\n\n#### .outerWidth() [+]\nGet the current computed outer width (including padding, border, and optionally margin) for the first element in the set of matched elements or set the outer width of every matched element.\n\n#### .width() [+]\nGet the current computed width for the first element in the set of matched elements or set the width of every matched element.\n\n\n\n## Category: DOM Insertion, Around\n\u003e Location: \n\n\n#### .unwrap() [+]\nRemove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.\n\n#### .wrap() [+]\nWrap an HTML structure around each element in the set of matched elements.\n\n#### .wrapAll() [+]\nWrap an HTML structure around all elements in the set of matched elements.\n\n#### .wrapInner() [+]\nWrap an HTML structure around the content of each element in the set of matched elements.\n\n\n## Category: DOM Insertion, Inside\n\u003e Location: \n\n\n#### .append() [+]\nInsert content, specified by the parameter, to the end of each element in the set of matched elements.\n\n#### .appendTo() [+]\nInsert every element in the set of matched elements to the end of the target.\n\n#### .html() [+]\nGet the HTML contents of the first element in the set of matched elements or set the HTML contents of every matched element.\n\n#### .prepend() [+]\nInsert content, specified by the parameter, to the beginning of each element in the set of matched elements.\n\n#### .prependTo() [+]\nInsert every element in the set of matched elements to the beginning of the target.\n\n#### .text() [+]\nGet the combined text contents of each element in the set of matched elements, including their descendants, or set the text contents of the matched elements.\n_________________________________\n\n## Category: DOM Insertion, Outside\n\u003e Location: \n\n#### .after() [+]\nInsert content, specified by the parameter, after each element in the set of matched elements.\n\n#### .before() [+]\nInsert content, specified by the parameter, before each element in the set of matched elements.\n\n#### .insertAfter() [+]\nInsert every element in the set of matched elements after the target.\n\n#### .insertBefore() [+]\nInsert every element in the set of matched elements before the target.\n_________________________________\n\n## Category: DOM Removal\n\u003e Location: \n\n#### .detach() [+]\nRemove the set of matched elements from the DOM.\n\n#### .empty() [+]\nRemove all child nodes of the set of matched elements from the DOM.\n\n#### .remove() [+]\nRemove the set of matched elements from the DOM.\n_________________________________\n\n## Category: DOM Replacement\n\u003e Location: \n\n#### .replaceAll() [+]\nReplace each target element with the set of matched elements.\n\n#### .replaceWith() [+]\nReplace each element in the set of matched elements with the provided new content and return the set of elements that was removed.\n\n_________________________________\n\n\n## Category: General Attributes\n\u003e Location: \n\n\n#### .attr() [+]\nGet the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.\n\n#### .prop() [+]\nGet the value of a property for the first element in the set of matched elements or set one or more properties for every matched element.\n\n#### .removeAttr() [+]\nRemove an attribute from each element in the set of matched elements.\n\n#### .removeProp() [+]\nRemove a property for the set of matched elements.\n\n#### .val() [+]\nGet the current value of the first element in the set of matched elements or set the value of every matched element\n\n_________________________________\n\n\n## Category: Filtering\n\u003e Location: \n\n#### .eq() [+]\nReduce the set of matched elements to the one at the specified index.\n\n.even() [+]\nReduce the set of matched elements to the even ones in the set, numbered from zero.\n\n#### .filter() [+]\nReduce the set of matched elements to those that match the selector or pass the function’s test.\n\n#### .first() [+]\nReduce the set of matched elements to the first in the set.\n\n#### .has() [+]\nReduce the set of matched elements to those that have a descendant that matches the selector or DOM element.\n\n#### .is() [+]\nCheck the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.\n\n#### .last() [+]\nReduce the set of matched elements to the final one in the set.\n\n#### .map() [+]\nPass each element in the current matched set through a function, producing a new jQuery object containing the return values.\n\n#### .not() [+]\nRemove elements from the set of matched elements.\n\n#### .odd() [+]\nReduce the set of matched elements to the odd ones in the set, numbered from zero.\n\n#### .slice() [+]\nReduce the set of matched elements to a subset specified by a range of indices.\n\n_________________________________\n\n\n## Category: Miscellaneous Traversing\n\u003e Location: \n\n\n#### .add() [+]\nCreate a new jQuery object with elements added to the set of matched elements.\n\n#### .addBack() [+]\nAdd the previous set of elements on the stack to the current set, optionally filtered by a selector.\n\n#### .contents() [+]\nGet the children of each element in the set of matched elements, including text and comment nodes.\n\n#### .end() [+]\nEnd the most recent filtering operation in the current chain and return the set of matched elements to its previous state.\n\n_________________________________\n\n\n## Category: Tree Traversal\n\u003e Location: traversing/travers.lisp \n\n\n#### .children() [+]\nGet the children of each element in the set of matched elements, optionally filtered by a selector.\n\n#### .closest() [-]\nFor each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\n\n\n#### .find() [-]\nGet the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.\n\u003e Location:\n\n#### .next() [-]\nGet the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.\n\n#### .nextAll() [-]\nGet all following siblings of each element in the set of matched elements, optionally filtered by a selector.\n\n#### .nextUntil() [-]\nGet all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.\n\n#### .offsetParent() [-]\nGet the closest ancestor element that is positioned.\n\n#### .parent() [-]\nGet the parent of each element in the current set of matched elements, optionally filtered by a selector.\n\n#### .parents() [-]\nGet the ancestors of each element in the current set of matched elements, optionally filtered by a selector.\n\n#### .parentsUntil() [-]\nGet the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.\n\n#### .prev() [-]\nGet the immediately preceding sibling of each element in the set of matched elements. If a selector is provided, it retrieves the previous sibling only if it matches that selector.\n\n#### .prevAll() [-]\nGet all preceding siblings of each element in the set of matched elements, optionally filtered by a selector, in the reverse document order.\n\n#### .prevUntil() [-]\nGet all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.\n\n#### .siblings() [-]\nGet the siblings of each element in the set of matched elements, optionally filtered by a selector.\n\n## Category: Fading\n\u003e Location: efects/fadding \n\n### .fadeIn() [-]\nDisplay the matched elements by fading them to opaque.\n\n### .fadeOut() [-]\nHide the matched elements by fading them to transparent.\n\n### .fadeTo() [-]\nAdjust the opacity of the matched elements.\n\n### .fadeToggle() [-]\nDisplay or hide the matched elements by animating their opacity.\n_________________________________\n\n## Category: Widgets\nWidgets are feature-rich, stateful plugins that have a full life-cycle, along with methods and events. Check out the widget factory documentation for more details.\n\u003eLocation: ui/\n\n### Accordion Widget [-]\nConvert a pair of headers and content panels into an accordion.\n\n### Autocomplete Widget [-]\nAutocomplete enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.\n\n### Button Widget [-]\nThemeable buttons.\n\n### Buttonset Widget [-]\nThemeable button sets.\n\n### Checkboxradio Widget [-]\nConverts inputs of type radio and checkbox to themeable buttons.\n\n### Controlgroup Widget [-]\nThemeable set of input widgets.\n\n### Datepicker Widget [-]\nSelect a date from a popup or inline calendar\n\n### Dialog Widget [-]\n\u003e\u003e Location: dialog.lisp\n\nOpen content in an interactive overlay.\n\n### Form Reset Mixin [-]\nA mixin to call refresh() on an input widget when the parent form gets reset.\n\n### Widget Factory [-]\nCreate stateful jQuery plugins using the same abstraction as all jQuery UI widgets.\n\n### Widget Plugin Bridge [-]\nPart of the jQuery Widget Factory is the jQuery.widget.bridge() method. This acts as the middleman between the object created by $.widget() and the jQuery API.\n\n### Menu Widget [-]\nThemeable menu with mouse and keyboard interactions for navigation.\n\n### Progressbar Widget [-]\nDisplay status of a determinate or indeterminate process.\n\n### Selectmenu Widget [-]\nDuplicates and extends the functionality of a native HTML select element to overcome the limitations of the native control.\n\n### Slider Widget [-]\nDrag a handle to select a numeric value.\n\n### Spinner Widget [-]\nEnhance a text input for entering numeric values, with up/down buttons and arrow key handling.\n\n### Tabs Widget [+]\n\u003e\u003eLocation: tabs.lisp\n\nA single content area with multiple panels, each associated with a header in a list.\n\n### Tooltip Widget [-]\nCustomizable, themeable tooltips, replacing native tooltips.\n\n_________________________________\n\n## Category: Interactions\n\u003e Location: ui/\n\njQuery UI provides a set of mouse-based interactions as building blocks for rich interfaces and complex widgets.\n\n### Draggable Widget [+]\n\u003e\u003e Location: draggable.lisp\n\nAllow elements to be moved using the mouse.\n\n### Droppable Widget [+]\n\u003e\u003e Location: droppable.lisp\n\nCreate targets for draggable elements.\n\n### Mouse Interaction [-]\nThe base interaction layer.\n\n### Resizable Widget [+]\n\u003e\u003e Location: resizable.lisp\n\nChange the size of an element using the mouse.\n\n### Selectable Widget [-]\nUse the mouse to select elements, individually or in a group.\n\n### Sortable Widget [-]\nReorder elements in a list or grid using the mouse.\n\n_________________________________\n\n\n\n## Copyright\nCopyright © 2017,2024 Vladimir Mezentsev\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlad-km%2Fjq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvlad-km%2Fjq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlad-km%2Fjq/lists"}