@genesislcap/grid-pro 14.411.0 → 14.412.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.
@@ -1,9 +1,19 @@
1
1
  import { ICellRendererComp, ICellRendererParams } from '@ag-grid-community/core';
2
2
  import { TextField } from '@genesislcap/foundation-ui';
3
3
  import { FoundationElement } from '@microsoft/fast-foundation';
4
- interface FuiCellRendererParams extends ICellRendererParams {
4
+ /**
5
+ * Extended params for the grid text field cell renderer (affixes, accessor, etc.).
6
+ * @public
7
+ */
8
+ export interface FuiCellRendererParams extends ICellRendererParams {
5
9
  accessor?: string;
6
10
  maxLength?: number;
11
+ prefix?: string;
12
+ suffix?: string;
13
+ /**
14
+ * When true, affixes are hidden from assistive technology (`hide-affix-from-screen-reader` on the text field).
15
+ */
16
+ hideAffixFromScreenReader?: boolean;
7
17
  onChange?: (value: string, params: FuiCellRendererParams) => void;
8
18
  isDisabled?: (rowData: any) => boolean;
9
19
  }
@@ -55,5 +65,4 @@ export declare const foundationAgTextFieldRenderer: (overrideDefinition?: import
55
65
  styles: import("@microsoft/fast-element").ElementStyles;
56
66
  template: import("@microsoft/fast-element").ViewTemplate<AgTextFieldRenderer, any>;
57
67
  }, typeof AgTextFieldRenderer>;
58
- export {};
59
68
  //# sourceMappingURL=text-field.renderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/text-field.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D,UAAU,qBAAsB,SAAQ,mBAAmB;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QA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AC;IACpC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClE,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC;CACxC;AAED;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,iBAAiB;IAC9E,SAAS,EAAE,SAAS,CAAC;IAGhB,SAAS,EAAE,MAAM,CAAM;IAG5B,MAAM,EAAE,qBAAqB,CAAC;IAE9B,IAAI,CAAC,MAAM,EAAE,qBAAqB;IA0BlC,MAAM,IAAI,WAAW;IAIrB,OAAO;IAEP,OAAO,CAAC,MAAM,EAAE,qBAAqB;IAIrC,UAAU,CAAC,IAAI,KAAA,GAAG,OAAO;IAWhC;;;OAGG;IACI,WAAW,GAAI,MAAC,UAGrB;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,iDAUnC,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,GAAI,qBAA2B,6EAgBvE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;8BAIxC,CAAC"}
@@ -102,6 +102,9 @@ export const getTextFieldRendererTemplate = (designSystem = 'foundation') => {
102
102
  ${ref('textField')}
103
103
  type="text"
104
104
  class="text-renderer"
105
+ prefix="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.prefix; }}"
106
+ suffix="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.suffix; }}"
107
+ ?hide-affix-from-screen-reader="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.hideAffixFromScreenReader; }}"
105
108
  :maxlength="${(x) => x.params.maxLength}"
106
109
  ?disabled=${(x) => { var _a; return x.isDisabled((_a = x.params) === null || _a === void 0 ? void 0 : _a.data); }}
107
110
  :value="${sync((x) => x.textValue)}"
@@ -2463,7 +2463,7 @@
2463
2463
  {
2464
2464
  "kind": "Reference",
2465
2465
  "text": "FuiCellRendererParams",
2466
- "canonicalReference": "@genesislcap/grid-pro!~FuiCellRendererParams:interface"
2466
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams:interface"
2467
2467
  },
2468
2468
  {
2469
2469
  "kind": "Content",
@@ -2560,7 +2560,7 @@
2560
2560
  {
2561
2561
  "kind": "Reference",
2562
2562
  "text": "FuiCellRendererParams",
2563
- "canonicalReference": "@genesislcap/grid-pro!~FuiCellRendererParams:interface"
2563
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams:interface"
2564
2564
  },
2565
2565
  {
2566
2566
  "kind": "Content",
@@ -2591,7 +2591,7 @@
2591
2591
  {
2592
2592
  "kind": "Reference",
2593
2593
  "text": "FuiCellRendererParams",
2594
- "canonicalReference": "@genesislcap/grid-pro!~FuiCellRendererParams:interface"
2594
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams:interface"
2595
2595
  },
2596
2596
  {
2597
2597
  "kind": "Content",
@@ -8690,6 +8690,236 @@
8690
8690
  ],
8691
8691
  "name": "foundationStringEditor"
8692
8692
  },
8693
+ {
8694
+ "kind": "Interface",
8695
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams:interface",
8696
+ "docComment": "/**\n * Extended params for the grid text field cell renderer (affixes, accessor, etc.).\n *\n * @public\n */\n",
8697
+ "excerptTokens": [
8698
+ {
8699
+ "kind": "Content",
8700
+ "text": "export interface FuiCellRendererParams extends "
8701
+ },
8702
+ {
8703
+ "kind": "Reference",
8704
+ "text": "ICellRendererParams",
8705
+ "canonicalReference": "@ag-grid-community/core!ICellRendererParams:interface"
8706
+ },
8707
+ {
8708
+ "kind": "Content",
8709
+ "text": " "
8710
+ }
8711
+ ],
8712
+ "fileUrlPath": "src/cell-renderers/text-field.renderer.ts",
8713
+ "releaseTag": "Public",
8714
+ "name": "FuiCellRendererParams",
8715
+ "preserveMemberOrder": false,
8716
+ "members": [
8717
+ {
8718
+ "kind": "PropertySignature",
8719
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams#accessor:member",
8720
+ "docComment": "",
8721
+ "excerptTokens": [
8722
+ {
8723
+ "kind": "Content",
8724
+ "text": "accessor?: "
8725
+ },
8726
+ {
8727
+ "kind": "Content",
8728
+ "text": "string"
8729
+ },
8730
+ {
8731
+ "kind": "Content",
8732
+ "text": ";"
8733
+ }
8734
+ ],
8735
+ "isReadonly": false,
8736
+ "isOptional": true,
8737
+ "releaseTag": "Public",
8738
+ "name": "accessor",
8739
+ "propertyTypeTokenRange": {
8740
+ "startIndex": 1,
8741
+ "endIndex": 2
8742
+ }
8743
+ },
8744
+ {
8745
+ "kind": "PropertySignature",
8746
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams#hideAffixFromScreenReader:member",
8747
+ "docComment": "/**\n * When true, affixes are hidden from assistive technology (`hide-affix-from-screen-reader` on the text field).\n */\n",
8748
+ "excerptTokens": [
8749
+ {
8750
+ "kind": "Content",
8751
+ "text": "hideAffixFromScreenReader?: "
8752
+ },
8753
+ {
8754
+ "kind": "Content",
8755
+ "text": "boolean"
8756
+ },
8757
+ {
8758
+ "kind": "Content",
8759
+ "text": ";"
8760
+ }
8761
+ ],
8762
+ "isReadonly": false,
8763
+ "isOptional": true,
8764
+ "releaseTag": "Public",
8765
+ "name": "hideAffixFromScreenReader",
8766
+ "propertyTypeTokenRange": {
8767
+ "startIndex": 1,
8768
+ "endIndex": 2
8769
+ }
8770
+ },
8771
+ {
8772
+ "kind": "PropertySignature",
8773
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams#isDisabled:member",
8774
+ "docComment": "",
8775
+ "excerptTokens": [
8776
+ {
8777
+ "kind": "Content",
8778
+ "text": "isDisabled?: "
8779
+ },
8780
+ {
8781
+ "kind": "Content",
8782
+ "text": "(rowData: any) => boolean"
8783
+ },
8784
+ {
8785
+ "kind": "Content",
8786
+ "text": ";"
8787
+ }
8788
+ ],
8789
+ "isReadonly": false,
8790
+ "isOptional": true,
8791
+ "releaseTag": "Public",
8792
+ "name": "isDisabled",
8793
+ "propertyTypeTokenRange": {
8794
+ "startIndex": 1,
8795
+ "endIndex": 2
8796
+ }
8797
+ },
8798
+ {
8799
+ "kind": "PropertySignature",
8800
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams#maxLength:member",
8801
+ "docComment": "",
8802
+ "excerptTokens": [
8803
+ {
8804
+ "kind": "Content",
8805
+ "text": "maxLength?: "
8806
+ },
8807
+ {
8808
+ "kind": "Content",
8809
+ "text": "number"
8810
+ },
8811
+ {
8812
+ "kind": "Content",
8813
+ "text": ";"
8814
+ }
8815
+ ],
8816
+ "isReadonly": false,
8817
+ "isOptional": true,
8818
+ "releaseTag": "Public",
8819
+ "name": "maxLength",
8820
+ "propertyTypeTokenRange": {
8821
+ "startIndex": 1,
8822
+ "endIndex": 2
8823
+ }
8824
+ },
8825
+ {
8826
+ "kind": "PropertySignature",
8827
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams#onChange:member",
8828
+ "docComment": "",
8829
+ "excerptTokens": [
8830
+ {
8831
+ "kind": "Content",
8832
+ "text": "onChange?: "
8833
+ },
8834
+ {
8835
+ "kind": "Content",
8836
+ "text": "(value: string, params: "
8837
+ },
8838
+ {
8839
+ "kind": "Reference",
8840
+ "text": "FuiCellRendererParams",
8841
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams:interface"
8842
+ },
8843
+ {
8844
+ "kind": "Content",
8845
+ "text": ") => void"
8846
+ },
8847
+ {
8848
+ "kind": "Content",
8849
+ "text": ";"
8850
+ }
8851
+ ],
8852
+ "isReadonly": false,
8853
+ "isOptional": true,
8854
+ "releaseTag": "Public",
8855
+ "name": "onChange",
8856
+ "propertyTypeTokenRange": {
8857
+ "startIndex": 1,
8858
+ "endIndex": 4
8859
+ }
8860
+ },
8861
+ {
8862
+ "kind": "PropertySignature",
8863
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams#prefix:member",
8864
+ "docComment": "",
8865
+ "excerptTokens": [
8866
+ {
8867
+ "kind": "Content",
8868
+ "text": "prefix?: "
8869
+ },
8870
+ {
8871
+ "kind": "Content",
8872
+ "text": "string"
8873
+ },
8874
+ {
8875
+ "kind": "Content",
8876
+ "text": ";"
8877
+ }
8878
+ ],
8879
+ "isReadonly": false,
8880
+ "isOptional": true,
8881
+ "releaseTag": "Public",
8882
+ "name": "prefix",
8883
+ "propertyTypeTokenRange": {
8884
+ "startIndex": 1,
8885
+ "endIndex": 2
8886
+ }
8887
+ },
8888
+ {
8889
+ "kind": "PropertySignature",
8890
+ "canonicalReference": "@genesislcap/grid-pro!FuiCellRendererParams#suffix:member",
8891
+ "docComment": "",
8892
+ "excerptTokens": [
8893
+ {
8894
+ "kind": "Content",
8895
+ "text": "suffix?: "
8896
+ },
8897
+ {
8898
+ "kind": "Content",
8899
+ "text": "string"
8900
+ },
8901
+ {
8902
+ "kind": "Content",
8903
+ "text": ";"
8904
+ }
8905
+ ],
8906
+ "isReadonly": false,
8907
+ "isOptional": true,
8908
+ "releaseTag": "Public",
8909
+ "name": "suffix",
8910
+ "propertyTypeTokenRange": {
8911
+ "startIndex": 1,
8912
+ "endIndex": 2
8913
+ }
8914
+ }
8915
+ ],
8916
+ "extendsTokenRanges": [
8917
+ {
8918
+ "startIndex": 1,
8919
+ "endIndex": 2
8920
+ }
8921
+ ]
8922
+ },
8693
8923
  {
8694
8924
  "kind": "Class",
8695
8925
  "canonicalReference": "@genesislcap/grid-pro!GenesisGridDatasourceElement:class",
@@ -1329,9 +1329,19 @@ styles: ElementStyles;
1329
1329
  template: ViewTemplate<StringEditor, any>;
1330
1330
  }, typeof StringEditor>;
1331
1331
 
1332
- declare interface FuiCellRendererParams extends ICellRendererParams {
1332
+ /**
1333
+ * Extended params for the grid text field cell renderer (affixes, accessor, etc.).
1334
+ * @public
1335
+ */
1336
+ export declare interface FuiCellRendererParams extends ICellRendererParams {
1333
1337
  accessor?: string;
1334
1338
  maxLength?: number;
1339
+ prefix?: string;
1340
+ suffix?: string;
1341
+ /**
1342
+ * When true, affixes are hidden from assistive technology (`hide-affix-from-screen-reader` on the text field).
1343
+ */
1344
+ hideAffixFromScreenReader?: boolean;
1335
1345
  onChange?: (value: string, params: FuiCellRendererParams) => void;
1336
1346
  isDisabled?: (rowData: any) => boolean;
1337
1347
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/grid-pro",
3
3
  "description": "Genesis Foundation AG Grid",
4
- "version": "14.411.0",
4
+ "version": "14.412.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -40,20 +40,20 @@
40
40
  }
41
41
  },
42
42
  "devDependencies": {
43
- "@genesislcap/foundation-testing": "14.411.0",
44
- "@genesislcap/genx": "14.411.0",
45
- "@genesislcap/rollup-builder": "14.411.0",
46
- "@genesislcap/ts-builder": "14.411.0",
47
- "@genesislcap/uvu-playwright-builder": "14.411.0",
48
- "@genesislcap/vite-builder": "14.411.0",
49
- "@genesislcap/webpack-builder": "14.411.0"
43
+ "@genesislcap/foundation-testing": "14.412.0",
44
+ "@genesislcap/genx": "14.412.0",
45
+ "@genesislcap/rollup-builder": "14.412.0",
46
+ "@genesislcap/ts-builder": "14.412.0",
47
+ "@genesislcap/uvu-playwright-builder": "14.412.0",
48
+ "@genesislcap/vite-builder": "14.412.0",
49
+ "@genesislcap/webpack-builder": "14.412.0"
50
50
  },
51
51
  "dependencies": {
52
- "@genesislcap/foundation-comms": "14.411.0",
53
- "@genesislcap/foundation-criteria": "14.411.0",
54
- "@genesislcap/foundation-logger": "14.411.0",
55
- "@genesislcap/foundation-ui": "14.411.0",
56
- "@genesislcap/foundation-utils": "14.411.0",
52
+ "@genesislcap/foundation-comms": "14.412.0",
53
+ "@genesislcap/foundation-criteria": "14.412.0",
54
+ "@genesislcap/foundation-logger": "14.412.0",
55
+ "@genesislcap/foundation-ui": "14.412.0",
56
+ "@genesislcap/foundation-utils": "14.412.0",
57
57
  "@microsoft/fast-colors": "5.3.1",
58
58
  "@microsoft/fast-components": "2.30.6",
59
59
  "@microsoft/fast-element": "1.14.0",
@@ -80,5 +80,5 @@
80
80
  "access": "public"
81
81
  },
82
82
  "customElements": "dist/custom-elements.json",
83
- "gitHead": "f0f06261f9263da766433fa02f4c011c3391e3c4"
83
+ "gitHead": "b759370097c295bea2a87d6f3a132ec6dba807ca"
84
84
  }