@aemforms/af-core 0.22.96 → 0.22.97
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/esm/afb-runtime.js +1 -4
- package/lib/DateField.js +0 -3
- package/package.json +2 -2
package/esm/afb-runtime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as EventSource, p as propertyChange, a as ExecuteRule, I as Initialize, R as RemoveItem, S as SubmitSuccess, C as CustomEvent, b as SubmitError, c as SubmitFailure, d as CaptchaDisplayMode, e as Submit, f as Save, g as RemoveInstance, A as AddInstance, h as Reset, i as AddItem, j as Click, k as Change, F as FormLoad, l as FocusOption, m as FieldChanged, V as ValidationComplete, n as constraintKeys, o as getConstraintTypeMessages, q as Valid, r as Invalid, s as ValidationError } from './Events-f062426b.js';
|
|
2
2
|
import Formula from '@adobe/json-formula';
|
|
3
|
-
import { parseDefaultDate, datetimeToNumber, format, parseDateSkeleton,
|
|
3
|
+
import { parseDefaultDate, datetimeToNumber, format, parseDateSkeleton, numberToDatetime, formatDate, parseDate } from '@aemforms/af-formatters';
|
|
4
4
|
|
|
5
5
|
function __decorate(decorators, target, key, desc) {
|
|
6
6
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -4401,9 +4401,6 @@ class DateField extends Field {
|
|
|
4401
4401
|
if (!this._jsonModel.placeholder) {
|
|
4402
4402
|
this._jsonModel.placeholder = parseDateSkeleton(this._jsonModel.editFormat, this.locale);
|
|
4403
4403
|
}
|
|
4404
|
-
if (!this._jsonModel.description) {
|
|
4405
|
-
this._jsonModel.description = `To enter today's date use ${formatDate(new Date(), this.locale, this._jsonModel.editFormat)}`;
|
|
4406
|
-
}
|
|
4407
4404
|
}
|
|
4408
4405
|
get value() {
|
|
4409
4406
|
return super.value;
|
package/lib/DateField.js
CHANGED
|
@@ -22,9 +22,6 @@ class DateField extends Field_1.default {
|
|
|
22
22
|
if (!this._jsonModel.placeholder) {
|
|
23
23
|
this._jsonModel.placeholder = (0, af_formatters_1.parseDateSkeleton)(this._jsonModel.editFormat, this.locale);
|
|
24
24
|
}
|
|
25
|
-
if (!this._jsonModel.description) {
|
|
26
|
-
this._jsonModel.description = `To enter today's date use ${(0, af_formatters_1.formatDate)(new Date(), this.locale, this._jsonModel.editFormat)}`;
|
|
27
|
-
}
|
|
28
25
|
}
|
|
29
26
|
get value() {
|
|
30
27
|
return super.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aemforms/af-core",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.97",
|
|
4
4
|
"description": "Core Module for Forms Runtime",
|
|
5
5
|
"author": "Adobe Systems",
|
|
6
6
|
"license": "Adobe Proprietary",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@adobe/json-formula": "0.1.50",
|
|
40
|
-
"@aemforms/af-formatters": "^0.22.
|
|
40
|
+
"@aemforms/af-formatters": "^0.22.97"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/preset-env": "^7.20.2",
|