@lucca-front/ng 21.1.0-rc.0 → 21.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/lucca-front-ng-a11y.mjs +6 -6
- package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +16 -48
- 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.map +1 -1
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs +5 -5
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-bubble-icon.mjs +51 -0
- package/fesm2022/lucca-front-ng-bubble-icon.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-bubble-illustration.mjs +135 -0
- package/fesm2022/lucca-front-ng-bubble-illustration.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-button.mjs +21 -0
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +41 -15
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +37 -7
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-clear.mjs +21 -6
- package/fesm2022/lucca-front-ng-clear.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-color.mjs +28 -0
- package/fesm2022/lucca-front-ng-color.mjs.map +1 -0
- 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 +7 -9
- 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 +14 -14
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +68 -49
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +13 -1
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-data-table.mjs +6 -6
- package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +66 -99
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +48 -40
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +8 -24
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +33 -10
- 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-empty-state.mjs +66 -8
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +11 -75
- 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 +40 -34
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +14 -13
- 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 +25 -10
- 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-formly.mjs +4 -4
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +2 -2
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +91 -74
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +110 -41
- 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 +5 -2
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-icon.mjs +15 -0
- package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-index-table.mjs +1 -1
- 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-input.mjs +7 -7
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +21 -6
- 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 +22 -14
- package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +31 -28
- 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 +227 -337
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +9 -0
- package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-pagination.mjs +29 -5
- package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +11 -5
- 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 +30 -20
- 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 +38 -21
- package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-resource-card.mjs +8 -8
- 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 -14
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +65 -14
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sortable-list.mjs +25 -1
- 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 +63 -24
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-toast.mjs +5 -5
- package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +13 -27
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tree-select.mjs +1 -1
- package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user-popover.mjs +6 -6
- package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +20 -36
- 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 +19 -3
- 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 +7 -9
- 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/index.js +29 -0
- package/schematics/lib/local-deps/package-lock.json +2 -0
- package/schematics/lib/local-deps/package.json +1 -2
- 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/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-a11y.d.ts +3 -3
- package/types/lucca-front-ng-api.d.ts +1 -19
- package/types/lucca-front-ng-breadcrumbs.d.ts +9 -9
- package/types/lucca-front-ng-bubble-icon.d.ts +20 -0
- package/types/lucca-front-ng-bubble-illustration.d.ts +24 -0
- package/types/lucca-front-ng-button.d.ts +21 -0
- package/types/lucca-front-ng-callout.d.ts +33 -3
- package/types/lucca-front-ng-chip.d.ts +33 -3
- package/types/lucca-front-ng-clear.d.ts +21 -6
- package/types/lucca-front-ng-color.d.ts +12 -0
- 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 +21 -16
- package/types/lucca-front-ng-core.d.ts +23 -2
- package/types/lucca-front-ng-data-table.d.ts +2 -2
- package/types/lucca-front-ng-date.d.ts +6 -24
- package/types/lucca-front-ng-date2.d.ts +6 -5
- package/types/lucca-front-ng-department.d.ts +3 -12
- package/types/lucca-front-ng-dialog.d.ts +12 -5
- package/types/lucca-front-ng-divider.d.ts +10 -0
- package/types/lucca-front-ng-empty-state.d.ts +21 -3
- package/types/lucca-front-ng-establishment.d.ts +3 -39
- package/types/lucca-front-ng-fancy-box.d.ts +12 -0
- package/types/lucca-front-ng-file-upload.d.ts +18 -8
- package/types/lucca-front-ng-filter-pills.d.ts +6 -5
- package/types/lucca-front-ng-footer.d.ts +3 -0
- package/types/lucca-front-ng-form-field.d.ts +12 -3
- 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-rich-text-input.d.ts +16 -16
- package/types/lucca-front-ng-forms.d.ts +41 -12
- 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-icon.d.ts +15 -0
- package/types/lucca-front-ng-inline-message.d.ts +12 -0
- package/types/lucca-front-ng-input.d.ts +2 -2
- package/types/lucca-front-ng-link.d.ts +17 -2
- 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 +9 -2
- package/types/lucca-front-ng-multi-select.d.ts +26 -24
- 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 +86 -149
- package/types/lucca-front-ng-page-header.d.ts +9 -0
- package/types/lucca-front-ng-pagination.d.ts +26 -2
- package/types/lucca-front-ng-plg-push.d.ts +8 -2
- package/types/lucca-front-ng-popover.d.ts +1 -20
- package/types/lucca-front-ng-popover2.d.ts +8 -6
- package/types/lucca-front-ng-progress-bar.d.ts +9 -0
- package/types/lucca-front-ng-read-more.d.ts +25 -10
- 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-simple-select.d.ts +5 -4
- package/types/lucca-front-ng-skeleton.d.ts +61 -6
- 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 +22 -16
- package/types/lucca-front-ng-toast.d.ts +2 -2
- package/types/lucca-front-ng-tooltip.d.ts +7 -14
- package/types/lucca-front-ng-user-popover.d.ts +6 -7
- package/types/lucca-front-ng-user.d.ts +6 -15
- package/types/lucca-front-ng-vertical-navigation.d.ts +30 -0
|
@@ -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 {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as _lucca_front_ng_a11y from '@lucca-front/ng/a11y';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
2
|
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import * as _lucca_front_ng_a11y from '@lucca-front/ng/a11y';
|
|
4
4
|
import { LuTranslation } from '@lucca-front/ng/core';
|
|
5
5
|
|
|
6
6
|
declare class LuSkipLinksComponent {
|
|
7
7
|
#private;
|
|
8
|
-
protected intl: _lucca_front_ng_a11y.ILuSkipLinksLabel
|
|
8
|
+
protected intl: i0.InputSignalWithTransform<_lucca_front_ng_a11y.ILuSkipLinksLabel, Partial<_lucca_front_ng_a11y.ILuSkipLinksLabel>>;
|
|
9
9
|
anchor(hash: string, e: Event): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuSkipLinksComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuSkipLinksComponent, "lu-skip-links", never, {}, {}, never, never, true, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuSkipLinksComponent, "lu-skip-links", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
declare const LU_SKIP_LINKS_TRANSLATIONS: InjectionToken<LuTranslation<ILuSkipLinksLabel>>;
|
|
@@ -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 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
declare class BreadcrumbsLinkDirective {
|
|
5
5
|
template: TemplateRef<any>;
|
|
6
|
-
static ɵfac:
|
|
7
|
-
static ɵdir:
|
|
6
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbsLinkDirective, never>;
|
|
7
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BreadcrumbsLinkDirective, "[luBreadcrumbsLink]", never, {}, {}, never, never, true, never>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
interface LuBreadcrumbsLabel {
|
|
@@ -12,13 +12,13 @@ interface LuBreadcrumbsLabel {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
declare class BreadcrumbsComponent {
|
|
15
|
-
intl: LuBreadcrumbsLabel
|
|
16
|
-
readonly disableCompact:
|
|
17
|
-
readonly links:
|
|
18
|
-
readonly isCompact:
|
|
15
|
+
readonly intl: _angular_core.InputSignalWithTransform<LuBreadcrumbsLabel, Partial<LuBreadcrumbsLabel>>;
|
|
16
|
+
readonly disableCompact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
readonly links: _angular_core.Signal<readonly BreadcrumbsLinkDirective[]>;
|
|
18
|
+
readonly isCompact: _angular_core.Signal<boolean>;
|
|
19
19
|
readonly id: string;
|
|
20
|
-
static ɵfac:
|
|
21
|
-
static ɵcmp:
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbsComponent, never>;
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbsComponent, "lu-breadcrumbs", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; "disableCompact": { "alias": "disableCompact"; "required": false; "isSignal": true; }; }, {}, ["links"], never, true, never>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export { BreadcrumbsComponent, BreadcrumbsLinkDirective };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { LuccaIcon } from '@lucca-front/icons';
|
|
3
|
+
import { Palette, DecorativePalette } from '@lucca-front/ng/core';
|
|
4
|
+
|
|
5
|
+
declare class BubbleIconComponent {
|
|
6
|
+
readonly icon: _angular_core.InputSignal<LuccaIcon>;
|
|
7
|
+
readonly alt: _angular_core.InputSignal<string>;
|
|
8
|
+
readonly size: _angular_core.InputSignal<"" | "S" | "L">;
|
|
9
|
+
readonly palette: _angular_core.InputSignal<Palette | DecorativePalette>;
|
|
10
|
+
readonly paletteClass: _angular_core.Signal<{
|
|
11
|
+
[x: string]: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
readonly bubbleDirection: _angular_core.InputSignal<"top" | "bottom" | "left" | "right">;
|
|
14
|
+
readonly randomNumber: _angular_core.WritableSignal<number>;
|
|
15
|
+
readonly direction: _angular_core.Signal<number>;
|
|
16
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BubbleIconComponent, never>;
|
|
17
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BubbleIconComponent, "lu-bubble-icon", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "bubbleDirection": { "alias": "bubbleDirection"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { BubbleIconComponent };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Palette, DecorativePalette } from '@lucca-front/ng/core';
|
|
3
|
+
|
|
4
|
+
declare const BubbleIllustrationList: readonly ["moodAngry", "moodBored", "moodHappy", "moodJoyful", "moodMoody", "moodSad", "moodShoked", "moodSly", "moodSmirking", "moodSurprised", "absence", "anniversary", "awardRibbon", "banknote", "battery", "bell", "binders", "biscuit", "bookmark", "books", "bronzeMedal", "building", "bulb", "calculator", "calendar", "camera", "charts", "chat", "checkmark", "chemistry", "clipboard", "clock", "coffee", "cup", "diamond", "equity", "error", "export", "file", "fish", "folder", "gear", "gift", "goldMedal", "graduate", "growth", "hearth", "home", "hourglass", "import", "invoice", "jigsaw", "link", "lock", "magnifyingGlass", "mail", "map", "mapPin", "medical", "megaphone", "mix", "mobile", "multipleReceipts", "newbie", "newsFeed", "office", "outside", "paint", "paperplane", "party", "paymentCards", "payslip", "pen", "percent", "phone", "picture", "polaroid", "receipt", "recruit", "reload", "restaurant", "rocket", "save", "screwdriver", "security", "silverMedal", "sliders", "speed", "stopwatch", "subjects", "survey", "target", "tasklist", "temperature", "thumbtack", "thumbUp", "timer", "trash", "userID", "video", "warning", "widget"];
|
|
5
|
+
type BubbleIllustration = (typeof BubbleIllustrationList)[number];
|
|
6
|
+
|
|
7
|
+
declare class BubbleIllustrationComponent {
|
|
8
|
+
readonly domain = "https://cdn.lucca.fr";
|
|
9
|
+
readonly path = "/transverse/prisme/visuals/bubble-illustration/";
|
|
10
|
+
readonly extension = ".svg";
|
|
11
|
+
readonly illustration: _angular_core.InputSignal<"moodAngry" | "moodBored" | "moodHappy" | "moodJoyful" | "moodMoody" | "moodSad" | "moodShoked" | "moodSly" | "moodSmirking" | "moodSurprised" | "absence" | "anniversary" | "awardRibbon" | "banknote" | "battery" | "bell" | "binders" | "biscuit" | "bookmark" | "books" | "bronzeMedal" | "building" | "bulb" | "calculator" | "calendar" | "camera" | "charts" | "chat" | "checkmark" | "chemistry" | "clipboard" | "clock" | "coffee" | "cup" | "diamond" | "equity" | "error" | "export" | "file" | "fish" | "folder" | "gear" | "gift" | "goldMedal" | "graduate" | "growth" | "hearth" | "home" | "hourglass" | "import" | "invoice" | "jigsaw" | "link" | "lock" | "magnifyingGlass" | "mail" | "map" | "mapPin" | "medical" | "megaphone" | "mix" | "mobile" | "multipleReceipts" | "newbie" | "newsFeed" | "office" | "outside" | "paint" | "paperplane" | "party" | "paymentCards" | "payslip" | "pen" | "percent" | "phone" | "picture" | "polaroid" | "receipt" | "recruit" | "reload" | "restaurant" | "rocket" | "save" | "screwdriver" | "security" | "silverMedal" | "sliders" | "speed" | "stopwatch" | "subjects" | "survey" | "target" | "tasklist" | "temperature" | "thumbtack" | "thumbUp" | "timer" | "trash" | "userID" | "video" | "warning" | "widget">;
|
|
12
|
+
readonly palette: _angular_core.InputSignal<Palette | DecorativePalette>;
|
|
13
|
+
readonly size: _angular_core.InputSignal<"" | "S" | "L">;
|
|
14
|
+
readonly action: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
readonly illustrationUrl: _angular_core.Signal<string>;
|
|
16
|
+
readonly paletteClass: _angular_core.Signal<{
|
|
17
|
+
[x: string]: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BubbleIllustrationComponent, never>;
|
|
20
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BubbleIllustrationComponent, "lu-bubble-illustration", never, { "illustration": { "alias": "illustration"; "required": true; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "action": { "alias": "action"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { BubbleIllustrationComponent, BubbleIllustrationList };
|
|
24
|
+
export type { BubbleIllustration };
|
|
@@ -5,12 +5,33 @@ import { Palette } from '@lucca-front/ng/core';
|
|
|
5
5
|
declare class ButtonComponent {
|
|
6
6
|
#private;
|
|
7
7
|
readonly notifyError: _angular_core.WritableSignal<boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Change the size of the Button
|
|
10
|
+
*/
|
|
8
11
|
readonly size: _angular_core.InputSignal<"M" | "S" | "XS">;
|
|
12
|
+
/**
|
|
13
|
+
* Apply block display
|
|
14
|
+
*/
|
|
9
15
|
readonly block: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates an action with significant or irreversible consequences on hover and focus. Only compatible with outlined and ghost
|
|
18
|
+
*/
|
|
10
19
|
readonly critical: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated use `critical` input instead
|
|
22
|
+
*/
|
|
11
23
|
readonly delete: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates the presence of a menu
|
|
26
|
+
*/
|
|
12
27
|
readonly disclosure: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
/**
|
|
29
|
+
* Applies a color palette to the Button
|
|
30
|
+
*/
|
|
13
31
|
readonly palette: _angular_core.InputSignal<Palette>;
|
|
32
|
+
/**
|
|
33
|
+
* Modifies the state of the Button
|
|
34
|
+
*/
|
|
14
35
|
readonly state: _angular_core.InputSignal<"success" | "error" | "default" | "loading">;
|
|
15
36
|
/**
|
|
16
37
|
* '' is the default value when you just set the `luButton` directive without a value attached to it.
|
|
@@ -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: _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
|
*/
|
|
@@ -176,7 +206,7 @@ declare class CalloutComponent {
|
|
|
176
206
|
[x: string]: boolean;
|
|
177
207
|
}>;
|
|
178
208
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalloutComponent, never>;
|
|
179
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalloutComponent, "lu-callout", never, { "heading": { "alias": "heading"; "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; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "removed": { "alias": "removed"; "required": false; "isSignal": true; }; "iconAlt": { "alias": "iconAlt"; "required": false; "isSignal": true; }; "AI": { "alias": "AI"; "required": false; "isSignal": true; }; }, { "removedChange": "removedChange"; }, never, ["*"], true, never>;
|
|
209
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalloutComponent, "lu-callout", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "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; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "removed": { "alias": "removed"; "required": false; "isSignal": true; }; "iconAlt": { "alias": "iconAlt"; "required": false; "isSignal": true; }; "AI": { "alias": "AI"; "required": false; "isSignal": true; }; }, { "removedChange": "removedChange"; }, never, ["*"], true, never>;
|
|
180
210
|
}
|
|
181
211
|
|
|
182
212
|
export { CalloutActionsComponent, CalloutComponent, CalloutDisclosureComponent, CalloutFeedbackItemComponent, CalloutFeedbackItemDescriptionDirective, CalloutFeedbackListComponent, CalloutPopoverComponent, CalloutStateMap, CalloutStates, LU_CALLOUT_TRANSLATIONS, luCalloutTranslations };
|
|
@@ -8,21 +8,51 @@ interface ChipTranslate {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
declare class ChipComponent {
|
|
11
|
-
intl: 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>;
|
|
24
54
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChipComponent, never>;
|
|
25
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChipComponent, "lu-chip, button[luChip], a[luChip]", never, { "withEllipsis": { "alias": "withEllipsis"; "required": false; "isSignal": true; }; "unkillable": { "alias": "unkillable"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, { "kill": "kill"; }, never, ["*"], true, never>;
|
|
55
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChipComponent, "lu-chip, button[luChip], a[luChip]", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; "withEllipsis": { "alias": "withEllipsis"; "required": false; "isSignal": true; }; "unkillable": { "alias": "unkillable"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, { "kill": "kill"; }, never, ["*"], true, never>;
|
|
26
56
|
}
|
|
27
57
|
|
|
28
58
|
export { ChipComponent };
|
|
@@ -16,17 +16,32 @@ 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: 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();
|
|
27
42
|
clear($event: Event): void;
|
|
28
43
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClearComponent<any>, never>;
|
|
29
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClearComponent<any>, "lu-clear", ["luClearer"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "inverted": { "alias": "inverted"; "required": false; "isSignal": true; }; }, { "onClear": "onClear"; }, ["contentRef"], ["*"], true, never>;
|
|
44
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClearComponent<any>, "lu-clear", ["luClearer"], { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "inverted": { "alias": "inverted"; "required": false; "isSignal": true; }; }, { "onClear": "onClear"; }, ["contentRef"], ["*"], true, never>;
|
|
30
45
|
}
|
|
31
46
|
|
|
32
47
|
export { ALuClear, ClearComponent };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class ColorComponent {
|
|
4
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
5
|
+
readonly borderColor: _angular_core.InputSignal<string>;
|
|
6
|
+
readonly size: _angular_core.InputSignal<"L" | "XL">;
|
|
7
|
+
readonly hiddenName: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorComponent, never>;
|
|
9
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorComponent, "lu-color", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "borderColor": { "alias": "borderColor"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "hiddenName": { "alias": "hiddenName"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { ColorComponent };
|