@lucca-front/ng 20.3.3-rc.1 → 20.3.3-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/callout/index.d.ts +8 -2
- package/chip/index.d.ts +3 -2
- package/clear/index.d.ts +30 -0
- package/code/index.d.ts +9 -0
- package/core-select/department/index.d.ts +1 -1
- package/core-select/index.d.ts +2 -10
- package/data-table/index.d.ts +46 -14
- package/dropdown/index.d.ts +1 -2
- package/fesm2022/lucca-front-ng-a11y.mjs +32 -32
- package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-animations.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +58 -59
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-app-layout.mjs +6 -6
- package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-box.mjs +8 -8
- package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs +14 -14
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-button.mjs +12 -7
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +116 -64
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +28 -24
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-clear.mjs +94 -0
- package/fesm2022/lucca-front-ng-clear.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-code.mjs +21 -0
- package/fesm2022/lucca-front-ng-code.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-comment.mjs +31 -31
- package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-container.mjs +8 -8
- package/fesm2022/lucca-front-ng-container.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-api.mjs +14 -16
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-department.mjs +16 -18
- package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs +19 -22
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +12 -14
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs +55 -58
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +103 -130
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +15 -17
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-data-table.mjs +219 -86
- package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +95 -97
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +133 -134
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +46 -46
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +51 -55
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +10 -10
- package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +48 -55
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +13 -9
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +70 -71
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-fancy-box.mjs +4 -4
- package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-file-upload.mjs +111 -111
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +78 -81
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-footer.mjs +10 -10
- package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +87 -87
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-header.mjs +23 -0
- package/fesm2022/lucca-front-ng-form-header.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-form.mjs +24 -0
- package/fesm2022/lucca-front-ng-form.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-formly.mjs +78 -77
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +21 -22
- 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.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +4 -4
- 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.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +147 -151
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +176 -163
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-gauge.mjs +20 -20
- package/fesm2022/lucca-front-ng-gauge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-grid.mjs +25 -26
- package/fesm2022/lucca-front-ng-grid.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-data.mjs +20 -20
- package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +13 -13
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-icon.mjs +6 -6
- package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +4 -4
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs +63 -59
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +15 -26
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listbox.mjs +30 -30
- package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listing.mjs +16 -16
- package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-loading.mjs +10 -10
- package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-main-layout.mjs +12 -13
- package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-mobile-push.mjs +39 -31
- package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +50 -50
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +200 -217
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-new-badge.mjs +4 -4
- package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number-format.mjs +11 -13
- package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number.mjs +7 -8
- package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +22 -10
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +227 -234
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +10 -10
- package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-pagination.mjs +38 -38
- package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +54 -5
- package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.mjs +26 -28
- package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +36 -33
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popup.mjs +10 -10
- package/fesm2022/lucca-front-ng-popup.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-progress-bar.mjs +28 -0
- package/fesm2022/lucca-front-ng-progress-bar.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-read-more.mjs +32 -32
- package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-safe-content.mjs +10 -11
- package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll-box.mjs +46 -0
- package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-scroll.mjs +7 -8
- package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scrollBox.mjs +1 -66
- package/fesm2022/lucca-front-ng-scrollBox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +97 -0
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-segmented-control.mjs +71 -0
- package/fesm2022/lucca-front-ng-segmented-control.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-segmentedControl.mjs +1 -66
- package/fesm2022/lucca-front-ng-segmentedControl.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmentedControlTabs.mjs +1 -93
- package/fesm2022/lucca-front-ng-segmentedControlTabs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +21 -20
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
- package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +75 -70
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +44 -44
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sortable-list.mjs +43 -0
- package/fesm2022/lucca-front-ng-sortable-list.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-status-badge.mjs +34 -0
- package/fesm2022/lucca-front-ng-status-badge.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-statusBadge.mjs +1 -29
- package/fesm2022/lucca-front-ng-statusBadge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-table-of-content.mjs +39 -0
- package/fesm2022/lucca-front-ng-table-of-content.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-tag.mjs +35 -13
- package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +119 -120
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-title.mjs +10 -10
- package/fesm2022/lucca-front-ng-title.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-toast.mjs +23 -23
- package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +32 -33
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tree-select.mjs +20 -21
- package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user-popover.mjs +22 -26
- package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +109 -110
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs +91 -0
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs.map +1 -0
- package/form/index.d.ts +9 -0
- package/form-field/index.d.ts +7 -6
- package/form-header/index.d.ts +9 -0
- package/forms/index.d.ts +3 -1
- package/forms/rich-text-input/index.d.ts +1 -3
- package/grid/index.d.ts +2 -2
- package/input/index.d.ts +23 -17
- package/link/index.d.ts +0 -3
- package/multi-select/index.d.ts +1 -0
- package/package.json +109 -61
- package/plg-push/index.d.ts +13 -1
- package/progress-bar/index.d.ts +14 -0
- package/schematics/collection.json +5 -0
- package/schematics/lib/angular-component-ast.js +29 -0
- package/schematics/lu-text-input/index.js +24 -0
- package/schematics/lu-text-input/migration.js +104 -0
- package/schematics/lu-text-input/migration.spec.js +23 -0
- package/schematics/lu-text-input/schema.json +23 -0
- package/scroll-box/index.d.ts +15 -0
- package/scrollBox/index.d.ts +1 -19
- package/segmented-control/index.d.ts +28 -0
- package/segmented-control-tabs/index.d.ts +34 -0
- package/segmentedControl/index.d.ts +1 -28
- package/segmentedControlTabs/index.d.ts +1 -34
- package/select/index.d.ts +5 -4
- package/simple-select/index.d.ts +2 -2
- package/sortable-list/index.d.ts +20 -0
- package/status-badge/index.d.ts +16 -0
- package/statusBadge/index.d.ts +1 -16
- package/table-of-content/index.d.ts +16 -0
- package/vertical-navigation/index.d.ts +42 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.migrateComponent = migrateComponent;
|
|
4
|
+
const angular_template_1 = require("../lib/angular-template");
|
|
5
|
+
const html_ast_js_1 = require("../lib/html-ast.js");
|
|
6
|
+
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
7
|
+
const angular_component_ast_1 = require("../lib/angular-component-ast");
|
|
8
|
+
const change_1 = require("@schematics/angular/utility/change");
|
|
9
|
+
function migrateComponent(sourceFile, path, tree) {
|
|
10
|
+
const textfields = findTextfields(sourceFile, path, tree);
|
|
11
|
+
if (textfields.length > 0) {
|
|
12
|
+
const tsUpdate = tree.beginUpdate(path);
|
|
13
|
+
const isInlineTemplate = textfields[0].filePath === path;
|
|
14
|
+
const templateUpdate = isInlineTemplate ? tsUpdate : tree.beginUpdate(textfields[0].filePath);
|
|
15
|
+
textfields.forEach((field) => {
|
|
16
|
+
if (field.rejection) {
|
|
17
|
+
// eslint-disable-next-line no-console
|
|
18
|
+
console.log(`[REJECTED] ${field.filePath}#L${field.node.startSourceSpan.start.line} => ${field.rejection}`);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
// Let's remove everything first
|
|
22
|
+
templateUpdate.remove(field.nodeOffset + field.node.startSourceSpan.start.offset, field.node.sourceSpan.toString().length);
|
|
23
|
+
// Then forge the new input
|
|
24
|
+
const textInput = `<lu-text-input ${(0, angular_component_ast_1.inputValueToHTML)('placeholder', field.inputs.placeholder)} ${(0, angular_component_ast_1.inputValueToHTML)('formControlName', field.inputs.formControlName)} ${(0, angular_component_ast_1.inputValueToHTML)('ngModel', field.inputs.ngModel)} />`.replace(/\s{2,}/, " ");
|
|
25
|
+
const fieldOpeningTag = `lu-form-field [label]="labelTpl"`.replace(/\s{2,}/, " ").trim();
|
|
26
|
+
// TODO handle required migration from template-driven to form-driven???
|
|
27
|
+
const newInput = `<${fieldOpeningTag}>
|
|
28
|
+
<ng-template #labelTpl>${field.label}</ng-template>
|
|
29
|
+
${textInput}
|
|
30
|
+
</lu-form-field>`;
|
|
31
|
+
templateUpdate.insertRight(field.nodeOffset + field.node.startSourceSpan.start.offset, newInput);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
// Add import if needed
|
|
35
|
+
(0, change_1.applyToUpdateRecorder)(tsUpdate, [
|
|
36
|
+
(0, angular_component_ast_1.insertTSImportIfNeeded)(sourceFile, path, 'FormFieldComponent', '@lucca-front/ng/form-field'),
|
|
37
|
+
(0, angular_component_ast_1.insertAngularImportIfNeeded)(sourceFile, path, 'FormFieldComponent'),
|
|
38
|
+
(0, angular_component_ast_1.insertTSImportIfNeeded)(sourceFile, path, 'TextInputComponent', '@lucca-front/ng/forms'),
|
|
39
|
+
(0, angular_component_ast_1.insertAngularImportIfNeeded)(sourceFile, path, 'TextInputComponent')
|
|
40
|
+
]);
|
|
41
|
+
tree.commitUpdate(tsUpdate);
|
|
42
|
+
if (!isInlineTemplate) {
|
|
43
|
+
tree.commitUpdate(templateUpdate);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return tree.readText(path);
|
|
47
|
+
}
|
|
48
|
+
function findTextfields(sourceFile, basePath, tree) {
|
|
49
|
+
const fields = [];
|
|
50
|
+
const ngTemplates = (0, angular_template_1.extractNgTemplatesIncludingHtml)(sourceFile, tree, basePath);
|
|
51
|
+
ngTemplates.forEach((template) => {
|
|
52
|
+
const htmlAst = new html_ast_js_1.HtmlAst(template.content);
|
|
53
|
+
htmlAst.visitNodes((node) => {
|
|
54
|
+
if (isInterestingNode(node) && node.name === "label") {
|
|
55
|
+
const classes = getNodeClasses(node);
|
|
56
|
+
const inputs = {
|
|
57
|
+
size: classes.find(c => /mod-(XS|S|M|L|XL|XXL)/.test(c))?.replace('mod-', '')
|
|
58
|
+
};
|
|
59
|
+
const field = {
|
|
60
|
+
node: node,
|
|
61
|
+
inputs,
|
|
62
|
+
nodeOffset: template.offsetStart,
|
|
63
|
+
filePath: template.filePath,
|
|
64
|
+
componentTS: sourceFile,
|
|
65
|
+
classes: classes
|
|
66
|
+
};
|
|
67
|
+
if (classes.includes("textfield")) {
|
|
68
|
+
if (node.children.filter(el => isInterestingNode(el)).length > 2) {
|
|
69
|
+
field.rejection = "Field contains more than an input + label";
|
|
70
|
+
}
|
|
71
|
+
// Find native input and grab params from it
|
|
72
|
+
const nativeInput = node.children.find(el => isInterestingNode(el) && el.name === "input");
|
|
73
|
+
if (!nativeInput) {
|
|
74
|
+
field.rejection = "Field doesn't contain a native input[type=text]";
|
|
75
|
+
}
|
|
76
|
+
else if (isInterestingNode(nativeInput)) {
|
|
77
|
+
inputs.placeholder = (0, angular_component_ast_1.getInputValue)(nativeInput, "placeholder");
|
|
78
|
+
inputs.formControlName = (0, angular_component_ast_1.getInputValue)(nativeInput, "formControlName");
|
|
79
|
+
inputs.ngModel = (0, angular_component_ast_1.getInputValue)(nativeInput, "ngModel");
|
|
80
|
+
inputs.forceRequired = (0, angular_component_ast_1.getInputValue)(nativeInput, "aria-required");
|
|
81
|
+
}
|
|
82
|
+
// This is a textfield, now let's find if it has everything required for migration
|
|
83
|
+
const visitor = new html_ast_js_1.HtmlAstVisitor(node);
|
|
84
|
+
visitor.visitElements(/span/, (el) => {
|
|
85
|
+
if (isInterestingNode(el) && getNodeClasses(el).includes("textfield-label")) {
|
|
86
|
+
field.label = template.content.slice(el.startSourceSpan.end.offset, el.endSourceSpan?.start?.offset);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
if (!field.label) {
|
|
90
|
+
field.rejection = "Field has no label";
|
|
91
|
+
}
|
|
92
|
+
fields.push(field);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
return fields;
|
|
98
|
+
}
|
|
99
|
+
function getNodeClasses(node) {
|
|
100
|
+
return (node.attributes.find(attr => attr.name === 'class')?.value || "").split(" ");
|
|
101
|
+
}
|
|
102
|
+
function isInterestingNode(node) {
|
|
103
|
+
return node instanceof lf_schematic_context_1.currentSchematicContext.angularCompiler.TmplAstElement;
|
|
104
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const migration_test_js_1 = require("../lib/migration-test.js");
|
|
5
|
+
const collectionPath = path.normalize(path.join(__dirname, '..', 'collection.json'));
|
|
6
|
+
const testsRoot = path.join(__dirname, 'tests');
|
|
7
|
+
describe('Textfield Migration', () => {
|
|
8
|
+
it('should handle basic case files', async () => {
|
|
9
|
+
// Arrange
|
|
10
|
+
const tree = (0, migration_test_js_1.createTreeFromFolder)(path.join(testsRoot, 'input'));
|
|
11
|
+
const expectedTree = (0, migration_test_js_1.createTreeFromFolder)(path.join(testsRoot, 'output'));
|
|
12
|
+
// Act
|
|
13
|
+
try {
|
|
14
|
+
await (0, migration_test_js_1.runSchematic)('collection', collectionPath, 'lu-text-input', { skipInstallation: true }, tree);
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
// eslint-disable-next-line no-console
|
|
18
|
+
console.log(error);
|
|
19
|
+
}
|
|
20
|
+
// Assert
|
|
21
|
+
(0, migration_test_js_1.expectTree)(tree).toMatchTree(expectedTree);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "LuccaFrontLuButton",
|
|
4
|
+
"title": "Migrate CSS-only buttons to the new luButton component",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"dryRun": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Run through the migration without making any changes.",
|
|
10
|
+
"default": false
|
|
11
|
+
},
|
|
12
|
+
"skipInstall": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"description": "Skip installing dependencies.",
|
|
15
|
+
"default": false
|
|
16
|
+
},
|
|
17
|
+
"verbose": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "Enable verbose logging.",
|
|
20
|
+
"default": false
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, ElementRef } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class ScrollBoxComponent implements OnInit {
|
|
5
|
+
first: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
6
|
+
last: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
7
|
+
isFirstVisible: _angular_core.WritableSignal<boolean>;
|
|
8
|
+
isLastVisible: _angular_core.WritableSignal<boolean>;
|
|
9
|
+
initObserver(element: Element, isFirst: boolean): void;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollBoxComponent, never>;
|
|
12
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScrollBoxComponent, "lu-scroll-box", never, {}, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { ScrollBoxComponent };
|
package/scrollBox/index.d.ts
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
declare class ScrollBoxComponent implements OnInit, OnDestroy {
|
|
5
|
-
#private;
|
|
6
|
-
get isFirstVisibleClass(): boolean;
|
|
7
|
-
isFirstVisible: _angular_core.WritableSignal<boolean>;
|
|
8
|
-
get isLastVisibleClass(): boolean;
|
|
9
|
-
isLastVisible: _angular_core.WritableSignal<boolean>;
|
|
10
|
-
initObserver(element: Element, isFirst: boolean): void;
|
|
11
|
-
observeFirstAndLastElement: () => void;
|
|
12
|
-
observer: MutationObserver;
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
ngOnDestroy(): void;
|
|
15
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollBoxComponent, never>;
|
|
16
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScrollBoxComponent, "lu-scroll-box", never, {}, {}, never, ["*"], true, never>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { ScrollBoxComponent };
|
|
1
|
+
export * from '@lucca-front/ng/scroll-box';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as _angular_forms from '@angular/forms';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import * as _lucca_front_ng_segmented_control from '@lucca-front/ng/segmented-control';
|
|
4
|
+
import { PortalContent } from '@lucca-front/ng/core';
|
|
5
|
+
import * as i1 from '@lucca-front/ng/forms';
|
|
6
|
+
|
|
7
|
+
declare class SegmentedControlFilterComponent<T = unknown> {
|
|
8
|
+
protected segmentedControlRef: _lucca_front_ng_segmented_control.SegmentedControlComponent;
|
|
9
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
value: _angular_core.InputSignal<T>;
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
label: _angular_core.InputSignal<PortalContent>;
|
|
14
|
+
get formControl(): _angular_forms.FormControl<any>;
|
|
15
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlFilterComponent<any>, never>;
|
|
16
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlFilterComponent<any>, "lu-segmented-control-filter", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare class SegmentedControlComponent {
|
|
20
|
+
ngControl: _angular_forms.NgModel | _angular_forms.FormControlDirective | _angular_forms.FormControlName;
|
|
21
|
+
small: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
22
|
+
vertical: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
id: string;
|
|
24
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlComponent, never>;
|
|
25
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlComponent, "lu-segmented-control", never, { "small": { "alias": "small"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NoopValueAccessorDirective; inputs: {}; outputs: {}; }]>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { SegmentedControlComponent, SegmentedControlFilterComponent };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { AfterContentInit, ElementRef } from '@angular/core';
|
|
3
|
+
import * as _lucca_front_ng_segmented_control_tabs from '@lucca-front/ng/segmented-control-tabs';
|
|
4
|
+
import { PortalContent } from '@lucca-front/ng/core';
|
|
5
|
+
import * as i1 from '@lucca-front/ng/forms';
|
|
6
|
+
|
|
7
|
+
declare class SegmentedControlTabsPanelComponent<T = unknown> {
|
|
8
|
+
protected segmentedControlTabsRef: _lucca_front_ng_segmented_control_tabs.SegmentedControlTabsComponent<unknown>;
|
|
9
|
+
label: _angular_core.InputSignal<PortalContent>;
|
|
10
|
+
value: _angular_core.InputSignal<T>;
|
|
11
|
+
id: number;
|
|
12
|
+
panelId: string;
|
|
13
|
+
labelId: string;
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlTabsPanelComponent<any>, never>;
|
|
15
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlTabsPanelComponent<any>, "lu-segmented-control-tabs-panel", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class SegmentedControlTabsComponent<T = unknown> implements AfterContentInit {
|
|
19
|
+
small: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
vertical: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
id: string;
|
|
22
|
+
tabs: _angular_core.Signal<readonly SegmentedControlTabsPanelComponent<T>[]>;
|
|
23
|
+
tabButtons: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
24
|
+
active: _angular_core.ModelSignal<T>;
|
|
25
|
+
currentIndex: _angular_core.Signal<number>;
|
|
26
|
+
previous(): void;
|
|
27
|
+
next(): void;
|
|
28
|
+
setActiveTab(index: number): void;
|
|
29
|
+
ngAfterContentInit(): void;
|
|
30
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlTabsComponent<any>, never>;
|
|
31
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlTabsComponent<any>, "lu-segmented-control-tabs", never, { "small": { "alias": "small"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; }, ["tabs"], ["*"], true, [{ directive: typeof i1.NoopValueAccessorDirective; inputs: {}; outputs: {}; }]>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { SegmentedControlTabsComponent, SegmentedControlTabsPanelComponent };
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as _angular_core from '@angular/core';
|
|
3
|
-
import * as _lucca_front_ng_segmentedControl from '@lucca-front/ng/segmentedControl';
|
|
4
|
-
import { PortalContent } from '@lucca-front/ng/core';
|
|
5
|
-
import * as i1 from '@lucca-front/ng/forms';
|
|
6
|
-
|
|
7
|
-
declare class SegmentedControlFilterComponent<T = unknown> {
|
|
8
|
-
protected segmentedControlRef: _lucca_front_ng_segmentedControl.SegmentedControlComponent;
|
|
9
|
-
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
10
|
-
value: _angular_core.InputSignal<T>;
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
label: _angular_core.InputSignal<PortalContent>;
|
|
14
|
-
get formControl(): _angular_forms.FormControl<any>;
|
|
15
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlFilterComponent<any>, never>;
|
|
16
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlFilterComponent<any>, "lu-segmented-control-filter", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare class SegmentedControlComponent {
|
|
20
|
-
ngControl: _angular_forms.NgModel | _angular_forms.FormControlDirective | _angular_forms.FormControlName;
|
|
21
|
-
small: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
22
|
-
vertical: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
23
|
-
id: string;
|
|
24
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlComponent, never>;
|
|
25
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlComponent, "lu-segmented-control", never, { "small": { "alias": "small"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NoopValueAccessorDirective; inputs: {}; outputs: {}; }]>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { SegmentedControlComponent, SegmentedControlFilterComponent };
|
|
1
|
+
export * from '@lucca-front/ng/segmented-control';
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { AfterContentInit, ElementRef } from '@angular/core';
|
|
3
|
-
import * as _lucca_front_ng_segmentedControlTabs from '@lucca-front/ng/segmentedControlTabs';
|
|
4
|
-
import { PortalContent } from '@lucca-front/ng/core';
|
|
5
|
-
import * as i1 from '@lucca-front/ng/forms';
|
|
6
|
-
|
|
7
|
-
declare class SegmentedControlTabsPanelComponent<T = unknown> {
|
|
8
|
-
protected segmentedControlTabsRef: _lucca_front_ng_segmentedControlTabs.SegmentedControlTabsComponent<unknown>;
|
|
9
|
-
label: _angular_core.InputSignal<PortalContent>;
|
|
10
|
-
value: _angular_core.InputSignal<T>;
|
|
11
|
-
id: number;
|
|
12
|
-
panelId: string;
|
|
13
|
-
labelId: string;
|
|
14
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlTabsPanelComponent<any>, never>;
|
|
15
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlTabsPanelComponent<any>, "lu-segmented-control-tabs-panel", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare class SegmentedControlTabsComponent<T = unknown> implements AfterContentInit {
|
|
19
|
-
small: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
-
vertical: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
-
id: string;
|
|
22
|
-
tabs: _angular_core.Signal<readonly SegmentedControlTabsPanelComponent<T>[]>;
|
|
23
|
-
tabButtons: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
24
|
-
active: _angular_core.ModelSignal<T>;
|
|
25
|
-
currentIndex: _angular_core.Signal<number>;
|
|
26
|
-
previous(): void;
|
|
27
|
-
next(): void;
|
|
28
|
-
setActiveTab(index: number): void;
|
|
29
|
-
ngAfterContentInit(): void;
|
|
30
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlTabsComponent<any>, never>;
|
|
31
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlTabsComponent<any>, "lu-segmented-control-tabs", never, { "small": { "alias": "small"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; }, ["tabs"], ["*"], true, [{ directive: typeof i1.NoopValueAccessorDirective; inputs: {}; outputs: {}; }]>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { SegmentedControlTabsComponent, SegmentedControlTabsPanelComponent };
|
|
1
|
+
export * from '@lucca-front/ng/segmented-control-tabs';
|
package/select/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ChangeDetectorRef, ElementRef, ViewContainerRef, Renderer2, ViewRef, AfterViewInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
3
3
|
import { Overlay, OverlayConfig } from '@angular/cdk/overlay';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
-
import {
|
|
5
|
+
import { ILuClear } from '@lucca-front/ng/clear';
|
|
6
|
+
import { ILuInput, ILuInputDisplayer } from '@lucca-front/ng/input';
|
|
6
7
|
import { ILuPickerPanel, ILuInputWithPicker } from '@lucca-front/ng/picker';
|
|
7
8
|
import { ALuPopoverTrigger } from '@lucca-front/ng/popover';
|
|
8
9
|
import { Subscription } from 'rxjs';
|
|
@@ -41,7 +42,7 @@ declare abstract class ALuSelectInput<T, TPicker extends ILuPickerPanel<T> = ILu
|
|
|
41
42
|
*/
|
|
42
43
|
protected set _picker(picker: TPicker);
|
|
43
44
|
protected get _picker(): TPicker;
|
|
44
|
-
protected set _clearer(clearer:
|
|
45
|
+
protected set _clearer(clearer: ILuClear<T>);
|
|
45
46
|
protected subToPickerEvts(): void;
|
|
46
47
|
closePopover(): void;
|
|
47
48
|
onDestroy(): void;
|
|
@@ -90,8 +91,8 @@ declare abstract class ALuSelectInputComponent<T, TPicker extends ILuPickerPanel
|
|
|
90
91
|
vcPicker: TPicker;
|
|
91
92
|
ccDisplayer: ILuInputDisplayer<T>;
|
|
92
93
|
vcDisplayer: ILuInputDisplayer<T>;
|
|
93
|
-
ccClearer:
|
|
94
|
-
vcClearer:
|
|
94
|
+
ccClearer: ILuClear<T>;
|
|
95
|
+
vcClearer: ILuClear<T>;
|
|
95
96
|
onClick(): void;
|
|
96
97
|
onMouseEnter(): void;
|
|
97
98
|
onMouseLeave(): void;
|
package/simple-select/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ interface ILuSimpleSelectLabel {
|
|
|
13
13
|
clear: string;
|
|
14
14
|
clearSearch: string;
|
|
15
15
|
emptyResults: string;
|
|
16
|
+
emptyOptions: string;
|
|
16
17
|
loading: string;
|
|
17
18
|
}
|
|
18
19
|
declare const luSimpleSelectTranslations: LuTranslation<ILuSimpleSelectLabel>;
|
|
@@ -52,7 +53,7 @@ declare class LuSelectPanelComponent<T> implements AfterViewInit, CoreSelectPane
|
|
|
52
53
|
selectId: number;
|
|
53
54
|
intl: ILuSimpleSelectLabel;
|
|
54
55
|
options$: rxjs.ReplaySubject<readonly T[]>;
|
|
55
|
-
grouping:
|
|
56
|
+
grouping: _lucca_front_ng_core_select.LuOptionGrouping<T, unknown>;
|
|
56
57
|
treeGenerator: _lucca_front_ng_core_select.TreeGenerator<T, TreeNode<T>>;
|
|
57
58
|
loading$: rxjs.BehaviorSubject<boolean>;
|
|
58
59
|
searchable: boolean;
|
|
@@ -66,7 +67,6 @@ declare class LuSelectPanelComponent<T> implements AfterViewInit, CoreSelectPane
|
|
|
66
67
|
options: _angular_core.WritableSignal<_CoreSelectPanelElement<T>[]>;
|
|
67
68
|
keyManager: CoreSelectKeyManager<T>;
|
|
68
69
|
selected: _angular_core.Signal<T>;
|
|
69
|
-
hasGrouping$: rxjs.Observable<boolean>;
|
|
70
70
|
clueChange$: rxjs.Observable<string>;
|
|
71
71
|
shouldDisplayAddOption$: rxjs.Observable<boolean>;
|
|
72
72
|
groupTemplateLocation$: rxjs.Observable<"group-header" | "option" | "none">;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class SortableListItemComponent {
|
|
4
|
+
label: _angular_core.InputSignal<string>;
|
|
5
|
+
helperMessage: _angular_core.InputSignal<string>;
|
|
6
|
+
clickable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7
|
+
unclearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
|
+
delete: _angular_core.OutputEmitterRef<void>;
|
|
9
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SortableListItemComponent, never>;
|
|
10
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SortableListItemComponent, "lu-sortable-list-item", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "helperMessage": { "alias": "helperMessage"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "unclearable": { "alias": "unclearable"; "required": false; "isSignal": true; }; }, { "delete": "delete"; }, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class SortableListComponent {
|
|
14
|
+
small: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
sortableListItems: _angular_core.Signal<readonly SortableListItemComponent[]>;
|
|
16
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SortableListComponent, never>;
|
|
17
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SortableListComponent, "lu-sortable-list", never, { "small": { "alias": "small"; "required": false; "isSignal": true; }; }, {}, ["sortableListItems"], ["*"], true, never>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { SortableListComponent, SortableListItemComponent };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnChanges } from '@angular/core';
|
|
3
|
+
import { Palette } from '@lucca-front/ng/core';
|
|
4
|
+
|
|
5
|
+
declare class StatusBadgeComponent implements OnChanges {
|
|
6
|
+
#private;
|
|
7
|
+
withEllipsis: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
|
+
label: _angular_core.InputSignal<string>;
|
|
9
|
+
size: _angular_core.InputSignal<"L" | "M">;
|
|
10
|
+
palette: _angular_core.InputSignal<Palette>;
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StatusBadgeComponent, never>;
|
|
13
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StatusBadgeComponent, "lu-status-badge", never, { "withEllipsis": { "alias": "withEllipsis"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { StatusBadgeComponent };
|
package/statusBadge/index.d.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { OnChanges } from '@angular/core';
|
|
3
|
-
import { Palette } from '@lucca-front/ng/core';
|
|
4
|
-
|
|
5
|
-
declare class StatusBadgeComponent implements OnChanges {
|
|
6
|
-
#private;
|
|
7
|
-
withEllipsis: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
|
-
label: _angular_core.InputSignal<string>;
|
|
9
|
-
size: _angular_core.InputSignal<"L" | "M">;
|
|
10
|
-
palette: _angular_core.InputSignal<Palette>;
|
|
11
|
-
ngOnChanges(): void;
|
|
12
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StatusBadgeComponent, never>;
|
|
13
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StatusBadgeComponent, "lu-status-badge", never, { "withEllipsis": { "alias": "withEllipsis"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { StatusBadgeComponent };
|
|
1
|
+
export * from '@lucca-front/ng/status-badge';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class TableOfContentLinkDirective {
|
|
5
|
+
template: TemplateRef<any>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableOfContentLinkDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableOfContentLinkDirective, "[luTableOfContentLink]", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class TableOfContentComponent {
|
|
11
|
+
links: i0.Signal<readonly TableOfContentLinkDirective[]>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableOfContentComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableOfContentComponent, "lu-table-of-content", never, {}, {}, ["links"], never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { TableOfContentComponent, TableOfContentLinkDirective };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { LuccaIcon } from '@lucca-front/icons';
|
|
3
|
+
import { PortalContent } from '@lucca-front/ng/core';
|
|
4
|
+
|
|
5
|
+
declare class VerticalNavigationLinkComponent {
|
|
6
|
+
icon: _angular_core.InputSignal<LuccaIcon>;
|
|
7
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VerticalNavigationLinkComponent, never>;
|
|
9
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VerticalNavigationLinkComponent, "span[luVerticalNavigationLink], a[luVerticalNavigationLink]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class VerticalNavigationGroupComponent {
|
|
13
|
+
label: _angular_core.InputSignal<PortalContent>;
|
|
14
|
+
icon: _angular_core.InputSignal<LuccaIcon>;
|
|
15
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
expanded: _angular_core.ModelSignal<boolean>;
|
|
17
|
+
toggleExpanded(): void;
|
|
18
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VerticalNavigationGroupComponent, never>;
|
|
19
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VerticalNavigationGroupComponent, "lu-vertical-navigation-group", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["*"], true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class VerticalNavigationComponent {
|
|
23
|
+
heading: _angular_core.InputSignal<PortalContent>;
|
|
24
|
+
level: _angular_core.InputSignal<number>;
|
|
25
|
+
verticalNavigationGroup: _angular_core.Signal<readonly VerticalNavigationGroupComponent[]>;
|
|
26
|
+
vertivalNavigationLinks: _angular_core.Signal<readonly VerticalNavigationLinkComponent[]>;
|
|
27
|
+
isIconless: _angular_core.Signal<boolean>;
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VerticalNavigationComponent, never>;
|
|
29
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VerticalNavigationComponent, "lu-vertical-navigation", never, { "heading": { "alias": "heading"; "required": true; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; }, {}, ["verticalNavigationGroup", "vertivalNavigationLinks"], ["*"], true, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class VerticalNavigationItemComponent {
|
|
33
|
+
label: _angular_core.InputSignal<string>;
|
|
34
|
+
icon: _angular_core.InputSignal<LuccaIcon>;
|
|
35
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
36
|
+
expanded: _angular_core.ModelSignal<boolean>;
|
|
37
|
+
toggleExpanded(): void;
|
|
38
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VerticalNavigationItemComponent, never>;
|
|
39
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VerticalNavigationItemComponent, "lu-vertical-navigation-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["*"], true, never>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { VerticalNavigationComponent, VerticalNavigationGroupComponent, VerticalNavigationItemComponent, VerticalNavigationLinkComponent };
|