@licklist/design 0.68.4 → 0.68.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntervalInput.d.ts","sourceRoot":"","sources":["../../../src/events/edit-event-modal/IntervalInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,kBAAkB;IAC1B,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,WAAW,GACZ,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"IntervalInput.d.ts","sourceRoot":"","sources":["../../../src/events/edit-event-modal/IntervalInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,kBAAkB;IAC1B,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,WAAW,GACZ,EAAE,kBAAkB,2CA4JpB"}
|
|
@@ -169,6 +169,12 @@ function IntervalInput(param) {
|
|
|
169
169
|
setValue('end', nextEndtDate);
|
|
170
170
|
trigger('end');
|
|
171
171
|
};
|
|
172
|
+
var onChangeRecurrent = function(checked) {
|
|
173
|
+
setRecurrent(checked);
|
|
174
|
+
if (!checked) {
|
|
175
|
+
setValue("rrule", null);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
172
178
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
173
179
|
children: [
|
|
174
180
|
/*#__PURE__*/ jsxs(Form.Row, {
|
|
@@ -249,7 +255,7 @@ function IntervalInput(param) {
|
|
|
249
255
|
checked: recurrent,
|
|
250
256
|
onChange: function(param) {
|
|
251
257
|
var checked = param.target.checked;
|
|
252
|
-
|
|
258
|
+
onChangeRecurrent(checked);
|
|
253
259
|
},
|
|
254
260
|
disabled: disabled || Boolean(editedProductSet)
|
|
255
261
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -197,4 +197,4 @@
|
|
|
197
197
|
"node": "20.9.0",
|
|
198
198
|
"yarn": "4.4.0"
|
|
199
199
|
}
|
|
200
|
-
}
|
|
200
|
+
}
|
|
@@ -89,6 +89,13 @@ export function IntervalInput({
|
|
|
89
89
|
trigger('end')
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
const onChangeRecurrent = (checked: boolean) => {
|
|
93
|
+
setRecurrent(checked);
|
|
94
|
+
if (!checked) {
|
|
95
|
+
setValue("rrule", null);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
92
99
|
return (
|
|
93
100
|
<>
|
|
94
101
|
<Form.Row className="interval-container">
|
|
@@ -144,7 +151,7 @@ export function IntervalInput({
|
|
|
144
151
|
custom
|
|
145
152
|
checked={recurrent}
|
|
146
153
|
onChange={({ target: { checked } }) => {
|
|
147
|
-
|
|
154
|
+
onChangeRecurrent(checked);
|
|
148
155
|
}}
|
|
149
156
|
disabled={disabled || Boolean(editedProductSet)}
|
|
150
157
|
/>
|