@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,464 +0,0 @@
|
|
|
1
|
-
/* ─── Assets ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2
|
-
import componentVueTemplate from "./Button.vue.pug";
|
|
3
|
-
|
|
4
|
-
/* ─── Validations ─────────────────────────────────────────────────────────────────────────────────────── */
|
|
5
|
-
import VuePropertyValidator from "../../../_VuePropertiesValidators/VuePropertyValidator";
|
|
6
|
-
import BooleanVuePropertyValidator from "../../../_VuePropertiesValidators/BooleanVuePropertyValidator";
|
|
7
|
-
import ElementOfEnumerationVuePropertyValidator from "../../../_VuePropertiesValidators/ElementOfEnumerationVuePropertyValidator";
|
|
8
|
-
import NonEmptyStringVuePropertyValidator from "../../../_VuePropertiesValidators/NonEmptyStringVuePropertyValidator";
|
|
9
|
-
import ThemeVuePropertyValidator from "../../../_VuePropertiesValidators/ThemeVuePropertyValidator";
|
|
10
|
-
import GeometricVariationVuePropertyValidator from "../../../_VuePropertiesValidators/GeometricVariationVuePropertyValidator";
|
|
11
|
-
import GeometricModifiersVuePropertyValidator from "../../../_VuePropertiesValidators/GeometricModifiersVuePropertyValidator";
|
|
12
|
-
import DecorativeVariationVuePropertyValidator from "../../../_VuePropertiesValidators/DecorativeVariationVuePropertyValidator";
|
|
13
|
-
import DecorativeModifiersVuePropertyValidator from "../../../_VuePropertiesValidators/DecorativeModifiersVuePropertyValidator";
|
|
14
|
-
import InvalidVuePropertiesCombinationError from
|
|
15
|
-
"../../../_Errors/InvalidVuePropertiesCombination/InvalidVuePropertiesCombinationError";
|
|
16
|
-
import preventNullForOptionalVueProperty from "../../../_Decorators/preventNullForOptionalVueProperty";
|
|
17
|
-
|
|
18
|
-
/* ─── Framework ──────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
19
|
-
import {
|
|
20
|
-
ComponentBase as VueComponentConfiguration,
|
|
21
|
-
Vue as VueComponent,
|
|
22
|
-
Prop as VueProperty
|
|
23
|
-
} from "vue-facing-decorator";
|
|
24
|
-
import type { RouteLocationRaw as VueRouterRawLocation } from "vue-router";
|
|
25
|
-
|
|
26
|
-
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
27
|
-
import YDF_ComponentsCoordinator from "../../../YDF_ComponentsCoordinator";
|
|
28
|
-
import {
|
|
29
|
-
Logger,
|
|
30
|
-
isNumber,
|
|
31
|
-
isNonEmptyString,
|
|
32
|
-
isEitherUndefinedOrNull,
|
|
33
|
-
isNeitherUndefinedNorNull,
|
|
34
|
-
isArbitraryObject,
|
|
35
|
-
emptyStringToNull,
|
|
36
|
-
type ElementOfPseudoEnumeration
|
|
37
|
-
} from "@yamato-daiwa/es-extensions";
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
@VueComponentConfiguration({
|
|
41
|
-
name: Button.CSS_NAMESPACE,
|
|
42
|
-
template: componentVueTemplate
|
|
43
|
-
})
|
|
44
|
-
class Button extends VueComponent {
|
|
45
|
-
|
|
46
|
-
/* ━━━ Static Fields ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
47
|
-
public static CSS_NAMESPACE: string = "Button--YDF";
|
|
48
|
-
|
|
49
|
-
public static HTML_Types: Button.HTML_Types = {
|
|
50
|
-
regular: "BUTTON",
|
|
51
|
-
submit: "SUBMIT",
|
|
52
|
-
inputButton: "INPUT_BUTTON",
|
|
53
|
-
inputSubmit: "INPUT_SUBMIT",
|
|
54
|
-
inputReset: "INPUT_RESET"
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/* ━━━ Non-reactive Instance Fields ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
59
|
-
protected IS_NUXT!: boolean;
|
|
60
|
-
|
|
61
|
-
private initializeNonReactiveClassFields(): void {
|
|
62
|
-
this.IS_NUXT = "$nuxt" in window;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/* ━━━ Common Properties ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
67
|
-
@VueProperty({
|
|
68
|
-
default: Button.HTML_Types.regular,
|
|
69
|
-
get validator(): VuePropertyValidator {
|
|
70
|
-
return ElementOfEnumerationVuePropertyValidator({
|
|
71
|
-
enumerationFullyQualifiedName: "Button.HTML_Types",
|
|
72
|
-
enumeration: Button.HTML_Types,
|
|
73
|
-
propertyName: "HTML_Type",
|
|
74
|
-
componentName: Button.CSS_NAMESPACE,
|
|
75
|
-
isPropertyRequired: this.required === true
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
})
|
|
79
|
-
@preventNullForOptionalVueProperty
|
|
80
|
-
protected readonly HTML_Type!: ElementOfPseudoEnumeration<Button.HTML_Types>;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/* ─── Textings ─────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
84
|
-
@VueProperty({
|
|
85
|
-
required: false,
|
|
86
|
-
validator: VuePropertyValidator.create({
|
|
87
|
-
checker: (rawValue: unknown): boolean =>
|
|
88
|
-
isNonEmptyString(rawValue) || isNumber(rawValue, { mustConsiderNaN_AsNumber: true }),
|
|
89
|
-
messageSpecificPart: "If specified, must be either non-empty string or number.",
|
|
90
|
-
propertyName: "label",
|
|
91
|
-
componentName: Button.CSS_NAMESPACE
|
|
92
|
-
})
|
|
93
|
-
})
|
|
94
|
-
@preventNullForOptionalVueProperty
|
|
95
|
-
protected readonly label?: string | number;
|
|
96
|
-
|
|
97
|
-
@VueProperty({
|
|
98
|
-
required: false,
|
|
99
|
-
get validator(): VuePropertyValidator {
|
|
100
|
-
return NonEmptyStringVuePropertyValidator({
|
|
101
|
-
isPropertyRequired: this.required === true,
|
|
102
|
-
propertyName: "accessibilityGuidance",
|
|
103
|
-
componentName: Button.CSS_NAMESPACE
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
})
|
|
107
|
-
@preventNullForOptionalVueProperty
|
|
108
|
-
protected readonly accessibilityGuidance?: string;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/* ─── Links ────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
112
|
-
@VueProperty({
|
|
113
|
-
required: false,
|
|
114
|
-
validator: VuePropertyValidator.create({
|
|
115
|
-
checker: (rawValue: unknown): boolean => isNonEmptyString(rawValue) || isArbitraryObject(rawValue),
|
|
116
|
-
messageSpecificPart: "If specified, must be either non-empty string or an object.",
|
|
117
|
-
propertyName: "route",
|
|
118
|
-
componentName: Button.CSS_NAMESPACE
|
|
119
|
-
})
|
|
120
|
-
})
|
|
121
|
-
@preventNullForOptionalVueProperty
|
|
122
|
-
protected readonly route?: VueRouterRawLocation;
|
|
123
|
-
|
|
124
|
-
@VueProperty({
|
|
125
|
-
required: false,
|
|
126
|
-
get validator(): VuePropertyValidator {
|
|
127
|
-
return NonEmptyStringVuePropertyValidator({
|
|
128
|
-
propertyName: "externalURI",
|
|
129
|
-
isPropertyRequired: this.required === true,
|
|
130
|
-
componentName: Button.CSS_NAMESPACE
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
})
|
|
134
|
-
@preventNullForOptionalVueProperty
|
|
135
|
-
protected readonly externalURI?: string;
|
|
136
|
-
|
|
137
|
-
@VueProperty({
|
|
138
|
-
default: false,
|
|
139
|
-
get validator(): VuePropertyValidator {
|
|
140
|
-
return BooleanVuePropertyValidator({
|
|
141
|
-
propertyName: "mustOpenLinkInNewTab",
|
|
142
|
-
componentName: Button.CSS_NAMESPACE,
|
|
143
|
-
isPropertyRequired: this.required === true
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
})
|
|
147
|
-
@preventNullForOptionalVueProperty
|
|
148
|
-
protected readonly mustOpenLinkInNewTab!: boolean;
|
|
149
|
-
|
|
150
|
-
@VueProperty({
|
|
151
|
-
default: false,
|
|
152
|
-
get validator(): VuePropertyValidator {
|
|
153
|
-
return BooleanVuePropertyValidator({
|
|
154
|
-
propertyName: "mustRequestNotFollowLinkForCrawlingToSearchEngine",
|
|
155
|
-
componentName: Button.CSS_NAMESPACE,
|
|
156
|
-
isPropertyRequired: this.required === true
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
})
|
|
160
|
-
@preventNullForOptionalVueProperty
|
|
161
|
-
protected readonly mustRequestNotFollowLinkForCrawlingToSearchEngine!: boolean;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
/* ─── Status ───────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
165
|
-
@VueProperty({
|
|
166
|
-
default: false,
|
|
167
|
-
get validator(): VuePropertyValidator {
|
|
168
|
-
return BooleanVuePropertyValidator({
|
|
169
|
-
propertyName: "disabled",
|
|
170
|
-
componentName: Button.CSS_NAMESPACE,
|
|
171
|
-
isPropertyRequired: this.required === true
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
})
|
|
175
|
-
@preventNullForOptionalVueProperty
|
|
176
|
-
protected readonly disabled!: boolean;
|
|
177
|
-
|
|
178
|
-
@VueProperty({
|
|
179
|
-
default: false,
|
|
180
|
-
get validator(): VuePropertyValidator {
|
|
181
|
-
return BooleanVuePropertyValidator({
|
|
182
|
-
propertyName: "toggled",
|
|
183
|
-
componentName: Button.CSS_NAMESPACE,
|
|
184
|
-
isPropertyRequired: this.required === true
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
})
|
|
188
|
-
@preventNullForOptionalVueProperty
|
|
189
|
-
protected readonly toggled!: boolean;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
/* ━━━ Theming ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
193
|
-
public static readonly Themes: Button.Themes = { regular: "REGULAR" };
|
|
194
|
-
|
|
195
|
-
@VueProperty({
|
|
196
|
-
default: Button.Themes.regular,
|
|
197
|
-
validator: ThemeVuePropertyValidator(Button)
|
|
198
|
-
})
|
|
199
|
-
@preventNullForOptionalVueProperty
|
|
200
|
-
protected readonly theme!: string;
|
|
201
|
-
|
|
202
|
-
public static defineThemes(themesNames: ReadonlyArray<string>): typeof Button {
|
|
203
|
-
return YDF_ComponentsCoordinator.defineThemes(themesNames, Button);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
public static areThemesCSS_ClassesCommon: boolean = YDF_ComponentsCoordinator.areThemesCSS_ClassesCommon;
|
|
207
|
-
|
|
208
|
-
public static considerThemesAsCommon(): void {
|
|
209
|
-
Button.areThemesCSS_ClassesCommon = true;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
@VueProperty({
|
|
213
|
-
default: Button.areThemesCSS_ClassesCommon,
|
|
214
|
-
get validator(): VuePropertyValidator {
|
|
215
|
-
return BooleanVuePropertyValidator({
|
|
216
|
-
propertyName: "areThemesCSS_ClassesCommon",
|
|
217
|
-
componentName: Button.CSS_NAMESPACE,
|
|
218
|
-
isPropertyRequired: this.required === true
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
})
|
|
222
|
-
@preventNullForOptionalVueProperty
|
|
223
|
-
private readonly areThemesCSS_ClassesCommon!: boolean;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
/* ─── Geometry ─────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
227
|
-
public static readonly GeometricVariations: Button.GeometricVariations = {
|
|
228
|
-
regular: "REGULAR",
|
|
229
|
-
small: "SMALL",
|
|
230
|
-
linkLike: "LINK_LIKE"
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
@VueProperty({
|
|
234
|
-
default: Button.GeometricVariations.regular,
|
|
235
|
-
validator: GeometricVariationVuePropertyValidator(Button)
|
|
236
|
-
})
|
|
237
|
-
@preventNullForOptionalVueProperty
|
|
238
|
-
protected readonly geometricVariation!: string;
|
|
239
|
-
|
|
240
|
-
public static defineGeometricVariations(geometricVariationsNames: ReadonlyArray<string>): typeof Button {
|
|
241
|
-
return YDF_ComponentsCoordinator.defineGeometricVariations(geometricVariationsNames, Button);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
public static readonly GeometricModifiers: Button.GeometricModifiers = {
|
|
245
|
-
pillShape: "PILL_SHAPE",
|
|
246
|
-
squareShape: "SQUARE_SHAPE",
|
|
247
|
-
squareShapeUnlessOverflowed: "SQUARE_SHAPE_UNLESS_OVERFLOWED",
|
|
248
|
-
singleLine: "SINGLE_LINE",
|
|
249
|
-
noLeftBorderAndRoundings: "NO_LEFT_BORDER_AND_ROUNDINGS",
|
|
250
|
-
noRightBorderAndRoundings: "NO_RIGHT_BORDER_AND_ROUNDINGS",
|
|
251
|
-
noTopBorderAndRoundings: "NO_TOP_BORDER_AND_ROUNDINGS",
|
|
252
|
-
noBottomBorderAndRoundings: "NO_BOTTOM_BORDER_AND_ROUNDINGS",
|
|
253
|
-
noRoundings: "NO_ROUNDINGS",
|
|
254
|
-
horizontallyShrinkable: "HORIZONTALLY_SHRINKABLE"
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
@VueProperty({
|
|
258
|
-
default: (): ReadonlyArray<ElementOfPseudoEnumeration<Button.GeometricModifiers>> => [],
|
|
259
|
-
validator: GeometricModifiersVuePropertyValidator(Button)
|
|
260
|
-
})
|
|
261
|
-
@preventNullForOptionalVueProperty
|
|
262
|
-
protected readonly geometricModifiers!: ReadonlyArray<ElementOfPseudoEnumeration<Button.GeometricModifiers>>;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
/* ─── Decoration ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
266
|
-
public static readonly DecorativeVariations: Button.DecorativeVariations = {
|
|
267
|
-
regular: "REGULAR",
|
|
268
|
-
accented: "ACCENTED",
|
|
269
|
-
danger: "DANGER",
|
|
270
|
-
linkLike: "LINK_LIKE"
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
@VueProperty({
|
|
274
|
-
default: Button.DecorativeVariations.regular,
|
|
275
|
-
validator: DecorativeVariationVuePropertyValidator(Button)
|
|
276
|
-
})
|
|
277
|
-
@preventNullForOptionalVueProperty
|
|
278
|
-
protected readonly decorativeVariation!: string;
|
|
279
|
-
|
|
280
|
-
public static defineDecorativeVariations(decorativeVariationsNames: ReadonlyArray<string>): typeof Button {
|
|
281
|
-
return YDF_ComponentsCoordinator.defineDecorativeVariations(decorativeVariationsNames, Button);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
public static readonly DecorativeModifiers: Button.DecorativeModifiers = {
|
|
285
|
-
bordersDisguising: "BORDERS_DISGUISING",
|
|
286
|
-
noBackground: "NO_BACKGROUND",
|
|
287
|
-
noBackgroundInDefaultState: "NO_BACKGROUND_IN_DEFAULT_STATE"
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
@VueProperty({
|
|
291
|
-
default: (): ReadonlyArray<ElementOfPseudoEnumeration<Button.DecorativeModifiers>> => [],
|
|
292
|
-
validator: DecorativeModifiersVuePropertyValidator(Button)
|
|
293
|
-
})
|
|
294
|
-
protected readonly decorativeModifiers!: ReadonlyArray<ElementOfPseudoEnumeration<Button.DecorativeModifiers>>;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
/* ━━━ Lifecycle Hooks ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
298
|
-
protected created(): void {
|
|
299
|
-
this.initializeNonReactiveClassFields();
|
|
300
|
-
this.validateProperties();
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
protected beforeUpdate(): void {
|
|
304
|
-
this.validateProperties();
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
/* ━━━ Root Element Tag Name ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
309
|
-
protected get isButtonTheTagNameOfRootElement(): boolean {
|
|
310
|
-
return isEitherUndefinedOrNull(this.route) &&
|
|
311
|
-
isEitherUndefinedOrNull(this.externalURI) &&
|
|
312
|
-
(this.HTML_Type === Button.HTML_Types.regular || this.HTML_Type === Button.HTML_Types.submit);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
protected get isInputTheTagNameOfRootElement(): boolean {
|
|
316
|
-
return isEitherUndefinedOrNull(this.route) &&
|
|
317
|
-
isEitherUndefinedOrNull(this.externalURI) &&
|
|
318
|
-
(
|
|
319
|
-
this.HTML_Type === Button.HTML_Types.inputButton ||
|
|
320
|
-
this.HTML_Type === Button.HTML_Types.inputSubmit ||
|
|
321
|
-
this.HTML_Type === Button.HTML_Types.inputReset
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
private get isRouterLinkTheRootElement(): boolean {
|
|
326
|
-
return isNeitherUndefinedNorNull(this.route);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
private get isAnchorTheTagNameOfRootElement(): boolean {
|
|
330
|
-
return isNeitherUndefinedNorNull(this.externalURI);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
/* ━━━ Root Element Attributes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
335
|
-
protected get typeAttributeValueOfButtonOrInputElement(): string | null {
|
|
336
|
-
|
|
337
|
-
if (!this.isButtonTheTagNameOfRootElement && !this.isInputTheTagNameOfRootElement) {
|
|
338
|
-
return null;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
switch (this.HTML_Type) {
|
|
343
|
-
case Button.HTML_Types.regular: return "button";
|
|
344
|
-
case Button.HTML_Types.submit: return "submit";
|
|
345
|
-
case Button.HTML_Types.inputButton: return "button";
|
|
346
|
-
case Button.HTML_Types.inputSubmit: return "submit";
|
|
347
|
-
case Button.HTML_Types.inputReset: return "reset";
|
|
348
|
-
default: return null;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
protected get relAttributeValueOfAnchorElement(): string | null {
|
|
354
|
-
return emptyStringToNull(
|
|
355
|
-
[
|
|
356
|
-
...this.mustOpenLinkInNewTab ? [ "noopener", "noreferrer" ] : [],
|
|
357
|
-
...this.mustRequestNotFollowLinkForCrawlingToSearchEngine ? [ "nofollow" ] : []
|
|
358
|
-
].join(" ")
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
/* ━━━ CSS Classes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
364
|
-
protected get rootElementModifierCSS_Classes(): ReadonlyArray<string> {
|
|
365
|
-
return YDF_ComponentsCoordinator.generateRootElementModifierCSS_Classes({
|
|
366
|
-
CSS_Namespace: Button.CSS_NAMESPACE,
|
|
367
|
-
activeTheme: this.theme,
|
|
368
|
-
allThemes: Button.Themes,
|
|
369
|
-
areThemesCSS_ClassesCommon: this.areThemesCSS_ClassesCommon,
|
|
370
|
-
activeGeometricVariation: this.geometricVariation,
|
|
371
|
-
allGeometricVariations: Button.GeometricVariations,
|
|
372
|
-
activeGeometricModifiers: this.geometricModifiers,
|
|
373
|
-
activeDecorativeVariation: this.decorativeVariation,
|
|
374
|
-
allDecorativeVariations: Button.DecorativeVariations,
|
|
375
|
-
activeDecorativeModifiers: this.decorativeModifiers,
|
|
376
|
-
other: [
|
|
377
|
-
...(this.isAnchorTheTagNameOfRootElement || this.isRouterLinkTheRootElement) && this.disabled ?
|
|
378
|
-
[ `${ Button.CSS_NAMESPACE }__DisabledState` ] : []
|
|
379
|
-
]
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
/* ━━━ Properties Validation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
385
|
-
protected validateProperties(): void {
|
|
386
|
-
|
|
387
|
-
if (
|
|
388
|
-
(!isNonEmptyString(this.label) && isNumber(this.label, { mustConsiderNaN_AsNumber: true })) &&
|
|
389
|
-
(
|
|
390
|
-
this.HTML_Type === Button.HTML_Types.inputButton ||
|
|
391
|
-
this.HTML_Type === Button.HTML_Types.inputSubmit ||
|
|
392
|
-
this.HTML_Type === Button.HTML_Types.inputReset
|
|
393
|
-
)
|
|
394
|
-
) {
|
|
395
|
-
Logger.throwErrorWithFormattedMessage({
|
|
396
|
-
errorInstance: new InvalidVuePropertiesCombinationError({
|
|
397
|
-
vueComponentName: Button.CSS_NAMESPACE,
|
|
398
|
-
messageSpecificPart:
|
|
399
|
-
"When button has HTML type \"inputButton\", \"inputSubmit\" or \"inputReset\", the \"label\" property " +
|
|
400
|
-
"must be specified with non-empty string of number."
|
|
401
|
-
}),
|
|
402
|
-
title: InvalidVuePropertiesCombinationError.localization.defaultTitle,
|
|
403
|
-
occurrenceLocation: `${ Button.CSS_NAMESPACE }.created/beforeUpdate()`
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
namespace Button {
|
|
413
|
-
|
|
414
|
-
export type HTML_Types = Readonly<{
|
|
415
|
-
regular: "BUTTON";
|
|
416
|
-
submit: "SUBMIT";
|
|
417
|
-
inputButton: "INPUT_BUTTON";
|
|
418
|
-
inputSubmit: "INPUT_SUBMIT";
|
|
419
|
-
inputReset: "INPUT_RESET";
|
|
420
|
-
}>;
|
|
421
|
-
|
|
422
|
-
export type Themes = {
|
|
423
|
-
readonly regular: "REGULAR";
|
|
424
|
-
[themeName: string]: string;
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
export type GeometricVariations = {
|
|
428
|
-
readonly regular: "REGULAR";
|
|
429
|
-
readonly small: "SMALL";
|
|
430
|
-
readonly linkLike: "LINK_LIKE";
|
|
431
|
-
[variationName: string]: string;
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
export type GeometricModifiers = Readonly<{
|
|
435
|
-
pillShape: "PILL_SHAPE";
|
|
436
|
-
squareShape: "SQUARE_SHAPE";
|
|
437
|
-
squareShapeUnlessOverflowed: "SQUARE_SHAPE_UNLESS_OVERFLOWED";
|
|
438
|
-
singleLine: "SINGLE_LINE";
|
|
439
|
-
noLeftBorderAndRoundings: "NO_LEFT_BORDER_AND_ROUNDINGS";
|
|
440
|
-
noRightBorderAndRoundings: "NO_RIGHT_BORDER_AND_ROUNDINGS";
|
|
441
|
-
noTopBorderAndRoundings: "NO_TOP_BORDER_AND_ROUNDINGS";
|
|
442
|
-
noBottomBorderAndRoundings: "NO_BOTTOM_BORDER_AND_ROUNDINGS";
|
|
443
|
-
noRoundings: "NO_ROUNDINGS";
|
|
444
|
-
horizontallyShrinkable: "HORIZONTALLY_SHRINKABLE";
|
|
445
|
-
}>;
|
|
446
|
-
|
|
447
|
-
export type DecorativeVariations = {
|
|
448
|
-
readonly regular: "REGULAR";
|
|
449
|
-
readonly accented: "ACCENTED";
|
|
450
|
-
readonly danger: "DANGER";
|
|
451
|
-
readonly linkLike: "LINK_LIKE";
|
|
452
|
-
[variationName: string]: string;
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
export type DecorativeModifiers = Readonly<{
|
|
456
|
-
bordersDisguising: "BORDERS_DISGUISING";
|
|
457
|
-
noBackground: "NO_BACKGROUND";
|
|
458
|
-
noBackgroundInDefaultState: "NO_BACKGROUND_IN_DEFAULT_STATE";
|
|
459
|
-
}>;
|
|
460
|
-
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
export default Button;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/* ─── Assets ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2
|
-
import componentVueTemplate from "./Button-LoadingPlaceholder.vue.pug";
|
|
3
|
-
|
|
4
|
-
/* ─── GUI Components ─────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
5
|
-
import Button from "../Button.vue";
|
|
6
|
-
|
|
7
|
-
/* ─── Validations ─────────────────────────────────────────────────────────────────────────────────────── */
|
|
8
|
-
import ThemeVuePropertyValidator from "../../../../_VuePropertiesValidators/ThemeVuePropertyValidator";
|
|
9
|
-
import GeometricVariationVuePropertyValidator from "../../../../_VuePropertiesValidators/GeometricVariationVuePropertyValidator";
|
|
10
|
-
import GeometricModifiersVuePropertyValidator from "../../../../_VuePropertiesValidators/GeometricModifiersVuePropertyValidator";
|
|
11
|
-
import preventNullForOptionalVueProperty from "../../../../_Decorators/preventNullForOptionalVueProperty";
|
|
12
|
-
|
|
13
|
-
/* ─── Framework ──────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
14
|
-
import {
|
|
15
|
-
ComponentBase as VueComponentConfiguration,
|
|
16
|
-
Vue as VueComponent,
|
|
17
|
-
Prop as VueProperty
|
|
18
|
-
} from "vue-facing-decorator";
|
|
19
|
-
|
|
20
|
-
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
21
|
-
import YDF_ComponentsCoordinator from "../../../../YDF_ComponentsCoordinator";
|
|
22
|
-
import type { ElementOfPseudoEnumeration } from "@yamato-daiwa/es-extensions";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@VueComponentConfiguration({
|
|
26
|
-
name: "Button--YDF__LoadingPlaceholder",
|
|
27
|
-
template: componentVueTemplate
|
|
28
|
-
})
|
|
29
|
-
export default class ButtonLoadingPlaceholder extends VueComponent {
|
|
30
|
-
|
|
31
|
-
@VueProperty({
|
|
32
|
-
type: String,
|
|
33
|
-
default: Button.Themes.regular,
|
|
34
|
-
validator: ThemeVuePropertyValidator({
|
|
35
|
-
Themes: Button.Themes,
|
|
36
|
-
CSS_NAMESPACE: "Button--YDF__LoadingPlaceholder"
|
|
37
|
-
})
|
|
38
|
-
})
|
|
39
|
-
@preventNullForOptionalVueProperty
|
|
40
|
-
protected readonly theme!: string;
|
|
41
|
-
|
|
42
|
-
@VueProperty({ type: Boolean, default: Button.areThemesCSS_ClassesCommon })
|
|
43
|
-
@preventNullForOptionalVueProperty
|
|
44
|
-
protected readonly areThemesCSS_ClassesCommon!: boolean;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
@VueProperty({
|
|
48
|
-
type: String,
|
|
49
|
-
default: Button.GeometricVariations.regular,
|
|
50
|
-
validator: GeometricVariationVuePropertyValidator({
|
|
51
|
-
GeometricVariations: Button.GeometricVariations,
|
|
52
|
-
CSS_NAMESPACE: "Button--YDF__LoadingPlaceholder"
|
|
53
|
-
})
|
|
54
|
-
})
|
|
55
|
-
@preventNullForOptionalVueProperty
|
|
56
|
-
protected readonly geometricVariation!: string;
|
|
57
|
-
|
|
58
|
-
@VueProperty({
|
|
59
|
-
type: Array,
|
|
60
|
-
default: (): ReadonlyArray<Button.GeometricModifiers> => [],
|
|
61
|
-
validator: GeometricModifiersVuePropertyValidator({
|
|
62
|
-
GeometricModifiers: Button.GeometricModifiers,
|
|
63
|
-
CSS_NAMESPACE: "Button--YDF__LoadingPlaceholder"
|
|
64
|
-
})
|
|
65
|
-
})
|
|
66
|
-
@preventNullForOptionalVueProperty
|
|
67
|
-
protected readonly geometricModifiers!: ReadonlyArray<ElementOfPseudoEnumeration<Button.GeometricModifiers>>;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
protected get rootElementModifierCSS_Classes(): ReadonlyArray<string> {
|
|
71
|
-
return YDF_ComponentsCoordinator.generateRootElementModifierCSS_Classes({
|
|
72
|
-
CSS_Namespace: Button.CSS_NAMESPACE,
|
|
73
|
-
activeTheme: this.theme,
|
|
74
|
-
allThemes: Button.Themes,
|
|
75
|
-
areThemesCSS_ClassesCommon: this.areThemesCSS_ClassesCommon,
|
|
76
|
-
activeGeometricVariation: this.geometricVariation,
|
|
77
|
-
allGeometricVariations: Button.GeometricVariations,
|
|
78
|
-
activeGeometricModifiers: this.geometricModifiers
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
}
|
package/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.vue.pug
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
.ValidatableControlShell--YDF(
|
|
2
|
-
:class="rootElementModifierCSS_Classes"
|
|
3
|
-
)
|
|
4
|
-
|
|
5
|
-
.ValidatableControlShell--YDF-Header(
|
|
6
|
-
v-if="mustDisplayHeader"
|
|
7
|
-
)
|
|
8
|
-
|
|
9
|
-
label.ValidatableControlShell--YDF-Label(
|
|
10
|
-
v-if="label"
|
|
11
|
-
:for="coreElementHTML_ID"
|
|
12
|
-
:id="labelElementHTML_ID"
|
|
13
|
-
) {{ label }}
|
|
14
|
-
|
|
15
|
-
Badge.ValidatableControlShell--YDF-Badge.ValidatableControlShell--YDF-Badge__Required(
|
|
16
|
-
v-if="mustDisplayRequiredInputBadge"
|
|
17
|
-
:valueLabel="localization.requirementBadges.required"
|
|
18
|
-
:theme="badgeTheme"
|
|
19
|
-
:geometricVariation="badgeGeometricVariation"
|
|
20
|
-
:geometricModifiers="[ Badge.GeometricModifiers.pillShape ]"
|
|
21
|
-
:decorativeVariation="requiredInputBadgeDecorativeVariation"
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
Badge.ValidatableControlShell--YDF-Badge.ValidatableControlShell--YDF-Badge__Optional(
|
|
25
|
-
v-else-if="mustDisplayOptionalInputBadge"
|
|
26
|
-
:valueLabel="localization.requirementBadges.optional"
|
|
27
|
-
:theme="badgeTheme"
|
|
28
|
-
:geometricVariation="badgeGeometricVariation"
|
|
29
|
-
:geometricModifiers="[ Badge.GeometricModifiers.pillShape ]"
|
|
30
|
-
:decorativeVariation="optionalInputBadgeDecorativeVariation"
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
Badge.ValidatableControlShell--YDF-Badge.ValidatableControlShell--YDF-Badge__Invisible(
|
|
34
|
-
v-else-if="mustAddInvisibleBadgeForHeightEqualizingWhenNoBadge"
|
|
35
|
-
:valueLabel="localization.requirementBadges.optional"
|
|
36
|
-
:theme="badgeTheme"
|
|
37
|
-
:geometricVariation="badgeGeometricVariation"
|
|
38
|
-
:geometricModifiers="[ Badge.GeometricModifiers.pillShape ]"
|
|
39
|
-
:decorativeVariation="optionalInputBadgeDecorativeVariation"
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
p.ValidatableControlShell--YDF-Guidance(
|
|
44
|
-
v-if="formattedGuidance"
|
|
45
|
-
v-html="formattedGuidance"
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
.ValidatableControlShell--YDF-MainSlotCustomizableWrapper(
|
|
50
|
-
:class="mainSlotWrapperAdditionalCSS_Classes"
|
|
51
|
-
)
|
|
52
|
-
slot
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
VerticallySlidingAlwaysMountedContainer.ValidatableControlShell--YDF-ValidationErrorsMessagesList(
|
|
56
|
-
:modelValue="invalidInputHighlightingIfAnyValidationErrorsMessages && validationErrorsMessages.length > 0"
|
|
57
|
-
tag="ul"
|
|
58
|
-
:duration="errorsListExpandingAnimationDuration__milliseconds"
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
li.ValidatableControlShell--YDF-ValidationErrorsMessagesList-Item(
|
|
62
|
-
v-for="validationErrorMessage of validationErrorsMessagesCopyForAnimating"
|
|
63
|
-
:key="validationErrorMessage"
|
|
64
|
-
) {{ validationErrorMessage }}
|