@genesislcap/foundation-entity-management 14.418.2-alpha-222b313.0 → 14.419.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/custom-elements.json +133 -136
- package/dist/dts/entities/entities.d.ts +5 -1
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/list/list.d.ts +15 -19
- package/dist/dts/list/list.d.ts.map +1 -1
- package/dist/dts/react.d.ts +104 -0
- package/dist/esm/entities/entities.js +1 -0
- package/dist/esm/list/list.js +49 -76
- package/dist/foundation-entity-management.api.json +2 -2
- package/dist/foundation-entity-management.d.ts +20 -20
- package/dist/react.cjs +70 -0
- package/dist/react.mjs +61 -0
- package/package.json +36 -24
|
@@ -89,6 +89,41 @@
|
|
|
89
89
|
}
|
|
90
90
|
]
|
|
91
91
|
},
|
|
92
|
+
{
|
|
93
|
+
"kind": "javascript-module",
|
|
94
|
+
"path": "src/components/components.ts",
|
|
95
|
+
"declarations": [
|
|
96
|
+
{
|
|
97
|
+
"kind": "function",
|
|
98
|
+
"name": "loadRemotes"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"exports": [
|
|
102
|
+
{
|
|
103
|
+
"kind": "js",
|
|
104
|
+
"name": "loadRemotes",
|
|
105
|
+
"declaration": {
|
|
106
|
+
"name": "loadRemotes",
|
|
107
|
+
"module": "src/components/components.ts"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"kind": "javascript-module",
|
|
114
|
+
"path": "src/components/index.ts",
|
|
115
|
+
"declarations": [],
|
|
116
|
+
"exports": [
|
|
117
|
+
{
|
|
118
|
+
"kind": "js",
|
|
119
|
+
"name": "*",
|
|
120
|
+
"declaration": {
|
|
121
|
+
"name": "*",
|
|
122
|
+
"package": "./components"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
92
127
|
{
|
|
93
128
|
"kind": "javascript-module",
|
|
94
129
|
"path": "src/entities/entities.styles.ts",
|
|
@@ -873,6 +908,10 @@
|
|
|
873
908
|
{
|
|
874
909
|
"description": "Fired when a row is selected",
|
|
875
910
|
"name": "rowSelected"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"description": "Fired when grid selection changes (bubbled from entity-list)",
|
|
914
|
+
"name": "selectionChanged"
|
|
876
915
|
}
|
|
877
916
|
],
|
|
878
917
|
"attributes": [
|
|
@@ -2637,6 +2676,14 @@
|
|
|
2637
2676
|
"name": "EntityManagement",
|
|
2638
2677
|
"module": "src/entities/entities.ts"
|
|
2639
2678
|
}
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"description": "Fired when grid selection changes (bubbled from entity-list)",
|
|
2682
|
+
"name": "selectionChanged",
|
|
2683
|
+
"inheritedFrom": {
|
|
2684
|
+
"name": "EntityManagement",
|
|
2685
|
+
"module": "src/entities/entities.ts"
|
|
2686
|
+
}
|
|
2640
2687
|
}
|
|
2641
2688
|
]
|
|
2642
2689
|
}
|
|
@@ -2662,27 +2709,41 @@
|
|
|
2662
2709
|
},
|
|
2663
2710
|
{
|
|
2664
2711
|
"kind": "javascript-module",
|
|
2665
|
-
"path": "src/
|
|
2712
|
+
"path": "src/layouts/default.ts",
|
|
2666
2713
|
"declarations": [
|
|
2667
2714
|
{
|
|
2668
|
-
"kind": "
|
|
2669
|
-
"name": "
|
|
2715
|
+
"kind": "variable",
|
|
2716
|
+
"name": "loginLayout",
|
|
2717
|
+
"default": "new GenesisElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
"kind": "variable",
|
|
2721
|
+
"name": "defaultLayout",
|
|
2722
|
+
"default": "new GenesisElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `,\n)"
|
|
2670
2723
|
}
|
|
2671
2724
|
],
|
|
2672
2725
|
"exports": [
|
|
2673
2726
|
{
|
|
2674
2727
|
"kind": "js",
|
|
2675
|
-
"name": "
|
|
2728
|
+
"name": "loginLayout",
|
|
2676
2729
|
"declaration": {
|
|
2677
|
-
"name": "
|
|
2678
|
-
"module": "src/
|
|
2730
|
+
"name": "loginLayout",
|
|
2731
|
+
"module": "src/layouts/default.ts"
|
|
2732
|
+
}
|
|
2733
|
+
},
|
|
2734
|
+
{
|
|
2735
|
+
"kind": "js",
|
|
2736
|
+
"name": "defaultLayout",
|
|
2737
|
+
"declaration": {
|
|
2738
|
+
"name": "defaultLayout",
|
|
2739
|
+
"module": "src/layouts/default.ts"
|
|
2679
2740
|
}
|
|
2680
2741
|
}
|
|
2681
2742
|
]
|
|
2682
2743
|
},
|
|
2683
2744
|
{
|
|
2684
2745
|
"kind": "javascript-module",
|
|
2685
|
-
"path": "src/
|
|
2746
|
+
"path": "src/layouts/index.ts",
|
|
2686
2747
|
"declarations": [],
|
|
2687
2748
|
"exports": [
|
|
2688
2749
|
{
|
|
@@ -2690,7 +2751,7 @@
|
|
|
2690
2751
|
"name": "*",
|
|
2691
2752
|
"declaration": {
|
|
2692
2753
|
"name": "*",
|
|
2693
|
-
"package": "./
|
|
2754
|
+
"package": "./default"
|
|
2694
2755
|
}
|
|
2695
2756
|
}
|
|
2696
2757
|
]
|
|
@@ -2762,7 +2823,7 @@
|
|
|
2762
2823
|
"declarations": [
|
|
2763
2824
|
{
|
|
2764
2825
|
"kind": "class",
|
|
2765
|
-
"description": "",
|
|
2826
|
+
"description": "Entity list grid with CRUD and selection events.",
|
|
2766
2827
|
"name": "List",
|
|
2767
2828
|
"members": [
|
|
2768
2829
|
{
|
|
@@ -3006,25 +3067,6 @@
|
|
|
3006
3067
|
},
|
|
3007
3068
|
"privacy": "protected"
|
|
3008
3069
|
},
|
|
3009
|
-
{
|
|
3010
|
-
"kind": "field",
|
|
3011
|
-
"name": "_pendingSchemaEvent",
|
|
3012
|
-
"type": {
|
|
3013
|
-
"text": "CustomEvent<SchemaUpdatedEventDetail> | null"
|
|
3014
|
-
},
|
|
3015
|
-
"privacy": "private",
|
|
3016
|
-
"default": "null",
|
|
3017
|
-
"description": "Latest schema event token: newer `datasource-schema-updated` supersedes in-flight `queueUpdate` work."
|
|
3018
|
-
},
|
|
3019
|
-
{
|
|
3020
|
-
"kind": "field",
|
|
3021
|
-
"name": "_serverSchemaListenerAttached",
|
|
3022
|
-
"type": {
|
|
3023
|
-
"text": "boolean"
|
|
3024
|
-
},
|
|
3025
|
-
"privacy": "private",
|
|
3026
|
-
"default": "false"
|
|
3027
|
-
},
|
|
3028
3070
|
{
|
|
3029
3071
|
"kind": "field",
|
|
3030
3072
|
"name": "isServerSideDatasource",
|
|
@@ -3045,44 +3087,6 @@
|
|
|
3045
3087
|
}
|
|
3046
3088
|
]
|
|
3047
3089
|
},
|
|
3048
|
-
{
|
|
3049
|
-
"kind": "method",
|
|
3050
|
-
"name": "actionColumnIcon",
|
|
3051
|
-
"privacy": "private",
|
|
3052
|
-
"parameters": [
|
|
3053
|
-
{
|
|
3054
|
-
"name": "iconName",
|
|
3055
|
-
"type": {
|
|
3056
|
-
"text": "string"
|
|
3057
|
-
}
|
|
3058
|
-
},
|
|
3059
|
-
{
|
|
3060
|
-
"name": "variant",
|
|
3061
|
-
"default": "'solid'",
|
|
3062
|
-
"type": {
|
|
3063
|
-
"text": "'solid' | 'regular'"
|
|
3064
|
-
}
|
|
3065
|
-
}
|
|
3066
|
-
],
|
|
3067
|
-
"description": "Shared markup for CRUD / custom action column icons (grid cell renderers)."
|
|
3068
|
-
},
|
|
3069
|
-
{
|
|
3070
|
-
"kind": "method",
|
|
3071
|
-
"name": "populateActionButtonsConfig",
|
|
3072
|
-
"privacy": "private",
|
|
3073
|
-
"return": {
|
|
3074
|
-
"type": {
|
|
3075
|
-
"text": "void"
|
|
3076
|
-
}
|
|
3077
|
-
},
|
|
3078
|
-
"description": "Builds column defs for CRUD / custom actions in the grid (pinned action column)."
|
|
3079
|
-
},
|
|
3080
|
-
{
|
|
3081
|
-
"kind": "field",
|
|
3082
|
-
"name": "handleDatasourceSchemaUpdated",
|
|
3083
|
-
"privacy": "private",
|
|
3084
|
-
"description": "Server-side row model: `grid-pro` may run `handleSchemaUpdated` before `grid-pro-column` for action\nbuttons exist in the DOM, so the merge omits them. After schema, repopulate actions and re-dispatch\nthe same event so `grid-pro` merges again with template columns present."
|
|
3085
|
-
},
|
|
3086
3090
|
{
|
|
3087
3091
|
"kind": "field",
|
|
3088
3092
|
"name": "criteria",
|
|
@@ -3268,6 +3272,48 @@
|
|
|
3268
3272
|
"privacy": "private"
|
|
3269
3273
|
}
|
|
3270
3274
|
],
|
|
3275
|
+
"events": [
|
|
3276
|
+
{
|
|
3277
|
+
"description": "Fired when an inline update submit fails",
|
|
3278
|
+
"name": "submit-failure"
|
|
3279
|
+
},
|
|
3280
|
+
{
|
|
3281
|
+
"description": "Fired when an inline update succeeds",
|
|
3282
|
+
"name": "submit-success"
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
"description": "Fired when a row is clicked",
|
|
3286
|
+
"name": "rowClick"
|
|
3287
|
+
},
|
|
3288
|
+
{
|
|
3289
|
+
"description": "Fired when a row is double-clicked",
|
|
3290
|
+
"name": "rowDblClick"
|
|
3291
|
+
},
|
|
3292
|
+
{
|
|
3293
|
+
"description": "Fired when a row context menu is opened",
|
|
3294
|
+
"name": "contextMenu"
|
|
3295
|
+
},
|
|
3296
|
+
{
|
|
3297
|
+
"description": "Fired when row selection changes (single)",
|
|
3298
|
+
"name": "rowSelected"
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
"description": "Fired when grid selection changes",
|
|
3302
|
+
"name": "selectionChanged"
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
"description": "Fired when edit is requested",
|
|
3306
|
+
"name": "edit-entity"
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
"description": "Fired when delete is requested",
|
|
3310
|
+
"name": "delete-entity"
|
|
3311
|
+
},
|
|
3312
|
+
{
|
|
3313
|
+
"description": "Fired when a custom grid action runs",
|
|
3314
|
+
"name": "custom-action"
|
|
3315
|
+
}
|
|
3316
|
+
],
|
|
3271
3317
|
"attributes": [
|
|
3272
3318
|
{
|
|
3273
3319
|
"name": "design-system-prefix",
|
|
@@ -3451,6 +3497,27 @@
|
|
|
3451
3497
|
}
|
|
3452
3498
|
]
|
|
3453
3499
|
},
|
|
3500
|
+
{
|
|
3501
|
+
"kind": "javascript-module",
|
|
3502
|
+
"path": "src/routes/config.ts",
|
|
3503
|
+
"declarations": [],
|
|
3504
|
+
"exports": []
|
|
3505
|
+
},
|
|
3506
|
+
{
|
|
3507
|
+
"kind": "javascript-module",
|
|
3508
|
+
"path": "src/routes/index.ts",
|
|
3509
|
+
"declarations": [],
|
|
3510
|
+
"exports": [
|
|
3511
|
+
{
|
|
3512
|
+
"kind": "js",
|
|
3513
|
+
"name": "*",
|
|
3514
|
+
"declaration": {
|
|
3515
|
+
"name": "*",
|
|
3516
|
+
"package": "./config"
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3519
|
+
]
|
|
3520
|
+
},
|
|
3454
3521
|
{
|
|
3455
3522
|
"kind": "javascript-module",
|
|
3456
3523
|
"path": "src/main/index.ts",
|
|
@@ -3595,76 +3662,6 @@
|
|
|
3595
3662
|
}
|
|
3596
3663
|
]
|
|
3597
3664
|
},
|
|
3598
|
-
{
|
|
3599
|
-
"kind": "javascript-module",
|
|
3600
|
-
"path": "src/layouts/default.ts",
|
|
3601
|
-
"declarations": [
|
|
3602
|
-
{
|
|
3603
|
-
"kind": "variable",
|
|
3604
|
-
"name": "loginLayout",
|
|
3605
|
-
"default": "new GenesisElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
|
|
3606
|
-
},
|
|
3607
|
-
{
|
|
3608
|
-
"kind": "variable",
|
|
3609
|
-
"name": "defaultLayout",
|
|
3610
|
-
"default": "new GenesisElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `,\n)"
|
|
3611
|
-
}
|
|
3612
|
-
],
|
|
3613
|
-
"exports": [
|
|
3614
|
-
{
|
|
3615
|
-
"kind": "js",
|
|
3616
|
-
"name": "loginLayout",
|
|
3617
|
-
"declaration": {
|
|
3618
|
-
"name": "loginLayout",
|
|
3619
|
-
"module": "src/layouts/default.ts"
|
|
3620
|
-
}
|
|
3621
|
-
},
|
|
3622
|
-
{
|
|
3623
|
-
"kind": "js",
|
|
3624
|
-
"name": "defaultLayout",
|
|
3625
|
-
"declaration": {
|
|
3626
|
-
"name": "defaultLayout",
|
|
3627
|
-
"module": "src/layouts/default.ts"
|
|
3628
|
-
}
|
|
3629
|
-
}
|
|
3630
|
-
]
|
|
3631
|
-
},
|
|
3632
|
-
{
|
|
3633
|
-
"kind": "javascript-module",
|
|
3634
|
-
"path": "src/layouts/index.ts",
|
|
3635
|
-
"declarations": [],
|
|
3636
|
-
"exports": [
|
|
3637
|
-
{
|
|
3638
|
-
"kind": "js",
|
|
3639
|
-
"name": "*",
|
|
3640
|
-
"declaration": {
|
|
3641
|
-
"name": "*",
|
|
3642
|
-
"package": "./default"
|
|
3643
|
-
}
|
|
3644
|
-
}
|
|
3645
|
-
]
|
|
3646
|
-
},
|
|
3647
|
-
{
|
|
3648
|
-
"kind": "javascript-module",
|
|
3649
|
-
"path": "src/routes/config.ts",
|
|
3650
|
-
"declarations": [],
|
|
3651
|
-
"exports": []
|
|
3652
|
-
},
|
|
3653
|
-
{
|
|
3654
|
-
"kind": "javascript-module",
|
|
3655
|
-
"path": "src/routes/index.ts",
|
|
3656
|
-
"declarations": [],
|
|
3657
|
-
"exports": [
|
|
3658
|
-
{
|
|
3659
|
-
"kind": "js",
|
|
3660
|
-
"name": "*",
|
|
3661
|
-
"declaration": {
|
|
3662
|
-
"name": "*",
|
|
3663
|
-
"package": "./config"
|
|
3664
|
-
}
|
|
3665
|
-
}
|
|
3666
|
-
]
|
|
3667
|
-
},
|
|
3668
3665
|
{
|
|
3669
3666
|
"kind": "javascript-module",
|
|
3670
3667
|
"path": "src/utils/custom-actions-utils.ts",
|
|
@@ -280,7 +280,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
280
280
|
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
281
281
|
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
282
282
|
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
283
|
-
replaceChildren(...
|
|
283
|
+
replaceChildren(... /**
|
|
284
|
+
* Determines where the filters modal will appear on screen
|
|
285
|
+
* @public
|
|
286
|
+
*/nodes: (Node | string)[]): void;
|
|
284
287
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
285
288
|
readonly attributeStyleMap: StylePropertyMap;
|
|
286
289
|
get style(): CSSStyleDeclaration;
|
|
@@ -445,6 +448,7 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
445
448
|
* @fires rowDblClick - Fired when a row is double clicked
|
|
446
449
|
* @fires contextMenu - Fired when a row is right clicked
|
|
447
450
|
* @fires rowSelected - Fired when a row is selected
|
|
451
|
+
* @fires selectionChanged - Fired when grid selection changes (bubbled from entity-list)
|
|
448
452
|
*/
|
|
449
453
|
export declare class EntityManagement extends EntityManagement_base {
|
|
450
454
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,yBA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Aa1B;;;;;OAKG;IACG,YAAY,CAAC,CAAC,EAAE,WAAW;IAKjC;;OAEG;IACG,aAAa;IAwBnB,OAAO,CAAC,sBAAsB;IAc9B;;;;OAIG;IACI,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ;IAIpD;;;OAGG;IACI,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,EAAE;IA8C1F;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IA2C/B;;;OAGG;IACI,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,qBAAqB,CAAC;IAUjE;;;;OAIG;IACU,iBAAiB,CAAC,cAAc,GAAE,OAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAM7E;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IA6BjC,gBAAgB;IACV,eAAe;CAkCtB"}
|
package/dist/dts/list/list.d.ts
CHANGED
|
@@ -379,6 +379,21 @@ declare const List_base: (new (...args: any[]) => {
|
|
|
379
379
|
}>(BaseType: TBase): new () => InstanceType<TBase> & GenesisElement;
|
|
380
380
|
define<TType extends Function>(type: TType, nameOrDef?: string | import("@microsoft/fast-element").PartialFASTElementDefinition | undefined): TType;
|
|
381
381
|
};
|
|
382
|
+
/**
|
|
383
|
+
* Entity list grid with CRUD and selection events.
|
|
384
|
+
* @public
|
|
385
|
+
*
|
|
386
|
+
* @fires submit-failure - Fired when an inline update submit fails
|
|
387
|
+
* @fires submit-success - Fired when an inline update succeeds
|
|
388
|
+
* @fires rowClick - Fired when a row is clicked
|
|
389
|
+
* @fires rowDblClick - Fired when a row is double-clicked
|
|
390
|
+
* @fires contextMenu - Fired when a row context menu is opened
|
|
391
|
+
* @fires rowSelected - Fired when row selection changes (single)
|
|
392
|
+
* @fires selectionChanged - Fired when grid selection changes
|
|
393
|
+
* @fires edit-entity - Fired when edit is requested
|
|
394
|
+
* @fires delete-entity - Fired when delete is requested
|
|
395
|
+
* @fires custom-action - Fired when a custom grid action runs
|
|
396
|
+
*/
|
|
382
397
|
export declare class List extends List_base {
|
|
383
398
|
/**
|
|
384
399
|
* Name of the design system prefix that will be used in renderers.
|
|
@@ -427,28 +442,9 @@ export declare class List extends List_base {
|
|
|
427
442
|
statusBarConfig: GridProStatusBarConfig;
|
|
428
443
|
customActions: CustomAction[];
|
|
429
444
|
protected connect: Connect;
|
|
430
|
-
/**
|
|
431
|
-
* Latest schema event token: newer `datasource-schema-updated` supersedes in-flight `queueUpdate` work.
|
|
432
|
-
*/
|
|
433
|
-
private _pendingSchemaEvent;
|
|
434
|
-
private _serverSchemaListenerAttached;
|
|
435
445
|
get isServerSideDatasource(): boolean;
|
|
436
446
|
connectedCallback(): void;
|
|
437
447
|
handleCellEditRequest(event: CustomEvent<CellEditRequestEvent>): Promise<void>;
|
|
438
|
-
/**
|
|
439
|
-
* Shared markup for CRUD / custom action column icons (grid cell renderers).
|
|
440
|
-
*/
|
|
441
|
-
private actionColumnIcon;
|
|
442
|
-
/**
|
|
443
|
-
* Builds column defs for CRUD / custom actions in the grid (pinned action column).
|
|
444
|
-
*/
|
|
445
|
-
private populateActionButtonsConfig;
|
|
446
|
-
/**
|
|
447
|
-
* Server-side row model: `grid-pro` may run `handleSchemaUpdated` before `grid-pro-column` for action
|
|
448
|
-
* buttons exist in the DOM, so the merge omits them. After schema, repopulate actions and re-dispatch
|
|
449
|
-
* the same event so `grid-pro` merges again with template columns present.
|
|
450
|
-
*/
|
|
451
|
-
private handleDatasourceSchemaUpdated;
|
|
452
448
|
disconnectedCallback(): Promise<void>;
|
|
453
449
|
get criteria(): string;
|
|
454
450
|
get fields(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,q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|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type React from 'react';
|
|
7
|
+
import type { EntityManagement as EntityManagementWC } from './entities/entities';
|
|
8
|
+
import type { SmartFormModal as SmartFormModalWC } from './entities/smartFormModal';
|
|
9
|
+
import type { List as ListWC } from './list/list';
|
|
10
|
+
import type { EntityManagementDemo as EntityManagementDemoWC } from './routes/demo/entity-management';
|
|
11
|
+
|
|
12
|
+
/** @internal Maps a web component class to its public props only.
|
|
13
|
+
* keyof T skips private/protected members, so this avoids the TS error
|
|
14
|
+
* "property may not be private or protected" on exported anonymous types. */
|
|
15
|
+
type PublicOf<T> = { [K in keyof T]?: T[K] };
|
|
16
|
+
|
|
17
|
+
/** @internal Safe React HTML attributes for web component wrappers.
|
|
18
|
+
* onChange/onInput use method signatures for bivariant parameter checking so both
|
|
19
|
+
* native Event and CustomEvent callbacks are accepted. */
|
|
20
|
+
interface HTMLWCProps extends React.AriaAttributes {
|
|
21
|
+
className?: string; style?: React.CSSProperties; id?: string; slot?: string;
|
|
22
|
+
tabIndex?: number; dir?: string; lang?: string; title?: string;
|
|
23
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
24
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement>;
|
|
25
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement>;
|
|
26
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
27
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
28
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
29
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
30
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement>;
|
|
31
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
32
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
|
|
33
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
34
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
35
|
+
onScroll?: React.UIEventHandler<HTMLElement>;
|
|
36
|
+
onWheel?: React.WheelEventHandler<HTMLElement>;
|
|
37
|
+
onChange?(e: Event): void;
|
|
38
|
+
onInput?(e: Event): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare const EntityManagement: React.ForwardRefExoticComponent<
|
|
42
|
+
React.PropsWithChildren<
|
|
43
|
+
Omit<PublicOf<EntityManagementWC>, 'children' | 'style'> &
|
|
44
|
+
HTMLWCProps & {
|
|
45
|
+
onRequestChanged?: (event: CustomEvent<unknown>) => void;
|
|
46
|
+
onCriteriaChanged?: (event: CustomEvent<unknown>) => void;
|
|
47
|
+
onCreateEntity?: (event: CustomEvent<unknown>) => void;
|
|
48
|
+
onEditEntity?: (event: CustomEvent<unknown>) => void;
|
|
49
|
+
onDeleteEntity?: (event: CustomEvent<unknown>) => void;
|
|
50
|
+
onSubmitFailure?: (event: CustomEvent<unknown>) => void;
|
|
51
|
+
onSubmitSuccess?: (event: CustomEvent<unknown>) => void;
|
|
52
|
+
onRowClick?: (event: CustomEvent<unknown>) => void;
|
|
53
|
+
onRowDblClick?: (event: CustomEvent<unknown>) => void;
|
|
54
|
+
onRowSelected?: (event: CustomEvent<unknown>) => void;
|
|
55
|
+
onSelectionChanged?: (event: CustomEvent<unknown>) => void;
|
|
56
|
+
}
|
|
57
|
+
> & React.RefAttributes<EntityManagementWC>
|
|
58
|
+
>;
|
|
59
|
+
|
|
60
|
+
export declare const SmartFormModal: React.ForwardRefExoticComponent<
|
|
61
|
+
React.PropsWithChildren<
|
|
62
|
+
Omit<PublicOf<SmartFormModalWC>, 'children' | 'style'> &
|
|
63
|
+
HTMLWCProps & {
|
|
64
|
+
onRequestChanged?: (event: CustomEvent<unknown>) => void;
|
|
65
|
+
onCriteriaChanged?: (event: CustomEvent<unknown>) => void;
|
|
66
|
+
onCreateEntity?: (event: CustomEvent<unknown>) => void;
|
|
67
|
+
onEditEntity?: (event: CustomEvent<unknown>) => void;
|
|
68
|
+
onDeleteEntity?: (event: CustomEvent<unknown>) => void;
|
|
69
|
+
onSubmitFailure?: (event: CustomEvent<unknown>) => void;
|
|
70
|
+
onSubmitSuccess?: (event: CustomEvent<unknown>) => void;
|
|
71
|
+
onRowClick?: (event: CustomEvent<unknown>) => void;
|
|
72
|
+
onRowDblClick?: (event: CustomEvent<unknown>) => void;
|
|
73
|
+
onRowSelected?: (event: CustomEvent<unknown>) => void;
|
|
74
|
+
onSelectionChanged?: (event: CustomEvent<unknown>) => void;
|
|
75
|
+
}
|
|
76
|
+
> & React.RefAttributes<SmartFormModalWC>
|
|
77
|
+
>;
|
|
78
|
+
|
|
79
|
+
export declare const List: React.ForwardRefExoticComponent<
|
|
80
|
+
React.PropsWithChildren<
|
|
81
|
+
Omit<PublicOf<ListWC>, 'children' | 'style'> &
|
|
82
|
+
HTMLWCProps & {
|
|
83
|
+
onSubmitFailure?: (event: CustomEvent<unknown>) => void;
|
|
84
|
+
onSubmitSuccess?: (event: CustomEvent<unknown>) => void;
|
|
85
|
+
onRowClick?: (event: CustomEvent<unknown>) => void;
|
|
86
|
+
onRowDblClick?: (event: CustomEvent<unknown>) => void;
|
|
87
|
+
onRowSelected?: (event: CustomEvent<unknown>) => void;
|
|
88
|
+
onSelectionChanged?: (event: CustomEvent<unknown>) => void;
|
|
89
|
+
onEditEntity?: (event: CustomEvent<unknown>) => void;
|
|
90
|
+
onDeleteEntity?: (event: CustomEvent<unknown>) => void;
|
|
91
|
+
onCustomAction?: (event: CustomEvent<unknown>) => void;
|
|
92
|
+
}
|
|
93
|
+
> & React.RefAttributes<ListWC>
|
|
94
|
+
>;
|
|
95
|
+
|
|
96
|
+
export declare const EntityManagementDemo: React.ForwardRefExoticComponent<
|
|
97
|
+
React.PropsWithChildren<
|
|
98
|
+
Omit<PublicOf<EntityManagementDemoWC>, 'children' | 'style'> &
|
|
99
|
+
HTMLWCProps & {
|
|
100
|
+
}
|
|
101
|
+
> & React.RefAttributes<EntityManagementDemoWC>
|
|
102
|
+
>;
|
|
103
|
+
|
|
104
|
+
export {};
|
|
@@ -53,6 +53,7 @@ import { headerTemplate, template } from './entities.template';
|
|
|
53
53
|
* @fires rowDblClick - Fired when a row is double clicked
|
|
54
54
|
* @fires contextMenu - Fired when a row is right clicked
|
|
55
55
|
* @fires rowSelected - Fired when a row is selected
|
|
56
|
+
* @fires selectionChanged - Fired when grid selection changes (bubbled from entity-list)
|
|
56
57
|
*/
|
|
57
58
|
let EntityManagement = class EntityManagement extends LifecycleMixin(GenesisElement) {
|
|
58
59
|
constructor() {
|
package/dist/esm/list/list.js
CHANGED
|
@@ -2,12 +2,27 @@ import { __awaiter, __decorate } from "tslib";
|
|
|
2
2
|
import { Events } from '@ag-grid-community/core';
|
|
3
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
4
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
5
|
-
import {
|
|
5
|
+
import { EDITED_COLUMN_FIELD, ERROR_COLUMN_FIELD } from '@genesislcap/grid-pro';
|
|
6
6
|
import { attr, customElement, DOM, GenesisElement, html, observable, volatile, } from '@genesislcap/web-core';
|
|
7
7
|
import { CrudMenuPosition } from '../types';
|
|
8
8
|
import { buttonCellRenderer } from '../utils';
|
|
9
9
|
import { listStyles } from './list.styles';
|
|
10
10
|
import { listTemplate } from './list.template';
|
|
11
|
+
/**
|
|
12
|
+
* Entity list grid with CRUD and selection events.
|
|
13
|
+
* @public
|
|
14
|
+
*
|
|
15
|
+
* @fires submit-failure - Fired when an inline update submit fails
|
|
16
|
+
* @fires submit-success - Fired when an inline update succeeds
|
|
17
|
+
* @fires rowClick - Fired when a row is clicked
|
|
18
|
+
* @fires rowDblClick - Fired when a row is double-clicked
|
|
19
|
+
* @fires contextMenu - Fired when a row context menu is opened
|
|
20
|
+
* @fires rowSelected - Fired when row selection changes (single)
|
|
21
|
+
* @fires selectionChanged - Fired when grid selection changes
|
|
22
|
+
* @fires edit-entity - Fired when edit is requested
|
|
23
|
+
* @fires delete-entity - Fired when delete is requested
|
|
24
|
+
* @fires custom-action - Fired when a custom grid action runs
|
|
25
|
+
*/
|
|
11
26
|
let List = class List extends LifecycleMixin(GenesisElement) {
|
|
12
27
|
constructor() {
|
|
13
28
|
super(...arguments);
|
|
@@ -28,42 +43,6 @@ let List = class List extends LifecycleMixin(GenesisElement) {
|
|
|
28
43
|
this.datasourceType = 'client';
|
|
29
44
|
this.actionButtonsConfig = [];
|
|
30
45
|
this.customActions = [];
|
|
31
|
-
/**
|
|
32
|
-
* Latest schema event token: newer `datasource-schema-updated` supersedes in-flight `queueUpdate` work.
|
|
33
|
-
*/
|
|
34
|
-
this._pendingSchemaEvent = null;
|
|
35
|
-
this._serverSchemaListenerAttached = false;
|
|
36
|
-
/**
|
|
37
|
-
* Server-side row model: `grid-pro` may run `handleSchemaUpdated` before `grid-pro-column` for action
|
|
38
|
-
* buttons exist in the DOM, so the merge omits them. After schema, repopulate actions and re-dispatch
|
|
39
|
-
* the same event so `grid-pro` merges again with template columns present.
|
|
40
|
-
*/
|
|
41
|
-
this.handleDatasourceSchemaUpdated = (e) => {
|
|
42
|
-
var _a;
|
|
43
|
-
if (!this.isServerSideDatasource)
|
|
44
|
-
return;
|
|
45
|
-
if ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.__rebroadcast) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
this._pendingSchemaEvent = e;
|
|
49
|
-
DOM.queueUpdate(() => {
|
|
50
|
-
if (this._pendingSchemaEvent !== e)
|
|
51
|
-
return;
|
|
52
|
-
this.populateActionButtonsConfig();
|
|
53
|
-
DOM.queueUpdate(() => {
|
|
54
|
-
if (this._pendingSchemaEvent !== e)
|
|
55
|
-
return;
|
|
56
|
-
if (!this.grid)
|
|
57
|
-
return;
|
|
58
|
-
this._pendingSchemaEvent = null;
|
|
59
|
-
this.grid.dispatchEvent(new CustomEvent(datasourceEventNames.schemaUpdated, {
|
|
60
|
-
bubbles: true,
|
|
61
|
-
composed: true,
|
|
62
|
-
detail: Object.assign(Object.assign({}, e.detail), { __rebroadcast: true }),
|
|
63
|
-
}));
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
46
|
this.edit = (e) => {
|
|
68
47
|
this.$emit('edit-entity', e);
|
|
69
48
|
};
|
|
@@ -79,10 +58,39 @@ let List = class List extends LifecycleMixin(GenesisElement) {
|
|
|
79
58
|
if (!this.shouldRunConnect)
|
|
80
59
|
return;
|
|
81
60
|
this.grid.addEventListener(Events.EVENT_GRID_READY, () => {
|
|
82
|
-
this.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
this.
|
|
61
|
+
this.actionButtonsConfig = [];
|
|
62
|
+
const gridCustomActions = this.customActions.filter((action) => (action.position || CrudMenuPosition.Column) === CrudMenuPosition.Column);
|
|
63
|
+
gridCustomActions.forEach((action) => {
|
|
64
|
+
this.actionButtonsConfig.push(buttonCellRenderer(action.name, () => this.handleCustomAction(action.name), html `
|
|
65
|
+
<${this.prefix}-icon
|
|
66
|
+
style="pointer-events: none; opacity: 0.5"
|
|
67
|
+
class="icon-button"
|
|
68
|
+
variant="solid"
|
|
69
|
+
name="${action.icon || 'gear'}"
|
|
70
|
+
size="1x"
|
|
71
|
+
></${this.prefix}-icon>
|
|
72
|
+
`, action.tooltip || action.name));
|
|
73
|
+
});
|
|
74
|
+
if (this.updateEvent && !this.hideEdit) {
|
|
75
|
+
this.actionButtonsConfig.push(buttonCellRenderer('Edit', this.edit, html `
|
|
76
|
+
<${this.prefix}-icon
|
|
77
|
+
style="pointer-events: none; opacity: 0.5"
|
|
78
|
+
class="icon-button"
|
|
79
|
+
variant="solid"
|
|
80
|
+
name="pen"
|
|
81
|
+
size="1x"
|
|
82
|
+
></${this.prefix}-icon>
|
|
83
|
+
`));
|
|
84
|
+
}
|
|
85
|
+
if (this.deleteEvent && !this.hideDelete) {
|
|
86
|
+
this.actionButtonsConfig.push(buttonCellRenderer('Delete', (e) => this.delete(e), html `
|
|
87
|
+
<${this.prefix}-icon
|
|
88
|
+
style="opacity: 0.5"
|
|
89
|
+
variant="regular"
|
|
90
|
+
name="trash-alt"
|
|
91
|
+
size="1x"
|
|
92
|
+
></${this.prefix}-icon>
|
|
93
|
+
`));
|
|
86
94
|
}
|
|
87
95
|
if (this.enableFilterBar) {
|
|
88
96
|
this.addEventListener('filter-changed', this.handleFilterChanged);
|
|
@@ -124,51 +132,16 @@ let List = class List extends LifecycleMixin(GenesisElement) {
|
|
|
124
132
|
}
|
|
125
133
|
});
|
|
126
134
|
}
|
|
127
|
-
/**
|
|
128
|
-
* Shared markup for CRUD / custom action column icons (grid cell renderers).
|
|
129
|
-
*/
|
|
130
|
-
actionColumnIcon(iconName, variant = 'solid') {
|
|
131
|
-
return html `
|
|
132
|
-
<${this.prefix}-icon
|
|
133
|
-
style="pointer-events: none; opacity: 0.5"
|
|
134
|
-
class="icon-button"
|
|
135
|
-
variant="${variant}"
|
|
136
|
-
name="${iconName}"
|
|
137
|
-
size="1x"
|
|
138
|
-
></${this.prefix}-icon>
|
|
139
|
-
`;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Builds column defs for CRUD / custom actions in the grid (pinned action column).
|
|
143
|
-
*/
|
|
144
|
-
populateActionButtonsConfig() {
|
|
145
|
-
this.actionButtonsConfig = [];
|
|
146
|
-
const gridCustomActions = this.customActions.filter((action) => (action.position || CrudMenuPosition.Column) === CrudMenuPosition.Column);
|
|
147
|
-
gridCustomActions.forEach((action) => {
|
|
148
|
-
this.actionButtonsConfig.push(buttonCellRenderer(action.name, () => this.handleCustomAction(action.name), this.actionColumnIcon(action.icon || 'gear'), action.tooltip || action.name));
|
|
149
|
-
});
|
|
150
|
-
if (this.updateEvent && !this.hideEdit) {
|
|
151
|
-
this.actionButtonsConfig.push(buttonCellRenderer('Edit', this.edit, this.actionColumnIcon('pen')));
|
|
152
|
-
}
|
|
153
|
-
if (this.deleteEvent && !this.hideDelete) {
|
|
154
|
-
this.actionButtonsConfig.push(buttonCellRenderer('Delete', (e) => this.delete(e), this.actionColumnIcon('trash-alt', 'regular')));
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
135
|
disconnectedCallback() {
|
|
158
136
|
const _super = Object.create(null, {
|
|
159
137
|
disconnectedCallback: { get: () => super.disconnectedCallback }
|
|
160
138
|
});
|
|
161
139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
140
|
const shouldRunDisconnect = this.shouldRunDisconnect;
|
|
163
|
-
this._serverSchemaListenerAttached = false;
|
|
164
|
-
this._pendingSchemaEvent = null;
|
|
165
141
|
DOM.queueUpdate(() => {
|
|
166
142
|
if (!shouldRunDisconnect)
|
|
167
143
|
return;
|
|
168
144
|
_super.disconnectedCallback.call(this);
|
|
169
|
-
if (this.grid) {
|
|
170
|
-
this.grid.removeEventListener(datasourceEventNames.schemaUpdated, this.handleDatasourceSchemaUpdated);
|
|
171
|
-
}
|
|
172
145
|
if (this.enableFilterBar) {
|
|
173
146
|
this.removeEventListener('filter-changed', this.handleFilterChanged);
|
|
174
147
|
this.removeEventListener('filter-cleared', this.handleFilterCleared);
|
|
@@ -1299,7 +1299,7 @@
|
|
|
1299
1299
|
{
|
|
1300
1300
|
"kind": "Class",
|
|
1301
1301
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement:class",
|
|
1302
|
-
"docComment": "/**\n * Main class which defines the entity management functionality\n *\n * @remarks\n *\n * Connects to a backend resource and wraps up a grid which is populated with entities from that resource. The different interactions that the user can perform with the entities can be configured, examples being able to update and delete entities.\n *\n * @example\n *\n * Example of using the entity management system to handle counterparties\n * ```\n * <entity-management\n * resourceName=\"ALL_COUNTERPARTYS\"\n * title=\"Counterparty Management\"\n * updateEvent=\"EVENT_COUNTERPARTY_MODIFY\"\n * deleteEvent=\"EVENT_COUNTERPARTY_DELETE\"\n * createEvent=\"EVENT_COUNTERPARTY_INSERT\"\n * ></entity-management>\n * ```\n *\n * Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br /> - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br /> - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br /> - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />\n *\n * @fires\n *\n * request-changed - Fired when the request is changed\n *\n * @fires\n *\n * criteria-changed - Fired when the criteria is changed\n *\n * @fires\n *\n * create-entity - Fired when an entity is created\n *\n * @fires\n *\n * edit-entity - Fired when an entity is edited\n *\n * @fires\n *\n * delete-entity - Fired when an entity is deleted\n *\n * Bubbled events from the child entity-list component\n *\n * @fires\n *\n * submit-failure - Fired when there is an error in a create, edit or delete operation\n *\n * @fires\n *\n * submit-success - Fired when a create, edit or delete operation is completed successfully\n *\n * @fires\n *\n * rowClick - Fired when a row is clicked\n *\n * @fires\n *\n * rowDblClick - Fired when a row is double clicked\n *\n * @fires\n *\n * contextMenu - Fired when a row is right clicked\n *\n * @fires\n *\n * rowSelected - Fired when a row is selected\n *\n * @public\n */\n",
|
|
1302
|
+
"docComment": "/**\n * Main class which defines the entity management functionality\n *\n * @remarks\n *\n * Connects to a backend resource and wraps up a grid which is populated with entities from that resource. The different interactions that the user can perform with the entities can be configured, examples being able to update and delete entities.\n *\n * @example\n *\n * Example of using the entity management system to handle counterparties\n * ```\n * <entity-management\n * resourceName=\"ALL_COUNTERPARTYS\"\n * title=\"Counterparty Management\"\n * updateEvent=\"EVENT_COUNTERPARTY_MODIFY\"\n * deleteEvent=\"EVENT_COUNTERPARTY_DELETE\"\n * createEvent=\"EVENT_COUNTERPARTY_INSERT\"\n * ></entity-management>\n * ```\n *\n * Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the name of the resource in the database to manage is `ALL_COUNTERPARTYS`<br /> - the name of the event handler for update events is `EVENT_COUNTERPARTY_MODIFY`<br /> - the name of the event handler for create events is `EVENT_COUNTERPARTY_INSERT`<br /> - the name of the event handler for delete events is `EVENT_COUNTERPARTY_DELETE`<br />\n *\n * @fires\n *\n * request-changed - Fired when the request is changed\n *\n * @fires\n *\n * criteria-changed - Fired when the criteria is changed\n *\n * @fires\n *\n * create-entity - Fired when an entity is created\n *\n * @fires\n *\n * edit-entity - Fired when an entity is edited\n *\n * @fires\n *\n * delete-entity - Fired when an entity is deleted\n *\n * Bubbled events from the child entity-list component\n *\n * @fires\n *\n * submit-failure - Fired when there is an error in a create, edit or delete operation\n *\n * @fires\n *\n * submit-success - Fired when a create, edit or delete operation is completed successfully\n *\n * @fires\n *\n * rowClick - Fired when a row is clicked\n *\n * @fires\n *\n * rowDblClick - Fired when a row is double clicked\n *\n * @fires\n *\n * contextMenu - Fired when a row is right clicked\n *\n * @fires\n *\n * rowSelected - Fired when a row is selected\n *\n * @fires\n *\n * selectionChanged - Fired when grid selection changes (bubbled from entity-list)\n *\n * @public\n */\n",
|
|
1303
1303
|
"excerptTokens": [
|
|
1304
1304
|
{
|
|
1305
1305
|
"kind": "Content",
|
|
@@ -2959,7 +2959,7 @@
|
|
|
2959
2959
|
{
|
|
2960
2960
|
"kind": "Class",
|
|
2961
2961
|
"canonicalReference": "@genesislcap/foundation-entity-management!List:class",
|
|
2962
|
-
"docComment": "",
|
|
2962
|
+
"docComment": "/**\n * Entity list grid with CRUD and selection events.\n *\n * @fires\n *\n * submit-failure - Fired when an inline update submit fails\n *\n * @fires\n *\n * submit-success - Fired when an inline update succeeds\n *\n * @fires\n *\n * rowClick - Fired when a row is clicked\n *\n * @fires\n *\n * rowDblClick - Fired when a row is double-clicked\n *\n * @fires\n *\n * contextMenu - Fired when a row context menu is opened\n *\n * @fires\n *\n * rowSelected - Fired when row selection changes (single)\n *\n * @fires\n *\n * selectionChanged - Fired when grid selection changes\n *\n * @fires\n *\n * edit-entity - Fired when edit is requested\n *\n * @fires\n *\n * delete-entity - Fired when delete is requested\n *\n * @fires\n *\n * custom-action - Fired when a custom grid action runs\n *\n * @public\n */\n",
|
|
2963
2963
|
"excerptTokens": [
|
|
2964
2964
|
{
|
|
2965
2965
|
"kind": "Content",
|
|
@@ -201,6 +201,7 @@ export declare const ENTITY_NAME: InterfaceSymbol<string>;
|
|
|
201
201
|
* @fires rowDblClick - Fired when a row is double clicked
|
|
202
202
|
* @fires contextMenu - Fired when a row is right clicked
|
|
203
203
|
* @fires rowSelected - Fired when a row is selected
|
|
204
|
+
* @fires selectionChanged - Fired when grid selection changes (bubbled from entity-list)
|
|
204
205
|
*/
|
|
205
206
|
export declare class EntityManagement extends EntityManagement_base {
|
|
206
207
|
/**
|
|
@@ -1138,7 +1139,10 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
1138
1139
|
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
1139
1140
|
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
1140
1141
|
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
1141
|
-
replaceChildren(...
|
|
1142
|
+
replaceChildren(... /**
|
|
1143
|
+
* Determines where the filters modal will appear on screen
|
|
1144
|
+
* @public
|
|
1145
|
+
*/nodes: (Node | string)[]): void;
|
|
1142
1146
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
1143
1147
|
readonly attributeStyleMap: StylePropertyMap;
|
|
1144
1148
|
get style(): CSSStyleDeclaration;
|
|
@@ -1268,6 +1272,21 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
1268
1272
|
*/
|
|
1269
1273
|
export declare const getErrorFormat: (err: any) => string;
|
|
1270
1274
|
|
|
1275
|
+
/**
|
|
1276
|
+
* Entity list grid with CRUD and selection events.
|
|
1277
|
+
* @public
|
|
1278
|
+
*
|
|
1279
|
+
* @fires submit-failure - Fired when an inline update submit fails
|
|
1280
|
+
* @fires submit-success - Fired when an inline update succeeds
|
|
1281
|
+
* @fires rowClick - Fired when a row is clicked
|
|
1282
|
+
* @fires rowDblClick - Fired when a row is double-clicked
|
|
1283
|
+
* @fires contextMenu - Fired when a row context menu is opened
|
|
1284
|
+
* @fires rowSelected - Fired when row selection changes (single)
|
|
1285
|
+
* @fires selectionChanged - Fired when grid selection changes
|
|
1286
|
+
* @fires edit-entity - Fired when edit is requested
|
|
1287
|
+
* @fires delete-entity - Fired when delete is requested
|
|
1288
|
+
* @fires custom-action - Fired when a custom grid action runs
|
|
1289
|
+
*/
|
|
1271
1290
|
export declare class List extends List_base {
|
|
1272
1291
|
/**
|
|
1273
1292
|
* Name of the design system prefix that will be used in renderers.
|
|
@@ -1316,28 +1335,9 @@ export declare class List extends List_base {
|
|
|
1316
1335
|
statusBarConfig: GridProStatusBarConfig;
|
|
1317
1336
|
customActions: CustomAction[];
|
|
1318
1337
|
protected connect: Connect;
|
|
1319
|
-
/**
|
|
1320
|
-
* Latest schema event token: newer `datasource-schema-updated` supersedes in-flight `queueUpdate` work.
|
|
1321
|
-
*/
|
|
1322
|
-
private _pendingSchemaEvent;
|
|
1323
|
-
private _serverSchemaListenerAttached;
|
|
1324
1338
|
get isServerSideDatasource(): boolean;
|
|
1325
1339
|
connectedCallback(): void;
|
|
1326
1340
|
handleCellEditRequest(event: CustomEvent<CellEditRequestEvent>): Promise<void>;
|
|
1327
|
-
/**
|
|
1328
|
-
* Shared markup for CRUD / custom action column icons (grid cell renderers).
|
|
1329
|
-
*/
|
|
1330
|
-
private actionColumnIcon;
|
|
1331
|
-
/**
|
|
1332
|
-
* Builds column defs for CRUD / custom actions in the grid (pinned action column).
|
|
1333
|
-
*/
|
|
1334
|
-
private populateActionButtonsConfig;
|
|
1335
|
-
/**
|
|
1336
|
-
* Server-side row model: `grid-pro` may run `handleSchemaUpdated` before `grid-pro-column` for action
|
|
1337
|
-
* buttons exist in the DOM, so the merge omits them. After schema, repopulate actions and re-dispatch
|
|
1338
|
-
* the same event so `grid-pro` merges again with template columns present.
|
|
1339
|
-
*/
|
|
1340
|
-
private handleDatasourceSchemaUpdated;
|
|
1341
1341
|
disconnectedCallback(): Promise<void>;
|
|
1342
1342
|
get criteria(): string;
|
|
1343
1343
|
get fields(): string;
|
package/dist/react.cjs
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
const { provideReactWrapper } = require('@microsoft/fast-react-wrapper');
|
|
9
|
+
const React = require('react');
|
|
10
|
+
const { EntityManagement: EntityManagementWC } = require('./esm/entities/entities.js');
|
|
11
|
+
const { SmartFormModal: SmartFormModalWC } = require('./esm/entities/smartFormModal.js');
|
|
12
|
+
const { List: ListWC } = require('./esm/list/list.js');
|
|
13
|
+
const { EntityManagementDemo: EntityManagementDemoWC } = require('./esm/routes/demo/entity-management.js');
|
|
14
|
+
|
|
15
|
+
const { wrap } = provideReactWrapper(React);
|
|
16
|
+
|
|
17
|
+
const EntityManagement = wrap(EntityManagementWC, {
|
|
18
|
+
events: {
|
|
19
|
+
onRequestChanged: 'request-changed',
|
|
20
|
+
onCriteriaChanged: 'criteria-changed',
|
|
21
|
+
onCreateEntity: 'create-entity',
|
|
22
|
+
onEditEntity: 'edit-entity',
|
|
23
|
+
onDeleteEntity: 'delete-entity',
|
|
24
|
+
onSubmitFailure: 'submit-failure',
|
|
25
|
+
onSubmitSuccess: 'submit-success',
|
|
26
|
+
onRowClick: 'rowClick',
|
|
27
|
+
onRowDblClick: 'rowDblClick',
|
|
28
|
+
onRowSelected: 'rowSelected',
|
|
29
|
+
onSelectionChanged: 'selectionChanged',
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const SmartFormModal = wrap(SmartFormModalWC, {
|
|
34
|
+
events: {
|
|
35
|
+
onRequestChanged: 'request-changed',
|
|
36
|
+
onCriteriaChanged: 'criteria-changed',
|
|
37
|
+
onCreateEntity: 'create-entity',
|
|
38
|
+
onEditEntity: 'edit-entity',
|
|
39
|
+
onDeleteEntity: 'delete-entity',
|
|
40
|
+
onSubmitFailure: 'submit-failure',
|
|
41
|
+
onSubmitSuccess: 'submit-success',
|
|
42
|
+
onRowClick: 'rowClick',
|
|
43
|
+
onRowDblClick: 'rowDblClick',
|
|
44
|
+
onRowSelected: 'rowSelected',
|
|
45
|
+
onSelectionChanged: 'selectionChanged',
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const List = wrap(ListWC, {
|
|
50
|
+
events: {
|
|
51
|
+
onSubmitFailure: 'submit-failure',
|
|
52
|
+
onSubmitSuccess: 'submit-success',
|
|
53
|
+
onRowClick: 'rowClick',
|
|
54
|
+
onRowDblClick: 'rowDblClick',
|
|
55
|
+
onRowSelected: 'rowSelected',
|
|
56
|
+
onSelectionChanged: 'selectionChanged',
|
|
57
|
+
onEditEntity: 'edit-entity',
|
|
58
|
+
onDeleteEntity: 'delete-entity',
|
|
59
|
+
onCustomAction: 'custom-action',
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const EntityManagementDemo = wrap(EntityManagementDemoWC);
|
|
64
|
+
|
|
65
|
+
module.exports = {
|
|
66
|
+
EntityManagement,
|
|
67
|
+
SmartFormModal,
|
|
68
|
+
List,
|
|
69
|
+
EntityManagementDemo,
|
|
70
|
+
};
|
package/dist/react.mjs
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { EntityManagement as EntityManagementWC } from './esm/entities/entities.js';
|
|
9
|
+
import { SmartFormModal as SmartFormModalWC } from './esm/entities/smartFormModal.js';
|
|
10
|
+
import { List as ListWC } from './esm/list/list.js';
|
|
11
|
+
import { EntityManagementDemo as EntityManagementDemoWC } from './esm/routes/demo/entity-management.js';
|
|
12
|
+
|
|
13
|
+
const { wrap } = provideReactWrapper(React);
|
|
14
|
+
|
|
15
|
+
export const EntityManagement = wrap(EntityManagementWC, {
|
|
16
|
+
events: {
|
|
17
|
+
onRequestChanged: 'request-changed',
|
|
18
|
+
onCriteriaChanged: 'criteria-changed',
|
|
19
|
+
onCreateEntity: 'create-entity',
|
|
20
|
+
onEditEntity: 'edit-entity',
|
|
21
|
+
onDeleteEntity: 'delete-entity',
|
|
22
|
+
onSubmitFailure: 'submit-failure',
|
|
23
|
+
onSubmitSuccess: 'submit-success',
|
|
24
|
+
onRowClick: 'rowClick',
|
|
25
|
+
onRowDblClick: 'rowDblClick',
|
|
26
|
+
onRowSelected: 'rowSelected',
|
|
27
|
+
onSelectionChanged: 'selectionChanged',
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export const SmartFormModal = wrap(SmartFormModalWC, {
|
|
32
|
+
events: {
|
|
33
|
+
onRequestChanged: 'request-changed',
|
|
34
|
+
onCriteriaChanged: 'criteria-changed',
|
|
35
|
+
onCreateEntity: 'create-entity',
|
|
36
|
+
onEditEntity: 'edit-entity',
|
|
37
|
+
onDeleteEntity: 'delete-entity',
|
|
38
|
+
onSubmitFailure: 'submit-failure',
|
|
39
|
+
onSubmitSuccess: 'submit-success',
|
|
40
|
+
onRowClick: 'rowClick',
|
|
41
|
+
onRowDblClick: 'rowDblClick',
|
|
42
|
+
onRowSelected: 'rowSelected',
|
|
43
|
+
onSelectionChanged: 'selectionChanged',
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export const List = wrap(ListWC, {
|
|
48
|
+
events: {
|
|
49
|
+
onSubmitFailure: 'submit-failure',
|
|
50
|
+
onSubmitSuccess: 'submit-success',
|
|
51
|
+
onRowClick: 'rowClick',
|
|
52
|
+
onRowDblClick: 'rowDblClick',
|
|
53
|
+
onRowSelected: 'rowSelected',
|
|
54
|
+
onSelectionChanged: 'selectionChanged',
|
|
55
|
+
onEditEntity: 'edit-entity',
|
|
56
|
+
onDeleteEntity: 'delete-entity',
|
|
57
|
+
onCustomAction: 'custom-action',
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export const EntityManagementDemo = wrap(EntityManagementDemoWC);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-entity-management",
|
|
3
3
|
"description": "Genesis Foundation Entity Management",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.419.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -54,32 +54,33 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@genesislcap/foundation-testing": "14.
|
|
58
|
-
"@genesislcap/genx": "14.
|
|
59
|
-
"@genesislcap/rollup-builder": "14.
|
|
60
|
-
"@genesislcap/ts-builder": "14.
|
|
61
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
62
|
-
"@genesislcap/vite-builder": "14.
|
|
63
|
-
"@genesislcap/webpack-builder": "14.
|
|
57
|
+
"@genesislcap/foundation-testing": "14.419.0",
|
|
58
|
+
"@genesislcap/genx": "14.419.0",
|
|
59
|
+
"@genesislcap/rollup-builder": "14.419.0",
|
|
60
|
+
"@genesislcap/ts-builder": "14.419.0",
|
|
61
|
+
"@genesislcap/uvu-playwright-builder": "14.419.0",
|
|
62
|
+
"@genesislcap/vite-builder": "14.419.0",
|
|
63
|
+
"@genesislcap/webpack-builder": "14.419.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@ag-grid-community/core": "29.2.0"
|
|
66
|
+
"@ag-grid-community/core": "29.2.0",
|
|
67
|
+
"@microsoft/fast-react-wrapper": ">=0.3.0"
|
|
67
68
|
},
|
|
68
69
|
"dependencies": {
|
|
69
|
-
"@genesislcap/foundation-ai": "14.
|
|
70
|
-
"@genesislcap/foundation-comms": "14.
|
|
71
|
-
"@genesislcap/foundation-errors": "14.
|
|
72
|
-
"@genesislcap/foundation-events": "14.
|
|
73
|
-
"@genesislcap/foundation-forms": "14.
|
|
74
|
-
"@genesislcap/foundation-logger": "14.
|
|
75
|
-
"@genesislcap/foundation-login": "14.
|
|
76
|
-
"@genesislcap/foundation-notifications": "14.
|
|
77
|
-
"@genesislcap/foundation-ui": "14.
|
|
78
|
-
"@genesislcap/foundation-utils": "14.
|
|
79
|
-
"@genesislcap/foundation-zero": "14.
|
|
80
|
-
"@genesislcap/foundation-zero-grid-pro": "14.
|
|
81
|
-
"@genesislcap/grid-pro": "14.
|
|
82
|
-
"@genesislcap/web-core": "14.
|
|
70
|
+
"@genesislcap/foundation-ai": "14.419.0",
|
|
71
|
+
"@genesislcap/foundation-comms": "14.419.0",
|
|
72
|
+
"@genesislcap/foundation-errors": "14.419.0",
|
|
73
|
+
"@genesislcap/foundation-events": "14.419.0",
|
|
74
|
+
"@genesislcap/foundation-forms": "14.419.0",
|
|
75
|
+
"@genesislcap/foundation-logger": "14.419.0",
|
|
76
|
+
"@genesislcap/foundation-login": "14.419.0",
|
|
77
|
+
"@genesislcap/foundation-notifications": "14.419.0",
|
|
78
|
+
"@genesislcap/foundation-ui": "14.419.0",
|
|
79
|
+
"@genesislcap/foundation-utils": "14.419.0",
|
|
80
|
+
"@genesislcap/foundation-zero": "14.419.0",
|
|
81
|
+
"@genesislcap/foundation-zero-grid-pro": "14.419.0",
|
|
82
|
+
"@genesislcap/grid-pro": "14.419.0",
|
|
83
|
+
"@genesislcap/web-core": "14.419.0",
|
|
83
84
|
"change-case": "^4.1.2"
|
|
84
85
|
},
|
|
85
86
|
"repository": {
|
|
@@ -91,5 +92,16 @@
|
|
|
91
92
|
"access": "public"
|
|
92
93
|
},
|
|
93
94
|
"customElements": "dist/custom-elements.json",
|
|
94
|
-
"
|
|
95
|
+
"exports": {
|
|
96
|
+
".": {
|
|
97
|
+
"types": "./dist/foundation-entity-management.d.ts",
|
|
98
|
+
"default": "./dist/esm/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./react": {
|
|
101
|
+
"types": "./dist/dts/react.d.ts",
|
|
102
|
+
"import": "./dist/react.mjs",
|
|
103
|
+
"require": "./dist/react.cjs"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"gitHead": "e7590ac8bedb4e7d8cbbcee4100d1b0476591870"
|
|
95
107
|
}
|