@yamato-daiwa/frontend-vue 0.3.0-alpha.1 → 0.3.0-alpha.2
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.
Potentially problematic release.
This version of @yamato-daiwa/frontend-vue might be problematic. Click here for more details.
- package/Distributable/Functions/Routing/extractVueRouteQueryParameterAsArray.d.ts +6 -0
- package/Distributable/Functions/getElementByVueReference.d.ts +23 -0
- package/Distributable/GUI_Components/AdmonitionBlock/AdmonitionBlock.vue.d.ts +52 -0
- package/Distributable/GUI_Components/AdmonitionBlock/AdmonitionBlockLogic.vue.d.ts +51 -0
- package/Distributable/GUI_Components/Badge/Badge.vue.d.ts +61 -0
- package/Distributable/GUI_Components/Badge/LoadingPlaceholder/Badge-LoadingPlaceholder.vue.d.ts +10 -0
- package/Distributable/GUI_Components/ComponentsAuxiliaries.d.ts +42 -0
- package/Distributable/GUI_Components/Controls/Buttons/Closing/ClosingButton.vue.d.ts +54 -0
- package/Distributable/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton-ForInheritance.vue.d.ts +56 -0
- package/Distributable/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton.vue.d.ts +55 -0
- package/Distributable/GUI_Components/Controls/Buttons/Plain/Button.vue.d.ts +88 -0
- package/Distributable/GUI_Components/Controls/Buttons/Plain/LoadingPlaceholder/Button-LoadingPlaceholder.vue.d.ts +10 -0
- package/Distributable/GUI_Components/Controls/InputtableControl.d.ts +17 -0
- package/Distributable/GUI_Components/Controls/ValidatableControl.d.ts +51 -0
- package/Distributable/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.vue.d.ts +92 -0
- package/Distributable/GUI_Components/Controls/Validatables/InputtableControl.d.ts +25 -0
- package/Distributable/GUI_Components/Controls/Validatables/InputtableControl.vue.d.ts +25 -0
- package/Distributable/GUI_Components/Controls/Validatables/TextBox/TextBox.vue.d.ts +124 -0
- package/Distributable/GUI_Components/Controls/Validatables/ValidatableControl.d.ts +54 -0
- package/Distributable/GUI_Components/Controls/Validatables/ValidatableControlsGroup.d.ts +38 -0
- package/Distributable/GUI_Components/YDF_ComponentsCoordinator.d.ts +103 -0
- package/Distributable/GUI_Components/_Decorators/AccessibleFromTemplateAsNonReactive.d.ts +2 -0
- package/Distributable/GUI_Components/_Decorators/NonReactiveData.d.ts +1 -0
- package/Distributable/GUI_Components/_Decorators/NonReactiveVueData.d.ts +1 -0
- package/Distributable/GUI_Components/_Decorators/OptionalButNotNullableVueProperty.d.ts +2 -0
- package/Distributable/GUI_Components/_Decorators/preventNullForOptionalVueProperty.d.ts +2 -0
- package/Distributable/GUI_Components/_Errors/ForbiddenNullValueOfOptionalVueProperty/ForbiddenNullValueOfOptionalVuePropertyError.d.ts +19 -0
- package/Distributable/GUI_Components/_Errors/ForbiddenNullValueOfOptionalVueProperty/ForbiddenNullValueOfOptionalVuePropertyErrorLocalization.english.d.ts +3 -0
- package/Distributable/GUI_Components/_Errors/InvalidVuePropertiesCombination/InvalidVuePropertiesCombinationError.d.ts +19 -0
- package/Distributable/GUI_Components/_Errors/InvalidVuePropertiesCombination/InvalidVuePropertiesCombinationErrorLocalization.english.d.ts +3 -0
- package/Distributable/GUI_Components/_Errors/InvalidVueProperty/InvalidVuePropertyError.d.ts +20 -0
- package/Distributable/GUI_Components/_Errors/InvalidVueProperty/InvalidVuePropertyErrorLocalization.english.d.ts +3 -0
- package/Distributable/GUI_Components/_Errors/VueComponentImplementationHasNotBeenSet/VueComponentImplementationHasNotBeenSet.d.ts +18 -0
- package/Distributable/GUI_Components/_Errors/VueComponentImplementationHasNotBeenSet/VueComponentImplementationHasNotBeenSetErrorLocalization.english.d.ts +3 -0
- package/Distributable/GUI_Components/_Errors/VueComponentNotFound/VueComponentNotFoundError.d.ts +22 -0
- package/Distributable/GUI_Components/_Errors/VueComponentNotFound/VueComponentNotFoundErrorLocalization.english.d.ts +3 -0
- package/Distributable/GUI_Components/_Utils/VuePropertiesValidationMessagesGenerators/generateInvalidDecorativeVariationVuePropertyValidationMessage.d.ts +4 -0
- package/Distributable/GUI_Components/_Utils/VuePropertiesValidationMessagesGenerators/generateInvalidGeometricVariationVuePropertyValidationMessage.d.ts +4 -0
- package/Distributable/GUI_Components/_Utils/VuePropertiesValidationMessagesGenerators/generateInvalidThemeVuePropertyValidationMessage.d.ts +4 -0
- package/Distributable/GUI_Components/_Utils/VuePropertiesValidationMessagesGenerators/generateVuePropertyMustBeEitherEmptyStringOrUndefinedValidationMessage.d.ts +2 -0
- package/Distributable/GUI_Components/_Utils/VuePropertiesValidationMessagesGenerators/generateVuePropertyMustBeNonEmptyStringOrUndefinedValidationMessage.d.ts +2 -0
- package/Distributable/GUI_Components/_Utils/validateVuePropertyAndLogIfInvalid.d.ts +4 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/BooleanVuePropertyValidator.d.ts +5 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/DecorativeModifiersVuePropertyValidator.d.ts +6 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/DecorativeVariationVuePropertyValidator.d.ts +6 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/ElementOfEnumerationVuePropertyValidator.d.ts +9 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/GeometricModifiersVuePropertyValidator.d.ts +6 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/GeometricVariationVuePropertyValidator.d.ts +6 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/NaturalNumberOrZeroVuePropertyValidator.d.ts +5 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/NonEmptyStringVuePropertyValidator.d.ts +5 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/ThemeVuePropertyValidator.d.ts +6 -0
- package/Distributable/GUI_Components/_VuePropertiesValidators/VuePropertyValidator.d.ts +10 -0
- package/{Source/index.ts → Distributable/index.d.ts} +151 -233
- package/Distributable/index.js +1 -0
- package/package.json +4 -1
- package/.idea/.name +0 -1
- package/.idea/Main.iml +0 -12
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/file.template.settings.xml +0 -8
- package/.idea/fileTemplates/SVG Icon component.vue +0 -16
- package/.idea/icon.svg +0 -1
- package/.idea/inspectionProfiles/Project_Default.xml +0 -11
- package/.idea/misc.xml +0 -5
- package/.idea/modules.xml +0 -8
- package/.idea/runConfigurations/Generate_TypeScript_Types.xml +0 -12
- package/.idea/runConfigurations/Lint.xml +0 -12
- package/.idea/runConfigurations/Rebuild_Distributable.xml +0 -12
- package/.idea/runConfigurations/Start_Workbenches.xml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.pug-lintrc +0 -4
- package/Project.d.ts +0 -10
- package/Source/Functions/Routing/extractVueRouteQueryParameterAsArray.ts +0 -65
- package/Source/Functions/getElementByVueReference.ts +0 -127
- package/Source/GUI_Components/AdmonitionBlock/AdmonitionBlock.vue +0 -67
- package/Source/GUI_Components/AdmonitionBlock/AdmonitionBlock.vue.d.ts +0 -48
- package/Source/GUI_Components/AdmonitionBlock/AdmonitionBlockLogic.vue.ts +0 -254
- package/Source/GUI_Components/Badge/Badge.vue.pug +0 -12
- package/Source/GUI_Components/Badge/Badge.vue.ts +0 -240
- package/Source/GUI_Components/Badge/LoadingPlaceholder/Badge-LoadingPlaceholder.vue.pug +0 -3
- package/Source/GUI_Components/Badge/LoadingPlaceholder/Badge-LoadingPlaceholder.vue.ts +0 -93
- package/Source/GUI_Components/Controls/Buttons/Closing/ClosingButton.vue.pug +0 -1
- package/Source/GUI_Components/Controls/Buttons/Closing/ClosingButton.vue.ts +0 -224
- package/Source/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton-ForInheritance.vue.ts +0 -253
- package/Source/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton.vue +0 -24
- package/Source/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton.vue.d.ts +0 -45
- package/Source/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton.vue.pug +0 -0
- package/Source/GUI_Components/Controls/Buttons/Plain/Button.vue.pug +0 -70
- package/Source/GUI_Components/Controls/Buttons/Plain/Button.vue.ts +0 -464
- package/Source/GUI_Components/Controls/Buttons/Plain/LoadingPlaceholder/Button-LoadingPlaceholder.vue.pug +0 -3
- package/Source/GUI_Components/Controls/Buttons/Plain/LoadingPlaceholder/Button-LoadingPlaceholder.vue.ts +0 -82
- package/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.vue.pug +0 -64
- package/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.vue.ts +0 -478
- package/Source/GUI_Components/Controls/Validatables/InputtableControl.vue.ts +0 -233
- package/Source/GUI_Components/Controls/Validatables/TextBox/TextBox.vue.pug +0 -67
- package/Source/GUI_Components/Controls/Validatables/TextBox/TextBox.vue.ts +0 -702
- package/Source/GUI_Components/Controls/Validatables/ValidatableControl.ts +0 -268
- package/Source/GUI_Components/Controls/Validatables/ValidatableControlsGroup.ts +0 -176
- package/Source/GUI_Components/OverflowSafeSingleLineLabel.vue +0 -32
- package/Source/GUI_Components/ThemesShowcase.vue +0 -123
- package/Source/GUI_Components/YDF_ComponentsCoordinator.ts +0 -317
- package/Source/GUI_Components/_Decorators/AccessibleFromTemplateAsNonReactive.ts +0 -67
- package/Source/GUI_Components/_Decorators/NonReactiveVueData.ts +0 -26
- package/Source/GUI_Components/_Decorators/preventNullForOptionalVueProperty.ts +0 -64
- package/Source/GUI_Components/_Errors/ForbiddenNullValueOfOptionalVueProperty/ForbiddenNullValueOfOptionalVuePropertyError.ts +0 -47
- package/Source/GUI_Components/_Errors/ForbiddenNullValueOfOptionalVueProperty/ForbiddenNullValueOfOptionalVuePropertyErrorLocalization.english.ts +0 -24
- package/Source/GUI_Components/_Errors/InvalidVuePropertiesCombination/InvalidVuePropertiesCombinationError.ts +0 -40
- package/Source/GUI_Components/_Errors/InvalidVuePropertiesCombination/InvalidVuePropertiesCombinationErrorLocalization.english.ts +0 -15
- package/Source/GUI_Components/_Errors/InvalidVueProperty/InvalidVuePropertyError.ts +0 -43
- package/Source/GUI_Components/_Errors/InvalidVueProperty/InvalidVuePropertyErrorLocalization.english.ts +0 -16
- package/Source/GUI_Components/_Errors/VueComponentImplementationHasNotBeenSet/VueComponentImplementationHasNotBeenSet.ts +0 -39
- package/Source/GUI_Components/_Errors/VueComponentImplementationHasNotBeenSet/VueComponentImplementationHasNotBeenSetErrorLocalization.english.ts +0 -17
- package/Source/GUI_Components/_Errors/VueComponentNotFound/VueComponentNotFoundError.ts +0 -46
- package/Source/GUI_Components/_Errors/VueComponentNotFound/VueComponentNotFoundErrorLocalization.english.ts +0 -22
- package/Source/GUI_Components/_VuePropertiesValidators/BooleanVuePropertyValidator.ts +0 -25
- package/Source/GUI_Components/_VuePropertiesValidators/DecorativeModifiersVuePropertyValidator.ts +0 -22
- package/Source/GUI_Components/_VuePropertiesValidators/DecorativeVariationVuePropertyValidator.ts +0 -23
- package/Source/GUI_Components/_VuePropertiesValidators/ElementOfEnumerationVuePropertyValidator.ts +0 -29
- package/Source/GUI_Components/_VuePropertiesValidators/GeometricModifiersVuePropertyValidator.ts +0 -22
- package/Source/GUI_Components/_VuePropertiesValidators/GeometricVariationVuePropertyValidator.ts +0 -23
- package/Source/GUI_Components/_VuePropertiesValidators/NaturalNumberOrZeroVuePropertyValidator.ts +0 -25
- package/Source/GUI_Components/_VuePropertiesValidators/NonEmptyStringVuePropertyValidator.ts +0 -25
- package/Source/GUI_Components/_VuePropertiesValidators/ThemeVuePropertyValidator.ts +0 -23
- package/Source/GUI_Components/_VuePropertiesValidators/VuePropertyValidator.ts +0 -51
- package/Source/SVG_Icons/Achievement/AchievementIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Achievement/AchievementIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Bell/BellIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Bracket/CurlyBracketIcon__Closing.vue +0 -16
- package/Source/SVG_Icons/Bracket/CurlyBracketIcon__Opening.vue +0 -16
- package/Source/SVG_Icons/Bracket/RoundBracketIcon__Closing.vue +0 -16
- package/Source/SVG_Icons/Bracket/RoundBracketIcon__Opening.vue +0 -16
- package/Source/SVG_Icons/Bracket/SquareBracketIcon__Closing.vue +0 -16
- package/Source/SVG_Icons/Bracket/SquareBracketIcon__Opening.vue +0 -16
- package/Source/SVG_Icons/Calendar/CalendarIcon.vue +0 -16
- package/Source/SVG_Icons/Calendar/CalendarIcon__Date.vue +0 -16
- package/Source/SVG_Icons/Calendar/CalendarIcon__Repeat.vue +0 -16
- package/Source/SVG_Icons/Calendar/CalendarIcon__Time.vue +0 -16
- package/Source/SVG_Icons/Checkmark/CheckboxIcon__Checked.vue +0 -16
- package/Source/SVG_Icons/Checkmark/CheckboxIcon__Unchecked.vue +0 -16
- package/Source/SVG_Icons/Checkmark/CheckmarkIcon__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/Checkmark/CheckmarkIcon__Circled__Outlined.vue +0 -16
- package/Source/SVG_Icons/Chevron/ChevronIcon__Downward.vue +0 -16
- package/Source/SVG_Icons/Chevron/ChevronIcon__Leftward.vue +0 -16
- package/Source/SVG_Icons/Chevron/ChevronIcon__Rightward.vue +0 -16
- package/Source/SVG_Icons/Chevron/ChevronIcon__Upward.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Dots__Filled.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Dots__Outlined.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Lines__Filled.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Lines__Outlined.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Minus__Filled.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Minus__Outlined.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Pen__Filled.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Pen__Outlined.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Plus__Filled.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Plus__Outlined.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Qotemark__Filled.vue +0 -16
- package/Source/SVG_Icons/Comment/CommentIcon__Qotemark__Outlined.vue +0 -16
- package/Source/SVG_Icons/ExclamationMark/ExclamationMarkIcon__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/ExclamationMark/ExclamationMarkIcon__Circled__Outlined.vue +0 -16
- package/Source/SVG_Icons/ExclamationMark/ExclamationMarkIcon__Octagoned__Filled.vue +0 -16
- package/Source/SVG_Icons/ExclamationMark/ExclamationMarkIcon__Octagoned__Outlined.vue +0 -16
- package/Source/SVG_Icons/ExclamationMark/ExclamationMarkIcon__Rectangled__Filled.vue +0 -16
- package/Source/SVG_Icons/ExclamationMark/ExclamationMarkIcon__Rectangled__Outlined.vue +0 -16
- package/Source/SVG_Icons/ExclamationMark/ExclamationMarkIcon__Triangled__Filled.vue +0 -16
- package/Source/SVG_Icons/ExclamationMark/ExclamationMarkIcon__Triangled__Outlined.vue +0 -16
- package/Source/SVG_Icons/Filtering/FilteringIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Folder/FolderIcon__ExclamationMark__Filled.vue +0 -16
- package/Source/SVG_Icons/Folder/FolderIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Folder/FolderIcon__MultiplicationSign__Filled.vue +0 -16
- package/Source/SVG_Icons/Folder/FolderIcon__Person__Filled.vue +0 -16
- package/Source/SVG_Icons/Folder/FolderIcon__Plus__Filled.vue +0 -16
- package/Source/SVG_Icons/Folder/FolderIcon__Stationery.vue +0 -16
- package/Source/SVG_Icons/HamburgerMenu/HamburgerMenuIcon.vue +0 -7
- package/Source/SVG_Icons/Heart/HeartIcon__Broken__Filled.vue +0 -16
- package/Source/SVG_Icons/Heart/HeartIcon__Broken__Outlined.vue +0 -16
- package/Source/SVG_Icons/Heart/HeartIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Heart/HeartIcon__Half.vue +0 -16
- package/Source/SVG_Icons/Heart/HeartIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Inbox/InboxIcon.vue +0 -16
- package/Source/SVG_Icons/Inbox/InboxIcon__DownwardArrow.vue +0 -16
- package/Source/SVG_Icons/InfoSign/InfoSignIcon__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/InfoSign/InfoSignIcon__Circled__Outlined.vue +0 -16
- package/Source/SVG_Icons/Like/LikeIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Like/LikeIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Like/UnlikeIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Like/UnlikeIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/List/ChecklistIcon.vue +0 -16
- package/Source/SVG_Icons/MagnifyingGlass/MagnifyingGlassIcon.vue +0 -16
- package/Source/SVG_Icons/MagnifyingGlass/ZoomInIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/MagnifyingGlass/ZoomInIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/MagnifyingGlass/ZoomingInIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/MagnifyingGlass/ZoomingOutIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Mail/MailIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Mail/MailIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/MapAndLocation/LocationIcon.vue +0 -16
- package/Source/SVG_Icons/MapAndLocation/LocationIcon__BottomCircle.vue +0 -16
- package/Source/SVG_Icons/MapAndLocation/MapIcon__Clock.vue +0 -16
- package/Source/SVG_Icons/Menu/MenuIcon__ThreeDots__Horizontal.vue +0 -16
- package/Source/SVG_Icons/Menu/MenuIcon__ThreeDots__Horizontal__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/Menu/MenuIcon__ThreeDots__Horizontal__Circled__Outlined.vue +0 -16
- package/Source/SVG_Icons/Menu/MenuIcon__ThreeDots__Vertical.vue +0 -16
- package/Source/SVG_Icons/Menu/MenuIcon__ThreeDots__Vertical__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/Menu/MenuIcon__ThreeDots__Vertical__Circled__Outlined.vue +0 -16
- package/Source/SVG_Icons/MultiplicationSign/MultiplicationSignIcon.vue +0 -16
- package/Source/SVG_Icons/MultiplicationSign/MultiplicationSignIcon__Bold.vue +0 -16
- package/Source/SVG_Icons/MultiplicationSign/MultiplicationSignIcon__Boxed__Filled.vue +0 -16
- package/Source/SVG_Icons/MultiplicationSign/MultiplicationSignIcon__Boxed__Outlined.vue +0 -16
- package/Source/SVG_Icons/MultiplicationSign/MultiplicationSignIcon__Octagoned__Filled.vue +0 -16
- package/Source/SVG_Icons/MultiplicationSign/MultiplicationSignIcon__Octagoned__Outlined.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilIcon__Boxed__Filled.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilIcon__Boxed__Outlined.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilIcon__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilIcon__Circled__Outlined.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilWithLockIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilWithLockIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilWithPlusSignIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Pencil/PencilWithPlusSignIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Person/PersonIcon__Clock__Rectangled__Filled.vue +0 -16
- package/Source/SVG_Icons/Phone/PhoneIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Phone/PhoneIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Phone/TelephoneIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/QuestionMark/QuestionMarkIcon__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/QuestionMark/QuestionMarkIcon__Circled__Outlined.vue +0 -16
- package/Source/SVG_Icons/QuoteMark/QuoteMarkIcon_Upward__Outlined.vue +0 -16
- package/Source/SVG_Icons/QuoteMark/QuoteMarkIcon__Downward__Filled.vue +0 -16
- package/Source/SVG_Icons/QuoteMark/QuoteMarkIcon__Downward__Outlined.vue +0 -16
- package/Source/SVG_Icons/QuoteMark/QuoteMarkIcon__Upward__Filled.vue +0 -16
- package/Source/SVG_Icons/SocialNetworks/FacebookIcon.vue +0 -16
- package/Source/SVG_Icons/SocialNetworks/GoogleIcon.vue +0 -16
- package/Source/SVG_Icons/SocialNetworks/InstagramIcon.vue +0 -16
- package/Source/SVG_Icons/SocialNetworks/LinkedInIcon.vue +0 -16
- package/Source/SVG_Icons/SocialNetworks/RSS_Icon.vue +0 -16
- package/Source/SVG_Icons/SocialNetworks/RedditIcon.vue +0 -16
- package/Source/SVG_Icons/SocialNetworks/SkypeIcon.vue +0 -16
- package/Source/SVG_Icons/SocialNetworks/TwitterIcon.vue +0 -16
- package/Source/SVG_Icons/SocialNetworks/YouTubeIcon.vue +0 -16
- package/Source/SVG_Icons/Star/StarIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/Star/StarIcon__Half.vue +0 -16
- package/Source/SVG_Icons/Star/StarIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Star/StarIcon__Plus__Filled.vue +0 -16
- package/Source/SVG_Icons/Star/StarIcon__Plus__Outlined.vue +0 -16
- package/Source/SVG_Icons/Timeline/TimelineIcon.vue +0 -16
- package/Source/SVG_Icons/TrashCan/TrashCanIcon__Filled.vue +0 -16
- package/Source/SVG_Icons/TrashCan/TrashCanIcon__Outlined.vue +0 -16
- package/Source/SVG_Icons/Triangle/TriangleIcon__Downward__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/Triangle/TriangleIcon__Downward__Filled.vue +0 -16
- package/Source/SVG_Icons/Triangle/TriangleIcon__Leftward__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/Triangle/TriangleIcon__Leftward__Filled.vue +0 -16
- package/Source/SVG_Icons/Triangle/TriangleIcon__Rightward__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/Triangle/TriangleIcon__Rightward__Filled.vue +0 -16
- package/Source/SVG_Icons/Triangle/TriangleIcon__Upward__Circled__Filled.vue +0 -16
- package/Source/SVG_Icons/Triangle/TriangleIcon__Upward__Filled.vue +0 -16
- package/Workbenches/Source/Decorators/Decorators.workbench.pug +0 -20
- package/Workbenches/Source/Decorators/Decorators.workbench.ts +0 -5
- package/Workbenches/Source/Decorators/DecoratorsWorkbench.vue +0 -69
- package/Workbenches/Source/GUI_Components/AdmonitionBlock/AdmonitionBlock.workbench.pug +0 -20
- package/Workbenches/Source/GUI_Components/AdmonitionBlock/AdmonitionBlock.workbench.ts +0 -5
- package/Workbenches/Source/GUI_Components/AdmonitionBlock/AdmonitionBlockComponentTestSite.vue +0 -44
- package/Workbenches/Source/GUI_Components/Badge/Badge.workbench.pug +0 -20
- package/Workbenches/Source/GUI_Components/Badge/Badge.workbench.ts +0 -5
- package/Workbenches/Source/GUI_Components/Badge/BadgeBlockComponentTestSite.vue +0 -44
- package/Workbenches/Source/GUI_Components/Controls/Buttons/Plain/Button.workbench.pug +0 -20
- package/Workbenches/Source/GUI_Components/Controls/Buttons/Plain/Button.workbench.ts +0 -5
- package/Workbenches/Source/GUI_Components/Controls/Buttons/Plain/ButtonComponentTestSite.vue +0 -60
- package/Workbenches/Source/GUI_Components/Controls/Validatable/TextBox/TextBox.workbench.pug +0 -20
- package/Workbenches/Source/GUI_Components/Controls/Validatable/TextBox/TextBox.workbench.ts +0 -5
- package/Workbenches/Source/GUI_Components/Controls/Validatable/TextBox/TextBoxWorkbench.vue +0 -86
- package/Workbenches/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.workbench.pug +0 -20
- package/Workbenches/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.workbench.ts +0 -5
- package/Workbenches/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShellTestSite.vue +0 -68
- package/Workbenches/Source/GUI_Components/OverflowSafeSingleLineLabel/OverflowSafeSingleLineLabel.workbench.pug +0 -20
- package/Workbenches/Source/GUI_Components/OverflowSafeSingleLineLabel/OverflowSafeSingleLineLabel.workbench.ts +0 -5
- package/Workbenches/Source/GUI_Components/OverflowSafeSingleLineLabel/OverflowSafeSingleLineLabelComponentTestSite.vue +0 -100
- package/Workbenches/Source/Workbenches.pug +0 -103
- package/eslint.config.js +0 -44
- package/tsconfig.declarations.json +0 -4
- package/tsconfig.json +0 -21
- package/yda.config.yaml +0 -120
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/member-ordering -- The secondary members has been organized to the end of the class. */
|
|
2
|
-
|
|
3
|
-
import type { InputtedValueValidation, ValidatableControl as CorePackageValidatableControl } from "@yamato-daiwa/frontend";
|
|
4
|
-
import type { ComponentPublicInstance as VueComponentPublicInstance } from "vue";
|
|
5
|
-
import type { VueCons as VueClassComponent } from "vue-facing-decorator";
|
|
6
|
-
import {
|
|
7
|
-
Logger,
|
|
8
|
-
UnexpectedEventError,
|
|
9
|
-
isArbitraryObject,
|
|
10
|
-
isUndefined,
|
|
11
|
-
isFunctionLike
|
|
12
|
-
} from "@yamato-daiwa/es-extensions";
|
|
13
|
-
import VueComponentNotFoundError from "../../_Errors/VueComponentNotFound/VueComponentNotFoundError";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
type ValidatableControl = CorePackageValidatableControl;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
namespace ValidatableControl {
|
|
20
|
-
|
|
21
|
-
export function isValidatableControl(potentialValidatableControl: unknown): potentialValidatableControl is ValidatableControl {
|
|
22
|
-
return isArbitraryObject(potentialValidatableControl) &&
|
|
23
|
-
isFunctionLike(potentialValidatableControl.highlightInvalidInput) &&
|
|
24
|
-
isFunctionLike(potentialValidatableControl.getRootElementOffsetCoordinates) &&
|
|
25
|
-
isFunctionLike(potentialValidatableControl.focus) &&
|
|
26
|
-
isFunctionLike(potentialValidatableControl.resetValidityHighlightingStateToInitial);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export function getValidatableControlInstanceByVueReferenceID(
|
|
31
|
-
compoundParameter: Readonly<{
|
|
32
|
-
parentVueComponentInstance: VueComponentPublicInstance | VueClassComponent;
|
|
33
|
-
vueReferenceID: string;
|
|
34
|
-
}>
|
|
35
|
-
): ValidatableControl | null;
|
|
36
|
-
|
|
37
|
-
export function getValidatableControlInstanceByVueReferenceID(
|
|
38
|
-
compoundParameter: Readonly<{
|
|
39
|
-
parentVueComponentInstance: VueComponentPublicInstance | VueClassComponent;
|
|
40
|
-
vueReferenceID: string;
|
|
41
|
-
mustThrowErrorIsNotFoundOrNotValidatableControl: true;
|
|
42
|
-
}>
|
|
43
|
-
): ValidatableControl;
|
|
44
|
-
|
|
45
|
-
export function getValidatableControlInstanceByVueReferenceID(
|
|
46
|
-
compoundParameter: Readonly<{
|
|
47
|
-
parentVueComponentInstance: VueComponentPublicInstance | VueClassComponent;
|
|
48
|
-
vueReferenceID: string;
|
|
49
|
-
mustThrowErrorIsNotFoundOrNotValidatableControl?: true;
|
|
50
|
-
}>
|
|
51
|
-
): ValidatableControl | null {
|
|
52
|
-
|
|
53
|
-
const potentialValidatableControl: unknown =
|
|
54
|
-
/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions --
|
|
55
|
-
* Types which `vue-facing-decorator` imports are not compatible with `VueComponentPublicInstance`, but actually
|
|
56
|
-
* class components will be transformed to valid option API. */
|
|
57
|
-
(compoundParameter.parentVueComponentInstance as VueComponentPublicInstance).$refs[compoundParameter.vueReferenceID];
|
|
58
|
-
|
|
59
|
-
if (isUndefined(potentialValidatableControl)) {
|
|
60
|
-
|
|
61
|
-
if (compoundParameter.mustThrowErrorIsNotFoundOrNotValidatableControl === true) {
|
|
62
|
-
Logger.throwErrorWithFormattedMessage({
|
|
63
|
-
errorInstance: new VueComponentNotFoundError({ vueReferenceID: compoundParameter.vueReferenceID }),
|
|
64
|
-
title: VueComponentNotFoundError.localization.defaultTitle,
|
|
65
|
-
occurrenceLocation: "ValidatableControl.getValidatableControlInstanceByVueReferenceID(compoundParameter)"
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return null;
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (!isValidatableControl(potentialValidatableControl)) {
|
|
76
|
-
|
|
77
|
-
if (compoundParameter.mustThrowErrorIsNotFoundOrNotValidatableControl === true) {
|
|
78
|
-
Logger.throwErrorWithFormattedMessage({
|
|
79
|
-
errorType: "VueReferenceValueIsNotValidatableControlError",
|
|
80
|
-
title: "Vue Reference Value is not the Validatable Control",
|
|
81
|
-
description:
|
|
82
|
-
`The Vue reference "${ compoundParameter.vueReferenceID }" does not refer to the component implementing ` +
|
|
83
|
-
"the \"ValidatableControl\" interface.",
|
|
84
|
-
occurrenceLocation: "ValidatableControl.getValidatableControlInstanceByVueReferenceID(compoundParameter)"
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return null;
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return potentialValidatableControl;
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
export class Payload<ValidValue, InvalidValue, Validation extends InputtedValueValidation> {
|
|
100
|
-
|
|
101
|
-
/* ━━━ Fields ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
102
|
-
public readonly ID: string;
|
|
103
|
-
public readonly VUE_REFERENCE_ID: string;
|
|
104
|
-
|
|
105
|
-
public readonly value: ValidValue | InvalidValue;
|
|
106
|
-
public readonly validation: Validation;
|
|
107
|
-
public readonly lastChangeSourceID?: string;
|
|
108
|
-
|
|
109
|
-
protected readonly validationResult: InputtedValueValidation.Result;
|
|
110
|
-
protected readonly asynchronousChecksStatus: InputtedValueValidation.AsynchronousChecks.Status | null = null;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
/* ━━━ Public Static Methods ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
114
|
-
public static createInitialInstance<ValidValue, InvalidValue, Validation extends InputtedValueValidation>(
|
|
115
|
-
{
|
|
116
|
-
initialValue,
|
|
117
|
-
validation,
|
|
118
|
-
vueReferenceID
|
|
119
|
-
}: Readonly<{
|
|
120
|
-
initialValue: ValidValue | InvalidValue;
|
|
121
|
-
validation: Validation;
|
|
122
|
-
vueReferenceID?: string;
|
|
123
|
-
}>
|
|
124
|
-
): Payload<ValidValue, InvalidValue, Validation> {
|
|
125
|
-
return new Payload<ValidValue, InvalidValue, Validation>({
|
|
126
|
-
value: initialValue,
|
|
127
|
-
validation,
|
|
128
|
-
vueReferenceID
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/* ━━━ Constructor ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
134
|
-
protected constructor(
|
|
135
|
-
{
|
|
136
|
-
ID,
|
|
137
|
-
vueReferenceID,
|
|
138
|
-
value,
|
|
139
|
-
validation,
|
|
140
|
-
summarizingValidationErrorsMessages = [],
|
|
141
|
-
lastChangeSourceID
|
|
142
|
-
}: Readonly<{
|
|
143
|
-
|
|
144
|
-
/** @description Immutable for each instance. */
|
|
145
|
-
value: ValidValue | InvalidValue;
|
|
146
|
-
validation: Validation;
|
|
147
|
-
|
|
148
|
-
summarizingValidationErrorsMessages?: ReadonlyArray<string>;
|
|
149
|
-
lastChangeSourceID?: string;
|
|
150
|
-
|
|
151
|
-
/** @description Need to be kept when creating the new instance based on outdated one. */
|
|
152
|
-
ID?: string;
|
|
153
|
-
vueReferenceID?: string;
|
|
154
|
-
|
|
155
|
-
}>
|
|
156
|
-
) {
|
|
157
|
-
|
|
158
|
-
this.ID = ID ?? Payload.generateSelfID();
|
|
159
|
-
this.VUE_REFERENCE_ID = vueReferenceID ?? Payload.generateVueReferenceID_ForAssociatedComponent();
|
|
160
|
-
|
|
161
|
-
this.value = value;
|
|
162
|
-
this.validation = validation;
|
|
163
|
-
this.lastChangeSourceID = lastChangeSourceID;
|
|
164
|
-
|
|
165
|
-
if (summarizingValidationErrorsMessages.length === 0) {
|
|
166
|
-
this.validationResult = validation.validate(this.value);
|
|
167
|
-
} else {
|
|
168
|
-
|
|
169
|
-
const validationResult: InputtedValueValidation.Result = validation.validate(this.value);
|
|
170
|
-
|
|
171
|
-
const validationErrorsMessages: ReadonlyArray<string> = [
|
|
172
|
-
...validationResult.isValid ? [] : validationResult.errorsMessages, ...summarizingValidationErrorsMessages
|
|
173
|
-
];
|
|
174
|
-
|
|
175
|
-
this.validationResult = {
|
|
176
|
-
errorsMessages: validationErrorsMessages,
|
|
177
|
-
isValid: validationErrorsMessages.length === 0
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
/* ━━━ Public Instance Methods ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
186
|
-
/* ─── Updating ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
187
|
-
public getComponentInstance(ownerComponent: VueComponentPublicInstance): ValidatableControl {
|
|
188
|
-
return getValidatableControlInstanceByVueReferenceID({
|
|
189
|
-
vueReferenceID: this.VUE_REFERENCE_ID,
|
|
190
|
-
parentVueComponentInstance: ownerComponent,
|
|
191
|
-
mustThrowErrorIsNotFoundOrNotValidatableControl: true
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
/* ─── Other ──────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
197
|
-
public updateImmutably(
|
|
198
|
-
{
|
|
199
|
-
newValue
|
|
200
|
-
}: {
|
|
201
|
-
newValue: ValidValue | InvalidValue;
|
|
202
|
-
}
|
|
203
|
-
): Payload<ValidValue, InvalidValue, Validation> {
|
|
204
|
-
return new Payload<ValidValue, InvalidValue, Validation>({
|
|
205
|
-
value: newValue,
|
|
206
|
-
validation: this.validation
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
/* ━━━ Public Getters and Getter-like Methods ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
212
|
-
public getExpectedToBeValidValue(): ValidValue {
|
|
213
|
-
|
|
214
|
-
if (this.isInvalid) {
|
|
215
|
-
Logger.throwErrorWithFormattedMessage({
|
|
216
|
-
errorInstance: new UnexpectedEventError("Contrary to expectations, the value is still invalid."),
|
|
217
|
-
title: UnexpectedEventError.localization.defaultTitle,
|
|
218
|
-
occurrenceLocation: "ValidatableControl.Payload.getExpectedToBeValidValue()"
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions --
|
|
224
|
-
* In this case, we are guarantee the ValidValue by "this.isInvalid" check */
|
|
225
|
-
return this.value as ValidValue;
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
public get isEmpty(): boolean {
|
|
230
|
-
return this.validation.hasValueBeenOmitted(this.value);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
public get isInvalid(): boolean {
|
|
234
|
-
return !this.validationResult.isValid;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
public get validationErrorsMessages(): Array<string> {
|
|
238
|
-
return this.validationResult.isValid ? [] : [ ...this.validationResult.errorsMessages ];
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
/* ━━━ Routines ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
243
|
-
/* ─── IDs generating ─────────────────────────────────────────────────────────────────────────────────────────── */
|
|
244
|
-
protected static counterForSelfID_Generating: number = 0;
|
|
245
|
-
|
|
246
|
-
protected static generateSelfID(): string {
|
|
247
|
-
Payload.counterForSelfID_Generating++;
|
|
248
|
-
return `${ Payload.counterForSelfID_Generating }`;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
protected static counterForAssociatedComponentVueReferenceID_Generating: number = 0;
|
|
252
|
-
|
|
253
|
-
protected static generateVueReferenceID_ForAssociatedComponent(): string {
|
|
254
|
-
Payload.counterForAssociatedComponentVueReferenceID_Generating++;
|
|
255
|
-
return `VALIDATABLE_CONTROL-${ Payload.counterForAssociatedComponentVueReferenceID_Generating }`;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
export function VModelChecker(rawVModel: unknown, valueChecker: (rawValue: unknown) => boolean): boolean {
|
|
262
|
-
return isArbitraryObject(rawVModel) ? valueChecker(rawVModel.value) : false;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
export default ValidatableControl;
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import ValidatableControl from "./ValidatableControl";
|
|
2
|
-
import type { InputtedValueValidation } from "@yamato-daiwa/frontend";
|
|
3
|
-
|
|
4
|
-
import type { ComponentPublicInstance as VueComponentPublicInstance } from "vue";
|
|
5
|
-
import type { Vue as VueClassComponent } from "vue-facing-decorator";
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
Logger,
|
|
9
|
-
UnexpectedEventError,
|
|
10
|
-
isNull,
|
|
11
|
-
isNotUndefined,
|
|
12
|
-
DOM_ElementRetrievingFailedError
|
|
13
|
-
} from "@yamato-daiwa/es-extensions";
|
|
14
|
-
import type { ArbitraryObject } from "@yamato-daiwa/es-extensions";
|
|
15
|
-
import { getExpectedToBeSingleDOM_Element } from "@yamato-daiwa/es-extensions-browserjs";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export default class ValidatableControlsGroup<ValidData extends ArbitraryObject | Array<unknown>> {
|
|
19
|
-
|
|
20
|
-
public readonly isInvalid: boolean;
|
|
21
|
-
public readonly payload: ValidData | null;
|
|
22
|
-
public readonly SCROLLING_CONTAINER_HTML_ID?: string;
|
|
23
|
-
|
|
24
|
-
protected readonly controlsPayload: ValidatableControlsGroup.GeneralizedControlsPayload;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/* ━━━ Public Static Methods ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
28
|
-
public static initialize<ValidData extends ArbitraryObject | Array<unknown>>(
|
|
29
|
-
compoundParameter: Readonly<{ scrollingContainerHTML_ID?: string; }>
|
|
30
|
-
): ValidatableControlsGroup<ValidData> {
|
|
31
|
-
return new ValidatableControlsGroup<ValidData>({
|
|
32
|
-
isInvalid: true,
|
|
33
|
-
payload: null,
|
|
34
|
-
controlsPayload: {},
|
|
35
|
-
scrollingContainerHTML_ID: compoundParameter.scrollingContainerHTML_ID
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
public static hasInvalidInputs(
|
|
40
|
-
controlsPayload: ValidatableControlsGroup.GeneralizedControlsPayload
|
|
41
|
-
): boolean {
|
|
42
|
-
return (Array.isArray(controlsPayload) ? controlsPayload : Object.values(controlsPayload)).
|
|
43
|
-
some(
|
|
44
|
-
(validatableControlPayload: ValidatableControl.Payload<unknown, unknown, InputtedValueValidation>): boolean =>
|
|
45
|
-
validatableControlPayload.isInvalid
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
public static pointOutValidationErrors(
|
|
50
|
-
{
|
|
51
|
-
controlsPayload,
|
|
52
|
-
parentVueComponentInstance,
|
|
53
|
-
scrollingContainerHTML_ID
|
|
54
|
-
}: Readonly<{
|
|
55
|
-
controlsPayload: ValidatableControlsGroup.GeneralizedControlsPayload;
|
|
56
|
-
parentVueComponentInstance: VueComponentPublicInstance | InstanceType<typeof VueClassComponent>;
|
|
57
|
-
scrollingContainerHTML_ID?: string;
|
|
58
|
-
}>
|
|
59
|
-
): void {
|
|
60
|
-
|
|
61
|
-
let isCurrentControlTheFirstInvalidOne: boolean = true;
|
|
62
|
-
|
|
63
|
-
for (const validatableControlPayload of Array.isArray(controlsPayload) ? controlsPayload : Object.values(controlsPayload)) {
|
|
64
|
-
|
|
65
|
-
if (validatableControlPayload.isInvalid) {
|
|
66
|
-
|
|
67
|
-
const componentInstance: ValidatableControl | null = ValidatableControl.getValidatableControlInstanceByVueReferenceID({
|
|
68
|
-
parentVueComponentInstance, vueReferenceID: validatableControlPayload.VUE_REFERENCE_ID
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
if (isNull(componentInstance)) {
|
|
72
|
-
|
|
73
|
-
Logger.logError({
|
|
74
|
-
errorType: DOM_ElementRetrievingFailedError.NAME,
|
|
75
|
-
title: DOM_ElementRetrievingFailedError.localization.defaultTitle,
|
|
76
|
-
description: "Unable to retrieve the validatable control instance with Vue reference ID " +
|
|
77
|
-
`"${ validatableControlPayload.VUE_REFERENCE_ID }". Make sure that dedicated component has been mounted ` +
|
|
78
|
-
"and \"ref\" attribute has been explicitly specified.",
|
|
79
|
-
occurrenceLocation: "ValidatableControlsGroup.pointOutValidationErrors(compoundParameter)"
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
continue;
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
componentInstance.highlightInvalidInput();
|
|
88
|
-
|
|
89
|
-
if (isCurrentControlTheFirstInvalidOne) {
|
|
90
|
-
|
|
91
|
-
componentInstance.focus();
|
|
92
|
-
|
|
93
|
-
/* eslint-disable-next-line max-depth -- Here are all conditions are required. */
|
|
94
|
-
if (isNotUndefined(scrollingContainerHTML_ID)) {
|
|
95
|
-
getExpectedToBeSingleDOM_Element({ selector: `#${ scrollingContainerHTML_ID }` }).scroll({
|
|
96
|
-
top: componentInstance.getRootElementOffsetCoordinates().top,
|
|
97
|
-
behavior: "smooth"
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
isCurrentControlTheFirstInvalidOne = false;
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
/* ━━━ Instancing ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
113
|
-
public constructor(
|
|
114
|
-
compoundParameter:
|
|
115
|
-
Readonly<
|
|
116
|
-
(
|
|
117
|
-
{
|
|
118
|
-
isInvalid: false;
|
|
119
|
-
payload: ValidData;
|
|
120
|
-
} | {
|
|
121
|
-
isInvalid: true;
|
|
122
|
-
payload: null;
|
|
123
|
-
controlsPayload: ValidatableControlsGroup.GeneralizedControlsPayload;
|
|
124
|
-
}
|
|
125
|
-
) & {
|
|
126
|
-
scrollingContainerHTML_ID?: string;
|
|
127
|
-
}
|
|
128
|
-
>
|
|
129
|
-
) {
|
|
130
|
-
|
|
131
|
-
this.isInvalid = compoundParameter.isInvalid;
|
|
132
|
-
this.payload = compoundParameter.payload;
|
|
133
|
-
|
|
134
|
-
this.controlsPayload = "controlsPayload" in compoundParameter ? compoundParameter.controlsPayload : {};
|
|
135
|
-
|
|
136
|
-
if (isNotUndefined(this.SCROLLING_CONTAINER_HTML_ID)) {
|
|
137
|
-
this.SCROLLING_CONTAINER_HTML_ID = compoundParameter.scrollingContainerHTML_ID;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
/* ━━━ Instance Methods ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
144
|
-
public getExpectedToBeValidPayload(): ValidData {
|
|
145
|
-
|
|
146
|
-
if (isNull(this.payload)) {
|
|
147
|
-
Logger.throwErrorWithFormattedMessage({
|
|
148
|
-
errorInstance: new UnexpectedEventError("Contrary to expectations the payload is still invalid."),
|
|
149
|
-
title: UnexpectedEventError.localization.defaultTitle,
|
|
150
|
-
occurrenceLocation: "validatableControlsGroup.getExpectedToBeValidPayload()"
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return this.payload;
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
public pointOutValidationErrors(parentVueComponentInstance: VueComponentPublicInstance): void {
|
|
160
|
-
ValidatableControlsGroup.pointOutValidationErrors({
|
|
161
|
-
controlsPayload: this.controlsPayload,
|
|
162
|
-
parentVueComponentInstance,
|
|
163
|
-
scrollingContainerHTML_ID: this.SCROLLING_CONTAINER_HTML_ID
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
namespace ValidatableControlsGroup {
|
|
171
|
-
|
|
172
|
-
export type GeneralizedControlsPayload =
|
|
173
|
-
Readonly<{ [controlKey: string]: ValidatableControl.Payload<unknown, unknown, InputtedValueValidation>; }> |
|
|
174
|
-
Array<ValidatableControl.Payload<unknown, unknown, InputtedValueValidation>>;
|
|
175
|
-
|
|
176
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<template lang="pug">
|
|
2
|
-
|
|
3
|
-
component.OverflowSafeSingleLineLabel(
|
|
4
|
-
:is="rootElementTag"
|
|
5
|
-
)
|
|
6
|
-
span.OverflowSafeSingleLineLabel-TextWithIncreasedLineHeight
|
|
7
|
-
slot
|
|
8
|
-
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<script lang="ts">
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
Component as VueComponentOptions,
|
|
16
|
-
Vue as VueComponent,
|
|
17
|
-
Prop as VueProperty,
|
|
18
|
-
toNative as transformToOptionAPI_Component
|
|
19
|
-
} from "vue-facing-decorator";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@VueComponentOptions({ name: "OverflowSafeSingleLineLabel--YDF" })
|
|
23
|
-
class OverflowSafeSingleLineLabel extends VueComponent {
|
|
24
|
-
|
|
25
|
-
@VueProperty({ type: String, default: "div" })
|
|
26
|
-
protected readonly rootElementTag!: string;
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export default transformToOptionAPI_Component(OverflowSafeSingleLineLabel);
|
|
31
|
-
|
|
32
|
-
</script>
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
<template lang="pug">
|
|
2
|
-
|
|
3
|
-
ul.ThemesShowcase--YDF
|
|
4
|
-
|
|
5
|
-
li(
|
|
6
|
-
v-for="(themeValue, themeKey) of themes"
|
|
7
|
-
:key="`THEME-${ themeKey }`"
|
|
8
|
-
)
|
|
9
|
-
|
|
10
|
-
span.ThemesShowcase--YDF-Label {{ themeKeyLabelPrefix }}{{ themeKey }}
|
|
11
|
-
|
|
12
|
-
ul.ThemesShowcase--YDF-ChildList
|
|
13
|
-
|
|
14
|
-
li(
|
|
15
|
-
v-for="(geometricVariationValue, geometricVariationKey) of geometricVariations"
|
|
16
|
-
:key="`GEOMETRIC_VARIATION-${ themeKey }-${ geometricVariationKey }`"
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
span.ThemesShowcase--YDF-Label {{ geometricVariationLabelPrefix }}{{ geometricVariationKey }}
|
|
20
|
-
|
|
21
|
-
component.ThemesShowcase--YDF-ChildList(
|
|
22
|
-
:is="decorativeVariationsWrapperTag"
|
|
23
|
-
:class="decorativeVariationsWrapperAdditionalCSS_Classes"
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
template(
|
|
27
|
-
v-for="(decorativeVariationValue, decorativeVariationKey) of decorativeVariations"
|
|
28
|
-
:key="`DECORATIVE_VARIATION-${ themeKey }-${ decorativeVariationKey }`"
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
li(
|
|
32
|
-
v-if="decorativeVariationsWrapperTag === 'ul'"
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
span.ThemesShowcase--YDF-Label {{ decorativeVariationLabelPrefix }}{{ decorativeVariationKey }}
|
|
36
|
-
|
|
37
|
-
slot(
|
|
38
|
-
:theme="{ key: themeKey, value: themeValue }"
|
|
39
|
-
:geometricVariation="{ key: geometricVariationKey, value: geometricVariationValue }"
|
|
40
|
-
:decorativeVariation="{ key: decorativeVariationKey, value: decorativeVariationValue }"
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
template(
|
|
44
|
-
v-else
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
slot(
|
|
48
|
-
:theme="{ key: themeKey, value: themeValue }"
|
|
49
|
-
:geometricVariation="{ key: geometricVariationKey, value: geometricVariationValue }"
|
|
50
|
-
:decorativeVariation="{ key: decorativeVariationKey, value: decorativeVariationValue }"
|
|
51
|
-
)
|
|
52
|
-
|
|
53
|
-
</template>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<script lang="ts">
|
|
57
|
-
|
|
58
|
-
import {
|
|
59
|
-
Component as VueComponentOptions,
|
|
60
|
-
Vue as VueComponent,
|
|
61
|
-
Prop as VueProperty,
|
|
62
|
-
toNative as transformToOptionAPI_Component
|
|
63
|
-
} from "vue-facing-decorator";
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
@VueComponentOptions({ name: "ThemesShowcase--YDF" })
|
|
67
|
-
class ThemesShowcase extends VueComponent {
|
|
68
|
-
|
|
69
|
-
@VueProperty({
|
|
70
|
-
type: Object,
|
|
71
|
-
required: true
|
|
72
|
-
})
|
|
73
|
-
protected readonly themes!: Readonly<{ [themeKey: string]: string; }>;
|
|
74
|
-
|
|
75
|
-
@VueProperty({
|
|
76
|
-
type: String,
|
|
77
|
-
required: false
|
|
78
|
-
})
|
|
79
|
-
protected readonly themeKeyLabelPrefix?: string;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
@VueProperty({
|
|
83
|
-
type: Object,
|
|
84
|
-
required: true
|
|
85
|
-
})
|
|
86
|
-
protected readonly geometricVariations!: Readonly<{ [themeKey: string]: string; }>;
|
|
87
|
-
|
|
88
|
-
@VueProperty({
|
|
89
|
-
type: String,
|
|
90
|
-
required: false
|
|
91
|
-
})
|
|
92
|
-
protected readonly geometricVariationLabelPrefix?: string;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
@VueProperty({
|
|
96
|
-
type: Object,
|
|
97
|
-
required: true
|
|
98
|
-
})
|
|
99
|
-
protected readonly decorativeVariations!: Readonly<{ [themeKey: string]: string; }>;
|
|
100
|
-
|
|
101
|
-
@VueProperty({
|
|
102
|
-
type: String,
|
|
103
|
-
required: false
|
|
104
|
-
})
|
|
105
|
-
protected readonly decorativeVariationLabelPrefix?: string;
|
|
106
|
-
|
|
107
|
-
@VueProperty({
|
|
108
|
-
type: String,
|
|
109
|
-
default: "ul"
|
|
110
|
-
})
|
|
111
|
-
protected readonly decorativeVariationsWrapperTag!: string;
|
|
112
|
-
|
|
113
|
-
@VueProperty({
|
|
114
|
-
type: Array,
|
|
115
|
-
required: false
|
|
116
|
-
})
|
|
117
|
-
protected readonly decorativeVariationsWrapperAdditionalCSS_Classes?: ReadonlyArray<string>;
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export default transformToOptionAPI_Component(ThemesShowcase);
|
|
122
|
-
|
|
123
|
-
</script>
|