@ngstarter-ui/components 21.0.32 → 21.0.34
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/ai/component-registry.json +121 -2
- package/fesm2022/ngstarter-ui-components-form-field.mjs +2 -2
- package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-icon.mjs +118 -7
- package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +1873 -0
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -0
- package/package.json +8 -1
- package/types/ngstarter-ui-components-icon.d.ts +27 -6
- package/types/ngstarter-ui-components-pdf-viewer.d.ts +393 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"generatedBy": "scripts/generate-ai-metadata.mjs",
|
|
4
4
|
"package": "@ngstarter-ui/components",
|
|
5
5
|
"description": "AI-readable registry for NgStarter UI Angular secondary entry points.",
|
|
6
|
-
"componentCount":
|
|
6
|
+
"componentCount": 125,
|
|
7
7
|
"conventions": {
|
|
8
8
|
"importPattern": "@ngstarter-ui/components/<component>",
|
|
9
9
|
"selectorPrefix": "ngs",
|
|
@@ -4727,7 +4727,9 @@
|
|
|
4727
4727
|
"ngs-icon"
|
|
4728
4728
|
],
|
|
4729
4729
|
"exportedSymbols": [
|
|
4730
|
-
"Icon"
|
|
4730
|
+
"Icon",
|
|
4731
|
+
"IconData",
|
|
4732
|
+
"IconRegistry"
|
|
4731
4733
|
],
|
|
4732
4734
|
"inputs": [
|
|
4733
4735
|
"name"
|
|
@@ -6846,6 +6848,123 @@
|
|
|
6846
6848
|
],
|
|
6847
6849
|
"example": null
|
|
6848
6850
|
},
|
|
6851
|
+
{
|
|
6852
|
+
"name": "pdf-viewer",
|
|
6853
|
+
"title": "Pdf Viewer",
|
|
6854
|
+
"overviewName": "PDF Viewer",
|
|
6855
|
+
"category": "libraries",
|
|
6856
|
+
"package": "@ngstarter-ui/components",
|
|
6857
|
+
"importPath": "@ngstarter-ui/components/pdf-viewer",
|
|
6858
|
+
"publicApi": "projects/components/pdf-viewer/public-api.ts",
|
|
6859
|
+
"sourceRoot": "projects/components/pdf-viewer/src",
|
|
6860
|
+
"docsPath": "/libraries/pdf-viewer",
|
|
6861
|
+
"docsOverviewSource": "projects/docs/src/app/libraries/pdf-viewer/overview/overview.html",
|
|
6862
|
+
"purpose": "Import PDF Viewer from @ngstarter-ui/components/pdf-viewer .",
|
|
6863
|
+
"useWhen": "Choose Pdf Viewer when the workflow matches examples such as Basic pdf viewer.",
|
|
6864
|
+
"exampleTopics": [
|
|
6865
|
+
"Basic pdf viewer"
|
|
6866
|
+
],
|
|
6867
|
+
"minimalExample": "<ngs-pdf-viewer\n [src]=\"src()\"\n [documentName]=\"documentName()\"\n [wasmUrl]=\"wasmUrl\"\n [showAnnotationsPanel]=\"true\"\n [annotationsDataSource]=\"annotationsDataSource\"\n class=\"pdf-viewer-example\" />",
|
|
6868
|
+
"exampleFiles": [
|
|
6869
|
+
{
|
|
6870
|
+
"name": "basic-pdf-viewer-example",
|
|
6871
|
+
"title": "Basic pdf viewer",
|
|
6872
|
+
"file": "projects/docs/src/app/libraries/pdf-viewer/_examples/basic-pdf-viewer-example/basic-pdf-viewer-example.html",
|
|
6873
|
+
"source": "<ngs-pdf-viewer\n [src]=\"src()\"\n [documentName]=\"documentName()\"\n [wasmUrl]=\"wasmUrl\"\n [showAnnotationsPanel]=\"true\"\n [annotationsDataSource]=\"annotationsDataSource\"\n class=\"pdf-viewer-example\" />"
|
|
6874
|
+
}
|
|
6875
|
+
],
|
|
6876
|
+
"previewAsset": "projects/components/pdf-viewer/preview.svg",
|
|
6877
|
+
"selectors": [
|
|
6878
|
+
"[ngsPdfViewerAnnotation]",
|
|
6879
|
+
"[ngsPdfViewerAnnotationDef]",
|
|
6880
|
+
"ngs-pdf-viewer",
|
|
6881
|
+
"ngs-pdf-viewer-annotation-test-host",
|
|
6882
|
+
"ngs-pdf-viewer-annotations",
|
|
6883
|
+
"ngs-pdf-viewer-search"
|
|
6884
|
+
],
|
|
6885
|
+
"exportedSymbols": [
|
|
6886
|
+
"PdfViewer",
|
|
6887
|
+
"PdfViewerAnnotationDataSource",
|
|
6888
|
+
"PdfViewerAnnotationDataSourceContext",
|
|
6889
|
+
"PdfViewerAnnotationDataSourceParams",
|
|
6890
|
+
"PdfViewerAnnotationDataSourceResult",
|
|
6891
|
+
"PdfViewerAnnotationDef",
|
|
6892
|
+
"PdfViewerAnnotations",
|
|
6893
|
+
"PdfViewerAnnotationTemplateContext",
|
|
6894
|
+
"PdfViewerAnnotationView",
|
|
6895
|
+
"PdfViewerAnnotationWhen",
|
|
6896
|
+
"PdfViewerEngineService",
|
|
6897
|
+
"PdfViewerLoadedEvent",
|
|
6898
|
+
"PdfViewerPageRenderedEvent",
|
|
6899
|
+
"PdfViewerPageView",
|
|
6900
|
+
"PdfViewerSearch",
|
|
6901
|
+
"PdfViewerSearchOptions",
|
|
6902
|
+
"PdfViewerSearchResultView",
|
|
6903
|
+
"PdfViewerSelectionRectView",
|
|
6904
|
+
"PdfViewerServerAnnotationDataSource",
|
|
6905
|
+
"PdfViewerSource",
|
|
6906
|
+
"PdfViewerTextGlyphView",
|
|
6907
|
+
"PdfViewerTextRectView",
|
|
6908
|
+
"PdfViewerThumbnailView"
|
|
6909
|
+
],
|
|
6910
|
+
"inputs": [
|
|
6911
|
+
"annotationDefs",
|
|
6912
|
+
"annotations",
|
|
6913
|
+
"annotationsDataSource",
|
|
6914
|
+
"annotationTypeProperty",
|
|
6915
|
+
"documentName",
|
|
6916
|
+
"maxRenderDimension",
|
|
6917
|
+
"maxRenderPixels",
|
|
6918
|
+
"maxScale",
|
|
6919
|
+
"minScale",
|
|
6920
|
+
"ngsPdfViewerAnnotation",
|
|
6921
|
+
"ngsPdfViewerAnnotationDef",
|
|
6922
|
+
"ngsPdfViewerAnnotationWhen",
|
|
6923
|
+
"page",
|
|
6924
|
+
"query",
|
|
6925
|
+
"renderAll",
|
|
6926
|
+
"results",
|
|
6927
|
+
"scale",
|
|
6928
|
+
"searchQuery",
|
|
6929
|
+
"showAnnotationsPanel",
|
|
6930
|
+
"showPageList",
|
|
6931
|
+
"showSearchPanel",
|
|
6932
|
+
"showToolbar",
|
|
6933
|
+
"src",
|
|
6934
|
+
"wasmUrl",
|
|
6935
|
+
"withAnnotations",
|
|
6936
|
+
"withForms",
|
|
6937
|
+
"zoomStep"
|
|
6938
|
+
],
|
|
6939
|
+
"outputs": [
|
|
6940
|
+
"closed",
|
|
6941
|
+
"error",
|
|
6942
|
+
"loaded",
|
|
6943
|
+
"pageChanged",
|
|
6944
|
+
"pageRendered",
|
|
6945
|
+
"pageSelected",
|
|
6946
|
+
"resultSelected",
|
|
6947
|
+
"searchChanged"
|
|
6948
|
+
],
|
|
6949
|
+
"cssTokens": [
|
|
6950
|
+
"--ngs-card-bg",
|
|
6951
|
+
"--ngs-card-padding",
|
|
6952
|
+
"--ngs-card-radius",
|
|
6953
|
+
"--ngs-color-border",
|
|
6954
|
+
"--ngs-color-on-surface",
|
|
6955
|
+
"--ngs-color-on-surface-variant",
|
|
6956
|
+
"--ngs-color-surface",
|
|
6957
|
+
"--ngs-color-surface-container-lowest",
|
|
6958
|
+
"--ngs-font-size-base",
|
|
6959
|
+
"--ngs-font-size-sm",
|
|
6960
|
+
"--ngs-pdf-viewer-aside-width",
|
|
6961
|
+
"--ngs-pdf-viewer-height",
|
|
6962
|
+
"--ngs-pdf-viewer-min-height",
|
|
6963
|
+
"--ngs-pdf-viewer-sidebar-width",
|
|
6964
|
+
"--ngs-radius-md"
|
|
6965
|
+
],
|
|
6966
|
+
"example": null
|
|
6967
|
+
},
|
|
6849
6968
|
{
|
|
6850
6969
|
"name": "phone-input",
|
|
6851
6970
|
"title": "Phone Input",
|
|
@@ -194,7 +194,7 @@ class FormField {
|
|
|
194
194
|
provide: FORM_FIELD,
|
|
195
195
|
useExisting: FormField
|
|
196
196
|
}
|
|
197
|
-
], queries: [{ propertyName: "control", first: true, predicate: FormFieldControl, descendants: true, isSignal: true }, { propertyName: "labelChild", first: true, predicate: Label, descendants: true, isSignal: true }, { propertyName: "prefixChildren", predicate: Prefix, isSignal: true }, { propertyName: "iconPrefixChildren", predicate: IconPrefix, isSignal: true }, { propertyName: "iconButtonPrefixChildren", predicate: IconButtonPrefix, isSignal: true }, { propertyName: "textPrefixChildren", predicate: TextPrefix, isSignal: true }, { propertyName: "suffixChildren", predicate: Suffix, isSignal: true }, { propertyName: "iconSuffixChildren", predicate: IconSuffix, isSignal: true }, { propertyName: "iconButtonSuffixChildren", predicate: IconButtonSuffix, isSignal: true }, { propertyName: "textSuffixChildren", predicate: TextSuffix, isSignal: true }, { propertyName: "hintChildren", predicate: Hint, isSignal: true }, { propertyName: "errorChildren", predicate: Error, isSignal: true }], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true, isSignal: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, isSignal: true }], exportAs: ["ngsFormField"], ngImport: i0, template: "<div class=\"ngs-form-field-wrapper\" #wrapper>\n <div class=\"ngs-form-field-container\" #container>\n @if (prefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-prefix\">\n <ng-content select=\"[ngsPrefix]\"/>\n </div>\n }\n\n @if (iconPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-prefix\">\n <ng-content select=\"[ngsIconPrefix]\"/>\n </div>\n }\n\n @if (iconButtonPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-button-prefix\">\n <ng-content select=\"[ngsIconButtonPrefix]\"/>\n </div>\n }\n\n @if (textPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-text-affix ngs-form-field-text-prefix\">\n <ng-content select=\"[ngsTextPrefix]\"/>\n </div>\n }\n\n <div class=\"ngs-form-field-infix\">\n @if (labelChild()) {\n <label class=\"ngs-form-field-label\" [attr.for]=\"control()?.id\">\n <ng-content select=\"ngs-label\"/>\n\n @if (isRequired()) {\n <span class=\"ngs-form-field-required-marker\">*</span>\n }\n </label>\n }\n <ng-content/>\n </div>\n\n @if (textSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-text-affix ngs-form-field-text-suffix\">\n <ng-content select=\"[ngsTextSuffix]\"/>\n </div>\n }\n\n @if (iconButtonSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-button-suffix\">\n <ng-content select=\"[ngsIconButtonSuffix]\"/>\n </div>\n }\n\n @if (iconSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-suffix\">\n <ng-content select=\"[ngsIconSuffix]\"/>\n </div>\n }\n\n @if (suffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-suffix\">\n <ng-content select=\"[ngsSuffix]\"/>\n </div>\n }\n </div>\n</div>\n\n<div class=\"subscript-wrapper\">\n @if (control()?.errorState && errorChildren().length > 0) {\n <ng-content select=\"ngs-error\"/>\n } @else if (hintChildren().length > 0) {\n <div class=\"ngs-form-field-hint-wrapper\">\n <ng-content select=\"ngs-hint\"/>\n </div>\n }\n</div>\n", styles: [":host{--ngs-form-field-color: var(--ngs-field-color);--ngs-form-field-border-color: var(--ngs-field-border-color);--ngs-form-field-border-width: var(--ngs-field-border-width);--ngs-form-field-border-radius: var(--ngs-field-radius);--ngs-form-field-bg: var(--ngs-field-bg);--ngs-form-field-disabled-bg: var(--ngs-field-disabled-bg);--ngs-form-field-label-color: var(--ngs-field-label-color);--ngs-form-field-error-color: var(--ngs-field-error-color);--ngs-form-field-container-min-height: var(--ngs-field-height, var(--ngs-field-container-height));--ngs-form-field-padding-x: var(--ngs-field-padding-x);--ngs-form-field-input-height: var(--ngs-field-input-height);--ngs-form-field-affix-gap: calc(var(--spacing, .25rem) * 1);--ngs-form-field-icon-affix-padding-x: calc(var(--spacing, .25rem) * 2);--ngs-form-field-icon-button-affix-padding-x: calc(var(--spacing, .25rem) * 1);--ngs-form-field-infix-padding-top: var(--ngs-field-infix-padding-top);--ngs-form-field-infix-padding-bottom: var(--ngs-field-infix-padding-bottom);--ngs-form-field-no-label-padding-y: var(--ngs-field-no-label-padding-y);display:block;width:var(--ngs-form-field-width, 100%)}:host.ngs-form-field-disabled{cursor:default}:host.ngs-form-field-disabled .ngs-form-field-container{background:var(--ngs-state-disabled-bg);border-color:var(--ngs-state-disabled-border)}:host.ngs-form-field-disabled .ngs-form-field-label{color:var(--ngs-state-disabled-color)}:host.ngs-form-field-disabled ::ng-deep input{color:var(--ngs-state-disabled-color)}:host.ngs-form-field-focused .ngs-form-field-container{border-color:var(--ngs-field-border-focus-color);box-shadow:0 0 0 1px var(--ngs-field-border-focus-color)}:host.ngs-form-field-focused .ngs-form-field-label{color:var(--ngs-form-field-color)}:host.ngs-form-field-invalid .ngs-form-field-container{border-color:var(--ngs-form-field-error-color)}:host.ngs-form-field-invalid.ngs-form-field-focused .ngs-form-field-container{box-shadow:0 0 0 1px var(--ngs-form-field-error-color)}:host.ngs-form-field-invalid .ngs-form-field-label{color:var(--ngs-form-field-error-color)}:host .ngs-form-field-wrapper{display:flex;flex-direction:column;height:var(--ngs-form-field-container-min-height)}:host .ngs-form-field-container{position:relative;box-sizing:border-box;border:var(--ngs-form-field-border-width) solid var(--ngs-form-field-border-color);border-radius:var(--ngs-form-field-border-radius);background:var(--ngs-form-field-bg);padding:0 var(--ngs-form-field-padding-x);transition:border-color .2s,box-shadow .2s;height:var(--ngs-form-field-container-min-height);min-height:var(--ngs-form-field-container-min-height);display:flex;align-items:center}:host.ngs-form-field-has-icon-prefix .ngs-form-field-container{padding-left:var(--ngs-form-field-icon-affix-padding-x)}:host.ngs-form-field-has-icon-button-prefix .ngs-form-field-container{padding-left:var(--ngs-form-field-icon-button-affix-padding-x)}:host.ngs-form-field-has-icon-suffix .ngs-form-field-container{padding-right:var(--ngs-form-field-icon-affix-padding-x)}:host.ngs-form-field-has-icon-button-suffix .ngs-form-field-container{padding-right:var(--ngs-form-field-icon-button-affix-padding-x)}:host .ngs-form-field-infix{box-sizing:border-box;flex:1;position:relative;padding:var(--ngs-form-field-infix-padding-top) 0 var(--ngs-form-field-infix-padding-bottom) 0;min-width:0;height:100%;min-height:var(--ngs-form-field-container-min-height);display:flex;flex-direction:column;overflow:hidden}:host.ngs-form-field-multiline .ngs-form-field-wrapper{height:auto;min-height:var(--ngs-form-field-container-min-height)}:host.ngs-form-field-multiline .ngs-form-field-container{height:auto;min-height:var(--ngs-form-field-container-min-height);align-items:stretch}:host.ngs-form-field-multiline .ngs-form-field-infix{height:auto;min-height:calc(var(--ngs-form-field-container-min-height) - 2px);overflow:visible}:host.ngs-form-field-multiline ::ng-deep textarea.ngs-input{min-height:var(--ngs-form-field-input-height);resize:vertical}:host:not(.ngs-form-field-has-label) .ngs-form-field-infix,:host:not(.ngs-form-field-has-label) .ngs-form-field-affix{box-sizing:border-box;padding:var(--ngs-form-field-no-label-padding-y) 0}:host:not(.ngs-form-field-has-label) .ngs-form-field-affix{--ngs-button-height: calc( var(--ngs-form-field-container-min-height) - var(--ngs-form-field-no-label-padding-y) - var(--ngs-form-field-no-label-padding-y) );height:100%}:host:not(.ngs-form-field-has-label) .ngs-form-field-infix{display:flex;justify-content:center}:host .ngs-form-field-label{position:absolute;left:0;transform:translateY(-50%);top:calc(var(--ngs-form-field-container-min-height) / 2);transform-origin:left top;font-size:var(--ngs-field-font-size);color:var(--ngs-form-field-label-color);transition:transform .2s ease,font-size .2s ease,color .2s ease,top .2s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:flex;align-items:center;gap:.125rem;pointer-events:none;z-index:1;-webkit-user-select:none;user-select:none}:host .ngs-form-field-required-marker{color:var(--ngs-form-field-error-color)}:host.ngs-form-field-should-float .ngs-form-field-label{top:4px;font-size:var(--ngs-field-label-float-font-size);transform:translateY(0)}:host ::ng-deep input{font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);outline:none!important;resize:none;text-align:var(--ngs-form-field-input-text-align, start)}:host ::ng-deep input::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep textarea{min-height:22px;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);outline:none!important;text-align:var(--ngs-form-field-input-text-align, start)}:host ::ng-deep textarea::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep .ngs-input,:host ::ng-deep .ngs-chip-input,:host ::ng-deep .ngs-phone-input,:host ::ng-deep .ngs-number-input,:host ::ng-deep ngs-select{width:100%;border:none!important;background:transparent!important;padding:0!important;color:inherit;outline:none!important;display:block}:host ::ng-deep .ngs-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-chip-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-phone-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-number-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep ngs-select:not(textarea):not(ngs-select):not(.ngs-chip-input){height:var(--ngs-form-field-input-height)}:host ::ng-deep .ngs-input:is(ngs-select),:host ::ng-deep .ngs-chip-input:is(ngs-select),:host ::ng-deep .ngs-phone-input:is(ngs-select),:host ::ng-deep .ngs-number-input:is(ngs-select),:host ::ng-deep ngs-select:is(ngs-select){height:var(--ngs-form-field-input-height);min-height:var(--ngs-form-field-input-height);overflow:hidden}:host ::ng-deep .ngs-input::placeholder,:host ::ng-deep .ngs-chip-input::placeholder,:host ::ng-deep .ngs-phone-input::placeholder,:host ::ng-deep .ngs-number-input::placeholder,:host ::ng-deep ngs-select::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep ngs-chip-grid:has(ngs-chip-row){margin-top:calc(var(--spacing, .25rem) * 1.5)}:host ::ng-deep .ngs-date-range-input{width:100%;border:none!important;background:transparent!important;padding:0!important;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);color:inherit;outline:none!important;display:flex;height:var(--ngs-form-field-input-height)}:host ::ng-deep .ngs-date-range-input::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep input{resize:none;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height)}:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-chip-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-chip-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-phone-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-phone-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-number-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-number-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep ngs-select::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep ngs-select .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-date-range-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-date-range-input .ngs-select-placeholder{opacity:0!important;color:transparent!important}:host .ngs-form-field-affix{display:flex;align-items:center}:host .ngs-form-field-affix:empty{display:none}:host .ngs-form-field-before{margin-right:var(--ngs-form-field-affix-gap)}:host .ngs-form-field-after{margin-left:var(--ngs-form-field-affix-gap)}:host .ngs-form-field-text-affix{color:var(--ngs-form-field-label-color);white-space:nowrap;font-size:var(--ngs-field-font-size);padding-top:var(--ngs-form-field-infix-padding-top);padding-bottom:var(--ngs-form-field-infix-padding-bottom);line-height:0}:host .subscript-wrapper{margin-top:.25rem;padding:0 .5rem;font-size:.75rem;min-height:1.375rem}:host.ngs-form-field-subscript-hidden-if-empty .subscript-wrapper:empty{display:none}:host .ngs-form-field-error{display:none}:host .ngs-form-field-hint-wrapper{display:flex;justify-content:space-between;color:var(--ngs-form-field-label-color)}:host.same-height-as-button{--ngs-form-field-input-height: var(--ngs-button-height);--ngs-form-field-container-min-height: var(--ngs-button-height)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] });
|
|
197
|
+
], queries: [{ propertyName: "control", first: true, predicate: FormFieldControl, descendants: true, isSignal: true }, { propertyName: "labelChild", first: true, predicate: Label, descendants: true, isSignal: true }, { propertyName: "prefixChildren", predicate: Prefix, isSignal: true }, { propertyName: "iconPrefixChildren", predicate: IconPrefix, isSignal: true }, { propertyName: "iconButtonPrefixChildren", predicate: IconButtonPrefix, isSignal: true }, { propertyName: "textPrefixChildren", predicate: TextPrefix, isSignal: true }, { propertyName: "suffixChildren", predicate: Suffix, isSignal: true }, { propertyName: "iconSuffixChildren", predicate: IconSuffix, isSignal: true }, { propertyName: "iconButtonSuffixChildren", predicate: IconButtonSuffix, isSignal: true }, { propertyName: "textSuffixChildren", predicate: TextSuffix, isSignal: true }, { propertyName: "hintChildren", predicate: Hint, isSignal: true }, { propertyName: "errorChildren", predicate: Error, isSignal: true }], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true, isSignal: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, isSignal: true }], exportAs: ["ngsFormField"], ngImport: i0, template: "<div class=\"ngs-form-field-wrapper\" #wrapper>\n <div class=\"ngs-form-field-container\" #container>\n @if (prefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-prefix\">\n <ng-content select=\"[ngsPrefix]\"/>\n </div>\n }\n\n @if (iconPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-prefix\">\n <ng-content select=\"[ngsIconPrefix]\"/>\n </div>\n }\n\n @if (iconButtonPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-button-prefix\">\n <ng-content select=\"[ngsIconButtonPrefix]\"/>\n </div>\n }\n\n @if (textPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-text-affix ngs-form-field-text-prefix\">\n <ng-content select=\"[ngsTextPrefix]\"/>\n </div>\n }\n\n <div class=\"ngs-form-field-infix\">\n @if (labelChild()) {\n <label class=\"ngs-form-field-label\" [attr.for]=\"control()?.id\">\n <ng-content select=\"ngs-label\"/>\n\n @if (isRequired()) {\n <span class=\"ngs-form-field-required-marker\">*</span>\n }\n </label>\n }\n <ng-content/>\n </div>\n\n @if (textSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-text-affix ngs-form-field-text-suffix\">\n <ng-content select=\"[ngsTextSuffix]\"/>\n </div>\n }\n\n @if (iconButtonSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-button-suffix\">\n <ng-content select=\"[ngsIconButtonSuffix]\"/>\n </div>\n }\n\n @if (iconSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-suffix\">\n <ng-content select=\"[ngsIconSuffix]\"/>\n </div>\n }\n\n @if (suffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-suffix\">\n <ng-content select=\"[ngsSuffix]\"/>\n </div>\n }\n </div>\n</div>\n\n<div class=\"subscript-wrapper\">\n @if (control()?.errorState && errorChildren().length > 0) {\n <ng-content select=\"ngs-error\"/>\n } @else if (hintChildren().length > 0) {\n <div class=\"ngs-form-field-hint-wrapper\">\n <ng-content select=\"ngs-hint\"/>\n </div>\n }\n</div>\n", styles: [":host{--ngs-form-field-color: var(--ngs-field-color);--ngs-form-field-border-color: var(--ngs-field-border-color);--ngs-form-field-border-width: var(--ngs-field-border-width);--ngs-form-field-border-radius: var(--ngs-field-radius);--ngs-form-field-bg: var(--ngs-field-bg);--ngs-form-field-disabled-bg: var(--ngs-field-disabled-bg);--ngs-form-field-label-color: var(--ngs-field-label-color);--ngs-form-field-error-color: var(--ngs-field-error-color);--ngs-form-field-container-min-height: var(--ngs-field-height, var(--ngs-field-container-height));--ngs-form-field-padding-x: var(--ngs-field-padding-x);--ngs-form-field-input-height: var(--ngs-field-input-height);--ngs-form-field-affix-gap: calc(var(--spacing, .25rem) * 1);--ngs-form-field-icon-affix-padding-x: calc(var(--spacing, .25rem) * 2);--ngs-form-field-icon-button-affix-padding-x: calc(var(--spacing, .25rem) * 1);--ngs-form-field-infix-padding-top: var(--ngs-field-infix-padding-top);--ngs-form-field-infix-padding-bottom: var(--ngs-field-infix-padding-bottom);--ngs-form-field-no-label-padding-y: var(--ngs-field-no-label-padding-y);display:block;width:var(--ngs-form-field-width, 100%)}:host.ngs-form-field-disabled{cursor:default}:host.ngs-form-field-disabled .ngs-form-field-container{background:var(--ngs-state-disabled-bg);border-color:var(--ngs-state-disabled-border)}:host.ngs-form-field-disabled .ngs-form-field-label{color:var(--ngs-state-disabled-color)}:host.ngs-form-field-disabled ::ng-deep input{color:var(--ngs-state-disabled-color)}:host.ngs-form-field-focused .ngs-form-field-container{border-color:var(--ngs-field-border-focus-color);box-shadow:0 0 0 1px var(--ngs-field-border-focus-color)}:host.ngs-form-field-focused .ngs-form-field-label{color:var(--ngs-form-field-color)}:host.ngs-form-field-invalid .ngs-form-field-container{border-color:var(--ngs-form-field-error-color)}:host.ngs-form-field-invalid.ngs-form-field-focused .ngs-form-field-container{box-shadow:0 0 0 1px var(--ngs-form-field-error-color)}:host.ngs-form-field-invalid .ngs-form-field-label{color:var(--ngs-form-field-error-color)}:host .ngs-form-field-wrapper{display:flex;flex-direction:column;height:var(--ngs-form-field-container-min-height)}:host .ngs-form-field-container{position:relative;box-sizing:border-box;border:var(--ngs-form-field-border-width) solid var(--ngs-form-field-border-color);border-radius:var(--ngs-form-field-border-radius);background:var(--ngs-form-field-bg);padding:0 var(--ngs-form-field-padding-x);transition:border-color .2s,box-shadow .2s;height:var(--ngs-form-field-container-min-height);min-height:var(--ngs-form-field-container-min-height);display:flex;align-items:center}:host.ngs-form-field-has-icon-prefix .ngs-form-field-container{padding-left:var(--ngs-form-field-icon-affix-padding-x)}:host.ngs-form-field-has-icon-button-prefix .ngs-form-field-container{padding-left:var(--ngs-form-field-icon-button-affix-padding-x)}:host.ngs-form-field-has-icon-suffix .ngs-form-field-container{padding-right:var(--ngs-form-field-icon-affix-padding-x)}:host.ngs-form-field-has-icon-button-suffix .ngs-form-field-container{padding-right:var(--ngs-form-field-icon-button-affix-padding-x)}:host .ngs-form-field-infix{box-sizing:border-box;flex:1;position:relative;padding:var(--ngs-form-field-infix-padding-top) 0 var(--ngs-form-field-infix-padding-bottom) 0;min-width:0;height:100%;min-height:var(--ngs-form-field-container-min-height);display:flex;flex-direction:column;overflow:hidden}:host.ngs-form-field-multiline .ngs-form-field-wrapper{height:auto;min-height:var(--ngs-form-field-container-min-height)}:host.ngs-form-field-multiline .ngs-form-field-container{height:auto;min-height:var(--ngs-form-field-container-min-height);align-items:stretch}:host.ngs-form-field-multiline .ngs-form-field-infix{height:auto;min-height:calc(var(--ngs-form-field-container-min-height) - 2px);overflow:visible}:host.ngs-form-field-multiline ::ng-deep textarea.ngs-input{min-height:var(--ngs-form-field-input-height);resize:vertical}:host:not(.ngs-form-field-has-label) .ngs-form-field-infix,:host:not(.ngs-form-field-has-label) .ngs-form-field-affix{box-sizing:border-box;padding:var(--ngs-form-field-no-label-padding-y) 0}:host:not(.ngs-form-field-has-label) .ngs-form-field-affix{height:100%}:host:not(.ngs-form-field-has-label) .ngs-form-field-infix{display:flex;justify-content:center}:host .ngs-form-field-label{position:absolute;left:0;transform:translateY(-50%);top:calc(var(--ngs-form-field-container-min-height) / 2);transform-origin:left top;font-size:var(--ngs-field-font-size);color:var(--ngs-form-field-label-color);transition:transform .2s ease,font-size .2s ease,color .2s ease,top .2s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:flex;align-items:center;gap:.125rem;pointer-events:none;z-index:1;-webkit-user-select:none;user-select:none}:host .ngs-form-field-required-marker{color:var(--ngs-form-field-error-color)}:host.ngs-form-field-should-float .ngs-form-field-label{top:4px;font-size:var(--ngs-field-label-float-font-size);transform:translateY(0)}:host ::ng-deep input{font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);outline:none!important;resize:none;text-align:var(--ngs-form-field-input-text-align, start)}:host ::ng-deep input::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep textarea{min-height:22px;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);outline:none!important;text-align:var(--ngs-form-field-input-text-align, start)}:host ::ng-deep textarea::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep .ngs-input,:host ::ng-deep .ngs-chip-input,:host ::ng-deep .ngs-phone-input,:host ::ng-deep .ngs-number-input,:host ::ng-deep ngs-select{width:100%;border:none!important;background:transparent!important;padding:0!important;color:inherit;outline:none!important;display:block}:host ::ng-deep .ngs-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-chip-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-phone-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-number-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep ngs-select:not(textarea):not(ngs-select):not(.ngs-chip-input){height:var(--ngs-form-field-input-height)}:host ::ng-deep .ngs-input:is(ngs-select),:host ::ng-deep .ngs-chip-input:is(ngs-select),:host ::ng-deep .ngs-phone-input:is(ngs-select),:host ::ng-deep .ngs-number-input:is(ngs-select),:host ::ng-deep ngs-select:is(ngs-select){height:var(--ngs-form-field-input-height);min-height:var(--ngs-form-field-input-height);overflow:hidden}:host ::ng-deep .ngs-input::placeholder,:host ::ng-deep .ngs-chip-input::placeholder,:host ::ng-deep .ngs-phone-input::placeholder,:host ::ng-deep .ngs-number-input::placeholder,:host ::ng-deep ngs-select::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep ngs-chip-grid:has(ngs-chip-row){margin-top:calc(var(--spacing, .25rem) * 1.5)}:host ::ng-deep .ngs-date-range-input{width:100%;border:none!important;background:transparent!important;padding:0!important;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);color:inherit;outline:none!important;display:flex;height:var(--ngs-form-field-input-height)}:host ::ng-deep .ngs-date-range-input::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep input{resize:none;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height)}:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-chip-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-chip-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-phone-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-phone-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-number-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-number-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep ngs-select::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep ngs-select .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-date-range-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-date-range-input .ngs-select-placeholder{opacity:0!important;color:transparent!important}:host .ngs-form-field-affix{display:flex;align-items:center}:host .ngs-form-field-affix:empty{display:none}:host .ngs-form-field-before{margin-right:var(--ngs-form-field-affix-gap)}:host .ngs-form-field-after{margin-left:var(--ngs-form-field-affix-gap)}:host .ngs-form-field-text-affix{color:var(--ngs-form-field-label-color);white-space:nowrap;font-size:var(--ngs-field-font-size);padding-top:var(--ngs-form-field-infix-padding-top);padding-bottom:var(--ngs-form-field-infix-padding-bottom);line-height:0}:host .subscript-wrapper{margin-top:.25rem;padding:0 .5rem;font-size:.75rem;min-height:1.375rem}:host.ngs-form-field-subscript-hidden-if-empty .subscript-wrapper:empty{display:none}:host .ngs-form-field-error{display:none}:host .ngs-form-field-hint-wrapper{display:flex;justify-content:space-between;color:var(--ngs-form-field-label-color)}:host.same-height-as-button{--ngs-form-field-input-height: var(--ngs-button-height);--ngs-form-field-container-min-height: var(--ngs-button-height)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] });
|
|
198
198
|
}
|
|
199
199
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: FormField, decorators: [{
|
|
200
200
|
type: Component,
|
|
@@ -219,7 +219,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
219
219
|
'[class.ngs-form-field-has-icon-button-suffix]': 'iconButtonSuffixChildren().length > 0',
|
|
220
220
|
'[class.same-height-as-button]': 'sameHeightAsButton()',
|
|
221
221
|
'(click)': '_onClick($event)'
|
|
222
|
-
}, template: "<div class=\"ngs-form-field-wrapper\" #wrapper>\n <div class=\"ngs-form-field-container\" #container>\n @if (prefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-prefix\">\n <ng-content select=\"[ngsPrefix]\"/>\n </div>\n }\n\n @if (iconPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-prefix\">\n <ng-content select=\"[ngsIconPrefix]\"/>\n </div>\n }\n\n @if (iconButtonPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-button-prefix\">\n <ng-content select=\"[ngsIconButtonPrefix]\"/>\n </div>\n }\n\n @if (textPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-text-affix ngs-form-field-text-prefix\">\n <ng-content select=\"[ngsTextPrefix]\"/>\n </div>\n }\n\n <div class=\"ngs-form-field-infix\">\n @if (labelChild()) {\n <label class=\"ngs-form-field-label\" [attr.for]=\"control()?.id\">\n <ng-content select=\"ngs-label\"/>\n\n @if (isRequired()) {\n <span class=\"ngs-form-field-required-marker\">*</span>\n }\n </label>\n }\n <ng-content/>\n </div>\n\n @if (textSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-text-affix ngs-form-field-text-suffix\">\n <ng-content select=\"[ngsTextSuffix]\"/>\n </div>\n }\n\n @if (iconButtonSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-button-suffix\">\n <ng-content select=\"[ngsIconButtonSuffix]\"/>\n </div>\n }\n\n @if (iconSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-suffix\">\n <ng-content select=\"[ngsIconSuffix]\"/>\n </div>\n }\n\n @if (suffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-suffix\">\n <ng-content select=\"[ngsSuffix]\"/>\n </div>\n }\n </div>\n</div>\n\n<div class=\"subscript-wrapper\">\n @if (control()?.errorState && errorChildren().length > 0) {\n <ng-content select=\"ngs-error\"/>\n } @else if (hintChildren().length > 0) {\n <div class=\"ngs-form-field-hint-wrapper\">\n <ng-content select=\"ngs-hint\"/>\n </div>\n }\n</div>\n", styles: [":host{--ngs-form-field-color: var(--ngs-field-color);--ngs-form-field-border-color: var(--ngs-field-border-color);--ngs-form-field-border-width: var(--ngs-field-border-width);--ngs-form-field-border-radius: var(--ngs-field-radius);--ngs-form-field-bg: var(--ngs-field-bg);--ngs-form-field-disabled-bg: var(--ngs-field-disabled-bg);--ngs-form-field-label-color: var(--ngs-field-label-color);--ngs-form-field-error-color: var(--ngs-field-error-color);--ngs-form-field-container-min-height: var(--ngs-field-height, var(--ngs-field-container-height));--ngs-form-field-padding-x: var(--ngs-field-padding-x);--ngs-form-field-input-height: var(--ngs-field-input-height);--ngs-form-field-affix-gap: calc(var(--spacing, .25rem) * 1);--ngs-form-field-icon-affix-padding-x: calc(var(--spacing, .25rem) * 2);--ngs-form-field-icon-button-affix-padding-x: calc(var(--spacing, .25rem) * 1);--ngs-form-field-infix-padding-top: var(--ngs-field-infix-padding-top);--ngs-form-field-infix-padding-bottom: var(--ngs-field-infix-padding-bottom);--ngs-form-field-no-label-padding-y: var(--ngs-field-no-label-padding-y);display:block;width:var(--ngs-form-field-width, 100%)}:host.ngs-form-field-disabled{cursor:default}:host.ngs-form-field-disabled .ngs-form-field-container{background:var(--ngs-state-disabled-bg);border-color:var(--ngs-state-disabled-border)}:host.ngs-form-field-disabled .ngs-form-field-label{color:var(--ngs-state-disabled-color)}:host.ngs-form-field-disabled ::ng-deep input{color:var(--ngs-state-disabled-color)}:host.ngs-form-field-focused .ngs-form-field-container{border-color:var(--ngs-field-border-focus-color);box-shadow:0 0 0 1px var(--ngs-field-border-focus-color)}:host.ngs-form-field-focused .ngs-form-field-label{color:var(--ngs-form-field-color)}:host.ngs-form-field-invalid .ngs-form-field-container{border-color:var(--ngs-form-field-error-color)}:host.ngs-form-field-invalid.ngs-form-field-focused .ngs-form-field-container{box-shadow:0 0 0 1px var(--ngs-form-field-error-color)}:host.ngs-form-field-invalid .ngs-form-field-label{color:var(--ngs-form-field-error-color)}:host .ngs-form-field-wrapper{display:flex;flex-direction:column;height:var(--ngs-form-field-container-min-height)}:host .ngs-form-field-container{position:relative;box-sizing:border-box;border:var(--ngs-form-field-border-width) solid var(--ngs-form-field-border-color);border-radius:var(--ngs-form-field-border-radius);background:var(--ngs-form-field-bg);padding:0 var(--ngs-form-field-padding-x);transition:border-color .2s,box-shadow .2s;height:var(--ngs-form-field-container-min-height);min-height:var(--ngs-form-field-container-min-height);display:flex;align-items:center}:host.ngs-form-field-has-icon-prefix .ngs-form-field-container{padding-left:var(--ngs-form-field-icon-affix-padding-x)}:host.ngs-form-field-has-icon-button-prefix .ngs-form-field-container{padding-left:var(--ngs-form-field-icon-button-affix-padding-x)}:host.ngs-form-field-has-icon-suffix .ngs-form-field-container{padding-right:var(--ngs-form-field-icon-affix-padding-x)}:host.ngs-form-field-has-icon-button-suffix .ngs-form-field-container{padding-right:var(--ngs-form-field-icon-button-affix-padding-x)}:host .ngs-form-field-infix{box-sizing:border-box;flex:1;position:relative;padding:var(--ngs-form-field-infix-padding-top) 0 var(--ngs-form-field-infix-padding-bottom) 0;min-width:0;height:100%;min-height:var(--ngs-form-field-container-min-height);display:flex;flex-direction:column;overflow:hidden}:host.ngs-form-field-multiline .ngs-form-field-wrapper{height:auto;min-height:var(--ngs-form-field-container-min-height)}:host.ngs-form-field-multiline .ngs-form-field-container{height:auto;min-height:var(--ngs-form-field-container-min-height);align-items:stretch}:host.ngs-form-field-multiline .ngs-form-field-infix{height:auto;min-height:calc(var(--ngs-form-field-container-min-height) - 2px);overflow:visible}:host.ngs-form-field-multiline ::ng-deep textarea.ngs-input{min-height:var(--ngs-form-field-input-height);resize:vertical}:host:not(.ngs-form-field-has-label) .ngs-form-field-infix,:host:not(.ngs-form-field-has-label) .ngs-form-field-affix{box-sizing:border-box;padding:var(--ngs-form-field-no-label-padding-y) 0}:host:not(.ngs-form-field-has-label) .ngs-form-field-affix{--ngs-button-height: calc( var(--ngs-form-field-container-min-height) - var(--ngs-form-field-no-label-padding-y) - var(--ngs-form-field-no-label-padding-y) );height:100%}:host:not(.ngs-form-field-has-label) .ngs-form-field-infix{display:flex;justify-content:center}:host .ngs-form-field-label{position:absolute;left:0;transform:translateY(-50%);top:calc(var(--ngs-form-field-container-min-height) / 2);transform-origin:left top;font-size:var(--ngs-field-font-size);color:var(--ngs-form-field-label-color);transition:transform .2s ease,font-size .2s ease,color .2s ease,top .2s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:flex;align-items:center;gap:.125rem;pointer-events:none;z-index:1;-webkit-user-select:none;user-select:none}:host .ngs-form-field-required-marker{color:var(--ngs-form-field-error-color)}:host.ngs-form-field-should-float .ngs-form-field-label{top:4px;font-size:var(--ngs-field-label-float-font-size);transform:translateY(0)}:host ::ng-deep input{font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);outline:none!important;resize:none;text-align:var(--ngs-form-field-input-text-align, start)}:host ::ng-deep input::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep textarea{min-height:22px;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);outline:none!important;text-align:var(--ngs-form-field-input-text-align, start)}:host ::ng-deep textarea::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep .ngs-input,:host ::ng-deep .ngs-chip-input,:host ::ng-deep .ngs-phone-input,:host ::ng-deep .ngs-number-input,:host ::ng-deep ngs-select{width:100%;border:none!important;background:transparent!important;padding:0!important;color:inherit;outline:none!important;display:block}:host ::ng-deep .ngs-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-chip-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-phone-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-number-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep ngs-select:not(textarea):not(ngs-select):not(.ngs-chip-input){height:var(--ngs-form-field-input-height)}:host ::ng-deep .ngs-input:is(ngs-select),:host ::ng-deep .ngs-chip-input:is(ngs-select),:host ::ng-deep .ngs-phone-input:is(ngs-select),:host ::ng-deep .ngs-number-input:is(ngs-select),:host ::ng-deep ngs-select:is(ngs-select){height:var(--ngs-form-field-input-height);min-height:var(--ngs-form-field-input-height);overflow:hidden}:host ::ng-deep .ngs-input::placeholder,:host ::ng-deep .ngs-chip-input::placeholder,:host ::ng-deep .ngs-phone-input::placeholder,:host ::ng-deep .ngs-number-input::placeholder,:host ::ng-deep ngs-select::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep ngs-chip-grid:has(ngs-chip-row){margin-top:calc(var(--spacing, .25rem) * 1.5)}:host ::ng-deep .ngs-date-range-input{width:100%;border:none!important;background:transparent!important;padding:0!important;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);color:inherit;outline:none!important;display:flex;height:var(--ngs-form-field-input-height)}:host ::ng-deep .ngs-date-range-input::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep input{resize:none;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height)}:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-chip-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-chip-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-phone-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-phone-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-number-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-number-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep ngs-select::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep ngs-select .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-date-range-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-date-range-input .ngs-select-placeholder{opacity:0!important;color:transparent!important}:host .ngs-form-field-affix{display:flex;align-items:center}:host .ngs-form-field-affix:empty{display:none}:host .ngs-form-field-before{margin-right:var(--ngs-form-field-affix-gap)}:host .ngs-form-field-after{margin-left:var(--ngs-form-field-affix-gap)}:host .ngs-form-field-text-affix{color:var(--ngs-form-field-label-color);white-space:nowrap;font-size:var(--ngs-field-font-size);padding-top:var(--ngs-form-field-infix-padding-top);padding-bottom:var(--ngs-form-field-infix-padding-bottom);line-height:0}:host .subscript-wrapper{margin-top:.25rem;padding:0 .5rem;font-size:.75rem;min-height:1.375rem}:host.ngs-form-field-subscript-hidden-if-empty .subscript-wrapper:empty{display:none}:host .ngs-form-field-error{display:none}:host .ngs-form-field-hint-wrapper{display:flex;justify-content:space-between;color:var(--ngs-form-field-label-color)}:host.same-height-as-button{--ngs-form-field-input-height: var(--ngs-button-height);--ngs-form-field-container-min-height: var(--ngs-button-height)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
|
|
222
|
+
}, template: "<div class=\"ngs-form-field-wrapper\" #wrapper>\n <div class=\"ngs-form-field-container\" #container>\n @if (prefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-prefix\">\n <ng-content select=\"[ngsPrefix]\"/>\n </div>\n }\n\n @if (iconPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-prefix\">\n <ng-content select=\"[ngsIconPrefix]\"/>\n </div>\n }\n\n @if (iconButtonPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-button-prefix\">\n <ng-content select=\"[ngsIconButtonPrefix]\"/>\n </div>\n }\n\n @if (textPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-text-affix ngs-form-field-text-prefix\">\n <ng-content select=\"[ngsTextPrefix]\"/>\n </div>\n }\n\n <div class=\"ngs-form-field-infix\">\n @if (labelChild()) {\n <label class=\"ngs-form-field-label\" [attr.for]=\"control()?.id\">\n <ng-content select=\"ngs-label\"/>\n\n @if (isRequired()) {\n <span class=\"ngs-form-field-required-marker\">*</span>\n }\n </label>\n }\n <ng-content/>\n </div>\n\n @if (textSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-text-affix ngs-form-field-text-suffix\">\n <ng-content select=\"[ngsTextSuffix]\"/>\n </div>\n }\n\n @if (iconButtonSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-button-suffix\">\n <ng-content select=\"[ngsIconButtonSuffix]\"/>\n </div>\n }\n\n @if (iconSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-suffix\">\n <ng-content select=\"[ngsIconSuffix]\"/>\n </div>\n }\n\n @if (suffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-suffix\">\n <ng-content select=\"[ngsSuffix]\"/>\n </div>\n }\n </div>\n</div>\n\n<div class=\"subscript-wrapper\">\n @if (control()?.errorState && errorChildren().length > 0) {\n <ng-content select=\"ngs-error\"/>\n } @else if (hintChildren().length > 0) {\n <div class=\"ngs-form-field-hint-wrapper\">\n <ng-content select=\"ngs-hint\"/>\n </div>\n }\n</div>\n", styles: [":host{--ngs-form-field-color: var(--ngs-field-color);--ngs-form-field-border-color: var(--ngs-field-border-color);--ngs-form-field-border-width: var(--ngs-field-border-width);--ngs-form-field-border-radius: var(--ngs-field-radius);--ngs-form-field-bg: var(--ngs-field-bg);--ngs-form-field-disabled-bg: var(--ngs-field-disabled-bg);--ngs-form-field-label-color: var(--ngs-field-label-color);--ngs-form-field-error-color: var(--ngs-field-error-color);--ngs-form-field-container-min-height: var(--ngs-field-height, var(--ngs-field-container-height));--ngs-form-field-padding-x: var(--ngs-field-padding-x);--ngs-form-field-input-height: var(--ngs-field-input-height);--ngs-form-field-affix-gap: calc(var(--spacing, .25rem) * 1);--ngs-form-field-icon-affix-padding-x: calc(var(--spacing, .25rem) * 2);--ngs-form-field-icon-button-affix-padding-x: calc(var(--spacing, .25rem) * 1);--ngs-form-field-infix-padding-top: var(--ngs-field-infix-padding-top);--ngs-form-field-infix-padding-bottom: var(--ngs-field-infix-padding-bottom);--ngs-form-field-no-label-padding-y: var(--ngs-field-no-label-padding-y);display:block;width:var(--ngs-form-field-width, 100%)}:host.ngs-form-field-disabled{cursor:default}:host.ngs-form-field-disabled .ngs-form-field-container{background:var(--ngs-state-disabled-bg);border-color:var(--ngs-state-disabled-border)}:host.ngs-form-field-disabled .ngs-form-field-label{color:var(--ngs-state-disabled-color)}:host.ngs-form-field-disabled ::ng-deep input{color:var(--ngs-state-disabled-color)}:host.ngs-form-field-focused .ngs-form-field-container{border-color:var(--ngs-field-border-focus-color);box-shadow:0 0 0 1px var(--ngs-field-border-focus-color)}:host.ngs-form-field-focused .ngs-form-field-label{color:var(--ngs-form-field-color)}:host.ngs-form-field-invalid .ngs-form-field-container{border-color:var(--ngs-form-field-error-color)}:host.ngs-form-field-invalid.ngs-form-field-focused .ngs-form-field-container{box-shadow:0 0 0 1px var(--ngs-form-field-error-color)}:host.ngs-form-field-invalid .ngs-form-field-label{color:var(--ngs-form-field-error-color)}:host .ngs-form-field-wrapper{display:flex;flex-direction:column;height:var(--ngs-form-field-container-min-height)}:host .ngs-form-field-container{position:relative;box-sizing:border-box;border:var(--ngs-form-field-border-width) solid var(--ngs-form-field-border-color);border-radius:var(--ngs-form-field-border-radius);background:var(--ngs-form-field-bg);padding:0 var(--ngs-form-field-padding-x);transition:border-color .2s,box-shadow .2s;height:var(--ngs-form-field-container-min-height);min-height:var(--ngs-form-field-container-min-height);display:flex;align-items:center}:host.ngs-form-field-has-icon-prefix .ngs-form-field-container{padding-left:var(--ngs-form-field-icon-affix-padding-x)}:host.ngs-form-field-has-icon-button-prefix .ngs-form-field-container{padding-left:var(--ngs-form-field-icon-button-affix-padding-x)}:host.ngs-form-field-has-icon-suffix .ngs-form-field-container{padding-right:var(--ngs-form-field-icon-affix-padding-x)}:host.ngs-form-field-has-icon-button-suffix .ngs-form-field-container{padding-right:var(--ngs-form-field-icon-button-affix-padding-x)}:host .ngs-form-field-infix{box-sizing:border-box;flex:1;position:relative;padding:var(--ngs-form-field-infix-padding-top) 0 var(--ngs-form-field-infix-padding-bottom) 0;min-width:0;height:100%;min-height:var(--ngs-form-field-container-min-height);display:flex;flex-direction:column;overflow:hidden}:host.ngs-form-field-multiline .ngs-form-field-wrapper{height:auto;min-height:var(--ngs-form-field-container-min-height)}:host.ngs-form-field-multiline .ngs-form-field-container{height:auto;min-height:var(--ngs-form-field-container-min-height);align-items:stretch}:host.ngs-form-field-multiline .ngs-form-field-infix{height:auto;min-height:calc(var(--ngs-form-field-container-min-height) - 2px);overflow:visible}:host.ngs-form-field-multiline ::ng-deep textarea.ngs-input{min-height:var(--ngs-form-field-input-height);resize:vertical}:host:not(.ngs-form-field-has-label) .ngs-form-field-infix,:host:not(.ngs-form-field-has-label) .ngs-form-field-affix{box-sizing:border-box;padding:var(--ngs-form-field-no-label-padding-y) 0}:host:not(.ngs-form-field-has-label) .ngs-form-field-affix{height:100%}:host:not(.ngs-form-field-has-label) .ngs-form-field-infix{display:flex;justify-content:center}:host .ngs-form-field-label{position:absolute;left:0;transform:translateY(-50%);top:calc(var(--ngs-form-field-container-min-height) / 2);transform-origin:left top;font-size:var(--ngs-field-font-size);color:var(--ngs-form-field-label-color);transition:transform .2s ease,font-size .2s ease,color .2s ease,top .2s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:flex;align-items:center;gap:.125rem;pointer-events:none;z-index:1;-webkit-user-select:none;user-select:none}:host .ngs-form-field-required-marker{color:var(--ngs-form-field-error-color)}:host.ngs-form-field-should-float .ngs-form-field-label{top:4px;font-size:var(--ngs-field-label-float-font-size);transform:translateY(0)}:host ::ng-deep input{font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);outline:none!important;resize:none;text-align:var(--ngs-form-field-input-text-align, start)}:host ::ng-deep input::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep textarea{min-height:22px;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);outline:none!important;text-align:var(--ngs-form-field-input-text-align, start)}:host ::ng-deep textarea::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep .ngs-input,:host ::ng-deep .ngs-chip-input,:host ::ng-deep .ngs-phone-input,:host ::ng-deep .ngs-number-input,:host ::ng-deep ngs-select{width:100%;border:none!important;background:transparent!important;padding:0!important;color:inherit;outline:none!important;display:block}:host ::ng-deep .ngs-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-chip-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-phone-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep .ngs-number-input:not(textarea):not(ngs-select):not(.ngs-chip-input),:host ::ng-deep ngs-select:not(textarea):not(ngs-select):not(.ngs-chip-input){height:var(--ngs-form-field-input-height)}:host ::ng-deep .ngs-input:is(ngs-select),:host ::ng-deep .ngs-chip-input:is(ngs-select),:host ::ng-deep .ngs-phone-input:is(ngs-select),:host ::ng-deep .ngs-number-input:is(ngs-select),:host ::ng-deep ngs-select:is(ngs-select){height:var(--ngs-form-field-input-height);min-height:var(--ngs-form-field-input-height);overflow:hidden}:host ::ng-deep .ngs-input::placeholder,:host ::ng-deep .ngs-chip-input::placeholder,:host ::ng-deep .ngs-phone-input::placeholder,:host ::ng-deep .ngs-number-input::placeholder,:host ::ng-deep ngs-select::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep ngs-chip-grid:has(ngs-chip-row){margin-top:calc(var(--spacing, .25rem) * 1.5)}:host ::ng-deep .ngs-date-range-input{width:100%;border:none!important;background:transparent!important;padding:0!important;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height);color:inherit;outline:none!important;display:flex;height:var(--ngs-form-field-input-height)}:host ::ng-deep .ngs-date-range-input::placeholder{color:var(--ngs-form-field-label-color);transition:opacity .2s}:host ::ng-deep input{resize:none;font-size:var(--ngs-field-font-size);line-height:var(--ngs-field-line-height)}:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-chip-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-chip-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-phone-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-phone-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-number-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-number-input .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep ngs-select::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep ngs-select .ngs-select-placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-date-range-input::placeholder,:host.ngs-form-field-has-label:not(.ngs-form-field-should-float) ::ng-deep .ngs-date-range-input .ngs-select-placeholder{opacity:0!important;color:transparent!important}:host .ngs-form-field-affix{display:flex;align-items:center}:host .ngs-form-field-affix:empty{display:none}:host .ngs-form-field-before{margin-right:var(--ngs-form-field-affix-gap)}:host .ngs-form-field-after{margin-left:var(--ngs-form-field-affix-gap)}:host .ngs-form-field-text-affix{color:var(--ngs-form-field-label-color);white-space:nowrap;font-size:var(--ngs-field-font-size);padding-top:var(--ngs-form-field-infix-padding-top);padding-bottom:var(--ngs-form-field-infix-padding-bottom);line-height:0}:host .subscript-wrapper{margin-top:.25rem;padding:0 .5rem;font-size:.75rem;min-height:1.375rem}:host.ngs-form-field-subscript-hidden-if-empty .subscript-wrapper:empty{display:none}:host .ngs-form-field-error{display:none}:host .ngs-form-field-hint-wrapper{display:flex;justify-content:space-between;color:var(--ngs-form-field-label-color)}:host.same-height-as-button{--ngs-form-field-input-height: var(--ngs-button-height);--ngs-form-field-container-min-height: var(--ngs-button-height)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
|
|
223
223
|
}], propDecorators: { subscriptHiddenIfEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "subscriptHiddenIfEmpty", required: false }] }], sameHeightAsButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "sameHeightAsButton", required: false }] }], wrapper: [{ type: i0.ViewChild, args: ['wrapper', { isSignal: true }] }], container: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], control: [{ type: i0.ContentChild, args: [i0.forwardRef(() => FormFieldControl), { isSignal: true }] }], labelChild: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Label), { isSignal: true }] }], prefixChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Prefix), { isSignal: true }] }], iconPrefixChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => IconPrefix), { isSignal: true }] }], iconButtonPrefixChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => IconButtonPrefix), { isSignal: true }] }], textPrefixChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TextPrefix), { isSignal: true }] }], suffixChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Suffix), { isSignal: true }] }], iconSuffixChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => IconSuffix), { isSignal: true }] }], iconButtonSuffixChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => IconButtonSuffix), { isSignal: true }] }], textSuffixChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TextSuffix), { isSignal: true }] }], hintChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Hint), { isSignal: true }] }], errorChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Error), { isSignal: true }] }] } });
|
|
224
224
|
|
|
225
225
|
const FORM_FIELD_DEFAULT_OPTIONS = new InjectionToken('FORM_FIELD_DEFAULT_OPTIONS');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-form-field.mjs","sources":["../../../projects/components/form-field/src/label/label.ts","../../../projects/components/form-field/src/label/label.html","../../../projects/components/form-field/src/form-field-control.ts","../../../projects/components/form-field/src/hint/hint.ts","../../../projects/components/form-field/src/hint/hint.html","../../../projects/components/form-field/src/error/error.ts","../../../projects/components/form-field/src/error/error.html","../../../projects/components/form-field/src/prefix-suffix/prefix-suffix.ts","../../../projects/components/form-field/src/form-field-token.ts","../../../projects/components/form-field/src/form-field/form-field.ts","../../../projects/components/form-field/src/form-field/form-field.html","../../../projects/components/form-field/src/form-field/form-field-errors.ts","../../../projects/components/form-field/ngstarter-ui-components-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-label',\n templateUrl: './label.html',\n styleUrl: './label.scss',\n host: {\n 'class': 'ngs-label',\n }\n})\nexport class Label {\n}\n","<ng-content/>\n","import { Injectable } from '@angular/core';\n\n@Injectable()\nexport abstract class FormFieldControl<T> {\n abstract value: T | null;\n abstract readonly stateChanges: any;\n abstract readonly id: string;\n abstract readonly placeholder: string | undefined;\n abstract readonly ngControl: any;\n abstract readonly focused: boolean;\n abstract readonly empty: boolean;\n abstract readonly shouldLabelFloat: boolean;\n abstract readonly required: boolean;\n abstract readonly disabled: boolean;\n abstract readonly errorState: boolean;\n readonly multiline?: boolean;\n abstract focus(): void;\n}\n","import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'ngs-hint',\n exportAs: 'ngsHint',\n templateUrl: './hint.html',\n styleUrl: './hint.scss',\n host: {\n 'class': 'ngs-hint',\n '[class.ngs-hint-end]': 'align() === \"end\"',\n }\n})\nexport class Hint {\n align = input<'start' | 'end'>('start');\n}\n","<ng-content />\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-error',\n exportAs: 'ngsError',\n templateUrl: './error.html',\n styleUrl: './error.scss',\n host: {\n 'class': 'ngs-error',\n 'role': 'alert',\n }\n})\nexport class Error {}\n","<ng-content />\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsPrefix]',\n})\nexport class Prefix {}\n\n@Directive({\n selector: '[ngsTextPrefix]',\n})\nexport class TextPrefix {}\n\n@Directive({\n selector: '[ngsIconPrefix]',\n})\nexport class IconPrefix {}\n\n@Directive({\n selector: '[ngsIconButtonPrefix]',\n})\nexport class IconButtonPrefix {}\n\n@Directive({\n selector: '[ngsSuffix]',\n})\nexport class Suffix {}\n\n@Directive({\n selector: '[ngsTextSuffix]',\n})\nexport class TextSuffix {}\n\n@Directive({\n selector: '[ngsIconSuffix]',\n})\nexport class IconSuffix {}\n\n@Directive({\n selector: '[ngsIconButtonSuffix]',\n})\nexport class IconButtonSuffix {}\n","import { InjectionToken } from '@angular/core';\n\nexport const FORM_FIELD = new InjectionToken<any>('FORM_FIELD');\n","import {\n booleanAttribute,\n Component,\n contentChild,\n contentChildren,\n ElementRef,\n inject,\n input,\n viewChild,\n computed,\n} from '@angular/core';\nimport { FormFieldControl } from '../form-field-control';\nimport { Label } from '../label/label';\nimport { FORM_FIELD } from '../form-field-token';\nimport { Prefix, Suffix, TextPrefix, TextSuffix, IconPrefix, IconButtonPrefix, IconSuffix, IconButtonSuffix } from '../prefix-suffix/prefix-suffix';\nimport { Hint } from '../hint/hint';\nimport { Error } from '../error/error';\n\n@Component({\n selector: 'ngs-form-field',\n exportAs: 'ngsFormField',\n templateUrl: './form-field.html',\n styleUrl: './form-field.scss',\n imports: [],\n providers: [\n {\n provide: FORM_FIELD,\n useExisting: FormField\n }\n ],\n host: {\n 'class': 'ngs-form-field',\n '[class.ngs-form-field-disabled]': 'control()?.disabled',\n '[class.ngs-form-field-invalid]': 'control()?.errorState',\n '[class.ngs-form-field-should-float]': 'shouldLabelFloat()',\n '[class.ngs-form-field-has-label]': 'labelChild()',\n '[class.ngs-form-field-empty]': 'control()?.empty',\n '[class.ngs-form-field-focused]': 'control()?.focused',\n '[class.ngs-form-field-multiline]': 'control()?.multiline',\n '[class.ngs-form-field-subscript-hidden-if-empty]': 'subscriptHiddenIfEmpty()',\n '[class.ngs-form-field-has-icon-prefix]': 'iconPrefixChildren().length > 0',\n '[class.ngs-form-field-has-icon-button-prefix]': 'iconButtonPrefixChildren().length > 0',\n '[class.ngs-form-field-has-icon-suffix]': 'iconSuffixChildren().length > 0',\n '[class.ngs-form-field-has-icon-button-suffix]': 'iconButtonSuffixChildren().length > 0',\n '[class.same-height-as-button]': 'sameHeightAsButton()',\n '(click)': '_onClick($event)'\n }\n})\nexport class FormField {\n readonly elementRef = inject(ElementRef);\n\n subscriptHiddenIfEmpty = input(false, {\n transform: booleanAttribute\n });\n sameHeightAsButton = input(false, {\n transform: booleanAttribute\n });\n wrapper = viewChild.required<ElementRef>('wrapper');\n container = viewChild.required<ElementRef>('container');\n control = contentChild(FormFieldControl);\n labelChild = contentChild(Label);\n prefixChildren = contentChildren(Prefix);\n iconPrefixChildren = contentChildren(IconPrefix);\n iconButtonPrefixChildren = contentChildren(IconButtonPrefix);\n textPrefixChildren = contentChildren(TextPrefix);\n suffixChildren = contentChildren(Suffix);\n iconSuffixChildren = contentChildren(IconSuffix);\n iconButtonSuffixChildren = contentChildren(IconButtonSuffix);\n textSuffixChildren = contentChildren(TextSuffix);\n hintChildren = contentChildren(Hint);\n errorChildren = contentChildren(Error);\n isRequired = computed(() => {\n const control = this.control();\n if (!control) {\n return false;\n }\n\n if (control.required) {\n return true;\n }\n\n const ngControl = control.ngControl;\n if (ngControl && ngControl.control && ngControl.control.validator) {\n const validator = ngControl.control.validator({} as any);\n if (validator && validator['required']) {\n return true;\n }\n }\n\n return false;\n });\n\n shouldLabelFloat(): boolean {\n return !!this.control()?.shouldLabelFloat;\n }\n\n protected _onClick(event: MouseEvent): void {\n const target = event.target as HTMLElement;\n const wrapper = this.wrapper().nativeElement;\n const isInsideWrapper = wrapper.contains(target);\n\n if (!isInsideWrapper) {\n return;\n }\n\n const isIconButton = !!target.closest('.ngs-icon-button') || !!target.closest('[ngsIconButton]');\n const isToggle = !!target.closest('ngs-datepicker-toggle') || !!target.closest('ngs-date-range-picker');\n\n if (this.control()?.focused || isIconButton || isToggle) {\n return;\n }\n\n this.focus();\n event.stopPropagation();\n }\n\n focus(): void {\n const control = this.control();\n if (control && !control.disabled) {\n control.focus();\n }\n }\n}\n","<div class=\"ngs-form-field-wrapper\" #wrapper>\n <div class=\"ngs-form-field-container\" #container>\n @if (prefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-prefix\">\n <ng-content select=\"[ngsPrefix]\"/>\n </div>\n }\n\n @if (iconPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-prefix\">\n <ng-content select=\"[ngsIconPrefix]\"/>\n </div>\n }\n\n @if (iconButtonPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-button-prefix\">\n <ng-content select=\"[ngsIconButtonPrefix]\"/>\n </div>\n }\n\n @if (textPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-text-affix ngs-form-field-text-prefix\">\n <ng-content select=\"[ngsTextPrefix]\"/>\n </div>\n }\n\n <div class=\"ngs-form-field-infix\">\n @if (labelChild()) {\n <label class=\"ngs-form-field-label\" [attr.for]=\"control()?.id\">\n <ng-content select=\"ngs-label\"/>\n\n @if (isRequired()) {\n <span class=\"ngs-form-field-required-marker\">*</span>\n }\n </label>\n }\n <ng-content/>\n </div>\n\n @if (textSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-text-affix ngs-form-field-text-suffix\">\n <ng-content select=\"[ngsTextSuffix]\"/>\n </div>\n }\n\n @if (iconButtonSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-button-suffix\">\n <ng-content select=\"[ngsIconButtonSuffix]\"/>\n </div>\n }\n\n @if (iconSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-suffix\">\n <ng-content select=\"[ngsIconSuffix]\"/>\n </div>\n }\n\n @if (suffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-suffix\">\n <ng-content select=\"[ngsSuffix]\"/>\n </div>\n }\n </div>\n</div>\n\n<div class=\"subscript-wrapper\">\n @if (control()?.errorState && errorChildren().length > 0) {\n <ng-content select=\"ngs-error\"/>\n } @else if (hintChildren().length > 0) {\n <div class=\"ngs-form-field-hint-wrapper\">\n <ng-content select=\"ngs-hint\"/>\n </div>\n }\n</div>\n","import { InjectionToken } from '@angular/core';\n\nexport interface FormFieldDefaultOptions {\n appearance?: 'fill' | 'outline';\n color?: string;\n hideRequiredMarker?: boolean;\n floatLabel?: 'always' | 'auto';\n subscriptHiddenIfEmpty?: boolean;\n}\n\nexport const FORM_FIELD_DEFAULT_OPTIONS = new InjectionToken<FormFieldDefaultOptions>(\n 'FORM_FIELD_DEFAULT_OPTIONS'\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAUa,KAAK,CAAA;uGAAL,KAAK,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAL,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAK,4GCVlB,iBACA,EAAA,MAAA,EAAA,CAAA,kGAAA,CAAA,EAAA,CAAA;;2FDSa,KAAK,EAAA,UAAA,EAAA,CAAA;kBARjB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,IAAA,EAGf;AACJ,wBAAA,OAAO,EAAE,WAAW;AACrB,qBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,kGAAA,CAAA,EAAA;;;MELmB,gBAAgB,CAAA;AAY3B,IAAA,SAAS;uGAZE,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAhB,gBAAgB,EAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBADrC;;;MCUY,IAAI,CAAA;AACf,IAAA,KAAK,GAAG,KAAK,CAAkB,OAAO,4EAAC;uGAD5B,IAAI,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAJ,IAAA,OAAA,IAAA,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A,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACF,UAAU,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,wBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACJ,gBAAgB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACtB,UAAU,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAChB,IAAI,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACH,KAAK,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ME5D1B,0BAA0B,GAAG,IAAI,cAAc,CAC1D,4BAA4B;;ACX9B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngstarter-ui-components-form-field.mjs","sources":["../../../projects/components/form-field/src/label/label.ts","../../../projects/components/form-field/src/label/label.html","../../../projects/components/form-field/src/form-field-control.ts","../../../projects/components/form-field/src/hint/hint.ts","../../../projects/components/form-field/src/hint/hint.html","../../../projects/components/form-field/src/error/error.ts","../../../projects/components/form-field/src/error/error.html","../../../projects/components/form-field/src/prefix-suffix/prefix-suffix.ts","../../../projects/components/form-field/src/form-field-token.ts","../../../projects/components/form-field/src/form-field/form-field.ts","../../../projects/components/form-field/src/form-field/form-field.html","../../../projects/components/form-field/src/form-field/form-field-errors.ts","../../../projects/components/form-field/ngstarter-ui-components-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-label',\n templateUrl: './label.html',\n styleUrl: './label.scss',\n host: {\n 'class': 'ngs-label',\n }\n})\nexport class Label {\n}\n","<ng-content/>\n","import { Injectable } from '@angular/core';\n\n@Injectable()\nexport abstract class FormFieldControl<T> {\n abstract value: T | null;\n abstract readonly stateChanges: any;\n abstract readonly id: string;\n abstract readonly placeholder: string | undefined;\n abstract readonly ngControl: any;\n abstract readonly focused: boolean;\n abstract readonly empty: boolean;\n abstract readonly shouldLabelFloat: boolean;\n abstract readonly required: boolean;\n abstract readonly disabled: boolean;\n abstract readonly errorState: boolean;\n readonly multiline?: boolean;\n abstract focus(): void;\n}\n","import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'ngs-hint',\n exportAs: 'ngsHint',\n templateUrl: './hint.html',\n styleUrl: './hint.scss',\n host: {\n 'class': 'ngs-hint',\n '[class.ngs-hint-end]': 'align() === \"end\"',\n }\n})\nexport class Hint {\n align = input<'start' | 'end'>('start');\n}\n","<ng-content />\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-error',\n exportAs: 'ngsError',\n templateUrl: './error.html',\n styleUrl: './error.scss',\n host: {\n 'class': 'ngs-error',\n 'role': 'alert',\n }\n})\nexport class Error {}\n","<ng-content />\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsPrefix]',\n})\nexport class Prefix {}\n\n@Directive({\n selector: '[ngsTextPrefix]',\n})\nexport class TextPrefix {}\n\n@Directive({\n selector: '[ngsIconPrefix]',\n})\nexport class IconPrefix {}\n\n@Directive({\n selector: '[ngsIconButtonPrefix]',\n})\nexport class IconButtonPrefix {}\n\n@Directive({\n selector: '[ngsSuffix]',\n})\nexport class Suffix {}\n\n@Directive({\n selector: '[ngsTextSuffix]',\n})\nexport class TextSuffix {}\n\n@Directive({\n selector: '[ngsIconSuffix]',\n})\nexport class IconSuffix {}\n\n@Directive({\n selector: '[ngsIconButtonSuffix]',\n})\nexport class IconButtonSuffix {}\n","import { InjectionToken } from '@angular/core';\n\nexport const FORM_FIELD = new InjectionToken<any>('FORM_FIELD');\n","import {\n booleanAttribute,\n Component,\n contentChild,\n contentChildren,\n ElementRef,\n inject,\n input,\n viewChild,\n computed,\n} from '@angular/core';\nimport { FormFieldControl } from '../form-field-control';\nimport { Label } from '../label/label';\nimport { FORM_FIELD } from '../form-field-token';\nimport { Prefix, Suffix, TextPrefix, TextSuffix, IconPrefix, IconButtonPrefix, IconSuffix, IconButtonSuffix } from '../prefix-suffix/prefix-suffix';\nimport { Hint } from '../hint/hint';\nimport { Error } from '../error/error';\n\n@Component({\n selector: 'ngs-form-field',\n exportAs: 'ngsFormField',\n templateUrl: './form-field.html',\n styleUrl: './form-field.scss',\n imports: [],\n providers: [\n {\n provide: FORM_FIELD,\n useExisting: FormField\n }\n ],\n host: {\n 'class': 'ngs-form-field',\n '[class.ngs-form-field-disabled]': 'control()?.disabled',\n '[class.ngs-form-field-invalid]': 'control()?.errorState',\n '[class.ngs-form-field-should-float]': 'shouldLabelFloat()',\n '[class.ngs-form-field-has-label]': 'labelChild()',\n '[class.ngs-form-field-empty]': 'control()?.empty',\n '[class.ngs-form-field-focused]': 'control()?.focused',\n '[class.ngs-form-field-multiline]': 'control()?.multiline',\n '[class.ngs-form-field-subscript-hidden-if-empty]': 'subscriptHiddenIfEmpty()',\n '[class.ngs-form-field-has-icon-prefix]': 'iconPrefixChildren().length > 0',\n '[class.ngs-form-field-has-icon-button-prefix]': 'iconButtonPrefixChildren().length > 0',\n '[class.ngs-form-field-has-icon-suffix]': 'iconSuffixChildren().length > 0',\n '[class.ngs-form-field-has-icon-button-suffix]': 'iconButtonSuffixChildren().length > 0',\n '[class.same-height-as-button]': 'sameHeightAsButton()',\n '(click)': '_onClick($event)'\n }\n})\nexport class FormField {\n readonly elementRef = inject(ElementRef);\n\n subscriptHiddenIfEmpty = input(false, {\n transform: booleanAttribute\n });\n sameHeightAsButton = input(false, {\n transform: booleanAttribute\n });\n wrapper = viewChild.required<ElementRef>('wrapper');\n container = viewChild.required<ElementRef>('container');\n control = contentChild(FormFieldControl);\n labelChild = contentChild(Label);\n prefixChildren = contentChildren(Prefix);\n iconPrefixChildren = contentChildren(IconPrefix);\n iconButtonPrefixChildren = contentChildren(IconButtonPrefix);\n textPrefixChildren = contentChildren(TextPrefix);\n suffixChildren = contentChildren(Suffix);\n iconSuffixChildren = contentChildren(IconSuffix);\n iconButtonSuffixChildren = contentChildren(IconButtonSuffix);\n textSuffixChildren = contentChildren(TextSuffix);\n hintChildren = contentChildren(Hint);\n errorChildren = contentChildren(Error);\n isRequired = computed(() => {\n const control = this.control();\n if (!control) {\n return false;\n }\n\n if (control.required) {\n return true;\n }\n\n const ngControl = control.ngControl;\n if (ngControl && ngControl.control && ngControl.control.validator) {\n const validator = ngControl.control.validator({} as any);\n if (validator && validator['required']) {\n return true;\n }\n }\n\n return false;\n });\n\n shouldLabelFloat(): boolean {\n return !!this.control()?.shouldLabelFloat;\n }\n\n protected _onClick(event: MouseEvent): void {\n const target = event.target as HTMLElement;\n const wrapper = this.wrapper().nativeElement;\n const isInsideWrapper = wrapper.contains(target);\n\n if (!isInsideWrapper) {\n return;\n }\n\n const isIconButton = !!target.closest('.ngs-icon-button') || !!target.closest('[ngsIconButton]');\n const isToggle = !!target.closest('ngs-datepicker-toggle') || !!target.closest('ngs-date-range-picker');\n\n if (this.control()?.focused || isIconButton || isToggle) {\n return;\n }\n\n this.focus();\n event.stopPropagation();\n }\n\n focus(): void {\n const control = this.control();\n if (control && !control.disabled) {\n control.focus();\n }\n }\n}\n","<div class=\"ngs-form-field-wrapper\" #wrapper>\n <div class=\"ngs-form-field-container\" #container>\n @if (prefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-prefix\">\n <ng-content select=\"[ngsPrefix]\"/>\n </div>\n }\n\n @if (iconPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-prefix\">\n <ng-content select=\"[ngsIconPrefix]\"/>\n </div>\n }\n\n @if (iconButtonPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-icon-affix ngs-form-field-icon-button-prefix\">\n <ng-content select=\"[ngsIconButtonPrefix]\"/>\n </div>\n }\n\n @if (textPrefixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-before ngs-form-field-text-affix ngs-form-field-text-prefix\">\n <ng-content select=\"[ngsTextPrefix]\"/>\n </div>\n }\n\n <div class=\"ngs-form-field-infix\">\n @if (labelChild()) {\n <label class=\"ngs-form-field-label\" [attr.for]=\"control()?.id\">\n <ng-content select=\"ngs-label\"/>\n\n @if (isRequired()) {\n <span class=\"ngs-form-field-required-marker\">*</span>\n }\n </label>\n }\n <ng-content/>\n </div>\n\n @if (textSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-text-affix ngs-form-field-text-suffix\">\n <ng-content select=\"[ngsTextSuffix]\"/>\n </div>\n }\n\n @if (iconButtonSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-button-suffix\">\n <ng-content select=\"[ngsIconButtonSuffix]\"/>\n </div>\n }\n\n @if (iconSuffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-icon-affix ngs-form-field-icon-suffix\">\n <ng-content select=\"[ngsIconSuffix]\"/>\n </div>\n }\n\n @if (suffixChildren().length > 0) {\n <div class=\"ngs-form-field-affix ngs-form-field-after ngs-form-field-suffix\">\n <ng-content select=\"[ngsSuffix]\"/>\n </div>\n }\n </div>\n</div>\n\n<div class=\"subscript-wrapper\">\n @if (control()?.errorState && errorChildren().length > 0) {\n <ng-content select=\"ngs-error\"/>\n } @else if (hintChildren().length > 0) {\n <div class=\"ngs-form-field-hint-wrapper\">\n <ng-content select=\"ngs-hint\"/>\n </div>\n }\n</div>\n","import { InjectionToken } from '@angular/core';\n\nexport interface FormFieldDefaultOptions {\n appearance?: 'fill' | 'outline';\n color?: string;\n hideRequiredMarker?: boolean;\n floatLabel?: 'always' | 'auto';\n subscriptHiddenIfEmpty?: boolean;\n}\n\nexport const FORM_FIELD_DEFAULT_OPTIONS = new InjectionToken<FormFieldDefaultOptions>(\n 'FORM_FIELD_DEFAULT_OPTIONS'\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAUa,KAAK,CAAA;uGAAL,KAAK,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAL,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAK,4GCVlB,iBACA,EAAA,MAAA,EAAA,CAAA,kGAAA,CAAA,EAAA,CAAA;;2FDSa,KAAK,EAAA,UAAA,EAAA,CAAA;kBARjB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,IAAA,EAGf;AACJ,wBAAA,OAAO,EAAE,WAAW;AACrB,qBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,kGAAA,CAAA,EAAA;;;MELmB,gBAAgB,CAAA;AAY3B,IAAA,SAAS;uGAZE,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2G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ME5D1B,0BAA0B,GAAG,IAAI,cAAc,CAC1D,4BAA4B;;ACX9B;;AAEG;;;;"}
|
|
@@ -1,14 +1,111 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, signal, input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { loadIcon } from 'iconify-icon';
|
|
2
|
+
import { Injectable, inject, signal, input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
3
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
4
|
import { v7 } from 'uuid';
|
|
5
|
+
import { getIcon, loadIcons } from 'iconify-icon';
|
|
6
|
+
|
|
7
|
+
class IconRegistry {
|
|
8
|
+
_cache = new Map();
|
|
9
|
+
_pending = new Map();
|
|
10
|
+
_queue = new Map();
|
|
11
|
+
_flushQueued = false;
|
|
12
|
+
get(name) {
|
|
13
|
+
const cached = this._cache.get(name);
|
|
14
|
+
if (cached) {
|
|
15
|
+
return Promise.resolve(cached);
|
|
16
|
+
}
|
|
17
|
+
const iconifyCached = getIcon(name);
|
|
18
|
+
if (iconifyCached) {
|
|
19
|
+
this._cache.set(name, iconifyCached);
|
|
20
|
+
return Promise.resolve(iconifyCached);
|
|
21
|
+
}
|
|
22
|
+
const pending = this._pending.get(name);
|
|
23
|
+
if (pending) {
|
|
24
|
+
return pending;
|
|
25
|
+
}
|
|
26
|
+
const promise = new Promise((resolve, reject) => {
|
|
27
|
+
const queued = this._queue.get(name);
|
|
28
|
+
if (queued) {
|
|
29
|
+
queued.push({ resolve, reject });
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this._queue.set(name, [{ resolve, reject }]);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
this._pending.set(name, promise);
|
|
36
|
+
this._scheduleFlush();
|
|
37
|
+
return promise;
|
|
38
|
+
}
|
|
39
|
+
clear() {
|
|
40
|
+
this._cache.clear();
|
|
41
|
+
this._pending.clear();
|
|
42
|
+
this._queue.clear();
|
|
43
|
+
this._flushQueued = false;
|
|
44
|
+
}
|
|
45
|
+
_scheduleFlush() {
|
|
46
|
+
if (this._flushQueued) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this._flushQueued = true;
|
|
50
|
+
queueMicrotask(() => this._flush());
|
|
51
|
+
}
|
|
52
|
+
_flush() {
|
|
53
|
+
this._flushQueued = false;
|
|
54
|
+
const names = Array.from(this._queue.keys());
|
|
55
|
+
if (!names.length) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
loadIcons(names, (loaded, missing, pending) => {
|
|
59
|
+
loaded.forEach(icon => this._resolve(this._serializeName(icon)));
|
|
60
|
+
missing.forEach(icon => this._reject(this._serializeName(icon), new Error(`Icon "${this._serializeName(icon)}" not found.`)));
|
|
61
|
+
if (!pending.length) {
|
|
62
|
+
names.forEach(name => {
|
|
63
|
+
if (this._queue.has(name)) {
|
|
64
|
+
this._reject(name, new Error(`Icon "${name}" was not loaded.`));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
_resolve(name) {
|
|
71
|
+
const icon = getIcon(name);
|
|
72
|
+
if (!icon) {
|
|
73
|
+
this._reject(name, new Error(`Icon "${name}" was loaded but no data was returned.`));
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
this._cache.set(name, icon);
|
|
77
|
+
this._pending.delete(name);
|
|
78
|
+
const queued = this._queue.get(name) ?? [];
|
|
79
|
+
this._queue.delete(name);
|
|
80
|
+
queued.forEach(item => item.resolve(icon));
|
|
81
|
+
}
|
|
82
|
+
_reject(name, reason) {
|
|
83
|
+
this._pending.delete(name);
|
|
84
|
+
const queued = this._queue.get(name) ?? [];
|
|
85
|
+
this._queue.delete(name);
|
|
86
|
+
queued.forEach(item => item.reject(reason));
|
|
87
|
+
}
|
|
88
|
+
_serializeName(icon) {
|
|
89
|
+
const provider = icon.provider ? `@${icon.provider}:` : '';
|
|
90
|
+
return `${provider}${icon.prefix}:${icon.name}`;
|
|
91
|
+
}
|
|
92
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: IconRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
93
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: IconRegistry, providedIn: 'root' });
|
|
94
|
+
}
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: IconRegistry, decorators: [{
|
|
96
|
+
type: Injectable,
|
|
97
|
+
args: [{
|
|
98
|
+
providedIn: 'root',
|
|
99
|
+
}]
|
|
100
|
+
}] });
|
|
6
101
|
|
|
7
102
|
class Icon {
|
|
8
103
|
_sanitizer = inject(DomSanitizer);
|
|
104
|
+
_iconRegistry = inject(IconRegistry);
|
|
9
105
|
_iconHtml = signal(null, ...(ngDevMode ? [{ debugName: "_iconHtml" }] : /* istanbul ignore next */ []));
|
|
10
106
|
name = input.required(...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
11
107
|
loaded = false;
|
|
108
|
+
loadId = 0;
|
|
12
109
|
async ngOnInit() {
|
|
13
110
|
await this._loadIcon();
|
|
14
111
|
}
|
|
@@ -25,18 +122,32 @@ class Icon {
|
|
|
25
122
|
if (this.loaded) {
|
|
26
123
|
return;
|
|
27
124
|
}
|
|
28
|
-
|
|
125
|
+
const name = this.name();
|
|
126
|
+
const loadId = ++this.loadId;
|
|
127
|
+
if (!name) {
|
|
29
128
|
this.loaded = true;
|
|
129
|
+
this._iconHtml.set(null);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const data = await this._iconRegistry.get(name).catch(() => null);
|
|
133
|
+
if (loadId !== this.loadId || !data) {
|
|
30
134
|
return;
|
|
31
135
|
}
|
|
32
|
-
const data = await loadIcon(this.name());
|
|
33
136
|
let body = data.body;
|
|
34
137
|
// If svg icon has mask of defs with id, we need to replace to unique id
|
|
35
138
|
// because the same icons can be used on the same page and use the same id, which can cause problems.
|
|
36
|
-
const allIdMatches = [...body.matchAll(/id="(
|
|
139
|
+
const allIdMatches = [...body.matchAll(/id="([^"]+)"/g)];
|
|
37
140
|
if (allIdMatches.length > 0) {
|
|
141
|
+
const idMap = new Map();
|
|
38
142
|
allIdMatches.forEach(match => {
|
|
39
|
-
|
|
143
|
+
idMap.set(match[1], v7());
|
|
144
|
+
});
|
|
145
|
+
idMap.forEach((nextId, previousId) => {
|
|
146
|
+
body = body
|
|
147
|
+
.replaceAll(`id="${previousId}"`, `id="${nextId}"`)
|
|
148
|
+
.replaceAll(`url(#${previousId})`, `url(#${nextId})`)
|
|
149
|
+
.replaceAll(`href="#${previousId}"`, `href="#${nextId}"`)
|
|
150
|
+
.replaceAll(`xlink:href="#${previousId}"`, `xlink:href="#${nextId}"`);
|
|
40
151
|
});
|
|
41
152
|
}
|
|
42
153
|
const iconHtml = `<svg viewBox="0 0 ${data.width} ${data.height}">${body}</svg>`;
|
|
@@ -57,5 +168,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
57
168
|
* Generated bundle index. Do not edit.
|
|
58
169
|
*/
|
|
59
170
|
|
|
60
|
-
export { Icon };
|
|
171
|
+
export { Icon, IconRegistry };
|
|
61
172
|
//# sourceMappingURL=ngstarter-ui-components-icon.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-icon.mjs","sources":["../../../projects/components/icon/src/icon/icon.ts","../../../projects/components/icon/ngstarter-ui-components-icon.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n OnChanges,\n OnInit, signal,\n SimpleChanges\n} from '@angular/core';\nimport { loadIcon } from 'iconify-icon';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { v7 as uuid } from 'uuid';\n\n@Component({\n selector: 'ngs-icon',\n exportAs: 'ngsIcon',\n template: '<span [innerHTML]=\"_iconHtml()\" style=\"display: contents\"></span>',\n styleUrl: './icon.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-icon',\n }\n})\nexport class Icon implements OnInit, OnChanges {\n private _sanitizer = inject(DomSanitizer);\n protected _iconHtml = signal<SafeHtml | null>(null);\n\n name = input.required<string>();\n\n private loaded = false;\n\n async ngOnInit() {\n await this._loadIcon();\n }\n\n async ngOnChanges(changes: SimpleChanges) {\n if (changes['name'] && !changes['name'].isFirstChange()) {\n if (changes['name'].previousValue === changes['name'].currentValue) {\n return;\n }\n\n this.loaded = false;\n await this._loadIcon();\n }\n }\n\n private async _loadIcon() {\n if (this.loaded) {\n return;\n }\n\n if (!this.name()) {\n this.loaded = true;\n return;\n }\n\n const data = await loadIcon(this.name());\n let body = data.body;\n\n // If svg icon has mask of defs with id, we need to replace to unique id\n // because the same icons can be used on the same page and use the same id, which can cause problems.\n const allIdMatches = [...body.matchAll(/id=\"(\\w+)\"/g)];\n\n if (allIdMatches.length > 0) {\n allIdMatches.forEach(match => {\n body = body.replaceAll(match[1], uuid());\n });\n }\n\n const iconHtml = `<svg viewBox=\"0 0 ${data.width} ${data.height}\">${body}</svg>`;\n this._iconHtml.set(this._sanitizer.bypassSecurityTrustHtml(iconHtml));\n this.loaded = true;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["uuid"],"mappings":";;;;;;MAuBa,IAAI,CAAA;AACP,IAAA,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC;AAC/B,IAAA,SAAS,GAAG,MAAM,CAAkB,IAAI,gFAAC;AAEnD,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAU;IAEvB,MAAM,GAAG,KAAK;AAEtB,IAAA,MAAM,QAAQ,GAAA;AACZ,QAAA,MAAM,IAAI,CAAC,SAAS,EAAE;IACxB;IAEA,MAAM,WAAW,CAA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AAG,IAAI;IACpB;uGAjDW,IAAI,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAJ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,IAAI,sRAPL,mEAAmE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,0XAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAOlE,IAAI,EAAA,UAAA,EAAA,CAAA;kBAVhB,SAAS;+BACE,UAAU,EAAA,QAAA,EACV,SAAS,EAAA,QAAA,EACT,mEAAmE,mBAE5D,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,OAAO,EAAE,UAAU;AACpB,qBAAA,EAAA,MAAA,EAAA,CAAA,0XAAA,CAAA,EAAA;;;ACrBH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngstarter-ui-components-icon.mjs","sources":["../../../projects/components/icon/src/icon-registry.ts","../../../projects/components/icon/src/icon/icon.ts","../../../projects/components/icon/ngstarter-ui-components-icon.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { getIcon, IconifyIconName, loadIcons } from 'iconify-icon';\n\nexport type IconData = NonNullable<ReturnType<typeof getIcon>>;\n\ninterface QueuedIcon {\n resolve: (icon: IconData) => void;\n reject: (reason?: unknown) => void;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class IconRegistry {\n private readonly _cache = new Map<string, IconData>();\n private readonly _pending = new Map<string, Promise<IconData>>();\n private readonly _queue = new Map<string, QueuedIcon[]>();\n private _flushQueued = false;\n\n get(name: string): Promise<IconData> {\n const cached = this._cache.get(name);\n\n if (cached) {\n return Promise.resolve(cached);\n }\n\n const iconifyCached = getIcon(name);\n\n if (iconifyCached) {\n this._cache.set(name, iconifyCached);\n return Promise.resolve(iconifyCached);\n }\n\n const pending = this._pending.get(name);\n\n if (pending) {\n return pending;\n }\n\n const promise = new Promise<IconData>((resolve, reject) => {\n const queued = this._queue.get(name);\n\n if (queued) {\n queued.push({ resolve, reject });\n } else {\n this._queue.set(name, [{ resolve, reject }]);\n }\n });\n\n this._pending.set(name, promise);\n this._scheduleFlush();\n\n return promise;\n }\n\n clear(): void {\n this._cache.clear();\n this._pending.clear();\n this._queue.clear();\n this._flushQueued = false;\n }\n\n private _scheduleFlush(): void {\n if (this._flushQueued) {\n return;\n }\n\n this._flushQueued = true;\n queueMicrotask(() => this._flush());\n }\n\n private _flush(): void {\n this._flushQueued = false;\n\n const names = Array.from(this._queue.keys());\n\n if (!names.length) {\n return;\n }\n\n loadIcons(names, (loaded, missing, pending) => {\n loaded.forEach(icon => this._resolve(this._serializeName(icon)));\n missing.forEach(icon => this._reject(this._serializeName(icon), new Error(`Icon \"${this._serializeName(icon)}\" not found.`)));\n\n if (!pending.length) {\n names.forEach(name => {\n if (this._queue.has(name)) {\n this._reject(name, new Error(`Icon \"${name}\" was not loaded.`));\n }\n });\n }\n });\n }\n\n private _resolve(name: string): void {\n const icon = getIcon(name);\n\n if (!icon) {\n this._reject(name, new Error(`Icon \"${name}\" was loaded but no data was returned.`));\n return;\n }\n\n this._cache.set(name, icon);\n this._pending.delete(name);\n\n const queued = this._queue.get(name) ?? [];\n this._queue.delete(name);\n queued.forEach(item => item.resolve(icon));\n }\n\n private _reject(name: string, reason: unknown): void {\n this._pending.delete(name);\n\n const queued = this._queue.get(name) ?? [];\n this._queue.delete(name);\n queued.forEach(item => item.reject(reason));\n }\n\n private _serializeName(icon: IconifyIconName): string {\n const provider = icon.provider ? `@${icon.provider}:` : '';\n\n return `${provider}${icon.prefix}:${icon.name}`;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n OnChanges,\n OnInit,\n signal,\n SimpleChanges\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { v7 as uuid } from 'uuid';\nimport { IconRegistry } from '../icon-registry';\n\n@Component({\n selector: 'ngs-icon',\n exportAs: 'ngsIcon',\n template: '<span [innerHTML]=\"_iconHtml()\" style=\"display: contents\"></span>',\n styleUrl: './icon.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-icon',\n }\n})\nexport class Icon implements OnInit, OnChanges {\n private _sanitizer = inject(DomSanitizer);\n private _iconRegistry = inject(IconRegistry);\n protected _iconHtml = signal<SafeHtml | null>(null);\n\n name = input.required<string>();\n\n private loaded = false;\n private loadId = 0;\n\n async ngOnInit() {\n await this._loadIcon();\n }\n\n async ngOnChanges(changes: SimpleChanges) {\n if (changes['name'] && !changes['name'].isFirstChange()) {\n if (changes['name'].previousValue === changes['name'].currentValue) {\n return;\n }\n\n this.loaded = false;\n await this._loadIcon();\n }\n }\n\n private async _loadIcon() {\n if (this.loaded) {\n return;\n }\n\n const name = this.name();\n const loadId = ++this.loadId;\n\n if (!name) {\n this.loaded = true;\n this._iconHtml.set(null);\n return;\n }\n\n const data = await this._iconRegistry.get(name).catch(() => null);\n\n if (loadId !== this.loadId || !data) {\n return;\n }\n\n let body = data.body;\n\n // If svg icon has mask of defs with id, we need to replace to unique id\n // because the same icons can be used on the same page and use the same id, which can cause problems.\n const allIdMatches = [...body.matchAll(/id=\"([^\"]+)\"/g)];\n\n if (allIdMatches.length > 0) {\n const idMap = new Map<string, string>();\n\n allIdMatches.forEach(match => {\n idMap.set(match[1], uuid());\n });\n\n idMap.forEach((nextId, previousId) => {\n body = body\n .replaceAll(`id=\"${previousId}\"`, `id=\"${nextId}\"`)\n .replaceAll(`url(#${previousId})`, `url(#${nextId})`)\n .replaceAll(`href=\"#${previousId}\"`, `href=\"#${nextId}\"`)\n .replaceAll(`xlink:href=\"#${previousId}\"`, `xlink:href=\"#${nextId}\"`);\n });\n }\n\n const iconHtml = `<svg viewBox=\"0 0 ${data.width} ${data.height}\">${body}</svg>`;\n this._iconHtml.set(this._sanitizer.bypassSecurityTrustHtml(iconHtml));\n this.loaded = true;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["uuid"],"mappings":";;;;;;MAaa,YAAY,CAAA;AACN,IAAA,MAAM,GAAG,IAAI,GAAG,EAAoB;AACpC,IAAA,QAAQ,GAAG,IAAI,GAAG,EAA6B;AAC/C,IAAA,MAAM,GAAG,IAAI,GAAG,EAAwB;IACjD,YAAY,GAAG,KAAK;AAE5B,IAAA,GAAG,CAAC,IAAY,EAAA;QACd,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;QAEpC,IAAI,MAAM,EAAE;AACV,YAAA,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;QAChC;AAEA,QAAA,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;QAEnC,IAAI,aAAa,EAAE;YACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC;AACpC,YAAA,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;QACvC;QAEA,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;QAEvC,IAAI,OAAO,EAAE;AACX,YAAA,OAAO,OAAO;QAChB;QAEA,MAAM,OAAO,GAAG,IAAI,OAAO,CAAW,CAAC,OAAO,EAAE,MAAM,KAAI;YACxD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;YAEpC,IAAI,MAAM,EAAE;gBACV,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;YAClC;iBAAO;AACL,gBAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;YAC9C;AACF,QAAA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