@radix-ng/primitives 0.11.0 → 0.11.1
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/accordion/src/accordion-content.directive.d.ts +4 -9
- package/accordion/src/accordion-item.directive.d.ts +3 -1
- package/compodoc/documentation.json +439 -75
- package/dialog/README.md +1 -0
- package/dialog/index.d.ts +1 -0
- package/esm2022/accordion/src/accordion-content.directive.mjs +19 -13
- package/esm2022/accordion/src/accordion-item.directive.mjs +8 -3
- package/esm2022/accordion/src/accordion-root.directive.mjs +8 -5
- package/esm2022/dialog/index.mjs +2 -0
- package/esm2022/dialog/radix-ng-primitives-dialog.mjs +5 -0
- package/fesm2022/radix-ng-primitives-accordion.mjs +31 -18
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +4 -0
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -0
- package/package.json +7 -1
@@ -662,6 +662,51 @@
|
|
662
662
|
"extends": [],
|
663
663
|
"type": "injectable"
|
664
664
|
},
|
665
|
+
{
|
666
|
+
"name": "RdxDialogService",
|
667
|
+
"id": "injectable-RdxDialogService-37755020734eac7e619cb975529da270d0087c2c6a799779cc9e2c410750fd8b63c6526d3427e458dff0095405844829355974e1eac582dbe6e719f99e2bdeb7",
|
668
|
+
"file": "dialog/src/dialog.service.ts",
|
669
|
+
"properties": [],
|
670
|
+
"methods": [
|
671
|
+
{
|
672
|
+
"name": "open",
|
673
|
+
"args": [
|
674
|
+
{
|
675
|
+
"name": "isModal",
|
676
|
+
"type": "",
|
677
|
+
"deprecated": false,
|
678
|
+
"deprecationMessage": "",
|
679
|
+
"defaultValue": "true"
|
680
|
+
}
|
681
|
+
],
|
682
|
+
"optional": false,
|
683
|
+
"returnType": "void",
|
684
|
+
"typeParameters": [],
|
685
|
+
"line": 24,
|
686
|
+
"deprecated": false,
|
687
|
+
"deprecationMessage": "",
|
688
|
+
"jsdoctags": [
|
689
|
+
{
|
690
|
+
"name": "isModal",
|
691
|
+
"type": "",
|
692
|
+
"deprecated": false,
|
693
|
+
"deprecationMessage": "",
|
694
|
+
"defaultValue": "true",
|
695
|
+
"tagName": {
|
696
|
+
"text": "param"
|
697
|
+
}
|
698
|
+
}
|
699
|
+
]
|
700
|
+
}
|
701
|
+
],
|
702
|
+
"deprecated": false,
|
703
|
+
"deprecationMessage": "",
|
704
|
+
"description": "<p>Modality control: When <code>isModal</code> is set to <code>true</code>, the dialog will:</p>\n<ul>\n<li>Have a backdrop that blocks interaction with the rest of the page</li>\n<li>Disable closing by clicking outside or pressing Escape</li>\n<li>Set <code>aria-modal="true"</code> for screen readers</li>\n<li>Automatically focus the first tabbable element in the dialog</li>\n<li>Restore focus to the element that opened the dialog when it's closed</li>\n</ul>\n<p>When <code>isModal</code> is <code>false</code>, the dialog will:</p>\n<ul>\n<li>Not have a backdrop, allowing interaction with the rest of the page</li>\n<li>Allow closing by clicking outside or pressing Escape</li>\n<li>Not set <code>aria-modal</code> attribute</li>\n<li>Not automatically manage focus</li>\n</ul>\n",
|
705
|
+
"rawdescription": "\n\nModality control: When `isModal` is set to `true`, the dialog will:\n\n- Have a backdrop that blocks interaction with the rest of the page\n- Disable closing by clicking outside or pressing Escape\n- Set `aria-modal=\"true\"` for screen readers\n- Automatically focus the first tabbable element in the dialog\n- Restore focus to the element that opened the dialog when it's closed\n\n\nWhen `isModal` is `false`, the dialog will:\n\n- Not have a backdrop, allowing interaction with the rest of the page\n- Allow closing by clicking outside or pressing Escape\n- Not set `aria-modal` attribute\n- Not automatically manage focus\n",
|
706
|
+
"sourceCode": "import { Injectable } from '@angular/core';\n\n/**\n * Modality control: When `isModal` is set to `true`, the dialog will:\n *\n * - Have a backdrop that blocks interaction with the rest of the page\n * - Disable closing by clicking outside or pressing Escape\n * - Set `aria-modal=\"true\"` for screen readers\n * - Automatically focus the first tabbable element in the dialog\n * - Restore focus to the element that opened the dialog when it's closed\n *\n *\n * When `isModal` is `false`, the dialog will:\n *\n * - Not have a backdrop, allowing interaction with the rest of the page\n * - Allow closing by clicking outside or pressing Escape\n * - Not set `aria-modal` attribute\n * - Not automatically manage focus\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class RdxDialogService {\n open(isModal = true) {\n /*\n From @angular/cdk/dialog:\n disableClose: isModal,\n hasBackdrop: isModal,\n backdropClass: isModal ? 'cdk-overlay-backdrop' : '',\n autoFocus: isModal ? 'first-tabbable' : false,\n restoreFocus: isModal,\n ariaModal: isModal\n * */\n }\n}\n",
|
707
|
+
"extends": [],
|
708
|
+
"type": "injectable"
|
709
|
+
},
|
665
710
|
{
|
666
711
|
"name": "RdxTabsContextService",
|
667
712
|
"id": "injectable-RdxTabsContextService-829943bf2fa6ac0530d53f4c37a83b606a8e51880e754f4283d0008b4cec9b22f70caeb3286830d19ca67730a60d12a5d6262daf2e3a347fc8a0177117184abc",
|
@@ -1134,12 +1179,12 @@
|
|
1134
1179
|
},
|
1135
1180
|
{
|
1136
1181
|
"name": "RdxAccordionContentDirective",
|
1137
|
-
"id": "directive-RdxAccordionContentDirective-
|
1182
|
+
"id": "directive-RdxAccordionContentDirective-9656e45e34c939c23743d235671998951bcd48de95825645be13897f6288582c97c04d098db242bac029213972ad38eed87380fee263f5615ffd9c54f89fe976",
|
1138
1183
|
"file": "accordion/src/accordion-content.directive.ts",
|
1139
1184
|
"type": "directive",
|
1140
1185
|
"description": "",
|
1141
1186
|
"rawdescription": "\n",
|
1142
|
-
"sourceCode": "import { Directive,
|
1187
|
+
"sourceCode": "import { Directive, ElementRef, inject } from '@angular/core';\nimport { RdxAccordionItemDirective } from './accordion-item.directive';\n\n@Directive({\n selector: '[rdxAccordionContent]',\n standalone: true,\n exportAs: 'rdxAccordionContent',\n host: {\n '[attr.role]': '\"region\"',\n '[style.display]': 'hidden ? \"none\" : \"\"',\n '[attr.data-state]': 'item.dataState',\n '[attr.data-disabled]': 'item.disabled',\n '[attr.data-orientation]': 'item.orientation',\n '(animationend)': 'onAnimationEnd()'\n }\n})\nexport class RdxAccordionContentDirective {\n protected readonly item = inject(RdxAccordionItemDirective);\n protected readonly nativeElement = inject(ElementRef).nativeElement;\n\n protected hidden = false;\n\n protected onAnimationEnd() {\n this.hidden = !this.item.expanded;\n\n const { height, width } = this.nativeElement.getBoundingClientRect();\n\n this.nativeElement.style.setProperty('--radix-collapsible-content-height', `${height}px`);\n this.nativeElement.style.setProperty('--radix-collapsible-content-width', `${width}px`);\n\n this.nativeElement.style.setProperty(\n '--radix-accordion-content-height',\n 'var(--radix-collapsible-content-height)'\n );\n this.nativeElement.style.setProperty(\n '--radix-accordion-content-width',\n 'var(--radix-collapsible-content-width)'\n );\n }\n\n onToggle() {\n if (!this.item.expanded) {\n this.hidden = false;\n }\n }\n}\n",
|
1143
1188
|
"selector": "[rdxAccordionContent]",
|
1144
1189
|
"providers": [],
|
1145
1190
|
"exportAs": "rdxAccordionContent",
|
@@ -1152,6 +1197,19 @@
|
|
1152
1197
|
"hostBindings": [],
|
1153
1198
|
"hostListeners": [],
|
1154
1199
|
"propertiesClass": [
|
1200
|
+
{
|
1201
|
+
"name": "hidden",
|
1202
|
+
"defaultValue": "false",
|
1203
|
+
"deprecated": false,
|
1204
|
+
"deprecationMessage": "",
|
1205
|
+
"type": "",
|
1206
|
+
"optional": false,
|
1207
|
+
"description": "",
|
1208
|
+
"line": 21,
|
1209
|
+
"modifierKind": [
|
1210
|
+
124
|
1211
|
+
]
|
1212
|
+
},
|
1155
1213
|
{
|
1156
1214
|
"name": "item",
|
1157
1215
|
"defaultValue": "inject(RdxAccordionItemDirective)",
|
@@ -1160,26 +1218,53 @@
|
|
1160
1218
|
"type": "",
|
1161
1219
|
"optional": false,
|
1162
1220
|
"description": "",
|
1163
|
-
"line":
|
1221
|
+
"line": 18,
|
1222
|
+
"modifierKind": [
|
1223
|
+
124,
|
1224
|
+
148
|
1225
|
+
]
|
1226
|
+
},
|
1227
|
+
{
|
1228
|
+
"name": "nativeElement",
|
1229
|
+
"defaultValue": "inject(ElementRef).nativeElement",
|
1230
|
+
"deprecated": false,
|
1231
|
+
"deprecationMessage": "",
|
1232
|
+
"type": "",
|
1233
|
+
"optional": false,
|
1234
|
+
"description": "",
|
1235
|
+
"line": 19,
|
1164
1236
|
"modifierKind": [
|
1165
1237
|
124,
|
1166
1238
|
148
|
1167
1239
|
]
|
1168
1240
|
}
|
1169
1241
|
],
|
1170
|
-
"methodsClass": [
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
"
|
1175
|
-
"
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1242
|
+
"methodsClass": [
|
1243
|
+
{
|
1244
|
+
"name": "onAnimationEnd",
|
1245
|
+
"args": [],
|
1246
|
+
"optional": false,
|
1247
|
+
"returnType": "void",
|
1248
|
+
"typeParameters": [],
|
1249
|
+
"line": 23,
|
1250
|
+
"deprecated": false,
|
1251
|
+
"deprecationMessage": "",
|
1252
|
+
"modifierKind": [
|
1253
|
+
124
|
1254
|
+
]
|
1255
|
+
},
|
1256
|
+
{
|
1257
|
+
"name": "onToggle",
|
1258
|
+
"args": [],
|
1259
|
+
"optional": false,
|
1260
|
+
"returnType": "void",
|
1261
|
+
"typeParameters": [],
|
1262
|
+
"line": 41,
|
1263
|
+
"deprecated": false,
|
1264
|
+
"deprecationMessage": ""
|
1181
1265
|
}
|
1182
|
-
|
1266
|
+
],
|
1267
|
+
"extends": []
|
1183
1268
|
},
|
1184
1269
|
{
|
1185
1270
|
"name": "RdxAccordionHeaderDirective",
|
@@ -1220,12 +1305,12 @@
|
|
1220
1305
|
},
|
1221
1306
|
{
|
1222
1307
|
"name": "RdxAccordionItemDirective",
|
1223
|
-
"id": "directive-RdxAccordionItemDirective-
|
1308
|
+
"id": "directive-RdxAccordionItemDirective-61e8d74077c0de29c3fcbfb765bf52792ae8e9af56be3575d62eec0f4bf99312d9d7a586ee5673b4cb10b4f95b0a85b57768f75d6e896fefb19c6dc047429712",
|
1224
1309
|
"file": "accordion/src/accordion-item.directive.ts",
|
1225
1310
|
"type": "directive",
|
1226
1311
|
"description": "",
|
1227
1312
|
"rawdescription": "\n",
|
1228
|
-
"sourceCode": "import { FocusableOption } from '@angular/cdk/a11y';\nimport { UniqueSelectionDispatcher } from '@angular/cdk/collections';\nimport {\n booleanAttribute,\n ChangeDetectorRef,\n ContentChild,\n Directive,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { RdxAccordionOrientation, RdxAccordionRootToken } from './accordion-root.directive';\nimport { RdxAccordionTriggerDirective } from './accordion-trigger.directive';\n\nexport type RdxAccordionItemState = 'open' | 'closed';\n\nlet nextId = 0;\n\n@Directive({\n selector: '[rdxAccordionItem]',\n standalone: true,\n exportAs: 'rdxAccordionItem',\n host: {\n '[attr.data-state]': 'dataState',\n '[attr.data-disabled]': 'disabled',\n '[attr.data-orientation]': 'orientation'\n },\n providers: [\n { provide: RdxAccordionRootToken, useValue: undefined }]\n})\nexport class RdxAccordionItemDirective implements FocusableOption, OnDestroy {\n protected readonly accordion = inject(RdxAccordionRootToken, { skipSelf: true });\n protected readonly changeDetectorRef = inject(ChangeDetectorRef);\n protected readonly expansionDispatcher = inject(UniqueSelectionDispatcher);\n\n @ContentChild(RdxAccordionTriggerDirective, { descendants: true }) trigger: RdxAccordionTriggerDirective;\n\n get dataState(): RdxAccordionItemState {\n return this.expanded ? 'open' : 'closed';\n }\n\n /**\n * The unique AccordionItem id.\n * @ignore\n */\n readonly id: string = `rdx-accordion-item-${nextId++}`;\n\n get orientation(): RdxAccordionOrientation {\n return this.accordion.orientation;\n }\n\n /** Whether the AccordionItem is expanded. */\n @Input({ transform: booleanAttribute })\n set expanded(expanded: boolean) {\n // Only emit events and update the internal value if the value changes.\n if (this._expanded !== expanded) {\n this._expanded = expanded;\n this.expandedChange.emit(expanded);\n\n if (expanded) {\n this.opened.emit();\n /**\n * In the unique selection dispatcher, the id parameter is the id of the CdkAccordionItem,\n * the name value is the id of the accordion.\n */\n const accordionId = this.accordion ? this.accordion.id : this.value;\n this.expansionDispatcher.notify(this.value, accordionId);\n } else {\n this.closed.emit();\n }\n\n // Ensures that the animation will run when the value is set outside of an `@Input`.\n // This includes cases like the open, close and toggle methods.\n this.changeDetectorRef.markForCheck();\n }\n }\n\n get expanded(): boolean {\n return this._expanded;\n }\n\n private _expanded = false;\n\n @Input()\n set value(value: string) {\n this._value = value;\n }\n\n get value(): string {\n return this._value || this.id;\n }\n\n private _value?: string;\n\n /** Whether the AccordionItem is disabled. */\n @Input({ transform: booleanAttribute })\n set disabled(value: boolean) {\n this._disabled = value;\n }\n\n get disabled(): boolean {\n return this.accordion.disabled ?? this._disabled;\n }\n\n private _disabled = false;\n\n /** Event emitted every time the AccordionItem is closed. */\n @Output() readonly closed: EventEmitter<void> = new EventEmitter<void>();\n /** Event emitted every time the AccordionItem is opened. */\n @Output() readonly opened: EventEmitter<void> = new EventEmitter<void>();\n\n /** Event emitted when the AccordionItem is destroyed. */\n readonly destroyed: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Emits whenever the expanded state of the accordion changes.\n * Primarily used to facilitate two-way binding.\n * @docs-private\n */\n @Output() readonly expandedChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n /** Unregister function for expansionDispatcher. */\n private removeUniqueSelectionListener: () => void;\n\n /** Subscription to openAll/closeAll events. */\n private openCloseAllSubscription = Subscription.EMPTY;\n\n constructor() {\n this.removeUniqueSelectionListener = this.expansionDispatcher.listen((id: string, accordionId: string) => {\n if (this.accordion.isMultiple) {\n if (this.accordion.id === accordionId && id.includes(this.value)) {\n this.expanded = true;\n }\n } else {\n this.expanded = this.accordion.id === accordionId && id.includes(this.value);\n }\n });\n\n // When an accordion item is hosted in an accordion, subscribe to open/close events.\n if (this.accordion) {\n this.openCloseAllSubscription = this.subscribeToOpenCloseAllActions();\n }\n }\n\n /** Emits an event for the accordion item being destroyed. */\n ngOnDestroy() {\n this.opened.complete();\n this.closed.complete();\n this.destroyed.emit();\n this.destroyed.complete();\n this.removeUniqueSelectionListener();\n this.openCloseAllSubscription.unsubscribe();\n }\n\n focus(): void {\n this.trigger.focus();\n }\n\n /** Toggles the expanded state of the accordion item. */\n toggle(): void {\n if (!this.disabled) {\n this.expanded = !this.expanded;\n }\n }\n\n /** Sets the expanded state of the accordion item to false. */\n close(): void {\n if (!this.disabled) {\n this.expanded = false;\n }\n }\n\n /** Sets the expanded state of the accordion item to true. */\n open(): void {\n if (!this.disabled) {\n this.expanded = true;\n }\n }\n\n private subscribeToOpenCloseAllActions(): Subscription {\n return this.accordion.openCloseAllActions.subscribe((expanded) => {\n // Only change expanded state if item is enabled\n if (!this.disabled) {\n this.expanded = expanded;\n }\n });\n }\n}\n",
|
1313
|
+
"sourceCode": "import { FocusableOption } from '@angular/cdk/a11y';\nimport { UniqueSelectionDispatcher } from '@angular/cdk/collections';\nimport {\n booleanAttribute,\n ChangeDetectorRef,\n ContentChild,\n Directive,\n EventEmitter,\n forwardRef,\n inject,\n Input,\n OnDestroy,\n Output\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { RdxAccordionContentDirective } from './accordion-content.directive';\nimport { RdxAccordionOrientation, RdxAccordionRootToken } from './accordion-root.directive';\nimport { RdxAccordionTriggerDirective } from './accordion-trigger.directive';\n\nexport type RdxAccordionItemState = 'open' | 'closed';\n\nlet nextId = 0;\n\n@Directive({\n selector: '[rdxAccordionItem]',\n standalone: true,\n exportAs: 'rdxAccordionItem',\n host: {\n '[attr.data-state]': 'dataState',\n '[attr.data-disabled]': 'disabled',\n '[attr.data-orientation]': 'orientation'\n },\n providers: [\n { provide: RdxAccordionRootToken, useValue: undefined }]\n})\nexport class RdxAccordionItemDirective implements FocusableOption, OnDestroy {\n protected readonly accordion = inject(RdxAccordionRootToken, { skipSelf: true });\n protected readonly changeDetectorRef = inject(ChangeDetectorRef);\n protected readonly expansionDispatcher = inject(UniqueSelectionDispatcher);\n\n @ContentChild(RdxAccordionTriggerDirective, { descendants: true }) trigger: RdxAccordionTriggerDirective;\n @ContentChild(forwardRef(() => RdxAccordionContentDirective), { descendants: true })\n content: RdxAccordionContentDirective;\n\n get dataState(): RdxAccordionItemState {\n return this.expanded ? 'open' : 'closed';\n }\n\n /**\n * The unique AccordionItem id.\n * @ignore\n */\n readonly id: string = `rdx-accordion-item-${nextId++}`;\n\n get orientation(): RdxAccordionOrientation {\n return this.accordion.orientation;\n }\n\n /** Whether the AccordionItem is expanded. */\n @Input({ transform: booleanAttribute })\n set expanded(expanded: boolean) {\n // Only emit events and update the internal value if the value changes.\n if (this._expanded !== expanded) {\n this._expanded = expanded;\n this.expandedChange.emit(expanded);\n\n if (expanded) {\n this.opened.emit();\n /**\n * In the unique selection dispatcher, the id parameter is the id of the CdkAccordionItem,\n * the name value is the id of the accordion.\n */\n const accordionId = this.accordion ? this.accordion.id : this.value;\n this.expansionDispatcher.notify(this.value, accordionId);\n } else {\n this.closed.emit();\n }\n\n // Ensures that the animation will run when the value is set outside of an `@Input`.\n // This includes cases like the open, close and toggle methods.\n this.changeDetectorRef.markForCheck();\n }\n }\n\n get expanded(): boolean {\n return this._expanded;\n }\n\n private _expanded = false;\n\n @Input()\n set value(value: string) {\n this._value = value;\n }\n\n get value(): string {\n return this._value || this.id;\n }\n\n private _value?: string;\n\n /** Whether the AccordionItem is disabled. */\n @Input({ transform: booleanAttribute })\n set disabled(value: boolean) {\n this._disabled = value;\n }\n\n get disabled(): boolean {\n return this.accordion.disabled ?? this._disabled;\n }\n\n private _disabled = false;\n\n /** Event emitted every time the AccordionItem is closed. */\n @Output() readonly closed: EventEmitter<void> = new EventEmitter<void>();\n /** Event emitted every time the AccordionItem is opened. */\n @Output() readonly opened: EventEmitter<void> = new EventEmitter<void>();\n\n /** Event emitted when the AccordionItem is destroyed. */\n readonly destroyed: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Emits whenever the expanded state of the accordion changes.\n * Primarily used to facilitate two-way binding.\n * @docs-private\n */\n @Output() readonly expandedChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n /** Unregister function for expansionDispatcher. */\n private removeUniqueSelectionListener: () => void;\n\n /** Subscription to openAll/closeAll events. */\n private openCloseAllSubscription = Subscription.EMPTY;\n\n constructor() {\n this.removeUniqueSelectionListener = this.expansionDispatcher.listen((id: string, accordionId: string) => {\n if (this.accordion.isMultiple) {\n if (this.accordion.id === accordionId && id.includes(this.value)) {\n this.expanded = true;\n }\n } else {\n this.expanded = this.accordion.id === accordionId && id.includes(this.value);\n }\n });\n\n // When an accordion item is hosted in an accordion, subscribe to open/close events.\n if (this.accordion) {\n this.openCloseAllSubscription = this.subscribeToOpenCloseAllActions();\n }\n }\n\n /** Emits an event for the accordion item being destroyed. */\n ngOnDestroy() {\n this.opened.complete();\n this.closed.complete();\n this.destroyed.emit();\n this.destroyed.complete();\n this.removeUniqueSelectionListener();\n this.openCloseAllSubscription.unsubscribe();\n }\n\n focus(): void {\n this.trigger.focus();\n }\n\n /** Toggles the expanded state of the accordion item. */\n toggle(): void {\n if (!this.disabled) {\n this.content.onToggle();\n\n this.expanded = !this.expanded;\n }\n }\n\n /** Sets the expanded state of the accordion item to false. */\n close(): void {\n if (!this.disabled) {\n this.expanded = false;\n }\n }\n\n /** Sets the expanded state of the accordion item to true. */\n open(): void {\n if (!this.disabled) {\n this.expanded = true;\n }\n }\n\n private subscribeToOpenCloseAllActions(): Subscription {\n return this.accordion.openCloseAllActions.subscribe((expanded) => {\n // Only change expanded state if item is enabled\n if (!this.disabled) {\n this.expanded = expanded;\n }\n });\n }\n}\n",
|
1229
1314
|
"selector": "[rdxAccordionItem]",
|
1230
1315
|
"providers": [
|
1231
1316
|
{
|
@@ -1243,7 +1328,7 @@
|
|
1243
1328
|
"deprecationMessage": "",
|
1244
1329
|
"rawdescription": "\nWhether the AccordionItem is disabled.",
|
1245
1330
|
"description": "<p>Whether the AccordionItem is disabled.</p>\n",
|
1246
|
-
"line":
|
1331
|
+
"line": 104,
|
1247
1332
|
"type": "boolean",
|
1248
1333
|
"decorators": []
|
1249
1334
|
},
|
@@ -1254,7 +1339,7 @@
|
|
1254
1339
|
"deprecationMessage": "",
|
1255
1340
|
"rawdescription": "\nWhether the AccordionItem is expanded.",
|
1256
1341
|
"description": "<p>Whether the AccordionItem is expanded.</p>\n",
|
1257
|
-
"line":
|
1342
|
+
"line": 61,
|
1258
1343
|
"type": "boolean",
|
1259
1344
|
"decorators": []
|
1260
1345
|
},
|
@@ -1262,7 +1347,7 @@
|
|
1262
1347
|
"name": "value",
|
1263
1348
|
"deprecated": false,
|
1264
1349
|
"deprecationMessage": "",
|
1265
|
-
"line":
|
1350
|
+
"line": 92,
|
1266
1351
|
"type": "string",
|
1267
1352
|
"decorators": []
|
1268
1353
|
}
|
@@ -1275,7 +1360,7 @@
|
|
1275
1360
|
"deprecationMessage": "",
|
1276
1361
|
"rawdescription": "\nEvent emitted every time the AccordionItem is closed.",
|
1277
1362
|
"description": "<p>Event emitted every time the AccordionItem is closed.</p>\n",
|
1278
|
-
"line":
|
1363
|
+
"line": 115,
|
1279
1364
|
"type": "EventEmitter<void>"
|
1280
1365
|
},
|
1281
1366
|
{
|
@@ -1287,15 +1372,15 @@
|
|
1287
1372
|
"description": "<p>Emits whenever the expanded state of the accordion changes.\nPrimarily used to facilitate two-way binding.</p>\n",
|
1288
1373
|
"jsdoctags": [
|
1289
1374
|
{
|
1290
|
-
"pos":
|
1291
|
-
"end":
|
1375
|
+
"pos": 4130,
|
1376
|
+
"end": 4149,
|
1292
1377
|
"flags": 16842752,
|
1293
1378
|
"modifierFlagsCache": 0,
|
1294
1379
|
"transformFlags": 0,
|
1295
1380
|
"kind": 334,
|
1296
1381
|
"tagName": {
|
1297
|
-
"pos":
|
1298
|
-
"end":
|
1382
|
+
"pos": 4131,
|
1383
|
+
"end": 4143,
|
1299
1384
|
"flags": 16842752,
|
1300
1385
|
"modifierFlagsCache": 0,
|
1301
1386
|
"transformFlags": 0,
|
@@ -1305,7 +1390,7 @@
|
|
1305
1390
|
"comment": ""
|
1306
1391
|
}
|
1307
1392
|
],
|
1308
|
-
"line":
|
1393
|
+
"line": 127,
|
1309
1394
|
"type": "EventEmitter<boolean>"
|
1310
1395
|
},
|
1311
1396
|
{
|
@@ -1315,7 +1400,7 @@
|
|
1315
1400
|
"deprecationMessage": "",
|
1316
1401
|
"rawdescription": "\nEvent emitted every time the AccordionItem is opened.",
|
1317
1402
|
"description": "<p>Event emitted every time the AccordionItem is opened.</p>\n",
|
1318
|
-
"line":
|
1403
|
+
"line": 117,
|
1319
1404
|
"type": "EventEmitter<void>"
|
1320
1405
|
}
|
1321
1406
|
],
|
@@ -1332,7 +1417,7 @@
|
|
1332
1417
|
"type": "",
|
1333
1418
|
"optional": false,
|
1334
1419
|
"description": "",
|
1335
|
-
"line":
|
1420
|
+
"line": 37,
|
1336
1421
|
"modifierKind": [
|
1337
1422
|
124,
|
1338
1423
|
148
|
@@ -1346,12 +1431,30 @@
|
|
1346
1431
|
"type": "",
|
1347
1432
|
"optional": false,
|
1348
1433
|
"description": "",
|
1349
|
-
"line":
|
1434
|
+
"line": 38,
|
1350
1435
|
"modifierKind": [
|
1351
1436
|
124,
|
1352
1437
|
148
|
1353
1438
|
]
|
1354
1439
|
},
|
1440
|
+
{
|
1441
|
+
"name": "content",
|
1442
|
+
"deprecated": false,
|
1443
|
+
"deprecationMessage": "",
|
1444
|
+
"type": "RdxAccordionContentDirective",
|
1445
|
+
"optional": false,
|
1446
|
+
"description": "",
|
1447
|
+
"line": 43,
|
1448
|
+
"decorators": [
|
1449
|
+
{
|
1450
|
+
"name": "ContentChild",
|
1451
|
+
"stringifiedArguments": "undefined, {descendants: true}"
|
1452
|
+
}
|
1453
|
+
],
|
1454
|
+
"modifierKind": [
|
1455
|
+
170
|
1456
|
+
]
|
1457
|
+
},
|
1355
1458
|
{
|
1356
1459
|
"name": "destroyed",
|
1357
1460
|
"defaultValue": "new EventEmitter<void>()",
|
@@ -1360,7 +1463,7 @@
|
|
1360
1463
|
"type": "EventEmitter<void>",
|
1361
1464
|
"optional": false,
|
1362
1465
|
"description": "<p>Event emitted when the AccordionItem is destroyed.</p>\n",
|
1363
|
-
"line":
|
1466
|
+
"line": 120,
|
1364
1467
|
"rawdescription": "\nEvent emitted when the AccordionItem is destroyed.",
|
1365
1468
|
"modifierKind": [
|
1366
1469
|
148
|
@@ -1374,7 +1477,7 @@
|
|
1374
1477
|
"type": "",
|
1375
1478
|
"optional": false,
|
1376
1479
|
"description": "",
|
1377
|
-
"line":
|
1480
|
+
"line": 39,
|
1378
1481
|
"modifierKind": [
|
1379
1482
|
124,
|
1380
1483
|
148
|
@@ -1387,7 +1490,7 @@
|
|
1387
1490
|
"type": "RdxAccordionTriggerDirective",
|
1388
1491
|
"optional": false,
|
1389
1492
|
"description": "",
|
1390
|
-
"line":
|
1493
|
+
"line": 41,
|
1391
1494
|
"decorators": [
|
1392
1495
|
{
|
1393
1496
|
"name": "ContentChild",
|
@@ -1406,7 +1509,7 @@
|
|
1406
1509
|
"optional": false,
|
1407
1510
|
"returnType": "void",
|
1408
1511
|
"typeParameters": [],
|
1409
|
-
"line":
|
1512
|
+
"line": 176,
|
1410
1513
|
"deprecated": false,
|
1411
1514
|
"deprecationMessage": "",
|
1412
1515
|
"rawdescription": "\nSets the expanded state of the accordion item to false.",
|
@@ -1418,7 +1521,7 @@
|
|
1418
1521
|
"optional": false,
|
1419
1522
|
"returnType": "void",
|
1420
1523
|
"typeParameters": [],
|
1421
|
-
"line":
|
1524
|
+
"line": 162,
|
1422
1525
|
"deprecated": false,
|
1423
1526
|
"deprecationMessage": ""
|
1424
1527
|
},
|
@@ -1428,7 +1531,7 @@
|
|
1428
1531
|
"optional": false,
|
1429
1532
|
"returnType": "void",
|
1430
1533
|
"typeParameters": [],
|
1431
|
-
"line":
|
1534
|
+
"line": 183,
|
1432
1535
|
"deprecated": false,
|
1433
1536
|
"deprecationMessage": "",
|
1434
1537
|
"rawdescription": "\nSets the expanded state of the accordion item to true.",
|
@@ -1440,7 +1543,7 @@
|
|
1440
1543
|
"optional": false,
|
1441
1544
|
"returnType": "void",
|
1442
1545
|
"typeParameters": [],
|
1443
|
-
"line":
|
1546
|
+
"line": 167,
|
1444
1547
|
"deprecated": false,
|
1445
1548
|
"deprecationMessage": "",
|
1446
1549
|
"rawdescription": "\nToggles the expanded state of the accordion item.",
|
@@ -1458,7 +1561,7 @@
|
|
1458
1561
|
"deprecated": false,
|
1459
1562
|
"deprecationMessage": "",
|
1460
1563
|
"args": [],
|
1461
|
-
"line":
|
1564
|
+
"line": 133
|
1462
1565
|
},
|
1463
1566
|
"accessors": {
|
1464
1567
|
"dataState": {
|
@@ -1467,7 +1570,7 @@
|
|
1467
1570
|
"name": "dataState",
|
1468
1571
|
"type": "",
|
1469
1572
|
"returnType": "RdxAccordionItemState",
|
1470
|
-
"line":
|
1573
|
+
"line": 45
|
1471
1574
|
}
|
1472
1575
|
},
|
1473
1576
|
"orientation": {
|
@@ -1476,7 +1579,7 @@
|
|
1476
1579
|
"name": "orientation",
|
1477
1580
|
"type": "",
|
1478
1581
|
"returnType": "RdxAccordionOrientation",
|
1479
|
-
"line":
|
1582
|
+
"line": 55
|
1480
1583
|
}
|
1481
1584
|
},
|
1482
1585
|
"expanded": {
|
@@ -1495,7 +1598,7 @@
|
|
1495
1598
|
}
|
1496
1599
|
],
|
1497
1600
|
"returnType": "void",
|
1498
|
-
"line":
|
1601
|
+
"line": 61,
|
1499
1602
|
"rawdescription": "\nWhether the AccordionItem is expanded.",
|
1500
1603
|
"description": "<p>Whether the AccordionItem is expanded.</p>\n",
|
1501
1604
|
"jsdoctags": [
|
@@ -1514,7 +1617,7 @@
|
|
1514
1617
|
"name": "expanded",
|
1515
1618
|
"type": "boolean",
|
1516
1619
|
"returnType": "boolean",
|
1517
|
-
"line":
|
1620
|
+
"line": 85
|
1518
1621
|
}
|
1519
1622
|
},
|
1520
1623
|
"value": {
|
@@ -1533,7 +1636,7 @@
|
|
1533
1636
|
}
|
1534
1637
|
],
|
1535
1638
|
"returnType": "void",
|
1536
|
-
"line":
|
1639
|
+
"line": 92,
|
1537
1640
|
"jsdoctags": [
|
1538
1641
|
{
|
1539
1642
|
"name": "value",
|
@@ -1550,7 +1653,7 @@
|
|
1550
1653
|
"name": "value",
|
1551
1654
|
"type": "string",
|
1552
1655
|
"returnType": "string",
|
1553
|
-
"line":
|
1656
|
+
"line": 96
|
1554
1657
|
}
|
1555
1658
|
},
|
1556
1659
|
"disabled": {
|
@@ -1569,7 +1672,7 @@
|
|
1569
1672
|
}
|
1570
1673
|
],
|
1571
1674
|
"returnType": "void",
|
1572
|
-
"line":
|
1675
|
+
"line": 104,
|
1573
1676
|
"rawdescription": "\nWhether the AccordionItem is disabled.",
|
1574
1677
|
"description": "<p>Whether the AccordionItem is disabled.</p>\n",
|
1575
1678
|
"jsdoctags": [
|
@@ -1588,19 +1691,19 @@
|
|
1588
1691
|
"name": "disabled",
|
1589
1692
|
"type": "boolean",
|
1590
1693
|
"returnType": "boolean",
|
1591
|
-
"line":
|
1694
|
+
"line": 108
|
1592
1695
|
}
|
1593
1696
|
}
|
1594
1697
|
}
|
1595
1698
|
},
|
1596
1699
|
{
|
1597
1700
|
"name": "RdxAccordionRootDirective",
|
1598
|
-
"id": "directive-RdxAccordionRootDirective-
|
1701
|
+
"id": "directive-RdxAccordionRootDirective-14ffe9217250e69c71e9fae7b3b82a06dbca0928ad8afd8cf6fb6d8afa6f11bcd2754128aa6e829f2da9b6728b2f4255b85914e740d13fbc2af41d7bffb2be62",
|
1599
1702
|
"file": "accordion/src/accordion-root.directive.ts",
|
1600
1703
|
"type": "directive",
|
1601
1704
|
"description": "",
|
1602
1705
|
"rawdescription": "\n",
|
1603
|
-
"sourceCode": "import { FocusKeyManager } from '@angular/cdk/a11y';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { UniqueSelectionDispatcher } from '@angular/cdk/collections';\nimport { ENTER, SPACE } from '@angular/cdk/keycodes';\nimport {\n AfterContentInit,\n booleanAttribute,\n ContentChildren,\n Directive,\n EventEmitter,\n forwardRef,\n inject,\n InjectionToken,\n Input,\n OnDestroy,\n Output,\n QueryList\n} from '@angular/core';\nimport { merge, Subject, Subscription } from 'rxjs';\nimport { RdxAccordionItemDirective } from './accordion-item.directive';\n\nexport type RdxAccordionType = 'single' | 'multiple';\nexport type RdxAccordionOrientation = 'horizontal' | 'vertical';\n\nexport const RdxAccordionRootToken = new InjectionToken<RdxAccordionRootDirective>('RdxAccordionRootDirective');\n\nlet nextId = 0;\n\n@Directive({\n selector: '[rdxAccordionRoot]',\n standalone: true,\n providers: [\n { provide: RdxAccordionRootToken, useExisting: RdxAccordionRootDirective },\n { provide: UniqueSelectionDispatcher, useClass: UniqueSelectionDispatcher }\n ],\n host: {\n '[attr.data-orientation]': 'orientation',\n '(keydown)': 'handleKeydown($event)'\n }\n})\nexport class RdxAccordionRootDirective implements AfterContentInit, OnDestroy {\n protected readonly selectionDispatcher = inject(UniqueSelectionDispatcher);\n protected readonly dir = inject(Directionality, { optional: true });\n\n protected keyManager: FocusKeyManager<RdxAccordionItemDirective>;\n\n readonly id: string = `rdx-accordion-${nextId++}`;\n\n readonly openCloseAllActions = new Subject<boolean>();\n\n get isMultiple(): boolean {\n return this.type === 'multiple';\n }\n\n /** Whether the Accordion is disabled. */\n @Input({ transform: booleanAttribute }) disabled: boolean;\n\n /**\n * The orientation of the accordion.\n */\n @Input() orientation: RdxAccordionOrientation = 'vertical';\n /**\n * @private\n * @ignore\n */\n @ContentChildren(forwardRef(() => RdxAccordionItemDirective), { descendants: true })\n items: QueryList<RdxAccordionItemDirective>;\n\n /**\n * The value of the item to expand when initially rendered and type is \"single\". Use when you do not need to control the state of the items.\n */\n @Input()\n set defaultValue(value: string[] | string) {\n if (value !== this._defaultValue) {\n this._defaultValue = Array.isArray(value) ? value : [value];\n
|
1706
|
+
"sourceCode": "import { FocusKeyManager } from '@angular/cdk/a11y';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { UniqueSelectionDispatcher } from '@angular/cdk/collections';\nimport { ENTER, SPACE } from '@angular/cdk/keycodes';\nimport {\n AfterContentInit,\n booleanAttribute,\n ContentChildren,\n Directive,\n EventEmitter,\n forwardRef,\n inject,\n InjectionToken,\n Input,\n OnDestroy,\n Output,\n QueryList\n} from '@angular/core';\nimport { merge, Subject, Subscription } from 'rxjs';\nimport { RdxAccordionItemDirective } from './accordion-item.directive';\n\nexport type RdxAccordionType = 'single' | 'multiple';\nexport type RdxAccordionOrientation = 'horizontal' | 'vertical';\n\nexport const RdxAccordionRootToken = new InjectionToken<RdxAccordionRootDirective>('RdxAccordionRootDirective');\n\nlet nextId = 0;\n\n@Directive({\n selector: '[rdxAccordionRoot]',\n standalone: true,\n providers: [\n { provide: RdxAccordionRootToken, useExisting: RdxAccordionRootDirective },\n { provide: UniqueSelectionDispatcher, useClass: UniqueSelectionDispatcher }\n ],\n host: {\n '[attr.data-orientation]': 'orientation',\n '(keydown)': 'handleKeydown($event)'\n }\n})\nexport class RdxAccordionRootDirective implements AfterContentInit, OnDestroy {\n protected readonly selectionDispatcher = inject(UniqueSelectionDispatcher);\n protected readonly dir = inject(Directionality, { optional: true });\n\n protected keyManager: FocusKeyManager<RdxAccordionItemDirective>;\n\n readonly id: string = `rdx-accordion-${nextId++}`;\n\n readonly openCloseAllActions = new Subject<boolean>();\n\n get isMultiple(): boolean {\n return this.type === 'multiple';\n }\n\n /** Whether the Accordion is disabled. */\n @Input({ transform: booleanAttribute }) disabled: boolean;\n\n /**\n * The orientation of the accordion.\n */\n @Input() orientation: RdxAccordionOrientation = 'vertical';\n /**\n * @private\n * @ignore\n */\n @ContentChildren(forwardRef(() => RdxAccordionItemDirective), { descendants: true })\n items: QueryList<RdxAccordionItemDirective>;\n\n /**\n * The value of the item to expand when initially rendered and type is \"single\". Use when you do not need to control the state of the items.\n */\n @Input()\n set defaultValue(value: string[] | string) {\n if (value !== this._defaultValue) {\n this._defaultValue = Array.isArray(value) ? value : [value];\n }\n }\n\n get defaultValue(): string[] | string {\n return this.isMultiple ? this._defaultValue : this._defaultValue[0];\n }\n\n /**\n * Determines whether one or multiple items can be opened at the same time.\n */\n @Input() type: RdxAccordionType = 'single';\n /**\n * @ignore\n */\n @Input() collapsible = true;\n /**\n * The controlled value of the item to expand\n */\n @Input()\n set value(value: string[] | string) {\n if (value !== this._value) {\n this._value = Array.isArray(value) ? value : [value];\n\n this.selectionDispatcher.notify(this.value as unknown as string, this.id);\n }\n }\n\n get value(): string[] | string {\n if (this._value === undefined) {\n return this.defaultValue;\n }\n\n return this.isMultiple ? this._value : this._value[0];\n }\n\n @Output() readonly onValueChange: EventEmitter<void> = new EventEmitter<void>();\n\n private _value?: string[];\n private _defaultValue: string[] | string = [];\n\n private onValueChangeSubscription: Subscription;\n\n /**\n * @ignore\n */\n ngAfterContentInit(): void {\n this.selectionDispatcher.notify((this._value ?? this._defaultValue) as unknown as string, this.id);\n\n this.keyManager = new FocusKeyManager(this.items).withHomeAndEnd();\n\n if (this.orientation === 'horizontal') {\n this.keyManager.withHorizontalOrientation(this.dir?.value || 'ltr');\n } else {\n this.keyManager.withVerticalOrientation();\n }\n\n this.onValueChangeSubscription = merge(...this.items.map((item) => item.expandedChange)).subscribe(() =>\n this.onValueChange.emit()\n );\n }\n\n /**\n * @ignore\n */\n ngOnDestroy() {\n this.openCloseAllActions.complete();\n this.onValueChangeSubscription.unsubscribe();\n }\n\n /**\n * @ignore\n */\n handleKeydown(event: KeyboardEvent) {\n if (!this.keyManager.activeItem) {\n this.keyManager.setFirstItemActive();\n }\n\n const activeItem = this.keyManager.activeItem;\n\n if (\n (event.keyCode === ENTER || event.keyCode === SPACE) &&\n !this.keyManager.isTyping() &&\n activeItem &&\n !activeItem.disabled\n ) {\n event.preventDefault();\n activeItem.toggle();\n } else {\n this.keyManager.onKeydown(event);\n }\n }\n\n /** Opens all enabled accordion items in an accordion where multi is enabled.\n * @ignore\n */\n openAll(): void {\n if (this.isMultiple) {\n this.openCloseAllActions.next(true);\n }\n }\n\n /** Closes all enabled accordion items.\n * @ignore\n */\n closeAll(): void {\n this.openCloseAllActions.next(false);\n }\n\n /**\n * @ignore\n */\n setActiveItem(item: RdxAccordionItemDirective) {\n this.keyManager.setActiveItem(item);\n }\n}\n",
|
1604
1707
|
"selector": "[rdxAccordionRoot]",
|
1605
1708
|
"providers": [
|
1606
1709
|
{
|
@@ -1653,7 +1756,7 @@
|
|
1653
1756
|
"deprecationMessage": "",
|
1654
1757
|
"rawdescription": "\n\nDetermines whether one or multiple items can be opened at the same time.\n",
|
1655
1758
|
"description": "<p>Determines whether one or multiple items can be opened at the same time.</p>\n",
|
1656
|
-
"line":
|
1759
|
+
"line": 86,
|
1657
1760
|
"type": "RdxAccordionType",
|
1658
1761
|
"decorators": []
|
1659
1762
|
},
|
@@ -1663,7 +1766,7 @@
|
|
1663
1766
|
"deprecationMessage": "",
|
1664
1767
|
"rawdescription": "\n\nThe controlled value of the item to expand\n",
|
1665
1768
|
"description": "<p>The controlled value of the item to expand</p>\n",
|
1666
|
-
"line":
|
1769
|
+
"line": 95,
|
1667
1770
|
"type": "[] | string",
|
1668
1771
|
"decorators": []
|
1669
1772
|
}
|
@@ -1674,7 +1777,7 @@
|
|
1674
1777
|
"defaultValue": "new EventEmitter<void>()",
|
1675
1778
|
"deprecated": false,
|
1676
1779
|
"deprecationMessage": "",
|
1677
|
-
"line":
|
1780
|
+
"line": 111,
|
1678
1781
|
"type": "EventEmitter<void>"
|
1679
1782
|
}
|
1680
1783
|
],
|
@@ -1801,7 +1904,7 @@
|
|
1801
1904
|
"name": "defaultValue",
|
1802
1905
|
"type": "",
|
1803
1906
|
"returnType": "[] | string",
|
1804
|
-
"line":
|
1907
|
+
"line": 79
|
1805
1908
|
}
|
1806
1909
|
},
|
1807
1910
|
"value": {
|
@@ -1820,7 +1923,7 @@
|
|
1820
1923
|
}
|
1821
1924
|
],
|
1822
1925
|
"returnType": "void",
|
1823
|
-
"line":
|
1926
|
+
"line": 95,
|
1824
1927
|
"rawdescription": "\n\nThe controlled value of the item to expand\n",
|
1825
1928
|
"description": "<p>The controlled value of the item to expand</p>\n",
|
1826
1929
|
"jsdoctags": [
|
@@ -1839,7 +1942,7 @@
|
|
1839
1942
|
"name": "value",
|
1840
1943
|
"type": "",
|
1841
1944
|
"returnType": "[] | string",
|
1842
|
-
"line":
|
1945
|
+
"line": 103
|
1843
1946
|
}
|
1844
1947
|
}
|
1845
1948
|
}
|
@@ -3080,6 +3183,183 @@
|
|
3080
3183
|
],
|
3081
3184
|
"extends": []
|
3082
3185
|
},
|
3186
|
+
{
|
3187
|
+
"name": "RdxDialogCloseDirective",
|
3188
|
+
"id": "directive-RdxDialogCloseDirective-7479d9f49f7adc030cd331d50cd73eb89c7aa9e9a6bf3ceec199610dc52ecbd0e9d084de40233ddf732b56370ce20f72345dba26de4e5bc12e83067b3aca6cdd",
|
3189
|
+
"file": "dialog/src/dialog-close.directive.ts",
|
3190
|
+
"type": "directive",
|
3191
|
+
"description": "",
|
3192
|
+
"rawdescription": "\n",
|
3193
|
+
"sourceCode": "import { Directive } from '@angular/core';\n\n@Directive({\n selector: 'button[rdxDialogClose]',\n standalone: true,\n host: {\n type: 'button',\n '(click)': 'onClose()'\n }\n})\nexport class RdxDialogCloseDirective {\n protected onClick(): void {\n /**/\n }\n}\n",
|
3194
|
+
"selector": "button[rdxDialogClose]",
|
3195
|
+
"providers": [],
|
3196
|
+
"hostDirectives": [],
|
3197
|
+
"standalone": true,
|
3198
|
+
"inputsClass": [],
|
3199
|
+
"outputsClass": [],
|
3200
|
+
"deprecated": false,
|
3201
|
+
"deprecationMessage": "",
|
3202
|
+
"hostBindings": [],
|
3203
|
+
"hostListeners": [],
|
3204
|
+
"propertiesClass": [],
|
3205
|
+
"methodsClass": [
|
3206
|
+
{
|
3207
|
+
"name": "onClick",
|
3208
|
+
"args": [],
|
3209
|
+
"optional": false,
|
3210
|
+
"returnType": "void",
|
3211
|
+
"typeParameters": [],
|
3212
|
+
"line": 12,
|
3213
|
+
"deprecated": false,
|
3214
|
+
"deprecationMessage": "",
|
3215
|
+
"modifierKind": [
|
3216
|
+
124
|
3217
|
+
]
|
3218
|
+
}
|
3219
|
+
],
|
3220
|
+
"extends": []
|
3221
|
+
},
|
3222
|
+
{
|
3223
|
+
"name": "RdxDialogContentDirective",
|
3224
|
+
"id": "directive-RdxDialogContentDirective-e30b157b63ce7a83733ca776d5eb9ed53923d3103e7289676efac6c2a4f790d67507d0ac51e0d505972562bc7b80de0803333f8d31bdf9785421e1e81917744f",
|
3225
|
+
"file": "dialog/src/dialog-content.directive.ts",
|
3226
|
+
"type": "directive",
|
3227
|
+
"description": "",
|
3228
|
+
"rawdescription": "\n",
|
3229
|
+
"sourceCode": "import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[rdxDialogContent]',\n standalone: true,\n host: {\n role: 'dialog',\n '[attr.aria-describedby]': '\"true\"',\n '[attr.aria-labelledby]': '\"true\"',\n '[attr.data-state]': '\"true\"'\n }\n})\nexport class RdxDialogContentDirective {}\n",
|
3230
|
+
"selector": "[rdxDialogContent]",
|
3231
|
+
"providers": [],
|
3232
|
+
"hostDirectives": [],
|
3233
|
+
"standalone": true,
|
3234
|
+
"inputsClass": [],
|
3235
|
+
"outputsClass": [],
|
3236
|
+
"deprecated": false,
|
3237
|
+
"deprecationMessage": "",
|
3238
|
+
"hostBindings": [],
|
3239
|
+
"hostListeners": [],
|
3240
|
+
"propertiesClass": [],
|
3241
|
+
"methodsClass": [],
|
3242
|
+
"extends": []
|
3243
|
+
},
|
3244
|
+
{
|
3245
|
+
"name": "RdxDialogDescriptionDirective",
|
3246
|
+
"id": "directive-RdxDialogDescriptionDirective-90435f7b8726646c5b763736781a9a91436167f544b1f3834185aebe372892f23a30250c0bc3052bcc483732f275a77bda5cd4923010c088a8b3c156dae83bdc",
|
3247
|
+
"file": "dialog/src/dialog-description.directive.ts",
|
3248
|
+
"type": "directive",
|
3249
|
+
"description": "",
|
3250
|
+
"rawdescription": "\n",
|
3251
|
+
"sourceCode": "import { Directive } from '@angular/core';\n\n@Directive({\n selector: 'p[rdxDialogDescription]',\n standalone: true\n})\nexport class RdxDialogDescriptionDirective {}\n",
|
3252
|
+
"selector": "p[rdxDialogDescription]",
|
3253
|
+
"providers": [],
|
3254
|
+
"hostDirectives": [],
|
3255
|
+
"standalone": true,
|
3256
|
+
"inputsClass": [],
|
3257
|
+
"outputsClass": [],
|
3258
|
+
"deprecated": false,
|
3259
|
+
"deprecationMessage": "",
|
3260
|
+
"hostBindings": [],
|
3261
|
+
"hostListeners": [],
|
3262
|
+
"propertiesClass": [],
|
3263
|
+
"methodsClass": [],
|
3264
|
+
"extends": []
|
3265
|
+
},
|
3266
|
+
{
|
3267
|
+
"name": "RdxDialogOverlayDirective",
|
3268
|
+
"id": "directive-RdxDialogOverlayDirective-e8f4de80cca46610a7d564cdfa007701ee0ed8f3dc529d0c233bbc80bd65a0fb3a5cb9e2e7fcf086c5aba518e530864cb2007ed99d1eee2cc4838cc8202c66e6",
|
3269
|
+
"file": "dialog/src/dialog-overlay.directive.ts",
|
3270
|
+
"type": "directive",
|
3271
|
+
"description": "",
|
3272
|
+
"rawdescription": "\n",
|
3273
|
+
"sourceCode": "import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { Directive, inject, OnInit } from '@angular/core';\n\n@Directive({\n selector: '[rdxDialogOverlay]',\n standalone: true\n})\nexport class RdxDialogOverlayDirective implements OnInit {\n private overlayRef: OverlayRef | null = null;\n\n private readonly overlay = inject(Overlay);\n\n ngOnInit() {\n this.createOverlay();\n }\n\n private createOverlay() {\n if (this.overlayRef) {\n return;\n }\n\n const positionStrategy = this.overlay.position().global().centerHorizontally().centerVertically();\n\n this.overlayRef = this.overlay.create({\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.block()\n });\n }\n\n private attachOverlay() {\n if (this.overlayRef && !this.overlayRef.hasAttached()) {\n // this.overlayRef.attach();\n }\n }\n\n private detachOverlay() {\n if (this.overlayRef && this.overlayRef.hasAttached()) {\n this.overlayRef.detach();\n }\n }\n\n private destroyOverlay() {\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n }\n}\n",
|
3274
|
+
"selector": "[rdxDialogOverlay]",
|
3275
|
+
"providers": [],
|
3276
|
+
"hostDirectives": [],
|
3277
|
+
"standalone": true,
|
3278
|
+
"inputsClass": [],
|
3279
|
+
"outputsClass": [],
|
3280
|
+
"deprecated": false,
|
3281
|
+
"deprecationMessage": "",
|
3282
|
+
"hostBindings": [],
|
3283
|
+
"hostListeners": [],
|
3284
|
+
"propertiesClass": [],
|
3285
|
+
"methodsClass": [],
|
3286
|
+
"extends": [],
|
3287
|
+
"implements": [
|
3288
|
+
"OnInit"
|
3289
|
+
]
|
3290
|
+
},
|
3291
|
+
{
|
3292
|
+
"name": "RdxDialogTitleDirective",
|
3293
|
+
"id": "directive-RdxDialogTitleDirective-102eeceae1484a425101b51450ca4e4df54202b1fa60990ae492f8f7b099dbd844abedf9feeea82b30d08eebc4eec03e8b4992d1463a2409883d38345c30282f",
|
3294
|
+
"file": "dialog/src/dialog-title.directive.ts",
|
3295
|
+
"type": "directive",
|
3296
|
+
"description": "",
|
3297
|
+
"rawdescription": "\n",
|
3298
|
+
"sourceCode": "import { Directive } from '@angular/core';\n\n@Directive({\n selector: 'h2[rdxDialogTitle]',\n standalone: true\n})\nexport class RdxDialogTitleDirective {}\n",
|
3299
|
+
"selector": "h2[rdxDialogTitle]",
|
3300
|
+
"providers": [],
|
3301
|
+
"hostDirectives": [],
|
3302
|
+
"standalone": true,
|
3303
|
+
"inputsClass": [],
|
3304
|
+
"outputsClass": [],
|
3305
|
+
"deprecated": false,
|
3306
|
+
"deprecationMessage": "",
|
3307
|
+
"hostBindings": [],
|
3308
|
+
"hostListeners": [],
|
3309
|
+
"propertiesClass": [],
|
3310
|
+
"methodsClass": [],
|
3311
|
+
"extends": []
|
3312
|
+
},
|
3313
|
+
{
|
3314
|
+
"name": "RdxDialogTriggerDirective",
|
3315
|
+
"id": "directive-RdxDialogTriggerDirective-e3897b6c163f4925b3e7859ae18de906b65eaa57408adf65274f08284c809fd60853e5e913f59ad44e5ddb935e070b4e7ac30e92ac0fa4236f8f9fb3000a3a72",
|
3316
|
+
"file": "dialog/src/dialog-trigger.directive.ts",
|
3317
|
+
"type": "directive",
|
3318
|
+
"description": "",
|
3319
|
+
"rawdescription": "\n",
|
3320
|
+
"sourceCode": "import { Directive, input } from '@angular/core';\n\nlet nextId = 0;\n\n// Primitive.button\n@Directive({\n selector: '[rdxDialogTrigger], [rdxDialogTriggerFor]',\n standalone: true,\n host: {\n type: 'button',\n '[attr.id]': 'id()',\n '[attr.aria-haspopup]': '\"dialog\"',\n '[attr.aria-expanded]': '\"true\"',\n '[attr.aria-controls]': '\"true\"',\n '[attr.data-state]': '\"true\"',\n '(click)': 'onClick()'\n }\n})\nexport class RdxDialogTriggerDirective {\n readonly id = input(`rdx-dialog-trigger-${nextId++}`);\n\n protected onClick() {\n /* empty */\n }\n}\n",
|
3321
|
+
"selector": "[rdxDialogTrigger], [rdxDialogTriggerFor]",
|
3322
|
+
"providers": [],
|
3323
|
+
"hostDirectives": [],
|
3324
|
+
"standalone": true,
|
3325
|
+
"inputsClass": [],
|
3326
|
+
"outputsClass": [],
|
3327
|
+
"deprecated": false,
|
3328
|
+
"deprecationMessage": "",
|
3329
|
+
"hostBindings": [],
|
3330
|
+
"hostListeners": [],
|
3331
|
+
"propertiesClass": [
|
3332
|
+
{
|
3333
|
+
"name": "id",
|
3334
|
+
"defaultValue": "input(`rdx-dialog-trigger-${nextId++}`)",
|
3335
|
+
"deprecated": false,
|
3336
|
+
"deprecationMessage": "",
|
3337
|
+
"type": "",
|
3338
|
+
"optional": false,
|
3339
|
+
"description": "",
|
3340
|
+
"line": 20,
|
3341
|
+
"modifierKind": [
|
3342
|
+
148
|
3343
|
+
]
|
3344
|
+
}
|
3345
|
+
],
|
3346
|
+
"methodsClass": [
|
3347
|
+
{
|
3348
|
+
"name": "onClick",
|
3349
|
+
"args": [],
|
3350
|
+
"optional": false,
|
3351
|
+
"returnType": "void",
|
3352
|
+
"typeParameters": [],
|
3353
|
+
"line": 22,
|
3354
|
+
"deprecated": false,
|
3355
|
+
"deprecationMessage": "",
|
3356
|
+
"modifierKind": [
|
3357
|
+
124
|
3358
|
+
]
|
3359
|
+
}
|
3360
|
+
],
|
3361
|
+
"extends": []
|
3362
|
+
},
|
3083
3363
|
{
|
3084
3364
|
"name": "RdxDropdownMenuContentDirective",
|
3085
3365
|
"id": "directive-RdxDropdownMenuContentDirective-36c0a7620f2d5a4a029120497fb06898c4678813b86f06d6daba4093145a6ca3eea3b7333a645c08ef27131e81a61f2a0aefc9e59c101588e2ae88727d3a3248",
|
@@ -8901,6 +9181,16 @@
|
|
8901
9181
|
"type": "number",
|
8902
9182
|
"defaultValue": "0"
|
8903
9183
|
},
|
9184
|
+
{
|
9185
|
+
"name": "nextId",
|
9186
|
+
"ctype": "miscellaneous",
|
9187
|
+
"subtype": "variable",
|
9188
|
+
"file": "dialog/src/dialog-trigger.directive.ts",
|
9189
|
+
"deprecated": false,
|
9190
|
+
"deprecationMessage": "",
|
9191
|
+
"type": "number",
|
9192
|
+
"defaultValue": "0"
|
9193
|
+
},
|
8904
9194
|
{
|
8905
9195
|
"name": "nextId",
|
8906
9196
|
"ctype": "miscellaneous",
|
@@ -8963,16 +9253,6 @@
|
|
8963
9253
|
"type": "",
|
8964
9254
|
"defaultValue": "new InjectionToken<RadioGroupDirective>('RdxRadioGroup')"
|
8965
9255
|
},
|
8966
|
-
{
|
8967
|
-
"name": "RdxAccordionContentToken",
|
8968
|
-
"ctype": "miscellaneous",
|
8969
|
-
"subtype": "variable",
|
8970
|
-
"file": "accordion/src/accordion-content.directive.ts",
|
8971
|
-
"deprecated": false,
|
8972
|
-
"deprecationMessage": "",
|
8973
|
-
"type": "",
|
8974
|
-
"defaultValue": "new InjectionToken<RdxAccordionContentDirective>('RdxAccordionContentToken')"
|
8975
|
-
},
|
8976
9256
|
{
|
8977
9257
|
"name": "RdxAccordionRootToken",
|
8978
9258
|
"ctype": "miscellaneous",
|
@@ -9199,6 +9479,35 @@
|
|
9199
9479
|
"description": "",
|
9200
9480
|
"args": []
|
9201
9481
|
},
|
9482
|
+
{
|
9483
|
+
"name": "getState",
|
9484
|
+
"file": "dialog/src/dialog.types.ts",
|
9485
|
+
"ctype": "miscellaneous",
|
9486
|
+
"subtype": "function",
|
9487
|
+
"deprecated": false,
|
9488
|
+
"deprecationMessage": "",
|
9489
|
+
"description": "",
|
9490
|
+
"args": [
|
9491
|
+
{
|
9492
|
+
"name": "open",
|
9493
|
+
"type": "boolean",
|
9494
|
+
"deprecated": false,
|
9495
|
+
"deprecationMessage": ""
|
9496
|
+
}
|
9497
|
+
],
|
9498
|
+
"returnType": "RdxDialogState",
|
9499
|
+
"jsdoctags": [
|
9500
|
+
{
|
9501
|
+
"name": "open",
|
9502
|
+
"type": "boolean",
|
9503
|
+
"deprecated": false,
|
9504
|
+
"deprecationMessage": "",
|
9505
|
+
"tagName": {
|
9506
|
+
"text": "param"
|
9507
|
+
}
|
9508
|
+
}
|
9509
|
+
]
|
9510
|
+
},
|
9202
9511
|
{
|
9203
9512
|
"name": "getTransitionDurationMs",
|
9204
9513
|
"file": "presence/src/utils.ts",
|
@@ -9850,6 +10159,17 @@
|
|
9850
10159
|
"description": "",
|
9851
10160
|
"kind": 192
|
9852
10161
|
},
|
10162
|
+
{
|
10163
|
+
"name": "RdxDialogState",
|
10164
|
+
"ctype": "miscellaneous",
|
10165
|
+
"subtype": "typealias",
|
10166
|
+
"rawtype": "\"open\" | \"closed\"",
|
10167
|
+
"file": "dialog/src/dialog.types.ts",
|
10168
|
+
"deprecated": false,
|
10169
|
+
"deprecationMessage": "",
|
10170
|
+
"description": "",
|
10171
|
+
"kind": 192
|
10172
|
+
},
|
9853
10173
|
{
|
9854
10174
|
"name": "RdxImageLoadingStatus",
|
9855
10175
|
"ctype": "miscellaneous",
|
@@ -10340,6 +10660,18 @@
|
|
10340
10660
|
"defaultValue": "new InjectionToken<RdxAccordionRootDirective>('RdxAccordionRootDirective')"
|
10341
10661
|
}
|
10342
10662
|
],
|
10663
|
+
"dialog/src/dialog-trigger.directive.ts": [
|
10664
|
+
{
|
10665
|
+
"name": "nextId",
|
10666
|
+
"ctype": "miscellaneous",
|
10667
|
+
"subtype": "variable",
|
10668
|
+
"file": "dialog/src/dialog-trigger.directive.ts",
|
10669
|
+
"deprecated": false,
|
10670
|
+
"deprecationMessage": "",
|
10671
|
+
"type": "number",
|
10672
|
+
"defaultValue": "0"
|
10673
|
+
}
|
10674
|
+
],
|
10343
10675
|
"dropdown-menu/src/dropdown-menu-item-radio.directive.ts": [
|
10344
10676
|
{
|
10345
10677
|
"name": "nextId",
|
@@ -10388,18 +10720,6 @@
|
|
10388
10720
|
"defaultValue": "new InjectionToken<RadioGroupDirective>('RdxRadioGroup')"
|
10389
10721
|
}
|
10390
10722
|
],
|
10391
|
-
"accordion/src/accordion-content.directive.ts": [
|
10392
|
-
{
|
10393
|
-
"name": "RdxAccordionContentToken",
|
10394
|
-
"ctype": "miscellaneous",
|
10395
|
-
"subtype": "variable",
|
10396
|
-
"file": "accordion/src/accordion-content.directive.ts",
|
10397
|
-
"deprecated": false,
|
10398
|
-
"deprecationMessage": "",
|
10399
|
-
"type": "",
|
10400
|
-
"defaultValue": "new InjectionToken<RdxAccordionContentDirective>('RdxAccordionContentToken')"
|
10401
|
-
}
|
10402
|
-
],
|
10403
10723
|
"avatar/src/avatar-root.directive.ts": [
|
10404
10724
|
{
|
10405
10725
|
"name": "RdxAvatarToken",
|
@@ -10554,6 +10874,37 @@
|
|
10554
10874
|
"args": []
|
10555
10875
|
}
|
10556
10876
|
],
|
10877
|
+
"dialog/src/dialog.types.ts": [
|
10878
|
+
{
|
10879
|
+
"name": "getState",
|
10880
|
+
"file": "dialog/src/dialog.types.ts",
|
10881
|
+
"ctype": "miscellaneous",
|
10882
|
+
"subtype": "function",
|
10883
|
+
"deprecated": false,
|
10884
|
+
"deprecationMessage": "",
|
10885
|
+
"description": "",
|
10886
|
+
"args": [
|
10887
|
+
{
|
10888
|
+
"name": "open",
|
10889
|
+
"type": "boolean",
|
10890
|
+
"deprecated": false,
|
10891
|
+
"deprecationMessage": ""
|
10892
|
+
}
|
10893
|
+
],
|
10894
|
+
"returnType": "RdxDialogState",
|
10895
|
+
"jsdoctags": [
|
10896
|
+
{
|
10897
|
+
"name": "open",
|
10898
|
+
"type": "boolean",
|
10899
|
+
"deprecated": false,
|
10900
|
+
"deprecationMessage": "",
|
10901
|
+
"tagName": {
|
10902
|
+
"text": "param"
|
10903
|
+
}
|
10904
|
+
}
|
10905
|
+
]
|
10906
|
+
}
|
10907
|
+
],
|
10557
10908
|
"presence/src/utils.ts": [
|
10558
10909
|
{
|
10559
10910
|
"name": "getTransitionDurationMs",
|
@@ -11330,6 +11681,19 @@
|
|
11330
11681
|
"kind": 192
|
11331
11682
|
}
|
11332
11683
|
],
|
11684
|
+
"dialog/src/dialog.types.ts": [
|
11685
|
+
{
|
11686
|
+
"name": "RdxDialogState",
|
11687
|
+
"ctype": "miscellaneous",
|
11688
|
+
"subtype": "typealias",
|
11689
|
+
"rawtype": "\"open\" | \"closed\"",
|
11690
|
+
"file": "dialog/src/dialog.types.ts",
|
11691
|
+
"deprecated": false,
|
11692
|
+
"deprecationMessage": "",
|
11693
|
+
"description": "",
|
11694
|
+
"kind": 192
|
11695
|
+
}
|
11696
|
+
],
|
11333
11697
|
"avatar/src/avatar-root.directive.ts": [
|
11334
11698
|
{
|
11335
11699
|
"name": "RdxImageLoadingStatus",
|