From 158e15a59f5ea17001cc9b93eed91073c3dd3836 Mon Sep 17 00:00:00 2001 From: William Troup Date: Tue, 19 Dec 2023 00:58:36 +0000 Subject: [PATCH 1/5] Updated to v0.2.2. --- README.md | 6 +++--- README_NUGET.md | 6 +++--- dist/select.js | 4 ++-- dist/select.js.css | 2 +- dist/select.js.min.css | 2 +- dist/select.min.js | 4 ++-- docs/CHANGE_LOG.md | 6 ++++++ package.json | 2 +- select.js.nuspec | 2 +- src/select.js | 4 ++-- src/select.js.scss | 2 +- 11 files changed, 23 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 7655ecb..d2af9cf 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ Select.js [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Select.js%2C%20a%20free%20JavaScript%select%builder&url=https://github.com/williamtroup/Select.js&hashtags=javascript,html,select) -[![npm](https://img.shields.io/badge/npmjs-v0.2.1-blue)](https://www.npmjs.com/package/jselect.js) -[![nuget](https://img.shields.io/badge/nuget-v0.2.1-purple)](https://www.nuget.org/packages/jSelect.js/) +[![npm](https://img.shields.io/badge/npmjs-v0.2.2-blue)](https://www.npmjs.com/package/jselect.js) +[![nuget](https://img.shields.io/badge/nuget-v0.2.2-purple)](https://www.nuget.org/packages/jSelect.js/) [![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Select.js/blob/main/LICENSE.txt) [![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Select.js/discussions) [![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://github.com/williamtroup) >

A lightweight, and easy-to-use, JavaScript library for creating multi-select drop-down lists!

->

v0.2.1

+>

v0.2.2


![Select.js](docs/images/main.png) diff --git a/README_NUGET.md b/README_NUGET.md index 2b7ebaf..c2637eb 100644 --- a/README_NUGET.md +++ b/README_NUGET.md @@ -1,8 +1,8 @@ -# Select.js v0.2.1 +# Select.js v0.2.2 [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Select.js%2C%20a%20free%20JavaScript%select%builder&url=https://github.com/williamtroup/Select.js&hashtags=javascript,html,select) -[![npm](https://img.shields.io/badge/npmjs-v0.2.1-blue)](https://www.npmjs.com/package/jselect.js) -[![nuget](https://img.shields.io/badge/nuget-v0.2.1-purple)](https://www.nuget.org/packages/jSelect.js/) +[![npm](https://img.shields.io/badge/npmjs-v0.2.2-blue)](https://www.npmjs.com/package/jselect.js) +[![nuget](https://img.shields.io/badge/nuget-v0.2.2-purple)](https://www.nuget.org/packages/jSelect.js/) [![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Select.js/blob/main/LICENSE.txt) [![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Select.js/discussions) [![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://github.com/williamtroup) diff --git a/dist/select.js b/dist/select.js index 992e9c7..39f3559 100644 --- a/dist/select.js +++ b/dist/select.js @@ -1,4 +1,4 @@ -/*! Select.js v0.2.1 | (c) Bunoon | MIT License */ +/*! Select.js v0.2.2 | (c) Bunoon | MIT License */ (function() { function render() { var tagTypes = _configuration.domElementTypes; @@ -350,7 +350,7 @@ return this; }; this.getVersion = function() { - return "0.2.1"; + return "0.2.2"; }; (function(documentObject, windowObject) { _parameter_Document = documentObject; diff --git a/dist/select.js.css b/dist/select.js.css index b2cefc0..de07f4d 100644 --- a/dist/select.js.css +++ b/dist/select.js.css @@ -1,5 +1,5 @@ /* - * Select.js Library v0.2.1 + * Select.js Library v0.2.2 * * Copyright 2023 Bunoon * Released under the MIT License diff --git a/dist/select.js.min.css b/dist/select.js.min.css index 21214b9..642d29f 100644 --- a/dist/select.js.min.css +++ b/dist/select.js.min.css @@ -1,2 +1,2 @@ -/* Select.js v0.2.1 | (c) Bunoon | MIT License */ +/* Select.js v0.2.2 | (c) Bunoon | MIT License */ :root{--color-black:#3b3a3a;--color-white:#F5F5F5;--color-gray:#AAA;--color-light-gray:#CCC;--container-background-color:#e8e6e6;--container-border-color:#3b3a3a;--container-background-color-drop-down:#e8e6e6;--container-border-color-drop-down:#3b3a3a;--border-radius:.5rem;--border-style-scrollbar:inset 0 0 6px --color-dark-gray;--border-size:.5px;--transition:all .3s;--spacing-shadow-size:4px;--spacing:8px}div.select-js{font-family:"Montserrat",sans-serif;font-size:.8rem;margin-bottom:var(--spacing);position:relative}div.select-js *{box-sizing:content-box;line-height:normal}div.select-js *::before,div.select-js *::after{box-sizing:content-box;line-height:normal}div.select-js select{display:none!important}div.select-js div.control{background-color:var(--container-background-color);border:var(--border-size) solid var(--container-border-color);border-radius:var(--border-radius);padding:calc(var(--spacing) - 2px);padding-right:32px;overflow:hidden}div.select-js div.drop-down{background-color:var(--container-background-color-drop-down);border:var(--border-size) solid var(--container-border-color-drop-down);border-radius:var(--border-radius);-webkit-user-select:none;-ms-user-select:none;user-select:none;position:absolute;width:100%;z-index:10;max-height:400px;margin-top:2px;box-shadow:var(--spacing-shadow-size) var(--spacing-shadow-size) var(--spacing-shadow-size) var(--color-gray);overflow-y:auto;overflow-x:hidden}div.select-js div.drop-down div.item{padding:var(--spacing);border-bottom:var(--border-size) var(--color-black) dotted}div.select-js div.drop-down div.item:last-child{border-bottom:none}div.select-js div.drop-down div.item:hover{cursor:pointer;background-color:var(--color-light-gray);transition:var(--transition)}div.select-js div.drop-down div.selected{color:var(--color-gray);font-style:italic}div.select-js div.control{-webkit-user-select:none;-ms-user-select:none;user-select:none;position:relative}div.select-js div.control div.button{position:absolute;border-right:5px solid var(--color-black);border-bottom:5px solid var(--color-black);height:8px;width:8px;right:14px;top:14px;transform:rotate(45deg)}div.select-js div.control div.button:hover{cursor:pointer;opacity:.7;transition:var(--transition)}div.select-js div.control div.button-open{transform:rotate(-135deg);top:18px}div.select-js div.control div.selected-item{padding:var(--spacing);background-color:var(--color-gray);border-radius:var(--border-radius);display:inline-block;margin:2px;margin-right:var(--spacing)}div.select-js div.control div.selected-item:last-child{margin-right:0}div.select-js div.control div.selected-item span.text{color:var(--color-black)}div.select-js div.control div.selected-item div.remove{margin-left:var(--spacing);display:inline-block;font-weight:700}div.select-js div.control div.selected-item div.remove:hover{cursor:pointer;opacity:.7;transition:var(--transition)}div.select-js div.control div.no-items-selected{background-color:var(--color-light-gray);border-radius:var(--border-radius);font-style:italic;color:var(--color-black);padding:var(--spacing);display:inline-block} \ No newline at end of file diff --git a/dist/select.min.js b/dist/select.min.js index e5638e1..b974c9c 100644 --- a/dist/select.min.js +++ b/dist/select.min.js @@ -1,11 +1,11 @@ -/*! Select.js v0.2.1 | (c) Bunoon | MIT License */ +/*! Select.js v0.2.2 | (c) Bunoon | MIT License */ (function(){function N(a,c,b){var g=l("div","control");a.appendChild(g);var f=l("div","drop-down");f.style.display="none";a.appendChild(f);b.showDropDownButton||(g.onclick=function(){G(g,f,c,b)});return{control:g,dropDown:f,select:c,bindingOptions:b,multiSelectEnabled:c.hasAttribute("multiple")}}function O(a){if(a.bindingOptions.showDropDownButton){var c=l("div","button");a.control.appendChild(c);null!==a.dropDown&&"block"===a.dropDown.style.display&&(c.className+=t.space+"button-open");c.onclick= function(){G(a)}}}function H(a){var c=a.select.options.length;a.dropDown.innerHTML=t.empty;for(var b=0;b + + ## Version 0.2.1: - Added PACK.sh and PUBLISH.sh files for quickly packing and publishing the project. - Documentation improvements. diff --git a/package.json b/package.json index d1506f4..b1a800f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "jselect.js", "title": "Select.js", "description": "A lightweight, and easy-to-use, JavaScript library for creating multi-select drop-down lists!", - "version": "0.2.1", + "version": "0.2.2", "main": "dist/select.js", "author": { "name": "Bunoon" diff --git a/select.js.nuspec b/select.js.nuspec index 08dbd8a..efef83b 100644 --- a/select.js.nuspec +++ b/select.js.nuspec @@ -2,7 +2,7 @@ jSelect.js - 0.2.1 + 0.2.2 Select.js A lightweight, and easy-to-use, JavaScript library for creating multi-select drop-down lists! William Troup diff --git a/src/select.js b/src/select.js index a34bb19..1c40a38 100644 --- a/src/select.js +++ b/src/select.js @@ -4,7 +4,7 @@ * A lightweight, and easy-to-use, JavaScript library for creating multi-select drop-down lists! * * @file select.js - * @version v0.2.1 + * @version v0.2.2 * @author Bunoon * @license MIT License * @copyright Bunoon 2023 @@ -566,7 +566,7 @@ * @returns {string} The version number. */ this.getVersion = function() { - return "0.2.1"; + return "0.2.2"; }; diff --git a/src/select.js.scss b/src/select.js.scss index a62bd63..8a1a260 100644 --- a/src/select.js.scss +++ b/src/select.js.scss @@ -1,5 +1,5 @@ /* - * Select.js Library v0.2.1 + * Select.js Library v0.2.2 * * Copyright 2023 Bunoon * Released under the MIT License From cf917818ee1a4c91a508f13cd63dfb5279912388 Mon Sep 17 00:00:00 2001 From: William Troup Date: Tue, 19 Dec 2023 00:58:56 +0000 Subject: [PATCH 2/5] Documentation fixes. --- docs/BINDING_OPTIONS_CUSTOM_TRIGGERS.md | 2 +- docs/PUBLIC_FUNCTIONS.md | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/BINDING_OPTIONS_CUSTOM_TRIGGERS.md b/docs/BINDING_OPTIONS_CUSTOM_TRIGGERS.md index 2a92fc8..0f4ebf9 100644 --- a/docs/BINDING_OPTIONS_CUSTOM_TRIGGERS.md +++ b/docs/BINDING_OPTIONS_CUSTOM_TRIGGERS.md @@ -1,4 +1,4 @@ -# Select.js - Binging Options - Custom Triggers: +# Select.js - Binding Options - Custom Triggers: Below is a list of all the custom triggers supported in the "data-select-options" binding attribute for DOM elements.
diff --git a/docs/PUBLIC_FUNCTIONS.md b/docs/PUBLIC_FUNCTIONS.md index bbe603a..619b870 100644 --- a/docs/PUBLIC_FUNCTIONS.md +++ b/docs/PUBLIC_FUNCTIONS.md @@ -10,8 +10,6 @@ Below is a list of all the public functions that can be called from the Select.j ### **setConfiguration( *newOptions* )**: Sets the specific configuration options that should be used.
-***Fires***: onOptionsUpdated -
***Parameter: newOptions***: '*Options*' - All the configuration options that should be set (refer to ["Configuration Options"](CONFIGURATION_OPTIONS.md) documentation for properties).
***Returns***: '*Object*' - The Select.js class instance. From 2dcd53fc47bb09f517994202fcb16175d33bfab9 Mon Sep 17 00:00:00 2001 From: William Troup Date: Tue, 19 Dec 2023 00:59:22 +0000 Subject: [PATCH 3/5] Fixed the PACK.sh file pointing at the wrong filename. --- PACK.sh | 2 +- docs/CHANGE_LOG.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/PACK.sh b/PACK.sh index 5b02471..b2c7845 100644 --- a/PACK.sh +++ b/PACK.sh @@ -1 +1 @@ -nuget pack syntax.js.nuspec \ No newline at end of file +nuget pack select.js.nuspec \ No newline at end of file diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index 08c185f..aa20001 100644 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -2,6 +2,8 @@ ## Version 0.2.2: - Documentation improvements. +- Fixed the PACK.sh file pointing at the wrong filename. +-
From 07b8538e55c95efcd7e02ac7c97996c0af94b1d8 Mon Sep 17 00:00:00 2001 From: William Troup Date: Tue, 19 Dec 2023 12:40:07 +0000 Subject: [PATCH 4/5] More documentation fixes. --- README.md | 2 +- README_NUGET.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d2af9cf..d6122cc 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows ```
-### 3. Create DOM Container: +### 3. DOM Element Binding: ```markdown From ee1a323203a8a20fd5152a0ed1087db4a6fc76e1 Mon Sep 17 00:00:00 2001 From: William Troup Date: Tue, 19 Dec 2023 15:34:39 +0000 Subject: [PATCH 5/5] Change log update. --- docs/CHANGE_LOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index aa20001..155a86e 100644 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -3,7 +3,6 @@ ## Version 0.2.2: - Documentation improvements. - Fixed the PACK.sh file pointing at the wrong filename. --