@htmlbricks/hb-input-datetime 0.50.0-alpha.8 → 0.60.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/manifest.json CHANGED
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "type": "object"
28
28
  },
29
- "setValid": {
29
+ "setVal": {
30
30
  "additionalProperties": false,
31
31
  "properties": {
32
32
  "id": {
@@ -34,32 +34,21 @@
34
34
  },
35
35
  "valid": {
36
36
  "type": "boolean"
37
- }
38
- },
39
- "required": [
40
- "valid"
41
- ],
42
- "type": "object"
43
- },
44
- "setValue": {
45
- "additionalProperties": false,
46
- "properties": {
47
- "id": {
48
- "type": "string"
49
37
  },
50
38
  "value": {
51
39
  "type": "string"
52
40
  }
53
41
  },
54
42
  "required": [
55
- "value"
43
+ "value",
44
+ "valid",
45
+ "id"
56
46
  ],
57
47
  "type": "object"
58
48
  }
59
49
  },
60
50
  "required": [
61
- "setValue",
62
- "setValid",
51
+ "setVal",
63
52
  "clickEnter"
64
53
  ],
65
54
  "type": "object"
@@ -79,12 +68,6 @@
79
68
  "schemaentry": {
80
69
  "$ref": "#/definitions/FormSchemaEntry"
81
70
  },
82
- "set_valid": {
83
- "type": "boolean"
84
- },
85
- "set_value": {
86
- "type": "boolean"
87
- },
88
71
  "show_validation": {
89
72
  "enum": [
90
73
  "yes",
@@ -152,44 +135,127 @@
152
135
  },
153
136
  "description": "",
154
137
  "storybookArgs": {
155
- "content": {
138
+ "schemaentry": {
139
+ "control": {
140
+ "type": "object"
141
+ }
142
+ },
143
+ "show_validation": {
156
144
  "control": {
157
- "type": "text"
145
+ "type": "boolean"
158
146
  }
159
147
  },
160
- "clipboardCopyText": {
161
- "action": "clipboardCopyTextEvent"
148
+ "setVal": {
149
+ "action": "setVal"
150
+ },
151
+ "clickEnter": {
152
+ "action": "clickEnter"
162
153
  }
163
154
  },
164
155
  "styleSetup": {
165
- "vars": [
166
- {
167
- "name": "--hb-area-code-background",
168
- "defaultValue": "rgb(232 232 232 / 57%)",
169
- "valueType": "color"
170
- }
171
- ],
172
- "parts": [
173
- {
174
- "name": "content",
175
- "description": "the code html tag"
176
- }
177
- ]
156
+ "vars": [],
157
+ "parts": []
178
158
  },
179
159
  "contributors": [],
180
160
  "htmlSlots": [],
181
161
  "i18n": [],
182
162
  "examples": [
183
163
  {
184
- "name": "default",
164
+ "name": "empty",
185
165
  "data": {
186
- "content": "desc"
166
+ "schemaentry": {
167
+ "placeholder": "Insert your last name here...",
168
+ "id": "lastName",
169
+ "label": "Last Name",
170
+ "validationTip": "This field cannot be empty.",
171
+ "params": {
172
+ "removeSeconds": true
173
+ }
174
+ }
187
175
  }
188
176
  },
189
177
  {
190
- "name": "longText",
178
+ "name": "emptyRequired",
191
179
  "data": {
192
- "content": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
180
+ "schemaentry": {
181
+ "placeholder": "Insert your last name here...",
182
+ "id": "lastName",
183
+ "required": true,
184
+ "label": "Last Name",
185
+ "validationTip": "This field cannot be empty."
186
+ }
187
+ }
188
+ },
189
+ {
190
+ "name": "withValue",
191
+ "data": {
192
+ "schemaentry": {
193
+ "placeholder": "Insert your last name here...",
194
+ "id": "lastName",
195
+ "required": true,
196
+ "label": "Last Name",
197
+ "validationTip": "This field cannot be empty.",
198
+ "value": "2022-06-23T05:09:08.107Z"
199
+ }
200
+ }
201
+ },
202
+ {
203
+ "name": "bugged",
204
+ "data": {
205
+ "schemaentry": {
206
+ "label": "datetime",
207
+ "placeholder": "Insert your last name here...",
208
+ "id": "datelsastNafme66",
209
+ "required": true,
210
+ "validationTip": "This field cannot be empty.",
211
+ "value": "2022-06-23T13:41:10.107Z"
212
+ }
213
+ }
214
+ },
215
+ {
216
+ "name": "maxDate27Feb2023",
217
+ "data": {
218
+ "schemaentry": {
219
+ "placeholder": "Insert your last name here...",
220
+ "id": "lastName",
221
+ "required": true,
222
+ "label": "Last Name",
223
+ "validationTip": "This field cannot be empty.",
224
+ "params": {
225
+ "max": "2023-02-27T00:00:00.000Z"
226
+ }
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "name": "minDate27Feb2023",
232
+ "data": {
233
+ "schemaentry": {
234
+ "placeholder": "Insert your last name here...",
235
+ "id": "lastName",
236
+ "required": true,
237
+ "label": "Last Name",
238
+ "validationTip": "This field cannot be empty.",
239
+ "params": {
240
+ "min": "2023-02-27T00:00:00.000Z"
241
+ }
242
+ }
243
+ }
244
+ },
245
+ {
246
+ "name": "rangeDate27Feb2023",
247
+ "data": {
248
+ "schemaentry": {
249
+ "placeholder": "Insert your last name here...",
250
+ "id": "lastName",
251
+ "required": true,
252
+ "label": "Last Name",
253
+ "validationTip": "This field cannot be empty.",
254
+ "params": {
255
+ "min": "2023-02-27T00:00:00.000Z",
256
+ "max": "2023-02-27T23:59:59.999Z"
257
+ }
258
+ }
193
259
  }
194
260
  }
195
261
  ],
@@ -203,13 +269,13 @@
203
269
  }
204
270
  ],
205
271
  "readmePath": "README.md",
206
- "name": "hb-area-code",
207
- "category": "dev",
272
+ "name": "hb-input-datetime",
273
+ "category": "input",
208
274
  "tags": [
209
- "dev"
275
+ "input"
210
276
  ],
211
277
  "size": {},
212
278
  "iifePath": "main.iife.js",
213
- "repoName": "@htmlbricks/hb-area-code",
214
- "version": "0.50.0-alpha.008"
279
+ "repoName": "@htmlbricks/hb-input-datetime",
280
+ "version": "0.60.0"
215
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-datetime",
3
- "version": "0.50.0-alpha.008",
3
+ "version": "0.60.0",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [
@@ -12,5 +12,9 @@
12
12
  }
13
13
  ],
14
14
  "main": "main.iife.js",
15
- "dependencies": []
15
+ "dependencies": {},
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "private": false
16
20
  }
@@ -11,12 +11,6 @@
11
11
  "schemaentry": {
12
12
  "$ref": "#/definitions/FormSchemaEntry"
13
13
  },
14
- "set_valid": {
15
- "type": "boolean"
16
- },
17
- "set_value": {
18
- "type": "boolean"
19
- },
20
14
  "show_validation": {
21
15
  "enum": [
22
16
  "yes",
@@ -81,3 +75,4 @@
81
75
  }
82
76
  }
83
77
  }
78
+
@@ -39,14 +39,12 @@ export type FormSchemaEntry = {
39
39
  export type Component = {
40
40
  id?: string;
41
41
  style?: string;
42
- set_value?: boolean;
43
- set_valid?: boolean;
42
+
44
43
  show_validation?: "yes" | "no";
45
44
  schemaentry: FormSchemaEntry;
46
45
  };
47
46
 
48
47
  export type Events = {
49
- setValue: { value: string; id?: string };
50
- setValid: { valid: boolean; id?: string };
48
+ setVal: { value: string; valid: boolean; id: string };
51
49
  clickEnter: { value: string; valid: boolean; id?: string };
52
50
  };
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "type": "object"
26
26
  },
27
- "setValid": {
27
+ "setVal": {
28
28
  "additionalProperties": false,
29
29
  "properties": {
30
30
  "id": {
@@ -32,35 +32,25 @@
32
32
  },
33
33
  "valid": {
34
34
  "type": "boolean"
35
- }
36
- },
37
- "required": [
38
- "valid"
39
- ],
40
- "type": "object"
41
- },
42
- "setValue": {
43
- "additionalProperties": false,
44
- "properties": {
45
- "id": {
46
- "type": "string"
47
35
  },
48
36
  "value": {
49
37
  "type": "string"
50
38
  }
51
39
  },
52
40
  "required": [
53
- "value"
41
+ "value",
42
+ "valid",
43
+ "id"
54
44
  ],
55
45
  "type": "object"
56
46
  }
57
47
  },
58
48
  "required": [
59
- "setValue",
60
- "setValid",
49
+ "setVal",
61
50
  "clickEnter"
62
51
  ],
63
52
  "type": "object"
64
53
  }
65
54
  }
66
55
  }
56
+