@pinnacle0/web-ui 0.3.38 → 0.3.39
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/admin/AdminApp/Default/NavigatorSide/index.d.ts +20 -0
- package/admin/AdminApp/Default/NavigatorSide/index.js +74 -0
- package/admin/AdminApp/Default/NavigatorSide/index.js.map +1 -0
- package/{src/admin → admin}/AdminApp/Default/NavigatorSide/index.less +0 -0
- package/admin/AdminApp/Default/SoundSwitch.d.ts +14 -0
- package/admin/AdminApp/Default/SoundSwitch.js +41 -0
- package/admin/AdminApp/Default/SoundSwitch.js.map +1 -0
- package/admin/AdminApp/Default/SquareLogo/index.d.ts +15 -0
- package/admin/AdminApp/Default/SquareLogo/index.js +39 -0
- package/admin/AdminApp/Default/SquareLogo/index.js.map +1 -0
- package/{src/admin → admin}/AdminApp/Default/SquareLogo/index.less +0 -0
- package/admin/AdminApp/Menu.d.ts +52 -0
- package/admin/AdminApp/Menu.js +174 -0
- package/admin/AdminApp/Menu.js.map +1 -0
- package/admin/AdminApp/Navigator.d.ts +30 -0
- package/admin/AdminApp/Navigator.js +200 -0
- package/admin/AdminApp/Navigator.js.map +1 -0
- package/admin/AdminApp/NotFound.d.ts +10 -0
- package/admin/AdminApp/NotFound.js +37 -0
- package/admin/AdminApp/NotFound.js.map +1 -0
- package/admin/AdminApp/RouteSwitch.d.ts +19 -0
- package/admin/AdminApp/RouteSwitch.js +64 -0
- package/admin/AdminApp/RouteSwitch.js.map +1 -0
- package/admin/AdminApp/WithErrorBoundary.d.ts +15 -0
- package/admin/AdminApp/WithErrorBoundary.js +39 -0
- package/admin/AdminApp/WithErrorBoundary.js.map +1 -0
- package/{src/admin → admin}/AdminApp/asset/alert.mp3 +0 -0
- package/admin/AdminApp/context.d.ts +7 -0
- package/admin/AdminApp/context.js +7 -0
- package/admin/AdminApp/context.js.map +1 -0
- package/admin/AdminApp/index.d.ts +39 -0
- package/admin/AdminApp/index.js +76 -0
- package/admin/AdminApp/index.js.map +1 -0
- package/{src/admin → admin}/AdminApp/index.less +0 -0
- package/admin/AdminPage/Filter.d.ts +23 -0
- package/admin/AdminPage/Filter.js +60 -0
- package/admin/AdminPage/Filter.js.map +1 -0
- package/admin/AdminPage/Result.d.ts +19 -0
- package/admin/AdminPage/Result.js +43 -0
- package/admin/AdminPage/Result.js.map +1 -0
- package/admin/AdminPage/SaveBar.d.ts +10 -0
- package/admin/AdminPage/SaveBar.js +37 -0
- package/admin/AdminPage/SaveBar.js.map +1 -0
- package/admin/AdminPage/Summary.d.ts +9 -0
- package/admin/AdminPage/Summary.js +30 -0
- package/admin/AdminPage/Summary.js.map +1 -0
- package/admin/AdminPage/TopBar.d.ts +9 -0
- package/admin/AdminPage/TopBar.js +30 -0
- package/admin/AdminPage/TopBar.js.map +1 -0
- package/admin/AdminPage/index.d.ts +21 -0
- package/admin/AdminPage/index.js +42 -0
- package/admin/AdminPage/index.js.map +1 -0
- package/{src/admin → admin}/AdminPage/index.less +0 -0
- package/admin/AdminPermissionSelector.d.ts +45 -0
- package/admin/AdminPermissionSelector.js +213 -0
- package/admin/AdminPermissionSelector.js.map +1 -0
- package/admin/RichEditor/index.d.ts +34 -0
- package/admin/RichEditor/index.js +104 -0
- package/admin/RichEditor/index.js.map +1 -0
- package/{src/admin → admin}/RichEditor/index.less +0 -0
- package/core/Amount/AmountPercentage.d.ts +19 -0
- package/core/Amount/AmountPercentage.js +54 -0
- package/core/Amount/AmountPercentage.js.map +1 -0
- package/core/Amount/index.d.ts +26 -0
- package/core/Amount/index.js +65 -0
- package/core/Amount/index.js.map +1 -0
- package/{src/core → core}/Amount/index.less +0 -0
- package/core/AmountConditionInput.d.ts +28 -0
- package/core/AmountConditionInput.js +66 -0
- package/core/AmountConditionInput.js.map +1 -0
- package/core/AmountRangeInput.d.ts +23 -0
- package/core/AmountRangeInput.js +59 -0
- package/core/AmountRangeInput.js.map +1 -0
- package/core/AuthenticationCodeInput.d.ts +25 -0
- package/core/AuthenticationCodeInput.js +149 -0
- package/core/AuthenticationCodeInput.js.map +1 -0
- package/core/AutoCompleteInput.d.ts +10 -0
- package/core/AutoCompleteInput.js +43 -0
- package/core/AutoCompleteInput.js.map +1 -0
- package/core/Badge/index.d.ts +10 -0
- package/core/Badge/index.js +43 -0
- package/core/Badge/index.js.map +1 -0
- package/{src/core → core}/Badge/index.less +0 -0
- package/core/BoolRadio.d.ts +20 -0
- package/core/BoolRadio.js +49 -0
- package/core/BoolRadio.js.map +1 -0
- package/core/BoolSelect.d.ts +19 -0
- package/core/BoolSelect.js +48 -0
- package/core/BoolSelect.js.map +1 -0
- package/core/BoolSwitch.d.ts +17 -0
- package/core/BoolSwitch.js +56 -0
- package/core/BoolSwitch.js.map +1 -0
- package/core/Breadcrumb/index.d.ts +17 -0
- package/core/Breadcrumb/index.js +45 -0
- package/core/Breadcrumb/index.js.map +1 -0
- package/{src/core → core}/Breadcrumb/index.less +0 -0
- package/core/Button/index.d.ts +37 -0
- package/core/Button/index.js +60 -0
- package/core/Button/index.js.map +1 -0
- package/{src/core → core}/Button/index.less +0 -0
- package/core/Card.d.ts +10 -0
- package/core/Card.js +43 -0
- package/core/Card.js.map +1 -0
- package/core/Carousel.d.ts +11 -0
- package/core/Carousel.js +54 -0
- package/core/Carousel.js.map +1 -0
- package/core/Carousel3D/index.d.ts +27 -0
- package/core/Carousel3D/index.js +116 -0
- package/core/Carousel3D/index.js.map +1 -0
- package/{src/core → core}/Carousel3D/index.less +0 -0
- package/core/Cascader/InitialNullable.d.ts +10 -0
- package/core/Cascader/InitialNullable.js +54 -0
- package/core/Cascader/InitialNullable.js.map +1 -0
- package/core/Cascader/Nullable.d.ts +12 -0
- package/core/Cascader/Nullable.js +86 -0
- package/core/Cascader/Nullable.js.map +1 -0
- package/core/Cascader/index.d.ts +37 -0
- package/core/Cascader/index.js +117 -0
- package/core/Cascader/index.js.map +1 -0
- package/{src/core → core}/Cascader/index.less +0 -0
- package/core/Checkbox/index.d.ts +15 -0
- package/core/Checkbox/index.js +47 -0
- package/core/Checkbox/index.js.map +1 -0
- package/{src/core → core}/Checkbox/index.less +0 -0
- package/core/Collapse.d.ts +12 -0
- package/core/Collapse.js +43 -0
- package/core/Collapse.js.map +1 -0
- package/core/Countdown/SlidingDigit.d.ts +15 -0
- package/core/Countdown/SlidingDigit.js +43 -0
- package/core/Countdown/SlidingDigit.js.map +1 -0
- package/core/Countdown/index.d.ts +39 -0
- package/core/Countdown/index.js +106 -0
- package/core/Countdown/index.js.map +1 -0
- package/{src/core → core}/Countdown/index.less +0 -0
- package/core/DarkOverlay/index.d.ts +12 -0
- package/core/DarkOverlay/index.js +32 -0
- package/core/DarkOverlay/index.js.map +1 -0
- package/{src/core → core}/DarkOverlay/index.less +0 -0
- package/core/DateCalendar.d.ts +18 -0
- package/core/DateCalendar.js +85 -0
- package/core/DateCalendar.js.map +1 -0
- package/core/DatePicker/index.d.ts +18 -0
- package/core/DatePicker/index.js +53 -0
- package/core/DatePicker/index.js.map +1 -0
- package/{src/core → core}/DatePicker/index.less +0 -0
- package/core/DateRangePicker/index.d.ts +18 -0
- package/core/DateRangePicker/index.js +59 -0
- package/core/DateRangePicker/index.js.map +1 -0
- package/{src/core → core}/DateRangePicker/index.less +0 -0
- package/core/DateTimePicker/index.d.ts +19 -0
- package/core/DateTimePicker/index.js +59 -0
- package/core/DateTimePicker/index.js.map +1 -0
- package/{src/core → core}/DateTimePicker/index.less +0 -0
- package/core/DateTimeRangePicker/index.d.ts +20 -0
- package/core/DateTimeRangePicker/index.js +59 -0
- package/core/DateTimeRangePicker/index.js.map +1 -0
- package/{src/core → core}/DateTimeRangePicker/index.less +0 -0
- package/core/Descriptions/index.d.ts +27 -0
- package/core/Descriptions/index.js +51 -0
- package/core/Descriptions/index.js.map +1 -0
- package/{src/core → core}/Descriptions/index.less +0 -0
- package/core/DocumentTitle.d.ts +28 -0
- package/core/DocumentTitle.js +53 -0
- package/core/DocumentTitle.js.map +1 -0
- package/core/Drawer.d.ts +9 -0
- package/core/Drawer.js +41 -0
- package/core/Drawer.js.map +1 -0
- package/core/Dropdown.d.ts +9 -0
- package/core/Dropdown.js +10 -0
- package/core/Dropdown.js.map +1 -0
- package/core/EnumCheckboxGroup/Map.d.ts +10 -0
- package/core/EnumCheckboxGroup/Map.js +55 -0
- package/core/EnumCheckboxGroup/Map.js.map +1 -0
- package/core/EnumCheckboxGroup/index.d.ts +12 -0
- package/core/EnumCheckboxGroup/index.js +36 -0
- package/core/EnumCheckboxGroup/index.js.map +1 -0
- package/core/EnumRadio/InitialNullable.d.ts +11 -0
- package/core/EnumRadio/InitialNullable.js +56 -0
- package/core/EnumRadio/InitialNullable.js.map +1 -0
- package/core/EnumRadio/Map.d.ts +10 -0
- package/core/EnumRadio/Map.js +55 -0
- package/core/EnumRadio/Map.js.map +1 -0
- package/core/EnumRadio/Nullable.d.ts +12 -0
- package/core/EnumRadio/Nullable.js +88 -0
- package/core/EnumRadio/Nullable.js.map +1 -0
- package/core/EnumRadio/index.d.ts +24 -0
- package/core/EnumRadio/index.js +45 -0
- package/core/EnumRadio/index.js.map +1 -0
- package/core/EnumSelect/InitialNullable.d.ts +10 -0
- package/core/EnumSelect/InitialNullable.js +54 -0
- package/core/EnumSelect/InitialNullable.js.map +1 -0
- package/core/EnumSelect/Map.d.ts +10 -0
- package/core/EnumSelect/Map.js +55 -0
- package/core/EnumSelect/Map.js.map +1 -0
- package/core/EnumSelect/Nullable.d.ts +12 -0
- package/core/EnumSelect/Nullable.js +88 -0
- package/core/EnumSelect/Nullable.js.map +1 -0
- package/core/EnumSelect/index.d.ts +29 -0
- package/core/EnumSelect/index.js +61 -0
- package/core/EnumSelect/index.js.map +1 -0
- package/{src/core → core}/EnumSelect/index.less +0 -0
- package/core/FlatList/VirtualFlatList/Item.d.ts +11 -0
- package/core/FlatList/VirtualFlatList/Item.js +20 -0
- package/core/FlatList/VirtualFlatList/Item.js.map +1 -0
- package/core/FlatList/VirtualFlatList/index.d.ts +7 -0
- package/core/FlatList/VirtualFlatList/index.js +110 -0
- package/core/FlatList/VirtualFlatList/index.js.map +1 -0
- package/{src/core → core}/FlatList/VirtualFlatList/index.less +0 -0
- package/core/FlatList/VirtualFlatList/type.d.ts +20 -0
- package/core/FlatList/VirtualFlatList/type.js +2 -0
- package/core/FlatList/VirtualFlatList/type.js.map +1 -0
- package/core/FlatList/index.d.ts +3 -0
- package/core/FlatList/index.js +60 -0
- package/core/FlatList/index.js.map +1 -0
- package/core/FlatList/shared/Footer/index.d.ts +8 -0
- package/core/FlatList/shared/Footer/index.js +13 -0
- package/core/FlatList/shared/Footer/index.js.map +1 -0
- package/{src/core → core}/FlatList/shared/Footer/index.less +0 -0
- package/core/FlatList/shared/GetRowKey.d.ts +2 -0
- package/core/FlatList/shared/GetRowKey.js +12 -0
- package/core/FlatList/shared/GetRowKey.js.map +1 -0
- package/core/FlatList/shared/Spinner/index.d.ts +8 -0
- package/core/FlatList/shared/Spinner/index.js +10 -0
- package/core/FlatList/shared/Spinner/index.js.map +1 -0
- package/{src/core → core}/FlatList/shared/Spinner/index.less +0 -0
- package/core/FlatList/shared/Wrapper/Loading.d.ts +8 -0
- package/core/FlatList/shared/Wrapper/Loading.js +7 -0
- package/core/FlatList/shared/Wrapper/Loading.js.map +1 -0
- package/core/FlatList/shared/Wrapper/index.d.ts +14 -0
- package/core/FlatList/shared/Wrapper/index.js +109 -0
- package/core/FlatList/shared/Wrapper/index.js.map +1 -0
- package/{src/core → core}/FlatList/shared/Wrapper/index.less +0 -0
- package/core/FlatList/shared/hooks/useBounceSwipe.d.ts +22 -0
- package/core/FlatList/shared/hooks/useBounceSwipe.js +111 -0
- package/core/FlatList/shared/hooks/useBounceSwipe.js.map +1 -0
- package/core/FlatList/shared/hooks/useElementScrollState.d.ts +8 -0
- package/core/FlatList/shared/hooks/useElementScrollState.js +38 -0
- package/core/FlatList/shared/hooks/useElementScrollState.js.map +1 -0
- package/core/FlatList/shared/hooks/useLoadingWithDelay.d.ts +9 -0
- package/core/FlatList/shared/hooks/useLoadingWithDelay.js +52 -0
- package/core/FlatList/shared/hooks/useLoadingWithDelay.js.map +1 -0
- package/core/FlatList/type.d.ts +48 -0
- package/core/FlatList/type.js +2 -0
- package/core/FlatList/type.js.map +1 -0
- package/core/Foldable/index.d.ts +18 -0
- package/core/Foldable/index.js +41 -0
- package/core/Foldable/index.js.map +1 -0
- package/{src/core → core}/Foldable/index.less +0 -0
- package/core/Form/Item.d.ts +29 -0
- package/core/Form/Item.js +106 -0
- package/core/Form/Item.js.map +1 -0
- package/core/Form/context.d.ts +14 -0
- package/core/Form/context.js +7 -0
- package/core/Form/context.js.map +1 -0
- package/core/Form/index.d.ts +36 -0
- package/core/Form/index.js +143 -0
- package/core/Form/index.js.map +1 -0
- package/{src/core → core}/Form/index.less +0 -0
- package/core/Grid.d.ts +6 -0
- package/core/Grid.js +7 -0
- package/core/Grid.js.map +1 -0
- package/core/HTMLContent/index.d.ts +11 -0
- package/core/HTMLContent/index.js +32 -0
- package/core/HTMLContent/index.js.map +1 -0
- package/{src/core → core}/HTMLContent/index.less +0 -0
- package/core/ImageUploader/index.d.ts +24 -0
- package/core/ImageUploader/index.js +148 -0
- package/core/ImageUploader/index.js.map +1 -0
- package/{src/core → core}/ImageUploader/index.less +0 -0
- package/core/Input/index.d.ts +39 -0
- package/core/Input/index.js +88 -0
- package/core/Input/index.js.map +1 -0
- package/{src/core → core}/Input/index.less +0 -0
- package/core/LabelledSelect.d.ts +11 -0
- package/core/LabelledSelect.js +42 -0
- package/core/LabelledSelect.js.map +1 -0
- package/core/Link.d.ts +15 -0
- package/core/Link.js +48 -0
- package/core/Link.js.map +1 -0
- package/core/LocalImporter.d.ts +21 -0
- package/core/LocalImporter.js +93 -0
- package/core/LocalImporter.js.map +1 -0
- package/core/LocaleProvider.d.ts +12 -0
- package/core/LocaleProvider.js +38 -0
- package/core/LocaleProvider.js.map +1 -0
- package/core/LocaleSelect.d.ts +11 -0
- package/core/LocaleSelect.js +45 -0
- package/core/LocaleSelect.js.map +1 -0
- package/core/Markdown/index.d.ts +20 -0
- package/core/Markdown/index.js +40 -0
- package/core/Markdown/index.js.map +1 -0
- package/{src/core → core}/Markdown/index.less +0 -0
- package/core/Modal/index.d.ts +16 -0
- package/core/Modal/index.js +67 -0
- package/core/Modal/index.js.map +1 -0
- package/{src/core → core}/Modal/index.less +0 -0
- package/core/MultipleCascader/index.d.ts +31 -0
- package/core/MultipleCascader/index.js +151 -0
- package/core/MultipleCascader/index.js.map +1 -0
- package/{src/core → core}/MultipleCascader/index.less +0 -0
- package/core/MultipleEnumSelect.d.ts +17 -0
- package/core/MultipleEnumSelect.js +40 -0
- package/core/MultipleEnumSelect.js.map +1 -0
- package/core/MultipleSelector/TablePopover.d.ts +20 -0
- package/core/MultipleSelector/TablePopover.js +95 -0
- package/core/MultipleSelector/TablePopover.js.map +1 -0
- package/core/MultipleSelector/index.d.ts +33 -0
- package/core/MultipleSelector/index.js +103 -0
- package/core/MultipleSelector/index.js.map +1 -0
- package/core/MutableTable/index.d.ts +44 -0
- package/core/MutableTable/index.js +139 -0
- package/core/MutableTable/index.js.map +1 -0
- package/{src/core → core}/MutableTable/index.less +0 -0
- package/core/NumberInput/NumberInputPercentage.d.ts +58 -0
- package/core/NumberInput/NumberInputPercentage.js +75 -0
- package/core/NumberInput/NumberInputPercentage.js.map +1 -0
- package/core/NumberInput/index.d.ts +70 -0
- package/core/NumberInput/index.js +130 -0
- package/core/NumberInput/index.js.map +1 -0
- package/{src/core → core}/NumberInput/index.less +0 -0
- package/core/NumberInput/util.d.ts +34 -0
- package/core/NumberInput/util.js +57 -0
- package/core/NumberInput/util.js.map +1 -0
- package/core/OverflowableText/index.d.ts +22 -0
- package/core/OverflowableText/index.js +64 -0
- package/core/OverflowableText/index.js.map +1 -0
- package/{src/core → core}/OverflowableText/index.less +0 -0
- package/core/PagedList/index.d.ts +27 -0
- package/core/PagedList/index.js +81 -0
- package/core/PagedList/index.js.map +1 -0
- package/{src/core → core}/PagedList/index.less +0 -0
- package/core/Pagination/index.d.ts +21 -0
- package/core/Pagination/index.js +51 -0
- package/core/Pagination/index.js.map +1 -0
- package/{src/core → core}/Pagination/index.less +0 -0
- package/core/Popover/index.d.ts +11 -0
- package/core/Popover/index.js +43 -0
- package/core/Popover/index.js.map +1 -0
- package/{src/core → core}/Popover/index.less +0 -0
- package/core/Progress.d.ts +10 -0
- package/core/Progress.js +42 -0
- package/core/Progress.js.map +1 -0
- package/core/Radio/index.d.ts +13 -0
- package/core/Radio/index.js +45 -0
- package/core/Radio/index.js.map +1 -0
- package/{src/core → core}/Radio/index.less +0 -0
- package/core/RelativeTime.d.ts +18 -0
- package/core/RelativeTime.js +60 -0
- package/core/RelativeTime.js.map +1 -0
- package/core/ResizeObserver.d.ts +2 -0
- package/core/ResizeObserver.js +2 -0
- package/core/ResizeObserver.js.map +1 -0
- package/core/SearchableSelect.d.ts +15 -0
- package/core/SearchableSelect.js +42 -0
- package/core/SearchableSelect.js.map +1 -0
- package/core/Select/index.d.ts +16 -0
- package/core/Select/index.js +45 -0
- package/core/Select/index.js.map +1 -0
- package/{src/core → core}/Select/index.less +0 -0
- package/core/SignedAmountInput.d.ts +20 -0
- package/core/SignedAmountInput.js +56 -0
- package/core/SignedAmountInput.js.map +1 -0
- package/core/Skeleton.d.ts +9 -0
- package/core/Skeleton.js +42 -0
- package/core/Skeleton.js.map +1 -0
- package/core/Slider/RangeSlider.d.ts +11 -0
- package/core/Slider/RangeSlider.js +53 -0
- package/core/Slider/RangeSlider.js.map +1 -0
- package/core/Slider/index.d.ts +16 -0
- package/core/Slider/index.js +79 -0
- package/core/Slider/index.js.map +1 -0
- package/{src/core → core}/Slider/index.less +0 -0
- package/core/Space.d.ts +10 -0
- package/core/Space.js +42 -0
- package/core/Space.js.map +1 -0
- package/core/Spin.d.ts +12 -0
- package/core/Spin.js +55 -0
- package/core/Spin.js.map +1 -0
- package/core/StepFormContainer/index.d.ts +27 -0
- package/core/StepFormContainer/index.js +50 -0
- package/core/StepFormContainer/index.js.map +1 -0
- package/{src/core → core}/StepFormContainer/index.less +0 -0
- package/core/Steps/index.d.ts +11 -0
- package/core/Steps/index.js +44 -0
- package/core/Steps/index.js.map +1 -0
- package/{src/core → core}/Steps/index.less +0 -0
- package/core/Table/index.d.ts +89 -0
- package/core/Table/index.js +152 -0
- package/core/Table/index.js.map +1 -0
- package/{src/core → core}/Table/index.less +0 -0
- package/core/Tabs/Single.d.ts +11 -0
- package/core/Tabs/Single.js +54 -0
- package/core/Tabs/Single.js.map +1 -0
- package/core/Tabs/index.d.ts +30 -0
- package/core/Tabs/index.js +96 -0
- package/core/Tabs/index.js.map +1 -0
- package/{src/core → core}/Tabs/index.less +0 -0
- package/core/Tag.d.ts +11 -0
- package/core/Tag.js +42 -0
- package/core/Tag.js.map +1 -0
- package/core/TagInput/index.d.ts +27 -0
- package/core/TagInput/index.js +107 -0
- package/core/TagInput/index.js.map +1 -0
- package/{src/core → core}/TagInput/index.less +0 -0
- package/core/Tags.d.ts +17 -0
- package/core/Tags.js +38 -0
- package/core/Tags.js.map +1 -0
- package/core/TimePicker/index.d.ts +17 -0
- package/core/TimePicker/index.js +46 -0
- package/core/TimePicker/index.js.map +1 -0
- package/{src/core → core}/TimePicker/index.less +0 -0
- package/core/TimeRangePicker/index.d.ts +17 -0
- package/core/TimeRangePicker/index.js +45 -0
- package/core/TimeRangePicker/index.js.map +1 -0
- package/{src/core → core}/TimeRangePicker/index.less +0 -0
- package/core/Tooltip.d.ts +9 -0
- package/core/Tooltip.js +42 -0
- package/core/Tooltip.js.map +1 -0
- package/core/TypedTabs/index.d.ts +23 -0
- package/core/TypedTabs/index.js +76 -0
- package/core/TypedTabs/index.js.map +1 -0
- package/{src/core → core}/TypedTabs/index.less +0 -0
- package/core/Uploader.d.ts +34 -0
- package/core/Uploader.js +97 -0
- package/core/Uploader.js.map +1 -0
- package/core/VerticalMarquee/index.d.ts +19 -0
- package/core/VerticalMarquee/index.js +51 -0
- package/core/VerticalMarquee/index.js.map +1 -0
- package/{src/core → core}/VerticalMarquee/index.less +0 -0
- package/core/VirtualTable/TableHeader.d.ts +13 -0
- package/core/VirtualTable/TableHeader.js +45 -0
- package/core/VirtualTable/TableHeader.js.map +1 -0
- package/core/VirtualTable/TableRow.d.ts +21 -0
- package/core/VirtualTable/TableRow.js +59 -0
- package/core/VirtualTable/TableRow.js.map +1 -0
- package/core/VirtualTable/hooks/useColumnWidths.d.ts +11 -0
- package/core/VirtualTable/hooks/useColumnWidths.js +38 -0
- package/core/VirtualTable/hooks/useColumnWidths.js.map +1 -0
- package/core/VirtualTable/hooks/useDebounce.d.ts +1 -0
- package/core/VirtualTable/hooks/useDebounce.js +45 -0
- package/core/VirtualTable/hooks/useDebounce.js.map +1 -0
- package/core/VirtualTable/hooks/useLayout.d.ts +17 -0
- package/core/VirtualTable/hooks/useLayout.js +44 -0
- package/core/VirtualTable/hooks/useLayout.js.map +1 -0
- package/core/VirtualTable/hooks/useRowExpand.d.ts +7 -0
- package/core/VirtualTable/hooks/useRowExpand.js +20 -0
- package/core/VirtualTable/hooks/useRowExpand.js.map +1 -0
- package/core/VirtualTable/hooks/useRowSelection.d.ts +10 -0
- package/core/VirtualTable/hooks/useRowSelection.js +83 -0
- package/core/VirtualTable/hooks/useRowSelection.js.map +1 -0
- package/core/VirtualTable/hooks/useScrollBarSize.d.ts +5 -0
- package/core/VirtualTable/hooks/useScrollBarSize.js +36 -0
- package/core/VirtualTable/hooks/useScrollBarSize.js.map +1 -0
- package/core/VirtualTable/hooks/useScrollToEdge.d.ts +8 -0
- package/core/VirtualTable/hooks/useScrollToEdge.js +48 -0
- package/core/VirtualTable/hooks/useScrollToEdge.js.map +1 -0
- package/core/VirtualTable/hooks/useStickyPosition.d.ts +2 -0
- package/core/VirtualTable/hooks/useStickyPosition.js +24 -0
- package/core/VirtualTable/hooks/useStickyPosition.js.map +1 -0
- package/core/VirtualTable/hooks/useTransformColumn.d.ts +11 -0
- package/core/VirtualTable/hooks/useTransformColumn.js +9 -0
- package/core/VirtualTable/hooks/useTransformColumn.js.map +1 -0
- package/core/VirtualTable/index.d.ts +30 -0
- package/core/VirtualTable/index.js +85 -0
- package/core/VirtualTable/index.js.map +1 -0
- package/{src/core → core}/VirtualTable/index.less +0 -0
- package/core/VirtualTable/type.d.ts +57 -0
- package/core/VirtualTable/type.js +2 -0
- package/core/VirtualTable/type.js.map +1 -0
- package/core/WithExplanation/index.d.ts +21 -0
- package/core/WithExplanation/index.js +46 -0
- package/core/WithExplanation/index.js.map +1 -0
- package/{src/core → core}/WithExplanation/index.less +0 -0
- package/core/WithTooltipList.d.ts +23 -0
- package/core/WithTooltipList.js +64 -0
- package/core/WithTooltipList.js.map +1 -0
- package/core/YearMonthSelector.d.ts +16 -0
- package/core/YearMonthSelector.js +53 -0
- package/core/YearMonthSelector.js.map +1 -0
- package/{src/css → css}/global.less +0 -0
- package/{src/css → css}/variable.less +0 -0
- package/hooks/useOrientationMode.d.ts +2 -0
- package/hooks/useOrientationMode.js +30 -0
- package/hooks/useOrientationMode.js.map +1 -0
- package/hooks/useSwipe/controller.d.ts +20 -0
- package/hooks/useSwipe/controller.js +126 -0
- package/hooks/useSwipe/controller.js.map +1 -0
- package/hooks/useSwipe/index.d.ts +3 -0
- package/hooks/useSwipe/index.js +9 -0
- package/hooks/useSwipe/index.js.map +1 -0
- package/hooks/useSwipe/type.d.ts +38 -0
- package/hooks/useSwipe/type.js +8 -0
- package/hooks/useSwipe/type.js.map +1 -0
- package/hooks/useTransform.d.ts +18 -0
- package/hooks/useTransform.js +62 -0
- package/hooks/useTransform.js.map +1 -0
- package/internal/ArrayUtil.d.ts +29 -0
- package/internal/ArrayUtil.js +76 -0
- package/internal/ArrayUtil.js.map +1 -0
- package/internal/ExpirableLocalStorage.d.ts +123 -0
- package/internal/ExpirableLocalStorage.js +245 -0
- package/internal/ExpirableLocalStorage.js.map +1 -0
- package/internal/Memo.d.ts +9 -0
- package/internal/Memo.js +31 -0
- package/internal/Memo.js.map +1 -0
- package/internal/NumberUtil.d.ts +7 -0
- package/internal/NumberUtil.js +38 -0
- package/internal/NumberUtil.js.map +1 -0
- package/internal/StorageHelper.d.ts +31 -0
- package/internal/StorageHelper.js +152 -0
- package/internal/StorageHelper.js.map +1 -0
- package/internal/TextUtil.d.ts +5 -0
- package/internal/TextUtil.js +15 -0
- package/internal/TextUtil.js.map +1 -0
- package/internal/i18n/admin/en.d.ts +18 -0
- package/internal/i18n/admin/en.js +19 -0
- package/internal/i18n/admin/en.js.map +1 -0
- package/internal/i18n/admin/index.d.ts +18 -0
- package/internal/i18n/admin/index.js +11 -0
- package/internal/i18n/admin/index.js.map +1 -0
- package/internal/i18n/admin/zh.d.ts +18 -0
- package/internal/i18n/admin/zh.js +19 -0
- package/internal/i18n/admin/zh.js.map +1 -0
- package/internal/i18n/core/en.d.ts +37 -0
- package/internal/i18n/core/en.js +38 -0
- package/internal/i18n/core/en.js.map +1 -0
- package/internal/i18n/core/index.d.ts +37 -0
- package/internal/i18n/core/index.js +11 -0
- package/internal/i18n/core/index.js.map +1 -0
- package/internal/i18n/core/zh.d.ts +37 -0
- package/internal/i18n/core/zh.js +38 -0
- package/internal/i18n/core/zh.js.map +1 -0
- package/internal/i18n/util/en.d.ts +9 -0
- package/internal/i18n/util/en.js +10 -0
- package/internal/i18n/util/en.js.map +1 -0
- package/internal/i18n/util/index.d.ts +9 -0
- package/internal/i18n/util/index.js +11 -0
- package/internal/i18n/util/index.js.map +1 -0
- package/internal/i18n/util/zh.d.ts +9 -0
- package/internal/i18n/util/zh.js +10 -0
- package/internal/i18n/util/zh.js.map +1 -0
- package/internal/type.d.ts +15 -0
- package/internal/type.js +2 -0
- package/internal/type.js.map +1 -0
- package/package.json +1 -1
- package/util/AdminNavigatorBase.d.ts +64 -0
- package/util/AdminNavigatorBase.js +101 -0
- package/util/AdminNavigatorBase.js.map +1 -0
- package/util/BrowserBookmarkUtil.d.ts +5 -0
- package/util/BrowserBookmarkUtil.js +25 -0
- package/util/BrowserBookmarkUtil.js.map +1 -0
- package/util/BrowserUtil.d.ts +31 -0
- package/util/BrowserUtil.js +154 -0
- package/util/BrowserUtil.js.map +1 -0
- package/util/CanvasUtil.d.ts +17 -0
- package/util/CanvasUtil.js +94 -0
- package/util/CanvasUtil.js.map +1 -0
- package/util/ClassNames.d.ts +2 -0
- package/util/ClassNames.js +3 -0
- package/util/ClassNames.js.map +1 -0
- package/util/Clipboard.d.ts +22 -0
- package/util/Clipboard.js +118 -0
- package/util/Clipboard.js.map +1 -0
- package/util/ExpirableLocalStorageUtil.d.ts +2 -0
- package/util/ExpirableLocalStorageUtil.js +3 -0
- package/util/ExpirableLocalStorageUtil.js.map +1 -0
- package/util/ExportUtil.d.ts +11 -0
- package/util/ExportUtil.js +28 -0
- package/util/ExportUtil.js.map +1 -0
- package/util/ImportUtil.d.ts +10 -0
- package/util/ImportUtil.js +94 -0
- package/util/ImportUtil.js.map +1 -0
- package/util/LocalStorageUtil.d.ts +2 -0
- package/util/LocalStorageUtil.js +3 -0
- package/util/LocalStorageUtil.js.map +1 -0
- package/util/LocaleUtil.d.ts +22 -0
- package/util/LocaleUtil.js +34 -0
- package/util/LocaleUtil.js.map +1 -0
- package/util/MediaUtil/index.d.ts +10 -0
- package/util/MediaUtil/index.js +60 -0
- package/util/MediaUtil/index.js.map +1 -0
- package/{src/util → util}/MediaUtil/index.less +0 -0
- package/util/MessageUtil/index.d.ts +15 -0
- package/util/MessageUtil/index.js +29 -0
- package/util/MessageUtil/index.js.map +1 -0
- package/{src/util → util}/MessageUtil/index.less +0 -0
- package/util/ModalUtil/index.d.ts +41 -0
- package/util/ModalUtil/index.js +145 -0
- package/util/ModalUtil/index.js.map +1 -0
- package/{src/util → util}/ModalUtil/index.less +0 -0
- package/util/NotificationUtil.d.ts +12 -0
- package/util/NotificationUtil.js +52 -0
- package/util/NotificationUtil.js.map +1 -0
- package/util/OrientationUtil.d.ts +20 -0
- package/util/OrientationUtil.js +50 -0
- package/util/OrientationUtil.js.map +1 -0
- package/util/PromptUtil/PromptBody.d.ts +18 -0
- package/util/PromptUtil/PromptBody.js +100 -0
- package/util/PromptUtil/PromptBody.js.map +1 -0
- package/util/PromptUtil/index.d.ts +19 -0
- package/util/PromptUtil/index.js +48 -0
- package/util/PromptUtil/index.js.map +1 -0
- package/{src/util → util}/PromptUtil/index.less +0 -0
- package/util/RecentUsedStorageUtil.d.ts +12 -0
- package/util/RecentUsedStorageUtil.js +45 -0
- package/util/RecentUsedStorageUtil.js.map +1 -0
- package/util/SessionStorageUtil.d.ts +2 -0
- package/util/SessionStorageUtil.js +3 -0
- package/util/SessionStorageUtil.js.map +1 -0
- package/util/SwipeUtil.d.ts +8 -0
- package/util/SwipeUtil.js +26 -0
- package/util/SwipeUtil.js.map +1 -0
- package/util/UploadUtil/index.d.ts +6 -0
- package/util/UploadUtil/index.js +61 -0
- package/util/UploadUtil/index.js.map +1 -0
- package/util/UploadUtil/type.d.ts +41 -0
- package/util/UploadUtil/type.js +2 -0
- package/util/UploadUtil/type.js.map +1 -0
- package/config/jest-stubs/style-stub.js +0 -13
- package/config/jest.config.ts +0 -57
- package/config/tsconfig.script.json +0 -12
- package/config/tsconfig.src.json +0 -15
- package/config/tsconfig.test.json +0 -20
- package/script/build.ts +0 -103
- package/script/format.ts +0 -7
- package/script/start-mobile.ts +0 -13
- package/script/start.ts +0 -31
- package/src/admin/AdminApp/Default/NavigatorSide/index.tsx +0 -68
- package/src/admin/AdminApp/Default/SoundSwitch.tsx +0 -32
- package/src/admin/AdminApp/Default/SquareLogo/index.tsx +0 -32
- package/src/admin/AdminApp/Menu.tsx +0 -154
- package/src/admin/AdminApp/Navigator.tsx +0 -186
- package/src/admin/AdminApp/NotFound.tsx +0 -24
- package/src/admin/AdminApp/RouteSwitch.tsx +0 -61
- package/src/admin/AdminApp/WithErrorBoundary.tsx +0 -36
- package/src/admin/AdminApp/context.ts +0 -13
- package/src/admin/AdminApp/index.tsx +0 -96
- package/src/admin/AdminPage/Filter.tsx +0 -76
- package/src/admin/AdminPage/Result.tsx +0 -41
- package/src/admin/AdminPage/SaveBar.tsx +0 -33
- package/src/admin/AdminPage/Summary.tsx +0 -15
- package/src/admin/AdminPage/TopBar.tsx +0 -15
- package/src/admin/AdminPage/index.tsx +0 -29
- package/src/admin/AdminPermissionSelector.tsx +0 -299
- package/src/admin/RichEditor/index.tsx +0 -123
- package/src/core/Amount/AmountPercentage.tsx +0 -27
- package/src/core/Amount/index.tsx +0 -71
- package/src/core/AmountConditionInput.tsx +0 -63
- package/src/core/AmountRangeInput.tsx +0 -66
- package/src/core/AuthenticationCodeInput.tsx +0 -85
- package/src/core/AutoCompleteInput.tsx +0 -16
- package/src/core/Badge/index.tsx +0 -15
- package/src/core/BoolRadio.tsx +0 -62
- package/src/core/BoolSelect.tsx +0 -50
- package/src/core/BoolSwitch.tsx +0 -37
- package/src/core/Breadcrumb/index.tsx +0 -46
- package/src/core/Button/index.tsx +0 -59
- package/src/core/Card.tsx +0 -16
- package/src/core/Carousel.tsx +0 -19
- package/src/core/Carousel3D/index.tsx +0 -150
- package/src/core/Cascader/InitialNullable.tsx +0 -20
- package/src/core/Cascader/Nullable.tsx +0 -28
- package/src/core/Cascader/index.tsx +0 -93
- package/src/core/Checkbox/index.tsx +0 -24
- package/src/core/Collapse.tsx +0 -19
- package/src/core/Countdown/SlidingDigit.tsx +0 -39
- package/src/core/Countdown/index.tsx +0 -125
- package/src/core/DarkOverlay/index.tsx +0 -24
- package/src/core/DateCalendar.tsx +0 -106
- package/src/core/DatePicker/index.tsx +0 -54
- package/src/core/DateRangePicker/index.tsx +0 -58
- package/src/core/DateTimePicker/index.tsx +0 -61
- package/src/core/DateTimeRangePicker/index.tsx +0 -60
- package/src/core/Descriptions/index.tsx +0 -45
- package/src/core/DocumentTitle.tsx +0 -58
- package/src/core/Drawer.tsx +0 -14
- package/src/core/Dropdown.tsx +0 -10
- package/src/core/EnumCheckboxGroup/Map.tsx +0 -21
- package/src/core/EnumCheckboxGroup/index.tsx +0 -23
- package/src/core/EnumRadio/InitialNullable.tsx +0 -24
- package/src/core/EnumRadio/Map.tsx +0 -21
- package/src/core/EnumRadio/Nullable.tsx +0 -31
- package/src/core/EnumRadio/index.tsx +0 -45
- package/src/core/EnumSelect/InitialNullable.tsx +0 -20
- package/src/core/EnumSelect/Map.tsx +0 -21
- package/src/core/EnumSelect/Nullable.tsx +0 -31
- package/src/core/EnumSelect/index.tsx +0 -74
- package/src/core/FlatList/VirtualFlatList/Item.tsx +0 -28
- package/src/core/FlatList/VirtualFlatList/index.tsx +0 -142
- package/src/core/FlatList/VirtualFlatList/type.ts +0 -26
- package/src/core/FlatList/index.tsx +0 -95
- package/src/core/FlatList/shared/Footer/index.tsx +0 -23
- package/src/core/FlatList/shared/GetRowKey.ts +0 -11
- package/src/core/FlatList/shared/Spinner/index.tsx +0 -18
- package/src/core/FlatList/shared/Wrapper/Loading.tsx +0 -17
- package/src/core/FlatList/shared/Wrapper/index.tsx +0 -123
- package/src/core/FlatList/shared/hooks/useBounceSwipe.ts +0 -120
- package/src/core/FlatList/shared/hooks/useElementScrollState.ts +0 -43
- package/src/core/FlatList/shared/hooks/useLoadingWithDelay.ts +0 -40
- package/src/core/FlatList/type.tsx +0 -56
- package/src/core/Foldable/index.tsx +0 -38
- package/src/core/Form/Item.tsx +0 -87
- package/src/core/Form/context.ts +0 -16
- package/src/core/Form/index.tsx +0 -109
- package/src/core/Grid.tsx +0 -7
- package/src/core/HTMLContent/index.tsx +0 -17
- package/src/core/ImageUploader/index.tsx +0 -104
- package/src/core/Input/index.tsx +0 -63
- package/src/core/LabelledSelect.tsx +0 -15
- package/src/core/Link.tsx +0 -57
- package/src/core/LocalImporter.tsx +0 -62
- package/src/core/LocaleProvider.tsx +0 -31
- package/src/core/LocaleSelect.tsx +0 -36
- package/src/core/Markdown/index.tsx +0 -42
- package/src/core/Modal/index.tsx +0 -37
- package/src/core/MultipleCascader/index.tsx +0 -114
- package/src/core/MultipleEnumSelect.tsx +0 -28
- package/src/core/MultipleSelector/TablePopover.tsx +0 -62
- package/src/core/MultipleSelector/index.tsx +0 -106
- package/src/core/MutableTable/index.tsx +0 -151
- package/src/core/NumberInput/NumberInputPercentage.tsx +0 -103
- package/src/core/NumberInput/index.tsx +0 -192
- package/src/core/NumberInput/util.ts +0 -55
- package/src/core/OverflowableText/index.tsx +0 -66
- package/src/core/PagedList/index.tsx +0 -93
- package/src/core/Pagination/index.tsx +0 -59
- package/src/core/Popover/index.tsx +0 -15
- package/src/core/Progress.tsx +0 -14
- package/src/core/Radio/index.tsx +0 -21
- package/src/core/RelativeTime.tsx +0 -59
- package/src/core/ResizeObserver.tsx +0 -2
- package/src/core/SearchableSelect.tsx +0 -17
- package/src/core/Select/index.tsx +0 -25
- package/src/core/SignedAmountInput.tsx +0 -59
- package/src/core/Skeleton.tsx +0 -14
- package/src/core/Slider/RangeSlider.tsx +0 -17
- package/src/core/Slider/index.tsx +0 -50
- package/src/core/Space.tsx +0 -14
- package/src/core/Spin.tsx +0 -25
- package/src/core/StepFormContainer/index.tsx +0 -66
- package/src/core/Steps/index.tsx +0 -17
- package/src/core/Table/index.tsx +0 -221
- package/src/core/Tabs/Single.tsx +0 -25
- package/src/core/Tabs/index.tsx +0 -82
- package/src/core/Tag.tsx +0 -17
- package/src/core/TagInput/index.tsx +0 -94
- package/src/core/Tags.tsx +0 -34
- package/src/core/TimePicker/index.tsx +0 -44
- package/src/core/TimeRangePicker/index.tsx +0 -42
- package/src/core/Tooltip.tsx +0 -17
- package/src/core/TypedTabs/index.tsx +0 -43
- package/src/core/Uploader.tsx +0 -118
- package/src/core/VerticalMarquee/index.tsx +0 -51
- package/src/core/VirtualTable/TableHeader.tsx +0 -41
- package/src/core/VirtualTable/TableRow.tsx +0 -90
- package/src/core/VirtualTable/hooks/useColumnWidths.ts +0 -24
- package/src/core/VirtualTable/hooks/useDebounce.ts +0 -18
- package/src/core/VirtualTable/hooks/useLayout.tsx +0 -58
- package/src/core/VirtualTable/hooks/useRowExpand.tsx +0 -27
- package/src/core/VirtualTable/hooks/useRowSelection.tsx +0 -72
- package/src/core/VirtualTable/hooks/useScrollBarSize.ts +0 -23
- package/src/core/VirtualTable/hooks/useScrollToEdge.ts +0 -36
- package/src/core/VirtualTable/hooks/useStickyPosition.ts +0 -28
- package/src/core/VirtualTable/hooks/useTransformColumn.ts +0 -19
- package/src/core/VirtualTable/index.tsx +0 -143
- package/src/core/VirtualTable/type.ts +0 -59
- package/src/core/WithExplanation/index.tsx +0 -47
- package/src/core/WithTooltipList.tsx +0 -89
- package/src/core/YearMonthSelector.tsx +0 -53
- package/src/hooks/useOrientationMode.ts +0 -18
- package/src/hooks/useSwipe/controller.ts +0 -133
- package/src/hooks/useSwipe/index.ts +0 -11
- package/src/hooks/useSwipe/type.ts +0 -45
- package/src/hooks/useTransform.ts +0 -78
- package/src/internal/ArrayUtil.ts +0 -53
- package/src/internal/ExpirableLocalStorage.ts +0 -262
- package/src/internal/Memo.ts +0 -28
- package/src/internal/NumberUtil.ts +0 -38
- package/src/internal/StorageHelper.ts +0 -152
- package/src/internal/TextUtil.ts +0 -11
- package/src/internal/i18n/admin/en.ts +0 -18
- package/src/internal/i18n/admin/index.ts +0 -13
- package/src/internal/i18n/admin/zh.ts +0 -18
- package/src/internal/i18n/core/en.ts +0 -37
- package/src/internal/i18n/core/index.ts +0 -13
- package/src/internal/i18n/core/zh.ts +0 -37
- package/src/internal/i18n/util/en.ts +0 -9
- package/src/internal/i18n/util/index.ts +0 -13
- package/src/internal/i18n/util/zh.ts +0 -9
- package/src/internal/type.ts +0 -12
- package/src/util/AdminNavigatorBase.ts +0 -99
- package/src/util/BrowserBookmarkUtil.ts +0 -24
- package/src/util/BrowserUtil.ts +0 -122
- package/src/util/CanvasUtil.ts +0 -61
- package/src/util/ClassNames.ts +0 -2
- package/src/util/Clipboard.ts +0 -61
- package/src/util/ExpirableLocalStorageUtil.ts +0 -3
- package/src/util/ExportUtil.ts +0 -34
- package/src/util/ImportUtil.ts +0 -41
- package/src/util/LocalStorageUtil.ts +0 -3
- package/src/util/LocaleUtil.ts +0 -47
- package/src/util/MediaUtil/index.tsx +0 -69
- package/src/util/MessageUtil/index.tsx +0 -23
- package/src/util/ModalUtil/index.tsx +0 -179
- package/src/util/NotificationUtil.tsx +0 -42
- package/src/util/OrientationUtil.ts +0 -51
- package/src/util/PromptUtil/PromptBody.tsx +0 -62
- package/src/util/PromptUtil/index.tsx +0 -50
- package/src/util/RecentUsedStorageUtil.ts +0 -46
- package/src/util/SessionStorageUtil.ts +0 -3
- package/src/util/SwipeUtil.ts +0 -25
- package/src/util/UploadUtil/index.ts +0 -73
- package/src/util/UploadUtil/type.ts +0 -46
- package/test/mobile-ui-test/package.json +0 -5
- package/test/mobile-ui-test/src/component/FlatListDemo/fetch.ts +0 -18
- package/test/mobile-ui-test/src/component/FlatListDemo/index.less +0 -22
- package/test/mobile-ui-test/src/component/FlatListDemo/index.tsx +0 -149
- package/test/mobile-ui-test/src/component/Main.tsx +0 -6
- package/test/mobile-ui-test/src/index.html +0 -12
- package/test/mobile-ui-test/src/index.less +0 -18
- package/test/mobile-ui-test/src/index.tsx +0 -6
- package/test/mobile-ui-test/static/robots.txt +0 -2
- package/test/mobile-ui-test/tsconfig.json +0 -4
- package/test/ui-test/package.json +0 -5
- package/test/ui-test/src/asset/logo.png +0 -0
- package/test/ui-test/src/component/DemoHelper/index.less +0 -33
- package/test/ui-test/src/component/DemoHelper/index.tsx +0 -55
- package/test/ui-test/src/component/Main.tsx +0 -33
- package/test/ui-test/src/component/WebUILogo.tsx +0 -7
- package/test/ui-test/src/component/WebUINavigatorSide.tsx +0 -20
- package/test/ui-test/src/component/admin/ConfigPageDemo.tsx +0 -39
- package/test/ui-test/src/component/admin/NavigationHistoryDemo.tsx +0 -30
- package/test/ui-test/src/component/admin/PermissionSelectorDemo.tsx +0 -65
- package/test/ui-test/src/component/admin/RenderErrorDemo.tsx +0 -5
- package/test/ui-test/src/component/admin/ResultPageDemo.tsx +0 -13
- package/test/ui-test/src/component/admin/RichEditorDemo.tsx +0 -20
- package/test/ui-test/src/component/admin/SeparateTabDetailDemo.tsx +0 -44
- package/test/ui-test/src/component/admin/TablePageDemo.tsx +0 -85
- package/test/ui-test/src/component/core/AmountDemo.tsx +0 -117
- package/test/ui-test/src/component/core/ButtonDemo/__tests__/__snapshots__/dom-snapshot.test.tsx.snap +0 -12
- package/test/ui-test/src/component/core/ButtonDemo/__tests__/dom-snapshot.test.tsx +0 -10
- package/test/ui-test/src/component/core/ButtonDemo/__tests__/smoke.test.tsx +0 -71
- package/test/ui-test/src/component/core/ButtonDemo/index.tsx +0 -39
- package/test/ui-test/src/component/core/CalendarDemo.tsx +0 -98
- package/test/ui-test/src/component/core/CarouselDemo/index.tsx +0 -51
- package/test/ui-test/src/component/core/CascaderDemo/index.tsx +0 -120
- package/test/ui-test/src/component/core/FoldableDemo.tsx +0 -31
- package/test/ui-test/src/component/core/FormDemo.tsx +0 -204
- package/test/ui-test/src/component/core/InputDemo/index.tsx +0 -123
- package/test/ui-test/src/component/core/MiscellaneousDemo/TagInputDemo.tsx +0 -8
- package/test/ui-test/src/component/core/MiscellaneousDemo/index.tsx +0 -157
- package/test/ui-test/src/component/core/ModalDemo/index.tsx +0 -75
- package/test/ui-test/src/component/core/OverflowableTextDemo.tsx +0 -78
- package/test/ui-test/src/component/core/RelativeTimeDemo.tsx +0 -35
- package/test/ui-test/src/component/core/SelectDemo/index.tsx +0 -141
- package/test/ui-test/src/component/core/SliderDemo.tsx +0 -44
- package/test/ui-test/src/component/core/StepContainerDemo.tsx +0 -53
- package/test/ui-test/src/component/core/TableDemo.tsx +0 -81
- package/test/ui-test/src/component/core/TabsDemo.tsx +0 -136
- package/test/ui-test/src/component/core/UploaderImporterDemo.tsx +0 -52
- package/test/ui-test/src/component/core/VirtualTableDemo.tsx +0 -232
- package/test/ui-test/src/dummy/dummyCallback.ts +0 -13
- package/test/ui-test/src/dummy/dummyList.ts +0 -63
- package/test/ui-test/src/dummy/dummyTableData.tsx +0 -60
- package/test/ui-test/src/dummy/dummyUpload.tsx +0 -43
- package/test/ui-test/src/index.html +0 -11
- package/test/ui-test/src/index.tsx +0 -5
- package/test/ui-test/src/type.ts +0 -8
- package/test/ui-test/src/util/NavigationService.tsx +0 -217
- package/test/ui-test/src/util/withUncontrolledInitialValue.tsx +0 -14
- package/test/ui-test/static/robots.txt +0 -2
- package/test/ui-test/tsconfig.json +0 -3
- package/test/unit-test/ClassNames.test.ts +0 -17
- package/test/unit-test/ExpirableLocalStorageUtil.test.ts +0 -42
- package/test/unit-test/NumberInput.util.test.ts +0 -344
- package/test/unit-test/NumberUtil.test.ts +0 -57
- package/test/unit-test/TextUtil.test.ts +0 -10
- package/tsconfig.json +0 -15
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* an expirable local storage (Singleton)
|
|
3
|
+
*/
|
|
4
|
+
var ExpirableLocalStorage = /** @class */ (function () {
|
|
5
|
+
/**
|
|
6
|
+
* The ExpirableStorage's constructor should always be private to prevent direct
|
|
7
|
+
* construction calls with the `new` operator.
|
|
8
|
+
*/
|
|
9
|
+
function ExpirableLocalStorage() {
|
|
10
|
+
this.storage = window.localStorage;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* get the ExpirableStorage instance
|
|
14
|
+
*/
|
|
15
|
+
ExpirableLocalStorage.getInstance = function () {
|
|
16
|
+
if (!ExpirableLocalStorage.instance) {
|
|
17
|
+
ExpirableLocalStorage.instance = new ExpirableLocalStorage();
|
|
18
|
+
}
|
|
19
|
+
return ExpirableLocalStorage.instance;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* set boolean value
|
|
23
|
+
* @param key storage key
|
|
24
|
+
* @param value boolean value
|
|
25
|
+
* @param expiryTimestamp expiry timestamp
|
|
26
|
+
*/
|
|
27
|
+
ExpirableLocalStorage.prototype.setBool = function (key, value, expiryTimestamp) {
|
|
28
|
+
this.set(key, value ? ExpirableLocalStorage.TRUE : ExpirableLocalStorage.FALSE, expiryTimestamp);
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* set string
|
|
32
|
+
* @param key storage key
|
|
33
|
+
* @param value string value
|
|
34
|
+
* @param expiryTimestamp expiry timestamp
|
|
35
|
+
*/
|
|
36
|
+
ExpirableLocalStorage.prototype.setString = function (key, value, expiryTimestamp) {
|
|
37
|
+
this.set(key, value, expiryTimestamp);
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* set number
|
|
41
|
+
* @param key storage key
|
|
42
|
+
* @param value number value
|
|
43
|
+
* @param expiryTimestamp expiry timestamp
|
|
44
|
+
*/
|
|
45
|
+
ExpirableLocalStorage.prototype.setNumber = function (key, value, expiryTimestamp) {
|
|
46
|
+
this.set(key, value.toString(), expiryTimestamp);
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* set object
|
|
50
|
+
* @param key storage key
|
|
51
|
+
* @param item object
|
|
52
|
+
* @param expiryTimestamp expiry timestamp
|
|
53
|
+
*/
|
|
54
|
+
ExpirableLocalStorage.prototype.setObject = function (key, item, expiryTimestamp) {
|
|
55
|
+
this.set(key, JSON.stringify(item), expiryTimestamp);
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* get boolean value
|
|
59
|
+
* @param key storage key
|
|
60
|
+
* @param defaultValue default value
|
|
61
|
+
* @returns boolean value
|
|
62
|
+
*/
|
|
63
|
+
ExpirableLocalStorage.prototype.getBool = function (key, defaultValue) {
|
|
64
|
+
var transformer = function (_) { return (_ === ExpirableLocalStorage.TRUE ? true : _ === ExpirableLocalStorage.FALSE ? false : null); };
|
|
65
|
+
return this.get(key, defaultValue, transformer);
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* get string value
|
|
69
|
+
* @param key storage key
|
|
70
|
+
* @param defaultValue default value
|
|
71
|
+
* @param validValues valid values
|
|
72
|
+
* @returns string value
|
|
73
|
+
*/
|
|
74
|
+
ExpirableLocalStorage.prototype.getString = function (key, defaultValue, validValues) {
|
|
75
|
+
var transformer = function (_) {
|
|
76
|
+
var typedValue = _;
|
|
77
|
+
return validValues ? (validValues.includes(typedValue) ? typedValue : null) : typedValue;
|
|
78
|
+
};
|
|
79
|
+
return this.get(key, defaultValue, transformer);
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* get number value
|
|
83
|
+
* @param key storage key
|
|
84
|
+
* @param defaultValue default value
|
|
85
|
+
* @param validator validator
|
|
86
|
+
* @returns number value
|
|
87
|
+
*/
|
|
88
|
+
ExpirableLocalStorage.prototype.getNumber = function (key, defaultValue, validator) {
|
|
89
|
+
var transformer = function (_) {
|
|
90
|
+
var numberedData = Number(_);
|
|
91
|
+
if (Number.isFinite(numberedData)) {
|
|
92
|
+
if (validator === undefined) {
|
|
93
|
+
return numberedData;
|
|
94
|
+
}
|
|
95
|
+
else if (typeof validator === "function") {
|
|
96
|
+
if (validator(numberedData)) {
|
|
97
|
+
return numberedData;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
if (validator.includes(numberedData)) {
|
|
102
|
+
return numberedData;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
};
|
|
108
|
+
return this.get(key, defaultValue, transformer);
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* get object value
|
|
112
|
+
* @param key storage key
|
|
113
|
+
* @param defaultValue default value
|
|
114
|
+
* @param validator validator
|
|
115
|
+
* @returns object value
|
|
116
|
+
*/
|
|
117
|
+
ExpirableLocalStorage.prototype.getObject = function (key, defaultValue, validator) {
|
|
118
|
+
var transformer = function (_) {
|
|
119
|
+
try {
|
|
120
|
+
var obj = JSON.parse(_);
|
|
121
|
+
if (validator(obj)) {
|
|
122
|
+
return obj;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
catch (e) {
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
return this.get(key, defaultValue, transformer);
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* get the raw localstorage data
|
|
136
|
+
* @param key storage key
|
|
137
|
+
* @returns raw data
|
|
138
|
+
*/
|
|
139
|
+
ExpirableLocalStorage.prototype.getRaw = function (key) {
|
|
140
|
+
try {
|
|
141
|
+
return this.storage.getItem(this.canonicalKey(key));
|
|
142
|
+
}
|
|
143
|
+
catch (e) {
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* get current timestamp
|
|
149
|
+
* @returns current timestamp
|
|
150
|
+
*/
|
|
151
|
+
ExpirableLocalStorage.prototype.now = function () {
|
|
152
|
+
return new Date().getTime();
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* get value
|
|
156
|
+
* @param key storage key
|
|
157
|
+
* @param defaultValue
|
|
158
|
+
* @param transformer
|
|
159
|
+
* @returns
|
|
160
|
+
*/
|
|
161
|
+
ExpirableLocalStorage.prototype.get = function (key, defaultValue, transformer) {
|
|
162
|
+
try {
|
|
163
|
+
this.prune();
|
|
164
|
+
var value = this.getData(this.canonicalKey(key)).value;
|
|
165
|
+
if (value !== null) {
|
|
166
|
+
return transformer(value) || defaultValue;
|
|
167
|
+
}
|
|
168
|
+
return defaultValue;
|
|
169
|
+
}
|
|
170
|
+
catch (e) {
|
|
171
|
+
return defaultValue;
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* set value
|
|
176
|
+
* @param key storage key
|
|
177
|
+
* @param value storage value
|
|
178
|
+
* @param expiryTimestamp The "expiryTimestamp" (expiration time) claim identifies the expiration time on or after which the value MUST NOT be accepted for processing. The processing of the "expiryTimestamp" claim requires that the current date/time MUST be before the expiration date/time listed in the "expiryTimestamp" claim.
|
|
179
|
+
*/
|
|
180
|
+
ExpirableLocalStorage.prototype.set = function (key, value, expiryTimestamp) {
|
|
181
|
+
try {
|
|
182
|
+
this.setData(this.canonicalKey(key), {
|
|
183
|
+
value: value,
|
|
184
|
+
expiryTimestamp: expiryTimestamp,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
catch (e) {
|
|
188
|
+
// Do nothing
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @param key storage key
|
|
194
|
+
* @returns the original localstorage canonical key with prefix like "@@EXPIRABLE/key"
|
|
195
|
+
*/
|
|
196
|
+
ExpirableLocalStorage.prototype.canonicalKey = function (key) {
|
|
197
|
+
return "".concat(ExpirableLocalStorage.PREFIX).concat(key);
|
|
198
|
+
};
|
|
199
|
+
ExpirableLocalStorage.prototype.getData = function (key) {
|
|
200
|
+
return JSON.parse(this.storage.getItem(key) || JSON.stringify(ExpirableLocalStorage.DEFAULT_DATA_VALUE));
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* set Data
|
|
204
|
+
* @param key storage key
|
|
205
|
+
* @param data storage value
|
|
206
|
+
*/
|
|
207
|
+
ExpirableLocalStorage.prototype.setData = function (key, data) {
|
|
208
|
+
this.storage.setItem(key, JSON.stringify(data));
|
|
209
|
+
};
|
|
210
|
+
ExpirableLocalStorage.prototype.clear = function (keys) {
|
|
211
|
+
var _this = this;
|
|
212
|
+
try {
|
|
213
|
+
keys.forEach(function (key) { return _this.storage.removeItem(key); });
|
|
214
|
+
}
|
|
215
|
+
catch (e) {
|
|
216
|
+
// Do nothing
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* delete the expired keys
|
|
221
|
+
*/
|
|
222
|
+
ExpirableLocalStorage.prototype.prune = function () {
|
|
223
|
+
var _this = this;
|
|
224
|
+
try {
|
|
225
|
+
var expiredKeys = Object.keys(this.storage).filter(function (key) {
|
|
226
|
+
if (!key.startsWith(ExpirableLocalStorage.PREFIX)) {
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
var expiryTimestamp = _this.getData(key).expiryTimestamp;
|
|
230
|
+
return _this.now() > expiryTimestamp;
|
|
231
|
+
});
|
|
232
|
+
this.clear(expiredKeys);
|
|
233
|
+
}
|
|
234
|
+
catch (e) {
|
|
235
|
+
// Do nothing
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
ExpirableLocalStorage.PREFIX = "@@EXPIRABLE/";
|
|
239
|
+
ExpirableLocalStorage.TRUE = "TRUE";
|
|
240
|
+
ExpirableLocalStorage.FALSE = "FALSE";
|
|
241
|
+
ExpirableLocalStorage.DEFAULT_DATA_VALUE = { expiryTimestamp: 0, value: null };
|
|
242
|
+
return ExpirableLocalStorage;
|
|
243
|
+
}());
|
|
244
|
+
export { ExpirableLocalStorage };
|
|
245
|
+
//# sourceMappingURL=ExpirableLocalStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpirableLocalStorage.js","sourceRoot":"","sources":["../../src/internal/ExpirableLocalStorage.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH;IAuJI;;;OAGG;IACH;QAnJQ,YAAO,GAAY,MAAM,CAAC,YAAY,CAAC;IAmJxB,CAAC;IAjJxB;;OAEG;IACI,iCAAW,GAAlB;QACI,IAAI,CAAC,qBAAqB,CAAC,QAAQ,EAAE;YACjC,qBAAqB,CAAC,QAAQ,GAAG,IAAI,qBAAqB,EAAE,CAAC;SAChE;QAED,OAAO,qBAAqB,CAAC,QAAQ,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACH,uCAAO,GAAP,UAAQ,GAAW,EAAE,KAAc,EAAE,eAAuB;QACxD,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACrG,CAAC;IAED;;;;;OAKG;IACH,yCAAS,GAAT,UAAU,GAAW,EAAE,KAAa,EAAE,eAAuB;QACzD,IAAI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ertyKey: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => any>) => TypedPropertyDescriptor<(...args: any[]) => any>;
|
|
2
|
+
/**
|
|
3
|
+
* For pure functions:
|
|
4
|
+
*
|
|
5
|
+
* Memoize the last computed result, and return the same value if given the same input.
|
|
6
|
+
* Input equality is based on JSON.stringify.
|
|
7
|
+
*/
|
|
8
|
+
export declare function Memo(): AnyFunctionDecorator;
|
|
9
|
+
export {};
|
package/internal/Memo.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* For pure functions:
|
|
3
|
+
*
|
|
4
|
+
* Memoize the last computed result, and return the same value if given the same input.
|
|
5
|
+
* Input equality is based on JSON.stringify.
|
|
6
|
+
*/
|
|
7
|
+
export function Memo() {
|
|
8
|
+
return function (target, propertyKey, descriptor) {
|
|
9
|
+
/**
|
|
10
|
+
* For latest decorator spec, there is only one "target" parameter, which has "descriptor" property.
|
|
11
|
+
* https://tc39.github.io/proposal-decorators/#sec-decorator-functions-element-descriptor
|
|
12
|
+
* https://github.com/tc39/proposal-decorators/blob/master/METAPROGRAMMING.md
|
|
13
|
+
*/
|
|
14
|
+
var realDescriptor = descriptor || target.descriptor;
|
|
15
|
+
var fn = realDescriptor.value;
|
|
16
|
+
var cache = {};
|
|
17
|
+
realDescriptor.value = function () {
|
|
18
|
+
var args = [];
|
|
19
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
20
|
+
args[_i] = arguments[_i];
|
|
21
|
+
}
|
|
22
|
+
var paramKey = args.length ? JSON.stringify(args) : "";
|
|
23
|
+
if (!cache[paramKey]) {
|
|
24
|
+
cache[paramKey] = fn.apply(this, args);
|
|
25
|
+
}
|
|
26
|
+
return cache[paramKey];
|
|
27
|
+
};
|
|
28
|
+
return descriptor || target;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=Memo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Memo.js","sourceRoot":"","sources":["../../src/internal/Memo.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,IAAI;IAChB,OAAO,UAAC,MAAM,EAAE,WAAW,EAAE,UAAU;QACnC;;;;WAIG;QACH,IAAM,cAAc,GAAG,UAAU,IAAK,MAAc,CAAC,UAAU,CAAC;QAChE,IAAM,EAAE,GAAG,cAAc,CAAC,KAAM,CAAC;QACjC,IAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,cAAc,CAAC,KAAK,GAAG;YAAU,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YAC3C,IAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACzD,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;gBAClB,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;aAC1C;YACD,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC3B,CAAC,CAAC;QACF,OAAO,UAAU,IAAI,MAAM,CAAC;IAChC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare function rounding(value: number, algorithm: "round" | "ceil" | "floor", maxScale: number): number;
|
|
2
|
+
declare function roundingToString(value: number, algorithm: "round" | "ceil" | "floor", scale: number): string;
|
|
3
|
+
export declare const NumberUtil: Readonly<{
|
|
4
|
+
rounding: typeof rounding;
|
|
5
|
+
roundingToString: typeof roundingToString;
|
|
6
|
+
}>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
function rounding(value, algorithm, maxScale) {
|
|
2
|
+
if (!Number.isInteger(maxScale) || maxScale < 0 || maxScale > 10) {
|
|
3
|
+
throw new Error("[web-ui] NumberUtil.rounding maxScale must be an integer in range [0, 10]");
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Take "4.975" as an example.
|
|
7
|
+
* First, we split the number by the decimal point to get ["4", "975"].
|
|
8
|
+
* Then, we find the adjustmentScale ("975".length) to be 3. This means 4.975 * 10^3 is an integer.
|
|
9
|
+
* Now, we compare the maxScale with adjustmentScale.
|
|
10
|
+
* If maxScale is larger, then value * 10^maxScale is always integer which is perfect.
|
|
11
|
+
* If maxScale is smaller, then we first need to multiply the value by 10^adjustmentScale to make it an integer.
|
|
12
|
+
* Note: we need to check if adjustment is safe by checking against Number.MAX_SAFE_INTEGER.
|
|
13
|
+
* Then, we divide the number by the difference between adjustmentScale and maxScale to get the correct rounding position.
|
|
14
|
+
* For example, we have maxScale = 2. We have adjustmentScale (3) > maxScale (2).
|
|
15
|
+
* Therefore, we first get 4.975 * 10^3 = 4975. Then, we get 4975 / 10^(3 - 2) = 497.5 and we round this number.
|
|
16
|
+
* In the end, we divide this number by 10^maxScale to obtained the final answer, i.e. 498 / 10^2 = 4.98 (assume algorithm is "round").
|
|
17
|
+
*/
|
|
18
|
+
var parts = Number(value).toString().split(".");
|
|
19
|
+
var adjustmentScale = parts.length < 2 ? 0 : parts[1].length;
|
|
20
|
+
var adjustmentPowerOf10 = Math.pow(10, adjustmentScale);
|
|
21
|
+
var isAdjustmentSafe = Number(value) * adjustmentPowerOf10 <= Number.MAX_SAFE_INTEGER;
|
|
22
|
+
var powerOf10 = Math.pow(10, maxScale);
|
|
23
|
+
if (adjustmentScale > maxScale && isAdjustmentSafe) {
|
|
24
|
+
var diffPowerOf10 = Math.pow(10, (adjustmentScale - maxScale));
|
|
25
|
+
return Math[algorithm]((value * adjustmentPowerOf10) / diffPowerOf10) / powerOf10;
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
return Math[algorithm](value * powerOf10) / powerOf10;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function roundingToString(value, algorithm, scale) {
|
|
32
|
+
return rounding(value, algorithm, scale).toFixed(scale);
|
|
33
|
+
}
|
|
34
|
+
export var NumberUtil = Object.freeze({
|
|
35
|
+
rounding: rounding,
|
|
36
|
+
roundingToString: roundingToString,
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=NumberUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberUtil.js","sourceRoot":"","sources":["../../src/internal/NumberUtil.ts"],"names":[],"mappings":"AAAA,SAAS,QAAQ,CAAC,KAAa,EAAE,SAAqC,EAAE,QAAgB;IACpF,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,QAAQ,GAAG,CAAC,IAAI,QAAQ,GAAG,EAAE,EAAE;QAC9D,MAAM,IAAI,KAAK,CAAC,2EAA2E,CAAC,CAAC;KAChG;IACD;;;;;;;;;;;;OAYG;IACH,IAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClD,IAAM,eAAe,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC/D,IAAM,mBAAmB,GAAG,SAAA,EAAE,EAAI,eAAe,CAAA,CAAC;IAClD,IAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,mBAAmB,IAAI,MAAM,CAAC,gBAAgB,CAAC;IACxF,IAAM,SAAS,GAAG,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC;IACjC,IAAI,eAAe,GAAG,QAAQ,IAAI,gBAAgB,EAAE;QAChD,IAAM,aAAa,GAAG,SAAA,EAAE,EAAI,CAAC,eAAe,GAAG,QAAQ,CAAC,CAAA,CAAC;QACzD,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,mBAAmB,CAAC,GAAG,aAAa,CAAC,GAAG,SAAS,CAAC;KACrF;SAAM;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;KACzD;AACL,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa,EAAE,SAAqC,EAAE,KAAa;IACzF,OAAO,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,CAAC,IAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACpC,QAAQ,UAAA;IACR,gBAAgB,kBAAA;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In mobile Safari, the user may turn on "Block All Cookies".
|
|
3
|
+
* In such situation, accessing to localStorage/sessionStorage will throw error.
|
|
4
|
+
*/
|
|
5
|
+
declare type ClearOptions = {
|
|
6
|
+
keys: string[] | ((key: string) => boolean);
|
|
7
|
+
} | {
|
|
8
|
+
exceptKeys: string[] | ((key: string) => boolean);
|
|
9
|
+
};
|
|
10
|
+
export declare class StorageHelper {
|
|
11
|
+
private readonly storage;
|
|
12
|
+
private static readonly trueBoolValue;
|
|
13
|
+
private static readonly falseBoolValue;
|
|
14
|
+
private globalPrefix;
|
|
15
|
+
constructor(storage: Storage);
|
|
16
|
+
setGlobalPrefix(prefix: string): void;
|
|
17
|
+
clear(options?: ClearOptions): void;
|
|
18
|
+
setBool(key: string, value: boolean): void;
|
|
19
|
+
setString(key: string, value: string): void;
|
|
20
|
+
setNumber(key: string, value: number): void;
|
|
21
|
+
setObject<T extends object>(key: string, item: T): void;
|
|
22
|
+
getBool(key: string, defaultValue: boolean): boolean;
|
|
23
|
+
getString<T extends string = string>(key: string, defaultValue: T, validValues?: readonly T[]): T;
|
|
24
|
+
getNumber(key: string, defaultValue: number, validator?: number[] | ((value: number) => boolean)): number;
|
|
25
|
+
getObject<T extends object>(key: string, defaultValue: T, validator: (item: object) => boolean): T;
|
|
26
|
+
getRaw(key: string): string | null;
|
|
27
|
+
private set;
|
|
28
|
+
private get;
|
|
29
|
+
private forEach;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In mobile Safari, the user may turn on "Block All Cookies".
|
|
3
|
+
* In such situation, accessing to localStorage/sessionStorage will throw error.
|
|
4
|
+
*/
|
|
5
|
+
var StorageHelper = /** @class */ (function () {
|
|
6
|
+
function StorageHelper(storage) {
|
|
7
|
+
this.storage = storage;
|
|
8
|
+
this.globalPrefix = null;
|
|
9
|
+
}
|
|
10
|
+
StorageHelper.prototype.setGlobalPrefix = function (prefix) {
|
|
11
|
+
this.globalPrefix = prefix;
|
|
12
|
+
};
|
|
13
|
+
StorageHelper.prototype.clear = function (options) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
try {
|
|
16
|
+
if (options) {
|
|
17
|
+
if ("keys" in options) {
|
|
18
|
+
var keys_1 = options.keys;
|
|
19
|
+
if (Array.isArray(keys_1)) {
|
|
20
|
+
keys_1.forEach(function (key) { return _this.storage.removeItem(key); });
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
this.forEach(function (key) {
|
|
24
|
+
if (keys_1(key)) {
|
|
25
|
+
_this.storage.removeItem(key);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
var exceptKeys_1 = options.exceptKeys;
|
|
32
|
+
this.forEach(function (key) {
|
|
33
|
+
var shouldNotRemove = Array.isArray(exceptKeys_1) ? exceptKeys_1.includes(key) : exceptKeys_1(key);
|
|
34
|
+
if (!shouldNotRemove) {
|
|
35
|
+
_this.storage.removeItem(key);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
this.storage.clear();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
catch (e) {
|
|
45
|
+
// Do nothing
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
StorageHelper.prototype.setBool = function (key, value) {
|
|
49
|
+
this.set(key, value ? StorageHelper.trueBoolValue : StorageHelper.falseBoolValue);
|
|
50
|
+
};
|
|
51
|
+
StorageHelper.prototype.setString = function (key, value) {
|
|
52
|
+
this.set(key, value);
|
|
53
|
+
};
|
|
54
|
+
StorageHelper.prototype.setNumber = function (key, value) {
|
|
55
|
+
this.set(key, value.toString());
|
|
56
|
+
};
|
|
57
|
+
StorageHelper.prototype.setObject = function (key, item) {
|
|
58
|
+
this.set(key, JSON.stringify(item));
|
|
59
|
+
};
|
|
60
|
+
StorageHelper.prototype.getBool = function (key, defaultValue) {
|
|
61
|
+
var transformer = function (_) { return (_ === StorageHelper.trueBoolValue ? true : _ === StorageHelper.falseBoolValue ? false : null); };
|
|
62
|
+
return this.get(key, defaultValue, transformer);
|
|
63
|
+
};
|
|
64
|
+
StorageHelper.prototype.getString = function (key, defaultValue, validValues) {
|
|
65
|
+
var transformer = function (_) {
|
|
66
|
+
var typedValue = _;
|
|
67
|
+
return validValues ? (validValues.includes(typedValue) ? typedValue : null) : typedValue;
|
|
68
|
+
};
|
|
69
|
+
return this.get(key, defaultValue, transformer);
|
|
70
|
+
};
|
|
71
|
+
StorageHelper.prototype.getNumber = function (key, defaultValue, validator) {
|
|
72
|
+
var transformer = function (_) {
|
|
73
|
+
var numberedData = Number(_);
|
|
74
|
+
if (Number.isFinite(numberedData)) {
|
|
75
|
+
if (validator === undefined) {
|
|
76
|
+
return numberedData;
|
|
77
|
+
}
|
|
78
|
+
else if (typeof validator === "function") {
|
|
79
|
+
if (validator(numberedData)) {
|
|
80
|
+
return numberedData;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
if (validator.includes(numberedData)) {
|
|
85
|
+
return numberedData;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
90
|
+
};
|
|
91
|
+
return this.get(key, defaultValue, transformer);
|
|
92
|
+
};
|
|
93
|
+
StorageHelper.prototype.getObject = function (key, defaultValue, validator) {
|
|
94
|
+
var transformer = function (_) {
|
|
95
|
+
try {
|
|
96
|
+
var obj = JSON.parse(_);
|
|
97
|
+
if (validator(obj)) {
|
|
98
|
+
return obj;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
catch (e) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
return this.get(key, defaultValue, transformer);
|
|
109
|
+
};
|
|
110
|
+
StorageHelper.prototype.getRaw = function (key) {
|
|
111
|
+
try {
|
|
112
|
+
return this.storage.getItem(key);
|
|
113
|
+
}
|
|
114
|
+
catch (e) {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
StorageHelper.prototype.set = function (key, value) {
|
|
119
|
+
try {
|
|
120
|
+
var prefix = this.globalPrefix ? "".concat(this.globalPrefix, "-") : "";
|
|
121
|
+
this.storage.setItem(prefix + key, value);
|
|
122
|
+
}
|
|
123
|
+
catch (e) {
|
|
124
|
+
// Do nothing
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
StorageHelper.prototype.get = function (key, defaultValue, transformer) {
|
|
128
|
+
try {
|
|
129
|
+
var prefix = this.globalPrefix ? "".concat(this.globalPrefix, "-") : "";
|
|
130
|
+
var data = this.storage.getItem(prefix + key);
|
|
131
|
+
if (data !== null) {
|
|
132
|
+
var typedData = transformer(data);
|
|
133
|
+
if (typedData !== null) {
|
|
134
|
+
return typedData;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return defaultValue;
|
|
138
|
+
}
|
|
139
|
+
catch (e) {
|
|
140
|
+
return defaultValue;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
StorageHelper.prototype.forEach = function (callback) {
|
|
144
|
+
var _this = this;
|
|
145
|
+
Object.keys(this.storage).forEach(function (key) { return callback(key, _this.storage.getItem(key)); });
|
|
146
|
+
};
|
|
147
|
+
StorageHelper.trueBoolValue = "TRUE";
|
|
148
|
+
StorageHelper.falseBoolValue = "FALSE";
|
|
149
|
+
return StorageHelper;
|
|
150
|
+
}());
|
|
151
|
+
export { StorageHelper };
|
|
152
|
+
//# sourceMappingURL=StorageHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageHelper.js","sourceRoot":"","sources":["../../src/internal/StorageHelper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;IAKI,uBAA6B,OAAgB;QAAhB,YAAO,GAAP,OAAO,CAAS;QAFrC,iBAAY,GAAkB,IAAI,CAAC;IAEK,CAAC;IAEjD,uCAAe,GAAf,UAAgB,MAAc;QAC1B,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;IAC/B,CAAC;IAED,6BAAK,GAAL,UAAM,OAAsB;QAA5B,iBA6BC;QA5BG,IAAI;YACA,IAAI,OAAO,EAAE;gBACT,IAAI,MAAM,IAAI,OAAO,EAAE;oBACZ,IAAA,MAAI,GAAI,OAAO,KAAX,CAAY;oBACvB,IAAI,KAAK,CAAC,OAAO,CAAC,MAAI,CAAC,EAAE;wBACrB,MAAI,CAAC,OAAO,CAAC,UAAA,GAAG,IAAI,OAAA,KAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAA5B,CAA4B,CAAC,CAAC;qBACrD;yBAAM;wBACH,IAAI,CAAC,OAAO,CAAC,UAAA,GAAG;4BACZ,IAAI,MAAI,CAAC,GAAG,CAAC,EAAE;gCACX,KAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;6BAChC;wBACL,CAAC,CAAC,CAAC;qBACN;iBACJ;qBAAM;oBACI,IAAA,YAAU,GAAI,OAAO,WAAX,CAAY;oBAC7B,IAAI,CAAC,OAAO,CAAC,UAAA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AAS,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;gBACpC,IAAI,SAAS,KAAK,IAAI,EAAE;oBACpB,OAAO,SAAS,CAAC;iBACpB;aACJ;YACD,OAAO,YAAY,CAAC;SACvB;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,YAAY,CAAC;SACvB;IACL,CAAC;IAEO,+BAAO,GAAf,UAAgB,QAA8C;QAA9D,iBAEC;QADG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,UAAA,GAAG,IAAI,OAAA,QAAQ,CAAC,GAAG,EAAE,KAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAE,CAAC,EAAzC,CAAyC,CAAC,CAAC;IACxF,CAAC;IA9IuB,2BAAa,GAAG,MAAM,CAAC;IACvB,4BAAc,GAAG,OAAO,CAAC;IA8IrD,oBAAC;CAAA,AAhJD,IAgJC;SAhJY,aAAa"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function interpolate(text) {
|
|
2
|
+
var parameters = [];
|
|
3
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4
|
+
parameters[_i - 1] = arguments[_i];
|
|
5
|
+
}
|
|
6
|
+
var result = text;
|
|
7
|
+
for (var i = 0; i < parameters.length; i++) {
|
|
8
|
+
result = result.replace("{".concat(i + 1, "}"), parameters[i]);
|
|
9
|
+
}
|
|
10
|
+
return result;
|
|
11
|
+
}
|
|
12
|
+
export var TextUtil = Object.freeze({
|
|
13
|
+
interpolate: interpolate,
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=TextUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextUtil.js","sourceRoot":"","sources":["../../src/internal/TextUtil.ts"],"names":[],"mappings":"AAAA,SAAS,WAAW,CAAC,IAAY;IAAE,oBAAuB;SAAvB,UAAuB,EAAvB,qBAAuB,EAAvB,IAAuB;QAAvB,mCAAuB;;IACtD,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,WAAI,CAAC,GAAG,CAAC,MAAG,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KACxD;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,IAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC;IAClC,WAAW,aAAA;CACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const en: {
|
|
2
|
+
homePageTitle: string;
|
|
3
|
+
homePageSubtitle: string;
|
|
4
|
+
welcome: string;
|
|
5
|
+
logout: string;
|
|
6
|
+
search: string;
|
|
7
|
+
reset: string;
|
|
8
|
+
save: string;
|
|
9
|
+
expand: string;
|
|
10
|
+
collapse: string;
|
|
11
|
+
goHome: string;
|
|
12
|
+
notificationSound: string;
|
|
13
|
+
notFound: string;
|
|
14
|
+
featurePermission: string;
|
|
15
|
+
fieldPermission: string;
|
|
16
|
+
extraPermission: string;
|
|
17
|
+
language: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export var en = {
|
|
2
|
+
homePageTitle: "Home Page",
|
|
3
|
+
homePageSubtitle: "Please open a page by left side menu.",
|
|
4
|
+
welcome: "Welcome to {1}",
|
|
5
|
+
logout: "Logout",
|
|
6
|
+
search: "Search",
|
|
7
|
+
reset: "Reset",
|
|
8
|
+
save: "Save",
|
|
9
|
+
expand: "Expand",
|
|
10
|
+
collapse: "Collapse",
|
|
11
|
+
goHome: "Go To Home",
|
|
12
|
+
notificationSound: "Sound Alert",
|
|
13
|
+
notFound: "The accessed page does not exist",
|
|
14
|
+
featurePermission: "Feature Permission",
|
|
15
|
+
fieldPermission: "Field Permission",
|
|
16
|
+
extraPermission: "Extra Permission",
|
|
17
|
+
language: "Language",
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=en.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../../src/internal/i18n/admin/en.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,EAAE,GAAG;IACd,aAAa,EAAE,WAAW;IAC1B,gBAAgB,EAAE,uCAAuC;IACzD,OAAO,EAAE,gBAAgB;IACzB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,YAAY;IACpB,iBAAiB,EAAE,aAAa;IAChC,QAAQ,EAAE,kCAAkC;IAC5C,iBAAiB,EAAE,oBAAoB;IACvC,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;IACnC,QAAQ,EAAE,UAAU;CACvB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare function i18n(): {
|
|
2
|
+
homePageTitle: string;
|
|
3
|
+
homePageSubtitle: string;
|
|
4
|
+
welcome: string;
|
|
5
|
+
logout: string;
|
|
6
|
+
search: string;
|
|
7
|
+
reset: string;
|
|
8
|
+
save: string;
|
|
9
|
+
expand: string;
|
|
10
|
+
collapse: string;
|
|
11
|
+
goHome: string;
|
|
12
|
+
notificationSound: string;
|
|
13
|
+
notFound: string;
|
|
14
|
+
featurePermission: string;
|
|
15
|
+
fieldPermission: string;
|
|
16
|
+
extraPermission: string;
|
|
17
|
+
language: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { en } from "./en";
|
|
2
|
+
import { zh } from "./zh";
|
|
3
|
+
import { LocaleUtil } from "../../../util/LocaleUtil";
|
|
4
|
+
var i18nMap = {
|
|
5
|
+
en: en,
|
|
6
|
+
zh: zh,
|
|
7
|
+
};
|
|
8
|
+
export function i18n() {
|
|
9
|
+
return i18nMap[LocaleUtil.current()];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/i18n/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,MAAM,CAAC;AACxB,OAAO,EAAC,EAAE,EAAC,MAAM,MAAM,CAAC;AAExB,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,IAAM,OAAO,GAA8B;IACvC,EAAE,IAAA;IACF,EAAE,IAAA;CACL,CAAC;AAEF,MAAM,UAAU,IAAI;IAChB,OAAO,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;AACzC,CAAC"}
|