tpmkms_4wp 9.3.0-beta.49 → 9.3.0-beta.50
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/common/dateTimeSelectors.js +31 -1
- package/common/dateTimeSelectors.test.json +7934 -65
- package/common/dates.instance.json +70 -101
- package/common/dates.js +15 -2
- package/common/dates.test.json +2002 -0
- package/package.json +2 -2
package/common/dates.js
CHANGED
@@ -42,6 +42,7 @@ const template = {
|
|
42
42
|
"([monthDayYear_dates] (month_dates/*) (dayNumber_dates/*) (yearNumber_dates/*))",
|
43
43
|
"([monthDayYearWithSlashes_dates] (monthNumber_dates/*) (dateSeparator_dates/*) (dayNumber_dates/*) (dateSeparator_dates/*) (yearNumber_dates/*))",
|
44
44
|
"([onDate_dates|on] ([onDateValue_dates|]))",
|
45
|
+
"([afterDate_dates|after] ([afterDateValue_dates|]))",
|
45
46
|
],
|
46
47
|
associations: {
|
47
48
|
positive: [
|
@@ -64,6 +65,18 @@ const template = {
|
|
64
65
|
isA: ['preposition'],
|
65
66
|
bridge: "{ ...next(operator), date: after[0], onDate: operator, interpolate: '${onDate} ${date}' }",
|
66
67
|
},
|
68
|
+
{
|
69
|
+
id: 'afterDateValue_dates',
|
70
|
+
children: [
|
71
|
+
'day_dates',
|
72
|
+
'month_dates',
|
73
|
+
],
|
74
|
+
},
|
75
|
+
{
|
76
|
+
id: 'afterDate_dates',
|
77
|
+
isA: ['preposition'],
|
78
|
+
bridge: "{ ...next(operator), date: after[0], afterDate: operator, interpolate: '${afterDate} ${date}' }",
|
79
|
+
},
|
67
80
|
{
|
68
81
|
id: 'era_dates',
|
69
82
|
words: ['era'],
|
@@ -72,7 +85,7 @@ const template = {
|
|
72
85
|
{
|
73
86
|
id: 'date_dates',
|
74
87
|
words: ['date', 'distributable'],
|
75
|
-
isA: ['onDateValue_dates'],
|
88
|
+
isA: ['onDateValue_dates', 'afterDateValue_dates'],
|
76
89
|
bridge: "{ ...next(operator) }"
|
77
90
|
},
|
78
91
|
{
|
@@ -127,7 +140,7 @@ const template = {
|
|
127
140
|
{
|
128
141
|
id: 'monthDayYear_dates',
|
129
142
|
convolution: true,
|
130
|
-
before: ['preposition'],
|
143
|
+
before: ['preposition', 'monthDay_dates'],
|
131
144
|
isA: ['date_dates'],
|
132
145
|
localHierarchy: [
|
133
146
|
['ordinal', 'dayNumber_dates'],
|