From eb6d358e582ea7523ba35a8be03cd312e07c19e8 Mon Sep 17 00:00:00 2001
From: ChinhNK
Date: Tue, 4 Jan 2022 13:54:24 +0700
Subject: [PATCH 1/2] es6 main
---
package.json | 2 +-
src/{main.js => index.js} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename src/{main.js => index.js} (100%)
diff --git a/package.json b/package.json
index b3dc266..fca1c3b 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "@tdcore/jquery.input",
"version": "0.1.0",
"description": "A Common interface for html input elements.",
- "main": "dist/jquery.input.js",
+ "main": "src/index.js",
"scripts": {
"build": "npx rollup -c",
"test": "grunt"
diff --git a/src/main.js b/src/index.js
similarity index 100%
rename from src/main.js
rename to src/index.js
From a647a6995a672b3f4598e668ad49554d48a558b9 Mon Sep 17 00:00:00 2001
From: ChinhNK
Date: Fri, 25 Feb 2022 10:50:15 +0700
Subject: [PATCH 2/2] add color input support
---
dist/jquery.input.js | 1 +
index.html | 10 ++++++++--
src/buildFormInputs.js | 3 ++-
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/dist/jquery.input.js b/dist/jquery.input.js
index 5aa9411..0e1571c 100644
--- a/dist/jquery.input.js
+++ b/dist/jquery.input.js
@@ -1145,6 +1145,7 @@
addInputsBasic('hidden', 'input[type="hidden"]');
addInputsGroup('radio', 'input[type="radio"]');
addInputsGroup('checkbox', 'input[type="checkbox"]'); // eslint-disable-next-line max-len
+ addInputsGroup('color', 'input[type="color"]');
addInputsBasic(undefined, 'input[type]:not([type="file"],[type="hidden"],[type="radio"],[type="checkbox"])');
}
diff --git a/index.html b/index.html
index f0ee36d..e834234 100644
--- a/index.html
+++ b/index.html
@@ -5,6 +5,12 @@
jQuery.input
+ Color inputs
+
+ color1
+ color2
+
+
Input Elements