@farris/ui-vue 1.7.0-beta.4 → 1.7.0
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/components/accordion/index.esm.js +61 -312
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +56 -1481
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +8 -752
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +358 -351
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +110 -266
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +1371 -1284
- package/components/calendar/index.umd.cjs +30 -30
- package/components/code-editor/index.esm.js +169 -237
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +382 -351
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +502 -812
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +197 -183
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +199 -364
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +1501 -1465
- package/components/comment/index.umd.cjs +6 -6
- package/components/common/index.esm.js +136 -100
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2662 -3647
- package/components/component/index.umd.cjs +1 -8
- package/components/condition/index.esm.js +492 -2449
- package/components/condition/index.umd.cjs +1 -8
- package/components/content-container/index.esm.js +252 -241
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +505 -409
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3326 -3258
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1709 -1634
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +2693 -3021
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +102 -98
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +409 -358
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +124 -373
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +760 -573
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +354 -327
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +413 -359
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +1535 -1941
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +2 -7317
- package/components/expression-editor/index.umd.cjs +1 -427
- package/components/field-selector/index.esm.js +13 -13
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +140 -123
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1021 -1012
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +448 -9000
- package/components/filter-condition-editor/index.umd.cjs +1 -427
- package/components/html-template/index.esm.js +167 -147
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +372 -352
- package/components/image/index.umd.cjs +2 -2
- package/components/image-cropper/index.esm.js +361 -615
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +247 -325
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +835 -421
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +163 -549
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +39 -836
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +690 -474
- package/components/list-view/index.umd.cjs +6 -8
- package/components/loading/index.esm.js +128 -97
- package/components/loading/index.umd.cjs +2 -2
- package/components/locale/index.esm.js +361 -340
- package/components/locale/index.umd.cjs +5 -5
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +3396 -3368
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +1684 -1584
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +586 -609
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +357 -353
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +325 -318
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +31 -311
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +189 -1633
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +195 -175
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +761 -1057
- package/components/order/index.umd.cjs +7 -9
- package/components/page-footer/index.esm.js +48 -331
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +92 -73
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +195 -472
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +77 -76
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +148 -353
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +74 -68
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +872 -1800
- package/components/property-panel/index.umd.cjs +5 -12
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +4223 -6205
- package/components/query-solution/index.umd.cjs +6 -13
- package/components/response-layout/index.esm.js +206 -170
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +378 -359
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2491 -2653
- package/components/schema-selector/index.umd.cjs +8 -10
- package/components/search-box/index.esm.js +79 -240
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +304 -289
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +8 -179
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +4 -9421
- package/components/sort-condition-editor/index.umd.cjs +1 -427
- package/components/splitter/index.esm.js +142 -1171
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +48 -47
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +460 -513
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +73 -217
- package/components/text/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +380 -375
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +40 -40
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +551 -771
- package/components/transfer/index.umd.cjs +6 -8
- package/components/tree-grid/index.esm.js +250 -235
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +157 -314
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +634 -1125
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +106 -359
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +89 -222
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +199 -290
- package/components/weather/index.umd.cjs +1 -1
- package/designer/accordion/index.esm.js +257 -0
- package/designer/accordion/index.umd.cjs +1 -0
- package/designer/avatar/index.esm.js +227 -0
- package/designer/avatar/index.umd.cjs +1 -0
- package/designer/binding-selector/index.esm.js +792 -0
- package/designer/binding-selector/index.umd.cjs +1 -0
- package/designer/button-edit/index.esm.js +210 -203
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/button-group/index.esm.js +282 -0
- package/designer/button-group/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +51 -45
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +89 -83
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/code-editor/index.esm.js +75 -0
- package/designer/code-editor/index.umd.cjs +1 -0
- package/designer/color-picker/index.esm.js +1096 -0
- package/designer/color-picker/index.umd.cjs +1 -0
- package/designer/combo-list/index.esm.js +1095 -0
- package/designer/combo-list/index.umd.cjs +1 -0
- package/designer/combo-tree/index.esm.js +186 -0
- package/designer/combo-tree/index.umd.cjs +1 -0
- package/designer/component/index.css +1 -0
- package/designer/component/index.esm.js +5002 -0
- package/designer/component/index.umd.cjs +1 -0
- package/designer/condition/index.esm.js +1899 -0
- package/designer/condition/index.umd.cjs +1 -0
- package/designer/data-grid/index.esm.js +5580 -6213
- package/designer/data-grid/index.umd.cjs +10 -17
- package/designer/data-view/index.esm.js +212 -191
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +621 -607
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.css +1 -1
- package/designer/drawer/index.esm.js +869 -620
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dropdown/index.esm.js +261 -0
- package/designer/dropdown/index.umd.cjs +1 -0
- package/designer/dynamic-form/index.esm.js +1166 -1384
- package/designer/dynamic-form/index.umd.cjs +1 -8
- package/designer/expression-editor/index.css +1 -0
- package/designer/expression-editor/index.esm.js +7006 -0
- package/designer/expression-editor/index.umd.cjs +427 -0
- package/designer/farris-designer.all.esm.js +10309 -10617
- package/designer/farris-designer.all.umd.cjs +17 -19
- package/designer/filter-condition-editor/index.css +1 -0
- package/designer/filter-condition-editor/index.esm.js +4795 -0
- package/designer/filter-condition-editor/index.umd.cjs +1 -0
- package/designer/html-template/index.esm.js +718 -0
- package/designer/html-template/index.umd.cjs +1 -0
- package/designer/image-cropper/index.esm.js +765 -0
- package/designer/image-cropper/index.umd.cjs +1 -0
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +72 -66
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/json-editor/index.esm.js +83 -0
- package/designer/json-editor/index.umd.cjs +1 -0
- package/designer/language-textbox/index.esm.js +783 -0
- package/designer/language-textbox/index.umd.cjs +8 -0
- package/designer/layout/index.esm.js +430 -0
- package/designer/layout/index.umd.cjs +1 -0
- package/designer/list-nav/index.esm.js +802 -0
- package/designer/list-nav/index.umd.cjs +1 -0
- package/designer/list-view/index.esm.js +864 -844
- package/designer/list-view/index.umd.cjs +7 -9
- package/designer/lookup/index.esm.js +2083 -0
- package/designer/lookup/index.umd.cjs +1 -0
- package/designer/menu-lookup/index.esm.js +46 -0
- package/designer/menu-lookup/index.umd.cjs +1 -0
- package/designer/modal/index.esm.js +137 -29
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +284 -0
- package/designer/nav/index.umd.cjs +1 -0
- package/designer/number-range/index.esm.js +1616 -0
- package/designer/number-range/index.umd.cjs +1 -0
- package/designer/number-spinner/index.esm.js +19 -17
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/order/index.css +1 -0
- package/designer/order/index.esm.js +2196 -0
- package/designer/order/index.umd.cjs +18 -0
- package/designer/page-footer/index.esm.js +290 -0
- package/designer/page-footer/index.umd.cjs +1 -0
- package/designer/page-header/index.esm.js +1003 -0
- package/designer/page-header/index.umd.cjs +1 -0
- package/designer/pagination/index.esm.js +591 -0
- package/designer/pagination/index.umd.cjs +1 -0
- package/designer/progress/index.esm.js +213 -0
- package/designer/progress/index.umd.cjs +1 -0
- package/designer/radio-group/index.esm.js +978 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +1 -1
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1471 -1416
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/search-box/index.esm.js +245 -0
- package/designer/search-box/index.umd.cjs +1 -0
- package/designer/section/index.esm.js +83 -78
- package/designer/section/index.umd.cjs +1 -1
- package/designer/smoke-detector/index.css +1 -0
- package/designer/smoke-detector/index.esm.js +178 -0
- package/designer/smoke-detector/index.umd.cjs +1 -0
- package/designer/sort-condition-editor/index.esm.js +138 -0
- package/designer/sort-condition-editor/index.umd.cjs +1 -0
- package/designer/splitter/index.esm.js +1120 -0
- package/designer/splitter/index.umd.cjs +1 -0
- package/designer/step/index.esm.js +226 -0
- package/designer/step/index.umd.cjs +1 -0
- package/designer/switch/index.esm.js +10 -10
- package/designer/switch/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +2447 -2698
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/text/index.esm.js +147 -0
- package/designer/text/index.umd.cjs +1 -0
- package/designer/time-picker/index.esm.js +101 -100
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/transfer/index.esm.js +254 -0
- package/designer/transfer/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +473 -810
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/tree-view/index.esm.js +313 -0
- package/designer/tree-view/index.umd.cjs +1 -0
- package/designer/uploader/index.esm.js +1190 -0
- package/designer/uploader/index.umd.cjs +2 -0
- package/designer/verify-detail/index.esm.js +258 -0
- package/designer/verify-detail/index.umd.cjs +1 -0
- package/designer/video/index.esm.js +136 -0
- package/designer/video/index.umd.cjs +1 -0
- package/designer/weather/index.css +1 -0
- package/designer/weather/index.esm.js +6244 -0
- package/designer/weather/index.umd.cjs +14 -0
- package/farris.all.esm.js +69941 -70514
- package/farris.all.umd.cjs +117 -117
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +2 -1
- package/locales/filter-bar/ui/zh-CHS.json +2 -1
- package/locales/filter-bar/ui/zh-CHT.json +2 -1
- package/locales/query-solution/ui/en.json +1 -1
- package/locales/query-solution/ui/zh-CHS.json +1 -1
- package/locales/query-solution/ui/zh-CHT.json +1 -1
- package/locales/ui/en.json +3 -2
- package/locales/ui/zh-CHS.json +3 -2
- package/locales/ui/zh-CHT.json +3 -2
- package/package.json +1 -1
- package/types/accordion/designer.d.ts +44 -0
- package/types/accordion/src/accordion.props.d.ts +0 -1
- package/types/accordion/src/components/accordion-item.props.d.ts +0 -1
- package/types/avatar/designer.d.ts +29 -0
- package/types/avatar/src/avatar.props.d.ts +0 -1
- package/types/avatar/src/property-config/avatar.property-config.d.ts +1 -1
- package/types/{expression-editor/index.d.ts → binding-selector/designer.d.ts} +6 -6
- package/types/binding-selector/index.d.ts +0 -54
- package/types/binding-selector/src/binding-selector.props.d.ts +0 -1
- package/types/button-group/designer.d.ts +29 -0
- package/types/button-group/index.d.ts +15 -0
- package/types/button-group/src/button-group.props.d.ts +0 -1
- package/types/calendar/src/calendar.props.d.ts +1 -0
- package/types/calendar/src/components/month/month-view.component.d.ts +6 -6
- package/types/calendar/src/composition/use-calendar-events.d.ts +1 -1
- package/types/calendar/src/composition/use-locales.d.ts +1 -0
- package/types/calendar/src/property-config/calendar.property-config.d.ts +2 -0
- package/types/capsule/src/capsule-item.component.d.ts +6 -6
- package/types/checkbox/designer.d.ts +2 -0
- package/types/checkbox-group/designer.d.ts +2 -0
- package/types/code-editor/designer.d.ts +5 -0
- package/types/code-editor/index.d.ts +0 -1
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +0 -2
- package/types/color-picker/designer.d.ts +29 -0
- package/types/color-picker/index.d.ts +0 -15
- package/types/color-picker/src/color-picker.props.d.ts +0 -1
- package/types/combo-list/designer.d.ts +29 -0
- package/types/combo-list/src/combo-list.props.d.ts +1 -0
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +6 -0
- package/types/combo-tree/designer.d.ts +5 -0
- package/types/combo-tree/src/combo-tree.props.d.ts +0 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +7 -7
- package/types/comment/src/comment.props.d.ts +4 -0
- package/types/comment/src/designer/comment.design.props.d.ts +4 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/use-mobile.d.ts +1 -0
- package/types/component/designer.d.ts +35 -0
- package/types/component/index.d.ts +0 -2
- package/types/component/src/component.props.d.ts +0 -8
- package/types/component/src/composition/field-tree-builder.d.ts +1 -0
- package/types/components.d.ts +2 -6
- package/types/condition/designer.d.ts +56 -0
- package/types/condition/index.d.ts +0 -55
- package/types/content-container/index.d.ts +3 -2
- package/types/content-container/src/content-container.props.d.ts +1 -0
- package/types/data-grid/designer.d.ts +2 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/designer/grid-field-editor.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +7 -1
- package/types/data-view/composition/use-mobile.d.ts +3 -0
- package/types/data-view/designer/property-config/use-command-option.d.ts +11 -0
- package/types/data-view/index.d.ts +1 -0
- package/types/designer-canvas/src/composition/designer-canvas-changed.d.ts +3 -3
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -0
- package/types/designer-outline/src/designer-outline.component.d.ts +3 -3
- package/types/designer-outline/src/types.d.ts +5 -1
- package/types/drawer/designer.d.ts +12 -0
- package/types/drawer/src/designer/drawer-toolbar.design.props.d.ts +12 -0
- package/types/drawer/src/designer/drawer.design.component.d.ts +8 -0
- package/types/drawer/src/designer/drawer.design.props.d.ts +4 -0
- package/types/drawer/src/schema/schema-mapper.d.ts +1 -0
- package/types/drawer/src/schema/schema-resolver.d.ts +1 -0
- package/types/dropdown/designer.d.ts +6 -0
- package/types/dropdown/index.d.ts +27 -6
- package/types/dropdown/src/dropdown.item.component.d.ts +2 -2
- package/types/dropdown/src/dropdown.props.d.ts +0 -1
- package/types/dynamic-form/designer.d.ts +3 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +6 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +11 -0
- package/types/dynamic-resolver/index.d.ts +3 -0
- package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-view/src/components/maps.d.ts +883 -1
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/dynamic-view/src/types.d.ts +4 -0
- package/types/expression-editor/designer.d.ts +9 -0
- package/types/field-selector/index.d.ts +2 -1
- package/types/fieldset/index.d.ts +3 -2
- package/types/fieldset/src/fieldset.props.d.ts +1 -0
- package/types/filter-bar/src/composition/types.d.ts +1 -1
- package/types/filter-bar/src/composition/use-size.d.ts +2 -2
- package/types/filter-bar/src/locale/locale.d.ts +1 -0
- package/types/filter-condition-editor/designer.d.ts +10 -0
- package/types/filter-condition-editor/index.d.ts +0 -9
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +0 -1
- package/types/html-template/designer.d.ts +31 -0
- package/types/html-template/src/designer/html-template.design.props.d.ts +9 -0
- package/types/html-template/src/html-template.props.d.ts +2 -0
- package/types/image-cropper/designer.d.ts +4 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/input-group/designer.d.ts +2 -0
- package/types/json-editor/designer.d.ts +5 -0
- package/types/json-editor/src/components/editable-combo/editable-combo.component.d.ts +3 -3
- package/types/json-editor/src/components/editable-combo/popup-container.component.d.ts +3 -3
- package/types/json-editor/src/json-editor.props.d.ts +0 -1
- package/types/language-textbox/index.d.ts +6 -6
- package/types/language-textbox/src/language-textbox.component.d.ts +2 -2
- package/types/language-textbox/src/language-textbox.props.d.ts +1 -0
- package/types/layout/index.d.ts +1 -0
- package/types/layout/src/components/layout-pane.props.d.ts +0 -1
- package/types/layout/src/layout.props.d.ts +0 -1
- package/types/list-nav/index.d.ts +24 -5
- package/types/list-nav/src/list-nav.props.d.ts +0 -1
- package/types/list-view/index.d.ts +1 -0
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/list-view/src/designer/list-view.design.props.d.ts +1 -0
- package/types/list-view/src/list-view-table.props.d.ts +1 -0
- package/types/loading/index.d.ts +6 -6
- package/types/loading/src/loading.component.d.ts +3 -3
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +6 -6
- package/types/lookup/src/lookup.props.d.ts +1 -0
- package/types/lookup/src/property-config/external-lookup.property-config.d.ts +1 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +1 -0
- package/types/menu-lookup/designer.d.ts +5 -0
- package/types/menu-lookup/src/menu-lookup.props.d.ts +0 -1
- package/types/message-box/index.d.ts +6 -6
- package/types/message-box/src/message-box.component.d.ts +3 -3
- package/types/modal/designer.d.ts +2 -0
- package/types/modal/index.d.ts +30 -24
- package/types/modal/src/modal.component.d.ts +15 -12
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/nav/designer.d.ts +6 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/nav.props.d.ts +0 -1
- package/types/notify/index.d.ts +3 -3
- package/types/notify/src/notify.component.d.ts +2 -2
- package/types/number-range/designer.d.ts +29 -0
- package/types/number-range/src/number-range.props.d.ts +0 -1
- package/types/number-spinner/src/composition/types.d.ts +1 -0
- package/types/order/designer.d.ts +6 -0
- package/types/order/index.d.ts +36 -5
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +0 -1
- package/types/page-footer/designer.d.ts +6 -0
- package/types/page-footer/index.d.ts +0 -2
- package/types/page-footer/src/page-footer.props.d.ts +0 -1
- package/types/page-header/index.d.ts +3 -2
- package/types/page-header/src/designer/page-header.design.props.d.ts +20 -0
- package/types/page-header/src/page-header.props.d.ts +2 -0
- package/types/pagination/designer.d.ts +29 -0
- package/types/pagination/index.d.ts +15 -0
- package/types/pagination/src/pagination.props.d.ts +0 -1
- package/types/popover/index.d.ts +3 -3
- package/types/popover/src/composition/use-resize.d.ts +1 -1
- package/types/popover/src/popover.component.d.ts +2 -2
- package/types/progress/designer.d.ts +29 -0
- package/types/progress/src/progress.props.d.ts +0 -1
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/query-solution/index.d.ts +4 -4
- package/types/query-solution/src/composition/types.d.ts +8 -2
- package/types/query-solution/src/composition/use-header.d.ts +2 -2
- package/types/query-solution/src/composition/use-solution-utils.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -0
- package/types/query-solution/src/designer/solution-preset-config/solution-preset.props.d.ts +1 -0
- package/types/query-solution/src/query-solution.props.d.ts +1 -0
- package/types/radio-group/designer.d.ts +4 -1
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +1 -0
- package/types/response-layout/index.d.ts +3 -2
- package/types/response-layout/src/component/response-layout-item.props.d.ts +1 -0
- package/types/response-layout/src/property-config/response-layout-splitter/response-layout-splitter.props.d.ts +1 -0
- package/types/response-layout/src/response-layout.props.d.ts +1 -0
- package/types/response-toolbar/designer.d.ts +2 -1
- package/types/response-toolbar/src/designer/response-toolbar.design.props.d.ts +1 -0
- package/types/search-box/designer.d.ts +52 -0
- package/types/search-box/index.d.ts +1 -17
- package/types/search-box/src/components/search-box-container.component.d.ts +3 -3
- package/types/search-box/src/search-box.props.d.ts +0 -1
- package/types/section/designer.d.ts +1 -0
- package/types/smoke-detector/designer.d.ts +6 -0
- package/types/smoke-detector/index.d.ts +0 -2
- package/types/smoke-detector/src/smoke-detector.props.d.ts +0 -1
- package/types/sort-condition-editor/designer.d.ts +9 -0
- package/types/sort-condition-editor/index.d.ts +2 -7
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +0 -1
- package/types/splitter/designer.d.ts +32 -0
- package/types/splitter/index.d.ts +1 -0
- package/types/splitter/src/components/splitter-pane.props.d.ts +0 -1
- package/types/splitter/src/splitter.props.d.ts +0 -1
- package/types/step/designer.d.ts +6 -0
- package/types/tabs/designer.d.ts +1 -0
- package/types/tabs/index.d.ts +0 -1
- package/types/tabs/src/composition/types.d.ts +1 -0
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +1 -0
- package/types/tags/index.d.ts +3 -3
- package/types/tags/src/tags.component.d.ts +1 -1
- package/types/text/designer.d.ts +6 -0
- package/types/text/index.d.ts +24 -20
- package/types/text/src/text.props.d.ts +0 -1
- package/types/time-picker/src/components/time.component.d.ts +3 -3
- package/types/transfer/designer.d.ts +35 -0
- package/types/transfer/src/transfer.props.d.ts +0 -1
- package/types/tree-view/designer.d.ts +29 -0
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
- package/types/uploader/designer.d.ts +141 -0
- package/types/uploader/index.d.ts +6 -6
- package/types/uploader/src/components/upload-progress.component.d.ts +3 -3
- package/types/uploader/src/uploader.component.d.ts +3 -3
- package/types/uploader/src/uploader.props.d.ts +0 -1
- package/types/verify-detail/designer.d.ts +6 -0
- package/types/verify-detail/index.d.ts +58 -5
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +0 -1
- package/types/video/designer.d.ts +6 -0
- package/types/video/index.d.ts +24 -20
- package/types/video/src/video.props.d.ts +0 -1
- package/components/sort-condition-editor/index.css +0 -1
- package/package.zip +0 -0
- package/types/designer-toolbox/index.d.ts +0 -3
- package/types/designer-toolbox/src/toolbox.component.d.ts +0 -14
- package/types/designer-toolbox/src/toolbox.props.d.ts +0 -29
- package/types/designer-toolbox/src/types.d.ts +0 -21
- package/types/designer.d.ts +0 -13
- package/types/flow-canvas/index.d.ts +0 -3
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +0 -8
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +0 -3
- package/types/flow-canvas/src/composition/types.d.ts +0 -42
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-connections.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-curve.d.ts +0 -4
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-drawing.d.ts +0 -4
- package/types/flow-canvas/src/flow-canvas.component.d.ts +0 -8
- package/types/flow-canvas/src/flow-canvas.props.d.ts +0 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout-pane.design.component.d.ts +0 -8
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout.design.component.d.ts +0 -8
- package/types/layout/src/schema/schema-mapper.d.ts +0 -2
- package/types/layout/src/schema/schema-resolver.d.ts +0 -2
- package/types/list-nav/src/designer/use-designer-rules.d.ts +0 -2
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +0 -8
- package/types/list-nav/src/schema/schema-mapper.d.ts +0 -2
- package/types/list-nav/src/schema/schema-resolver.d.ts +0 -2
- /package/{components → designer}/condition/index.css +0 -0
- /package/{components → designer}/uploader/index.css +0 -0
- /package/types/{list-nav/src/designer/list-nav.design.component.d.ts → dynamic-form/src/component/form-control/form-control.component.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (t, r, e) =>
|
|
4
|
-
import { ref as O, defineComponent as
|
|
5
|
-
import
|
|
6
|
-
import { useReqAnimationFrame as
|
|
7
|
-
import { LocaleService as
|
|
8
|
-
const
|
|
1
|
+
var tt = Object.defineProperty;
|
|
2
|
+
var rt = (t, r, e) => r in t ? tt(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
3
|
+
var o = (t, r, e) => rt(t, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { ref as O, defineComponent as Ee, watch as C, computed as $, onMounted as nt, createVNode as x, mergeProps as at } from "vue";
|
|
5
|
+
import st from "../button-edit/index.esm.js";
|
|
6
|
+
import { useReqAnimationFrame as it, isMobilePhone as ot } from "../common/index.esm.js";
|
|
7
|
+
import { LocaleService as ut } from "../locale/index.esm.js";
|
|
8
|
+
const ct = {
|
|
9
9
|
/**
|
|
10
10
|
* 组件值,这个是与指定的format格式相对应的值
|
|
11
11
|
*/
|
|
@@ -34,7 +34,7 @@ const ot = {
|
|
|
34
34
|
disabled: { type: Boolean, default: !1 },
|
|
35
35
|
readonly: { type: Boolean, default: !1 },
|
|
36
36
|
editable: { type: Boolean, default: !0 }
|
|
37
|
-
},
|
|
37
|
+
}, lt = {
|
|
38
38
|
modelValue: {
|
|
39
39
|
type: String,
|
|
40
40
|
default: ""
|
|
@@ -103,14 +103,14 @@ function N(t) {
|
|
|
103
103
|
function T(t, r) {
|
|
104
104
|
return t instanceof Date ? new t.constructor(r) : new Date(r);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ne(t, r) {
|
|
107
107
|
const e = N(t);
|
|
108
108
|
return isNaN(r) ? T(t, NaN) : (r && e.setDate(e.getDate() + r), e);
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
let
|
|
110
|
+
const We = 6048e5, dt = 864e5, ft = 6e4, ht = 36e5, mt = 1e3;
|
|
111
|
+
let wt = {};
|
|
112
112
|
function z() {
|
|
113
|
-
return
|
|
113
|
+
return wt;
|
|
114
114
|
}
|
|
115
115
|
function R(t, r) {
|
|
116
116
|
var l, m, w, f;
|
|
@@ -120,7 +120,7 @@ function R(t, r) {
|
|
|
120
120
|
function U(t) {
|
|
121
121
|
return R(t, { weekStartsOn: 1 });
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ce(t) {
|
|
124
124
|
const r = N(t), e = r.getFullYear(), n = T(t, 0);
|
|
125
125
|
n.setFullYear(e + 1, 0, 4), n.setHours(0, 0, 0, 0);
|
|
126
126
|
const a = U(n), s = T(t, 0);
|
|
@@ -128,7 +128,7 @@ function We(t) {
|
|
|
128
128
|
const c = U(s);
|
|
129
129
|
return r.getTime() >= a.getTime() ? e + 1 : r.getTime() >= c.getTime() ? e : e - 1;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Pe(t) {
|
|
132
132
|
const r = N(t);
|
|
133
133
|
return r.setHours(0, 0, 0, 0), r;
|
|
134
134
|
}
|
|
@@ -146,28 +146,28 @@ function oe(t) {
|
|
|
146
146
|
);
|
|
147
147
|
return e.setUTCFullYear(r.getFullYear()), +t - +e;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
const e =
|
|
151
|
-
return Math.round((a - s) /
|
|
149
|
+
function yt(t, r) {
|
|
150
|
+
const e = Pe(t), n = Pe(r), a = +e - oe(e), s = +n - oe(n);
|
|
151
|
+
return Math.round((a - s) / dt);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
const r =
|
|
153
|
+
function pt(t) {
|
|
154
|
+
const r = Ce(t), e = T(t, 0);
|
|
155
155
|
return e.setFullYear(r, 0, 4), e.setHours(0, 0, 0, 0), U(e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function bt(t) {
|
|
158
158
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
if (!
|
|
160
|
+
function _e(t) {
|
|
161
|
+
if (!bt(t) && typeof t != "number")
|
|
162
162
|
return !1;
|
|
163
163
|
const r = N(t);
|
|
164
164
|
return !isNaN(Number(r));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function gt(t) {
|
|
167
167
|
const r = N(t), e = T(t, 0);
|
|
168
168
|
return e.setFullYear(r.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const xt = {
|
|
171
171
|
lessThanXSeconds: {
|
|
172
172
|
one: "less than a second",
|
|
173
173
|
other: "less than {{count}} seconds"
|
|
@@ -229,53 +229,53 @@ const bt = {
|
|
|
229
229
|
one: "almost 1 year",
|
|
230
230
|
other: "almost {{count}} years"
|
|
231
231
|
}
|
|
232
|
-
},
|
|
232
|
+
}, vt = (t, r, e) => {
|
|
233
233
|
let n;
|
|
234
|
-
const a =
|
|
234
|
+
const a = xt[t];
|
|
235
235
|
return typeof a == "string" ? n = a : r === 1 ? n = a.one : n = a.other.replace("{{count}}", r.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + n : n + " ago" : n;
|
|
236
236
|
};
|
|
237
|
-
function
|
|
237
|
+
function he(t) {
|
|
238
238
|
return (r = {}) => {
|
|
239
239
|
const e = r.width ? String(r.width) : t.defaultWidth;
|
|
240
240
|
return t.formats[e] || t.formats[t.defaultWidth];
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
const
|
|
243
|
+
const Mt = {
|
|
244
244
|
full: "EEEE, MMMM do, y",
|
|
245
245
|
long: "MMMM do, y",
|
|
246
246
|
medium: "MMM d, y",
|
|
247
247
|
short: "MM/dd/yyyy"
|
|
248
|
-
},
|
|
248
|
+
}, Ht = {
|
|
249
249
|
full: "h:mm:ss a zzzz",
|
|
250
250
|
long: "h:mm:ss a z",
|
|
251
251
|
medium: "h:mm:ss a",
|
|
252
252
|
short: "h:mm a"
|
|
253
|
-
},
|
|
253
|
+
}, Pt = {
|
|
254
254
|
full: "{{date}} 'at' {{time}}",
|
|
255
255
|
long: "{{date}} 'at' {{time}}",
|
|
256
256
|
medium: "{{date}}, {{time}}",
|
|
257
257
|
short: "{{date}}, {{time}}"
|
|
258
|
-
},
|
|
259
|
-
date:
|
|
260
|
-
formats:
|
|
258
|
+
}, Tt = {
|
|
259
|
+
date: he({
|
|
260
|
+
formats: Mt,
|
|
261
261
|
defaultWidth: "full"
|
|
262
262
|
}),
|
|
263
|
-
time:
|
|
264
|
-
formats:
|
|
263
|
+
time: he({
|
|
264
|
+
formats: Ht,
|
|
265
265
|
defaultWidth: "full"
|
|
266
266
|
}),
|
|
267
|
-
dateTime:
|
|
268
|
-
formats:
|
|
267
|
+
dateTime: he({
|
|
268
|
+
formats: Pt,
|
|
269
269
|
defaultWidth: "full"
|
|
270
270
|
})
|
|
271
|
-
},
|
|
271
|
+
}, kt = {
|
|
272
272
|
lastWeek: "'last' eeee 'at' p",
|
|
273
273
|
yesterday: "'yesterday at' p",
|
|
274
274
|
today: "'today at' p",
|
|
275
275
|
tomorrow: "'tomorrow at' p",
|
|
276
276
|
nextWeek: "eeee 'at' p",
|
|
277
277
|
other: "P"
|
|
278
|
-
},
|
|
278
|
+
}, Dt = (t, r, e, n) => kt[t];
|
|
279
279
|
function ee(t) {
|
|
280
280
|
return (r, e) => {
|
|
281
281
|
const n = e != null && e.context ? String(e.context) : "standalone";
|
|
@@ -291,15 +291,15 @@ function ee(t) {
|
|
|
291
291
|
return a[s];
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const Ot = {
|
|
295
295
|
narrow: ["B", "A"],
|
|
296
296
|
abbreviated: ["BC", "AD"],
|
|
297
297
|
wide: ["Before Christ", "Anno Domini"]
|
|
298
|
-
},
|
|
298
|
+
}, Yt = {
|
|
299
299
|
narrow: ["1", "2", "3", "4"],
|
|
300
300
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
301
301
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
302
|
-
},
|
|
302
|
+
}, Vt = {
|
|
303
303
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
304
304
|
abbreviated: [
|
|
305
305
|
"Jan",
|
|
@@ -329,7 +329,7 @@ const kt = {
|
|
|
329
329
|
"November",
|
|
330
330
|
"December"
|
|
331
331
|
]
|
|
332
|
-
},
|
|
332
|
+
}, Et = {
|
|
333
333
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
334
334
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
335
335
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -342,7 +342,7 @@ const kt = {
|
|
|
342
342
|
"Friday",
|
|
343
343
|
"Saturday"
|
|
344
344
|
]
|
|
345
|
-
},
|
|
345
|
+
}, Nt = {
|
|
346
346
|
narrow: {
|
|
347
347
|
am: "a",
|
|
348
348
|
pm: "p",
|
|
@@ -373,7 +373,7 @@ const kt = {
|
|
|
373
373
|
evening: "evening",
|
|
374
374
|
night: "night"
|
|
375
375
|
}
|
|
376
|
-
},
|
|
376
|
+
}, Wt = {
|
|
377
377
|
narrow: {
|
|
378
378
|
am: "a",
|
|
379
379
|
pm: "p",
|
|
@@ -404,7 +404,7 @@ const kt = {
|
|
|
404
404
|
evening: "in the evening",
|
|
405
405
|
night: "at night"
|
|
406
406
|
}
|
|
407
|
-
},
|
|
407
|
+
}, Ct = (t, r) => {
|
|
408
408
|
const e = Number(t), n = e % 100;
|
|
409
409
|
if (n > 20 || n < 10)
|
|
410
410
|
switch (n % 10) {
|
|
@@ -416,29 +416,29 @@ const kt = {
|
|
|
416
416
|
return e + "rd";
|
|
417
417
|
}
|
|
418
418
|
return e + "th";
|
|
419
|
-
},
|
|
420
|
-
ordinalNumber:
|
|
419
|
+
}, _t = {
|
|
420
|
+
ordinalNumber: Ct,
|
|
421
421
|
era: ee({
|
|
422
|
-
values:
|
|
422
|
+
values: Ot,
|
|
423
423
|
defaultWidth: "wide"
|
|
424
424
|
}),
|
|
425
425
|
quarter: ee({
|
|
426
|
-
values:
|
|
426
|
+
values: Yt,
|
|
427
427
|
defaultWidth: "wide",
|
|
428
428
|
argumentCallback: (t) => t - 1
|
|
429
429
|
}),
|
|
430
430
|
month: ee({
|
|
431
|
-
values:
|
|
431
|
+
values: Vt,
|
|
432
432
|
defaultWidth: "wide"
|
|
433
433
|
}),
|
|
434
434
|
day: ee({
|
|
435
|
-
values:
|
|
435
|
+
values: Et,
|
|
436
436
|
defaultWidth: "wide"
|
|
437
437
|
}),
|
|
438
438
|
dayPeriod: ee({
|
|
439
|
-
values:
|
|
439
|
+
values: Nt,
|
|
440
440
|
defaultWidth: "wide",
|
|
441
|
-
formattingValues:
|
|
441
|
+
formattingValues: Wt,
|
|
442
442
|
defaultFormattingWidth: "wide"
|
|
443
443
|
})
|
|
444
444
|
};
|
|
@@ -447,9 +447,9 @@ function te(t) {
|
|
|
447
447
|
const n = e.width, a = n && t.matchPatterns[n] || t.matchPatterns[t.defaultMatchWidth], s = r.match(a);
|
|
448
448
|
if (!s)
|
|
449
449
|
return null;
|
|
450
|
-
const c = s[0], l = n && t.parsePatterns[n] || t.parsePatterns[t.defaultParseWidth], m = Array.isArray(l) ?
|
|
450
|
+
const c = s[0], l = n && t.parsePatterns[n] || t.parsePatterns[t.defaultParseWidth], m = Array.isArray(l) ? Lt(l, (y) => y.test(c)) : (
|
|
451
451
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
452
|
-
|
|
452
|
+
qt(l, (y) => y.test(c))
|
|
453
453
|
);
|
|
454
454
|
let w;
|
|
455
455
|
w = t.valueCallback ? t.valueCallback(m) : m, w = e.valueCallback ? (
|
|
@@ -460,17 +460,17 @@ function te(t) {
|
|
|
460
460
|
return { value: w, rest: f };
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function qt(t, r) {
|
|
464
464
|
for (const e in t)
|
|
465
465
|
if (Object.prototype.hasOwnProperty.call(t, e) && r(t[e]))
|
|
466
466
|
return e;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function Lt(t, r) {
|
|
469
469
|
for (let e = 0; e < t.length; e++)
|
|
470
470
|
if (r(t[e]))
|
|
471
471
|
return e;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ft(t) {
|
|
474
474
|
return (r, e = {}) => {
|
|
475
475
|
const n = r.match(t.matchPattern);
|
|
476
476
|
if (!n) return null;
|
|
@@ -482,23 +482,23 @@ function qt(t) {
|
|
|
482
482
|
return { value: c, rest: l };
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
const
|
|
485
|
+
const It = /^(\d+)(th|st|nd|rd)?/i, St = /\d+/i, Rt = {
|
|
486
486
|
narrow: /^(b|a)/i,
|
|
487
487
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
488
488
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
489
|
-
},
|
|
489
|
+
}, Bt = {
|
|
490
490
|
any: [/^b/i, /^(a|c)/i]
|
|
491
|
-
},
|
|
491
|
+
}, Qt = {
|
|
492
492
|
narrow: /^[1234]/i,
|
|
493
493
|
abbreviated: /^q[1234]/i,
|
|
494
494
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
495
|
-
},
|
|
495
|
+
}, At = {
|
|
496
496
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
497
|
-
},
|
|
497
|
+
}, Xt = {
|
|
498
498
|
narrow: /^[jfmasond]/i,
|
|
499
499
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
500
500
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
501
|
-
},
|
|
501
|
+
}, Gt = {
|
|
502
502
|
narrow: [
|
|
503
503
|
/^j/i,
|
|
504
504
|
/^f/i,
|
|
@@ -527,18 +527,18 @@ const Lt = /^(\d+)(th|st|nd|rd)?/i, Ft = /\d+/i, It = {
|
|
|
527
527
|
/^n/i,
|
|
528
528
|
/^d/i
|
|
529
529
|
]
|
|
530
|
-
},
|
|
530
|
+
}, jt = {
|
|
531
531
|
narrow: /^[smtwf]/i,
|
|
532
532
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
533
533
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
534
534
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
535
|
-
},
|
|
535
|
+
}, $t = {
|
|
536
536
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
537
537
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
538
|
-
},
|
|
538
|
+
}, Ut = {
|
|
539
539
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
540
540
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
541
|
-
},
|
|
541
|
+
}, zt = {
|
|
542
542
|
any: {
|
|
543
543
|
am: /^a/i,
|
|
544
544
|
pm: /^p/i,
|
|
@@ -549,64 +549,64 @@ const Lt = /^(\d+)(th|st|nd|rd)?/i, Ft = /\d+/i, It = {
|
|
|
549
549
|
evening: /evening/i,
|
|
550
550
|
night: /night/i
|
|
551
551
|
}
|
|
552
|
-
},
|
|
553
|
-
ordinalNumber:
|
|
554
|
-
matchPattern:
|
|
555
|
-
parsePattern:
|
|
552
|
+
}, Zt = {
|
|
553
|
+
ordinalNumber: Ft({
|
|
554
|
+
matchPattern: It,
|
|
555
|
+
parsePattern: St,
|
|
556
556
|
valueCallback: (t) => parseInt(t, 10)
|
|
557
557
|
}),
|
|
558
558
|
era: te({
|
|
559
|
-
matchPatterns:
|
|
559
|
+
matchPatterns: Rt,
|
|
560
560
|
defaultMatchWidth: "wide",
|
|
561
|
-
parsePatterns:
|
|
561
|
+
parsePatterns: Bt,
|
|
562
562
|
defaultParseWidth: "any"
|
|
563
563
|
}),
|
|
564
564
|
quarter: te({
|
|
565
|
-
matchPatterns:
|
|
565
|
+
matchPatterns: Qt,
|
|
566
566
|
defaultMatchWidth: "wide",
|
|
567
|
-
parsePatterns:
|
|
567
|
+
parsePatterns: At,
|
|
568
568
|
defaultParseWidth: "any",
|
|
569
569
|
valueCallback: (t) => t + 1
|
|
570
570
|
}),
|
|
571
571
|
month: te({
|
|
572
|
-
matchPatterns:
|
|
572
|
+
matchPatterns: Xt,
|
|
573
573
|
defaultMatchWidth: "wide",
|
|
574
|
-
parsePatterns:
|
|
574
|
+
parsePatterns: Gt,
|
|
575
575
|
defaultParseWidth: "any"
|
|
576
576
|
}),
|
|
577
577
|
day: te({
|
|
578
|
-
matchPatterns:
|
|
578
|
+
matchPatterns: jt,
|
|
579
579
|
defaultMatchWidth: "wide",
|
|
580
|
-
parsePatterns:
|
|
580
|
+
parsePatterns: $t,
|
|
581
581
|
defaultParseWidth: "any"
|
|
582
582
|
}),
|
|
583
583
|
dayPeriod: te({
|
|
584
|
-
matchPatterns:
|
|
584
|
+
matchPatterns: Ut,
|
|
585
585
|
defaultMatchWidth: "any",
|
|
586
|
-
parsePatterns:
|
|
586
|
+
parsePatterns: zt,
|
|
587
587
|
defaultParseWidth: "any"
|
|
588
588
|
})
|
|
589
|
-
},
|
|
589
|
+
}, qe = {
|
|
590
590
|
code: "en-US",
|
|
591
|
-
formatDistance:
|
|
592
|
-
formatLong:
|
|
593
|
-
formatRelative:
|
|
594
|
-
localize:
|
|
595
|
-
match:
|
|
591
|
+
formatDistance: vt,
|
|
592
|
+
formatLong: Tt,
|
|
593
|
+
formatRelative: Dt,
|
|
594
|
+
localize: _t,
|
|
595
|
+
match: Zt,
|
|
596
596
|
options: {
|
|
597
597
|
weekStartsOn: 0,
|
|
598
598
|
firstWeekContainsDate: 1
|
|
599
599
|
}
|
|
600
600
|
};
|
|
601
|
-
function
|
|
601
|
+
function Jt(t) {
|
|
602
602
|
const r = N(t);
|
|
603
|
-
return
|
|
603
|
+
return yt(r, gt(r)) + 1;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
const r = N(t), e = +U(r) - +
|
|
607
|
-
return Math.round(e /
|
|
605
|
+
function Le(t) {
|
|
606
|
+
const r = N(t), e = +U(r) - +pt(r);
|
|
607
|
+
return Math.round(e / We) + 1;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function ge(t, r) {
|
|
610
610
|
var f, y, i, p;
|
|
611
611
|
const e = N(t), n = e.getFullYear(), a = z(), s = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((y = (f = r == null ? void 0 : r.locale) == null ? void 0 : f.options) == null ? void 0 : y.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((p = (i = a.locale) == null ? void 0 : i.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, c = T(t, 0);
|
|
612
612
|
c.setFullYear(n + 1, 0, s), c.setHours(0, 0, 0, 0);
|
|
@@ -615,16 +615,16 @@ function be(t, r) {
|
|
|
615
615
|
const w = R(m, r);
|
|
616
616
|
return e.getTime() >= l.getTime() ? n + 1 : e.getTime() >= w.getTime() ? n : n - 1;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function Kt(t, r) {
|
|
619
619
|
var l, m, w, f;
|
|
620
|
-
const e = z(), n = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((m = (l = r == null ? void 0 : r.locale) == null ? void 0 : l.options) == null ? void 0 : m.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((f = (w = e.locale) == null ? void 0 : w.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a =
|
|
620
|
+
const e = z(), n = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((m = (l = r == null ? void 0 : r.locale) == null ? void 0 : l.options) == null ? void 0 : m.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((f = (w = e.locale) == null ? void 0 : w.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = ge(t, r), s = T(t, 0);
|
|
621
621
|
return s.setFullYear(a, 0, n), s.setHours(0, 0, 0, 0), R(s, r);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
const e = N(t), n = +R(e, r) - +
|
|
625
|
-
return Math.round(n /
|
|
623
|
+
function Fe(t, r) {
|
|
624
|
+
const e = N(t), n = +R(e, r) - +Kt(e, r);
|
|
625
|
+
return Math.round(n / We) + 1;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function M(t, r) {
|
|
628
628
|
const e = t < 0 ? "-" : "", n = Math.abs(t).toString().padStart(r, "0");
|
|
629
629
|
return e + n;
|
|
630
630
|
}
|
|
@@ -632,16 +632,16 @@ const S = {
|
|
|
632
632
|
// Year
|
|
633
633
|
y(t, r) {
|
|
634
634
|
const e = t.getFullYear(), n = e > 0 ? e : 1 - e;
|
|
635
|
-
return
|
|
635
|
+
return M(r === "yy" ? n % 100 : n, r.length);
|
|
636
636
|
},
|
|
637
637
|
// Month
|
|
638
638
|
M(t, r) {
|
|
639
639
|
const e = t.getMonth();
|
|
640
|
-
return r === "M" ? String(e + 1) :
|
|
640
|
+
return r === "M" ? String(e + 1) : M(e + 1, 2);
|
|
641
641
|
},
|
|
642
642
|
// Day of the month
|
|
643
643
|
d(t, r) {
|
|
644
|
-
return
|
|
644
|
+
return M(t.getDate(), r.length);
|
|
645
645
|
},
|
|
646
646
|
// AM or PM
|
|
647
647
|
a(t, r) {
|
|
@@ -661,26 +661,26 @@ const S = {
|
|
|
661
661
|
},
|
|
662
662
|
// Hour [1-12]
|
|
663
663
|
h(t, r) {
|
|
664
|
-
return
|
|
664
|
+
return M(t.getHours() % 12 || 12, r.length);
|
|
665
665
|
},
|
|
666
666
|
// Hour [0-23]
|
|
667
667
|
H(t, r) {
|
|
668
|
-
return
|
|
668
|
+
return M(t.getHours(), r.length);
|
|
669
669
|
},
|
|
670
670
|
// Minute
|
|
671
671
|
m(t, r) {
|
|
672
|
-
return
|
|
672
|
+
return M(t.getMinutes(), r.length);
|
|
673
673
|
},
|
|
674
674
|
// Second
|
|
675
675
|
s(t, r) {
|
|
676
|
-
return
|
|
676
|
+
return M(t.getSeconds(), r.length);
|
|
677
677
|
},
|
|
678
678
|
// Fraction of second
|
|
679
679
|
S(t, r) {
|
|
680
680
|
const e = r.length, n = t.getMilliseconds(), a = Math.trunc(
|
|
681
681
|
n * Math.pow(10, e - 3)
|
|
682
682
|
);
|
|
683
|
-
return
|
|
683
|
+
return M(a, r.length);
|
|
684
684
|
}
|
|
685
685
|
}, j = {
|
|
686
686
|
midnight: "midnight",
|
|
@@ -689,7 +689,7 @@ const S = {
|
|
|
689
689
|
afternoon: "afternoon",
|
|
690
690
|
evening: "evening",
|
|
691
691
|
night: "night"
|
|
692
|
-
},
|
|
692
|
+
}, Te = {
|
|
693
693
|
// Era
|
|
694
694
|
G: function(t, r, e) {
|
|
695
695
|
const n = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -715,17 +715,17 @@ const S = {
|
|
|
715
715
|
},
|
|
716
716
|
// Local week-numbering year
|
|
717
717
|
Y: function(t, r, e, n) {
|
|
718
|
-
const a =
|
|
718
|
+
const a = ge(t, n), s = a > 0 ? a : 1 - a;
|
|
719
719
|
if (r === "YY") {
|
|
720
720
|
const c = s % 100;
|
|
721
|
-
return
|
|
721
|
+
return M(c, 2);
|
|
722
722
|
}
|
|
723
|
-
return r === "Yo" ? e.ordinalNumber(s, { unit: "year" }) :
|
|
723
|
+
return r === "Yo" ? e.ordinalNumber(s, { unit: "year" }) : M(s, r.length);
|
|
724
724
|
},
|
|
725
725
|
// ISO week-numbering year
|
|
726
726
|
R: function(t, r) {
|
|
727
|
-
const e =
|
|
728
|
-
return
|
|
727
|
+
const e = Ce(t);
|
|
728
|
+
return M(e, r.length);
|
|
729
729
|
},
|
|
730
730
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
731
731
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -738,7 +738,7 @@ const S = {
|
|
|
738
738
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
739
739
|
u: function(t, r) {
|
|
740
740
|
const e = t.getFullYear();
|
|
741
|
-
return
|
|
741
|
+
return M(e, r.length);
|
|
742
742
|
},
|
|
743
743
|
// Quarter
|
|
744
744
|
Q: function(t, r, e) {
|
|
@@ -747,7 +747,7 @@ const S = {
|
|
|
747
747
|
case "Q":
|
|
748
748
|
return String(n);
|
|
749
749
|
case "QQ":
|
|
750
|
-
return
|
|
750
|
+
return M(n, 2);
|
|
751
751
|
case "Qo":
|
|
752
752
|
return e.ordinalNumber(n, { unit: "quarter" });
|
|
753
753
|
case "QQQ":
|
|
@@ -775,7 +775,7 @@ const S = {
|
|
|
775
775
|
case "q":
|
|
776
776
|
return String(n);
|
|
777
777
|
case "qq":
|
|
778
|
-
return
|
|
778
|
+
return M(n, 2);
|
|
779
779
|
case "qo":
|
|
780
780
|
return e.ordinalNumber(n, { unit: "quarter" });
|
|
781
781
|
case "qqq":
|
|
@@ -827,7 +827,7 @@ const S = {
|
|
|
827
827
|
case "L":
|
|
828
828
|
return String(n + 1);
|
|
829
829
|
case "LL":
|
|
830
|
-
return
|
|
830
|
+
return M(n + 1, 2);
|
|
831
831
|
case "Lo":
|
|
832
832
|
return e.ordinalNumber(n + 1, { unit: "month" });
|
|
833
833
|
case "LLL":
|
|
@@ -847,13 +847,13 @@ const S = {
|
|
|
847
847
|
},
|
|
848
848
|
// Local week of year
|
|
849
849
|
w: function(t, r, e, n) {
|
|
850
|
-
const a =
|
|
851
|
-
return r === "wo" ? e.ordinalNumber(a, { unit: "week" }) :
|
|
850
|
+
const a = Fe(t, n);
|
|
851
|
+
return r === "wo" ? e.ordinalNumber(a, { unit: "week" }) : M(a, r.length);
|
|
852
852
|
},
|
|
853
853
|
// ISO week of year
|
|
854
854
|
I: function(t, r, e) {
|
|
855
|
-
const n =
|
|
856
|
-
return r === "Io" ? e.ordinalNumber(n, { unit: "week" }) :
|
|
855
|
+
const n = Le(t);
|
|
856
|
+
return r === "Io" ? e.ordinalNumber(n, { unit: "week" }) : M(n, r.length);
|
|
857
857
|
},
|
|
858
858
|
// Day of the month
|
|
859
859
|
d: function(t, r, e) {
|
|
@@ -861,8 +861,8 @@ const S = {
|
|
|
861
861
|
},
|
|
862
862
|
// Day of year
|
|
863
863
|
D: function(t, r, e) {
|
|
864
|
-
const n =
|
|
865
|
-
return r === "Do" ? e.ordinalNumber(n, { unit: "dayOfYear" }) :
|
|
864
|
+
const n = Jt(t);
|
|
865
|
+
return r === "Do" ? e.ordinalNumber(n, { unit: "dayOfYear" }) : M(n, r.length);
|
|
866
866
|
},
|
|
867
867
|
// Day of week
|
|
868
868
|
E: function(t, r, e) {
|
|
@@ -900,7 +900,7 @@ const S = {
|
|
|
900
900
|
case "e":
|
|
901
901
|
return String(s);
|
|
902
902
|
case "ee":
|
|
903
|
-
return
|
|
903
|
+
return M(s, 2);
|
|
904
904
|
case "eo":
|
|
905
905
|
return e.ordinalNumber(s, { unit: "day" });
|
|
906
906
|
case "eee":
|
|
@@ -933,7 +933,7 @@ const S = {
|
|
|
933
933
|
case "c":
|
|
934
934
|
return String(s);
|
|
935
935
|
case "cc":
|
|
936
|
-
return
|
|
936
|
+
return M(s, r.length);
|
|
937
937
|
case "co":
|
|
938
938
|
return e.ordinalNumber(s, { unit: "day" });
|
|
939
939
|
case "ccc":
|
|
@@ -966,7 +966,7 @@ const S = {
|
|
|
966
966
|
case "i":
|
|
967
967
|
return String(a);
|
|
968
968
|
case "ii":
|
|
969
|
-
return
|
|
969
|
+
return M(a, r.length);
|
|
970
970
|
case "io":
|
|
971
971
|
return e.ordinalNumber(a, { unit: "day" });
|
|
972
972
|
case "iii":
|
|
@@ -1089,12 +1089,12 @@ const S = {
|
|
|
1089
1089
|
// Hour [0-11]
|
|
1090
1090
|
K: function(t, r, e) {
|
|
1091
1091
|
const n = t.getHours() % 12;
|
|
1092
|
-
return r === "Ko" ? e.ordinalNumber(n, { unit: "hour" }) :
|
|
1092
|
+
return r === "Ko" ? e.ordinalNumber(n, { unit: "hour" }) : M(n, r.length);
|
|
1093
1093
|
},
|
|
1094
1094
|
// Hour [1-24]
|
|
1095
1095
|
k: function(t, r, e) {
|
|
1096
1096
|
let n = t.getHours();
|
|
1097
|
-
return n === 0 && (n = 24), r === "ko" ? e.ordinalNumber(n, { unit: "hour" }) :
|
|
1097
|
+
return n === 0 && (n = 24), r === "ko" ? e.ordinalNumber(n, { unit: "hour" }) : M(n, r.length);
|
|
1098
1098
|
},
|
|
1099
1099
|
// Minute
|
|
1100
1100
|
m: function(t, r, e) {
|
|
@@ -1115,7 +1115,7 @@ const S = {
|
|
|
1115
1115
|
return "Z";
|
|
1116
1116
|
switch (r) {
|
|
1117
1117
|
case "X":
|
|
1118
|
-
return
|
|
1118
|
+
return De(n);
|
|
1119
1119
|
case "XXXX":
|
|
1120
1120
|
case "XX":
|
|
1121
1121
|
return Q(n);
|
|
@@ -1130,7 +1130,7 @@ const S = {
|
|
|
1130
1130
|
const n = t.getTimezoneOffset();
|
|
1131
1131
|
switch (r) {
|
|
1132
1132
|
case "x":
|
|
1133
|
-
return
|
|
1133
|
+
return De(n);
|
|
1134
1134
|
case "xxxx":
|
|
1135
1135
|
case "xx":
|
|
1136
1136
|
return Q(n);
|
|
@@ -1147,7 +1147,7 @@ const S = {
|
|
|
1147
1147
|
case "O":
|
|
1148
1148
|
case "OO":
|
|
1149
1149
|
case "OOO":
|
|
1150
|
-
return "GMT" +
|
|
1150
|
+
return "GMT" + ke(n, ":");
|
|
1151
1151
|
case "OOOO":
|
|
1152
1152
|
default:
|
|
1153
1153
|
return "GMT" + Q(n, ":");
|
|
@@ -1160,7 +1160,7 @@ const S = {
|
|
|
1160
1160
|
case "z":
|
|
1161
1161
|
case "zz":
|
|
1162
1162
|
case "zzz":
|
|
1163
|
-
return "GMT" +
|
|
1163
|
+
return "GMT" + ke(n, ":");
|
|
1164
1164
|
case "zzzz":
|
|
1165
1165
|
default:
|
|
1166
1166
|
return "GMT" + Q(n, ":");
|
|
@@ -1169,26 +1169,26 @@ const S = {
|
|
|
1169
1169
|
// Seconds timestamp
|
|
1170
1170
|
t: function(t, r, e) {
|
|
1171
1171
|
const n = Math.trunc(t.getTime() / 1e3);
|
|
1172
|
-
return
|
|
1172
|
+
return M(n, r.length);
|
|
1173
1173
|
},
|
|
1174
1174
|
// Milliseconds timestamp
|
|
1175
1175
|
T: function(t, r, e) {
|
|
1176
1176
|
const n = t.getTime();
|
|
1177
|
-
return
|
|
1177
|
+
return M(n, r.length);
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
|
-
function
|
|
1180
|
+
function ke(t, r = "") {
|
|
1181
1181
|
const e = t > 0 ? "-" : "+", n = Math.abs(t), a = Math.trunc(n / 60), s = n % 60;
|
|
1182
|
-
return s === 0 ? e + String(a) : e + String(a) + r +
|
|
1182
|
+
return s === 0 ? e + String(a) : e + String(a) + r + M(s, 2);
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") +
|
|
1184
|
+
function De(t, r) {
|
|
1185
|
+
return t % 60 === 0 ? (t > 0 ? "-" : "+") + M(Math.abs(t) / 60, 2) : Q(t, r);
|
|
1186
1186
|
}
|
|
1187
1187
|
function Q(t, r = "") {
|
|
1188
|
-
const e = t > 0 ? "-" : "+", n = Math.abs(t), a =
|
|
1188
|
+
const e = t > 0 ? "-" : "+", n = Math.abs(t), a = M(Math.trunc(n / 60), 2), s = M(n % 60, 2);
|
|
1189
1189
|
return e + a + r + s;
|
|
1190
1190
|
}
|
|
1191
|
-
const
|
|
1191
|
+
const Oe = (t, r) => {
|
|
1192
1192
|
switch (t) {
|
|
1193
1193
|
case "P":
|
|
1194
1194
|
return r.date({ width: "short" });
|
|
@@ -1200,7 +1200,7 @@ const De = (t, r) => {
|
|
|
1200
1200
|
default:
|
|
1201
1201
|
return r.date({ width: "full" });
|
|
1202
1202
|
}
|
|
1203
|
-
},
|
|
1203
|
+
}, Ie = (t, r) => {
|
|
1204
1204
|
switch (t) {
|
|
1205
1205
|
case "p":
|
|
1206
1206
|
return r.time({ width: "short" });
|
|
@@ -1212,10 +1212,10 @@ const De = (t, r) => {
|
|
|
1212
1212
|
default:
|
|
1213
1213
|
return r.time({ width: "full" });
|
|
1214
1214
|
}
|
|
1215
|
-
},
|
|
1215
|
+
}, er = (t, r) => {
|
|
1216
1216
|
const e = t.match(/(P+)(p+)?/) || [], n = e[1], a = e[2];
|
|
1217
1217
|
if (!a)
|
|
1218
|
-
return
|
|
1218
|
+
return Oe(t, r);
|
|
1219
1219
|
let s;
|
|
1220
1220
|
switch (n) {
|
|
1221
1221
|
case "P":
|
|
@@ -1232,47 +1232,47 @@ const De = (t, r) => {
|
|
|
1232
1232
|
s = r.dateTime({ width: "full" });
|
|
1233
1233
|
break;
|
|
1234
1234
|
}
|
|
1235
|
-
return s.replace("{{date}}",
|
|
1236
|
-
},
|
|
1237
|
-
p:
|
|
1238
|
-
P:
|
|
1239
|
-
},
|
|
1240
|
-
function Ie(t) {
|
|
1241
|
-
return Kt.test(t);
|
|
1242
|
-
}
|
|
1235
|
+
return s.replace("{{date}}", Oe(n, r)).replace("{{time}}", Ie(a, r));
|
|
1236
|
+
}, we = {
|
|
1237
|
+
p: Ie,
|
|
1238
|
+
P: er
|
|
1239
|
+
}, tr = /^D+$/, rr = /^Y+$/, nr = ["D", "DD", "YY", "YYYY"];
|
|
1243
1240
|
function Se(t) {
|
|
1244
|
-
return
|
|
1241
|
+
return tr.test(t);
|
|
1242
|
+
}
|
|
1243
|
+
function Re(t) {
|
|
1244
|
+
return rr.test(t);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1247
|
-
const n =
|
|
1248
|
-
if (console.warn(n),
|
|
1246
|
+
function ye(t, r, e) {
|
|
1247
|
+
const n = ar(t, r, e);
|
|
1248
|
+
if (console.warn(n), nr.includes(t)) throw new RangeError(n);
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function ar(t, r, e) {
|
|
1251
1251
|
const n = t[0] === "Y" ? "years" : "days of the month";
|
|
1252
1252
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${r}\`) for formatting ${n} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1253
1253
|
}
|
|
1254
|
-
const
|
|
1255
|
-
function
|
|
1254
|
+
const sr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ir = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, or = /^'([^]*?)'?$/, ur = /''/g, cr = /[a-zA-Z]/;
|
|
1255
|
+
function Ye(t, r, e) {
|
|
1256
1256
|
var f, y, i, p;
|
|
1257
|
-
const n = z(), a = n.locale ??
|
|
1258
|
-
if (!
|
|
1257
|
+
const n = z(), a = n.locale ?? qe, s = n.firstWeekContainsDate ?? ((y = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, c = n.weekStartsOn ?? ((p = (i = n.locale) == null ? void 0 : i.options) == null ? void 0 : p.weekStartsOn) ?? 0, l = N(t);
|
|
1258
|
+
if (!_e(l))
|
|
1259
1259
|
throw new RangeError("Invalid time value");
|
|
1260
|
-
let m = r.match(
|
|
1260
|
+
let m = r.match(ir).map((g) => {
|
|
1261
1261
|
const D = g[0];
|
|
1262
1262
|
if (D === "p" || D === "P") {
|
|
1263
|
-
const _ =
|
|
1263
|
+
const _ = we[D];
|
|
1264
1264
|
return _(g, a.formatLong);
|
|
1265
1265
|
}
|
|
1266
1266
|
return g;
|
|
1267
|
-
}).join("").match(
|
|
1267
|
+
}).join("").match(sr).map((g) => {
|
|
1268
1268
|
if (g === "''")
|
|
1269
1269
|
return { isToken: !1, value: "'" };
|
|
1270
1270
|
const D = g[0];
|
|
1271
1271
|
if (D === "'")
|
|
1272
|
-
return { isToken: !1, value:
|
|
1273
|
-
if (
|
|
1272
|
+
return { isToken: !1, value: lr(g) };
|
|
1273
|
+
if (Te[D])
|
|
1274
1274
|
return { isToken: !0, value: g };
|
|
1275
|
-
if (D.match(
|
|
1275
|
+
if (D.match(cr))
|
|
1276
1276
|
throw new RangeError(
|
|
1277
1277
|
"Format string contains an unescaped latin alphabet character `" + D + "`"
|
|
1278
1278
|
);
|
|
@@ -1287,23 +1287,23 @@ function Oe(t, r, e) {
|
|
|
1287
1287
|
return m.map((g) => {
|
|
1288
1288
|
if (!g.isToken) return g.value;
|
|
1289
1289
|
const D = g.value;
|
|
1290
|
-
(
|
|
1291
|
-
const _ =
|
|
1290
|
+
(Re(D) || Se(D)) && ye(D, r, String(t));
|
|
1291
|
+
const _ = Te[D[0]];
|
|
1292
1292
|
return _(l, D, a.localize, w);
|
|
1293
1293
|
}).join("");
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1296
|
-
const r = t.match(
|
|
1297
|
-
return r ? r[1].replace(
|
|
1295
|
+
function lr(t) {
|
|
1296
|
+
const r = t.match(or);
|
|
1297
|
+
return r ? r[1].replace(ur, "'") : t;
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function dr() {
|
|
1300
1300
|
return Object.assign({}, z());
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function fr(t) {
|
|
1303
1303
|
let e = N(t).getDay();
|
|
1304
1304
|
return e === 0 && (e = 7), e;
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function hr(t, r) {
|
|
1307
1307
|
const e = r instanceof Date ? T(r, 0) : new r(0);
|
|
1308
1308
|
return e.setFullYear(
|
|
1309
1309
|
t.getFullYear(),
|
|
@@ -1316,8 +1316,8 @@ function dr(t, r) {
|
|
|
1316
1316
|
t.getMilliseconds()
|
|
1317
1317
|
), e;
|
|
1318
1318
|
}
|
|
1319
|
-
const
|
|
1320
|
-
class
|
|
1319
|
+
const mr = 10;
|
|
1320
|
+
class Be {
|
|
1321
1321
|
constructor() {
|
|
1322
1322
|
o(this, "subPriority", 0);
|
|
1323
1323
|
}
|
|
@@ -1325,7 +1325,7 @@ class Re {
|
|
|
1325
1325
|
return !0;
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
|
-
class
|
|
1328
|
+
class wr extends Be {
|
|
1329
1329
|
constructor(r, e, n, a, s) {
|
|
1330
1330
|
super(), this.value = r, this.validateValue = e, this.setValue = n, this.priority = a, s && (this.subPriority = s);
|
|
1331
1331
|
}
|
|
@@ -1336,21 +1336,21 @@ class hr extends Re {
|
|
|
1336
1336
|
return this.setValue(r, e, this.value, n);
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
|
-
class
|
|
1339
|
+
class yr extends Be {
|
|
1340
1340
|
constructor() {
|
|
1341
1341
|
super(...arguments);
|
|
1342
|
-
o(this, "priority",
|
|
1342
|
+
o(this, "priority", mr);
|
|
1343
1343
|
o(this, "subPriority", -1);
|
|
1344
1344
|
}
|
|
1345
1345
|
set(e, n) {
|
|
1346
|
-
return n.timestampIsSet ? e : T(e,
|
|
1346
|
+
return n.timestampIsSet ? e : T(e, hr(e, Date));
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
class v {
|
|
1350
1350
|
run(r, e, n, a) {
|
|
1351
1351
|
const s = this.parse(r, e, n, a);
|
|
1352
1352
|
return s ? {
|
|
1353
|
-
setter: new
|
|
1353
|
+
setter: new wr(
|
|
1354
1354
|
s.value,
|
|
1355
1355
|
this.validate,
|
|
1356
1356
|
this.set,
|
|
@@ -1364,7 +1364,7 @@ class v {
|
|
|
1364
1364
|
return !0;
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
|
-
class
|
|
1367
|
+
class pr extends v {
|
|
1368
1368
|
constructor() {
|
|
1369
1369
|
super(...arguments);
|
|
1370
1370
|
o(this, "priority", 140);
|
|
@@ -1456,11 +1456,11 @@ function F(t, r) {
|
|
|
1456
1456
|
};
|
|
1457
1457
|
const n = e[1] === "+" ? 1 : -1, a = e[2] ? parseInt(e[2], 10) : 0, s = e[3] ? parseInt(e[3], 10) : 0, c = e[5] ? parseInt(e[5], 10) : 0;
|
|
1458
1458
|
return {
|
|
1459
|
-
value: n * (a *
|
|
1459
|
+
value: n * (a * ht + s * ft + c * mt),
|
|
1460
1460
|
rest: r.slice(e[0].length)
|
|
1461
1461
|
};
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function Qe(t) {
|
|
1464
1464
|
return P(Y.anyDigitsSigned, t);
|
|
1465
1465
|
}
|
|
1466
1466
|
function k(t, r) {
|
|
@@ -1491,7 +1491,7 @@ function ue(t, r) {
|
|
|
1491
1491
|
return P(new RegExp("^-?\\d{1," + t + "}"), r);
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function xe(t) {
|
|
1495
1495
|
switch (t) {
|
|
1496
1496
|
case "morning":
|
|
1497
1497
|
return 4;
|
|
@@ -1508,7 +1508,7 @@ function ge(t) {
|
|
|
1508
1508
|
return 0;
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Ae(t, r) {
|
|
1512
1512
|
const e = r > 0, n = e ? r : 1 - r;
|
|
1513
1513
|
let a;
|
|
1514
1514
|
if (n <= 50)
|
|
@@ -1519,10 +1519,10 @@ function Qe(t, r) {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
return e ? a : 1 - a;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function Xe(t) {
|
|
1523
1523
|
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
1524
1524
|
}
|
|
1525
|
-
class
|
|
1525
|
+
class br extends v {
|
|
1526
1526
|
constructor() {
|
|
1527
1527
|
super(...arguments);
|
|
1528
1528
|
o(this, "priority", 130);
|
|
@@ -1553,7 +1553,7 @@ class yr extends v {
|
|
|
1553
1553
|
set(e, n, a) {
|
|
1554
1554
|
const s = e.getFullYear();
|
|
1555
1555
|
if (a.isTwoDigitYear) {
|
|
1556
|
-
const l =
|
|
1556
|
+
const l = Ae(
|
|
1557
1557
|
a.year,
|
|
1558
1558
|
s
|
|
1559
1559
|
);
|
|
@@ -1563,7 +1563,7 @@ class yr extends v {
|
|
|
1563
1563
|
return e.setFullYear(c, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
|
-
class
|
|
1566
|
+
class gr extends v {
|
|
1567
1567
|
constructor() {
|
|
1568
1568
|
super(...arguments);
|
|
1569
1569
|
o(this, "priority", 130);
|
|
@@ -1606,9 +1606,9 @@ class pr extends v {
|
|
|
1606
1606
|
return n.isTwoDigitYear || n.year > 0;
|
|
1607
1607
|
}
|
|
1608
1608
|
set(e, n, a, s) {
|
|
1609
|
-
const c =
|
|
1609
|
+
const c = ge(e, s);
|
|
1610
1610
|
if (a.isTwoDigitYear) {
|
|
1611
|
-
const m =
|
|
1611
|
+
const m = Ae(
|
|
1612
1612
|
a.year,
|
|
1613
1613
|
c
|
|
1614
1614
|
);
|
|
@@ -1622,7 +1622,7 @@ class pr extends v {
|
|
|
1622
1622
|
return e.setFullYear(l, 0, s.firstWeekContainsDate), e.setHours(0, 0, 0, 0), R(e, s);
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
|
-
class
|
|
1625
|
+
class xr extends v {
|
|
1626
1626
|
constructor() {
|
|
1627
1627
|
super(...arguments);
|
|
1628
1628
|
o(this, "priority", 130);
|
|
@@ -1652,7 +1652,7 @@ class br extends v {
|
|
|
1652
1652
|
return s.setFullYear(a, 0, 4), s.setHours(0, 0, 0, 0), U(s);
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
class
|
|
1655
|
+
class vr extends v {
|
|
1656
1656
|
constructor() {
|
|
1657
1657
|
super(...arguments);
|
|
1658
1658
|
o(this, "priority", 130);
|
|
@@ -1665,7 +1665,7 @@ class gr extends v {
|
|
|
1665
1665
|
return e.setFullYear(a, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
|
-
class
|
|
1668
|
+
class Mr extends v {
|
|
1669
1669
|
constructor() {
|
|
1670
1670
|
super(...arguments);
|
|
1671
1671
|
o(this, "priority", 120);
|
|
@@ -1727,7 +1727,7 @@ class xr extends v {
|
|
|
1727
1727
|
return e.setMonth((a - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
|
-
class
|
|
1730
|
+
class Hr extends v {
|
|
1731
1731
|
constructor() {
|
|
1732
1732
|
super(...arguments);
|
|
1733
1733
|
o(this, "priority", 120);
|
|
@@ -1789,7 +1789,7 @@ class vr extends v {
|
|
|
1789
1789
|
return e.setMonth((a - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
|
-
class
|
|
1792
|
+
class Pr extends v {
|
|
1793
1793
|
constructor() {
|
|
1794
1794
|
super(...arguments);
|
|
1795
1795
|
o(this, "incompatibleTokens", [
|
|
@@ -1851,7 +1851,7 @@ class Hr extends v {
|
|
|
1851
1851
|
return e.setMonth(a, 1), e.setHours(0, 0, 0, 0), e;
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
|
-
class
|
|
1854
|
+
class Tr extends v {
|
|
1855
1855
|
constructor() {
|
|
1856
1856
|
super(...arguments);
|
|
1857
1857
|
o(this, "priority", 110);
|
|
@@ -1913,11 +1913,11 @@ class Mr extends v {
|
|
|
1913
1913
|
return e.setMonth(a, 1), e.setHours(0, 0, 0, 0), e;
|
|
1914
1914
|
}
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1917
|
-
const n = N(t), a =
|
|
1916
|
+
function kr(t, r, e) {
|
|
1917
|
+
const n = N(t), a = Fe(n, e) - r;
|
|
1918
1918
|
return n.setDate(n.getDate() - a * 7), n;
|
|
1919
1919
|
}
|
|
1920
|
-
class
|
|
1920
|
+
class Dr extends v {
|
|
1921
1921
|
constructor() {
|
|
1922
1922
|
super(...arguments);
|
|
1923
1923
|
o(this, "priority", 100);
|
|
@@ -1951,14 +1951,14 @@ class Tr extends v {
|
|
|
1951
1951
|
return n >= 1 && n <= 53;
|
|
1952
1952
|
}
|
|
1953
1953
|
set(e, n, a, s) {
|
|
1954
|
-
return R(
|
|
1954
|
+
return R(kr(e, a, s), s);
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1958
|
-
const e = N(t), n =
|
|
1957
|
+
function Or(t, r) {
|
|
1958
|
+
const e = N(t), n = Le(e) - r;
|
|
1959
1959
|
return e.setDate(e.getDate() - n * 7), e;
|
|
1960
1960
|
}
|
|
1961
|
-
class
|
|
1961
|
+
class Yr extends v {
|
|
1962
1962
|
constructor() {
|
|
1963
1963
|
super(...arguments);
|
|
1964
1964
|
o(this, "priority", 100);
|
|
@@ -1993,10 +1993,10 @@ class Dr extends v {
|
|
|
1993
1993
|
return n >= 1 && n <= 53;
|
|
1994
1994
|
}
|
|
1995
1995
|
set(e, n, a) {
|
|
1996
|
-
return U(
|
|
1996
|
+
return U(Or(e, a));
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
1999
|
-
const
|
|
1999
|
+
const Vr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Er = [
|
|
2000
2000
|
31,
|
|
2001
2001
|
29,
|
|
2002
2002
|
31,
|
|
@@ -2010,7 +2010,7 @@ const Or = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Yr = [
|
|
|
2010
2010
|
30,
|
|
2011
2011
|
31
|
|
2012
2012
|
];
|
|
2013
|
-
class
|
|
2013
|
+
class Nr extends v {
|
|
2014
2014
|
constructor() {
|
|
2015
2015
|
super(...arguments);
|
|
2016
2016
|
o(this, "priority", 90);
|
|
@@ -2041,14 +2041,14 @@ class Vr extends v {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
}
|
|
2043
2043
|
validate(e, n) {
|
|
2044
|
-
const a = e.getFullYear(), s =
|
|
2045
|
-
return s ? n >= 1 && n <=
|
|
2044
|
+
const a = e.getFullYear(), s = Xe(a), c = e.getMonth();
|
|
2045
|
+
return s ? n >= 1 && n <= Er[c] : n >= 1 && n <= Vr[c];
|
|
2046
2046
|
}
|
|
2047
2047
|
set(e, n, a) {
|
|
2048
2048
|
return e.setDate(a), e.setHours(0, 0, 0, 0), e;
|
|
2049
2049
|
}
|
|
2050
2050
|
}
|
|
2051
|
-
class
|
|
2051
|
+
class Wr extends v {
|
|
2052
2052
|
constructor() {
|
|
2053
2053
|
super(...arguments);
|
|
2054
2054
|
o(this, "priority", 90);
|
|
@@ -2084,18 +2084,18 @@ class Er extends v {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
validate(e, n) {
|
|
2086
2086
|
const a = e.getFullYear();
|
|
2087
|
-
return
|
|
2087
|
+
return Xe(a) ? n >= 1 && n <= 366 : n >= 1 && n <= 365;
|
|
2088
2088
|
}
|
|
2089
2089
|
set(e, n, a) {
|
|
2090
2090
|
return e.setMonth(0, a), e.setHours(0, 0, 0, 0), e;
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function ve(t, r, e) {
|
|
2094
2094
|
var y, i, p, g;
|
|
2095
2095
|
const n = z(), a = (e == null ? void 0 : e.weekStartsOn) ?? ((i = (y = e == null ? void 0 : e.locale) == null ? void 0 : y.options) == null ? void 0 : i.weekStartsOn) ?? n.weekStartsOn ?? ((g = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : g.weekStartsOn) ?? 0, s = N(t), c = s.getDay(), m = (r % 7 + 7) % 7, w = 7 - a, f = r < 0 || r > 6 ? r - (c + w) % 7 : (m + w) % 7 - (c + w) % 7;
|
|
2096
|
-
return
|
|
2096
|
+
return Ne(s, f);
|
|
2097
2097
|
}
|
|
2098
|
-
class
|
|
2098
|
+
class Cr extends v {
|
|
2099
2099
|
constructor() {
|
|
2100
2100
|
super(...arguments);
|
|
2101
2101
|
o(this, "priority", 90);
|
|
@@ -2129,10 +2129,10 @@ class Nr extends v {
|
|
|
2129
2129
|
return n >= 0 && n <= 6;
|
|
2130
2130
|
}
|
|
2131
2131
|
set(e, n, a, s) {
|
|
2132
|
-
return e =
|
|
2132
|
+
return e = ve(e, a, s), e.setHours(0, 0, 0, 0), e;
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
2135
|
-
class
|
|
2135
|
+
class _r extends v {
|
|
2136
2136
|
constructor() {
|
|
2137
2137
|
super(...arguments);
|
|
2138
2138
|
o(this, "priority", 90);
|
|
@@ -2194,10 +2194,10 @@ class Wr extends v {
|
|
|
2194
2194
|
return n >= 0 && n <= 6;
|
|
2195
2195
|
}
|
|
2196
2196
|
set(e, n, a, s) {
|
|
2197
|
-
return e =
|
|
2197
|
+
return e = ve(e, a, s), e.setHours(0, 0, 0, 0), e;
|
|
2198
2198
|
}
|
|
2199
2199
|
}
|
|
2200
|
-
class
|
|
2200
|
+
class qr extends v {
|
|
2201
2201
|
constructor() {
|
|
2202
2202
|
super(...arguments);
|
|
2203
2203
|
o(this, "priority", 90);
|
|
@@ -2259,14 +2259,14 @@ class Cr extends v {
|
|
|
2259
2259
|
return n >= 0 && n <= 6;
|
|
2260
2260
|
}
|
|
2261
2261
|
set(e, n, a, s) {
|
|
2262
|
-
return e =
|
|
2262
|
+
return e = ve(e, a, s), e.setHours(0, 0, 0, 0), e;
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2266
|
-
const e = N(t), n =
|
|
2267
|
-
return
|
|
2265
|
+
function Lr(t, r) {
|
|
2266
|
+
const e = N(t), n = fr(e), a = r - n;
|
|
2267
|
+
return Ne(e, a);
|
|
2268
2268
|
}
|
|
2269
|
-
class
|
|
2269
|
+
class Fr extends v {
|
|
2270
2270
|
constructor() {
|
|
2271
2271
|
super(...arguments);
|
|
2272
2272
|
o(this, "priority", 90);
|
|
@@ -2353,10 +2353,10 @@ class qr extends v {
|
|
|
2353
2353
|
return n >= 1 && n <= 7;
|
|
2354
2354
|
}
|
|
2355
2355
|
set(e, n, a) {
|
|
2356
|
-
return e =
|
|
2356
|
+
return e = Lr(e, a), e.setHours(0, 0, 0, 0), e;
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
|
-
class
|
|
2359
|
+
class Ir extends v {
|
|
2360
2360
|
constructor() {
|
|
2361
2361
|
super(...arguments);
|
|
2362
2362
|
o(this, "priority", 80);
|
|
@@ -2394,10 +2394,10 @@ class Lr extends v {
|
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
2396
|
set(e, n, a) {
|
|
2397
|
-
return e.setHours(
|
|
2397
|
+
return e.setHours(xe(a), 0, 0, 0), e;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
class
|
|
2400
|
+
class Sr extends v {
|
|
2401
2401
|
constructor() {
|
|
2402
2402
|
super(...arguments);
|
|
2403
2403
|
o(this, "priority", 80);
|
|
@@ -2435,10 +2435,10 @@ class Fr extends v {
|
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
set(e, n, a) {
|
|
2438
|
-
return e.setHours(
|
|
2438
|
+
return e.setHours(xe(a), 0, 0, 0), e;
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
2441
|
-
class
|
|
2441
|
+
class Rr extends v {
|
|
2442
2442
|
constructor() {
|
|
2443
2443
|
super(...arguments);
|
|
2444
2444
|
o(this, "priority", 80);
|
|
@@ -2476,10 +2476,10 @@ class Ir extends v {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
}
|
|
2478
2478
|
set(e, n, a) {
|
|
2479
|
-
return e.setHours(
|
|
2479
|
+
return e.setHours(xe(a), 0, 0, 0), e;
|
|
2480
2480
|
}
|
|
2481
2481
|
}
|
|
2482
|
-
class
|
|
2482
|
+
class Br extends v {
|
|
2483
2483
|
constructor() {
|
|
2484
2484
|
super(...arguments);
|
|
2485
2485
|
o(this, "priority", 70);
|
|
@@ -2503,7 +2503,7 @@ class Sr extends v {
|
|
|
2503
2503
|
return s && a < 12 ? e.setHours(a + 12, 0, 0, 0) : !s && a === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(a, 0, 0, 0), e;
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
|
-
class
|
|
2506
|
+
class Qr extends v {
|
|
2507
2507
|
constructor() {
|
|
2508
2508
|
super(...arguments);
|
|
2509
2509
|
o(this, "priority", 70);
|
|
@@ -2526,7 +2526,7 @@ class Rr extends v {
|
|
|
2526
2526
|
return e.setHours(a, 0, 0, 0), e;
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
|
-
class
|
|
2529
|
+
class Ar extends v {
|
|
2530
2530
|
constructor() {
|
|
2531
2531
|
super(...arguments);
|
|
2532
2532
|
o(this, "priority", 70);
|
|
@@ -2549,7 +2549,7 @@ class Br extends v {
|
|
|
2549
2549
|
return e.getHours() >= 12 && a < 12 ? e.setHours(a + 12, 0, 0, 0) : e.setHours(a, 0, 0, 0), e;
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
-
class
|
|
2552
|
+
class Xr extends v {
|
|
2553
2553
|
constructor() {
|
|
2554
2554
|
super(...arguments);
|
|
2555
2555
|
o(this, "priority", 70);
|
|
@@ -2573,7 +2573,7 @@ class Qr extends v {
|
|
|
2573
2573
|
return e.setHours(s, 0, 0, 0), e;
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
2576
|
-
class
|
|
2576
|
+
class Gr extends v {
|
|
2577
2577
|
constructor() {
|
|
2578
2578
|
super(...arguments);
|
|
2579
2579
|
o(this, "priority", 60);
|
|
@@ -2596,7 +2596,7 @@ class Ar extends v {
|
|
|
2596
2596
|
return e.setMinutes(a, 0, 0), e;
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
|
-
class
|
|
2599
|
+
class jr extends v {
|
|
2600
2600
|
constructor() {
|
|
2601
2601
|
super(...arguments);
|
|
2602
2602
|
o(this, "priority", 50);
|
|
@@ -2619,7 +2619,7 @@ class Xr extends v {
|
|
|
2619
2619
|
return e.setSeconds(a, 0), e;
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
|
-
class
|
|
2622
|
+
class $r extends v {
|
|
2623
2623
|
constructor() {
|
|
2624
2624
|
super(...arguments);
|
|
2625
2625
|
o(this, "priority", 30);
|
|
@@ -2633,7 +2633,7 @@ class Gr extends v {
|
|
|
2633
2633
|
return e.setMilliseconds(a), e;
|
|
2634
2634
|
}
|
|
2635
2635
|
}
|
|
2636
|
-
class
|
|
2636
|
+
class Ur extends v {
|
|
2637
2637
|
constructor() {
|
|
2638
2638
|
super(...arguments);
|
|
2639
2639
|
o(this, "priority", 10);
|
|
@@ -2670,7 +2670,7 @@ class jr extends v {
|
|
|
2670
2670
|
);
|
|
2671
2671
|
}
|
|
2672
2672
|
}
|
|
2673
|
-
class
|
|
2673
|
+
class zr extends v {
|
|
2674
2674
|
constructor() {
|
|
2675
2675
|
super(...arguments);
|
|
2676
2676
|
o(this, "priority", 10);
|
|
@@ -2707,85 +2707,85 @@ class $r extends v {
|
|
|
2707
2707
|
);
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
|
-
class
|
|
2710
|
+
class Zr extends v {
|
|
2711
2711
|
constructor() {
|
|
2712
2712
|
super(...arguments);
|
|
2713
2713
|
o(this, "priority", 40);
|
|
2714
2714
|
o(this, "incompatibleTokens", "*");
|
|
2715
2715
|
}
|
|
2716
2716
|
parse(e) {
|
|
2717
|
-
return
|
|
2717
|
+
return Qe(e);
|
|
2718
2718
|
}
|
|
2719
2719
|
set(e, n, a) {
|
|
2720
2720
|
return [T(e, a * 1e3), { timestampIsSet: !0 }];
|
|
2721
2721
|
}
|
|
2722
2722
|
}
|
|
2723
|
-
class
|
|
2723
|
+
class Jr extends v {
|
|
2724
2724
|
constructor() {
|
|
2725
2725
|
super(...arguments);
|
|
2726
2726
|
o(this, "priority", 20);
|
|
2727
2727
|
o(this, "incompatibleTokens", "*");
|
|
2728
2728
|
}
|
|
2729
2729
|
parse(e) {
|
|
2730
|
-
return
|
|
2730
|
+
return Qe(e);
|
|
2731
2731
|
}
|
|
2732
2732
|
set(e, n, a) {
|
|
2733
2733
|
return [T(e, a), { timestampIsSet: !0 }];
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
2736
|
-
const
|
|
2737
|
-
G: new
|
|
2738
|
-
y: new
|
|
2739
|
-
Y: new
|
|
2740
|
-
R: new
|
|
2741
|
-
u: new
|
|
2742
|
-
Q: new
|
|
2743
|
-
q: new
|
|
2744
|
-
M: new
|
|
2745
|
-
L: new
|
|
2746
|
-
w: new
|
|
2747
|
-
I: new
|
|
2748
|
-
d: new
|
|
2749
|
-
D: new
|
|
2750
|
-
E: new
|
|
2751
|
-
e: new
|
|
2752
|
-
c: new
|
|
2753
|
-
i: new
|
|
2754
|
-
a: new
|
|
2755
|
-
b: new
|
|
2756
|
-
B: new
|
|
2757
|
-
h: new
|
|
2758
|
-
H: new
|
|
2759
|
-
K: new
|
|
2760
|
-
k: new
|
|
2761
|
-
m: new
|
|
2762
|
-
s: new
|
|
2763
|
-
S: new
|
|
2764
|
-
X: new
|
|
2765
|
-
x: new
|
|
2766
|
-
t: new
|
|
2767
|
-
T: new
|
|
2768
|
-
},
|
|
2769
|
-
function
|
|
2736
|
+
const Kr = {
|
|
2737
|
+
G: new pr(),
|
|
2738
|
+
y: new br(),
|
|
2739
|
+
Y: new gr(),
|
|
2740
|
+
R: new xr(),
|
|
2741
|
+
u: new vr(),
|
|
2742
|
+
Q: new Mr(),
|
|
2743
|
+
q: new Hr(),
|
|
2744
|
+
M: new Pr(),
|
|
2745
|
+
L: new Tr(),
|
|
2746
|
+
w: new Dr(),
|
|
2747
|
+
I: new Yr(),
|
|
2748
|
+
d: new Nr(),
|
|
2749
|
+
D: new Wr(),
|
|
2750
|
+
E: new Cr(),
|
|
2751
|
+
e: new _r(),
|
|
2752
|
+
c: new qr(),
|
|
2753
|
+
i: new Fr(),
|
|
2754
|
+
a: new Ir(),
|
|
2755
|
+
b: new Sr(),
|
|
2756
|
+
B: new Rr(),
|
|
2757
|
+
h: new Br(),
|
|
2758
|
+
H: new Qr(),
|
|
2759
|
+
K: new Ar(),
|
|
2760
|
+
k: new Xr(),
|
|
2761
|
+
m: new Gr(),
|
|
2762
|
+
s: new jr(),
|
|
2763
|
+
S: new $r(),
|
|
2764
|
+
X: new Ur(),
|
|
2765
|
+
x: new zr(),
|
|
2766
|
+
t: new Zr(),
|
|
2767
|
+
T: new Jr()
|
|
2768
|
+
}, en = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, rn = /^'([^]*?)'?$/, nn = /''/g, an = /\S/, sn = /[a-zA-Z]/;
|
|
2769
|
+
function Ve(t, r, e, n) {
|
|
2770
2770
|
var D, _, re, A;
|
|
2771
|
-
const a =
|
|
2771
|
+
const a = dr(), s = a.locale ?? qe, c = a.firstWeekContainsDate ?? ((_ = (D = a.locale) == null ? void 0 : D.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, l = a.weekStartsOn ?? ((A = (re = a.locale) == null ? void 0 : re.options) == null ? void 0 : A.weekStartsOn) ?? 0;
|
|
2772
2772
|
if (r === "")
|
|
2773
2773
|
return t === "" ? N(e) : T(e, NaN);
|
|
2774
2774
|
const m = {
|
|
2775
2775
|
firstWeekContainsDate: c,
|
|
2776
2776
|
weekStartsOn: l,
|
|
2777
2777
|
locale: s
|
|
2778
|
-
}, w = [new
|
|
2778
|
+
}, w = [new yr()], f = r.match(tn).map((h) => {
|
|
2779
2779
|
const b = h[0];
|
|
2780
|
-
if (b in
|
|
2781
|
-
const W =
|
|
2780
|
+
if (b in we) {
|
|
2781
|
+
const W = we[b];
|
|
2782
2782
|
return W(h, s.formatLong);
|
|
2783
2783
|
}
|
|
2784
2784
|
return h;
|
|
2785
|
-
}).join("").match(
|
|
2785
|
+
}).join("").match(en), y = [];
|
|
2786
2786
|
for (let h of f) {
|
|
2787
|
-
|
|
2788
|
-
const b = h[0], W =
|
|
2787
|
+
Re(h) && ye(h, r, t), Se(h) && ye(h, r, t);
|
|
2788
|
+
const b = h[0], W = Kr[b];
|
|
2789
2789
|
if (W) {
|
|
2790
2790
|
const { incompatibleTokens: I } = W;
|
|
2791
2791
|
if (Array.isArray(I)) {
|
|
@@ -2811,17 +2811,17 @@ function Ye(t, r, e, n) {
|
|
|
2811
2811
|
return T(e, NaN);
|
|
2812
2812
|
w.push(X.setter), t = X.rest;
|
|
2813
2813
|
} else {
|
|
2814
|
-
if (b.match(
|
|
2814
|
+
if (b.match(sn))
|
|
2815
2815
|
throw new RangeError(
|
|
2816
2816
|
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
2817
2817
|
);
|
|
2818
|
-
if (h === "''" ? h = "'" : b === "'" && (h =
|
|
2818
|
+
if (h === "''" ? h = "'" : b === "'" && (h = on(h)), t.indexOf(h) === 0)
|
|
2819
2819
|
t = t.slice(h.length);
|
|
2820
2820
|
else
|
|
2821
2821
|
return T(e, NaN);
|
|
2822
2822
|
}
|
|
2823
2823
|
}
|
|
2824
|
-
if (t.length > 0 &&
|
|
2824
|
+
if (t.length > 0 && an.test(t))
|
|
2825
2825
|
return T(e, NaN);
|
|
2826
2826
|
const i = w.map((h) => h.priority).sort((h, b) => b - h).filter((h, b, W) => W.indexOf(h) === b).map(
|
|
2827
2827
|
(h) => w.filter((b) => b.priority === h).sort((b, W) => W.subPriority - b.subPriority)
|
|
@@ -2838,30 +2838,30 @@ function Ye(t, r, e, n) {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
return T(e, p);
|
|
2840
2840
|
}
|
|
2841
|
-
function
|
|
2842
|
-
return t.match(
|
|
2841
|
+
function on(t) {
|
|
2842
|
+
return t.match(rn)[1].replace(nn, "'");
|
|
2843
2843
|
}
|
|
2844
|
-
function
|
|
2844
|
+
function H(t) {
|
|
2845
2845
|
return typeof t < "u" && t !== null;
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2847
|
+
function pn(t) {
|
|
2848
2848
|
return !!t;
|
|
2849
2849
|
}
|
|
2850
|
-
function
|
|
2850
|
+
function Ge(t, r = "hh:mm:ss") {
|
|
2851
2851
|
if (!(!t || !r))
|
|
2852
|
-
return r.indexOf("ss") === -1 && t.split(":").length === 3 && (r = r + ":ss"), r.indexOf("A") > -1 ? (r = r.replace(/A/g, "a"),
|
|
2852
|
+
return r.indexOf("ss") === -1 && t.split(":").length === 3 && (r = r + ":ss"), r.indexOf("A") > -1 ? (r = r.replace(/A/g, "a"), Ve(t.toLowerCase(), r, /* @__PURE__ */ new Date())) : Ve(t, r, /* @__PURE__ */ new Date());
|
|
2853
2853
|
}
|
|
2854
|
-
function
|
|
2855
|
-
return !t || isNaN(t.getTime()) ? "" : r.indexOf("A") > -1 ? (r = r.replace(/A/g, "a"),
|
|
2854
|
+
function je(t, r = "hh:mm:ss", e = "AM") {
|
|
2855
|
+
return !t || isNaN(t.getTime()) ? "" : r.indexOf("A") > -1 ? (r = r.replace(/A/g, "a"), Ye(t, r).toUpperCase()) : Ye(t, r);
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function bn(t) {
|
|
2858
2858
|
return t = String(t), t.length === 1 ? "0" + t : t;
|
|
2859
2859
|
}
|
|
2860
|
-
function
|
|
2860
|
+
function pe(t, r) {
|
|
2861
2861
|
let e = t || "hh:mm:ss";
|
|
2862
2862
|
return r ? (e = e ? e.replace(/H/g, "h") : "hh:mm:ss a", e.indexOf("a") === -1 && e.indexOf("A") === -1 && (e = e + " a")) : e = e ? e.replace(/h/g, "H") : "HH:mm:ss", e;
|
|
2863
2863
|
}
|
|
2864
|
-
class
|
|
2864
|
+
class un {
|
|
2865
2865
|
constructor() {
|
|
2866
2866
|
o(this, "hourStep", 1);
|
|
2867
2867
|
o(this, "minuteStep", 1);
|
|
@@ -2906,7 +2906,7 @@ class sn {
|
|
|
2906
2906
|
* Get viewHours which is selected in `time-picker-panel` and its range is [12, 1, 2, ..., 11]
|
|
2907
2907
|
*/
|
|
2908
2908
|
get viewHours() {
|
|
2909
|
-
return this.use12Hours &&
|
|
2909
|
+
return this.use12Hours && H(this.temporaryHours) ? this.calculateViewHour(this.temporaryHours) : this.temporaryHours;
|
|
2910
2910
|
}
|
|
2911
2911
|
get minutes() {
|
|
2912
2912
|
return this.temporaryMinutes;
|
|
@@ -2934,7 +2934,7 @@ class sn {
|
|
|
2934
2934
|
*/
|
|
2935
2935
|
get defaultViewHours() {
|
|
2936
2936
|
const r = this.defaultOpenValue.getHours();
|
|
2937
|
-
return this.use12Hours &&
|
|
2937
|
+
return this.use12Hours && H(r) ? this.calculateViewHour(r) : r;
|
|
2938
2938
|
}
|
|
2939
2939
|
/**
|
|
2940
2940
|
* @description
|
|
@@ -2963,7 +2963,7 @@ class sn {
|
|
|
2963
2963
|
return this.temporaryValue;
|
|
2964
2964
|
}
|
|
2965
2965
|
set value(r) {
|
|
2966
|
-
r !== this.temporaryValue && (this.temporaryValue = r,
|
|
2966
|
+
r !== this.temporaryValue && (this.temporaryValue = r, H(this.temporaryValue) && _e(this.temporaryValue) ? (this.temporaryHours = this.temporaryValue.getHours(), this.temporaryMinutes = this.temporaryValue.getMinutes(), this.temporarySeconds = this.temporaryValue.getSeconds(), this.use12Hours && H(this.temporaryHours) && (this.temporarySelected12Hours = this.temporaryHours >= 12 ? "PM" : "AM")) : this.clearTimeValue());
|
|
2967
2967
|
}
|
|
2968
2968
|
get selected12Hours() {
|
|
2969
2969
|
return this.temporarySelected12Hours;
|
|
@@ -2978,7 +2978,7 @@ class sn {
|
|
|
2978
2978
|
this.temporaryDefaultOpenValue !== r && (this.temporaryDefaultOpenValue = r, this.update());
|
|
2979
2979
|
}
|
|
2980
2980
|
get isEmpty() {
|
|
2981
|
-
return !(
|
|
2981
|
+
return !(H(this.temporaryHours) || H(this.temporaryMinutes) || H(this.temporarySeconds));
|
|
2982
2982
|
}
|
|
2983
2983
|
setFormat(r) {
|
|
2984
2984
|
this.format = r;
|
|
@@ -2996,7 +2996,7 @@ class sn {
|
|
|
2996
2996
|
return e ? this : (this.setDefaultValueIfNil(), this.seconds = r, this);
|
|
2997
2997
|
}
|
|
2998
2998
|
setValue(r, e) {
|
|
2999
|
-
return
|
|
2999
|
+
return H(e) && (this.use12Hours = e), this.value = r, this;
|
|
3000
3000
|
}
|
|
3001
3001
|
setValueByStep(r, e) {
|
|
3002
3002
|
let n = Math.floor(r / e);
|
|
@@ -3007,10 +3007,10 @@ class sn {
|
|
|
3007
3007
|
return this.defaultOpenValue = r, this;
|
|
3008
3008
|
}
|
|
3009
3009
|
setDefaultValueIfNil() {
|
|
3010
|
-
|
|
3010
|
+
H(this.temporaryValue) || (this.temporaryValue = new Date(this.defaultOpenValue));
|
|
3011
3011
|
}
|
|
3012
3012
|
update() {
|
|
3013
|
-
this.isEmpty ? this.temporaryValue = void 0 : (
|
|
3013
|
+
this.isEmpty ? this.temporaryValue = void 0 : (H(this.temporaryHours) ? this.temporaryValue.setHours(this.hours) : this.temporaryHours = this.defaultHours, H(this.temporaryMinutes) ? this.temporaryValue.setMinutes(this.minutes) : this.temporaryMinutes = this.defaultMinutes, H(this.temporarySeconds) ? this.temporaryValue.setSeconds(this.seconds) : this.temporarySeconds = this.defaultSeconds, this.use12Hours && (H(this.temporarySelected12Hours) || (this.temporarySelected12Hours = this.default12Hours), this.selected12Hours === "PM" && this.temporaryHours < 12 && (this.temporaryHours += 12, this.temporaryValue.setHours(this.temporaryHours)), this.selected12Hours === "AM" && this.temporaryHours >= 12 && (this.temporaryHours -= 12, this.temporaryValue.setHours(this.temporaryHours))), this.temporaryValue = new Date(this.temporaryValue), this.text = je(
|
|
3014
3014
|
this.temporaryValue,
|
|
3015
3015
|
this.format,
|
|
3016
3016
|
this.selected12Hours
|
|
@@ -3027,7 +3027,7 @@ class sn {
|
|
|
3027
3027
|
return e === "PM" && r > 12 ? r - 12 : e === "AM" && r === 0 ? 12 : r;
|
|
3028
3028
|
}
|
|
3029
3029
|
}
|
|
3030
|
-
function
|
|
3030
|
+
function cn(t, r, e, n, a, s) {
|
|
3031
3031
|
function c(f, y, i = 0, p, g) {
|
|
3032
3032
|
const D = l(y, p, g), _ = f.children[0].children[D] || f.children[0].children[0];
|
|
3033
3033
|
m(f, _.offsetTop, i);
|
|
@@ -3065,7 +3065,7 @@ function on(t, r, e, n, a, s) {
|
|
|
3065
3065
|
return;
|
|
3066
3066
|
}
|
|
3067
3067
|
const g = (y - f.scrollTop) / i * 10;
|
|
3068
|
-
|
|
3068
|
+
it(() => {
|
|
3069
3069
|
f.scrollTop += g, f.scrollTop !== y && m(f, y, i - 10);
|
|
3070
3070
|
});
|
|
3071
3071
|
}
|
|
@@ -3074,18 +3074,18 @@ function on(t, r, e, n, a, s) {
|
|
|
3074
3074
|
}
|
|
3075
3075
|
return { scrollToSelected: c };
|
|
3076
3076
|
}
|
|
3077
|
-
function
|
|
3077
|
+
function ln(t, r) {
|
|
3078
3078
|
function e(l) {
|
|
3079
|
-
return l.index === t.viewHours || !
|
|
3079
|
+
return l.index === t.viewHours || !H(t.viewHours) && l.index === t.defaultViewHours;
|
|
3080
3080
|
}
|
|
3081
3081
|
function n(l) {
|
|
3082
|
-
return l.index === t.minutes || !
|
|
3082
|
+
return l.index === t.minutes || !H(t.minutes) && l.index === t.defaultMinutes;
|
|
3083
3083
|
}
|
|
3084
3084
|
function a(l) {
|
|
3085
|
-
return l.index === t.seconds || !
|
|
3085
|
+
return l.index === t.seconds || !H(t.seconds) && l.index === t.defaultSeconds;
|
|
3086
3086
|
}
|
|
3087
3087
|
function s(l) {
|
|
3088
|
-
return l.value.toUpperCase() === t.selected12Hours || !
|
|
3088
|
+
return l.value.toUpperCase() === t.selected12Hours || !H(t.selected12Hours) && l.value.toUpperCase() === t.default12Hours;
|
|
3089
3089
|
}
|
|
3090
3090
|
function c(l, m) {
|
|
3091
3091
|
let w = "";
|
|
@@ -3095,32 +3095,32 @@ function un(t, r) {
|
|
|
3095
3095
|
}
|
|
3096
3096
|
return { getSelectedClass: c };
|
|
3097
3097
|
}
|
|
3098
|
-
const
|
|
3098
|
+
const be = /* @__PURE__ */ Ee({
|
|
3099
3099
|
name: "FTimePickerTimeView",
|
|
3100
|
-
props:
|
|
3100
|
+
props: lt,
|
|
3101
3101
|
emits: ["valueChange", "formatedValueChange"],
|
|
3102
3102
|
setup(t, r) {
|
|
3103
|
-
const e = t.inDatePicker ? "calendar-time-picker" : "time-picker-panel", n = O(0), a = O([]), s = O([]), c = O([]), l = O([]), m = O(), w = O(), f = O(), y = O(), i = new
|
|
3103
|
+
const e = t.inDatePicker ? "calendar-time-picker" : "time-picker-panel", n = O(0), a = O([]), s = O([]), c = O([]), l = O([]), m = O(), w = O(), f = O(), y = O(), i = new un(), {
|
|
3104
3104
|
scrollToSelected: p
|
|
3105
|
-
} =
|
|
3105
|
+
} = cn(t, r, a, s, c, l), {
|
|
3106
3106
|
getSelectedClass: g
|
|
3107
|
-
} =
|
|
3107
|
+
} = ln(i, e), D = O(t.hourStep), _ = O(t.minuteStep), re = O(t.secondStep), A = O(), h = O(""), b = O(), W = O(t.hideDisabledElements), I = O(0);
|
|
3108
3108
|
C(() => t.defaultOpenValue, (u) => {
|
|
3109
|
-
|
|
3109
|
+
H(u) && (A.value = u);
|
|
3110
3110
|
}), C(A, (u) => {
|
|
3111
|
-
|
|
3111
|
+
H(u) && i.setDefaultOpenValue(u);
|
|
3112
3112
|
}), A.value = t.defaultOpenValue, C(() => i.changedValue.value, (u) => {
|
|
3113
3113
|
r.emit("valueChange", u);
|
|
3114
3114
|
}), C(() => t.modelValue, (u) => {
|
|
3115
3115
|
X(u);
|
|
3116
3116
|
}), C(() => t.format, (u) => {
|
|
3117
|
-
|
|
3117
|
+
H(u) ? h.value = u : h.value = "HH:mm:ss";
|
|
3118
3118
|
}), C(h, (u) => {
|
|
3119
|
-
|
|
3119
|
+
H(u) && (i.setFormat(h.value), I.value = 0, ae.value && I.value++, Z.value && I.value++, J.value && I.value++, b.value && (I.value++, He()), n.value = I.value * 66);
|
|
3120
3120
|
}), C(() => t.use12Hours, (u) => {
|
|
3121
3121
|
b.value = u;
|
|
3122
3122
|
}), C(b, (u) => {
|
|
3123
|
-
h.value =
|
|
3123
|
+
h.value = pe(h.value, u), i.setUse12Hours(u);
|
|
3124
3124
|
}), C(() => t.disabledHours, () => {
|
|
3125
3125
|
le();
|
|
3126
3126
|
}), C(() => t.disabledMinutes, () => {
|
|
@@ -3129,9 +3129,9 @@ const pe = /* @__PURE__ */ Ve({
|
|
|
3129
3129
|
K();
|
|
3130
3130
|
});
|
|
3131
3131
|
function X(u) {
|
|
3132
|
-
if (
|
|
3132
|
+
if (H(u) && u) {
|
|
3133
3133
|
i.text = u;
|
|
3134
|
-
const d =
|
|
3134
|
+
const d = Ge(i.text, h.value);
|
|
3135
3135
|
d ? i.setValue(d, b.value) : (i.setValue(/* @__PURE__ */ new Date(), b.value), i.update()), de();
|
|
3136
3136
|
} else
|
|
3137
3137
|
i.setUse12Hours(b.value);
|
|
@@ -3143,12 +3143,12 @@ const pe = /* @__PURE__ */ Ve({
|
|
|
3143
3143
|
function G(u = "hour") {
|
|
3144
3144
|
return h.value ? h.value.indexOf(u[0].toUpperCase()) > -1 || h.value.indexOf(u[0].toLowerCase()) > -1 : !1;
|
|
3145
3145
|
}
|
|
3146
|
-
const
|
|
3146
|
+
const $e = $(() => ({
|
|
3147
3147
|
"time-picker-panel": !0,
|
|
3148
3148
|
"time-picker-panel-column-3": !0,
|
|
3149
3149
|
"time-picker-panel-placement-bottomLeft": !0,
|
|
3150
3150
|
"f-area-show": !0
|
|
3151
|
-
})),
|
|
3151
|
+
})), Me = $(() => {
|
|
3152
3152
|
const u = {
|
|
3153
3153
|
width: `${n.value}px`
|
|
3154
3154
|
};
|
|
@@ -3157,9 +3157,9 @@ const pe = /* @__PURE__ */ Ve({
|
|
|
3157
3157
|
function ce(u, d = 1, q = 0) {
|
|
3158
3158
|
return d = Math.ceil(d), new Array(Math.ceil(u / d)).fill(0).map((E, B) => (B + q) * d);
|
|
3159
3159
|
}
|
|
3160
|
-
function
|
|
3161
|
-
if (ae.value && m.value && p(m.value,
|
|
3162
|
-
const d = (
|
|
3160
|
+
function Ue() {
|
|
3161
|
+
if (ae.value && m.value && p(m.value, H(i.viewHours) ? i.viewHours : i.defaultViewHours, 0, "hour", i), Z.value && w.value && p(w.value, H(i.minutes) ? i.minutes : i.defaultMinutes, 0, "minute", i), J.value && f.value && p(f.value, H(i.seconds) ? i.seconds : i.defaultSeconds, 0, "second", i), b.value && y.value) {
|
|
3162
|
+
const d = (H(i.selected12Hours) ? i.selected12Hours : i.default12Hours) === "AM" ? 0 : 1;
|
|
3163
3163
|
p(y.value, d, 0, "12-hour", i);
|
|
3164
3164
|
}
|
|
3165
3165
|
}
|
|
@@ -3198,7 +3198,7 @@ const pe = /* @__PURE__ */ Ve({
|
|
|
3198
3198
|
value: u ? "PM" : "pm"
|
|
3199
3199
|
}], l.value = l.value.filter(() => !W.value);
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function ze(u, d) {
|
|
3202
3202
|
if (u.stopPropagation(), i.setHours(d.index, d.disabled), !d.disabled) {
|
|
3203
3203
|
if (p(m.value, d.index, 120, "hour", i), t.disabledMinutes !== null) {
|
|
3204
3204
|
se();
|
|
@@ -3214,10 +3214,10 @@ const pe = /* @__PURE__ */ Ve({
|
|
|
3214
3214
|
(t.disabledSeconds !== null || t.disabledMinutes !== null) && K();
|
|
3215
3215
|
}
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3217
|
+
function Ze(u, d) {
|
|
3218
3218
|
u.stopPropagation(), i.selected12Hours = d.value, le(), se(), K(), p(y.value, d.index, 120, "12-hour", i);
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function Je(u, d) {
|
|
3221
3221
|
if (u.stopPropagation(), i.setMinutes(d.index, d.disabled), !d.disabled && (p(w.value, d.index, 120, "minute", i), t.disabledSeconds !== null)) {
|
|
3222
3222
|
K();
|
|
3223
3223
|
const q = c.value.filter((E) => !E.disabled);
|
|
@@ -3230,23 +3230,23 @@ const pe = /* @__PURE__ */ Ve({
|
|
|
3230
3230
|
}
|
|
3231
3231
|
}
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3233
|
+
function Ke(u, d) {
|
|
3234
3234
|
u.stopPropagation(), i.setSeconds(d.index, d.disabled), !d.disabled && p(f.value, d.index, 120, "second", i);
|
|
3235
3235
|
}
|
|
3236
3236
|
function de() {
|
|
3237
3237
|
le(), se(), K(), He();
|
|
3238
3238
|
}
|
|
3239
|
-
|
|
3240
|
-
h.value =
|
|
3241
|
-
|
|
3239
|
+
nt(() => {
|
|
3240
|
+
h.value = pe(t.format, t.use12Hours), b.value = t.use12Hours, X(t.modelValue), de(), setTimeout(() => {
|
|
3241
|
+
Ue();
|
|
3242
3242
|
}, 10);
|
|
3243
3243
|
}), r.expose({
|
|
3244
3244
|
refresh: de
|
|
3245
3245
|
});
|
|
3246
|
-
function
|
|
3246
|
+
function et() {
|
|
3247
3247
|
return t.showHeader ? x("div", {
|
|
3248
3248
|
class: e + "-combobox time-picker-panel-header",
|
|
3249
|
-
style:
|
|
3249
|
+
style: Me.value
|
|
3250
3250
|
}, [ae.value && x("div", {
|
|
3251
3251
|
class: e + "-select",
|
|
3252
3252
|
style: "height: 32px"
|
|
@@ -3281,9 +3281,11 @@ const pe = /* @__PURE__ */ Ve({
|
|
|
3281
3281
|
class: "time-header"
|
|
3282
3282
|
}, null)])])]) : null;
|
|
3283
3283
|
}
|
|
3284
|
-
const ie = e + "-select " + (t.inDatePicker ? "h-100" : "")
|
|
3284
|
+
const ie = e + "-select " + (t.inDatePicker ? "h-100" : ""), fe = ot() ? {
|
|
3285
|
+
"overflow-y": "auto"
|
|
3286
|
+
} : {};
|
|
3285
3287
|
return () => x("div", {
|
|
3286
|
-
class:
|
|
3288
|
+
class: $e.value,
|
|
3287
3289
|
style: "position: relative"
|
|
3288
3290
|
}, [x("div", {
|
|
3289
3291
|
class: {
|
|
@@ -3292,38 +3294,41 @@ const pe = /* @__PURE__ */ Ve({
|
|
|
3292
3294
|
}
|
|
3293
3295
|
}, [x("div", {
|
|
3294
3296
|
class: e + "-inner " + (t.inDatePicker ? "h-100" : "")
|
|
3295
|
-
}, [
|
|
3297
|
+
}, [et(), x("div", {
|
|
3296
3298
|
class: e + "-combobox d-flex h-100",
|
|
3297
|
-
style:
|
|
3299
|
+
style: Me.value
|
|
3298
3300
|
}, [ae.value && x("div", {
|
|
3299
3301
|
class: ie,
|
|
3300
|
-
ref: m
|
|
3302
|
+
ref: m,
|
|
3303
|
+
style: fe
|
|
3301
3304
|
}, [x("ul", null, [a.value.map((u) => x("li", {
|
|
3302
3305
|
class: g(u, "hour"),
|
|
3303
|
-
onClick: (d) =>
|
|
3306
|
+
onClick: (d) => ze(d, u)
|
|
3304
3307
|
}, [`${u.index}`]))])]), Z.value && x("div", {
|
|
3305
3308
|
class: ie,
|
|
3306
|
-
ref: w
|
|
3309
|
+
ref: w,
|
|
3310
|
+
style: fe
|
|
3307
3311
|
}, [x("ul", null, [s.value.map((u) => x("li", {
|
|
3308
3312
|
class: g(u, "minute"),
|
|
3309
|
-
onClick: (d) =>
|
|
3313
|
+
onClick: (d) => Je(d, u)
|
|
3310
3314
|
}, [`${u.index}`]))])]), J.value && x("div", {
|
|
3311
3315
|
class: ie,
|
|
3312
|
-
ref: f
|
|
3316
|
+
ref: f,
|
|
3317
|
+
style: fe
|
|
3313
3318
|
}, [x("ul", null, [c.value.map((u) => x("li", {
|
|
3314
3319
|
class: g(u, "second"),
|
|
3315
|
-
onClick: (d) =>
|
|
3320
|
+
onClick: (d) => Ke(d, u)
|
|
3316
3321
|
}, [`${u.index}`]))])]), b.value && x("div", {
|
|
3317
3322
|
class: ie,
|
|
3318
3323
|
ref: y
|
|
3319
3324
|
}, [x("ul", null, [l.value.map((u) => x("li", {
|
|
3320
3325
|
class: g(u, "12-hour"),
|
|
3321
|
-
onClick: (d) =>
|
|
3326
|
+
onClick: (d) => Ze(d, u)
|
|
3322
3327
|
}, [`${u.value}`]))])])])])])]);
|
|
3323
3328
|
}
|
|
3324
3329
|
});
|
|
3325
|
-
function
|
|
3326
|
-
const { getLocaleValue: r } =
|
|
3330
|
+
function dn(t) {
|
|
3331
|
+
const { getLocaleValue: r } = ut;
|
|
3327
3332
|
function e(s, c, l) {
|
|
3328
3333
|
return c === l ? r(s) : c || "";
|
|
3329
3334
|
}
|
|
@@ -3334,19 +3339,19 @@ function cn(t) {
|
|
|
3334
3339
|
};
|
|
3335
3340
|
return { placeholder: n, headerLabels: a };
|
|
3336
3341
|
}
|
|
3337
|
-
const
|
|
3342
|
+
const me = /* @__PURE__ */ Ee({
|
|
3338
3343
|
name: "FTimePicker",
|
|
3339
|
-
props:
|
|
3344
|
+
props: ct,
|
|
3340
3345
|
emits: ["update:modelValue", "valueChange", "clear"],
|
|
3341
3346
|
setup(t, r) {
|
|
3342
|
-
const e = '<span class="f-icon f-icon-timepicker"></span>', n = O(t.modelValue), a = O(null), s = O(), c =
|
|
3347
|
+
const e = '<span class="f-icon f-icon-timepicker"></span>', n = O(t.modelValue), a = O(null), s = O(), c = dn(t), l = $(() => pe(t.format, t.use12Hours));
|
|
3343
3348
|
function m() {
|
|
3344
3349
|
n.value = "", r.emit("clear");
|
|
3345
3350
|
}
|
|
3346
3351
|
function w() {
|
|
3347
3352
|
if (n.value) {
|
|
3348
|
-
const i =
|
|
3349
|
-
n.value =
|
|
3353
|
+
const i = Ge(n.value, l.value);
|
|
3354
|
+
n.value = je(i, l.value);
|
|
3350
3355
|
}
|
|
3351
3356
|
}
|
|
3352
3357
|
function f() {
|
|
@@ -3359,7 +3364,7 @@ const he = /* @__PURE__ */ Ve({
|
|
|
3359
3364
|
n.value = i;
|
|
3360
3365
|
}), C(n, (i) => {
|
|
3361
3366
|
r.emit("valueChange", i), r.emit("update:modelValue", i);
|
|
3362
|
-
}), () => x(
|
|
3367
|
+
}), () => x(st, {
|
|
3363
3368
|
ref: a,
|
|
3364
3369
|
modelValue: n.value,
|
|
3365
3370
|
"onUpdate:modelValue": (i) => n.value = i,
|
|
@@ -3376,7 +3381,7 @@ const he = /* @__PURE__ */ Ve({
|
|
|
3376
3381
|
onBlur: f,
|
|
3377
3382
|
popupMinWidth: 132
|
|
3378
3383
|
}, {
|
|
3379
|
-
default: () => [x(
|
|
3384
|
+
default: () => [x(be, at({
|
|
3380
3385
|
ref: s
|
|
3381
3386
|
}, t, {
|
|
3382
3387
|
headerLabels: c.headerLabels,
|
|
@@ -3385,19 +3390,19 @@ const he = /* @__PURE__ */ Ve({
|
|
|
3385
3390
|
});
|
|
3386
3391
|
}
|
|
3387
3392
|
});
|
|
3388
|
-
|
|
3389
|
-
t.component(
|
|
3393
|
+
me.install = (t) => {
|
|
3394
|
+
t.component(me.name, me).component(be.name, be);
|
|
3390
3395
|
};
|
|
3391
3396
|
export {
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3397
|
+
me as FTimePicker,
|
|
3398
|
+
be as FTimePickerTimeView,
|
|
3399
|
+
bn as addZero,
|
|
3400
|
+
Ge as convertToDate,
|
|
3401
|
+
je as convertToString,
|
|
3402
|
+
me as default,
|
|
3403
|
+
pe as getRealFormat,
|
|
3404
|
+
H as isNotNull,
|
|
3405
|
+
ct as timePickerProps,
|
|
3406
|
+
lt as timeProps,
|
|
3407
|
+
pn as toBoolean
|
|
3403
3408
|
};
|