@yamato-daiwa/frontend-vue 0.2.0 → 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 -217
- package/Distributable/index.js +1 -0
- package/README.md +5 -0
- package/package.json +43 -48
- package/.idea/.name +0 -1
- package/.idea/Main.iml +0 -12
- 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 -7
- 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 -30
- package/Source/GUI_Components/AdmonitionBlock/AdmonitionBlock.vue.pug +0 -43
- package/Source/GUI_Components/AdmonitionBlock/AdmonitionBlock.vue.ts +0 -230
- package/Source/GUI_Components/Badge/Badge.vue.pug +0 -12
- package/Source/GUI_Components/Badge/Badge.vue.ts +0 -205
- package/Source/GUI_Components/Badge/LoadingPlaceholder/Badge-LoadingPlaceholder.vue.pug +0 -3
- package/Source/GUI_Components/Badge/LoadingPlaceholder/Badge-LoadingPlaceholder.vue.ts +0 -74
- package/Source/GUI_Components/Controls/Buttons/Plain/Button.vue.pug +0 -70
- package/Source/GUI_Components/Controls/Buttons/Plain/Button.vue.ts +0 -352
- 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 -74
- package/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.vue.pug +0 -51
- package/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.vue.ts +0 -296
- package/Source/GUI_Components/Controls/Validatables/InputtableControl.ts +0 -134
- package/Source/GUI_Components/Controls/Validatables/TextBox/TextBox.vue.pug +0 -29
- package/Source/GUI_Components/Controls/Validatables/TextBox/TextBox.vue.ts +0 -260
- package/Source/GUI_Components/Controls/Validatables/ValidatableControl.ts +0 -259
- package/Source/GUI_Components/OverflowSafeSingleLineLabel.vue +0 -25
- package/Source/GUI_Components/ThemesShowcase.vue +0 -118
- package/Source/GUI_Components/YDF_ComponentsCoordinator.ts +0 -158
- package/Source/GUI_Components/_Decorators/OptionalButNotNullableVueProperty.ts +0 -65
- 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/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/_Utils/validateVuePropertyAndLogIfInvalid.ts +0 -34
- 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/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 -37
- 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 -37
- 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 -49
- 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 -43
- 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 -61
- 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 -93
- package/Workbenches/Source/Workbenches.pug +0 -97
- package/eslint.config.js +0 -29
- package/tsconfig.declarations.json +0 -4
- package/tsconfig.json +0 -24
- package/yda.config.yaml +0 -120
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
/* ─── Assets ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2
|
-
import componentVueTemplate from "./Button.vue.pug";
|
|
3
|
-
|
|
4
|
-
/* ─── Framework ──────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
5
|
-
import {
|
|
6
|
-
ComponentBase as VueComponentConfiguration,
|
|
7
|
-
Vue as VueComponent,
|
|
8
|
-
Prop as VueProperty
|
|
9
|
-
} from "vue-facing-decorator";
|
|
10
|
-
import type { RouteLocationRaw as VueRouterRawLocation } from "vue-router";
|
|
11
|
-
|
|
12
|
-
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
13
|
-
import YDF_ComponentsCoordinator from "../../../YDF_ComponentsCoordinator";
|
|
14
|
-
import InvalidVuePropertiesCombinationError from
|
|
15
|
-
"../../../_Errors/InvalidVuePropertiesCombination/InvalidVuePropertiesCombinationError";
|
|
16
|
-
import {
|
|
17
|
-
Logger,
|
|
18
|
-
isNumber,
|
|
19
|
-
isString,
|
|
20
|
-
isNonEmptyString,
|
|
21
|
-
isEitherUndefinedOrNull,
|
|
22
|
-
isNeitherUndefinedNorNull,
|
|
23
|
-
isElementOfEnumeration,
|
|
24
|
-
isArbitraryObject,
|
|
25
|
-
emptyStringToNull,
|
|
26
|
-
type ElementOfPseudoEnumeration
|
|
27
|
-
} from "@yamato-daiwa/es-extensions";
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@VueComponentConfiguration({
|
|
31
|
-
name: Button.CSS_NAMESPACE,
|
|
32
|
-
template: componentVueTemplate
|
|
33
|
-
})
|
|
34
|
-
class Button extends VueComponent {
|
|
35
|
-
|
|
36
|
-
/* ━━━ Static Fields ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
37
|
-
public static CSS_NAMESPACE: string = "Button--YDF";
|
|
38
|
-
|
|
39
|
-
public static HTML_Types: Button.HTML_Types = {
|
|
40
|
-
regular: "BUTTON",
|
|
41
|
-
submit: "SUBMIT",
|
|
42
|
-
inputButton: "INPUT_BUTTON",
|
|
43
|
-
inputSubmit: "INPUT_SUBMIT",
|
|
44
|
-
inputReset: "INPUT_RESET"
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/* ━━━ Non-reactive Instance Fields ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
49
|
-
protected IS_NUXT!: boolean;
|
|
50
|
-
|
|
51
|
-
private initializeNonReactiveClassFields(): void {
|
|
52
|
-
this.IS_NUXT = "$nuxt" in window;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/* ━━━ Common Properties ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
57
|
-
@VueProperty({
|
|
58
|
-
type: String,
|
|
59
|
-
default: Button.HTML_Types.regular,
|
|
60
|
-
validator: (rawValue: string): boolean => isElementOfEnumeration(rawValue, Button.HTML_Types)
|
|
61
|
-
})
|
|
62
|
-
protected readonly HTML_Type!: ElementOfPseudoEnumeration<Button.HTML_Types>;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/* ─── Textings ─────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
66
|
-
@VueProperty({ validator: (value: unknown): boolean => isNonEmptyString(value) || isNumber(value) })
|
|
67
|
-
protected readonly label?: string | number | null;
|
|
68
|
-
|
|
69
|
-
@VueProperty({ validator: isNonEmptyString })
|
|
70
|
-
protected readonly accessibilityGuidance?: string | null;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/* ─── Links ────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
74
|
-
@VueProperty({ validator: (value: unknown): boolean => isNonEmptyString(value) || isArbitraryObject(value) })
|
|
75
|
-
protected readonly route?: VueRouterRawLocation | null;
|
|
76
|
-
|
|
77
|
-
@VueProperty({ validator: isNonEmptyString })
|
|
78
|
-
protected readonly externalURI?: string | null;
|
|
79
|
-
|
|
80
|
-
@VueProperty({ type: Boolean, default: false })
|
|
81
|
-
protected readonly mustOpenLinkInNewTab!: boolean;
|
|
82
|
-
|
|
83
|
-
@VueProperty({ type: Boolean, default: false })
|
|
84
|
-
protected readonly mustRequestNotFollowLinkForCrawlingToSearchEngine!: boolean;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/* ─── Status ───────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
88
|
-
@VueProperty({ type: Boolean, default: false })
|
|
89
|
-
protected readonly disabled!: boolean;
|
|
90
|
-
|
|
91
|
-
@VueProperty({ type: Boolean, default: false })
|
|
92
|
-
protected readonly toggled!: boolean;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/* ━━━ Theming ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
96
|
-
public static readonly Themes: Button.Themes = { regular: "REGULAR" };
|
|
97
|
-
|
|
98
|
-
@VueProperty({
|
|
99
|
-
type: String,
|
|
100
|
-
default: Button.Themes.regular,
|
|
101
|
-
validator: (rawValue: string): boolean => isElementOfEnumeration(rawValue, Button.Themes)
|
|
102
|
-
})
|
|
103
|
-
protected readonly theme!: string;
|
|
104
|
-
|
|
105
|
-
public static defineThemes(themesNames: ReadonlyArray<string>): typeof Button {
|
|
106
|
-
return YDF_ComponentsCoordinator.defineThemes(themesNames, Button);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
public static areThemesCSS_ClassesCommon: boolean = YDF_ComponentsCoordinator.areThemesCSS_ClassesCommon;
|
|
110
|
-
|
|
111
|
-
public static considerThemesAsCommon(): void {
|
|
112
|
-
Button.areThemesCSS_ClassesCommon = true;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@VueProperty({ type: Boolean, default: Button.areThemesCSS_ClassesCommon })
|
|
116
|
-
private readonly areThemesCSS_ClassesCommon!: boolean;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
/* ─── Geometry ─────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
120
|
-
public static readonly GeometricVariations: Button.GeometricVariations = {
|
|
121
|
-
regular: "REGULAR",
|
|
122
|
-
small: "SMALL",
|
|
123
|
-
linkLike: "LINK_LIKE"
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
@VueProperty({
|
|
127
|
-
type: String,
|
|
128
|
-
default: Button.GeometricVariations.regular,
|
|
129
|
-
validator: (rawValue: string): boolean => isElementOfEnumeration(rawValue, Button.GeometricVariations)
|
|
130
|
-
})
|
|
131
|
-
protected readonly geometricVariation!: string;
|
|
132
|
-
|
|
133
|
-
public static defineGeometricVariations(geometricVariationsNames: ReadonlyArray<string>): typeof Button {
|
|
134
|
-
return YDF_ComponentsCoordinator.defineGeometricVariations(geometricVariationsNames, Button);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@VueProperty({
|
|
138
|
-
type: Array,
|
|
139
|
-
default: (): ReadonlyArray<string> => [],
|
|
140
|
-
validator: (rawValue: ReadonlyArray<unknown>): boolean =>
|
|
141
|
-
rawValue.every(
|
|
142
|
-
(element: unknown): boolean => isString(element) && isElementOfEnumeration(element, Button.GeometricModifiers)
|
|
143
|
-
)
|
|
144
|
-
})
|
|
145
|
-
protected readonly geometricModifiers!: ReadonlyArray<Button.GeometricModifiers>;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
/* ─── Decoration ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
149
|
-
public static readonly DecorativeVariations: Button.DecorativeVariations = {
|
|
150
|
-
regular: "REGULAR",
|
|
151
|
-
accented: "ACCENTED",
|
|
152
|
-
danger: "DANGER",
|
|
153
|
-
linkLike: "LINK_LIKE"
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
@VueProperty({
|
|
157
|
-
type: String,
|
|
158
|
-
default: Button.DecorativeVariations.regular,
|
|
159
|
-
validator: (rawValue: string): boolean => isElementOfEnumeration(rawValue, Button.DecorativeVariations)
|
|
160
|
-
})
|
|
161
|
-
protected readonly decorativeVariation!: string;
|
|
162
|
-
|
|
163
|
-
public static defineDecorativeVariations(decorativeVariationsNames: ReadonlyArray<string>): typeof Button {
|
|
164
|
-
return YDF_ComponentsCoordinator.defineDecorativeVariations(decorativeVariationsNames, Button);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
@VueProperty({
|
|
169
|
-
type: Array,
|
|
170
|
-
default: (): ReadonlyArray<string> => [],
|
|
171
|
-
validator: (rawValue: ReadonlyArray<unknown>): boolean =>
|
|
172
|
-
rawValue.every(
|
|
173
|
-
(element: unknown): boolean => isString(element) && isElementOfEnumeration(element, Button.DecorativeModifiers)
|
|
174
|
-
)
|
|
175
|
-
})
|
|
176
|
-
protected readonly decorativeModifiers!: ReadonlyArray<Button.DecorativeModifiers>;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
/* ━━━ Lifecycle Hooks ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
180
|
-
public created(): void {
|
|
181
|
-
|
|
182
|
-
if (
|
|
183
|
-
(!isNonEmptyString(this.label) && isNumber(this.label)) &&
|
|
184
|
-
(
|
|
185
|
-
this.HTML_Type === Button.HTML_Types.inputButton ||
|
|
186
|
-
this.HTML_Type === Button.HTML_Types.inputSubmit ||
|
|
187
|
-
this.HTML_Type === Button.HTML_Types.inputReset
|
|
188
|
-
)
|
|
189
|
-
) {
|
|
190
|
-
Logger.throwErrorAndLog({
|
|
191
|
-
errorInstance: new InvalidVuePropertiesCombinationError({
|
|
192
|
-
vueComponentName: Button.name,
|
|
193
|
-
messageSpecificPart:
|
|
194
|
-
"When button has HTML type \"inputButton\", \"inputSubmit\" or \"inputReset\", the \"label\" property " +
|
|
195
|
-
"must be specified with non-empty string of number."
|
|
196
|
-
}),
|
|
197
|
-
title: InvalidVuePropertiesCombinationError.localization.defaultTitle,
|
|
198
|
-
occurrenceLocation: `${ Button.name }.created()`
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
this.initializeNonReactiveClassFields();
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
/* ━━━ Root Element Tag Name ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
208
|
-
protected get isButtonTheTagNameOfRootElement(): boolean {
|
|
209
|
-
return isEitherUndefinedOrNull(this.route) &&
|
|
210
|
-
isEitherUndefinedOrNull(this.externalURI) &&
|
|
211
|
-
(this.HTML_Type === Button.HTML_Types.regular || this.HTML_Type === Button.HTML_Types.submit);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
protected get isInputTheTagNameOfRootElement(): boolean {
|
|
215
|
-
return isEitherUndefinedOrNull(this.route) &&
|
|
216
|
-
isEitherUndefinedOrNull(this.externalURI) &&
|
|
217
|
-
(
|
|
218
|
-
this.HTML_Type === Button.HTML_Types.inputButton ||
|
|
219
|
-
this.HTML_Type === Button.HTML_Types.inputSubmit ||
|
|
220
|
-
this.HTML_Type === Button.HTML_Types.inputReset
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
private get isRouterLinkTheRootElement(): boolean {
|
|
225
|
-
return isNeitherUndefinedNorNull(this.route);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
private get isAnchorTheTagNameOfRootElement(): boolean {
|
|
229
|
-
return isNeitherUndefinedNorNull(this.externalURI);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
/* ━━━ Root Element Attributes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
234
|
-
protected get typeAttributeValueOfButtonOrInputElement(): string | null {
|
|
235
|
-
|
|
236
|
-
if (!this.isButtonTheTagNameOfRootElement && !this.isInputTheTagNameOfRootElement) {
|
|
237
|
-
return null;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
switch (this.HTML_Type) {
|
|
242
|
-
case Button.HTML_Types.regular: return "button";
|
|
243
|
-
case Button.HTML_Types.submit: return "submit";
|
|
244
|
-
case Button.HTML_Types.inputButton: return "button";
|
|
245
|
-
case Button.HTML_Types.inputSubmit: return "submit";
|
|
246
|
-
case Button.HTML_Types.inputReset: return "reset";
|
|
247
|
-
default: return null;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
protected get relAttributeValueOfAnchorElement(): string | null {
|
|
253
|
-
return emptyStringToNull(
|
|
254
|
-
[
|
|
255
|
-
...this.mustOpenLinkInNewTab ? [ "noopener", "noreferrer" ] : [],
|
|
256
|
-
...this.mustRequestNotFollowLinkForCrawlingToSearchEngine ? [ "nofollow" ] : []
|
|
257
|
-
].join(" ")
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
/* ━━━ CSS Classes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
263
|
-
protected get rootElementModifierCSS_Classes(): ReadonlyArray<string> {
|
|
264
|
-
return [
|
|
265
|
-
|
|
266
|
-
...(this.isAnchorTheTagNameOfRootElement || this.isRouterLinkTheRootElement) && this.disabled ?
|
|
267
|
-
[ `${ Button.CSS_NAMESPACE }__DisabledState` ] : [],
|
|
268
|
-
|
|
269
|
-
...YDF_ComponentsCoordinator.addThemeCSS_ClassToArrayIfMust({
|
|
270
|
-
themeValue: this.theme,
|
|
271
|
-
allThemes: Button.Themes,
|
|
272
|
-
areThemesCSS_ClassesCommon: this.areThemesCSS_ClassesCommon,
|
|
273
|
-
CSS_Namespace: Button.CSS_NAMESPACE
|
|
274
|
-
}),
|
|
275
|
-
|
|
276
|
-
...YDF_ComponentsCoordinator.addGeometricVariationCSS_ClassToArrayIfMust({
|
|
277
|
-
geometricVariation: this.geometricVariation,
|
|
278
|
-
allGeometricVariations: Button.GeometricVariations,
|
|
279
|
-
CSS_Namespace: Button.CSS_NAMESPACE
|
|
280
|
-
}),
|
|
281
|
-
|
|
282
|
-
...YDF_ComponentsCoordinator.
|
|
283
|
-
generateDemandedGeometricModifiersCSS_Classes(Button.CSS_NAMESPACE, this.geometricModifiers),
|
|
284
|
-
|
|
285
|
-
...YDF_ComponentsCoordinator.addDecorativeVariationCSS_ClassToArrayIfMust({
|
|
286
|
-
decorativeVariation: this.decorativeVariation,
|
|
287
|
-
allDecorativeVariations: Button.DecorativeVariations,
|
|
288
|
-
CSS_Namespace: Button.CSS_NAMESPACE
|
|
289
|
-
}),
|
|
290
|
-
|
|
291
|
-
...YDF_ComponentsCoordinator.
|
|
292
|
-
generateDemandedDecorativeModifiersCSS_Classes(Button.CSS_NAMESPACE, this.decorativeModifiers)
|
|
293
|
-
|
|
294
|
-
];
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
namespace Button {
|
|
301
|
-
|
|
302
|
-
export type HTML_Types = Readonly<{
|
|
303
|
-
regular: "BUTTON";
|
|
304
|
-
submit: "SUBMIT";
|
|
305
|
-
inputButton: "INPUT_BUTTON";
|
|
306
|
-
inputSubmit: "INPUT_SUBMIT";
|
|
307
|
-
inputReset: "INPUT_RESET";
|
|
308
|
-
}>;
|
|
309
|
-
|
|
310
|
-
export type Themes = {
|
|
311
|
-
readonly regular: "REGULAR";
|
|
312
|
-
[themeName: string]: string;
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
export type GeometricVariations = {
|
|
316
|
-
readonly regular: "REGULAR";
|
|
317
|
-
readonly small: "SMALL";
|
|
318
|
-
readonly linkLike: "LINK_LIKE";
|
|
319
|
-
[variationName: string]: string;
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
export enum GeometricModifiers {
|
|
323
|
-
pillShape = "PILL_SHAPE",
|
|
324
|
-
squareShape = "SQUARE_SHAPE",
|
|
325
|
-
squareShapeUnlessOverflowed = "SQUARE_SHAPE_UNLESS_OVERFLOWED",
|
|
326
|
-
singleLine = "SINGLE_LINE",
|
|
327
|
-
noLeftBorderAndRoundings = "NO_LEFT_BORDER_AND_ROUNDINGS",
|
|
328
|
-
noRightBorderAndRoundings = "NO_RIGHT_BORDER_AND_ROUNDINGS",
|
|
329
|
-
noTopBorderAndRoundings = "NO_TOP_BORDER_AND_ROUNDINGS",
|
|
330
|
-
noBottomBorderAndRoundings = "NO_BOTTOM_BORDER_AND_ROUNDINGS",
|
|
331
|
-
noRoundings = "NO_ROUNDINGS",
|
|
332
|
-
horizontallyShrinkable = "HORIZONTALLY_SHRINKABLE"
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
export type DecorativeVariations = {
|
|
336
|
-
readonly regular: "REGULAR";
|
|
337
|
-
readonly accented: "ACCENTED";
|
|
338
|
-
readonly danger: "DANGER";
|
|
339
|
-
readonly linkLike: "LINK_LIKE";
|
|
340
|
-
[variationName: string]: string;
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
export enum DecorativeModifiers {
|
|
344
|
-
bordersDisguising = "BORDERS_DISGUISING",
|
|
345
|
-
noBackground = "NO_BACKGROUND",
|
|
346
|
-
noBackgroundInDefaultState = "NO_BACKGROUND_IN_DEFAULT_STATE"
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
export default Button;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/* ─── Assets ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2
|
-
import Button from "../Button.vue";
|
|
3
|
-
import componentVueTemplate from "./Button-LoadingPlaceholder.vue.pug";
|
|
4
|
-
|
|
5
|
-
/* ─── Framework ──────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
6
|
-
import {
|
|
7
|
-
ComponentBase as VueComponentConfiguration,
|
|
8
|
-
Vue as VueComponent,
|
|
9
|
-
Prop as VueProperty
|
|
10
|
-
} from "vue-facing-decorator";
|
|
11
|
-
|
|
12
|
-
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
13
|
-
import { isString, isElementOfEnumeration } from "@yamato-daiwa/es-extensions";
|
|
14
|
-
import YDF_ComponentsCoordinator from "../../../../YDF_ComponentsCoordinator";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@VueComponentConfiguration({
|
|
18
|
-
name: "Button--YDF-LoadingPlaceholder",
|
|
19
|
-
template: componentVueTemplate
|
|
20
|
-
})
|
|
21
|
-
export default class ButtonLoadingPlaceholder extends VueComponent {
|
|
22
|
-
|
|
23
|
-
@VueProperty({
|
|
24
|
-
type: String,
|
|
25
|
-
default: Button.Themes.regular,
|
|
26
|
-
validator: (rawValue: string): boolean => isElementOfEnumeration(rawValue, Button.Themes)
|
|
27
|
-
})
|
|
28
|
-
protected readonly theme!: string;
|
|
29
|
-
|
|
30
|
-
@VueProperty({ type: Boolean, default: Button.areThemesCSS_ClassesCommon })
|
|
31
|
-
protected readonly areThemesCSS_ClassesCommon!: boolean;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
@VueProperty({
|
|
35
|
-
type: String,
|
|
36
|
-
default: Button.GeometricVariations.regular,
|
|
37
|
-
validator: (rawValue: string): boolean => isElementOfEnumeration(rawValue, Button.GeometricVariations)
|
|
38
|
-
})
|
|
39
|
-
protected readonly geometricVariation!: string;
|
|
40
|
-
|
|
41
|
-
@VueProperty({
|
|
42
|
-
type: Array,
|
|
43
|
-
default: (): ReadonlyArray<string> => [],
|
|
44
|
-
validator: (rawValue: ReadonlyArray<unknown>): boolean =>
|
|
45
|
-
rawValue.every(
|
|
46
|
-
(element: unknown): boolean => isString(element) && isElementOfEnumeration(element, Button.GeometricModifiers)
|
|
47
|
-
)
|
|
48
|
-
})
|
|
49
|
-
protected readonly geometricModifiers!: ReadonlyArray<Button.GeometricModifiers>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
protected get rootElementModifierCSS_Classes(): ReadonlyArray<string> {
|
|
53
|
-
return [
|
|
54
|
-
|
|
55
|
-
...YDF_ComponentsCoordinator.addThemeCSS_ClassToArrayIfMust({
|
|
56
|
-
themeValue: this.theme,
|
|
57
|
-
allThemes: Button.Themes,
|
|
58
|
-
areThemesCSS_ClassesCommon: this.areThemesCSS_ClassesCommon,
|
|
59
|
-
CSS_Namespace: Button.CSS_NAMESPACE
|
|
60
|
-
}),
|
|
61
|
-
|
|
62
|
-
...YDF_ComponentsCoordinator.addGeometricVariationCSS_ClassToArrayIfMust({
|
|
63
|
-
geometricVariation: this.geometricVariation,
|
|
64
|
-
allGeometricVariations: Button.GeometricVariations,
|
|
65
|
-
CSS_Namespace: Button.CSS_NAMESPACE
|
|
66
|
-
}),
|
|
67
|
-
|
|
68
|
-
...YDF_ComponentsCoordinator.
|
|
69
|
-
generateDemandedGeometricModifiersCSS_Classes(Button.CSS_NAMESPACE, this.geometricModifiers)
|
|
70
|
-
|
|
71
|
-
];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|
package/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.vue.pug
DELETED
|
@@ -1,51 +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
|
-
span.ValidatableControlShell--YDF-Badge.ValidatableControlShell--YDF-Badge__RequiredInput(
|
|
16
|
-
v-if="mustDisplayRequiredInputBadge"
|
|
17
|
-
) {{ localization.requirementBadges.required }}
|
|
18
|
-
|
|
19
|
-
span.ValidatableControlShell--YDF-Badge.ValidatableControlShell--YDF-Badge__OptionalInput(
|
|
20
|
-
v-else-if="mustDisplayOptionalInputBadge"
|
|
21
|
-
) {{ localization.requirementBadges.optional }}
|
|
22
|
-
|
|
23
|
-
span.ValidatableControlShell--YDF-Badge.ValidatableControlShell--YDF-Badge__Invisible(
|
|
24
|
-
v-else-if="mustAddInvisibleBadgeForHeightEqualizingWhenNoBadge"
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
p.ValidatableControlShell--YDF-Guidance(
|
|
29
|
-
v-if="guidance"
|
|
30
|
-
v-html="guidance"
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
.ValidatableControlShell--YDF-MainSlotCustomizableWrapper(
|
|
35
|
-
:class="mainSlotWrapperAdditionalCSS_Classes"
|
|
36
|
-
): slot
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
//-
|
|
40
|
-
VerticallySlidingAlwaysMountedContainer.ValidatableControlShell--YDF-ValidationErrorsMessagesList(
|
|
41
|
-
v-model="isDisplaying"
|
|
42
|
-
expanded="invalidInputHighlightingIfAnyValidationErrorsMessages && validationErrorsMessagesCopyForAnimating.length > 0"
|
|
43
|
-
HTML_Tag="ul"
|
|
44
|
-
mustAnimateHeightWhenContentsAreChanged="true"
|
|
45
|
-
animationDuration__seconds="VALIDATION_ERRORS_MESSAGES_ANIMATION_DURATION__SECONDS"
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
li.ValidatableControlShell--YDF-ValidationErrorMessage(
|
|
49
|
-
v-for="validationErrorMessage of validationErrorsMessagesCopyForAnimating"
|
|
50
|
-
key="`VALIDATION_ERROR_MESSAGE-${ validationErrorMessage }`"
|
|
51
|
-
) {{ validationErrorMessage }}
|