sprof 0.0.2 → 0.0.10
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/dist/classes/EmailValidator.d.ts +5 -0
- package/dist/classes/FTSPPreset.d.ts +8 -0
- package/dist/classes/PasswordValidator.d.ts +6 -0
- package/dist/classes/auth/Auth.d.ts +13 -0
- package/dist/classes/auth/AuthData.d.ts +5 -0
- package/dist/classes/auth/AuthForm.d.ts +28 -0
- package/dist/classes/auth/AuthModal.d.ts +8 -0
- package/dist/classes/auth/AuthStatus.d.ts +17 -0
- package/dist/classes/{AuthTokens.d.ts → auth/AuthTokens.d.ts} +1 -1
- package/dist/classes/auth/AuthUser.d.ts +16 -0
- package/dist/classes/auth/buttons/AuthButton.d.ts +8 -0
- package/dist/classes/auth/buttons/AuthButtonLogin.d.ts +7 -0
- package/dist/classes/auth/buttons/AuthButtonRegister.d.ts +7 -0
- package/dist/classes/auth/fields/AuthField.d.ts +7 -0
- package/dist/classes/auth/fields/EmailField.d.ts +11 -0
- package/dist/classes/auth/fields/LoginField.d.ts +10 -0
- package/dist/classes/auth/fields/PasswordField.d.ts +9 -0
- package/dist/classes/auth/fields/PasswordRepeatField.d.ts +5 -0
- package/dist/classes/auth/index.d.ts +12 -0
- package/dist/classes/auth/indexNames.d.ts +2 -0
- package/dist/classes/auth/settings/AuthFormSettings.d.ts +4 -0
- package/dist/classes/auth/types/AuthFormSettingsType.d.ts +13 -0
- package/dist/{interfaces/AuthStatuses.d.ts → classes/auth/types/AuthFormStatuses.d.ts} +2 -2
- package/dist/classes/auth/types/AuthMethods.d.ts +8 -0
- package/dist/classes/index.d.ts +1 -0
- package/dist/classes/indexNames.d.ts +2 -0
- package/dist/{services → classes/ui}/Button.d.ts +6 -4
- package/dist/classes/ui/InputField.d.ts +9 -0
- package/dist/components/AdaptiveContainerHorizontal.vue.d.ts +11 -0
- package/dist/components/AdminGallery.vue.d.ts +7 -8
- package/dist/components/AuthModal.vue.d.ts +2 -2
- package/dist/components/ContextWindow.vue.d.ts +1 -1
- package/dist/components/FTSPPanel.vue.d.ts +1 -5
- package/dist/components/GeneralItem.vue.d.ts +2 -2
- package/dist/components/GridContainer.vue.d.ts +3 -3
- package/dist/components/Icons/Filter/IconDownload.vue.d.ts +1 -1
- package/dist/components/Icons/Filter/IconFilter.vue.d.ts +1 -1
- package/dist/components/Icons/IconArrowLeft.vue.d.ts +1 -1
- package/dist/components/Icons/IconCheckDefault.vue.d.ts +1 -1
- package/dist/components/Icons/IconClose.vue.d.ts +1 -1
- package/dist/components/Icons/IconEdit.vue.d.ts +1 -1
- package/dist/components/Icons/IconEmail.vue.d.ts +1 -1
- package/dist/components/Icons/IconMove.vue.d.ts +1 -1
- package/dist/components/Icons/IconPhone.vue.d.ts +1 -1
- package/dist/components/Icons/IconSearch.vue.d.ts +1 -1
- package/dist/components/Icons/IconSelectArrow.vue.d.ts +1 -1
- package/dist/components/Icons/Pagination/ArrowLeft.vue.d.ts +1 -1
- package/dist/components/Icons/Pagination/ArrowRight.vue.d.ts +1 -1
- package/dist/components/Icons/Pagination/DoubleArrowLeft.vue.d.ts +1 -1
- package/dist/components/Icons/Pagination/DoubleArrowRight.vue.d.ts +1 -1
- package/dist/components/Icons/Pagination/EllipsisSvg.vue.d.ts +1 -1
- package/dist/components/InfoItem.vue.d.ts +5 -5
- package/dist/components/LeftRightContainer.vue.d.ts +1 -1
- package/dist/components/MessageBody.vue.d.ts +1 -1
- package/dist/components/RemoteSearch.vue.d.ts +2 -2
- package/dist/components/ResearcheContainer.vue.d.ts +1 -1
- package/dist/components/RightTabsContainer.vue.d.ts +1 -1
- package/dist/components/Switch3Pos.vue.d.ts +1 -0
- package/dist/components/UploaderImage.vue.d.ts +4 -4
- package/dist/components/atoms/PButton/PButton.stories.d.ts +211 -15
- package/dist/components/atoms/PButton/PButton.vue.d.ts +9 -7
- package/dist/components/atoms/PCheckbox/PCheckBox.stories.d.ts +226 -0
- package/dist/components/atoms/PCheckbox/PCheckBox.vue.d.ts +2 -2
- package/dist/components/atoms/PDatePicker/PDatePicker.vue.d.ts +2 -2
- package/dist/components/atoms/PFlex/PFlex.stories.d.ts +428 -0
- package/dist/components/atoms/PFlex/PFlex.vue.d.ts +4 -4
- package/dist/components/atoms/PInput/PInput.stories.d.ts +333 -112
- package/dist/components/atoms/PInput/PInput.vue.d.ts +2 -2
- package/dist/components/atoms/PInputDate/PInputDate.stories.d.ts +158 -0
- package/dist/components/atoms/PInputDate/PInputDate.vue.d.ts +12 -10
- package/dist/components/atoms/PLeftSlider/PLeftSlider.stories.d.ts +420 -0
- package/dist/components/atoms/PListItem/PListItem.stories.d.ts +265 -0
- package/dist/components/atoms/PRadio/PRadio.vue.d.ts +2 -2
- package/dist/components/atoms/PSelect/PSelect.vue.d.ts +2 -2
- package/dist/components/atoms/PSticky/PSticky.vue.d.ts +3 -3
- package/dist/components/atoms/PString/PString.vue.d.ts +2 -2
- package/dist/components/atoms/PTable/PTable.vue.d.ts +46 -0
- package/dist/components/atoms/PTextarea/PTextarea.vue.d.ts +2 -2
- package/dist/components/molecules/Collapse/CollapseItem.vue.d.ts +8 -8
- package/dist/components/molecules/PAdd/PAdd.test.d.ts +1 -0
- package/dist/components/molecules/PAdd/PAdd.vue.d.ts +3 -3
- package/dist/components/molecules/PAdd/PContainer.test.d.ts +1 -0
- package/dist/components/molecules/PAdd/PContainer.vue.d.ts +1 -23
- package/dist/components/molecules/PAdd/PContainerStickyHead.test.d.ts +1 -0
- package/dist/components/molecules/PAdd/PContainerStickyHead.vue.d.ts +3 -3
- package/dist/components/molecules/PDel/PDel.test.d.ts +1 -0
- package/dist/components/molecules/PDel/PDel.vue.d.ts +1 -23
- package/dist/components/organisms/AuthForm/AuthForm.test.d.ts +1 -0
- package/dist/components/organisms/{AuthForm.vue.d.ts → AuthForm/AuthForm.vue.d.ts} +2 -2
- package/dist/components/organisms/PModal.vue.d.ts +4 -4
- package/dist/components/organisms/PTabs/PTabs.vue.d.ts +1 -1
- package/dist/components/organisms/UploaderFile/UploaderFile.stories.d.ts +647 -0
- package/dist/components/organisms/UploaderFile/UploaderFile.vue.d.ts +4 -4
- package/dist/index.d.ts +36 -30
- package/dist/interfaces/Callback.d.ts +1 -1
- package/dist/interfaces/IStorePaginator.d.ts +5 -0
- package/dist/interfaces/IValidator.d.ts +4 -0
- package/dist/services/AdminHead.d.ts +1 -1
- package/dist/services/AdminSideMenu.d.ts +5 -5
- package/dist/services/AdminUI.d.ts +24 -0
- package/dist/services/BaseRoutes.d.ts +2 -2
- package/dist/services/BaseStore.d.ts +43 -0
- package/dist/services/CacheS.d.ts +1 -1
- package/dist/services/Dialog.d.ts +1 -1
- package/dist/services/HttpClient.d.ts +17 -15
- package/dist/services/Message.d.ts +1 -1
- package/dist/services/Notification.d.ts +1 -1
- package/dist/services/PHelp.d.ts +125 -0
- package/dist/services/Router.d.ts +5 -2
- package/dist/services/Static.d.ts +5 -0
- package/dist/services/index.d.ts +15 -12
- package/dist/sprof.js +10714 -18608
- package/dist/sprof.umd.cjs +15 -56
- package/dist/store/AuthStore.d.ts +2 -3
- package/dist/store/ContactsStore.d.ts +1 -1
- package/dist/store/EmailsStore.d.ts +1 -1
- package/dist/store/FTSPPresetsStore.d.ts +1 -1
- package/dist/store/FileInfosStore.d.ts +1 -1
- package/dist/store/HumansStore.d.ts +1 -1
- package/dist/store/MenusStore.d.ts +1 -1
- package/dist/store/PhonesStore.d.ts +1 -1
- package/dist/store/SchemasStore.d.ts +1 -1
- package/dist/store/UserAccountsStore.d.ts +1 -1
- package/dist/store/ValueTypesStore.d.ts +1 -1
- package/dist/stories/Button.stories.d.ts +41 -0
- package/dist/stories/Button.vue.d.ts +42 -0
- package/dist/stories/Header.stories.d.ts +59 -0
- package/dist/stories/Header.vue.d.ts +18 -0
- package/dist/stories/Page.stories.d.ts +19 -0
- package/dist/stories/Page.vue.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/types/AuthInfo.d.ts +2 -2
- package/dist/types/Statuses.d.ts +1 -2
- package/package.json +13 -13
- package/dist/classes/Auth.d.ts +0 -21
- package/dist/classes/AuthButton.d.ts +0 -19
- package/dist/classes/AuthForm.d.ts +0 -34
- package/dist/classes/AuthModal.d.ts +0 -13
- package/dist/classes/AuthStatusesObjects.d.ts +0 -3
- package/dist/classes/AuthUser.d.ts +0 -17
- package/dist/classes/EmailField.d.ts +0 -12
- package/dist/classes/PasswordField.d.ts +0 -12
- package/dist/classes/PasswordRepeatField.d.ts +0 -12
- package/dist/components/atoms/PTextarea/PTextarea.stories.d.ts +0 -4
- package/dist/services/HttpClientS.d.ts +0 -18
- package/src/Hooks/Hooks.ts +0 -75
- package/src/assets/img/avatar.webp +0 -0
- package/src/assets/styles/borders.scss +0 -11
- package/src/assets/styles/brandbook.css +0 -227
- package/src/assets/styles/colors.scss +0 -42
- package/src/assets/styles/fonts.scss +0 -15
- package/src/assets/styles/index.css +0 -15
- package/src/assets/styles/index.scss +0 -45
- package/src/assets/styles/platform/android.css +0 -53
- package/src/assets/styles/platform/ios.css +0 -53
- package/src/assets/styles/platform/webdesktop.css +0 -72
- package/src/assets/styles/platform/webdesktop_old.css +0 -65
- package/src/assets/styles/platform/webmobile.css +0 -53
- package/src/assets/styles/platform/webtablet.css +0 -53
- package/src/assets/styles/reset.scss +0 -28
- package/src/assets/styles/shadow.scss +0 -6
- package/src/assets/styles/theme/aquaBlueLight.css +0 -162
- package/src/assets/styles/theme/blueLight.css +0 -187
- package/src/assets/styles/theme/blueLight_test.css +0 -162
- package/src/assets/styles/theme/dark.css +0 -286
- package/src/assets/styles/theme/light.css +0 -151
- package/src/assets/svg/ArrowLeft.svg +0 -5
- package/src/assets/svg/ArrowRight.svg +0 -5
- package/src/assets/svg/Close.svg +0 -7
- package/src/assets/svg/DoubleArrowLeft.svg +0 -5
- package/src/assets/svg/DoubleArrowRight.svg +0 -5
- package/src/assets/svg/Ellipsis.svg +0 -7
- package/src/assets/svg/Filter.svg +0 -10
- package/src/assets/svg/Menu.svg +0 -5
- package/src/assets/svg/Move.svg +0 -5
- package/src/assets/svg/Password.svg +0 -5
- package/src/assets/svg/RightMenu.svg +0 -5
- package/src/assets/svg/Settings.svg +0 -6
- package/src/assets/svg/User.svg +0 -6
- package/src/buildLibrary.ts +0 -59
- package/src/classes/Auth.ts +0 -63
- package/src/classes/AuthButton.ts +0 -64
- package/src/classes/AuthForm.ts +0 -114
- package/src/classes/AuthModal.ts +0 -32
- package/src/classes/AuthStatusesObjects.ts +0 -37
- package/src/classes/AuthTokens.ts +0 -43
- package/src/classes/AuthUser.ts +0 -53
- package/src/classes/CallbackRequest.ts +0 -12
- package/src/classes/Chat.ts +0 -18
- package/src/classes/ChatMessage.ts +0 -48
- package/src/classes/Contact.ts +0 -96
- package/src/classes/Cropper.ts +0 -22
- package/src/classes/DateHelper.ts +0 -29
- package/src/classes/Email.ts +0 -18
- package/src/classes/EmailField.ts +0 -42
- package/src/classes/EmailRules.ts +0 -4
- package/src/classes/FTSPPreset.ts +0 -16
- package/src/classes/FileInfo.ts +0 -86
- package/src/classes/HttpResponse.ts +0 -22
- package/src/classes/Human.ts +0 -106
- package/src/classes/LabelValue.ts +0 -11
- package/src/classes/LocalStore.ts +0 -22
- package/src/classes/M2M.ts +0 -25
- package/src/classes/Menu.ts +0 -102
- package/src/classes/PageSectionImage.ts +0 -19
- package/src/classes/PasswordField.ts +0 -39
- package/src/classes/PasswordRepeatField.ts +0 -37
- package/src/classes/Phone.ts +0 -17
- package/src/classes/PostAddress.ts +0 -11
- package/src/classes/PostAddressRules.ts +0 -1
- package/src/classes/Role.ts +0 -13
- package/src/classes/Schema.ts +0 -13
- package/src/classes/SchemaField.ts +0 -10
- package/src/classes/SearchElement.ts +0 -18
- package/src/classes/SearchElementMeta.ts +0 -10
- package/src/classes/SearchGroup.ts +0 -25
- package/src/classes/SearchGroupMetaColumn.ts +0 -11
- package/src/classes/SearchModel.ts +0 -61
- package/src/classes/SortModel.ts +0 -57
- package/src/classes/SubMenu.ts +0 -56
- package/src/classes/TelephoneNumberRules.ts +0 -9
- package/src/classes/User.ts +0 -17
- package/src/classes/UserAccount.ts +0 -17
- package/src/classes/UserService.ts +0 -20
- package/src/classes/ValidationRules.ts +0 -15
- package/src/classes/ValueType.ts +0 -69
- package/src/classes/Website.ts +0 -11
- package/src/classes/WebsiteRules.ts +0 -4
- package/src/classes/admin/AdminButtonParams.ts +0 -27
- package/src/classes/admin/AdminHeaderParams.ts +0 -34
- package/src/classes/calendar/Calendar.ts +0 -168
- package/src/classes/calendar/Day.ts +0 -15
- package/src/classes/calendar/Month.ts +0 -144
- package/src/classes/calendar/Week.ts +0 -44
- package/src/classes/calendar/Year.ts +0 -130
- package/src/classes/filters/Cursor.ts +0 -43
- package/src/classes/filters/FTSP.ts +0 -99
- package/src/classes/filters/FilterModel.ts +0 -263
- package/src/classes/filters/FilterQuery.ts +0 -187
- package/src/classes/filters/OperatorsOptions.ts +0 -8
- package/src/classes/filters/OperatorsTextOptions.ts +0 -3
- package/src/classes/filters/Pagination.ts +0 -78
- package/src/classes/filters/SelectFilter.ts +0 -15
- package/src/classes/filters/TreeModel.ts +0 -14
- package/src/classes/page/CustomSection.ts +0 -24
- package/src/classes/page/Page.ts +0 -160
- package/src/classes/page/PageDocument.ts +0 -27
- package/src/classes/page/PageImage.ts +0 -15
- package/src/classes/page/PageSection.ts +0 -82
- package/src/classes/page/PageSectionDocument.ts +0 -56
- package/src/classes/page/PageSideMenu.ts +0 -74
- package/src/components/AdaptiveContainer.vue +0 -154
- package/src/components/AdaptiveContainerHorizontal.vue +0 -171
- package/src/components/AdminGallery.vue +0 -237
- package/src/components/AuthModal.vue +0 -16
- package/src/components/CarouselImages.vue +0 -432
- package/src/components/ContactForm.vue +0 -217
- package/src/components/ContextWindow.vue +0 -47
- package/src/components/DateInputRange.vue +0 -63
- package/src/components/DateInputRange_v2.vue +0 -21
- package/src/components/DropList.vue +0 -55
- package/src/components/Edit.svg +0 -10
- package/src/components/EmailForm.vue +0 -178
- package/src/components/FTSPPanel.vue +0 -369
- package/src/components/FilterCheckbox.vue +0 -65
- package/src/components/FilterSelect.vue +0 -104
- package/src/components/FiltersButtonsSelect.vue +0 -126
- package/src/components/GeneralItem.vue +0 -170
- package/src/components/GridContainer.vue +0 -64
- package/src/components/Icons/Filter/IconDownload.vue +0 -54
- package/src/components/Icons/Filter/IconFilter.vue +0 -54
- package/src/components/Icons/IconArrowLeft.vue +0 -36
- package/src/components/Icons/IconCheckDefault.vue +0 -41
- package/src/components/Icons/IconClose.vue +0 -36
- package/src/components/Icons/IconEdit.vue +0 -40
- package/src/components/Icons/IconEmail.vue +0 -36
- package/src/components/Icons/IconMove.vue +0 -52
- package/src/components/Icons/IconPhone.vue +0 -36
- package/src/components/Icons/IconSearch.vue +0 -46
- package/src/components/Icons/IconSelectArrow.vue +0 -40
- package/src/components/Icons/Pagination/ArrowLeft.vue +0 -51
- package/src/components/Icons/Pagination/ArrowRight.vue +0 -51
- package/src/components/Icons/Pagination/DoubleArrowLeft.vue +0 -52
- package/src/components/Icons/Pagination/DoubleArrowRight.vue +0 -51
- package/src/components/Icons/Pagination/EllipsisSvg.vue +0 -57
- package/src/components/ImageCropper.vue +0 -201
- package/src/components/InfoItem.vue +0 -290
- package/src/components/InfoItemSelectButtons.vue +0 -41
- package/src/components/LeftRightContainer.vue +0 -91
- package/src/components/MessageBody.vue +0 -43
- package/src/components/PAutocomplete.vue +0 -91
- package/src/components/PDialog.vue +0 -75
- package/src/components/PLoader.vue +0 -66
- package/src/components/PNotification.vue +0 -79
- package/src/components/PPagination.vue +0 -171
- package/src/components/PhoneForm.vue +0 -178
- package/src/components/RSContainer.vue +0 -260
- package/src/components/RemoteSearch.vue +0 -156
- package/src/components/ResearcheContainer.vue +0 -69
- package/src/components/RightSliderContainer.vue +0 -177
- package/src/components/RightTabsContainer.vue +0 -200
- package/src/components/SelectValueType.vue +0 -39
- package/src/components/SingleNameToggleForm.vue +0 -397
- package/src/components/SortList.vue +0 -101
- package/src/components/SortSelect.vue +0 -93
- package/src/components/SvgIcon.vue +0 -25
- package/src/components/Switch3Pos.vue +0 -171
- package/src/components/ThemeWrapper.vue +0 -19
- package/src/components/ToggleInfoItem.vue +0 -294
- package/src/components/TopSliderContainer.vue +0 -164
- package/src/components/UploaderImage.vue +0 -268
- package/src/components/atoms/PButton/PButton.stories.ts +0 -44
- package/src/components/atoms/PButton/PButton.test.ts +0 -66
- package/src/components/atoms/PButton/PButton.vue +0 -54
- package/src/components/atoms/PButton/skins/p-button_base.css +0 -131
- package/src/components/atoms/PButton/skins/p-button_filter.scss +0 -83
- package/src/components/atoms/PButton/skins/p-button_icon.scss +0 -78
- package/src/components/atoms/PButton/skins/p-button_pag.css +0 -44
- package/src/components/atoms/PButton/skins/p-button_text.css +0 -88
- package/src/components/atoms/PButton/skins/p-button_text_ano.css +0 -88
- package/src/components/atoms/PCheckbox/PCheckBox.test.ts +0 -107
- package/src/components/atoms/PCheckbox/PCheckBox.vue +0 -92
- package/src/components/atoms/PDatePicker/PDatePicker.test.ts +0 -63
- package/src/components/atoms/PDatePicker/PDatePicker.vue +0 -139
- package/src/components/atoms/PFlex/PFlex.test.ts +0 -41
- package/src/components/atoms/PFlex/PFlex.vue +0 -46
- package/src/components/atoms/PInput/PInput.stories.ts +0 -40
- package/src/components/atoms/PInput/PInput.test.ts +0 -92
- package/src/components/atoms/PInput/PInput.vue +0 -133
- package/src/components/atoms/PInputDate/PInputDate.test.ts +0 -55
- package/src/components/atoms/PInputDate/PInputDate.vue +0 -79
- package/src/components/atoms/PInputNumber/PInputNumber.vue +0 -170
- package/src/components/atoms/PLeftSlider/PLeftSlider.test.ts +0 -121
- package/src/components/atoms/PLeftSlider/PLeftSlider.vue +0 -139
- package/src/components/atoms/PList/PList.test.ts +0 -32
- package/src/components/atoms/PList/PList.vue +0 -27
- package/src/components/atoms/PListItem/PListItem.test.ts +0 -61
- package/src/components/atoms/PListItem/PListItem.vue +0 -51
- package/src/components/atoms/PRadio/PRadio.test.ts +0 -110
- package/src/components/atoms/PRadio/PRadio.vue +0 -97
- package/src/components/atoms/PRightSlider/PRightSlider.test.ts +0 -123
- package/src/components/atoms/PRightSlider/PRightSlider.vue +0 -149
- package/src/components/atoms/PSelect/PSelect.test.ts +0 -74
- package/src/components/atoms/PSelect/PSelect.vue +0 -190
- package/src/components/atoms/PSelect/select-arrow-down.svg +0 -4
- package/src/components/atoms/PSticky/PSticky.test.ts +0 -70
- package/src/components/atoms/PSticky/PSticky.vue +0 -37
- package/src/components/atoms/PString/PString.test.ts +0 -58
- package/src/components/atoms/PString/PString.vue +0 -56
- package/src/components/atoms/PTextarea/PTextarea.stories.ts +0 -40
- package/src/components/atoms/PTextarea/PTextarea.test.ts +0 -22
- package/src/components/atoms/PTextarea/PTextarea.vue +0 -123
- package/src/components/atoms/PTopSlider/PTopSlider.test.ts +0 -95
- package/src/components/atoms/PTopSlider/PTopSlider.vue +0 -162
- package/src/components/molecules/Collapse/CollapseContainer.vue +0 -36
- package/src/components/molecules/Collapse/CollapseItem.vue +0 -295
- package/src/components/molecules/Collapse/VerticalCollapseContainer.vue +0 -100
- package/src/components/molecules/PAdd/PAdd.vue +0 -65
- package/src/components/molecules/PAdd/PContainer.vue +0 -65
- package/src/components/molecules/PAdd/PContainerStickyHead.vue +0 -51
- package/src/components/molecules/PDel/PDel.vue +0 -74
- package/src/components/organisms/AuthForm.vue +0 -219
- package/src/components/organisms/PModal.vue +0 -113
- package/src/components/organisms/PTabs/ITab.ts +0 -5
- package/src/components/organisms/PTabs/PTabs.vue +0 -190
- package/src/components/organisms/UploaderFile/UploaderFile.test.ts +0 -23
- package/src/components/organisms/UploaderFile/UploaderFile.vue +0 -202
- package/src/components/pages/AuthPage.vue +0 -22
- package/src/components/pages/PageNotFound.vue +0 -7
- package/src/index.ts +0 -206
- package/src/interfaces/AdminLayout.ts +0 -4
- package/src/interfaces/Animations.ts +0 -5
- package/src/interfaces/AuthStatuses.ts +0 -8
- package/src/interfaces/CalendarScale.ts +0 -6
- package/src/interfaces/Callback.ts +0 -2
- package/src/interfaces/Class.ts +0 -3
- package/src/interfaces/DataTypes.ts +0 -8
- package/src/interfaces/Filter.ts +0 -3
- package/src/interfaces/IAdminMenu.ts +0 -9
- package/src/interfaces/IAuthInfo.ts +0 -0
- package/src/interfaces/ICursor.ts +0 -14
- package/src/interfaces/IEmailPassword.ts +0 -4
- package/src/interfaces/IFIlesList.ts +0 -4
- package/src/interfaces/IFile.ts +0 -7
- package/src/interfaces/IFileAnchor.ts +0 -4
- package/src/interfaces/IFileInfo.ts +0 -22
- package/src/interfaces/IFileInfosGetter.ts +0 -5
- package/src/interfaces/IFiler.ts +0 -7
- package/src/interfaces/IFilter.ts +0 -4
- package/src/interfaces/IFilterQuery.ts +0 -24
- package/src/interfaces/IForm.ts +0 -5
- package/src/interfaces/IHTTPTypes.ts +0 -19
- package/src/interfaces/IMessage.ts +0 -5
- package/src/interfaces/IOption.ts +0 -4
- package/src/interfaces/IOrdered.ts +0 -4
- package/src/interfaces/IPagination.ts +0 -15
- package/src/interfaces/ISearchElement.ts +0 -6
- package/src/interfaces/ISearchObject.ts +0 -6
- package/src/interfaces/ISearchQuery.ts +0 -4
- package/src/interfaces/ISelectFilter.ts +0 -6
- package/src/interfaces/ISortModel.ts +0 -18
- package/src/interfaces/IStorePaginator.ts +0 -4
- package/src/interfaces/ISupposedTimePeriod.ts +0 -4
- package/src/interfaces/ITimePeriod.ts +0 -4
- package/src/interfaces/ITokens.ts +0 -4
- package/src/interfaces/IWithId.ts +0 -3
- package/src/interfaces/IWithImage.ts +0 -9
- package/src/interfaces/IWithName.ts +0 -4
- package/src/interfaces/IWithSupposedTimePeriod.ts +0 -4
- package/src/interfaces/ItemsWithCount.ts +0 -4
- package/src/interfaces/LocalStoreKeys.ts +0 -7
- package/src/interfaces/Operators.ts +0 -11
- package/src/interfaces/Orders.ts +0 -4
- package/src/interfaces/RoleName.ts +0 -4
- package/src/interfaces/SocialTypes.ts +0 -6
- package/src/interfaces/Sort.ts +0 -9
- package/src/interfaces/ValueRelation.ts +0 -7
- package/src/interfaces/canvas/ICanvas.ts +0 -3
- package/src/interfaces/canvas/ICanvasResult.ts +0 -7
- package/src/interfaces/canvas/ICoordinates.ts +0 -6
- package/src/interfaces/types.ts +0 -3
- package/src/services/AdminHead.ts +0 -32
- package/src/services/AdminSideMenu.ts +0 -52
- package/src/services/AdminUI.ts +0 -9
- package/src/services/Arrays.ts +0 -65
- package/src/services/Axios.ts +0 -64
- package/src/services/BaseRoutes.ts +0 -21
- package/src/services/BaseStore.ts +0 -220
- package/src/services/Button.ts +0 -42
- package/src/services/Cache.ts +0 -44
- package/src/services/CacheS.ts +0 -44
- package/src/services/CarouselSwipe.ts +0 -14
- package/src/services/ClassHelper.ts +0 -101
- package/src/services/Color.ts +0 -8
- package/src/services/CreateSortModels.ts +0 -26
- package/src/services/Cursor.ts +0 -51
- package/src/services/DateFormat.ts +0 -102
- package/src/services/DateMask.ts +0 -69
- package/src/services/Dates.ts +0 -41
- package/src/services/DatesFormatter.ts +0 -45
- package/src/services/Dialog.ts +0 -70
- package/src/services/Dragger.ts +0 -22
- package/src/services/Extension.ts +0 -6
- package/src/services/Favourite.ts +0 -62
- package/src/services/HttpClient.ts +0 -199
- package/src/services/HttpClientS.ts +0 -188
- package/src/services/HttpError.ts +0 -58
- package/src/services/Loading.ts +0 -14
- package/src/services/MakeCarousel.ts +0 -10
- package/src/services/Menu.ts +0 -102
- package/src/services/Message.ts +0 -66
- package/src/services/Notification.ts +0 -37
- package/src/services/PHelp.ts +0 -20
- package/src/services/Paginator.ts +0 -22
- package/src/services/Period.ts +0 -29
- package/src/services/PhoneService.ts +0 -46
- package/src/services/Router.ts +0 -85
- package/src/services/RouterGuard.ts +0 -15
- package/src/services/Scheduler.ts +0 -66
- package/src/services/Scroll.ts +0 -19
- package/src/services/SortList.ts +0 -44
- package/src/services/Sorter.ts +0 -6
- package/src/services/Strings.test.ts +0 -30
- package/src/services/Strings.ts +0 -138
- package/src/services/Time.ts +0 -124
- package/src/services/Timer.ts +0 -13
- package/src/services/Token.ts +0 -71
- package/src/services/Visible.ts +0 -16
- package/src/services/WaitElement.ts +0 -19
- package/src/services/WebSocketClient.ts +0 -62
- package/src/services/brandColors.ts +0 -5
- package/src/services/buildNameNumbers.ts +0 -8
- package/src/services/countRating.ts +0 -12
- package/src/services/index.ts +0 -105
- package/src/services/indexNames.ts +0 -55
- package/src/services/moves.ts +0 -17
- package/src/services/useConfirmLeavePage.ts +0 -52
- package/src/services/validate.ts +0 -22
- package/src/store/AuthStore.ts +0 -58
- package/src/store/ContactsStore.ts +0 -11
- package/src/store/CropperStore.ts +0 -20
- package/src/store/EmailsStore.ts +0 -11
- package/src/store/FTSPPresetsStore.ts +0 -11
- package/src/store/FileInfosStore.ts +0 -11
- package/src/store/HumansStore.ts +0 -11
- package/src/store/MenusStore.ts +0 -11
- package/src/store/PhonesStore.ts +0 -11
- package/src/store/SchemasStore.ts +0 -11
- package/src/store/SearchStore.ts +0 -65
- package/src/store/ServicesStores.ts +0 -29
- package/src/store/ServicesStoresNames.ts +0 -17
- package/src/store/UserAccountsStore.ts +0 -11
- package/src/store/ValueTypesStore.ts +0 -11
- package/src/tsconfig.build-lib.json +0 -30
- package/src/types/AuthInfo.ts +0 -6
- package/src/types/HttpHeaders.ts +0 -12
- package/src/types/HttpMethods.ts +0 -6
- package/src/types/Sizes.ts +0 -7
- package/src/types/Statuses.ts +0 -9
- package/src/types/ValueTypes.ts +0 -16
- /package/dist/{buildLibrary.d.ts → components/atoms/PTable/PTable.test.d.ts} +0 -0
package/src/classes/page/Page.ts
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
2
|
-
|
|
3
|
-
import Contact from '@/classes/Contact';
|
|
4
|
-
import FileInfo from '@/classes/FileInfo';
|
|
5
|
-
import CustomSection from '@/classes/page/CustomSection';
|
|
6
|
-
import PageDocument from '@/classes/page/PageDocument';
|
|
7
|
-
import PageImage from '@/classes/page/PageImage';
|
|
8
|
-
import PageSection from '@/classes/page/PageSection';
|
|
9
|
-
import PageSideMenu from '@/classes/page/PageSideMenu';
|
|
10
|
-
import Role from '@/classes/Role';
|
|
11
|
-
import ClassHelper from '@/services/ClassHelper';
|
|
12
|
-
|
|
13
|
-
export default class Page {
|
|
14
|
-
id?: string;
|
|
15
|
-
title = '';
|
|
16
|
-
content = '';
|
|
17
|
-
slug = '';
|
|
18
|
-
pagesGroup = 'Без группы';
|
|
19
|
-
link = '';
|
|
20
|
-
withComments = false;
|
|
21
|
-
showContacts = false;
|
|
22
|
-
collaps = false;
|
|
23
|
-
showContent = false;
|
|
24
|
-
@ClassHelper.GetClassConstructor(PageImage)
|
|
25
|
-
pageImages: PageImage[] = [];
|
|
26
|
-
pageImagesForDelete: string[] = [];
|
|
27
|
-
pageImagesNames: string[] = [];
|
|
28
|
-
|
|
29
|
-
@ClassHelper.GetClassConstructor(PageSideMenu)
|
|
30
|
-
pageSideMenus: PageSideMenu[] = [];
|
|
31
|
-
menus: PageSideMenu[] = [];
|
|
32
|
-
pageSideMenusForDelete: string[] = [];
|
|
33
|
-
|
|
34
|
-
@ClassHelper.GetClassConstructor(PageSection)
|
|
35
|
-
pageSections: PageSection[] = [];
|
|
36
|
-
pageSectionsForDelete: string[] = [];
|
|
37
|
-
@ClassHelper.GetClassConstructor(PageDocument)
|
|
38
|
-
pageDocuments: PageDocument[] = [];
|
|
39
|
-
// @ClassHelper.GetClassConstructor(PageComment)
|
|
40
|
-
// pageComments: PageComment[] = [];
|
|
41
|
-
contact: Contact = new Contact();
|
|
42
|
-
contactId?: string;
|
|
43
|
-
role: Role = new Role();
|
|
44
|
-
roleId?: string;
|
|
45
|
-
|
|
46
|
-
//
|
|
47
|
-
filterStr = '';
|
|
48
|
-
activeMenuId = '';
|
|
49
|
-
|
|
50
|
-
constructor(i?: Page) {
|
|
51
|
-
ClassHelper.BuildClass(this, i);
|
|
52
|
-
this.menus = this.pageSideMenus;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
getActiveMenu(): PageSideMenu {
|
|
56
|
-
const activeMenu = this.pageSideMenus.find((p: PageSideMenu) => p.id === this.activeMenuId);
|
|
57
|
-
if (!activeMenu) {
|
|
58
|
-
return this.pageSideMenus[0];
|
|
59
|
-
}
|
|
60
|
-
return activeMenu;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
setActiveMenuId(id: string) {
|
|
64
|
-
this.activeMenuId = id;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
getLink(): string {
|
|
68
|
-
if (this.slug !== '') {
|
|
69
|
-
return `/pages/${this.slug}`;
|
|
70
|
-
}
|
|
71
|
-
return '404';
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
getFileInfos(): FileInfo[] {
|
|
75
|
-
const fileInfos: FileInfo[] = [];
|
|
76
|
-
this.pageSideMenus.forEach((item: PageSideMenu) => {
|
|
77
|
-
fileInfos.push(...item.getFileInfos());
|
|
78
|
-
});
|
|
79
|
-
this.pageDocuments.forEach((pageDocument: PageDocument) => {
|
|
80
|
-
if (pageDocument.document.scan) {
|
|
81
|
-
fileInfos.push(pageDocument.document.scan);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
this.pageImages.forEach((pageImage: PageImage) => {
|
|
85
|
-
if (pageImage.fileInfo) {
|
|
86
|
-
fileInfos.push(pageImage.fileInfo);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
return fileInfos;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
addSideMenu(): string {
|
|
93
|
-
const menu = new PageSideMenu();
|
|
94
|
-
menu.order = this.pageSideMenus.length + 1;
|
|
95
|
-
menu.name = `Новое меню ${menu.order}`;
|
|
96
|
-
menu.id = uuidv4();
|
|
97
|
-
this.pageSideMenus.push(menu);
|
|
98
|
-
return menu.id;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
selectSideMenu(value: string, isId: boolean): void {
|
|
102
|
-
if (!value && this.pageSideMenus.length > 0) {
|
|
103
|
-
this.pageSideMenus[0].selected = true;
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
this.pageSideMenus.forEach((m: PageSideMenu) => {
|
|
107
|
-
if (isId) {
|
|
108
|
-
m.selected = m.id === value;
|
|
109
|
-
} else {
|
|
110
|
-
m.selected = m.slug === value;
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
getSelectedSideMenu(): PageSideMenu {
|
|
116
|
-
const selectedMenu = this.pageSideMenus.find((m: PageSideMenu) => m.selected);
|
|
117
|
-
return selectedMenu ? selectedMenu : new PageSideMenu();
|
|
118
|
-
}
|
|
119
|
-
//
|
|
120
|
-
addCustomSectionsToSideMenu(customSections: CustomSection[]): void {
|
|
121
|
-
customSections.forEach((c: CustomSection) => {
|
|
122
|
-
const menu = new PageSideMenu();
|
|
123
|
-
menu.id = c.id;
|
|
124
|
-
menu.name = c.name;
|
|
125
|
-
if (typeof c.order !== 'undefined') {
|
|
126
|
-
this.pageSideMenus.splice(c.order, 0, menu);
|
|
127
|
-
} else {
|
|
128
|
-
this.pageSideMenus.push(menu);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
//
|
|
133
|
-
getPageSideMenus(): PageSideMenu[] {
|
|
134
|
-
if (this.showContacts && !this.pageSideMenus.find((el) => el.id === 'contacts')) {
|
|
135
|
-
const contactSideMenu = new PageSideMenu();
|
|
136
|
-
contactSideMenu.id = 'contacts';
|
|
137
|
-
contactSideMenu.name = 'Контакты';
|
|
138
|
-
this.pageSideMenus.push(contactSideMenu);
|
|
139
|
-
}
|
|
140
|
-
if (this.filterStr === '') {
|
|
141
|
-
return this.pageSideMenus;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// return this.pageSideMenus.filter((p: PageSideMenu) => p.name.includes(this.filterStr));
|
|
145
|
-
return this.pageSideMenus.filter((p: PageSideMenu) => p.infoExists(this.filterStr));
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
filter(): void {
|
|
149
|
-
if (this.filterStr === '') {
|
|
150
|
-
this.menus = this.pageSideMenus;
|
|
151
|
-
} else {
|
|
152
|
-
this.menus = this.pageSideMenus.filter((p: PageSideMenu) => p.infoExists(this.filterStr));
|
|
153
|
-
}
|
|
154
|
-
this.menus.forEach((m: PageSideMenu) => m.filter(this.filterStr));
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
static GetClassName(): string {
|
|
158
|
-
return 'page';
|
|
159
|
-
}
|
|
160
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import FileInfo from '@/classes/FileInfo';
|
|
2
|
-
import PageSection from '@/classes/page/PageSection';
|
|
3
|
-
import ClassHelper from '@/services/ClassHelper';
|
|
4
|
-
|
|
5
|
-
export default class PageDocument {
|
|
6
|
-
id?: string;
|
|
7
|
-
document: PageSection = new PageSection();
|
|
8
|
-
documentId?: string;
|
|
9
|
-
pageId?: string;
|
|
10
|
-
|
|
11
|
-
constructor(i?: PageDocument) {
|
|
12
|
-
ClassHelper.BuildClass(this, i);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
static GetFileInfos(items: PageDocument[]): FileInfo[] {
|
|
16
|
-
const fileInfos: FileInfo[] = [];
|
|
17
|
-
|
|
18
|
-
items.forEach((i: PageDocument) => {
|
|
19
|
-
const fileInfo = i.document.scan;
|
|
20
|
-
if (fileInfo) {
|
|
21
|
-
fileInfos.push(fileInfo);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
return fileInfos;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import FileInfo from '@/classes/FileInfo';
|
|
2
|
-
import ClassHelper from '@/services/ClassHelper';
|
|
3
|
-
|
|
4
|
-
export default class PageImage {
|
|
5
|
-
id?: string;
|
|
6
|
-
pageId?: string;
|
|
7
|
-
fileInfoId?: string;
|
|
8
|
-
@ClassHelper.GetClassConstructor(FileInfo)
|
|
9
|
-
fileInfo?: FileInfo;
|
|
10
|
-
description?: string;
|
|
11
|
-
|
|
12
|
-
constructor(i?: PageImage) {
|
|
13
|
-
ClassHelper.BuildClass(this, i);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import FileInfo from '@/classes/FileInfo';
|
|
2
|
-
import PageSectionDocument from '@/classes/page/PageSectionDocument';
|
|
3
|
-
import PageSectionImage from '@/classes/PageSectionImage';
|
|
4
|
-
import ClassHelper from '@/services/ClassHelper';
|
|
5
|
-
import Strings from '@/services/Strings';
|
|
6
|
-
|
|
7
|
-
export default class PageSection {
|
|
8
|
-
id?: string;
|
|
9
|
-
name = '';
|
|
10
|
-
singleScan = false;
|
|
11
|
-
scan?: FileInfo;
|
|
12
|
-
scanId?: string;
|
|
13
|
-
order = 0;
|
|
14
|
-
description = '';
|
|
15
|
-
scans: FileInfo[] = [];
|
|
16
|
-
scansForDelete: string[] = [];
|
|
17
|
-
@ClassHelper.GetClassConstructor(PageSectionDocument)
|
|
18
|
-
pageSectionDocuments: PageSectionDocument[] = [];
|
|
19
|
-
pageSectionDocumentsForDelete: string[] = [];
|
|
20
|
-
@ClassHelper.GetClassConstructor(PageSectionImage)
|
|
21
|
-
pageSectionImages: PageSectionImage[] = [];
|
|
22
|
-
pageSectionImagesForDelete: string[] = [];
|
|
23
|
-
|
|
24
|
-
// pageSideMenu: IPageSideMenu = new PageSideMenu();
|
|
25
|
-
pageSideMenuId?: string;
|
|
26
|
-
pageId?: string;
|
|
27
|
-
|
|
28
|
-
text = '';
|
|
29
|
-
documents: PageSectionDocument[] = [];
|
|
30
|
-
|
|
31
|
-
constructor(i?: PageSection) {
|
|
32
|
-
ClassHelper.BuildClass(this, i);
|
|
33
|
-
|
|
34
|
-
this.documents = this.pageSectionDocuments;
|
|
35
|
-
this.text = this.description.replace('<p>undefined</p>', '');
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
addDocument(): void {
|
|
39
|
-
const newDoc = new PageSectionDocument();
|
|
40
|
-
newDoc.order = this.pageSectionDocuments.length - 1;
|
|
41
|
-
this.pageSectionDocuments.push(newDoc);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
getFileInfos(): FileInfo[] {
|
|
45
|
-
const fileInfos: FileInfo[] = [];
|
|
46
|
-
this.pageSectionDocuments.forEach((i: PageSectionDocument) => {
|
|
47
|
-
fileInfos.push(...i.getFileInfos());
|
|
48
|
-
});
|
|
49
|
-
return fileInfos;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
infoExists(filterStr: string): boolean {
|
|
53
|
-
const nameEq = Strings.SearchIn(this.name, filterStr);
|
|
54
|
-
const descriptionEq = Strings.SearchIn(this.description, filterStr);
|
|
55
|
-
const docEq = this.getDocuments(filterStr);
|
|
56
|
-
return nameEq || descriptionEq || docEq.length > 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
getDocuments(filterStr: string): PageSectionDocument[] {
|
|
60
|
-
return this.pageSectionDocuments.filter((p: PageSectionDocument) => Strings.SearchIn(p.name, filterStr));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
getDescription(filterStr: string): string {
|
|
64
|
-
if (!filterStr) {
|
|
65
|
-
return this.description;
|
|
66
|
-
}
|
|
67
|
-
const wrapped = Strings.WrapSubStr(this.description, filterStr);
|
|
68
|
-
return wrapped;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
filter(filterStr: string) {
|
|
72
|
-
if (!filterStr) {
|
|
73
|
-
this.text = this.description;
|
|
74
|
-
this.documents = this.pageSectionDocuments;
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
this.text = Strings.SearchIn(this.description, filterStr) ? Strings.WrapSubStr(this.description, filterStr) : '';
|
|
79
|
-
this.documents = this.pageSectionDocuments.filter((p: PageSectionDocument) => Strings.SearchIn(p.name, filterStr));
|
|
80
|
-
// const wrapped = Strings.WrapSubStr(this.description, filterStr)
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
2
|
-
|
|
3
|
-
import FileInfo from '@/classes/FileInfo';
|
|
4
|
-
import IFile from '@/interfaces/IFile';
|
|
5
|
-
|
|
6
|
-
export default class PageSectionDocument {
|
|
7
|
-
id?: string;
|
|
8
|
-
name = '';
|
|
9
|
-
order = 0;
|
|
10
|
-
downloadToFile = false;
|
|
11
|
-
pageSectionId?: string;
|
|
12
|
-
// pageSection: IPageSection = new PageSection();
|
|
13
|
-
|
|
14
|
-
scan: FileInfo = new FileInfo();
|
|
15
|
-
scanId?: string;
|
|
16
|
-
|
|
17
|
-
constructor(i?: PageSectionDocument) {
|
|
18
|
-
if (!i) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
this.id = i?.id;
|
|
22
|
-
this.name = i.name;
|
|
23
|
-
this.order = i.order;
|
|
24
|
-
this.downloadToFile = i.downloadToFile;
|
|
25
|
-
this.pageSectionId = i.pageSectionId;
|
|
26
|
-
// if (i.pageSection) {
|
|
27
|
-
// this.pageSection = new PageSection(i.pageSection);
|
|
28
|
-
// }
|
|
29
|
-
if (i.scan) {
|
|
30
|
-
this.scan = new FileInfo(i.scan);
|
|
31
|
-
}
|
|
32
|
-
this.scanId = i.scanId;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
getFileInfos(): FileInfo[] {
|
|
36
|
-
return [this.scan];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
uploadScan(file: IFile): FileInfo {
|
|
40
|
-
if (!this.scan.id) {
|
|
41
|
-
this.scan.id = uuidv4();
|
|
42
|
-
}
|
|
43
|
-
this.scan.originalName = file.name;
|
|
44
|
-
this.scan.file = file.raw;
|
|
45
|
-
this.scan.fileSystemPath = uuidv4();
|
|
46
|
-
this.scan.url = file.url;
|
|
47
|
-
return this.scan;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
getFileName(): string {
|
|
51
|
-
if (this.name) {
|
|
52
|
-
return this.name;
|
|
53
|
-
}
|
|
54
|
-
return this.scan.originalName;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
2
|
-
|
|
3
|
-
import FileInfo from '@/classes/FileInfo';
|
|
4
|
-
import PageSection from '@/classes/page/PageSection';
|
|
5
|
-
import ClassHelper from '@/services/ClassHelper';
|
|
6
|
-
import Strings from '@/services/Strings'
|
|
7
|
-
|
|
8
|
-
export default class PageSideMenu {
|
|
9
|
-
id?: string;
|
|
10
|
-
name = 'Новое меню';
|
|
11
|
-
order = 0;
|
|
12
|
-
description = '';
|
|
13
|
-
routeAnchor = '';
|
|
14
|
-
slug = '';
|
|
15
|
-
@ClassHelper.GetClassConstructor(PageSection)
|
|
16
|
-
pageSections: PageSection[] = [];
|
|
17
|
-
pageSectionsForDelete: string[] = [];
|
|
18
|
-
showContent = false;
|
|
19
|
-
|
|
20
|
-
pageId?: string;
|
|
21
|
-
|
|
22
|
-
selected = false;
|
|
23
|
-
|
|
24
|
-
sections: PageSection[] = []
|
|
25
|
-
text = ''
|
|
26
|
-
constructor(i?: PageSideMenu) {
|
|
27
|
-
ClassHelper.BuildClass(this, i);
|
|
28
|
-
|
|
29
|
-
this.sections = this.pageSections
|
|
30
|
-
this.text = this.description.replace("<p>undefined</p>", "")
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
getFileInfos(): FileInfo[] {
|
|
34
|
-
const fileInfos: FileInfo[] = [];
|
|
35
|
-
this.pageSections.forEach((i: PageSection) => {
|
|
36
|
-
fileInfos.push(...i.getFileInfos());
|
|
37
|
-
});
|
|
38
|
-
return fileInfos;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
addPageSection(): void {
|
|
42
|
-
const section = new PageSection();
|
|
43
|
-
section.order = this.pageSections.length + 1;
|
|
44
|
-
section.name = `Новой раздел ${section.order}`;
|
|
45
|
-
section.id = uuidv4();
|
|
46
|
-
this.pageSections.push(section);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
infoExists(filterStr: string): boolean {
|
|
50
|
-
const nameEq = Strings.SearchIn(this.name, filterStr)
|
|
51
|
-
const descriptionEq = Strings.SearchIn(this.description, filterStr)
|
|
52
|
-
const sectionExists = this.getPageSections(filterStr).length > 0
|
|
53
|
-
|
|
54
|
-
return nameEq || descriptionEq || sectionExists
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
getPageSections(filterStr: string): PageSection[] {
|
|
58
|
-
if (!filterStr.length) {
|
|
59
|
-
return this.pageSections
|
|
60
|
-
}
|
|
61
|
-
return this.pageSections.filter((p: PageSection) => p.infoExists(filterStr))
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
filter(filterStr: string) {
|
|
65
|
-
if (!filterStr.length) {
|
|
66
|
-
this.sections = this.pageSections
|
|
67
|
-
this.text = this.description
|
|
68
|
-
} else {
|
|
69
|
-
this.sections = this.pageSections.filter((p: PageSection) => p.infoExists(filterStr))
|
|
70
|
-
this.text = Strings.SearchIn(this.description, filterStr) ? Strings.WrapSubStr(this.description, filterStr) : ''
|
|
71
|
-
}
|
|
72
|
-
this.sections.forEach((p: PageSection) => p.filter(filterStr))
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<slot name="main" />
|
|
3
|
-
<div v-if="mounted" class="mainblock">
|
|
4
|
-
<div
|
|
5
|
-
class="mainblock-left"
|
|
6
|
-
:style="{
|
|
7
|
-
minWidth: mobileWindow ? '100%' : menuWidth,
|
|
8
|
-
maxWidth: mobileWindow ? '100%' : menuWidth,
|
|
9
|
-
marginLeft: mobileWindow ? '-110%' : '0',
|
|
10
|
-
position: mobileWindow ? 'fixed' : 'relative',
|
|
11
|
-
top: mobileWindow ? '140px' : '',
|
|
12
|
-
}"
|
|
13
|
-
>
|
|
14
|
-
<div
|
|
15
|
-
class="left-menu"
|
|
16
|
-
:style="{
|
|
17
|
-
minWidth: mobileWindow ? 'auto' : menuWidth,
|
|
18
|
-
boxShadow: mobileWindow ? '0 0px 10px 0px rgba(0 0 0 / 20%)' : '',
|
|
19
|
-
marginLeft: !collapsed && mobileWindow ? '110%' : '0',
|
|
20
|
-
borderTopLeftRadius: !mobileWindow ? '' : '0',
|
|
21
|
-
borderBottomLeftRadius: !mobileWindow ? '' : '0',
|
|
22
|
-
}"
|
|
23
|
-
@click="handClick()"
|
|
24
|
-
>
|
|
25
|
-
<slot name="menu" />
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="mainblock-right">
|
|
29
|
-
<div class="title">
|
|
30
|
-
<div
|
|
31
|
-
class="icon"
|
|
32
|
-
:style="{
|
|
33
|
-
display: mobileWindow ? 'flex' : 'none',
|
|
34
|
-
}"
|
|
35
|
-
@click="handClick()"
|
|
36
|
-
>
|
|
37
|
-
<slot name="icon" />
|
|
38
|
-
</div>
|
|
39
|
-
<slot name="title" />
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<div class="body">
|
|
43
|
-
<slot name="body" />
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</template>
|
|
48
|
-
|
|
49
|
-
<script lang="ts" setup>
|
|
50
|
-
const props = defineProps({
|
|
51
|
-
menuWidth: {
|
|
52
|
-
type: String as PropType<string>,
|
|
53
|
-
required: false,
|
|
54
|
-
default: '0px',
|
|
55
|
-
},
|
|
56
|
-
mobileWidth: {
|
|
57
|
-
type: String as PropType<string>,
|
|
58
|
-
required: false,
|
|
59
|
-
default: '1330px',
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
const mounted = ref(false);
|
|
63
|
-
const collapsed: Ref<boolean> = ref(true);
|
|
64
|
-
const mobileWindow = ref(window.matchMedia('(max-width: 1330px)').matches);
|
|
65
|
-
|
|
66
|
-
const handClick = () => {
|
|
67
|
-
collapsed.value = !collapsed.value;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
onBeforeMount(async () => {
|
|
71
|
-
window.addEventListener('resize', () => {
|
|
72
|
-
switch (props.mobileWidth) {
|
|
73
|
-
case '1330px':
|
|
74
|
-
return (mobileWindow.value = window.matchMedia('(max-width: 1330px)').matches);
|
|
75
|
-
case '1024px':
|
|
76
|
-
return (mobileWindow.value = window.matchMedia('(max-width: 1024px)').matches);
|
|
77
|
-
case '768px':
|
|
78
|
-
return (mobileWindow.value = window.matchMedia('(max-width: 768px)').matches);
|
|
79
|
-
}
|
|
80
|
-
return (mobileWindow.value = window.matchMedia('(max-width: 1330px)').matches);
|
|
81
|
-
});
|
|
82
|
-
mounted.value = true;
|
|
83
|
-
});
|
|
84
|
-
</script>
|
|
85
|
-
|
|
86
|
-
<style lang="scss" scoped>
|
|
87
|
-
.mainblock {
|
|
88
|
-
display: flex;
|
|
89
|
-
justify-content: space-between;
|
|
90
|
-
width: 100%;
|
|
91
|
-
height: auto;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.mainblock-left {
|
|
95
|
-
position: relative;
|
|
96
|
-
display: flex;
|
|
97
|
-
justify-content: left;
|
|
98
|
-
margin-right: 30px;
|
|
99
|
-
height: 100%;
|
|
100
|
-
left: 0px;
|
|
101
|
-
z-index: 10;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.left-menu {
|
|
105
|
-
position: absolute;
|
|
106
|
-
top: 0px;
|
|
107
|
-
left: 0px;
|
|
108
|
-
z-index: 1;
|
|
109
|
-
max-height: 70vh;
|
|
110
|
-
transition: 0.3s;
|
|
111
|
-
overflow: hidden;
|
|
112
|
-
overflow-y: auto;
|
|
113
|
-
background: #ffffff;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.mainblock-right {
|
|
117
|
-
position: relative;
|
|
118
|
-
width: 100%;
|
|
119
|
-
max-height: 100%;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.title {
|
|
123
|
-
position: relative;
|
|
124
|
-
display: flex;
|
|
125
|
-
align-items: center;
|
|
126
|
-
justify-content: center;
|
|
127
|
-
width: 100%;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.icon {
|
|
131
|
-
position: absolute;
|
|
132
|
-
top: 50%;
|
|
133
|
-
transform: translateY(-50%);
|
|
134
|
-
left: 16px;
|
|
135
|
-
justify-content: center;
|
|
136
|
-
align-items: center;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.body {
|
|
140
|
-
width: 100%;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@media screen and (max-width: 768px) {
|
|
144
|
-
.title {
|
|
145
|
-
font-size: 20px;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@media screen and (max-width: 500px) {
|
|
150
|
-
.title {
|
|
151
|
-
font-size: 16px;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
</style>
|