@lucca-front/ng 21.1.0-split.0 → 21.1.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/fesm2022/lucca-front-ng-api.mjs +13 -45
- 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 +1 -1
- package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-bubble-icon.mjs +2 -2
- package/fesm2022/lucca-front-ng-callout.mjs +38 -12
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +32 -2
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-clear.mjs +17 -2
- package/fesm2022/lucca-front-ng-clear.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-comment.mjs +20 -18
- package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-container.mjs +5 -7
- package/fesm2022/lucca-front-ng-container.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +0 -2
- package/fesm2022/lucca-front-ng-core-select-job-qualification.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 +12 -19
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-data-table.mjs +5 -5
- package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +5 -37
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +66 -28
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +2 -18
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +13 -4
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +10 -1
- package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +9 -8
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +17 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +2 -66
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-fancy-box.mjs +12 -0
- package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-file-upload.mjs +1 -1
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +3 -3
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-footer.mjs +3 -0
- package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +79 -11
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-header.mjs +3 -0
- package/fesm2022/lucca-front-ng-form-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form.mjs +19 -5
- package/fesm2022/lucca-front-ng-form.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +10 -9
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs +15 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +26 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs +15 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +51 -34
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +94 -42
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-gauge.mjs +28 -5
- package/fesm2022/lucca-front-ng-gauge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-grid.mjs +3 -3
- package/fesm2022/lucca-front-ng-grid.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-data.mjs +31 -26
- package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +3 -0
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-index-table.mjs +3 -3
- package/fesm2022/lucca-front-ng-index-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +12 -0
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +15 -0
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listbox.mjs +17 -5
- package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listing.mjs +36 -7
- package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-main-layout.mjs +8 -2
- package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-mobile-push.mjs +18 -10
- package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +29 -18
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +16 -12
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-new-badge.mjs +3 -0
- package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +10 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +203 -315
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +11 -2
- package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-pagination.mjs +24 -0
- package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +7 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.mjs +1 -33
- package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +22 -18
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-progress-bar.mjs +12 -5
- package/fesm2022/lucca-front-ng-progress-bar.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-read-more.mjs +16 -1
- package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-resource-card.mjs +6 -6
- package/fesm2022/lucca-front-ng-resource-card.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll-box.mjs +5 -2
- package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +9 -3
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmented-control.mjs +16 -1
- package/fesm2022/lucca-front-ng-segmented-control.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +20 -5
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +67 -16
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-software-icon.mjs +62 -0
- package/fesm2022/lucca-front-ng-software-icon.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-sortable-list.mjs +24 -0
- package/fesm2022/lucca-front-ng-sortable-list.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-status-badge.mjs +12 -0
- package/fesm2022/lucca-front-ng-status-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tag.mjs +6 -0
- package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-text-flow.mjs +20 -0
- package/fesm2022/lucca-front-ng-text-flow.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-time.mjs +55 -16
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +18 -22
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +9 -25
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs +30 -0
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs.map +1 -1
- package/package.json +12 -4
- package/schematics/action-icon/index.js +4 -5
- package/schematics/action-icon/migration.js +3 -4
- package/schematics/action-icon/migration.spec.js +8 -8
- package/schematics/alignment-utilities/index.js +3 -4
- package/schematics/alignment-utilities/migration.spec.js +8 -8
- package/schematics/cdn-urls/index.js +3 -4
- package/schematics/cdn-urls/migration.js +8 -10
- package/schematics/cdn-urls/migration.spec.js +8 -8
- package/schematics/class-prefix/index.js +3 -4
- package/schematics/class-prefix/migration.spec.js +8 -8
- package/schematics/collection.json +10 -0
- package/schematics/color-text/index.js +3 -4
- package/schematics/color-text/migration.spec.js +8 -8
- package/schematics/component-path/index.js +3 -4
- package/schematics/component-path/migration.spec.js +8 -8
- package/schematics/empty-state-title/index.js +5 -7
- package/schematics/empty-state-title/migration.spec.js +5 -5
- package/schematics/lib/html-ast.js +11 -3
- package/schematics/lib/index.js +29 -0
- package/schematics/lib/schematic.utils.js +5 -0
- package/schematics/lu-button/index.js +3 -4
- package/schematics/lu-button/migration.js +5 -11
- package/schematics/lu-button/migration.spec.js +5 -5
- package/schematics/lu-container/index.js +23 -0
- package/schematics/lu-container/migration.js +116 -0
- package/schematics/lu-container/migration.spec.js +23 -0
- package/schematics/lu-container/schema.json +23 -0
- package/schematics/lu-icon/index.js +3 -4
- package/schematics/lu-icon/migration.js +8 -14
- package/schematics/lu-icon/migration.spec.js +5 -5
- package/schematics/lu-loading/index.js +23 -0
- package/schematics/lu-loading/migration.js +136 -0
- package/schematics/lu-loading/migration.spec.js +23 -0
- package/schematics/lu-loading/schema.json +28 -0
- package/schematics/lu-select/index.js +3 -4
- package/schematics/lu-select/migration.js +18 -21
- package/schematics/lu-select/migration.spec.js +5 -5
- package/schematics/lu-select/util.js +17 -19
- package/schematics/lu-text-input/index.js +3 -4
- package/schematics/lu-text-input/migration.js +22 -28
- package/schematics/lu-text-input/migration.spec.js +5 -5
- package/schematics/new-icons/index.js +5 -6
- package/schematics/new-icons/migration.js +11 -16
- package/schematics/new-icons/migration.spec.js +8 -8
- package/schematics/ng-add/file-content.js +6 -8
- package/schematics/ng-add/index.js +5 -5
- package/schematics/ng-add/tasks.js +22 -17
- package/schematics/palettes/index.js +3 -4
- package/schematics/palettes/migration.spec.js +8 -8
- package/schematics/tokens-radius/index.js +3 -4
- package/schematics/tokens-radius/migration.spec.js +8 -8
- package/schematics/tokens-spacing/index.js +3 -4
- package/schematics/tokens-spacing/migration.spec.js +8 -8
- package/schematics/tokens-typo/index.js +3 -4
- package/schematics/tokens-typo/migration.spec.js +8 -8
- package/src/components/cdk/_overlay.scss +5 -0
- package/src/definitions/option/_option-item.scss +1 -0
- package/types/lucca-front-ng-api.d.ts +1 -19
- package/types/lucca-front-ng-breadcrumbs.d.ts +1 -1
- package/types/lucca-front-ng-callout.d.ts +32 -2
- package/types/lucca-front-ng-chip.d.ts +32 -2
- package/types/lucca-front-ng-clear.d.ts +20 -5
- package/types/lucca-front-ng-comment.d.ts +19 -11
- package/types/lucca-front-ng-container.d.ts +4 -4
- package/types/lucca-front-ng-core-select.d.ts +2 -1
- package/types/lucca-front-ng-date.d.ts +1 -19
- package/types/lucca-front-ng-date2.d.ts +4 -1
- package/types/lucca-front-ng-department.d.ts +1 -10
- package/types/lucca-front-ng-dialog.d.ts +6 -3
- package/types/lucca-front-ng-divider.d.ts +10 -0
- package/types/lucca-front-ng-empty-state.d.ts +16 -0
- package/types/lucca-front-ng-establishment.d.ts +1 -37
- package/types/lucca-front-ng-fancy-box.d.ts +12 -0
- package/types/lucca-front-ng-footer.d.ts +3 -0
- package/types/lucca-front-ng-form-field.d.ts +36 -5
- package/types/lucca-front-ng-form-header.d.ts +3 -0
- package/types/lucca-front-ng-form.d.ts +9 -5
- package/types/lucca-front-ng-forms-phone-number-input.d.ts +1 -0
- package/types/lucca-front-ng-forms-rich-text-input-formatters-html.d.ts +7 -1
- package/types/lucca-front-ng-forms-rich-text-input-formatters-markdown.d.ts +11 -1
- package/types/lucca-front-ng-forms-rich-text-input-formatters-plain-text.d.ts +7 -1
- package/types/lucca-front-ng-forms-rich-text-input.d.ts +2 -0
- package/types/lucca-front-ng-forms.d.ts +19 -6
- package/types/lucca-front-ng-gauge.d.ts +25 -0
- package/types/lucca-front-ng-grid.d.ts +1 -1
- package/types/lucca-front-ng-highlight-data.d.ts +36 -15
- package/types/lucca-front-ng-horizontal-navigation.d.ts +3 -0
- package/types/lucca-front-ng-inline-message.d.ts +12 -0
- package/types/lucca-front-ng-link.d.ts +15 -0
- package/types/lucca-front-ng-listbox.d.ts +16 -4
- package/types/lucca-front-ng-listing.d.ts +33 -2
- package/types/lucca-front-ng-main-layout.d.ts +6 -0
- package/types/lucca-front-ng-mobile-push.d.ts +7 -0
- package/types/lucca-front-ng-modal.d.ts +3 -1
- package/types/lucca-front-ng-new-badge.d.ts +3 -0
- package/types/lucca-front-ng-numeric-badge.d.ts +9 -0
- package/types/lucca-front-ng-option.d.ts +78 -141
- package/types/lucca-front-ng-page-header.d.ts +9 -0
- package/types/lucca-front-ng-pagination.d.ts +24 -0
- package/types/lucca-front-ng-plg-push.d.ts +6 -0
- package/types/lucca-front-ng-popover.d.ts +1 -20
- package/types/lucca-front-ng-popover2.d.ts +7 -4
- package/types/lucca-front-ng-progress-bar.d.ts +9 -0
- package/types/lucca-front-ng-read-more.d.ts +16 -1
- package/types/lucca-front-ng-resource-card.d.ts +6 -0
- package/types/lucca-front-ng-scroll-box.d.ts +4 -1
- package/types/lucca-front-ng-segmented-control-tabs.d.ts +7 -1
- package/types/lucca-front-ng-segmented-control.d.ts +16 -1
- package/types/lucca-front-ng-skeleton.d.ts +61 -6
- package/types/lucca-front-ng-software-icon.d.ts +19 -0
- package/types/lucca-front-ng-sortable-list.d.ts +24 -0
- package/types/lucca-front-ng-status-badge.d.ts +12 -0
- package/types/lucca-front-ng-tag.d.ts +6 -0
- package/types/lucca-front-ng-text-flow.d.ts +8 -0
- package/types/lucca-front-ng-time.d.ts +16 -10
- package/types/lucca-front-ng-tooltip.d.ts +5 -13
- package/types/lucca-front-ng-user.d.ts +2 -11
- package/types/lucca-front-ng-vertical-navigation.d.ts +30 -0
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProject = getProject;
|
|
4
|
+
exports.getAngularJson = getAngularJson;
|
|
3
5
|
exports.updateStylesScss = updateStylesScss;
|
|
4
6
|
exports.updateAngularJson = updateAngularJson;
|
|
5
|
-
exports.createPalettesOverrideScss = createPalettesOverrideScss;
|
|
6
7
|
exports.createShameScss = createShameScss;
|
|
7
8
|
const file_content_1 = require("./file-content");
|
|
8
9
|
const files = {
|
|
9
|
-
globalStyles: '
|
|
10
|
-
shameStyles: '
|
|
11
|
-
palettesOverride: 'src/scss/overrides/_palettes.override.scss',
|
|
10
|
+
globalStyles: 'styles.scss',
|
|
11
|
+
shameStyles: 'scss/_shame.scss',
|
|
12
12
|
};
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
const
|
|
13
|
+
function getProject(angularJson) {
|
|
14
|
+
const { defaultProject, projects } = angularJson;
|
|
15
|
+
const project = defaultProject ?? Object.keys(projects)[0];
|
|
16
|
+
return projects[project];
|
|
17
|
+
}
|
|
18
|
+
function getAngularJson(tree) {
|
|
19
|
+
return JSON.parse(tree.read('angular.json')?.toString() ?? '{}');
|
|
20
|
+
}
|
|
21
|
+
function updateStylesScss(tree, project) {
|
|
22
|
+
const path = `${project.sourceRoot ?? 'src'}/${files.globalStyles}`;
|
|
23
|
+
const existingLength = tree.read(path)?.toString().length ?? 0;
|
|
24
|
+
const styleUpdateRecord = tree.beginUpdate(path).insertRight(existingLength, file_content_1.stylesScss);
|
|
16
25
|
tree.commitUpdate(styleUpdateRecord);
|
|
17
26
|
}
|
|
18
|
-
function updateAngularJson(tree) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
projects[defaultProject].architect.build.options.stylePreprocessorOptions = {
|
|
22
|
-
includePaths: ['src/scss/overrides', 'src/scss', 'node_modules/@lucca-front/ng/src'],
|
|
27
|
+
function updateAngularJson(tree, project, angularJson) {
|
|
28
|
+
project.architect.build.options.stylePreprocessorOptions = {
|
|
29
|
+
includePaths: ['src/scss', 'node_modules'],
|
|
23
30
|
};
|
|
24
31
|
tree.overwrite('angular.json', JSON.stringify(angularJson, undefined, ' ') + '\n');
|
|
25
32
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
function createShameScss(tree) {
|
|
30
|
-
tree.create(files.shameStyles, file_content_1.shameScss);
|
|
33
|
+
function createShameScss(tree, project) {
|
|
34
|
+
const path = `${project.sourceRoot ?? 'src'}/${files.shameStyles}`;
|
|
35
|
+
tree.create(path, file_content_1.shameScss);
|
|
31
36
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
3
|
+
const lib_1 = require("../lib");
|
|
5
4
|
// 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
5
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
7
6
|
require('@angular-devkit/schematics');
|
|
8
7
|
exports.default = (options) => {
|
|
9
8
|
return async (tree, context) => {
|
|
10
|
-
await
|
|
11
|
-
await new
|
|
9
|
+
await lib_1.currentSchematicContext.init(context, options);
|
|
10
|
+
await new lib_1.CssMapper(tree, {
|
|
12
11
|
classes: {
|
|
13
12
|
'palette-grey': 'palette-neutral',
|
|
14
13
|
'palette-primary': 'palette-product',
|
|
@@ -3,25 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const glob = require("glob");
|
|
5
5
|
const path = require("path");
|
|
6
|
-
const
|
|
6
|
+
const lib_1 = require("../lib");
|
|
7
7
|
const collectionPath = path.normalize(path.join(__dirname, '..', 'collection.json'));
|
|
8
8
|
const testsRoot = path.join(__dirname, 'tests');
|
|
9
9
|
const files = fs.readdirSync(testsRoot);
|
|
10
10
|
describe('Palettes Migration', () => {
|
|
11
11
|
it('should update files', async () => {
|
|
12
12
|
// Arrange
|
|
13
|
-
const tree = (0,
|
|
14
|
-
const expectedTree = (0,
|
|
13
|
+
const tree = (0, lib_1.createTreeFromFiles)(testsRoot, files, '.input.');
|
|
14
|
+
const expectedTree = (0, lib_1.createTreeFromFiles)(testsRoot, files, '.output.');
|
|
15
15
|
// Act
|
|
16
16
|
try {
|
|
17
|
-
await (0,
|
|
17
|
+
await (0, lib_1.runSchematic)('collection', collectionPath, 'palettes', { skipInstallation: true }, tree);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
// eslint-disable-next-line no-console
|
|
21
21
|
console.log(error);
|
|
22
22
|
}
|
|
23
23
|
// Assert
|
|
24
|
-
(0,
|
|
24
|
+
(0, lib_1.expectTree)(tree).toMatchTree(expectedTree);
|
|
25
25
|
});
|
|
26
26
|
// Use this to migrate @lucca-front/* packages
|
|
27
27
|
it.skip('should migrate @lucca-front/*', async () => {
|
|
@@ -33,10 +33,10 @@ describe('Palettes Migration', () => {
|
|
|
33
33
|
...glob.sync('packages/ng/**/*', { cwd: lfRoot, nodir: true, ignore: ['**/schematics/**'] }),
|
|
34
34
|
...glob.sync('stories/**', { cwd: lfRoot, nodir: true }),
|
|
35
35
|
];
|
|
36
|
-
const treeOriginalTree = (0,
|
|
37
|
-
const tree = (0,
|
|
36
|
+
const treeOriginalTree = (0, lib_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
37
|
+
const tree = (0, lib_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
38
38
|
// Act
|
|
39
|
-
await (0,
|
|
39
|
+
await (0, lib_1.runSchematic)('collection', collectionPath, 'palettes', { skipInstallation: true }, tree);
|
|
40
40
|
// Assert
|
|
41
41
|
tree.visit((p, entry) => {
|
|
42
42
|
const original = treeOriginalTree.get(p)?.content.toString() || '';
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
3
|
+
const lib_1 = require("../lib");
|
|
5
4
|
// 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
5
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
7
6
|
require('@angular-devkit/schematics');
|
|
8
7
|
exports.default = (options) => {
|
|
9
8
|
return async (tree, context) => {
|
|
10
|
-
await
|
|
11
|
-
await new
|
|
9
|
+
await lib_1.currentSchematicContext.init(context, options);
|
|
10
|
+
await new lib_1.CssMapper(tree, {
|
|
12
11
|
classes: {},
|
|
13
12
|
variables: {
|
|
14
13
|
'--commons-borderRadius-M': '--pr-t-border-radius-default',
|
|
@@ -3,25 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const glob = require("glob");
|
|
5
5
|
const path = require("path");
|
|
6
|
-
const
|
|
6
|
+
const lib_1 = require("../lib");
|
|
7
7
|
const collectionPath = path.normalize(path.join(__dirname, '..', 'collection.json'));
|
|
8
8
|
const testsRoot = path.join(__dirname, 'tests');
|
|
9
9
|
const files = fs.readdirSync(testsRoot);
|
|
10
10
|
describe('Tokens radius Migration', () => {
|
|
11
11
|
it('should update files', async () => {
|
|
12
12
|
// Arrange
|
|
13
|
-
const tree = (0,
|
|
14
|
-
const expectedTree = (0,
|
|
13
|
+
const tree = (0, lib_1.createTreeFromFiles)(testsRoot, files, '.input.');
|
|
14
|
+
const expectedTree = (0, lib_1.createTreeFromFiles)(testsRoot, files, '.output.');
|
|
15
15
|
// Act
|
|
16
16
|
try {
|
|
17
|
-
await (0,
|
|
17
|
+
await (0, lib_1.runSchematic)('collection', collectionPath, 'tokens-radius', { skipInstallation: true }, tree);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
// eslint-disable-next-line no-console
|
|
21
21
|
console.log(error);
|
|
22
22
|
}
|
|
23
23
|
// Assert
|
|
24
|
-
(0,
|
|
24
|
+
(0, lib_1.expectTree)(tree).toMatchTree(expectedTree);
|
|
25
25
|
});
|
|
26
26
|
// Use this to migrate @lucca-front/* packages
|
|
27
27
|
it.skip('should migrate @lucca-front/*', async () => {
|
|
@@ -33,10 +33,10 @@ describe('Tokens radius Migration', () => {
|
|
|
33
33
|
...glob.sync('packages/ng/**/*', { cwd: lfRoot, nodir: true, ignore: ['**/schematics/**'] }),
|
|
34
34
|
...glob.sync('stories/**', { cwd: lfRoot, nodir: true }),
|
|
35
35
|
];
|
|
36
|
-
const treeOriginalTree = (0,
|
|
37
|
-
const tree = (0,
|
|
36
|
+
const treeOriginalTree = (0, lib_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
37
|
+
const tree = (0, lib_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
38
38
|
// Act
|
|
39
|
-
await (0,
|
|
39
|
+
await (0, lib_1.runSchematic)('collection', collectionPath, 'tokens-radius', { skipInstallation: true }, tree);
|
|
40
40
|
// Assert
|
|
41
41
|
tree.visit((p, entry) => {
|
|
42
42
|
const original = treeOriginalTree.get(p)?.content.toString() || '';
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
3
|
+
const lib_1 = require("../lib");
|
|
5
4
|
// 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
5
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
7
6
|
require('@angular-devkit/schematics');
|
|
8
7
|
exports.default = (options) => {
|
|
9
8
|
return async (tree, context) => {
|
|
10
|
-
await
|
|
11
|
-
await new
|
|
9
|
+
await lib_1.currentSchematicContext.init(context, options);
|
|
10
|
+
await new lib_1.CssMapper(tree, {
|
|
12
11
|
classes: {
|
|
13
12
|
'u-margin{tshirt}': 'pr-u-margin{tshirt}',
|
|
14
13
|
'u-marginTop{tshirt}': 'pr-u-marginTop{tshirt}',
|
|
@@ -3,25 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const glob = require("glob");
|
|
5
5
|
const path = require("path");
|
|
6
|
-
const
|
|
6
|
+
const lib_1 = require("../lib");
|
|
7
7
|
const collectionPath = path.normalize(path.join(__dirname, '..', 'collection.json'));
|
|
8
8
|
const testsRoot = path.join(__dirname, 'tests');
|
|
9
9
|
const files = fs.readdirSync(testsRoot);
|
|
10
10
|
describe('Tokens spacing Migration', () => {
|
|
11
11
|
it('should update files', async () => {
|
|
12
12
|
// Arrange
|
|
13
|
-
const tree = (0,
|
|
14
|
-
const expectedTree = (0,
|
|
13
|
+
const tree = (0, lib_1.createTreeFromFiles)(testsRoot, files, '.input.');
|
|
14
|
+
const expectedTree = (0, lib_1.createTreeFromFiles)(testsRoot, files, '.output.');
|
|
15
15
|
// Act
|
|
16
16
|
try {
|
|
17
|
-
await (0,
|
|
17
|
+
await (0, lib_1.runSchematic)('collection', collectionPath, 'tokens-spacings', { skipInstallation: true }, tree);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
// eslint-disable-next-line no-console
|
|
21
21
|
console.log(error);
|
|
22
22
|
}
|
|
23
23
|
// Assert
|
|
24
|
-
(0,
|
|
24
|
+
(0, lib_1.expectTree)(tree).toMatchTree(expectedTree);
|
|
25
25
|
});
|
|
26
26
|
// Use this to migrate @lucca-front/* packages
|
|
27
27
|
it.skip('should migrate @lucca-front/*', async () => {
|
|
@@ -33,10 +33,10 @@ describe('Tokens spacing Migration', () => {
|
|
|
33
33
|
...glob.sync('packages/ng/**/*', { cwd: lfRoot, nodir: true, ignore: ['**/schematics/**'] }),
|
|
34
34
|
...glob.sync('stories/**', { cwd: lfRoot, nodir: true }),
|
|
35
35
|
];
|
|
36
|
-
const treeOriginalTree = (0,
|
|
37
|
-
const tree = (0,
|
|
36
|
+
const treeOriginalTree = (0, lib_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
37
|
+
const tree = (0, lib_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
38
38
|
// Act
|
|
39
|
-
await (0,
|
|
39
|
+
await (0, lib_1.runSchematic)('collection', collectionPath, 'tokens-spacings', { skipInstallation: true }, tree);
|
|
40
40
|
// Assert
|
|
41
41
|
tree.visit((p, entry) => {
|
|
42
42
|
const original = treeOriginalTree.get(p)?.content.toString() || '';
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
3
|
+
const lib_1 = require("../lib");
|
|
5
4
|
// 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
5
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
7
6
|
require('@angular-devkit/schematics');
|
|
8
7
|
exports.default = (options) => {
|
|
9
8
|
return async (tree, context) => {
|
|
10
|
-
await
|
|
11
|
-
await new
|
|
9
|
+
await lib_1.currentSchematicContext.init(context, options);
|
|
10
|
+
await new lib_1.CssMapper(tree, {
|
|
12
11
|
classes: {},
|
|
13
12
|
variables: {
|
|
14
13
|
'--commons-font-family': '--pr-t-font-family',
|
|
@@ -3,25 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const glob = require("glob");
|
|
5
5
|
const path = require("path");
|
|
6
|
-
const
|
|
6
|
+
const lib_1 = require("../lib");
|
|
7
7
|
const collectionPath = path.normalize(path.join(__dirname, '..', 'collection.json'));
|
|
8
8
|
const testsRoot = path.join(__dirname, 'tests');
|
|
9
9
|
const files = fs.readdirSync(testsRoot);
|
|
10
10
|
describe('Tokens typo Migration', () => {
|
|
11
11
|
it('should update files', async () => {
|
|
12
12
|
// Arrange
|
|
13
|
-
const tree = (0,
|
|
14
|
-
const expectedTree = (0,
|
|
13
|
+
const tree = (0, lib_1.createTreeFromFiles)(testsRoot, files, '.input.');
|
|
14
|
+
const expectedTree = (0, lib_1.createTreeFromFiles)(testsRoot, files, '.output.');
|
|
15
15
|
// Act
|
|
16
16
|
try {
|
|
17
|
-
await (0,
|
|
17
|
+
await (0, lib_1.runSchematic)('collection', collectionPath, 'tokens-typo', { skipInstallation: true }, tree);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
// eslint-disable-next-line no-console
|
|
21
21
|
console.log(error);
|
|
22
22
|
}
|
|
23
23
|
// Assert
|
|
24
|
-
(0,
|
|
24
|
+
(0, lib_1.expectTree)(tree).toMatchTree(expectedTree);
|
|
25
25
|
});
|
|
26
26
|
// Use this to migrate @lucca-front/* packages
|
|
27
27
|
it.skip('should migrate @lucca-front/*', async () => {
|
|
@@ -33,10 +33,10 @@ describe('Tokens typo Migration', () => {
|
|
|
33
33
|
...glob.sync('packages/ng/**/*', { cwd: lfRoot, nodir: true, ignore: ['**/schematics/**'] }),
|
|
34
34
|
...glob.sync('stories/**', { cwd: lfRoot, nodir: true }),
|
|
35
35
|
];
|
|
36
|
-
const treeOriginalTree = (0,
|
|
37
|
-
const tree = (0,
|
|
36
|
+
const treeOriginalTree = (0, lib_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
37
|
+
const tree = (0, lib_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
38
38
|
// Act
|
|
39
|
-
await (0,
|
|
39
|
+
await (0, lib_1.runSchematic)('collection', collectionPath, 'tokens-typo', { skipInstallation: true }, tree);
|
|
40
40
|
// Assert
|
|
41
41
|
tree.visit((p, entry) => {
|
|
42
42
|
const original = treeOriginalTree.get(p)?.content.toString() || '';
|
|
@@ -33,12 +33,17 @@
|
|
|
33
33
|
|
|
34
34
|
> * {
|
|
35
35
|
flex-grow: 1;
|
|
36
|
+
min-inline-size: 0;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
&.mod-optionPicker {
|
|
39
40
|
min-inline-size: 13rem;
|
|
40
41
|
max-inline-size: 30rem;
|
|
41
42
|
}
|
|
43
|
+
|
|
44
|
+
&:has(> lu-select-panel) {
|
|
45
|
+
max-inline-size: 35rem !important;
|
|
46
|
+
}
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
.cdk-overlay-backdrop {
|
|
@@ -122,15 +122,6 @@ declare class LuApiFeederComponent<T extends ILuApiItem = ILuApiItem> extends AL
|
|
|
122
122
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuApiFeederComponent<any>, "lu-api-feeder", never, { "standard": { "alias": "standard"; "required": false; }; "api": { "alias": "api"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "orderBy": { "alias": "orderBy"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; }, {}, never, never, true, never>;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
/**
|
|
126
|
-
* @deprecated use `LuApiFeederComponent` instead
|
|
127
|
-
*/
|
|
128
|
-
declare class LuApiFeederModule {
|
|
129
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LuApiFeederModule, never>;
|
|
130
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LuApiFeederModule, never, [typeof LuApiFeederComponent], [typeof LuApiFeederComponent]>;
|
|
131
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LuApiFeederModule>;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
125
|
type ILuApiOptionSearcher<T extends ILuApiItem = ILuApiItem> = ILuApiOptionFeeder<T>;
|
|
135
126
|
declare abstract class ALuApiOptionSearcher<T extends ILuApiItem = ILuApiItem, S extends ILuApiService<T> = ILuApiService<T>> implements ILuApiOptionFeeder<T>, ILuOnOpenSubscriber {
|
|
136
127
|
protected _service: S;
|
|
@@ -291,15 +282,6 @@ declare class LuApiSearcherModule {
|
|
|
291
282
|
static ɵinj: i0.ɵɵInjectorDeclaration<LuApiSearcherModule>;
|
|
292
283
|
}
|
|
293
284
|
|
|
294
|
-
/**
|
|
295
|
-
* @deprecated use `LuApiPagerComponent` instead
|
|
296
|
-
*/
|
|
297
|
-
declare class LuApiPagerModule {
|
|
298
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LuApiPagerModule, never>;
|
|
299
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LuApiPagerModule, never, [typeof LuApiPagerComponent], [typeof LuApiPagerComponent]>;
|
|
300
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LuApiPagerModule>;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
285
|
/**
|
|
304
286
|
* @deprecated use `LuApiSelectInputComponent` instead
|
|
305
287
|
*/
|
|
@@ -309,5 +291,5 @@ declare class LuApiSelectInputModule {
|
|
|
309
291
|
static ɵinj: i0.ɵɵInjectorDeclaration<LuApiSelectInputModule>;
|
|
310
292
|
}
|
|
311
293
|
|
|
312
|
-
export { ALuApiOptionFeeder, ALuApiOptionPagedSearcher, ALuApiOptionPager, ALuApiOptionSearcher, ALuApiService, LuApiFeederComponent,
|
|
294
|
+
export { ALuApiOptionFeeder, ALuApiOptionPagedSearcher, ALuApiOptionPager, ALuApiOptionSearcher, ALuApiService, LuApiFeederComponent, LuApiHybridService, LuApiModule, LuApiPagedSearcherComponent, LuApiPagerComponent, LuApiSearcherComponent, LuApiSearcherModule, LuApiSelectInputComponent, LuApiSelectInputModule, LuApiSelectModule, LuApiV3Service, LuApiV4Service };
|
|
313
295
|
export type { ILuApiCollectionResponse, ILuApiFeederService, ILuApiItem, ILuApiOptionFeeder, ILuApiOptionPagedSearcher, ILuApiOptionPager, ILuApiOptionSearcher, ILuApiPagerService, ILuApiResponse, ILuApiService, ILuApiSuggestion };
|
|
@@ -12,7 +12,7 @@ interface LuBreadcrumbsLabel {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
declare class BreadcrumbsComponent {
|
|
15
|
-
intl: _angular_core.InputSignalWithTransform<LuBreadcrumbsLabel, Partial<LuBreadcrumbsLabel>>;
|
|
15
|
+
readonly intl: _angular_core.InputSignalWithTransform<LuBreadcrumbsLabel, Partial<LuBreadcrumbsLabel>>;
|
|
16
16
|
readonly disableCompact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
17
|
readonly links: _angular_core.Signal<readonly BreadcrumbsLinkDirective[]>;
|
|
18
18
|
readonly isCompact: _angular_core.Signal<boolean>;
|
|
@@ -11,9 +11,23 @@ declare class CalloutActionsComponent {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
declare class CalloutDisclosureComponent {
|
|
14
|
+
/**
|
|
15
|
+
* The title of the disclosure callout
|
|
16
|
+
*/
|
|
14
17
|
readonly heading: _angular_core.InputSignal<PortalContent>;
|
|
18
|
+
/**
|
|
19
|
+
* Which icon should we display in the disclosure callout if any?
|
|
20
|
+
* Defaults to no icon.
|
|
21
|
+
*/
|
|
15
22
|
readonly icon: _angular_core.InputSignal<LuccaIcon>;
|
|
23
|
+
/**
|
|
24
|
+
* Which palette should be used for the entire disclosure callout.
|
|
25
|
+
* Defaults to none (inherits parent palette)
|
|
26
|
+
*/
|
|
16
27
|
readonly palette: _angular_core.InputSignal<Palette>;
|
|
28
|
+
/**
|
|
29
|
+
* Which size should the disclosure callout be? Defaults to medium
|
|
30
|
+
*/
|
|
17
31
|
readonly size: _angular_core.InputSignal<"M" | "S">;
|
|
18
32
|
/**
|
|
19
33
|
* State is a shorthand to set the icon and the palette to the recommended values for the icon and palette based on
|
|
@@ -23,12 +37,18 @@ declare class CalloutDisclosureComponent {
|
|
|
23
37
|
* state (so setting state to success and palette to warning will make the palette warning)
|
|
24
38
|
*/
|
|
25
39
|
readonly state: _angular_core.InputSignal<"success" | "warning" | "error">;
|
|
40
|
+
/**
|
|
41
|
+
* Is the disclosure callout is open by default
|
|
42
|
+
*/
|
|
26
43
|
readonly open: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
/**
|
|
45
|
+
* Emit boolean event when toggle disclosure callout opened
|
|
46
|
+
*/
|
|
47
|
+
readonly openChange: _angular_core.OutputEmitterRef<boolean>;
|
|
27
48
|
readonly calloutPalette: _angular_core.Signal<string>;
|
|
28
49
|
readonly calloutClasses: _angular_core.Signal<{
|
|
29
50
|
[x: string]: boolean;
|
|
30
51
|
}>;
|
|
31
|
-
openChange: _angular_core.OutputEmitterRef<boolean>;
|
|
32
52
|
onToggle(event: Event): void;
|
|
33
53
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalloutDisclosureComponent, never>;
|
|
34
54
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalloutDisclosureComponent, "lu-callout-disclosure", never, { "heading": { "alias": "heading"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "openChange": "openChange"; }, never, ["*"], true, never>;
|
|
@@ -45,7 +65,14 @@ declare class CalloutFeedbackItemComponent {
|
|
|
45
65
|
|
|
46
66
|
declare class CalloutFeedbackListComponent {
|
|
47
67
|
#private;
|
|
68
|
+
/**
|
|
69
|
+
* Which palette should be used for the entire feedback list callout.
|
|
70
|
+
* Defaults to none (inherits parent palette)
|
|
71
|
+
*/
|
|
48
72
|
readonly palette: _angular_core.InputSignal<Palette>;
|
|
73
|
+
/**
|
|
74
|
+
* Which size should the feedback list callout be? Defaults to medium
|
|
75
|
+
*/
|
|
49
76
|
readonly size: _angular_core.InputSignal<"M" | "S">;
|
|
50
77
|
constructor();
|
|
51
78
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalloutFeedbackListComponent, never>;
|
|
@@ -69,6 +96,9 @@ declare class CalloutPopoverComponent {
|
|
|
69
96
|
* Alternative for the button
|
|
70
97
|
*/
|
|
71
98
|
readonly buttonAlt: _angular_core.InputSignal<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Hide callout popover title if there is only one item
|
|
101
|
+
*/
|
|
72
102
|
readonly headingHiddenIfSingleItem: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
73
103
|
/**
|
|
74
104
|
* Palette for both the button and the popover content
|
|
@@ -124,7 +154,7 @@ interface LuCalloutLabel {
|
|
|
124
154
|
declare const luCalloutTranslations: LuTranslation<LuCalloutLabel>;
|
|
125
155
|
|
|
126
156
|
declare class CalloutComponent {
|
|
127
|
-
intl: _angular_core.InputSignalWithTransform<_lucca_front_ng_callout.LuCalloutLabel, Partial<_lucca_front_ng_callout.LuCalloutLabel>>;
|
|
157
|
+
readonly intl: _angular_core.InputSignalWithTransform<_lucca_front_ng_callout.LuCalloutLabel, Partial<_lucca_front_ng_callout.LuCalloutLabel>>;
|
|
128
158
|
/**
|
|
129
159
|
* The title of the callout
|
|
130
160
|
*/
|
|
@@ -8,16 +8,46 @@ interface ChipTranslate {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
declare class ChipComponent {
|
|
11
|
-
intl: _angular_core.InputSignalWithTransform<ChipTranslate, Partial<ChipTranslate>>;
|
|
11
|
+
readonly intl: _angular_core.InputSignalWithTransform<ChipTranslate, Partial<ChipTranslate>>;
|
|
12
|
+
/**
|
|
13
|
+
* Add an ellipsis if the text is too long
|
|
14
|
+
*/
|
|
12
15
|
readonly withEllipsis: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Makes the chip non-removable
|
|
18
|
+
*/
|
|
13
19
|
readonly unkillable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Which palette should be used for the entire chip.
|
|
22
|
+
* Defaults to none (inherits parent palette)
|
|
23
|
+
*/
|
|
14
24
|
readonly palette: _angular_core.InputSignal<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Disabled the chip
|
|
27
|
+
*/
|
|
15
28
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* Which size should the chip be? Defaults or small
|
|
31
|
+
*/
|
|
16
32
|
readonly size: _angular_core.InputSignal<"S">;
|
|
33
|
+
/**
|
|
34
|
+
* State is a shorthand to set the icon and the palette to the recommended values for the icon and palette based on
|
|
35
|
+
* the provided state.
|
|
36
|
+
*
|
|
37
|
+
* If one of the icon or palette inputs are filled along with the state input, their values will have the priority over
|
|
38
|
+
* state (so setting state to success and palette to warning will make the palette warning)
|
|
39
|
+
*/
|
|
17
40
|
readonly state: _angular_core.InputSignal<"warning" | "critical">;
|
|
18
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Which icon should we display in the chip if any?
|
|
43
|
+
* Defaults to no icon.
|
|
44
|
+
*/
|
|
19
45
|
readonly icon: _angular_core.InputSignal<LuccaIcon>;
|
|
46
|
+
/**
|
|
47
|
+
* Emit event when button kill is click
|
|
48
|
+
*/
|
|
20
49
|
readonly kill: _angular_core.OutputEmitterRef<Event>;
|
|
50
|
+
readonly stateAlt: _angular_core.Signal<string>;
|
|
21
51
|
readonly isWarning: _angular_core.Signal<boolean>;
|
|
22
52
|
readonly isCritical: _angular_core.Signal<boolean>;
|
|
23
53
|
readonly displayedIcon: _angular_core.Signal<LuccaIcon>;
|
|
@@ -16,11 +16,26 @@ declare abstract class ALuClear<T> implements ILuClear<T> {
|
|
|
16
16
|
|
|
17
17
|
declare class ClearComponent<T> extends ALuClear<T> implements ILuClear<T> {
|
|
18
18
|
#private;
|
|
19
|
-
intl: _angular_core.InputSignalWithTransform<LuClearLabel, Partial<LuClearLabel>>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
readonly intl: _angular_core.InputSignalWithTransform<LuClearLabel, Partial<LuClearLabel>>;
|
|
20
|
+
/**
|
|
21
|
+
* Which size should the clear be? Defaults to small
|
|
22
|
+
*/
|
|
23
|
+
readonly size: _angular_core.InputSignal<"S">;
|
|
24
|
+
/**
|
|
25
|
+
* Disabled the clear
|
|
26
|
+
*/
|
|
27
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
/**
|
|
29
|
+
* Which palette should be used for the entire clear
|
|
30
|
+
*/
|
|
31
|
+
readonly palette: _angular_core.InputSignal<Palette>;
|
|
32
|
+
/**
|
|
33
|
+
* Change the clear colors for use on a dark background
|
|
34
|
+
*/
|
|
35
|
+
readonly inverted: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
36
|
+
/**
|
|
37
|
+
* Emit event when button clear is click
|
|
38
|
+
*/
|
|
24
39
|
onClear: EventEmitter<T>;
|
|
25
40
|
contentRef: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
26
41
|
constructor();
|
|
@@ -5,34 +5,42 @@ import { PortalContent } from '@lucca-front/ng/core';
|
|
|
5
5
|
|
|
6
6
|
declare class CommentComponent {
|
|
7
7
|
#private;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
authorName: _angular_core.Signal<_lucca_front_ng_core.PortalContent>;
|
|
11
|
-
size: _angular_core.Signal<"S" | "M">;
|
|
12
|
-
date: _angular_core.InputSignal<Date>;
|
|
8
|
+
readonly content: _angular_core.InputSignal<string>;
|
|
9
|
+
readonly date: _angular_core.InputSignal<Date>;
|
|
13
10
|
/**
|
|
14
11
|
* format given to the date pipe for display.
|
|
15
12
|
*
|
|
16
13
|
* See https://angular.dev/api/common/DatePipe#custom-format-options
|
|
17
14
|
*/
|
|
18
|
-
datePipeFormat: _angular_core.InputSignal<string>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
readonly datePipeFormat: _angular_core.InputSignal<string>;
|
|
16
|
+
readonly noAvatar: _angular_core.Signal<boolean>;
|
|
17
|
+
readonly avatar: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
|
|
18
|
+
readonly authorName: _angular_core.Signal<_lucca_front_ng_core.PortalContent>;
|
|
19
|
+
readonly size: _angular_core.Signal<"S" | "M">;
|
|
20
|
+
readonly contentIsHTML: _angular_core.Signal<boolean>;
|
|
21
|
+
readonly dateDisplay: _angular_core.Signal<string>;
|
|
22
|
+
readonly role: _angular_core.Signal<string>;
|
|
23
23
|
get roleAttr(): string;
|
|
24
24
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommentComponent, never>;
|
|
25
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommentComponent, "lu-comment", never, { "
|
|
25
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommentComponent, "lu-comment", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "datePipeFormat": { "alias": "datePipeFormat"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
declare class CommentBlockComponent {
|
|
29
29
|
#private;
|
|
30
30
|
readonly comments: _angular_core.Signal<readonly CommentComponent[]>;
|
|
31
31
|
readonly compact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
32
|
+
/**
|
|
33
|
+
* Small is a shorthand to set the size to small
|
|
34
|
+
*
|
|
35
|
+
* If the size input is filled along with the small input, their values will have the priority
|
|
36
|
+
*/
|
|
32
37
|
readonly small: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
33
38
|
readonly chatAnswer: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
34
39
|
readonly authorName: _angular_core.InputSignal<PortalContent>;
|
|
35
40
|
readonly avatar: _angular_core.InputSignal<TemplateRef<unknown>>;
|
|
41
|
+
/**
|
|
42
|
+
* Which size should the block comment be? Defaults or small
|
|
43
|
+
*/
|
|
36
44
|
readonly size: _angular_core.InputSignal<"S" | "M">;
|
|
37
45
|
readonly noAvatar: _angular_core.Signal<boolean>;
|
|
38
46
|
readonly isSingleComment: _angular_core.Signal<boolean>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
|
|
3
3
|
declare class ContainerComponent {
|
|
4
|
-
center: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5
|
-
overflow: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6
|
-
max: _angular_core.InputSignal<"M" | "L" | "XL" | "XXL" | "XXXL">;
|
|
7
|
-
classesConfig: _angular_core.Signal<{
|
|
4
|
+
readonly center: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5
|
+
readonly overflow: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6
|
+
readonly max: _angular_core.InputSignal<"M" | "L" | "XL" | "XXL" | "XXXL">;
|
|
7
|
+
readonly classesConfig: _angular_core.Signal<{
|
|
8
8
|
[x: string]: boolean;
|
|
9
9
|
"mod-center": boolean;
|
|
10
10
|
"mod-overflow": boolean;
|