@yamato-daiwa/frontend-vue 0.1.0 → 0.3.0-alpha.1
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/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +0 -1
- package/README.md +13 -2
- package/Source/Functions/getElementByVueReference.ts +105 -8
- package/Source/GUI_Components/AdmonitionBlock/AdmonitionBlock.vue +67 -0
- package/Source/GUI_Components/AdmonitionBlock/AdmonitionBlock.vue.d.ts +48 -0
- package/Source/GUI_Components/AdmonitionBlock/{AdmonitionBlock.vue.ts → AdmonitionBlockLogic.vue.ts} +88 -64
- package/Source/GUI_Components/Badge/Badge.vue.ts +103 -68
- package/Source/GUI_Components/Badge/LoadingPlaceholder/Badge-LoadingPlaceholder.vue.ts +52 -33
- package/Source/GUI_Components/Controls/Buttons/Closing/ClosingButton.vue.pug +1 -0
- package/Source/GUI_Components/Controls/Buttons/Closing/ClosingButton.vue.ts +224 -0
- package/Source/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton-ForInheritance.vue.ts +253 -0
- package/Source/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton.vue +24 -0
- package/Source/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton.vue.d.ts +45 -0
- package/Source/GUI_Components/Controls/Buttons/HamburgerMenu/HamburgerMenuButton.vue.pug +0 -0
- package/Source/GUI_Components/Controls/Buttons/Plain/Button.vue.pug +5 -7
- package/Source/GUI_Components/Controls/Buttons/Plain/Button.vue.ts +257 -116
- package/Source/GUI_Components/Controls/Buttons/Plain/LoadingPlaceholder/Button-LoadingPlaceholder.vue.pug +1 -1
- package/Source/GUI_Components/Controls/Buttons/Plain/LoadingPlaceholder/Button-LoadingPlaceholder.vue.ts +42 -33
- package/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.vue.pug +64 -0
- package/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.vue.ts +478 -0
- package/Source/GUI_Components/Controls/Validatables/InputtableControl.vue.ts +233 -0
- package/Source/GUI_Components/Controls/Validatables/TextBox/TextBox.vue.pug +67 -0
- package/Source/GUI_Components/Controls/Validatables/TextBox/TextBox.vue.ts +702 -0
- package/Source/GUI_Components/Controls/{ValidatableControl.ts → Validatables/ValidatableControl.ts} +64 -55
- package/Source/GUI_Components/Controls/Validatables/ValidatableControlsGroup.ts +176 -0
- package/Source/GUI_Components/OverflowSafeSingleLineLabel.vue +9 -2
- package/Source/GUI_Components/ThemesShowcase.vue +10 -5
- package/Source/GUI_Components/YDF_ComponentsCoordinator.ts +317 -0
- package/Source/GUI_Components/_Decorators/AccessibleFromTemplateAsNonReactive.ts +67 -0
- package/Source/GUI_Components/_Decorators/NonReactiveVueData.ts +26 -0
- package/Source/GUI_Components/_Decorators/preventNullForOptionalVueProperty.ts +64 -0
- package/Source/GUI_Components/_Errors/ForbiddenNullValueOfOptionalVueProperty/ForbiddenNullValueOfOptionalVuePropertyError.ts +47 -0
- package/Source/GUI_Components/_Errors/ForbiddenNullValueOfOptionalVueProperty/ForbiddenNullValueOfOptionalVuePropertyErrorLocalization.english.ts +24 -0
- package/Source/GUI_Components/_Errors/InvalidVueProperty/InvalidVuePropertyError.ts +43 -0
- package/Source/GUI_Components/_Errors/InvalidVueProperty/InvalidVuePropertyErrorLocalization.english.ts +16 -0
- package/Source/GUI_Components/_VuePropertiesValidators/BooleanVuePropertyValidator.ts +25 -0
- package/Source/GUI_Components/_VuePropertiesValidators/DecorativeModifiersVuePropertyValidator.ts +22 -0
- package/Source/GUI_Components/_VuePropertiesValidators/DecorativeVariationVuePropertyValidator.ts +23 -0
- package/Source/GUI_Components/_VuePropertiesValidators/ElementOfEnumerationVuePropertyValidator.ts +29 -0
- package/Source/GUI_Components/_VuePropertiesValidators/GeometricModifiersVuePropertyValidator.ts +22 -0
- package/Source/GUI_Components/_VuePropertiesValidators/GeometricVariationVuePropertyValidator.ts +23 -0
- package/Source/GUI_Components/_VuePropertiesValidators/NaturalNumberOrZeroVuePropertyValidator.ts +25 -0
- package/Source/GUI_Components/_VuePropertiesValidators/NonEmptyStringVuePropertyValidator.ts +25 -0
- package/Source/GUI_Components/_VuePropertiesValidators/ThemeVuePropertyValidator.ts +23 -0
- package/Source/GUI_Components/_VuePropertiesValidators/VuePropertyValidator.ts +51 -0
- package/Source/index.ts +28 -5
- package/Workbenches/Source/Decorators/Decorators.workbench.pug +20 -0
- package/Workbenches/Source/Decorators/Decorators.workbench.ts +5 -0
- package/Workbenches/Source/Decorators/DecoratorsWorkbench.vue +69 -0
- package/Workbenches/Source/GUI_Components/AdmonitionBlock/AdmonitionBlockComponentTestSite.vue +24 -2
- package/Workbenches/Source/GUI_Components/Badge/BadgeBlockComponentTestSite.vue +24 -2
- package/Workbenches/Source/GUI_Components/Controls/Buttons/Plain/Button.workbench.pug +20 -0
- package/Workbenches/Source/GUI_Components/Controls/Buttons/Plain/Button.workbench.ts +5 -0
- package/Workbenches/Source/GUI_Components/Controls/Buttons/Plain/ButtonComponentTestSite.vue +60 -0
- package/Workbenches/Source/GUI_Components/Controls/Validatable/TextBox/TextBox.workbench.pug +20 -0
- package/Workbenches/Source/GUI_Components/Controls/Validatable/TextBox/TextBox.workbench.ts +5 -0
- package/Workbenches/Source/GUI_Components/Controls/Validatable/TextBox/TextBoxWorkbench.vue +86 -0
- package/Workbenches/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.workbench.pug +20 -0
- package/Workbenches/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.workbench.ts +5 -0
- package/Workbenches/Source/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShellTestSite.vue +68 -0
- package/Workbenches/Source/GUI_Components/OverflowSafeSingleLineLabel/OverflowSafeSingleLineLabelComponentTestSite.vue +9 -2
- package/Workbenches/Source/Workbenches.pug +62 -0
- package/eslint.config.js +15 -0
- package/package.json +40 -48
- package/tsconfig.json +0 -3
- package/yda.config.yaml +65 -65
- package/Source/GUI_Components/AdmonitionBlock/AdmonitionBlock.vue.pug +0 -43
- package/Source/GUI_Components/ComponentsAuxiliaries.ts +0 -124
- package/Source/GUI_Components/Controls/InputtableControl.ts +0 -97
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
|
|
3
|
+
ValidatableControlShell
|
|
4
|
+
.DummyCore Core Element Here 2
|
|
5
|
+
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<script lang="ts">
|
|
10
|
+
|
|
11
|
+
/* ─── GUI Components ───────────────────────────────────────────────────────────────────────────────────────────── */
|
|
12
|
+
import { ValidatableControlShell } from "../../../../../Source";
|
|
13
|
+
|
|
14
|
+
/* ─── Framework ────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
15
|
+
import {
|
|
16
|
+
Component as VueComponentOptions,
|
|
17
|
+
Vue as VueComponent,
|
|
18
|
+
toNative as transformToOptionAPI_Component
|
|
19
|
+
} from "vue-facing-decorator";
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@VueComponentOptions({
|
|
23
|
+
name: "ValidatableControlShellTestSite",
|
|
24
|
+
components: {
|
|
25
|
+
ValidatableControlShell
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
class ValidatableControlShellTestSite extends VueComponent {}
|
|
29
|
+
|
|
30
|
+
export default transformToOptionAPI_Component(ValidatableControlShellTestSite);
|
|
31
|
+
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
<style lang="stylus" scoped>
|
|
36
|
+
|
|
37
|
+
@require "../../../../../node_modules/@yamato-daiwa/frontend/Functionality.styl"
|
|
38
|
+
@require "../../../../../node_modules/@yamato-daiwa/frontend/GUI_Components.styl"
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
CrossBrowserStylesReset()
|
|
42
|
+
InitialGlobalCSS_Rules()
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
generateValidatableControlShellYDF_GUI_ComponentStyles()
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
.DummyCore
|
|
49
|
+
|
|
50
|
+
display flex
|
|
51
|
+
align-items center
|
|
52
|
+
|
|
53
|
+
width 200px
|
|
54
|
+
height 2rem
|
|
55
|
+
font-size 1rem
|
|
56
|
+
|
|
57
|
+
border-width 4px
|
|
58
|
+
border-radius 4px
|
|
59
|
+
padding 0.2rem 0.4rem
|
|
60
|
+
|
|
61
|
+
border-style dashed
|
|
62
|
+
border-color mediumblue
|
|
63
|
+
font-weight bold
|
|
64
|
+
color mediumblue
|
|
65
|
+
|
|
66
|
+
background-color: alpha(mediumblue, 30%)
|
|
67
|
+
|
|
68
|
+
</style>
|
|
@@ -22,15 +22,22 @@
|
|
|
22
22
|
import { OverflowSafeSingleLineLabel } from "../../../../Source";
|
|
23
23
|
|
|
24
24
|
/* ─── Framework ────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
25
|
-
import {
|
|
25
|
+
import {
|
|
26
|
+
Component as VueComponentOptions,
|
|
27
|
+
Vue as VueComponent,
|
|
28
|
+
toNative as transformToOptionAPI_Component
|
|
29
|
+
} from "vue-facing-decorator";
|
|
26
30
|
|
|
27
31
|
|
|
28
32
|
@VueComponentOptions({
|
|
33
|
+
name: "OverflowSafeSingleLineLabelComponentTestSite",
|
|
29
34
|
components: {
|
|
30
35
|
OverflowSafeSingleLineLabel
|
|
31
36
|
}
|
|
32
37
|
})
|
|
33
|
-
|
|
38
|
+
class OverflowSafeSingleLineLabelComponentTestSite extends VueComponent {}
|
|
39
|
+
|
|
40
|
+
export default transformToOptionAPI_Component(OverflowSafeSingleLineLabelComponentTestSite);
|
|
34
41
|
|
|
35
42
|
</script>
|
|
36
43
|
|
|
@@ -15,6 +15,12 @@ block append Metadata
|
|
|
15
15
|
|
|
16
16
|
tableOfContents: [
|
|
17
17
|
|
|
18
|
+
{
|
|
19
|
+
title: "Decorators",
|
|
20
|
+
URI: "@Workbenches/Decorators/Decorators.workbench",
|
|
21
|
+
progressStatus: StaticPreviewAnywherePage__YDF.PageDevelopmentProgressStatuses.implementationInProgress
|
|
22
|
+
},
|
|
23
|
+
|
|
18
24
|
{
|
|
19
25
|
|
|
20
26
|
heading: "GUI Components",
|
|
@@ -33,6 +39,62 @@ block append Metadata
|
|
|
33
39
|
progressStatus: StaticPreviewAnywherePage__YDF.PageDevelopmentProgressStatuses.accepted
|
|
34
40
|
}
|
|
35
41
|
|
|
42
|
+
],
|
|
43
|
+
|
|
44
|
+
sections: [
|
|
45
|
+
|
|
46
|
+
{
|
|
47
|
+
|
|
48
|
+
heading: "Controls",
|
|
49
|
+
|
|
50
|
+
pages: [
|
|
51
|
+
|
|
52
|
+
{
|
|
53
|
+
title: "ValidatableControlShell",
|
|
54
|
+
URI: "@Workbenches/GUI_Components/Controls/ValidatableControlShell/ValidatableControlShell.workbench",
|
|
55
|
+
progressStatus: StaticPreviewAnywherePage__YDF.PageDevelopmentProgressStatuses.implementationInProgress
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
],
|
|
59
|
+
|
|
60
|
+
sections: [
|
|
61
|
+
|
|
62
|
+
{
|
|
63
|
+
|
|
64
|
+
heading: "Validatables",
|
|
65
|
+
|
|
66
|
+
pages: [
|
|
67
|
+
|
|
68
|
+
{
|
|
69
|
+
title: "TextBox",
|
|
70
|
+
URI: "@Workbenches/GUI_Components/Controls/Validatable/TextBox/TextBox.workbench",
|
|
71
|
+
progressStatus: StaticPreviewAnywherePage__YDF.PageDevelopmentProgressStatuses.implementationInProgress
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
{
|
|
79
|
+
|
|
80
|
+
heading: "Buttons",
|
|
81
|
+
|
|
82
|
+
pages: [
|
|
83
|
+
|
|
84
|
+
{
|
|
85
|
+
title: "Plain Button",
|
|
86
|
+
URI: "@Workbenches/GUI_Components/Controls/Buttons/Plain/Button.workbench",
|
|
87
|
+
progressStatus: StaticPreviewAnywherePage__YDF.PageDevelopmentProgressStatuses.implementationInProgress
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
]
|
|
91
|
+
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
]
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
|
|
36
98
|
]
|
|
37
99
|
|
|
38
100
|
}
|
package/eslint.config.js
CHANGED
|
@@ -23,6 +23,21 @@ module.exports = [
|
|
|
23
23
|
/* The import from the Pug must not be counted as element */
|
|
24
24
|
"vue/valid-template-root": "off"
|
|
25
25
|
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
{
|
|
30
|
+
files: [
|
|
31
|
+
"Source/GUI_Components/_VuePropertiesValidators/VuePropertyValidator.ts",
|
|
32
|
+
"Source/GUI_Components/Controls/Validatables/ValidatableControl.ts"
|
|
33
|
+
],
|
|
34
|
+
rules: {
|
|
35
|
+
|
|
36
|
+
/* The merging of type/interface and namespace is completely valid TypeScript,
|
|
37
|
+
* but @typescript-eslint community does not wish to support it.
|
|
38
|
+
* https://github.com/eslint/eslint/issues/15504 */
|
|
39
|
+
"@typescript-eslint/no-redeclare": "off"
|
|
40
|
+
|
|
26
41
|
}
|
|
27
42
|
}
|
|
28
43
|
|
package/package.json
CHANGED
|
@@ -1,50 +1,42 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"vue-router": "4.5.0"
|
|
43
|
-
},
|
|
44
|
-
"scripts": {
|
|
45
|
-
"Rebuild Distributable": "yda build --selectiveExecution Distributable --mode PRODUCTION & npm run \"Generate TypeScript Types\"",
|
|
46
|
-
"Generate TypeScript Types": "tsc --project tsconfig.declarations.json --declaration --emitDeclarationOnly --outDir Distributable",
|
|
47
|
-
"Start Workbenches": "rimraf Workbenches/Output && yda build --selectiveExecution Workbenches --mode LOCAL_DEVELOPMENT",
|
|
48
|
-
"Lint": "eslint ."
|
|
49
|
-
}
|
|
2
|
+
"name": "@yamato-daiwa/frontend-vue",
|
|
3
|
+
"version": "0.3.0-alpha.1",
|
|
4
|
+
"description": "The adaptation of \"@yamato-daiwa/frontend\" package for Vue framework and also some additional functionality.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"frontend",
|
|
7
|
+
"vue"
|
|
8
|
+
],
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "Yamato Daiwa Co., Ltd.",
|
|
11
|
+
"email": "frontend-es-info@yamato-daiwa.com"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"homepage": "https://frontend.yamato-daiwa.com/",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/TokugawaTakeshi/yamato_daiwa-frontend.git"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/TokugawaTakeshi/yamato_daiwa-frontend/issues",
|
|
21
|
+
"email": "frontend-es-info@yamato-daiwa.com"
|
|
22
|
+
},
|
|
23
|
+
"module": "./Distributable/index.js",
|
|
24
|
+
"types": "./Distributable/index.d.ts",
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@yamato-daiwa/frontend": ">=2.0.0-beta.10",
|
|
27
|
+
"vue": "~3.5.0",
|
|
28
|
+
"vue-facing-decorator": "~3.0.0",
|
|
29
|
+
"vue-router": "~4.6.0"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@yamato-daiwa/es-extensions": "1.8.4",
|
|
33
|
+
"@yamato-daiwa/es-extensions-browserjs": "1.8.4",
|
|
34
|
+
"vue3-slide-up-down": "2.1.0"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"Rebuild Distributable": "yda build --selectiveExecution Distributable --mode PRODUCTION & npm run \"Generate TypeScript Types\"",
|
|
38
|
+
"Generate TypeScript Types": "tsc --project tsconfig.declarations.json --declaration --emitDeclarationOnly --outDir Distributable",
|
|
39
|
+
"Start Workbenches": "rimraf Workbenches/Output && yda build --selectiveExecution Workbenches --mode LOCAL_DEVELOPMENT",
|
|
40
|
+
"Lint": "eslint ."
|
|
41
|
+
}
|
|
50
42
|
}
|
package/tsconfig.json
CHANGED
package/yda.config.yaml
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
projectBuilding:
|
|
1
|
+
$projectBuilding:
|
|
2
2
|
|
|
3
|
-
commonSettings:
|
|
3
|
+
$commonSettings:
|
|
4
4
|
|
|
5
|
-
selectiveExecutions:
|
|
5
|
+
$selectiveExecutions:
|
|
6
6
|
|
|
7
7
|
Distributable:
|
|
8
8
|
|
|
9
|
-
tasksAndSourceFilesSelection:
|
|
9
|
+
$tasksAndSourceFilesSelection:
|
|
10
10
|
|
|
11
|
-
ECMA_ScriptLogicProcessing: [ Distributable ]
|
|
11
|
+
$ECMA_ScriptLogicProcessing: [ Distributable ]
|
|
12
12
|
|
|
13
13
|
Workbenches:
|
|
14
14
|
|
|
15
|
-
tasksAndSourceFilesSelection:
|
|
15
|
+
$tasksAndSourceFilesSelection:
|
|
16
16
|
|
|
17
|
-
markupProcessing: [ Workbenches ]
|
|
18
|
-
stylesProcessing: [ Workbenches ]
|
|
19
|
-
ECMA_ScriptLogicProcessing: [ Workbenches ]
|
|
17
|
+
$markupProcessing: [ Workbenches ]
|
|
18
|
+
$stylesProcessing: [ Workbenches ]
|
|
19
|
+
$ECMA_ScriptLogicProcessing: [ Workbenches ]
|
|
20
20
|
|
|
21
|
-
browserLiveReloadingSetupID: Workbenches
|
|
21
|
+
$browserLiveReloadingSetupID: Workbenches
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
# ━━━ Markup
|
|
25
|
-
markupProcessing:
|
|
24
|
+
# ━━━ Markup Processing ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
25
|
+
$markupProcessing:
|
|
26
26
|
|
|
27
|
-
common:
|
|
28
|
-
buildingModeDependent:
|
|
29
|
-
|
|
27
|
+
$common:
|
|
28
|
+
$buildingModeDependent:
|
|
29
|
+
$localDevelopment: { $mustResolveResourcesPointersToRelativePaths: true }
|
|
30
30
|
|
|
31
|
-
entryPointsGroups:
|
|
31
|
+
$entryPointsGroups:
|
|
32
32
|
|
|
33
33
|
Workbenches:
|
|
34
34
|
|
|
35
|
-
sourceFilesTopDirectoryRelativePath: Workbenches/Source
|
|
36
|
-
partialsRecognition:
|
|
37
|
-
excludeFilesWithPrefixes: "_"
|
|
38
|
-
excludeSubdirectoriesWithPrefixes: "_"
|
|
35
|
+
$sourceFilesTopDirectoryRelativePath: Workbenches/Source
|
|
36
|
+
$partialsRecognition:
|
|
37
|
+
$excludeFilesWithPrefixes: "_"
|
|
38
|
+
$excludeSubdirectoriesWithPrefixes: "_"
|
|
39
39
|
|
|
40
|
-
buildingModeDependent:
|
|
41
|
-
|
|
42
|
-
outputTopDirectoryRelativePath: Workbenches/Build
|
|
40
|
+
$buildingModeDependent:
|
|
41
|
+
$localDevelopment:
|
|
42
|
+
$outputTopDirectoryRelativePath: Workbenches/Build
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
# ━━━ Styles
|
|
46
|
-
stylesProcessing:
|
|
45
|
+
# ━━━ Styles Processing ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
46
|
+
$stylesProcessing:
|
|
47
47
|
|
|
48
|
-
entryPointsGroups:
|
|
48
|
+
$entryPointsGroups:
|
|
49
49
|
|
|
50
50
|
Workbenches:
|
|
51
51
|
|
|
52
|
-
sourceFilesTopDirectoryRelativePath: Workbenches/Source
|
|
52
|
+
$sourceFilesTopDirectoryRelativePath: Workbenches/Source
|
|
53
53
|
|
|
54
|
-
partialsRecognition:
|
|
55
|
-
excludeFilesWithPrefixes: "_"
|
|
56
|
-
excludeSubdirectoriesWithPrefixes: "_"
|
|
54
|
+
$partialsRecognition:
|
|
55
|
+
$excludeFilesWithPrefixes: "_"
|
|
56
|
+
$excludeSubdirectoriesWithPrefixes: "_"
|
|
57
57
|
|
|
58
|
-
buildingModeDependent:
|
|
59
|
-
|
|
60
|
-
outputTopDirectoryRelativePath: Workbenches/Build
|
|
58
|
+
$buildingModeDependent:
|
|
59
|
+
$localDevelopment:
|
|
60
|
+
$outputTopDirectoryRelativePath: Workbenches/Build
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
# ━━━ ECMAScript Logic Processing ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
64
|
-
ECMA_ScriptLogicProcessing:
|
|
64
|
+
$ECMA_ScriptLogicProcessing:
|
|
65
65
|
|
|
66
|
-
entryPointsGroups:
|
|
66
|
+
$entryPointsGroups:
|
|
67
67
|
|
|
68
68
|
Distributable:
|
|
69
69
|
|
|
70
|
-
singleEntryPointSourceFileRelativePath: Source/index.ts
|
|
70
|
+
$singleEntryPointSourceFileRelativePath: Source/index.ts
|
|
71
71
|
|
|
72
|
-
targetRuntime:
|
|
73
|
-
type: BROWSER
|
|
72
|
+
$targetRuntime:
|
|
73
|
+
$type: BROWSER
|
|
74
74
|
|
|
75
|
-
distributing:
|
|
76
|
-
exposingOfExportsFromEntryPoints:
|
|
77
|
-
mustExpose: true
|
|
78
|
-
externalizingDependencies: [ @yamato-daiwa/frontend, vue, vue-router ]
|
|
79
|
-
typeScriptTypesDeclarations:
|
|
80
|
-
mustGenerate: true
|
|
75
|
+
$distributing:
|
|
76
|
+
$exposingOfExportsFromEntryPoints:
|
|
77
|
+
$mustExpose: true
|
|
78
|
+
$externalizingDependencies: [ @yamato-daiwa/frontend, vue, vue-facing-decorator, vue-router ]
|
|
79
|
+
$typeScriptTypesDeclarations:
|
|
80
|
+
$mustGenerate: true
|
|
81
81
|
|
|
82
|
-
buildingModeDependent:
|
|
82
|
+
$buildingModeDependent:
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
outputTopDirectoryRelativePath: Distributable
|
|
84
|
+
$localDevelopment:
|
|
85
|
+
$outputTopDirectoryRelativePath: Distributable
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
outputTopDirectoryRelativePath: Distributable
|
|
89
|
-
revisioning: { disable: true }
|
|
87
|
+
$production:
|
|
88
|
+
$outputTopDirectoryRelativePath: Distributable
|
|
89
|
+
$revisioning: { $disable: true }
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
Workbenches:
|
|
93
93
|
|
|
94
|
-
sourceFilesTopDirectoryRelativePath: Workbenches/Source
|
|
94
|
+
$sourceFilesTopDirectoryRelativePath: Workbenches/Source
|
|
95
95
|
|
|
96
|
-
partialsRecognition:
|
|
97
|
-
excludeFilesWithPrefixes: "_"
|
|
98
|
-
excludeSubdirectoriesWithPrefixes: "_"
|
|
96
|
+
$partialsRecognition:
|
|
97
|
+
$excludeFilesWithPrefixes: "_"
|
|
98
|
+
$excludeSubdirectoriesWithPrefixes: "_"
|
|
99
99
|
|
|
100
|
-
targetRuntime:
|
|
101
|
-
type: BROWSER
|
|
100
|
+
$targetRuntime:
|
|
101
|
+
$type: BROWSER
|
|
102
102
|
|
|
103
|
-
buildingModeDependent:
|
|
104
|
-
|
|
105
|
-
outputTopDirectoryRelativePath: Workbenches/Build
|
|
103
|
+
$buildingModeDependent:
|
|
104
|
+
$localDevelopment:
|
|
105
|
+
$outputTopDirectoryRelativePath: Workbenches/Build
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
# ━━━ Browser Live Reloading ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
109
|
-
browserLiveReloading:
|
|
109
|
+
$browserLiveReloading:
|
|
110
110
|
|
|
111
|
-
setups:
|
|
111
|
+
$setups:
|
|
112
112
|
|
|
113
113
|
Workbenches:
|
|
114
114
|
|
|
115
|
-
localServer:
|
|
115
|
+
$localServer:
|
|
116
116
|
|
|
117
|
-
rootDirectoryRelativePath: Workbenches/Build
|
|
118
|
-
customStartingFileNameWithExtension: Workbenches.html
|
|
117
|
+
$rootDirectoryRelativePath: Workbenches/Build
|
|
118
|
+
$customStartingFileNameWithExtension: Workbenches.html
|
|
119
119
|
|
|
120
|
-
openInBrowsers: chrome
|
|
120
|
+
$openInBrowsers: chrome
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
VerticallySlidingAlwaysMountedContainer.AdmonitionBlock--YDF(
|
|
2
|
-
v-model="isDisplaying"
|
|
3
|
-
role="alert"
|
|
4
|
-
:class="rootElementModifierCSS_Classes"
|
|
5
|
-
)
|
|
6
|
-
|
|
7
|
-
slot(
|
|
8
|
-
v-if="$slots.CustomSVG_Icon"
|
|
9
|
-
name="CustomSVG_Icon"
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
component.AdmonitionBlock--YDF-SVG_Icon(
|
|
13
|
-
v-else-if="hasDefaultSVG_Icon"
|
|
14
|
-
:is="defaultSVG_IconComponentName"
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
.AdmonitionBlock--YDF-Title(
|
|
18
|
-
v-if="title"
|
|
19
|
-
id=TITLE_HTML_ID
|
|
20
|
-
) {{ title }}
|
|
21
|
-
|
|
22
|
-
.AdmonitionBlock--YDF-MainContent(
|
|
23
|
-
:aria-labelledby="title ? TITLE_HTML_ID : null"
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
slot
|
|
27
|
-
|
|
28
|
-
template(
|
|
29
|
-
v-if="$slots.ActionBarContent"
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
.AdmonitionBlock--YDF-ActionBar
|
|
33
|
-
|
|
34
|
-
slot(
|
|
35
|
-
name="ActionBarContent"
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
button.AdmonitionBlock--YDF-DismissingButton(
|
|
39
|
-
v-if="dismissible"
|
|
40
|
-
type="button"
|
|
41
|
-
:aria-label="localization.dismissingButton.accessibilityGuidance"
|
|
42
|
-
@click="onClickDismissingButton"
|
|
43
|
-
): MultiplicationSignIcon__Boxed__Filled.AdmonitionBlock--YDF-DismissingButton-Icon
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
toUpperCamelCase,
|
|
3
|
-
toLowerCamelCase,
|
|
4
|
-
toScreamingSnakeCase
|
|
5
|
-
} from "@yamato-daiwa/es-extensions";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export default abstract class ComponentsAuxiliaries {
|
|
9
|
-
|
|
10
|
-
public static areThemesCSS_ClassesCommon: boolean = false;
|
|
11
|
-
|
|
12
|
-
public static defineThemes<ComponentClass extends { Themes: { [themeName: string]: string; }; }>(
|
|
13
|
-
themesNames: ReadonlyArray<string>,
|
|
14
|
-
TargetComponentClass: ComponentClass
|
|
15
|
-
): ComponentClass {
|
|
16
|
-
|
|
17
|
-
for (const themeName of themesNames) {
|
|
18
|
-
TargetComponentClass.Themes[toLowerCamelCase(themeName)] = toScreamingSnakeCase(themeName);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return TargetComponentClass;
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public static defineGeometricVariations<
|
|
26
|
-
ComponentClass extends { GeometricVariations: { [decorativeVariationName: string]: string; }; }
|
|
27
|
-
>(
|
|
28
|
-
geometricVariationsNames: ReadonlyArray<string>,
|
|
29
|
-
TargetComponentClass: ComponentClass
|
|
30
|
-
): ComponentClass {
|
|
31
|
-
|
|
32
|
-
for (const geometricVariationName of geometricVariationsNames) {
|
|
33
|
-
TargetComponentClass.GeometricVariations[toLowerCamelCase(geometricVariationName)] =
|
|
34
|
-
toScreamingSnakeCase(geometricVariationName);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return TargetComponentClass;
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
public static defineDecorativeVariations<
|
|
42
|
-
ComponentClass extends { DecorativeVariations: { [decorativeVariationName: string]: string; }; }
|
|
43
|
-
>(
|
|
44
|
-
decorativeVariationsNames: ReadonlyArray<string>,
|
|
45
|
-
TargetComponentClass: ComponentClass
|
|
46
|
-
): ComponentClass {
|
|
47
|
-
|
|
48
|
-
for (const decorativeVariationName of decorativeVariationsNames) {
|
|
49
|
-
TargetComponentClass.DecorativeVariations[toLowerCamelCase(decorativeVariationName)] =
|
|
50
|
-
toScreamingSnakeCase(decorativeVariationName);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return TargetComponentClass;
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
public static addThemeCSS_ClassToArrayIfMust(
|
|
58
|
-
{
|
|
59
|
-
themeValue,
|
|
60
|
-
allThemes,
|
|
61
|
-
areThemesCSS_ClassesCommon,
|
|
62
|
-
CSS_Namespace
|
|
63
|
-
}: Readonly<{
|
|
64
|
-
themeValue: string;
|
|
65
|
-
allThemes: Readonly<{ [themeKey: string]: string; }>;
|
|
66
|
-
areThemesCSS_ClassesCommon: boolean;
|
|
67
|
-
CSS_Namespace: string;
|
|
68
|
-
}>
|
|
69
|
-
): Array<string> {
|
|
70
|
-
return Object.entries(allThemes).length > 1 && !areThemesCSS_ClassesCommon ?
|
|
71
|
-
[ `${ CSS_Namespace }__${ toUpperCamelCase(themeValue) }Theme` ] : [];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
public static addGeometricVariationCSS_ClassToArrayIfMust(
|
|
75
|
-
{
|
|
76
|
-
geometricVariation,
|
|
77
|
-
allGeometricVariations,
|
|
78
|
-
CSS_Namespace
|
|
79
|
-
}: Readonly<{
|
|
80
|
-
geometricVariation: string;
|
|
81
|
-
allGeometricVariations: Readonly<{ [geometricVariationKey: string]: string; }>;
|
|
82
|
-
CSS_Namespace: string;
|
|
83
|
-
}>
|
|
84
|
-
): Array<string> {
|
|
85
|
-
return Object.entries(allGeometricVariations).length > 1 ?
|
|
86
|
-
[ `${ CSS_Namespace }__${ toUpperCamelCase(geometricVariation) }GeometricVariation` ] : [];
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
public static addDecorativeVariationCSS_ClassToArrayIfMust(
|
|
90
|
-
{
|
|
91
|
-
decorativeVariation,
|
|
92
|
-
allDecorativeVariations,
|
|
93
|
-
CSS_Namespace
|
|
94
|
-
}: Readonly<{
|
|
95
|
-
decorativeVariation: string;
|
|
96
|
-
allDecorativeVariations: Readonly<{ [decorativeVariationKey: string]: string; }>;
|
|
97
|
-
CSS_Namespace: string;
|
|
98
|
-
}>
|
|
99
|
-
): Array<string> {
|
|
100
|
-
return Object.entries(allDecorativeVariations).length > 1 ?
|
|
101
|
-
[ `${ CSS_Namespace }__${ toUpperCamelCase(decorativeVariation) }DecorativeVariation` ] : [];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
public static generateDemandedGeometricModifiersCSS_Classes(
|
|
105
|
-
CSS_Namespace: string,
|
|
106
|
-
demandedGeometricModifiersNames: ReadonlyArray<string>
|
|
107
|
-
): Array<string> {
|
|
108
|
-
return demandedGeometricModifiersNames.map(
|
|
109
|
-
(geometricModifierName: string): string =>
|
|
110
|
-
`${ CSS_Namespace }__${ toUpperCamelCase(geometricModifierName) }GeometricModifier`
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
public static generateDemandedDecorativeModifiersCSS_Classes(
|
|
115
|
-
CSS_Namespace: string,
|
|
116
|
-
demandedDecorativeModifiersNames: ReadonlyArray<string>
|
|
117
|
-
): Array<string> {
|
|
118
|
-
return demandedDecorativeModifiersNames.map(
|
|
119
|
-
(decorativeModifierName: string): string =>
|
|
120
|
-
`${ CSS_Namespace }__${ toUpperCamelCase(decorativeModifierName) }DecorativeModifier`
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
}
|