@lucca-front/ng 19.1.6 → 19.2.0
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/chip/chip.component.d.ts +12 -0
- package/chip/chip.translate.d.ts +7 -0
- package/chip/index.d.ts +5 -0
- package/chip/public-api.d.ts +1 -0
- package/chip/translations.d.ts +26 -0
- package/core-select/input/select-input.component.d.ts +13 -2
- package/core-select/no-clue/index.d.ts +1 -0
- package/core-select/no-clue/no-clue.directive.d.ts +6 -0
- package/core-select/option/option-outlet.directive.d.ts +1 -0
- package/core-select/public-api.d.ts +1 -0
- package/date/calendar/calendar-input.component.d.ts +1 -0
- package/date/calendar/calendar-input.translate.d.ts +8 -0
- package/date/calendar/translations.d.ts +34 -0
- package/date2/date-input/date-input.component.d.ts +18 -3
- package/date2/date-range-input/date-range-input.component.d.ts +12 -1
- package/date2/date2.translate.d.ts +2 -0
- package/date2/repeat-times.directive.d.ts +1 -0
- package/date2/translations.d.ts +4 -0
- package/department/service/department-v4.service.d.ts +1 -2
- 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-button.mjs +2 -2
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +6 -6
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +75 -0
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-core-select-user.mjs +4 -4
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +63 -13
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +46 -5
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +141 -33
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +13 -10
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +6 -6
- 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 +3 -3
- 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-filter-pills.mjs +294 -0
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-form-field.mjs +5 -3
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-formly.mjs +36 -36
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +10 -4
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +38 -10
- package/fesm2022/lucca-front-ng-forms.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 +37 -3
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +3 -3
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +2 -2
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +101 -38
- 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-number-format.mjs +1 -6
- package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +18 -4
- 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-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-popup-employee.mjs +2 -6
- package/fesm2022/lucca-front-ng-popup-employee.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-qualification.mjs +2 -2
- package/fesm2022/lucca-front-ng-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scrollBox.mjs +63 -0
- package/fesm2022/lucca-front-ng-scrollBox.mjs.map +1 -0
- 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 +79 -31
- 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 +3 -3
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +8 -8
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/filter-pills/core/filter-pill-displayer.directive.d.ts +14 -0
- package/filter-pills/core/filter-pill-input-component.d.ts +17 -0
- package/filter-pills/core/filter-pill-label.directive.d.ts +15 -0
- package/filter-pills/core/index.d.ts +4 -0
- package/filter-pills/core/tokens.d.ts +4 -0
- package/filter-pills/filter-bar/filter-bar.component.d.ts +14 -0
- package/filter-pills/filter-bar/filter-pill-addon.directive.d.ts +13 -0
- package/filter-pills/filter-pill/filter-pill.component.d.ts +45 -0
- package/filter-pills/filter-pills.translate.d.ts +9 -0
- package/filter-pills/index.d.ts +5 -0
- package/filter-pills/public-api.d.ts +4 -0
- package/filter-pills/translations.d.ts +42 -0
- package/form-field/form-field.component.d.ts +2 -1
- package/formly/style/_components.scss +4 -3
- package/formly/style/main.scss +2 -2
- package/forms/checkbox-input/checkbox-input.component.d.ts +13 -1
- package/forms/phone-number-input/phone-number-input.component.d.ts +3 -1
- package/input/clearer/clearer.component.d.ts +1 -0
- package/input/clearer/clearer.translate.d.ts +7 -0
- package/input/clearer/translations.d.ts +26 -0
- package/link/link.component.d.ts +1 -1
- package/link/link.translate.d.ts +3 -3
- package/multi-select/displayer/default-displayer.component.d.ts +1 -0
- package/multi-select/input/panel-ref.factory.d.ts +2 -1
- package/multi-select/input/panel.model.d.ts +1 -1
- package/multi-select/input/select-input.component.d.ts +11 -3
- package/numeric-badge/numeric-badge.component.d.ts +4 -1
- package/package.json +56 -44
- package/popup-employee/card/trigger/user-popover-trigger.directive.d.ts +0 -4
- package/schematics/action-icon/index.js +3 -7
- package/schematics/action-icon/migration.js +3 -3
- package/schematics/action-icon/schema.json +21 -5
- package/schematics/cdn-urls/index.js +21 -0
- package/schematics/cdn-urls/migration.js +81 -0
- package/schematics/cdn-urls/migration.spec.js +50 -0
- package/schematics/cdn-urls/schema.json +23 -0
- package/schematics/collection.json +38 -28
- package/schematics/empty-state-title/index.js +4 -8
- package/schematics/empty-state-title/schema.json +21 -5
- package/schematics/lib/angular-component-ast.js +215 -0
- package/schematics/lib/angular-template.js +52 -12
- package/schematics/lib/css-mapper.js +14 -14
- package/schematics/lib/html-ast.js +25 -25
- package/schematics/lib/lf-schematic-context.js +51 -0
- package/schematics/lib/migration-test.js +9 -0
- package/schematics/lib/scss-ast.js +3 -3
- package/schematics/lu-select/index.js +24 -0
- package/schematics/lu-select/migration.js +319 -0
- package/schematics/lu-select/migration.spec.js +23 -0
- package/schematics/lu-select/model/select-context.js +17 -0
- package/schematics/lu-select/schema.json +28 -0
- package/schematics/lu-select/util.js +241 -0
- package/schematics/new-icons/index.js +4 -8
- package/schematics/new-icons/migration.js +11 -10
- package/schematics/new-icons/schema.json +21 -5
- package/schematics/palettes/index.js +7 -10
- package/schematics/palettes/schema.json +21 -5
- package/schematics/tokens-spacing/index.js +7 -10
- package/schematics/tokens-spacing/schema.json +21 -5
- package/scrollBox/index.d.ts +5 -0
- package/scrollBox/public-api.d.ts +1 -0
- package/scrollBox/scroll-box.component.d.ts +13 -0
- package/simple-select/input/panel-ref.factory.d.ts +2 -1
- package/simple-select/input/select-input.component.d.ts +5 -0
- package/simple-select/panel/panel.component.d.ts +1 -1
- package/src/_components.scss +12 -12
- package/src/_definitions.scss +6 -6
- package/src/components/_picker.scss +25 -23
- package/src/components/_popover.scss +3 -2
- package/src/components/_popup.scss +37 -34
- package/src/components/_sidepanel.scss +11 -12
- package/src/components/cdk/_dragDrop.scss +4 -4
- package/src/components/cdk/_global.scss +10 -11
- package/src/components/cdk/_misc.scss +2 -2
- package/src/components/cdk/_overlay.scss +11 -14
- package/src/components/cdk/_textarea.scss +8 -6
- package/src/definitions/option/_option-item.scss +15 -15
- package/src/definitions/option/_option-placeholder.scss +2 -1
- package/src/definitions/option/_option-searcher.scss +4 -3
- package/src/definitions/select/_select-input.scss +43 -46
- package/src/definitions/user/user-picture.scss +1 -1
- package/src/definitions/user/user-tile.scss +4 -3
- package/src/main.scss +2 -2
- package/src/components/_dropdown.scss +0 -84
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const installer_js_1 = require("../lib/local-deps/installer.js");
|
|
4
3
|
const schematics_js_1 = require("../lib/schematics.js");
|
|
5
4
|
const migration_js_1 = require("./migration.js");
|
|
5
|
+
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
6
6
|
// 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)
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
8
8
|
require('@angular-devkit/schematics');
|
|
9
9
|
exports.default = (options) => {
|
|
10
|
-
const skipInstallation = options?.skipInstallation ?? false;
|
|
11
10
|
return async (tree, context) => {
|
|
12
|
-
|
|
13
|
-
(0, installer_js_1.installLocalDependencies)(context);
|
|
14
|
-
}
|
|
11
|
+
await lf_schematic_context_1.currentSchematicContext.init(context, options);
|
|
15
12
|
const postCssScss = await Promise.resolve().then(() => require('../lib/local-deps/postcss-scss.js'));
|
|
16
|
-
const angularCompiler = await Promise.resolve().then(() => require('@angular/compiler'));
|
|
17
13
|
const { postcssSelectorParser } = await Promise.resolve().then(() => require('../lib/local-deps/postcss-selector-parser.js'));
|
|
18
14
|
tree.visit((path, entry) => {
|
|
19
15
|
if (path.includes('node_modules') || !entry) {
|
|
@@ -23,10 +19,10 @@ exports.default = (options) => {
|
|
|
23
19
|
(0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateScssFile)(content, postCssScss, postcssSelectorParser));
|
|
24
20
|
}
|
|
25
21
|
if (path.endsWith('.html')) {
|
|
26
|
-
(0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateHTMLFile)(content
|
|
22
|
+
(0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateHTMLFile)(content));
|
|
27
23
|
}
|
|
28
24
|
if (path.endsWith('.ts')) {
|
|
29
|
-
(0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateTsFile)(path, content
|
|
25
|
+
(0, schematics_js_1.migrateFile)(path, entry, tree, (content) => (0, migration_js_1.migrateTsFile)(path, content));
|
|
30
26
|
}
|
|
31
27
|
});
|
|
32
28
|
};
|
|
@@ -10,41 +10,42 @@ const html_ast_js_1 = require("../lib/html-ast.js");
|
|
|
10
10
|
const scss_ast_js_1 = require("../lib/scss-ast.js");
|
|
11
11
|
const typescript_ast_js_1 = require("../lib/typescript-ast.js");
|
|
12
12
|
const mapping_js_1 = require("./mapping.js");
|
|
13
|
+
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
13
14
|
function migrateScssFile(content, postCssScss, postcssSelectorParser) {
|
|
14
15
|
const root = postCssScss.parse(content);
|
|
15
16
|
(0, scss_ast_js_1.updateCSSClassNamesInRules)(root, mapping_js_1.oldIconClassToNewIconClass, postcssSelectorParser);
|
|
16
17
|
return root.toResult({ syntax: { stringify: postCssScss.stringify } }).css;
|
|
17
18
|
}
|
|
18
|
-
function migrateHTMLFile(content
|
|
19
|
-
content = (0, html_ast_js_1.updateCssClassNames)(content, mapping_js_1.oldIconClassToNewIconClass
|
|
20
|
-
content = (0, angular_template_js_1.replaceComponentInput)('lu-icon', 'icon', mapping_js_1.oldIconToNewIcon, content
|
|
19
|
+
function migrateHTMLFile(content) {
|
|
20
|
+
content = (0, html_ast_js_1.updateCssClassNames)(content, mapping_js_1.oldIconClassToNewIconClass);
|
|
21
|
+
content = (0, angular_template_js_1.replaceComponentInput)('lu-icon', 'icon', mapping_js_1.oldIconToNewIcon, content);
|
|
21
22
|
return (0, file_update_js_1.updateContent)(content, (updates) => {
|
|
22
|
-
const htmlAst = new html_ast_js_1.HtmlAst(content
|
|
23
|
+
const htmlAst = new html_ast_js_1.HtmlAst(content);
|
|
23
24
|
htmlAst.visitElementWithAttribute(/.*/, 'class', (elem, attr) => {
|
|
24
|
-
const legacyIconText = attr.value.includes('lucca-icon') && elem.children.find((c) => c instanceof angularCompiler.TmplAstText && mapping_js_1.oldIcons.has(c.value));
|
|
25
|
-
if (attr.valueSpan && legacyIconText && legacyIconText instanceof angularCompiler.TmplAstText) {
|
|
25
|
+
const legacyIconText = attr.value.includes('lucca-icon') && elem.children.find((c) => c instanceof lf_schematic_context_1.currentSchematicContext.angularCompiler.TmplAstText && mapping_js_1.oldIcons.has(c.value));
|
|
26
|
+
if (attr.valueSpan && legacyIconText && legacyIconText instanceof lf_schematic_context_1.currentSchematicContext.angularCompiler.TmplAstText) {
|
|
26
27
|
updates.push({
|
|
27
28
|
position: legacyIconText.sourceSpan.start.offset,
|
|
28
29
|
oldContent: legacyIconText.value,
|
|
29
|
-
newContent: ''
|
|
30
|
+
newContent: ''
|
|
30
31
|
});
|
|
31
32
|
updates.push({
|
|
32
33
|
position: attr.valueSpan.start.offset,
|
|
33
34
|
oldContent: attr.value,
|
|
34
|
-
newContent: attr.value.replace('lucca-icon', 'lucca-icon ' + mapping_js_1.oldIconClassToNewIconClass['icon-' + legacyIconText.value])
|
|
35
|
+
newContent: attr.value.replace('lucca-icon', 'lucca-icon ' + mapping_js_1.oldIconClassToNewIconClass['icon-' + legacyIconText.value])
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
});
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
|
-
function migrateTsFile(fileName, content
|
|
41
|
+
function migrateTsFile(fileName, content) {
|
|
41
42
|
return (0, file_update_js_1.updateContent)(content, (updates) => {
|
|
42
43
|
const sourcefile = (0, typescript_1.createSourceFile)(fileName, content, typescript_1.ScriptTarget.ESNext);
|
|
43
44
|
const templates = (0, angular_template_js_1.extractNgTemplates)(sourcefile);
|
|
44
45
|
updates.push(...templates.map((tpl) => ({
|
|
45
46
|
position: tpl.offsetStart,
|
|
46
47
|
oldContent: tpl.content,
|
|
47
|
-
newContent: migrateHTMLFile(tpl.content
|
|
48
|
+
newContent: migrateHTMLFile(tpl.content)
|
|
48
49
|
})));
|
|
49
50
|
updates.push(...(0, typescript_ast_js_1.replaceStringLiterals)(sourcefile, mapping_js_1.oldIconClassToNewIconClass));
|
|
50
51
|
});
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "LuccaFrontNewIcons",
|
|
4
|
+
"title": "Lucca Front New Icons 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
|
+
}
|
|
7
23
|
}
|
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const css_mapper_1 = require("../lib/css-mapper");
|
|
4
|
-
const
|
|
4
|
+
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
5
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
6
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
7
7
|
require('@angular-devkit/schematics');
|
|
8
8
|
exports.default = (options) => {
|
|
9
|
-
const skipInstallation = options?.skipInstallation ?? false;
|
|
10
9
|
return async (tree, context) => {
|
|
11
|
-
|
|
12
|
-
(0, installer_1.installLocalDependencies)(context);
|
|
13
|
-
}
|
|
10
|
+
await lf_schematic_context_1.currentSchematicContext.init(context, options);
|
|
14
11
|
await new css_mapper_1.CssMapper(tree, {
|
|
15
12
|
classes: {
|
|
16
13
|
'palette-grey': 'palette-neutral',
|
|
17
14
|
'palette-primary': 'palette-product',
|
|
18
15
|
'palette-secondary': 'palette-product',
|
|
19
|
-
'palette-lucca': 'palette-brand'
|
|
16
|
+
'palette-lucca': 'palette-brand'
|
|
20
17
|
},
|
|
21
18
|
variables: {
|
|
22
19
|
'--palettes-grey-{val}': `--palettes-neutral-{val}`,
|
|
23
20
|
'--palettes-primary-{val}': `--palettes-product-{val}`,
|
|
24
21
|
'--palettes-secondary-{val}': `--palettes-product-{val}`,
|
|
25
22
|
'--palettes-lucca-{val}': `--palettes-brand-{val}`,
|
|
26
|
-
'--colors-grey-{val}': `--colors-neutral-{val}
|
|
23
|
+
'--colors-grey-{val}': `--colors-neutral-{val}`
|
|
27
24
|
},
|
|
28
|
-
mixins: {}
|
|
25
|
+
mixins: {}
|
|
29
26
|
}, {
|
|
30
27
|
val: {
|
|
31
28
|
25: '25',
|
|
@@ -38,8 +35,8 @@ exports.default = (options) => {
|
|
|
38
35
|
600: '600',
|
|
39
36
|
700: '700',
|
|
40
37
|
800: '800',
|
|
41
|
-
900: '900'
|
|
42
|
-
}
|
|
38
|
+
900: '900'
|
|
39
|
+
}
|
|
43
40
|
}).run();
|
|
44
41
|
};
|
|
45
42
|
};
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "LuccaFrontPalettes",
|
|
4
|
+
"title": "Lucca Front Palettes 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
|
+
}
|
|
7
23
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const css_mapper_1 = require("../lib/css-mapper");
|
|
4
|
-
const
|
|
4
|
+
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
5
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
6
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
7
7
|
require('@angular-devkit/schematics');
|
|
8
8
|
exports.default = (options) => {
|
|
9
|
-
const skipInstallation = options?.skipInstallation ?? false;
|
|
10
9
|
return async (tree, context) => {
|
|
11
|
-
|
|
12
|
-
(0, installer_1.installLocalDependencies)(context);
|
|
13
|
-
}
|
|
10
|
+
await lf_schematic_context_1.currentSchematicContext.init(context, options);
|
|
14
11
|
await new css_mapper_1.CssMapper(tree, {
|
|
15
12
|
classes: {
|
|
16
13
|
'u-margin{tshirt}': 'pr-u-margin{tshirt}',
|
|
@@ -29,12 +26,12 @@ exports.default = (options) => {
|
|
|
29
26
|
'u-paddingBlock{tshirt}': 'pr-u-paddingBlock{tshirt}',
|
|
30
27
|
'u-gap{tshirt}': 'pr-u-gap{tshirt}',
|
|
31
28
|
'u-rowGap{tshirt}': 'pr-u-rowGap{tshirt}',
|
|
32
|
-
'u-columnGap{tshirt}': 'pr-u-columnGap{tshirt}'
|
|
29
|
+
'u-columnGap{tshirt}': 'pr-u-columnGap{tshirt}'
|
|
33
30
|
},
|
|
34
31
|
variables: {
|
|
35
|
-
'--spacings-{tshirt}': `--pr-t-spacings-{tshirt}
|
|
32
|
+
'--spacings-{tshirt}': `--pr-t-spacings-{tshirt}`
|
|
36
33
|
},
|
|
37
|
-
mixins: {}
|
|
34
|
+
mixins: {}
|
|
38
35
|
}, {
|
|
39
36
|
tshirt: {
|
|
40
37
|
Auto: 'Auto',
|
|
@@ -45,8 +42,8 @@ exports.default = (options) => {
|
|
|
45
42
|
M: '300',
|
|
46
43
|
L: '400',
|
|
47
44
|
XL: '600',
|
|
48
|
-
XXL: '800'
|
|
49
|
-
}
|
|
45
|
+
XXL: '800'
|
|
46
|
+
}
|
|
50
47
|
}).run();
|
|
51
48
|
};
|
|
52
49
|
};
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "LuccaFrontTokensSpacing",
|
|
4
|
+
"title": "Lucca Front Tokens Spacing 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
|
+
}
|
|
7
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scroll-box.component';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScrollBoxComponent implements OnInit {
|
|
4
|
+
#private;
|
|
5
|
+
get isFirstVisibleClass(): boolean;
|
|
6
|
+
isFirstVisible: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
+
get isLastVisibleClass(): boolean;
|
|
8
|
+
isLastVisible: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
initObserver(element: Element, isFirst: boolean): void;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollBoxComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollBoxComponent, "lu-scroll-box", never, {}, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Overlay, OverlayConfig, OverlayPositionBuilder, ScrollStrategyOptions } from '@angular/cdk/overlay';
|
|
2
|
-
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { ElementRef, Injector, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { LuSelectPanelRef } from '@lucca-front/ng/core-select';
|
|
4
4
|
import { LuSimpleSelectInputComponent } from './select-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -12,6 +12,7 @@ export declare class LuSimpleSelectPanelRefFactory {
|
|
|
12
12
|
private selectLabelId;
|
|
13
13
|
private selectId;
|
|
14
14
|
buildPanelRef<T>(selectInput: LuSimpleSelectInputComponent<T>, overlayConfigOverride?: OverlayConfig): LuSelectPanelRef<T, T>;
|
|
15
|
+
buildAndAttachPanelRef<T>(selectInput: LuSimpleSelectInputComponent<T>, host: ViewContainerRef): LuSelectPanelRef<T, T>;
|
|
15
16
|
protected buildOverlayConfig(overlayConfigOverride?: OverlayConfig): OverlayConfig;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuSimpleSelectPanelRefFactory, never>;
|
|
17
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<LuSimpleSelectPanelRefFactory>;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
1
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
3
|
import { ALuSelectInputComponent, LuSelectPanelRef } from '@lucca-front/ng/core-select';
|
|
3
4
|
import { LuSimpleSelectPanelRefFactory } from './panel-ref.factory';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class LuSimpleSelectInputComponent<T> extends ALuSelectInputComponent<T, T> implements ControlValueAccessor {
|
|
6
7
|
intl: import("../select.translate").ILuSimpleSelectLabel;
|
|
8
|
+
get filterPillClass(): boolean;
|
|
7
9
|
autocomplete?: string;
|
|
10
|
+
filterPillPanelAnchorRef: import("@angular/core").Signal<ViewContainerRef>;
|
|
8
11
|
protected panelRefFactory: LuSimpleSelectPanelRefFactory;
|
|
9
12
|
protected buildPanelRef(): LuSelectPanelRef<T, T>;
|
|
13
|
+
inputSpace(event: Event): void;
|
|
10
14
|
protected hasValue(): boolean;
|
|
15
|
+
enableFilterPillMode(): void;
|
|
11
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuSimpleSelectInputComponent<any>, never>;
|
|
12
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuSimpleSelectInputComponent<any>, "lu-simple-select", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
18
|
}
|
|
@@ -19,7 +19,7 @@ export declare class LuSelectPanelComponent<T> implements AfterViewInit {
|
|
|
19
19
|
optionTpl: import("@angular/core").ModelSignal<import("@angular/core").Type<unknown> | import("@angular/core").TemplateRef<import("@lucca-front/ng/core-select").LuOptionContext<T>>>;
|
|
20
20
|
optionsQL: QueryList<ɵLuOptionComponent<T>>;
|
|
21
21
|
keyManager: CoreSelectKeyManager<T>;
|
|
22
|
-
|
|
22
|
+
selected: import("@angular/core").Signal<T>;
|
|
23
23
|
clueChange$: import("rxjs").Observable<string>;
|
|
24
24
|
shouldDisplayAddOption$: import("rxjs").Observable<boolean>;
|
|
25
25
|
groupTemplateLocation$: import("rxjs").Observable<import("@lucca-front/ng/core-select/panel/panel.utils").GroupTemplateLocation>;
|
package/src/_components.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
1
|
+
@forward 'components/calendar';
|
|
2
|
+
@forward 'components/input';
|
|
3
|
+
@forward 'components/popover';
|
|
4
|
+
@forward 'components/picker';
|
|
5
|
+
@forward 'components/popup';
|
|
6
|
+
@forward 'components/sidepanel';
|
|
7
|
+
|
|
8
|
+
@forward 'components/cdk/overlay';
|
|
9
|
+
@forward 'components/cdk/textarea';
|
|
10
|
+
@forward 'components/cdk/misc';
|
|
11
|
+
@forward 'components/cdk/global';
|
|
12
|
+
@forward 'components/cdk/dragDrop';
|
package/src/_definitions.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
1
|
+
@forward 'definitions/select/select-input';
|
|
2
|
+
@forward 'definitions/select/select-clearer';
|
|
3
|
+
@forward 'definitions/option/option-item';
|
|
4
|
+
@forward 'definitions/option/option-searcher';
|
|
5
|
+
@forward 'definitions/option/option-selector';
|
|
6
|
+
@forward 'definitions/option/option-placeholder';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'popover';
|
|
2
|
+
|
|
1
3
|
.lu-picker-panel {
|
|
2
4
|
@extend %popover-panel;
|
|
3
5
|
}
|
|
@@ -5,16 +7,16 @@
|
|
|
5
7
|
.lu-picker-content {
|
|
6
8
|
@extend %popover-content;
|
|
7
9
|
|
|
8
|
-
max-
|
|
10
|
+
max-block-size: 20rem;
|
|
9
11
|
padding: var(--pr-t-spacings-50);
|
|
10
12
|
overflow-y: auto;
|
|
11
13
|
display: block;
|
|
12
14
|
animation: scaleIn 150ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
13
|
-
margin-
|
|
14
|
-
margin-
|
|
15
|
+
margin-inline-start: calc(var(--pr-t-spacings-50) * -1);
|
|
16
|
+
margin-inline-end: calc(var(--pr-t-spacings-50) * -1);
|
|
15
17
|
|
|
16
18
|
&.is-loading {
|
|
17
|
-
//
|
|
19
|
+
//block-size: 17.5rem;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
|
|
@@ -31,17 +33,18 @@
|
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
.lu-picker-content-option-group {
|
|
34
|
-
margin-
|
|
36
|
+
margin-block-end: var(--pr-t-spacings-50);
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
.lu-picker-content-option-group-title {
|
|
38
40
|
font-size: var(--sizes-S-fontSize);
|
|
39
41
|
line-height: var(--sizes-S-lineHeight);
|
|
40
42
|
font-weight: 600;
|
|
41
|
-
padding: var(--components-options-item-padding-vertical)
|
|
43
|
+
padding-block: var(--components-options-item-padding-vertical);
|
|
44
|
+
padding-inline: var(--components-options-item-padding-horizontal);
|
|
42
45
|
color: var(--palettes-neutral-600);
|
|
43
46
|
position: sticky;
|
|
44
|
-
|
|
47
|
+
inset-block-start: 0;
|
|
45
48
|
background-color: var(--pr-t-elevation-surface-raised);
|
|
46
49
|
z-index: 1;
|
|
47
50
|
display: flex;
|
|
@@ -52,15 +55,16 @@
|
|
|
52
55
|
|
|
53
56
|
.lu-picker-content-add {
|
|
54
57
|
position: sticky;
|
|
55
|
-
|
|
58
|
+
inset-block-end: 0;
|
|
56
59
|
background-color: var(--palettes-neutral-0);
|
|
57
60
|
box-shadow: var(--pr-t-elevation-shadow-overflow);
|
|
58
61
|
padding: var(--pr-t-spacings-50);
|
|
59
|
-
margin: 0
|
|
62
|
+
margin-block: 0;
|
|
63
|
+
margin-inline: calc(var(--pr-t-spacings-50) * -1);
|
|
60
64
|
transform: translateY(var(--pr-t-spacings-50));
|
|
61
65
|
|
|
62
66
|
.button {
|
|
63
|
-
|
|
67
|
+
inline-size: 100%;
|
|
64
68
|
justify-content: left;
|
|
65
69
|
}
|
|
66
70
|
}
|
|
@@ -74,26 +78,25 @@
|
|
|
74
78
|
.lu-picker-loading {
|
|
75
79
|
// deprecated
|
|
76
80
|
position: absolute;
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
inset-inline-start: 50%;
|
|
82
|
+
inset-block-start: 50%;
|
|
79
83
|
transform: translateX(-50%) translateY(-50%);
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
.lu-picker-header {
|
|
83
87
|
background-color: var(--pr-t-elevation-surface-raised);
|
|
84
88
|
position: sticky;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
right: 0;
|
|
89
|
+
inset-block-start: 0;
|
|
90
|
+
inset-inline: 0;
|
|
88
91
|
display: block;
|
|
89
92
|
z-index: 1;
|
|
90
|
-
margin-
|
|
93
|
+
margin-block-end: var(--pr-t-spacings-50);
|
|
91
94
|
box-shadow: 0 -4px 0 var(--pr-t-spacings-100) var(--pr-t-elevation-surface-raised); // Avoid showing options list while scrolling due to header sticky potisionning
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
.lu-picker-textfield {
|
|
95
|
-
|
|
96
|
-
padding-
|
|
98
|
+
inline-size: 100%;
|
|
99
|
+
padding-block-end: var(--pr-t-spacings-100);
|
|
97
100
|
|
|
98
101
|
.textfield-input {
|
|
99
102
|
background-color: var(--palettes-neutral-0);
|
|
@@ -104,18 +107,17 @@
|
|
|
104
107
|
.lu-picker-footer {
|
|
105
108
|
background-color: var(--pr-t-elevation-surface-raised);
|
|
106
109
|
position: sticky;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
right: 0;
|
|
110
|
+
inset-block-end: 0;
|
|
111
|
+
inset-inline: 0;
|
|
110
112
|
display: block;
|
|
111
113
|
z-index: 1;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
.lu-date-picker-panel {
|
|
115
|
-
|
|
117
|
+
inline-size: var(--components-calendar-width);
|
|
116
118
|
|
|
117
119
|
.lu-picker-content {
|
|
118
|
-
max-
|
|
120
|
+
max-block-size: none;
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
123
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
%popover-panel {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
max-
|
|
4
|
+
max-block-size: calc(100vh + 48px);
|
|
5
5
|
position: relative;
|
|
6
6
|
|
|
7
7
|
&.is-above {
|
|
@@ -54,5 +54,6 @@
|
|
|
54
54
|
.lu-popover-content {
|
|
55
55
|
@extend %popover-content;
|
|
56
56
|
|
|
57
|
-
padding: var(--pr-t-spacings-100)
|
|
57
|
+
padding-block: var(--pr-t-spacings-100);
|
|
58
|
+
padding-inline: var(--pr-t-spacings-150);
|
|
58
59
|
}
|