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,190 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="mainblock"
|
|
4
|
+
:style="{
|
|
5
|
+
height: `calc(100% - ${outTopMargin} - ${tabHeight}`,
|
|
6
|
+
}"
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
ref="menuRef"
|
|
10
|
+
class="top-menu"
|
|
11
|
+
:style="{
|
|
12
|
+
gridTemplateColumns: `repeat(auto-fit, minmax(${minMenuItemWidth}, 1fr))`,
|
|
13
|
+
}"
|
|
14
|
+
>
|
|
15
|
+
<div v-for="tab in tabs" :key="tab.id">
|
|
16
|
+
<div
|
|
17
|
+
:class="{ 'selected-tab': tab.id === activeTab.id, tab: activeTab.id !== tab.id }"
|
|
18
|
+
:style="{
|
|
19
|
+
minHeight: tabHeight,
|
|
20
|
+
maxHeight: tabHeight,
|
|
21
|
+
}"
|
|
22
|
+
@click="select(tab)"
|
|
23
|
+
>
|
|
24
|
+
{{ tab.name }}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div
|
|
29
|
+
class="body-container"
|
|
30
|
+
:style="{
|
|
31
|
+
background: background,
|
|
32
|
+
height: h,
|
|
33
|
+
}"
|
|
34
|
+
>
|
|
35
|
+
<slot />
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script lang="ts" setup>
|
|
41
|
+
import ITab from './ITab';
|
|
42
|
+
const props = defineProps({
|
|
43
|
+
tabs: {
|
|
44
|
+
type: Object as PropType<ITab[]>,
|
|
45
|
+
required: true,
|
|
46
|
+
},
|
|
47
|
+
tabHeight: {
|
|
48
|
+
type: String,
|
|
49
|
+
required: false,
|
|
50
|
+
default: '40px',
|
|
51
|
+
},
|
|
52
|
+
height: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: false,
|
|
55
|
+
default: '',
|
|
56
|
+
},
|
|
57
|
+
minMenuItemWidth: {
|
|
58
|
+
type: String,
|
|
59
|
+
required: false,
|
|
60
|
+
default: '150px',
|
|
61
|
+
},
|
|
62
|
+
outTopMargin: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: false,
|
|
65
|
+
default: '40px',
|
|
66
|
+
},
|
|
67
|
+
background: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false,
|
|
70
|
+
default: '#ffffff',
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
const emit = defineEmits(['select']);
|
|
74
|
+
const activeTab: Ref<ITab> = ref(props.tabs[0]);
|
|
75
|
+
const windowWidth = ref(window.innerWidth);
|
|
76
|
+
const menuRef = ref();
|
|
77
|
+
const menuH = ref(Number(props.tabHeight.replace(/[^+\d]/g, '')));
|
|
78
|
+
|
|
79
|
+
const onWidthChange = () => {
|
|
80
|
+
windowWidth.value = window.innerWidth;
|
|
81
|
+
menuH.value = menuRef.value ? menuRef.value.clientHeight : Number(props.tabHeight.replace(/[^+\d]/g, ''));
|
|
82
|
+
};
|
|
83
|
+
onMounted(() => window.addEventListener('resize', onWidthChange));
|
|
84
|
+
onUnmounted(() => window.removeEventListener('resize', onWidthChange));
|
|
85
|
+
|
|
86
|
+
const h = computed(() => {
|
|
87
|
+
return `calc(100% - ${menuH.value}px + 1px)`;
|
|
88
|
+
});
|
|
89
|
+
const select = (tab: ITab) => {
|
|
90
|
+
activeTab.value = tab;
|
|
91
|
+
emit('select', tab);
|
|
92
|
+
};
|
|
93
|
+
</script>
|
|
94
|
+
|
|
95
|
+
<style lang="scss" scoped>
|
|
96
|
+
.mainblock {
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
display: block;
|
|
99
|
+
border-radius: 10px;
|
|
100
|
+
border: 1px solid;
|
|
101
|
+
border-color: var(--tabs-border-color);
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
margin: 0 10px 10px 10px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.top-menu {
|
|
107
|
+
position: relative;
|
|
108
|
+
margin: -1px;
|
|
109
|
+
display: grid;
|
|
110
|
+
grid-gap: 0;
|
|
111
|
+
grid-template-rows: repeat(0 0px);
|
|
112
|
+
z-index: 6;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.top-menu > div {
|
|
116
|
+
object-fit: cover;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.body-container {
|
|
120
|
+
margin-top: 1px;
|
|
121
|
+
border-top: 0.5px solid;
|
|
122
|
+
border-color: var(--tabs-border-color);
|
|
123
|
+
box-sizing: border-box;
|
|
124
|
+
overflow: scroll;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
overflow-y: auto;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.tab {
|
|
130
|
+
font-size: var(--font-size-default);
|
|
131
|
+
text-transform: uppercase;
|
|
132
|
+
color: var(--tabs-font-color);
|
|
133
|
+
border: 1px solid;
|
|
134
|
+
border-bottom: none;
|
|
135
|
+
border-color: var(--tabs-border-color);
|
|
136
|
+
display: flex;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
align-items: center;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
text-align: center;
|
|
141
|
+
|
|
142
|
+
-webkit-user-select: none;
|
|
143
|
+
/* Safari */
|
|
144
|
+
-ms-user-select: none;
|
|
145
|
+
/* IE 10 and IE 11 */
|
|
146
|
+
user-select: none;
|
|
147
|
+
/* Standard syntax */
|
|
148
|
+
|
|
149
|
+
background: var(--tabs-background);
|
|
150
|
+
margin: -0.5px;
|
|
151
|
+
font-family: var(--base-font);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.tab:hover {
|
|
155
|
+
background: var(--tabs-hover-background-color);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.selected-tab {
|
|
159
|
+
// box-sizing: border-box;
|
|
160
|
+
font-size: var(--font-size-default);
|
|
161
|
+
// font-weight: bold;
|
|
162
|
+
text-transform: uppercase;
|
|
163
|
+
color: var(--tabs-selected-font-color);
|
|
164
|
+
border: 1px solid;
|
|
165
|
+
border-bottom: none;
|
|
166
|
+
border-color: var(--tabs-border-color);
|
|
167
|
+
position: relative;
|
|
168
|
+
display: flex;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
align-items: center;
|
|
171
|
+
text-align: center;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
|
|
174
|
+
-webkit-user-select: none;
|
|
175
|
+
/* Safari */
|
|
176
|
+
-ms-user-select: none;
|
|
177
|
+
/* IE 10 and IE 11 */
|
|
178
|
+
user-select: none;
|
|
179
|
+
/* Standard syntax */
|
|
180
|
+
|
|
181
|
+
background: var(--tabs-background-selected);
|
|
182
|
+
margin: -0.5px;
|
|
183
|
+
z-index: 1;
|
|
184
|
+
font-family: var(--base-font);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.selected-tab:hover {
|
|
188
|
+
background: var(--tabs-background-selected);
|
|
189
|
+
}
|
|
190
|
+
</style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { mount } from '@vue/test-utils';
|
|
2
|
+
|
|
3
|
+
// import FileInfo from '@/services/classes/FileInfo';
|
|
4
|
+
import UploaderFile from './UploaderFile.vue';
|
|
5
|
+
|
|
6
|
+
describe('UploaderFile', () => {
|
|
7
|
+
test('render text', async () => {
|
|
8
|
+
const wrapper = mount(UploaderFile);
|
|
9
|
+
|
|
10
|
+
const inputFile = wrapper.find('input[type="file"]');
|
|
11
|
+
const fileMock = new File(['(file content)'], 'test-file.pdf', {
|
|
12
|
+
type: 'text/plain',
|
|
13
|
+
name: 'test-file.pdf',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
expect(inputFile.exists()).toBe(true);
|
|
17
|
+
inputFile.element.files = [fileMock];
|
|
18
|
+
await inputFile.trigger('change');
|
|
19
|
+
await wrapper.vm.$nextTick();
|
|
20
|
+
|
|
21
|
+
expect(inputFile.element.files).toEqual([fileMock]);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<input :id="fileInputId" type="file" hidden @change="changeFileHandler" />
|
|
3
|
+
<div class="text-field" :style="{ margin: margin, padding: padding }">
|
|
4
|
+
<label v-if="label" class="text-field__label" :for="label">
|
|
5
|
+
{{ label }}
|
|
6
|
+
</label>
|
|
7
|
+
<div
|
|
8
|
+
class="field"
|
|
9
|
+
:style="{
|
|
10
|
+
borderColor: borderColor,
|
|
11
|
+
}"
|
|
12
|
+
>
|
|
13
|
+
<div class="left-field">
|
|
14
|
+
<PFlex>
|
|
15
|
+
<slot />
|
|
16
|
+
<PString :string="placeholder" font-size="var(--font-size-default:)" color="var(--input-label-color)" margin="0 10px 0 0" />
|
|
17
|
+
</PFlex>
|
|
18
|
+
</div>
|
|
19
|
+
<div
|
|
20
|
+
v-if="fileInfo && fileInfo.originalName"
|
|
21
|
+
class="text-field__input"
|
|
22
|
+
:style="{
|
|
23
|
+
color: color,
|
|
24
|
+
}"
|
|
25
|
+
>
|
|
26
|
+
<a :href="fileInfo.getFileUrl()" target="_blank" :download="fileInfo.originalName">
|
|
27
|
+
<div>{{ fileInfo.originalName }}</div>
|
|
28
|
+
</a>
|
|
29
|
+
<PButton size="mini" icon="el-icon-close" @click="removeFile"></PButton>
|
|
30
|
+
</div>
|
|
31
|
+
<div v-else class="text-field__input">
|
|
32
|
+
<PString string="Файл не загружен" font-size="var(--inpur-font-size-default)" color="var(--palette-warning)" margin="0 10px 0 0" />
|
|
33
|
+
</div>
|
|
34
|
+
<div class="right-field">
|
|
35
|
+
<PButton
|
|
36
|
+
:id="buttonFileId"
|
|
37
|
+
skin="text"
|
|
38
|
+
type="success"
|
|
39
|
+
data-test="upload-btn"
|
|
40
|
+
:text="fileInfo && fileInfo.originalName ? 'Обновить' : 'Загрузить'"
|
|
41
|
+
margin="0"
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<script lang="ts" setup>
|
|
49
|
+
import FileInfo from '@/services/classes/FileInfo';
|
|
50
|
+
|
|
51
|
+
const props = defineProps({
|
|
52
|
+
fileInfo: {
|
|
53
|
+
type: Object as PropType<FileInfo>,
|
|
54
|
+
required: false,
|
|
55
|
+
default: new FileInfo(),
|
|
56
|
+
},
|
|
57
|
+
formats: {
|
|
58
|
+
type: Array as PropType<string[]>,
|
|
59
|
+
default: () => ['pdf', 'jpeg', 'jpg'],
|
|
60
|
+
},
|
|
61
|
+
label: { type: String, default: '', required: false },
|
|
62
|
+
margin: { type: String, required: false, default: '10px 0 0 0' },
|
|
63
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
64
|
+
padding: { type: String, default: '', required: false },
|
|
65
|
+
mask: { type: String, required: false, default: undefined },
|
|
66
|
+
borderColor: { type: String, default: 'var(--input-border-color)', required: false },
|
|
67
|
+
color: { type: String, default: 'var(--input-font-color)', required: false },
|
|
68
|
+
placeholder: { type: String, required: false, default: '' },
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const emit = defineEmits(['upload', 'remove']);
|
|
72
|
+
|
|
73
|
+
const fileInputId = Strings.CreateGuid();
|
|
74
|
+
const buttonFileId = Strings.CreateGuid();
|
|
75
|
+
|
|
76
|
+
const changeFileHandler = () => {
|
|
77
|
+
const file = document.getElementById(fileInputId)?.files[0];
|
|
78
|
+
if (!file) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (!isAcceptedFormat(file.name)) {
|
|
82
|
+
PHelp.Notification.Error('Загруженный файл должен быть в формате pdf, jpg или jpeg');
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
props.fileInfo.uploadAndSetFile(file);
|
|
86
|
+
emit('upload', props.fileInfo);
|
|
87
|
+
};
|
|
88
|
+
const removeFile = () => {
|
|
89
|
+
props.fileInfo.clearFile();
|
|
90
|
+
emit('remove', props.fileInfo);
|
|
91
|
+
};
|
|
92
|
+
// const accept = ref(props.formats.map((el) => '.' + el).toString());
|
|
93
|
+
|
|
94
|
+
onMounted(() => {
|
|
95
|
+
const btn = document.getElementById(buttonFileId);
|
|
96
|
+
if (!btn) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
btn.onclick = () => document.getElementById(fileInputId)?.click();
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
const isAcceptedFormat = (filename: string): boolean => {
|
|
103
|
+
let ext = Extension.Get(filename);
|
|
104
|
+
if (props.formats.includes(ext.toLowerCase())) {
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
return false;
|
|
108
|
+
};
|
|
109
|
+
</script>
|
|
110
|
+
|
|
111
|
+
<style scoped>
|
|
112
|
+
*,
|
|
113
|
+
*::before,
|
|
114
|
+
*::after {
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.field {
|
|
119
|
+
box-sizing: border-box;
|
|
120
|
+
position: relative;
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: left;
|
|
123
|
+
align-items: center;
|
|
124
|
+
background: var(--input-background);
|
|
125
|
+
border-radius: var(--input-field-borderRadius-default);
|
|
126
|
+
border: 1px solid;
|
|
127
|
+
padding: var(--input-padding-default);
|
|
128
|
+
margin: var(--input-margin-default);
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
width: 100%;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.right-field {
|
|
134
|
+
display: flex;
|
|
135
|
+
justify-content: right;
|
|
136
|
+
align-items: center;
|
|
137
|
+
width: auto;
|
|
138
|
+
font-family: var(--base-font);
|
|
139
|
+
color: var(--input-label-color);
|
|
140
|
+
font-size: var(--inpur-font-size-default);
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.left-field {
|
|
145
|
+
display: flex;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
align-items: center;
|
|
148
|
+
height: 100%;
|
|
149
|
+
width: auto;
|
|
150
|
+
font-family: var(--base-font);
|
|
151
|
+
color: var(--input-label-color);
|
|
152
|
+
font-size: var(--inpur-font-size-default);
|
|
153
|
+
white-space: nowrap;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.text-field {
|
|
157
|
+
width: var(--input-width-default);
|
|
158
|
+
display: flex;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
align-items: center;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.text-field__label {
|
|
164
|
+
display: flex;
|
|
165
|
+
justify-content: left;
|
|
166
|
+
align-items: center;
|
|
167
|
+
width: 100%;
|
|
168
|
+
font-family: var(--base-font);
|
|
169
|
+
color: var(--input-label-color);
|
|
170
|
+
font-size: var(--inpur-font-size-default);
|
|
171
|
+
margin: var(--input-labal-margin);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.text-field__input {
|
|
175
|
+
width: 100%;
|
|
176
|
+
font-size: var(--inpur-font-size-default);
|
|
177
|
+
font-family: var(--base-font);
|
|
178
|
+
background: var(--input-background);
|
|
179
|
+
margin: 0;
|
|
180
|
+
height: var(--input-height, 30px);
|
|
181
|
+
border: none;
|
|
182
|
+
display: flex;
|
|
183
|
+
align-items: center;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.text-field__input::placeholder {
|
|
187
|
+
font-family: var(--base-font);
|
|
188
|
+
font-size: var(--inpur-font-size-default);
|
|
189
|
+
color: var(--input-placeholder-color);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.text-field__input:focus {
|
|
193
|
+
color: var(--input-focus-color);
|
|
194
|
+
outline: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.text-field__input:disabled,
|
|
198
|
+
.text-field__input[readonly] {
|
|
199
|
+
background-color: var(--input-readonly-background);
|
|
200
|
+
opacity: 1;
|
|
201
|
+
}
|
|
202
|
+
</style>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="bg">
|
|
3
|
+
<AuthForm width="760px" margin="0 auto" @action="action" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script lang="ts" setup>
|
|
8
|
+
const action = () => {
|
|
9
|
+
if (PHelp.AuthForm.IsLogin()) {
|
|
10
|
+
Router.ToHome();
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<style lang="scss" scoped>
|
|
16
|
+
.bg {
|
|
17
|
+
width: 100vw;
|
|
18
|
+
height: 100vh;
|
|
19
|
+
background: #b5c5ff;
|
|
20
|
+
padding: 20vh 0 0 0;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// atoms
|
|
2
|
+
import PButton from '@/components/atoms/PButton/PButton.vue';
|
|
3
|
+
import PCheckBox from '@/components/atoms/PCheckbox/PCheckBox.vue';
|
|
4
|
+
import PDatePicker from '@/components/atoms/PDatePicker/PDatePicker.vue';
|
|
5
|
+
import PFlex from '@/components/atoms/PFlex/PFlex.vue';
|
|
6
|
+
import PInput from '@/components/atoms/PInput/PInput.vue';
|
|
7
|
+
import PInputDate from '@/components/atoms/PInputDate/PInputDate.vue';
|
|
8
|
+
import PInputNumber from '@/components/atoms/PInputNumber/PInputNumber.vue';
|
|
9
|
+
import PLeftSlider from '@/components/atoms/PLeftSlider/PLeftSlider.vue';
|
|
10
|
+
import PList from '@/components/atoms/PList/PList.vue';
|
|
11
|
+
import PListItem from '@/components/atoms/PListItem/PListItem.vue';
|
|
12
|
+
import PRadio from '@/components/atoms/PRadio/PRadio.vue';
|
|
13
|
+
import PRightSlider from '@/components/atoms/PRightSlider/PRightSlider.vue';
|
|
14
|
+
import PSelect from '@/components/atoms/PSelect/PSelect.vue';
|
|
15
|
+
import PSticky from '@/components/atoms/PSticky/PSticky.vue';
|
|
16
|
+
import PString from '@/components/atoms/PString/PString.vue';
|
|
17
|
+
import PTextarea from '@/components/atoms/PTextarea/PTextarea.vue';
|
|
18
|
+
import PTopSlider from '@/components/atoms/PTopSlider/PTopSlider.vue';
|
|
19
|
+
// icons
|
|
20
|
+
// icon filter
|
|
21
|
+
import IconDownload from '@/components/Icons/Filter/IconDownload.vue';
|
|
22
|
+
import IconFilter from '@/components/Icons/Filter/IconFilter.vue';
|
|
23
|
+
//icon pagination
|
|
24
|
+
import ArrowLeft from '@/components/Icons/Pagination/ArrowLeft.vue';
|
|
25
|
+
import ArrowRight from '@/components/Icons/Pagination/ArrowRight.vue';
|
|
26
|
+
import DoubleArrowLeft from '@/components/Icons/Pagination/DoubleArrowLeft.vue';
|
|
27
|
+
import DoubleArrowRight from '@/components/Icons/Pagination/DoubleArrowRight.vue';
|
|
28
|
+
import EllipsisSvg from '@/components/Icons/Pagination/EllipsisSvg.vue';
|
|
29
|
+
// icons
|
|
30
|
+
import IconArrowLeft from '@/components/Icons/IconArrowLeft.vue';
|
|
31
|
+
import IconCheckDefault from '@/components/Icons/IconCheckDefault.vue';
|
|
32
|
+
import IconClose from '@/components/Icons/IconClose.vue';
|
|
33
|
+
import IconEdit from '@/components/Icons/IconEdit.vue';
|
|
34
|
+
import IconEmail from '@/components/Icons/IconEmail.vue';
|
|
35
|
+
import IconMove from '@/components/Icons/IconMove.vue';
|
|
36
|
+
import IconPhone from '@/components/Icons/IconPhone.vue';
|
|
37
|
+
import IconSearch from '@/components/Icons/IconSearch.vue';
|
|
38
|
+
import IconSelectArrow from '@/components/Icons/IconSelectArrow.vue';
|
|
39
|
+
// molecules
|
|
40
|
+
// molecule collapse
|
|
41
|
+
import CollapseContainer from '@/components/molecules/Collapse/CollapseContainer.vue';
|
|
42
|
+
import CollapseItem from '@/components/molecules/Collapse/CollapseItem.vue';
|
|
43
|
+
import VerticalCollapseContainer from '@/components/molecules/Collapse/VerticalCollapseContainer.vue';
|
|
44
|
+
//molecule PAdd
|
|
45
|
+
import PAdd from '@/components/molecules/PAdd/PAdd.vue';
|
|
46
|
+
import PContainer from '@/components/molecules/PAdd/PContainer.vue';
|
|
47
|
+
import PContainerStickyHead from '@/components/molecules/PAdd/PContainerStickyHead.vue';
|
|
48
|
+
//molecule PDel
|
|
49
|
+
import PDel from '@/components/molecules/PDel/PDel.vue';
|
|
50
|
+
// organisms
|
|
51
|
+
import PTabs from '@/components/organisms/PTabs/PTabs.vue';
|
|
52
|
+
import UploaderFile from '@/components/organisms/UploaderFile/UploaderFile.vue';
|
|
53
|
+
import AuthForm from '@/components/organisms/AuthForm.vue';
|
|
54
|
+
import PModal from '@/components/organisms/PModal.vue';
|
|
55
|
+
//pages
|
|
56
|
+
import AuthPage from '@/components/pages/AuthPage.vue';
|
|
57
|
+
import PageNotFound from '@/components/pages/PageNotFound.vue';
|
|
58
|
+
//services
|
|
59
|
+
import AdaptiveContainer from '@/components/AdaptiveContainer.vue';
|
|
60
|
+
import AdaptiveContainerHorizontal from '@/components/AdaptiveContainerHorizontal.vue';
|
|
61
|
+
import AdminGallery from '@/components/AdminGallery.vue';
|
|
62
|
+
import AuthModal from '@/components/AuthModal.vue';
|
|
63
|
+
import CarouselImages from '@/components/CarouselImages.vue';
|
|
64
|
+
import ContactForm from '@/components/ContactForm.vue';
|
|
65
|
+
import ContextWindow from '@/components/ContextWindow.vue';
|
|
66
|
+
import DateInputRange_v2 from '@/components/DateInputRange_v2.vue';
|
|
67
|
+
import DateInputRange from '@/components/DateInputRange.vue';
|
|
68
|
+
import DropList from '@/components/DropList.vue';
|
|
69
|
+
import EmailForm from '@/components/EmailForm.vue';
|
|
70
|
+
import FilterCheckbox from '@/components/FilterCheckbox.vue';
|
|
71
|
+
import FiltersButtonsSelect from '@/components/FiltersButtonsSelect.vue';
|
|
72
|
+
import FilterSelect from '@/components/FilterSelect.vue';
|
|
73
|
+
import FTSPPanel from '@/components/FTSPPanel.vue';
|
|
74
|
+
import GeneralItem from '@/components/GeneralItem.vue';
|
|
75
|
+
import GridContainer from '@/components/GridContainer.vue';
|
|
76
|
+
import ImageCropper from '@/components/ImageCropper.vue';
|
|
77
|
+
import InfoItem from '@/components/InfoItem.vue';
|
|
78
|
+
import InfoItemSelectButtons from '@/components/InfoItemSelectButtons.vue';
|
|
79
|
+
import LeftRightContainer from '@/components/LeftRightContainer.vue';
|
|
80
|
+
import MessageBody from '@/components/MessageBody.vue';
|
|
81
|
+
import PAutocomplete from '@/components/PAutocomplete.vue';
|
|
82
|
+
import PDialog from '@/components/PDialog.vue';
|
|
83
|
+
import PhoneForm from '@/components/PhoneForm.vue';
|
|
84
|
+
import PLoader from '@/components/PLoader.vue';
|
|
85
|
+
import PNotification from '@/components/PNotification.vue';
|
|
86
|
+
import PPagination from '@/components/PPagination.vue';
|
|
87
|
+
import RemoteSearch from '@/components/RemoteSearch.vue';
|
|
88
|
+
import ResearcheContainer from '@/components/ResearcheContainer.vue';
|
|
89
|
+
import RightSliderContainer from '@/components/RightSliderContainer.vue';
|
|
90
|
+
import RightTabsContainer from '@/components/RightTabsContainer.vue';
|
|
91
|
+
import RSContainer from '@/components/RSContainer.vue';
|
|
92
|
+
import SelectValueType from '@/components/SelectValueType.vue';
|
|
93
|
+
import SingleNameToggleForm from '@/components/SingleNameToggleForm.vue';
|
|
94
|
+
import SortList from '@/components/SortList.vue';
|
|
95
|
+
import SortSelect from '@/components/SortSelect.vue';
|
|
96
|
+
import Switch3Pos from '@/components/Switch3Pos.vue';
|
|
97
|
+
import ThemeWrapper from '@/components/ThemeWrapper.vue';
|
|
98
|
+
import ToggleInfoItem from '@/components/ToggleInfoItem.vue';
|
|
99
|
+
import TopSliderContainer from '@/components/TopSliderContainer.vue';
|
|
100
|
+
import UploaderImage from '@/components/UploaderImage.vue';
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
const servicesComponents: {install: (app: {component: (a:string, b:unknown) => void}) => void} = {
|
|
104
|
+
install: function (app: { component:(a:string, b:unknown) => void}) :void {
|
|
105
|
+
app.component("PButton", PButton);
|
|
106
|
+
app.component("PCheckBox", PCheckBox);
|
|
107
|
+
app.component("PDatePicker", PDatePicker);
|
|
108
|
+
app.component("PFlex", PFlex);
|
|
109
|
+
app.component("PInput", PInput);
|
|
110
|
+
app.component("PInputDate", PInputDate);
|
|
111
|
+
app.component("PInputNumber", PInputNumber);
|
|
112
|
+
app.component("PLeftSlider", PLeftSlider);
|
|
113
|
+
app.component("PList", PList);
|
|
114
|
+
app.component("PListItem", PListItem);
|
|
115
|
+
app.component("PRadio", PRadio);
|
|
116
|
+
app.component("PRightSlider", PRightSlider);
|
|
117
|
+
app.component("PSelect", PSelect);
|
|
118
|
+
app.component("PSticky", PSticky);
|
|
119
|
+
app.component("PString", PString);
|
|
120
|
+
app.component("PTextarea", PTextarea);
|
|
121
|
+
app.component("PTopSlider", PTopSlider);
|
|
122
|
+
app.component("IconDownload", IconDownload);
|
|
123
|
+
app.component("IconFilter", IconFilter);
|
|
124
|
+
app.component("ArrowLeft", ArrowLeft);
|
|
125
|
+
app.component("ArrowRight", ArrowRight);
|
|
126
|
+
app.component("DoubleArrowLeft", DoubleArrowLeft);
|
|
127
|
+
app.component("DoubleArrowRight", DoubleArrowRight);
|
|
128
|
+
app.component("EllipsisSvg", EllipsisSvg);
|
|
129
|
+
app.component("IconArrowLeft", IconArrowLeft);
|
|
130
|
+
app.component("IconCheckDefault", IconCheckDefault);
|
|
131
|
+
app.component("IconClose", IconClose);
|
|
132
|
+
app.component("IconEdit", IconEdit);
|
|
133
|
+
app.component("IconEmail", IconEmail);
|
|
134
|
+
app.component("IconMove", IconMove);
|
|
135
|
+
app.component("IconPhone", IconPhone);
|
|
136
|
+
app.component("IconSearch", IconSearch);
|
|
137
|
+
app.component("IconSelectArrow", IconSelectArrow);
|
|
138
|
+
app.component("CollapseContainer", CollapseContainer);
|
|
139
|
+
app.component("CollapseItem", CollapseItem);
|
|
140
|
+
app.component("VerticalCollapseContainer", VerticalCollapseContainer);
|
|
141
|
+
app.component("PAdd", PAdd);
|
|
142
|
+
app.component("PContainer", PContainer);
|
|
143
|
+
app.component("PContainerStickyHead", PContainerStickyHead);
|
|
144
|
+
app.component("PDel", PDel);
|
|
145
|
+
app.component("PTabs", PTabs);
|
|
146
|
+
app.component("UploaderFile", UploaderFile);
|
|
147
|
+
app.component("AuthForm", AuthForm);
|
|
148
|
+
app.component("PModal", PModal);
|
|
149
|
+
app.component("AuthPage", AuthPage);
|
|
150
|
+
app.component("PageNotFound", PageNotFound);
|
|
151
|
+
app.component("AdaptiveContainer", AdaptiveContainer);
|
|
152
|
+
app.component("AdaptiveContainerHorizontal", AdaptiveContainerHorizontal);
|
|
153
|
+
app.component("AdminGallery", AdminGallery);
|
|
154
|
+
app.component("AuthModal", AuthModal);
|
|
155
|
+
app.component("CarouselImages", CarouselImages);
|
|
156
|
+
app.component("ContactForm", ContactForm);
|
|
157
|
+
app.component("ContextWindow", ContextWindow);
|
|
158
|
+
app.component("DateInputRange_v2", DateInputRange_v2);
|
|
159
|
+
app.component("DateInputRange", DateInputRange);
|
|
160
|
+
app.component("DropList", DropList);
|
|
161
|
+
app.component("EmailForm", EmailForm);
|
|
162
|
+
app.component("FilterCheckbox", FilterCheckbox);
|
|
163
|
+
app.component("FiltersButtonsSelect", FiltersButtonsSelect);
|
|
164
|
+
app.component("FilterSelect", FilterSelect);
|
|
165
|
+
app.component("FTSPPanel", FTSPPanel);
|
|
166
|
+
app.component("GeneralItem", GeneralItem);
|
|
167
|
+
app.component("GridContainer", GridContainer);
|
|
168
|
+
app.component("ImageCropper", ImageCropper);
|
|
169
|
+
app.component("InfoItem", InfoItem);
|
|
170
|
+
app.component("InfoItemSelectButtons", InfoItemSelectButtons);
|
|
171
|
+
app.component("LeftRightContainer", LeftRightContainer);
|
|
172
|
+
app.component("MessageBody", MessageBody);
|
|
173
|
+
app.component("PAutocomplete", PAutocomplete);
|
|
174
|
+
app.component("PDialog", PDialog);
|
|
175
|
+
app.component("PhoneForm", PhoneForm);
|
|
176
|
+
app.component("PLoader", PLoader);
|
|
177
|
+
app.component("PNotification", PNotification);
|
|
178
|
+
app.component("PPagination", PPagination);
|
|
179
|
+
app.component("RemoteSearch", RemoteSearch);
|
|
180
|
+
app.component("ResearcheContainer", ResearcheContainer);
|
|
181
|
+
app.component("RightSliderContainer", RightSliderContainer);
|
|
182
|
+
app.component("RightTabsContainer", RightTabsContainer);
|
|
183
|
+
app.component("RSContainer", RSContainer);
|
|
184
|
+
app.component("SelectValueType", SelectValueType);
|
|
185
|
+
app.component("SingleNameToggleForm", SingleNameToggleForm);
|
|
186
|
+
app.component("SortList", SortList);
|
|
187
|
+
app.component("SortSelect", SortSelect);
|
|
188
|
+
app.component("Switch3Pos", Switch3Pos);
|
|
189
|
+
app.component("ThemeWrapper", ThemeWrapper);
|
|
190
|
+
app.component("ToggleInfoItem", ToggleInfoItem);
|
|
191
|
+
app.component("TopSliderContainer", TopSliderContainer);
|
|
192
|
+
app.component("UploaderImage", UploaderImage);
|
|
193
|
+
},
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export {PButton, PCheckBox, PDatePicker, PFlex, PInput, PInputDate, PInputNumber, PLeftSlider, PList, PListItem, PRadio, PRightSlider,
|
|
197
|
+
PSelect, PSticky, PString, PTextarea, PTopSlider, IconDownload, IconFilter, ArrowLeft, ArrowRight, DoubleArrowLeft, DoubleArrowRight,
|
|
198
|
+
EllipsisSvg, IconArrowLeft, IconCheckDefault, IconClose, IconEdit, IconEmail, IconMove, IconPhone, IconSearch, IconSelectArrow,
|
|
199
|
+
CollapseContainer, CollapseItem, VerticalCollapseContainer, PAdd, PContainer, PContainerStickyHead, PDel, PTabs, UploaderFile,
|
|
200
|
+
AuthForm, PModal, AuthPage, PageNotFound, AdaptiveContainer, AdaptiveContainerHorizontal, AdminGallery, AuthModal, CarouselImages,
|
|
201
|
+
ContactForm, ContextWindow, DateInputRange_v2, DateInputRange, DropList, EmailForm, FilterCheckbox, FiltersButtonsSelect, FilterSelect,
|
|
202
|
+
FTSPPanel, GeneralItem, GridContainer, ImageCropper, InfoItem, InfoItemSelectButtons, LeftRightContainer, MessageBody, PAutocomplete,
|
|
203
|
+
PDialog, PhoneForm, PLoader, PNotification, PPagination, RemoteSearch, ResearcheContainer, RightSliderContainer, RightTabsContainer,
|
|
204
|
+
RSContainer, SelectValueType, SingleNameToggleForm, SortList, SortSelect, Switch3Pos, ThemeWrapper, ToggleInfoItem, TopSliderContainer,
|
|
205
|
+
UploaderImage, servicesComponents
|
|
206
|
+
}
|