@lucca-front/ng 20.2.0-rc.1 → 20.2.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/lucca-front-ng-a11y.mjs +2 -2
- package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +6 -6
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-app-layout.mjs +2 -2
- package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-box.mjs +2 -2
- package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs +2 -2
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-button.mjs +2 -2
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +10 -10
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +2 -2
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-comment.mjs +2 -2
- package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs +2 -2
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +2 -2
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +2 -2
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +6 -6
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +2 -2
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +4 -4
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +2 -2
- package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +2 -2
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +4 -4
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +6 -6
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-fancy-box.mjs +2 -2
- package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-file-upload.mjs +8 -8
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +4 -4
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-footer.mjs +2 -2
- package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +2 -2
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +4 -4
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +6 -6
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-data.mjs +2 -2
- package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +2 -2
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +2 -2
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs +2 -2
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +2 -2
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listing.mjs +2 -2
- package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-loading.mjs +2 -2
- package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-main-layout.mjs +2 -2
- package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-mobile-push.mjs +2 -2
- package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +4 -4
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-new-badge.mjs +2 -2
- package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +2 -2
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +14 -14
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +2 -2
- package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +2 -2
- package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +2 -2
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-read-more.mjs +2 -2
- package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scrollBox.mjs +2 -2
- package/fesm2022/lucca-front-ng-scrollBox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +2 -2
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +4 -4
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +12 -12
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-statusBadge.mjs +2 -2
- package/fesm2022/lucca-front-ng-statusBadge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tag.mjs +2 -2
- package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +4 -4
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +2 -2
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user-popover.mjs +2 -2
- package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +8 -8
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/package.json +14 -14
- package/schematics/class-prefix/index.js +293 -0
- package/schematics/class-prefix/migration.spec.js +50 -0
- package/schematics/class-prefix/schema.json +23 -0
- package/schematics/collection.json +5 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const css_mapper_1 = require("../lib/css-mapper");
|
|
4
|
+
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
5
|
+
// Nx need to see "@angular-devkit/schematics" in order to run this migration correctly (see https://github.com/nrwl/nx/blob/d9fed4b832bf01d1b9a44ae9e486a5e5cd2d2253/packages/nx/src/command-line/migrate/migrate.ts#L1729-L1738)
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
7
|
+
require('@angular-devkit/schematics');
|
|
8
|
+
exports.default = (options) => {
|
|
9
|
+
return async (tree, context) => {
|
|
10
|
+
await lf_schematic_context_1.currentSchematicContext.init(context, options);
|
|
11
|
+
await new css_mapper_1.CssMapper(tree, {
|
|
12
|
+
classes: {
|
|
13
|
+
"u-floatLeft": "pr-u-floatLeft",
|
|
14
|
+
"u-floatRight": "pr-u-floatRight",
|
|
15
|
+
"u-floatInlineStart": "pr-u-floatInlineStart",
|
|
16
|
+
"u-floatInlineEnd": "pr-u-floatInlineEnd",
|
|
17
|
+
"u-verticalAlignBaseline": "pr-u-verticalAlignBaseline",
|
|
18
|
+
"u-verticalAlignSub": "pr-u-verticalAlignSub",
|
|
19
|
+
"u-verticalAlignSuper": "pr-u-verticalAlignSuper",
|
|
20
|
+
"u-verticalAlignTextTop": "pr-u-verticalAlignTextTop",
|
|
21
|
+
"u-verticalAlignTextBottom": "pr-u-verticalAlignTextBottom",
|
|
22
|
+
"u-verticalAlignMiddle": "pr-u-verticalAlignMiddle",
|
|
23
|
+
"u-verticalAlignTop": "pr-u-verticalAlignTop",
|
|
24
|
+
"u-verticalAlignBottom": "pr-u-verticalAlignBottom",
|
|
25
|
+
"u-whiteSpaceNormal": "pr-u-whiteSpaceNormal",
|
|
26
|
+
"u-whiteSpaceNowrap": "pr-u-whiteSpaceNowrap",
|
|
27
|
+
"u-whiteSpacePreLine": "pr-u-whiteSpacePreLine",
|
|
28
|
+
"u-displayBlock": "pr-u-displayBlock",
|
|
29
|
+
"u-displayFlex": "pr-u-displayFlex",
|
|
30
|
+
"u-displayGrid": "pr-u-displayGrid",
|
|
31
|
+
"u-displayInline": "pr-u-displayInline",
|
|
32
|
+
"u-displayInlineFlex": "pr-u-displayInlineFlex",
|
|
33
|
+
"u-displayInlineBlock": "pr-u-displayInlineBlock",
|
|
34
|
+
"u-displayInlineGrid": "pr-u-displayInlineGrid",
|
|
35
|
+
"u-displayContents": "pr-u-displayContents",
|
|
36
|
+
"u-displayNone": "pr-u-displayNone",
|
|
37
|
+
"u-flexDirectionColumn": "pr-u-flexDirectionColumn",
|
|
38
|
+
"u-flexDirectionColumnReverse": "pr-u-flexDirectionColumnReverse",
|
|
39
|
+
"u-flexDirectionRow": "pr-u-flexDirectionRow",
|
|
40
|
+
"u-flexDirectionRowReverse": "pr-u-flexDirectionRowReverse",
|
|
41
|
+
"u-flexWrapWrap": "pr-u-flexWrapWrap",
|
|
42
|
+
"u-flexWrapNowrap": "pr-u-flexWrapNowrap",
|
|
43
|
+
"u-flexWrapWrapReverse": "pr-u-flexWrapWrapReverse",
|
|
44
|
+
"u-justifyContentFlexStart": "pr-u-justifyContentFlexStart",
|
|
45
|
+
"u-justifyContentFlexEnd": "pr-u-justifyContentFlexEnd",
|
|
46
|
+
"u-justifyContentSpaceAround": "pr-u-justifyContentSpaceAround",
|
|
47
|
+
"u-justifyContentSpaceBetween": "pr-u-justifyContentSpaceBetween",
|
|
48
|
+
"u-justifyContentSpaceEvenly": "pr-u-justifyContentSpaceEvenly",
|
|
49
|
+
"u-justifyContentCenter": "pr-u-justifyContentCenter",
|
|
50
|
+
"u-alignItemsFlexStart": "pr-u-alignItemsFlexStart",
|
|
51
|
+
"u-alignItemsFlexEnd": "pr-u-alignItemsFlexEnd",
|
|
52
|
+
"u-alignItemsBaseline": "pr-u-alignItemsBaseline",
|
|
53
|
+
"u-alignItemsStretch": "pr-u-alignItemsStretch",
|
|
54
|
+
"u-alignItemsCenter": "pr-u-alignItemsCenter",
|
|
55
|
+
"u-flexGrow0": "pr-u-flexGrow0",
|
|
56
|
+
"u-flexGrow1": "pr-u-flexGrow1",
|
|
57
|
+
"u-flexShrink0": "pr-u-flexShrink0",
|
|
58
|
+
"u-flexShrink1": "pr-u-flexShrink1",
|
|
59
|
+
"u-flexBasis0": "pr-u-flexBasis0",
|
|
60
|
+
"u-flexBasisAuto": "pr-u-flexBasisAuto",
|
|
61
|
+
"u-orderMinus1": "pr-u-orderMinus1",
|
|
62
|
+
"u-order1": "pr-u-order1",
|
|
63
|
+
"u-alignSelfFlexStart": "pr-u-alignSelfFlexStart",
|
|
64
|
+
"u-alignSelfFlexEnd": "pr-u-alignSelfFlexEnd",
|
|
65
|
+
"u-alignSelfBaseline": "pr-u-alignSelfBaseline",
|
|
66
|
+
"u-alignSelfStretch": "pr-u-alignSelfStretch",
|
|
67
|
+
"u-alignSelfCenter": "pr-u-alignSelfCenter",
|
|
68
|
+
"u-positionAbsolute": "pr-u-positionAbsolute",
|
|
69
|
+
"u-positionRelative": "pr-u-positionRelative",
|
|
70
|
+
"u-positionStatic": "pr-u-positionStatic",
|
|
71
|
+
"u-positionFixed": "pr-u-positionFixed",
|
|
72
|
+
"u-positionSticky": "pr-u-positionSticky",
|
|
73
|
+
"u-width100%": "pr-u-width100%",
|
|
74
|
+
"u-widthFitContent": "pr-u-widthFitContent",
|
|
75
|
+
"u-height100%": "pr-u-height100%",
|
|
76
|
+
"u-heightFitContent": "pr-u-heightFitContent",
|
|
77
|
+
"u-minWidth0": "pr-u-minWidth0",
|
|
78
|
+
"u-minHeight0": "pr-u-minHeight0",
|
|
79
|
+
"u-inlineSize100%": "pr-u-inlineSize100%",
|
|
80
|
+
"u-inlineSizeFitContent": "pr-u-inlineSizeFitContent",
|
|
81
|
+
"u-blockSize100%": "pr-u-blockSize100%",
|
|
82
|
+
"u-blockSizeFitContent": "pr-u-blockSizeFitContent",
|
|
83
|
+
"u-minInlineSize0": "pr-u-minInlineSize0",
|
|
84
|
+
"u-minBlockSize0": "pr-u-minBlockSize0",
|
|
85
|
+
"u-maxInlineSize100%": "pr-u-maxInlineSize100%",
|
|
86
|
+
"u-maxInlineSizeFitContent": "pr-u-maxInlineSizeFitContent",
|
|
87
|
+
"u-visibilityVisible": "pr-u-visibilityVisible",
|
|
88
|
+
"u-visibilityHidden": "pr-u-visibilityHidden",
|
|
89
|
+
"u-visibilityCollapse": "pr-u-visibilityCollapse",
|
|
90
|
+
"u-fontWeight400": "pr-u-fontWeight400",
|
|
91
|
+
"u-fontWeight600": "pr-u-fontWeight600",
|
|
92
|
+
"u-fontWeight700": "pr-u-fontWeight700",
|
|
93
|
+
"u-fontWeight900": "pr-u-fontWeight900",
|
|
94
|
+
"u-fontWeightNormal": "pr-u-fontWeightNormal",
|
|
95
|
+
"u-fontWeightBold": "pr-u-fontWeightBold",
|
|
96
|
+
"u-fontStyleNormal": "pr-u-fontStyleNormal",
|
|
97
|
+
"u-fontStyleItalic": "pr-u-fontStyleItalic",
|
|
98
|
+
"u-pointerEventsNone": "pr-u-pointerEventsNone",
|
|
99
|
+
"u-pointerEventsAuto": "pr-u-pointerEventsAuto",
|
|
100
|
+
"u-cursorPointer": "pr-u-cursorPointer",
|
|
101
|
+
"u-cursorAuto": "pr-u-cursorAuto",
|
|
102
|
+
"u-textAlignLeft": "pr-u-textAlignLeft",
|
|
103
|
+
"u-textAlignCenter": "pr-u-textAlignCenter",
|
|
104
|
+
"u-textAlignRight": "pr-u-textAlignRight",
|
|
105
|
+
"u-textAlignStart": "pr-u-textAlignStart",
|
|
106
|
+
"u-textAlignEnd": "pr-u-textAlignEnd",
|
|
107
|
+
"u-textDecorationUnderline": "pr-u-textDecorationUnderline",
|
|
108
|
+
"u-textDecorationLineThrough": "pr-u-textDecorationLineThrough",
|
|
109
|
+
"u-textDecorationNone": "pr-u-textDecorationNone",
|
|
110
|
+
"u-overflowHidden": "pr-u-overflowHidden",
|
|
111
|
+
"u-overflowAuto": "pr-u-overflowAuto",
|
|
112
|
+
"u-overflowVisible": "pr-u-overflowVisible",
|
|
113
|
+
"u-overflowScroll": "pr-u-overflowScroll",
|
|
114
|
+
"u-scrollBehaviorAuto": "pr-u-scrollBehaviorAuto",
|
|
115
|
+
"u-scrollBehaviorSmooth": "pr-u-scrollBehaviorSmooth",
|
|
116
|
+
"u-onlyPrintDisplayBlock": "pr-u-onlyPrintDisplayBlock",
|
|
117
|
+
"u-onlyPrintDisplayFlex": "pr-u-onlyPrintDisplayFlex",
|
|
118
|
+
"u-onlyPrintDisplayGrid": "pr-u-onlyPrintDisplayGrid",
|
|
119
|
+
"u-onlyPrintDisplayInline": "pr-u-onlyPrintDisplayInline",
|
|
120
|
+
"u-onlyPrintDisplayInlineFlex": "pr-u-onlyPrintDisplayInlineFlex",
|
|
121
|
+
"u-onlyPrintDisplayInlineBlock": "pr-u-onlyPrintDisplayInlineBlock",
|
|
122
|
+
"u-onlyPrintDisplayInlineGrid": "pr-u-onlyPrintDisplayInlineGrid",
|
|
123
|
+
"u-onlyPrintDisplayContents": "pr-u-onlyPrintDisplayContents",
|
|
124
|
+
"u-onlyPrintDisplayNone": "pr-u-onlyPrintDisplayNone",
|
|
125
|
+
"u-textXS": "pr-u-textXS",
|
|
126
|
+
"u-textS": "pr-u-textS",
|
|
127
|
+
"u-textM": "pr-u-textM",
|
|
128
|
+
"u-textL": "pr-u-textL",
|
|
129
|
+
"u-textXL": "pr-u-textXL",
|
|
130
|
+
"u-textXXL": "pr-u-textXXL",
|
|
131
|
+
"u-textXXXL": "pr-u-textXXXL",
|
|
132
|
+
"u-borderRadiusM": "pr-u-borderRadiusM",
|
|
133
|
+
"u-borderRadiusL": "pr-u-borderRadiusL",
|
|
134
|
+
"u-borderRadiusXL": "pr-u-borderRadiusXL",
|
|
135
|
+
"u-borderRadiusFull": "pr-u-borderRadiusFull",
|
|
136
|
+
"u-borderTopLeftRadiusM": "pr-u-borderTopLeftRadiusM",
|
|
137
|
+
"u-borderTopLeftRadiusL": "pr-u-borderTopLeftRadiusL",
|
|
138
|
+
"u-borderTopLeftRadiusXL": "pr-u-borderTopLeftRadiusXL",
|
|
139
|
+
"u-borderTopLeftRadiusFull": "pr-u-borderTopLeftRadiusFull",
|
|
140
|
+
"u-borderTopRightRadiusM": "pr-u-borderTopRightRadiusM",
|
|
141
|
+
"u-borderTopRightRadiusL": "pr-u-borderTopRightRadiusL",
|
|
142
|
+
"u-borderTopRightRadiusXL": "pr-u-borderTopRightRadiusXL",
|
|
143
|
+
"u-borderTopRightRadiusFull": "pr-u-borderTopRightRadiusFull",
|
|
144
|
+
"u-borderBottomLeftRadiusM": "pr-u-borderBottomLeftRadiusM",
|
|
145
|
+
"u-borderBottomLeftRadiusL": "pr-u-borderBottomLeftRadiusL",
|
|
146
|
+
"u-borderBottomLeftRadiusXL": "pr-u-borderBottomLeftRadiusXL",
|
|
147
|
+
"u-borderBottomLeftRadiusFull": "pr-u-borderBottomLeftRadiusFull",
|
|
148
|
+
"u-borderBottomRightRadiusM": "pr-u-borderBottomRightRadiusM",
|
|
149
|
+
"u-borderBottomRightRadiusL": "pr-u-borderBottomRightRadiusL",
|
|
150
|
+
"u-borderBottomRightRadiusXL": "pr-u-borderBottomRightRadiusXL",
|
|
151
|
+
"u-borderBottomRightRadiusFull": "pr-u-borderBottomRightRadiusFull",
|
|
152
|
+
"u-borderStartStartRadiusM": "pr-u-borderStartStartRadiusM",
|
|
153
|
+
"u-borderStartStartRadiusL": "pr-u-borderStartStartRadiusL",
|
|
154
|
+
"u-borderStartStartRadiusXL": "pr-u-borderStartStartRadiusXL",
|
|
155
|
+
"u-borderStartStartRadiusFull": "pr-u-borderStartStartRadiusFull",
|
|
156
|
+
"u-borderStartEndRadiusM": "pr-u-borderStartEndRadiusM",
|
|
157
|
+
"u-borderStartEndRadiusL": "pr-u-borderStartEndRadiusL",
|
|
158
|
+
"u-borderStartEndRadiusXL": "pr-u-borderStartEndRadiusXL",
|
|
159
|
+
"u-borderStartEndRadiusFull": "pr-u-borderStartEndRadiusFull",
|
|
160
|
+
"u-borderEndStartRadiusM": "pr-u-borderEndStartRadiusM",
|
|
161
|
+
"u-borderEndStartRadiusL": "pr-u-borderEndStartRadiusL",
|
|
162
|
+
"u-borderEndStartRadiusXL": "pr-u-borderEndStartRadiusXL",
|
|
163
|
+
"u-borderEndStartRadiusFull": "pr-u-borderEndStartRadiusFull",
|
|
164
|
+
"u-borderEndEndRadiusM": "pr-u-borderEndEndRadiusM",
|
|
165
|
+
"u-borderEndEndRadiusL": "pr-u-borderEndEndRadiusL",
|
|
166
|
+
"u-borderEndEndRadiusXL": "pr-u-borderEndEndRadiusXL",
|
|
167
|
+
"u-borderEndEndRadiusFull": "pr-u-borderEndEndRadiusFull",
|
|
168
|
+
"u-textCritical": "pr-u-textCritical",
|
|
169
|
+
"u-textError": "pr-u-textError",
|
|
170
|
+
"u-textWarning": "pr-u-textWarning",
|
|
171
|
+
"u-textSuccess": "pr-u-textSuccess",
|
|
172
|
+
"u-textSuccessContrasted": "pr-u-textSuccessContrasted",
|
|
173
|
+
"u-textWarningContrasted": "pr-u-textWarningContrasted",
|
|
174
|
+
"u-textBrand": "pr-u-textBrand",
|
|
175
|
+
"u-textBrandContrasted": "pr-u-textBrandContrasted",
|
|
176
|
+
"u-textNeutral": "pr-u-textNeutral",
|
|
177
|
+
"u-textNavigation": "pr-u-textNavigation",
|
|
178
|
+
"u-textProduct": "pr-u-textProduct",
|
|
179
|
+
"u-textPagga": "pr-u-textPagga",
|
|
180
|
+
"u-textPoplee": "pr-u-textPoplee",
|
|
181
|
+
"u-textCoreHR": "pr-u-textCoreHR",
|
|
182
|
+
"u-textTimmi": "pr-u-textTimmi",
|
|
183
|
+
"u-textCleemy": "pr-u-textCleemy",
|
|
184
|
+
"u-textCc": "pr-u-textCc",
|
|
185
|
+
"u-textKiwi": "pr-u-textKiwi",
|
|
186
|
+
"u-textLime": "pr-u-textLime",
|
|
187
|
+
"u-textCucumber": "pr-u-textCucumber",
|
|
188
|
+
"u-textMint": "pr-u-textMint",
|
|
189
|
+
"u-textGlacier": "pr-u-textGlacier",
|
|
190
|
+
"u-textLagoon": "pr-u-textLagoon",
|
|
191
|
+
"u-textBlueberry": "pr-u-textBlueberry",
|
|
192
|
+
"u-textLavender": "pr-u-textLavender",
|
|
193
|
+
"u-textGrape": "pr-u-textGrape",
|
|
194
|
+
"u-textWatermelon": "pr-u-textWatermelon",
|
|
195
|
+
"u-textPumpkin": "pr-u-textPumpkin",
|
|
196
|
+
"u-textPineapple": "pr-u-textPineapple",
|
|
197
|
+
"u-textLucca": "pr-u-textLucca",
|
|
198
|
+
"u-textGrey": "pr-u-textGrey",
|
|
199
|
+
"u-textPrimary": "pr-u-textPrimary",
|
|
200
|
+
"u-textSecondary": "pr-u-textSecondary",
|
|
201
|
+
"u-animatedFadeIn": "pr-u-animatedFadeIn",
|
|
202
|
+
"u-animatedFadeOut": "pr-u-animatedFadeOut",
|
|
203
|
+
"u-animatedScaleIn": "pr-u-animatedScaleIn",
|
|
204
|
+
"u-animatedScaleOut": "pr-u-animatedScaleOut",
|
|
205
|
+
"u-animatedScaleInTop": "pr-u-animatedScaleInTop",
|
|
206
|
+
"u-animatedScaleOutTop": "pr-u-animatedScaleOutTop",
|
|
207
|
+
"u-animatedScaleInRight": "pr-u-animatedScaleInRight",
|
|
208
|
+
"u-animatedScaleOutRight": "pr-u-animatedScaleOutRight",
|
|
209
|
+
"u-animatedScaleInBottom": "pr-u-animatedScaleInBottom",
|
|
210
|
+
"u-animatedScaleOutBottom": "pr-u-animatedScaleOutBottom",
|
|
211
|
+
"u-animatedScaleInLeft": "pr-u-animatedScaleInLeft",
|
|
212
|
+
"u-animatedScaleOutLeft": "pr-u-animatedScaleOutLeft",
|
|
213
|
+
"u-animatedSlideIn": "pr-u-animatedSlideIn",
|
|
214
|
+
"u-animatedSlideInTop": "pr-u-animatedSlideInTop",
|
|
215
|
+
"u-animatedSlideOut": "pr-u-animatedSlideOut",
|
|
216
|
+
"u-animatedSlideOutTop": "pr-u-animatedSlideOutTop",
|
|
217
|
+
"u-animatedSlideInRight": "pr-u-animatedSlideInRight",
|
|
218
|
+
"u-animatedSlideOutRight": "pr-u-animatedSlideOutRight",
|
|
219
|
+
"u-animatedSlideInBottom": "pr-u-animatedSlideInBottom",
|
|
220
|
+
"u-animatedSlideOutBottom": "pr-u-animatedSlideOutBottom",
|
|
221
|
+
"u-animatedSlideInLeft": "pr-u-animatedSlideInLeft",
|
|
222
|
+
"u-animatedSlideOutLeft": "pr-u-animatedSlideOutLeft",
|
|
223
|
+
"u-animatedShake": "pr-u-animatedShake",
|
|
224
|
+
"u-animatedPulse": "pr-u-animatedPulse",
|
|
225
|
+
"u-mask": "pr-u-mask",
|
|
226
|
+
"u-clearfix": "pr-u-clearfix",
|
|
227
|
+
"u-clearBoth": "pr-u-clearBoth",
|
|
228
|
+
"u-clear": "pr-u-clear",
|
|
229
|
+
"u-clearInlineStart": "pr-u-clearInlineStart",
|
|
230
|
+
"u-clearLeft": "pr-u-clearLeft",
|
|
231
|
+
"u-clearInlineEnd": "pr-u-clearInlineEnd",
|
|
232
|
+
"u-clearRight": "pr-u-clearRight",
|
|
233
|
+
"u-listReset": "pr-u-listReset",
|
|
234
|
+
"u-descriptionListReset": "pr-u-descriptionListReset",
|
|
235
|
+
"u-summaryReset": "pr-u-summaryReset",
|
|
236
|
+
"u-buttonReset": "pr-u-buttonReset",
|
|
237
|
+
"u-ellipsis": "pr-u-ellipsis",
|
|
238
|
+
"u-h1": "pr-u-h1",
|
|
239
|
+
"u-h2": "pr-u-h2",
|
|
240
|
+
"u-h3": "pr-u-h3",
|
|
241
|
+
"u-h4": "pr-u-h4",
|
|
242
|
+
"u-h5": "pr-u-h5",
|
|
243
|
+
"u-h6": "pr-u-h6",
|
|
244
|
+
"u-bodyM": "pr-u-bodyM",
|
|
245
|
+
"u-bodyS": "pr-u-bodyS",
|
|
246
|
+
"u-bodyXS": "pr-u-bodyXS",
|
|
247
|
+
"u-textLeft": "pr-u-textLeft",
|
|
248
|
+
"u-textRight": "pr-u-textRight",
|
|
249
|
+
"u-textCenter": "pr-u-textCenter",
|
|
250
|
+
"u-textLight": "pr-u-textLight",
|
|
251
|
+
"u-textPlaceholder": "pr-u-textPlaceholder",
|
|
252
|
+
"u-textDefault": "pr-u-textDefault",
|
|
253
|
+
"u-fontWeightRegular": "pr-u-fontWeightRegular",
|
|
254
|
+
"u-fontWeightSemiBold": "pr-u-fontWeightSemiBold",
|
|
255
|
+
"u-noSpinButtons": "pr-u-noSpinButtons",
|
|
256
|
+
"u-fontFamily": "pr-u-fontFamily",
|
|
257
|
+
"u-fontFamilyCursive": "pr-u-fontFamilyCursive",
|
|
258
|
+
"u-fontFamilyBrand": "pr-u-fontFamilyBrand",
|
|
259
|
+
"u-inset0": "pr-u-inset0",
|
|
260
|
+
"u-insetReset": "pr-u-insetReset",
|
|
261
|
+
"u-top0": "pr-u-top0",
|
|
262
|
+
"u-topReset": "pr-u-topReset",
|
|
263
|
+
"u-bottom0": "pr-u-bottom0",
|
|
264
|
+
"u-bottomReset": "pr-u-bottomReset",
|
|
265
|
+
"u-left0": "pr-u-left0",
|
|
266
|
+
"u-leftReset": "pr-u-leftReset",
|
|
267
|
+
"u-right0": "pr-u-right0",
|
|
268
|
+
"u-rightReset": "pr-u-rightReset",
|
|
269
|
+
"u-marginInline0": "pr-u-marginInline0",
|
|
270
|
+
"u-paddingInline0": "pr-u-paddingInline0",
|
|
271
|
+
"u-insetInline0": "pr-u-insetInline0",
|
|
272
|
+
"u-marginBlock0": "pr-u-marginBlock0",
|
|
273
|
+
"u-paddingBlock0": "pr-u-paddingBlock0",
|
|
274
|
+
"u-insetBlock0": "pr-u-insetBlock0",
|
|
275
|
+
"u-marginBlock-start0": "pr-u-marginBlock-start0",
|
|
276
|
+
"u-paddingBlock-start0": "pr-u-paddingBlock-start0",
|
|
277
|
+
"u-insetBlock-start0": "pr-u-insetBlock-start0",
|
|
278
|
+
"u-marginBlock-end0": "pr-u-marginBlock-end0",
|
|
279
|
+
"u-paddingBlock-end0": "pr-u-paddingBlock-end0",
|
|
280
|
+
"u-insetBlock-end0": "pr-u-insetBlock-end0",
|
|
281
|
+
"u-marginInline-start0": "pr-u-marginInline-start0",
|
|
282
|
+
"u-paddingInline-start0": "pr-u-paddingInline-start0",
|
|
283
|
+
"u-insetInline-start0": "pr-u-insetInline-start0",
|
|
284
|
+
"u-marginInline-end0": "pr-u-marginInline-end0",
|
|
285
|
+
"u-paddingInline-end0": "pr-u-paddingInline-end0",
|
|
286
|
+
"u-insetInline-end0": "pr-u-insetInline-end0",
|
|
287
|
+
"u-prefersContrastMore": "pr-u-prefersContrastMore",
|
|
288
|
+
},
|
|
289
|
+
variables: {},
|
|
290
|
+
mixins: {}
|
|
291
|
+
}, {}).run();
|
|
292
|
+
};
|
|
293
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const glob = require("glob");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const migration_test_js_1 = require("../lib/migration-test.js");
|
|
7
|
+
const collectionPath = path.normalize(path.join(__dirname, '..', 'collection.json'));
|
|
8
|
+
const testsRoot = path.join(__dirname, 'tests');
|
|
9
|
+
const files = fs.readdirSync(testsRoot);
|
|
10
|
+
describe('Class prefix Migration', () => {
|
|
11
|
+
it('should update files', async () => {
|
|
12
|
+
// Arrange
|
|
13
|
+
const tree = (0, migration_test_js_1.createTreeFromFiles)(testsRoot, files, '.input.');
|
|
14
|
+
const expectedTree = (0, migration_test_js_1.createTreeFromFiles)(testsRoot, files, '.output.');
|
|
15
|
+
// Act
|
|
16
|
+
try {
|
|
17
|
+
await (0, migration_test_js_1.runSchematic)('collection', collectionPath, 'class-prefix', { skipInstallation: true }, tree);
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
// eslint-disable-next-line no-console
|
|
21
|
+
console.log(error);
|
|
22
|
+
}
|
|
23
|
+
// Assert
|
|
24
|
+
(0, migration_test_js_1.expectTree)(tree).toMatchTree(expectedTree);
|
|
25
|
+
});
|
|
26
|
+
// Use this to migrate @lucca-front/* packages
|
|
27
|
+
it.skip('should migrate @lucca-front/*', async () => {
|
|
28
|
+
// Arrange
|
|
29
|
+
const lfRoot = path.normalize(path.join(__dirname, '..', '..', '..', '..'));
|
|
30
|
+
const lfFiles = [
|
|
31
|
+
...glob.sync('packages/icons/**/*.scss', { cwd: lfRoot, nodir: true }),
|
|
32
|
+
...glob.sync('packages/scss/**/*.scss', { cwd: lfRoot, nodir: true }),
|
|
33
|
+
...glob.sync('packages/ng/**/*', { cwd: lfRoot, nodir: true, ignore: ['**/schematics/**'] }),
|
|
34
|
+
...glob.sync('stories/**', { cwd: lfRoot, nodir: true }),
|
|
35
|
+
];
|
|
36
|
+
const treeOriginalTree = (0, migration_test_js_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
37
|
+
const tree = (0, migration_test_js_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
38
|
+
// Act
|
|
39
|
+
await (0, migration_test_js_1.runSchematic)('collection', collectionPath, 'class-prefix', { skipInstallation: true }, tree);
|
|
40
|
+
// Assert
|
|
41
|
+
tree.visit((p, entry) => {
|
|
42
|
+
const original = treeOriginalTree.get(p)?.content.toString() || '';
|
|
43
|
+
const updated = entry?.content.toString() || '';
|
|
44
|
+
if (original !== updated) {
|
|
45
|
+
const fromRootPath = path.join(lfRoot, p);
|
|
46
|
+
fs.writeFileSync(fromRootPath, updated);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "LuccaFrontClassPrefix",
|
|
4
|
+
"title": "Lucca Front Class prefix Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"dryRun": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Run through the migration without making any changes.",
|
|
10
|
+
"default": false
|
|
11
|
+
},
|
|
12
|
+
"skipInstall": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"description": "Skip installing dependencies.",
|
|
15
|
+
"default": false
|
|
16
|
+
},
|
|
17
|
+
"verbose": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "Enable verbose logging.",
|
|
20
|
+
"default": false
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
"factory": "./tokens-radius/index",
|
|
27
27
|
"schema": "./tokens-radius/schema.json"
|
|
28
28
|
},
|
|
29
|
+
"class-prefix": {
|
|
30
|
+
"description": "Add pr- prefix to all utility classes",
|
|
31
|
+
"factory": "./class-prefix/index",
|
|
32
|
+
"schema": "./class-prefix/schema.json"
|
|
33
|
+
},
|
|
29
34
|
"tokens-typo": {
|
|
30
35
|
"description": "Replace typography tokens with new names.",
|
|
31
36
|
"factory": "./tokens-typo/index",
|