@feathery/react 2.10.4 → 2.11.1
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/dist/cjs/elements/fields/DateSelectorField/index.d.ts.map +1 -1
- package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts +17 -1
- package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/FileUploadField/index.d.ts.map +1 -1
- package/dist/cjs/elements/fields/index.d.ts.map +1 -1
- package/dist/cjs/{fthry_FormControl.D054LpX5.js → fthry_FormControl.BoBlGUv-.js} +1 -1
- package/dist/cjs/{fthry_InlineTooltip.BmRAwfTr.js → fthry_InlineTooltip.BDg-8hjR.js} +2 -2
- package/dist/cjs/{fthry_Overlay.Cu-jPCI2.js → fthry_Overlay.9cAIeP6E.js} +1 -1
- package/dist/cjs/{fthry_PaymentMethodField.DgMHwN-E.js → fthry_PaymentMethodField.CoByJr6K.js} +4 -4
- package/dist/cjs/{fthry_Placeholder.BYiBhbzh.js → fthry_Placeholder.B8Fiv4tG.js} +1 -1
- package/dist/cjs/{fthry_ShowEyeIcon.JSFm5V3g.js → fthry_ShowEyeIcon.BR6TU49u.js} +1 -1
- package/dist/cjs/{fthry_index.C8xhBiSL.js → fthry_index.B1HntmiS.js} +8 -8
- package/dist/cjs/{fthry_index.Dr55Bljd.js → fthry_index.B61Fc5yV.js} +1 -1
- package/dist/cjs/{fthry_index.CKmjSEM_.js → fthry_index.BD1AaCkS.js} +2 -12
- package/dist/cjs/{fthry_index.B2hMamho.js → fthry_index.BOdVGl5l.js} +4 -4
- package/dist/cjs/{fthry_index.BeG1VteX.js → fthry_index.BT4rLIaG.js} +6 -6
- package/dist/cjs/{fthry_index.CZwit5fg.js → fthry_index.BWxbbmA2.js} +5 -5
- package/dist/cjs/{fthry_index.CsZ4a-ul.js → fthry_index.Bg1tnBes.js} +34 -27
- package/dist/cjs/{fthry_index.DN3JWoEi.js → fthry_index.Bz00U1qW.js} +2 -2
- package/dist/cjs/{fthry_index.DqMxHy5c.js → fthry_index.C5e1CIOA.js} +3 -3
- package/dist/cjs/{fthry_index.PiL5c9VB.js → fthry_index.C67RyE6s.js} +1 -1
- package/dist/cjs/{fthry_index.ajxuY_-G.js → fthry_index.CEvNFKQL.js} +2 -2
- package/dist/cjs/{fthry_index.B39vKi8b.js → fthry_index.CKUbCvsH.js} +6 -6
- package/dist/cjs/{fthry_index.CD1A6RNb.js → fthry_index.CPoExiaS.js} +1 -1
- package/dist/cjs/{fthry_index.De7Fcoju.js → fthry_index.ClWRtApG.js} +1 -1
- package/dist/cjs/{fthry_index.BPwlwYzc.js → fthry_index.CoeM5YQu.js} +1 -1
- package/dist/cjs/{fthry_index.DwinADMZ.js → fthry_index.CyKbm52O.js} +4 -4
- package/dist/cjs/{fthry_index._AeFB4t8.js → fthry_index.D-DmJrvp.js} +3 -3
- package/dist/cjs/{fthry_index.olBzA3BV.js → fthry_index.DD21qdc8.js} +5 -5
- package/dist/cjs/{fthry_index.CD8xJKKg.js → fthry_index.EgnUQ81x.js} +5 -5
- package/dist/cjs/{fthry_index.C2ghok4x.js → fthry_index.HrTSyg9B.js} +1 -1
- package/dist/cjs/{fthry_index.DZHeFuVI.js → fthry_index.JnLQZ_md.js} +4 -4
- package/dist/cjs/{fthry_index.-aTR3_nC.js → fthry_index.gF97kiKa.js} +5 -5
- package/dist/cjs/{fthry_index.DLiYkgfL.js → fthry_index.rFGfbGIk.js} +207 -14
- package/dist/cjs/{fthry_input.Dy9NLp-M.js → fthry_input.CogPcc6M.js} +1 -1
- package/dist/cjs/{fthry_script.wavuQtst.js → fthry_script.6P1NJRwv.js} +1 -1
- package/dist/cjs/{fthry_styles.BOrF2Mu4.js → fthry_styles.IzrEmUeD.js} +1 -1
- package/dist/cjs/{fthry_useElementSize.CGPf-Bg7.js → fthry_useElementSize.BnoWET1V.js} +1 -1
- package/dist/cjs/{fthry_useSalesforceSync.CkHCvyty.js → fthry_useSalesforceSync.DQAPSVmr.js} +1 -1
- package/dist/cjs/{fthry_webfontloader.HWAoLTyT.js → fthry_webfontloader.z-pzQOVm.js} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/utils/image.d.ts.map +1 -1
- package/dist/elements/fields/DateSelectorField/index.d.ts.map +1 -1
- package/dist/elements/fields/DateSelectorField/tests/test-utils.d.ts +17 -1
- package/dist/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/elements/fields/FileUploadField/index.d.ts.map +1 -1
- package/dist/elements/fields/index.d.ts.map +1 -1
- package/dist/esm/elements/fields/DateSelectorField/index.d.ts.map +1 -1
- package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts +17 -1
- package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/FileUploadField/index.d.ts.map +1 -1
- package/dist/esm/elements/fields/index.d.ts.map +1 -1
- package/dist/esm/{fthry_FormControl.BA0jHih4.js → fthry_FormControl.1iiH8b4i.js} +1 -1
- package/dist/esm/{fthry_InlineTooltip.Dm0KK5M9.js → fthry_InlineTooltip.CREexk6k.js} +2 -2
- package/dist/esm/{fthry_Overlay.DkLsoRUo.js → fthry_Overlay.4bM7bqaM.js} +1 -1
- package/dist/esm/{fthry_PaymentMethodField.wSqTzrcH.js → fthry_PaymentMethodField.Cb-ULdGb.js} +4 -4
- package/dist/esm/{fthry_Placeholder.ChbqXh1M.js → fthry_Placeholder.CcLGjl1u.js} +1 -1
- package/dist/esm/{fthry_ShowEyeIcon.Bcr_DvfJ.js → fthry_ShowEyeIcon.eF1-xhvT.js} +1 -1
- package/dist/esm/{fthry_index.DASp8aCj.js → fthry_index.9mFiTG-F.js} +2 -2
- package/dist/esm/{fthry_index.CShNj3fL.js → fthry_index.BM1AattI.js} +5 -5
- package/dist/esm/{fthry_index.D6i0WTaf.js → fthry_index.BSpj1J3t.js} +1 -1
- package/dist/esm/{fthry_index.53sTOmmn.js → fthry_index.BWkhkeXW.js} +4 -4
- package/dist/esm/{fthry_index.Cz4S5q3A.js → fthry_index.B_5JaMZj.js} +5 -5
- package/dist/esm/{fthry_index.XKItlsHk.js → fthry_index.BgQOfF85.js} +5 -5
- package/dist/esm/{fthry_index.0B-SHhds.js → fthry_index.C41oCBcm.js} +1 -1
- package/dist/esm/{fthry_index.DEz3Unk1.js → fthry_index.CB2vMsnM.js} +34 -27
- package/dist/esm/{fthry_index.DRGnCWqW.js → fthry_index.CKCDUf3w.js} +1 -1
- package/dist/esm/{fthry_index.Dpvpv2xt.js → fthry_index.CQWTQtLw.js} +6 -6
- package/dist/esm/{fthry_index.yssMp2Sy.js → fthry_index.CS2Bl6C1.js} +5 -5
- package/dist/esm/{fthry_index.DQxfJdRB.js → fthry_index.Ci7ibGUI.js} +4 -4
- package/dist/esm/{fthry_index.B95NyPKm.js → fthry_index.De_KEVYz.js} +1 -1
- package/dist/esm/{fthry_index.DQowcu5D.js → fthry_index.DpdhPVtE.js} +3 -3
- package/dist/esm/{fthry_index.D3kE6xSV.js → fthry_index.Dr1twar-.js} +4 -4
- package/dist/esm/{fthry_index.BDtl0X99.js → fthry_index.DzJNxFJS.js} +2 -2
- package/dist/esm/{fthry_index.CesKGxRL.js → fthry_index.H8MtZv8B.js} +1 -1
- package/dist/esm/{fthry_index.D2_C3keg.js → fthry_index.I2ya6REt.js} +8 -8
- package/dist/esm/{fthry_index.CQ5JOSod.js → fthry_index.JZQuYqHY.js} +2 -12
- package/dist/esm/{fthry_index.DxUfaIgG.js → fthry_index.UO0V9XrA.js} +1 -1
- package/dist/esm/{fthry_index.T2sjKIYG.js → fthry_index.e5_-aYH2.js} +3 -3
- package/dist/esm/{fthry_index.DDt2EQSO.js → fthry_index.gMIrcjef.js} +207 -14
- package/dist/esm/{fthry_index.AupFnvNG.js → fthry_index.x12MCTQ7.js} +6 -6
- package/dist/esm/{fthry_input.CNSkvM1z.js → fthry_input.BrLpC149.js} +1 -1
- package/dist/esm/{fthry_script.B16_IH9w.js → fthry_script.ePkzRcPc.js} +1 -1
- package/dist/esm/{fthry_styles.BjknDpXW.js → fthry_styles.D641KtAd.js} +1 -1
- package/dist/esm/{fthry_useElementSize.D0NVoaWJ.js → fthry_useElementSize.Ce2Hmk3y.js} +1 -1
- package/dist/esm/{fthry_useSalesforceSync.CjIblTsh.js → fthry_useSalesforceSync.DL2Ww72M.js} +1 -1
- package/dist/esm/{fthry_webfontloader.DJbai8E2.js → fthry_webfontloader.ColEuyZc.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils/image.d.ts.map +1 -1
- package/dist/utils/image.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/{515.03ca98f056a0b3528daa.js → 509.4236d4d76d2fa2ccd971.js} +2 -2
- package/umd/{DateSelectorField.bd5646949de71f571d04.js → DateSelectorField.00f321e0b1972feb9d69.js} +1 -1
- package/umd/{FileUploadField.11dcf999a3604cdf4ea0.js → FileUploadField.5b99c480e0eec74a3867.js} +1 -1
- package/umd/index.js +1 -1
- /package/umd/{515.03ca98f056a0b3528daa.js.LICENSE.txt → 509.4236d4d76d2fa2ccd971.js.LICENSE.txt} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$3 = require('./fthry_index.
|
|
3
|
+
var index$3 = require('./fthry_index.Bg1tnBes.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var Placeholder = require('./fthry_Placeholder.
|
|
6
|
-
var InlineTooltip = require('./fthry_InlineTooltip.
|
|
5
|
+
var Placeholder = require('./fthry_Placeholder.B8Fiv4tG.js');
|
|
6
|
+
var InlineTooltip = require('./fthry_InlineTooltip.BDg-8hjR.js');
|
|
7
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
|
8
8
|
var ReactDOM = require('react-dom');
|
|
9
|
-
var input = require('./fthry_input.
|
|
9
|
+
var input = require('./fthry_input.CogPcc6M.js');
|
|
10
10
|
require('react-dom/client');
|
|
11
11
|
require('jszip');
|
|
12
|
-
require('./fthry_Overlay.
|
|
13
|
-
require('./fthry_index.
|
|
12
|
+
require('./fthry_Overlay.9cAIeP6E.js');
|
|
13
|
+
require('./fthry_index.CPoExiaS.js');
|
|
14
14
|
|
|
15
15
|
function _interopNamespaceDefault(e) {
|
|
16
16
|
var n = Object.create(null);
|
|
@@ -174,6 +174,176 @@ function toDate$1(argument, context) {
|
|
|
174
174
|
return constructFrom$1(argument, argument);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
/**
|
|
178
|
+
* The {@link addDays} function options.
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @name addDays
|
|
183
|
+
* @category Day Helpers
|
|
184
|
+
* @summary Add the specified number of days to the given date.
|
|
185
|
+
*
|
|
186
|
+
* @description
|
|
187
|
+
* Add the specified number of days to the given date.
|
|
188
|
+
*
|
|
189
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
190
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
191
|
+
*
|
|
192
|
+
* @param date - The date to be changed
|
|
193
|
+
* @param amount - The amount of days to be added.
|
|
194
|
+
* @param options - An object with options
|
|
195
|
+
*
|
|
196
|
+
* @returns The new date with the days added
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* // Add 10 days to 1 September 2014:
|
|
200
|
+
* const result = addDays(new Date(2014, 8, 1), 10)
|
|
201
|
+
* //=> Thu Sep 11 2014 00:00:00
|
|
202
|
+
*/
|
|
203
|
+
function addDays$1(date, amount, options) {
|
|
204
|
+
const _date = toDate$1(date);
|
|
205
|
+
if (isNaN(amount)) return constructFrom$1(date, NaN);
|
|
206
|
+
|
|
207
|
+
// If 0 days, no-op to avoid changing times in the hour before end of DST
|
|
208
|
+
if (!amount) return _date;
|
|
209
|
+
|
|
210
|
+
_date.setDate(_date.getDate() + amount);
|
|
211
|
+
return _date;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* The {@link addMonths} function options.
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @name addMonths
|
|
220
|
+
* @category Month Helpers
|
|
221
|
+
* @summary Add the specified number of months to the given date.
|
|
222
|
+
*
|
|
223
|
+
* @description
|
|
224
|
+
* Add the specified number of months to the given date.
|
|
225
|
+
*
|
|
226
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
227
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
228
|
+
*
|
|
229
|
+
* @param date - The date to be changed
|
|
230
|
+
* @param amount - The amount of months to be added.
|
|
231
|
+
* @param options - The options object
|
|
232
|
+
*
|
|
233
|
+
* @returns The new date with the months added
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* // Add 5 months to 1 September 2014:
|
|
237
|
+
* const result = addMonths(new Date(2014, 8, 1), 5)
|
|
238
|
+
* //=> Sun Feb 01 2015 00:00:00
|
|
239
|
+
*
|
|
240
|
+
* // Add one month to 30 January 2023:
|
|
241
|
+
* const result = addMonths(new Date(2023, 0, 30), 1)
|
|
242
|
+
* //=> Tue Feb 28 2023 00:00:00
|
|
243
|
+
*/
|
|
244
|
+
function addMonths$1(date, amount, options) {
|
|
245
|
+
const _date = toDate$1(date);
|
|
246
|
+
if (isNaN(amount)) return constructFrom$1(date, NaN);
|
|
247
|
+
if (!amount) {
|
|
248
|
+
// If 0 months, no-op to avoid changing times in the hour before end of DST
|
|
249
|
+
return _date;
|
|
250
|
+
}
|
|
251
|
+
const dayOfMonth = _date.getDate();
|
|
252
|
+
|
|
253
|
+
// The JS Date object supports date math by accepting out-of-bounds values for
|
|
254
|
+
// month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and
|
|
255
|
+
// new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we
|
|
256
|
+
// want except that dates will wrap around the end of a month, meaning that
|
|
257
|
+
// new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So
|
|
258
|
+
// we'll default to the end of the desired month by adding 1 to the desired
|
|
259
|
+
// month and using a date of 0 to back up one day to the end of the desired
|
|
260
|
+
// month.
|
|
261
|
+
const endOfDesiredMonth = constructFrom$1(date, _date.getTime());
|
|
262
|
+
endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
|
|
263
|
+
const daysInMonth = endOfDesiredMonth.getDate();
|
|
264
|
+
if (dayOfMonth >= daysInMonth) {
|
|
265
|
+
// If we're already at the end of the month, then this is the correct date
|
|
266
|
+
// and we're done.
|
|
267
|
+
return endOfDesiredMonth;
|
|
268
|
+
} else {
|
|
269
|
+
// Otherwise, we now know that setting the original day-of-month value won't
|
|
270
|
+
// cause an overflow, so set the desired day-of-month. Note that we can't
|
|
271
|
+
// just set the date of `endOfDesiredMonth` because that object may have had
|
|
272
|
+
// its time changed in the unusual case where where a DST transition was on
|
|
273
|
+
// the last day of the month and its local time was in the hour skipped or
|
|
274
|
+
// repeated next to a DST transition. So we use `date` instead which is
|
|
275
|
+
// guaranteed to still have the original time.
|
|
276
|
+
_date.setFullYear(
|
|
277
|
+
endOfDesiredMonth.getFullYear(),
|
|
278
|
+
endOfDesiredMonth.getMonth(),
|
|
279
|
+
dayOfMonth,
|
|
280
|
+
);
|
|
281
|
+
return _date;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* The {@link add} function options.
|
|
287
|
+
*/
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @name add
|
|
291
|
+
* @category Common Helpers
|
|
292
|
+
* @summary Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date.
|
|
293
|
+
*
|
|
294
|
+
* @description
|
|
295
|
+
* Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date.
|
|
296
|
+
*
|
|
297
|
+
* @typeParam DateType - The `Date` type the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
298
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
299
|
+
*
|
|
300
|
+
* @param date - The date to be changed
|
|
301
|
+
* @param duration - The object with years, months, weeks, days, hours, minutes, and seconds to be added.
|
|
302
|
+
* @param options - An object with options
|
|
303
|
+
*
|
|
304
|
+
* @returns The new date with the seconds added
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* // Add the following duration to 1 September 2014, 10:19:50
|
|
308
|
+
* const result = add(new Date(2014, 8, 1, 10, 19, 50), {
|
|
309
|
+
* years: 2,
|
|
310
|
+
* months: 9,
|
|
311
|
+
* weeks: 1,
|
|
312
|
+
* days: 7,
|
|
313
|
+
* hours: 5,
|
|
314
|
+
* minutes: 9,
|
|
315
|
+
* seconds: 30,
|
|
316
|
+
* })
|
|
317
|
+
* //=> Thu Jun 15 2017 15:29:20
|
|
318
|
+
*/
|
|
319
|
+
function add(date, duration, options) {
|
|
320
|
+
const {
|
|
321
|
+
years = 0,
|
|
322
|
+
months = 0,
|
|
323
|
+
weeks = 0,
|
|
324
|
+
days = 0,
|
|
325
|
+
hours = 0,
|
|
326
|
+
minutes = 0,
|
|
327
|
+
seconds = 0,
|
|
328
|
+
} = duration;
|
|
329
|
+
|
|
330
|
+
// Add years and months
|
|
331
|
+
const _date = toDate$1(date);
|
|
332
|
+
const dateWithMonths =
|
|
333
|
+
months || years ? addMonths$1(_date, months + years * 12) : _date;
|
|
334
|
+
|
|
335
|
+
// Add weeks and days
|
|
336
|
+
const dateWithDays =
|
|
337
|
+
days || weeks ? addDays$1(dateWithMonths, days + weeks * 7) : dateWithMonths;
|
|
338
|
+
|
|
339
|
+
// Add days, hours, minutes, and seconds
|
|
340
|
+
const minutesToAdd = minutes + hours * 60;
|
|
341
|
+
const secondsToAdd = seconds + minutesToAdd * 60;
|
|
342
|
+
const msToAdd = secondsToAdd * 1000;
|
|
343
|
+
|
|
344
|
+
return constructFrom$1(date, +dateWithDays + msToAdd);
|
|
345
|
+
}
|
|
346
|
+
|
|
177
347
|
const formatDistanceLocale$1 = {
|
|
178
348
|
lessThanXSeconds: {
|
|
179
349
|
one: "less than a second",
|
|
@@ -15757,13 +15927,32 @@ var PRESELECT_CHANGE_VIA_NAVIGATE = "navigate";
|
|
|
15757
15927
|
var parseTimeThreshold = function (timeThreshold) {
|
|
15758
15928
|
return timeThreshold.split(':').map(Number);
|
|
15759
15929
|
};
|
|
15930
|
+
var parseDateConfig = function (config) {
|
|
15931
|
+
var _a;
|
|
15932
|
+
if (!config)
|
|
15933
|
+
return undefined;
|
|
15934
|
+
// string - parse absolute date
|
|
15935
|
+
if (typeof config === 'string') {
|
|
15936
|
+
var date = parseISO$1(config);
|
|
15937
|
+
return date.toString() === 'Invalid Date' ? undefined : date;
|
|
15938
|
+
}
|
|
15939
|
+
// object - parse relative date
|
|
15940
|
+
if (typeof config === 'object' &&
|
|
15941
|
+
config.number !== undefined &&
|
|
15942
|
+
config.unit) {
|
|
15943
|
+
var now = new Date();
|
|
15944
|
+
var number = config.number, unit = config.unit;
|
|
15945
|
+
return add(now, (_a = {}, _a[unit] = number, _a));
|
|
15946
|
+
}
|
|
15947
|
+
return undefined;
|
|
15948
|
+
};
|
|
15760
15949
|
var stopTouchPropagation = function (e) { return e.stopPropagation(); };
|
|
15761
15950
|
function DateSelectorField(_a) {
|
|
15762
|
-
var _b, _c, _d;
|
|
15763
|
-
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel,
|
|
15951
|
+
var _b, _c, _d, _e, _f;
|
|
15952
|
+
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, _g = _a.elementProps, elementProps = _g === void 0 ? {} : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.disabled, disabled = _j === void 0 ? false : _j, repeatIndex = _a.repeatIndex, editMode = _a.editMode, _k = _a.onComplete, onComplete = _k === void 0 ? function () { } : _k, _l = _a.onEnter, onEnter = _l === void 0 ? function () { } : _l, _m = _a.setRef, setRef = _m === void 0 ? function () { } : _m, _o = _a.value, value = _o === void 0 ? '' : _o, inlineError = _a.inlineError, children = _a.children;
|
|
15764
15953
|
var servarMeta = element.servar.metadata;
|
|
15765
15954
|
var pickerRef = React.useRef(undefined);
|
|
15766
|
-
var
|
|
15955
|
+
var _p = index$3.__read(React.useState(null), 2), internalDate = _p[0], setInternalDate = _p[1];
|
|
15767
15956
|
var translation = element.properties.translate || {};
|
|
15768
15957
|
var containerRef = React.useRef(null);
|
|
15769
15958
|
var shouldRestoreCalendarRef = React.useRef(false);
|
|
@@ -15771,7 +15960,7 @@ function DateSelectorField(_a) {
|
|
|
15771
15960
|
monthNames: translation.months,
|
|
15772
15961
|
shortDayNames: translation.weekdays
|
|
15773
15962
|
});
|
|
15774
|
-
var
|
|
15963
|
+
var _q = index$3.__read(React.useState(0), 2), curPointerY = _q[0], setCurPointerY = _q[1];
|
|
15775
15964
|
var isMobile = index$3.isMobile();
|
|
15776
15965
|
var isEmbedded = ((_b = index$3.featheryWindow()) === null || _b === void 0 ? void 0 : _b.self) !== ((_c = index$3.featheryWindow()) === null || _c === void 0 ? void 0 : _c.top);
|
|
15777
15966
|
// disables mobile devices from focusing inputs through a portal
|
|
@@ -15871,12 +16060,12 @@ function DateSelectorField(_a) {
|
|
|
15871
16060
|
if (isComplete)
|
|
15872
16061
|
onComplete(index$3.formatDateString(newDate, servarMeta));
|
|
15873
16062
|
};
|
|
15874
|
-
var
|
|
16063
|
+
var _r = index$3.useBorder({
|
|
15875
16064
|
element: element,
|
|
15876
16065
|
error: inlineError,
|
|
15877
16066
|
breakpoint: responsiveStyles.getMobileBreakpoint()
|
|
15878
|
-
}), borderStyles =
|
|
15879
|
-
var
|
|
16067
|
+
}), borderStyles = _r.borderStyles, customBorder = _r.customBorder;
|
|
16068
|
+
var _s = index$3.__read(React.useState(false), 2), focused = _s[0], setFocused = _s[1];
|
|
15880
16069
|
var dateMask = servarMeta.display_format ? 'dd/MM/yyyy' : 'MM/dd/yyyy';
|
|
15881
16070
|
var timeMask = servarMeta.time_format === '24hr' ? 'HH:mm' : 'hh:mm aa';
|
|
15882
16071
|
if (servarMeta.choose_time)
|
|
@@ -15911,7 +16100,11 @@ function DateSelectorField(_a) {
|
|
|
15911
16100
|
}, onBlur: function () { return setFocused(false); }, onKeyDown: function (e) {
|
|
15912
16101
|
if (e.key === 'Enter')
|
|
15913
16102
|
onEnter(e);
|
|
15914
|
-
}, required: required, readOnly: disabled, filterDate: filterPassedDate, filterTime: filterPassedTime, showTimeSelect: (_d = servarMeta.choose_time) !== null && _d !== void 0 ? _d : false, timeIntervals: servarMeta.time_interval || 30, dateFormat: dateMask, timeFormat: timeMask, maxDate:
|
|
16103
|
+
}, required: required, readOnly: disabled, filterDate: filterPassedDate, filterTime: filterPassedTime, showTimeSelect: (_d = servarMeta.choose_time) !== null && _d !== void 0 ? _d : false, timeIntervals: servarMeta.time_interval || 30, dateFormat: dateMask, timeFormat: timeMask, maxDate: editMode
|
|
16104
|
+
? undefined
|
|
16105
|
+
: (_e = parseDateConfig(servarMeta.max_date)) !== null && _e !== void 0 ? _e : (servarMeta.no_future ? new Date() : undefined), minDate: editMode
|
|
16106
|
+
? undefined
|
|
16107
|
+
: (_f = parseDateConfig(servarMeta.min_date)) !== null && _f !== void 0 ? _f : (servarMeta.no_past ? new Date() : undefined), showMonthDropdown: true, showYearDropdown: true, forceShowMonthNavigation: false, dropdownMode: 'select',
|
|
15915
16108
|
// Open up calendar as a modal in mobile
|
|
15916
16109
|
withPortal: isMobile, portalId: isMobile ? 'feathery-portal' : undefined, "aria-label": element.properties.aria_label, css: index$3.__assign(index$3.__assign(index$3.__assign({ height: '100%', width: '100%', border: 'none', margin: 0, background: 'transparent' }, index$3.resetStyles), responsiveStyles.getTarget('field')), (focused || value || !element.properties.placeholder
|
|
15917
16110
|
? {}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/utils/image.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,eAAO,MAAM,YAAY,QACgF,CAAC;AAE1G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/utils/image.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,eAAO,MAAM,YAAY,QACgF,CAAC;AAE1G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,UAe1C;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,YAAY,EAAE,GAAG,EAAE,UAAU,aAAW,+EAWnE;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;;;GAmBvE;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,WAAW,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;;;GAQpE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE;;;IAatD;AAED,eAAO,MAAM,aAAa,YAAa,GAAG,QAAQ,GAAG,SAYpD,CAAC;AAEF,eAAO,MAAM,QAAQ,SAAU,GAAG,KAAG,QAAQ,MAAM,CAM/C,CAAC;AAEL,eAAO,MAAM,aAAa,WAAY,GAAG,YAExC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DateSelectorField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/DateSelectorField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAgCjE,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,EAAE,GAAG,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAgCD,iBAAS,iBAAiB,CAAC,EACzB,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,YAAiB,EACjB,QAAgB,EAChB,QAAgB,EAChB,WAAW,EACX,QAAQ,EACR,UAAqB,EACrB,OAAkB,EAClB,MAAiB,EACjB,KAAU,EACV,WAAW,EACX,QAAQ,EACT,EAAE,iBAAiB,oDAyRnB;;AAED,wBAAuC;AAYvC,QAAA,MAAM,iBAAiB,kFAMtB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -20,7 +20,21 @@ export declare const createTimeMetadata: (format?: '12hr' | '24hr', interval?: n
|
|
|
20
20
|
time_format: "24hr" | "12hr";
|
|
21
21
|
time_interval: number;
|
|
22
22
|
};
|
|
23
|
-
export declare const createDateRestrictionsMetadata: (noPast?: boolean, noFuture?: boolean, noWeekends?: boolean, disabledDates?: string[]
|
|
23
|
+
export declare const createDateRestrictionsMetadata: (noPast?: boolean, noFuture?: boolean, noWeekends?: boolean, disabledDates?: string[], minDate?: string | {
|
|
24
|
+
number: number;
|
|
25
|
+
unit: 'days' | 'weeks' | 'months' | 'years';
|
|
26
|
+
}, maxDate?: string | {
|
|
27
|
+
number: number;
|
|
28
|
+
unit: 'days' | 'weeks' | 'months' | 'years';
|
|
29
|
+
}) => {
|
|
30
|
+
max_date?: string | {
|
|
31
|
+
number: number;
|
|
32
|
+
unit: 'days' | 'weeks' | 'months' | 'years';
|
|
33
|
+
} | undefined;
|
|
34
|
+
min_date?: string | {
|
|
35
|
+
number: number;
|
|
36
|
+
unit: 'days' | 'weeks' | 'months' | 'years';
|
|
37
|
+
} | undefined;
|
|
24
38
|
disabled_dates?: string[] | undefined;
|
|
25
39
|
no_weekends?: boolean | undefined;
|
|
26
40
|
no_future?: boolean | undefined;
|
|
@@ -71,5 +85,7 @@ export declare const getPastDateISO: (daysAgo?: number) => string;
|
|
|
71
85
|
export declare const getFutureDateISO: (daysFromNow?: number) => string;
|
|
72
86
|
export declare const getWeekendDateISO: () => string;
|
|
73
87
|
export declare const createDisabledDateString: (month: number, day: number) => string;
|
|
88
|
+
export declare const getDateISO: (daysFromNow: number) => string;
|
|
89
|
+
export declare const formatDateForInput: (isoDate: string) => string;
|
|
74
90
|
export declare const expectDateToBeFiltered: (dateString: string, shouldBeFiltered: boolean) => Promise<void>;
|
|
75
91
|
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/DateSelectorField/tests/test-utils.tsx"],"names":[],"mappings":";AAEA,OAAO,EAGL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC9B,MAAM,aACF,GAAG,eACD,GAAG,WACP,GAAG;;;;;;CA0CV,CAAC;AAEJ,eAAO,MAAM,uBAAuB,YAAa,GAAG,gBAAe,GAAG,QAOlE,CAAC;AAEL,eAAO,MAAM,wBAAwB,wCAIpC,CAAC;AAEF,eAAO,MAAM,2BAA2B,iBAAiB,OAAO;;CAE9D,CAAC;AAEH,eAAO,MAAM,kBAAkB,YACrB,MAAM,GAAG,MAAM,aACb,MAAM,YACN,MAAM,YACN,MAAM;;;;;;CAOhB,CAAC;AAEH,eAAO,MAAM,8BAA8B,YAChC,OAAO,aACL,OAAO,eACL,OAAO,kBACJ,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/DateSelectorField/tests/test-utils.tsx"],"names":[],"mappings":";AAEA,OAAO,EAGL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC9B,MAAM,aACF,GAAG,eACD,GAAG,WACP,GAAG;;;;;;CA0CV,CAAC;AAEJ,eAAO,MAAM,uBAAuB,YAAa,GAAG,gBAAe,GAAG,QAOlE,CAAC;AAEL,eAAO,MAAM,wBAAwB,wCAIpC,CAAC;AAEF,eAAO,MAAM,2BAA2B,iBAAiB,OAAO;;CAE9D,CAAC;AAEH,eAAO,MAAM,kBAAkB,YACrB,MAAM,GAAG,MAAM,aACb,MAAM,YACN,MAAM,YACN,MAAM;;;;;;CAOhB,CAAC;AAEH,eAAO,MAAM,8BAA8B,YAChC,OAAO,aACL,OAAO,eACL,OAAO,kBACJ,MAAM,EAAE,YACd,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;CAAE,YACxE,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;CAAE;;gBAArD,MAAM;cAAQ,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO;;;gBADnD,MAAM;cAAQ,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO;;;;;;CAShF,CAAC;AAEH,eAAO,MAAM,qBAAqB,cAAc,GAAG;;;;;;CACwB,CAAC;AAE5E,eAAO,MAAM,qBAAqB,cAAc,GAAG;;;;;;CACuB,CAAC;AAE3E,eAAO,MAAM,wBAAwB,YAC3B,MAAM,GAAG,MAAM,aACb,MAAM;;;;;;CAC0D,CAAC;AAE7E,eAAO,MAAM,2BAA2B,kBAAkB,GAAG;;;;;;CAW1D,CAAC;AAEJ,eAAO,MAAM,kBAAkB,iCAS9B,CAAC;AAEF,eAAO,MAAM,cAAc,wBAI1B,CAAC;AAEF,eAAO,MAAM,UAAU,sBAEtB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAiB,MAAM,kBAO/C,CAAC;AAEF,eAAO,MAAM,cAAc,qBAI1B,CAAC;AAEF,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,qBAIzB,CAAC;AAEF,eAAO,MAAM,cAAc,UAAiB,MAAM,kBAIjD,CAAC;AAEF,eAAO,MAAM,0BAA0B,kBAAyB,MAAM,kBAGrE,CAAC;AAEF,eAAO,MAAM,2BAA2B,qBAGvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,SAG3D,CAAC;AAEF,eAAO,MAAM,sBAAsB,kBAAmB,MAAM,SAG3D,CAAC;AAEF,eAAO,MAAM,WAAW,cAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,aAAa,MAAM,WAI7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,iBAAiB,MAAM,WAInD,CAAC;AAEF,eAAO,MAAM,iBAAiB,cAK7B,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAAW,MAAM,OAAO,MAAM,WAElE,CAAC;AAEF,eAAO,MAAM,UAAU,gBAAiB,MAAM,WAI7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAAa,MAAM,WAMjD,CAAC;AAEF,eAAO,MAAM,sBAAsB,eACrB,MAAM,oBACA,OAAO,kBAU1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/FileUploadField/index.tsx"],"names":[],"mappings":"AAeA,iBAAS,eAAe,CAAC,EACvB,OAAO,EACP,gBAAgB,EAChB,QAAgB,EAChB,QAAgB,EAChB,QAAQ,EACR,QAAQ,EAAE,cAAyB,EACnC,YAAiB,EACjB,YAAiB,EACjB,QAAQ,EACT,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/FileUploadField/index.tsx"],"names":[],"mappings":"AAeA,iBAAS,eAAe,CAAC,EACvB,OAAO,EACP,gBAAgB,EAChB,QAAgB,EAChB,QAAgB,EAChB,QAAQ,EACR,QAAQ,EAAE,cAAyB,EACnC,YAAiB,EACjB,YAAiB,EACjB,QAAQ,EACT,EAAE,GAAG,oDAgWL;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/fields/index.tsx"],"names":[],"mappings":"AA6EA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBX,CAAC;AAkBF,eAAO,MAAM,gBAAgB,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/fields/index.tsx"],"names":[],"mappings":"AA6EA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBX,CAAC;AAkBF,eAAO,MAAM,gBAAgB,KAAK,CAAC;AA8ZnC,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/DateSelectorField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/DateSelectorField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAgCjE,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,EAAE,GAAG,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAgCD,iBAAS,iBAAiB,CAAC,EACzB,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,YAAiB,EACjB,QAAgB,EAChB,QAAgB,EAChB,WAAW,EACX,QAAQ,EACR,UAAqB,EACrB,OAAkB,EAClB,MAAiB,EACjB,KAAU,EACV,WAAW,EACX,QAAQ,EACT,EAAE,iBAAiB,oDAyRnB;;AAED,wBAAuC;AAYvC,QAAA,MAAM,iBAAiB,kFAMtB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -20,7 +20,21 @@ export declare const createTimeMetadata: (format?: '12hr' | '24hr', interval?: n
|
|
|
20
20
|
time_format: "12hr" | "24hr";
|
|
21
21
|
time_interval: number;
|
|
22
22
|
};
|
|
23
|
-
export declare const createDateRestrictionsMetadata: (noPast?: boolean, noFuture?: boolean, noWeekends?: boolean, disabledDates?: string[]
|
|
23
|
+
export declare const createDateRestrictionsMetadata: (noPast?: boolean, noFuture?: boolean, noWeekends?: boolean, disabledDates?: string[], minDate?: string | {
|
|
24
|
+
number: number;
|
|
25
|
+
unit: 'days' | 'weeks' | 'months' | 'years';
|
|
26
|
+
}, maxDate?: string | {
|
|
27
|
+
number: number;
|
|
28
|
+
unit: 'days' | 'weeks' | 'months' | 'years';
|
|
29
|
+
}) => {
|
|
30
|
+
max_date?: string | {
|
|
31
|
+
number: number;
|
|
32
|
+
unit: 'days' | 'weeks' | 'months' | 'years';
|
|
33
|
+
} | undefined;
|
|
34
|
+
min_date?: string | {
|
|
35
|
+
number: number;
|
|
36
|
+
unit: 'days' | 'weeks' | 'months' | 'years';
|
|
37
|
+
} | undefined;
|
|
24
38
|
disabled_dates?: string[] | undefined;
|
|
25
39
|
no_weekends?: boolean | undefined;
|
|
26
40
|
no_future?: boolean | undefined;
|
|
@@ -71,5 +85,7 @@ export declare const getPastDateISO: (daysAgo?: number) => string;
|
|
|
71
85
|
export declare const getFutureDateISO: (daysFromNow?: number) => string;
|
|
72
86
|
export declare const getWeekendDateISO: () => string;
|
|
73
87
|
export declare const createDisabledDateString: (month: number, day: number) => string;
|
|
88
|
+
export declare const getDateISO: (daysFromNow: number) => string;
|
|
89
|
+
export declare const formatDateForInput: (isoDate: string) => string;
|
|
74
90
|
export declare const expectDateToBeFiltered: (dateString: string, shouldBeFiltered: boolean) => Promise<void>;
|
|
75
91
|
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/fields/DateSelectorField/tests/test-utils.tsx"],"names":[],"mappings":";AAEA,OAAO,EAGL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC9B,MAAM,aACF,GAAG,eACD,GAAG,WACP,GAAG;;;;;;CA0CV,CAAC;AAEJ,eAAO,MAAM,uBAAuB,YAAa,GAAG,gBAAe,GAAG,QAOlE,CAAC;AAEL,eAAO,MAAM,wBAAwB,wCAIpC,CAAC;AAEF,eAAO,MAAM,2BAA2B,iBAAiB,OAAO;;CAE9D,CAAC;AAEH,eAAO,MAAM,kBAAkB,YACrB,MAAM,GAAG,MAAM,aACb,MAAM,YACN,MAAM,YACN,MAAM;;;;;;CAOhB,CAAC;AAEH,eAAO,MAAM,8BAA8B,YAChC,OAAO,aACL,OAAO,eACL,OAAO,kBACJ,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/elements/fields/DateSelectorField/tests/test-utils.tsx"],"names":[],"mappings":";AAEA,OAAO,EAGL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC3B,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC9B,MAAM,aACF,GAAG,eACD,GAAG,WACP,GAAG;;;;;;CA0CV,CAAC;AAEJ,eAAO,MAAM,uBAAuB,YAAa,GAAG,gBAAe,GAAG,QAOlE,CAAC;AAEL,eAAO,MAAM,wBAAwB,wCAIpC,CAAC;AAEF,eAAO,MAAM,2BAA2B,iBAAiB,OAAO;;CAE9D,CAAC;AAEH,eAAO,MAAM,kBAAkB,YACrB,MAAM,GAAG,MAAM,aACb,MAAM,YACN,MAAM,YACN,MAAM;;;;;;CAOhB,CAAC;AAEH,eAAO,MAAM,8BAA8B,YAChC,OAAO,aACL,OAAO,eACL,OAAO,kBACJ,MAAM,EAAE,YACd,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;CAAE,YACxE,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;CAAE;;gBAArD,MAAM;cAAQ,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO;;;gBADnD,MAAM;cAAQ,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO;;;;;;CAShF,CAAC;AAEH,eAAO,MAAM,qBAAqB,cAAc,GAAG;;;;;;CACwB,CAAC;AAE5E,eAAO,MAAM,qBAAqB,cAAc,GAAG;;;;;;CACuB,CAAC;AAE3E,eAAO,MAAM,wBAAwB,YAC3B,MAAM,GAAG,MAAM,aACb,MAAM;;;;;;CAC0D,CAAC;AAE7E,eAAO,MAAM,2BAA2B,kBAAkB,GAAG;;;;;;CAW1D,CAAC;AAEJ,eAAO,MAAM,kBAAkB,iCAS9B,CAAC;AAEF,eAAO,MAAM,cAAc,wBAI1B,CAAC;AAEF,eAAO,MAAM,UAAU,sBAEtB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAiB,MAAM,kBAO/C,CAAC;AAEF,eAAO,MAAM,cAAc,qBAI1B,CAAC;AAEF,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,qBAIzB,CAAC;AAEF,eAAO,MAAM,cAAc,UAAiB,MAAM,kBAIjD,CAAC;AAEF,eAAO,MAAM,0BAA0B,kBAAyB,MAAM,kBAGrE,CAAC;AAEF,eAAO,MAAM,2BAA2B,qBAGvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,SAG3D,CAAC;AAEF,eAAO,MAAM,sBAAsB,kBAAmB,MAAM,SAG3D,CAAC;AAEF,eAAO,MAAM,WAAW,cAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,aAAa,MAAM,WAI7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,iBAAiB,MAAM,WAInD,CAAC;AAEF,eAAO,MAAM,iBAAiB,cAK7B,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAAW,MAAM,OAAO,MAAM,WAElE,CAAC;AAEF,eAAO,MAAM,UAAU,gBAAiB,MAAM,WAI7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAAa,MAAM,WAMjD,CAAC;AAEF,eAAO,MAAM,sBAAsB,eACrB,MAAM,oBACA,OAAO,kBAU1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/FileUploadField/index.tsx"],"names":[],"mappings":"AAeA,iBAAS,eAAe,CAAC,EACvB,OAAO,EACP,gBAAgB,EAChB,QAAgB,EAChB,QAAgB,EAChB,QAAQ,EACR,QAAQ,EAAE,cAAyB,EACnC,YAAiB,EACjB,YAAiB,EACjB,QAAQ,EACT,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/elements/fields/FileUploadField/index.tsx"],"names":[],"mappings":"AAeA,iBAAS,eAAe,CAAC,EACvB,OAAO,EACP,gBAAgB,EAChB,QAAgB,EAChB,QAAgB,EAChB,QAAQ,EACR,QAAQ,EAAE,cAAyB,EACnC,YAAiB,EACjB,YAAiB,EACjB,QAAQ,EACT,EAAE,GAAG,oDAgWL;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/index.tsx"],"names":[],"mappings":";AA6EA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBX,CAAC;AAkBF,eAAO,MAAM,gBAAgB,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/index.tsx"],"names":[],"mappings":";AA6EA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBX,CAAC;AAkBF,eAAO,MAAM,gBAAgB,KAAK,CAAC;AA8ZnC,eAAe,MAAM,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as jsx, a as __assign, _ as __read, au as replaceTextVariables, q as isMobile, j as jsxs, m as Fragment, k as FORM_Z_INDEX } from './fthry_index.
|
|
1
|
+
import { b as jsx, a as __assign, _ as __read, au as replaceTextVariables, q as isMobile, j as jsxs, m as Fragment, k as FORM_Z_INDEX } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useState, useRef } from 'react';
|
|
3
|
-
import { O as Overlay, T as Tooltip } from './fthry_Overlay.
|
|
3
|
+
import { O as Overlay, T as Tooltip } from './fthry_Overlay.4bM7bqaM.js';
|
|
4
4
|
|
|
5
5
|
function HelpIcon(_a) {
|
|
6
6
|
var _b = _a.cssStyles, cssStyles = _b === void 0 ? {} : _b, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __rest, b as jsx, a as __assign, k as FORM_Z_INDEX, _ as __read, s as featheryDoc, l as featheryWindow, m as Fragment } from './fthry_index.
|
|
1
|
+
import { t as __rest, b as jsx, a as __assign, k as FORM_Z_INDEX, _ as __read, s as featheryDoc, l as featheryWindow, m as Fragment } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useRef, useState, useCallback, useLayoutEffect, useEffect } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
|
package/dist/esm/{fthry_PaymentMethodField.wSqTzrcH.js → fthry_PaymentMethodField.Cb-ULdGb.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as __rest, s as featheryDoc, j as jsxs, a as __assign, ab as getStripe, b as jsx, _ as __read, u as useBorder, ac as filterKeys, ad as ERROR_COLOR } from './fthry_index.
|
|
1
|
+
import { t as __rest, s as featheryDoc, j as jsxs, a as __assign, ab as getStripe, b as jsx, _ as __read, u as useBorder, ac as filterKeys, ad as ERROR_COLOR } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import React__default, { memo, useEffect, useState, useRef } from 'react';
|
|
3
|
-
import { P as PropTypes } from './fthry_index.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
3
|
+
import { P as PropTypes } from './fthry_index.C41oCBcm.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import './fthry_Overlay.
|
|
9
|
+
import './fthry_Overlay.4bM7bqaM.js';
|
|
10
10
|
|
|
11
11
|
function ownKeys(object, enumerableOnly) {
|
|
12
12
|
var keys = Object.keys(object);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __rest, b as jsx, a as __assign } from './fthry_index.
|
|
1
|
+
import { t as __rest, b as jsx, a as __assign } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
|
|
3
3
|
function ShowEyeIcon$1(_a) {
|
|
4
4
|
var _b = _a.width, width = _b === void 0 ? 30 : _b, _c = _a.height, height = _c === void 0 ? 30 : _c, props = __rest(_a, ["width", "height"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __read, j as jsxs, a as __assign, b as jsx, h as hoverStylesGuard } from './fthry_index.
|
|
1
|
+
import { _ as __read, j as jsxs, a as __assign, b as jsx, h as hoverStylesGuard } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.D641KtAd.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { y as stringify, z as rulesheet, C as COMMENT, A as middleware, R as RULESET, B as combine, H as match, I as serialize, J as copy, K as replace, W as WEBKIT, M as MOZ, L as MS, N as KEYFRAMES, O as DECLARATION, P as dealloc, Q as alloc, S as hash, T as charat, U as strlen, V as indexof, X as next, Y as token, Z as from, $ as peek, a0 as delimit, a1 as slice, a2 as position, a3 as compile, b as jsx$1, a as __assign, j as jsxs, m as Fragment$1, t as __rest, _ as __read, k as FORM_Z_INDEX, l as featheryWindow, s as featheryDoc, a4 as __spreadArray, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.
|
|
1
|
+
import { y as stringify, z as rulesheet, C as COMMENT, A as middleware, R as RULESET, B as combine, H as match, I as serialize, J as copy, K as replace, W as WEBKIT, M as MOZ, L as MS, N as KEYFRAMES, O as DECLARATION, P as dealloc, Q as alloc, S as hash, T as charat, U as strlen, V as indexof, X as next, Y as token, Z as from, $ as peek, a0 as delimit, a1 as slice, a2 as position, a3 as compile, b as jsx$1, a as __assign, j as jsxs, m as Fragment$1, t as __rest, _ as __read, k as FORM_Z_INDEX, l as featheryWindow, s as featheryDoc, a4 as __spreadArray, u as useBorder, D as DROPDOWN_Z_INDEX } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useState, useCallback, forwardRef, useContext, useLayoutEffect, useEffect, createContext, useRef, useMemo, Component, Fragment } from 'react';
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { P as Placeholder$2 } from './fthry_Placeholder.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
7
|
-
import { T as Tooltip, O as Overlay } from './fthry_Overlay.
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
5
|
+
import { P as Placeholder$2 } from './fthry_Placeholder.CcLGjl1u.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DL2Ww72M.js';
|
|
7
|
+
import { T as Tooltip, O as Overlay } from './fthry_Overlay.4bM7bqaM.js';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react-dom/client';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __read, j as jsxs$1, a as __assign, b as jsx$1, k as FORM_Z_INDEX } from './fthry_index.
|
|
1
|
+
import { _ as __read, j as jsxs$1, a as __assign, b as jsx$1, k as FORM_Z_INDEX } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import React__default, { useRef, useEffect, useCallback, useState, useMemo, Fragment } from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as useBorder, j as jsxs, a as __assign, b as jsx, h as hoverStylesGuard, f as imgMaxSizeStyles, n as noTextSelectStyles, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { u as useBorder, j as jsxs, a as __assign, b as jsx, h as hoverStylesGuard, f as imgMaxSizeStyles, n as noTextSelectStyles, E as ErrorInput } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
4
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DL2Ww72M.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import './fthry_Overlay.
|
|
9
|
+
import './fthry_Overlay.4bM7bqaM.js';
|
|
10
10
|
|
|
11
11
|
function ButtonGroupField(_a) {
|
|
12
12
|
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, inlineError = _a.inlineError, _b = _a.fieldVal, fieldVal = _b === void 0 ? null : _b, _c = _a.repeatIndex, repeatIndex = _c === void 0 ? null : _c, editMode = _a.editMode, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.elementProps, elementProps = _e === void 0 ? {} : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, children = _a.children;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as __rest, _ as __read, w as countryData, ae as authState, af as firebaseSMSCountries, j as jsxs, b as jsx, a as __assign, m as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, ag as phoneLibPromise, h as hoverStylesGuard, ah as isNum, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { t as __rest, _ as __read, w as countryData, ae as authState, af as firebaseSMSCountries, j as jsxs, b as jsx, a as __assign, m as Fragment, D as DROPDOWN_Z_INDEX, u as useBorder, ag as phoneLibPromise, h as hoverStylesGuard, ah as isNum, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { forwardRef, useRef, useState, useEffect, useMemo, memo } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CcLGjl1u.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.4bM7bqaM.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.Ce2Hmk3y.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u as useBorder, _ as __read, j as jsxs, a as __assign, h as hoverStylesGuard, b as jsx, i as iosScrollOnFocus, k as FORM_Z_INDEX, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { u as useBorder, _ as __read, j as jsxs, a as __assign, h as hoverStylesGuard, b as jsx, i as iosScrollOnFocus, k as FORM_Z_INDEX, r as resetStyles } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { memo, useState, useRef } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CcLGjl1u.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
5
|
+
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.eF1-xhvT.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
7
|
import 'react-dom/client';
|
|
8
8
|
import 'jszip';
|
|
9
9
|
import 'react-dom';
|
|
10
|
-
import './fthry_Overlay.
|
|
10
|
+
import './fthry_Overlay.4bM7bqaM.js';
|
|
11
11
|
|
|
12
12
|
function PasswordField(_a) {
|
|
13
13
|
var _b;
|