@cocreate/validation 1.4.72 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.5.0](https://github.com/CoCreate-app/CoCreate-validation/compare/v1.4.72...v1.5.0) (2023-01-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * class="template" template_id="id" replaced with template="id" ([8d9e32e](https://github.com/CoCreate-app/CoCreate-validation/commit/8d9e32ec77484e7865f9cf11d9a72594b33079cd))
7
+
1
8
  ## [1.4.72](https://github.com/CoCreate-app/CoCreate-validation/compare/v1.4.71...v1.4.72) (2023-01-01)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/validation",
3
- "version": "1.4.72",
3
+ "version": "1.5.0",
4
4
  "description": "A simple validation component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "validation",
@@ -37,7 +37,7 @@ function matches(elements){
37
37
  }
38
38
  if (failedElements.length){
39
39
  render.data({
40
- selector: "[template_id='validate']",
40
+ selector: "[template='validate']",
41
41
  data: {
42
42
  type: 'matches',
43
43
  status: 'failed',
@@ -16,7 +16,7 @@ export var required = (elements) => {
16
16
  }
17
17
  if (failedElements.length){
18
18
  render.data({
19
- selector: "[template_id='validate']",
19
+ selector: "[template='validate']",
20
20
  data: {
21
21
  type: 'unique',
22
22
  status: 'failed',
@@ -46,7 +46,7 @@ function subdomain(elements){
46
46
  }
47
47
  if (failedElements.length){
48
48
  render.data({
49
- selector: "[template_id='validate']",
49
+ selector: "[template='validate']",
50
50
  data: {
51
51
  type: 'subdomain',
52
52
  status: 'failed',
@@ -17,7 +17,7 @@ export var unique = (elements) => {
17
17
  }
18
18
  if (failedElements.length){
19
19
  render.data({
20
- selector: "[template_id='validate']",
20
+ selector: "[template='validate']",
21
21
  data: {
22
22
  type: 'unique',
23
23
  status: 'failed',