@masterteam/components 0.0.143 → 0.0.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/masterteam-components-business-fields.mjs +1 -1
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-drawer.mjs +2 -2
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +27 -34
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +2 -2
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-sidebar.mjs +2 -2
- package/fesm2022/masterteam-components-sidebar.mjs.map +1 -1
- package/fesm2022/masterteam-components-slider-field.mjs +2 -2
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-statistic-card.mjs +2 -2
- package/fesm2022/masterteam-components-statistic-card.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +47 -13
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +48 -2
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +5 -3
- package/types/masterteam-components-table.d.ts +4 -2
- package/types/masterteam-components.d.ts +22 -3
|
@@ -1906,13 +1906,13 @@ class FormulaToolbarItem {
|
|
|
1906
1906
|
this.onInsert.emit(this.smartBlock());
|
|
1907
1907
|
}
|
|
1908
1908
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: FormulaToolbarItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1909
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: FormulaToolbarItem, isStandalone: true, selector: "mt-formula-toolbar-item", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, display: { classPropertyName: "display", publicName: "display", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null }, examples: { classPropertyName: "examples", publicName: "examples", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, templateCursorOffset: { classPropertyName: "templateCursorOffset", publicName: "templateCursorOffset", isSignal: true, isRequired: false, transformFunction: null }, hints: { classPropertyName: "hints", publicName: "hints", isSignal: true, isRequired: false, transformFunction: null }, returnType: { classPropertyName: "returnType", publicName: "returnType", isSignal: true, isRequired: false, transformFunction: null }, parameters: { classPropertyName: "parameters", publicName: "parameters", isSignal: true, isRequired: false, transformFunction: null }, propertyType: { classPropertyName: "propertyType", publicName: "propertyType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onInsert: "onInsert" }, host: { classAttribute: "inline-block max-w-full" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded px-2 py-1 text-sm font-medium transition-colors hover:shadow-sm active:scale-95\"\n [class]=\"itemClass()\"\n [pTooltip]=\"hasRichTooltip() ? richTooltip : simpleTooltip()\"\n [tooltipDisabled]=\"!hasRichTooltip() && !simpleTooltip()\"\n [tooltipStyleClass]=\"tooltipStyleClass()\"\n [tooltipPosition]=\"'bottom'\"\n [showDelay]=\"300\"\n [hideDelay]=\"100\"\n [autoHide]=\"!hasRichTooltip()\"\n (click)=\"handleClick()\"\n>\n @if (type() === \"function\") {\n <span class=\"text-sm opacity-60\">f</span>\n }\n <span class=\"truncate\">{{ displayValue() }}</span>\n</button>\n\n<ng-template #richTooltip>\n <div class=\"space-y-3\">\n @if (normalizedSignature()) {\n <div class=\"rounded bg-slate-700 px-3 py-2\">\n <code\n class=\"block whitespace-pre-wrap break-words font-mono text-sm text-emerald-400\"\n >{{ normalizedSignature() }}</code\n >\n </div>\n }\n\n @if (shouldShowTemplate()) {\n <div class=\"space-y-1\">\n <span\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\n >Insert</span\n >\n <div class=\"rounded bg-slate-800 px-3 py-2\">\n <code\n class=\"block whitespace-pre-wrap break-words font-mono text-xs text-amber-300\"\n >{{ normalizedTemplate() }}</code\n >\n </div>\n </div>\n }\n\n @if (normalizedDescription()) {\n <p class=\"text-sm leading-relaxed text-slate-200\">\n {{ normalizedDescription() }}\n </p>\n }\n\n @if (normalizedReturnType()) {\n <div class=\"flex items-center gap-2 text-xs text-slate-300\">\n <span class=\"font-semibold uppercase tracking-wider text-slate-400\"\n >Returns</span\n >\n <code class=\"rounded bg-slate-800 px-2 py-0.5 text-sky-300\">{{\n normalizedReturnType()\n }}</code>\n </div>\n }\n\n @if (normalizedParameters().length > 0) {\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\n <span\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\n >Parameters</span\n >\n <div class=\"space-y-2\">\n @for (\n parameter of normalizedParameters();\n track parameter.name + parameter.type\n ) {\n <div class=\"rounded bg-slate-800/70 px-3 py-2\">\n <div class=\"flex flex-wrap items-center gap-2 text-xs\">\n @if (parameter.name) {\n <code class=\"font-mono text-emerald-300\">{{\n parameter.name\n }}</code>\n }\n @if (parameter.type) {\n <code class=\"text-sky-300\">{{ parameter.type }}</code>\n }\n </div>\n @if (parameter.description) {\n <p class=\"mt-1 text-xs leading-relaxed text-slate-400\">\n {{ parameter.description }}\n </p>\n }\n </div>\n }\n </div>\n </div>\n }\n\n @if (normalizedExamples().length > 0) {\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\n <span\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\n >Examples</span\n >\n <div class=\"space-y-2\">\n @for (example of normalizedExamples(); track example.code + $index) {\n <div class=\"space-y-1\">\n <div class=\"rounded bg-slate-800 px-3 py-2\">\n <code\n class=\"block whitespace-pre-wrap break-words font-mono text-xs text-amber-300\"\n >{{ example.code }}</code\n >\n </div>\n @if (example.description) {\n <p class=\"px-1 text-xs leading-relaxed text-slate-400\">\n {{ example.description }}\n </p>\n }\n </div>\n }\n </div>\n </div>\n }\n\n @if (normalizedHints().length > 0) {\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\n <span\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\n >Hints</span\n >\n <div class=\"space-y-1.5\">\n @for (hint of normalizedHints(); track hint) {\n <p\n class=\"rounded bg-slate-800/70 px-3 py-2 text-xs leading-relaxed text-slate-300\"\n >\n {{ hint }}\n </p>\n }\n </div>\n </div>\n }\n </div>\n</ng-template>\n", styles: [".mt-formula-toolbar-item-tooltip.p-tooltip,.mt-formula-toolbar-item-tooltip .p-tooltip-text{max-width:min(32rem,92vw)}.mt-formula-toolbar-item-tooltip-rich .p-tooltip-text{width:min(32rem,92vw);max-height:min(70vh,36rem);overflow-y:auto;padding:.75rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1909
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: FormulaToolbarItem, isStandalone: true, selector: "mt-formula-toolbar-item", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, display: { classPropertyName: "display", publicName: "display", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null }, examples: { classPropertyName: "examples", publicName: "examples", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, templateCursorOffset: { classPropertyName: "templateCursorOffset", publicName: "templateCursorOffset", isSignal: true, isRequired: false, transformFunction: null }, hints: { classPropertyName: "hints", publicName: "hints", isSignal: true, isRequired: false, transformFunction: null }, returnType: { classPropertyName: "returnType", publicName: "returnType", isSignal: true, isRequired: false, transformFunction: null }, parameters: { classPropertyName: "parameters", publicName: "parameters", isSignal: true, isRequired: false, transformFunction: null }, propertyType: { classPropertyName: "propertyType", publicName: "propertyType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onInsert: "onInsert" }, host: { classAttribute: "inline-block max-w-full" }, ngImport: i0, template: "<button\r\n type=\"button\"\r\n class=\"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded px-2 py-1 text-sm font-medium transition-colors hover:shadow-sm active:scale-95\"\r\n [class]=\"itemClass()\"\r\n [pTooltip]=\"hasRichTooltip() ? richTooltip : simpleTooltip()\"\r\n [tooltipDisabled]=\"!hasRichTooltip() && !simpleTooltip()\"\r\n [tooltipStyleClass]=\"tooltipStyleClass()\"\r\n [tooltipPosition]=\"'bottom'\"\r\n [showDelay]=\"300\"\r\n [hideDelay]=\"100\"\r\n [autoHide]=\"!hasRichTooltip()\"\r\n (click)=\"handleClick()\"\r\n>\r\n @if (type() === \"function\") {\r\n <span class=\"text-sm opacity-60\">f</span>\r\n }\r\n <span class=\"truncate\">{{ displayValue() }}</span>\r\n</button>\r\n\r\n<ng-template #richTooltip>\r\n <div class=\"space-y-3\">\r\n @if (normalizedSignature()) {\r\n <div class=\"rounded bg-slate-700 px-3 py-2\">\r\n <code\r\n class=\"block whitespace-pre-wrap break-words font-mono text-sm text-emerald-400\"\r\n >{{ normalizedSignature() }}</code\r\n >\r\n </div>\r\n }\r\n\r\n @if (shouldShowTemplate()) {\r\n <div class=\"space-y-1\">\r\n <span\r\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\r\n >Insert</span\r\n >\r\n <div class=\"rounded bg-slate-800 px-3 py-2\">\r\n <code\r\n class=\"block whitespace-pre-wrap break-words font-mono text-xs text-amber-300\"\r\n >{{ normalizedTemplate() }}</code\r\n >\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (normalizedDescription()) {\r\n <p class=\"text-sm leading-relaxed text-slate-200\">\r\n {{ normalizedDescription() }}\r\n </p>\r\n }\r\n\r\n @if (normalizedReturnType()) {\r\n <div class=\"flex items-center gap-2 text-xs text-slate-300\">\r\n <span class=\"font-semibold uppercase tracking-wider text-slate-400\"\r\n >Returns</span\r\n >\r\n <code class=\"rounded bg-slate-800 px-2 py-0.5 text-sky-300\">{{\r\n normalizedReturnType()\r\n }}</code>\r\n </div>\r\n }\r\n\r\n @if (normalizedParameters().length > 0) {\r\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\r\n <span\r\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\r\n >Parameters</span\r\n >\r\n <div class=\"space-y-2\">\r\n @for (\r\n parameter of normalizedParameters();\r\n track parameter.name + parameter.type\r\n ) {\r\n <div class=\"rounded bg-slate-800/70 px-3 py-2\">\r\n <div class=\"flex flex-wrap items-center gap-2 text-xs\">\r\n @if (parameter.name) {\r\n <code class=\"font-mono text-emerald-300\">{{\r\n parameter.name\r\n }}</code>\r\n }\r\n @if (parameter.type) {\r\n <code class=\"text-sky-300\">{{ parameter.type }}</code>\r\n }\r\n </div>\r\n @if (parameter.description) {\r\n <p class=\"mt-1 text-xs leading-relaxed text-slate-400\">\r\n {{ parameter.description }}\r\n </p>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (normalizedExamples().length > 0) {\r\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\r\n <span\r\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\r\n >Examples</span\r\n >\r\n <div class=\"space-y-2\">\r\n @for (example of normalizedExamples(); track example.code + $index) {\r\n <div class=\"space-y-1\">\r\n <div class=\"rounded bg-slate-800 px-3 py-2\">\r\n <code\r\n class=\"block whitespace-pre-wrap break-words font-mono text-xs text-amber-300\"\r\n >{{ example.code }}</code\r\n >\r\n </div>\r\n @if (example.description) {\r\n <p class=\"px-1 text-xs leading-relaxed text-slate-400\">\r\n {{ example.description }}\r\n </p>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (normalizedHints().length > 0) {\r\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\r\n <span\r\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\r\n >Hints</span\r\n >\r\n <div class=\"space-y-1.5\">\r\n @for (hint of normalizedHints(); track hint) {\r\n <p\r\n class=\"rounded bg-slate-800/70 px-3 py-2 text-xs leading-relaxed text-slate-300\"\r\n >\r\n {{ hint }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: [".mt-formula-toolbar-item-tooltip.p-tooltip,.mt-formula-toolbar-item-tooltip .p-tooltip-text{max-width:min(32rem,92vw)}.mt-formula-toolbar-item-tooltip-rich .p-tooltip-text{width:min(32rem,92vw);max-height:min(70vh,36rem);overflow-y:auto;padding:.75rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1910
1910
|
}
|
|
1911
1911
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: FormulaToolbarItem, decorators: [{
|
|
1912
1912
|
type: Component,
|
|
1913
1913
|
args: [{ selector: 'mt-formula-toolbar-item', standalone: true, imports: [CommonModule, TooltipModule], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
1914
1914
|
class: 'inline-block max-w-full',
|
|
1915
|
-
}, template: "<button\n type=\"button\"\n class=\"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded px-2 py-1 text-sm font-medium transition-colors hover:shadow-sm active:scale-95\"\n [class]=\"itemClass()\"\n [pTooltip]=\"hasRichTooltip() ? richTooltip : simpleTooltip()\"\n [tooltipDisabled]=\"!hasRichTooltip() && !simpleTooltip()\"\n [tooltipStyleClass]=\"tooltipStyleClass()\"\n [tooltipPosition]=\"'bottom'\"\n [showDelay]=\"300\"\n [hideDelay]=\"100\"\n [autoHide]=\"!hasRichTooltip()\"\n (click)=\"handleClick()\"\n>\n @if (type() === \"function\") {\n <span class=\"text-sm opacity-60\">f</span>\n }\n <span class=\"truncate\">{{ displayValue() }}</span>\n</button>\n\n<ng-template #richTooltip>\n <div class=\"space-y-3\">\n @if (normalizedSignature()) {\n <div class=\"rounded bg-slate-700 px-3 py-2\">\n <code\n class=\"block whitespace-pre-wrap break-words font-mono text-sm text-emerald-400\"\n >{{ normalizedSignature() }}</code\n >\n </div>\n }\n\n @if (shouldShowTemplate()) {\n <div class=\"space-y-1\">\n <span\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\n >Insert</span\n >\n <div class=\"rounded bg-slate-800 px-3 py-2\">\n <code\n class=\"block whitespace-pre-wrap break-words font-mono text-xs text-amber-300\"\n >{{ normalizedTemplate() }}</code\n >\n </div>\n </div>\n }\n\n @if (normalizedDescription()) {\n <p class=\"text-sm leading-relaxed text-slate-200\">\n {{ normalizedDescription() }}\n </p>\n }\n\n @if (normalizedReturnType()) {\n <div class=\"flex items-center gap-2 text-xs text-slate-300\">\n <span class=\"font-semibold uppercase tracking-wider text-slate-400\"\n >Returns</span\n >\n <code class=\"rounded bg-slate-800 px-2 py-0.5 text-sky-300\">{{\n normalizedReturnType()\n }}</code>\n </div>\n }\n\n @if (normalizedParameters().length > 0) {\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\n <span\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\n >Parameters</span\n >\n <div class=\"space-y-2\">\n @for (\n parameter of normalizedParameters();\n track parameter.name + parameter.type\n ) {\n <div class=\"rounded bg-slate-800/70 px-3 py-2\">\n <div class=\"flex flex-wrap items-center gap-2 text-xs\">\n @if (parameter.name) {\n <code class=\"font-mono text-emerald-300\">{{\n parameter.name\n }}</code>\n }\n @if (parameter.type) {\n <code class=\"text-sky-300\">{{ parameter.type }}</code>\n }\n </div>\n @if (parameter.description) {\n <p class=\"mt-1 text-xs leading-relaxed text-slate-400\">\n {{ parameter.description }}\n </p>\n }\n </div>\n }\n </div>\n </div>\n }\n\n @if (normalizedExamples().length > 0) {\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\n <span\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\n >Examples</span\n >\n <div class=\"space-y-2\">\n @for (example of normalizedExamples(); track example.code + $index) {\n <div class=\"space-y-1\">\n <div class=\"rounded bg-slate-800 px-3 py-2\">\n <code\n class=\"block whitespace-pre-wrap break-words font-mono text-xs text-amber-300\"\n >{{ example.code }}</code\n >\n </div>\n @if (example.description) {\n <p class=\"px-1 text-xs leading-relaxed text-slate-400\">\n {{ example.description }}\n </p>\n }\n </div>\n }\n </div>\n </div>\n }\n\n @if (normalizedHints().length > 0) {\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\n <span\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\n >Hints</span\n >\n <div class=\"space-y-1.5\">\n @for (hint of normalizedHints(); track hint) {\n <p\n class=\"rounded bg-slate-800/70 px-3 py-2 text-xs leading-relaxed text-slate-300\"\n >\n {{ hint }}\n </p>\n }\n </div>\n </div>\n }\n </div>\n</ng-template>\n", styles: [".mt-formula-toolbar-item-tooltip.p-tooltip,.mt-formula-toolbar-item-tooltip .p-tooltip-text{max-width:min(32rem,92vw)}.mt-formula-toolbar-item-tooltip-rich .p-tooltip-text{width:min(32rem,92vw);max-height:min(70vh,36rem);overflow-y:auto;padding:.75rem}\n"] }]
|
|
1915
|
+
}, template: "<button\r\n type=\"button\"\r\n class=\"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded px-2 py-1 text-sm font-medium transition-colors hover:shadow-sm active:scale-95\"\r\n [class]=\"itemClass()\"\r\n [pTooltip]=\"hasRichTooltip() ? richTooltip : simpleTooltip()\"\r\n [tooltipDisabled]=\"!hasRichTooltip() && !simpleTooltip()\"\r\n [tooltipStyleClass]=\"tooltipStyleClass()\"\r\n [tooltipPosition]=\"'bottom'\"\r\n [showDelay]=\"300\"\r\n [hideDelay]=\"100\"\r\n [autoHide]=\"!hasRichTooltip()\"\r\n (click)=\"handleClick()\"\r\n>\r\n @if (type() === \"function\") {\r\n <span class=\"text-sm opacity-60\">f</span>\r\n }\r\n <span class=\"truncate\">{{ displayValue() }}</span>\r\n</button>\r\n\r\n<ng-template #richTooltip>\r\n <div class=\"space-y-3\">\r\n @if (normalizedSignature()) {\r\n <div class=\"rounded bg-slate-700 px-3 py-2\">\r\n <code\r\n class=\"block whitespace-pre-wrap break-words font-mono text-sm text-emerald-400\"\r\n >{{ normalizedSignature() }}</code\r\n >\r\n </div>\r\n }\r\n\r\n @if (shouldShowTemplate()) {\r\n <div class=\"space-y-1\">\r\n <span\r\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\r\n >Insert</span\r\n >\r\n <div class=\"rounded bg-slate-800 px-3 py-2\">\r\n <code\r\n class=\"block whitespace-pre-wrap break-words font-mono text-xs text-amber-300\"\r\n >{{ normalizedTemplate() }}</code\r\n >\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (normalizedDescription()) {\r\n <p class=\"text-sm leading-relaxed text-slate-200\">\r\n {{ normalizedDescription() }}\r\n </p>\r\n }\r\n\r\n @if (normalizedReturnType()) {\r\n <div class=\"flex items-center gap-2 text-xs text-slate-300\">\r\n <span class=\"font-semibold uppercase tracking-wider text-slate-400\"\r\n >Returns</span\r\n >\r\n <code class=\"rounded bg-slate-800 px-2 py-0.5 text-sky-300\">{{\r\n normalizedReturnType()\r\n }}</code>\r\n </div>\r\n }\r\n\r\n @if (normalizedParameters().length > 0) {\r\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\r\n <span\r\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\r\n >Parameters</span\r\n >\r\n <div class=\"space-y-2\">\r\n @for (\r\n parameter of normalizedParameters();\r\n track parameter.name + parameter.type\r\n ) {\r\n <div class=\"rounded bg-slate-800/70 px-3 py-2\">\r\n <div class=\"flex flex-wrap items-center gap-2 text-xs\">\r\n @if (parameter.name) {\r\n <code class=\"font-mono text-emerald-300\">{{\r\n parameter.name\r\n }}</code>\r\n }\r\n @if (parameter.type) {\r\n <code class=\"text-sky-300\">{{ parameter.type }}</code>\r\n }\r\n </div>\r\n @if (parameter.description) {\r\n <p class=\"mt-1 text-xs leading-relaxed text-slate-400\">\r\n {{ parameter.description }}\r\n </p>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (normalizedExamples().length > 0) {\r\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\r\n <span\r\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\r\n >Examples</span\r\n >\r\n <div class=\"space-y-2\">\r\n @for (example of normalizedExamples(); track example.code + $index) {\r\n <div class=\"space-y-1\">\r\n <div class=\"rounded bg-slate-800 px-3 py-2\">\r\n <code\r\n class=\"block whitespace-pre-wrap break-words font-mono text-xs text-amber-300\"\r\n >{{ example.code }}</code\r\n >\r\n </div>\r\n @if (example.description) {\r\n <p class=\"px-1 text-xs leading-relaxed text-slate-400\">\r\n {{ example.description }}\r\n </p>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (normalizedHints().length > 0) {\r\n <div class=\"space-y-2 border-t border-slate-600 pt-3\">\r\n <span\r\n class=\"text-xs font-semibold uppercase tracking-wider text-slate-400\"\r\n >Hints</span\r\n >\r\n <div class=\"space-y-1.5\">\r\n @for (hint of normalizedHints(); track hint) {\r\n <p\r\n class=\"rounded bg-slate-800/70 px-3 py-2 text-xs leading-relaxed text-slate-300\"\r\n >\r\n {{ hint }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: [".mt-formula-toolbar-item-tooltip.p-tooltip,.mt-formula-toolbar-item-tooltip .p-tooltip-text{max-width:min(32rem,92vw)}.mt-formula-toolbar-item-tooltip-rich .p-tooltip-text{width:min(32rem,92vw);max-height:min(70vh,36rem);overflow-y:auto;padding:.75rem}\n"] }]
|
|
1916
1916
|
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], display: [{ type: i0.Input, args: [{ isSignal: true, alias: "display", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], signature: [{ type: i0.Input, args: [{ isSignal: true, alias: "signature", required: false }] }], examples: [{ type: i0.Input, args: [{ isSignal: true, alias: "examples", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], templateCursorOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateCursorOffset", required: false }] }], hints: [{ type: i0.Input, args: [{ isSignal: true, alias: "hints", required: false }] }], returnType: [{ type: i0.Input, args: [{ isSignal: true, alias: "returnType", required: false }] }], parameters: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameters", required: false }] }], propertyType: [{ type: i0.Input, args: [{ isSignal: true, alias: "propertyType", required: false }] }], onInsert: [{ type: i0.Output, args: ["onInsert"] }] } });
|
|
1917
1917
|
|
|
1918
1918
|
const DEFAULT_OPERATORS = [
|