sprof 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/package.json +101 -0
- package/src/Hooks/Hooks.ts +75 -0
- package/src/assets/img/avatar.webp +0 -0
- package/src/assets/styles/borders.scss +11 -0
- package/src/assets/styles/brandbook.css +227 -0
- package/src/assets/styles/colors.scss +42 -0
- package/src/assets/styles/fonts.scss +15 -0
- package/src/assets/styles/index.css +15 -0
- package/src/assets/styles/index.scss +45 -0
- package/src/assets/styles/platform/android.css +53 -0
- package/src/assets/styles/platform/ios.css +53 -0
- package/src/assets/styles/platform/webdesktop.css +72 -0
- package/src/assets/styles/platform/webdesktop_old.css +65 -0
- package/src/assets/styles/platform/webmobile.css +53 -0
- package/src/assets/styles/platform/webtablet.css +53 -0
- package/src/assets/styles/reset.scss +28 -0
- package/src/assets/styles/shadow.scss +6 -0
- package/src/assets/styles/theme/aquaBlueLight.css +162 -0
- package/src/assets/styles/theme/blueLight.css +187 -0
- package/src/assets/styles/theme/blueLight_test.css +162 -0
- package/src/assets/styles/theme/dark.css +286 -0
- package/src/assets/styles/theme/light.css +151 -0
- package/src/assets/svg/ArrowLeft.svg +5 -0
- package/src/assets/svg/ArrowRight.svg +5 -0
- package/src/assets/svg/Close.svg +7 -0
- package/src/assets/svg/DoubleArrowLeft.svg +5 -0
- package/src/assets/svg/DoubleArrowRight.svg +5 -0
- package/src/assets/svg/Ellipsis.svg +7 -0
- package/src/assets/svg/Filter.svg +10 -0
- package/src/assets/svg/Menu.svg +5 -0
- package/src/assets/svg/Move.svg +5 -0
- package/src/assets/svg/Password.svg +5 -0
- package/src/assets/svg/RightMenu.svg +5 -0
- package/src/assets/svg/Settings.svg +6 -0
- package/src/assets/svg/User.svg +6 -0
- package/src/buildLibrary.ts +59 -0
- package/src/classes/Auth.ts +63 -0
- package/src/classes/AuthButton.ts +64 -0
- package/src/classes/AuthForm.ts +114 -0
- package/src/classes/AuthModal.ts +32 -0
- package/src/classes/AuthStatusesObjects.ts +37 -0
- package/src/classes/AuthTokens.ts +43 -0
- package/src/classes/AuthUser.ts +53 -0
- package/src/classes/CallbackRequest.ts +12 -0
- package/src/classes/Chat.ts +18 -0
- package/src/classes/ChatMessage.ts +48 -0
- package/src/classes/Contact.ts +96 -0
- package/src/classes/Cropper.ts +22 -0
- package/src/classes/DateHelper.ts +29 -0
- package/src/classes/Email.ts +18 -0
- package/src/classes/EmailField.ts +42 -0
- package/src/classes/EmailRules.ts +4 -0
- package/src/classes/FTSPPreset.ts +16 -0
- package/src/classes/FileInfo.ts +86 -0
- package/src/classes/HttpResponse.ts +22 -0
- package/src/classes/Human.ts +106 -0
- package/src/classes/LabelValue.ts +11 -0
- package/src/classes/LocalStore.ts +22 -0
- package/src/classes/M2M.ts +25 -0
- package/src/classes/Menu.ts +102 -0
- package/src/classes/PageSectionImage.ts +19 -0
- package/src/classes/PasswordField.ts +39 -0
- package/src/classes/PasswordRepeatField.ts +37 -0
- package/src/classes/Phone.ts +17 -0
- package/src/classes/PostAddress.ts +11 -0
- package/src/classes/PostAddressRules.ts +1 -0
- package/src/classes/Role.ts +13 -0
- package/src/classes/Schema.ts +13 -0
- package/src/classes/SchemaField.ts +10 -0
- package/src/classes/SearchElement.ts +18 -0
- package/src/classes/SearchElementMeta.ts +10 -0
- package/src/classes/SearchGroup.ts +25 -0
- package/src/classes/SearchGroupMetaColumn.ts +11 -0
- package/src/classes/SearchModel.ts +61 -0
- package/src/classes/SortModel.ts +57 -0
- package/src/classes/SubMenu.ts +56 -0
- package/src/classes/TelephoneNumberRules.ts +9 -0
- package/src/classes/User.ts +17 -0
- package/src/classes/UserAccount.ts +17 -0
- package/src/classes/UserService.ts +20 -0
- package/src/classes/ValidationRules.ts +15 -0
- package/src/classes/ValueType.ts +69 -0
- package/src/classes/Website.ts +11 -0
- package/src/classes/WebsiteRules.ts +4 -0
- package/src/classes/admin/AdminButtonParams.ts +27 -0
- package/src/classes/admin/AdminHeaderParams.ts +34 -0
- package/src/classes/calendar/Calendar.ts +168 -0
- package/src/classes/calendar/Day.ts +15 -0
- package/src/classes/calendar/Month.ts +144 -0
- package/src/classes/calendar/Week.ts +44 -0
- package/src/classes/calendar/Year.ts +130 -0
- package/src/classes/filters/Cursor.ts +43 -0
- package/src/classes/filters/FTSP.ts +99 -0
- package/src/classes/filters/FilterModel.ts +263 -0
- package/src/classes/filters/FilterQuery.ts +187 -0
- package/src/classes/filters/OperatorsOptions.ts +8 -0
- package/src/classes/filters/OperatorsTextOptions.ts +3 -0
- package/src/classes/filters/Pagination.ts +78 -0
- package/src/classes/filters/SelectFilter.ts +15 -0
- package/src/classes/filters/TreeModel.ts +14 -0
- package/src/classes/page/CustomSection.ts +24 -0
- package/src/classes/page/Page.ts +160 -0
- package/src/classes/page/PageDocument.ts +27 -0
- package/src/classes/page/PageImage.ts +15 -0
- package/src/classes/page/PageSection.ts +82 -0
- package/src/classes/page/PageSectionDocument.ts +56 -0
- package/src/classes/page/PageSideMenu.ts +74 -0
- package/src/components/AdaptiveContainer.vue +154 -0
- package/src/components/AdaptiveContainerHorizontal.vue +173 -0
- package/src/components/AdminGallery.vue +238 -0
- package/src/components/AuthModal.vue +16 -0
- package/src/components/CarouselImages.vue +434 -0
- package/src/components/ContactForm.vue +219 -0
- package/src/components/ContextWindow.vue +48 -0
- package/src/components/DateInputRange.vue +66 -0
- package/src/components/DateInputRange_v2.vue +25 -0
- package/src/components/DropList.vue +55 -0
- package/src/components/Edit.svg +10 -0
- package/src/components/EmailForm.vue +180 -0
- package/src/components/FTSPPanel.vue +379 -0
- package/src/components/FilterCheckbox.vue +73 -0
- package/src/components/FilterSelect.vue +104 -0
- package/src/components/FiltersButtonsSelect.vue +126 -0
- package/src/components/GeneralItem.vue +172 -0
- package/src/components/GridContainer.vue +66 -0
- package/src/components/Icons/Filter/IconDownload.vue +55 -0
- package/src/components/Icons/Filter/IconFilter.vue +55 -0
- package/src/components/Icons/IconArrowLeft.vue +36 -0
- package/src/components/Icons/IconCheckDefault.vue +41 -0
- package/src/components/Icons/IconClose.vue +37 -0
- package/src/components/Icons/IconEdit.vue +40 -0
- package/src/components/Icons/IconEmail.vue +36 -0
- package/src/components/Icons/IconMove.vue +53 -0
- package/src/components/Icons/IconPhone.vue +36 -0
- package/src/components/Icons/IconSearch.vue +47 -0
- package/src/components/Icons/IconSelectArrow.vue +41 -0
- package/src/components/Icons/Pagination/ArrowLeft.vue +52 -0
- package/src/components/Icons/Pagination/ArrowRight.vue +52 -0
- package/src/components/Icons/Pagination/DoubleArrowLeft.vue +52 -0
- package/src/components/Icons/Pagination/DoubleArrowRight.vue +52 -0
- package/src/components/Icons/Pagination/EllipsisSvg.vue +58 -0
- package/src/components/ImageCropper.vue +203 -0
- package/src/components/InfoItem.vue +294 -0
- package/src/components/InfoItemSelectButtons.vue +43 -0
- package/src/components/LeftRightContainer.vue +93 -0
- package/src/components/MessageBody.vue +45 -0
- package/src/components/PAutocomplete.vue +93 -0
- package/src/components/PDialog.vue +77 -0
- package/src/components/PLoader.vue +68 -0
- package/src/components/PNotification.vue +79 -0
- package/src/components/PPagination.vue +174 -0
- package/src/components/PhoneForm.vue +180 -0
- package/src/components/RSContainer.vue +262 -0
- package/src/components/RemoteSearch.vue +156 -0
- package/src/components/ResearcheContainer.vue +71 -0
- package/src/components/RightSliderContainer.vue +181 -0
- package/src/components/RightTabsContainer.vue +210 -0
- package/src/components/SelectValueType.vue +39 -0
- package/src/components/SingleNameToggleForm.vue +399 -0
- package/src/components/SortList.vue +101 -0
- package/src/components/SortSelect.vue +93 -0
- package/src/components/SvgIcon.vue +25 -0
- package/src/components/Switch3Pos.vue +173 -0
- package/src/components/ThemeWrapper.vue +19 -0
- package/src/components/ToggleInfoItem.vue +296 -0
- package/src/components/TopSliderContainer.vue +166 -0
- package/src/components/UploaderImage.vue +268 -0
- package/src/components/atoms/PButton/PButton.stories.ts +44 -0
- package/src/components/atoms/PButton/PButton.test.ts +66 -0
- package/src/components/atoms/PButton/PButton.vue +54 -0
- package/src/components/atoms/PButton/skins/p-button_base.css +131 -0
- package/src/components/atoms/PButton/skins/p-button_filter.scss +83 -0
- package/src/components/atoms/PButton/skins/p-button_icon.scss +78 -0
- package/src/components/atoms/PButton/skins/p-button_pag.css +44 -0
- package/src/components/atoms/PButton/skins/p-button_text.css +88 -0
- package/src/components/atoms/PButton/skins/p-button_text_ano.css +88 -0
- package/src/components/atoms/PCheckbox/PCheckBox.test.ts +107 -0
- package/src/components/atoms/PCheckbox/PCheckBox.vue +92 -0
- package/src/components/atoms/PDatePicker/PDatePicker.test.ts +63 -0
- package/src/components/atoms/PDatePicker/PDatePicker.vue +141 -0
- package/src/components/atoms/PFlex/PFlex.test.ts +41 -0
- package/src/components/atoms/PFlex/PFlex.vue +46 -0
- package/src/components/atoms/PInput/PInput.stories.ts +40 -0
- package/src/components/atoms/PInput/PInput.test.ts +92 -0
- package/src/components/atoms/PInput/PInput.vue +133 -0
- package/src/components/atoms/PInputDate/PInputDate.test.ts +55 -0
- package/src/components/atoms/PInputDate/PInputDate.vue +79 -0
- package/src/components/atoms/PInputNumber/PInputNumber.vue +175 -0
- package/src/components/atoms/PLeftSlider/PLeftSlider.test.ts +121 -0
- package/src/components/atoms/PLeftSlider/PLeftSlider.vue +139 -0
- package/src/components/atoms/PList/PList.test.ts +32 -0
- package/src/components/atoms/PList/PList.vue +27 -0
- package/src/components/atoms/PListItem/PListItem.test.ts +61 -0
- package/src/components/atoms/PListItem/PListItem.vue +51 -0
- package/src/components/atoms/PRadio/PRadio.test.ts +110 -0
- package/src/components/atoms/PRadio/PRadio.vue +97 -0
- package/src/components/atoms/PRightSlider/PRightSlider.test.ts +123 -0
- package/src/components/atoms/PRightSlider/PRightSlider.vue +149 -0
- package/src/components/atoms/PSelect/PSelect.test.ts +74 -0
- package/src/components/atoms/PSelect/PSelect.vue +192 -0
- package/src/components/atoms/PSelect/select-arrow-down.svg +4 -0
- package/src/components/atoms/PSticky/PSticky.test.ts +70 -0
- package/src/components/atoms/PSticky/PSticky.vue +37 -0
- package/src/components/atoms/PString/PString.test.ts +58 -0
- package/src/components/atoms/PString/PString.vue +58 -0
- package/src/components/atoms/PTextarea/PTextarea.stories.ts +40 -0
- package/src/components/atoms/PTextarea/PTextarea.test.ts +22 -0
- package/src/components/atoms/PTextarea/PTextarea.vue +123 -0
- package/src/components/atoms/PTopSlider/PTopSlider.test.ts +95 -0
- package/src/components/atoms/PTopSlider/PTopSlider.vue +164 -0
- package/src/components/molecules/Collapse/CollapseContainer.vue +36 -0
- package/src/components/molecules/Collapse/CollapseItem.vue +295 -0
- package/src/components/molecules/Collapse/VerticalCollapseContainer.vue +102 -0
- package/src/components/molecules/PAdd/PAdd.vue +65 -0
- package/src/components/molecules/PAdd/PContainer.vue +65 -0
- package/src/components/molecules/PAdd/PContainerStickyHead.vue +51 -0
- package/src/components/molecules/PDel/PDel.vue +74 -0
- package/src/components/organisms/AuthForm.vue +219 -0
- package/src/components/organisms/PModal.vue +113 -0
- package/src/components/organisms/PTabs/ITab.ts +5 -0
- package/src/components/organisms/PTabs/PTabs.vue +190 -0
- package/src/components/organisms/UploaderFile/UploaderFile.test.ts +23 -0
- package/src/components/organisms/UploaderFile/UploaderFile.vue +202 -0
- package/src/components/pages/AuthPage.vue +22 -0
- package/src/components/pages/PageNotFound.vue +7 -0
- package/src/index.ts +206 -0
- package/src/interfaces/AdminLayout.ts +4 -0
- package/src/interfaces/Animations.ts +5 -0
- package/src/interfaces/AuthStatuses.ts +8 -0
- package/src/interfaces/CalendarScale.ts +6 -0
- package/src/interfaces/Callback.ts +2 -0
- package/src/interfaces/Class.ts +3 -0
- package/src/interfaces/DataTypes.ts +8 -0
- package/src/interfaces/Filter.ts +3 -0
- package/src/interfaces/IAdminMenu.ts +9 -0
- package/src/interfaces/IAuthInfo.ts +0 -0
- package/src/interfaces/ICursor.ts +14 -0
- package/src/interfaces/IEmailPassword.ts +4 -0
- package/src/interfaces/IFIlesList.ts +4 -0
- package/src/interfaces/IFile.ts +7 -0
- package/src/interfaces/IFileAnchor.ts +4 -0
- package/src/interfaces/IFileInfo.ts +22 -0
- package/src/interfaces/IFileInfosGetter.ts +5 -0
- package/src/interfaces/IFiler.ts +7 -0
- package/src/interfaces/IFilter.ts +4 -0
- package/src/interfaces/IFilterQuery.ts +24 -0
- package/src/interfaces/IForm.ts +5 -0
- package/src/interfaces/IHTTPTypes.ts +19 -0
- package/src/interfaces/IMessage.ts +5 -0
- package/src/interfaces/IOption.ts +4 -0
- package/src/interfaces/IOrdered.ts +4 -0
- package/src/interfaces/IPagination.ts +15 -0
- package/src/interfaces/ISearchElement.ts +6 -0
- package/src/interfaces/ISearchObject.ts +6 -0
- package/src/interfaces/ISearchQuery.ts +4 -0
- package/src/interfaces/ISelectFilter.ts +6 -0
- package/src/interfaces/ISortModel.ts +18 -0
- package/src/interfaces/IStorePaginator.ts +4 -0
- package/src/interfaces/ISupposedTimePeriod.ts +4 -0
- package/src/interfaces/ITimePeriod.ts +4 -0
- package/src/interfaces/ITokens.ts +4 -0
- package/src/interfaces/IWithId.ts +3 -0
- package/src/interfaces/IWithImage.ts +9 -0
- package/src/interfaces/IWithName.ts +4 -0
- package/src/interfaces/IWithSupposedTimePeriod.ts +4 -0
- package/src/interfaces/ItemsWithCount.ts +4 -0
- package/src/interfaces/LocalStoreKeys.ts +7 -0
- package/src/interfaces/Operators.ts +11 -0
- package/src/interfaces/Orders.ts +4 -0
- package/src/interfaces/RoleName.ts +4 -0
- package/src/interfaces/SocialTypes.ts +6 -0
- package/src/interfaces/Sort.ts +9 -0
- package/src/interfaces/ValueRelation.ts +7 -0
- package/src/interfaces/canvas/ICanvas.ts +3 -0
- package/src/interfaces/canvas/ICanvasResult.ts +7 -0
- package/src/interfaces/canvas/ICoordinates.ts +6 -0
- package/src/interfaces/types.ts +3 -0
- package/src/services/AdminHead.ts +32 -0
- package/src/services/AdminSideMenu.ts +52 -0
- package/src/services/AdminUI.ts +9 -0
- package/src/services/Arrays.ts +65 -0
- package/src/services/Axios.ts +64 -0
- package/src/services/BaseRoutes.ts +21 -0
- package/src/services/BaseStore.ts +220 -0
- package/src/services/Button.ts +42 -0
- package/src/services/Cache.ts +44 -0
- package/src/services/CacheS.ts +44 -0
- package/src/services/CarouselSwipe.ts +14 -0
- package/src/services/ClassHelper.ts +101 -0
- package/src/services/Color.ts +8 -0
- package/src/services/CreateSortModels.ts +26 -0
- package/src/services/Cursor.ts +51 -0
- package/src/services/DateFormat.ts +102 -0
- package/src/services/DateMask.ts +69 -0
- package/src/services/Dates.ts +41 -0
- package/src/services/DatesFormatter.ts +45 -0
- package/src/services/Dialog.ts +70 -0
- package/src/services/Dragger.ts +22 -0
- package/src/services/Extension.ts +6 -0
- package/src/services/Favourite.ts +62 -0
- package/src/services/HttpClient.ts +199 -0
- package/src/services/HttpClientS.ts +188 -0
- package/src/services/HttpError.ts +58 -0
- package/src/services/Loading.ts +14 -0
- package/src/services/MakeCarousel.ts +10 -0
- package/src/services/Menu.ts +102 -0
- package/src/services/Message.ts +66 -0
- package/src/services/Notification.ts +37 -0
- package/src/services/PHelp.ts +20 -0
- package/src/services/Paginator.ts +22 -0
- package/src/services/Period.ts +29 -0
- package/src/services/PhoneService.ts +46 -0
- package/src/services/Router.ts +85 -0
- package/src/services/RouterGuard.ts +15 -0
- package/src/services/Scheduler.ts +66 -0
- package/src/services/Scroll.ts +19 -0
- package/src/services/SortList.ts +44 -0
- package/src/services/Sorter.ts +6 -0
- package/src/services/Strings.test.ts +30 -0
- package/src/services/Strings.ts +138 -0
- package/src/services/Time.ts +124 -0
- package/src/services/Timer.ts +13 -0
- package/src/services/Token.ts +71 -0
- package/src/services/Visible.ts +16 -0
- package/src/services/WaitElement.ts +19 -0
- package/src/services/WebSocketClient.ts +62 -0
- package/src/services/brandColors.ts +5 -0
- package/src/services/buildNameNumbers.ts +8 -0
- package/src/services/countRating.ts +12 -0
- package/src/services/index.ts +105 -0
- package/src/services/indexNames.ts +55 -0
- package/src/services/moves.ts +17 -0
- package/src/services/useConfirmLeavePage.ts +52 -0
- package/src/services/validate.ts +22 -0
- package/src/store/AuthStore.ts +58 -0
- package/src/store/ContactsStore.ts +11 -0
- package/src/store/CropperStore.ts +20 -0
- package/src/store/EmailsStore.ts +11 -0
- package/src/store/FTSPPresetsStore.ts +11 -0
- package/src/store/FileInfosStore.ts +11 -0
- package/src/store/HumansStore.ts +11 -0
- package/src/store/MenusStore.ts +11 -0
- package/src/store/PhonesStore.ts +11 -0
- package/src/store/SchemasStore.ts +11 -0
- package/src/store/SearchStore.ts +65 -0
- package/src/store/ServicesStores.ts +29 -0
- package/src/store/ServicesStoresNames.ts +17 -0
- package/src/store/UserAccountsStore.ts +11 -0
- package/src/store/ValueTypesStore.ts +11 -0
- package/src/tsconfig.build-lib.json +30 -0
- package/src/types/AuthInfo.ts +6 -0
- package/src/types/HttpHeaders.ts +12 -0
- package/src/types/HttpMethods.ts +6 -0
- package/src/types/Sizes.ts +7 -0
- package/src/types/Statuses.ts +9 -0
- package/src/types/ValueTypes.ts +16 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="add-block"
|
|
4
|
+
:style="{
|
|
5
|
+
margin: margin,
|
|
6
|
+
background: background,
|
|
7
|
+
padding: padding,
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<PSticky :top="top" :z-index="zIndex">
|
|
11
|
+
<slot name="title" />
|
|
12
|
+
</PSticky>
|
|
13
|
+
<div class="add-block_body">
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script lang="ts" setup>
|
|
20
|
+
defineProps({
|
|
21
|
+
background: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: false,
|
|
24
|
+
default: 'inherit',
|
|
25
|
+
},
|
|
26
|
+
margin: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: false,
|
|
29
|
+
default: '0',
|
|
30
|
+
},
|
|
31
|
+
padding: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: false,
|
|
34
|
+
default: '0',
|
|
35
|
+
},
|
|
36
|
+
top: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: false,
|
|
39
|
+
default: '0',
|
|
40
|
+
},
|
|
41
|
+
zIndex: {
|
|
42
|
+
type: Number,
|
|
43
|
+
required: false,
|
|
44
|
+
default: 0,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<style lang="scss" scoped>
|
|
50
|
+
.add-block {
|
|
51
|
+
position: relative;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
border: 1px solid;
|
|
54
|
+
border-color: var(--border-color-default);
|
|
55
|
+
min-height: 10px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.add-block_body {
|
|
59
|
+
position: relative;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
width: 100%;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
overflow-y: auto;
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="add-block"
|
|
4
|
+
:style="{
|
|
5
|
+
margin: margin,
|
|
6
|
+
background: background,
|
|
7
|
+
padding: padding,
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<slot />
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script lang="ts" setup>
|
|
15
|
+
defineProps({
|
|
16
|
+
background: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: false,
|
|
19
|
+
default: 'inherit',
|
|
20
|
+
},
|
|
21
|
+
margin: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: false,
|
|
24
|
+
default: '0',
|
|
25
|
+
},
|
|
26
|
+
padding: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: false,
|
|
29
|
+
default: '0',
|
|
30
|
+
},
|
|
31
|
+
top: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: false,
|
|
34
|
+
default: '0',
|
|
35
|
+
},
|
|
36
|
+
zIndex: {
|
|
37
|
+
type: Number,
|
|
38
|
+
required: false,
|
|
39
|
+
default: 0,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<style lang="scss" scoped>
|
|
45
|
+
.add-block {
|
|
46
|
+
position: relative;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
// border-radius: 5px;
|
|
49
|
+
border: 1px solid;
|
|
50
|
+
// border-right: 1px solid;
|
|
51
|
+
border-color: var(--border-color);
|
|
52
|
+
// background: var(--input-background);
|
|
53
|
+
min-height: 10px;
|
|
54
|
+
background: #fff;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.add-block_body {
|
|
58
|
+
position: relative;
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
width: 100%;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
overflow-y: auto;
|
|
63
|
+
background: #fff;
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<PContainer>
|
|
3
|
+
<PSticky :top="top" :z-index="zIndex">
|
|
4
|
+
<slot name="title" />
|
|
5
|
+
</PSticky>
|
|
6
|
+
<div class="add-block_body">
|
|
7
|
+
<slot />
|
|
8
|
+
</div>
|
|
9
|
+
</PContainer>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script lang="ts" setup>
|
|
13
|
+
defineProps({
|
|
14
|
+
background: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false,
|
|
17
|
+
default: 'inherit',
|
|
18
|
+
},
|
|
19
|
+
margin: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: false,
|
|
22
|
+
default: '0',
|
|
23
|
+
},
|
|
24
|
+
padding: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: false,
|
|
27
|
+
default: '0',
|
|
28
|
+
},
|
|
29
|
+
top: {
|
|
30
|
+
type: String,
|
|
31
|
+
required: false,
|
|
32
|
+
default: '0',
|
|
33
|
+
},
|
|
34
|
+
zIndex: {
|
|
35
|
+
type: Number,
|
|
36
|
+
required: false,
|
|
37
|
+
default: 0,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<style lang="scss" scoped>
|
|
43
|
+
.add-block_body {
|
|
44
|
+
position: relative;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
width: 100%;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
overflow-y: auto;
|
|
49
|
+
background: #fff;
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="del-block"
|
|
4
|
+
:style="{
|
|
5
|
+
margin: margin,
|
|
6
|
+
background: background,
|
|
7
|
+
padding: padding,
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<div class=".del-block_title">
|
|
11
|
+
<slot name="title" />
|
|
12
|
+
</div>
|
|
13
|
+
<div class="del-block_body">
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script lang="ts" setup>
|
|
20
|
+
defineProps({
|
|
21
|
+
background: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: false,
|
|
24
|
+
default: 'inherit',
|
|
25
|
+
},
|
|
26
|
+
margin: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: false,
|
|
29
|
+
default: '10px 10px 10px 50px',
|
|
30
|
+
},
|
|
31
|
+
padding: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: false,
|
|
34
|
+
default: '10px',
|
|
35
|
+
},
|
|
36
|
+
top: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: false,
|
|
39
|
+
default: '0',
|
|
40
|
+
},
|
|
41
|
+
zIndex: {
|
|
42
|
+
type: Number,
|
|
43
|
+
required: false,
|
|
44
|
+
default: 0,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<style lang="scss" scoped>
|
|
50
|
+
.del-block {
|
|
51
|
+
position: relative;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
border-radius: 5px;
|
|
54
|
+
border: 1px solid;
|
|
55
|
+
border-color: var(--border-color-default);
|
|
56
|
+
min-height: 10px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.del-block_title {
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.del-block_body {
|
|
64
|
+
position: relative;
|
|
65
|
+
width: 100%;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
overflow-y: auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.del-block:hover {
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
box-shadow: 0px 0px 1px 2px var(--border-color-default, grey);
|
|
73
|
+
}
|
|
74
|
+
</style>
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auth-card" :style="{ width: width, margin: margin, padding: padding }">
|
|
3
|
+
<ModalTitle :text="PHelp.AuthForm.GetTitle()" />
|
|
4
|
+
<!-- <div class="auth-card-header">
|
|
5
|
+
{{ PHelp.AuthForm.GetTitle() }}
|
|
6
|
+
</div> -->
|
|
7
|
+
<div>
|
|
8
|
+
<PInput
|
|
9
|
+
v-if="PHelp.AuthForm.Email().show(PHelp.AuthForm.Status())"
|
|
10
|
+
v-model="PHelp.AuthForm.Email().email"
|
|
11
|
+
placeholder="Имя пользователя"
|
|
12
|
+
>
|
|
13
|
+
<IconUser size="24px" />
|
|
14
|
+
</PInput>
|
|
15
|
+
<PInput
|
|
16
|
+
v-if="PHelp.AuthForm.Password().show(PHelp.AuthForm.Status())"
|
|
17
|
+
v-model="PHelp.AuthForm.Password().password"
|
|
18
|
+
placeholder="Пароль"
|
|
19
|
+
margin="10px 0 0 0"
|
|
20
|
+
>
|
|
21
|
+
<IconPassword size="24px" />
|
|
22
|
+
<!-- <template #right> -->
|
|
23
|
+
<!-- <PButton type="primary" skin="text_ano" text="Забыли пароль?" width="124px" margin="0 0 0 5px" /> -->
|
|
24
|
+
<!-- </template> -->
|
|
25
|
+
</PInput>
|
|
26
|
+
<PInput
|
|
27
|
+
v-if="PHelp.AuthForm.PasswordRepeat().show(PHelp.AuthForm.Status())"
|
|
28
|
+
v-model="PHelp.AuthForm.PasswordRepeat().text"
|
|
29
|
+
prop="email"
|
|
30
|
+
label="Введите email"
|
|
31
|
+
placeholder="Имя пользователя"
|
|
32
|
+
/>
|
|
33
|
+
<div class="btn-group">
|
|
34
|
+
<PButton
|
|
35
|
+
v-for="btn in buttons"
|
|
36
|
+
:key="btn.getStatus()"
|
|
37
|
+
:disabled="blockBtn"
|
|
38
|
+
type="primary"
|
|
39
|
+
skin="base"
|
|
40
|
+
:text="btn.label"
|
|
41
|
+
:color="btn.isSubmit ? 'blue' : 'grey'"
|
|
42
|
+
margin="10px 0 0 0"
|
|
43
|
+
width="100%"
|
|
44
|
+
height="52px"
|
|
45
|
+
@click="authButtonClick(btn)"
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
|
|
52
|
+
<script lang="ts" setup>
|
|
53
|
+
import AuthButton from '@/services/classes/AuthButton';
|
|
54
|
+
import AuthStatuses from '@/services/interfaces/AuthStatuses';
|
|
55
|
+
|
|
56
|
+
defineProps({
|
|
57
|
+
width: {
|
|
58
|
+
type: String as PropType<string>,
|
|
59
|
+
default: '300px',
|
|
60
|
+
},
|
|
61
|
+
margin: {
|
|
62
|
+
type: String as PropType<string>,
|
|
63
|
+
default: 'auto',
|
|
64
|
+
},
|
|
65
|
+
padding: {
|
|
66
|
+
type: String as PropType<string>,
|
|
67
|
+
default: '60px 100px',
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const form = PHelp.AuthForm;
|
|
72
|
+
const blockBtn = ref(false);
|
|
73
|
+
// const emailRef = ref();
|
|
74
|
+
// const passwordRef = ref();
|
|
75
|
+
|
|
76
|
+
const emits = defineEmits(['action']);
|
|
77
|
+
const buttons = computed(() => form.GetAuthButtons());
|
|
78
|
+
|
|
79
|
+
const registration = async () => {
|
|
80
|
+
form.Reset();
|
|
81
|
+
await AuthStore.Register();
|
|
82
|
+
form.SetStatus(AuthStatuses.Login);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const login = async () => {
|
|
86
|
+
await AuthStore.Login();
|
|
87
|
+
form.Reset();
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const restore = async () => {
|
|
91
|
+
form.Reset();
|
|
92
|
+
await Router.To('/');
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const refresh = async () => {
|
|
96
|
+
form.Reset();
|
|
97
|
+
await Router.To('/');
|
|
98
|
+
PHelp.Auth.Logout();
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const authButtonClick = async (authButton: AuthButton): Promise<void> => {
|
|
102
|
+
// authButton.off();
|
|
103
|
+
blockBtn.value = true;
|
|
104
|
+
if (!authButton.isSubmit) {
|
|
105
|
+
// authButton.on();
|
|
106
|
+
blockBtn.value = false;
|
|
107
|
+
return form.SetStatus(authButton.getStatus());
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const errors = form.GetErrors();
|
|
111
|
+
if (errors.length > 0) {
|
|
112
|
+
PHelp.Notification.Error(errors.join(', '));
|
|
113
|
+
blockBtn.value = false;
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
try {
|
|
118
|
+
PHelp.Loading.Show();
|
|
119
|
+
// await Store.Dispatch(`auth/${form.GetAction()}`);
|
|
120
|
+
PHelp.Loading.Hide();
|
|
121
|
+
|
|
122
|
+
PHelp.Notification.Success(form.GetSuccessMessage());
|
|
123
|
+
} catch (error) {
|
|
124
|
+
PHelp.Loading.Hide();
|
|
125
|
+
blockBtn.value = false;
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
try {
|
|
129
|
+
switch (form.Status()) {
|
|
130
|
+
case AuthStatuses.Login:
|
|
131
|
+
await login();
|
|
132
|
+
break;
|
|
133
|
+
|
|
134
|
+
case AuthStatuses.Register:
|
|
135
|
+
await registration();
|
|
136
|
+
break;
|
|
137
|
+
|
|
138
|
+
case AuthStatuses.Restore:
|
|
139
|
+
await restore();
|
|
140
|
+
break;
|
|
141
|
+
|
|
142
|
+
case AuthStatuses.Refresh:
|
|
143
|
+
await refresh();
|
|
144
|
+
break;
|
|
145
|
+
default:
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
blockBtn.value = false;
|
|
149
|
+
authButton.on();
|
|
150
|
+
emits('action');
|
|
151
|
+
} catch (error) {
|
|
152
|
+
blockBtn.value = false;
|
|
153
|
+
authButton.on();
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
onBeforeUnmount(() => {
|
|
159
|
+
form.Reset();
|
|
160
|
+
});
|
|
161
|
+
</script>
|
|
162
|
+
|
|
163
|
+
<style scoped lang="scss">
|
|
164
|
+
.btn-group {
|
|
165
|
+
display: block;
|
|
166
|
+
margin: 40px 0 0 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.btn {
|
|
170
|
+
color: #409efe;
|
|
171
|
+
border: none;
|
|
172
|
+
width: 100%;
|
|
173
|
+
height: 40px;
|
|
174
|
+
text-transform: none;
|
|
175
|
+
// text-transform: uppercase !important;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.btn:hover {
|
|
179
|
+
box-shadow: none;
|
|
180
|
+
color: #006fe1;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.btn-active {
|
|
184
|
+
background: #ddf2f9;
|
|
185
|
+
color: #409efe;
|
|
186
|
+
border-radius: 5px;
|
|
187
|
+
width: 100%;
|
|
188
|
+
height: 40px;
|
|
189
|
+
margin: 40px 0 10px 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.btn-active:hover {
|
|
193
|
+
box-shadow: none;
|
|
194
|
+
background: #409efe;
|
|
195
|
+
color: #ddf2f9;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.auth-card {
|
|
199
|
+
box-sizing: border-box;
|
|
200
|
+
margin: auto;
|
|
201
|
+
color: var(--font-color);
|
|
202
|
+
background: var(--palette-white);
|
|
203
|
+
border-radius: 8px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.auth-card-header {
|
|
207
|
+
width: 100%;
|
|
208
|
+
font-size: 20px;
|
|
209
|
+
font-family: var(--base-font);
|
|
210
|
+
color: var(--font-color);
|
|
211
|
+
display: flex;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
align-items: center;
|
|
214
|
+
// text-transform: uppercase;
|
|
215
|
+
word-wrap: break-word;
|
|
216
|
+
word-break: break-all;
|
|
217
|
+
margin-bottom: 20px;
|
|
218
|
+
}
|
|
219
|
+
</style>
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="show" class="blur" @click="close" />
|
|
3
|
+
<div
|
|
4
|
+
v-if="show"
|
|
5
|
+
class="modal-w"
|
|
6
|
+
:style="{
|
|
7
|
+
maxWidth: width,
|
|
8
|
+
width: width,
|
|
9
|
+
margin: margin,
|
|
10
|
+
padding: padding,
|
|
11
|
+
top: top,
|
|
12
|
+
}"
|
|
13
|
+
>
|
|
14
|
+
<div v-if="closable" class="icon-box" @click="close">
|
|
15
|
+
<IconClose size="20px" />
|
|
16
|
+
</div>
|
|
17
|
+
<slot />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script lang="ts" setup>
|
|
22
|
+
const props = defineProps({
|
|
23
|
+
showCloseDialog: { type: Boolean, required: false, default: false },
|
|
24
|
+
closable: { type: Boolean, required: false, default: false },
|
|
25
|
+
show: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false,
|
|
28
|
+
},
|
|
29
|
+
title: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: '',
|
|
32
|
+
},
|
|
33
|
+
width: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: '760px',
|
|
36
|
+
},
|
|
37
|
+
margin: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: 'auto',
|
|
40
|
+
},
|
|
41
|
+
top: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: '20vh',
|
|
44
|
+
},
|
|
45
|
+
padding: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: 'var(--modal-window-padding)',
|
|
48
|
+
},
|
|
49
|
+
showClose: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: false,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
const emit = defineEmits(['save', 'close']);
|
|
55
|
+
|
|
56
|
+
const escapeHandler = (e: KeyboardEvent) => {
|
|
57
|
+
if (e.key === 'Escape') {
|
|
58
|
+
close();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
onMounted(() => {
|
|
63
|
+
document.body.addEventListener('keydown', escapeHandler);
|
|
64
|
+
});
|
|
65
|
+
onBeforeUnmount(() => {
|
|
66
|
+
document.body.removeEventListener('keydown', escapeHandler);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const close = () => {
|
|
70
|
+
if (!props.closable) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
emit('close');
|
|
74
|
+
};
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<style lang="scss" scoped>
|
|
78
|
+
.blur {
|
|
79
|
+
position: fixed;
|
|
80
|
+
top: 0;
|
|
81
|
+
left: 0;
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: 100%;
|
|
84
|
+
background: #000000;
|
|
85
|
+
opacity: 0.3;
|
|
86
|
+
z-index: 1000;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.icon-box {
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 10px;
|
|
92
|
+
color: var(--font-color);
|
|
93
|
+
right: 10px;
|
|
94
|
+
&:hover {
|
|
95
|
+
color: var(--font-color-focus);
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.modal-w {
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
position: absolute;
|
|
103
|
+
left: 50%;
|
|
104
|
+
transform: translateX(-50%);
|
|
105
|
+
z-index: 1002;
|
|
106
|
+
border-radius: 5px;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
max-height: 70vh;
|
|
109
|
+
min-height: 40px;
|
|
110
|
+
background: var(--modal-window-background-color);
|
|
111
|
+
color: var(--base-font-color);
|
|
112
|
+
}
|
|
113
|
+
</style>
|