@exhaustive-ui/core 22.0.0-rc.2 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/fesm2022/exhaustive-ui-core-accordion.mjs +5 -0
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +12 -14
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs +3 -9
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +3 -34
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-baseinput.mjs +27 -7
- package/fesm2022/exhaustive-ui-core-baseinput.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +13 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +10 -34
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +5 -0
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +25 -11
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-config.mjs +1 -8
- package/fesm2022/exhaustive-ui-core-config.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +3 -8
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +16 -3
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +2 -14
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +38 -4
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +12 -7
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs +9 -2
- package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +6 -6
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +19 -19
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +11 -0
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +12 -0
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +7 -0
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +6 -32
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +3 -9
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +54 -27
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +9 -11
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +8 -3
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -14
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +53 -20
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +11 -5
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +8 -2
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs +5 -10
- package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +10 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +77 -38
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +14 -19
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlay.mjs +28 -0
- package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +12 -2
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +61 -13
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +37 -26
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +11 -25
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +8 -4
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +91 -10
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +36 -4
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +3 -8
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +6 -0
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +7 -11
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +227 -32
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +16 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +60 -16
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +6 -2
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +2 -9
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +9 -17
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +99 -28
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +75 -19
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs +15 -0
- package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/collection.json +1 -1
- package/schematics/migrate-from-primeng/index.js +2 -16
- package/schematics/migrate-from-primeng/schema.json +1 -2
- package/schematics/migrations/config-input-style-to-variant/migration.js +70 -0
- package/schematics/migrations/remove-dead-inputs/migration.js +46 -7
- package/schematics/migrations/removed-exports/migration.js +73 -0
- package/schematics/migrations/renamed-inputs/migration.js +54 -3
- package/schematics/migrations/renamed-outputs/migration.js +89 -0
- package/schematics/migrations/renamed-templates/migration.js +59 -0
- package/schematics/migrations/styleclass-to-class/migration.js +5 -0
- package/schematics/migrations.json +23 -3
- package/schematics/utils/config-signal.js +115 -0
- package/schematics/utils/removed-exports.js +172 -0
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +20 -9
- package/schematics/utils/renamed-outputs.js +154 -0
- package/schematics/utils/renamed-templates.js +142 -0
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-api.d.ts +0 -10
- package/types/exhaustive-ui-core-autocomplete.d.ts +4 -9
- package/types/exhaustive-ui-core-avatargroup.d.ts +1 -6
- package/types/exhaustive-ui-core-badge.d.ts +1 -14
- package/types/exhaustive-ui-core-basecomponent.d.ts +3 -0
- package/types/exhaustive-ui-core-baseinput.d.ts +3 -3
- package/types/exhaustive-ui-core-button.d.ts +4 -25
- package/types/exhaustive-ui-core-cascadeselect.d.ts +5 -2
- package/types/exhaustive-ui-core-config.d.ts +0 -8
- package/types/exhaustive-ui-core-confirmpopup.d.ts +1 -6
- package/types/exhaustive-ui-core-contextmenu.d.ts +3 -0
- package/types/exhaustive-ui-core-dataview.d.ts +1 -11
- package/types/exhaustive-ui-core-datepicker.d.ts +1 -0
- package/types/exhaustive-ui-core-dialog.d.ts +1 -1
- package/types/exhaustive-ui-core-drawer.d.ts +2 -2
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +3 -12
- package/types/exhaustive-ui-core-editor.d.ts +5 -0
- package/types/exhaustive-ui-core-fileupload.d.ts +3 -0
- package/types/exhaustive-ui-core-galleria.d.ts +12 -0
- package/types/exhaustive-ui-core-image.d.ts +1 -0
- package/types/exhaustive-ui-core-imagecompare.d.ts +2 -2
- package/types/exhaustive-ui-core-inplace.d.ts +3 -11
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +1 -6
- package/types/exhaustive-ui-core-inputmask.d.ts +2 -2
- package/types/exhaustive-ui-core-inputtext.d.ts +3 -10
- package/types/exhaustive-ui-core-listbox.d.ts +12 -6
- package/types/exhaustive-ui-core-megamenu.d.ts +3 -0
- package/types/exhaustive-ui-core-menu.d.ts +6 -11
- package/types/exhaustive-ui-core-menubar.d.ts +5 -11
- package/types/exhaustive-ui-core-message.d.ts +1 -8
- package/types/exhaustive-ui-core-metergroup.d.ts +3 -0
- package/types/exhaustive-ui-core-multiselect.d.ts +13 -10
- package/types/exhaustive-ui-core-orderlist.d.ts +2 -12
- package/types/exhaustive-ui-core-organizationchart.d.ts +3 -1
- package/types/exhaustive-ui-core-overlay.d.ts +8 -0
- package/types/exhaustive-ui-core-panel.d.ts +2 -0
- package/types/exhaustive-ui-core-panelmenu.d.ts +9 -0
- package/types/exhaustive-ui-core-password.d.ts +19 -14
- package/types/exhaustive-ui-core-picklist.d.ts +1 -16
- package/types/exhaustive-ui-core-radiobutton.d.ts +4 -1
- package/types/exhaustive-ui-core-scroller.d.ts +10 -0
- package/types/exhaustive-ui-core-select.d.ts +11 -27
- package/types/exhaustive-ui-core-selectbutton.d.ts +1 -6
- package/types/exhaustive-ui-core-stepper.d.ts +3 -11
- package/types/exhaustive-ui-core-table.d.ts +32 -4
- package/types/exhaustive-ui-core-tieredmenu.d.ts +8 -0
- package/types/exhaustive-ui-core-toast.d.ts +3 -0
- package/types/exhaustive-ui-core-toggleswitch.d.ts +1 -7
- package/types/exhaustive-ui-core-tooltip.d.ts +3 -10
- package/types/exhaustive-ui-core-tree.d.ts +17 -1
- package/types/exhaustive-ui-core-treetable.d.ts +24 -5
- package/types/exhaustive-ui-core-types-multiselect.d.ts +0 -6
- package/types/exhaustive-ui-core-types-table.d.ts +1 -1
- package/types/exhaustive-ui-core-types-tree.d.ts +5 -0
- package/types/exhaustive-ui-core-utils.d.ts +15 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.renameOutputsInHtml = renameOutputsInHtml;
|
|
37
|
+
exports.renameOutputsInTypeScript = renameOutputsInTypeScript;
|
|
38
|
+
exports.findTwoWayBindings = findTwoWayBindings;
|
|
39
|
+
exports.findTwoWayBindingsInTypeScript = findTwoWayBindingsInTypeScript;
|
|
40
|
+
const ts = __importStar(require("typescript"));
|
|
41
|
+
const removed_inputs_1 = require("./removed-inputs");
|
|
42
|
+
/**
|
|
43
|
+
* Matches the name of an event binding for `name` on an opening tag: `(name)="..."` or the
|
|
44
|
+
* canonical `on-name="..."` form. Group 1 is what precedes the name, group 2 what follows it. Meant
|
|
45
|
+
* to run against a quote-masked copy of the tag (see `maskQuotedValues`), so text inside another
|
|
46
|
+
* attribute's quoted value never matches.
|
|
47
|
+
*/
|
|
48
|
+
function eventRegex(name) {
|
|
49
|
+
return new RegExp(`(?<=\\s)(\\(|on-)${(0, removed_inputs_1.escapeRegExp)(name)}(\\)|)(?=\\s*=)`, 'g');
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Renames the event bindings of a single opening tag. Binding the same output twice is valid
|
|
53
|
+
* Angular, so a tag that already listens to the new name is renamed as well: both handlers keep
|
|
54
|
+
* running, as they did before.
|
|
55
|
+
*/
|
|
56
|
+
function renameOnTag(tag, renames) {
|
|
57
|
+
let text = tag;
|
|
58
|
+
const renamed = [];
|
|
59
|
+
for (const { from, to } of renames) {
|
|
60
|
+
const masked = (0, removed_inputs_1.maskQuotedValues)(text);
|
|
61
|
+
const edits = [];
|
|
62
|
+
const regex = eventRegex(from);
|
|
63
|
+
let match;
|
|
64
|
+
while ((match = regex.exec(masked))) {
|
|
65
|
+
// `(name` without `)` or `on-name)` is part of something else
|
|
66
|
+
if ((match[1] === '(') !== (match[2] === ')')) {
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
edits.push({ start: match.index, end: match.index + match[0].length, replacement: `${match[1]}${to}${match[2]}` });
|
|
70
|
+
renamed.push(`${from} → ${to}`);
|
|
71
|
+
}
|
|
72
|
+
text = applyEdits(text, edits);
|
|
73
|
+
}
|
|
74
|
+
return { text, renamed };
|
|
75
|
+
}
|
|
76
|
+
function applyEdits(text, edits) {
|
|
77
|
+
edits.sort((a, b) => b.start - a.start);
|
|
78
|
+
let result = text;
|
|
79
|
+
for (const edit of edits) {
|
|
80
|
+
result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);
|
|
81
|
+
}
|
|
82
|
+
return result;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Renames output bindings, scoped per-selector, in an HTML fragment (a standalone template file or
|
|
86
|
+
* the body of an inline component template).
|
|
87
|
+
*/
|
|
88
|
+
function renameOutputsInHtml(html, groups) {
|
|
89
|
+
const edits = [];
|
|
90
|
+
const renamed = [];
|
|
91
|
+
for (const group of groups) {
|
|
92
|
+
for (const tag of (0, removed_inputs_1.findOpeningTags)(html, group.selector)) {
|
|
93
|
+
const result = renameOnTag(html.slice(tag.start, tag.end), group.renames);
|
|
94
|
+
if (result.renamed.length > 0) {
|
|
95
|
+
edits.push({ start: tag.start, end: tag.end, replacement: result.text });
|
|
96
|
+
renamed.push(...result.renamed);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (edits.length === 0) {
|
|
101
|
+
return { text: html, changed: false, renamed };
|
|
102
|
+
}
|
|
103
|
+
return { text: applyEdits(html, edits), changed: true, renamed };
|
|
104
|
+
}
|
|
105
|
+
/** Same rename, applied only inside the `template` string literal of an `@Component` decorator. */
|
|
106
|
+
function renameOutputsInTypeScript(fileName, text, groups) {
|
|
107
|
+
const sourceFile = ts.createSourceFile(fileName, text, ts.ScriptTarget.Latest, true);
|
|
108
|
+
const edits = [];
|
|
109
|
+
const renamed = [];
|
|
110
|
+
const visit = (node) => {
|
|
111
|
+
if (ts.isPropertyAssignment(node) && (0, removed_inputs_1.isDirectComponentTemplateProperty)(node) && ts.isStringLiteralLike(node.initializer)) {
|
|
112
|
+
const initializer = node.initializer;
|
|
113
|
+
const result = renameOutputsInHtml(initializer.text, groups);
|
|
114
|
+
if (result.changed) {
|
|
115
|
+
edits.push({ start: initializer.getStart(sourceFile), end: initializer.getEnd(), replacement: (0, removed_inputs_1.encodeLiteralBody)(initializer, result.text) });
|
|
116
|
+
renamed.push(...result.renamed);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
ts.forEachChild(node, visit);
|
|
120
|
+
};
|
|
121
|
+
visit(sourceFile);
|
|
122
|
+
if (edits.length === 0) {
|
|
123
|
+
return { text, changed: false, renamed };
|
|
124
|
+
}
|
|
125
|
+
return { text: applyEdits(text, edits), changed: true, renamed };
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Finds tags of `selector` carrying a two-way binding `[(name)]` in an HTML fragment. Returns the
|
|
129
|
+
* 1-based line of each.
|
|
130
|
+
*/
|
|
131
|
+
function findTwoWayBindings(html, selector, name) {
|
|
132
|
+
const lines = [];
|
|
133
|
+
const regex = new RegExp(`(?<=\\s)\\[\\(${(0, removed_inputs_1.escapeRegExp)(name)}\\)\\](?=\\s*=)`);
|
|
134
|
+
for (const tag of (0, removed_inputs_1.findOpeningTags)(html, selector)) {
|
|
135
|
+
if (regex.test((0, removed_inputs_1.maskQuotedValues)(html.slice(tag.start, tag.end)))) {
|
|
136
|
+
lines.push(html.slice(0, tag.start).split('\n').length);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return lines;
|
|
140
|
+
}
|
|
141
|
+
/** Same scan inside the inline `template` literals of a TypeScript file; returns 1-based lines within the file. */
|
|
142
|
+
function findTwoWayBindingsInTypeScript(fileName, text, selector, name) {
|
|
143
|
+
const sourceFile = ts.createSourceFile(fileName, text, ts.ScriptTarget.Latest, true);
|
|
144
|
+
const lines = [];
|
|
145
|
+
const visit = (node) => {
|
|
146
|
+
if (ts.isPropertyAssignment(node) && (0, removed_inputs_1.isDirectComponentTemplateProperty)(node) && ts.isStringLiteralLike(node.initializer)) {
|
|
147
|
+
const templateLine = sourceFile.getLineAndCharacterOfPosition(node.initializer.getStart(sourceFile)).line + 1;
|
|
148
|
+
lines.push(...findTwoWayBindings(node.initializer.text, selector, name).map((line) => templateLine + line - 1));
|
|
149
|
+
}
|
|
150
|
+
ts.forEachChild(node, visit);
|
|
151
|
+
};
|
|
152
|
+
visit(sourceFile);
|
|
153
|
+
return lines;
|
|
154
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.renameTemplatesInHtml = renameTemplatesInHtml;
|
|
37
|
+
exports.renameTemplatesInTypeScript = renameTemplatesInTypeScript;
|
|
38
|
+
const ts = __importStar(require("typescript"));
|
|
39
|
+
const removed_inputs_1 = require("./removed-inputs");
|
|
40
|
+
/** `#name` / `ref-name` template reference, or `pTemplate="name"`. Group 1 is the prefix, group 2 the suffix. */
|
|
41
|
+
function templateNameRegex(name) {
|
|
42
|
+
const escaped = (0, removed_inputs_1.escapeRegExp)(name);
|
|
43
|
+
return new RegExp(`(?<=\\s)(#|ref-|pTemplate\\s*=\\s*["'])${escaped}(?=["'\\s/>=])`, 'g');
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Finds the range of the content of every `selector` element: from the end of its opening tag to
|
|
47
|
+
* the start of its matching closing tag (nested elements of the same selector are skipped over).
|
|
48
|
+
* Self-closing elements have no content.
|
|
49
|
+
*/
|
|
50
|
+
function findElementBodies(html, selector) {
|
|
51
|
+
const bodies = [];
|
|
52
|
+
const openings = (0, removed_inputs_1.findOpeningTags)(html, selector).filter((tag) => !/\/\s*>$/.test(html.slice(tag.start, tag.end)));
|
|
53
|
+
const closeRegex = new RegExp(`</${(0, removed_inputs_1.escapeRegExp)(selector)}\\s*>`, 'g');
|
|
54
|
+
const closings = [...html.matchAll(closeRegex)].map((match) => match.index);
|
|
55
|
+
for (const opening of openings) {
|
|
56
|
+
let depth = 0;
|
|
57
|
+
const events = [...openings.filter((other) => other.start > opening.start).map((other) => ({ at: other.start, open: true })), ...closings.filter((at) => at > opening.end).map((at) => ({ at, open: false }))].sort((a, b) => a.at - b.at);
|
|
58
|
+
for (const event of events) {
|
|
59
|
+
if (event.open) {
|
|
60
|
+
depth++;
|
|
61
|
+
}
|
|
62
|
+
else if (depth === 0) {
|
|
63
|
+
bodies.push({ tagStart: opening.start, start: opening.end, end: event.at });
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
depth--;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return bodies;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Renames the templates projected into the elements of each selector: `<ng-template #from>` and
|
|
75
|
+
* `<ng-template pTemplate="from">` become `#to` / `pTemplate="to"`. An element that already
|
|
76
|
+
* projects a `to` template is left untouched and reported, since the component only ever rendered
|
|
77
|
+
* one of the two.
|
|
78
|
+
*/
|
|
79
|
+
function renameTemplatesInHtml(html, groups) {
|
|
80
|
+
const edits = [];
|
|
81
|
+
const renamed = [];
|
|
82
|
+
const conflictLines = [];
|
|
83
|
+
for (const group of groups) {
|
|
84
|
+
for (const body of findElementBodies(html, group.selector)) {
|
|
85
|
+
const content = html.slice(body.start, body.end);
|
|
86
|
+
for (const { from, to } of group.renames) {
|
|
87
|
+
const matches = [...content.matchAll(templateNameRegex(from))];
|
|
88
|
+
if (matches.length === 0) {
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if (templateNameRegex(to).test(content)) {
|
|
92
|
+
conflictLines.push(html.slice(0, body.tagStart).split('\n').length);
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
for (const match of matches) {
|
|
96
|
+
const start = body.start + match.index + match[1].length;
|
|
97
|
+
edits.push({ start, end: start + from.length, replacement: to });
|
|
98
|
+
renamed.push(`${from} → ${to}`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (edits.length === 0) {
|
|
104
|
+
return { text: html, changed: false, renamed, conflictLines };
|
|
105
|
+
}
|
|
106
|
+
edits.sort((a, b) => b.start - a.start);
|
|
107
|
+
let text = html;
|
|
108
|
+
for (const edit of edits) {
|
|
109
|
+
text = text.slice(0, edit.start) + edit.replacement + text.slice(edit.end);
|
|
110
|
+
}
|
|
111
|
+
return { text, changed: true, renamed, conflictLines };
|
|
112
|
+
}
|
|
113
|
+
/** Same rename, applied only inside the `template` string literal of an `@Component` decorator. */
|
|
114
|
+
function renameTemplatesInTypeScript(fileName, text, groups) {
|
|
115
|
+
const sourceFile = ts.createSourceFile(fileName, text, ts.ScriptTarget.Latest, true);
|
|
116
|
+
const edits = [];
|
|
117
|
+
const renamed = [];
|
|
118
|
+
const conflictLines = [];
|
|
119
|
+
const visit = (node) => {
|
|
120
|
+
if (ts.isPropertyAssignment(node) && (0, removed_inputs_1.isDirectComponentTemplateProperty)(node) && ts.isStringLiteralLike(node.initializer)) {
|
|
121
|
+
const initializer = node.initializer;
|
|
122
|
+
const result = renameTemplatesInHtml(initializer.text, groups);
|
|
123
|
+
if (result.changed) {
|
|
124
|
+
edits.push({ start: initializer.getStart(sourceFile), end: initializer.getEnd(), replacement: (0, removed_inputs_1.encodeLiteralBody)(initializer, result.text) });
|
|
125
|
+
renamed.push(...result.renamed);
|
|
126
|
+
}
|
|
127
|
+
const templateLine = sourceFile.getLineAndCharacterOfPosition(initializer.getStart(sourceFile)).line + 1;
|
|
128
|
+
conflictLines.push(...result.conflictLines.map((line) => templateLine + line - 1));
|
|
129
|
+
}
|
|
130
|
+
ts.forEachChild(node, visit);
|
|
131
|
+
};
|
|
132
|
+
visit(sourceFile);
|
|
133
|
+
if (edits.length === 0) {
|
|
134
|
+
return { text, changed: false, renamed, conflictLines };
|
|
135
|
+
}
|
|
136
|
+
edits.sort((a, b) => b.start - a.start);
|
|
137
|
+
let result = text;
|
|
138
|
+
for (const edit of edits) {
|
|
139
|
+
result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);
|
|
140
|
+
}
|
|
141
|
+
return { text: result, changed: true, renamed, conflictLines };
|
|
142
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"@exhaustive-ui/core": "^22.0.0
|
|
3
|
-
"@exhaustive-ui/locale": "^22.0.0
|
|
4
|
-
"@exhaustive-ui/motion": "^22.0.0
|
|
5
|
-
"@exhaustive-ui/styled": "^22.0.0
|
|
6
|
-
"@exhaustive-ui/styles": "^22.0.0
|
|
7
|
-
"@exhaustive-ui/tailwindcss": "^22.0.0
|
|
8
|
-
"@exhaustive-ui/themes": "^22.0.0
|
|
9
|
-
"@exhaustive-ui/utils": "^22.0.0
|
|
2
|
+
"@exhaustive-ui/core": "^22.0.0",
|
|
3
|
+
"@exhaustive-ui/locale": "^22.0.0",
|
|
4
|
+
"@exhaustive-ui/motion": "^22.0.0",
|
|
5
|
+
"@exhaustive-ui/styled": "^22.0.0",
|
|
6
|
+
"@exhaustive-ui/styles": "^22.0.0",
|
|
7
|
+
"@exhaustive-ui/tailwindcss": "^22.0.0",
|
|
8
|
+
"@exhaustive-ui/themes": "^22.0.0",
|
|
9
|
+
"@exhaustive-ui/utils": "^22.0.0",
|
|
10
10
|
"@openng/icons": "^1.0.0"
|
|
11
11
|
}
|
|
@@ -951,16 +951,6 @@ interface OverlayOptions {
|
|
|
951
951
|
* The base z-index value for the overlay.
|
|
952
952
|
*/
|
|
953
953
|
baseZIndex?: number;
|
|
954
|
-
/**
|
|
955
|
-
* The transition options for showing the overlay.
|
|
956
|
-
* @deprecated since v21.0.0. Use `motionOptions` instead.
|
|
957
|
-
*/
|
|
958
|
-
showTransitionOptions?: string;
|
|
959
|
-
/**
|
|
960
|
-
* The transition options for hiding the overlay.
|
|
961
|
-
* @deprecated since v21.0.0. Use `motionOptions` instead.
|
|
962
|
-
*/
|
|
963
|
-
hideTransitionOptions?: string;
|
|
964
954
|
/**
|
|
965
955
|
* The motion options for the overlay.
|
|
966
956
|
*/
|
|
@@ -105,8 +105,8 @@ declare class AutoCompleteStyle extends BaseStyle {
|
|
|
105
105
|
}) => (string | {
|
|
106
106
|
'p-disabled': any;
|
|
107
107
|
'p-variant-filled': boolean;
|
|
108
|
-
'p-autocomplete-input-multiple-sm': boolean;
|
|
109
|
-
'p-autocomplete-input-multiple-lg': boolean;
|
|
108
|
+
'p-autocomplete-input-multiple-sm p-inputfield-sm': boolean;
|
|
109
|
+
'p-autocomplete-input-multiple-lg p-inputfield-lg': boolean;
|
|
110
110
|
})[];
|
|
111
111
|
chipItem: ({ instance, i }: {
|
|
112
112
|
instance: any;
|
|
@@ -237,11 +237,6 @@ declare class AutoComplete<T = any> extends BaseInput<AutoCompletePassThrough> {
|
|
|
237
237
|
* @group Props
|
|
238
238
|
*/
|
|
239
239
|
virtualScrollOptions: _angular_core.InputSignal<ScrollerOptions | undefined>;
|
|
240
|
-
/**
|
|
241
|
-
* When enabled, highlights the first item in the list by default.
|
|
242
|
-
* @group Props
|
|
243
|
-
*/
|
|
244
|
-
autoHighlight: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
245
240
|
/**
|
|
246
241
|
* When present, autocomplete clears the manual input if it does not match of the suggestions to force only accepting values from the suggestions.
|
|
247
242
|
* @group Props
|
|
@@ -696,7 +691,7 @@ declare class AutoComplete<T = any> extends BaseInput<AutoCompletePassThrough> {
|
|
|
696
691
|
updateInputValue(): void;
|
|
697
692
|
updateInputWithForceSelection(event: any): void;
|
|
698
693
|
scrollInView(index?: number): void;
|
|
699
|
-
changeFocusedOptionIndex(event: any, index: any): void;
|
|
694
|
+
changeFocusedOptionIndex(event: any, index: any, scroll?: boolean): void;
|
|
700
695
|
show(isFocus?: boolean): void;
|
|
701
696
|
hide(isFocus?: boolean): void;
|
|
702
697
|
clear(): void;
|
|
@@ -723,7 +718,7 @@ declare class AutoComplete<T = any> extends BaseInput<AutoCompletePassThrough> {
|
|
|
723
718
|
writeControlValue(value: any, setModelValue: (value: any) => void): void;
|
|
724
719
|
onDestroy(): void;
|
|
725
720
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutoComplete<any>, never>;
|
|
726
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AutoComplete<any>, "p-autoComplete, p-autocomplete, p-auto-complete", never, { "minQueryLength": { "alias": "minQueryLength"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "panelStyle": { "alias": "panelStyle"; "required": false; "isSignal": true; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; "isSignal": true; }; "inputStyle": { "alias": "inputStyle"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "inputStyleClass": { "alias": "inputStyleClass"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "virtualScrollOptions": { "alias": "virtualScrollOptions"; "required": false; "isSignal": true; }; "
|
|
721
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AutoComplete<any>, "p-autoComplete, p-autocomplete, p-auto-complete", never, { "minQueryLength": { "alias": "minQueryLength"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "panelStyle": { "alias": "panelStyle"; "required": false; "isSignal": true; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; "isSignal": true; }; "inputStyle": { "alias": "inputStyle"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "inputStyleClass": { "alias": "inputStyleClass"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "virtualScrollOptions": { "alias": "virtualScrollOptions"; "required": false; "isSignal": true; }; "forceSelection": { "alias": "forceSelection"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "dropdownAriaLabel": { "alias": "dropdownAriaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "dropdownIcon": { "alias": "dropdownIcon"; "required": false; "isSignal": true; }; "unique": { "alias": "unique"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; "completeOnFocus": { "alias": "completeOnFocus"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "dropdown": { "alias": "dropdown"; "required": false; "isSignal": true; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; "isSignal": true; }; "dropdownMode": { "alias": "dropdownMode"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "addOnTab": { "alias": "addOnTab"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "optionGroupChildren": { "alias": "optionGroupChildren"; "required": false; "isSignal": true; }; "optionGroupLabel": { "alias": "optionGroupLabel"; "required": false; "isSignal": true; }; "overlayOptions": { "alias": "overlayOptions"; "required": false; "isSignal": true; }; "suggestions": { "alias": "suggestions"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "searchMessage": { "alias": "searchMessage"; "required": false; "isSignal": true; }; "emptySelectionMessage": { "alias": "emptySelectionMessage"; "required": false; "isSignal": true; }; "selectionMessage": { "alias": "selectionMessage"; "required": false; "isSignal": true; }; "autoOptionFocus": { "alias": "autoOptionFocus"; "required": false; "isSignal": true; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; "isSignal": true; }; "searchLocale": { "alias": "searchLocale"; "required": false; "isSignal": true; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; "isSignal": true; }; "focusOnHover": { "alias": "focusOnHover"; "required": false; "isSignal": true; }; "typeahead": { "alias": "typeahead"; "required": false; "isSignal": true; }; "addOnBlur": { "alias": "addOnBlur"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; "motionOptions": { "alias": "motionOptions"; "required": false; "isSignal": true; }; }, { "completeMethod": "completeMethod"; "onSelect": "onSelect"; "onUnselect": "onUnselect"; "onAdd": "onAdd"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onDropdownClick": "onDropdownClick"; "onClear": "onClear"; "onInputKeydown": "onInputKeydown"; "onKeyUp": "onKeyUp"; "onShow": "onShow"; "onHide": "onHide"; "onLazyLoad": "onLazyLoad"; }, ["itemTemplate", "emptyTemplate", "headerTemplate", "footerTemplate", "selectedItemTemplate", "groupTemplate", "loaderTemplate", "removeIconTemplate", "loadingIconTemplate", "clearIconTemplate", "dropdownIconTemplate", "templates"], never, true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>;
|
|
727
722
|
}
|
|
728
723
|
declare class AutoCompleteModule {
|
|
729
724
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutoCompleteModule, never>;
|
|
@@ -37,11 +37,6 @@ declare class AvatarGroup extends BaseComponent<AvatarGroupPassThrough> {
|
|
|
37
37
|
componentName: string;
|
|
38
38
|
bindDirectiveInstance: Bind;
|
|
39
39
|
constructor();
|
|
40
|
-
/**
|
|
41
|
-
* Style class of the component
|
|
42
|
-
* @group Props
|
|
43
|
-
*/
|
|
44
|
-
readonly styleClass: i0.InputSignal<string | undefined>;
|
|
45
40
|
/**
|
|
46
41
|
* Inline style of the component.
|
|
47
42
|
* @group Props
|
|
@@ -51,7 +46,7 @@ declare class AvatarGroup extends BaseComponent<AvatarGroupPassThrough> {
|
|
|
51
46
|
} | null | undefined>;
|
|
52
47
|
_componentStyle: AvatarGroupStyle;
|
|
53
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarGroup, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarGroup, "p-avatarGroup, p-avatar-group, p-avatargroup", never, { "
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarGroup, "p-avatarGroup, p-avatar-group, p-avatargroup", never, { "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>;
|
|
55
50
|
}
|
|
56
51
|
declare class AvatarGroupModule {
|
|
57
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarGroupModule, never>;
|
|
@@ -52,13 +52,6 @@ interface BadgeStyle extends BaseStyle {
|
|
|
52
52
|
* @group Components
|
|
53
53
|
*/
|
|
54
54
|
declare class BadgeDirective extends BaseComponent {
|
|
55
|
-
/**
|
|
56
|
-
* Used to pass attributes to DOM elements inside the Badge component.
|
|
57
|
-
* @defaultValue undefined
|
|
58
|
-
* @deprecated use pBadgePT instead.
|
|
59
|
-
* @group Props
|
|
60
|
-
*/
|
|
61
|
-
ptBadgeDirective: _angular_core.InputSignal<BadgePassThrough>;
|
|
62
55
|
/**
|
|
63
56
|
* Used to pass attributes to DOM elements inside the Badge component.
|
|
64
57
|
* @defaultValue undefined
|
|
@@ -81,12 +74,6 @@ declare class BadgeDirective extends BaseComponent {
|
|
|
81
74
|
* @group Props
|
|
82
75
|
*/
|
|
83
76
|
readonly badgeSize: _angular_core.InputSignal<"small" | "large" | "xlarge" | null | undefined>;
|
|
84
|
-
/**
|
|
85
|
-
* Size of the badge, valid options are "large" and "xlarge".
|
|
86
|
-
* @group Props
|
|
87
|
-
* @deprecated use badgeSize instead.
|
|
88
|
-
*/
|
|
89
|
-
readonly size: _angular_core.InputSignal<"small" | "large" | "xlarge" | null | undefined>;
|
|
90
77
|
/**
|
|
91
78
|
* Severity type of the badge.
|
|
92
79
|
* @group Props
|
|
@@ -122,7 +109,7 @@ declare class BadgeDirective extends BaseComponent {
|
|
|
122
109
|
private setSeverity;
|
|
123
110
|
private toggleDisableState;
|
|
124
111
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BadgeDirective, never>;
|
|
125
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BadgeDirective, "[pBadge]", never, { "
|
|
112
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BadgeDirective, "[pBadge]", never, { "pBadgePT": { "alias": "pBadgePT"; "required": false; "isSignal": true; }; "pBadgeUnstyled": { "alias": "pBadgeUnstyled"; "required": false; "isSignal": true; }; "disabled": { "alias": "badgeDisabled"; "required": false; "isSignal": true; }; "badgeSize": { "alias": "badgeSize"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "badgeStyle": { "alias": "badgeStyle"; "required": false; "isSignal": true; }; "badgeStyleClass": { "alias": "badgeStyleClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
126
113
|
}
|
|
127
114
|
/**
|
|
128
115
|
* Badge is a small status indicator for another element.
|
|
@@ -11,6 +11,9 @@ declare class BaseComponentStyle extends BaseStyle {
|
|
|
11
11
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @internal Links a component to its parent for the PassThrough API; provided by the components themselves.
|
|
16
|
+
*/
|
|
14
17
|
declare const PARENT_INSTANCE: InjectionToken<BaseComponent<any>>;
|
|
15
18
|
declare class BaseComponent<PT = any> implements Lifecycle {
|
|
16
19
|
document: Document;
|
|
@@ -33,19 +33,19 @@ declare class BaseInput<PT = any> extends BaseEditableHolder<PT> {
|
|
|
33
33
|
* @defaultValue undefined
|
|
34
34
|
* @group Props
|
|
35
35
|
*/
|
|
36
|
-
pattern: _angular_core.
|
|
36
|
+
pattern: _angular_core.InputSignalWithTransform<string | null | undefined, string | readonly RegExp[] | null | undefined>;
|
|
37
37
|
/**
|
|
38
38
|
* The value must be greater than or equal to the value.
|
|
39
39
|
* @defaultValue undefined
|
|
40
40
|
* @group Props
|
|
41
41
|
*/
|
|
42
|
-
min: _angular_core.
|
|
42
|
+
min: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
|
|
43
43
|
/**
|
|
44
44
|
* The value must be less than or equal to the value.
|
|
45
45
|
* @defaultValue undefined
|
|
46
46
|
* @group Props
|
|
47
47
|
*/
|
|
48
|
-
max: _angular_core.
|
|
48
|
+
max: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
|
|
49
49
|
/**
|
|
50
50
|
* Unless the step is set to the any literal, the value must be min + an integral multiple of the step.
|
|
51
51
|
* @defaultValue undefined
|
|
@@ -78,13 +78,6 @@ interface ButtonStyle extends BaseStyle {
|
|
|
78
78
|
type ButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
79
79
|
declare class ButtonLabel extends BaseComponent {
|
|
80
80
|
componentName: string;
|
|
81
|
-
/**
|
|
82
|
-
* Used to pass attributes to DOM elements inside the pButtonLabel.
|
|
83
|
-
* @defaultValue undefined
|
|
84
|
-
* @deprecated use pButtonLabelPT instead.
|
|
85
|
-
* @group Props
|
|
86
|
-
*/
|
|
87
|
-
ptButtonLabel: _angular_core.InputSignal<any>;
|
|
88
81
|
/**
|
|
89
82
|
* Used to pass attributes to DOM elements inside the pButtonLabel.
|
|
90
83
|
* @defaultValue undefined
|
|
@@ -101,17 +94,10 @@ declare class ButtonLabel extends BaseComponent {
|
|
|
101
94
|
bindDirectiveInstance: Bind;
|
|
102
95
|
constructor();
|
|
103
96
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonLabel, never>;
|
|
104
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonLabel, "[pButtonLabel]", never, { "
|
|
97
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonLabel, "[pButtonLabel]", never, { "pButtonLabelPT": { "alias": "pButtonLabelPT"; "required": false; "isSignal": true; }; "pButtonLabelUnstyled": { "alias": "pButtonLabelUnstyled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>;
|
|
105
98
|
}
|
|
106
99
|
declare class ButtonIcon extends BaseComponent {
|
|
107
100
|
componentName: string;
|
|
108
|
-
/**
|
|
109
|
-
* Used to pass attributes to DOM elements inside the pButtonIcon.
|
|
110
|
-
* @defaultValue undefined
|
|
111
|
-
* @deprecated use pButtonIconPT instead.
|
|
112
|
-
* @group Props
|
|
113
|
-
*/
|
|
114
|
-
ptButtonIcon: _angular_core.InputSignal<any>;
|
|
115
101
|
/**
|
|
116
102
|
* Used to pass attributes to DOM elements inside the pButtonIcon.
|
|
117
103
|
* @defaultValue undefined
|
|
@@ -128,7 +114,7 @@ declare class ButtonIcon extends BaseComponent {
|
|
|
128
114
|
bindDirectiveInstance: Bind;
|
|
129
115
|
constructor();
|
|
130
116
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonIcon, never>;
|
|
131
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonIcon, "[pButtonIcon]", never, { "
|
|
117
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonIcon, "[pButtonIcon]", never, { "pButtonIconPT": { "alias": "pButtonIconPT"; "required": false; "isSignal": true; }; "pButtonUnstyled": { "alias": "pButtonUnstyled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>;
|
|
132
118
|
}
|
|
133
119
|
/**
|
|
134
120
|
* Button directive is an extension to button component.
|
|
@@ -139,13 +125,6 @@ declare class ButtonDirective extends BaseComponent {
|
|
|
139
125
|
$pcButtonDirective: ButtonDirective | undefined;
|
|
140
126
|
bindDirectiveInstance: Bind;
|
|
141
127
|
_componentStyle: ButtonStyle;
|
|
142
|
-
/**
|
|
143
|
-
* Used to pass attributes to DOM elements inside the Button component.
|
|
144
|
-
* @defaultValue undefined
|
|
145
|
-
* @deprecated use pButtonPT instead.
|
|
146
|
-
* @group Props
|
|
147
|
-
*/
|
|
148
|
-
ptButtonDirective: _angular_core.InputSignal<ButtonPassThrough>;
|
|
149
128
|
/**
|
|
150
129
|
* Used to pass attributes to DOM elements inside the Button component.
|
|
151
130
|
* @defaultValue undefined
|
|
@@ -238,7 +217,7 @@ declare class ButtonDirective extends BaseComponent {
|
|
|
238
217
|
readonly loading: _angular_core.InputSignal<boolean>;
|
|
239
218
|
/**
|
|
240
219
|
* Used to pass all properties of the ButtonProps to the Button component.
|
|
241
|
-
* @deprecated
|
|
220
|
+
* @deprecated since v20.0.0, set the attributes directly on the button element. (The `buttonProps` input of p-button is not deprecated.)
|
|
242
221
|
* @group Props
|
|
243
222
|
*/
|
|
244
223
|
readonly buttonProps: _angular_core.InputSignal<ButtonProps | undefined>;
|
|
@@ -259,7 +238,7 @@ declare class ButtonDirective extends BaseComponent {
|
|
|
259
238
|
getIconClass(): string;
|
|
260
239
|
onDestroy(): void;
|
|
261
240
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
262
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonDirective, "[pButton]", never, { "
|
|
241
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonDirective, "[pButton]", never, { "pButtonPT": { "alias": "pButtonPT"; "required": false; "isSignal": true; }; "pButtonUnstyled": { "alias": "pButtonUnstyled"; "required": false; "isSignal": true; }; "hostName": { "alias": "hostName"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "plain": { "alias": "plain"; "required": false; "isSignal": true; }; "raised": { "alias": "raised"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "iconPos": { "alias": "iconPos"; "required": false; "isSignal": true; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "buttonProps": { "alias": "buttonProps"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; }, {}, ["iconSignal", "labelSignal"], never, true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>;
|
|
263
242
|
}
|
|
264
243
|
/**
|
|
265
244
|
* Button is an extension to standard button element with icons and theming.
|
|
@@ -148,6 +148,9 @@ interface CascadeSelectStyle extends BaseStyle {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
declare const CASCADESELECT_VALUE_ACCESSOR: any;
|
|
151
|
+
/**
|
|
152
|
+
* @internal Rendering detail of CascadeSelect, not part of the public API: it may change or stop being exported in a minor version.
|
|
153
|
+
*/
|
|
151
154
|
declare class CascadeSelectSub extends BaseComponent {
|
|
152
155
|
hostName: string;
|
|
153
156
|
cascadeselect: CascadeSelect;
|
|
@@ -167,7 +170,7 @@ declare class CascadeSelectSub extends BaseComponent {
|
|
|
167
170
|
readonly onFocusEnterChange: _angular_core.OutputEmitterRef<any>;
|
|
168
171
|
_componentStyle: CascadeSelectStyle;
|
|
169
172
|
getPTOptions(processedOption: any, index: number, key: string): any;
|
|
170
|
-
|
|
173
|
+
constructor();
|
|
171
174
|
onOptionClick(event: any, processedOption: any): void;
|
|
172
175
|
onOptionMouseEnter(event: any, processedOption: any): void;
|
|
173
176
|
onOptionMouseMove(event: any, processedOption: any): void;
|
|
@@ -282,7 +285,7 @@ declare class CascadeSelect extends BaseEditableHolder<CascadeSelectPassThrough>
|
|
|
282
285
|
* Selected value of the component.
|
|
283
286
|
* @group Props
|
|
284
287
|
*/
|
|
285
|
-
value: _angular_core.ModelSignal<
|
|
288
|
+
value: _angular_core.ModelSignal<any>;
|
|
286
289
|
/**
|
|
287
290
|
* A property to uniquely identify an option.
|
|
288
291
|
* @group Props
|
|
@@ -194,10 +194,6 @@ interface GlobalPassThrough {
|
|
|
194
194
|
type ExhaustiveConfigType = {
|
|
195
195
|
ripple?: boolean;
|
|
196
196
|
overlayAppendTo?: HTMLElement | ElementRef | TemplateRef<any> | string | null | undefined | any;
|
|
197
|
-
/**
|
|
198
|
-
* @deprecated Since v20. Use `inputVariant` instead.
|
|
199
|
-
*/
|
|
200
|
-
inputStyle?: 'outlined' | 'filled';
|
|
201
197
|
inputVariant?: 'outlined' | 'filled';
|
|
202
198
|
overlayOptions?: OverlayOptions;
|
|
203
199
|
translation?: Translation;
|
|
@@ -232,10 +228,6 @@ declare class ThemeProvider {
|
|
|
232
228
|
declare class Exhaustive extends ThemeProvider {
|
|
233
229
|
ripple: _angular_core.WritableSignal<boolean>;
|
|
234
230
|
platformId: any;
|
|
235
|
-
/**
|
|
236
|
-
* @deprecated Since v20. Use `inputVariant` instead.
|
|
237
|
-
*/
|
|
238
|
-
inputStyle: _angular_core.WritableSignal<"outlined" | "filled" | null>;
|
|
239
231
|
inputVariant: _angular_core.WritableSignal<"outlined" | "filled" | null>;
|
|
240
232
|
overlayAppendTo: _angular_core.WritableSignal<any>;
|
|
241
233
|
overlayOptions: _angular_core.WritableSignal<OverlayOptions>;
|