@noldova/ui.components.angular 0.0.2 → 0.0.5
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 +3 -3
- package/app/components/avatar/avatar-initials-fitter.js +3 -3
- package/app/components/avatar/avatar.component.js +3 -3
- package/app/components/button/button.component.js +4 -4
- package/app/components/card/card.component.js +3 -3
- package/app/components/checkbox/checkbox.component.js +3 -3
- package/app/components/chip/chip.component.js +3 -3
- package/app/components/choice-pills/choice-pills.component.js +3 -3
- package/app/components/choice-row/choice-row.component.js +3 -3
- package/app/components/code-block/code-block.component.js +3 -3
- package/app/components/code-block/shell-run-output.component.js +3 -3
- package/app/components/code-block/shell-run-output.directive.js +3 -3
- package/app/components/configuration-table/configuration-table-action.directive.js +3 -3
- package/app/components/configuration-table/configuration-table-fill.directive.js +3 -3
- package/app/components/configuration-table/configuration-table-row-actions.directive.js +3 -3
- package/app/components/configuration-table/configuration-table-share.directive.js +3 -3
- package/app/components/configuration-table/configuration-table.component.js +3 -3
- package/app/components/configuration-table/configuration-table.directive.js +3 -3
- package/app/components/dialog/dialog-description.directive.js +3 -3
- package/app/components/dialog/dialog.component.d.ts +5 -3
- package/app/components/dialog/dialog.component.js +7 -4
- package/app/components/dialog/dialog.component.js.map +1 -1
- package/app/components/diff-view/diff-code.directive.js +3 -3
- package/app/components/diff-view/diff-view.component.js +3 -3
- package/app/components/docking-guide/docking-guide.component.js +3 -3
- package/app/components/docking-plate/docking-plate.component.js +3 -3
- package/app/components/field-message/field-message.component.js +3 -3
- package/app/components/file-badge/file-badge.component.js +3 -3
- package/app/components/gallery/gallery-avatar.component.js +3 -3
- package/app/components/gallery/gallery-button.component.js +3 -3
- package/app/components/gallery/gallery-card.component.js +3 -3
- package/app/components/gallery/gallery-cell.component.js +3 -3
- package/app/components/gallery/gallery-checkbox.component.js +3 -3
- package/app/components/gallery/gallery-chip.component.js +3 -3
- package/app/components/gallery/gallery-choice-pills.component.js +3 -3
- package/app/components/gallery/gallery-choice-row.component.js +3 -3
- package/app/components/gallery/gallery-code-block.component.js +3 -3
- package/app/components/gallery/gallery-configuration-table.component.js +3 -3
- package/app/components/gallery/gallery-content.component.js +3 -3
- package/app/components/gallery/gallery-content.component.js.map +1 -1
- package/app/components/gallery/gallery-dialog.component.d.ts +1 -0
- package/app/components/gallery/gallery-dialog.component.js +5 -4
- package/app/components/gallery/gallery-dialog.component.js.map +1 -1
- package/app/components/gallery/gallery-feed.component.js +3 -3
- package/app/components/gallery/gallery-file-badge.component.js +3 -3
- package/app/components/gallery/gallery-forms.component.js +3 -3
- package/app/components/gallery/gallery-group-header.component.js +3 -3
- package/app/components/gallery/gallery-icon-button.component.js +3 -3
- package/app/components/gallery/gallery-inline-code.component.js +3 -3
- package/app/components/gallery/gallery-markdown-view.component.js +3 -3
- package/app/components/gallery/gallery-menu.component.js +3 -3
- package/app/components/gallery/gallery-message.component.js +3 -3
- package/app/components/gallery/gallery-meter.component.js +3 -3
- package/app/components/gallery/gallery-navigation.component.js +3 -3
- package/app/components/gallery/gallery-overlays.component.js +3 -3
- package/app/components/gallery/gallery-panel-card.component.js +3 -3
- package/app/components/gallery/gallery-press.directive.js +3 -3
- package/app/components/gallery/gallery-progress.component.js +3 -3
- package/app/components/gallery/gallery-quick-input.component.js +3 -3
- package/app/components/gallery/gallery-radio.component.js +3 -3
- package/app/components/gallery/gallery-refusing-clipboard.directive.js +3 -3
- package/app/components/gallery/gallery-refusing-clipboard.js +3 -3
- package/app/components/gallery/gallery-resources.d.ts +1 -0
- package/app/components/gallery/gallery-resources.js +1 -0
- package/app/components/gallery/gallery-resources.js.map +1 -1
- package/app/components/gallery/gallery-sash.component.js +3 -3
- package/app/components/gallery/gallery-scope.directive.js +3 -3
- package/app/components/gallery/gallery-section-header.component.js +3 -3
- package/app/components/gallery/gallery-select.component.js +3 -3
- package/app/components/gallery/gallery-specimen.component.js +3 -3
- package/app/components/gallery/gallery-spinner.component.js +3 -3
- package/app/components/gallery/gallery-split-button.component.js +3 -3
- package/app/components/gallery/gallery-state.directive.js +3 -3
- package/app/components/gallery/gallery-switch.component.js +3 -3
- package/app/components/gallery/gallery-tab.component.js +3 -3
- package/app/components/gallery/gallery-terminal-output.component.js +3 -3
- package/app/components/gallery/gallery-text-field.component.js +3 -3
- package/app/components/gallery/gallery-toolbar-button.component.js +3 -3
- package/app/components/gallery/gallery-tooltip.component.js +3 -3
- package/app/components/gallery/gallery-tree.component.js +3 -3
- package/app/components/gallery/gallery-view-badge.component.js +3 -3
- package/app/components/gallery/gallery-virtual-list.component.js +3 -3
- package/app/components/gallery/gallery.component.js +3 -3
- package/app/components/group-header/group-header.component.js +3 -3
- package/app/components/icon-button/icon-button.component.js +4 -4
- package/app/components/icon-button/icon-button.component.js.map +1 -1
- package/app/components/inline-code/inline-code.component.js +3 -3
- package/app/components/link-reference/link-reference-card.component.js +3 -3
- package/app/components/link-reference/link-reference-chip.component.js +3 -3
- package/app/components/link-reference/link-reference-image.component.js +3 -3
- package/app/components/link-reference/link-reference-work-item-state.component.js +3 -3
- package/app/components/markdown-view/markdown-math.component.js +3 -3
- package/app/components/markdown-view/markdown-view-nodes.component.js +3 -3
- package/app/components/markdown-view/markdown-view.component.js +3 -3
- package/app/components/mention-field/mention-field.directive.js +3 -3
- package/app/components/mention-field/mention-list.component.js +3 -3
- package/app/components/menu/context-menu-trigger.directive.js +3 -3
- package/app/components/menu/kept-open-menu-item.directive.js +3 -3
- package/app/components/menu/menu-group-action.directive.js +3 -3
- package/app/components/menu/menu-group.component.js +3 -3
- package/app/components/menu/menu-item.component.js +4 -4
- package/app/components/menu/menu-item.component.js.map +1 -1
- package/app/components/menu/menu-opens-on.directive.js +3 -3
- package/app/components/menu/menu-separator.component.js +3 -3
- package/app/components/menu/menu-trigger.directive.js +3 -3
- package/app/components/menu/menu.component.js +3 -3
- package/app/components/menu-bar/menu-bar-item.component.js +3 -3
- package/app/components/menu-bar/menu-bar.component.js +3 -3
- package/app/components/message/message-action.directive.js +3 -3
- package/app/components/message/message-footer-end.directive.js +3 -3
- package/app/components/message/message-image.directive.js +3 -3
- package/app/components/message/message-run.component.js +3 -3
- package/app/components/message/message-slot.directive.js +3 -3
- package/app/components/message/message.component.js +3 -3
- package/app/components/meter/meter.component.js +3 -3
- package/app/components/panel-card/panel-card.component.js +3 -3
- package/app/components/permission-card/permission-card.component.d.ts +19 -7
- package/app/components/permission-card/permission-card.component.js +19 -10
- package/app/components/permission-card/permission-card.component.js.map +1 -1
- package/app/components/permission-card/permission-card.resources.d.ts +3 -0
- package/app/components/permission-card/permission-card.resources.js +7 -0
- package/app/components/permission-card/permission-card.resources.js.map +1 -1
- package/app/components/plan/plan.component.js +3 -3
- package/app/components/popover/popover-trigger.directive.js +3 -3
- package/app/components/popover/popover.directive.js +3 -3
- package/app/components/progress/progress.component.js +3 -3
- package/app/components/progress/reveal-delay.directive.js +3 -3
- package/app/components/quick-input/quick-input.component.js +4 -4
- package/app/components/quick-input/quick-input.component.js.map +1 -1
- package/app/components/radio/radio-group.component.js +3 -3
- package/app/components/radio/radio.component.js +3 -3
- package/app/components/sash/sash.component.js +3 -3
- package/app/components/section-header/section-header.component.js +3 -3
- package/app/components/select/select.component.js +3 -3
- package/app/components/spinner/spinner.component.js +4 -4
- package/app/components/split-button/split-button.component.js +3 -3
- package/app/components/switch/switch.component.js +3 -3
- package/app/components/tab/tab.component.js +4 -4
- package/app/components/tab/tab.component.js.map +1 -1
- package/app/components/terminal-output/terminal-output.component.js +3 -3
- package/app/components/text-field/text-field-box.component.js +3 -3
- package/app/components/text-field/text-field-end.directive.js +3 -3
- package/app/components/text-field/text-field.component.js +3 -3
- package/app/components/tool-call/tool-call-output.directive.js +3 -3
- package/app/components/tool-call/tool-call.component.js +3 -3
- package/app/components/toolbar/toolbar-item.directive.js +3 -3
- package/app/components/toolbar/toolbar.directive.js +3 -3
- package/app/components/toolbar-button/toolbar-button.component.js +4 -4
- package/app/components/toolbar-button/toolbar-button.component.js.map +1 -1
- package/app/components/tooltip/tooltip.component.js +3 -3
- package/app/components/tooltip/tooltip.directive.js +3 -3
- package/app/components/tree/tree-row.directive.js +3 -3
- package/app/components/tree/tree.component.js +3 -3
- package/app/components/view-badge/view-badge.component.js +3 -3
- package/app/components/virtual-list/virtual-list.component.js +4 -4
- package/app/components/virtual-list/virtual-list.component.js.map +1 -1
- package/app/components/virtual-list/virtual-row.directive.js +3 -3
- package/app/enums/dialog-size.d.ts +7 -1
- package/app/enums/dialog-size.js +1 -0
- package/app/enums/dialog-size.js.map +1 -1
- package/app/models/default-theme.js +1 -0
- package/app/models/default-theme.js.map +1 -1
- package/app/models/permission-requester.d.ts +12 -8
- package/app/models/permission-requester.js +3 -2
- package/app/models/permission-requester.js.map +1 -1
- package/app/services/announcer.js +3 -3
- package/app/services/appearance.service.js +3 -3
- package/app/services/code-highlighter.js +3 -3
- package/app/services/code-highlights.js +3 -3
- package/app/services/dialog.service.js +3 -3
- package/app/services/diff-highlights.js +3 -3
- package/app/services/duration-formatter.js +3 -3
- package/app/services/markdown-math.renderer.js +3 -3
- package/app/services/markdown.parser.js +3 -3
- package/app/services/overlay-bounds.service.js +3 -3
- package/app/services/pending-permissions.js +3 -3
- package/app/services/scroll-reveal.service.js +3 -3
- package/app/services/shared-clock.js +3 -3
- package/app/services/tooltip-pace.js +3 -3
- package/package.json +7 -7
- package/resources.js +1 -0
- package/resources.js.map +1 -1
- package/styles/theme.css +1 -0
- package/testing/models/fixture-theme.js +1 -0
- package/testing/models/fixture-theme.js.map +1 -1
- package/testing/services/clipboard-writer-fixture.js +3 -3
|
@@ -38,10 +38,10 @@ export class DialogDescriptionDirective {
|
|
|
38
38
|
else
|
|
39
39
|
dialog.setAttribute(DialogDescriptionResources.ariaDescribedByAttribute, ids.join(Resources.ariaIdSeparator));
|
|
40
40
|
}
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
42
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DialogDescriptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
42
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: DialogDescriptionDirective, isStandalone: true, selector: "[nolDialogDescription]", host: { properties: { "id": "id" } }, ngImport: i0 });
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DialogDescriptionDirective, decorators: [{
|
|
45
45
|
type: Directive,
|
|
46
46
|
args: [{
|
|
47
47
|
selector: "[nolDialogDescription]",
|
|
@@ -78,9 +78,10 @@ export declare class DialogComponent {
|
|
|
78
78
|
readonly title: import("@angular/core").InputSignal<string>;
|
|
79
79
|
/**
|
|
80
80
|
* The dialog's size; normal when not bound. A normal dialog takes its
|
|
81
|
-
* preferred width within the window and scrolls its body; a
|
|
82
|
-
*
|
|
83
|
-
*
|
|
81
|
+
* preferred width within the window and scrolls its body; a medium one is
|
|
82
|
+
* the same at the theme's wider medium width; a large one takes most of
|
|
83
|
+
* the window, with a title bar that ends with its controls, Maximize and
|
|
84
|
+
* Close, and a body without padding that lays itself out.
|
|
84
85
|
*/
|
|
85
86
|
readonly size: import("@angular/core").InputSignal<DialogSize>;
|
|
86
87
|
/**
|
|
@@ -88,6 +89,7 @@ export declare class DialogComponent {
|
|
|
88
89
|
* Close button. The owner closes the dialog, or keeps it open.
|
|
89
90
|
*/
|
|
90
91
|
readonly dismissed: import("@angular/core").OutputEmitterRef<void>;
|
|
92
|
+
protected readonly isMedium: Signal<boolean>;
|
|
91
93
|
protected readonly isLarge: Signal<boolean>;
|
|
92
94
|
protected readonly isMaximized: WritableSignal<boolean>;
|
|
93
95
|
protected readonly maximizeLabel: Signal<string>;
|
|
@@ -31,6 +31,8 @@ export class DialogComponent {
|
|
|
31
31
|
size = input(DialogSize.Normal, /* @ts-ignore */
|
|
32
32
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
33
33
|
dismissed = output();
|
|
34
|
+
isMedium = computed(() => this.size() === DialogSize.Medium, /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "isMedium" }] : /* istanbul ignore next */ []));
|
|
34
36
|
isLarge = computed(() => this.size() === DialogSize.Large, /* @ts-ignore */
|
|
35
37
|
...(ngDevMode ? [{ debugName: "isLarge" }] : /* istanbul ignore next */ []));
|
|
36
38
|
isMaximized = signal(false, /* @ts-ignore */
|
|
@@ -104,16 +106,17 @@ export class DialogComponent {
|
|
|
104
106
|
const y = Math.max(area.top + Number.parseFloat(margins.marginTop) - top, Math.min(wanted.y, area.bottom - Number.parseFloat(margins.marginBottom) - box.height - top));
|
|
105
107
|
return new DOMPoint(x, y);
|
|
106
108
|
}
|
|
107
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
108
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
109
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
110
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: DialogComponent, isStandalone: true, selector: "nol-dialog", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismissed: "dismissed" }, host: { listeners: { "keydown.escape": "dismiss($event)" }, properties: { "class.nol-dialog-medium": "isMedium()", "class.nol-dialog-large": "isLarge()", "class.nol-dialog-maximized": "isShownMaximized()", "style.translate": "translation()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"nol-dialog-header\" (pointerdown)=\"startDrag($event)\">\n <h2 class=\"nol-dialog-title\" [id]=\"titleId\" [attr.data-truncates]=\"isLarge() ? '' : null\">{{ title() }}</h2>\n <div class=\"nol-dialog-controls\">\n @if (isLarge()) {\n <ng-content select=\"[nolDialogControl]\" />\n <button type=\"button\" nol-icon-button class=\"nol-dialog-maximize\" [icon]=\"isMaximized() ? partResources.dialogRestoreGlyph : partResources.dialogMaximizeGlyph\"\n [label]=\"maximizeLabel()\" [nolTooltip]=\"maximizeLabel()\" (click)=\"toggleMaximized()\"></button>\n }\n <button type=\"button\" nol-icon-button class=\"nol-dialog-close\" [icon]=\"resources.closeGlyph\" [label]=\"partResources.dialogCloseLabel\" [nolTooltip]=\"partResources.dialogCloseLabel\"\n (click)=\"dismissed.emit()\"></button>\n </div>\n</div>\n<div class=\"nol-dialog-body\">\n <ng-content />\n</div>\n<div class=\"nol-dialog-actions\">\n <ng-content select=\"[nolDialogAction]\" />\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n --nol-dialog-bounds-width: calc(100cqw - var(--nol-space-2) * 2);\n --nol-dialog-bounds-height: calc(100cqh - var(--nol-window-row-height) - var(--nol-status-bar-height) - var(--nol-space-2) * 2);\n box-sizing: border-box;\n width: min(var(--nol-dialog-width), var(--nol-dialog-bounds-width));\n max-height: var(--nol-dialog-bounds-height);\n border: var(--nol-border-width) solid var(--nol-widget-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-dialog);\n box-shadow: var(--nol-shadow-xlarge);\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n:host(.nol-dialog-medium) {\n width: min(var(--nol-dialog-medium-width), var(--nol-dialog-bounds-width));\n}\n\n:host(.nol-dialog-large) {\n width: min(max(var(--nol-dialog-large-width), var(--nol-dialog-large-min-width)), var(--nol-dialog-bounds-width));\n height: min(max(var(--nol-dialog-large-height), var(--nol-dialog-large-min-height)), var(--nol-dialog-bounds-height));\n overflow: hidden;\n}\n\n:host(.nol-dialog-maximized) {\n width: var(--nol-dialog-bounds-width);\n height: var(--nol-dialog-bounds-height);\n}\n\n.nol-dialog-header {\n display: flex;\n flex: none;\n align-items: flex-start;\n gap: var(--nol-space-2);\n touch-action: none;\n}\n\n:host(:not(.nol-dialog-large)) .nol-dialog-header {\n padding: var(--nol-dialog-body-padding);\n padding-block: 0;\n padding-inline-start: 0;\n}\n\n:host(.nol-dialog-large) .nol-dialog-header {\n align-items: center;\n padding: var(--nol-dialog-large-header-padding);\n border-bottom: var(--nol-border-width) solid var(--nol-widget-border);\n}\n\n.nol-dialog-title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n padding: var(--nol-dialog-title-padding);\n padding-inline-end: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n overflow-wrap: anywhere;\n}\n\n:host(.nol-dialog-large) .nol-dialog-title {\n padding: 0;\n}\n\n.nol-dialog-controls {\n display: flex;\n flex: none;\n align-items: center;\n margin-inline-end: calc((var(--nol-icon-button-target) - var(--nol-icon)) / -2 - var(--nol-icon) * 0.28);\n}\n\n:host(:not(.nol-dialog-large)) .nol-dialog-controls {\n box-sizing: content-box;\n height: var(--nol-line-panel);\n padding: var(--nol-dialog-title-padding);\n padding-block-end: 0;\n padding-inline: 0;\n}\n\n.nol-dialog-body {\n flex: 1 1 auto;\n min-height: 0;\n padding: var(--nol-dialog-body-padding);\n overflow-x: hidden;\n overflow-y: auto;\n overflow-wrap: anywhere;\n}\n\n:host(.nol-dialog-large) .nol-dialog-body {\n display: flex;\n flex-direction: column;\n padding: 0;\n overflow: hidden;\n}\n\n.nol-dialog-actions {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: var(--nol-space-2);\n padding: var(--nol-dialog-actions-padding);\n}\n\n.nol-dialog-actions:empty {\n display: none;\n}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
109
111
|
}
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DialogComponent, decorators: [{
|
|
111
113
|
type: Component,
|
|
112
114
|
args: [{ selector: "nol-dialog", imports: [IconButtonComponent, TooltipDirective], host: {
|
|
115
|
+
"[class.nol-dialog-medium]": "isMedium()",
|
|
113
116
|
"[class.nol-dialog-large]": "isLarge()",
|
|
114
117
|
"[class.nol-dialog-maximized]": "isShownMaximized()",
|
|
115
118
|
"[style.translate]": "translation()",
|
|
116
119
|
"(keydown.escape)": "dismiss($event)"
|
|
117
|
-
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"nol-dialog-header\" (pointerdown)=\"startDrag($event)\">\n <h2 class=\"nol-dialog-title\" [id]=\"titleId\" [attr.data-truncates]=\"isLarge() ? '' : null\">{{ title() }}</h2>\n <div class=\"nol-dialog-controls\">\n @if (isLarge()) {\n <ng-content select=\"[nolDialogControl]\" />\n <button type=\"button\" nol-icon-button class=\"nol-dialog-maximize\" [icon]=\"isMaximized() ? partResources.dialogRestoreGlyph : partResources.dialogMaximizeGlyph\"\n [label]=\"maximizeLabel()\" [nolTooltip]=\"maximizeLabel()\" (click)=\"toggleMaximized()\"></button>\n }\n <button type=\"button\" nol-icon-button class=\"nol-dialog-close\" [icon]=\"resources.closeGlyph\" [label]=\"partResources.dialogCloseLabel\" [nolTooltip]=\"partResources.dialogCloseLabel\"\n (click)=\"dismissed.emit()\"></button>\n </div>\n</div>\n<div class=\"nol-dialog-body\">\n <ng-content />\n</div>\n<div class=\"nol-dialog-actions\">\n <ng-content select=\"[nolDialogAction]\" />\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n --nol-dialog-bounds-width: calc(100cqw - var(--nol-space-2) * 2);\n --nol-dialog-bounds-height: calc(100cqh - var(--nol-window-row-height) - var(--nol-status-bar-height) - var(--nol-space-2) * 2);\n box-sizing: border-box;\n width: min(var(--nol-dialog-width), var(--nol-dialog-bounds-width));\n max-height: var(--nol-dialog-bounds-height);\n border: var(--nol-border-width) solid var(--nol-widget-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-dialog);\n box-shadow: var(--nol-shadow-xlarge);\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n:host(.nol-dialog-large) {\n width: min(max(var(--nol-dialog-large-width), var(--nol-dialog-large-min-width)), var(--nol-dialog-bounds-width));\n height: min(max(var(--nol-dialog-large-height), var(--nol-dialog-large-min-height)), var(--nol-dialog-bounds-height));\n overflow: hidden;\n}\n\n:host(.nol-dialog-maximized) {\n width: var(--nol-dialog-bounds-width);\n height: var(--nol-dialog-bounds-height);\n}\n\n.nol-dialog-header {\n display: flex;\n flex: none;\n align-items: flex-start;\n gap: var(--nol-space-2);\n touch-action: none;\n}\n\n:host(:not(.nol-dialog-large)) .nol-dialog-header {\n padding: var(--nol-dialog-body-padding);\n padding-block: 0;\n padding-inline-start: 0;\n}\n\n:host(.nol-dialog-large) .nol-dialog-header {\n align-items: center;\n padding: var(--nol-dialog-large-header-padding);\n border-bottom: var(--nol-border-width) solid var(--nol-widget-border);\n}\n\n.nol-dialog-title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n padding: var(--nol-dialog-title-padding);\n padding-inline-end: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n overflow-wrap: anywhere;\n}\n\n:host(.nol-dialog-large) .nol-dialog-title {\n padding: 0;\n}\n\n.nol-dialog-controls {\n display: flex;\n flex: none;\n align-items: center;\n margin-inline-end: calc((var(--nol-icon-button-target) - var(--nol-icon)) / -2 - var(--nol-icon) * 0.28);\n}\n\n:host(:not(.nol-dialog-large)) .nol-dialog-controls {\n box-sizing: content-box;\n height: var(--nol-line-panel);\n padding: var(--nol-dialog-title-padding);\n padding-block-end: 0;\n padding-inline: 0;\n}\n\n.nol-dialog-body {\n flex: 1 1 auto;\n min-height: 0;\n padding: var(--nol-dialog-body-padding);\n overflow-x: hidden;\n overflow-y: auto;\n overflow-wrap: anywhere;\n}\n\n:host(.nol-dialog-large) .nol-dialog-body {\n display: flex;\n flex-direction: column;\n padding: 0;\n overflow: hidden;\n}\n\n.nol-dialog-actions {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: var(--nol-space-2);\n padding: var(--nol-dialog-actions-padding);\n}\n\n.nol-dialog-actions:empty {\n display: none;\n}\n"] }]
|
|
120
|
+
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"nol-dialog-header\" (pointerdown)=\"startDrag($event)\">\n <h2 class=\"nol-dialog-title\" [id]=\"titleId\" [attr.data-truncates]=\"isLarge() ? '' : null\">{{ title() }}</h2>\n <div class=\"nol-dialog-controls\">\n @if (isLarge()) {\n <ng-content select=\"[nolDialogControl]\" />\n <button type=\"button\" nol-icon-button class=\"nol-dialog-maximize\" [icon]=\"isMaximized() ? partResources.dialogRestoreGlyph : partResources.dialogMaximizeGlyph\"\n [label]=\"maximizeLabel()\" [nolTooltip]=\"maximizeLabel()\" (click)=\"toggleMaximized()\"></button>\n }\n <button type=\"button\" nol-icon-button class=\"nol-dialog-close\" [icon]=\"resources.closeGlyph\" [label]=\"partResources.dialogCloseLabel\" [nolTooltip]=\"partResources.dialogCloseLabel\"\n (click)=\"dismissed.emit()\"></button>\n </div>\n</div>\n<div class=\"nol-dialog-body\">\n <ng-content />\n</div>\n<div class=\"nol-dialog-actions\">\n <ng-content select=\"[nolDialogAction]\" />\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n --nol-dialog-bounds-width: calc(100cqw - var(--nol-space-2) * 2);\n --nol-dialog-bounds-height: calc(100cqh - var(--nol-window-row-height) - var(--nol-status-bar-height) - var(--nol-space-2) * 2);\n box-sizing: border-box;\n width: min(var(--nol-dialog-width), var(--nol-dialog-bounds-width));\n max-height: var(--nol-dialog-bounds-height);\n border: var(--nol-border-width) solid var(--nol-widget-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-dialog);\n box-shadow: var(--nol-shadow-xlarge);\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n:host(.nol-dialog-medium) {\n width: min(var(--nol-dialog-medium-width), var(--nol-dialog-bounds-width));\n}\n\n:host(.nol-dialog-large) {\n width: min(max(var(--nol-dialog-large-width), var(--nol-dialog-large-min-width)), var(--nol-dialog-bounds-width));\n height: min(max(var(--nol-dialog-large-height), var(--nol-dialog-large-min-height)), var(--nol-dialog-bounds-height));\n overflow: hidden;\n}\n\n:host(.nol-dialog-maximized) {\n width: var(--nol-dialog-bounds-width);\n height: var(--nol-dialog-bounds-height);\n}\n\n.nol-dialog-header {\n display: flex;\n flex: none;\n align-items: flex-start;\n gap: var(--nol-space-2);\n touch-action: none;\n}\n\n:host(:not(.nol-dialog-large)) .nol-dialog-header {\n padding: var(--nol-dialog-body-padding);\n padding-block: 0;\n padding-inline-start: 0;\n}\n\n:host(.nol-dialog-large) .nol-dialog-header {\n align-items: center;\n padding: var(--nol-dialog-large-header-padding);\n border-bottom: var(--nol-border-width) solid var(--nol-widget-border);\n}\n\n.nol-dialog-title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n padding: var(--nol-dialog-title-padding);\n padding-inline-end: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n overflow-wrap: anywhere;\n}\n\n:host(.nol-dialog-large) .nol-dialog-title {\n padding: 0;\n}\n\n.nol-dialog-controls {\n display: flex;\n flex: none;\n align-items: center;\n margin-inline-end: calc((var(--nol-icon-button-target) - var(--nol-icon)) / -2 - var(--nol-icon) * 0.28);\n}\n\n:host(:not(.nol-dialog-large)) .nol-dialog-controls {\n box-sizing: content-box;\n height: var(--nol-line-panel);\n padding: var(--nol-dialog-title-padding);\n padding-block-end: 0;\n padding-inline: 0;\n}\n\n.nol-dialog-body {\n flex: 1 1 auto;\n min-height: 0;\n padding: var(--nol-dialog-body-padding);\n overflow-x: hidden;\n overflow-y: auto;\n overflow-wrap: anywhere;\n}\n\n:host(.nol-dialog-large) .nol-dialog-body {\n display: flex;\n flex-direction: column;\n padding: 0;\n overflow: hidden;\n}\n\n.nol-dialog-actions {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: var(--nol-space-2);\n padding: var(--nol-dialog-actions-padding);\n}\n\n.nol-dialog-actions:empty {\n display: none;\n}\n"] }]
|
|
118
121
|
}], ctorParameters: () => [], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }] } });
|
|
119
122
|
//# sourceMappingURL=dialog.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/dialog/dialog.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/dialog/dialog.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAe,MAAM,EAAuB,MAAM,eAAe,CAAC;AAE9J,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;;
|
|
1
|
+
{"version":3,"file":"dialog.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/dialog/dialog.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/dialog/dialog.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAe,MAAM,EAAuB,MAAM,eAAe,CAAC;AAE9J,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;;AAenE,MAAM,OAAO,eAAe;IACP,OAAO,GAAW,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAC/C,SAAS,GAAqB,SAAS,CAAC;IACxC,aAAa,GAAoC,wBAAwB,CAAC;IAC5E,IAAI,GAAgB,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa,CAAC;IAC9E,MAAM,GAAyB,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC5D,MAAM,GAA6B,MAAM,CAAC,IAAI,QAAQ,EAAE;+EAAC,CAAC;IACnE,IAAI,GAAuB,IAAI,CAAC;IAChC,SAAS,GAAa,IAAI,QAAQ,EAAE,CAAC;IACrC,UAAU,GAAa,IAAI,QAAQ,EAAE,CAAC;IAE9B,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU,CAAC;IACjC,IAAI,GAAG,KAAK,CAAa,UAAU,CAAC,MAAM;6EAAC,CAAC;IAC5C,SAAS,GAAG,MAAM,EAAQ,CAAC;IAExB,QAAQ,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,UAAU,CAAC,MAAM;iFAAC,CAAC;IAC9E,OAAO,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,UAAU,CAAC,KAAK;gFAAC,CAAC;IAC5E,WAAW,GAA4B,MAAM,CAAC,KAAK;oFAAC,CAAC;IACrD,aAAa,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,CAAC,CAAC,wBAAwB,CAAC,mBAAmB;sFAAC,CAAC;IAChK,gBAAgB,GAAoB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,WAAW,EAAE;yFAAC,CAAC;IACzF,WAAW,GAA0B,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI;oFAAC,CAAC;IAEzM;QACE,MAAM,OAAO,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAC5D,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE;YAChC,OAAO,CAAC,UAAU,EAAE,CAAC;YACrB,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;QACH,eAAe,CAAC,GAAG,EAAE;YACnB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;YACzB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;gBACrB,OAAO;YACT,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC3B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,aAA4B,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;IACL,CAAC;IAES,eAAe;QACvB,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC;IAES,SAAS,CAAC,KAAmB;QACrC,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,aAAa,IAAI,IAAI,CAAC,gBAAgB,EAAE,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAE,KAAK,CAAC,MAAkB,CAAC,OAAO,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,CAAC;YACzM,OAAO;QACT,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QAC5D,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,WAAW,CAAC,KAAK,CAAC,aAA4B,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QACjK,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;IAES,OAAO,CAAC,KAAY;QAC5B,IAAI,KAAK,CAAC,gBAAgB;YACxB,OAAO;QACT,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC;IAEO,MAAM,CAAC,KAAmB;QAChC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzJ,CAAC;IAEO,UAAU;QAChB,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IAChD,CAAC;IAEO,OAAO;QACb,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEO,IAAI;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAc,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;IACrF,CAAC;IAEO,UAAU;QAChB,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;YAC1B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAChD,CAAC;IAEO,MAAM,CAAC,MAAgB;QAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAiB,CAAC;QACxC,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAI,IAAI,CAAC,aAA6B,CAAC,qBAAqB,EAAE,CAAC;QACzE,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC9C,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACxC,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACtC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;QAC5B,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,GAAG,GAAG,GAAG,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC;QACpG,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC;QACxK,OAAO,IAAI,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5B,CAAC;uGA7FU,eAAe;2FAAf,eAAe,ylBChC5B,mpCA0BA,wvGDHY,mBAAmB,2MAAE,gBAAgB;;2FASpC,eAAe;kBAb3B,SAAS;+BACE,YAAY,WAGb,CAAC,mBAAmB,EAAE,gBAAgB,CAAC,QAC1C;wBACJ,2BAA2B,EAAE,YAAY;wBACzC,0BAA0B,EAAE,WAAW;wBACvC,8BAA8B,EAAE,oBAAoB;wBACpD,mBAAmB,EAAE,eAAe;wBACpC,kBAAkB,EAAE,iBAAiB;qBACtC"}
|
|
@@ -33,10 +33,10 @@ export class DiffCodeDirective {
|
|
|
33
33
|
onCleanup(this.diffHighlights.add(this.codeText, this.changes()));
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
37
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.
|
|
36
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DiffCodeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
37
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.6", type: DiffCodeDirective, isStandalone: true, selector: "[nolDiffCode]", inputs: { tokens: { classPropertyName: "tokens", publicName: "nolDiffCode", isSignal: true, isRequired: true, transformFunction: null }, text: { classPropertyName: "text", publicName: "nolDiffCodeText", isSignal: true, isRequired: true, transformFunction: null }, changes: { classPropertyName: "changes", publicName: "nolDiffCodeChanges", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DiffCodeDirective, decorators: [{
|
|
40
40
|
type: Directive,
|
|
41
41
|
args: [{
|
|
42
42
|
selector: "[nolDiffCode]"
|
|
@@ -367,10 +367,10 @@ export class DiffViewComponent {
|
|
|
367
367
|
next.add(id);
|
|
368
368
|
return next;
|
|
369
369
|
}
|
|
370
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
371
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.5", type: DiffViewComponent, isStandalone: true, selector: "nol-diff-view", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, wrapped: { classPropertyName: "wrapped", publicName: "wrapped", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, canOpenFiles: { classPropertyName: "canOpenFiles", publicName: "canOpenFiles", isSignal: true, isRequired: false, transformFunction: null }, reviews: { classPropertyName: "reviews", publicName: "reviews", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, revealed: { classPropertyName: "revealed", publicName: "revealed", isSignal: true, isRequired: false, transformFunction: null }, collapseLimit: { classPropertyName: "collapseLimit", publicName: "collapseLimit", isSignal: true, isRequired: false, transformFunction: null }, hasShortcuts: { classPropertyName: "hasShortcuts", publicName: "hasShortcuts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { layout: "layoutChange", wrapped: "wrappedChange", collapsed: "collapsedChange", revealed: "revealedChange", reviewRequested: "reviewRequested", fileOpenRequested: "fileOpenRequested", contextRequested: "contextRequested", fileExpanded: "fileExpanded", lineCommentRequested: "lineCommentRequested" }, host: { attributes: { "role": "region" }, listeners: { "keydown": "runShortcut($event)" }, properties: { "attr.aria-label": "label()", "attr.aria-keyshortcuts": "hasShortcuts() ? keyShortcuts : null", "class.nol-diff-view-wrapped": "wrapped()", "class.nol-diff-view-side-by-side": "isSideBySide()", "class.nol-diff-view-opens-files": "canOpenFiles()" }, classAttribute: "nol-diff-view" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"nol-diff-view-bar\" nolToolbar [nolToolbarLabel]=\"partResources.diffViewActionsLabel\">\n <button type=\"button\" nol-icon-button nolToolbarItem class=\"nol-diff-view-layout\" data-nol-resizes-row [icon]=\"partResources.diffSideBySideGlyph\" [label]=\"partResources.diffSideBySideLabel\" [pressed]=\"isSideBySide()\"\n [nolTooltip]=\"partResources.diffSideBySideLabel\" (click)=\"toggleLayout()\"></button>\n <button type=\"button\" nol-icon-button nolToolbarItem class=\"nol-diff-view-wrap\" data-nol-resizes-row [icon]=\"resources.wordWrapGlyph\" [label]=\"resources.wordWrapLabel\" [pressed]=\"wrapped()\"\n [nolTooltip]=\"resources.wordWrapLabel\" (click)=\"toggleWrap()\"></button>\n</div>\n@for (file of files(); track file.id; let fileIndex = $index) {\n @let isOpen = !collapsed().has(file.id);\n @let fileState = fileStateOf(file);\n <section class=\"nol-diff-file\" [attr.aria-labelledby]=\"id + '-file-' + fileIndex\">\n <div class=\"nol-diff-file-header\">\n <button type=\"button\" class=\"nol-diff-file-toggle\" data-nol-resizes-row [id]=\"id + '-file-' + fileIndex\" [attr.aria-expanded]=\"isOpen\" (click)=\"toggleFile(file)\">\n <span class=\"nol-diff-file-twistie material-symbols-rounded\" aria-hidden=\"true\">{{ resources.twistieGlyph }}</span>\n <span class=\"nol-diff-file-path\" data-truncates>{{ file.oldPath === null ? file.path : partResources.formatDiffRename(file.oldPath, file.path) }}</span>\n <span class=\"nol-diff-file-status\">{{ partResources.diffStatusTexts[file.status] }}</span>\n <span class=\"nol-diff-file-counts\" aria-hidden=\"true\">\n <nol-chip [kind]=\"chipKinds.Added\" [count]=\"file.additions\" />\n <nol-chip [kind]=\"chipKinds.Removed\" [count]=\"file.deletions\" />\n </span>\n <span class=\"nol-diff-hidden\">{{ partResources.formatDiffCounts(file.additions, file.deletions) }}</span>\n </button>\n @if (fileState !== undecided) {\n <span class=\"nol-diff-review\">{{ partResources.formatDiffReviewText(fileState) }}</span>\n }\n @if (canOpenFiles()) {\n <button type=\"button\" nol-icon-button class=\"nol-diff-file-open\" [icon]=\"partResources.diffOpenFileGlyph\" [label]=\"partResources.diffOpenFileLabel\" [nolTooltip]=\"partResources.diffOpenFileLabel\"\n (click)=\"openFile(file)\"></button>\n }\n @if (!readOnly()) {\n <ng-container *ngTemplateOutlet=\"reviewActions; context: { $implicit: file, hunk: null, subject: file.path }\"></ng-container>\n }\n </div>\n @if (isOpen) {\n <div class=\"nol-diff-file-body\">\n @if (file.content.stateText; as text) {\n <p class=\"nol-diff-note\" [class.nol-diff-note-pending]=\"file.content.isPending\">{{ text }}</p>\n }\n @if (isHeld(file)) {\n <div class=\"nol-diff-held\">\n <p class=\"nol-diff-note\">{{ partResources.diffHeldText }}</p>\n <button type=\"button\" nol-button class=\"nol-diff-load\" data-nol-resizes-row [variant]=\"secondary\" (click)=\"reveal(file)\">{{ partResources.diffLoadLabel }}</button>\n </div>\n } @else {\n @for (hunk of file.content.hunks; track hunk.id; let hunkIndex = $index, isLast = $last) {\n @let hunkLabel = partResources.formatDiffHunkLabel(hunkIndex + 1, file.content.hunks.length);\n @let hunkState = reviewOf(file).hunkState(hunk.id);\n <div class=\"nol-diff-hunk\" role=\"group\" [attr.aria-label]=\"hunkLabel\">\n <div class=\"nol-diff-hunk-header\">\n <button type=\"button\" nol-icon-button class=\"nol-diff-expand\" data-nol-resizes-row [icon]=\"partResources.diffExpandGlyphs[directions.Up]\" [label]=\"partResources.diffExpandLabels[directions.Up]\"\n [nolTooltip]=\"partResources.diffExpandLabels[directions.Up]\" (click)=\"expand(file, hunk, directions.Up)\"></button>\n <span class=\"nol-diff-hunk-range\" aria-hidden=\"true\">{{ partResources.formatDiffHunkRange(hunk.oldStart, hunk.oldLength, hunk.newStart, hunk.newLength) }} {{ hunk.section }}</span>\n @if (hunkState !== undecided) {\n <span class=\"nol-diff-review\">{{ partResources.diffReviewTexts[hunkState] }}</span>\n }\n @if (!readOnly()) {\n <ng-container *ngTemplateOutlet=\"reviewActions; context: { $implicit: file, hunk, subject: hunkLabel }\"></ng-container>\n }\n </div>\n <div class=\"nol-diff-hunk-lines\" #lines [attr.aria-keyshortcuts]=\"lineKeys()\">\n @if (isSideBySide()) {\n @for (pair of pairsOf(hunk); track $index) {\n <div class=\"nol-diff-pair\">\n @if (pair.oldLine; as line) {\n <ng-container *ngTemplateOutlet=\"cell; context: { $implicit: line, side: sides.Old, file, hunk, lines }\"></ng-container>\n } @else {\n <div class=\"nol-diff-filler\"></div>\n }\n @if (pair.newLine; as line) {\n <ng-container *ngTemplateOutlet=\"cell; context: { $implicit: line, side: sides.New, file, hunk, lines }\"></ng-container>\n } @else {\n <div class=\"nol-diff-filler\"></div>\n }\n </div>\n }\n } @else {\n @for (line of hunk.lines; track $index) {\n <ng-container *ngTemplateOutlet=\"cell; context: { $implicit: line, side: line.side, file, hunk, lines }\"></ng-container>\n }\n }\n </div>\n @if (isLast) {\n <button type=\"button\" nol-icon-button class=\"nol-diff-expand nol-diff-expand-down\" data-nol-resizes-row [icon]=\"partResources.diffExpandGlyphs[directions.Down]\"\n [label]=\"partResources.diffExpandLabels[directions.Down]\" [nolTooltip]=\"partResources.diffExpandLabels[directions.Down]\" (click)=\"expand(file, hunk, directions.Down)\"></button>\n }\n </div>\n }\n }\n </div>\n }\n </section>\n} @empty {\n <p class=\"nol-diff-note nol-diff-empty\">{{ partResources.diffEmptyText }}</p>\n}\n\n<ng-template #reviewActions let-file let-hunk=\"hunk\" let-subject=\"subject\">\n <div class=\"nol-diff-actions\" nolToolbar [nolToolbarLabel]=\"partResources.formatDiffActionsLabel(subject)\">\n <button type=\"button\" nol-toolbar-button nolToolbarItem class=\"nol-diff-action\" [label]=\"partResources.diffAcceptLabel\" [icon]=\"partResources.diffAcceptGlyph\" [isShowingLabel]=\"true\"\n (click)=\"review(file, hunk, states.Accepted)\"></button>\n <button type=\"button\" nol-toolbar-button nolToolbarItem class=\"nol-diff-action\" [label]=\"partResources.diffRejectLabel\" [icon]=\"partResources.diffRejectGlyph\" [isShowingLabel]=\"true\"\n (click)=\"review(file, hunk, states.Rejected)\"></button>\n </div>\n</ng-template>\n\n<ng-template #cell let-line let-side=\"side\" let-file=\"file\" let-hunk=\"hunk\" let-lines=\"lines\">\n <div class=\"nol-diff-cell\" [class]=\"kindClassOf(line)\" [class.nol-diff-cell-changed]=\"line.kind !== contextKind\"\n (focusin)=\"activate($event, lines)\" (keydown)=\"handleCellKey($event, lines, file, line, side)\">\n <button type=\"button\" class=\"nol-diff-comment material-symbols-rounded\" tabindex=\"-1\" aria-hidden=\"true\" [nolTooltip]=\"partResources.diffCommentLabel\"\n (click)=\"comment(file, line, side)\"><span>{{ partResources.diffCommentGlyph }}</span></button>\n @if (isSideBySide()) {\n <span class=\"nol-diff-number\" aria-hidden=\"true\" (click)=\"openLine(file, line, side)\">{{ line.numberOn(side) }}</span>\n } @else {\n @for (numberSide of numberSides; track numberSide) {\n @if (line.hasNumberOn(numberSide)) {\n <span class=\"nol-diff-number\" aria-hidden=\"true\" (click)=\"openLine(file, line, numberSide)\">{{ line.numberOn(numberSide) }}</span>\n } @else {\n <span class=\"nol-diff-number\" aria-hidden=\"true\"></span>\n }\n }\n }\n <span class=\"nol-diff-sign\" aria-hidden=\"true\">{{ signOf(line) }}</span>\n <span class=\"nol-diff-text\"><span class=\"nol-diff-hidden\">{{ nameOf(line, side) }} </span><span class=\"nol-diff-code\" [nolDiffCode]=\"tokensOf(line, side)\" [nolDiffCodeText]=\"line.text\" [nolDiffCodeChanges]=\"changesOf(hunk, line)\"></span></span>\n </div>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-diff-view {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n color: var(--nol-text);\n}\n\n.nol-diff-view-bar {\n display: flex;\n justify-content: flex-end;\n}\n\n.nol-diff-file {\n min-width: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-code);\n}\n\n.nol-diff-file-header,\n.nol-diff-hunk-header {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n min-height: var(--nol-code-header-height);\n padding-inline: var(--nol-space-2);\n background-color: var(--nol-code-header);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n}\n\n.nol-diff-file-toggle {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: 0;\n border: none;\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.nol-diff-file-toggle:is(:focus-visible, [data-nol-state=\"Focus\"]),\n.nol-diff-cell:is(:focus-visible, [data-nol-state=\"Focus\"]) {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(0px - var(--nol-border-width));\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-diff-file-twistie {\n flex: none;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n}\n\n.nol-diff-file-toggle[aria-expanded=\"true\"] .nol-diff-file-twistie {\n rotate: 90deg;\n}\n\n.nol-diff-file-toggle:dir(rtl)[aria-expanded=\"false\"] .nol-diff-file-twistie {\n rotate: 180deg;\n}\n\n.nol-diff-file-path {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-diff-file-status,\n.nol-diff-hunk-range,\n.nol-diff-review {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.nol-diff-file-counts {\n display: flex;\n flex: none;\n gap: var(--nol-space-1);\n}\n\n.nol-diff-hunk-range {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-family: var(--nol-font-mono);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-diff-actions {\n display: flex;\n flex: none;\n}\n\n.nol-diff-file-body {\n border-top: var(--nol-border-width) solid var(--nol-card-border);\n}\n\n.nol-diff-hunk + .nol-diff-hunk {\n border-top: var(--nol-border-width) solid var(--nol-card-border);\n}\n\n.nol-diff-note {\n margin: 0;\n padding: var(--nol-space-2) var(--nol-space-3);\n color: var(--nol-text-muted);\n}\n\n.nol-diff-held {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--nol-space-2);\n padding-inline-end: var(--nol-space-3);\n}\n\n.nol-diff-hunk-lines {\n --nol-diff-gutter: max(1.5rem, var(--nol-pointer-target));\n\n display: grid;\n grid-template-columns: var(--nol-diff-gutter) auto auto auto minmax(max-content, 1fr);\n padding-block: max(0px, (var(--nol-pointer-target) - 1lh) / 2);\n overflow-x: auto;\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n}\n\n.nol-diff-view-side-by-side .nol-diff-hunk-lines {\n grid-template-columns: var(--nol-diff-gutter) auto auto minmax(max-content, 1fr) var(--nol-diff-gutter) auto auto minmax(max-content, 1fr);\n}\n\n.nol-diff-view-wrapped .nol-diff-hunk-lines {\n grid-template-columns: var(--nol-diff-gutter) auto auto auto minmax(0, 1fr);\n}\n\n.nol-diff-view-wrapped.nol-diff-view-side-by-side .nol-diff-hunk-lines {\n grid-template-columns: var(--nol-diff-gutter) auto auto minmax(0, 1fr) var(--nol-diff-gutter) auto auto minmax(0, 1fr);\n}\n\n.nol-diff-pair {\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n}\n\n.nol-diff-cell {\n position: relative;\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n}\n\n.nol-diff-pair > .nol-diff-cell,\n.nol-diff-filler {\n grid-column: span 4;\n}\n\n.nol-diff-cell-added {\n background-color: var(--nol-added-background);\n}\n\n.nol-diff-cell-removed {\n background-color: var(--nol-removed-background);\n}\n\n.nol-diff-number {\n min-width: 2ch;\n padding-inline: var(--nol-space-2) var(--nol-space-1);\n color: var(--nol-text-muted);\n text-align: end;\n user-select: none;\n}\n\n.nol-diff-view-opens-files .nol-diff-number:not(:empty) {\n cursor: pointer;\n}\n\n.nol-diff-sign {\n padding-inline-end: var(--nol-space-1);\n white-space: pre;\n user-select: none;\n}\n\n.nol-diff-cell-added .nol-diff-sign {\n color: var(--nol-added);\n}\n\n.nol-diff-cell-removed .nol-diff-sign {\n color: var(--nol-removed);\n}\n\n.nol-diff-text {\n padding-inline-end: var(--nol-space-3);\n white-space: pre;\n}\n\n.nol-diff-view-wrapped .nol-diff-text {\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.nol-diff-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n user-select: none;\n}\n\n.nol-diff-comment {\n position: relative;\n z-index: 1;\n display: grid;\n place-items: center;\n align-self: start;\n box-sizing: border-box;\n width: 100%;\n height: var(--nol-pointer-target);\n margin-block: calc((1lh - var(--nol-pointer-target)) / 2);\n padding: 0;\n border: none;\n background: none;\n color: var(--nol-button-text);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n cursor: pointer;\n visibility: hidden;\n user-select: none;\n}\n\n.nol-diff-comment::before {\n content: \"\";\n grid-area: 1 / 1;\n width: 1lh;\n height: 1lh;\n border-radius: var(--nol-radius-small);\n background-color: var(--nol-button);\n}\n\n.nol-diff-comment > span {\n grid-area: 1 / 1;\n}\n\n.nol-diff-cell:is(:hover, [data-nol-state=\"Hover\"], :focus-visible, [data-nol-state=\"Focus\"]) > .nol-diff-comment {\n visibility: visible;\n}\n\n.nol-diff-code::highlight(nol-code-comment) {\n color: var(--nol-code-comment);\n}\n\n.nol-diff-code::highlight(nol-code-keyword) {\n color: var(--nol-code-keyword);\n}\n\n.nol-diff-code::highlight(nol-code-control) {\n color: var(--nol-code-control);\n}\n\n.nol-diff-code::highlight(nol-code-string) {\n color: var(--nol-code-string);\n}\n\n.nol-diff-code::highlight(nol-code-number) {\n color: var(--nol-code-number);\n}\n\n.nol-diff-code::highlight(nol-code-type) {\n color: var(--nol-code-type);\n}\n\n.nol-diff-code::highlight(nol-code-function) {\n color: var(--nol-code-function);\n}\n\n.nol-diff-code::highlight(nol-code-variable) {\n color: var(--nol-code-variable);\n}\n\n.nol-diff-code::highlight(nol-code-regex) {\n color: var(--nol-code-regex);\n}\n\n.nol-diff-code::highlight(nol-code-meta) {\n color: var(--nol-code-meta);\n}\n\n.nol-diff-code::highlight(nol-diff-added-change) {\n background-color: var(--nol-added-change);\n}\n\n.nol-diff-code::highlight(nol-diff-removed-change) {\n background-color: var(--nol-removed-change);\n}\n\n@media (forced-colors: active) {\n .nol-diff-cell-added,\n .nol-diff-cell-removed {\n background-color: Canvas;\n }\n\n .nol-diff-code {\n color: CanvasText;\n forced-color-adjust: none;\n }\n\n .nol-diff-code::selection {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .nol-diff-code::highlight(nol-code-comment),\n .nol-diff-code::highlight(nol-code-keyword),\n .nol-diff-code::highlight(nol-code-control),\n .nol-diff-code::highlight(nol-code-string),\n .nol-diff-code::highlight(nol-code-number),\n .nol-diff-code::highlight(nol-code-type),\n .nol-diff-code::highlight(nol-code-function),\n .nol-diff-code::highlight(nol-code-variable),\n .nol-diff-code::highlight(nol-code-regex),\n .nol-diff-code::highlight(nol-code-meta) {\n color: CanvasText;\n }\n\n .nol-diff-code::highlight(nol-diff-added-change),\n .nol-diff-code::highlight(nol-diff-removed-change) {\n background-color: Canvas;\n text-decoration: underline solid 2px Highlight;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: ChipComponent, selector: "nol-chip", inputs: ["kind", "count"] }, { kind: "directive", type: DiffCodeDirective, selector: "[nolDiffCode]", inputs: ["nolDiffCode", "nolDiffCodeText", "nolDiffCodeChanges"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "busy"] }, { kind: "directive", type: ToolbarDirective, selector: "[nolToolbar]", inputs: ["nolToolbarOrientation", "nolToolbarLabel", "nolToolbarWrap", "nolToolbarStart", "nolToolbarItems"] }, { kind: "directive", type: ToolbarItemDirective, selector: "[nolToolbarItem]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
370
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DiffViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
371
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: DiffViewComponent, isStandalone: true, selector: "nol-diff-view", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, wrapped: { classPropertyName: "wrapped", publicName: "wrapped", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, canOpenFiles: { classPropertyName: "canOpenFiles", publicName: "canOpenFiles", isSignal: true, isRequired: false, transformFunction: null }, reviews: { classPropertyName: "reviews", publicName: "reviews", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, revealed: { classPropertyName: "revealed", publicName: "revealed", isSignal: true, isRequired: false, transformFunction: null }, collapseLimit: { classPropertyName: "collapseLimit", publicName: "collapseLimit", isSignal: true, isRequired: false, transformFunction: null }, hasShortcuts: { classPropertyName: "hasShortcuts", publicName: "hasShortcuts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { layout: "layoutChange", wrapped: "wrappedChange", collapsed: "collapsedChange", revealed: "revealedChange", reviewRequested: "reviewRequested", fileOpenRequested: "fileOpenRequested", contextRequested: "contextRequested", fileExpanded: "fileExpanded", lineCommentRequested: "lineCommentRequested" }, host: { attributes: { "role": "region" }, listeners: { "keydown": "runShortcut($event)" }, properties: { "attr.aria-label": "label()", "attr.aria-keyshortcuts": "hasShortcuts() ? keyShortcuts : null", "class.nol-diff-view-wrapped": "wrapped()", "class.nol-diff-view-side-by-side": "isSideBySide()", "class.nol-diff-view-opens-files": "canOpenFiles()" }, classAttribute: "nol-diff-view" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"nol-diff-view-bar\" nolToolbar [nolToolbarLabel]=\"partResources.diffViewActionsLabel\">\n <button type=\"button\" nol-icon-button nolToolbarItem class=\"nol-diff-view-layout\" data-nol-resizes-row [icon]=\"partResources.diffSideBySideGlyph\" [label]=\"partResources.diffSideBySideLabel\" [pressed]=\"isSideBySide()\"\n [nolTooltip]=\"partResources.diffSideBySideLabel\" (click)=\"toggleLayout()\"></button>\n <button type=\"button\" nol-icon-button nolToolbarItem class=\"nol-diff-view-wrap\" data-nol-resizes-row [icon]=\"resources.wordWrapGlyph\" [label]=\"resources.wordWrapLabel\" [pressed]=\"wrapped()\"\n [nolTooltip]=\"resources.wordWrapLabel\" (click)=\"toggleWrap()\"></button>\n</div>\n@for (file of files(); track file.id; let fileIndex = $index) {\n @let isOpen = !collapsed().has(file.id);\n @let fileState = fileStateOf(file);\n <section class=\"nol-diff-file\" [attr.aria-labelledby]=\"id + '-file-' + fileIndex\">\n <div class=\"nol-diff-file-header\">\n <button type=\"button\" class=\"nol-diff-file-toggle\" data-nol-resizes-row [id]=\"id + '-file-' + fileIndex\" [attr.aria-expanded]=\"isOpen\" (click)=\"toggleFile(file)\">\n <span class=\"nol-diff-file-twistie material-symbols-rounded\" aria-hidden=\"true\">{{ resources.twistieGlyph }}</span>\n <span class=\"nol-diff-file-path\" data-truncates>{{ file.oldPath === null ? file.path : partResources.formatDiffRename(file.oldPath, file.path) }}</span>\n <span class=\"nol-diff-file-status\">{{ partResources.diffStatusTexts[file.status] }}</span>\n <span class=\"nol-diff-file-counts\" aria-hidden=\"true\">\n <nol-chip [kind]=\"chipKinds.Added\" [count]=\"file.additions\" />\n <nol-chip [kind]=\"chipKinds.Removed\" [count]=\"file.deletions\" />\n </span>\n <span class=\"nol-diff-hidden\">{{ partResources.formatDiffCounts(file.additions, file.deletions) }}</span>\n </button>\n @if (fileState !== undecided) {\n <span class=\"nol-diff-review\">{{ partResources.formatDiffReviewText(fileState) }}</span>\n }\n @if (canOpenFiles()) {\n <button type=\"button\" nol-icon-button class=\"nol-diff-file-open\" [icon]=\"partResources.diffOpenFileGlyph\" [label]=\"partResources.diffOpenFileLabel\" [nolTooltip]=\"partResources.diffOpenFileLabel\"\n (click)=\"openFile(file)\"></button>\n }\n @if (!readOnly()) {\n <ng-container *ngTemplateOutlet=\"reviewActions; context: { $implicit: file, hunk: null, subject: file.path }\"></ng-container>\n }\n </div>\n @if (isOpen) {\n <div class=\"nol-diff-file-body\">\n @if (file.content.stateText; as text) {\n <p class=\"nol-diff-note\" [class.nol-diff-note-pending]=\"file.content.isPending\">{{ text }}</p>\n }\n @if (isHeld(file)) {\n <div class=\"nol-diff-held\">\n <p class=\"nol-diff-note\">{{ partResources.diffHeldText }}</p>\n <button type=\"button\" nol-button class=\"nol-diff-load\" data-nol-resizes-row [variant]=\"secondary\" (click)=\"reveal(file)\">{{ partResources.diffLoadLabel }}</button>\n </div>\n } @else {\n @for (hunk of file.content.hunks; track hunk.id; let hunkIndex = $index, isLast = $last) {\n @let hunkLabel = partResources.formatDiffHunkLabel(hunkIndex + 1, file.content.hunks.length);\n @let hunkState = reviewOf(file).hunkState(hunk.id);\n <div class=\"nol-diff-hunk\" role=\"group\" [attr.aria-label]=\"hunkLabel\">\n <div class=\"nol-diff-hunk-header\">\n <button type=\"button\" nol-icon-button class=\"nol-diff-expand\" data-nol-resizes-row [icon]=\"partResources.diffExpandGlyphs[directions.Up]\" [label]=\"partResources.diffExpandLabels[directions.Up]\"\n [nolTooltip]=\"partResources.diffExpandLabels[directions.Up]\" (click)=\"expand(file, hunk, directions.Up)\"></button>\n <span class=\"nol-diff-hunk-range\" aria-hidden=\"true\">{{ partResources.formatDiffHunkRange(hunk.oldStart, hunk.oldLength, hunk.newStart, hunk.newLength) }} {{ hunk.section }}</span>\n @if (hunkState !== undecided) {\n <span class=\"nol-diff-review\">{{ partResources.diffReviewTexts[hunkState] }}</span>\n }\n @if (!readOnly()) {\n <ng-container *ngTemplateOutlet=\"reviewActions; context: { $implicit: file, hunk, subject: hunkLabel }\"></ng-container>\n }\n </div>\n <div class=\"nol-diff-hunk-lines\" #lines [attr.aria-keyshortcuts]=\"lineKeys()\">\n @if (isSideBySide()) {\n @for (pair of pairsOf(hunk); track $index) {\n <div class=\"nol-diff-pair\">\n @if (pair.oldLine; as line) {\n <ng-container *ngTemplateOutlet=\"cell; context: { $implicit: line, side: sides.Old, file, hunk, lines }\"></ng-container>\n } @else {\n <div class=\"nol-diff-filler\"></div>\n }\n @if (pair.newLine; as line) {\n <ng-container *ngTemplateOutlet=\"cell; context: { $implicit: line, side: sides.New, file, hunk, lines }\"></ng-container>\n } @else {\n <div class=\"nol-diff-filler\"></div>\n }\n </div>\n }\n } @else {\n @for (line of hunk.lines; track $index) {\n <ng-container *ngTemplateOutlet=\"cell; context: { $implicit: line, side: line.side, file, hunk, lines }\"></ng-container>\n }\n }\n </div>\n @if (isLast) {\n <button type=\"button\" nol-icon-button class=\"nol-diff-expand nol-diff-expand-down\" data-nol-resizes-row [icon]=\"partResources.diffExpandGlyphs[directions.Down]\"\n [label]=\"partResources.diffExpandLabels[directions.Down]\" [nolTooltip]=\"partResources.diffExpandLabels[directions.Down]\" (click)=\"expand(file, hunk, directions.Down)\"></button>\n }\n </div>\n }\n }\n </div>\n }\n </section>\n} @empty {\n <p class=\"nol-diff-note nol-diff-empty\">{{ partResources.diffEmptyText }}</p>\n}\n\n<ng-template #reviewActions let-file let-hunk=\"hunk\" let-subject=\"subject\">\n <div class=\"nol-diff-actions\" nolToolbar [nolToolbarLabel]=\"partResources.formatDiffActionsLabel(subject)\">\n <button type=\"button\" nol-toolbar-button nolToolbarItem class=\"nol-diff-action\" [label]=\"partResources.diffAcceptLabel\" [icon]=\"partResources.diffAcceptGlyph\" [isShowingLabel]=\"true\"\n (click)=\"review(file, hunk, states.Accepted)\"></button>\n <button type=\"button\" nol-toolbar-button nolToolbarItem class=\"nol-diff-action\" [label]=\"partResources.diffRejectLabel\" [icon]=\"partResources.diffRejectGlyph\" [isShowingLabel]=\"true\"\n (click)=\"review(file, hunk, states.Rejected)\"></button>\n </div>\n</ng-template>\n\n<ng-template #cell let-line let-side=\"side\" let-file=\"file\" let-hunk=\"hunk\" let-lines=\"lines\">\n <div class=\"nol-diff-cell\" [class]=\"kindClassOf(line)\" [class.nol-diff-cell-changed]=\"line.kind !== contextKind\"\n (focusin)=\"activate($event, lines)\" (keydown)=\"handleCellKey($event, lines, file, line, side)\">\n <button type=\"button\" class=\"nol-diff-comment material-symbols-rounded\" tabindex=\"-1\" aria-hidden=\"true\" [nolTooltip]=\"partResources.diffCommentLabel\"\n (click)=\"comment(file, line, side)\"><span>{{ partResources.diffCommentGlyph }}</span></button>\n @if (isSideBySide()) {\n <span class=\"nol-diff-number\" aria-hidden=\"true\" (click)=\"openLine(file, line, side)\">{{ line.numberOn(side) }}</span>\n } @else {\n @for (numberSide of numberSides; track numberSide) {\n @if (line.hasNumberOn(numberSide)) {\n <span class=\"nol-diff-number\" aria-hidden=\"true\" (click)=\"openLine(file, line, numberSide)\">{{ line.numberOn(numberSide) }}</span>\n } @else {\n <span class=\"nol-diff-number\" aria-hidden=\"true\"></span>\n }\n }\n }\n <span class=\"nol-diff-sign\" aria-hidden=\"true\">{{ signOf(line) }}</span>\n <span class=\"nol-diff-text\"><span class=\"nol-diff-hidden\">{{ nameOf(line, side) }} </span><span class=\"nol-diff-code\" [nolDiffCode]=\"tokensOf(line, side)\" [nolDiffCodeText]=\"line.text\" [nolDiffCodeChanges]=\"changesOf(hunk, line)\"></span></span>\n </div>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-diff-view {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n color: var(--nol-text);\n}\n\n.nol-diff-view-bar {\n display: flex;\n justify-content: flex-end;\n}\n\n.nol-diff-file {\n min-width: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-code);\n}\n\n.nol-diff-file-header,\n.nol-diff-hunk-header {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n min-height: var(--nol-code-header-height);\n padding-inline: var(--nol-space-2);\n background-color: var(--nol-code-header);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n}\n\n.nol-diff-file-toggle {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: 0;\n border: none;\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.nol-diff-file-toggle:is(:focus-visible, [data-nol-state=\"Focus\"]),\n.nol-diff-cell:is(:focus-visible, [data-nol-state=\"Focus\"]) {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(0px - var(--nol-border-width));\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-diff-file-twistie {\n flex: none;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n}\n\n.nol-diff-file-toggle[aria-expanded=\"true\"] .nol-diff-file-twistie {\n rotate: 90deg;\n}\n\n.nol-diff-file-toggle:dir(rtl)[aria-expanded=\"false\"] .nol-diff-file-twistie {\n rotate: 180deg;\n}\n\n.nol-diff-file-path {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-diff-file-status,\n.nol-diff-hunk-range,\n.nol-diff-review {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.nol-diff-file-counts {\n display: flex;\n flex: none;\n gap: var(--nol-space-1);\n}\n\n.nol-diff-hunk-range {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-family: var(--nol-font-mono);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-diff-actions {\n display: flex;\n flex: none;\n}\n\n.nol-diff-file-body {\n border-top: var(--nol-border-width) solid var(--nol-card-border);\n}\n\n.nol-diff-hunk + .nol-diff-hunk {\n border-top: var(--nol-border-width) solid var(--nol-card-border);\n}\n\n.nol-diff-note {\n margin: 0;\n padding: var(--nol-space-2) var(--nol-space-3);\n color: var(--nol-text-muted);\n}\n\n.nol-diff-held {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--nol-space-2);\n padding-inline-end: var(--nol-space-3);\n}\n\n.nol-diff-hunk-lines {\n --nol-diff-gutter: max(1.5rem, var(--nol-pointer-target));\n\n display: grid;\n grid-template-columns: var(--nol-diff-gutter) auto auto auto minmax(max-content, 1fr);\n padding-block: max(0px, (var(--nol-pointer-target) - 1lh) / 2);\n overflow-x: auto;\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n}\n\n.nol-diff-view-side-by-side .nol-diff-hunk-lines {\n grid-template-columns: var(--nol-diff-gutter) auto auto minmax(max-content, 1fr) var(--nol-diff-gutter) auto auto minmax(max-content, 1fr);\n}\n\n.nol-diff-view-wrapped .nol-diff-hunk-lines {\n grid-template-columns: var(--nol-diff-gutter) auto auto auto minmax(0, 1fr);\n}\n\n.nol-diff-view-wrapped.nol-diff-view-side-by-side .nol-diff-hunk-lines {\n grid-template-columns: var(--nol-diff-gutter) auto auto minmax(0, 1fr) var(--nol-diff-gutter) auto auto minmax(0, 1fr);\n}\n\n.nol-diff-pair {\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n}\n\n.nol-diff-cell {\n position: relative;\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n}\n\n.nol-diff-pair > .nol-diff-cell,\n.nol-diff-filler {\n grid-column: span 4;\n}\n\n.nol-diff-cell-added {\n background-color: var(--nol-added-background);\n}\n\n.nol-diff-cell-removed {\n background-color: var(--nol-removed-background);\n}\n\n.nol-diff-number {\n min-width: 2ch;\n padding-inline: var(--nol-space-2) var(--nol-space-1);\n color: var(--nol-text-muted);\n text-align: end;\n user-select: none;\n}\n\n.nol-diff-view-opens-files .nol-diff-number:not(:empty) {\n cursor: pointer;\n}\n\n.nol-diff-sign {\n padding-inline-end: var(--nol-space-1);\n white-space: pre;\n user-select: none;\n}\n\n.nol-diff-cell-added .nol-diff-sign {\n color: var(--nol-added);\n}\n\n.nol-diff-cell-removed .nol-diff-sign {\n color: var(--nol-removed);\n}\n\n.nol-diff-text {\n padding-inline-end: var(--nol-space-3);\n white-space: pre;\n}\n\n.nol-diff-view-wrapped .nol-diff-text {\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.nol-diff-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n user-select: none;\n}\n\n.nol-diff-comment {\n position: relative;\n z-index: 1;\n display: grid;\n place-items: center;\n align-self: start;\n box-sizing: border-box;\n width: 100%;\n height: var(--nol-pointer-target);\n margin-block: calc((1lh - var(--nol-pointer-target)) / 2);\n padding: 0;\n border: none;\n background: none;\n color: var(--nol-button-text);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n cursor: pointer;\n visibility: hidden;\n user-select: none;\n}\n\n.nol-diff-comment::before {\n content: \"\";\n grid-area: 1 / 1;\n width: 1lh;\n height: 1lh;\n border-radius: var(--nol-radius-small);\n background-color: var(--nol-button);\n}\n\n.nol-diff-comment > span {\n grid-area: 1 / 1;\n}\n\n.nol-diff-cell:is(:hover, [data-nol-state=\"Hover\"], :focus-visible, [data-nol-state=\"Focus\"]) > .nol-diff-comment {\n visibility: visible;\n}\n\n.nol-diff-code::highlight(nol-code-comment) {\n color: var(--nol-code-comment);\n}\n\n.nol-diff-code::highlight(nol-code-keyword) {\n color: var(--nol-code-keyword);\n}\n\n.nol-diff-code::highlight(nol-code-control) {\n color: var(--nol-code-control);\n}\n\n.nol-diff-code::highlight(nol-code-string) {\n color: var(--nol-code-string);\n}\n\n.nol-diff-code::highlight(nol-code-number) {\n color: var(--nol-code-number);\n}\n\n.nol-diff-code::highlight(nol-code-type) {\n color: var(--nol-code-type);\n}\n\n.nol-diff-code::highlight(nol-code-function) {\n color: var(--nol-code-function);\n}\n\n.nol-diff-code::highlight(nol-code-variable) {\n color: var(--nol-code-variable);\n}\n\n.nol-diff-code::highlight(nol-code-regex) {\n color: var(--nol-code-regex);\n}\n\n.nol-diff-code::highlight(nol-code-meta) {\n color: var(--nol-code-meta);\n}\n\n.nol-diff-code::highlight(nol-diff-added-change) {\n background-color: var(--nol-added-change);\n}\n\n.nol-diff-code::highlight(nol-diff-removed-change) {\n background-color: var(--nol-removed-change);\n}\n\n@media (forced-colors: active) {\n .nol-diff-cell-added,\n .nol-diff-cell-removed {\n background-color: Canvas;\n }\n\n .nol-diff-code {\n color: CanvasText;\n forced-color-adjust: none;\n }\n\n .nol-diff-code::selection {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .nol-diff-code::highlight(nol-code-comment),\n .nol-diff-code::highlight(nol-code-keyword),\n .nol-diff-code::highlight(nol-code-control),\n .nol-diff-code::highlight(nol-code-string),\n .nol-diff-code::highlight(nol-code-number),\n .nol-diff-code::highlight(nol-code-type),\n .nol-diff-code::highlight(nol-code-function),\n .nol-diff-code::highlight(nol-code-variable),\n .nol-diff-code::highlight(nol-code-regex),\n .nol-diff-code::highlight(nol-code-meta) {\n color: CanvasText;\n }\n\n .nol-diff-code::highlight(nol-diff-added-change),\n .nol-diff-code::highlight(nol-diff-removed-change) {\n background-color: Canvas;\n text-decoration: underline solid 2px Highlight;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: ChipComponent, selector: "nol-chip", inputs: ["kind", "count"] }, { kind: "directive", type: DiffCodeDirective, selector: "[nolDiffCode]", inputs: ["nolDiffCode", "nolDiffCodeText", "nolDiffCodeChanges"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "busy"] }, { kind: "directive", type: ToolbarDirective, selector: "[nolToolbar]", inputs: ["nolToolbarOrientation", "nolToolbarLabel", "nolToolbarWrap", "nolToolbarStart", "nolToolbarItems"] }, { kind: "directive", type: ToolbarItemDirective, selector: "[nolToolbarItem]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
372
372
|
}
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DiffViewComponent, decorators: [{
|
|
374
374
|
type: Component,
|
|
375
375
|
args: [{ selector: "nol-diff-view", imports: [ButtonComponent, ChipComponent, DiffCodeDirective, IconButtonComponent, NgTemplateOutlet, ToolbarButtonComponent, ToolbarDirective, ToolbarItemDirective, TooltipDirective], encapsulation: ViewEncapsulation.None, host: {
|
|
376
376
|
"class": "nol-diff-view",
|
|
@@ -17,10 +17,10 @@ export class DockingGuideComponent {
|
|
|
17
17
|
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
18
18
|
chosen = input(false, /* @ts-ignore */
|
|
19
19
|
...(ngDevMode ? [{ debugName: "chosen" }] : /* istanbul ignore next */ []));
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
21
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DockingGuideComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.6", type: DockingGuideComponent, isStandalone: true, selector: "nol-docking-guide", inputs: { direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: true, transformFunction: null }, chosen: { classPropertyName: "chosen", publicName: "chosen", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "img" }, properties: { "attr.aria-label": "label()", "attr.data-direction": "direction()", "class.nol-docking-guide-chosen": "chosen()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<span class=\"nol-docking-guide-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ glyph() }}</span>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n place-items: center;\n box-sizing: border-box;\n width: var(--nol-docking-guide);\n height: var(--nol-docking-guide);\n border: var(--nol-border-width) solid var(--nol-widget-border);\n border-radius: var(--nol-radius-small);\n background-color: var(--nol-raised);\n color: var(--nol-icon-color);\n}\n\n:host(.nol-docking-guide-chosen) {\n border-color: var(--nol-button);\n background-color: var(--nol-button);\n color: var(--nol-button-text);\n\n @media (forced-colors: active) {\n border-color: Highlight;\n background-color: Highlight;\n color: HighlightText;\n forced-color-adjust: none;\n }\n}\n\n.nol-docking-guide-glyph {\n font-size: var(--nol-docking-guide-icon);\n}\n"] });
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DockingGuideComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
25
|
args: [{ selector: "nol-docking-guide", host: {
|
|
26
26
|
"role": "img",
|
|
@@ -19,10 +19,10 @@ export class DockingPlateComponent {
|
|
|
19
19
|
];
|
|
20
20
|
chosen = input(null, /* @ts-ignore */
|
|
21
21
|
...(ngDevMode ? [{ debugName: "chosen" }] : /* istanbul ignore next */ []));
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DockingPlateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: DockingPlateComponent, isStandalone: true, selector: "nol-docking-plate", inputs: { chosen: { classPropertyName: "chosen", publicName: "chosen", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@for (direction of directions; track direction) {\n <nol-docking-guide [direction]=\"direction\" [chosen]=\"direction === chosen()\" [class]=\"'nol-docking-plate-' + direction\" />\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n grid-template-areas:\n \". Top .\"\n \"Left Center Right\"\n \". Bottom .\";\n gap: var(--nol-docking-plate-gap);\n padding: var(--nol-docking-plate-gap);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n box-shadow: var(--nol-shadow-large);\n}\n\n.nol-docking-plate-Top {\n grid-area: Top;\n}\n\n.nol-docking-plate-Left {\n grid-area: Left;\n}\n\n.nol-docking-plate-Center {\n grid-area: Center;\n}\n\n.nol-docking-plate-Right {\n grid-area: Right;\n}\n\n.nol-docking-plate-Bottom {\n grid-area: Bottom;\n}\n"], dependencies: [{ kind: "component", type: DockingGuideComponent, selector: "nol-docking-guide", inputs: ["direction", "chosen"] }] });
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DockingPlateComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{ selector: "nol-docking-plate", imports: [DockingGuideComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@for (direction of directions; track direction) {\n <nol-docking-guide [direction]=\"direction\" [chosen]=\"direction === chosen()\" [class]=\"'nol-docking-plate-' + direction\" />\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n grid-template-areas:\n \". Top .\"\n \"Left Center Right\"\n \". Bottom .\";\n gap: var(--nol-docking-plate-gap);\n padding: var(--nol-docking-plate-gap);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n box-shadow: var(--nol-shadow-large);\n}\n\n.nol-docking-plate-Top {\n grid-area: Top;\n}\n\n.nol-docking-plate-Left {\n grid-area: Left;\n}\n\n.nol-docking-plate-Center {\n grid-area: Center;\n}\n\n.nol-docking-plate-Right {\n grid-area: Right;\n}\n\n.nol-docking-plate-Bottom {\n grid-area: Bottom;\n}\n"] }]
|
|
28
28
|
}], propDecorators: { chosen: [{ type: i0.Input, args: [{ isSignal: true, alias: "chosen", required: false }] }] } });
|
|
@@ -12,10 +12,10 @@ export class FieldMessageComponent {
|
|
|
12
12
|
kinds = FieldMessageKind;
|
|
13
13
|
kind = input(FieldMessageKind.Error, /* @ts-ignore */
|
|
14
14
|
...(ngDevMode ? [{ debugName: "kind" }] : /* istanbul ignore next */ []));
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
16
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: FieldMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.6", type: FieldMessageComponent, isStandalone: true, selector: "nol-field-message", inputs: { kind: { classPropertyName: "kind", publicName: "kind", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "kind() === kinds.Error ? 'alert' : null", "class.nol-field-message-note": "kind() === kinds.Note" }, classAttribute: "nol-field-message" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<ng-content />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n margin-top: var(--nol-space-1);\n color: var(--nol-error);\n overflow-wrap: anywhere;\n}\n\n:host(.nol-field-message-note) {\n color: var(--nol-text-muted);\n}\n"] });
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: FieldMessageComponent, decorators: [{
|
|
19
19
|
type: Component,
|
|
20
20
|
args: [{ selector: "nol-field-message", host: {
|
|
21
21
|
"class": "nol-field-message",
|
|
@@ -26,10 +26,10 @@ export class FileBadgeComponent {
|
|
|
26
26
|
...(ngDevMode ? [{ debugName: "fileName" }] : /* istanbul ignore next */ []));
|
|
27
27
|
isFolder = input(false, /* @ts-ignore */
|
|
28
28
|
...(ngDevMode ? [{ debugName: "isFolder" }] : /* istanbul ignore next */ []));
|
|
29
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
30
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
29
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: FileBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: FileBadgeComponent, isStandalone: true, selector: "nol-file-badge", inputs: { fileName: { classPropertyName: "fileName", publicName: "fileName", isSignal: true, isRequired: true, transformFunction: null }, isFolder: { classPropertyName: "isFolder", publicName: "isFolder", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "class.nol-file-badge-letters": "mark().shape === shapes.Letters", "class.nol-file-badge-tile": "mark().shape === shapes.Tile", "style.--nol-file-badge-fill": "fill()", "style.--nol-file-badge-color": "color()" }, classAttribute: "nol-file-badge" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n@if (mark().shape === shapes.Letters) {\n {{ mark().text }}\n} @else {\n <span class=\"nol-file-badge-glyph material-symbols-rounded\">{{ mark().text }}</span>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: var(--nol-icon);\n height: var(--nol-icon);\n box-sizing: border-box;\n overflow: hidden;\n color: var(--nol-file-badge-color);\n line-height: 0;\n pointer-events: none;\n user-select: none;\n}\n\n:host(.nol-file-badge-letters),\n:host(.nol-file-badge-tile) {\n border-radius: var(--nol-radius-small);\n background-color: var(--nol-file-badge-fill);\n\n @media (forced-colors: active) {\n border: var(--nol-border-width) solid CanvasText;\n }\n}\n\n:host(.nol-file-badge-letters) {\n font-family: var(--nol-font-mono);\n font-size: var(--nol-file-badge-text);\n font-weight: var(--nol-weight-emphasis);\n line-height: 1;\n white-space: nowrap;\n}\n\n.nol-file-badge-glyph {\n display: contents;\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n:host(.nol-file-badge-tile) .nol-file-badge-glyph {\n font-size: var(--nol-file-badge-glyph);\n}\n"] });
|
|
31
31
|
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: FileBadgeComponent, decorators: [{
|
|
33
33
|
type: Component,
|
|
34
34
|
args: [{ selector: "nol-file-badge", host: {
|
|
35
35
|
"class": "nol-file-badge",
|
|
@@ -19,10 +19,10 @@ export class GalleryAvatarComponent {
|
|
|
19
19
|
filledColors = [null, ...AvatarColors.all];
|
|
20
20
|
avatarColor = GalleryResources.avatarColor;
|
|
21
21
|
avatarImage = GalleryResources.avatarImage;
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: GalleryAvatarComponent, isStandalone: true, selector: "nol-gallery-avatar", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-gallery-specimen [name]=\"text.avatar\" noHover noFocus noLongText>\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-avatar [name]=\"text.feedAuthors[0]\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarInitials\"><nol-avatar [name]=\"text.messageReviewer\" [initials]=\"text.messageReviewerInitials\" [color]=\"avatarColor\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarFromKey\">\n @for (keyed of text.avatarKeys; track keyed.key) {\n <nol-avatar [name]=\"keyed.name\" [colorKey]=\"keyed.key\" />\n }\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarImageCaption\"><nol-avatar [name]=\"text.feedAuthors[1]\" [image]=\"avatarImage\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarSmall\"><nol-avatar [name]=\"text.feedAuthors[2]\" [size]=\"avatarSizes.Small\" [color]=\"avatarColor\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarIcon\"><nol-avatar [name]=\"text.messageReviewer\" [initials]=\"text.messageReviewerInitials\" [size]=\"avatarSizes.Icon\" [color]=\"avatarColor\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarIconButton\"><nol-avatar [name]=\"text.messageReviewer\" [initials]=\"text.messageReviewerInitials\" [size]=\"avatarSizes.IconButton\" [color]=\"avatarColor\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarUnavailable\"><nol-avatar [name]=\"text.feedAuthors[3]\" [unavailable]=\"true\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarFilled\">\n @for (color of filledColors; track color) {\n <nol-avatar [name]=\"color ?? text.avatarFilledDefault\" [size]=\"avatarSizes.Small\" [filledColor]=\"color\" />\n }\n </nol-gallery-cell>\n</nol-gallery-specimen>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "nol-avatar", inputs: ["name", "image", "initials", "color", "colorKey", "size", "label", "decorative", "unavailable", "filled", "filledColor"] }, { kind: "component", type: GalleryCellComponent, selector: "nol-gallery-cell", inputs: ["caption"] }, { kind: "component", type: GallerySpecimenComponent, selector: "nol-gallery-specimen", inputs: ["name", "size"] }] });
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryAvatarComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{ selector: "nol-gallery-avatar", imports: [AvatarComponent, GalleryCellComponent, GallerySpecimenComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-gallery-specimen [name]=\"text.avatar\" noHover noFocus noLongText>\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-avatar [name]=\"text.feedAuthors[0]\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarInitials\"><nol-avatar [name]=\"text.messageReviewer\" [initials]=\"text.messageReviewerInitials\" [color]=\"avatarColor\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarFromKey\">\n @for (keyed of text.avatarKeys; track keyed.key) {\n <nol-avatar [name]=\"keyed.name\" [colorKey]=\"keyed.key\" />\n }\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarImageCaption\"><nol-avatar [name]=\"text.feedAuthors[1]\" [image]=\"avatarImage\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarSmall\"><nol-avatar [name]=\"text.feedAuthors[2]\" [size]=\"avatarSizes.Small\" [color]=\"avatarColor\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarIcon\"><nol-avatar [name]=\"text.messageReviewer\" [initials]=\"text.messageReviewerInitials\" [size]=\"avatarSizes.Icon\" [color]=\"avatarColor\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarIconButton\"><nol-avatar [name]=\"text.messageReviewer\" [initials]=\"text.messageReviewerInitials\" [size]=\"avatarSizes.IconButton\" [color]=\"avatarColor\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarUnavailable\"><nol-avatar [name]=\"text.feedAuthors[3]\" [unavailable]=\"true\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.avatarFilled\">\n @for (color of filledColors; track color) {\n <nol-avatar [name]=\"color ?? text.avatarFilledDefault\" [size]=\"avatarSizes.Small\" [filledColor]=\"color\" />\n }\n </nol-gallery-cell>\n</nol-gallery-specimen>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"] }]
|
|
28
28
|
}] });
|
|
@@ -20,10 +20,10 @@ export class GalleryButtonComponent {
|
|
|
20
20
|
text = GalleryResources.text;
|
|
21
21
|
variants = ButtonVariant;
|
|
22
22
|
buttonSizes = ButtonSize;
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
24
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.5", type: GalleryButtonComponent, isStandalone: true, selector: "nol-gallery-button", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-gallery-specimen [name]=\"text.button\">\n <nol-gallery-cell [caption]=\"text.primary\"><button type=\"button\" nol-button>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.hover\"><button type=\"button\" nol-button nolGalleryHover>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.secondary\"><button type=\"button\" nol-button [variant]=\"variants.Secondary\">{{ text.secondary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.secondaryHover\"><button type=\"button\" nol-button nolGalleryHover [variant]=\"variants.Secondary\">{{ text.secondary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.disabled\"><button type=\"button\" nol-button disabled>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.secondaryDisabled\"><button type=\"button\" nol-button [variant]=\"variants.Secondary\" disabled>{{ text.secondary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><button type=\"button\" nol-button nolGalleryFocus>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textButton\"><button type=\"button\" nol-button [variant]=\"variants.Text\">{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textHover\"><button type=\"button\" nol-button nolGalleryHover [variant]=\"variants.Text\">{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textDisabled\"><button type=\"button\" nol-button [variant]=\"variants.Text\" disabled>{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textFocus\"><button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Text\">{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerLook\"><button type=\"button\" nol-button [danger]=\"true\">{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerHover\"><button type=\"button\" nol-button nolGalleryHover [danger]=\"true\">{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerDisabled\"><button type=\"button\" nol-button [danger]=\"true\" disabled>{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerFocus\"><button type=\"button\" nol-button nolGalleryFocus [danger]=\"true\">{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.busy\"><button type=\"button\" nol-button [busy]=\"true\">{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlay\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayHover\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button nolGalleryHover [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayDisabled\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\" disabled>{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayFocus\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayRow\">\n <span class=\"nol-gallery-picture nol-gallery-picture-tools nol-gallery-picture-wide\">\n <span class=\"nol-gallery-picture-row\">\n <button type=\"button\" nol-icon-button [overlay]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomOut\" [label]=\"text.zoomOutLabel\"></button>\n <button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button>\n <button type=\"button\" nol-icon-button [overlay]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomIn\" [label]=\"text.zoomInLabel\"></button>\n </span>\n </span>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayBackdrop\">\n <span class=\"nol-gallery-picture nol-gallery-picture-tools nol-gallery-picture-wide nol-gallery-backdrop\">\n <span class=\"nol-gallery-picture-row\">\n <button type=\"button\" nol-icon-button [overlay]=\"true\" [backdrop]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomOut\" [label]=\"text.zoomOutLabel\"></button>\n <button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\" [backdrop]=\"true\">{{ text.zoomPercent }}</button>\n <button type=\"button\" nol-icon-button nolGalleryHover [overlay]=\"true\" [backdrop]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomIn\" [label]=\"text.zoomInLabel\"></button>\n </span>\n </span>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.outlined\">\n <button type=\"button\" nol-button [variant]=\"variants.Outlined\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphShield }}</span>{{ text.outlinedLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.outlinedDisabled\">\n <button type=\"button\" nol-button [variant]=\"variants.Outlined\" disabled><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphShield }}</span>{{ text.outlinedLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.outlinedFocus\">\n <button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Outlined\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphShield }}</span>{{ text.outlinedLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.compact\">\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" [size]=\"buttonSizes.Compact\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphStop }}</span>{{ text.stopLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.compactFocus\">\n <button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Secondary\" [size]=\"buttonSizes.Compact\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphStop }}</span>{{ text.stopLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.compactRow\">\n <span class=\"nol-gallery-compact-row\">\n <button type=\"button\" nol-icon-button [icon]=\"text.glyphCopy\" [label]=\"text.copyLabel\"></button>\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" [size]=\"buttonSizes.Compact\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphStop }}</span>{{ text.stopLabel }}</button>\n </span>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\"><button type=\"button\" nol-button class=\"nol-gallery-narrow\" [nolTooltip]=\"text.longText\" [nolTooltipTruncated]=\"true\">{{ text.longText }}</button></nol-gallery-cell>\n</nol-gallery-specimen>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-table {\n width: min(36rem, 100%);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-table-holder {\n width: 100%;\n box-sizing: border-box;\n margin-block: calc(var(--nol-space-1) * -1);\n padding: var(--nol-space-1) var(--nol-space-2);\n overflow-x: auto;\n}\n\n.nol-gallery-bar {\n width: 12.5rem;\n}\n\n.nol-gallery-invalid,\n.nol-gallery-noted {\n display: grid;\n}\n\n.nol-gallery-table-actions {\n display: flex;\n gap: var(--nol-space-2);\n justify-content: flex-end;\n}\n\n.nol-gallery-picture {\n position: relative;\n display: block;\n width: 7rem;\n height: 4.5rem;\n border-radius: var(--nol-radius-large);\n background: linear-gradient(135deg, var(--nol-panel), var(--nol-text));\n}\n\n.nol-gallery-picture-action {\n position: absolute;\n inset-block-start: 0.125rem;\n inset-inline-end: 0.125rem;\n}\n\n.nol-gallery-picture-tools {\n display: grid;\n place-items: end center;\n box-sizing: border-box;\n padding-block-end: 0.25rem;\n}\n\n.nol-gallery-picture-wide {\n width: 10rem;\n}\n\n.nol-gallery-backdrop {\n background: var(--nol-overlay);\n}\n\n.nol-gallery-picture-row,\n.nol-gallery-compact-row {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n}\n\n.nol-gallery-attachment {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-attachment);\n color: var(--nol-text);\n}\n\n.nol-gallery-attachment-glyph {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n}\n\n.nol-gallery-attachment-size {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GalleryCellComponent, selector: "nol-gallery-cell", inputs: ["caption"] }, { kind: "component", type: GallerySpecimenComponent, selector: "nol-gallery-specimen", inputs: ["name", "size"] }, { kind: "directive", type: GalleryStateDirective, selector: "[nolGalleryHover], [nolGalleryFocus]", inputs: ["nolGalleryHover", "nolGalleryFocus"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: GalleryButtonComponent, isStandalone: true, selector: "nol-gallery-button", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-gallery-specimen [name]=\"text.button\">\n <nol-gallery-cell [caption]=\"text.primary\"><button type=\"button\" nol-button>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.hover\"><button type=\"button\" nol-button nolGalleryHover>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.secondary\"><button type=\"button\" nol-button [variant]=\"variants.Secondary\">{{ text.secondary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.secondaryHover\"><button type=\"button\" nol-button nolGalleryHover [variant]=\"variants.Secondary\">{{ text.secondary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.disabled\"><button type=\"button\" nol-button disabled>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.secondaryDisabled\"><button type=\"button\" nol-button [variant]=\"variants.Secondary\" disabled>{{ text.secondary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><button type=\"button\" nol-button nolGalleryFocus>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textButton\"><button type=\"button\" nol-button [variant]=\"variants.Text\">{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textHover\"><button type=\"button\" nol-button nolGalleryHover [variant]=\"variants.Text\">{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textDisabled\"><button type=\"button\" nol-button [variant]=\"variants.Text\" disabled>{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textFocus\"><button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Text\">{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerLook\"><button type=\"button\" nol-button [danger]=\"true\">{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerHover\"><button type=\"button\" nol-button nolGalleryHover [danger]=\"true\">{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerDisabled\"><button type=\"button\" nol-button [danger]=\"true\" disabled>{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerFocus\"><button type=\"button\" nol-button nolGalleryFocus [danger]=\"true\">{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.busy\"><button type=\"button\" nol-button [busy]=\"true\">{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlay\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayHover\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button nolGalleryHover [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayDisabled\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\" disabled>{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayFocus\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayRow\">\n <span class=\"nol-gallery-picture nol-gallery-picture-tools nol-gallery-picture-wide\">\n <span class=\"nol-gallery-picture-row\">\n <button type=\"button\" nol-icon-button [overlay]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomOut\" [label]=\"text.zoomOutLabel\"></button>\n <button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button>\n <button type=\"button\" nol-icon-button [overlay]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomIn\" [label]=\"text.zoomInLabel\"></button>\n </span>\n </span>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayBackdrop\">\n <span class=\"nol-gallery-picture nol-gallery-picture-tools nol-gallery-picture-wide nol-gallery-backdrop\">\n <span class=\"nol-gallery-picture-row\">\n <button type=\"button\" nol-icon-button [overlay]=\"true\" [backdrop]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomOut\" [label]=\"text.zoomOutLabel\"></button>\n <button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\" [backdrop]=\"true\">{{ text.zoomPercent }}</button>\n <button type=\"button\" nol-icon-button nolGalleryHover [overlay]=\"true\" [backdrop]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomIn\" [label]=\"text.zoomInLabel\"></button>\n </span>\n </span>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.outlined\">\n <button type=\"button\" nol-button [variant]=\"variants.Outlined\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphShield }}</span>{{ text.outlinedLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.outlinedDisabled\">\n <button type=\"button\" nol-button [variant]=\"variants.Outlined\" disabled><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphShield }}</span>{{ text.outlinedLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.outlinedFocus\">\n <button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Outlined\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphShield }}</span>{{ text.outlinedLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.compact\">\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" [size]=\"buttonSizes.Compact\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphStop }}</span>{{ text.stopLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.compactFocus\">\n <button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Secondary\" [size]=\"buttonSizes.Compact\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphStop }}</span>{{ text.stopLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.compactRow\">\n <span class=\"nol-gallery-compact-row\">\n <button type=\"button\" nol-icon-button [icon]=\"text.glyphCopy\" [label]=\"text.copyLabel\"></button>\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" [size]=\"buttonSizes.Compact\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphStop }}</span>{{ text.stopLabel }}</button>\n </span>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\"><button type=\"button\" nol-button class=\"nol-gallery-narrow\" [nolTooltip]=\"text.longText\" [nolTooltipTruncated]=\"true\">{{ text.longText }}</button></nol-gallery-cell>\n</nol-gallery-specimen>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-table {\n width: min(36rem, 100%);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-table-holder {\n width: 100%;\n box-sizing: border-box;\n margin-block: calc(var(--nol-space-1) * -1);\n padding: var(--nol-space-1) var(--nol-space-2);\n overflow-x: auto;\n}\n\n.nol-gallery-bar {\n width: 12.5rem;\n}\n\n.nol-gallery-invalid,\n.nol-gallery-noted {\n display: grid;\n}\n\n.nol-gallery-table-actions {\n display: flex;\n gap: var(--nol-space-2);\n justify-content: flex-end;\n}\n\n.nol-gallery-picture {\n position: relative;\n display: block;\n width: 7rem;\n height: 4.5rem;\n border-radius: var(--nol-radius-large);\n background: linear-gradient(135deg, var(--nol-panel), var(--nol-text));\n}\n\n.nol-gallery-picture-action {\n position: absolute;\n inset-block-start: 0.125rem;\n inset-inline-end: 0.125rem;\n}\n\n.nol-gallery-picture-tools {\n display: grid;\n place-items: end center;\n box-sizing: border-box;\n padding-block-end: 0.25rem;\n}\n\n.nol-gallery-picture-wide {\n width: 10rem;\n}\n\n.nol-gallery-backdrop {\n background: var(--nol-overlay);\n}\n\n.nol-gallery-picture-row,\n.nol-gallery-compact-row {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n}\n\n.nol-gallery-attachment {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-attachment);\n color: var(--nol-text);\n}\n\n.nol-gallery-attachment-glyph {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n}\n\n.nol-gallery-attachment-size {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GalleryCellComponent, selector: "nol-gallery-cell", inputs: ["caption"] }, { kind: "component", type: GallerySpecimenComponent, selector: "nol-gallery-specimen", inputs: ["name", "size"] }, { kind: "directive", type: GalleryStateDirective, selector: "[nolGalleryHover], [nolGalleryFocus]", inputs: ["nolGalleryHover", "nolGalleryFocus"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryButtonComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
28
|
args: [{ selector: "nol-gallery-button", imports: [ButtonComponent, GalleryCellComponent, GallerySpecimenComponent, GalleryStateDirective, IconButtonComponent, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-gallery-specimen [name]=\"text.button\">\n <nol-gallery-cell [caption]=\"text.primary\"><button type=\"button\" nol-button>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.hover\"><button type=\"button\" nol-button nolGalleryHover>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.secondary\"><button type=\"button\" nol-button [variant]=\"variants.Secondary\">{{ text.secondary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.secondaryHover\"><button type=\"button\" nol-button nolGalleryHover [variant]=\"variants.Secondary\">{{ text.secondary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.disabled\"><button type=\"button\" nol-button disabled>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.secondaryDisabled\"><button type=\"button\" nol-button [variant]=\"variants.Secondary\" disabled>{{ text.secondary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><button type=\"button\" nol-button nolGalleryFocus>{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textButton\"><button type=\"button\" nol-button [variant]=\"variants.Text\">{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textHover\"><button type=\"button\" nol-button nolGalleryHover [variant]=\"variants.Text\">{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textDisabled\"><button type=\"button\" nol-button [variant]=\"variants.Text\" disabled>{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.textFocus\"><button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Text\">{{ text.textButton }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerLook\"><button type=\"button\" nol-button [danger]=\"true\">{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerHover\"><button type=\"button\" nol-button nolGalleryHover [danger]=\"true\">{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerDisabled\"><button type=\"button\" nol-button [danger]=\"true\" disabled>{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.dangerFocus\"><button type=\"button\" nol-button nolGalleryFocus [danger]=\"true\">{{ text.deleteLabel }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.busy\"><button type=\"button\" nol-button [busy]=\"true\">{{ text.primary }}</button></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlay\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayHover\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button nolGalleryHover [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayDisabled\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\" disabled>{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayFocus\"><span class=\"nol-gallery-picture nol-gallery-picture-tools\"><button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button></span></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayRow\">\n <span class=\"nol-gallery-picture nol-gallery-picture-tools nol-gallery-picture-wide\">\n <span class=\"nol-gallery-picture-row\">\n <button type=\"button\" nol-icon-button [overlay]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomOut\" [label]=\"text.zoomOutLabel\"></button>\n <button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\">{{ text.zoomPercent }}</button>\n <button type=\"button\" nol-icon-button [overlay]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomIn\" [label]=\"text.zoomInLabel\"></button>\n </span>\n </span>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.overlayBackdrop\">\n <span class=\"nol-gallery-picture nol-gallery-picture-tools nol-gallery-picture-wide nol-gallery-backdrop\">\n <span class=\"nol-gallery-picture-row\">\n <button type=\"button\" nol-icon-button [overlay]=\"true\" [backdrop]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomOut\" [label]=\"text.zoomOutLabel\"></button>\n <button type=\"button\" nol-button [variant]=\"variants.Text\" [overlay]=\"true\" [backdrop]=\"true\">{{ text.zoomPercent }}</button>\n <button type=\"button\" nol-icon-button nolGalleryHover [overlay]=\"true\" [backdrop]=\"true\" [buttonHeight]=\"true\" [icon]=\"text.glyphZoomIn\" [label]=\"text.zoomInLabel\"></button>\n </span>\n </span>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.outlined\">\n <button type=\"button\" nol-button [variant]=\"variants.Outlined\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphShield }}</span>{{ text.outlinedLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.outlinedDisabled\">\n <button type=\"button\" nol-button [variant]=\"variants.Outlined\" disabled><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphShield }}</span>{{ text.outlinedLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.outlinedFocus\">\n <button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Outlined\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphShield }}</span>{{ text.outlinedLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.compact\">\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" [size]=\"buttonSizes.Compact\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphStop }}</span>{{ text.stopLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.compactFocus\">\n <button type=\"button\" nol-button nolGalleryFocus [variant]=\"variants.Secondary\" [size]=\"buttonSizes.Compact\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphStop }}</span>{{ text.stopLabel }}</button>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.compactRow\">\n <span class=\"nol-gallery-compact-row\">\n <button type=\"button\" nol-icon-button [icon]=\"text.glyphCopy\" [label]=\"text.copyLabel\"></button>\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" [size]=\"buttonSizes.Compact\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ text.glyphStop }}</span>{{ text.stopLabel }}</button>\n </span>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\"><button type=\"button\" nol-button class=\"nol-gallery-narrow\" [nolTooltip]=\"text.longText\" [nolTooltipTruncated]=\"true\">{{ text.longText }}</button></nol-gallery-cell>\n</nol-gallery-specimen>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-table {\n width: min(36rem, 100%);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-table-holder {\n width: 100%;\n box-sizing: border-box;\n margin-block: calc(var(--nol-space-1) * -1);\n padding: var(--nol-space-1) var(--nol-space-2);\n overflow-x: auto;\n}\n\n.nol-gallery-bar {\n width: 12.5rem;\n}\n\n.nol-gallery-invalid,\n.nol-gallery-noted {\n display: grid;\n}\n\n.nol-gallery-table-actions {\n display: flex;\n gap: var(--nol-space-2);\n justify-content: flex-end;\n}\n\n.nol-gallery-picture {\n position: relative;\n display: block;\n width: 7rem;\n height: 4.5rem;\n border-radius: var(--nol-radius-large);\n background: linear-gradient(135deg, var(--nol-panel), var(--nol-text));\n}\n\n.nol-gallery-picture-action {\n position: absolute;\n inset-block-start: 0.125rem;\n inset-inline-end: 0.125rem;\n}\n\n.nol-gallery-picture-tools {\n display: grid;\n place-items: end center;\n box-sizing: border-box;\n padding-block-end: 0.25rem;\n}\n\n.nol-gallery-picture-wide {\n width: 10rem;\n}\n\n.nol-gallery-backdrop {\n background: var(--nol-overlay);\n}\n\n.nol-gallery-picture-row,\n.nol-gallery-compact-row {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n}\n\n.nol-gallery-attachment {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-attachment);\n color: var(--nol-text);\n}\n\n.nol-gallery-attachment-glyph {\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n}\n\n.nol-gallery-attachment-size {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
29
29
|
}] });
|
|
@@ -13,10 +13,10 @@ import { GallerySpecimenComponent } from "./gallery-specimen.component.js";
|
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export class GalleryCardComponent {
|
|
15
15
|
text = GalleryResources.text;
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
17
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: GalleryCardComponent, isStandalone: true, selector: "nol-gallery-card", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-gallery-specimen [name]=\"text.card\" noHover noFocus>\n <nol-gallery-cell [caption]=\"text.defaultState\">\n <nol-card class=\"nol-gallery-content-card\"><strong>{{ text.cardTitle }}</strong><p class=\"nol-gallery-content-paragraph\">{{ text.cardBody }}</p></nol-card>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-card class=\"nol-gallery-narrow\">{{ text.cardLong }}</nol-card>\n </nol-gallery-cell>\n</nol-gallery-specimen>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"], dependencies: [{ kind: "component", type: CardComponent, selector: "nol-card" }, { kind: "component", type: GalleryCellComponent, selector: "nol-gallery-cell", inputs: ["caption"] }, { kind: "component", type: GallerySpecimenComponent, selector: "nol-gallery-specimen", inputs: ["name", "size"] }] });
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryCardComponent, decorators: [{
|
|
20
20
|
type: Component,
|
|
21
21
|
args: [{ selector: "nol-gallery-card", imports: [CardComponent, GalleryCellComponent, GallerySpecimenComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-gallery-specimen [name]=\"text.card\" noHover noFocus>\n <nol-gallery-cell [caption]=\"text.defaultState\">\n <nol-card class=\"nol-gallery-content-card\"><strong>{{ text.cardTitle }}</strong><p class=\"nol-gallery-content-paragraph\">{{ text.cardBody }}</p></nol-card>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-card class=\"nol-gallery-narrow\">{{ text.cardLong }}</nol-card>\n </nol-gallery-cell>\n</nol-gallery-specimen>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"] }]
|
|
22
22
|
}] });
|