@memberjunction/ng-entity-permissions 5.45.0 → 5.46.0
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/dist/lib/entity-selector-with-grid/entity-selector-with-grid.component.d.ts.map +1 -1
- package/dist/lib/entity-selector-with-grid/entity-selector-with-grid.component.js +3 -1
- package/dist/lib/entity-selector-with-grid/entity-selector-with-grid.component.js.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-selector-with-grid.component.d.ts","sourceRoot":"","sources":["../../../src/lib/entity-selector-with-grid/entity-selector-with-grid.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAE,MAAM,EAAS,MAAM,eAAe,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAIzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AACrE,qBAMa,0CAA2C,SAAQ,oBAAqB,YAAW,MAAM;IAC3F,UAAU,EAAG,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAK;IAExB,iBAAiB,6CAAoD;IAEtE,aAAa,EAAE,UAAU,GAAG,SAAS,CAAC;IAExC,UAAU,EAAE,UAAU,EAAE,CAAM;IAC9B,QAAQ,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"entity-selector-with-grid.component.d.ts","sourceRoot":"","sources":["../../../src/lib/entity-selector-with-grid/entity-selector-with-grid.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAE,MAAM,EAAS,MAAM,eAAe,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAIzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;AACrE,qBAMa,0CAA2C,SAAQ,oBAAqB,YAAW,MAAM;IAC3F,UAAU,EAAG,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAK;IAExB,iBAAiB,6CAAoD;IAEtE,aAAa,EAAE,UAAU,GAAG,SAAS,CAAC;IAExC,UAAU,EAAE,UAAU,EAAE,CAAM;IAC9B,QAAQ,IAAI,IAAI;IAQhB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B;yCAjBvD,0CAA0C;2CAA1C,0CAA0C;CAuBtD"}
|
|
@@ -20,7 +20,9 @@ export class EntityPermissionsSelectorWithGridComponent extends BaseAngularCompo
|
|
|
20
20
|
CurrentEntity;
|
|
21
21
|
entityList = [];
|
|
22
22
|
ngOnInit() {
|
|
23
|
-
|
|
23
|
+
// Copy before sorting — provider.Entities is the provider's live (shared) metadata
|
|
24
|
+
// array; Array.prototype.sort would reorder it in place for every consumer.
|
|
25
|
+
this.entityList = [...this.ProviderToUse.Entities].sort((a, b) => a.Name.localeCompare(b.Name));
|
|
24
26
|
if (this.entityList?.length > 0)
|
|
25
27
|
this.CurrentEntity = this.entityList[0];
|
|
26
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-selector-with-grid.component.js","sourceRoot":"","sources":["../../../src/lib/entity-selector-with-grid/entity-selector-with-grid.component.ts","../../../src/lib/entity-selector-with-grid/entity-selector-with-grid.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAU,KAAK,EAAE,MAAM,eAAe,CAAC;AAO/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;ICIjE,qDAAuI;IAAtD,gQAAqB,sCAA+B,KAAC;IAAC,iBAA6B;;;IAArH,sDAAiC;;ADGpF,MAAM,OAAO,0CAA2C,SAAQ,oBAAoB;IACzE,UAAU,CAAU;IACpB,YAAY,GAAW,CAAC,CAAC;IAExB,iBAAiB,GAAG,IAAI,YAAY,EAAgC,CAAC;IAEtE,aAAa,CAAyB;IAExC,UAAU,GAAiB,EAAE,CAAC;IAC9B,QAAQ;QACb,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-selector-with-grid.component.js","sourceRoot":"","sources":["../../../src/lib/entity-selector-with-grid/entity-selector-with-grid.component.ts","../../../src/lib/entity-selector-with-grid/entity-selector-with-grid.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAU,KAAK,EAAE,MAAM,eAAe,CAAC;AAO/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;ICIjE,qDAAuI;IAAtD,gQAAqB,sCAA+B,KAAC;IAAC,iBAA6B;;;IAArH,sDAAiC;;ADGpF,MAAM,OAAO,0CAA2C,SAAQ,oBAAoB;IACzE,UAAU,CAAU;IACpB,YAAY,GAAW,CAAC,CAAC;IAExB,iBAAiB,GAAG,IAAI,YAAY,EAAgC,CAAC;IAEtE,aAAa,CAAyB;IAExC,UAAU,GAAiB,EAAE,CAAC;IAC9B,QAAQ;QACb,mFAAmF;QACnF,4EAA4E;QAC5E,IAAI,CAAC,UAAU,GAAG,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAChG,IAAI,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,CAAC;YAC7B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC;IAEM,uBAAuB,CAAC,KAAmC;QAChE,iDAAiD;QACjD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CACzB,KAAK,CACN,CAAC;IACJ,CAAC;qVAtBU,0CAA0C,yBAA1C,0CAA0C;6DAA1C,0CAA0C;YCbrD,AADF,2BAAM,qBAQD;YADD,oPAA2B;YAE7B,iBAAc;YACd,mIAAqB;YAGvB,iBAAM;;YAXF,cAAmB;YAAnB,qCAAmB;YAKnB,iDAA2B;YAG7B,cAEC;YAFD,4CAEC;;;iFDEU,0CAA0C;cANtD,SAAS;6BACI,KAAK,YACP,0CAA0C;;kBAKnD,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kBAEN,KAAK;;kFANK,0CAA0C","sourcesContent":["import { Component, Output, EventEmitter, OnInit, Input } from '@angular/core';\n\nimport { EntityInfo, Metadata } from '@memberjunction/core';\nimport { EntityPermissionChangedEvent } from '../grid/entity-permissions-grid.component';\n\n \n \nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\n@Component({\n standalone: false,\n selector: 'mj-entity-permissions-selector-with-grid',\n templateUrl: './entity-selector-with-grid.component.html',\n styleUrls: ['./entity-selector-with-grid.component.css']\n})\nexport class EntityPermissionsSelectorWithGridComponent extends BaseAngularComponent implements OnInit {\n @Input() EntityName!: string;\n @Input() BottomMargin: number = 0;\n\n @Output() PermissionChanged = new EventEmitter<EntityPermissionChangedEvent>();\n\n @Input() CurrentEntity: EntityInfo | undefined;\n\n public entityList: EntityInfo[] = [];\n public ngOnInit(): void {\n // Copy before sorting — provider.Entities is the provider's live (shared) metadata\n // array; Array.prototype.sort would reorder it in place for every consumer.\n this.entityList = [...this.ProviderToUse.Entities].sort((a, b) => a.Name.localeCompare(b.Name));\n if (this.entityList?.length > 0)\n this.CurrentEntity = this.entityList[0];\n }\n\n public handlePermissionChanged(event: EntityPermissionChangedEvent) {\n // bubble up the event to our container component\n this.PermissionChanged.emit(\n event\n );\n }\n}\n","<div >\n <mj-dropdown\n [Data]=\"entityList\"\n TextField=\"Name\"\n ValueField=\"Name\"\n Placeholder=\"Select an entity...\"\n class=\"entity-selector\"\n [(ngModel)]=\"CurrentEntity\"\n >\n </mj-dropdown>\n @if (CurrentEntity) {\n <mj-entity-permissions-grid class=\"inner-grid\" [EntityName]=\"CurrentEntity.Name\" (PermissionChanged)=\"handlePermissionChanged($event)\"></mj-entity-permissions-grid>\n }\n</div>\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-entity-permissions",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.46.0",
|
|
4
4
|
"description": "MemberJunction: Angular components for displaying/editing permissions for an entity, and related components.",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"@angular/router": "21.1.3"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/core": "5.
|
|
29
|
-
"@memberjunction/core-entities": "5.
|
|
30
|
-
"@memberjunction/global": "5.
|
|
31
|
-
"@memberjunction/ng-base-types": "5.
|
|
32
|
-
"@memberjunction/ng-container-directives": "5.
|
|
33
|
-
"@memberjunction/ng-shared": "5.
|
|
34
|
-
"@memberjunction/ng-shared-generic": "5.
|
|
35
|
-
"@memberjunction/ng-ui-components": "5.
|
|
28
|
+
"@memberjunction/core": "5.46.0",
|
|
29
|
+
"@memberjunction/core-entities": "5.46.0",
|
|
30
|
+
"@memberjunction/global": "5.46.0",
|
|
31
|
+
"@memberjunction/ng-base-types": "5.46.0",
|
|
32
|
+
"@memberjunction/ng-container-directives": "5.46.0",
|
|
33
|
+
"@memberjunction/ng-shared": "5.46.0",
|
|
34
|
+
"@memberjunction/ng-shared-generic": "5.46.0",
|
|
35
|
+
"@memberjunction/ng-ui-components": "5.46.0",
|
|
36
36
|
"tslib": "^2.8.1"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false,
|