@ark-ui/react 3.5.0 → 3.6.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/README.md +3 -0
- package/dist/components/dialog/dialog-root.d.cts +1 -1
- package/dist/components/dialog/dialog-root.d.ts +1 -1
- package/dist/components/field/use-field.cjs +91 -56
- package/dist/components/field/use-field.d.cts +7 -61
- package/dist/components/field/use-field.d.ts +7 -61
- package/dist/components/field/use-field.js +92 -57
- package/dist/components/fieldset/fieldset-context.cjs +10 -0
- package/dist/components/fieldset/fieldset-context.d.cts +7 -0
- package/dist/components/fieldset/fieldset-context.d.ts +7 -0
- package/dist/components/fieldset/fieldset-context.js +6 -0
- package/dist/components/fieldset/fieldset-error-text.cjs +21 -0
- package/dist/components/fieldset/fieldset-error-text.d.cts +8 -0
- package/dist/components/fieldset/fieldset-error-text.d.ts +8 -0
- package/dist/components/fieldset/fieldset-error-text.js +17 -0
- package/dist/components/fieldset/fieldset-helper-text.cjs +21 -0
- package/dist/components/fieldset/fieldset-helper-text.d.cts +8 -0
- package/dist/components/fieldset/fieldset-helper-text.d.ts +8 -0
- package/dist/components/fieldset/fieldset-helper-text.js +17 -0
- package/dist/components/fieldset/fieldset-legend.cjs +19 -0
- package/dist/components/fieldset/fieldset-legend.d.cts +8 -0
- package/dist/components/fieldset/fieldset-legend.d.ts +8 -0
- package/dist/components/fieldset/fieldset-legend.js +15 -0
- package/dist/components/fieldset/fieldset-root-provider.cjs +24 -0
- package/dist/components/fieldset/fieldset-root-provider.d.cts +13 -0
- package/dist/components/fieldset/fieldset-root-provider.d.ts +13 -0
- package/dist/components/fieldset/fieldset-root-provider.js +20 -0
- package/dist/components/fieldset/fieldset-root.cjs +27 -0
- package/dist/components/fieldset/fieldset-root.d.cts +9 -0
- package/dist/components/fieldset/fieldset-root.d.ts +9 -0
- package/dist/components/fieldset/fieldset-root.js +23 -0
- package/dist/components/fieldset/fieldset.anatomy.cjs +17 -0
- package/dist/components/fieldset/fieldset.anatomy.d.cts +3 -0
- package/dist/components/fieldset/fieldset.anatomy.d.ts +3 -0
- package/dist/components/fieldset/fieldset.anatomy.js +12 -0
- package/dist/components/fieldset/fieldset.cjs +19 -0
- package/dist/components/fieldset/fieldset.d.cts +6 -0
- package/dist/components/fieldset/fieldset.d.ts +6 -0
- package/dist/components/fieldset/fieldset.js +6 -0
- package/dist/components/fieldset/index.cjs +25 -0
- package/dist/components/fieldset/index.d.cts +9 -0
- package/dist/components/fieldset/index.d.ts +9 -0
- package/dist/components/fieldset/index.js +10 -0
- package/dist/components/fieldset/use-fieldset-context.cjs +16 -0
- package/dist/components/fieldset/use-fieldset-context.d.cts +6 -0
- package/dist/components/fieldset/use-fieldset-context.d.ts +6 -0
- package/dist/components/fieldset/use-fieldset-context.js +11 -0
- package/dist/components/fieldset/use-fieldset.cjs +85 -0
- package/dist/components/fieldset/use-fieldset.d.cts +29 -0
- package/dist/components/fieldset/use-fieldset.d.ts +29 -0
- package/dist/components/fieldset/use-fieldset.js +81 -0
- package/dist/components/highlight/highlight.cjs +26 -0
- package/dist/components/highlight/highlight.d.cts +8 -0
- package/dist/components/highlight/highlight.d.ts +8 -0
- package/dist/components/highlight/highlight.js +22 -0
- package/dist/components/highlight/index.cjs +11 -0
- package/dist/components/highlight/index.d.cts +2 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/highlight/index.js +2 -0
- package/dist/components/highlight/use-highlight.cjs +49 -0
- package/dist/components/highlight/use-highlight.d.cts +30 -0
- package/dist/components/highlight/use-highlight.d.ts +30 -0
- package/dist/components/highlight/use-highlight.js +45 -0
- package/dist/components/index.cjs +54 -0
- package/dist/components/index.d.cts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +29 -0
- package/dist/components/select/select-hidden-select.cjs +8 -1
- package/dist/components/select/select-hidden-select.js +8 -1
- package/dist/components/time-picker/index.cjs +39 -0
- package/dist/components/time-picker/index.d.cts +17 -0
- package/dist/components/time-picker/index.d.ts +17 -0
- package/dist/components/time-picker/index.js +17 -0
- package/dist/components/time-picker/time-picker-cell.cjs +29 -0
- package/dist/components/time-picker/time-picker-cell.d.cts +14 -0
- package/dist/components/time-picker/time-picker-cell.d.ts +14 -0
- package/dist/components/time-picker/time-picker-cell.js +25 -0
- package/dist/components/time-picker/time-picker-clear-trigger.cjs +21 -0
- package/dist/components/time-picker/time-picker-clear-trigger.d.cts +8 -0
- package/dist/components/time-picker/time-picker-clear-trigger.d.ts +8 -0
- package/dist/components/time-picker/time-picker-clear-trigger.js +17 -0
- package/dist/components/time-picker/time-picker-column.cjs +22 -0
- package/dist/components/time-picker/time-picker-column.d.cts +9 -0
- package/dist/components/time-picker/time-picker-column.d.ts +9 -0
- package/dist/components/time-picker/time-picker-column.js +18 -0
- package/dist/components/time-picker/time-picker-content.cjs +30 -0
- package/dist/components/time-picker/time-picker-content.d.cts +8 -0
- package/dist/components/time-picker/time-picker-content.d.ts +8 -0
- package/dist/components/time-picker/time-picker-content.js +26 -0
- package/dist/components/time-picker/time-picker-context.cjs +10 -0
- package/dist/components/time-picker/time-picker-context.d.cts +7 -0
- package/dist/components/time-picker/time-picker-context.d.ts +7 -0
- package/dist/components/time-picker/time-picker-context.js +6 -0
- package/dist/components/time-picker/time-picker-control.cjs +21 -0
- package/dist/components/time-picker/time-picker-control.d.cts +8 -0
- package/dist/components/time-picker/time-picker-control.d.ts +8 -0
- package/dist/components/time-picker/time-picker-control.js +17 -0
- package/dist/components/time-picker/time-picker-input.cjs +19 -0
- package/dist/components/time-picker/time-picker-input.d.cts +8 -0
- package/dist/components/time-picker/time-picker-input.d.ts +8 -0
- package/dist/components/time-picker/time-picker-input.js +15 -0
- package/dist/components/time-picker/time-picker-label.cjs +19 -0
- package/dist/components/time-picker/time-picker-label.d.cts +8 -0
- package/dist/components/time-picker/time-picker-label.d.ts +8 -0
- package/dist/components/time-picker/time-picker-label.js +15 -0
- package/dist/components/time-picker/time-picker-positioner.cjs +26 -0
- package/dist/components/time-picker/time-picker-positioner.d.cts +8 -0
- package/dist/components/time-picker/time-picker-positioner.d.ts +8 -0
- package/dist/components/time-picker/time-picker-positioner.js +22 -0
- package/dist/components/time-picker/time-picker-root-provider.cjs +30 -0
- package/dist/components/time-picker/time-picker-root-provider.d.cts +14 -0
- package/dist/components/time-picker/time-picker-root-provider.d.ts +14 -0
- package/dist/components/time-picker/time-picker-root-provider.js +26 -0
- package/dist/components/time-picker/time-picker-root.cjs +48 -0
- package/dist/components/time-picker/time-picker-root.d.cts +11 -0
- package/dist/components/time-picker/time-picker-root.d.ts +11 -0
- package/dist/components/time-picker/time-picker-root.js +44 -0
- package/dist/components/time-picker/time-picker-spacer.cjs +19 -0
- package/dist/components/time-picker/time-picker-spacer.d.cts +8 -0
- package/dist/components/time-picker/time-picker-spacer.d.ts +8 -0
- package/dist/components/time-picker/time-picker-spacer.js +15 -0
- package/dist/components/time-picker/time-picker-trigger.cjs +21 -0
- package/dist/components/time-picker/time-picker-trigger.d.cts +8 -0
- package/dist/components/time-picker/time-picker-trigger.d.ts +8 -0
- package/dist/components/time-picker/time-picker-trigger.js +17 -0
- package/dist/components/time-picker/time-picker.cjs +33 -0
- package/dist/components/time-picker/time-picker.d.cts +14 -0
- package/dist/components/time-picker/time-picker.d.ts +14 -0
- package/dist/components/time-picker/time-picker.js +13 -0
- package/dist/components/time-picker/use-time-picker-column-props-context.cjs +15 -0
- package/dist/components/time-picker/use-time-picker-column-props-context.d.cts +7 -0
- package/dist/components/time-picker/use-time-picker-column-props-context.d.ts +7 -0
- package/dist/components/time-picker/use-time-picker-column-props-context.js +10 -0
- package/dist/components/time-picker/use-time-picker-context.cjs +15 -0
- package/dist/components/time-picker/use-time-picker-context.d.cts +6 -0
- package/dist/components/time-picker/use-time-picker-context.d.ts +6 -0
- package/dist/components/time-picker/use-time-picker-context.js +10 -0
- package/dist/components/time-picker/use-time-picker.cjs +60 -0
- package/dist/components/time-picker/use-time-picker.d.cts +31 -0
- package/dist/components/time-picker/use-time-picker.d.ts +31 -0
- package/dist/components/time-picker/use-time-picker.js +37 -0
- package/dist/components/toast/index.d.cts +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/index.cjs +54 -0
- package/dist/index.js +29 -0
- package/dist/node_modules/@internationalized/date/dist/CalendarDate.cjs +52 -0
- package/dist/node_modules/@internationalized/date/dist/CalendarDate.js +48 -0
- package/dist/node_modules/@internationalized/date/dist/manipulation.cjs +108 -0
- package/dist/node_modules/@internationalized/date/dist/manipulation.js +99 -0
- package/dist/node_modules/@internationalized/date/dist/queries.cjs +13 -0
- package/dist/node_modules/@internationalized/date/dist/queries.js +9 -0
- package/dist/node_modules/@internationalized/date/dist/string.cjs +38 -0
- package/dist/node_modules/@internationalized/date/dist/string.js +33 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs +13 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +8 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs +14 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.js +9 -0
- package/package.json +97 -60
package/dist/index.cjs
CHANGED
|
@@ -194,6 +194,15 @@ const fieldTextarea = require('./components/field/field-textarea.cjs');
|
|
|
194
194
|
const useFieldContext = require('./components/field/use-field-context.cjs');
|
|
195
195
|
const field_anatomy = require('./components/field/field.anatomy.cjs');
|
|
196
196
|
const field = require('./components/field/field.cjs');
|
|
197
|
+
const fieldsetContext = require('./components/fieldset/fieldset-context.cjs');
|
|
198
|
+
const fieldsetErrorText = require('./components/fieldset/fieldset-error-text.cjs');
|
|
199
|
+
const fieldsetHelperText = require('./components/fieldset/fieldset-helper-text.cjs');
|
|
200
|
+
const fieldsetRoot = require('./components/fieldset/fieldset-root.cjs');
|
|
201
|
+
const fieldsetRootProvider = require('./components/fieldset/fieldset-root-provider.cjs');
|
|
202
|
+
const fieldsetLegend = require('./components/fieldset/fieldset-legend.cjs');
|
|
203
|
+
const fieldset_anatomy = require('./components/fieldset/fieldset.anatomy.cjs');
|
|
204
|
+
const useFieldsetContext = require('./components/fieldset/use-fieldset-context.cjs');
|
|
205
|
+
const fieldset = require('./components/fieldset/fieldset.cjs');
|
|
197
206
|
const fileUploadContext = require('./components/file-upload/file-upload-context.cjs');
|
|
198
207
|
const fileUploadDropzone = require('./components/file-upload/file-upload-dropzone.cjs');
|
|
199
208
|
const fileUploadHiddenInput = require('./components/file-upload/file-upload-hidden-input.cjs');
|
|
@@ -214,6 +223,8 @@ const fileUpload$1 = require('./components/file-upload/file-upload.cjs');
|
|
|
214
223
|
const formatByte = require('./components/format/format-byte.cjs');
|
|
215
224
|
const formatNumber = require('./components/format/format-number.cjs');
|
|
216
225
|
const format = require('./components/format/format.cjs');
|
|
226
|
+
const highlight = require('./components/highlight/highlight.cjs');
|
|
227
|
+
const useHighlight = require('./components/highlight/use-highlight.cjs');
|
|
217
228
|
const hoverCardArrow = require('./components/hover-card/hover-card-arrow.cjs');
|
|
218
229
|
const hoverCardArrowTip = require('./components/hover-card/hover-card-arrow-tip.cjs');
|
|
219
230
|
const hoverCardContent = require('./components/hover-card/hover-card-content.cjs');
|
|
@@ -464,6 +475,22 @@ const useTagsInput = require('./components/tags-input/use-tags-input.cjs');
|
|
|
464
475
|
const useTagsInputContext = require('./components/tags-input/use-tags-input-context.cjs');
|
|
465
476
|
const useTagsInputItemContext = require('./components/tags-input/use-tags-input-item-context.cjs');
|
|
466
477
|
const tagsInput$1 = require('./components/tags-input/tags-input.cjs');
|
|
478
|
+
const timePickerCell = require('./components/time-picker/time-picker-cell.cjs');
|
|
479
|
+
const timePickerClearTrigger = require('./components/time-picker/time-picker-clear-trigger.cjs');
|
|
480
|
+
const timePickerColumn = require('./components/time-picker/time-picker-column.cjs');
|
|
481
|
+
const timePickerContent = require('./components/time-picker/time-picker-content.cjs');
|
|
482
|
+
const timePickerContext = require('./components/time-picker/time-picker-context.cjs');
|
|
483
|
+
const timePickerControl = require('./components/time-picker/time-picker-control.cjs');
|
|
484
|
+
const timePickerInput = require('./components/time-picker/time-picker-input.cjs');
|
|
485
|
+
const timePickerLabel = require('./components/time-picker/time-picker-label.cjs');
|
|
486
|
+
const timePickerPositioner = require('./components/time-picker/time-picker-positioner.cjs');
|
|
487
|
+
const timePickerRoot = require('./components/time-picker/time-picker-root.cjs');
|
|
488
|
+
const timePickerRootProvider = require('./components/time-picker/time-picker-root-provider.cjs');
|
|
489
|
+
const timePickerSpacer = require('./components/time-picker/time-picker-spacer.cjs');
|
|
490
|
+
const timePickerTrigger = require('./components/time-picker/time-picker-trigger.cjs');
|
|
491
|
+
const useTimePicker = require('./components/time-picker/use-time-picker.cjs');
|
|
492
|
+
const useTimePickerContext = require('./components/time-picker/use-time-picker-context.cjs');
|
|
493
|
+
const timePicker = require('./components/time-picker/time-picker.cjs');
|
|
467
494
|
const createToaster = require('./components/toast/create-toaster.cjs');
|
|
468
495
|
const toastActionTrigger = require('./components/toast/toast-action-trigger.cjs');
|
|
469
496
|
const toastCloseTrigger = require('./components/toast/toast-close-trigger.cjs');
|
|
@@ -740,6 +767,15 @@ exports.FieldTextarea = fieldTextarea.FieldTextarea;
|
|
|
740
767
|
exports.useFieldContext = useFieldContext.useFieldContext;
|
|
741
768
|
exports.fieldAnatomy = field_anatomy.fieldAnatomy;
|
|
742
769
|
exports.Field = field;
|
|
770
|
+
exports.FieldsetContext = fieldsetContext.FieldsetContext;
|
|
771
|
+
exports.FieldsetErrorText = fieldsetErrorText.FieldsetErrorText;
|
|
772
|
+
exports.FieldsetHelperText = fieldsetHelperText.FieldsetHelperText;
|
|
773
|
+
exports.FieldsetRoot = fieldsetRoot.FieldsetRoot;
|
|
774
|
+
exports.FieldsetRootProvider = fieldsetRootProvider.FieldsetRootProvider;
|
|
775
|
+
exports.FieldsetLegend = fieldsetLegend.FieldsetLegend;
|
|
776
|
+
exports.fieldsetAnatomy = fieldset_anatomy.fieldsetAnatomy;
|
|
777
|
+
exports.useFieldsetContext = useFieldsetContext.useFieldsetContext;
|
|
778
|
+
exports.Fieldset = fieldset;
|
|
743
779
|
exports.FileUploadContext = fileUploadContext.FileUploadContext;
|
|
744
780
|
exports.FileUploadDropzone = fileUploadDropzone.FileUploadDropzone;
|
|
745
781
|
exports.FileUploadHiddenInput = fileUploadHiddenInput.FileUploadHiddenInput;
|
|
@@ -760,6 +796,8 @@ exports.FileUpload = fileUpload$1;
|
|
|
760
796
|
exports.FormatByte = formatByte.FormatByte;
|
|
761
797
|
exports.FormatNumber = formatNumber.FormatNumber;
|
|
762
798
|
exports.Format = format;
|
|
799
|
+
exports.Highlight = highlight.Highlight;
|
|
800
|
+
exports.useHighlight = useHighlight.useHighlight;
|
|
763
801
|
exports.HoverCardArrow = hoverCardArrow.HoverCardArrow;
|
|
764
802
|
exports.HoverCardArrowTip = hoverCardArrowTip.HoverCardArrowTip;
|
|
765
803
|
exports.HoverCardContent = hoverCardContent.HoverCardContent;
|
|
@@ -1011,6 +1049,22 @@ exports.useTagsInput = useTagsInput.useTagsInput;
|
|
|
1011
1049
|
exports.useTagsInputContext = useTagsInputContext.useTagsInputContext;
|
|
1012
1050
|
exports.useTagsInputItemContext = useTagsInputItemContext.useTagsInputItemContext;
|
|
1013
1051
|
exports.TagsInput = tagsInput$1;
|
|
1052
|
+
exports.TimePickerCell = timePickerCell.TimePickerCell;
|
|
1053
|
+
exports.TimePickerClearTrigger = timePickerClearTrigger.TimePickerClearTrigger;
|
|
1054
|
+
exports.TimePickerColumn = timePickerColumn.TimePickerColumn;
|
|
1055
|
+
exports.TimePickerContent = timePickerContent.TimePickerContent;
|
|
1056
|
+
exports.TimePickerContext = timePickerContext.TimePickerContext;
|
|
1057
|
+
exports.TimePickerControl = timePickerControl.TimePickerControl;
|
|
1058
|
+
exports.TimePickerInput = timePickerInput.TimePickerInput;
|
|
1059
|
+
exports.TimePickerLabel = timePickerLabel.TimePickerLabel;
|
|
1060
|
+
exports.TimePickerPositioner = timePickerPositioner.TimePickerPositioner;
|
|
1061
|
+
exports.TimePickerRoot = timePickerRoot.TimePickerRoot;
|
|
1062
|
+
exports.TimePickerRootProvider = timePickerRootProvider.TimePickerRootProvider;
|
|
1063
|
+
exports.TimePickerSpacer = timePickerSpacer.TimePickerSpacer;
|
|
1064
|
+
exports.TimePickerTrigger = timePickerTrigger.TimePickerTrigger;
|
|
1065
|
+
exports.useTimePicker = useTimePicker.useTimePicker;
|
|
1066
|
+
exports.useTimePickerContext = useTimePickerContext.useTimePickerContext;
|
|
1067
|
+
exports.TimePicker = timePicker;
|
|
1014
1068
|
exports.createToaster = createToaster.createToaster;
|
|
1015
1069
|
exports.ToastActionTrigger = toastActionTrigger.ToastActionTrigger;
|
|
1016
1070
|
exports.ToastCloseTrigger = toastCloseTrigger.ToastCloseTrigger;
|
package/dist/index.js
CHANGED
|
@@ -202,6 +202,16 @@ export { useFieldContext } from './components/field/use-field-context.js';
|
|
|
202
202
|
export { fieldAnatomy } from './components/field/field.anatomy.js';
|
|
203
203
|
import * as field from './components/field/field.js';
|
|
204
204
|
export { field as Field };
|
|
205
|
+
export { FieldsetContext } from './components/fieldset/fieldset-context.js';
|
|
206
|
+
export { FieldsetErrorText } from './components/fieldset/fieldset-error-text.js';
|
|
207
|
+
export { FieldsetHelperText } from './components/fieldset/fieldset-helper-text.js';
|
|
208
|
+
export { FieldsetRoot } from './components/fieldset/fieldset-root.js';
|
|
209
|
+
export { FieldsetRootProvider } from './components/fieldset/fieldset-root-provider.js';
|
|
210
|
+
export { FieldsetLegend } from './components/fieldset/fieldset-legend.js';
|
|
211
|
+
export { fieldsetAnatomy } from './components/fieldset/fieldset.anatomy.js';
|
|
212
|
+
export { useFieldsetContext } from './components/fieldset/use-fieldset-context.js';
|
|
213
|
+
import * as fieldset from './components/fieldset/fieldset.js';
|
|
214
|
+
export { fieldset as Fieldset };
|
|
205
215
|
export { FileUploadContext } from './components/file-upload/file-upload-context.js';
|
|
206
216
|
export { FileUploadDropzone } from './components/file-upload/file-upload-dropzone.js';
|
|
207
217
|
export { FileUploadHiddenInput } from './components/file-upload/file-upload-hidden-input.js';
|
|
@@ -224,6 +234,8 @@ export { FormatByte } from './components/format/format-byte.js';
|
|
|
224
234
|
export { FormatNumber } from './components/format/format-number.js';
|
|
225
235
|
import * as format from './components/format/format.js';
|
|
226
236
|
export { format as Format };
|
|
237
|
+
export { Highlight } from './components/highlight/highlight.js';
|
|
238
|
+
export { useHighlight } from './components/highlight/use-highlight.js';
|
|
227
239
|
export { HoverCardArrow } from './components/hover-card/hover-card-arrow.js';
|
|
228
240
|
export { HoverCardArrowTip } from './components/hover-card/hover-card-arrow-tip.js';
|
|
229
241
|
export { HoverCardContent } from './components/hover-card/hover-card-content.js';
|
|
@@ -492,6 +504,23 @@ export { useTagsInputContext } from './components/tags-input/use-tags-input-cont
|
|
|
492
504
|
export { useTagsInputItemContext } from './components/tags-input/use-tags-input-item-context.js';
|
|
493
505
|
import * as tagsInput from './components/tags-input/tags-input.js';
|
|
494
506
|
export { tagsInput as TagsInput };
|
|
507
|
+
export { TimePickerCell } from './components/time-picker/time-picker-cell.js';
|
|
508
|
+
export { TimePickerClearTrigger } from './components/time-picker/time-picker-clear-trigger.js';
|
|
509
|
+
export { TimePickerColumn } from './components/time-picker/time-picker-column.js';
|
|
510
|
+
export { TimePickerContent } from './components/time-picker/time-picker-content.js';
|
|
511
|
+
export { TimePickerContext } from './components/time-picker/time-picker-context.js';
|
|
512
|
+
export { TimePickerControl } from './components/time-picker/time-picker-control.js';
|
|
513
|
+
export { TimePickerInput } from './components/time-picker/time-picker-input.js';
|
|
514
|
+
export { TimePickerLabel } from './components/time-picker/time-picker-label.js';
|
|
515
|
+
export { TimePickerPositioner } from './components/time-picker/time-picker-positioner.js';
|
|
516
|
+
export { TimePickerRoot } from './components/time-picker/time-picker-root.js';
|
|
517
|
+
export { TimePickerRootProvider } from './components/time-picker/time-picker-root-provider.js';
|
|
518
|
+
export { TimePickerSpacer } from './components/time-picker/time-picker-spacer.js';
|
|
519
|
+
export { TimePickerTrigger } from './components/time-picker/time-picker-trigger.js';
|
|
520
|
+
export { useTimePicker } from './components/time-picker/use-time-picker.js';
|
|
521
|
+
export { useTimePickerContext } from './components/time-picker/use-time-picker-context.js';
|
|
522
|
+
import * as timePicker from './components/time-picker/time-picker.js';
|
|
523
|
+
export { timePicker as TimePicker };
|
|
495
524
|
export { createToaster } from './components/toast/create-toaster.js';
|
|
496
525
|
export { ToastActionTrigger } from './components/toast/toast-action-trigger.js';
|
|
497
526
|
export { ToastCloseTrigger } from './components/toast/toast-close-trigger.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const manipulation = require('./manipulation.cjs');
|
|
7
|
+
const queries = require('./queries.cjs');
|
|
8
|
+
const string = require('./string.cjs');
|
|
9
|
+
const _class_private_field_init = require('../../../@swc/helpers/esm/_class_private_field_init.cjs');
|
|
10
|
+
|
|
11
|
+
var // This prevents TypeScript from allowing other types with the same fields to match.
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
$35ea8db9cb2ccb90$var$_type1 = /*#__PURE__*/ new WeakMap();
|
|
14
|
+
class $35ea8db9cb2ccb90$export$680ea196effce5f {
|
|
15
|
+
/** Returns a copy of this time. */ copy() {
|
|
16
|
+
return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);
|
|
17
|
+
}
|
|
18
|
+
/** Returns a new `Time` with the given duration added to it. */ add(duration) {
|
|
19
|
+
return (manipulation.addTime)(this, duration);
|
|
20
|
+
}
|
|
21
|
+
/** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {
|
|
22
|
+
return (manipulation.subtractTime)(this, duration);
|
|
23
|
+
}
|
|
24
|
+
/** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
|
|
25
|
+
return (manipulation.setTime)(this, fields);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns a new `Time` with the given field adjusted by a specified amount.
|
|
29
|
+
* When the resulting value reaches the limits of the field, it wraps around.
|
|
30
|
+
*/ cycle(field, amount, options) {
|
|
31
|
+
return (manipulation.cycleTime)(this, field, amount, options);
|
|
32
|
+
}
|
|
33
|
+
/** Converts the time to an ISO 8601 formatted string. */ toString() {
|
|
34
|
+
return (string.timeToString)(this);
|
|
35
|
+
}
|
|
36
|
+
/** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {
|
|
37
|
+
return (queries.compareTime)(this, b);
|
|
38
|
+
}
|
|
39
|
+
constructor(hour = 0, minute = 0, second = 0, millisecond = 0){
|
|
40
|
+
(_class_private_field_init._class_private_field_init)(this, $35ea8db9cb2ccb90$var$_type1, {
|
|
41
|
+
writable: true,
|
|
42
|
+
value: void 0
|
|
43
|
+
});
|
|
44
|
+
this.hour = hour;
|
|
45
|
+
this.minute = minute;
|
|
46
|
+
this.second = second;
|
|
47
|
+
this.millisecond = millisecond;
|
|
48
|
+
(manipulation.constrainTime)(this);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
exports.Time = $35ea8db9cb2ccb90$export$680ea196effce5f;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { addTime as $735220c2d4774dd3$export$7ed87b6bc2506470, subtractTime as $735220c2d4774dd3$export$fe34d3a381cd7501, setTime as $735220c2d4774dd3$export$e5d5e1c1822b6e56, cycleTime as $735220c2d4774dd3$export$dd02b3e0007dfe28, constrainTime as $735220c2d4774dd3$export$7555de1e070510cb } from './manipulation.js';
|
|
3
|
+
import { compareTime as $14e0f24ef4ac5c92$export$c19a80a9721b80f6 } from './queries.js';
|
|
4
|
+
import { timeToString as $fae977aafc393c5c$export$f59dee82248f5ad4 } from './string.js';
|
|
5
|
+
import { _class_private_field_init } from '../../../@swc/helpers/esm/_class_private_field_init.js';
|
|
6
|
+
|
|
7
|
+
var // This prevents TypeScript from allowing other types with the same fields to match.
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
$35ea8db9cb2ccb90$var$_type1 = /*#__PURE__*/ new WeakMap();
|
|
10
|
+
class $35ea8db9cb2ccb90$export$680ea196effce5f {
|
|
11
|
+
/** Returns a copy of this time. */ copy() {
|
|
12
|
+
return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);
|
|
13
|
+
}
|
|
14
|
+
/** Returns a new `Time` with the given duration added to it. */ add(duration) {
|
|
15
|
+
return ($735220c2d4774dd3$export$7ed87b6bc2506470)(this, duration);
|
|
16
|
+
}
|
|
17
|
+
/** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {
|
|
18
|
+
return ($735220c2d4774dd3$export$fe34d3a381cd7501)(this, duration);
|
|
19
|
+
}
|
|
20
|
+
/** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
|
|
21
|
+
return ($735220c2d4774dd3$export$e5d5e1c1822b6e56)(this, fields);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns a new `Time` with the given field adjusted by a specified amount.
|
|
25
|
+
* When the resulting value reaches the limits of the field, it wraps around.
|
|
26
|
+
*/ cycle(field, amount, options) {
|
|
27
|
+
return ($735220c2d4774dd3$export$dd02b3e0007dfe28)(this, field, amount, options);
|
|
28
|
+
}
|
|
29
|
+
/** Converts the time to an ISO 8601 formatted string. */ toString() {
|
|
30
|
+
return ($fae977aafc393c5c$export$f59dee82248f5ad4)(this);
|
|
31
|
+
}
|
|
32
|
+
/** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {
|
|
33
|
+
return ($14e0f24ef4ac5c92$export$c19a80a9721b80f6)(this, b);
|
|
34
|
+
}
|
|
35
|
+
constructor(hour = 0, minute = 0, second = 0, millisecond = 0){
|
|
36
|
+
(_class_private_field_init)(this, $35ea8db9cb2ccb90$var$_type1, {
|
|
37
|
+
writable: true,
|
|
38
|
+
value: void 0
|
|
39
|
+
});
|
|
40
|
+
this.hour = hour;
|
|
41
|
+
this.minute = minute;
|
|
42
|
+
this.second = second;
|
|
43
|
+
this.millisecond = millisecond;
|
|
44
|
+
($735220c2d4774dd3$export$7555de1e070510cb)(this);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { $35ea8db9cb2ccb90$export$680ea196effce5f as Time };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
|
|
7
|
+
let inverseDuration = {};
|
|
8
|
+
for(let key in duration)if (typeof duration[key] === 'number') inverseDuration[key] = -duration[key];
|
|
9
|
+
return inverseDuration;
|
|
10
|
+
}
|
|
11
|
+
function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
|
|
12
|
+
let mutableValue = value.copy();
|
|
13
|
+
if (fields.hour != null) mutableValue.hour = fields.hour;
|
|
14
|
+
if (fields.minute != null) mutableValue.minute = fields.minute;
|
|
15
|
+
if (fields.second != null) mutableValue.second = fields.second;
|
|
16
|
+
if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
|
|
17
|
+
$735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
|
|
18
|
+
return mutableValue;
|
|
19
|
+
}
|
|
20
|
+
function $735220c2d4774dd3$var$balanceTime(time) {
|
|
21
|
+
time.second += Math.floor(time.millisecond / 1000);
|
|
22
|
+
time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1000);
|
|
23
|
+
time.minute += Math.floor(time.second / 60);
|
|
24
|
+
time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);
|
|
25
|
+
time.hour += Math.floor(time.minute / 60);
|
|
26
|
+
time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);
|
|
27
|
+
let days = Math.floor(time.hour / 24);
|
|
28
|
+
time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);
|
|
29
|
+
return days;
|
|
30
|
+
}
|
|
31
|
+
function $735220c2d4774dd3$export$7555de1e070510cb(time) {
|
|
32
|
+
time.millisecond = Math.max(0, Math.min(time.millisecond, 1000));
|
|
33
|
+
time.second = Math.max(0, Math.min(time.second, 59));
|
|
34
|
+
time.minute = Math.max(0, Math.min(time.minute, 59));
|
|
35
|
+
time.hour = Math.max(0, Math.min(time.hour, 23));
|
|
36
|
+
}
|
|
37
|
+
function $735220c2d4774dd3$var$nonNegativeMod(a, b) {
|
|
38
|
+
let result = a % b;
|
|
39
|
+
if (result < 0) result += b;
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
function $735220c2d4774dd3$var$addTimeFields(time, duration) {
|
|
43
|
+
time.hour += duration.hours || 0;
|
|
44
|
+
time.minute += duration.minutes || 0;
|
|
45
|
+
time.second += duration.seconds || 0;
|
|
46
|
+
time.millisecond += duration.milliseconds || 0;
|
|
47
|
+
return $735220c2d4774dd3$var$balanceTime(time);
|
|
48
|
+
}
|
|
49
|
+
function $735220c2d4774dd3$export$7ed87b6bc2506470(time, duration) {
|
|
50
|
+
let res = time.copy();
|
|
51
|
+
$735220c2d4774dd3$var$addTimeFields(res, duration);
|
|
52
|
+
return res;
|
|
53
|
+
}
|
|
54
|
+
function $735220c2d4774dd3$export$fe34d3a381cd7501(time, duration) {
|
|
55
|
+
return $735220c2d4774dd3$export$7ed87b6bc2506470(time, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
|
|
56
|
+
}
|
|
57
|
+
function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {
|
|
58
|
+
let mutable = value.copy();
|
|
59
|
+
switch(field){
|
|
60
|
+
case 'hour':
|
|
61
|
+
{
|
|
62
|
+
let hours = value.hour;
|
|
63
|
+
let min = 0;
|
|
64
|
+
let max = 23;
|
|
65
|
+
if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
|
|
66
|
+
let isPM = hours >= 12;
|
|
67
|
+
min = isPM ? 12 : 0;
|
|
68
|
+
max = isPM ? 23 : 11;
|
|
69
|
+
}
|
|
70
|
+
mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
case 'minute':
|
|
74
|
+
mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
|
|
75
|
+
break;
|
|
76
|
+
case 'second':
|
|
77
|
+
mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
|
|
78
|
+
break;
|
|
79
|
+
case 'millisecond':
|
|
80
|
+
mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
throw new Error('Unsupported field ' + field);
|
|
84
|
+
}
|
|
85
|
+
return mutable;
|
|
86
|
+
}
|
|
87
|
+
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
|
|
88
|
+
if (round) {
|
|
89
|
+
value += Math.sign(amount);
|
|
90
|
+
if (value < min) value = max;
|
|
91
|
+
let div = Math.abs(amount);
|
|
92
|
+
if (amount > 0) value = Math.ceil(value / div) * div;
|
|
93
|
+
else value = Math.floor(value / div) * div;
|
|
94
|
+
if (value > max) value = min;
|
|
95
|
+
} else {
|
|
96
|
+
value += amount;
|
|
97
|
+
if (value < min) value = max - (min - value - 1);
|
|
98
|
+
else if (value > max) value = min + (value - max - 1);
|
|
99
|
+
}
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
exports.addTime = $735220c2d4774dd3$export$7ed87b6bc2506470;
|
|
104
|
+
exports.constrainTime = $735220c2d4774dd3$export$7555de1e070510cb;
|
|
105
|
+
exports.cycleTime = $735220c2d4774dd3$export$dd02b3e0007dfe28;
|
|
106
|
+
exports.invertDuration = $735220c2d4774dd3$export$3e2544e88a25bff8;
|
|
107
|
+
exports.setTime = $735220c2d4774dd3$export$e5d5e1c1822b6e56;
|
|
108
|
+
exports.subtractTime = $735220c2d4774dd3$export$fe34d3a381cd7501;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
|
|
3
|
+
let inverseDuration = {};
|
|
4
|
+
for(let key in duration)if (typeof duration[key] === 'number') inverseDuration[key] = -duration[key];
|
|
5
|
+
return inverseDuration;
|
|
6
|
+
}
|
|
7
|
+
function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
|
|
8
|
+
let mutableValue = value.copy();
|
|
9
|
+
if (fields.hour != null) mutableValue.hour = fields.hour;
|
|
10
|
+
if (fields.minute != null) mutableValue.minute = fields.minute;
|
|
11
|
+
if (fields.second != null) mutableValue.second = fields.second;
|
|
12
|
+
if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
|
|
13
|
+
$735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
|
|
14
|
+
return mutableValue;
|
|
15
|
+
}
|
|
16
|
+
function $735220c2d4774dd3$var$balanceTime(time) {
|
|
17
|
+
time.second += Math.floor(time.millisecond / 1000);
|
|
18
|
+
time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1000);
|
|
19
|
+
time.minute += Math.floor(time.second / 60);
|
|
20
|
+
time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);
|
|
21
|
+
time.hour += Math.floor(time.minute / 60);
|
|
22
|
+
time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);
|
|
23
|
+
let days = Math.floor(time.hour / 24);
|
|
24
|
+
time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);
|
|
25
|
+
return days;
|
|
26
|
+
}
|
|
27
|
+
function $735220c2d4774dd3$export$7555de1e070510cb(time) {
|
|
28
|
+
time.millisecond = Math.max(0, Math.min(time.millisecond, 1000));
|
|
29
|
+
time.second = Math.max(0, Math.min(time.second, 59));
|
|
30
|
+
time.minute = Math.max(0, Math.min(time.minute, 59));
|
|
31
|
+
time.hour = Math.max(0, Math.min(time.hour, 23));
|
|
32
|
+
}
|
|
33
|
+
function $735220c2d4774dd3$var$nonNegativeMod(a, b) {
|
|
34
|
+
let result = a % b;
|
|
35
|
+
if (result < 0) result += b;
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
function $735220c2d4774dd3$var$addTimeFields(time, duration) {
|
|
39
|
+
time.hour += duration.hours || 0;
|
|
40
|
+
time.minute += duration.minutes || 0;
|
|
41
|
+
time.second += duration.seconds || 0;
|
|
42
|
+
time.millisecond += duration.milliseconds || 0;
|
|
43
|
+
return $735220c2d4774dd3$var$balanceTime(time);
|
|
44
|
+
}
|
|
45
|
+
function $735220c2d4774dd3$export$7ed87b6bc2506470(time, duration) {
|
|
46
|
+
let res = time.copy();
|
|
47
|
+
$735220c2d4774dd3$var$addTimeFields(res, duration);
|
|
48
|
+
return res;
|
|
49
|
+
}
|
|
50
|
+
function $735220c2d4774dd3$export$fe34d3a381cd7501(time, duration) {
|
|
51
|
+
return $735220c2d4774dd3$export$7ed87b6bc2506470(time, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
|
|
52
|
+
}
|
|
53
|
+
function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {
|
|
54
|
+
let mutable = value.copy();
|
|
55
|
+
switch(field){
|
|
56
|
+
case 'hour':
|
|
57
|
+
{
|
|
58
|
+
let hours = value.hour;
|
|
59
|
+
let min = 0;
|
|
60
|
+
let max = 23;
|
|
61
|
+
if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
|
|
62
|
+
let isPM = hours >= 12;
|
|
63
|
+
min = isPM ? 12 : 0;
|
|
64
|
+
max = isPM ? 23 : 11;
|
|
65
|
+
}
|
|
66
|
+
mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
case 'minute':
|
|
70
|
+
mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
|
|
71
|
+
break;
|
|
72
|
+
case 'second':
|
|
73
|
+
mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
|
|
74
|
+
break;
|
|
75
|
+
case 'millisecond':
|
|
76
|
+
mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
|
|
77
|
+
break;
|
|
78
|
+
default:
|
|
79
|
+
throw new Error('Unsupported field ' + field);
|
|
80
|
+
}
|
|
81
|
+
return mutable;
|
|
82
|
+
}
|
|
83
|
+
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
|
|
84
|
+
if (round) {
|
|
85
|
+
value += Math.sign(amount);
|
|
86
|
+
if (value < min) value = max;
|
|
87
|
+
let div = Math.abs(amount);
|
|
88
|
+
if (amount > 0) value = Math.ceil(value / div) * div;
|
|
89
|
+
else value = Math.floor(value / div) * div;
|
|
90
|
+
if (value > max) value = min;
|
|
91
|
+
} else {
|
|
92
|
+
value += amount;
|
|
93
|
+
if (value < min) value = max - (min - value - 1);
|
|
94
|
+
else if (value > max) value = min + (value - max - 1);
|
|
95
|
+
}
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export { $735220c2d4774dd3$export$7ed87b6bc2506470 as addTime, $735220c2d4774dd3$export$7555de1e070510cb as constrainTime, $735220c2d4774dd3$export$dd02b3e0007dfe28 as cycleTime, $735220c2d4774dd3$export$3e2544e88a25bff8 as invertDuration, $735220c2d4774dd3$export$e5d5e1c1822b6e56 as setTime, $735220c2d4774dd3$export$fe34d3a381cd7501 as subtractTime };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {
|
|
7
|
+
return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);
|
|
8
|
+
}
|
|
9
|
+
function $14e0f24ef4ac5c92$var$timeToMs(a) {
|
|
10
|
+
return a.hour * 3600000 + a.minute * 60000 + a.second * 1000 + a.millisecond;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.compareTime = $14e0f24ef4ac5c92$export$c19a80a9721b80f6;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {
|
|
3
|
+
return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);
|
|
4
|
+
}
|
|
5
|
+
function $14e0f24ef4ac5c92$var$timeToMs(a) {
|
|
6
|
+
return a.hour * 3600000 + a.minute * 60000 + a.second * 1000 + a.millisecond;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { $14e0f24ef4ac5c92$export$c19a80a9721b80f6 as compareTime };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const CalendarDate = require('./CalendarDate.cjs');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
10
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
12
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
15
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
16
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
17
|
+
* governing permissions and limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
const $fae977aafc393c5c$var$TIME_RE = /^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
|
|
23
|
+
function $fae977aafc393c5c$export$c9698ec7f05a07e1(value) {
|
|
24
|
+
let m = value.match($fae977aafc393c5c$var$TIME_RE);
|
|
25
|
+
if (!m) throw new Error('Invalid ISO 8601 time string: ' + value);
|
|
26
|
+
return new (CalendarDate.Time)($fae977aafc393c5c$var$parseNumber(m[1], 0, 23), m[2] ? $fae977aafc393c5c$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $fae977aafc393c5c$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, Infinity) * 1000 : 0);
|
|
27
|
+
}
|
|
28
|
+
function $fae977aafc393c5c$var$parseNumber(value, min, max) {
|
|
29
|
+
let val = Number(value);
|
|
30
|
+
if (val < min || val > max) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
|
|
31
|
+
return val;
|
|
32
|
+
}
|
|
33
|
+
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
34
|
+
return `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}:${String(time.second).padStart(2, '0')}${time.millisecond ? String(time.millisecond / 1000).slice(1) : ''}`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.parseTime = $fae977aafc393c5c$export$c9698ec7f05a07e1;
|
|
38
|
+
exports.timeToString = $fae977aafc393c5c$export$f59dee82248f5ad4;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Time as $35ea8db9cb2ccb90$export$680ea196effce5f } from './CalendarDate.js';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
6
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
8
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
11
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
12
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
|
+
* governing permissions and limitations under the License.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
const $fae977aafc393c5c$var$TIME_RE = /^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
|
|
19
|
+
function $fae977aafc393c5c$export$c9698ec7f05a07e1(value) {
|
|
20
|
+
let m = value.match($fae977aafc393c5c$var$TIME_RE);
|
|
21
|
+
if (!m) throw new Error('Invalid ISO 8601 time string: ' + value);
|
|
22
|
+
return new ($35ea8db9cb2ccb90$export$680ea196effce5f)($fae977aafc393c5c$var$parseNumber(m[1], 0, 23), m[2] ? $fae977aafc393c5c$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $fae977aafc393c5c$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, Infinity) * 1000 : 0);
|
|
23
|
+
}
|
|
24
|
+
function $fae977aafc393c5c$var$parseNumber(value, min, max) {
|
|
25
|
+
let val = Number(value);
|
|
26
|
+
if (val < min || val > max) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
|
|
27
|
+
return val;
|
|
28
|
+
}
|
|
29
|
+
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
30
|
+
return `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}:${String(time.second).padStart(2, '0')}${time.millisecond ? String(time.millisecond / 1000).slice(1) : ''}`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { $fae977aafc393c5c$export$c9698ec7f05a07e1 as parseTime, $fae977aafc393c5c$export$f59dee82248f5ad4 as timeToString };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
function _check_private_redeclaration(obj, privateCollection) {
|
|
7
|
+
if (privateCollection.has(obj)) {
|
|
8
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports._ = _check_private_redeclaration;
|
|
13
|
+
exports._check_private_redeclaration = _check_private_redeclaration;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
function _check_private_redeclaration(obj, privateCollection) {
|
|
3
|
+
if (privateCollection.has(obj)) {
|
|
4
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { _check_private_redeclaration as _, _check_private_redeclaration };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const _check_private_redeclaration = require('./_check_private_redeclaration.cjs');
|
|
7
|
+
|
|
8
|
+
function _class_private_field_init(obj, privateMap, value) {
|
|
9
|
+
_check_private_redeclaration._check_private_redeclaration(obj, privateMap);
|
|
10
|
+
privateMap.set(obj, value);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports._ = _class_private_field_init;
|
|
14
|
+
exports._class_private_field_init = _class_private_field_init;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { _check_private_redeclaration } from './_check_private_redeclaration.js';
|
|
3
|
+
|
|
4
|
+
function _class_private_field_init(obj, privateMap, value) {
|
|
5
|
+
_check_private_redeclaration(obj, privateMap);
|
|
6
|
+
privateMap.set(obj, value);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { _class_private_field_init as _, _class_private_field_init };
|