@elementar-rt/components 0.6.55
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 +49 -0
- package/action-required/index.d.ts +13 -0
- package/alert/index.d.ts +51 -0
- package/announcement/index.d.ts +45 -0
- package/avatar/index.d.ts +67 -0
- package/block-loader/index.d.ts +21 -0
- package/block-state/index.d.ts +33 -0
- package/brand-colors/index.d.ts +27 -0
- package/breadcrumbs/index.d.ts +104 -0
- package/card-overlay/index.d.ts +20 -0
- package/carousel/index.d.ts +75 -0
- package/code-highlighter/index.d.ts +18 -0
- package/color-picker/index.d.ts +92 -0
- package/color-scheme/index.d.ts +44 -0
- package/command-bar/index.d.ts +28 -0
- package/comment-editor/index.d.ts +194 -0
- package/comparison-slider/index.d.ts +51 -0
- package/confirm/index.d.ts +35 -0
- package/content-fade/index.d.ts +17 -0
- package/cookie-popup/index.d.ts +41 -0
- package/core/index.d.ts +252 -0
- package/country-select/index.d.ts +76 -0
- package/crop/index.d.ts +59 -0
- package/currency-select/index.d.ts +78 -0
- package/dashboard/index.d.ts +48 -0
- package/data-view/index.d.ts +127 -0
- package/date-format-select/index.d.ts +56 -0
- package/divider/index.d.ts +13 -0
- package/drawer/index.d.ts +35 -0
- package/emoji-picker/index.d.ts +49 -0
- package/expand/index.d.ts +26 -0
- package/fesm2022/elementar-rt-components-action-required.mjs +30 -0
- package/fesm2022/elementar-rt-components-action-required.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-alert.mjs +139 -0
- package/fesm2022/elementar-rt-components-alert.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-announcement.mjs +73 -0
- package/fesm2022/elementar-rt-components-announcement.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-avatar.mjs +234 -0
- package/fesm2022/elementar-rt-components-avatar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-block-loader.mjs +54 -0
- package/fesm2022/elementar-rt-components-block-loader.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-block-state.mjs +75 -0
- package/fesm2022/elementar-rt-components-block-state.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-brand-colors.mjs +78 -0
- package/fesm2022/elementar-rt-components-brand-colors.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-breadcrumbs.mjs +213 -0
- package/fesm2022/elementar-rt-components-breadcrumbs.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-card-overlay.mjs +55 -0
- package/fesm2022/elementar-rt-components-card-overlay.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-carousel.mjs +605 -0
- package/fesm2022/elementar-rt-components-carousel.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-code-highlighter.mjs +57 -0
- package/fesm2022/elementar-rt-components-code-highlighter.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-color-picker.mjs +708 -0
- package/fesm2022/elementar-rt-components-color-picker.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-color-scheme.mjs +106 -0
- package/fesm2022/elementar-rt-components-color-scheme.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-command-bar.mjs +59 -0
- package/fesm2022/elementar-rt-components-command-bar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-comment-editor.mjs +1039 -0
- package/fesm2022/elementar-rt-components-comment-editor.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-comparison-slider.mjs +193 -0
- package/fesm2022/elementar-rt-components-comparison-slider.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-confirm.mjs +86 -0
- package/fesm2022/elementar-rt-components-confirm.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-content-fade.mjs +35 -0
- package/fesm2022/elementar-rt-components-content-fade.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-cookie-popup.mjs +109 -0
- package/fesm2022/elementar-rt-components-cookie-popup.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-core.mjs +837 -0
- package/fesm2022/elementar-rt-components-core.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-country-select.mjs +477 -0
- package/fesm2022/elementar-rt-components-country-select.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-crop.mjs +183 -0
- package/fesm2022/elementar-rt-components-crop.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-currency-select.mjs +384 -0
- package/fesm2022/elementar-rt-components-currency-select.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-dashboard.mjs +96 -0
- package/fesm2022/elementar-rt-components-dashboard.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-data-view.mjs +302 -0
- package/fesm2022/elementar-rt-components-data-view.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-date-format-select.mjs +136 -0
- package/fesm2022/elementar-rt-components-date-format-select.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-divider.mjs +31 -0
- package/fesm2022/elementar-rt-components-divider.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-drawer.mjs +131 -0
- package/fesm2022/elementar-rt-components-drawer.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-emoji-picker.mjs +249 -0
- package/fesm2022/elementar-rt-components-emoji-picker.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-expand.mjs +60 -0
- package/fesm2022/elementar-rt-components-expand.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-filter-builder.mjs +333 -0
- package/fesm2022/elementar-rt-components-filter-builder.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-AqEghjO_.mjs +123 -0
- package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-AqEghjO_.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-CUKmZGFq.mjs +22 -0
- package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-CUKmZGFq.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-DihIRWMt.mjs +40 -0
- package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-DihIRWMt.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-divider-content.component-CjlGcU3B.mjs +17 -0
- package/fesm2022/elementar-rt-components-form-renderer-divider-content.component-CjlGcU3B.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-image-content.component-0pL2Fk0H.mjs +17 -0
- package/fesm2022/elementar-rt-components-form-renderer-image-content.component-0pL2Fk0H.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-input-field.component-X2sKvj6J.mjs +33 -0
- package/fesm2022/elementar-rt-components-form-renderer-input-field.component-X2sKvj6J.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-DWXZAA3F.mjs +38 -0
- package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-DWXZAA3F.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-select-field.component-Cx9DZoD6.mjs +39 -0
- package/fesm2022/elementar-rt-components-form-renderer-select-field.component-Cx9DZoD6.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-text-content.component-BmFyUG06.mjs +24 -0
- package/fesm2022/elementar-rt-components-form-renderer-text-content.component-BmFyUG06.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-D9KmE049.mjs +37 -0
- package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-D9KmE049.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-BroP_Q4P.mjs +35 -0
- package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-BroP_Q4P.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-nGbtVi1_.mjs +22 -0
- package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-nGbtVi1_.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer.mjs +321 -0
- package/fesm2022/elementar-rt-components-form-renderer.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-gauge.mjs +50 -0
- package/fesm2022/elementar-rt-components-gauge.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-icon.mjs +62 -0
- package/fesm2022/elementar-rt-components-icon.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-image-resizer.mjs +159 -0
- package/fesm2022/elementar-rt-components-image-resizer.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-image-viewer.mjs +349 -0
- package/fesm2022/elementar-rt-components-image-viewer.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-incidents.mjs +259 -0
- package/fesm2022/elementar-rt-components-incidents.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-inline-text-edit.mjs +181 -0
- package/fesm2022/elementar-rt-components-inline-text-edit.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-input-mask.mjs +180 -0
- package/fesm2022/elementar-rt-components-input-mask.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-input-validator.mjs +24 -0
- package/fesm2022/elementar-rt-components-input-validator.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-kanban-board.mjs +156 -0
- package/fesm2022/elementar-rt-components-kanban-board.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-layout.mjs +188 -0
- package/fesm2022/elementar-rt-components-layout.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-logo.mjs +43 -0
- package/fesm2022/elementar-rt-components-logo.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-marquee.mjs +79 -0
- package/fesm2022/elementar-rt-components-marquee.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-micro-chart.mjs +950 -0
- package/fesm2022/elementar-rt-components-micro-chart.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-navigation.mjs +379 -0
- package/fesm2022/elementar-rt-components-navigation.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-notifications.mjs +190 -0
- package/fesm2022/elementar-rt-components-notifications.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-number-input.mjs +288 -0
- package/fesm2022/elementar-rt-components-number-input.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-overlay-scrollbar.mjs +455 -0
- package/fesm2022/elementar-rt-components-overlay-scrollbar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-overlay.mjs +112 -0
- package/fesm2022/elementar-rt-components-overlay.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-page-loading-bar.mjs +79 -0
- package/fesm2022/elementar-rt-components-page-loading-bar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-panel.mjs +105 -0
- package/fesm2022/elementar-rt-components-panel.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-password-strength.mjs +474 -0
- package/fesm2022/elementar-rt-components-password-strength.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-phone-input.mjs +637 -0
- package/fesm2022/elementar-rt-components-phone-input.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-pin-input.mjs +197 -0
- package/fesm2022/elementar-rt-components-pin-input.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-popover.mjs +262 -0
- package/fesm2022/elementar-rt-components-popover.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-radio-card.mjs +102 -0
- package/fesm2022/elementar-rt-components-radio-card.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-rail-nav.mjs +84 -0
- package/fesm2022/elementar-rt-components-rail-nav.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-resizable-container.mjs +69 -0
- package/fesm2022/elementar-rt-components-resizable-container.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-screen-loader.mjs +27 -0
- package/fesm2022/elementar-rt-components-screen-loader.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-scroll-spy.mjs +165 -0
- package/fesm2022/elementar-rt-components-scroll-spy.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-segmented.mjs +153 -0
- package/fesm2022/elementar-rt-components-segmented.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-side-panel.mjs +110 -0
- package/fesm2022/elementar-rt-components-side-panel.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-sidebar.mjs +423 -0
- package/fesm2022/elementar-rt-components-sidebar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-signature-pad.mjs +452 -0
- package/fesm2022/elementar-rt-components-signature-pad.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-skeleton.mjs +56 -0
- package/fesm2022/elementar-rt-components-skeleton.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-splash-screen.mjs +91 -0
- package/fesm2022/elementar-rt-components-splash-screen.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-stepper.mjs +194 -0
- package/fesm2022/elementar-rt-components-stepper.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-suggestions.mjs +76 -0
- package/fesm2022/elementar-rt-components-suggestions.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-tab-panel.mjs +270 -0
- package/fesm2022/elementar-rt-components-tab-panel.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-text-editor.mjs +1025 -0
- package/fesm2022/elementar-rt-components-text-editor.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-thumbnail-maker.mjs +214 -0
- package/fesm2022/elementar-rt-components-thumbnail-maker.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-timeline.mjs +122 -0
- package/fesm2022/elementar-rt-components-timeline.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-timezone-select.mjs +351 -0
- package/fesm2022/elementar-rt-components-timezone-select.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-upload.mjs +340 -0
- package/fesm2022/elementar-rt-components-upload.mjs.map +1 -0
- package/fesm2022/elementar-rt-components.mjs +6 -0
- package/fesm2022/elementar-rt-components.mjs.map +1 -0
- package/filter-builder/index.d.ts +107 -0
- package/form-renderer/index.d.ts +121 -0
- package/gauge/index.d.ts +21 -0
- package/icon/index.d.ts +17 -0
- package/image-resizer/index.d.ts +35 -0
- package/image-viewer/index.d.ts +63 -0
- package/incidents/index.d.ts +119 -0
- package/index.d.ts +2 -0
- package/inline-text-edit/index.d.ts +39 -0
- package/input-mask/index.d.ts +36 -0
- package/input-validator/index.d.ts +5 -0
- package/kanban-board/index.d.ts +68 -0
- package/layout/index.d.ts +75 -0
- package/logo/index.d.ts +21 -0
- package/marquee/index.d.ts +26 -0
- package/micro-chart/index.d.ts +193 -0
- package/navigation/index.d.ts +119 -0
- package/notifications/index.d.ts +84 -0
- package/number-input/index.d.ts +93 -0
- package/overlay/index.d.ts +12 -0
- package/overlay-scrollbar/index.d.ts +66 -0
- package/package.json +356 -0
- package/page-loading-bar/index.d.ts +20 -0
- package/panel/index.d.ts +43 -0
- package/password-strength/index.d.ts +109 -0
- package/phone-input/index.d.ts +94 -0
- package/pin-input/index.d.ts +48 -0
- package/popover/index.d.ts +75 -0
- package/radio-card/index.d.ts +37 -0
- package/rail-nav/index.d.ts +36 -0
- package/resizable-container/index.d.ts +21 -0
- package/screen-loader/index.d.ts +9 -0
- package/scroll-spy/index.d.ts +48 -0
- package/segmented/index.d.ts +54 -0
- package/side-panel/index.d.ts +42 -0
- package/sidebar/index.d.ts +143 -0
- package/signature-pad/index.d.ts +49 -0
- package/skeleton/index.d.ts +24 -0
- package/splash-screen/index.d.ts +31 -0
- package/stepper/index.d.ts +65 -0
- package/styles/_common.scss +776 -0
- package/styles/themes/cyan-orange.scss +41 -0
- package/styles/themes/default.scss +5 -0
- package/styles/themes/magenta-violet.scss +41 -0
- package/styles/themes/rose-red.scss +41 -0
- package/suggestions/index.d.ts +32 -0
- package/tab-panel/index.d.ts +96 -0
- package/text-editor/index.d.ts +191 -0
- package/thumbnail-maker/index.d.ts +35 -0
- package/timeline/index.d.ts +57 -0
- package/timezone-select/index.d.ts +72 -0
- package/upload/index.d.ts +134 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Component, inject, input, booleanAttribute, Directive, computed } from '@angular/core';
|
|
3
|
+
import { MatIconButton } from '@angular/material/button';
|
|
4
|
+
import { signalStore, withState, withMethods, patchState } from '@ngrx/signals';
|
|
5
|
+
import { MatIcon } from '@angular/material/icon';
|
|
6
|
+
|
|
7
|
+
const INCIDENTS = new InjectionToken('INCIDENTS');
|
|
8
|
+
|
|
9
|
+
class IncidentsComponent {
|
|
10
|
+
isVisible = false;
|
|
11
|
+
toggleVisibility() {
|
|
12
|
+
this.isVisible = !this.isVisible;
|
|
13
|
+
}
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: IncidentsComponent, isStandalone: true, selector: "emr-incidents", host: { properties: { "class.is-visible": "isVisible" }, classAttribute: "emr-incidents" }, providers: [
|
|
16
|
+
{
|
|
17
|
+
provide: INCIDENTS,
|
|
18
|
+
useExisting: IncidentsComponent
|
|
19
|
+
}
|
|
20
|
+
], exportAs: ["emrIncidents"], ngImport: i0, template: "<ng-content select=\"emr-incidents-bar\"></ng-content>\r\n<ng-content select=\"emr-incidents-list\"></ng-content>\r\n", styles: [":host{--emr-incidents-bar-height: calc(var(--spacing, .25rem) * 24);--emr-incidents-bar-bg: var(--color-orange-container);--emr-incidents-bar-padding: 0 calc(var(--spacing, .25rem) * 8);--emr-incidents-bar-color: var(--color-on-orange-container);--emr-incidents-bar-box-shadow: none;--emr-incidents-bar-hover-box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--emr-incidents-list-bg: rgba(0, 0, 0, .32);--emr-incidents-list-gap: calc(var(--spacing, .25rem) * 5);--emr-incidents-list-padding: calc(var(--spacing, .25rem) * 7) 0;--emr-incident-bg: white;--emr-incident-color: var(--color-neutral-700);--emr-incident-border-radius: .375rem;--emr-incident-padding: calc(var(--spacing, .25rem) * 4) calc(var(--spacing, .25rem) * 6);--emr-incident-gap: calc(var(--spacing, .25rem) * 6);--emr-incident-border-start: calc(var(--spacing, .25rem) * 1) solid var(--color-neutral-900);--emr-incident-close-color: var(--color-neutral-500);--emr-incident-close-hover-color: var(--color-neutral-900);--emr-incident-title-font-size: .875rem;--emr-incident-title-font-weight: 500;--emr-incident-details-font-size: .875rem;--emr-incident-details-color: var(--color-neutral-500);--emr-incidents-title-font-size: var(--text-base);--emr-incidents-title-font-weight: 500;--emr-incidents-description-font-size: .875rem;--emr-incidents-description-opacity: 80%;display:contents}:host .list-container{display:none;height:calc(100vh - var(--emr-layout-top-header-top) + var(--emr-layout-top-header-height))}:host-context(html.dark){--emr-incidents-list-bg: rgba(255, 255, 255, .32)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'emr-incidents', exportAs: 'emrIncidents', providers: [
|
|
25
|
+
{
|
|
26
|
+
provide: INCIDENTS,
|
|
27
|
+
useExisting: IncidentsComponent
|
|
28
|
+
}
|
|
29
|
+
], host: {
|
|
30
|
+
'class': 'emr-incidents',
|
|
31
|
+
'[class.is-visible]': 'isVisible',
|
|
32
|
+
}, template: "<ng-content select=\"emr-incidents-bar\"></ng-content>\r\n<ng-content select=\"emr-incidents-list\"></ng-content>\r\n", styles: [":host{--emr-incidents-bar-height: calc(var(--spacing, .25rem) * 24);--emr-incidents-bar-bg: var(--color-orange-container);--emr-incidents-bar-padding: 0 calc(var(--spacing, .25rem) * 8);--emr-incidents-bar-color: var(--color-on-orange-container);--emr-incidents-bar-box-shadow: none;--emr-incidents-bar-hover-box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--emr-incidents-list-bg: rgba(0, 0, 0, .32);--emr-incidents-list-gap: calc(var(--spacing, .25rem) * 5);--emr-incidents-list-padding: calc(var(--spacing, .25rem) * 7) 0;--emr-incident-bg: white;--emr-incident-color: var(--color-neutral-700);--emr-incident-border-radius: .375rem;--emr-incident-padding: calc(var(--spacing, .25rem) * 4) calc(var(--spacing, .25rem) * 6);--emr-incident-gap: calc(var(--spacing, .25rem) * 6);--emr-incident-border-start: calc(var(--spacing, .25rem) * 1) solid var(--color-neutral-900);--emr-incident-close-color: var(--color-neutral-500);--emr-incident-close-hover-color: var(--color-neutral-900);--emr-incident-title-font-size: .875rem;--emr-incident-title-font-weight: 500;--emr-incident-details-font-size: .875rem;--emr-incident-details-color: var(--color-neutral-500);--emr-incidents-title-font-size: var(--text-base);--emr-incidents-title-font-weight: 500;--emr-incidents-description-font-size: .875rem;--emr-incidents-description-opacity: 80%;display:contents}:host .list-container{display:none;height:calc(100vh - var(--emr-layout-top-header-top) + var(--emr-layout-top-header-height))}:host-context(html.dark){--emr-incidents-list-bg: rgba(255, 255, 255, .32)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
33
|
+
}] });
|
|
34
|
+
|
|
35
|
+
class IncidentsBarComponent {
|
|
36
|
+
_parent = inject(INCIDENTS, { optional: true });
|
|
37
|
+
_handleClick(_event) {
|
|
38
|
+
this._parent?.toggleVisibility();
|
|
39
|
+
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: IncidentsBarComponent, isStandalone: true, selector: "emr-incidents-bar", host: { listeners: { "click": "_handleClick($event)" }, classAttribute: "emr-incidents-bar" }, exportAs: ["emrIncidentsBar"], ngImport: i0, template: "<div class=\"flex flex-col gap-0.5\">\r\n <ng-content select=\"emr-incidents-title\"/>\r\n <ng-content select=\"emr-incidents-description\"/>\r\n</div>\r\n<button mat-icon-button class=\"ms-auto toggle-icon\">\r\n <ng-content select=\"[emrIncidentsToggleIcon]\"/>\r\n</button>\r\n", styles: [":host{width:100%;height:var(--emr-incidents-bar-height);background:var(--emr-incidents-bar-bg);color:var(--emr-incidents-bar-color);box-shadow:var(--emr-incidents-bar-box-shadow);align-items:center;justify-content:space-between;flex:none;cursor:pointer;display:flex;grid-gap:25px;-webkit-user-select:none;user-select:none;padding:var(--emr-incidents-bar-padding)}:host(:hover){box-shadow:var(--emr-incidents-bar-hover-box-shadow)}:host .container{display:flex;height:100%;grid-area:content;align-items:center}:host .toggle-icon{line-height:0;transition:transform .2s ease;--mat-icon-button-icon-color: var(--emr-incidents-bar-color);--mat-icon-button-state-layer-color: var(--emr-incidents-bar-color)}:host-context(.emr-incidents.is-visible) .toggle-icon{transform:rotate(-180deg)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }] });
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsBarComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'emr-incidents-bar', exportAs: 'emrIncidentsBar', imports: [
|
|
46
|
+
MatIconButton
|
|
47
|
+
], host: {
|
|
48
|
+
'class': 'emr-incidents-bar',
|
|
49
|
+
'(click)': '_handleClick($event)'
|
|
50
|
+
}, template: "<div class=\"flex flex-col gap-0.5\">\r\n <ng-content select=\"emr-incidents-title\"/>\r\n <ng-content select=\"emr-incidents-description\"/>\r\n</div>\r\n<button mat-icon-button class=\"ms-auto toggle-icon\">\r\n <ng-content select=\"[emrIncidentsToggleIcon]\"/>\r\n</button>\r\n", styles: [":host{width:100%;height:var(--emr-incidents-bar-height);background:var(--emr-incidents-bar-bg);color:var(--emr-incidents-bar-color);box-shadow:var(--emr-incidents-bar-box-shadow);align-items:center;justify-content:space-between;flex:none;cursor:pointer;display:flex;grid-gap:25px;-webkit-user-select:none;user-select:none;padding:var(--emr-incidents-bar-padding)}:host(:hover){box-shadow:var(--emr-incidents-bar-hover-box-shadow)}:host .container{display:flex;height:100%;grid-area:content;align-items:center}:host .toggle-icon{line-height:0;transition:transform .2s ease;--mat-icon-button-icon-color: var(--emr-incidents-bar-color);--mat-icon-button-state-layer-color: var(--emr-incidents-bar-color)}:host-context(.emr-incidents.is-visible) .toggle-icon{transform:rotate(-180deg)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
51
|
+
}] });
|
|
52
|
+
|
|
53
|
+
class IncidentsListComponent {
|
|
54
|
+
_parent = inject(INCIDENTS, { optional: true });
|
|
55
|
+
fixed = input(false, ...(ngDevMode ? [{ debugName: "fixed", transform: booleanAttribute }] : [{
|
|
56
|
+
transform: booleanAttribute
|
|
57
|
+
}]));
|
|
58
|
+
_handleClick(event) {
|
|
59
|
+
const target = event.target;
|
|
60
|
+
if (target.closest('.emr-incident') === null) {
|
|
61
|
+
this._parent?.toggleVisibility();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.10", type: IncidentsListComponent, isStandalone: true, selector: "emr-incidents-list", inputs: { fixed: { classPropertyName: "fixed", publicName: "fixed", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_handleClick($event)" }, properties: { "class.is-fixed": "fixed()" }, classAttribute: "emr-incidents-list" }, exportAs: ["emr-incidents-list"], ngImport: i0, template: "<div class=\"container\">\r\n <ng-content select=\"emr-incident\"/>\r\n</div>\r\n", styles: [":host{background:var(--emr-incidents-list-bg);transition:transform .15s,opacity .15s;display:grid;height:0;opacity:0;grid-gap:25px;grid-template-columns:auto minmax(1px,max-content) auto;grid-template-areas:\". content .\";transform-origin:top;overflow:hidden;transform:scaleY(0)}:host:not(:empty){padding:var(--emr-incidents-list-padding)}:host .container{display:grid;height:min-content;grid-area:content;grid-row-gap:var(--emr-incidents-list-gap);grid-auto-flow:row}:host(.is-fixed){position:absolute;z-index:102;left:0;right:0;top:calc(var(--emr-incidents-bar-height));bottom:0}:host-context(.emr-incidents.is-visible){height:calc(100% - var(--emr-incidents-bar-height));transform:scaleY(1);opacity:1;overflow-y:auto}:host-context(.emr-incidents.is-visible).is-fixed{height:calc(100vh - var(--emr-incidents-bar-height))}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
|
|
66
|
+
}
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsListComponent, decorators: [{
|
|
68
|
+
type: Component,
|
|
69
|
+
args: [{ selector: 'emr-incidents-list', exportAs: 'emr-incidents-list', host: {
|
|
70
|
+
'class': 'emr-incidents-list',
|
|
71
|
+
'[class.is-fixed]': 'fixed()',
|
|
72
|
+
'(click)': '_handleClick($event)'
|
|
73
|
+
}, template: "<div class=\"container\">\r\n <ng-content select=\"emr-incident\"/>\r\n</div>\r\n", styles: [":host{background:var(--emr-incidents-list-bg);transition:transform .15s,opacity .15s;display:grid;height:0;opacity:0;grid-gap:25px;grid-template-columns:auto minmax(1px,max-content) auto;grid-template-areas:\". content .\";transform-origin:top;overflow:hidden;transform:scaleY(0)}:host:not(:empty){padding:var(--emr-incidents-list-padding)}:host .container{display:grid;height:min-content;grid-area:content;grid-row-gap:var(--emr-incidents-list-gap);grid-auto-flow:row}:host(.is-fixed){position:absolute;z-index:102;left:0;right:0;top:calc(var(--emr-incidents-bar-height));bottom:0}:host-context(.emr-incidents.is-visible){height:calc(100% - var(--emr-incidents-bar-height));transform:scaleY(1);opacity:1;overflow-y:auto}:host-context(.emr-incidents.is-visible).is-fixed{height:calc(100vh - var(--emr-incidents-bar-height))}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
74
|
+
}], propDecorators: { fixed: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixed", required: false }] }] } });
|
|
75
|
+
|
|
76
|
+
const initialState = {
|
|
77
|
+
incidents: [],
|
|
78
|
+
title: '',
|
|
79
|
+
description: '',
|
|
80
|
+
};
|
|
81
|
+
const IncidentsStore = signalStore({ providedIn: 'root' }, withState(initialState), withMethods((store) => ({
|
|
82
|
+
show(state) {
|
|
83
|
+
patchState(store, {
|
|
84
|
+
...state
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
hide() {
|
|
88
|
+
patchState(store, {
|
|
89
|
+
incidents: []
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
})));
|
|
93
|
+
|
|
94
|
+
let incidentId = 0;
|
|
95
|
+
class IncidentComponent {
|
|
96
|
+
_incidentsStore = inject(IncidentsStore);
|
|
97
|
+
incidentId = input(`incident-${incidentId++}`, ...(ngDevMode ? [{ debugName: "incidentId" }] : []));
|
|
98
|
+
close() {
|
|
99
|
+
this._incidentsStore.hide();
|
|
100
|
+
}
|
|
101
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
102
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.10", type: IncidentComponent, isStandalone: true, selector: "emr-incident,[emr-incident]", inputs: { incidentId: { classPropertyName: "incidentId", publicName: "incidentId", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "emr-incident" }, exportAs: ["emrIncident"], ngImport: i0, template: "<div class=\"icon\">\r\n <ng-content select=\"[emrIncidentIcon]\"/>\r\n</div>\r\n<div class=\"content\">\r\n <div class=\"data\">\r\n <ng-content select=\"emr-incident-title\"/>\r\n <ng-content select=\"emr-incident-details\"/>\r\n </div>\r\n <ng-content select=\"[emrIncidentButton]\"/>\r\n</div>\r\n<button mat-icon-button class=\"close -ms-2\" (click)=\"close()\">\r\n <ng-content select=\"[emrIncidentClose]\"/>\r\n</button>\r\n", styles: [":host{display:grid;align-items:center;border-radius:var(--emr-incident-border-radius);background:var(--emr-incident-bg);grid-template-areas:\"icon content close\";padding:var(--emr-incident-padding);gap:var(--emr-incident-gap);border-inline-start:var(--emr-incident-border-start);grid-template-columns:[icon] var(--emr-incident-gap) [content] 1fr [action] var(--emr-incident-gap);color:var(--emr-incident-color)}:host .content{grid-area:content;display:grid;gap:var(--emr-incident-gap);grid-template-areas:\"data button\";grid-template-columns:[data] 1fr [button] var(--emr-incident-gap)}:host .data{grid-area:data}:host .icon{line-height:0;display:inline-block;max-width:max-content}:host .close{--mat-icon-button-icon-color: var(--emr-incident-close-color);--mat-icon-button-state-layer-color: var(--emr-incident-close-color)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }] });
|
|
103
|
+
}
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentComponent, decorators: [{
|
|
105
|
+
type: Component,
|
|
106
|
+
args: [{ selector: 'emr-incident,[emr-incident]', exportAs: 'emrIncident', imports: [
|
|
107
|
+
MatIconButton
|
|
108
|
+
], host: {
|
|
109
|
+
'class': 'emr-incident'
|
|
110
|
+
}, template: "<div class=\"icon\">\r\n <ng-content select=\"[emrIncidentIcon]\"/>\r\n</div>\r\n<div class=\"content\">\r\n <div class=\"data\">\r\n <ng-content select=\"emr-incident-title\"/>\r\n <ng-content select=\"emr-incident-details\"/>\r\n </div>\r\n <ng-content select=\"[emrIncidentButton]\"/>\r\n</div>\r\n<button mat-icon-button class=\"close -ms-2\" (click)=\"close()\">\r\n <ng-content select=\"[emrIncidentClose]\"/>\r\n</button>\r\n", styles: [":host{display:grid;align-items:center;border-radius:var(--emr-incident-border-radius);background:var(--emr-incident-bg);grid-template-areas:\"icon content close\";padding:var(--emr-incident-padding);gap:var(--emr-incident-gap);border-inline-start:var(--emr-incident-border-start);grid-template-columns:[icon] var(--emr-incident-gap) [content] 1fr [action] var(--emr-incident-gap);color:var(--emr-incident-color)}:host .content{grid-area:content;display:grid;gap:var(--emr-incident-gap);grid-template-areas:\"data button\";grid-template-columns:[data] 1fr [button] var(--emr-incident-gap)}:host .data{grid-area:data}:host .icon{line-height:0;display:inline-block;max-width:max-content}:host .close{--mat-icon-button-icon-color: var(--emr-incident-close-color);--mat-icon-button-state-layer-color: var(--emr-incident-close-color)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
111
|
+
}], propDecorators: { incidentId: [{ type: i0.Input, args: [{ isSignal: true, alias: "incidentId", required: false }] }] } });
|
|
112
|
+
|
|
113
|
+
class IncidentTitleComponent {
|
|
114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
115
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: IncidentTitleComponent, isStandalone: true, selector: "emr-incident-title", host: { classAttribute: "emr-incident-title" }, exportAs: ["emrIncidentTitle"], ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-size:var(--emr-incident-title-font-size);font-weight:var(--emr-incident-title-font-weight)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
|
|
116
|
+
}
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentTitleComponent, decorators: [{
|
|
118
|
+
type: Component,
|
|
119
|
+
args: [{ selector: 'emr-incident-title', exportAs: 'emrIncidentTitle', host: {
|
|
120
|
+
'class': 'emr-incident-title',
|
|
121
|
+
}, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-size:var(--emr-incident-title-font-size);font-weight:var(--emr-incident-title-font-weight)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
122
|
+
}] });
|
|
123
|
+
|
|
124
|
+
class IncidentDetailsComponent {
|
|
125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
126
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: IncidentDetailsComponent, isStandalone: true, selector: "emr-incident-details", host: { classAttribute: "emr-incident-details" }, exportAs: ["emrIncidentDetails"], ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-size:var(--emr-incident-details-font-size);color:var(--emr-incident-details-color)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
|
|
127
|
+
}
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentDetailsComponent, decorators: [{
|
|
129
|
+
type: Component,
|
|
130
|
+
args: [{ selector: 'emr-incident-details', exportAs: 'emrIncidentDetails', host: {
|
|
131
|
+
'class': 'emr-incident-details',
|
|
132
|
+
}, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-size:var(--emr-incident-details-font-size);color:var(--emr-incident-details-color)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
133
|
+
}] });
|
|
134
|
+
|
|
135
|
+
class IncidentButtonDirective {
|
|
136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
137
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: IncidentButtonDirective, isStandalone: true, selector: "[emrIncidentButton]", host: { classAttribute: "emr-incident-button" }, exportAs: ["emrIncidentButton"], ngImport: i0 });
|
|
138
|
+
}
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentButtonDirective, decorators: [{
|
|
140
|
+
type: Directive,
|
|
141
|
+
args: [{
|
|
142
|
+
selector: '[emrIncidentButton]',
|
|
143
|
+
exportAs: 'emrIncidentButton',
|
|
144
|
+
host: {
|
|
145
|
+
'class': 'emr-incident-button',
|
|
146
|
+
}
|
|
147
|
+
}]
|
|
148
|
+
}] });
|
|
149
|
+
|
|
150
|
+
class IncidentsTitleComponent {
|
|
151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
152
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: IncidentsTitleComponent, isStandalone: true, selector: "emr-incidents-title", host: { classAttribute: "emr-incidents-title" }, exportAs: ["emrIncidentTitle"], ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-size:var(--emr-incidents-title-font-size);font-weight:var(--emr-incidents-title-font-weight)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
|
|
153
|
+
}
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsTitleComponent, decorators: [{
|
|
155
|
+
type: Component,
|
|
156
|
+
args: [{ selector: 'emr-incidents-title', exportAs: 'emrIncidentTitle', host: {
|
|
157
|
+
'class': 'emr-incidents-title',
|
|
158
|
+
}, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-size:var(--emr-incidents-title-font-size);font-weight:var(--emr-incidents-title-font-weight)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
159
|
+
}] });
|
|
160
|
+
|
|
161
|
+
class IncidentsDescriptionComponent {
|
|
162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
163
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: IncidentsDescriptionComponent, isStandalone: true, selector: "emr-incidents-description", host: { classAttribute: "emr-incidents-description" }, exportAs: ["emrIncidentsDescription"], ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-size:var(--emr-incidents-description-font-size);opacity:var(--emr-incidents-description-opacity)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
|
|
164
|
+
}
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsDescriptionComponent, decorators: [{
|
|
166
|
+
type: Component,
|
|
167
|
+
args: [{ selector: 'emr-incidents-description', exportAs: 'emrIncidentsDescription', host: {
|
|
168
|
+
'class': 'emr-incidents-description'
|
|
169
|
+
}, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-size:var(--emr-incidents-description-font-size);opacity:var(--emr-incidents-description-opacity)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
170
|
+
}] });
|
|
171
|
+
|
|
172
|
+
class IncidentsToggleIconDirective {
|
|
173
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsToggleIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
174
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: IncidentsToggleIconDirective, isStandalone: true, selector: "[emrIncidentsToggleIcon]", host: { classAttribute: "emr-incidents-toggle-icon" }, exportAs: ["emrIncidentsToggleIcon"], ngImport: i0 });
|
|
175
|
+
}
|
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsToggleIconDirective, decorators: [{
|
|
177
|
+
type: Directive,
|
|
178
|
+
args: [{
|
|
179
|
+
selector: '[emrIncidentsToggleIcon]',
|
|
180
|
+
exportAs: 'emrIncidentsToggleIcon',
|
|
181
|
+
host: {
|
|
182
|
+
'class': 'emr-incidents-toggle-icon',
|
|
183
|
+
}
|
|
184
|
+
}]
|
|
185
|
+
}] });
|
|
186
|
+
|
|
187
|
+
class IncidentCloseDirective {
|
|
188
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
189
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: IncidentCloseDirective, isStandalone: true, selector: "[emrIncidentClose]", host: { classAttribute: "emr-incident-close" }, exportAs: ["emrIncidentClose"], ngImport: i0 });
|
|
190
|
+
}
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentCloseDirective, decorators: [{
|
|
192
|
+
type: Directive,
|
|
193
|
+
args: [{
|
|
194
|
+
selector: '[emrIncidentClose]',
|
|
195
|
+
exportAs: 'emrIncidentClose',
|
|
196
|
+
host: {
|
|
197
|
+
'class': 'emr-incident-close'
|
|
198
|
+
}
|
|
199
|
+
}]
|
|
200
|
+
}] });
|
|
201
|
+
|
|
202
|
+
class IncidentsContainerComponent {
|
|
203
|
+
_incidentsStore = inject(IncidentsStore);
|
|
204
|
+
hasIncidents = computed(() => {
|
|
205
|
+
return this._incidentsStore.incidents().length > 0;
|
|
206
|
+
}, ...(ngDevMode ? [{ debugName: "hasIncidents" }] : []));
|
|
207
|
+
title = computed(() => {
|
|
208
|
+
return this._incidentsStore.title();
|
|
209
|
+
}, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
210
|
+
description = computed(() => {
|
|
211
|
+
return this._incidentsStore.description();
|
|
212
|
+
}, ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
213
|
+
incidents = computed(() => {
|
|
214
|
+
return this._incidentsStore.incidents();
|
|
215
|
+
}, ...(ngDevMode ? [{ debugName: "incidents" }] : []));
|
|
216
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
217
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: IncidentsContainerComponent, isStandalone: true, selector: "emr-incidents-container,emr-incidents-global", host: { properties: { "class.is-active": "hasIncidents()" }, classAttribute: "emr-incidents-global" }, exportAs: ["emrIncidentsGlobal"], ngImport: i0, template: "@if (hasIncidents()) {\r\n <emr-incidents>\r\n <emr-incidents-bar>\r\n <emr-incidents-title>{{ title() }}</emr-incidents-title>\r\n @if (description()) {\r\n <emr-incidents-description>{{ description() }}</emr-incidents-description>\r\n }\r\n <mat-icon emrIncidentsToggleIcon>expand_more</mat-icon>\r\n </emr-incidents-bar>\r\n <emr-incidents-list fixed>\r\n @for (incident of incidents(); track incident) {\r\n <emr-incident>\r\n <mat-icon emrIncidentIcon>info</mat-icon>\r\n <mat-icon emrIncidentClose>close</mat-icon>\r\n <emr-incident-title>{{ incident.title }}</emr-incident-title>\r\n @if (incident.details) {\r\n <emr-incident-details>{{ incident.details }}</emr-incident-details>\r\n }\r\n </emr-incident>\r\n }\r\n </emr-incidents-list>\r\n </emr-incidents>\r\n}\r\n", styles: [":host{display:none;position:relative}:host.is-active{display:block}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: IncidentsComponent, selector: "emr-incidents", exportAs: ["emrIncidents"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: IncidentsTitleComponent, selector: "emr-incidents-title", exportAs: ["emrIncidentTitle"] }, { kind: "component", type: IncidentDetailsComponent, selector: "emr-incident-details", exportAs: ["emrIncidentDetails"] }, { kind: "component", type: IncidentsBarComponent, selector: "emr-incidents-bar", exportAs: ["emrIncidentsBar"] }, { kind: "component", type: IncidentsDescriptionComponent, selector: "emr-incidents-description", exportAs: ["emrIncidentsDescription"] }, { kind: "directive", type: IncidentsToggleIconDirective, selector: "[emrIncidentsToggleIcon]", exportAs: ["emrIncidentsToggleIcon"] }, { kind: "component", type: IncidentTitleComponent, selector: "emr-incident-title", exportAs: ["emrIncidentTitle"] }, { kind: "component", type: IncidentsListComponent, selector: "emr-incidents-list", inputs: ["fixed"], exportAs: ["emr-incidents-list"] }, { kind: "directive", type: IncidentCloseDirective, selector: "[emrIncidentClose]", exportAs: ["emrIncidentClose"] }, { kind: "component", type: IncidentComponent, selector: "emr-incident,[emr-incident]", inputs: ["incidentId"], exportAs: ["emrIncident"] }] });
|
|
218
|
+
}
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentsContainerComponent, decorators: [{
|
|
220
|
+
type: Component,
|
|
221
|
+
args: [{ selector: 'emr-incidents-container,emr-incidents-global', exportAs: 'emrIncidentsGlobal', imports: [
|
|
222
|
+
IncidentsComponent,
|
|
223
|
+
MatIcon,
|
|
224
|
+
IncidentsTitleComponent,
|
|
225
|
+
IncidentDetailsComponent,
|
|
226
|
+
IncidentsBarComponent,
|
|
227
|
+
IncidentsDescriptionComponent,
|
|
228
|
+
IncidentsToggleIconDirective,
|
|
229
|
+
IncidentTitleComponent,
|
|
230
|
+
IncidentsListComponent,
|
|
231
|
+
IncidentCloseDirective,
|
|
232
|
+
IncidentComponent
|
|
233
|
+
], host: {
|
|
234
|
+
'class': 'emr-incidents-global',
|
|
235
|
+
'[class.is-active]': 'hasIncidents()'
|
|
236
|
+
}, template: "@if (hasIncidents()) {\r\n <emr-incidents>\r\n <emr-incidents-bar>\r\n <emr-incidents-title>{{ title() }}</emr-incidents-title>\r\n @if (description()) {\r\n <emr-incidents-description>{{ description() }}</emr-incidents-description>\r\n }\r\n <mat-icon emrIncidentsToggleIcon>expand_more</mat-icon>\r\n </emr-incidents-bar>\r\n <emr-incidents-list fixed>\r\n @for (incident of incidents(); track incident) {\r\n <emr-incident>\r\n <mat-icon emrIncidentIcon>info</mat-icon>\r\n <mat-icon emrIncidentClose>close</mat-icon>\r\n <emr-incident-title>{{ incident.title }}</emr-incident-title>\r\n @if (incident.details) {\r\n <emr-incident-details>{{ incident.details }}</emr-incident-details>\r\n }\r\n </emr-incident>\r\n }\r\n </emr-incidents-list>\r\n </emr-incidents>\r\n}\r\n", styles: [":host{display:none;position:relative}:host.is-active{display:block}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
237
|
+
}] });
|
|
238
|
+
|
|
239
|
+
class IncidentIconDirective {
|
|
240
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
241
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: IncidentIconDirective, isStandalone: true, selector: "[emrIncidentIcon]", host: { classAttribute: "emr-incident-icon" }, exportAs: ["emrIncidentIcon"], ngImport: i0 });
|
|
242
|
+
}
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IncidentIconDirective, decorators: [{
|
|
244
|
+
type: Directive,
|
|
245
|
+
args: [{
|
|
246
|
+
selector: '[emrIncidentIcon]',
|
|
247
|
+
exportAs: 'emrIncidentIcon',
|
|
248
|
+
host: {
|
|
249
|
+
'class': 'emr-incident-icon'
|
|
250
|
+
}
|
|
251
|
+
}]
|
|
252
|
+
}] });
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Generated bundle index. Do not edit.
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
export { IncidentButtonDirective, IncidentCloseDirective, IncidentComponent, IncidentDetailsComponent, IncidentIconDirective, IncidentTitleComponent, IncidentsBarComponent, IncidentsComponent, IncidentsContainerComponent, IncidentsDescriptionComponent, IncidentsListComponent, IncidentsStore, IncidentsTitleComponent, IncidentsToggleIconDirective };
|
|
259
|
+
//# sourceMappingURL=elementar-rt-components-incidents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementar-rt-components-incidents.mjs","sources":["../../../projects/components/incidents/src/properties.ts","../../../projects/components/incidents/src/incidents/incidents.component.ts","../../../projects/components/incidents/src/incidents/incidents.component.html","../../../projects/components/incidents/src/incidents-bar/incidents-bar.component.ts","../../../projects/components/incidents/src/incidents-bar/incidents-bar.component.html","../../../projects/components/incidents/src/incidents-list/incidents-list.component.ts","../../../projects/components/incidents/src/incidents-list/incidents-list.component.html","../../../projects/components/incidents/src/incidents.store.ts","../../../projects/components/incidents/src/incident/incident.component.ts","../../../projects/components/incidents/src/incident/incident.component.html","../../../projects/components/incidents/src/incident-title/incident-title.component.ts","../../../projects/components/incidents/src/incident-title/incident-title.component.html","../../../projects/components/incidents/src/incident-details/incident-details.component.ts","../../../projects/components/incidents/src/incident-details/incident-details.component.html","../../../projects/components/incidents/src/incident-button.directive.ts","../../../projects/components/incidents/src/incidents-title/incidents-title.component.ts","../../../projects/components/incidents/src/incidents-title/incidents-title.component.html","../../../projects/components/incidents/src/incidents-description/incidents-description.component.ts","../../../projects/components/incidents/src/incidents-description/incidents-description.component.html","../../../projects/components/incidents/src/incidents-toggle-icon.directive.ts","../../../projects/components/incidents/src/incident-close.directive.ts","../../../projects/components/incidents/src/incidents-container/incidents-container.component.ts","../../../projects/components/incidents/src/incidents-container/incidents-container.component.html","../../../projects/components/incidents/src/incident-icon.directive.ts","../../../projects/components/incidents/elementar-rt-components-incidents.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nexport const INCIDENTS = new InjectionToken('INCIDENTS');\r\n","import {\r\n Component\r\n} from '@angular/core';\r\nimport { INCIDENTS } from '../properties';\r\n\r\n@Component({\r\n selector: 'emr-incidents',\r\n exportAs: 'emrIncidents',\r\n templateUrl: './incidents.component.html',\r\n styleUrl: './incidents.component.scss',\r\n providers: [\r\n {\r\n provide: INCIDENTS,\r\n useExisting: IncidentsComponent\r\n }\r\n ],\r\n host: {\r\n 'class': 'emr-incidents',\r\n '[class.is-visible]': 'isVisible',\r\n }\r\n})\r\nexport class IncidentsComponent {\r\n isVisible = false;\r\n\r\n toggleVisibility() {\r\n this.isVisible = !this.isVisible;\r\n }\r\n}\r\n","<ng-content select=\"emr-incidents-bar\"></ng-content>\r\n<ng-content select=\"emr-incidents-list\"></ng-content>\r\n","import { Component, inject } from '@angular/core';\r\nimport { INCIDENTS } from '../properties';\r\nimport { IncidentsComponent } from '../incidents/incidents.component';\r\nimport { MatIconButton } from '@angular/material/button';\r\n\r\n@Component({\r\n selector: 'emr-incidents-bar',\r\n exportAs: 'emrIncidentsBar',\r\n imports: [\r\n MatIconButton\r\n ],\r\n templateUrl: './incidents-bar.component.html',\r\n styleUrl: './incidents-bar.component.scss',\r\n host: {\r\n 'class': 'emr-incidents-bar',\r\n '(click)': '_handleClick($event)'\r\n }\r\n})\r\nexport class IncidentsBarComponent {\r\n private _parent = inject<IncidentsComponent>(INCIDENTS, { optional: true });\r\n\r\n _handleClick(_event?: Event) {\r\n this._parent?.toggleVisibility();\r\n }\r\n}\r\n","<div class=\"flex flex-col gap-0.5\">\r\n <ng-content select=\"emr-incidents-title\"/>\r\n <ng-content select=\"emr-incidents-description\"/>\r\n</div>\r\n<button mat-icon-button class=\"ms-auto toggle-icon\">\r\n <ng-content select=\"[emrIncidentsToggleIcon]\"/>\r\n</button>\r\n","import { booleanAttribute, Component, inject, input } from '@angular/core';\r\nimport { IncidentsComponent } from '../incidents/incidents.component';\r\nimport { INCIDENTS } from '../properties';\r\n\r\n@Component({\r\n selector: 'emr-incidents-list',\r\n exportAs: 'emr-incidents-list',\r\n templateUrl: './incidents-list.component.html',\r\n styleUrl: './incidents-list.component.scss',\r\n host: {\r\n 'class': 'emr-incidents-list',\r\n '[class.is-fixed]': 'fixed()',\r\n '(click)': '_handleClick($event)'\r\n }\r\n})\r\nexport class IncidentsListComponent {\r\n private _parent = inject<IncidentsComponent>(INCIDENTS, { optional: true });\r\n\r\n fixed = input(false, {\r\n transform: booleanAttribute\r\n });\r\n\r\n _handleClick(event: MouseEvent) {\r\n const target = event.target as HTMLElement;\r\n\r\n if (target.closest('.emr-incident') === null) {\r\n this._parent?.toggleVisibility();\r\n }\r\n }\r\n}\r\n","<div class=\"container\">\r\n <ng-content select=\"emr-incident\"/>\r\n</div>\r\n","import { patchState, signalStore, withMethods, withState } from '@ngrx/signals';\r\nimport { Incident } from './types';\r\n\r\nexport interface IncidentsState {\r\n incidents: Incident[],\r\n title: string;\r\n description: string;\r\n}\r\n\r\nconst initialState: IncidentsState = {\r\n incidents: [],\r\n title: '',\r\n description: '',\r\n};\r\n\r\nexport const IncidentsStore = signalStore(\r\n { providedIn: 'root' },\r\n withState(initialState),\r\n withMethods((store) => ({\r\n show(state: IncidentsState): void {\r\n patchState(store, {\r\n ...state\r\n });\r\n },\r\n hide(): void {\r\n patchState(store, {\r\n incidents: []\r\n });\r\n }\r\n }))\r\n);\r\n","import { Component, inject, input } from '@angular/core';\r\nimport { IncidentsStore } from '../incidents.store';\r\nimport { MatIconButton } from '@angular/material/button';\r\n\r\nlet incidentId = 0;\r\n\r\n@Component({\r\n selector: 'emr-incident,[emr-incident]',\r\n exportAs: 'emrIncident',\r\n imports: [\r\n MatIconButton\r\n ],\r\n templateUrl: './incident.component.html',\r\n styleUrl: './incident.component.scss',\r\n host: {\r\n 'class': 'emr-incident'\r\n }\r\n})\r\nexport class IncidentComponent {\r\n private _incidentsStore = inject(IncidentsStore);\r\n\r\n incidentId = input(`incident-${incidentId++}`);\r\n\r\n close() {\r\n this._incidentsStore.hide();\r\n }\r\n}\r\n","<div class=\"icon\">\r\n <ng-content select=\"[emrIncidentIcon]\"/>\r\n</div>\r\n<div class=\"content\">\r\n <div class=\"data\">\r\n <ng-content select=\"emr-incident-title\"/>\r\n <ng-content select=\"emr-incident-details\"/>\r\n </div>\r\n <ng-content select=\"[emrIncidentButton]\"/>\r\n</div>\r\n<button mat-icon-button class=\"close -ms-2\" (click)=\"close()\">\r\n <ng-content select=\"[emrIncidentClose]\"/>\r\n</button>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-incident-title',\r\n exportAs: 'emrIncidentTitle',\r\n templateUrl: './incident-title.component.html',\r\n styleUrl: './incident-title.component.scss',\r\n host: {\r\n 'class': 'emr-incident-title',\r\n }\r\n})\r\nexport class IncidentTitleComponent {\r\n\r\n}\r\n","<ng-content></ng-content>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-incident-details',\r\n exportAs: 'emrIncidentDetails',\r\n templateUrl: './incident-details.component.html',\r\n styleUrl: './incident-details.component.scss',\r\n host: {\r\n 'class': 'emr-incident-details',\r\n }\r\n})\r\nexport class IncidentDetailsComponent {\r\n\r\n}\r\n","<ng-content></ng-content>\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrIncidentButton]',\r\n exportAs: 'emrIncidentButton',\r\n host: {\r\n 'class': 'emr-incident-button',\r\n }\r\n})\r\nexport class IncidentButtonDirective {\r\n\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-incidents-title',\r\n exportAs: 'emrIncidentTitle',\r\n templateUrl: './incidents-title.component.html',\r\n styleUrl: './incidents-title.component.scss',\r\n host: {\r\n 'class': 'emr-incidents-title',\r\n }\r\n})\r\nexport class IncidentsTitleComponent {\r\n\r\n}\r\n","<ng-content></ng-content>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-incidents-description',\r\n exportAs: 'emrIncidentsDescription',\r\n templateUrl: './incidents-description.component.html',\r\n styleUrl: './incidents-description.component.scss',\r\n host: {\r\n 'class': 'emr-incidents-description'\r\n }\r\n})\r\nexport class IncidentsDescriptionComponent {\r\n\r\n}\r\n","<ng-content></ng-content>\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrIncidentsToggleIcon]',\r\n exportAs: 'emrIncidentsToggleIcon',\r\n host: {\r\n 'class': 'emr-incidents-toggle-icon',\r\n }\r\n})\r\nexport class IncidentsToggleIconDirective {\r\n\r\n}\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrIncidentClose]',\r\n exportAs: 'emrIncidentClose',\r\n host: {\r\n 'class': 'emr-incident-close'\r\n }\r\n})\r\nexport class IncidentCloseDirective {\r\n\r\n}\r\n","import { Component, computed, inject } from '@angular/core';\r\nimport { IncidentsStore } from '../incidents.store';\r\nimport { IncidentsComponent } from '../incidents/incidents.component';\r\nimport { MatIcon } from '@angular/material/icon';\r\nimport { IncidentsTitleComponent } from '../incidents-title/incidents-title.component';\r\nimport { IncidentDetailsComponent } from '../incident-details/incident-details.component';\r\nimport { IncidentsBarComponent } from '../incidents-bar/incidents-bar.component';\r\nimport { IncidentsDescriptionComponent } from '../incidents-description/incidents-description.component';\r\nimport { IncidentsToggleIconDirective } from '../incidents-toggle-icon.directive';\r\nimport { IncidentTitleComponent } from '../incident-title/incident-title.component';\r\nimport { IncidentCloseDirective } from '../incident-close.directive';\r\nimport { IncidentComponent } from '../incident/incident.component';\r\nimport { IncidentsListComponent } from '../incidents-list/incidents-list.component';\r\n\r\n@Component({\r\n selector: 'emr-incidents-container,emr-incidents-global',\r\n exportAs: 'emrIncidentsGlobal',\r\n imports: [\r\n IncidentsComponent,\r\n MatIcon,\r\n IncidentsTitleComponent,\r\n IncidentDetailsComponent,\r\n IncidentsBarComponent,\r\n IncidentsDescriptionComponent,\r\n IncidentsToggleIconDirective,\r\n IncidentTitleComponent,\r\n IncidentsListComponent,\r\n IncidentCloseDirective,\r\n IncidentComponent\r\n ],\r\n templateUrl: './incidents-container.component.html',\r\n styleUrl: './incidents-container.component.scss',\r\n host: {\r\n 'class': 'emr-incidents-global',\r\n '[class.is-active]': 'hasIncidents()'\r\n }\r\n})\r\nexport class IncidentsContainerComponent {\r\n protected _incidentsStore = inject(IncidentsStore);\r\n\r\n hasIncidents = computed<boolean>(() => {\r\n return this._incidentsStore.incidents().length > 0;\r\n });\r\n title = computed(() => {\r\n return this._incidentsStore.title();\r\n });\r\n description = computed(() => {\r\n return this._incidentsStore.description();\r\n });\r\n incidents = computed(() => {\r\n return this._incidentsStore.incidents();\r\n });\r\n}\r\n","@if (hasIncidents()) {\r\n <emr-incidents>\r\n <emr-incidents-bar>\r\n <emr-incidents-title>{{ title() }}</emr-incidents-title>\r\n @if (description()) {\r\n <emr-incidents-description>{{ description() }}</emr-incidents-description>\r\n }\r\n <mat-icon emrIncidentsToggleIcon>expand_more</mat-icon>\r\n </emr-incidents-bar>\r\n <emr-incidents-list fixed>\r\n @for (incident of incidents(); track incident) {\r\n <emr-incident>\r\n <mat-icon emrIncidentIcon>info</mat-icon>\r\n <mat-icon emrIncidentClose>close</mat-icon>\r\n <emr-incident-title>{{ incident.title }}</emr-incident-title>\r\n @if (incident.details) {\r\n <emr-incident-details>{{ incident.details }}</emr-incident-details>\r\n }\r\n </emr-incident>\r\n }\r\n </emr-incidents-list>\r\n </emr-incidents>\r\n}\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrIncidentIcon]',\r\n exportAs: 'emrIncidentIcon',\r\n host: {\r\n 'class': 'emr-incident-icon'\r\n }\r\n})\r\nexport class IncidentIconDirective {\r\n\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n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A,CAAA;;4FASR,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAvBvC,SAAS;+BACE,8CAA8C,EAAA,QAAA,EAC9C,oBAAoB,EAAA,OAAA,EACrB;wBACP,kBAAkB;wBAClB,OAAO;wBACP,uBAAuB;wBACvB,wBAAwB;wBACxB,qBAAqB;wBACrB,6BAA6B;wBAC7B,4BAA4B;wBAC5B,sBAAsB;wBACtB,sBAAsB;wBACtB,sBAAsB;wBACtB;qBACD,EAAA,IAAA,EAGK;AACJ,wBAAA,OAAO,EAAE,sBAAsB;AAC/B,wBAAA,mBAAmB,EAAE;AACtB,qBAAA,EAAA,QAAA,EAAA,k4BAAA,EAAA,MAAA,EAAA,CAAA,2IAAA,CAAA,EAAA;;;ME1BU,qBAAqB,CAAA;wGAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,mBAAA,EAAA,EAAA,QAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE;AACV;AACF,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, PLATFORM_ID, DOCUMENT, input, numberAttribute, output, signal, ElementRef, Renderer2, afterNextRender, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { isPlatformServer } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
class InlineTextEditComponent {
|
|
6
|
+
platformId = inject(PLATFORM_ID);
|
|
7
|
+
document = inject(DOCUMENT);
|
|
8
|
+
enabled = input(true, ...(ngDevMode ? [{ debugName: "enabled" }] : []));
|
|
9
|
+
placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
10
|
+
delay = input(0, ...(ngDevMode ? [{ debugName: "delay", transform: numberAttribute }] : [{
|
|
11
|
+
transform: numberAttribute
|
|
12
|
+
}]));
|
|
13
|
+
contentChanged = output();
|
|
14
|
+
isEditing = signal(false, ...(ngDevMode ? [{ debugName: "isEditing" }] : []));
|
|
15
|
+
isFocused = signal(false, ...(ngDevMode ? [{ debugName: "isFocused" }] : []));
|
|
16
|
+
previousValue = '';
|
|
17
|
+
minHeightSet = false;
|
|
18
|
+
elementRef = inject((ElementRef));
|
|
19
|
+
renderer = inject(Renderer2);
|
|
20
|
+
emitTimeoutId = null;
|
|
21
|
+
constructor() {
|
|
22
|
+
afterNextRender(() => {
|
|
23
|
+
this.setInitialMinHeight();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
ngAfterViewInit() {
|
|
27
|
+
this.previousValue = this.elementRef.nativeElement.textContent;
|
|
28
|
+
}
|
|
29
|
+
get isContentEditable() {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
ngAfterContentChecked() {
|
|
33
|
+
if (isPlatformServer(this.platformId)) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
this.setInitialMinHeight();
|
|
37
|
+
}
|
|
38
|
+
ngOnDestroy() {
|
|
39
|
+
this.clearPendingEmission();
|
|
40
|
+
}
|
|
41
|
+
setInitialMinHeight() {
|
|
42
|
+
if (this.minHeightSet) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const el = this.elementRef.nativeElement;
|
|
46
|
+
let height = el.getBoundingClientRect().height;
|
|
47
|
+
if (!height || height < 1) {
|
|
48
|
+
const cs = getComputedStyle(el);
|
|
49
|
+
let lh = parseFloat(cs.lineHeight);
|
|
50
|
+
if (isNaN(lh) || lh <= 0) {
|
|
51
|
+
const fs = parseFloat(cs.fontSize) || 16;
|
|
52
|
+
lh = fs * 1.5;
|
|
53
|
+
}
|
|
54
|
+
height = lh;
|
|
55
|
+
}
|
|
56
|
+
if (height && height > 0) {
|
|
57
|
+
this.renderer.setStyle(el, 'min-height', `${Math.ceil(height)}px`);
|
|
58
|
+
this.minHeightSet = true;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
onFocus() {
|
|
62
|
+
this.isFocused.set(true);
|
|
63
|
+
}
|
|
64
|
+
onBlur() {
|
|
65
|
+
this.isFocused.set(false);
|
|
66
|
+
this.finishEdit();
|
|
67
|
+
}
|
|
68
|
+
onEnter(event) {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
this.finishEdit();
|
|
71
|
+
}
|
|
72
|
+
onEscape() {
|
|
73
|
+
this.cancelEdit();
|
|
74
|
+
}
|
|
75
|
+
onPaste(event) {
|
|
76
|
+
event.preventDefault();
|
|
77
|
+
const text = event.clipboardData?.getData('text/plain') ?? '';
|
|
78
|
+
this.document.execCommand('insertText', false, text);
|
|
79
|
+
}
|
|
80
|
+
onInput() {
|
|
81
|
+
this.isEditing.set(true);
|
|
82
|
+
// Track live changes and normalize empty content.
|
|
83
|
+
// Browsers may insert a <br> (or wrappers like <div><br></div>) in empty contenteditable elements.
|
|
84
|
+
const el = this.elementRef.nativeElement;
|
|
85
|
+
const html = (el.innerHTML ?? '').trim().toLowerCase();
|
|
86
|
+
const text = (el.textContent ?? '').trim();
|
|
87
|
+
const isEffectivelyEmpty = text.length === 0 ||
|
|
88
|
+
html === '' ||
|
|
89
|
+
html === '<br>' ||
|
|
90
|
+
html === '<br/>' ||
|
|
91
|
+
html === '<div><br></div>';
|
|
92
|
+
if (isEffectivelyEmpty && el.innerHTML !== '') {
|
|
93
|
+
// Clear to a truly empty state so placeholders and styling work correctly.
|
|
94
|
+
el.innerHTML = '';
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
finishEdit() {
|
|
98
|
+
if (!this.isEditing()) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const newValue = this.elementRef.nativeElement.textContent?.trim() ?? '';
|
|
102
|
+
if (newValue !== this.previousValue) {
|
|
103
|
+
this.previousValue = newValue;
|
|
104
|
+
this.emitWithDelay(newValue);
|
|
105
|
+
}
|
|
106
|
+
this.isEditing.set(false);
|
|
107
|
+
}
|
|
108
|
+
cancelEdit() {
|
|
109
|
+
if (!this.isEditing()) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
this.elementRef.nativeElement.textContent = this.previousValue;
|
|
113
|
+
// Keep focus and move caret to the end of the restored content for better UX.
|
|
114
|
+
this.placeCaretAtEnd();
|
|
115
|
+
this.isEditing.set(false);
|
|
116
|
+
// Cancel any pending emission since the edit was canceled.
|
|
117
|
+
this.clearPendingEmission();
|
|
118
|
+
}
|
|
119
|
+
placeCaretAtEnd() {
|
|
120
|
+
if (isPlatformServer(this.platformId)) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const el = this.elementRef.nativeElement;
|
|
124
|
+
// Ensure the host is focused so caret positioning is visible.
|
|
125
|
+
el.focus();
|
|
126
|
+
const selection = this.document.getSelection?.();
|
|
127
|
+
if (!selection) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const range = this.document.createRange();
|
|
131
|
+
range.selectNodeContents(el);
|
|
132
|
+
range.collapse(false); // collapse to end
|
|
133
|
+
selection.removeAllRanges();
|
|
134
|
+
selection.addRange(range);
|
|
135
|
+
}
|
|
136
|
+
emitWithDelay(value) {
|
|
137
|
+
const d = this.delay();
|
|
138
|
+
// Always clear a previous scheduled emission to ensure only the latest value is emitted
|
|
139
|
+
this.clearPendingEmission();
|
|
140
|
+
if (d > 0) {
|
|
141
|
+
this.emitTimeoutId = setTimeout(() => {
|
|
142
|
+
this.emitTimeoutId = null;
|
|
143
|
+
this.contentChanged.emit(value);
|
|
144
|
+
}, d);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
this.contentChanged.emit(value);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
clearPendingEmission() {
|
|
151
|
+
if (this.emitTimeoutId) {
|
|
152
|
+
clearTimeout(this.emitTimeoutId);
|
|
153
|
+
this.emitTimeoutId = null;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: InlineTextEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
157
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.10", type: InlineTextEditComponent, isStandalone: true, selector: "emr-inline-text-edit,[emr-inline-text-edit]", inputs: { enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { contentChanged: "contentChanged" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()", "keydown.enter": "onEnter($event)", "keydown.escape": "onEscape()", "paste": "onPaste($event)", "input": "onInput()" }, properties: { "attr.contenteditable": "isContentEditable", "attr.data-placeholder": "placeholder()", "class.editing": "isEditing()", "class.focused": "isFocused()" }, classAttribute: "emr-inline-text-edit" }, ngImport: i0, template: "<ng-content/>\r\n", styles: [":host{display:block;padding:4px 10px;position:relative;transition:border-color .15s cubic-bezier(.25,.8,.25,1);border:var(--mat-form-field-outlined-outline-width, 1px) solid transparent;outline:none;border-radius:var(--mat-form-field-outlined-container-shape);cursor:text;margin-left:-10px;margin-right:-10px;word-wrap:break-word}:host:hover{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline))}:host.editing{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}:host.focused{border-color:var(--color-primary);outline:1px solid var(--color-primary)}:host:empty:before{position:absolute;content:attr(data-placeholder);inset:0;z-index:0;color:var(--color-neutral-500);font-size:inherit;padding:inherit;word-wrap:break-word}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
158
|
+
}
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: InlineTextEditComponent, decorators: [{
|
|
160
|
+
type: Component,
|
|
161
|
+
args: [{ selector: 'emr-inline-text-edit,[emr-inline-text-edit]', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
162
|
+
'class': 'emr-inline-text-edit',
|
|
163
|
+
'[attr.contenteditable]': 'isContentEditable',
|
|
164
|
+
'[attr.data-placeholder]': 'placeholder()',
|
|
165
|
+
'[class.editing]': 'isEditing()',
|
|
166
|
+
'[class.focused]': 'isFocused()',
|
|
167
|
+
'(focus)': 'onFocus()',
|
|
168
|
+
'(blur)': 'onBlur()',
|
|
169
|
+
'(keydown.enter)': 'onEnter($event)',
|
|
170
|
+
'(keydown.escape)': 'onEscape()',
|
|
171
|
+
'(paste)': 'onPaste($event)',
|
|
172
|
+
'(input)': 'onInput()',
|
|
173
|
+
}, template: "<ng-content/>\r\n", styles: [":host{display:block;padding:4px 10px;position:relative;transition:border-color .15s cubic-bezier(.25,.8,.25,1);border:var(--mat-form-field-outlined-outline-width, 1px) solid transparent;outline:none;border-radius:var(--mat-form-field-outlined-container-shape);cursor:text;margin-left:-10px;margin-right:-10px;word-wrap:break-word}:host:hover{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline))}:host.editing{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}:host.focused{border-color:var(--color-primary);outline:1px solid var(--color-primary)}:host:empty:before{position:absolute;content:attr(data-placeholder);inset:0;z-index:0;color:var(--color-neutral-500);font-size:inherit;padding:inherit;word-wrap:break-word}\n"] }]
|
|
174
|
+
}], ctorParameters: () => [], propDecorators: { enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "enabled", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], contentChanged: [{ type: i0.Output, args: ["contentChanged"] }] } });
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Generated bundle index. Do not edit.
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
export { InlineTextEditComponent };
|
|
181
|
+
//# sourceMappingURL=elementar-rt-components-inline-text-edit.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementar-rt-components-inline-text-edit.mjs","sources":["../../../projects/components/inline-text-edit/src/inline-text-edit/inline-text-edit.component.ts","../../../projects/components/inline-text-edit/src/inline-text-edit/inline-text-edit.component.html","../../../projects/components/inline-text-edit/elementar-rt-components-inline-text-edit.ts"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n inject,\r\n input,\r\n output,\r\n signal,\r\n Renderer2,\r\n PLATFORM_ID,\r\n AfterContentChecked,\r\n OnDestroy,\r\n afterNextRender, DOCUMENT, numberAttribute, AfterViewInit,\r\n} from '@angular/core';\r\nimport { isPlatformServer } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'emr-inline-text-edit,[emr-inline-text-edit]',\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n templateUrl: './inline-text-edit.component.html',\r\n styleUrl: './inline-text-edit.component.scss',\r\n host: {\r\n 'class': 'emr-inline-text-edit',\r\n '[attr.contenteditable]': 'isContentEditable',\r\n '[attr.data-placeholder]': 'placeholder()',\r\n '[class.editing]': 'isEditing()',\r\n '[class.focused]': 'isFocused()',\r\n '(focus)': 'onFocus()',\r\n '(blur)': 'onBlur()',\r\n '(keydown.enter)': 'onEnter($event)',\r\n '(keydown.escape)': 'onEscape()',\r\n '(paste)': 'onPaste($event)',\r\n '(input)': 'onInput()',\r\n },\r\n})\r\nexport class InlineTextEditComponent implements AfterViewInit, AfterContentChecked, OnDestroy {\r\n private platformId = inject(PLATFORM_ID);\r\n private document = inject(DOCUMENT);\r\n\r\n enabled = input(true);\r\n placeholder = input('');\r\n delay = input(0, {\r\n transform: numberAttribute\r\n });\r\n\r\n readonly contentChanged = output<string>();\r\n\r\n isEditing = signal(false);\r\n isFocused = signal(false);\r\n\r\n private previousValue = '';\r\n private minHeightSet = false;\r\n private elementRef = inject(ElementRef<HTMLElement>);\r\n private renderer = inject(Renderer2);\r\n private emitTimeoutId: ReturnType<typeof setTimeout> | null = null;\r\n\r\n constructor() {\r\n afterNextRender(() => {\r\n this.setInitialMinHeight();\r\n });\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.previousValue = this.elementRef.nativeElement.textContent;\r\n }\r\n\r\n get isContentEditable() {\r\n return true;\r\n }\r\n\r\n ngAfterContentChecked() {\r\n if (isPlatformServer(this.platformId)) {\r\n return;\r\n }\r\n\r\n this.setInitialMinHeight();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.clearPendingEmission();\r\n }\r\n\r\n private setInitialMinHeight(): void {\r\n if (this.minHeightSet) {\r\n return;\r\n }\r\n\r\n const el = this.elementRef.nativeElement;\r\n let height = el.getBoundingClientRect().height;\r\n\r\n if (!height || height < 1) {\r\n const cs = getComputedStyle(el);\r\n let lh = parseFloat(cs.lineHeight);\r\n\r\n if (isNaN(lh) || lh <= 0) {\r\n const fs = parseFloat(cs.fontSize) || 16;\r\n lh = fs * 1.5;\r\n }\r\n\r\n height = lh;\r\n }\r\n\r\n if (height && height > 0) {\r\n this.renderer.setStyle(el, 'min-height', `${Math.ceil(height)}px`);\r\n this.minHeightSet = true;\r\n }\r\n }\r\n\r\n onFocus(): void {\r\n this.isFocused.set(true);\r\n }\r\n\r\n onBlur(): void {\r\n this.isFocused.set(false);\r\n this.finishEdit();\r\n }\r\n\r\n onEnter(event: Event): void {\r\n event.preventDefault();\r\n this.finishEdit();\r\n }\r\n\r\n onEscape(): void {\r\n this.cancelEdit();\r\n }\r\n\r\n onPaste(event: ClipboardEvent): void {\r\n event.preventDefault();\r\n const text = event.clipboardData?.getData('text/plain') ?? '';\r\n this.document.execCommand('insertText', false, text);\r\n }\r\n\r\n onInput(): void {\r\n this.isEditing.set(true);\r\n // Track live changes and normalize empty content.\r\n // Browsers may insert a <br> (or wrappers like <div><br></div>) in empty contenteditable elements.\r\n const el = this.elementRef.nativeElement;\r\n const html = (el.innerHTML ?? '').trim().toLowerCase();\r\n const text = (el.textContent ?? '').trim();\r\n\r\n const isEffectivelyEmpty =\r\n text.length === 0 ||\r\n html === '' ||\r\n html === '<br>' ||\r\n html === '<br/>' ||\r\n html === '<div><br></div>';\r\n\r\n if (isEffectivelyEmpty && el.innerHTML !== '') {\r\n // Clear to a truly empty state so placeholders and styling work correctly.\r\n el.innerHTML = '';\r\n }\r\n }\r\n\r\n private finishEdit(): void {\r\n if (!this.isEditing()) {\r\n return;\r\n }\r\n\r\n const newValue = this.elementRef.nativeElement.textContent?.trim() ?? '';\r\n\r\n if (newValue !== this.previousValue) {\r\n this.previousValue = newValue;\r\n this.emitWithDelay(newValue);\r\n }\r\n\r\n this.isEditing.set(false);\r\n }\r\n\r\n private cancelEdit(): void {\r\n if (!this.isEditing()) {\r\n return;\r\n }\r\n\r\n this.elementRef.nativeElement.textContent = this.previousValue;\r\n // Keep focus and move caret to the end of the restored content for better UX.\r\n this.placeCaretAtEnd();\r\n this.isEditing.set(false);\r\n // Cancel any pending emission since the edit was canceled.\r\n this.clearPendingEmission();\r\n }\r\n\r\n private placeCaretAtEnd(): void {\r\n if (isPlatformServer(this.platformId)) {\r\n return;\r\n }\r\n\r\n const el = this.elementRef.nativeElement;\r\n // Ensure the host is focused so caret positioning is visible.\r\n el.focus();\r\n\r\n const selection = this.document.getSelection?.();\r\n if (!selection) {\r\n return;\r\n }\r\n\r\n const range = this.document.createRange();\r\n range.selectNodeContents(el);\r\n range.collapse(false); // collapse to end\r\n selection.removeAllRanges();\r\n selection.addRange(range);\r\n }\r\n\r\n private emitWithDelay(value: string): void {\r\n const d = this.delay();\r\n // Always clear a previous scheduled emission to ensure only the latest value is emitted\r\n this.clearPendingEmission();\r\n\r\n if (d > 0) {\r\n this.emitTimeoutId = setTimeout(() => {\r\n this.emitTimeoutId = null;\r\n this.contentChanged.emit(value);\r\n }, d);\r\n } else {\r\n this.contentChanged.emit(value);\r\n }\r\n }\r\n\r\n private clearPendingEmission(): void {\r\n if (this.emitTimeoutId) {\r\n clearTimeout(this.emitTimeoutId);\r\n this.emitTimeoutId = null;\r\n }\r\n }\r\n}\r\n","<ng-content/>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAoCa,uBAAuB,CAAA;AAC1B,IAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAChC,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAEnC,IAAA,OAAO,GAAG,KAAK,CAAC,IAAI,mDAAC;AACrB,IAAA,WAAW,GAAG,KAAK,CAAC,EAAE,uDAAC;IACvB,KAAK,GAAG,KAAK,CAAC,CAAC,yCACb,SAAS,EAAE,eAAe,EAAA,CAAA,GAAA,CADX;AACf,YAAA,SAAS,EAAE;AACZ,SAAA,CAAA,CAAA,CAAC;IAEO,cAAc,GAAG,MAAM,EAAU;AAE1C,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,qDAAC;AACzB,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,qDAAC;IAEjB,aAAa,GAAG,EAAE;IAClB,YAAY,GAAG,KAAK;AACpB,IAAA,UAAU,GAAG,MAAM,EAAC,UAAuB,EAAC;AAC5C,IAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CA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