@farris/ui-vue 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/farris.all.esm.js +36212 -34520
- package/farris.all.umd.cjs +26 -0
- package/package.json +2 -3
- package/style.css +1 -1
- package/accordion/index.esm.js +0 -530
- package/accordion/index.umd.js +0 -1
- package/accordion/package.json +0 -8
- package/avatar/index.esm.js +0 -478
- package/avatar/index.umd.js +0 -1
- package/avatar/package.json +0 -8
- package/border-editor/index.esm.js +0 -5223
- package/border-editor/index.umd.js +0 -3
- package/border-editor/package.json +0 -8
- package/border-editor/style.css +0 -1
- package/button/index.esm.js +0 -825
- package/button/index.umd.js +0 -1
- package/button/package.json +0 -8
- package/button-edit/index.esm.js +0 -1807
- package/button-edit/index.umd.js +0 -1
- package/button-edit/package.json +0 -8
- package/calculator/index.esm.js +0 -315
- package/calculator/index.umd.js +0 -1
- package/calculator/package.json +0 -8
- package/calendar/index.esm.js +0 -1110
- package/calendar/index.umd.js +0 -1
- package/calendar/package.json +0 -8
- package/capsule/index.esm.js +0 -518
- package/capsule/index.umd.js +0 -1
- package/capsule/package.json +0 -8
- package/checkbox/index.esm.js +0 -489
- package/checkbox/index.umd.js +0 -1
- package/checkbox/package.json +0 -8
- package/color-picker/index.esm.js +0 -2081
- package/color-picker/index.umd.js +0 -3
- package/color-picker/package.json +0 -8
- package/combo-list/index.esm.js +0 -2931
- package/combo-list/index.umd.js +0 -1
- package/combo-list/package.json +0 -8
- package/combo-tree/index.esm.js +0 -20799
- package/combo-tree/index.umd.js +0 -16
- package/combo-tree/package.json +0 -8
- package/combo-tree/style.css +0 -1
- package/common/index.esm.js +0 -1656
- package/common/index.umd.js +0 -1
- package/common/package.json +0 -8
- package/component/index.esm.js +0 -1022
- package/component/index.umd.js +0 -1
- package/component/package.json +0 -8
- package/condition/index.esm.js +0 -43141
- package/condition/index.umd.js +0 -19
- package/condition/package.json +0 -8
- package/condition/style.css +0 -1
- package/content-container/index.esm.js +0 -1139
- package/content-container/index.umd.js +0 -1
- package/content-container/package.json +0 -8
- package/data-grid/index.esm.js +0 -43296
- package/data-grid/index.umd.js +0 -19
- package/data-grid/package.json +0 -8
- package/data-grid/style.css +0 -1
- package/data-view/index.esm.js +0 -43195
- package/data-view/index.umd.js +0 -19
- package/data-view/package.json +0 -8
- package/data-view/style.css +0 -1
- package/date-picker/index.esm.js +0 -4865
- package/date-picker/index.umd.js +0 -1
- package/date-picker/package.json +0 -8
- package/designer/src/composition/dom-entity.d.ts +0 -545
- package/discussion-editor/index.esm.js +0 -3788
- package/discussion-editor/index.umd.js +0 -3
- package/discussion-editor/package.json +0 -8
- package/discussion-editor/style.css +0 -1
- package/discussion-list/index.esm.js +0 -111
- package/discussion-list/index.umd.js +0 -1
- package/discussion-list/package.json +0 -8
- package/discussion-list/style.css +0 -1
- package/dropdown/index.esm.js +0 -645
- package/dropdown/index.umd.js +0 -1
- package/dropdown/package.json +0 -8
- package/dynamic-form/index.esm.js +0 -43136
- package/dynamic-form/index.umd.js +0 -19
- package/dynamic-form/package.json +0 -8
- package/dynamic-form/style.css +0 -1
- package/dynamic-resolver/index.esm.js +0 -103
- package/dynamic-resolver/index.umd.js +0 -1
- package/dynamic-resolver/package.json +0 -8
- package/dynamic-view/index.esm.js +0 -43176
- package/dynamic-view/index.umd.js +0 -19
- package/dynamic-view/package.json +0 -8
- package/dynamic-view/style.css +0 -1
- package/enum-editor/index.esm.js +0 -2612
- package/enum-editor/index.umd.js +0 -1
- package/enum-editor/package.json +0 -8
- package/events-editor/index.esm.js +0 -1600
- package/events-editor/index.umd.js +0 -1
- package/events-editor/package.json +0 -8
- package/events-editor/style.css +0 -1
- package/farris.all.umd.js +0 -26
- package/field-selector/index.esm.js +0 -44391
- package/field-selector/index.umd.js +0 -19
- package/field-selector/package.json +0 -8
- package/field-selector/style.css +0 -1
- package/filter-bar/index.esm.js +0 -926
- package/filter-bar/index.umd.js +0 -1
- package/filter-bar/package.json +0 -8
- package/image-cropper/index.esm.js +0 -1121
- package/image-cropper/index.umd.js +0 -1
- package/image-cropper/package.json +0 -8
- package/input-group/index.esm.js +0 -831
- package/input-group/index.umd.js +0 -1
- package/input-group/package.json +0 -8
- package/layout/index.esm.js +0 -834
- package/layout/index.umd.js +0 -1
- package/layout/package.json +0 -8
- package/list-nav/index.esm.js +0 -1145
- package/list-nav/index.umd.js +0 -1
- package/list-nav/package.json +0 -8
- package/list-view/index.esm.js +0 -1191
- package/list-view/index.umd.js +0 -1
- package/list-view/package.json +0 -8
- package/loading/index.esm.js +0 -142
- package/loading/index.umd.js +0 -8
- package/loading/package.json +0 -8
- package/locale/index.esm.js +0 -1868
- package/locale/index.umd.js +0 -1
- package/locale/package.json +0 -8
- package/message-box/index.esm.js +0 -578
- package/message-box/index.umd.js +0 -1
- package/message-box/package.json +0 -8
- package/modal/index.esm.js +0 -218
- package/modal/index.umd.js +0 -1
- package/modal/package.json +0 -8
- package/nav/index.esm.js +0 -1728
- package/nav/index.umd.js +0 -3
- package/nav/package.json +0 -8
- package/notify/index.esm.js +0 -258
- package/notify/index.umd.js +0 -1
- package/notify/package.json +0 -8
- package/order/index.esm.js +0 -4151
- package/order/index.umd.js +0 -1
- package/order/package.json +0 -8
- package/page-footer/index.esm.js +0 -1356
- package/page-footer/index.umd.js +0 -1
- package/page-footer/package.json +0 -8
- package/page-header/index.esm.js +0 -2141
- package/page-header/index.umd.js +0 -1
- package/page-header/package.json +0 -8
- package/pagination/index.esm.js +0 -1565
- package/pagination/index.umd.js +0 -1
- package/pagination/package.json +0 -8
- package/popover/index.esm.js +0 -224
- package/popover/index.umd.js +0 -1
- package/popover/package.json +0 -8
- package/progress/index.esm.js +0 -668
- package/progress/index.umd.js +0 -3
- package/progress/package.json +0 -8
- package/property-panel/index.esm.js +0 -43139
- package/property-panel/index.umd.js +0 -19
- package/property-panel/package.json +0 -8
- package/property-panel/style.css +0 -1
- package/radio-group/index.esm.js +0 -448
- package/radio-group/index.umd.js +0 -1
- package/radio-group/package.json +0 -8
- package/rate/index.esm.js +0 -612
- package/rate/index.umd.js +0 -1
- package/rate/package.json +0 -8
- package/response-layout/index.esm.js +0 -483
- package/response-layout/index.umd.js +0 -1
- package/response-layout/package.json +0 -8
- package/response-layout-editor/index.esm.js +0 -3780
- package/response-layout-editor/index.umd.js +0 -1
- package/response-layout-editor/package.json +0 -8
- package/response-layout-editor/style.css +0 -1
- package/response-toolbar/index.esm.js +0 -1526
- package/response-toolbar/index.umd.js +0 -1
- package/response-toolbar/package.json +0 -8
- package/search-box/index.esm.js +0 -456
- package/search-box/index.umd.js +0 -1
- package/search-box/package.json +0 -8
- package/section/index.esm.js +0 -2201
- package/section/index.umd.js +0 -1
- package/section/package.json +0 -8
- package/smoke-detector/index.esm.js +0 -383
- package/smoke-detector/index.umd.js +0 -1
- package/smoke-detector/package.json +0 -8
- package/smoke-detector/style.css +0 -1
- package/spacing-editor/index.esm.js +0 -3484
- package/spacing-editor/index.umd.js +0 -1
- package/spacing-editor/package.json +0 -8
- package/spacing-editor/style.css +0 -1
- package/splitter/index.esm.js +0 -842
- package/splitter/index.umd.js +0 -1
- package/splitter/package.json +0 -8
- package/splitter/style.css +0 -1
- package/step/index.esm.js +0 -553
- package/step/index.umd.js +0 -1
- package/step/package.json +0 -8
- package/switch/index.esm.js +0 -447
- package/switch/index.umd.js +0 -1
- package/switch/package.json +0 -8
- package/tabs/index.esm.js +0 -4688
- package/tabs/index.umd.js +0 -1
- package/tabs/package.json +0 -8
- package/tags/index.esm.js +0 -810
- package/tags/index.umd.js +0 -1
- package/tags/package.json +0 -8
- package/text/index.esm.js +0 -366
- package/text/index.umd.js +0 -1
- package/text/package.json +0 -8
- package/time-picker/index.esm.js +0 -2147
- package/time-picker/index.umd.js +0 -1
- package/time-picker/package.json +0 -8
- package/tooltip/index.esm.js +0 -260
- package/tooltip/index.umd.js +0 -1
- package/tooltip/package.json +0 -8
- package/transfer/index.esm.js +0 -1180
- package/transfer/index.umd.js +0 -1
- package/transfer/package.json +0 -8
- package/tree-grid/index.esm.js +0 -44354
- package/tree-grid/index.umd.js +0 -19
- package/tree-grid/package.json +0 -8
- package/tree-grid/style.css +0 -1
- package/tree-view/index.esm.js +0 -19597
- package/tree-view/index.umd.js +0 -16
- package/tree-view/package.json +0 -8
- package/tree-view/style.css +0 -1
- package/types/accordion/index.d.ts +0 -27
- package/types/accordion/src/accordion.component.d.ts +0 -6
- package/types/accordion/src/accordion.props.d.ts +0 -19
- package/types/accordion/src/components/accordion-item.component.d.ts +0 -6
- package/types/accordion/src/components/accordion-item.props.d.ts +0 -19
- package/types/accordion/src/designer/accordion-item.design.component.d.ts +0 -6
- package/types/accordion/src/designer/accordion.design.component.d.ts +0 -6
- package/types/accordion/src/schema/schema-mapper.d.ts +0 -2
- package/types/accordion/src/schema/schema-resolver.d.ts +0 -2
- package/types/avatar/index.d.ts +0 -25
- package/types/avatar/src/avatar.component.d.ts +0 -6
- package/types/avatar/src/avatar.props.d.ts +0 -19
- package/types/avatar/src/composition/types.d.ts +0 -31
- package/types/avatar/src/composition/use-image.d.ts +0 -19
- package/types/avatar/src/designer/avatar.design.component.d.ts +0 -6
- package/types/avatar/src/schema/schema-mapper.d.ts +0 -2
- package/types/avatar/src/schema/schema-resolver.d.ts +0 -2
- package/types/border-editor/index.d.ts +0 -23
- package/types/border-editor/src/border-editor.component.d.ts +0 -6
- package/types/border-editor/src/border-editor.props.d.ts +0 -3
- package/types/border-editor/src/components/border-editor-basic.component.d.ts +0 -5
- package/types/border-editor/src/components/border-editor-radius.component.d.ts +0 -5
- package/types/button/index.d.ts +0 -27
- package/types/button/src/button-group.component.d.ts +0 -6
- package/types/button/src/button-group.props.d.ts +0 -20
- package/types/button/src/button.component.d.ts +0 -42
- package/types/button/src/button.props.d.ts +0 -53
- package/types/button/src/components/button-group-dropdown-menu.component.d.ts +0 -6
- package/types/button/src/components/button-group-dropdown.component.d.ts +0 -5
- package/types/button/src/composition/types.d.ts +0 -35
- package/types/button/src/composition/use-button.d.ts +0 -19
- package/types/button/src/composition/use-icon.d.ts +0 -3
- package/types/button/src/composition/use-popup.d.ts +0 -19
- package/types/button/src/designer/button-group.design.component.d.ts +0 -6
- package/types/button/src/schema/schema-mapper.d.ts +0 -2
- package/types/button/src/schema/schema-resolver.d.ts +0 -2
- package/types/button-edit/index.d.ts +0 -25
- package/types/button-edit/src/button-edit.component.d.ts +0 -6
- package/types/button-edit/src/button-edit.props.d.ts +0 -21
- package/types/button-edit/src/components/button-group.component.d.ts +0 -3
- package/types/button-edit/src/components/popup-container.component.d.ts +0 -4
- package/types/button-edit/src/components/text-edit.component.d.ts +0 -4
- package/types/button-edit/src/composition/types.d.ts +0 -128
- package/types/button-edit/src/composition/use-button.d.ts +0 -19
- package/types/button-edit/src/composition/use-clear.d.ts +0 -19
- package/types/button-edit/src/composition/use-popup.d.ts +0 -4
- package/types/button-edit/src/composition/use-text-box.d.ts +0 -19
- package/types/button-edit/src/designer/button-edit.design.component.d.ts +0 -6
- package/types/button-edit/src/schema/schema-mapper.d.ts +0 -2
- package/types/button-edit/src/schema/schema-resolver.d.ts +0 -2
- package/types/calculator/index.d.ts +0 -23
- package/types/calculator/src/calculator.component.d.ts +0 -8
- package/types/calculator/src/calculator.props.d.ts +0 -23
- package/types/calculator/src/composition/use-calculator.d.ts +0 -26
- package/types/calendar/index.d.ts +0 -23
- package/types/calendar/src/calendar.props.d.ts +0 -4
- package/types/calendar/src/components/day/day-view.props.d.ts +0 -34
- package/types/calendar/src/components/header/header.props.d.ts +0 -24
- package/types/calendar/src/components/month/month-view.props.d.ts +0 -69
- package/types/calendar/src/components/week/week-view.component.d.ts +0 -106
- package/types/calendar/src/components/week/week-view.props.d.ts +0 -51
- package/types/calendar/src/composition/types.d.ts +0 -57
- package/types/calendar/src/composition/use-calendar.d.ts +0 -2
- package/types/calendar/src/composition/use-compare.d.ts +0 -2
- package/types/calendar/src/composition/use-date.d.ts +0 -2
- package/types/calendar/src/composition/use-event.d.ts +0 -30
- package/types/calendar/src/composition/use-month.d.ts +0 -2
- package/types/calendar/src/schema/schema-mapper.d.ts +0 -2
- package/types/calendar/src/schema/schema-resolver.d.ts +0 -2
- package/types/calendar/src/types/calendar.d.ts +0 -13
- package/types/calendar/src/types/common.d.ts +0 -32
- package/types/calendar/src/types/month-view.d.ts +0 -23
- package/types/calendar/src/types/month.d.ts +0 -20
- package/types/calendar/src/types/schedule.d.ts +0 -35
- package/types/capsule/index.d.ts +0 -10
- package/types/capsule/src/capsule.props.d.ts +0 -39
- package/types/capsule/src/schema/schema-mapper.d.ts +0 -2
- package/types/capsule/src/schema/schema-resolver.d.ts +0 -2
- package/types/checkbox/index.d.ts +0 -25
- package/types/checkbox/src/checkbox-group.component.d.ts +0 -6
- package/types/checkbox/src/checkbox-group.props.d.ts +0 -19
- package/types/checkbox/src/checkbox.props.d.ts +0 -44
- package/types/checkbox/src/composition/types.d.ts +0 -46
- package/types/checkbox/src/composition/use-checkbox-group.d.ts +0 -19
- package/types/checkbox/src/designer/checkbox-group.design.component.d.ts +0 -6
- package/types/checkbox/src/schema/schema-mapper.d.ts +0 -2
- package/types/checkbox/src/schema/schema-resolver.d.ts +0 -2
- package/types/color-picker/index.d.ts +0 -24
- package/types/color-picker/src/color-picker.component.d.ts +0 -6
- package/types/color-picker/src/color-picker.props.d.ts +0 -22
- package/types/color-picker/src/composition/class/base-color.class.d.ts +0 -3
- package/types/color-picker/src/composition/class/cmyk.class.d.ts +0 -21
- package/types/color-picker/src/composition/class/colors-table.class.d.ts +0 -154
- package/types/color-picker/src/composition/class/control.class.d.ts +0 -47
- package/types/color-picker/src/composition/class/helper.functions.d.ts +0 -4
- package/types/color-picker/src/composition/class/hsla.class.d.ts +0 -20
- package/types/color-picker/src/composition/class/hsva.class.d.ts +0 -21
- package/types/color-picker/src/composition/class/rgba.class.d.ts +0 -21
- package/types/color-picker/src/composition/component/alpha.d.ts +0 -34
- package/types/color-picker/src/composition/component/hue.d.ts +0 -40
- package/types/color-picker/src/composition/component/preset.d.ts +0 -43
- package/types/color-picker/src/composition/component/props/alpha.props.d.ts +0 -16
- package/types/color-picker/src/composition/component/props/hue.props.d.ts +0 -19
- package/types/color-picker/src/composition/component/props/preset.props.d.ts +0 -20
- package/types/color-picker/src/composition/component/props/sv-panel.props.d.ts +0 -20
- package/types/color-picker/src/composition/component/sv-panel.d.ts +0 -43
- package/types/color-picker/src/designer/color-picker.design.component.d.ts +0 -6
- package/types/color-picker/src/schema/schema-mapper.d.ts +0 -2
- package/types/color-picker/src/schema/schema-resolver.d.ts +0 -2
- package/types/combo-list/index.d.ts +0 -25
- package/types/combo-list/src/combo-list.props.d.ts +0 -59
- package/types/combo-list/src/components/list-container.props.d.ts +0 -65
- package/types/combo-list/src/composition/types.d.ts +0 -11
- package/types/combo-list/src/composition/use-data-source.d.ts +0 -3
- package/types/combo-list/src/designer/combo-list.design.component.d.ts +0 -6
- package/types/combo-list/src/schema/schema-mapper.d.ts +0 -2
- package/types/combo-list/src/schema/schema-resolver.d.ts +0 -2
- package/types/combo-tree/index.d.ts +0 -23
- package/types/combo-tree/src/combo-tree.props.d.ts +0 -58
- package/types/combo-tree/src/components/tree-container.props.d.ts +0 -60
- package/types/combo-tree/src/composition/types.d.ts +0 -11
- package/types/combo-tree/src/composition/use-data-source.d.ts +0 -3
- package/types/common/date/date-converter.d.ts +0 -9
- package/types/common/index.d.ts +0 -5
- package/types/common/text-box/composition/use-clear.d.ts +0 -3
- package/types/common/text-box/composition/use-text-box.d.ts +0 -18
- package/types/common/types.d.ts +0 -50
- package/types/component/index.d.ts +0 -26
- package/types/component/src/component.props.d.ts +0 -4
- package/types/component/src/designer/use-designer-rules.d.ts +0 -3
- package/types/component/src/schema/schema-mapper.d.ts +0 -2
- package/types/component/src/schema/schema-resolver.d.ts +0 -2
- package/types/condition/index.d.ts +0 -28
- package/types/condition/src/composition/condition-value/checkbox-value.d.ts +0 -14
- package/types/condition/src/composition/condition-value/combo-lookup-value.d.ts +0 -20
- package/types/condition/src/composition/condition-value/date-picker-value.d.ts +0 -26
- package/types/condition/src/composition/condition-value/date-range-value.d.ts +0 -19
- package/types/condition/src/composition/condition-value/datetime-picker-value.d.ts +0 -14
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +0 -19
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +0 -22
- package/types/condition/src/composition/condition-value/lookup-value.d.ts +0 -22
- package/types/condition/src/composition/condition-value/month-picker-value.d.ts +0 -16
- package/types/condition/src/composition/condition-value/month-range-value.d.ts +0 -19
- package/types/condition/src/composition/condition-value/number-range-value.d.ts +0 -22
- package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +0 -14
- package/types/condition/src/composition/condition-value/radio-group-value.d.ts +0 -14
- package/types/condition/src/composition/condition-value/text-value.d.ts +0 -14
- package/types/condition/src/composition/condition-value/types.d.ts +0 -10
- package/types/condition/src/composition/types.d.ts +0 -45
- package/types/condition/src/composition/use-compare.d.ts +0 -40
- package/types/condition/src/composition/use-condition-value.d.ts +0 -2
- package/types/condition/src/composition/use-field-config.d.ts +0 -4
- package/types/condition/src/composition/use-selection.d.ts +0 -4
- package/types/condition/src/composition/use-size.d.ts +0 -4
- package/types/condition/src/condition-fields.component.d.ts +0 -96
- package/types/condition/src/condition-list.component.d.ts +0 -96
- package/types/condition/src/condition.props.d.ts +0 -65
- package/types/condition/src/types.d.ts +0 -153
- package/types/content-container/index.d.ts +0 -26
- package/types/content-container/src/content-container.props.d.ts +0 -4
- package/types/content-container/src/designer/use-designer-rules.d.ts +0 -3
- package/types/content-container/src/schema/schema-mapper.d.ts +0 -2
- package/types/content-container/src/schema/schema-resolver.d.ts +0 -2
- package/types/data-grid/index.d.ts +0 -26
- package/types/data-grid/src/composition/types.d.ts +0 -301
- package/types/data-grid/src/composition/use-column.d.ts +0 -20
- package/types/data-grid/src/composition/use-data-view.d.ts +0 -29
- package/types/data-grid/src/data-grid.props.d.ts +0 -517
- package/types/data-grid/src/designer/use-designer-rules.d.ts +0 -3
- package/types/data-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/data-grid/src/schema/schema-mapper.d.ts +0 -2
- package/types/data-grid/src/schema/schema-resolver.d.ts +0 -2
- package/types/data-view/components/column-filter/boolean-filter-editor.component.d.ts +0 -2
- package/types/data-view/components/column-filter/column-filter-container.component.d.ts +0 -19
- package/types/data-view/components/column-filter/date-filter-editor.component.d.ts +0 -2
- package/types/data-view/components/column-filter/enum-filter-editor.component.d.ts +0 -3
- package/types/data-view/components/column-filter/list-filter-editor.component.d.ts +0 -2
- package/types/data-view/components/column-filter/numeric-filter-editor.component.d.ts +0 -2
- package/types/data-view/components/column-filter/text-filter-editor.component.d.ts +0 -3
- package/types/data-view/components/column-header/column-header-handler.component.d.ts +0 -20
- package/types/data-view/components/column-setting/column-setting-icon.component.d.ts +0 -20
- package/types/data-view/components/editors/commands.component.d.ts +0 -17
- package/types/data-view/components/editors/date-picker.component.d.ts +0 -17
- package/types/data-view/components/editors/text-area-editor.component.d.ts +0 -2
- package/types/data-view/components/editors/text-editor.component.d.ts +0 -17
- package/types/data-view/components/filter-panel/filter-panel.component.d.ts +0 -4
- package/types/data-view/components/group-panel/group-panel.component.d.ts +0 -4
- package/types/data-view/components/mask/grid-mask.component.d.ts +0 -3
- package/types/data-view/components/pagination/data-grid-pagination.component.d.ts +0 -4
- package/types/data-view/components/scrollbar/horizontal-scrollbar.component.d.ts +0 -20
- package/types/data-view/components/scrollbar/vertical-scrollbar.component.d.ts +0 -20
- package/types/data-view/components/sidebar/data-grid-sidebar.component.d.ts +0 -20
- package/types/data-view/components/summary/data-grid-summary.component.d.ts +0 -4
- package/types/data-view/composition/appearance/use-cell-position.d.ts +0 -18
- package/types/data-view/composition/appearance/use-data-view-conainer-style.d.ts +0 -2
- package/types/data-view/composition/appearance/use-hierarchy-style.d.ts +0 -6
- package/types/data-view/composition/column/use-column-filter.d.ts +0 -3
- package/types/data-view/composition/column/use-column.d.ts +0 -2
- package/types/data-view/composition/column/use-command-column.d.ts +0 -2
- package/types/data-view/composition/column/use-drag-column.d.ts +0 -3
- package/types/data-view/composition/column/use-fit-column.d.ts +0 -18
- package/types/data-view/composition/column/use-group-column.d.ts +0 -20
- package/types/data-view/composition/column/use-resize.d.ts +0 -18
- package/types/data-view/composition/data/use-data-view.d.ts +0 -2
- package/types/data-view/composition/data/use-group-data.d.ts +0 -2
- package/types/data-view/composition/data/use-hierarchy-data.d.ts +0 -3
- package/types/data-view/composition/filter/use-filter-history.d.ts +0 -2
- package/types/data-view/composition/filter/use-filter.d.ts +0 -2
- package/types/data-view/composition/hierarchy/use-cascade.d.ts +0 -3
- package/types/data-view/composition/hierarchy/use-hierarchy.d.ts +0 -2
- package/types/data-view/composition/hierarchy/use-select-hierarchy-item.d.ts +0 -4
- package/types/data-view/composition/hierarchy/use-toggle-hierarchy-item.d.ts +0 -3
- package/types/data-view/composition/hierarchy/use-tree-node-icon.d.ts +0 -4
- package/types/data-view/composition/types.d.ts +0 -732
- package/types/data-view/composition/use-edit.d.ts +0 -17
- package/types/data-view/composition/use-row.d.ts +0 -18
- package/types/data-view/composition/use-selection.d.ts +0 -18
- package/types/data-view/composition/use-sidebar.d.ts +0 -2
- package/types/data-view/composition/use-sort.d.ts +0 -2
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -18
- package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +0 -2
- package/types/data-view/composition/visualization/use-visual-data-cell.d.ts +0 -2
- package/types/data-view/composition/visualization/use-visual-data.d.ts +0 -18
- package/types/data-view/composition/visualization/use-visual-group-row.d.ts +0 -2
- package/types/data-view/composition/visualization/use-visual-summary-row.d.ts +0 -2
- package/types/data-view/index.d.ts +0 -39
- package/types/date-picker/index.d.ts +0 -31
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +0 -168
- package/types/date-picker/src/components/calendar/calendar.props.d.ts +0 -94
- package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +0 -140
- package/types/date-picker/src/components/calendar-navbar/calendar-navbar.props.d.ts +0 -81
- package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +0 -6
- package/types/date-picker/src/components/date-picker-container/date-picker-container.props.d.ts +0 -20
- package/types/date-picker/src/components/month/month.component.d.ts +0 -88
- package/types/date-picker/src/components/month/month.props.d.ts +0 -57
- package/types/date-picker/src/components/year/year.component.d.ts +0 -88
- package/types/date-picker/src/components/year/year.props.d.ts +0 -57
- package/types/date-picker/src/composition/types.d.ts +0 -103
- package/types/date-picker/src/composition/use-calendar.d.ts +0 -2
- package/types/date-picker/src/composition/use-compare.d.ts +0 -2
- package/types/date-picker/src/composition/use-date.d.ts +0 -17
- package/types/date-picker/src/composition/use-disable-date.d.ts +0 -18
- package/types/date-picker/src/composition/use-disable-month.d.ts +0 -2
- package/types/date-picker/src/composition/use-event.d.ts +0 -45
- package/types/date-picker/src/composition/use-mark.d.ts +0 -2
- package/types/date-picker/src/composition/use-month.d.ts +0 -2
- package/types/date-picker/src/composition/use-number.d.ts +0 -2
- package/types/date-picker/src/composition/use-year.d.ts +0 -2
- package/types/date-picker/src/date-picker.component.d.ts +0 -6
- package/types/date-picker/src/date-picker.props.d.ts +0 -19
- package/types/date-picker/src/designer/date-picker.design.component.d.ts +0 -6
- package/types/date-picker/src/schema/schema-mapper.d.ts +0 -2
- package/types/date-picker/src/schema/schema-resolver.d.ts +0 -2
- package/types/date-picker/src/types/calendar.d.ts +0 -30
- package/types/date-picker/src/types/common.d.ts +0 -42
- package/types/date-picker/src/types/date-model.d.ts +0 -38
- package/types/date-picker/src/types/month.d.ts +0 -48
- package/types/date-picker/src/types/year.d.ts +0 -24
- package/types/designer-canvas/index.d.ts +0 -8
- package/types/designer-canvas/src/components/control-tree-view.component.d.ts +0 -88
- package/types/designer-canvas/src/components/maps.d.ts +0 -4
- package/types/designer-canvas/src/composition/designer-canvas-changed.d.ts +0 -7
- package/types/designer-canvas/src/composition/entity/property-entity.d.ts +0 -167
- package/types/designer-canvas/src/composition/function/control-tree-view/change-control-tree-node.d.ts +0 -6
- package/types/designer-canvas/src/composition/function/control-tree-view/control-tree-builder.d.ts +0 -8
- package/types/designer-canvas/src/composition/function/control-tree-view/control-tree-node-builder.d.ts +0 -9
- package/types/designer-canvas/src/composition/function/use-designer-component.d.ts +0 -4
- package/types/designer-canvas/src/composition/props/control-tree-view.props.d.ts +0 -49
- package/types/designer-canvas/src/composition/props/designer-canvas.props.d.ts +0 -3
- package/types/designer-canvas/src/composition/props/designer-inner-item.props.d.ts +0 -3
- package/types/designer-canvas/src/composition/props/designer-item.props.d.ts +0 -3
- package/types/designer-canvas/src/composition/props/designer-placeholder.props.d.ts +0 -7
- package/types/designer-canvas/src/composition/props/toolbox.props.d.ts +0 -11
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/types.d.ts +0 -101
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/designer-canvas/src/types.d.ts +0 -79
- package/types/discussion-editor/discussion-editor.component.d.ts +0 -121
- package/types/discussion-editor/discussion-editor.props.d.ts +0 -69
- package/types/discussion-editor/index.d.ts +0 -23
- package/types/discussion-editor/src/composition/use-discussion-editor.d.ts +0 -15
- package/types/discussion-editor/src/types/interface.d.ts +0 -22
- package/types/discussion-list/discussion-list.component.d.ts +0 -70
- package/types/discussion-list/discussion-list.props.d.ts +0 -52
- package/types/discussion-list/index.d.ts +0 -23
- package/types/dropdown/index.d.ts +0 -11
- package/types/dropdown/src/components/dropdown.item.props.d.ts +0 -46
- package/types/dropdown/src/composition/use-dropdown.d.ts +0 -26
- package/types/dropdown/src/designer/dropdown.design.component.d.ts +0 -21
- package/types/dropdown/src/dropdown.component.d.ts +0 -21
- package/types/dropdown/src/dropdown.item.component.d.ts +0 -76
- package/types/dropdown/src/dropdown.props.d.ts +0 -19
- package/types/dropdown/src/schema/schema-mapper.d.ts +0 -2
- package/types/dropdown/src/schema/schema-resolver.d.ts +0 -2
- package/types/dropdown/src/types/types.d.ts +0 -23
- package/types/dynamic-form/index.d.ts +0 -14
- package/types/dynamic-form/src/component/dynamic-form-group/dynamic-form-group.component.d.ts +0 -6
- package/types/dynamic-form/src/component/dynamic-form-group/dynamic-form-group.props.d.ts +0 -4
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +0 -37
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +0 -18
- package/types/dynamic-form/src/composition/types.d.ts +0 -6
- package/types/dynamic-form/src/composition/use-type-resolver.d.ts +0 -2
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
- package/types/dynamic-form/src/response-form.props.d.ts +0 -4
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +0 -2
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +0 -2
- package/types/dynamic-form/src/types.d.ts +0 -17
- package/types/dynamic-resolver/index.d.ts +0 -4
- package/types/dynamic-resolver/src/common/appearance-resolver.d.ts +0 -6
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +0 -5
- package/types/dynamic-resolver/src/converter/buttons.converter.d.ts +0 -3
- package/types/dynamic-resolver/src/converter/property-editor.converter.d.ts +0 -3
- package/types/dynamic-resolver/src/object-expression.d.ts +0 -66
- package/types/dynamic-resolver/src/property-config-resolver.d.ts +0 -9
- package/types/dynamic-resolver/src/props-resolver.d.ts +0 -2
- package/types/dynamic-resolver/src/schema-resolver.d.ts +0 -7
- package/types/dynamic-resolver/src/types.d.ts +0 -11
- package/types/dynamic-view/index.d.ts +0 -8
- package/types/dynamic-view/src/components/maps.d.ts +0 -4
- package/types/dynamic-view/src/dynamic-view.props.d.ts +0 -15
- package/types/enum-editor/index.d.ts +0 -23
- package/types/enum-editor/src/components/enum-editor-buttons.props.d.ts +0 -13
- package/types/enum-editor/src/components/enum-editor-table.props.d.ts +0 -29
- package/types/enum-editor/src/composition/types.d.ts +0 -4
- package/types/enum-editor/src/composition/use-move-data.d.ts +0 -7
- package/types/enum-editor/src/enum-editor.props.d.ts +0 -41
- package/types/events-editor/index.d.ts +0 -8
- package/types/events-editor/src/components/command-list/command-list.props.d.ts +0 -3
- package/types/events-editor/src/components/command-source/command-source.props.d.ts +0 -3
- package/types/events-editor/src/components/event-list/event-list.props.d.ts +0 -3
- package/types/events-editor/src/components/interaction-button/interaction-button.props.d.ts +0 -3
- package/types/events-editor/src/components/interaction-item/interaction-item.props.d.ts +0 -3
- package/types/events-editor/src/components/parameter-editor/parameter-editor.props.d.ts +0 -3
- package/types/events-editor/src/composition/types.d.ts +0 -37
- package/types/events-editor/src/composition/use-events-editor-util.d.ts +0 -5
- package/types/events-editor/src/composition/use-events.d.ts +0 -4
- package/types/events-editor/src/composition/use-interaction.d.ts +0 -4
- package/types/events-editor/src/composition/use-methods.d.ts +0 -4
- package/types/events-editor/src/events-editor.props.d.ts +0 -3
- package/types/events-editor/src/types.d.ts +0 -179
- package/types/field-selector/index.d.ts +0 -23
- package/types/field-selector/src/field-selector.props.d.ts +0 -121
- package/types/filter-bar/index.d.ts +0 -9
- package/types/filter-bar/src/components/ellipsis-button.component.d.ts +0 -3
- package/types/filter-bar/src/components/filter-item.component.d.ts +0 -5
- package/types/filter-bar/src/components/toolbar-component.d.ts +0 -4
- package/types/filter-bar/src/composition/types.d.ts +0 -14
- package/types/filter-bar/src/filter-bar.props.d.ts +0 -5
- package/types/filter-bar/src/schema/schema-mapper.d.ts +0 -2
- package/types/filter-bar/src/schema/schema-resolver.d.ts +0 -2
- package/types/filter-bar/src/types.d.ts +0 -12
- package/types/image-cropper/index.d.ts +0 -25
- package/types/image-cropper/src/composition/type.d.ts +0 -44
- package/types/image-cropper/src/composition/use-check-aspect-ratio.d.ts +0 -2
- package/types/image-cropper/src/composition/use-image-cropper.d.ts +0 -20
- package/types/image-cropper/src/composition/use-image-info.d.ts +0 -38
- package/types/image-cropper/src/designer/image-cropper.design.component.d.ts +0 -6
- package/types/image-cropper/src/image-cropper.component.d.ts +0 -6
- package/types/image-cropper/src/image-cropper.props.d.ts +0 -19
- package/types/image-cropper/src/schema/schema-mapper.d.ts +0 -2
- package/types/image-cropper/src/schema/schema-resolver.d.ts +0 -2
- package/types/index.d.ts +0 -20
- package/types/input-group/index.d.ts +0 -25
- package/types/input-group/src/components/appended-button.component.d.ts +0 -4
- package/types/input-group/src/components/extend.component.d.ts +0 -3
- package/types/input-group/src/components/text-edit.component.d.ts +0 -5
- package/types/input-group/src/composition/types.d.ts +0 -38
- package/types/input-group/src/composition/use-appended-button.d.ts +0 -4
- package/types/input-group/src/composition/use-clear.d.ts +0 -4
- package/types/input-group/src/composition/use-text-box.d.ts +0 -4
- package/types/input-group/src/input-group.component.d.ts +0 -6
- package/types/input-group/src/input-group.props.d.ts +0 -4
- package/types/input-group/src/schema/schema-mapper.d.ts +0 -2
- package/types/input-group/src/schema/schema-resolver.d.ts +0 -2
- package/types/layout/index.d.ts +0 -11
- package/types/layout/src/components/layout-panel.props.d.ts +0 -5
- package/types/layout/src/composition/types.d.ts +0 -23
- package/types/layout/src/composition/use-resize-handle.d.ts +0 -3
- package/types/layout/src/designer/layout-panel-use-designer-rules.d.ts +0 -3
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +0 -3
- package/types/layout/src/layout.props.d.ts +0 -4
- 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/index.d.ts +0 -25
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/list-nav/src/designer/list-nav.design.component.d.ts +0 -6
- package/types/list-nav/src/list-nav.component.d.ts +0 -6
- package/types/list-nav/src/list-nav.props.d.ts +0 -19
- 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/types/list-view/index.d.ts +0 -25
- package/types/list-view/src/components/header/content-header.component.d.ts +0 -6
- package/types/list-view/src/composition/types.d.ts +0 -40
- package/types/list-view/src/composition/use-draggable.d.ts +0 -4
- package/types/list-view/src/composition/use-hover.d.ts +0 -2
- package/types/list-view/src/composition/use-remove.d.ts +0 -4
- package/types/list-view/src/composition/use-search.d.ts +0 -5
- package/types/list-view/src/composition/use-selection.d.ts +0 -4
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +0 -6
- package/types/list-view/src/designer/list-view.design.component.d.ts +0 -6
- package/types/list-view/src/list-view-table.component.d.ts +0 -6
- package/types/list-view/src/list-view-table.props.d.ts +0 -19
- package/types/list-view/src/list-view.component.d.ts +0 -6
- package/types/list-view/src/list-view.props.d.ts +0 -23
- package/types/list-view/src/schema/schema-mapper.d.ts +0 -2
- package/types/list-view/src/schema/schema-resolver.d.ts +0 -2
- package/types/loading/index.d.ts +0 -23
- package/types/loading/src/composition/types.d.ts +0 -24
- package/types/loading/src/loading.component.d.ts +0 -61
- package/types/loading/src/loading.props.d.ts +0 -49
- package/types/loading/src/loading.service.d.ts +0 -4
- package/types/locale/src/lib/locale.service.d.ts +0 -26
- package/types/locale/src/lib/locales/en-us/avatar.d.ts +0 -7
- package/types/locale/src/lib/locales/en-us/batch-edit-dialog.d.ts +0 -15
- package/types/locale/src/lib/locales/en-us/collapse.d.ts +0 -4
- package/types/locale/src/lib/locales/en-us/combo.d.ts +0 -4
- package/types/locale/src/lib/locales/en-us/datagrid.d.ts +0 -103
- package/types/locale/src/lib/locales/en-us/discussion-group.d.ts +0 -25
- package/types/locale/src/lib/locales/en-us/filter-editor.d.ts +0 -50
- package/types/locale/src/lib/locales/en-us/filter-panel.d.ts +0 -25
- package/types/locale/src/lib/locales/en-us/footer.d.ts +0 -4
- package/types/locale/src/lib/locales/en-us/index.d.ts +0 -568
- package/types/locale/src/lib/locales/en-us/language-label.d.ts +0 -8
- package/types/locale/src/lib/locales/en-us/list-filter.d.ts +0 -6
- package/types/locale/src/lib/locales/en-us/list-view.d.ts +0 -3
- package/types/locale/src/lib/locales/en-us/loading.d.ts +0 -3
- package/types/locale/src/lib/locales/en-us/lookup-config.d.ts +0 -38
- package/types/locale/src/lib/locales/en-us/lookup.d.ts +0 -48
- package/types/locale/src/lib/locales/en-us/messager.d.ts +0 -28
- package/types/locale/src/lib/locales/en-us/multi-select.d.ts +0 -15
- package/types/locale/src/lib/locales/en-us/notify.d.ts +0 -3
- package/types/locale/src/lib/locales/en-us/numeric.d.ts +0 -7
- package/types/locale/src/lib/locales/en-us/page-walker.d.ts +0 -6
- package/types/locale/src/lib/locales/en-us/pagination.d.ts +0 -17
- package/types/locale/src/lib/locales/en-us/progress-step.d.ts +0 -3
- package/types/locale/src/lib/locales/en-us/query-condition.d.ts +0 -33
- package/types/locale/src/lib/locales/en-us/query-solution.d.ts +0 -41
- package/types/locale/src/lib/locales/en-us/response-toolbar.d.ts +0 -3
- package/types/locale/src/lib/locales/en-us/scrollspy.d.ts +0 -3
- package/types/locale/src/lib/locales/en-us/section.d.ts +0 -4
- package/types/locale/src/lib/locales/en-us/sidebar.d.ts +0 -3
- package/types/locale/src/lib/locales/en-us/sort-editor.d.ts +0 -15
- package/types/locale/src/lib/locales/en-us/tabs.d.ts +0 -3
- package/types/locale/src/lib/locales/en-us/tag.d.ts +0 -4
- package/types/locale/src/lib/locales/en-us/text.d.ts +0 -10
- package/types/locale/src/lib/locales/en-us/treetable.d.ts +0 -8
- package/types/locale/src/lib/locales/en-us/verify-detail.d.ts +0 -5
- package/types/locale/src/lib/locales/index.d.ts +0 -1712
- package/types/locale/src/lib/locales/zh-CHT/avatar.d.ts +0 -7
- package/types/locale/src/lib/locales/zh-CHT/batch-edit-dialog.d.ts +0 -15
- package/types/locale/src/lib/locales/zh-CHT/collapse.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-CHT/combo.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-CHT/datagrid.d.ts +0 -103
- package/types/locale/src/lib/locales/zh-CHT/discussion-group.d.ts +0 -25
- package/types/locale/src/lib/locales/zh-CHT/filter-editor.d.ts +0 -50
- package/types/locale/src/lib/locales/zh-CHT/filter-panel.d.ts +0 -25
- package/types/locale/src/lib/locales/zh-CHT/footer.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-CHT/index.d.ts +0 -568
- package/types/locale/src/lib/locales/zh-CHT/language-label.d.ts +0 -8
- package/types/locale/src/lib/locales/zh-CHT/list-filter.d.ts +0 -6
- package/types/locale/src/lib/locales/zh-CHT/list-view.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-CHT/loading.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-CHT/lookup-config.d.ts +0 -38
- package/types/locale/src/lib/locales/zh-CHT/lookup.d.ts +0 -48
- package/types/locale/src/lib/locales/zh-CHT/messager.d.ts +0 -28
- package/types/locale/src/lib/locales/zh-CHT/multi-select.d.ts +0 -15
- package/types/locale/src/lib/locales/zh-CHT/notify.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-CHT/numeric.d.ts +0 -7
- package/types/locale/src/lib/locales/zh-CHT/page-walker.d.ts +0 -6
- package/types/locale/src/lib/locales/zh-CHT/pagination.d.ts +0 -17
- package/types/locale/src/lib/locales/zh-CHT/progress-step.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-CHT/query-condition.d.ts +0 -33
- package/types/locale/src/lib/locales/zh-CHT/query-solution.d.ts +0 -41
- package/types/locale/src/lib/locales/zh-CHT/response-toolbar.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-CHT/scrollspy.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-CHT/section.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-CHT/sidebar.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-CHT/sort-editor.d.ts +0 -15
- package/types/locale/src/lib/locales/zh-CHT/tabs.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-CHT/tag.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-CHT/text.d.ts +0 -10
- package/types/locale/src/lib/locales/zh-CHT/treetable.d.ts +0 -8
- package/types/locale/src/lib/locales/zh-CHT/verify-detail.d.ts +0 -5
- package/types/locale/src/lib/locales/zh-cn/avatar.d.ts +0 -7
- package/types/locale/src/lib/locales/zh-cn/batch-edit-dialog.d.ts +0 -15
- package/types/locale/src/lib/locales/zh-cn/collapse.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-cn/combo.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-cn/datagrid.d.ts +0 -105
- package/types/locale/src/lib/locales/zh-cn/discussion-group.d.ts +0 -25
- package/types/locale/src/lib/locales/zh-cn/filter-editor.d.ts +0 -50
- package/types/locale/src/lib/locales/zh-cn/filter-panel.d.ts +0 -25
- package/types/locale/src/lib/locales/zh-cn/footer.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-cn/index.d.ts +0 -574
- package/types/locale/src/lib/locales/zh-cn/language-label.d.ts +0 -8
- package/types/locale/src/lib/locales/zh-cn/list-filter.d.ts +0 -6
- package/types/locale/src/lib/locales/zh-cn/list-view.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-cn/loading.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-cn/lookup-config.d.ts +0 -38
- package/types/locale/src/lib/locales/zh-cn/lookup.d.ts +0 -48
- package/types/locale/src/lib/locales/zh-cn/messager.d.ts +0 -32
- package/types/locale/src/lib/locales/zh-cn/multi-select.d.ts +0 -15
- package/types/locale/src/lib/locales/zh-cn/notify.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-cn/numeric.d.ts +0 -7
- package/types/locale/src/lib/locales/zh-cn/page-walker.d.ts +0 -6
- package/types/locale/src/lib/locales/zh-cn/pagination.d.ts +0 -17
- package/types/locale/src/lib/locales/zh-cn/progress-step.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-cn/query-condition.d.ts +0 -33
- package/types/locale/src/lib/locales/zh-cn/query-solution.d.ts +0 -41
- package/types/locale/src/lib/locales/zh-cn/response-toolbar.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-cn/scrollspy.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-cn/section.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-cn/sidebar.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-cn/sort-editor.d.ts +0 -15
- package/types/locale/src/lib/locales/zh-cn/tabs.d.ts +0 -3
- package/types/locale/src/lib/locales/zh-cn/tag.d.ts +0 -4
- package/types/locale/src/lib/locales/zh-cn/text.d.ts +0 -10
- package/types/locale/src/lib/locales/zh-cn/treetable.d.ts +0 -8
- package/types/locale/src/lib/locales/zh-cn/verify-detail.d.ts +0 -5
- package/types/message-box/index.d.ts +0 -24
- package/types/message-box/src/components/message-content/reactive-content.component.d.ts +0 -3
- package/types/message-box/src/components/message-content/static-content.component.d.ts +0 -3
- package/types/message-box/src/components/message-detail/static-message.component.d.ts +0 -2
- package/types/message-box/src/components/reactive-editor/textarea.component.d.ts +0 -3
- package/types/message-box/src/composition/types.d.ts +0 -27
- package/types/message-box/src/composition/use-copy.d.ts +0 -2
- package/types/message-box/src/composition/use-editor.d.ts +0 -4
- package/types/message-box/src/composition/use-feedback.d.ts +0 -2
- package/types/message-box/src/message-box.component.d.ts +0 -70
- package/types/message-box/src/message-box.props.d.ts +0 -54
- package/types/modal/index.d.ts +0 -24
- package/types/modal/src/modal.props.d.ts +0 -76
- package/types/modal/src/modal.service.d.ts +0 -21
- package/types/nav/index.d.ts +0 -25
- package/types/nav/src/composition/types.d.ts +0 -6
- package/types/nav/src/designer/nav.design.component.d.ts +0 -6
- package/types/nav/src/nav.component.d.ts +0 -6
- package/types/nav/src/nav.props.d.ts +0 -19
- package/types/nav/src/schema/schema-mapper.d.ts +0 -2
- package/types/nav/src/schema/schema-resolver.d.ts +0 -2
- package/types/notify/index.d.ts +0 -26
- package/types/notify/src/components/toast.component.d.ts +0 -32
- package/types/notify/src/components/toast.props.d.ts +0 -31
- package/types/notify/src/notify.component.d.ts +0 -89
- package/types/notify/src/notify.props.d.ts +0 -97
- package/types/notify/src/notify.service.d.ts +0 -19
- package/types/number-range/index.d.ts +0 -25
- package/types/number-range/src/components/spinner.component.d.ts +0 -4
- package/types/number-range/src/components/text-box.component.d.ts +0 -4
- package/types/number-range/src/composition/types.d.ts +0 -56
- package/types/number-range/src/composition/use-format.d.ts +0 -4
- package/types/number-range/src/composition/use-number.d.ts +0 -4
- package/types/number-range/src/composition/use-spinner.d.ts +0 -4
- package/types/number-range/src/composition/use-text-box.d.ts +0 -4
- package/types/number-range/src/number-range.component.d.ts +0 -6
- package/types/number-range/src/number-range.props.d.ts +0 -19
- package/types/number-range/src/schema/schema-mapper.d.ts +0 -2
- package/types/number-range/src/schema/schema-resolver.d.ts +0 -2
- package/types/number-spinner/index.d.ts +0 -25
- package/types/number-spinner/src/components/spinner.component.d.ts +0 -4
- package/types/number-spinner/src/components/text-box.component.d.ts +0 -4
- package/types/number-spinner/src/composition/types.d.ts +0 -58
- package/types/number-spinner/src/composition/use-format.d.ts +0 -4
- package/types/number-spinner/src/composition/use-number.d.ts +0 -4
- package/types/number-spinner/src/composition/use-spinner.d.ts +0 -4
- package/types/number-spinner/src/composition/use-text-box.d.ts +0 -4
- package/types/number-spinner/src/designer/number-spinner.component.d.ts +0 -6
- package/types/number-spinner/src/number-spinner.component.d.ts +0 -6
- package/types/number-spinner/src/number-spinner.props.d.ts +0 -19
- package/types/number-spinner/src/schema/schema-mapper.d.ts +0 -2
- package/types/number-spinner/src/schema/schema-resolver.d.ts +0 -2
- package/types/order/index.d.ts +0 -10
- package/types/order/src/order.props.d.ts +0 -10
- package/types/order/src/schema/schema-mapper.d.ts +0 -2
- package/types/order/src/schema/schema-resolver.d.ts +0 -2
- package/types/overlay/src/overlay.props.d.ts +0 -33
- package/types/overlay/src/overlay.service.d.ts +0 -17
- package/types/page-footer/index.d.ts +0 -10
- package/types/page-footer/src/page-footer.props.d.ts +0 -4
- package/types/page-footer/src/schema/schema-mapper.d.ts +0 -2
- package/types/page-footer/src/schema/schema-resolver.d.ts +0 -2
- package/types/page-header/index.d.ts +0 -10
- package/types/page-header/src/designer/use-designer-rules.d.ts +0 -3
- package/types/page-header/src/page-header.props.d.ts +0 -4
- package/types/page-header/src/schema/schema-mapper.d.ts +0 -2
- package/types/page-header/src/schema/schema-resolver.d.ts +0 -2
- package/types/pagination/index.d.ts +0 -25
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +0 -19
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +0 -20
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +0 -20
- package/types/pagination/src/components/pages/page-info.component.d.ts +0 -19
- package/types/pagination/src/components/pages/page-list.component.d.ts +0 -19
- package/types/pagination/src/components/pages/page-number.component.d.ts +0 -20
- package/types/pagination/src/composition/types.d.ts +0 -24
- package/types/pagination/src/composition/use-pages.d.ts +0 -18
- package/types/pagination/src/designer/pagination.design.components.d.ts +0 -6
- package/types/pagination/src/pagination.components.d.ts +0 -6
- package/types/pagination/src/pagination.props.d.ts +0 -20
- package/types/pagination/src/schema/schema-mapper.d.ts +0 -2
- package/types/pagination/src/schema/schema-resolver.d.ts +0 -2
- package/types/popover/index.d.ts +0 -24
- package/types/popover/src/composition/types.d.ts +0 -25
- package/types/popover/src/composition/use-host.d.ts +0 -3
- package/types/popover/src/composition/use-popup.d.ts +0 -4
- package/types/popover/src/composition/use-position.d.ts +0 -4
- package/types/popover/src/composition/use-resize.d.ts +0 -4
- package/types/popover/src/popover.component.d.ts +0 -112
- package/types/popover/src/popover.directive.d.ts +0 -5
- package/types/popover/src/popover.props.d.ts +0 -69
- package/types/progress/index.d.ts +0 -10
- package/types/progress/src/composition/types.d.ts +0 -65
- package/types/progress/src/composition/use-format.d.ts +0 -3
- package/types/progress/src/composition/use-gradient.d.ts +0 -3
- package/types/progress/src/composition/use-progress-status.d.ts +0 -3
- package/types/progress/src/composition/use-progress-type.d.ts +0 -3
- package/types/progress/src/composition/use-progress.d.ts +0 -3
- package/types/progress/src/composition/use-stroke-width.d.ts +0 -3
- package/types/progress/src/composition/use-success-percent.d.ts +0 -3
- package/types/progress/src/progress.props.d.ts +0 -13
- package/types/progress/src/schema/schema-mapper.d.ts +0 -2
- package/types/progress/src/schema/schema-resolver.d.ts +0 -2
- package/types/property-panel/index.d.ts +0 -24
- package/types/property-panel/src/component/property-panel-item-list.component.d.ts +0 -43
- package/types/property-panel/src/component/property-panel-item.component.d.ts +0 -25
- package/types/property-panel/src/composition/entity/property-entity.d.ts +0 -165
- package/types/property-panel/src/composition/props/property-panel-item-list.props.d.ts +0 -38
- package/types/property-panel/src/composition/props/property-panel-item.props.d.ts +0 -27
- package/types/property-panel/src/composition/props/property-panel.props.d.ts +0 -100
- package/types/property-panel/src/composition/type.d.ts +0 -45
- package/types/property-panel/src/property-panel.component.d.ts +0 -156
- package/types/query-solution/index.d.ts +0 -25
- package/types/query-solution/src/composition/types.d.ts +0 -8
- package/types/query-solution/src/composition/use-filter.d.ts +0 -19
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +0 -26
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +0 -19
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.component.d.ts +0 -6
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +0 -23
- package/types/query-solution/src/designer/query-solution-config/schema/schema-mapper.d.ts +0 -2
- package/types/query-solution/src/designer/query-solution-config/schema/schema-resolver.d.ts +0 -2
- package/types/query-solution/src/designer/query-solution.design.component.d.ts +0 -6
- package/types/query-solution/src/query-solution.component.d.ts +0 -6
- package/types/query-solution/src/query-solution.d.ts +0 -40
- package/types/query-solution/src/query-solution.props.d.ts +0 -19
- package/types/query-solution/src/schema/schema-mapper.d.ts +0 -2
- package/types/query-solution/src/schema/schema-resolver.d.ts +0 -2
- package/types/query-solution/src/solutions.d.ts +0 -1238
- package/types/radio-group/index.d.ts +0 -25
- package/types/radio-group/src/composition/change-radio.d.ts +0 -19
- package/types/radio-group/src/composition/types.d.ts +0 -42
- package/types/radio-group/src/designer/radio-group.design.component.d.ts +0 -6
- package/types/radio-group/src/radio-group.component.d.ts +0 -6
- package/types/radio-group/src/radio-group.props.d.ts +0 -19
- package/types/radio-group/src/schema/schema-mapper.d.ts +0 -2
- package/types/radio-group/src/schema/schema-resolver.d.ts +0 -2
- package/types/rate/index.d.ts +0 -25
- package/types/rate/src/designer/rate.design.component.d.ts +0 -6
- package/types/rate/src/rate.component.d.ts +0 -6
- package/types/rate/src/rate.props.d.ts +0 -19
- package/types/rate/src/schema/schema-mapper.d.ts +0 -2
- package/types/rate/src/schema/schema-resolver.d.ts +0 -2
- package/types/response-layout/index.d.ts +0 -26
- package/types/response-layout/src/component/response-layout-item.props.d.ts +0 -4
- package/types/response-layout/src/response-layout.props.d.ts +0 -4
- package/types/response-layout/src/schema/schema-mapper.d.ts +0 -2
- package/types/response-layout/src/schema/schema-resolver.d.ts +0 -2
- package/types/response-layout-editor/index.d.ts +0 -23
- package/types/response-layout-editor/src/components/field-list/column-width-editor/column-width-editor.props.d.ts +0 -3
- package/types/response-layout-editor/src/components/field-list/field-list.props.d.ts +0 -3
- package/types/response-layout-editor/src/components/preview/column-width-view/column-width-view.component.d.ts +0 -6
- package/types/response-layout-editor/src/components/preview/column-width-view/column-width-view.props.d.ts +0 -3
- package/types/response-layout-editor/src/components/preview/preview.component.d.ts +0 -6
- package/types/response-layout-editor/src/components/preview/preview.props.d.ts +0 -3
- package/types/response-layout-editor/src/components/screen-resolution-selector/screen-resolution-selector.component.d.ts +0 -6
- package/types/response-layout-editor/src/components/screen-resolution-selector/screen-resolution-selector.props.d.ts +0 -3
- package/types/response-layout-editor/src/response-layout-editor.component.d.ts +0 -6
- package/types/response-layout-editor/src/response-layout-editor.props.d.ts +0 -3
- package/types/response-layout-editor/src/type.d.ts +0 -4
- package/types/response-toolbar/index.d.ts +0 -13
- package/types/response-toolbar/src/components/dropdown/toolbar-dropdown-menu.component.d.ts +0 -6
- package/types/response-toolbar/src/components/dropdown/toolbar-dropdown.component.d.ts +0 -7
- package/types/response-toolbar/src/composition/types.d.ts +0 -9
- package/types/response-toolbar/src/composition/use-icon.d.ts +0 -2
- package/types/response-toolbar/src/composition/use-toolbar-item.d.ts +0 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +0 -5
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +0 -2
- package/types/response-toolbar/src/schema/schema-resolver.d.ts +0 -2
- package/types/response-toolbar/src/types/response-toolbar-dropdwon-item.d.ts +0 -13
- package/types/response-toolbar/src/types/response-toolbar-group.d.ts +0 -19
- package/types/response-toolbar/src/types/response-toolbar-item-base.d.ts +0 -36
- package/types/response-toolbar/src/types/response-toolbar-item.d.ts +0 -4
- package/types/search-box/index.d.ts +0 -25
- package/types/search-box/src/components/search-box-container.props.d.ts +0 -31
- package/types/search-box/src/schema/schema-mapper.d.ts +0 -2
- package/types/search-box/src/schema/schema-resolver.d.ts +0 -2
- package/types/search-box/src/search-box.props.d.ts +0 -4
- package/types/section/index.d.ts +0 -25
- package/types/section/src/components/toolbar.component.d.ts +0 -3
- package/types/section/src/composition/types.d.ts +0 -18
- package/types/section/src/composition/use-max-min.d.ts +0 -3
- package/types/section/src/designer/section.design.component.d.ts +0 -6
- package/types/section/src/designer/use-designer-rules.d.ts +0 -3
- package/types/section/src/schema/accordion-resolver.d.ts +0 -3
- package/types/section/src/schema/schema-mapper.d.ts +0 -2
- package/types/section/src/schema/schema-resolver.d.ts +0 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +0 -7
- package/types/section/src/section.component.d.ts +0 -6
- package/types/section/src/section.props.d.ts +0 -31
- package/types/smoke-detector/index.d.ts +0 -10
- package/types/smoke-detector/src/schema/schema-mapper.d.ts +0 -2
- package/types/smoke-detector/src/schema/schema-resolver.d.ts +0 -2
- package/types/smoke-detector/src/smoke-detector.props.d.ts +0 -4
- package/types/spacing-editor/index.d.ts +0 -23
- package/types/spacing-editor/src/components/spacing-editor-margin.component.d.ts +0 -5
- package/types/spacing-editor/src/components/spacing-editor-padding.component.d.ts +0 -5
- package/types/spacing-editor/src/spacing-editor.component.d.ts +0 -6
- package/types/spacing-editor/src/spacing-editor.props.d.ts +0 -3
- package/types/splitter/index.d.ts +0 -10
- package/types/splitter/src/components/splitter-pane.props.d.ts +0 -5
- package/types/splitter/src/composition/types.d.ts +0 -23
- package/types/splitter/src/composition/use-resize-handle.d.ts +0 -3
- package/types/splitter/src/composition/use-resize-pane.d.ts +0 -3
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +0 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +0 -3
- package/types/splitter/src/schema/splitter-pane-schema-mapper.d.ts +0 -2
- package/types/splitter/src/schema/splitter-schema-mapper.d.ts +0 -2
- package/types/splitter/src/schema/splitter-schema-resolver.d.ts +0 -2
- package/types/splitter/src/splitter.props.d.ts +0 -5
- package/types/step/index.d.ts +0 -10
- package/types/step/src/schema/schema-mapper.d.ts +0 -2
- package/types/step/src/schema/schema-resolver.d.ts +0 -2
- package/types/step/src/step.props.d.ts +0 -11
- package/types/switch/index.d.ts +0 -25
- package/types/switch/src/designer/switch.design.component.d.ts +0 -6
- package/types/switch/src/schema/schema-mapper.d.ts +0 -2
- package/types/switch/src/schema/schema-resolver.d.ts +0 -2
- package/types/switch/src/switch.component.d.ts +0 -6
- package/types/switch/src/switch.props.d.ts +0 -20
- package/types/tabs/index.d.ts +0 -27
- package/types/tabs/src/components/more-pages-button.component.d.ts +0 -5
- package/types/tabs/src/components/tab-header-dropdown-menu.component.d.ts +0 -5
- package/types/tabs/src/components/tab-header-item.component.d.ts +0 -4
- package/types/tabs/src/components/tab-header.component.d.ts +0 -4
- package/types/tabs/src/components/tab-page.props.d.ts +0 -19
- package/types/tabs/src/composition/types.d.ts +0 -83
- package/types/tabs/src/composition/use-dropdown.d.ts +0 -3
- package/types/tabs/src/composition/use-nav.d.ts +0 -4
- package/types/tabs/src/composition/use-one-page.d.ts +0 -4
- package/types/tabs/src/composition/use-tabs.d.ts +0 -19
- package/types/tabs/src/designer/tab-header.design.component.d.ts +0 -6
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +0 -3
- package/types/tabs/src/designer/tab-page.design.component.d.ts +0 -6
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +0 -3
- package/types/tabs/src/designer/tabs-use-design.d.ts +0 -20
- package/types/tabs/src/designer/tabs.design.component.d.ts +0 -6
- package/types/tabs/src/schema/schema-mapper.d.ts +0 -2
- package/types/tabs/src/schema/schema-resolver.d.ts +0 -2
- package/types/tabs/src/schema/tab-page-schema-mapper.d.ts +0 -2
- package/types/tabs/src/tabs.component.d.ts +0 -6
- package/types/tabs/src/tabs.props.d.ts +0 -22
- package/types/tags/index.d.ts +0 -10
- package/types/tags/src/composition/types.d.ts +0 -13
- package/types/tags/src/composition/use-draggable.d.ts +0 -4
- package/types/tags/src/schema/schema-mapper.d.ts +0 -2
- package/types/tags/src/schema/schema-resolver.d.ts +0 -2
- package/types/tags/src/tags.props.d.ts +0 -15
- package/types/text/index.d.ts +0 -25
- package/types/text/src/designer/text.design.component.d.ts +0 -6
- package/types/text/src/schema/schema-mapper.d.ts +0 -2
- package/types/text/src/schema/schema-resolver.d.ts +0 -2
- package/types/text/src/text.component.d.ts +0 -6
- package/types/text/src/text.props.d.ts +0 -19
- package/types/time-picker/index.d.ts +0 -12
- package/types/time-picker/src/components/time-holder.d.ts +0 -82
- package/types/time-picker/src/components/time.props.d.ts +0 -48
- package/types/time-picker/src/components/utils/check.d.ts +0 -1
- package/types/time-picker/src/schema/schema-mapper.d.ts +0 -2
- package/types/time-picker/src/schema/schema-resolver.d.ts +0 -2
- package/types/time-picker/src/time-picker.props.d.ts +0 -4
- package/types/tooltip/index.d.ts +0 -24
- package/types/tooltip/src/composition/types.d.ts +0 -45
- package/types/tooltip/src/composition/use-adjust-placement.d.ts +0 -20
- package/types/tooltip/src/composition/use-adjust-position.d.ts +0 -21
- package/types/tooltip/src/composition/use-calculate-position.d.ts +0 -21
- package/types/tooltip/src/composition/use-relative.d.ts +0 -19
- package/types/tooltip/src/composition/use-tooltip-position.d.ts +0 -22
- package/types/tooltip/src/tooltip.component.d.ts +0 -78
- package/types/tooltip/src/tooltip.directive.d.ts +0 -6
- package/types/tooltip/src/tooltip.props.d.ts +0 -60
- package/types/transfer/index.d.ts +0 -10
- package/types/transfer/src/schema/schema-mapper.d.ts +0 -2
- package/types/transfer/src/schema/schema-resolver.d.ts +0 -2
- package/types/transfer/src/transfer.component.d.ts +0 -6
- package/types/transfer/src/transfer.props.d.ts +0 -4
- package/types/tree-grid/index.d.ts +0 -24
- package/types/tree-grid/src/components/data/data-area.component.d.ts +0 -21
- package/types/tree-grid/src/schema/schema-mapper.d.ts +0 -2
- package/types/tree-grid/src/schema/schema-resolver.d.ts +0 -2
- package/types/tree-grid/src/tree-grid.props.d.ts +0 -431
- package/types/tree-view/index.d.ts +0 -10
- package/types/tree-view/src/components/data/tree-area.component.d.ts +0 -7
- package/types/tree-view/src/schema/schema-mapper.d.ts +0 -2
- package/types/tree-view/src/schema/schema-resolver.d.ts +0 -2
- package/types/tree-view/src/tree-view.component.d.ts +0 -6
- package/types/tree-view/src/tree-view.props.d.ts +0 -4
- package/types/uploader/index.d.ts +0 -27
- package/types/uploader/src/components/file-select.component.d.ts +0 -99
- package/types/uploader/src/components/sub-component.props.d.ts +0 -102
- package/types/uploader/src/components/upload-progress.component.d.ts +0 -41
- package/types/uploader/src/composition/type.d.ts +0 -129
- package/types/uploader/src/composition/use-service.d.ts +0 -5
- package/types/uploader/src/schema/schema-mapper.d.ts +0 -2
- package/types/uploader/src/schema/schema-resolver.d.ts +0 -2
- package/types/uploader/src/uploader.props.d.ts +0 -4
- package/types/verify-detail/index.d.ts +0 -28
- package/types/verify-detail/src/composition/type.d.ts +0 -25
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +0 -6
- package/types/verify-detail/src/schema/schema-mapper.d.ts +0 -2
- package/types/verify-detail/src/schema/schema-resolver.d.ts +0 -2
- package/types/verify-detail/src/verify-detail.component.d.ts +0 -6
- package/types/verify-detail/src/verify-detail.props.d.ts +0 -4
- package/types/verify-detail/src/verify-detail.service.d.ts +0 -7
- package/types/video/index.d.ts +0 -25
- package/types/video/src/composition/types.d.ts +0 -38
- package/types/video/src/composition/use-video.d.ts +0 -20
- package/types/video/src/composition/use-viewport.d.ts +0 -20
- package/types/video/src/designer/video.design.component.d.ts +0 -4
- package/types/video/src/schema/schema-mapper.d.ts +0 -2
- package/types/video/src/schema/schema-resolver.d.ts +0 -2
- package/types/video/src/video.component.d.ts +0 -6
- package/types/video/src/video.props.d.ts +0 -19
- package/types/weather/index.d.ts +0 -25
- package/types/weather/src/components/weather-city.component.d.ts +0 -6
- package/types/weather/src/components/weather-detail.component.d.ts +0 -6
- package/types/weather/src/components/weather-home.component.d.ts +0 -6
- package/types/weather/src/components/weather-information.component.d.ts +0 -6
- package/types/weather/src/components/weather-proindex.component.d.ts +0 -6
- package/types/weather/src/components/weather-report.component.d.ts +0 -6
- package/types/weather/src/components/weather-sunset.component.d.ts +0 -6
- package/types/weather/src/composition/types.d.ts +0 -2
- package/types/weather/src/composition/use-weather-charts.d.ts +0 -3
- package/types/weather/src/composition/use-weather-color.d.ts +0 -3
- package/types/weather/src/composition/use-weather-data.d.ts +0 -3
- package/types/weather/src/composition/use-weather-format-number.d.ts +0 -3
- package/types/weather/src/demo-data.d.ts +0 -181
- package/types/weather/src/designer/weather.design.component.d.ts +0 -6
- package/types/weather/src/schema/schema-mapper.d.ts +0 -2
- package/types/weather/src/schema/schema-resolver.d.ts +0 -2
- package/types/weather/src/weather.component.d.ts +0 -6
- package/types/weather/src/weather.props.d.ts +0 -19
- package/uploader/index.esm.js +0 -3187
- package/uploader/index.umd.js +0 -2
- package/uploader/package.json +0 -8
- package/uploader/style.css +0 -1
- package/verify-detail/index.esm.js +0 -648
- package/verify-detail/index.umd.js +0 -1
- package/verify-detail/package.json +0 -8
- package/video/index.esm.js +0 -1178
- package/video/index.umd.js +0 -1
- package/video/package.json +0 -8
- package/weather/index.esm.js +0 -6816
- package/weather/index.umd.js +0 -16
- package/weather/package.json +0 -8
- package/weather/style.css +0 -1
package/uploader/index.esm.js
DELETED
|
@@ -1,3187 +0,0 @@
|
|
|
1
|
-
var ct = Object.defineProperty;
|
|
2
|
-
var dt = (n, e, t) => e in n ? ct(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
-
var Z = (n, e, t) => (dt(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { defineComponent as ve, toRefs as Oe, createVNode as l, Fragment as De, createTextVNode as x, ref as $, watch as ge, inject as ie, getCurrentInstance as ft, onMounted as Re, onUnmounted as Qe, computed as Ee, resolveComponent as ee, onBeforeMount as pt } from "vue";
|
|
5
|
-
import { cloneDeep as vt } from "lodash-es";
|
|
6
|
-
const mt = {
|
|
7
|
-
//是否被选中
|
|
8
|
-
checked: { type: Boolean, default: !1 },
|
|
9
|
-
//进度条状态 默认'normal'
|
|
10
|
-
id: { type: String, default: "" },
|
|
11
|
-
//禁用
|
|
12
|
-
disabled: { type: Boolean, default: !1 }
|
|
13
|
-
}, ht = {
|
|
14
|
-
//是否显示进度条信息
|
|
15
|
-
showInfo: { type: Boolean, default: !0 },
|
|
16
|
-
//进度条状态 默认'normal'
|
|
17
|
-
status: { type: String, default: "normal" },
|
|
18
|
-
//已完成的分段百分比
|
|
19
|
-
percent: { type: Number, default: 0 },
|
|
20
|
-
maxWidth: { type: Number, default: 0 }
|
|
21
|
-
}, gt = {
|
|
22
|
-
/**
|
|
23
|
-
* 按钮文本
|
|
24
|
-
*/
|
|
25
|
-
selectText: { type: String, default: "选择文件" },
|
|
26
|
-
/**
|
|
27
|
-
* 禁用
|
|
28
|
-
*/
|
|
29
|
-
disabled: { type: Boolean, default: !1 },
|
|
30
|
-
/**
|
|
31
|
-
* 启用多选
|
|
32
|
-
*/
|
|
33
|
-
enableMulti: { type: Boolean, default: !0 },
|
|
34
|
-
/**
|
|
35
|
-
* 允许上传类型
|
|
36
|
-
*/
|
|
37
|
-
accept: { type: String, default: "*" },
|
|
38
|
-
/**
|
|
39
|
-
* 配置对象
|
|
40
|
-
*/
|
|
41
|
-
options: { type: Object, default: {} },
|
|
42
|
-
/**
|
|
43
|
-
* 已上传附件个数
|
|
44
|
-
*/
|
|
45
|
-
uploadedCount: { type: Number, default: 0 },
|
|
46
|
-
/**
|
|
47
|
-
* 发起服务器端请求,某个组件使用的特殊的参数
|
|
48
|
-
*/
|
|
49
|
-
extendConfig: { type: Object, default: {} },
|
|
50
|
-
/**
|
|
51
|
-
* 附件服务器端服务注入的Token
|
|
52
|
-
*/
|
|
53
|
-
uploadServerToken: { type: String, default: "" }
|
|
54
|
-
}, wt = /* @__PURE__ */ ve({
|
|
55
|
-
name: "FUploadProgress",
|
|
56
|
-
props: ht,
|
|
57
|
-
setup(n, e) {
|
|
58
|
-
const {
|
|
59
|
-
showInfo: t,
|
|
60
|
-
status: a,
|
|
61
|
-
maxWidth: r,
|
|
62
|
-
percent: i
|
|
63
|
-
} = Oe(n);
|
|
64
|
-
return () => l("div", {
|
|
65
|
-
class: ["f-progress upload-progress", "upload-progress-status-" + a.value, "f-progress-status-" + a.value, "upload-progress-line", t.value ? "upload-progress-show-info" : ""]
|
|
66
|
-
}, [l("div", {
|
|
67
|
-
class: "upload-progress-outer",
|
|
68
|
-
style: {
|
|
69
|
-
"max-width": r.value > 0 ? r.value + "px" : "auto"
|
|
70
|
-
}
|
|
71
|
-
}, [l("div", {
|
|
72
|
-
class: "upload-progress-inner"
|
|
73
|
-
}, [l("div", {
|
|
74
|
-
class: "upload-progress-bg f-progress-bg",
|
|
75
|
-
style: {
|
|
76
|
-
width: i.value + "%"
|
|
77
|
-
}
|
|
78
|
-
}, null)])]), t.value ? l("span", {
|
|
79
|
-
class: "upload-progress-text"
|
|
80
|
-
}, [a.value === "error" || a.value === "success" ? l("span", {
|
|
81
|
-
class: ["upload-progress-text-icon f-icon", "f-icon-" + a.value]
|
|
82
|
-
}, null) : l(De, null, [i.value, x("%")])]) : ""]);
|
|
83
|
-
}
|
|
84
|
-
}), Ve = /* @__PURE__ */ ve({
|
|
85
|
-
name: "FPreviewCheckbox",
|
|
86
|
-
props: mt,
|
|
87
|
-
emits: ["checkedChange"],
|
|
88
|
-
setup(n, e) {
|
|
89
|
-
const {
|
|
90
|
-
disabled: t
|
|
91
|
-
} = Oe(n), a = $(n.checked), r = (i) => {
|
|
92
|
-
i.stopPropagation(), t.value || (a.value = !a.value, e.emit("checkedChange", {
|
|
93
|
-
checked: a.value,
|
|
94
|
-
id: n.id
|
|
95
|
-
}));
|
|
96
|
-
};
|
|
97
|
-
return ge(() => n.checked, (i) => {
|
|
98
|
-
a.value = i;
|
|
99
|
-
}), () => l("div", {
|
|
100
|
-
class: "preview-checkbox d-inline-flex align-middle"
|
|
101
|
-
}, [l("div", {
|
|
102
|
-
class: "custom-control custom-checkbox f-checkradio-single m-0"
|
|
103
|
-
}, [l("input", {
|
|
104
|
-
class: "custom-control-input",
|
|
105
|
-
type: "checkbox",
|
|
106
|
-
disabled: t.value,
|
|
107
|
-
checked: a.value
|
|
108
|
-
}, null), l("label", {
|
|
109
|
-
class: "custom-control-label",
|
|
110
|
-
onClick: (i) => r(i),
|
|
111
|
-
onMousedown: (i) => i.stopPropagation()
|
|
112
|
-
}, null)])]);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
var V = /* @__PURE__ */ ((n) => (n[n.Queue = 0] = "Queue", n[n.Uploading = 1] = "Uploading", n[n.Done = 2] = "Done", n[n.Cancelled = 3] = "Cancelled", n[n.Remove = 4] = "Remove", n[n.Error = 5] = "Error", n))(V || {});
|
|
116
|
-
class bt {
|
|
117
|
-
constructor(e = {}, t = {}) {
|
|
118
|
-
/**
|
|
119
|
-
* 上传配置
|
|
120
|
-
*/
|
|
121
|
-
Z(this, "uploadConfig");
|
|
122
|
-
/**
|
|
123
|
-
* 删除配置
|
|
124
|
-
*/
|
|
125
|
-
Z(this, "removeConfig");
|
|
126
|
-
const a = { type: "config", url: "", timeout: 0, headers: null, data: {} };
|
|
127
|
-
this.uploadConfig = Object.assign({}, a, e), this.removeConfig = Object.assign({}, a, t);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
const yt = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, Tt = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
|
|
131
|
-
class Dt {
|
|
132
|
-
constructor() {
|
|
133
|
-
Z(this, "regexes", {
|
|
134
|
-
YEAR: "[1-9]\\d{3}",
|
|
135
|
-
MONTH: "1[0-2]|0?[1-9]",
|
|
136
|
-
MONTH2: "1[0-2]|0[1-9]",
|
|
137
|
-
MONTHNAME: "jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|oct|october|nov|november|dec|december",
|
|
138
|
-
DAYNAME: "mon|monday|tue|tuesday|wed|wednesday|thu|thursday|fri|friday|sat|saturday|sun|sunday",
|
|
139
|
-
DAY: "3[01]|[12]\\d|0?[1-9]",
|
|
140
|
-
DAY2: "3[01]|[12]\\d|0[1-9]",
|
|
141
|
-
TIMEZONE: "[+-][01]\\d\\:?[0-5]\\d",
|
|
142
|
-
H24: "[01]\\d|2[0-3]",
|
|
143
|
-
MIN: "[0-5]\\d",
|
|
144
|
-
SEC: "[0-5]\\d",
|
|
145
|
-
MS: "\\d{3,}",
|
|
146
|
-
H12: "0?[1-9]|1[012]",
|
|
147
|
-
AMPM: "am|pm",
|
|
148
|
-
UNIT: "year|month|week|day|hour|minute|second|millisecond"
|
|
149
|
-
});
|
|
150
|
-
Z(this, "patterns", [
|
|
151
|
-
// 2010-03-15
|
|
152
|
-
["iso_8601", this.makePattern("^(_YEAR_)-(_MONTH_)-(_DAY_)$"), "$2/$3/$1"],
|
|
153
|
-
// 3-15-2010
|
|
154
|
-
["us", this.makePattern("^(_MONTH_)([\\/-])(_DAY_)\\2(_YEAR_)$"), "$1/$3/$4"],
|
|
155
|
-
// 15.03.2010
|
|
156
|
-
["world", this.makePattern("^(_DAY_)([\\/\\.])(_MONTH_)\\2(_YEAR_)$"), "$3/$1/$4"],
|
|
157
|
-
// 15-Mar-2010, 8 Dec 2011, "Thu, 8 Dec 2011"
|
|
158
|
-
["chicago", this.makePattern("^(?:(?:_DAYNAME_),? )?(_DAY_)([ -])(_MONTHNAME_)\\2(_YEAR_)$"), "$3 $1, $4"],
|
|
159
|
-
// "March 4, 2012", "Mar 4 2012", "Sun Mar 4 2012"
|
|
160
|
-
["conversational", this.makePattern("^(?:(?:_DAYNAME_),? )?(_MONTHNAME_) (_DAY_),? (_YEAR_)$"), "$1 $2, $3"],
|
|
161
|
-
// Tue Jun 22 17:47:27 +0000 2010
|
|
162
|
-
[
|
|
163
|
-
"month_day_time_year",
|
|
164
|
-
this.makePattern("^(?:_DAYNAME_) (_MONTHNAME_) (_DAY_) ((?:_H24_)\\:(?:_MIN_)(?:\\:_SEC_)?) (_TIMEZONE_) (_YEAR_)$"),
|
|
165
|
-
(e) => {
|
|
166
|
-
const t = ("" + this.getMonthByName(e[1])).padStart(2, "0"), a = ("" + e[2]).padStart(2, "0"), r = e[5], i = e[3], o = e[4], d = r + "-" + t + "-" + a + "T" + i + o;
|
|
167
|
-
return isNaN(d) ? !1 : d;
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
// @123456789
|
|
171
|
-
[
|
|
172
|
-
"unix",
|
|
173
|
-
/^@(-?\d+)$/,
|
|
174
|
-
(e) => this.create(parseInt(e[1], 10) * 1e3)
|
|
175
|
-
],
|
|
176
|
-
// 24-hour time (This will help catch Date objects that are casted to a string)
|
|
177
|
-
[
|
|
178
|
-
"24_hour",
|
|
179
|
-
this.makePattern("^(?:(.+?)(?: |T))?(_H24_)\\:(_MIN_)(?:\\:(_SEC_)(?:\\.(_MS_))?)? ?(?:GMT)?(_TIMEZONE_)?(?: \\([A-Z]+\\))?$"),
|
|
180
|
-
(e) => {
|
|
181
|
-
let t;
|
|
182
|
-
const a = e[1];
|
|
183
|
-
if (a) {
|
|
184
|
-
if (t = this.create(a), isNaN(t))
|
|
185
|
-
return !1;
|
|
186
|
-
} else
|
|
187
|
-
t = /* @__PURE__ */ new Date(), t.setMilliseconds(0);
|
|
188
|
-
const r = e[2], i = e[3], o = e[4], d = e[5];
|
|
189
|
-
return t.setHours(parseFloat(r), parseFloat(i), parseFloat(o || 0)), d && t.setMilliseconds(+String(d).slice(0, 3)), t;
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
// 12-hour time
|
|
193
|
-
[
|
|
194
|
-
"12_hour",
|
|
195
|
-
this.makePattern("^(?:(.+) )?(_H12_)(?:\\:(_MIN_)(?:\\:(_SEC_))?)? ?(_AMPM_)$"),
|
|
196
|
-
(e) => {
|
|
197
|
-
let t;
|
|
198
|
-
const a = e[1];
|
|
199
|
-
if (a) {
|
|
200
|
-
if (t = this.create(a), isNaN(t))
|
|
201
|
-
return !1;
|
|
202
|
-
} else
|
|
203
|
-
t = /* @__PURE__ */ new Date(), t.setMilliseconds(0);
|
|
204
|
-
let r = parseFloat(e[2]);
|
|
205
|
-
r = e[5].toLowerCase() === "am" ? r === 12 ? 0 : r : r == 12 ? 12 : r + 12;
|
|
206
|
-
const i = e[3], o = e[4];
|
|
207
|
-
return t.setHours(r, parseFloat(i || 0), parseFloat(o || 0)), t;
|
|
208
|
-
}
|
|
209
|
-
]
|
|
210
|
-
]);
|
|
211
|
-
}
|
|
212
|
-
makePattern(e) {
|
|
213
|
-
return e = e.replace(/_([A-Z][A-Z0-9]+)_/g, (t, a) => this.regexes[a]), new RegExp(e, "i");
|
|
214
|
-
}
|
|
215
|
-
getMonthByName(e) {
|
|
216
|
-
return yt[String(e).slice(0, 3).toLowerCase()];
|
|
217
|
-
}
|
|
218
|
-
getWeekdayByName(e) {
|
|
219
|
-
return Tt[String(e).slice(0, 3).toLowerCase()];
|
|
220
|
-
}
|
|
221
|
-
parse(e) {
|
|
222
|
-
if (!isNaN(Number(e)))
|
|
223
|
-
return new Date(e);
|
|
224
|
-
if (e = String(e).replace(/^\s*(.*)\s*$/, "$1"), e = e.replace(/\s{2,}/g, " "), e === "")
|
|
225
|
-
return Date.now();
|
|
226
|
-
let t = 0;
|
|
227
|
-
for (; t < this.patterns.length; ) {
|
|
228
|
-
const a = this.patterns[t];
|
|
229
|
-
let r = null, i;
|
|
230
|
-
typeof a[0] == "string" ? (i = a[1], r = a[2]) : (i = a[0], r = a[1]);
|
|
231
|
-
const o = e.match(i);
|
|
232
|
-
if (!o) {
|
|
233
|
-
t++;
|
|
234
|
-
continue;
|
|
235
|
-
}
|
|
236
|
-
if (typeof r == "function") {
|
|
237
|
-
const d = r(o);
|
|
238
|
-
if (d instanceof Date)
|
|
239
|
-
return d;
|
|
240
|
-
} else {
|
|
241
|
-
const d = Date.parse(e.replace(i, r));
|
|
242
|
-
if (!isNaN(d))
|
|
243
|
-
return new Date(d);
|
|
244
|
-
}
|
|
245
|
-
t++;
|
|
246
|
-
}
|
|
247
|
-
return NaN;
|
|
248
|
-
}
|
|
249
|
-
create(e) {
|
|
250
|
-
return e == null ? Date.now() : e instanceof Date ? e : this.parse(e);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
function te(n) {
|
|
254
|
-
if (n === null || n === !0 || n === !1)
|
|
255
|
-
return NaN;
|
|
256
|
-
var e = Number(n);
|
|
257
|
-
return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
|
|
258
|
-
}
|
|
259
|
-
function W(n, e) {
|
|
260
|
-
if (e.length < n)
|
|
261
|
-
throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + e.length + " present");
|
|
262
|
-
}
|
|
263
|
-
function we(n) {
|
|
264
|
-
"@babel/helpers - typeof";
|
|
265
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? we = function(t) {
|
|
266
|
-
return typeof t;
|
|
267
|
-
} : we = function(t) {
|
|
268
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
269
|
-
}, we(n);
|
|
270
|
-
}
|
|
271
|
-
function X(n) {
|
|
272
|
-
W(1, arguments);
|
|
273
|
-
var e = Object.prototype.toString.call(n);
|
|
274
|
-
return n instanceof Date || we(n) === "object" && e === "[object Date]" ? new Date(n.getTime()) : typeof n == "number" || e === "[object Number]" ? new Date(n) : ((typeof n == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
275
|
-
}
|
|
276
|
-
function Ct(n, e) {
|
|
277
|
-
W(2, arguments);
|
|
278
|
-
var t = X(n).getTime(), a = te(e);
|
|
279
|
-
return new Date(t + a);
|
|
280
|
-
}
|
|
281
|
-
var Mt = {};
|
|
282
|
-
function Ce() {
|
|
283
|
-
return Mt;
|
|
284
|
-
}
|
|
285
|
-
function St(n) {
|
|
286
|
-
var e = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
287
|
-
return e.setUTCFullYear(n.getFullYear()), n.getTime() - e.getTime();
|
|
288
|
-
}
|
|
289
|
-
var Xe = 6e4, Ge = 36e5;
|
|
290
|
-
function be(n) {
|
|
291
|
-
"@babel/helpers - typeof";
|
|
292
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? be = function(t) {
|
|
293
|
-
return typeof t;
|
|
294
|
-
} : be = function(t) {
|
|
295
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
296
|
-
}, be(n);
|
|
297
|
-
}
|
|
298
|
-
function xt(n) {
|
|
299
|
-
return W(1, arguments), n instanceof Date || be(n) === "object" && Object.prototype.toString.call(n) === "[object Date]";
|
|
300
|
-
}
|
|
301
|
-
function Je(n) {
|
|
302
|
-
if (W(1, arguments), !xt(n) && typeof n != "number")
|
|
303
|
-
return !1;
|
|
304
|
-
var e = X(n);
|
|
305
|
-
return !isNaN(Number(e));
|
|
306
|
-
}
|
|
307
|
-
function kt(n, e) {
|
|
308
|
-
W(2, arguments);
|
|
309
|
-
var t = te(e);
|
|
310
|
-
return Ct(n, -t);
|
|
311
|
-
}
|
|
312
|
-
var Et = 864e5;
|
|
313
|
-
function Pt(n) {
|
|
314
|
-
W(1, arguments);
|
|
315
|
-
var e = X(n), t = e.getTime();
|
|
316
|
-
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
|
|
317
|
-
var a = e.getTime(), r = t - a;
|
|
318
|
-
return Math.floor(r / Et) + 1;
|
|
319
|
-
}
|
|
320
|
-
function ye(n) {
|
|
321
|
-
W(1, arguments);
|
|
322
|
-
var e = 1, t = X(n), a = t.getUTCDay(), r = (a < e ? 7 : 0) + a - e;
|
|
323
|
-
return t.setUTCDate(t.getUTCDate() - r), t.setUTCHours(0, 0, 0, 0), t;
|
|
324
|
-
}
|
|
325
|
-
function Ze(n) {
|
|
326
|
-
W(1, arguments);
|
|
327
|
-
var e = X(n), t = e.getUTCFullYear(), a = /* @__PURE__ */ new Date(0);
|
|
328
|
-
a.setUTCFullYear(t + 1, 0, 4), a.setUTCHours(0, 0, 0, 0);
|
|
329
|
-
var r = ye(a), i = /* @__PURE__ */ new Date(0);
|
|
330
|
-
i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
|
|
331
|
-
var o = ye(i);
|
|
332
|
-
return e.getTime() >= r.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
|
|
333
|
-
}
|
|
334
|
-
function Ot(n) {
|
|
335
|
-
W(1, arguments);
|
|
336
|
-
var e = Ze(n), t = /* @__PURE__ */ new Date(0);
|
|
337
|
-
t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
|
|
338
|
-
var a = ye(t);
|
|
339
|
-
return a;
|
|
340
|
-
}
|
|
341
|
-
var _t = 6048e5;
|
|
342
|
-
function Ft(n) {
|
|
343
|
-
W(1, arguments);
|
|
344
|
-
var e = X(n), t = ye(e).getTime() - Ot(e).getTime();
|
|
345
|
-
return Math.round(t / _t) + 1;
|
|
346
|
-
}
|
|
347
|
-
function Te(n, e) {
|
|
348
|
-
var t, a, r, i, o, d, h, u;
|
|
349
|
-
W(1, arguments);
|
|
350
|
-
var s = Ce(), f = te((t = (a = (r = (i = e == null ? void 0 : e.weekStartsOn) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (d = o.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && r !== void 0 ? r : s.weekStartsOn) !== null && a !== void 0 ? a : (h = s.locale) === null || h === void 0 || (u = h.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
351
|
-
if (!(f >= 0 && f <= 6))
|
|
352
|
-
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
353
|
-
var p = X(n), g = p.getUTCDay(), w = (g < f ? 7 : 0) + g - f;
|
|
354
|
-
return p.setUTCDate(p.getUTCDate() - w), p.setUTCHours(0, 0, 0, 0), p;
|
|
355
|
-
}
|
|
356
|
-
function Ie(n, e) {
|
|
357
|
-
var t, a, r, i, o, d, h, u;
|
|
358
|
-
W(1, arguments);
|
|
359
|
-
var s = X(n), f = s.getUTCFullYear(), p = Ce(), g = te((t = (a = (r = (i = e == null ? void 0 : e.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (d = o.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : p.firstWeekContainsDate) !== null && a !== void 0 ? a : (h = p.locale) === null || h === void 0 || (u = h.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
|
|
360
|
-
if (!(g >= 1 && g <= 7))
|
|
361
|
-
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
362
|
-
var w = /* @__PURE__ */ new Date(0);
|
|
363
|
-
w.setUTCFullYear(f + 1, 0, g), w.setUTCHours(0, 0, 0, 0);
|
|
364
|
-
var P = Te(w, e), b = /* @__PURE__ */ new Date(0);
|
|
365
|
-
b.setUTCFullYear(f, 0, g), b.setUTCHours(0, 0, 0, 0);
|
|
366
|
-
var D = Te(b, e);
|
|
367
|
-
return s.getTime() >= P.getTime() ? f + 1 : s.getTime() >= D.getTime() ? f : f - 1;
|
|
368
|
-
}
|
|
369
|
-
function Nt(n, e) {
|
|
370
|
-
var t, a, r, i, o, d, h, u;
|
|
371
|
-
W(1, arguments);
|
|
372
|
-
var s = Ce(), f = te((t = (a = (r = (i = e == null ? void 0 : e.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (d = o.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : s.firstWeekContainsDate) !== null && a !== void 0 ? a : (h = s.locale) === null || h === void 0 || (u = h.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = Ie(n, e), g = /* @__PURE__ */ new Date(0);
|
|
373
|
-
g.setUTCFullYear(p, 0, f), g.setUTCHours(0, 0, 0, 0);
|
|
374
|
-
var w = Te(g, e);
|
|
375
|
-
return w;
|
|
376
|
-
}
|
|
377
|
-
var At = 6048e5;
|
|
378
|
-
function Ht(n, e) {
|
|
379
|
-
W(1, arguments);
|
|
380
|
-
var t = X(n), a = Te(t, e).getTime() - Nt(t, e).getTime();
|
|
381
|
-
return Math.round(a / At) + 1;
|
|
382
|
-
}
|
|
383
|
-
function S(n, e) {
|
|
384
|
-
for (var t = n < 0 ? "-" : "", a = Math.abs(n).toString(); a.length < e; )
|
|
385
|
-
a = "0" + a;
|
|
386
|
-
return t + a;
|
|
387
|
-
}
|
|
388
|
-
var Ut = {
|
|
389
|
-
// Year
|
|
390
|
-
y: function(e, t) {
|
|
391
|
-
var a = e.getUTCFullYear(), r = a > 0 ? a : 1 - a;
|
|
392
|
-
return S(t === "yy" ? r % 100 : r, t.length);
|
|
393
|
-
},
|
|
394
|
-
// Month
|
|
395
|
-
M: function(e, t) {
|
|
396
|
-
var a = e.getUTCMonth();
|
|
397
|
-
return t === "M" ? String(a + 1) : S(a + 1, 2);
|
|
398
|
-
},
|
|
399
|
-
// Day of the month
|
|
400
|
-
d: function(e, t) {
|
|
401
|
-
return S(e.getUTCDate(), t.length);
|
|
402
|
-
},
|
|
403
|
-
// AM or PM
|
|
404
|
-
a: function(e, t) {
|
|
405
|
-
var a = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
|
|
406
|
-
switch (t) {
|
|
407
|
-
case "a":
|
|
408
|
-
case "aa":
|
|
409
|
-
return a.toUpperCase();
|
|
410
|
-
case "aaa":
|
|
411
|
-
return a;
|
|
412
|
-
case "aaaaa":
|
|
413
|
-
return a[0];
|
|
414
|
-
case "aaaa":
|
|
415
|
-
default:
|
|
416
|
-
return a === "am" ? "a.m." : "p.m.";
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
// Hour [1-12]
|
|
420
|
-
h: function(e, t) {
|
|
421
|
-
return S(e.getUTCHours() % 12 || 12, t.length);
|
|
422
|
-
},
|
|
423
|
-
// Hour [0-23]
|
|
424
|
-
H: function(e, t) {
|
|
425
|
-
return S(e.getUTCHours(), t.length);
|
|
426
|
-
},
|
|
427
|
-
// Minute
|
|
428
|
-
m: function(e, t) {
|
|
429
|
-
return S(e.getUTCMinutes(), t.length);
|
|
430
|
-
},
|
|
431
|
-
// Second
|
|
432
|
-
s: function(e, t) {
|
|
433
|
-
return S(e.getUTCSeconds(), t.length);
|
|
434
|
-
},
|
|
435
|
-
// Fraction of second
|
|
436
|
-
S: function(e, t) {
|
|
437
|
-
var a = t.length, r = e.getUTCMilliseconds(), i = Math.floor(r * Math.pow(10, a - 3));
|
|
438
|
-
return S(i, t.length);
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
const K = Ut;
|
|
442
|
-
var re = {
|
|
443
|
-
am: "am",
|
|
444
|
-
pm: "pm",
|
|
445
|
-
midnight: "midnight",
|
|
446
|
-
noon: "noon",
|
|
447
|
-
morning: "morning",
|
|
448
|
-
afternoon: "afternoon",
|
|
449
|
-
evening: "evening",
|
|
450
|
-
night: "night"
|
|
451
|
-
}, Bt = {
|
|
452
|
-
// Era
|
|
453
|
-
G: function(e, t, a) {
|
|
454
|
-
var r = e.getUTCFullYear() > 0 ? 1 : 0;
|
|
455
|
-
switch (t) {
|
|
456
|
-
case "G":
|
|
457
|
-
case "GG":
|
|
458
|
-
case "GGG":
|
|
459
|
-
return a.era(r, {
|
|
460
|
-
width: "abbreviated"
|
|
461
|
-
});
|
|
462
|
-
case "GGGGG":
|
|
463
|
-
return a.era(r, {
|
|
464
|
-
width: "narrow"
|
|
465
|
-
});
|
|
466
|
-
case "GGGG":
|
|
467
|
-
default:
|
|
468
|
-
return a.era(r, {
|
|
469
|
-
width: "wide"
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
// Year
|
|
474
|
-
y: function(e, t, a) {
|
|
475
|
-
if (t === "yo") {
|
|
476
|
-
var r = e.getUTCFullYear(), i = r > 0 ? r : 1 - r;
|
|
477
|
-
return a.ordinalNumber(i, {
|
|
478
|
-
unit: "year"
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
return K.y(e, t);
|
|
482
|
-
},
|
|
483
|
-
// Local week-numbering year
|
|
484
|
-
Y: function(e, t, a, r) {
|
|
485
|
-
var i = Ie(e, r), o = i > 0 ? i : 1 - i;
|
|
486
|
-
if (t === "YY") {
|
|
487
|
-
var d = o % 100;
|
|
488
|
-
return S(d, 2);
|
|
489
|
-
}
|
|
490
|
-
return t === "Yo" ? a.ordinalNumber(o, {
|
|
491
|
-
unit: "year"
|
|
492
|
-
}) : S(o, t.length);
|
|
493
|
-
},
|
|
494
|
-
// ISO week-numbering year
|
|
495
|
-
R: function(e, t) {
|
|
496
|
-
var a = Ze(e);
|
|
497
|
-
return S(a, t.length);
|
|
498
|
-
},
|
|
499
|
-
// Extended year. This is a single number designating the year of this calendar system.
|
|
500
|
-
// The main difference between `y` and `u` localizers are B.C. years:
|
|
501
|
-
// | Year | `y` | `u` |
|
|
502
|
-
// |------|-----|-----|
|
|
503
|
-
// | AC 1 | 1 | 1 |
|
|
504
|
-
// | BC 1 | 1 | 0 |
|
|
505
|
-
// | BC 2 | 2 | -1 |
|
|
506
|
-
// Also `yy` always returns the last two digits of a year,
|
|
507
|
-
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
508
|
-
u: function(e, t) {
|
|
509
|
-
var a = e.getUTCFullYear();
|
|
510
|
-
return S(a, t.length);
|
|
511
|
-
},
|
|
512
|
-
// Quarter
|
|
513
|
-
Q: function(e, t, a) {
|
|
514
|
-
var r = Math.ceil((e.getUTCMonth() + 1) / 3);
|
|
515
|
-
switch (t) {
|
|
516
|
-
case "Q":
|
|
517
|
-
return String(r);
|
|
518
|
-
case "QQ":
|
|
519
|
-
return S(r, 2);
|
|
520
|
-
case "Qo":
|
|
521
|
-
return a.ordinalNumber(r, {
|
|
522
|
-
unit: "quarter"
|
|
523
|
-
});
|
|
524
|
-
case "QQQ":
|
|
525
|
-
return a.quarter(r, {
|
|
526
|
-
width: "abbreviated",
|
|
527
|
-
context: "formatting"
|
|
528
|
-
});
|
|
529
|
-
case "QQQQQ":
|
|
530
|
-
return a.quarter(r, {
|
|
531
|
-
width: "narrow",
|
|
532
|
-
context: "formatting"
|
|
533
|
-
});
|
|
534
|
-
case "QQQQ":
|
|
535
|
-
default:
|
|
536
|
-
return a.quarter(r, {
|
|
537
|
-
width: "wide",
|
|
538
|
-
context: "formatting"
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
// Stand-alone quarter
|
|
543
|
-
q: function(e, t, a) {
|
|
544
|
-
var r = Math.ceil((e.getUTCMonth() + 1) / 3);
|
|
545
|
-
switch (t) {
|
|
546
|
-
case "q":
|
|
547
|
-
return String(r);
|
|
548
|
-
case "qq":
|
|
549
|
-
return S(r, 2);
|
|
550
|
-
case "qo":
|
|
551
|
-
return a.ordinalNumber(r, {
|
|
552
|
-
unit: "quarter"
|
|
553
|
-
});
|
|
554
|
-
case "qqq":
|
|
555
|
-
return a.quarter(r, {
|
|
556
|
-
width: "abbreviated",
|
|
557
|
-
context: "standalone"
|
|
558
|
-
});
|
|
559
|
-
case "qqqqq":
|
|
560
|
-
return a.quarter(r, {
|
|
561
|
-
width: "narrow",
|
|
562
|
-
context: "standalone"
|
|
563
|
-
});
|
|
564
|
-
case "qqqq":
|
|
565
|
-
default:
|
|
566
|
-
return a.quarter(r, {
|
|
567
|
-
width: "wide",
|
|
568
|
-
context: "standalone"
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
// Month
|
|
573
|
-
M: function(e, t, a) {
|
|
574
|
-
var r = e.getUTCMonth();
|
|
575
|
-
switch (t) {
|
|
576
|
-
case "M":
|
|
577
|
-
case "MM":
|
|
578
|
-
return K.M(e, t);
|
|
579
|
-
case "Mo":
|
|
580
|
-
return a.ordinalNumber(r + 1, {
|
|
581
|
-
unit: "month"
|
|
582
|
-
});
|
|
583
|
-
case "MMM":
|
|
584
|
-
return a.month(r, {
|
|
585
|
-
width: "abbreviated",
|
|
586
|
-
context: "formatting"
|
|
587
|
-
});
|
|
588
|
-
case "MMMMM":
|
|
589
|
-
return a.month(r, {
|
|
590
|
-
width: "narrow",
|
|
591
|
-
context: "formatting"
|
|
592
|
-
});
|
|
593
|
-
case "MMMM":
|
|
594
|
-
default:
|
|
595
|
-
return a.month(r, {
|
|
596
|
-
width: "wide",
|
|
597
|
-
context: "formatting"
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
// Stand-alone month
|
|
602
|
-
L: function(e, t, a) {
|
|
603
|
-
var r = e.getUTCMonth();
|
|
604
|
-
switch (t) {
|
|
605
|
-
case "L":
|
|
606
|
-
return String(r + 1);
|
|
607
|
-
case "LL":
|
|
608
|
-
return S(r + 1, 2);
|
|
609
|
-
case "Lo":
|
|
610
|
-
return a.ordinalNumber(r + 1, {
|
|
611
|
-
unit: "month"
|
|
612
|
-
});
|
|
613
|
-
case "LLL":
|
|
614
|
-
return a.month(r, {
|
|
615
|
-
width: "abbreviated",
|
|
616
|
-
context: "standalone"
|
|
617
|
-
});
|
|
618
|
-
case "LLLLL":
|
|
619
|
-
return a.month(r, {
|
|
620
|
-
width: "narrow",
|
|
621
|
-
context: "standalone"
|
|
622
|
-
});
|
|
623
|
-
case "LLLL":
|
|
624
|
-
default:
|
|
625
|
-
return a.month(r, {
|
|
626
|
-
width: "wide",
|
|
627
|
-
context: "standalone"
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
},
|
|
631
|
-
// Local week of year
|
|
632
|
-
w: function(e, t, a, r) {
|
|
633
|
-
var i = Ht(e, r);
|
|
634
|
-
return t === "wo" ? a.ordinalNumber(i, {
|
|
635
|
-
unit: "week"
|
|
636
|
-
}) : S(i, t.length);
|
|
637
|
-
},
|
|
638
|
-
// ISO week of year
|
|
639
|
-
I: function(e, t, a) {
|
|
640
|
-
var r = Ft(e);
|
|
641
|
-
return t === "Io" ? a.ordinalNumber(r, {
|
|
642
|
-
unit: "week"
|
|
643
|
-
}) : S(r, t.length);
|
|
644
|
-
},
|
|
645
|
-
// Day of the month
|
|
646
|
-
d: function(e, t, a) {
|
|
647
|
-
return t === "do" ? a.ordinalNumber(e.getUTCDate(), {
|
|
648
|
-
unit: "date"
|
|
649
|
-
}) : K.d(e, t);
|
|
650
|
-
},
|
|
651
|
-
// Day of year
|
|
652
|
-
D: function(e, t, a) {
|
|
653
|
-
var r = Pt(e);
|
|
654
|
-
return t === "Do" ? a.ordinalNumber(r, {
|
|
655
|
-
unit: "dayOfYear"
|
|
656
|
-
}) : S(r, t.length);
|
|
657
|
-
},
|
|
658
|
-
// Day of week
|
|
659
|
-
E: function(e, t, a) {
|
|
660
|
-
var r = e.getUTCDay();
|
|
661
|
-
switch (t) {
|
|
662
|
-
case "E":
|
|
663
|
-
case "EE":
|
|
664
|
-
case "EEE":
|
|
665
|
-
return a.day(r, {
|
|
666
|
-
width: "abbreviated",
|
|
667
|
-
context: "formatting"
|
|
668
|
-
});
|
|
669
|
-
case "EEEEE":
|
|
670
|
-
return a.day(r, {
|
|
671
|
-
width: "narrow",
|
|
672
|
-
context: "formatting"
|
|
673
|
-
});
|
|
674
|
-
case "EEEEEE":
|
|
675
|
-
return a.day(r, {
|
|
676
|
-
width: "short",
|
|
677
|
-
context: "formatting"
|
|
678
|
-
});
|
|
679
|
-
case "EEEE":
|
|
680
|
-
default:
|
|
681
|
-
return a.day(r, {
|
|
682
|
-
width: "wide",
|
|
683
|
-
context: "formatting"
|
|
684
|
-
});
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
// Local day of week
|
|
688
|
-
e: function(e, t, a, r) {
|
|
689
|
-
var i = e.getUTCDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
690
|
-
switch (t) {
|
|
691
|
-
case "e":
|
|
692
|
-
return String(o);
|
|
693
|
-
case "ee":
|
|
694
|
-
return S(o, 2);
|
|
695
|
-
case "eo":
|
|
696
|
-
return a.ordinalNumber(o, {
|
|
697
|
-
unit: "day"
|
|
698
|
-
});
|
|
699
|
-
case "eee":
|
|
700
|
-
return a.day(i, {
|
|
701
|
-
width: "abbreviated",
|
|
702
|
-
context: "formatting"
|
|
703
|
-
});
|
|
704
|
-
case "eeeee":
|
|
705
|
-
return a.day(i, {
|
|
706
|
-
width: "narrow",
|
|
707
|
-
context: "formatting"
|
|
708
|
-
});
|
|
709
|
-
case "eeeeee":
|
|
710
|
-
return a.day(i, {
|
|
711
|
-
width: "short",
|
|
712
|
-
context: "formatting"
|
|
713
|
-
});
|
|
714
|
-
case "eeee":
|
|
715
|
-
default:
|
|
716
|
-
return a.day(i, {
|
|
717
|
-
width: "wide",
|
|
718
|
-
context: "formatting"
|
|
719
|
-
});
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
// Stand-alone local day of week
|
|
723
|
-
c: function(e, t, a, r) {
|
|
724
|
-
var i = e.getUTCDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
725
|
-
switch (t) {
|
|
726
|
-
case "c":
|
|
727
|
-
return String(o);
|
|
728
|
-
case "cc":
|
|
729
|
-
return S(o, t.length);
|
|
730
|
-
case "co":
|
|
731
|
-
return a.ordinalNumber(o, {
|
|
732
|
-
unit: "day"
|
|
733
|
-
});
|
|
734
|
-
case "ccc":
|
|
735
|
-
return a.day(i, {
|
|
736
|
-
width: "abbreviated",
|
|
737
|
-
context: "standalone"
|
|
738
|
-
});
|
|
739
|
-
case "ccccc":
|
|
740
|
-
return a.day(i, {
|
|
741
|
-
width: "narrow",
|
|
742
|
-
context: "standalone"
|
|
743
|
-
});
|
|
744
|
-
case "cccccc":
|
|
745
|
-
return a.day(i, {
|
|
746
|
-
width: "short",
|
|
747
|
-
context: "standalone"
|
|
748
|
-
});
|
|
749
|
-
case "cccc":
|
|
750
|
-
default:
|
|
751
|
-
return a.day(i, {
|
|
752
|
-
width: "wide",
|
|
753
|
-
context: "standalone"
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
},
|
|
757
|
-
// ISO day of week
|
|
758
|
-
i: function(e, t, a) {
|
|
759
|
-
var r = e.getUTCDay(), i = r === 0 ? 7 : r;
|
|
760
|
-
switch (t) {
|
|
761
|
-
case "i":
|
|
762
|
-
return String(i);
|
|
763
|
-
case "ii":
|
|
764
|
-
return S(i, t.length);
|
|
765
|
-
case "io":
|
|
766
|
-
return a.ordinalNumber(i, {
|
|
767
|
-
unit: "day"
|
|
768
|
-
});
|
|
769
|
-
case "iii":
|
|
770
|
-
return a.day(r, {
|
|
771
|
-
width: "abbreviated",
|
|
772
|
-
context: "formatting"
|
|
773
|
-
});
|
|
774
|
-
case "iiiii":
|
|
775
|
-
return a.day(r, {
|
|
776
|
-
width: "narrow",
|
|
777
|
-
context: "formatting"
|
|
778
|
-
});
|
|
779
|
-
case "iiiiii":
|
|
780
|
-
return a.day(r, {
|
|
781
|
-
width: "short",
|
|
782
|
-
context: "formatting"
|
|
783
|
-
});
|
|
784
|
-
case "iiii":
|
|
785
|
-
default:
|
|
786
|
-
return a.day(r, {
|
|
787
|
-
width: "wide",
|
|
788
|
-
context: "formatting"
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
},
|
|
792
|
-
// AM or PM
|
|
793
|
-
a: function(e, t, a) {
|
|
794
|
-
var r = e.getUTCHours(), i = r / 12 >= 1 ? "pm" : "am";
|
|
795
|
-
switch (t) {
|
|
796
|
-
case "a":
|
|
797
|
-
case "aa":
|
|
798
|
-
return a.dayPeriod(i, {
|
|
799
|
-
width: "abbreviated",
|
|
800
|
-
context: "formatting"
|
|
801
|
-
});
|
|
802
|
-
case "aaa":
|
|
803
|
-
return a.dayPeriod(i, {
|
|
804
|
-
width: "abbreviated",
|
|
805
|
-
context: "formatting"
|
|
806
|
-
}).toLowerCase();
|
|
807
|
-
case "aaaaa":
|
|
808
|
-
return a.dayPeriod(i, {
|
|
809
|
-
width: "narrow",
|
|
810
|
-
context: "formatting"
|
|
811
|
-
});
|
|
812
|
-
case "aaaa":
|
|
813
|
-
default:
|
|
814
|
-
return a.dayPeriod(i, {
|
|
815
|
-
width: "wide",
|
|
816
|
-
context: "formatting"
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
},
|
|
820
|
-
// AM, PM, midnight, noon
|
|
821
|
-
b: function(e, t, a) {
|
|
822
|
-
var r = e.getUTCHours(), i;
|
|
823
|
-
switch (r === 12 ? i = re.noon : r === 0 ? i = re.midnight : i = r / 12 >= 1 ? "pm" : "am", t) {
|
|
824
|
-
case "b":
|
|
825
|
-
case "bb":
|
|
826
|
-
return a.dayPeriod(i, {
|
|
827
|
-
width: "abbreviated",
|
|
828
|
-
context: "formatting"
|
|
829
|
-
});
|
|
830
|
-
case "bbb":
|
|
831
|
-
return a.dayPeriod(i, {
|
|
832
|
-
width: "abbreviated",
|
|
833
|
-
context: "formatting"
|
|
834
|
-
}).toLowerCase();
|
|
835
|
-
case "bbbbb":
|
|
836
|
-
return a.dayPeriod(i, {
|
|
837
|
-
width: "narrow",
|
|
838
|
-
context: "formatting"
|
|
839
|
-
});
|
|
840
|
-
case "bbbb":
|
|
841
|
-
default:
|
|
842
|
-
return a.dayPeriod(i, {
|
|
843
|
-
width: "wide",
|
|
844
|
-
context: "formatting"
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
},
|
|
848
|
-
// in the morning, in the afternoon, in the evening, at night
|
|
849
|
-
B: function(e, t, a) {
|
|
850
|
-
var r = e.getUTCHours(), i;
|
|
851
|
-
switch (r >= 17 ? i = re.evening : r >= 12 ? i = re.afternoon : r >= 4 ? i = re.morning : i = re.night, t) {
|
|
852
|
-
case "B":
|
|
853
|
-
case "BB":
|
|
854
|
-
case "BBB":
|
|
855
|
-
return a.dayPeriod(i, {
|
|
856
|
-
width: "abbreviated",
|
|
857
|
-
context: "formatting"
|
|
858
|
-
});
|
|
859
|
-
case "BBBBB":
|
|
860
|
-
return a.dayPeriod(i, {
|
|
861
|
-
width: "narrow",
|
|
862
|
-
context: "formatting"
|
|
863
|
-
});
|
|
864
|
-
case "BBBB":
|
|
865
|
-
default:
|
|
866
|
-
return a.dayPeriod(i, {
|
|
867
|
-
width: "wide",
|
|
868
|
-
context: "formatting"
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
},
|
|
872
|
-
// Hour [1-12]
|
|
873
|
-
h: function(e, t, a) {
|
|
874
|
-
if (t === "ho") {
|
|
875
|
-
var r = e.getUTCHours() % 12;
|
|
876
|
-
return r === 0 && (r = 12), a.ordinalNumber(r, {
|
|
877
|
-
unit: "hour"
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
return K.h(e, t);
|
|
881
|
-
},
|
|
882
|
-
// Hour [0-23]
|
|
883
|
-
H: function(e, t, a) {
|
|
884
|
-
return t === "Ho" ? a.ordinalNumber(e.getUTCHours(), {
|
|
885
|
-
unit: "hour"
|
|
886
|
-
}) : K.H(e, t);
|
|
887
|
-
},
|
|
888
|
-
// Hour [0-11]
|
|
889
|
-
K: function(e, t, a) {
|
|
890
|
-
var r = e.getUTCHours() % 12;
|
|
891
|
-
return t === "Ko" ? a.ordinalNumber(r, {
|
|
892
|
-
unit: "hour"
|
|
893
|
-
}) : S(r, t.length);
|
|
894
|
-
},
|
|
895
|
-
// Hour [1-24]
|
|
896
|
-
k: function(e, t, a) {
|
|
897
|
-
var r = e.getUTCHours();
|
|
898
|
-
return r === 0 && (r = 24), t === "ko" ? a.ordinalNumber(r, {
|
|
899
|
-
unit: "hour"
|
|
900
|
-
}) : S(r, t.length);
|
|
901
|
-
},
|
|
902
|
-
// Minute
|
|
903
|
-
m: function(e, t, a) {
|
|
904
|
-
return t === "mo" ? a.ordinalNumber(e.getUTCMinutes(), {
|
|
905
|
-
unit: "minute"
|
|
906
|
-
}) : K.m(e, t);
|
|
907
|
-
},
|
|
908
|
-
// Second
|
|
909
|
-
s: function(e, t, a) {
|
|
910
|
-
return t === "so" ? a.ordinalNumber(e.getUTCSeconds(), {
|
|
911
|
-
unit: "second"
|
|
912
|
-
}) : K.s(e, t);
|
|
913
|
-
},
|
|
914
|
-
// Fraction of second
|
|
915
|
-
S: function(e, t) {
|
|
916
|
-
return K.S(e, t);
|
|
917
|
-
},
|
|
918
|
-
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
919
|
-
X: function(e, t, a, r) {
|
|
920
|
-
var i = r._originalDate || e, o = i.getTimezoneOffset();
|
|
921
|
-
if (o === 0)
|
|
922
|
-
return "Z";
|
|
923
|
-
switch (t) {
|
|
924
|
-
case "X":
|
|
925
|
-
return Ue(o);
|
|
926
|
-
case "XXXX":
|
|
927
|
-
case "XX":
|
|
928
|
-
return ae(o);
|
|
929
|
-
case "XXXXX":
|
|
930
|
-
case "XXX":
|
|
931
|
-
default:
|
|
932
|
-
return ae(o, ":");
|
|
933
|
-
}
|
|
934
|
-
},
|
|
935
|
-
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
936
|
-
x: function(e, t, a, r) {
|
|
937
|
-
var i = r._originalDate || e, o = i.getTimezoneOffset();
|
|
938
|
-
switch (t) {
|
|
939
|
-
case "x":
|
|
940
|
-
return Ue(o);
|
|
941
|
-
case "xxxx":
|
|
942
|
-
case "xx":
|
|
943
|
-
return ae(o);
|
|
944
|
-
case "xxxxx":
|
|
945
|
-
case "xxx":
|
|
946
|
-
default:
|
|
947
|
-
return ae(o, ":");
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
|
-
// Timezone (GMT)
|
|
951
|
-
O: function(e, t, a, r) {
|
|
952
|
-
var i = r._originalDate || e, o = i.getTimezoneOffset();
|
|
953
|
-
switch (t) {
|
|
954
|
-
case "O":
|
|
955
|
-
case "OO":
|
|
956
|
-
case "OOO":
|
|
957
|
-
return "GMT" + He(o, ":");
|
|
958
|
-
case "OOOO":
|
|
959
|
-
default:
|
|
960
|
-
return "GMT" + ae(o, ":");
|
|
961
|
-
}
|
|
962
|
-
},
|
|
963
|
-
// Timezone (specific non-location)
|
|
964
|
-
z: function(e, t, a, r) {
|
|
965
|
-
var i = r._originalDate || e, o = i.getTimezoneOffset();
|
|
966
|
-
switch (t) {
|
|
967
|
-
case "z":
|
|
968
|
-
case "zz":
|
|
969
|
-
case "zzz":
|
|
970
|
-
return "GMT" + He(o, ":");
|
|
971
|
-
case "zzzz":
|
|
972
|
-
default:
|
|
973
|
-
return "GMT" + ae(o, ":");
|
|
974
|
-
}
|
|
975
|
-
},
|
|
976
|
-
// Seconds timestamp
|
|
977
|
-
t: function(e, t, a, r) {
|
|
978
|
-
var i = r._originalDate || e, o = Math.floor(i.getTime() / 1e3);
|
|
979
|
-
return S(o, t.length);
|
|
980
|
-
},
|
|
981
|
-
// Milliseconds timestamp
|
|
982
|
-
T: function(e, t, a, r) {
|
|
983
|
-
var i = r._originalDate || e, o = i.getTime();
|
|
984
|
-
return S(o, t.length);
|
|
985
|
-
}
|
|
986
|
-
};
|
|
987
|
-
function He(n, e) {
|
|
988
|
-
var t = n > 0 ? "-" : "+", a = Math.abs(n), r = Math.floor(a / 60), i = a % 60;
|
|
989
|
-
if (i === 0)
|
|
990
|
-
return t + String(r);
|
|
991
|
-
var o = e || "";
|
|
992
|
-
return t + String(r) + o + S(i, 2);
|
|
993
|
-
}
|
|
994
|
-
function Ue(n, e) {
|
|
995
|
-
if (n % 60 === 0) {
|
|
996
|
-
var t = n > 0 ? "-" : "+";
|
|
997
|
-
return t + S(Math.abs(n) / 60, 2);
|
|
998
|
-
}
|
|
999
|
-
return ae(n, e);
|
|
1000
|
-
}
|
|
1001
|
-
function ae(n, e) {
|
|
1002
|
-
var t = e || "", a = n > 0 ? "-" : "+", r = Math.abs(n), i = S(Math.floor(r / 60), 2), o = S(r % 60, 2);
|
|
1003
|
-
return a + i + t + o;
|
|
1004
|
-
}
|
|
1005
|
-
const $t = Bt;
|
|
1006
|
-
var Be = function(e, t) {
|
|
1007
|
-
switch (e) {
|
|
1008
|
-
case "P":
|
|
1009
|
-
return t.date({
|
|
1010
|
-
width: "short"
|
|
1011
|
-
});
|
|
1012
|
-
case "PP":
|
|
1013
|
-
return t.date({
|
|
1014
|
-
width: "medium"
|
|
1015
|
-
});
|
|
1016
|
-
case "PPP":
|
|
1017
|
-
return t.date({
|
|
1018
|
-
width: "long"
|
|
1019
|
-
});
|
|
1020
|
-
case "PPPP":
|
|
1021
|
-
default:
|
|
1022
|
-
return t.date({
|
|
1023
|
-
width: "full"
|
|
1024
|
-
});
|
|
1025
|
-
}
|
|
1026
|
-
}, Ke = function(e, t) {
|
|
1027
|
-
switch (e) {
|
|
1028
|
-
case "p":
|
|
1029
|
-
return t.time({
|
|
1030
|
-
width: "short"
|
|
1031
|
-
});
|
|
1032
|
-
case "pp":
|
|
1033
|
-
return t.time({
|
|
1034
|
-
width: "medium"
|
|
1035
|
-
});
|
|
1036
|
-
case "ppp":
|
|
1037
|
-
return t.time({
|
|
1038
|
-
width: "long"
|
|
1039
|
-
});
|
|
1040
|
-
case "pppp":
|
|
1041
|
-
default:
|
|
1042
|
-
return t.time({
|
|
1043
|
-
width: "full"
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
}, Wt = function(e, t) {
|
|
1047
|
-
var a = e.match(/(P+)(p+)?/) || [], r = a[1], i = a[2];
|
|
1048
|
-
if (!i)
|
|
1049
|
-
return Be(e, t);
|
|
1050
|
-
var o;
|
|
1051
|
-
switch (r) {
|
|
1052
|
-
case "P":
|
|
1053
|
-
o = t.dateTime({
|
|
1054
|
-
width: "short"
|
|
1055
|
-
});
|
|
1056
|
-
break;
|
|
1057
|
-
case "PP":
|
|
1058
|
-
o = t.dateTime({
|
|
1059
|
-
width: "medium"
|
|
1060
|
-
});
|
|
1061
|
-
break;
|
|
1062
|
-
case "PPP":
|
|
1063
|
-
o = t.dateTime({
|
|
1064
|
-
width: "long"
|
|
1065
|
-
});
|
|
1066
|
-
break;
|
|
1067
|
-
case "PPPP":
|
|
1068
|
-
default:
|
|
1069
|
-
o = t.dateTime({
|
|
1070
|
-
width: "full"
|
|
1071
|
-
});
|
|
1072
|
-
break;
|
|
1073
|
-
}
|
|
1074
|
-
return o.replace("{{date}}", Be(r, t)).replace("{{time}}", Ke(i, t));
|
|
1075
|
-
}, Yt = {
|
|
1076
|
-
p: Ke,
|
|
1077
|
-
P: Wt
|
|
1078
|
-
};
|
|
1079
|
-
const jt = Yt;
|
|
1080
|
-
var qt = ["D", "DD"], Lt = ["YY", "YYYY"];
|
|
1081
|
-
function zt(n) {
|
|
1082
|
-
return qt.indexOf(n) !== -1;
|
|
1083
|
-
}
|
|
1084
|
-
function Rt(n) {
|
|
1085
|
-
return Lt.indexOf(n) !== -1;
|
|
1086
|
-
}
|
|
1087
|
-
function $e(n, e, t) {
|
|
1088
|
-
if (n === "YYYY")
|
|
1089
|
-
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
1090
|
-
if (n === "YY")
|
|
1091
|
-
throw new RangeError("Use `yy` instead of `YY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
1092
|
-
if (n === "D")
|
|
1093
|
-
throw new RangeError("Use `d` instead of `D` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
1094
|
-
if (n === "DD")
|
|
1095
|
-
throw new RangeError("Use `dd` instead of `DD` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
1096
|
-
}
|
|
1097
|
-
var Qt = {
|
|
1098
|
-
lessThanXSeconds: {
|
|
1099
|
-
one: "less than a second",
|
|
1100
|
-
other: "less than {{count}} seconds"
|
|
1101
|
-
},
|
|
1102
|
-
xSeconds: {
|
|
1103
|
-
one: "1 second",
|
|
1104
|
-
other: "{{count}} seconds"
|
|
1105
|
-
},
|
|
1106
|
-
halfAMinute: "half a minute",
|
|
1107
|
-
lessThanXMinutes: {
|
|
1108
|
-
one: "less than a minute",
|
|
1109
|
-
other: "less than {{count}} minutes"
|
|
1110
|
-
},
|
|
1111
|
-
xMinutes: {
|
|
1112
|
-
one: "1 minute",
|
|
1113
|
-
other: "{{count}} minutes"
|
|
1114
|
-
},
|
|
1115
|
-
aboutXHours: {
|
|
1116
|
-
one: "about 1 hour",
|
|
1117
|
-
other: "about {{count}} hours"
|
|
1118
|
-
},
|
|
1119
|
-
xHours: {
|
|
1120
|
-
one: "1 hour",
|
|
1121
|
-
other: "{{count}} hours"
|
|
1122
|
-
},
|
|
1123
|
-
xDays: {
|
|
1124
|
-
one: "1 day",
|
|
1125
|
-
other: "{{count}} days"
|
|
1126
|
-
},
|
|
1127
|
-
aboutXWeeks: {
|
|
1128
|
-
one: "about 1 week",
|
|
1129
|
-
other: "about {{count}} weeks"
|
|
1130
|
-
},
|
|
1131
|
-
xWeeks: {
|
|
1132
|
-
one: "1 week",
|
|
1133
|
-
other: "{{count}} weeks"
|
|
1134
|
-
},
|
|
1135
|
-
aboutXMonths: {
|
|
1136
|
-
one: "about 1 month",
|
|
1137
|
-
other: "about {{count}} months"
|
|
1138
|
-
},
|
|
1139
|
-
xMonths: {
|
|
1140
|
-
one: "1 month",
|
|
1141
|
-
other: "{{count}} months"
|
|
1142
|
-
},
|
|
1143
|
-
aboutXYears: {
|
|
1144
|
-
one: "about 1 year",
|
|
1145
|
-
other: "about {{count}} years"
|
|
1146
|
-
},
|
|
1147
|
-
xYears: {
|
|
1148
|
-
one: "1 year",
|
|
1149
|
-
other: "{{count}} years"
|
|
1150
|
-
},
|
|
1151
|
-
overXYears: {
|
|
1152
|
-
one: "over 1 year",
|
|
1153
|
-
other: "over {{count}} years"
|
|
1154
|
-
},
|
|
1155
|
-
almostXYears: {
|
|
1156
|
-
one: "almost 1 year",
|
|
1157
|
-
other: "almost {{count}} years"
|
|
1158
|
-
}
|
|
1159
|
-
}, Vt = function(e, t, a) {
|
|
1160
|
-
var r, i = Qt[e];
|
|
1161
|
-
return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
1162
|
-
};
|
|
1163
|
-
const Xt = Vt;
|
|
1164
|
-
function Me(n) {
|
|
1165
|
-
return function() {
|
|
1166
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.width ? String(e.width) : n.defaultWidth, a = n.formats[t] || n.formats[n.defaultWidth];
|
|
1167
|
-
return a;
|
|
1168
|
-
};
|
|
1169
|
-
}
|
|
1170
|
-
var Gt = {
|
|
1171
|
-
full: "EEEE, MMMM do, y",
|
|
1172
|
-
long: "MMMM do, y",
|
|
1173
|
-
medium: "MMM d, y",
|
|
1174
|
-
short: "MM/dd/yyyy"
|
|
1175
|
-
}, Jt = {
|
|
1176
|
-
full: "h:mm:ss a zzzz",
|
|
1177
|
-
long: "h:mm:ss a z",
|
|
1178
|
-
medium: "h:mm:ss a",
|
|
1179
|
-
short: "h:mm a"
|
|
1180
|
-
}, Zt = {
|
|
1181
|
-
full: "{{date}} 'at' {{time}}",
|
|
1182
|
-
long: "{{date}} 'at' {{time}}",
|
|
1183
|
-
medium: "{{date}}, {{time}}",
|
|
1184
|
-
short: "{{date}}, {{time}}"
|
|
1185
|
-
}, It = {
|
|
1186
|
-
date: Me({
|
|
1187
|
-
formats: Gt,
|
|
1188
|
-
defaultWidth: "full"
|
|
1189
|
-
}),
|
|
1190
|
-
time: Me({
|
|
1191
|
-
formats: Jt,
|
|
1192
|
-
defaultWidth: "full"
|
|
1193
|
-
}),
|
|
1194
|
-
dateTime: Me({
|
|
1195
|
-
formats: Zt,
|
|
1196
|
-
defaultWidth: "full"
|
|
1197
|
-
})
|
|
1198
|
-
};
|
|
1199
|
-
const Kt = It;
|
|
1200
|
-
var en = {
|
|
1201
|
-
lastWeek: "'last' eeee 'at' p",
|
|
1202
|
-
yesterday: "'yesterday at' p",
|
|
1203
|
-
today: "'today at' p",
|
|
1204
|
-
tomorrow: "'tomorrow at' p",
|
|
1205
|
-
nextWeek: "eeee 'at' p",
|
|
1206
|
-
other: "P"
|
|
1207
|
-
}, tn = function(e, t, a, r) {
|
|
1208
|
-
return en[e];
|
|
1209
|
-
};
|
|
1210
|
-
const nn = tn;
|
|
1211
|
-
function ce(n) {
|
|
1212
|
-
return function(e, t) {
|
|
1213
|
-
var a = t != null && t.context ? String(t.context) : "standalone", r;
|
|
1214
|
-
if (a === "formatting" && n.formattingValues) {
|
|
1215
|
-
var i = n.defaultFormattingWidth || n.defaultWidth, o = t != null && t.width ? String(t.width) : i;
|
|
1216
|
-
r = n.formattingValues[o] || n.formattingValues[i];
|
|
1217
|
-
} else {
|
|
1218
|
-
var d = n.defaultWidth, h = t != null && t.width ? String(t.width) : n.defaultWidth;
|
|
1219
|
-
r = n.values[h] || n.values[d];
|
|
1220
|
-
}
|
|
1221
|
-
var u = n.argumentCallback ? n.argumentCallback(e) : e;
|
|
1222
|
-
return r[u];
|
|
1223
|
-
};
|
|
1224
|
-
}
|
|
1225
|
-
var an = {
|
|
1226
|
-
narrow: ["B", "A"],
|
|
1227
|
-
abbreviated: ["BC", "AD"],
|
|
1228
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
1229
|
-
}, rn = {
|
|
1230
|
-
narrow: ["1", "2", "3", "4"],
|
|
1231
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1232
|
-
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1233
|
-
}, ln = {
|
|
1234
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1235
|
-
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
1236
|
-
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
1237
|
-
}, on = {
|
|
1238
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1239
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1240
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1241
|
-
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
1242
|
-
}, sn = {
|
|
1243
|
-
narrow: {
|
|
1244
|
-
am: "a",
|
|
1245
|
-
pm: "p",
|
|
1246
|
-
midnight: "mi",
|
|
1247
|
-
noon: "n",
|
|
1248
|
-
morning: "morning",
|
|
1249
|
-
afternoon: "afternoon",
|
|
1250
|
-
evening: "evening",
|
|
1251
|
-
night: "night"
|
|
1252
|
-
},
|
|
1253
|
-
abbreviated: {
|
|
1254
|
-
am: "AM",
|
|
1255
|
-
pm: "PM",
|
|
1256
|
-
midnight: "midnight",
|
|
1257
|
-
noon: "noon",
|
|
1258
|
-
morning: "morning",
|
|
1259
|
-
afternoon: "afternoon",
|
|
1260
|
-
evening: "evening",
|
|
1261
|
-
night: "night"
|
|
1262
|
-
},
|
|
1263
|
-
wide: {
|
|
1264
|
-
am: "a.m.",
|
|
1265
|
-
pm: "p.m.",
|
|
1266
|
-
midnight: "midnight",
|
|
1267
|
-
noon: "noon",
|
|
1268
|
-
morning: "morning",
|
|
1269
|
-
afternoon: "afternoon",
|
|
1270
|
-
evening: "evening",
|
|
1271
|
-
night: "night"
|
|
1272
|
-
}
|
|
1273
|
-
}, un = {
|
|
1274
|
-
narrow: {
|
|
1275
|
-
am: "a",
|
|
1276
|
-
pm: "p",
|
|
1277
|
-
midnight: "mi",
|
|
1278
|
-
noon: "n",
|
|
1279
|
-
morning: "in the morning",
|
|
1280
|
-
afternoon: "in the afternoon",
|
|
1281
|
-
evening: "in the evening",
|
|
1282
|
-
night: "at night"
|
|
1283
|
-
},
|
|
1284
|
-
abbreviated: {
|
|
1285
|
-
am: "AM",
|
|
1286
|
-
pm: "PM",
|
|
1287
|
-
midnight: "midnight",
|
|
1288
|
-
noon: "noon",
|
|
1289
|
-
morning: "in the morning",
|
|
1290
|
-
afternoon: "in the afternoon",
|
|
1291
|
-
evening: "in the evening",
|
|
1292
|
-
night: "at night"
|
|
1293
|
-
},
|
|
1294
|
-
wide: {
|
|
1295
|
-
am: "a.m.",
|
|
1296
|
-
pm: "p.m.",
|
|
1297
|
-
midnight: "midnight",
|
|
1298
|
-
noon: "noon",
|
|
1299
|
-
morning: "in the morning",
|
|
1300
|
-
afternoon: "in the afternoon",
|
|
1301
|
-
evening: "in the evening",
|
|
1302
|
-
night: "at night"
|
|
1303
|
-
}
|
|
1304
|
-
}, cn = function(e, t) {
|
|
1305
|
-
var a = Number(e), r = a % 100;
|
|
1306
|
-
if (r > 20 || r < 10)
|
|
1307
|
-
switch (r % 10) {
|
|
1308
|
-
case 1:
|
|
1309
|
-
return a + "st";
|
|
1310
|
-
case 2:
|
|
1311
|
-
return a + "nd";
|
|
1312
|
-
case 3:
|
|
1313
|
-
return a + "rd";
|
|
1314
|
-
}
|
|
1315
|
-
return a + "th";
|
|
1316
|
-
}, dn = {
|
|
1317
|
-
ordinalNumber: cn,
|
|
1318
|
-
era: ce({
|
|
1319
|
-
values: an,
|
|
1320
|
-
defaultWidth: "wide"
|
|
1321
|
-
}),
|
|
1322
|
-
quarter: ce({
|
|
1323
|
-
values: rn,
|
|
1324
|
-
defaultWidth: "wide",
|
|
1325
|
-
argumentCallback: function(e) {
|
|
1326
|
-
return e - 1;
|
|
1327
|
-
}
|
|
1328
|
-
}),
|
|
1329
|
-
month: ce({
|
|
1330
|
-
values: ln,
|
|
1331
|
-
defaultWidth: "wide"
|
|
1332
|
-
}),
|
|
1333
|
-
day: ce({
|
|
1334
|
-
values: on,
|
|
1335
|
-
defaultWidth: "wide"
|
|
1336
|
-
}),
|
|
1337
|
-
dayPeriod: ce({
|
|
1338
|
-
values: sn,
|
|
1339
|
-
defaultWidth: "wide",
|
|
1340
|
-
formattingValues: un,
|
|
1341
|
-
defaultFormattingWidth: "wide"
|
|
1342
|
-
})
|
|
1343
|
-
};
|
|
1344
|
-
const fn = dn;
|
|
1345
|
-
function de(n) {
|
|
1346
|
-
return function(e) {
|
|
1347
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = t.width, r = a && n.matchPatterns[a] || n.matchPatterns[n.defaultMatchWidth], i = e.match(r);
|
|
1348
|
-
if (!i)
|
|
1349
|
-
return null;
|
|
1350
|
-
var o = i[0], d = a && n.parsePatterns[a] || n.parsePatterns[n.defaultParseWidth], h = Array.isArray(d) ? vn(d, function(f) {
|
|
1351
|
-
return f.test(o);
|
|
1352
|
-
}) : pn(d, function(f) {
|
|
1353
|
-
return f.test(o);
|
|
1354
|
-
}), u;
|
|
1355
|
-
u = n.valueCallback ? n.valueCallback(h) : h, u = t.valueCallback ? t.valueCallback(u) : u;
|
|
1356
|
-
var s = e.slice(o.length);
|
|
1357
|
-
return {
|
|
1358
|
-
value: u,
|
|
1359
|
-
rest: s
|
|
1360
|
-
};
|
|
1361
|
-
};
|
|
1362
|
-
}
|
|
1363
|
-
function pn(n, e) {
|
|
1364
|
-
for (var t in n)
|
|
1365
|
-
if (n.hasOwnProperty(t) && e(n[t]))
|
|
1366
|
-
return t;
|
|
1367
|
-
}
|
|
1368
|
-
function vn(n, e) {
|
|
1369
|
-
for (var t = 0; t < n.length; t++)
|
|
1370
|
-
if (e(n[t]))
|
|
1371
|
-
return t;
|
|
1372
|
-
}
|
|
1373
|
-
function mn(n) {
|
|
1374
|
-
return function(e) {
|
|
1375
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = e.match(n.matchPattern);
|
|
1376
|
-
if (!a)
|
|
1377
|
-
return null;
|
|
1378
|
-
var r = a[0], i = e.match(n.parsePattern);
|
|
1379
|
-
if (!i)
|
|
1380
|
-
return null;
|
|
1381
|
-
var o = n.valueCallback ? n.valueCallback(i[0]) : i[0];
|
|
1382
|
-
o = t.valueCallback ? t.valueCallback(o) : o;
|
|
1383
|
-
var d = e.slice(r.length);
|
|
1384
|
-
return {
|
|
1385
|
-
value: o,
|
|
1386
|
-
rest: d
|
|
1387
|
-
};
|
|
1388
|
-
};
|
|
1389
|
-
}
|
|
1390
|
-
var hn = /^(\d+)(th|st|nd|rd)?/i, gn = /\d+/i, wn = {
|
|
1391
|
-
narrow: /^(b|a)/i,
|
|
1392
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1393
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1394
|
-
}, bn = {
|
|
1395
|
-
any: [/^b/i, /^(a|c)/i]
|
|
1396
|
-
}, yn = {
|
|
1397
|
-
narrow: /^[1234]/i,
|
|
1398
|
-
abbreviated: /^q[1234]/i,
|
|
1399
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1400
|
-
}, Tn = {
|
|
1401
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1402
|
-
}, Dn = {
|
|
1403
|
-
narrow: /^[jfmasond]/i,
|
|
1404
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1405
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1406
|
-
}, Cn = {
|
|
1407
|
-
narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
|
|
1408
|
-
any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
|
|
1409
|
-
}, Mn = {
|
|
1410
|
-
narrow: /^[smtwf]/i,
|
|
1411
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1412
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1413
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1414
|
-
}, Sn = {
|
|
1415
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1416
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1417
|
-
}, xn = {
|
|
1418
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1419
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1420
|
-
}, kn = {
|
|
1421
|
-
any: {
|
|
1422
|
-
am: /^a/i,
|
|
1423
|
-
pm: /^p/i,
|
|
1424
|
-
midnight: /^mi/i,
|
|
1425
|
-
noon: /^no/i,
|
|
1426
|
-
morning: /morning/i,
|
|
1427
|
-
afternoon: /afternoon/i,
|
|
1428
|
-
evening: /evening/i,
|
|
1429
|
-
night: /night/i
|
|
1430
|
-
}
|
|
1431
|
-
}, En = {
|
|
1432
|
-
ordinalNumber: mn({
|
|
1433
|
-
matchPattern: hn,
|
|
1434
|
-
parsePattern: gn,
|
|
1435
|
-
valueCallback: function(e) {
|
|
1436
|
-
return parseInt(e, 10);
|
|
1437
|
-
}
|
|
1438
|
-
}),
|
|
1439
|
-
era: de({
|
|
1440
|
-
matchPatterns: wn,
|
|
1441
|
-
defaultMatchWidth: "wide",
|
|
1442
|
-
parsePatterns: bn,
|
|
1443
|
-
defaultParseWidth: "any"
|
|
1444
|
-
}),
|
|
1445
|
-
quarter: de({
|
|
1446
|
-
matchPatterns: yn,
|
|
1447
|
-
defaultMatchWidth: "wide",
|
|
1448
|
-
parsePatterns: Tn,
|
|
1449
|
-
defaultParseWidth: "any",
|
|
1450
|
-
valueCallback: function(e) {
|
|
1451
|
-
return e + 1;
|
|
1452
|
-
}
|
|
1453
|
-
}),
|
|
1454
|
-
month: de({
|
|
1455
|
-
matchPatterns: Dn,
|
|
1456
|
-
defaultMatchWidth: "wide",
|
|
1457
|
-
parsePatterns: Cn,
|
|
1458
|
-
defaultParseWidth: "any"
|
|
1459
|
-
}),
|
|
1460
|
-
day: de({
|
|
1461
|
-
matchPatterns: Mn,
|
|
1462
|
-
defaultMatchWidth: "wide",
|
|
1463
|
-
parsePatterns: Sn,
|
|
1464
|
-
defaultParseWidth: "any"
|
|
1465
|
-
}),
|
|
1466
|
-
dayPeriod: de({
|
|
1467
|
-
matchPatterns: xn,
|
|
1468
|
-
defaultMatchWidth: "any",
|
|
1469
|
-
parsePatterns: kn,
|
|
1470
|
-
defaultParseWidth: "any"
|
|
1471
|
-
})
|
|
1472
|
-
};
|
|
1473
|
-
const Pn = En;
|
|
1474
|
-
var On = {
|
|
1475
|
-
code: "en-US",
|
|
1476
|
-
formatDistance: Xt,
|
|
1477
|
-
formatLong: Kt,
|
|
1478
|
-
formatRelative: nn,
|
|
1479
|
-
localize: fn,
|
|
1480
|
-
match: Pn,
|
|
1481
|
-
options: {
|
|
1482
|
-
weekStartsOn: 0,
|
|
1483
|
-
firstWeekContainsDate: 1
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
const _n = On;
|
|
1487
|
-
var Fn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Nn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, An = /^'([^]*?)'?$/, Hn = /''/g, Un = /[a-zA-Z]/;
|
|
1488
|
-
function me(n, e, t) {
|
|
1489
|
-
var a, r, i, o, d, h, u, s, f, p, g, w, P, b, D, O, _, U;
|
|
1490
|
-
W(2, arguments);
|
|
1491
|
-
var R = String(e), C = Ce(), k = (a = (r = t == null ? void 0 : t.locale) !== null && r !== void 0 ? r : C.locale) !== null && a !== void 0 ? a : _n, E = te((i = (o = (d = (h = t == null ? void 0 : t.firstWeekContainsDate) !== null && h !== void 0 ? h : t == null || (u = t.locale) === null || u === void 0 || (s = u.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && d !== void 0 ? d : C.firstWeekContainsDate) !== null && o !== void 0 ? o : (f = C.locale) === null || f === void 0 || (p = f.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
|
|
1492
|
-
if (!(E >= 1 && E <= 7))
|
|
1493
|
-
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1494
|
-
var j = te((g = (w = (P = (b = t == null ? void 0 : t.weekStartsOn) !== null && b !== void 0 ? b : t == null || (D = t.locale) === null || D === void 0 || (O = D.options) === null || O === void 0 ? void 0 : O.weekStartsOn) !== null && P !== void 0 ? P : C.weekStartsOn) !== null && w !== void 0 ? w : (_ = C.locale) === null || _ === void 0 || (U = _.options) === null || U === void 0 ? void 0 : U.weekStartsOn) !== null && g !== void 0 ? g : 0);
|
|
1495
|
-
if (!(j >= 0 && j <= 6))
|
|
1496
|
-
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1497
|
-
if (!k.localize)
|
|
1498
|
-
throw new RangeError("locale must contain localize property");
|
|
1499
|
-
if (!k.formatLong)
|
|
1500
|
-
throw new RangeError("locale must contain formatLong property");
|
|
1501
|
-
var q = X(n);
|
|
1502
|
-
if (!Je(q))
|
|
1503
|
-
throw new RangeError("Invalid time value");
|
|
1504
|
-
var Y = St(q), G = kt(q, Y), B = {
|
|
1505
|
-
firstWeekContainsDate: E,
|
|
1506
|
-
weekStartsOn: j,
|
|
1507
|
-
locale: k,
|
|
1508
|
-
_originalDate: q
|
|
1509
|
-
}, ne = R.match(Nn).map(function(H) {
|
|
1510
|
-
var M = H[0];
|
|
1511
|
-
if (M === "p" || M === "P") {
|
|
1512
|
-
var N = jt[M];
|
|
1513
|
-
return N(H, k.formatLong);
|
|
1514
|
-
}
|
|
1515
|
-
return H;
|
|
1516
|
-
}).join("").match(Fn).map(function(H) {
|
|
1517
|
-
if (H === "''")
|
|
1518
|
-
return "'";
|
|
1519
|
-
var M = H[0];
|
|
1520
|
-
if (M === "'")
|
|
1521
|
-
return Bn(H);
|
|
1522
|
-
var N = $t[M];
|
|
1523
|
-
if (N)
|
|
1524
|
-
return !(t != null && t.useAdditionalWeekYearTokens) && Rt(H) && $e(H, e, String(n)), !(t != null && t.useAdditionalDayOfYearTokens) && zt(H) && $e(H, e, String(n)), N(G, H, k.localize, B);
|
|
1525
|
-
if (M.match(Un))
|
|
1526
|
-
throw new RangeError("Format string contains an unescaped latin alphabet character `" + M + "`");
|
|
1527
|
-
return H;
|
|
1528
|
-
}).join("");
|
|
1529
|
-
return ne;
|
|
1530
|
-
}
|
|
1531
|
-
function Bn(n) {
|
|
1532
|
-
var e = n.match(An);
|
|
1533
|
-
return e ? e[1].replace(Hn, "'") : n;
|
|
1534
|
-
}
|
|
1535
|
-
function Se(n, e) {
|
|
1536
|
-
var t;
|
|
1537
|
-
W(1, arguments);
|
|
1538
|
-
var a = te((t = e == null ? void 0 : e.additionalDigits) !== null && t !== void 0 ? t : 2);
|
|
1539
|
-
if (a !== 2 && a !== 1 && a !== 0)
|
|
1540
|
-
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
1541
|
-
if (!(typeof n == "string" || Object.prototype.toString.call(n) === "[object String]"))
|
|
1542
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1543
|
-
var r = jn(n), i;
|
|
1544
|
-
if (r.date) {
|
|
1545
|
-
var o = qn(r.date, a);
|
|
1546
|
-
i = Ln(o.restDateString, o.year);
|
|
1547
|
-
}
|
|
1548
|
-
if (!i || isNaN(i.getTime()))
|
|
1549
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1550
|
-
var d = i.getTime(), h = 0, u;
|
|
1551
|
-
if (r.time && (h = zn(r.time), isNaN(h)))
|
|
1552
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1553
|
-
if (r.timezone) {
|
|
1554
|
-
if (u = Rn(r.timezone), isNaN(u))
|
|
1555
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1556
|
-
} else {
|
|
1557
|
-
var s = new Date(d + h), f = /* @__PURE__ */ new Date(0);
|
|
1558
|
-
return f.setFullYear(s.getUTCFullYear(), s.getUTCMonth(), s.getUTCDate()), f.setHours(s.getUTCHours(), s.getUTCMinutes(), s.getUTCSeconds(), s.getUTCMilliseconds()), f;
|
|
1559
|
-
}
|
|
1560
|
-
return new Date(d + h + u);
|
|
1561
|
-
}
|
|
1562
|
-
var he = {
|
|
1563
|
-
dateTimeDelimiter: /[T ]/,
|
|
1564
|
-
timeZoneDelimiter: /[Z ]/i,
|
|
1565
|
-
timezone: /([Z+-].*)$/
|
|
1566
|
-
}, $n = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Wn = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Yn = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
1567
|
-
function jn(n) {
|
|
1568
|
-
var e = {}, t = n.split(he.dateTimeDelimiter), a;
|
|
1569
|
-
if (t.length > 2)
|
|
1570
|
-
return e;
|
|
1571
|
-
if (/:/.test(t[0]) ? a = t[0] : (e.date = t[0], a = t[1], he.timeZoneDelimiter.test(e.date) && (e.date = n.split(he.timeZoneDelimiter)[0], a = n.substr(e.date.length, n.length))), a) {
|
|
1572
|
-
var r = he.timezone.exec(a);
|
|
1573
|
-
r ? (e.time = a.replace(r[1], ""), e.timezone = r[1]) : e.time = a;
|
|
1574
|
-
}
|
|
1575
|
-
return e;
|
|
1576
|
-
}
|
|
1577
|
-
function qn(n, e) {
|
|
1578
|
-
var t = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"), a = n.match(t);
|
|
1579
|
-
if (!a)
|
|
1580
|
-
return {
|
|
1581
|
-
year: NaN,
|
|
1582
|
-
restDateString: ""
|
|
1583
|
-
};
|
|
1584
|
-
var r = a[1] ? parseInt(a[1]) : null, i = a[2] ? parseInt(a[2]) : null;
|
|
1585
|
-
return {
|
|
1586
|
-
year: i === null ? r : i * 100,
|
|
1587
|
-
restDateString: n.slice((a[1] || a[2]).length)
|
|
1588
|
-
};
|
|
1589
|
-
}
|
|
1590
|
-
function Ln(n, e) {
|
|
1591
|
-
if (e === null)
|
|
1592
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1593
|
-
var t = n.match($n);
|
|
1594
|
-
if (!t)
|
|
1595
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1596
|
-
var a = !!t[4], r = fe(t[1]), i = fe(t[2]) - 1, o = fe(t[3]), d = fe(t[4]), h = fe(t[5]) - 1;
|
|
1597
|
-
if (a)
|
|
1598
|
-
return Jn(e, d, h) ? Qn(e, d, h) : /* @__PURE__ */ new Date(NaN);
|
|
1599
|
-
var u = /* @__PURE__ */ new Date(0);
|
|
1600
|
-
return !Xn(e, i, o) || !Gn(e, r) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(r, o)), u);
|
|
1601
|
-
}
|
|
1602
|
-
function fe(n) {
|
|
1603
|
-
return n ? parseInt(n) : 1;
|
|
1604
|
-
}
|
|
1605
|
-
function zn(n) {
|
|
1606
|
-
var e = n.match(Wn);
|
|
1607
|
-
if (!e)
|
|
1608
|
-
return NaN;
|
|
1609
|
-
var t = xe(e[1]), a = xe(e[2]), r = xe(e[3]);
|
|
1610
|
-
return Zn(t, a, r) ? t * Ge + a * Xe + r * 1e3 : NaN;
|
|
1611
|
-
}
|
|
1612
|
-
function xe(n) {
|
|
1613
|
-
return n && parseFloat(n.replace(",", ".")) || 0;
|
|
1614
|
-
}
|
|
1615
|
-
function Rn(n) {
|
|
1616
|
-
if (n === "Z")
|
|
1617
|
-
return 0;
|
|
1618
|
-
var e = n.match(Yn);
|
|
1619
|
-
if (!e)
|
|
1620
|
-
return 0;
|
|
1621
|
-
var t = e[1] === "+" ? -1 : 1, a = parseInt(e[2]), r = e[3] && parseInt(e[3]) || 0;
|
|
1622
|
-
return In(a, r) ? t * (a * Ge + r * Xe) : NaN;
|
|
1623
|
-
}
|
|
1624
|
-
function Qn(n, e, t) {
|
|
1625
|
-
var a = /* @__PURE__ */ new Date(0);
|
|
1626
|
-
a.setUTCFullYear(n, 0, 4);
|
|
1627
|
-
var r = a.getUTCDay() || 7, i = (e - 1) * 7 + t + 1 - r;
|
|
1628
|
-
return a.setUTCDate(a.getUTCDate() + i), a;
|
|
1629
|
-
}
|
|
1630
|
-
var Vn = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1631
|
-
function et(n) {
|
|
1632
|
-
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
1633
|
-
}
|
|
1634
|
-
function Xn(n, e, t) {
|
|
1635
|
-
return e >= 0 && e <= 11 && t >= 1 && t <= (Vn[e] || (et(n) ? 29 : 28));
|
|
1636
|
-
}
|
|
1637
|
-
function Gn(n, e) {
|
|
1638
|
-
return e >= 1 && e <= (et(n) ? 366 : 365);
|
|
1639
|
-
}
|
|
1640
|
-
function Jn(n, e, t) {
|
|
1641
|
-
return e >= 1 && e <= 53 && t >= 0 && t <= 6;
|
|
1642
|
-
}
|
|
1643
|
-
function Zn(n, e, t) {
|
|
1644
|
-
return n === 24 ? e === 0 && t === 0 : t >= 0 && t < 60 && e >= 0 && e < 60 && n >= 0 && n < 25;
|
|
1645
|
-
}
|
|
1646
|
-
function In(n, e) {
|
|
1647
|
-
return e >= 0 && e <= 59;
|
|
1648
|
-
}
|
|
1649
|
-
function Kn() {
|
|
1650
|
-
const n = new Dt();
|
|
1651
|
-
function e(t, a) {
|
|
1652
|
-
if (!t || typeof t == "string" && t.indexOf("0001") === 0)
|
|
1653
|
-
return "";
|
|
1654
|
-
if (t instanceof Date)
|
|
1655
|
-
return me(t, a);
|
|
1656
|
-
let r = Se(t);
|
|
1657
|
-
if (r == "Invalid Date" && (r = n.create(t) || new Date(t)), Je(r))
|
|
1658
|
-
return r = Se(me(r, "yyyy-MM-dd HH:mm:ss")), me(r, a);
|
|
1659
|
-
if (a.indexOf("HH") === 0 || a.indexOf("hh") === 0) {
|
|
1660
|
-
const i = t.match(/\d*/g).filter((d) => d !== "").join(":");
|
|
1661
|
-
(a === "HH" || a === "hh") && (a += ":mm");
|
|
1662
|
-
const o = Se("2024-06-05 " + i);
|
|
1663
|
-
return me(o, a);
|
|
1664
|
-
}
|
|
1665
|
-
return "";
|
|
1666
|
-
}
|
|
1667
|
-
return {
|
|
1668
|
-
formatTo: e
|
|
1669
|
-
};
|
|
1670
|
-
}
|
|
1671
|
-
function _e(n, e) {
|
|
1672
|
-
const { formatTo: t } = Kn();
|
|
1673
|
-
return t(n, e);
|
|
1674
|
-
}
|
|
1675
|
-
function ea(n) {
|
|
1676
|
-
return (e, t) => {
|
|
1677
|
-
if (!e.hasOwnProperty(n) || e[n] === void 0 || e[n] === null)
|
|
1678
|
-
return 1;
|
|
1679
|
-
if (!t.hasOwnProperty(n) || t[n] === void 0 || t[n] === null)
|
|
1680
|
-
return -1;
|
|
1681
|
-
if (n != "createTime") {
|
|
1682
|
-
let i = "", o = "";
|
|
1683
|
-
return n.indexOf(".") > -1 ? (i = je(n, e), o = je(n, t)) : (i = e[n], o = t[n]), i > o ? 1 : -1;
|
|
1684
|
-
} else {
|
|
1685
|
-
var a = new Date(e[n]), r = new Date(t[n]);
|
|
1686
|
-
return a.getTime() > r.getTime() ? -1 : 1;
|
|
1687
|
-
}
|
|
1688
|
-
};
|
|
1689
|
-
}
|
|
1690
|
-
function tt(n) {
|
|
1691
|
-
return (n || []).findIndex((t) => t == "*") == -1;
|
|
1692
|
-
}
|
|
1693
|
-
function nt(n) {
|
|
1694
|
-
return n != "0 Byte";
|
|
1695
|
-
}
|
|
1696
|
-
function at(n, e) {
|
|
1697
|
-
return n && (n.hasOwnProperty("allowedContentTypes") && (e.allowedContentTypes = n.allowedContentTypes || ["*"], e.allowedContentTypes = e.allowedContentTypes && e.allowedContentTypes.length > 0 ? e.allowedContentTypes : ["*"]), n.hasOwnProperty("maxUploads") && (e.maxUploads = n.maxUploads || 0), n.hasOwnProperty("maxFileSize") && (e.maxFileSize = pe(1024 * 1024 * (parseInt(n.maxFileSize, 10) || 1)))), e;
|
|
1698
|
-
}
|
|
1699
|
-
function We(n) {
|
|
1700
|
-
let e = "ffilepreview--filetype";
|
|
1701
|
-
if (!n)
|
|
1702
|
-
return e + "-any";
|
|
1703
|
-
const t = n.lastIndexOf(".");
|
|
1704
|
-
let a = "";
|
|
1705
|
-
switch (t > -1 && (a = n.substring(t + 1).toLocaleLowerCase()), a) {
|
|
1706
|
-
case "pdf":
|
|
1707
|
-
e += "-pdf";
|
|
1708
|
-
break;
|
|
1709
|
-
case "jpeg":
|
|
1710
|
-
case "jpg":
|
|
1711
|
-
case "gif":
|
|
1712
|
-
case "svg":
|
|
1713
|
-
case "png":
|
|
1714
|
-
case "bmp":
|
|
1715
|
-
e += "-img";
|
|
1716
|
-
break;
|
|
1717
|
-
case "ppt":
|
|
1718
|
-
case "pptx":
|
|
1719
|
-
e += "-ppt";
|
|
1720
|
-
break;
|
|
1721
|
-
case "doc":
|
|
1722
|
-
case "docx":
|
|
1723
|
-
e += "-doc";
|
|
1724
|
-
break;
|
|
1725
|
-
case "xls":
|
|
1726
|
-
case "xlsx":
|
|
1727
|
-
e += "-xls";
|
|
1728
|
-
break;
|
|
1729
|
-
case "txt":
|
|
1730
|
-
e += "-txt";
|
|
1731
|
-
break;
|
|
1732
|
-
case "zip":
|
|
1733
|
-
e += "-zip";
|
|
1734
|
-
break;
|
|
1735
|
-
case "wps":
|
|
1736
|
-
e += "-wps";
|
|
1737
|
-
break;
|
|
1738
|
-
case "wpt":
|
|
1739
|
-
e += "-wpt";
|
|
1740
|
-
break;
|
|
1741
|
-
default:
|
|
1742
|
-
e += "-any";
|
|
1743
|
-
}
|
|
1744
|
-
return e;
|
|
1745
|
-
}
|
|
1746
|
-
function Ye(n) {
|
|
1747
|
-
var e;
|
|
1748
|
-
if (n.type == "done")
|
|
1749
|
-
return 100;
|
|
1750
|
-
if (n.file && n.file.progress) {
|
|
1751
|
-
if (n.file.progress.status == V.Uploading) {
|
|
1752
|
-
let t = ((e = n.file.progress.data) == null ? void 0 : e.percentage) || 5;
|
|
1753
|
-
return t > 5 ? t : 5;
|
|
1754
|
-
}
|
|
1755
|
-
return 5;
|
|
1756
|
-
}
|
|
1757
|
-
return 5;
|
|
1758
|
-
}
|
|
1759
|
-
function ta(n) {
|
|
1760
|
-
let e = n;
|
|
1761
|
-
return n ? (typeof n == "string" && (e = parseInt(n)), pe(e)) : "0 Byte";
|
|
1762
|
-
}
|
|
1763
|
-
function je(n, e) {
|
|
1764
|
-
if (!e)
|
|
1765
|
-
return "";
|
|
1766
|
-
let t = "";
|
|
1767
|
-
return n.indexOf(".") === -1 && e.hasOwnProperty(n) ? t = e[n] : t = n.split(".").reduce((a, r) => a ? a[r] : null, e), t;
|
|
1768
|
-
}
|
|
1769
|
-
function pe(n) {
|
|
1770
|
-
if (n === 0)
|
|
1771
|
-
return "0 Byte";
|
|
1772
|
-
const e = 1024, t = ["Bytes", "KB", "MB", "GB", "TB", "PB"], a = Math.floor(Math.log(n) / Math.log(e));
|
|
1773
|
-
return parseFloat((n / Math.pow(e, a)).toFixed(2)) + " " + t[a];
|
|
1774
|
-
}
|
|
1775
|
-
const na = () => Math.random().toString(36).substring(7);
|
|
1776
|
-
function qe(n, e) {
|
|
1777
|
-
return {
|
|
1778
|
-
fileIndex: e,
|
|
1779
|
-
id: na(),
|
|
1780
|
-
name: n.name,
|
|
1781
|
-
size: n.size,
|
|
1782
|
-
type: n.type,
|
|
1783
|
-
form: new FormData(),
|
|
1784
|
-
progress: {
|
|
1785
|
-
status: V.Queue,
|
|
1786
|
-
data: {
|
|
1787
|
-
percentage: 0,
|
|
1788
|
-
speed: 0,
|
|
1789
|
-
speedHuman: `${pe(0)}/s`,
|
|
1790
|
-
startTime: null,
|
|
1791
|
-
endTime: null,
|
|
1792
|
-
eta: null,
|
|
1793
|
-
etaHuman: null
|
|
1794
|
-
}
|
|
1795
|
-
},
|
|
1796
|
-
lastModifiedDate: _e(new Date(n.lastModified), "yyyy-MM-dd HH:mm:ss"),
|
|
1797
|
-
nativeFile: n
|
|
1798
|
-
};
|
|
1799
|
-
}
|
|
1800
|
-
function aa(n) {
|
|
1801
|
-
let e = [];
|
|
1802
|
-
return n.forEach((t) => {
|
|
1803
|
-
let a = { id: "", name: "", size: 0, type: "", extend: null, extendHeaders: null, createTime: "" };
|
|
1804
|
-
for (let r in a) {
|
|
1805
|
-
let i = r.replace("extend", "response").replace("createTime", "lastModifiedDate");
|
|
1806
|
-
t.hasOwnProperty(i) && (i == "lastModifiedDate" ? a[r] = _e(t[i], "yyyy-MM-dd HH:mm:ss") : a[r] = t[i]);
|
|
1807
|
-
}
|
|
1808
|
-
e.push(a);
|
|
1809
|
-
}), e;
|
|
1810
|
-
}
|
|
1811
|
-
function ra(n, e) {
|
|
1812
|
-
return n ? e <= n * 1024 * 1024 : !0;
|
|
1813
|
-
}
|
|
1814
|
-
function ia(n, e) {
|
|
1815
|
-
if (!n || n.length == 0 || la(n))
|
|
1816
|
-
return !0;
|
|
1817
|
-
if (e.lastIndexOf(".") < 0)
|
|
1818
|
-
return !1;
|
|
1819
|
-
let t = e.substr(e.lastIndexOf("."));
|
|
1820
|
-
return n.findIndex(
|
|
1821
|
-
(a) => a.toLowerCase() == t.toLowerCase()
|
|
1822
|
-
) > -1;
|
|
1823
|
-
}
|
|
1824
|
-
function la(n) {
|
|
1825
|
-
return n.find((e) => e === "*") !== void 0;
|
|
1826
|
-
}
|
|
1827
|
-
function oa(n) {
|
|
1828
|
-
if (n)
|
|
1829
|
-
return n.split(`
|
|
1830
|
-
`).map((e) => e.split(/: */, 2)).filter((e) => e[0]).reduce((e, t) => (e[t[0]] = t[1], e), {});
|
|
1831
|
-
}
|
|
1832
|
-
function Le(n) {
|
|
1833
|
-
return new Date(n * 1e3).toISOString().substr(11, 8);
|
|
1834
|
-
}
|
|
1835
|
-
class sa extends bt {
|
|
1836
|
-
/**
|
|
1837
|
-
* 2019年3月2日,先假定一个一个传入
|
|
1838
|
-
* @param file
|
|
1839
|
-
* @param event
|
|
1840
|
-
*/
|
|
1841
|
-
upload(e, t, a, r) {
|
|
1842
|
-
let i = e[0];
|
|
1843
|
-
return new Promise((o, d) => {
|
|
1844
|
-
const h = t.url || a.url || "", u = t.method || "POST", s = t.data || {}, f = t.headers || {}, p = new XMLHttpRequest(), g = (/* @__PURE__ */ new Date()).getTime();
|
|
1845
|
-
let w = i.progress.data && i.progress.data.startTime || g, P = 0, b = null;
|
|
1846
|
-
p.upload.addEventListener("progress", (D) => {
|
|
1847
|
-
if (D.lengthComputable) {
|
|
1848
|
-
const O = Math.round(D.loaded * 100 / D.total), _ = (/* @__PURE__ */ new Date()).getTime() - g;
|
|
1849
|
-
P = Math.round(D.loaded / _ * 1e3), w = i.progress.data && i.progress.data.startTime || (/* @__PURE__ */ new Date()).getTime(), b = Math.ceil((D.total - D.loaded) / P), i.progress = {
|
|
1850
|
-
status: V.Uploading,
|
|
1851
|
-
data: {
|
|
1852
|
-
percentage: O,
|
|
1853
|
-
speed: P,
|
|
1854
|
-
speedHuman: `${pe(P)}/s`,
|
|
1855
|
-
startTime: w,
|
|
1856
|
-
endTime: null,
|
|
1857
|
-
eta: b,
|
|
1858
|
-
etaHuman: Le(b)
|
|
1859
|
-
}
|
|
1860
|
-
}, r({ type: "uploading", files: [i] });
|
|
1861
|
-
}
|
|
1862
|
-
}, !1), p.upload.addEventListener("error", (D) => {
|
|
1863
|
-
d(D);
|
|
1864
|
-
}), p.onreadystatechange = () => {
|
|
1865
|
-
if (p.readyState === XMLHttpRequest.DONE) {
|
|
1866
|
-
const D = Math.round(i.size / ((/* @__PURE__ */ new Date()).getTime() - w) * 1e3);
|
|
1867
|
-
i.progress = {
|
|
1868
|
-
status: V.Done,
|
|
1869
|
-
data: {
|
|
1870
|
-
percentage: 100,
|
|
1871
|
-
speed: D,
|
|
1872
|
-
speedHuman: `${pe(D)}/s`,
|
|
1873
|
-
startTime: w,
|
|
1874
|
-
endTime: (/* @__PURE__ */ new Date()).getTime(),
|
|
1875
|
-
eta: b,
|
|
1876
|
-
etaHuman: Le(b || 0)
|
|
1877
|
-
}
|
|
1878
|
-
}, i.responseStatus = p.status;
|
|
1879
|
-
try {
|
|
1880
|
-
i.response = JSON.parse(p.response);
|
|
1881
|
-
} catch {
|
|
1882
|
-
i.response = p.response;
|
|
1883
|
-
}
|
|
1884
|
-
i.responseHeaders = oa(p.getAllResponseHeaders()), o({ type: "done", files: [i] });
|
|
1885
|
-
}
|
|
1886
|
-
}, p.open(u, h, !0), p.withCredentials = !!t.withCredentials;
|
|
1887
|
-
try {
|
|
1888
|
-
const D = i.nativeFile;
|
|
1889
|
-
Object.keys(f).forEach((_) => p.setRequestHeader(_, f[_]));
|
|
1890
|
-
let O;
|
|
1891
|
-
t.includeWebKitFormBoundary !== !1 ? (Object.keys(s).forEach((_) => i.form.append(_, s[_])), i.form.append(t.fieldName || "file", D, D.name), O = i.form) : O = D, p.send(O);
|
|
1892
|
-
} catch (D) {
|
|
1893
|
-
d(D);
|
|
1894
|
-
}
|
|
1895
|
-
return () => {
|
|
1896
|
-
p.abort();
|
|
1897
|
-
};
|
|
1898
|
-
});
|
|
1899
|
-
}
|
|
1900
|
-
// 删除附件
|
|
1901
|
-
remove(e, t, a, r) {
|
|
1902
|
-
return new Promise((i, o) => {
|
|
1903
|
-
i({ type: "removed", files: e });
|
|
1904
|
-
});
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
const ua = (n = "") => {
|
|
1908
|
-
let e = null;
|
|
1909
|
-
return n && ie(n, null) && (e = ie(n)), e || (e = ie("NotifyService")), e;
|
|
1910
|
-
}, ca = (n = "") => {
|
|
1911
|
-
let e = null;
|
|
1912
|
-
if (n && ie(n, null)) {
|
|
1913
|
-
const t = ie(n);
|
|
1914
|
-
t && t() && (e = t());
|
|
1915
|
-
}
|
|
1916
|
-
return e || (e = new sa()), e;
|
|
1917
|
-
}, rt = {
|
|
1918
|
-
getNotify: ua,
|
|
1919
|
-
getServerAPI: ca
|
|
1920
|
-
};
|
|
1921
|
-
class da {
|
|
1922
|
-
constructor(e, t) {
|
|
1923
|
-
// 记录在上传的附件数组
|
|
1924
|
-
Z(this, "queue");
|
|
1925
|
-
Z(this, "uploadOpts", {
|
|
1926
|
-
// 默认不限制,0代表不限制 Number.POSITIVE_INFINITY
|
|
1927
|
-
allowedContentTypes: ["*"],
|
|
1928
|
-
maxUploads: 0,
|
|
1929
|
-
/** 单位M,默认是12M,0代表不限制 */
|
|
1930
|
-
maxFileSize: 12,
|
|
1931
|
-
concurrency: Number.POSITIVE_INFINITY,
|
|
1932
|
-
uploadedCount: 0
|
|
1933
|
-
});
|
|
1934
|
-
/**
|
|
1935
|
-
* 服务器端扩展
|
|
1936
|
-
*/
|
|
1937
|
-
Z(this, "extendServerConfig", null);
|
|
1938
|
-
Z(this, "uploadServerSer");
|
|
1939
|
-
this.context = e, this.serverToken = t, this.queue = [], this.uploadServerSer = rt.getServerAPI(this.serverToken);
|
|
1940
|
-
}
|
|
1941
|
-
/**
|
|
1942
|
-
* 处理从服务器端返回的结果
|
|
1943
|
-
* @param uploadOutput
|
|
1944
|
-
*/
|
|
1945
|
-
handleResultFromServer(e) {
|
|
1946
|
-
e.type === "removed" && (this.queue = this.queue.filter(
|
|
1947
|
-
(t) => t.progress.status !== V.Remove
|
|
1948
|
-
), e.hasOwnProperty("message") || (e.message = "被删除")), e.type === "error" && (this.queue = this.queue.filter((t) => e.files && e.files.findIndex((a) => t.id == a.id) < 0)), this.context.emit("stateChange", e);
|
|
1949
|
-
}
|
|
1950
|
-
setOptions(e) {
|
|
1951
|
-
e && (this.uploadOpts = Object.assign(this.uploadOpts, e));
|
|
1952
|
-
}
|
|
1953
|
-
/**
|
|
1954
|
-
* 处理上传的附件信息
|
|
1955
|
-
* @param incomingFiles
|
|
1956
|
-
*/
|
|
1957
|
-
handleFiles(e) {
|
|
1958
|
-
const t = [].reduce.call(
|
|
1959
|
-
e,
|
|
1960
|
-
(a, r, i) => {
|
|
1961
|
-
const o = a.length + this.queue.length + 1, d = this.rejectedReason(
|
|
1962
|
-
r.name,
|
|
1963
|
-
o,
|
|
1964
|
-
r.size
|
|
1965
|
-
);
|
|
1966
|
-
if (d.allowed)
|
|
1967
|
-
a = a.concat(r);
|
|
1968
|
-
else {
|
|
1969
|
-
const h = qe(
|
|
1970
|
-
r,
|
|
1971
|
-
i
|
|
1972
|
-
);
|
|
1973
|
-
this.context.emit("stateChange", {
|
|
1974
|
-
type: "rejected",
|
|
1975
|
-
file: h,
|
|
1976
|
-
message: d.message
|
|
1977
|
-
});
|
|
1978
|
-
}
|
|
1979
|
-
return a;
|
|
1980
|
-
},
|
|
1981
|
-
[]
|
|
1982
|
-
);
|
|
1983
|
-
[].map.call(t, (a, r) => {
|
|
1984
|
-
const i = qe(a, r);
|
|
1985
|
-
this.queue.push(i), this.context.emit("stateChange", { type: "addedToQueue", file: i });
|
|
1986
|
-
}), this.context.emit("stateChange", { type: "allAddedToQueue" });
|
|
1987
|
-
}
|
|
1988
|
-
/**
|
|
1989
|
-
* 获取上传被拒绝的理由
|
|
1990
|
-
* @param name
|
|
1991
|
-
* @param queuelength
|
|
1992
|
-
* @param size
|
|
1993
|
-
* @returns
|
|
1994
|
-
*/
|
|
1995
|
-
rejectedReason(e, t, a) {
|
|
1996
|
-
let r = !1, i = "";
|
|
1997
|
-
return this.queue.findIndex((d) => d.name == e) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !ia(this.uploadOpts.allowedContentTypes, e) ? i = `上传失败:只允许上传${this.uploadOpts.allowedContentTypes.join(",")}类型的文档` : this.exceedMaxUpload(t) ? i = `上传失败:文件总个数超出${this.uploadOpts.maxUploads}限制` : ra(this.uploadOpts.maxFileSize, a) ? a == 0 ? i = "上传失败:不允许文件为空" : r = !0 : i = `上传失败:单个文件大小超出${this.uploadOpts.maxFileSize}MB的限制`, {
|
|
1998
|
-
allowed: r,
|
|
1999
|
-
message: i
|
|
2000
|
-
};
|
|
2001
|
-
}
|
|
2002
|
-
/**
|
|
2003
|
-
* 超出最大上传数值
|
|
2004
|
-
* @param queuelength
|
|
2005
|
-
* @returns
|
|
2006
|
-
*/
|
|
2007
|
-
exceedMaxUpload(e = 0) {
|
|
2008
|
-
if (!this.uploadOpts || !this.uploadOpts.maxUploads)
|
|
2009
|
-
return !1;
|
|
2010
|
-
const t = this.uploadOpts.uploadedCount || 0;
|
|
2011
|
-
return this.uploadOpts.maxUploads > 0 && (this.uploadOpts.maxUploads <= t || e + t > this.uploadOpts.maxUploads);
|
|
2012
|
-
}
|
|
2013
|
-
/**
|
|
2014
|
-
* 从前端传来事件,进行服务器端方法类型判断
|
|
2015
|
-
* @param input
|
|
2016
|
-
*/
|
|
2017
|
-
handleUploadEvent(e) {
|
|
2018
|
-
switch (e.type) {
|
|
2019
|
-
case "upload":
|
|
2020
|
-
const t = this.queue.findIndex(
|
|
2021
|
-
(i) => i === e.file
|
|
2022
|
-
);
|
|
2023
|
-
t !== -1 && e.file && this.serverMethod({
|
|
2024
|
-
files: [this.queue[t]],
|
|
2025
|
-
event: e
|
|
2026
|
-
});
|
|
2027
|
-
break;
|
|
2028
|
-
case "remove":
|
|
2029
|
-
if (!e.id)
|
|
2030
|
-
return;
|
|
2031
|
-
const a = this.queue.findIndex(
|
|
2032
|
-
(i) => i.id === e.id
|
|
2033
|
-
);
|
|
2034
|
-
a !== -1 && (this.queue[a].progress.status = V.Remove, this.handleInputEvent({
|
|
2035
|
-
files: [this.queue[a]],
|
|
2036
|
-
event: e
|
|
2037
|
-
}));
|
|
2038
|
-
break;
|
|
2039
|
-
case "removeAll":
|
|
2040
|
-
const r = this.queue.filter(
|
|
2041
|
-
(i) => {
|
|
2042
|
-
var o;
|
|
2043
|
-
return ((o = i == null ? void 0 : i.progress) == null ? void 0 : o.status) === V.Queue;
|
|
2044
|
-
}
|
|
2045
|
-
);
|
|
2046
|
-
r.length && (this.context.emit("stateChange", {
|
|
2047
|
-
type: "cancelled",
|
|
2048
|
-
files: r,
|
|
2049
|
-
message: "删除附件成功"
|
|
2050
|
-
}), this.queue = this.queue.filter(
|
|
2051
|
-
(i) => {
|
|
2052
|
-
var o;
|
|
2053
|
-
return ((o = i == null ? void 0 : i.progress) == null ? void 0 : o.status) != V.Queue;
|
|
2054
|
-
}
|
|
2055
|
-
)), this.queue.length && (e.type = "remove", this.queue.map(
|
|
2056
|
-
(i) => i.progress.status = V.Remove
|
|
2057
|
-
), this.serverMethod({
|
|
2058
|
-
files: this.queue,
|
|
2059
|
-
event: e
|
|
2060
|
-
}));
|
|
2061
|
-
break;
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
/**
|
|
2065
|
-
* 处理上传的扩展参数
|
|
2066
|
-
* @param extendSer
|
|
2067
|
-
*/
|
|
2068
|
-
setExtendServerConfig(e) {
|
|
2069
|
-
this.extendServerConfig = e;
|
|
2070
|
-
}
|
|
2071
|
-
/**
|
|
2072
|
-
* 处理服务器接口的方法
|
|
2073
|
-
* @param upload
|
|
2074
|
-
* @returns
|
|
2075
|
-
*/
|
|
2076
|
-
serverMethod(e) {
|
|
2077
|
-
let t;
|
|
2078
|
-
switch (e.event.type) {
|
|
2079
|
-
case "upload":
|
|
2080
|
-
t = this.upload(e.files, e.event, (a) => this.handleResultFromServer(a));
|
|
2081
|
-
break;
|
|
2082
|
-
case "removeAll":
|
|
2083
|
-
case "remove":
|
|
2084
|
-
t = this.remove(e.files, e.event, (a) => this.handleResultFromServer(a));
|
|
2085
|
-
break;
|
|
2086
|
-
default:
|
|
2087
|
-
t = null;
|
|
2088
|
-
}
|
|
2089
|
-
t && t.then((a) => {
|
|
2090
|
-
this.handleResultFromServer(a);
|
|
2091
|
-
}).catch((a) => {
|
|
2092
|
-
this.handleResultFromServer(a);
|
|
2093
|
-
});
|
|
2094
|
-
}
|
|
2095
|
-
/**
|
|
2096
|
-
* 上传附件
|
|
2097
|
-
* @param files
|
|
2098
|
-
* @param event
|
|
2099
|
-
* @returns
|
|
2100
|
-
*/
|
|
2101
|
-
upload(e, t, a) {
|
|
2102
|
-
return this.context.emit("stateChange", { type: "start", files: e }), this.uploadServerSer.upload(e, t, this.extendServerConfig, a);
|
|
2103
|
-
}
|
|
2104
|
-
/**
|
|
2105
|
-
* 删除附件
|
|
2106
|
-
* @param files
|
|
2107
|
-
* @param event
|
|
2108
|
-
* @returns
|
|
2109
|
-
*/
|
|
2110
|
-
remove(e, t, a) {
|
|
2111
|
-
return this.uploadServerSer.remove(e, t, this.extendServerConfig, a);
|
|
2112
|
-
}
|
|
2113
|
-
/**
|
|
2114
|
-
* 重置
|
|
2115
|
-
*/
|
|
2116
|
-
reset() {
|
|
2117
|
-
this.queue = [];
|
|
2118
|
-
}
|
|
2119
|
-
/**
|
|
2120
|
-
* 销毁
|
|
2121
|
-
*/
|
|
2122
|
-
destroyed() {
|
|
2123
|
-
this.reset();
|
|
2124
|
-
}
|
|
2125
|
-
}
|
|
2126
|
-
const it = /* @__PURE__ */ ve({
|
|
2127
|
-
name: "FFileSelect",
|
|
2128
|
-
props: gt,
|
|
2129
|
-
emits: ["change", "stateChange"],
|
|
2130
|
-
setup(n, e) {
|
|
2131
|
-
const t = new da(e, n.uploadServerToken), a = ft(), r = $("*");
|
|
2132
|
-
let i;
|
|
2133
|
-
const o = () => {
|
|
2134
|
-
i.files && (e.emit("change", i.files), t.handleFiles(i.files), i.value = null);
|
|
2135
|
-
};
|
|
2136
|
-
ge(() => n.disabled, () => {
|
|
2137
|
-
d();
|
|
2138
|
-
}), ge(() => n.uploadedCount, (s) => {
|
|
2139
|
-
t.setOptions({
|
|
2140
|
-
uploadedCount: s
|
|
2141
|
-
});
|
|
2142
|
-
}), ge(() => n.extendConfig, (s) => {
|
|
2143
|
-
t.setExtendServerConfig(s);
|
|
2144
|
-
});
|
|
2145
|
-
function d() {
|
|
2146
|
-
i.value = null, t.reset();
|
|
2147
|
-
}
|
|
2148
|
-
function h(s) {
|
|
2149
|
-
s && s.stopPropagation(), i.click();
|
|
2150
|
-
}
|
|
2151
|
-
function u(s) {
|
|
2152
|
-
t.handleUploadEvent(s);
|
|
2153
|
-
}
|
|
2154
|
-
return Re(() => {
|
|
2155
|
-
var s, f;
|
|
2156
|
-
i = (s = a == null ? void 0 : a.proxy) == null ? void 0 : s.$refs.uploadInput, d(), t.setOptions(n.options), t.setExtendServerConfig(n.extendConfig), r.value = (((f = n.options) == null ? void 0 : f.allowedContentTypes) || ["*"]).join(",");
|
|
2157
|
-
}), Qe(() => {
|
|
2158
|
-
}), e.expose({
|
|
2159
|
-
handleUploadEvent: u
|
|
2160
|
-
}), () => l(De, null, [l("input", {
|
|
2161
|
-
ref: "uploadInput",
|
|
2162
|
-
type: "file",
|
|
2163
|
-
class: "ffileupload--browser",
|
|
2164
|
-
disabled: n.disabled,
|
|
2165
|
-
multiple: n.enableMulti,
|
|
2166
|
-
accept: r.value,
|
|
2167
|
-
onChange: () => o(),
|
|
2168
|
-
style: "width: 10px"
|
|
2169
|
-
}, null), l("div", {
|
|
2170
|
-
class: ["upload-container", n.disabled ? "f-state-disabled" : ""],
|
|
2171
|
-
onClick: (s) => h(s),
|
|
2172
|
-
title: n.selectText
|
|
2173
|
-
}, [l("i", {
|
|
2174
|
-
class: "f-icon f-icon-upload upload-icon",
|
|
2175
|
-
style: "top: 2px;position: relative;"
|
|
2176
|
-
}, null), n.selectText])]);
|
|
2177
|
-
}
|
|
2178
|
-
}), lt = {}, ot = {};
|
|
2179
|
-
function Fe(n) {
|
|
2180
|
-
const { properties: e, title: t } = n, a = Object.keys(e).reduce((r, i) => (r[i] = e[i].type === "object" && e[i].properties ? Fe(e[i]) : vt(e[i].default), r), {});
|
|
2181
|
-
return a.id = `${t}-${Date.now()}`, a;
|
|
2182
|
-
}
|
|
2183
|
-
function Pe(n, e = {}) {
|
|
2184
|
-
const t = lt[n];
|
|
2185
|
-
if (t) {
|
|
2186
|
-
let a = Fe(t);
|
|
2187
|
-
const r = ot[n];
|
|
2188
|
-
return a = r ? r({ getSchemaByType: Pe }, a, e) : a, a;
|
|
2189
|
-
}
|
|
2190
|
-
return null;
|
|
2191
|
-
}
|
|
2192
|
-
function fa(n, e) {
|
|
2193
|
-
const t = Fe(e);
|
|
2194
|
-
return Object.keys(n).reduce((a, r) => (a[r] = n[r], a), t), t;
|
|
2195
|
-
}
|
|
2196
|
-
function pa(n, e) {
|
|
2197
|
-
return Object.keys(n).filter((a) => n[a] != null).reduce((a, r) => {
|
|
2198
|
-
if (e.has(r)) {
|
|
2199
|
-
const i = e.get(r);
|
|
2200
|
-
if (typeof i == "string")
|
|
2201
|
-
a[i] = n[r];
|
|
2202
|
-
else {
|
|
2203
|
-
const o = i(r, n[r], n);
|
|
2204
|
-
Object.assign(a, o);
|
|
2205
|
-
}
|
|
2206
|
-
} else
|
|
2207
|
-
a[r] = n[r];
|
|
2208
|
-
return a;
|
|
2209
|
-
}, {});
|
|
2210
|
-
}
|
|
2211
|
-
function va(n, e, t = /* @__PURE__ */ new Map()) {
|
|
2212
|
-
const a = fa(n, e);
|
|
2213
|
-
return pa(a, t);
|
|
2214
|
-
}
|
|
2215
|
-
function ma(n = {}) {
|
|
2216
|
-
function e(u, s, f, p) {
|
|
2217
|
-
if (typeof f == "number")
|
|
2218
|
-
return p[u].length === f;
|
|
2219
|
-
if (typeof f == "object") {
|
|
2220
|
-
const g = Object.keys(f)[0], w = f[g];
|
|
2221
|
-
if (g === "not")
|
|
2222
|
-
return Number(p[u].length) !== Number(w);
|
|
2223
|
-
if (g === "moreThan")
|
|
2224
|
-
return Number(p[u].length) >= Number(w);
|
|
2225
|
-
if (g === "lessThan")
|
|
2226
|
-
return Number(p[u].length) <= Number(w);
|
|
2227
|
-
}
|
|
2228
|
-
return !1;
|
|
2229
|
-
}
|
|
2230
|
-
function t(u, s, f, p) {
|
|
2231
|
-
return p[s] && p[s].propertyValue && String(p[s].propertyValue.value) === String(f);
|
|
2232
|
-
}
|
|
2233
|
-
const a = /* @__PURE__ */ new Map([
|
|
2234
|
-
["length", e],
|
|
2235
|
-
["getProperty", t]
|
|
2236
|
-
]);
|
|
2237
|
-
Object.keys(n).reduce((u, s) => (u.set(s, n[s]), u), a);
|
|
2238
|
-
function r(u, s) {
|
|
2239
|
-
const f = u;
|
|
2240
|
-
return typeof s == "number" ? [{ target: f, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: f, operator: "getProperty", param: u, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
|
|
2241
|
-
if (p === "length")
|
|
2242
|
-
return { target: f, operator: "length", param: null, value: s[p] };
|
|
2243
|
-
const g = p, w = s[p];
|
|
2244
|
-
return { target: f, operator: u, param: g, value: w };
|
|
2245
|
-
}) : [];
|
|
2246
|
-
}
|
|
2247
|
-
function i(u) {
|
|
2248
|
-
return Object.keys(u).reduce((f, p) => {
|
|
2249
|
-
const g = r(p, u[p]);
|
|
2250
|
-
return f.push(...g), f;
|
|
2251
|
-
}, []);
|
|
2252
|
-
}
|
|
2253
|
-
function o(u, s) {
|
|
2254
|
-
if (a.has(u.operator)) {
|
|
2255
|
-
const f = a.get(u.operator);
|
|
2256
|
-
return f && f(u.target, u.param, u.value, s) || !1;
|
|
2257
|
-
}
|
|
2258
|
-
return !1;
|
|
2259
|
-
}
|
|
2260
|
-
function d(u, s) {
|
|
2261
|
-
return i(u).reduce((g, w) => g && o(w, s), !0);
|
|
2262
|
-
}
|
|
2263
|
-
function h(u, s) {
|
|
2264
|
-
const f = Object.keys(u), p = f.includes("allOf"), g = f.includes("anyOf"), w = p || g, D = (w ? u[w ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((_) => d(_, s));
|
|
2265
|
-
return p ? !D.includes(!1) : D.includes(!0);
|
|
2266
|
-
}
|
|
2267
|
-
return { parseValueSchema: h };
|
|
2268
|
-
}
|
|
2269
|
-
const ha = {}, ga = {};
|
|
2270
|
-
ma();
|
|
2271
|
-
function wa(n, e, t = /* @__PURE__ */ new Map(), a = (o, d, h) => d, r = {}, i = (o) => o) {
|
|
2272
|
-
return lt[e.title] = e, ot[e.title] = a, ha[e.title] = r, ga[e.title] = i, (o = {}) => {
|
|
2273
|
-
const d = va(o, e, t), h = Object.keys(n).reduce((u, s) => (u[s] = n[s].default, u), {});
|
|
2274
|
-
return Object.assign(h, d);
|
|
2275
|
-
};
|
|
2276
|
-
}
|
|
2277
|
-
const ba = "https://json-schema.org/draft/2020-12/schema", ya = "https://farris-design.gitee.io/uploader.schema.json", Ta = "uploader", Da = "A Farris Component", Ca = "object", Ma = {
|
|
2278
|
-
id: {
|
|
2279
|
-
description: "The unique identifier for uploader",
|
|
2280
|
-
type: "string"
|
|
2281
|
-
},
|
|
2282
|
-
type: {
|
|
2283
|
-
description: "The type string of uploader",
|
|
2284
|
-
type: "string",
|
|
2285
|
-
default: "uploader"
|
|
2286
|
-
},
|
|
2287
|
-
appearance: {
|
|
2288
|
-
description: "",
|
|
2289
|
-
type: "object",
|
|
2290
|
-
properties: {
|
|
2291
|
-
class: {
|
|
2292
|
-
type: "string"
|
|
2293
|
-
},
|
|
2294
|
-
style: {
|
|
2295
|
-
type: "string"
|
|
2296
|
-
}
|
|
2297
|
-
},
|
|
2298
|
-
default: {}
|
|
2299
|
-
},
|
|
2300
|
-
binding: {
|
|
2301
|
-
description: "",
|
|
2302
|
-
type: "object",
|
|
2303
|
-
default: {}
|
|
2304
|
-
},
|
|
2305
|
-
disable: {
|
|
2306
|
-
type: "boolean",
|
|
2307
|
-
default: !1
|
|
2308
|
-
},
|
|
2309
|
-
placeHolder: {
|
|
2310
|
-
description: "",
|
|
2311
|
-
type: "string",
|
|
2312
|
-
default: ""
|
|
2313
|
-
},
|
|
2314
|
-
readonly: {
|
|
2315
|
-
description: "",
|
|
2316
|
-
type: "boolean",
|
|
2317
|
-
default: !1
|
|
2318
|
-
},
|
|
2319
|
-
tabindex: {
|
|
2320
|
-
description: "",
|
|
2321
|
-
type: "number",
|
|
2322
|
-
default: -1
|
|
2323
|
-
},
|
|
2324
|
-
visible: {
|
|
2325
|
-
description: "",
|
|
2326
|
-
type: "boolean",
|
|
2327
|
-
default: !0
|
|
2328
|
-
}
|
|
2329
|
-
}, Sa = [
|
|
2330
|
-
"id",
|
|
2331
|
-
"type"
|
|
2332
|
-
], xa = {
|
|
2333
|
-
$schema: ba,
|
|
2334
|
-
$id: ya,
|
|
2335
|
-
title: Ta,
|
|
2336
|
-
description: Da,
|
|
2337
|
-
type: Ca,
|
|
2338
|
-
properties: Ma,
|
|
2339
|
-
required: Sa
|
|
2340
|
-
};
|
|
2341
|
-
function ka(n, e) {
|
|
2342
|
-
return { customClass: e.class };
|
|
2343
|
-
}
|
|
2344
|
-
const Ea = /* @__PURE__ */ new Map([
|
|
2345
|
-
["appearance", ka]
|
|
2346
|
-
]);
|
|
2347
|
-
function Pa(n, e, t) {
|
|
2348
|
-
return e;
|
|
2349
|
-
}
|
|
2350
|
-
const Oa = "uploader", _a = "A Farris Component", Fa = "object", Na = {
|
|
2351
|
-
basic: {
|
|
2352
|
-
description: "Basic Infomation",
|
|
2353
|
-
title: "基本信息",
|
|
2354
|
-
properties: {
|
|
2355
|
-
id: {
|
|
2356
|
-
description: "组件标识",
|
|
2357
|
-
title: "标识",
|
|
2358
|
-
type: "string",
|
|
2359
|
-
readonly: !0
|
|
2360
|
-
},
|
|
2361
|
-
type: {
|
|
2362
|
-
description: "组件类型",
|
|
2363
|
-
title: "控件类型",
|
|
2364
|
-
type: "select",
|
|
2365
|
-
editor: {
|
|
2366
|
-
type: "waiting for modification",
|
|
2367
|
-
enum: []
|
|
2368
|
-
}
|
|
2369
|
-
}
|
|
2370
|
-
}
|
|
2371
|
-
}
|
|
2372
|
-
}, Aa = {
|
|
2373
|
-
title: Oa,
|
|
2374
|
-
description: _a,
|
|
2375
|
-
type: Fa,
|
|
2376
|
-
categories: Na
|
|
2377
|
-
}, Ne = {
|
|
2378
|
-
/** 内容区域填充 */
|
|
2379
|
-
contentFill: { type: Boolean, default: !1 },
|
|
2380
|
-
/** 排序字段 */
|
|
2381
|
-
orderField: { type: String, default: "createTime" },
|
|
2382
|
-
previewColumns: {
|
|
2383
|
-
type: Array,
|
|
2384
|
-
default: [
|
|
2385
|
-
{ field: "name", width: 200, title: "文件名", checkbox: !0 },
|
|
2386
|
-
{ field: "size", width: 100, title: "大小" },
|
|
2387
|
-
{ field: "createTime", width: 100, title: "日期" },
|
|
2388
|
-
{ field: "state", width: 100, title: "状态" },
|
|
2389
|
-
{ field: "action", width: 100, title: "操作" }
|
|
2390
|
-
]
|
|
2391
|
-
},
|
|
2392
|
-
previewVisible: { type: Boolean, default: !0 },
|
|
2393
|
-
/** 是否启用批量操作 */
|
|
2394
|
-
previewEnableMulti: { type: Boolean, default: !0 },
|
|
2395
|
-
/** 默认重命名 */
|
|
2396
|
-
previewDefaultRename: { type: String, default: "" },
|
|
2397
|
-
/** 附件上传部分禁用状态 */
|
|
2398
|
-
uploadDisabled: { type: Boolean, default: !1 },
|
|
2399
|
-
// 附件上传部分是否可见
|
|
2400
|
-
uploadVisible: { type: Boolean, default: !0 },
|
|
2401
|
-
// 需要重置,通过不断的赋值来改变
|
|
2402
|
-
// @Input() uploadNeedReset: Observable<any> = new Subject();
|
|
2403
|
-
/** 选择文件按钮上的文字 */
|
|
2404
|
-
uploadSelectText: { type: String, default: "选择文件" },
|
|
2405
|
-
/** 启用多选 */
|
|
2406
|
-
uploadEnableMulti: { type: Boolean, default: !0 },
|
|
2407
|
-
/** 已经上传文件 */
|
|
2408
|
-
uploadedCount: { type: Number, default: 0 },
|
|
2409
|
-
/** 整个控件禁用 */
|
|
2410
|
-
disabled: { type: Boolean, default: !1 },
|
|
2411
|
-
/** 下载按钮是否禁用 */
|
|
2412
|
-
downloadButtonDisable: { type: Boolean, default: !1 },
|
|
2413
|
-
/** 预览按钮是否禁用 */
|
|
2414
|
-
previewButtonDisable: { type: Boolean, default: !1 },
|
|
2415
|
-
/** 删除按钮是否禁用 */
|
|
2416
|
-
deleteButtonDisable: { type: Boolean, default: !1 },
|
|
2417
|
-
/**
|
|
2418
|
-
* 自定义展示信息
|
|
2419
|
-
*/
|
|
2420
|
-
customInfo: { type: String, default: "" },
|
|
2421
|
-
/**
|
|
2422
|
-
* 处理传递预览的数据
|
|
2423
|
-
*/
|
|
2424
|
-
fileInfos: { type: Array, default: [] },
|
|
2425
|
-
/**
|
|
2426
|
-
* 上传配置
|
|
2427
|
-
*/
|
|
2428
|
-
uploadOptions: { type: Object, default: null },
|
|
2429
|
-
/**
|
|
2430
|
-
* 发起服务器端请求,某个组件使用的特殊的参数
|
|
2431
|
-
*/
|
|
2432
|
-
extendConfig: { type: Object, default: {} },
|
|
2433
|
-
/**
|
|
2434
|
-
* 附件服务器端服务注入的Token
|
|
2435
|
-
*/
|
|
2436
|
-
uploadServerToken: { type: String, default: "" },
|
|
2437
|
-
/**
|
|
2438
|
-
* 提示服务注入的Token
|
|
2439
|
-
*/
|
|
2440
|
-
notifyServiceToken: { type: String, default: "" }
|
|
2441
|
-
}, ze = wa(Ne, xa, Ea, Pa, Aa), st = (n, e, t) => {
|
|
2442
|
-
const a = rt.getNotify(n.notifyServiceToken), r = $(n.fileInfos), {
|
|
2443
|
-
disabled: i,
|
|
2444
|
-
uploadVisible: o,
|
|
2445
|
-
uploadDisabled: d,
|
|
2446
|
-
previewVisible: h,
|
|
2447
|
-
orderField: u,
|
|
2448
|
-
previewEnableMulti: s,
|
|
2449
|
-
downloadButtonDisable: f,
|
|
2450
|
-
previewColumns: p,
|
|
2451
|
-
uploadEnableMulti: g,
|
|
2452
|
-
previewButtonDisable: w
|
|
2453
|
-
} = Oe(n), P = $(!1), b = $([]), D = Ee(() => b.value.length), O = $([]), _ = $(""), U = Ee(() => {
|
|
2454
|
-
(!r.value.length || b.value.length !== r.value.length) && (P.value = !1);
|
|
2455
|
-
let c = r.value.map((m) => (m.hasOwnProperty("size") || (m.size = void 0), m.hasOwnProperty("createTime") || (m.createTime = void 0), m));
|
|
2456
|
-
if (c.sort(ea(u.value)), s.value) {
|
|
2457
|
-
let m = c.map((y) => (y.checked = !!b.value.find((A) => A.id === y.id) || P.value, y));
|
|
2458
|
-
return b.value = [...m].filter((y) => y.checked), m;
|
|
2459
|
-
} else
|
|
2460
|
-
return c;
|
|
2461
|
-
}), R = (c, m) => {
|
|
2462
|
-
c.stopImmediatePropagation(), e.emit("fileDownloadEvent", { fileInfos: [m], name: "" });
|
|
2463
|
-
}, C = (c, m) => {
|
|
2464
|
-
c.stopImmediatePropagation(), !w.value && e.emit("filePreviewEvent", m);
|
|
2465
|
-
}, k = (c, m) => {
|
|
2466
|
-
m.checked && (b.value = b.value.filter((y) => y.id !== m.id)), e.emit("fileRemoveEvent", m);
|
|
2467
|
-
}, E = (c, m = "preview") => m == "preview" ? ["state", "name", "action", "size", "createTime"].findIndex((A) => A == c.field) > -1 : m == "upload" ? ["state", "name", "size"].findIndex((A) => A == c.field) > -1 : !1, j = (c) => !(c.field == "state" && (d.value || !o.value)), q = (c) => {
|
|
2468
|
-
if (c.stopImmediatePropagation(), D.value > 1) {
|
|
2469
|
-
let m = "";
|
|
2470
|
-
m = Y(b.value[0].name), e.emit("fileDownloadEvent", {
|
|
2471
|
-
fileInfos: b.value,
|
|
2472
|
-
name: m
|
|
2473
|
-
});
|
|
2474
|
-
}
|
|
2475
|
-
}, Y = (c) => c.lastIndexOf(".") > 0 ? c.substring(0, c.lastIndexOf(".")) : "", G = (c) => {
|
|
2476
|
-
c.stopImmediatePropagation(), e.emit("fileRemoveEvent", b.value);
|
|
2477
|
-
}, B = (c) => {
|
|
2478
|
-
const m = U.value;
|
|
2479
|
-
c.checked ? (m.forEach((y) => {
|
|
2480
|
-
y.checked = !0;
|
|
2481
|
-
}), b.value = [...U.value], P.value = !0) : (b.value = [], m.forEach((y) => {
|
|
2482
|
-
y.checked = !1;
|
|
2483
|
-
}), P.value = !1), e.emit("previewMultiSelectedEvent", b.value);
|
|
2484
|
-
}, ne = (c) => {
|
|
2485
|
-
const m = b.value.findIndex((Q) => Q.id == c.id), y = m > -1;
|
|
2486
|
-
let A = U.value.find((Q) => Q.id == c.id);
|
|
2487
|
-
A && (A.checked = c.checked), c.checked && !y && A && b.value.push(A), !c.checked && y && b.value.splice(m, 1), U.value.length > 0 && (b.value.length == U.value.length ? P.value = !0 : P.value = !1), se(null, A), e.emit("previewMultiSelectedEvent", b.value);
|
|
2488
|
-
}, H = (c) => {
|
|
2489
|
-
if (c.type === "addedToQueue" && typeof c.file < "u")
|
|
2490
|
-
O.value.push({ type: c.type, file: c.file }), le(c.file);
|
|
2491
|
-
else if (c.type === "start")
|
|
2492
|
-
oe(c, "");
|
|
2493
|
-
else if (c.type == "done") {
|
|
2494
|
-
oe(c, "done");
|
|
2495
|
-
let m = (c.files || []).map((y) => ({
|
|
2496
|
-
checked: !1,
|
|
2497
|
-
id: y.id,
|
|
2498
|
-
name: y.name,
|
|
2499
|
-
size: y.size,
|
|
2500
|
-
createTime: _e(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss")
|
|
2501
|
-
}));
|
|
2502
|
-
r.value = [...m, ...U.value], M(c), e.emit("fUploadDoneEvent", aa(c.files || []));
|
|
2503
|
-
} else
|
|
2504
|
-
c.type === "cancelled" || c.type === "removed" || c.type == "error" ? (O.value = O.value.filter((m) => c.files && c.files.findIndex((y) => {
|
|
2505
|
-
var A;
|
|
2506
|
-
return ((A = m == null ? void 0 : m.file) == null ? void 0 : A.id) == y.id;
|
|
2507
|
-
}) < 0), N(c)) : c.type === "rejected" && typeof c.file < "u" && N(c);
|
|
2508
|
-
}, M = (c) => {
|
|
2509
|
-
const m = c.files.map((y) => y.id);
|
|
2510
|
-
O.value = O.value.filter((y) => !(m.findIndex((Q) => {
|
|
2511
|
-
var I;
|
|
2512
|
-
return Q == ((I = y == null ? void 0 : y.file) == null ? void 0 : I.id);
|
|
2513
|
-
}) > -1)), z({
|
|
2514
|
-
type: "hide",
|
|
2515
|
-
id: m.join(",")
|
|
2516
|
-
});
|
|
2517
|
-
}, N = (c) => {
|
|
2518
|
-
let m = "warning";
|
|
2519
|
-
(c.type == "cancelled" || c.type == "removed") && (m = "success");
|
|
2520
|
-
const y = c.hasOwnProperty("message") ? c.message : "";
|
|
2521
|
-
a.show({
|
|
2522
|
-
options: {
|
|
2523
|
-
type: m,
|
|
2524
|
-
message: y
|
|
2525
|
-
},
|
|
2526
|
-
position: "top-center"
|
|
2527
|
-
});
|
|
2528
|
-
}, le = (c) => {
|
|
2529
|
-
z({
|
|
2530
|
-
type: "upload",
|
|
2531
|
-
file: c
|
|
2532
|
-
});
|
|
2533
|
-
}, z = (c) => {
|
|
2534
|
-
var m;
|
|
2535
|
-
(m = t == null ? void 0 : t.value) == null || m.handleUploadEvent(c);
|
|
2536
|
-
}, oe = (c, m) => {
|
|
2537
|
-
let y = [];
|
|
2538
|
-
c.files && c.files.length > 0 ? y = c.files : typeof c.file < "u" && (y = [c.file]), m = m || c.type, y.map((A) => {
|
|
2539
|
-
const Q = O.value.findIndex((I) => {
|
|
2540
|
-
var ue;
|
|
2541
|
-
return typeof A < "u" && ((ue = I == null ? void 0 : I.file) == null ? void 0 : ue.id) === A.id;
|
|
2542
|
-
});
|
|
2543
|
-
Q > -1 && (O.value[Q] = { type: m, file: A });
|
|
2544
|
-
});
|
|
2545
|
-
}, se = (c, m) => {
|
|
2546
|
-
c && (c.stopImmediatePropagation(), c.stopPropagation()), (!_.value || m.id != _.value) && (_.value = m.id, e.emit("selectedEvent", m));
|
|
2547
|
-
};
|
|
2548
|
-
return Qe(() => {
|
|
2549
|
-
}), {
|
|
2550
|
-
disabled: i,
|
|
2551
|
-
uploadVisible: o,
|
|
2552
|
-
uploadDisabled: d,
|
|
2553
|
-
downloadButtonDisable: f,
|
|
2554
|
-
previewVisible: h,
|
|
2555
|
-
previewColumns: p,
|
|
2556
|
-
uploadFiles: O,
|
|
2557
|
-
innerFileInfos: U,
|
|
2558
|
-
previewEnableMulti: s,
|
|
2559
|
-
previewMultiSelectedLength: D,
|
|
2560
|
-
previewSelectAllBtnChecked: P,
|
|
2561
|
-
uploadEnableMulti: g,
|
|
2562
|
-
previewCurrentId: _,
|
|
2563
|
-
multiFileRemoveHandler: G,
|
|
2564
|
-
previewMultiSelectChangeHandler: ne,
|
|
2565
|
-
fileMultiDownloadHandler: q,
|
|
2566
|
-
selectOrCancelAllHandler: B,
|
|
2567
|
-
hasColumnHtmlFunc: E,
|
|
2568
|
-
showPreviewStateColumn: j,
|
|
2569
|
-
rowSelectedHandler: se,
|
|
2570
|
-
fileDownloadHandler: R,
|
|
2571
|
-
filePreviewHandler: C,
|
|
2572
|
-
fileRemoveHandler: k,
|
|
2573
|
-
handleStateChange: H
|
|
2574
|
-
};
|
|
2575
|
-
}, ke = /* @__PURE__ */ ve({
|
|
2576
|
-
name: "FUploader",
|
|
2577
|
-
components: {
|
|
2578
|
-
"f-upload-progress": wt,
|
|
2579
|
-
"f-preview-checkbox": Ve,
|
|
2580
|
-
"f-file-select": it
|
|
2581
|
-
},
|
|
2582
|
-
props: Ne,
|
|
2583
|
-
emits: ["filePreviewEvent", "fileDownloadEvent", "previewMultiSelectedEvent", "selectedEvent", "fileRemoveEvent", "fUploadDoneEvent", "fUploadRemovedEvent"],
|
|
2584
|
-
setup(n, e) {
|
|
2585
|
-
const t = $(n.customInfo), a = at(n.uploadOptions, {
|
|
2586
|
-
// 允许上传的文件类型
|
|
2587
|
-
allowedContentTypes: ["*"],
|
|
2588
|
-
// 默认不限制附件上传个数
|
|
2589
|
-
maxUploads: 0,
|
|
2590
|
-
// 单位KB,默认是12M
|
|
2591
|
-
maxFileSize: "12MB"
|
|
2592
|
-
}), r = $(null), {
|
|
2593
|
-
disabled: i,
|
|
2594
|
-
uploadVisible: o,
|
|
2595
|
-
uploadDisabled: d,
|
|
2596
|
-
downloadButtonDisable: h,
|
|
2597
|
-
previewVisible: u,
|
|
2598
|
-
previewColumns: s,
|
|
2599
|
-
uploadFiles: f,
|
|
2600
|
-
innerFileInfos: p,
|
|
2601
|
-
previewEnableMulti: g,
|
|
2602
|
-
previewMultiSelectedLength: w,
|
|
2603
|
-
previewSelectAllBtnChecked: P,
|
|
2604
|
-
uploadEnableMulti: b,
|
|
2605
|
-
previewCurrentId: D,
|
|
2606
|
-
multiFileRemoveHandler: O,
|
|
2607
|
-
previewMultiSelectChangeHandler: _,
|
|
2608
|
-
fileMultiDownloadHandler: U,
|
|
2609
|
-
selectOrCancelAllHandler: R,
|
|
2610
|
-
rowSelectedHandler: C,
|
|
2611
|
-
hasColumnHtmlFunc: k,
|
|
2612
|
-
showPreviewStateColumn: E,
|
|
2613
|
-
fileDownloadHandler: j,
|
|
2614
|
-
filePreviewHandler: q,
|
|
2615
|
-
fileRemoveHandler: Y,
|
|
2616
|
-
handleStateChange: G
|
|
2617
|
-
} = st(n, e, r), B = Ee(() => p.value.length > 0);
|
|
2618
|
-
function ne() {
|
|
2619
|
-
var v;
|
|
2620
|
-
return tt((a == null ? void 0 : a.allowedContentTypes) || []) ? l("li", null, [l("span", null, [x("支持类型:")]), l("span", {
|
|
2621
|
-
class: "support-info--item-detail",
|
|
2622
|
-
style: "margin-right:4px;"
|
|
2623
|
-
}, [(v = a.allowedContentTypes) == null ? void 0 : v.join(""), x(",")])]) : "";
|
|
2624
|
-
}
|
|
2625
|
-
function H() {
|
|
2626
|
-
return nt((a == null ? void 0 : a.maxFileSize) || "") ? l("li", null, [l("span", null, [x("单个文件限制:")]), l("span", {
|
|
2627
|
-
class: "support-info--item-detail"
|
|
2628
|
-
}, [a.maxFileSize, x(", ")])]) : "";
|
|
2629
|
-
}
|
|
2630
|
-
function M() {
|
|
2631
|
-
return a != null && a.maxUploads || 0 > 0 ? l("li", null, [l("span", null, [x("文件总数限制:")]), l("span", {
|
|
2632
|
-
class: "support-info--item-detail"
|
|
2633
|
-
}, [a.maxUploads, x("个")])]) : "";
|
|
2634
|
-
}
|
|
2635
|
-
function N() {
|
|
2636
|
-
return o.value && !d.value && !i.value ? l("div", {
|
|
2637
|
-
class: "ffileupload--support-info"
|
|
2638
|
-
}, [t.value ? l("ul", {
|
|
2639
|
-
class: "support-info--wrapper"
|
|
2640
|
-
}, [l("li", null, [l("span", {
|
|
2641
|
-
class: "support-info--item-detail",
|
|
2642
|
-
innerHTML: t.value
|
|
2643
|
-
}, null)])]) : l("ul", {
|
|
2644
|
-
class: "support-info--wrapper"
|
|
2645
|
-
}, [ne(), H(), M()])]) : null;
|
|
2646
|
-
}
|
|
2647
|
-
function le(v) {
|
|
2648
|
-
var T, F, J;
|
|
2649
|
-
return l("div", {
|
|
2650
|
-
class: "uploadAndpreview--title-container"
|
|
2651
|
-
}, [l("div", {
|
|
2652
|
-
class: "ffilepreview--item-icon"
|
|
2653
|
-
}, [l("span", {
|
|
2654
|
-
class: ["ffilepreview--filetype-icon", We(((T = v.file) == null ? void 0 : T.name) || "")]
|
|
2655
|
-
}, null)]), l("div", {
|
|
2656
|
-
class: "uploadAndpreview--right"
|
|
2657
|
-
}, [l("a", {
|
|
2658
|
-
class: "item-content--title",
|
|
2659
|
-
title: (F = v.file) == null ? void 0 : F.name
|
|
2660
|
-
}, [((J = v.file) == null ? void 0 : J.name) || "无名称"]), l(ee("f-upload-progress"), {
|
|
2661
|
-
status: v.type == "done" ? "success" : "active",
|
|
2662
|
-
percent: Ye(v),
|
|
2663
|
-
maxWidth: 300
|
|
2664
|
-
}, null)])]);
|
|
2665
|
-
}
|
|
2666
|
-
function z(v) {
|
|
2667
|
-
return l("div", {
|
|
2668
|
-
class: "uploadAndpreview--title-container"
|
|
2669
|
-
}, [l("div", {
|
|
2670
|
-
class: "ffilepreview--item-icon"
|
|
2671
|
-
}, [l("span", {
|
|
2672
|
-
class: ["ffilepreview--filetype-icon", We(v.name)]
|
|
2673
|
-
}, null)]), l("div", {
|
|
2674
|
-
class: "uploadAndpreview--right"
|
|
2675
|
-
}, [l("a", {
|
|
2676
|
-
class: ["item-content--title", "previewButtonDisable.value?'no-preview':''"],
|
|
2677
|
-
title: v.name,
|
|
2678
|
-
onClick: (T) => q(T, v)
|
|
2679
|
-
}, [v.name])])]);
|
|
2680
|
-
}
|
|
2681
|
-
function oe(v, T, F) {
|
|
2682
|
-
return l("div", {
|
|
2683
|
-
class: "uploadAndpreview--filesize-container"
|
|
2684
|
-
}, [v == "preview" && F ? l("span", null, [ta(F.size)]) : null, v == "upload" && T ? l("span", null, [Ye(T)]) : null]);
|
|
2685
|
-
}
|
|
2686
|
-
function se(v, T) {
|
|
2687
|
-
return l("div", {
|
|
2688
|
-
class: "uploadAndpreview--state-container"
|
|
2689
|
-
}, [v == "upload" ? T && T.type != "done" ? l("p", {
|
|
2690
|
-
class: "upload-state--uploading"
|
|
2691
|
-
}, [l("i", {
|
|
2692
|
-
class: "f-icon f-icon-clock text-warning"
|
|
2693
|
-
}, null), l("span", null, [x("正在上传...")])]) : l("p", {
|
|
2694
|
-
class: "upload-state--uploaded"
|
|
2695
|
-
}, [l("i", {
|
|
2696
|
-
class: "f-icon f-icon-success text-success"
|
|
2697
|
-
}, null), l("span", null, [x("上传成功")])]) : v == "preview" ? l("p", {
|
|
2698
|
-
class: "upload-state--uploaded"
|
|
2699
|
-
}, [l("i", {
|
|
2700
|
-
class: "f-icon f-icon-success text-success"
|
|
2701
|
-
}, null), l("span", null, [x("已上传")])]) : ""]);
|
|
2702
|
-
}
|
|
2703
|
-
function c(v) {
|
|
2704
|
-
return l("div", {
|
|
2705
|
-
class: "uploadAndpreview--action-container"
|
|
2706
|
-
}, [h.value ? "" : l("button", {
|
|
2707
|
-
class: "btn preview-btn",
|
|
2708
|
-
title: "下载",
|
|
2709
|
-
onClick: (T) => j(T, v)
|
|
2710
|
-
}, [l("span", {
|
|
2711
|
-
class: "f-icon f-icon-enclosure_download"
|
|
2712
|
-
}, null)]), n.previewButtonDisable ? "" : l("button", {
|
|
2713
|
-
class: "btn preview-btn",
|
|
2714
|
-
title: "预览",
|
|
2715
|
-
onClick: (T) => q(T, v)
|
|
2716
|
-
}, [l("span", {
|
|
2717
|
-
class: "f-icon f-icon-enclosure_browse"
|
|
2718
|
-
}, null)]), n.deleteButtonDisable ? "" : l("button", {
|
|
2719
|
-
class: "btn preview-btn",
|
|
2720
|
-
title: "删除",
|
|
2721
|
-
onClick: (T) => Y(T, v)
|
|
2722
|
-
}, [l("span", {
|
|
2723
|
-
class: "f-icon f-icon-enclosure_delete",
|
|
2724
|
-
style: "top: -1px"
|
|
2725
|
-
}, null)])]);
|
|
2726
|
-
}
|
|
2727
|
-
function m(v) {
|
|
2728
|
-
return l("div", {
|
|
2729
|
-
class: "uploadAndpreview--date-container"
|
|
2730
|
-
}, [v.createTime || ""]);
|
|
2731
|
-
}
|
|
2732
|
-
function y(v = "preview", T, F, J) {
|
|
2733
|
-
let L = null;
|
|
2734
|
-
if (v == "preview" && F)
|
|
2735
|
-
switch (J.field) {
|
|
2736
|
-
case "state":
|
|
2737
|
-
L = se("preview", null);
|
|
2738
|
-
break;
|
|
2739
|
-
case "name":
|
|
2740
|
-
L = z(F);
|
|
2741
|
-
break;
|
|
2742
|
-
case "action":
|
|
2743
|
-
L = c(F);
|
|
2744
|
-
break;
|
|
2745
|
-
case "size":
|
|
2746
|
-
L = oe(v, T, F);
|
|
2747
|
-
break;
|
|
2748
|
-
case "createTime":
|
|
2749
|
-
L = m(F);
|
|
2750
|
-
break;
|
|
2751
|
-
default:
|
|
2752
|
-
L = `<div>${F[J.field] || ""} </div>`;
|
|
2753
|
-
}
|
|
2754
|
-
if (v == "upload" && T)
|
|
2755
|
-
switch (J.field) {
|
|
2756
|
-
case "state":
|
|
2757
|
-
L = se("upload", T);
|
|
2758
|
-
break;
|
|
2759
|
-
case "name":
|
|
2760
|
-
L = le(T);
|
|
2761
|
-
break;
|
|
2762
|
-
case "size":
|
|
2763
|
-
L = oe(v, T, F);
|
|
2764
|
-
break;
|
|
2765
|
-
default:
|
|
2766
|
-
L = "";
|
|
2767
|
-
}
|
|
2768
|
-
return L;
|
|
2769
|
-
}
|
|
2770
|
-
function A() {
|
|
2771
|
-
return o.value ? l("div", {
|
|
2772
|
-
class: "header--left-container"
|
|
2773
|
-
}, [l(ee("f-file-select"), {
|
|
2774
|
-
ref: r,
|
|
2775
|
-
disabled: d.value,
|
|
2776
|
-
selectText: n.selectText,
|
|
2777
|
-
uploadedCount: n.uploadedCount,
|
|
2778
|
-
uploadServerToken: n.uploadServerToken,
|
|
2779
|
-
enableMulti: b.value,
|
|
2780
|
-
options: n.uploadOptions,
|
|
2781
|
-
extendConfig: n.extendConfig,
|
|
2782
|
-
onStateChange: (v) => G(v)
|
|
2783
|
-
}, null)]) : null;
|
|
2784
|
-
}
|
|
2785
|
-
function Q() {
|
|
2786
|
-
return !o.value && u.value && B.value ? l("div", {
|
|
2787
|
-
class: "header--left-container header--countInfo"
|
|
2788
|
-
}, [l("p", {
|
|
2789
|
-
class: "m-0"
|
|
2790
|
-
}, [x("共"), l("span", {
|
|
2791
|
-
class: "count"
|
|
2792
|
-
}, [f.value.length + p.value.length]), x("个附件"), w.value > 0 ? l(De, null, [x("(已选"), l("span", {
|
|
2793
|
-
class: "count-selected"
|
|
2794
|
-
}, [w.value]), x("个)")]) : ""])]) : null;
|
|
2795
|
-
}
|
|
2796
|
-
function I() {
|
|
2797
|
-
return (!h.value || !n.deleteButtonDisable) && u.value && B.value ? l("div", {
|
|
2798
|
-
class: "header--right-container"
|
|
2799
|
-
}, [h.value ? null : l("button", {
|
|
2800
|
-
class: "btn btn-primary f-btn-ml",
|
|
2801
|
-
disabled: w.value === 0,
|
|
2802
|
-
onClick: (F) => U(F)
|
|
2803
|
-
}, [x("下载")]), n.deleteButtonDisable.value ? null : l("button", {
|
|
2804
|
-
class: "btn btn-secondary f-btn-ml",
|
|
2805
|
-
disabled: w.value === 0,
|
|
2806
|
-
onClick: (F) => O(F)
|
|
2807
|
-
}, [x("删除")])]) : null;
|
|
2808
|
-
}
|
|
2809
|
-
function ue() {
|
|
2810
|
-
return s.value.map((v) => E(v) ? l("th", {
|
|
2811
|
-
style: {
|
|
2812
|
-
width: v.width ? v.width + "px" : "auto"
|
|
2813
|
-
},
|
|
2814
|
-
class: [!i.value && v.checkbox && v.checkbox ? "td--hascheckbox" : ""]
|
|
2815
|
-
}, [!i.value && g.value && v.checkbox ? l(ee("f-preview-checkbox"), {
|
|
2816
|
-
class: "preview-checkbox",
|
|
2817
|
-
id: "previewMultiBtn",
|
|
2818
|
-
checked: P.value,
|
|
2819
|
-
onCheckedChange: (T) => R(T)
|
|
2820
|
-
}, null) : null, v.title]) : null);
|
|
2821
|
-
}
|
|
2822
|
-
function ut() {
|
|
2823
|
-
return f.value.map((v) => {
|
|
2824
|
-
var T;
|
|
2825
|
-
return l("tr", {
|
|
2826
|
-
class: "uploadAndpreview--upload-item",
|
|
2827
|
-
id: "uploadAndpreview--upload-item" + ((T = v == null ? void 0 : v.file) == null ? void 0 : T.id)
|
|
2828
|
-
}, [s.value.map((F) => {
|
|
2829
|
-
var J;
|
|
2830
|
-
return l("td", {
|
|
2831
|
-
class: [!i.value && F.checkbox && F.checkbox ? "td--hascheckbox" : ""]
|
|
2832
|
-
}, [g.value && F.checkbox ? l(ee("f-preview-checkbox"), {
|
|
2833
|
-
id: (J = v == null ? void 0 : v.file) == null ? void 0 : J.id,
|
|
2834
|
-
checked: v.checked,
|
|
2835
|
-
disabled: v.type !== "done",
|
|
2836
|
-
class: "preview-checkbox",
|
|
2837
|
-
onCheckedChange: (L) => _(L)
|
|
2838
|
-
}, null) : null, k(F, "upload") ? y("upload", v, null, F) : null]);
|
|
2839
|
-
})]);
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
function Ae() {
|
|
2843
|
-
return p.value.map((v) => l("tr", {
|
|
2844
|
-
class: ["uploadAndpreview--preview-item", D.value == v.id ? "uploadAndpreview--currentfile" : ""],
|
|
2845
|
-
id: "uploadAndpreview--preview-item" + v.id,
|
|
2846
|
-
onClick: (T) => C(T, v)
|
|
2847
|
-
}, [s.value.map((T) => E(T) ? l("td", {
|
|
2848
|
-
class: [!i.value && T.checkbox && T.checkbox ? "td--hascheckbox" : ""]
|
|
2849
|
-
}, [!i.value && g.value && T.checkbox ? l(ee("f-preview-checkbox"), {
|
|
2850
|
-
id: v.id,
|
|
2851
|
-
checked: v.checked,
|
|
2852
|
-
class: "preview-checkbox",
|
|
2853
|
-
onCheckedChange: (F) => _(F)
|
|
2854
|
-
}, null) : null, k(T, "preview") ? y("preview", null, v, T) : l("div", {
|
|
2855
|
-
class: "text-truncate",
|
|
2856
|
-
innerHTML: y("preview", null, v, T)
|
|
2857
|
-
}, null)]) : null)]));
|
|
2858
|
-
}
|
|
2859
|
-
return () => i.value ? l("div", {
|
|
2860
|
-
class: "fv-upload-and-preview"
|
|
2861
|
-
}, [B ? null : N(), u.value ? l("div", {
|
|
2862
|
-
class: "uploadAndpreview--content"
|
|
2863
|
-
}, [B ? l("table", {
|
|
2864
|
-
class: "table table-bordered uploadAndpreview--table"
|
|
2865
|
-
}, [l("thead", null, [ue()]), l("tbody", null, [Ae()])]) : l("p", {
|
|
2866
|
-
class: "uploadAndpreview--nodata"
|
|
2867
|
-
}, [x("无附件信息")])]) : null, B ? N() : null]) : l("div", {
|
|
2868
|
-
class: "fv-upload-and-preview"
|
|
2869
|
-
}, [l("div", {
|
|
2870
|
-
class: "uploadAndpreview--header"
|
|
2871
|
-
}, [A(), Q(), I()]), B ? null : N(), u.value || o.value ? l("div", {
|
|
2872
|
-
class: "uploadAndpreview--content"
|
|
2873
|
-
}, [(h.value || !o.value) && f.value.length === 0 && !B ? l("p", {
|
|
2874
|
-
class: "uploadAndpreview--nodata"
|
|
2875
|
-
}, [x("无附件信息")]) : "", f.value.length > 0 || B ? l("table", {
|
|
2876
|
-
class: "table table-bordered uploadAndpreview--table"
|
|
2877
|
-
}, [l("thead", null, [ue()]), l("tbody", null, [ut(), Ae()])]) : null]) : null, B ? N() : null]);
|
|
2878
|
-
}
|
|
2879
|
-
});
|
|
2880
|
-
function Ha(n, e, t) {
|
|
2881
|
-
var R;
|
|
2882
|
-
function a() {
|
|
2883
|
-
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
2884
|
-
}
|
|
2885
|
-
a();
|
|
2886
|
-
const r = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", o = $();
|
|
2887
|
-
function d() {
|
|
2888
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
2889
|
-
}
|
|
2890
|
-
function h() {
|
|
2891
|
-
return !1;
|
|
2892
|
-
}
|
|
2893
|
-
function u() {
|
|
2894
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
2895
|
-
}
|
|
2896
|
-
function s() {
|
|
2897
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
2898
|
-
}
|
|
2899
|
-
function f(C) {
|
|
2900
|
-
if (!C || !C.value)
|
|
2901
|
-
return null;
|
|
2902
|
-
if (C.value.schema && C.value.schema.type === "component")
|
|
2903
|
-
return C.value;
|
|
2904
|
-
const k = $(C == null ? void 0 : C.value.parent), E = f(k);
|
|
2905
|
-
return E || null;
|
|
2906
|
-
}
|
|
2907
|
-
function p(C = e) {
|
|
2908
|
-
const { componentInstance: k, designerItemElementRef: E } = C;
|
|
2909
|
-
return !k || !k.value ? null : k.value.canMove ? E : p(C.parent);
|
|
2910
|
-
}
|
|
2911
|
-
function g(C) {
|
|
2912
|
-
return !!t && t.canAccepts(C);
|
|
2913
|
-
}
|
|
2914
|
-
function w() {
|
|
2915
|
-
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
2916
|
-
}
|
|
2917
|
-
function P() {
|
|
2918
|
-
}
|
|
2919
|
-
function b(C, k) {
|
|
2920
|
-
k && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(k);
|
|
2921
|
-
}
|
|
2922
|
-
function D(C) {
|
|
2923
|
-
const { componentType: k } = C;
|
|
2924
|
-
let E = Pe(k, C);
|
|
2925
|
-
t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(C, E));
|
|
2926
|
-
const j = k.toLowerCase().replace("-", "_");
|
|
2927
|
-
return E && !E.id && E.type === k && (E.id = `${j}_${Math.random().toString().slice(2, 6)}`), E;
|
|
2928
|
-
}
|
|
2929
|
-
function O(C, k) {
|
|
2930
|
-
const E = String(C.getAttribute("data-controltype")), j = C.getAttribute("data-feature"), q = j ? JSON.parse(j) : {};
|
|
2931
|
-
q.parentComponentInstance = o.value;
|
|
2932
|
-
let Y = Pe(E, q);
|
|
2933
|
-
t && t.onAcceptNewChildElement && (Y = t.onAcceptNewChildElement(C, k, Y));
|
|
2934
|
-
const G = E.toLowerCase().replace("-", "_");
|
|
2935
|
-
return Y && !Y.id && Y.type === E && (Y.id = `${G}_${Math.random().toString().slice(2, 6)}`), Y;
|
|
2936
|
-
}
|
|
2937
|
-
function _(C) {
|
|
2938
|
-
}
|
|
2939
|
-
function U() {
|
|
2940
|
-
return t && t.getPropsConfig ? t.getPropsConfig() : [];
|
|
2941
|
-
}
|
|
2942
|
-
return o.value = {
|
|
2943
|
-
canMove: d(),
|
|
2944
|
-
canSelectParent: h(),
|
|
2945
|
-
canDelete: u(),
|
|
2946
|
-
canNested: !s(),
|
|
2947
|
-
contents: e == null ? void 0 : e.schema.contents,
|
|
2948
|
-
elementRef: n,
|
|
2949
|
-
parent: (R = e == null ? void 0 : e.parent) == null ? void 0 : R.componentInstance,
|
|
2950
|
-
schema: e == null ? void 0 : e.schema,
|
|
2951
|
-
styles: r,
|
|
2952
|
-
designerClass: i,
|
|
2953
|
-
canAccepts: g,
|
|
2954
|
-
getBelongedComponentInstance: f,
|
|
2955
|
-
getDraggableDesignItemElement: p,
|
|
2956
|
-
getDraggingDisplayText: w,
|
|
2957
|
-
getPropConfig: U,
|
|
2958
|
-
getDragScopeElement: P,
|
|
2959
|
-
onAcceptMovedChildElement: b,
|
|
2960
|
-
onAcceptNewChildElement: O,
|
|
2961
|
-
onChildElementMovedOut: _,
|
|
2962
|
-
addNewChildComponentSchema: D,
|
|
2963
|
-
updateDragAndDropRules: a,
|
|
2964
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || $(!1),
|
|
2965
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || $(!1)
|
|
2966
|
-
}, o;
|
|
2967
|
-
}
|
|
2968
|
-
const Ua = /* @__PURE__ */ ve({
|
|
2969
|
-
name: "FUploaderDesign",
|
|
2970
|
-
components: {
|
|
2971
|
-
"f-preview-checkbox": Ve,
|
|
2972
|
-
"f-file-select": it
|
|
2973
|
-
},
|
|
2974
|
-
props: Ne,
|
|
2975
|
-
emits: ["filePreviewEvent", "fileDownloadEvent", "fPreviewMultiSelectedEvent", "fSelectedEvent", "fileRemoveEvent", "fUploadDoneEvent", "fUploadRemovedEvent"],
|
|
2976
|
-
setup(n, e) {
|
|
2977
|
-
const t = $(n.customInfo), a = at(n.uploadOptions, {
|
|
2978
|
-
// 允许上传的文件类型
|
|
2979
|
-
allowedContentTypes: ["*"],
|
|
2980
|
-
// 默认不限制附件上传个数
|
|
2981
|
-
maxUploads: 0,
|
|
2982
|
-
// 单位KB,默认是12M
|
|
2983
|
-
maxFileSize: "12MB"
|
|
2984
|
-
}), r = $(null), i = [{
|
|
2985
|
-
id: "attach01",
|
|
2986
|
-
name: ""
|
|
2987
|
-
}, {
|
|
2988
|
-
id: "attach02",
|
|
2989
|
-
name: ""
|
|
2990
|
-
}], {
|
|
2991
|
-
disabled: o,
|
|
2992
|
-
uploadVisible: d,
|
|
2993
|
-
uploadDisabled: h,
|
|
2994
|
-
downloadButtonDisable: u,
|
|
2995
|
-
previewVisible: s,
|
|
2996
|
-
previewColumns: f,
|
|
2997
|
-
previewEnableMulti: p,
|
|
2998
|
-
previewCurrentId: g,
|
|
2999
|
-
showPreviewStateColumn: w
|
|
3000
|
-
} = st(n, e, r);
|
|
3001
|
-
function P() {
|
|
3002
|
-
var M;
|
|
3003
|
-
return tt((a == null ? void 0 : a.allowedContentTypes) || []) ? l("li", null, [l("span", null, [x("支持类型:")]), l("span", {
|
|
3004
|
-
class: "support-info--item-detail",
|
|
3005
|
-
style: "margin-right:4px;"
|
|
3006
|
-
}, [(M = a.allowedContentTypes) == null ? void 0 : M.join(""), x(",")])]) : null;
|
|
3007
|
-
}
|
|
3008
|
-
function b() {
|
|
3009
|
-
return nt((a == null ? void 0 : a.maxFileSize) || "") ? l("li", null, [l("span", null, [x("单个文件限制:")]), l("span", {
|
|
3010
|
-
class: "support-info--item-detail"
|
|
3011
|
-
}, [a.maxFileSize, x(", ")])]) : null;
|
|
3012
|
-
}
|
|
3013
|
-
function D() {
|
|
3014
|
-
return a != null && a.maxUploads || 0 > 0 ? l("li", null, [l("span", null, [x("文件总数限制:")]), l("span", {
|
|
3015
|
-
class: "support-info--item-detail"
|
|
3016
|
-
}, [a.maxUploads, x("个")])]) : null;
|
|
3017
|
-
}
|
|
3018
|
-
function O() {
|
|
3019
|
-
return d.value && !h.value && !o.value ? l("div", {
|
|
3020
|
-
class: "ffileupload--support-info"
|
|
3021
|
-
}, [t.value ? l("ul", {
|
|
3022
|
-
class: "support-info--wrapper"
|
|
3023
|
-
}, [l("li", null, [l("span", {
|
|
3024
|
-
class: "support-info--item-detail",
|
|
3025
|
-
innerHTML: t.value
|
|
3026
|
-
}, null)])]) : l("ul", {
|
|
3027
|
-
class: "support-info--wrapper"
|
|
3028
|
-
}, [P(), b(), D()])]) : null;
|
|
3029
|
-
}
|
|
3030
|
-
function _(M) {
|
|
3031
|
-
return l("div", {
|
|
3032
|
-
class: "uploadAndpreview--title-container"
|
|
3033
|
-
}, [l("div", {
|
|
3034
|
-
class: "ffilepreview--item-icon"
|
|
3035
|
-
}, [l("span", {
|
|
3036
|
-
class: "ffilepreview--filetype-icon"
|
|
3037
|
-
}, null)]), l("div", {
|
|
3038
|
-
class: "uploadAndpreview--right"
|
|
3039
|
-
}, [l("span", {
|
|
3040
|
-
class: "ffilepreview--preview-block"
|
|
3041
|
-
}, null)])]);
|
|
3042
|
-
}
|
|
3043
|
-
function U(M) {
|
|
3044
|
-
return l("div", {
|
|
3045
|
-
class: "uploadAndpreview--filesize-container"
|
|
3046
|
-
}, [l("span", {
|
|
3047
|
-
class: "ffilepreview--preview-block"
|
|
3048
|
-
}, null)]);
|
|
3049
|
-
}
|
|
3050
|
-
function R() {
|
|
3051
|
-
return l("div", {
|
|
3052
|
-
class: "uploadAndpreview--state-container"
|
|
3053
|
-
}, [l("p", {
|
|
3054
|
-
class: "upload-state--uploaded"
|
|
3055
|
-
}, [l("i", {
|
|
3056
|
-
class: "f-icon f-icon-success text-success"
|
|
3057
|
-
}, null), l("span", null, [x("已上传")])])]);
|
|
3058
|
-
}
|
|
3059
|
-
function C(M) {
|
|
3060
|
-
return l("div", {
|
|
3061
|
-
class: "uploadAndpreview--action-container"
|
|
3062
|
-
}, [u.value ? "" : l("button", {
|
|
3063
|
-
class: "btn preview-btn",
|
|
3064
|
-
title: "下载"
|
|
3065
|
-
}, [l("span", {
|
|
3066
|
-
class: "f-icon f-icon-enclosure_download"
|
|
3067
|
-
}, null)]), n.previewButtonDisable ? "" : l("button", {
|
|
3068
|
-
class: "btn preview-btn",
|
|
3069
|
-
title: "预览"
|
|
3070
|
-
}, [l("span", {
|
|
3071
|
-
class: "f-icon f-icon-enclosure_browse"
|
|
3072
|
-
}, null)]), n.deleteButtonDisable ? "" : l("button", {
|
|
3073
|
-
class: "btn preview-btn",
|
|
3074
|
-
title: "删除"
|
|
3075
|
-
}, [l("span", {
|
|
3076
|
-
class: "f-icon f-icon-enclosure_delete",
|
|
3077
|
-
style: "top: -1px"
|
|
3078
|
-
}, null)])]);
|
|
3079
|
-
}
|
|
3080
|
-
function k(M) {
|
|
3081
|
-
return l("div", {
|
|
3082
|
-
class: "uploadAndpreview--date-container"
|
|
3083
|
-
}, [x(" "), l("span", {
|
|
3084
|
-
class: "ffilepreview--preview-block"
|
|
3085
|
-
}, null)]);
|
|
3086
|
-
}
|
|
3087
|
-
function E(M = "preview", N, le) {
|
|
3088
|
-
let z = null;
|
|
3089
|
-
if (M == "preview" && N)
|
|
3090
|
-
switch (le.field) {
|
|
3091
|
-
case "state":
|
|
3092
|
-
z = R();
|
|
3093
|
-
break;
|
|
3094
|
-
case "name":
|
|
3095
|
-
z = _();
|
|
3096
|
-
break;
|
|
3097
|
-
case "action":
|
|
3098
|
-
z = C();
|
|
3099
|
-
break;
|
|
3100
|
-
case "size":
|
|
3101
|
-
z = U();
|
|
3102
|
-
break;
|
|
3103
|
-
case "createTime":
|
|
3104
|
-
z = k();
|
|
3105
|
-
break;
|
|
3106
|
-
default:
|
|
3107
|
-
z = l("span", {
|
|
3108
|
-
class: "ffilepreview--preview-block"
|
|
3109
|
-
}, null);
|
|
3110
|
-
}
|
|
3111
|
-
return z;
|
|
3112
|
-
}
|
|
3113
|
-
function j() {
|
|
3114
|
-
return d.value ? l("div", {
|
|
3115
|
-
class: "header--left-container"
|
|
3116
|
-
}, [l(ee("f-file-select"), {
|
|
3117
|
-
ref: r,
|
|
3118
|
-
disabled: h.value,
|
|
3119
|
-
selectText: n.selectText
|
|
3120
|
-
}, null)]) : null;
|
|
3121
|
-
}
|
|
3122
|
-
function q() {
|
|
3123
|
-
return (!u.value || !n.deleteButtonDisable) && s.value ? l("div", {
|
|
3124
|
-
class: "header--right-container"
|
|
3125
|
-
}, [u.value ? null : l("button", {
|
|
3126
|
-
class: "btn btn-primary f-btn-ml",
|
|
3127
|
-
disabled: !0
|
|
3128
|
-
}, [x("下载")]), n.deleteButtonDisable.value ? null : l("button", {
|
|
3129
|
-
class: "btn btn-secondary f-btn-ml",
|
|
3130
|
-
disabled: !0
|
|
3131
|
-
}, [x("删除")])]) : null;
|
|
3132
|
-
}
|
|
3133
|
-
function Y() {
|
|
3134
|
-
return f.value.map((M) => w(M) ? l("th", {
|
|
3135
|
-
style: {
|
|
3136
|
-
width: M.width ? M.width + "px" : "auto"
|
|
3137
|
-
},
|
|
3138
|
-
class: [!o.value && M.checkbox && M.checkbox ? "td--hascheckbox" : ""]
|
|
3139
|
-
}, [!o.value && p.value && M.checkbox ? l(ee("f-preview-checkbox"), {
|
|
3140
|
-
class: "preview-checkbox",
|
|
3141
|
-
id: "previewMultiBtn"
|
|
3142
|
-
}, null) : null, M.title]) : null);
|
|
3143
|
-
}
|
|
3144
|
-
function G() {
|
|
3145
|
-
return i.map((M) => l("tr", {
|
|
3146
|
-
class: ["uploadAndpreview--preview-item", g.value == M.id ? "uploadAndpreview--currentfile" : ""],
|
|
3147
|
-
id: "uploadAndpreview--preview-item" + M.id
|
|
3148
|
-
}, [f.value.map((N) => w(N) ? l("td", {
|
|
3149
|
-
class: [!o.value && N.checkbox && N.checkbox ? "td--hascheckbox" : ""]
|
|
3150
|
-
}, [!o.value && p.value && N.checkbox ? l(ee("f-preview-checkbox"), {
|
|
3151
|
-
class: "preview-checkbox"
|
|
3152
|
-
}, null) : null, E("preview", M, N)]) : null)]));
|
|
3153
|
-
}
|
|
3154
|
-
pt(() => {
|
|
3155
|
-
});
|
|
3156
|
-
const B = $(), ne = ie("design-item-context"), H = Ha(B, ne);
|
|
3157
|
-
return Re(() => {
|
|
3158
|
-
B.value.componentInstance = H;
|
|
3159
|
-
}), e.expose(H.value), () => l("div", {
|
|
3160
|
-
class: "fv-upload-and-preview",
|
|
3161
|
-
ref: B
|
|
3162
|
-
}, [s.value || d.value ? l(De, null, [o.value ? null : l("div", {
|
|
3163
|
-
class: "uploadAndpreview--header"
|
|
3164
|
-
}, [j(), q()]), l("div", {
|
|
3165
|
-
class: "uploadAndpreview--content"
|
|
3166
|
-
}, [l("table", {
|
|
3167
|
-
class: "table table-bordered uploadAndpreview--table"
|
|
3168
|
-
}, [l("thead", null, [Y()]), l("tbody", null, [G()])])]), O()]) : null]);
|
|
3169
|
-
}
|
|
3170
|
-
}), Ya = {
|
|
3171
|
-
install(n) {
|
|
3172
|
-
n.component(ke.name, ke);
|
|
3173
|
-
},
|
|
3174
|
-
register(n, e, t) {
|
|
3175
|
-
n.uploader = ke, e.uploader = ze;
|
|
3176
|
-
},
|
|
3177
|
-
registerDesigner(n, e, t) {
|
|
3178
|
-
n.uploader = Ua, e.uploader = ze;
|
|
3179
|
-
}
|
|
3180
|
-
};
|
|
3181
|
-
export {
|
|
3182
|
-
ke as FUploader,
|
|
3183
|
-
bt as UploadServerAPI,
|
|
3184
|
-
Ya as default,
|
|
3185
|
-
ze as propsResolver,
|
|
3186
|
-
Ne as uploaderProps
|
|
3187
|
-
};
|