@genesislcap/pbc-reporting-ui 14.497.0 → 14.499.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.
@@ -8635,121 +8635,399 @@
8635
8635
  },
8636
8636
  {
8637
8637
  "kind": "javascript-module",
8638
- "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts",
8638
+ "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms-tutorial.ts",
8639
+ "declarations": [
8640
+ {
8641
+ "kind": "class",
8642
+ "description": "",
8643
+ "name": "DataTransformsTutorial",
8644
+ "members": [
8645
+ {
8646
+ "kind": "field",
8647
+ "name": "modal",
8648
+ "type": {
8649
+ "text": "Modal"
8650
+ }
8651
+ },
8652
+ {
8653
+ "kind": "field",
8654
+ "name": "valueBuilder",
8655
+ "type": {
8656
+ "text": "RapidValueExpressionBuilder"
8657
+ }
8658
+ },
8659
+ {
8660
+ "kind": "field",
8661
+ "name": "isXlsx",
8662
+ "type": {
8663
+ "text": "boolean"
8664
+ },
8665
+ "default": "false"
8666
+ },
8667
+ {
8668
+ "kind": "field",
8669
+ "name": "hasFormats",
8670
+ "type": {
8671
+ "text": "boolean"
8672
+ },
8673
+ "default": "false"
8674
+ },
8675
+ {
8676
+ "kind": "field",
8677
+ "name": "unsubscribe",
8678
+ "type": {
8679
+ "text": "() => void"
8680
+ },
8681
+ "privacy": "private"
8682
+ },
8683
+ {
8684
+ "kind": "field",
8685
+ "name": "updateState"
8686
+ }
8687
+ ],
8688
+ "superclass": {
8689
+ "name": "GenesisElement",
8690
+ "package": "@genesislcap/web-core"
8691
+ },
8692
+ "tagName": "data-transforms-tutorial",
8693
+ "customElement": true
8694
+ }
8695
+ ],
8696
+ "exports": [
8697
+ {
8698
+ "kind": "js",
8699
+ "name": "DataTransformsTutorial",
8700
+ "declaration": {
8701
+ "name": "DataTransformsTutorial",
8702
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms-tutorial.ts"
8703
+ }
8704
+ },
8705
+ {
8706
+ "kind": "custom-element-definition",
8707
+ "name": "data-transforms-tutorial",
8708
+ "declaration": {
8709
+ "name": "DataTransformsTutorial",
8710
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms-tutorial.ts"
8711
+ }
8712
+ }
8713
+ ]
8714
+ },
8715
+ {
8716
+ "kind": "javascript-module",
8717
+ "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts",
8639
8718
  "declarations": [
8640
8719
  {
8641
8720
  "kind": "function",
8642
- "name": "lookupColumnRename",
8721
+ "name": "lookupColumnFormat",
8643
8722
  "return": {
8644
8723
  "type": {
8645
- "text": "ColumnRenameAliasRowData"
8724
+ "text": "DataTransformData"
8646
8725
  }
8647
8726
  },
8648
8727
  "parameters": [
8649
8728
  {
8650
8729
  "name": "data",
8651
8730
  "type": {
8652
- "text": "ColumnRenameAliasRowData"
8731
+ "text": "DataTransformData"
8653
8732
  }
8654
8733
  }
8655
8734
  ],
8656
- "description": "Adds display name info from store to the row data"
8735
+ "description": "Adds format configuration info from store to the row data"
8657
8736
  },
8658
8737
  {
8659
8738
  "kind": "function",
8660
- "name": "buildRenameCellStyle",
8739
+ "name": "setDefaultFormatsForDatasource",
8661
8740
  "parameters": [
8662
8741
  {
8663
- "name": "rowDeselectedStyle",
8742
+ "name": "datasourceName",
8664
8743
  "type": {
8665
- "text": "CellStyle"
8744
+ "text": "DatasourceName"
8666
8745
  }
8667
8746
  },
8668
8747
  {
8669
- "name": "rowSelectedStyle",
8670
- "default": "{}",
8748
+ "name": "schema",
8671
8749
  "type": {
8672
- "text": "CellStyle"
8750
+ "text": "Genesis.JSONSchema7"
8673
8751
  }
8674
8752
  }
8675
8753
  ],
8676
- "description": "Factory for creating cell styles based on filter status for rename grid cells"
8754
+ "description": "Sets default formats for included fields in a datasource based on their types\nThis should be called after datasource initialization when schema information is available"
8677
8755
  },
8678
8756
  {
8679
8757
  "kind": "function",
8680
- "name": "displayNameOnChangeHandler",
8758
+ "name": "valueExprCellRendereronChange",
8759
+ "return": {
8760
+ "type": {
8761
+ "text": "DataTransformRendererParams['onChange']"
8762
+ }
8763
+ },
8681
8764
  "parameters": [
8682
8765
  {
8683
- "name": "callback",
8766
+ "name": "datasourceKey",
8684
8767
  "type": {
8685
- "text": "() => any"
8768
+ "text": "DatasourceName"
8686
8769
  }
8687
8770
  }
8688
- ],
8689
- "description": "Handler for display name changes in the grid"
8771
+ ]
8690
8772
  },
8691
8773
  {
8692
8774
  "kind": "function",
8693
- "name": "renameRowSelectionChangedHandler",
8775
+ "name": "getDateSeparator",
8776
+ "parameters": [
8777
+ {
8778
+ "name": "data",
8779
+ "type": {
8780
+ "text": "DisplayConfigurationRow"
8781
+ }
8782
+ }
8783
+ ]
8784
+ },
8785
+ {
8786
+ "kind": "function",
8787
+ "name": "mapToDateFormat",
8788
+ "parameters": [
8789
+ {
8790
+ "name": "data",
8791
+ "type": {
8792
+ "text": "DisplayConfigurationRow"
8793
+ }
8794
+ }
8795
+ ]
8796
+ },
8797
+ {
8798
+ "kind": "function",
8799
+ "name": "determineDateLocaleFormat",
8694
8800
  "return": {
8695
8801
  "type": {
8696
- "text": "void"
8802
+ "text": "DateLocaleFormats"
8697
8803
  }
8698
8804
  },
8699
8805
  "parameters": [
8700
8806
  {
8701
- "name": "event",
8807
+ "name": "formatString",
8702
8808
  "type": {
8703
- "text": "RowSelectedEvent<ColumnRenameAliasRowData>"
8809
+ "text": "string"
8810
+ }
8811
+ }
8812
+ ]
8813
+ },
8814
+ {
8815
+ "kind": "function",
8816
+ "name": "getDateConfig",
8817
+ "parameters": [
8818
+ {
8819
+ "name": "formatString",
8820
+ "type": {
8821
+ "text": "string"
8822
+ }
8823
+ }
8824
+ ]
8825
+ },
8826
+ {
8827
+ "kind": "function",
8828
+ "name": "validateFormatString",
8829
+ "parameters": [
8830
+ {
8831
+ "name": "formatString",
8832
+ "type": {
8833
+ "text": "string"
8834
+ }
8835
+ }
8836
+ ]
8837
+ },
8838
+ {
8839
+ "kind": "function",
8840
+ "name": "transformFromFormatString",
8841
+ "parameters": [
8842
+ {
8843
+ "name": "formatString",
8844
+ "type": {
8845
+ "text": "string"
8846
+ }
8847
+ },
8848
+ {
8849
+ "name": "type",
8850
+ "type": {
8851
+ "text": "FormatTypes.Date | FormatTypes.Datetime"
8852
+ }
8853
+ }
8854
+ ]
8855
+ },
8856
+ {
8857
+ "kind": "variable",
8858
+ "name": "FormatToConfigTokens"
8859
+ },
8860
+ {
8861
+ "kind": "function",
8862
+ "name": "transformFromNumberFormatString",
8863
+ "return": {
8864
+ "type": {
8865
+ "text": "BaseFormatOptions"
8866
+ }
8867
+ },
8868
+ "parameters": [
8869
+ {
8870
+ "name": "formatString",
8871
+ "type": {
8872
+ "text": "string"
8873
+ }
8874
+ },
8875
+ {
8876
+ "name": "type",
8877
+ "type": {
8878
+ "text": "NumericFieldTypes"
8704
8879
  }
8705
8880
  }
8706
8881
  ],
8707
- "description": "Handler for row selection changes in the grid"
8882
+ "description": "Transforms a numeric format string back to the object structure used by the number format modal\nThis is the inverse of mapToNumberFormat"
8883
+ },
8884
+ {
8885
+ "kind": "function",
8886
+ "name": "mapToNumberFormat",
8887
+ "return": {
8888
+ "type": {
8889
+ "text": "string"
8890
+ }
8891
+ },
8892
+ "parameters": [
8893
+ {
8894
+ "name": "format",
8895
+ "type": {
8896
+ "text": "NumericFormats"
8897
+ }
8898
+ },
8899
+ {
8900
+ "name": "decimalPlaces",
8901
+ "optional": true,
8902
+ "type": {
8903
+ "text": "number"
8904
+ }
8905
+ },
8906
+ {
8907
+ "name": "currency",
8908
+ "optional": true,
8909
+ "type": {
8910
+ "text": "NumericCurrencies"
8911
+ }
8912
+ }
8913
+ ]
8708
8914
  }
8709
8915
  ],
8710
8916
  "exports": [
8711
8917
  {
8712
8918
  "kind": "js",
8713
- "name": "lookupColumnRename",
8919
+ "name": "getDefaultFormat",
8714
8920
  "declaration": {
8715
- "name": "lookupColumnRename",
8716
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"
8921
+ "name": "getDefaultFormat",
8922
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8717
8923
  }
8718
8924
  },
8719
8925
  {
8720
8926
  "kind": "js",
8721
- "name": "buildRenameCellStyle",
8927
+ "name": "lookupColumnFormat",
8722
8928
  "declaration": {
8723
- "name": "buildRenameCellStyle",
8724
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"
8929
+ "name": "lookupColumnFormat",
8930
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8725
8931
  }
8726
8932
  },
8727
8933
  {
8728
8934
  "kind": "js",
8729
- "name": "displayNameOnChangeHandler",
8935
+ "name": "setDefaultFormatsForDatasource",
8730
8936
  "declaration": {
8731
- "name": "displayNameOnChangeHandler",
8732
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"
8937
+ "name": "setDefaultFormatsForDatasource",
8938
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8733
8939
  }
8734
8940
  },
8735
8941
  {
8736
8942
  "kind": "js",
8737
- "name": "renameRowSelectionChangedHandler",
8943
+ "name": "valueExprCellRendereronChange",
8738
8944
  "declaration": {
8739
- "name": "renameRowSelectionChangedHandler",
8740
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"
8945
+ "name": "valueExprCellRendereronChange",
8946
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8947
+ }
8948
+ },
8949
+ {
8950
+ "kind": "js",
8951
+ "name": "getDateSeparator",
8952
+ "declaration": {
8953
+ "name": "getDateSeparator",
8954
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8955
+ }
8956
+ },
8957
+ {
8958
+ "kind": "js",
8959
+ "name": "mapToDateFormat",
8960
+ "declaration": {
8961
+ "name": "mapToDateFormat",
8962
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8963
+ }
8964
+ },
8965
+ {
8966
+ "kind": "js",
8967
+ "name": "determineDateLocaleFormat",
8968
+ "declaration": {
8969
+ "name": "determineDateLocaleFormat",
8970
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8971
+ }
8972
+ },
8973
+ {
8974
+ "kind": "js",
8975
+ "name": "getDateConfig",
8976
+ "declaration": {
8977
+ "name": "getDateConfig",
8978
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8979
+ }
8980
+ },
8981
+ {
8982
+ "kind": "js",
8983
+ "name": "validateFormatString",
8984
+ "declaration": {
8985
+ "name": "validateFormatString",
8986
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8987
+ }
8988
+ },
8989
+ {
8990
+ "kind": "js",
8991
+ "name": "transformFromFormatString",
8992
+ "declaration": {
8993
+ "name": "transformFromFormatString",
8994
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8995
+ }
8996
+ },
8997
+ {
8998
+ "kind": "js",
8999
+ "name": "FormatToConfigTokens",
9000
+ "declaration": {
9001
+ "name": "FormatToConfigTokens",
9002
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9003
+ }
9004
+ },
9005
+ {
9006
+ "kind": "js",
9007
+ "name": "transformFromNumberFormatString",
9008
+ "declaration": {
9009
+ "name": "transformFromNumberFormatString",
9010
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9011
+ }
9012
+ },
9013
+ {
9014
+ "kind": "js",
9015
+ "name": "mapToNumberFormat",
9016
+ "declaration": {
9017
+ "name": "mapToNumberFormat",
9018
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
8741
9019
  }
8742
9020
  }
8743
9021
  ]
8744
9022
  },
8745
9023
  {
8746
9024
  "kind": "javascript-module",
8747
- "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.styles.ts",
9025
+ "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.styles.ts",
8748
9026
  "declarations": [
8749
9027
  {
8750
9028
  "kind": "variable",
8751
9029
  "name": "styles",
8752
- "default": "css`\n div.grid-container {\n width: 100%;\n height: calc(var(--constrained-height) - 160px);\n }\n\n div.grid-container.error {\n cursor: not-allowed;\n }\n\n div.error rapid-grid-pro {\n pointer-events: none;\n opacity: 80%;\n }\n\n rapid-grid-pro::part(grid) {\n --base-height-multiplier: 9;\n --ag-selected-row-background-color: transparent !important;\n }\n`"
9030
+ "default": "css`\n div.grid-container {\n height: calc(var(--constrained-height) - 160px);\n width: 100%;\n }\n\n div.grid-container.error {\n cursor: not-allowed;\n }\n\n div.error rapid-grid-pro {\n pointer-events: none;\n opacity: 80%;\n }\n\n rapid-grid-pro::part(grid) {\n --base-height-multiplier: 9;\n --ag-selected-row-background-color: transparent !important;\n }\n`"
8753
9031
  }
8754
9032
  ],
8755
9033
  "exports": [
@@ -8758,19 +9036,19 @@
8758
9036
  "name": "styles",
8759
9037
  "declaration": {
8760
9038
  "name": "styles",
8761
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.styles.ts"
9039
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.styles.ts"
8762
9040
  }
8763
9041
  }
8764
9042
  ]
8765
9043
  },
8766
9044
  {
8767
9045
  "kind": "javascript-module",
8768
- "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.template.ts",
9046
+ "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.template.ts",
8769
9047
  "declarations": [
8770
9048
  {
8771
9049
  "kind": "variable",
8772
9050
  "name": "template",
8773
- "default": "html<ColRenamesAliases>`\n <div class=\"grid-container ${(x) => classNames(['error', x.dataError])}\">\n <rapid-grid-pro\n class=\"${(x) => classNames(['error', x.dataError])}\"\n data-test-id=\"datasource-config-col-rename-grid\"\n :gridOptions=${(x) => x.getGridOptions()}\n :rowData=${(x) => x.fieldData}\n grid-autosizing\n ></rapid-grid-pro>\n </div>\n`"
9051
+ "default": "html<DataTransformsAndDerivedFields>`\n <div class=\"grid-container ${(x) => classNames(['error', x.dataError])}\">\n <rapid-grid-pro\n class=\"${(x) => classNames(['error', x.dataError])}\"\n data-test-id=\"datasource-config-transform-data-grid\"\n :gridOptions=${(x) => x.getGridOptions()}\n :rowData=${(x) => x.fieldData}\n grid-autosizing\n ></rapid-grid-pro>\n </div>\n <date-format-modal ${ref('dateFormatModal')}></date-format-modal>\n <number-format-modal ${ref('numberFormatModal')}></number-format-modal>\n`"
8774
9052
  }
8775
9053
  ],
8776
9054
  "exports": [
@@ -8779,20 +9057,34 @@
8779
9057
  "name": "template",
8780
9058
  "declaration": {
8781
9059
  "name": "template",
8782
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.template.ts"
9060
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.template.ts"
8783
9061
  }
8784
9062
  }
8785
9063
  ]
8786
9064
  },
8787
9065
  {
8788
9066
  "kind": "javascript-module",
8789
- "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts",
9067
+ "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.ts",
8790
9068
  "declarations": [
8791
9069
  {
8792
9070
  "kind": "class",
8793
- "description": "",
8794
- "name": "ColRenamesAliases",
9071
+ "description": "TODO: This component doesn't yet do derived fields, but it will",
9072
+ "name": "DataTransformsAndDerivedFields",
8795
9073
  "members": [
9074
+ {
9075
+ "kind": "field",
9076
+ "name": "dateFormatModal",
9077
+ "type": {
9078
+ "text": "DateFormatModal"
9079
+ }
9080
+ },
9081
+ {
9082
+ "kind": "field",
9083
+ "name": "numberFormatModal",
9084
+ "type": {
9085
+ "text": "NumberFormatModal"
9086
+ }
9087
+ },
8796
9088
  {
8797
9089
  "kind": "method",
8798
9090
  "name": "updateDataFields",
@@ -8802,12 +9094,20 @@
8802
9094
  "text": "Promise<void>"
8803
9095
  }
8804
9096
  },
8805
- "description": "Override updateGridData to include column rename information",
9097
+ "description": "Update grid data with column filter information",
8806
9098
  "inheritedFrom": {
8807
9099
  "name": "DatasourceDataBaseComponent",
8808
9100
  "module": "src/new/main/edit-config/shared/datasource-data-base-component.ts"
8809
9101
  }
8810
9102
  },
9103
+ {
9104
+ "kind": "field",
9105
+ "name": "clickHandlerGridDisplay"
9106
+ },
9107
+ {
9108
+ "kind": "field",
9109
+ "name": "deleteFormat"
9110
+ },
8811
9111
  {
8812
9112
  "kind": "method",
8813
9113
  "name": "getGridOptions",
@@ -8932,266 +9232,44 @@
8932
9232
  "name": "DatasourceDataBaseComponent",
8933
9233
  "module": "/src/new/main/edit-config/shared"
8934
9234
  },
8935
- "tagName": "col-rename-alias",
8936
- "customElement": true
8937
- }
8938
- ],
8939
- "exports": [
8940
- {
8941
- "kind": "js",
8942
- "name": "ColRenamesAliases",
8943
- "declaration": {
8944
- "name": "ColRenamesAliases",
8945
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts"
8946
- }
8947
- },
8948
- {
8949
- "kind": "custom-element-definition",
8950
- "name": "col-rename-alias",
8951
- "declaration": {
8952
- "name": "ColRenamesAliases",
8953
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts"
8954
- }
8955
- }
8956
- ]
8957
- },
8958
- {
8959
- "kind": "javascript-module",
8960
- "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.types.ts",
8961
- "declarations": [],
8962
- "exports": []
8963
- },
8964
- {
8965
- "kind": "javascript-module",
8966
- "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-tutorial.ts",
8967
- "declarations": [
8968
- {
8969
- "kind": "class",
8970
- "description": "",
8971
- "name": "ColRenamesAliasesTutorial",
8972
- "superclass": {
8973
- "name": "GenesisElement",
8974
- "package": "@genesislcap/web-core"
8975
- },
8976
- "tagName": "col-renames-aliases-tutorial",
8977
- "customElement": true
8978
- }
8979
- ],
8980
- "exports": [
8981
- {
8982
- "kind": "js",
8983
- "name": "ColRenamesAliasesTutorial",
8984
- "declaration": {
8985
- "name": "ColRenamesAliasesTutorial",
8986
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-tutorial.ts"
8987
- }
8988
- },
8989
- {
8990
- "kind": "custom-element-definition",
8991
- "name": "col-renames-aliases-tutorial",
8992
- "declaration": {
8993
- "name": "ColRenamesAliasesTutorial",
8994
- "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-tutorial.ts"
8995
- }
8996
- }
8997
- ]
8998
- },
8999
- {
9000
- "kind": "javascript-module",
9001
- "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms-tutorial.ts",
9002
- "declarations": [
9003
- {
9004
- "kind": "class",
9005
- "description": "",
9006
- "name": "DataTransformsTutorial",
9007
- "members": [
9008
- {
9009
- "kind": "field",
9010
- "name": "modal",
9011
- "type": {
9012
- "text": "Modal"
9013
- }
9014
- },
9015
- {
9016
- "kind": "field",
9017
- "name": "valueBuilder",
9018
- "type": {
9019
- "text": "RapidValueExpressionBuilder"
9020
- }
9021
- },
9022
- {
9023
- "kind": "field",
9024
- "name": "isXlsx",
9025
- "type": {
9026
- "text": "boolean"
9027
- },
9028
- "default": "false"
9029
- },
9030
- {
9031
- "kind": "field",
9032
- "name": "hasFormats",
9033
- "type": {
9034
- "text": "boolean"
9035
- },
9036
- "default": "false"
9037
- },
9038
- {
9039
- "kind": "field",
9040
- "name": "unsubscribe",
9041
- "type": {
9042
- "text": "() => void"
9043
- },
9044
- "privacy": "private"
9045
- },
9046
- {
9047
- "kind": "field",
9048
- "name": "updateState"
9049
- }
9050
- ],
9051
- "superclass": {
9052
- "name": "GenesisElement",
9053
- "package": "@genesislcap/web-core"
9054
- },
9055
- "tagName": "data-transforms-tutorial",
9235
+ "tagName": "data-transforms-derived-fields",
9056
9236
  "customElement": true
9057
9237
  }
9058
9238
  ],
9059
9239
  "exports": [
9060
9240
  {
9061
9241
  "kind": "js",
9062
- "name": "DataTransformsTutorial",
9242
+ "name": "DataTransformsAndDerivedFields",
9063
9243
  "declaration": {
9064
- "name": "DataTransformsTutorial",
9065
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms-tutorial.ts"
9244
+ "name": "DataTransformsAndDerivedFields",
9245
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.ts"
9066
9246
  }
9067
9247
  },
9068
9248
  {
9069
9249
  "kind": "custom-element-definition",
9070
- "name": "data-transforms-tutorial",
9071
- "declaration": {
9072
- "name": "DataTransformsTutorial",
9073
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms-tutorial.ts"
9074
- }
9075
- }
9076
- ]
9077
- },
9078
- {
9079
- "kind": "javascript-module",
9080
- "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts",
9081
- "declarations": [
9082
- {
9083
- "kind": "function",
9084
- "name": "lookupColumnFormat",
9085
- "return": {
9086
- "type": {
9087
- "text": "DataTransformData"
9088
- }
9089
- },
9090
- "parameters": [
9091
- {
9092
- "name": "data",
9093
- "type": {
9094
- "text": "DataTransformData"
9095
- }
9096
- }
9097
- ],
9098
- "description": "Adds format configuration info from store to the row data"
9099
- },
9100
- {
9101
- "kind": "function",
9102
- "name": "setDefaultFormatsForDatasource",
9103
- "parameters": [
9104
- {
9105
- "name": "datasourceName",
9106
- "type": {
9107
- "text": "DatasourceName"
9108
- }
9109
- },
9110
- {
9111
- "name": "schema",
9112
- "type": {
9113
- "text": "Genesis.JSONSchema7"
9114
- }
9115
- }
9116
- ],
9117
- "description": "Sets default formats for included fields in a datasource based on their types\nThis should be called after datasource initialization when schema information is available"
9118
- },
9119
- {
9120
- "kind": "function",
9121
- "name": "valueExprCellRendereronChange",
9122
- "return": {
9123
- "type": {
9124
- "text": "DataTransformRendererParams['onChange']"
9125
- }
9126
- },
9127
- "parameters": [
9128
- {
9129
- "name": "datasourceKey",
9130
- "type": {
9131
- "text": "DatasourceName"
9132
- }
9133
- }
9134
- ]
9135
- },
9136
- {
9137
- "kind": "function",
9138
- "name": "getDateSeparator",
9139
- "parameters": [
9140
- {
9141
- "name": "data",
9142
- "type": {
9143
- "text": "DisplayConfigurationRow"
9144
- }
9145
- }
9146
- ]
9147
- },
9148
- {
9149
- "kind": "function",
9150
- "name": "mapToDateFormat",
9151
- "parameters": [
9152
- {
9153
- "name": "data",
9154
- "type": {
9155
- "text": "DisplayConfigurationRow"
9156
- }
9157
- }
9158
- ]
9159
- },
9250
+ "name": "data-transforms-derived-fields",
9251
+ "declaration": {
9252
+ "name": "DataTransformsAndDerivedFields",
9253
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.ts"
9254
+ }
9255
+ }
9256
+ ]
9257
+ },
9258
+ {
9259
+ "kind": "javascript-module",
9260
+ "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts",
9261
+ "declarations": [
9160
9262
  {
9161
9263
  "kind": "function",
9162
- "name": "determineDateLocaleFormat",
9264
+ "name": "isNumericFieldType",
9163
9265
  "return": {
9164
9266
  "type": {
9165
- "text": "DateLocaleFormats"
9267
+ "text": "fieldType is NumericFieldTypes"
9166
9268
  }
9167
9269
  },
9168
9270
  "parameters": [
9169
9271
  {
9170
- "name": "formatString",
9171
- "type": {
9172
- "text": "string"
9173
- }
9174
- }
9175
- ]
9176
- },
9177
- {
9178
- "kind": "function",
9179
- "name": "getDateConfig",
9180
- "parameters": [
9181
- {
9182
- "name": "formatString",
9183
- "type": {
9184
- "text": "string"
9185
- }
9186
- }
9187
- ]
9188
- },
9189
- {
9190
- "kind": "function",
9191
- "name": "validateFormatString",
9192
- "parameters": [
9193
- {
9194
- "name": "formatString",
9272
+ "name": "fieldType",
9195
9273
  "type": {
9196
9274
  "text": "string"
9197
9275
  }
@@ -9199,198 +9277,252 @@
9199
9277
  ]
9200
9278
  },
9201
9279
  {
9202
- "kind": "function",
9203
- "name": "transformFromFormatString",
9204
- "parameters": [
9205
- {
9206
- "name": "formatString",
9207
- "type": {
9208
- "text": "string"
9209
- }
9210
- },
9211
- {
9212
- "name": "type",
9213
- "type": {
9214
- "text": "FormatTypes.Date | FormatTypes.Datetime"
9215
- }
9216
- }
9217
- ]
9280
+ "kind": "variable",
9281
+ "name": "dateFormatsWithLabels",
9282
+ "type": {
9283
+ "text": "array"
9284
+ },
9285
+ "default": "[\n {\n value: DateLocaleFormats.Unformatted,\n label: `Unformatted`,\n },\n {\n value: DateLocaleFormats.US,\n label: `${DateLocaleFormats.US}`,\n },\n {\n value: DateLocaleFormats.UK,\n label: `${DateLocaleFormats.UK}`,\n },\n]"
9218
9286
  },
9219
9287
  {
9220
9288
  "kind": "variable",
9221
- "name": "FormatToConfigTokens"
9289
+ "name": "DateTimeTokens",
9290
+ "type": {
9291
+ "text": "object"
9292
+ },
9293
+ "default": "{\n year: {\n [DateYearFormats.Full]: 'yyyy',\n [DateYearFormats.Digit]: 'yy',\n },\n month: {\n [DateMonthFormats.Numeric]: 'M',\n [DateMonthFormats.Digit]: 'MM',\n [DateMonthFormats.Long]: 'MMMM',\n [DateMonthFormats.Short]: 'MMM',\n },\n day: {\n [DateStandardFormats.Numeric]: 'd',\n [DateStandardFormats.Digit]: 'dd',\n },\n hour: {\n [DateTimeFormats.Show]: 'HH',\n [`${DateTimeFormats.Show}_12`]: 'hh',\n },\n minute: {\n [DateTimeFormats.Show]: 'mm',\n },\n second: {\n [DateTimeFormats.Show]: 'ss',\n },\n}"
9222
9294
  },
9223
9295
  {
9224
- "kind": "function",
9225
- "name": "transformFromNumberFormatString",
9226
- "return": {
9227
- "type": {
9228
- "text": "BaseFormatOptions"
9229
- }
9296
+ "kind": "variable",
9297
+ "name": "numericFormatsWithLabels",
9298
+ "type": {
9299
+ "text": "array"
9230
9300
  },
9231
- "parameters": [
9232
- {
9233
- "name": "formatString",
9234
- "type": {
9235
- "text": "string"
9236
- }
9237
- },
9238
- {
9239
- "name": "type",
9240
- "type": {
9241
- "text": "NumericFieldTypes"
9242
- }
9243
- }
9244
- ],
9245
- "description": "Transforms a numeric format string back to the object structure used by the number format modal\nThis is the inverse of mapToNumberFormat"
9301
+ "default": "[\n {\n value: NumericFormats.Unformatted,\n label: `${NumericFormats.Unformatted}`,\n },\n {\n value: NumericFormats.Financial,\n label: `${NumericFormats.Financial} (1,000.12)`,\n },\n {\n value: NumericFormats.Percent,\n label: `${NumericFormats.Percent} (10.12%)`,\n },\n {\n value: NumericFormats.SimpleDecimal,\n label: `${NumericFormats.SimpleDecimal} (123.45)`,\n },\n {\n value: NumericFormats.Currency,\n label: `${NumericFormats.Currency} (£1,000.12)`,\n },\n {\n value: NumericFormats.CurrencyRounded,\n label: `${NumericFormats.CurrencyRounded} (£1,000)`,\n },\n]"
9246
9302
  },
9247
9303
  {
9248
- "kind": "function",
9249
- "name": "mapToNumberFormat",
9250
- "return": {
9251
- "type": {
9252
- "text": "string"
9253
- }
9304
+ "kind": "variable",
9305
+ "name": "LocaleDateOrderMap",
9306
+ "type": {
9307
+ "text": "Record<DateLocaleFormats, (keyof typeof DateTimeTokens)[]>"
9254
9308
  },
9255
- "parameters": [
9256
- {
9257
- "name": "format",
9258
- "type": {
9259
- "text": "NumericFormats"
9260
- }
9261
- },
9262
- {
9263
- "name": "decimalPlaces",
9264
- "optional": true,
9265
- "type": {
9266
- "text": "number"
9267
- }
9268
- },
9269
- {
9270
- "name": "currency",
9271
- "optional": true,
9272
- "type": {
9273
- "text": "NumericCurrencies"
9274
- }
9275
- }
9276
- ]
9309
+ "default": "{\n [DateLocaleFormats.UK]: ['day', 'month', 'year'],\n [DateLocaleFormats.US]: ['month', 'day', 'year'],\n [DateLocaleFormats.Unformatted]: ['year', 'month', 'day'],\n}"
9277
9310
  }
9278
9311
  ],
9279
9312
  "exports": [
9280
9313
  {
9281
9314
  "kind": "js",
9282
- "name": "getDefaultFormat",
9315
+ "name": "isNumericFieldType",
9283
9316
  "declaration": {
9284
- "name": "getDefaultFormat",
9285
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9317
+ "name": "isNumericFieldType",
9318
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9286
9319
  }
9287
9320
  },
9288
9321
  {
9289
9322
  "kind": "js",
9290
- "name": "lookupColumnFormat",
9323
+ "name": "dateFormatsWithLabels",
9291
9324
  "declaration": {
9292
- "name": "lookupColumnFormat",
9293
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9325
+ "name": "dateFormatsWithLabels",
9326
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9294
9327
  }
9295
9328
  },
9296
9329
  {
9297
9330
  "kind": "js",
9298
- "name": "setDefaultFormatsForDatasource",
9331
+ "name": "DateTimeTokens",
9299
9332
  "declaration": {
9300
- "name": "setDefaultFormatsForDatasource",
9301
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9333
+ "name": "DateTimeTokens",
9334
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9302
9335
  }
9303
9336
  },
9304
9337
  {
9305
9338
  "kind": "js",
9306
- "name": "valueExprCellRendereronChange",
9339
+ "name": "numericFormatsWithLabels",
9307
9340
  "declaration": {
9308
- "name": "valueExprCellRendereronChange",
9309
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9341
+ "name": "numericFormatsWithLabels",
9342
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9310
9343
  }
9311
9344
  },
9312
9345
  {
9313
9346
  "kind": "js",
9314
- "name": "getDateSeparator",
9347
+ "name": "LocaleDateOrderMap",
9315
9348
  "declaration": {
9316
- "name": "getDateSeparator",
9317
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9349
+ "name": "LocaleDateOrderMap",
9350
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9318
9351
  }
9319
- },
9352
+ }
9353
+ ]
9354
+ },
9355
+ {
9356
+ "kind": "javascript-module",
9357
+ "path": "src/new/main/edit-config/data-transforms-derived-fields/format-warning.ts",
9358
+ "declarations": [
9359
+ {
9360
+ "kind": "class",
9361
+ "description": "",
9362
+ "name": "FormatWarning",
9363
+ "members": [
9364
+ {
9365
+ "kind": "field",
9366
+ "name": "warning",
9367
+ "type": {
9368
+ "text": "boolean"
9369
+ },
9370
+ "default": "false"
9371
+ }
9372
+ ],
9373
+ "attributes": [
9374
+ {
9375
+ "type": {
9376
+ "text": "boolean"
9377
+ },
9378
+ "default": "false",
9379
+ "fieldName": "warning"
9380
+ }
9381
+ ],
9382
+ "superclass": {
9383
+ "name": "GenesisElement",
9384
+ "package": "@genesislcap/web-core"
9385
+ },
9386
+ "tagName": "format-warning",
9387
+ "customElement": true
9388
+ }
9389
+ ],
9390
+ "exports": [
9320
9391
  {
9321
9392
  "kind": "js",
9322
- "name": "mapToDateFormat",
9393
+ "name": "FormatWarning",
9323
9394
  "declaration": {
9324
- "name": "mapToDateFormat",
9325
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9395
+ "name": "FormatWarning",
9396
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/format-warning.ts"
9326
9397
  }
9327
9398
  },
9328
9399
  {
9329
- "kind": "js",
9330
- "name": "determineDateLocaleFormat",
9400
+ "kind": "custom-element-definition",
9401
+ "name": "format-warning",
9331
9402
  "declaration": {
9332
- "name": "determineDateLocaleFormat",
9333
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9403
+ "name": "FormatWarning",
9404
+ "module": "src/new/main/edit-config/data-transforms-derived-fields/format-warning.ts"
9334
9405
  }
9406
+ }
9407
+ ]
9408
+ },
9409
+ {
9410
+ "kind": "javascript-module",
9411
+ "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts",
9412
+ "declarations": [
9413
+ {
9414
+ "kind": "function",
9415
+ "name": "lookupColumnRename",
9416
+ "return": {
9417
+ "type": {
9418
+ "text": "ColumnRenameAliasRowData"
9419
+ }
9420
+ },
9421
+ "parameters": [
9422
+ {
9423
+ "name": "data",
9424
+ "type": {
9425
+ "text": "ColumnRenameAliasRowData"
9426
+ }
9427
+ }
9428
+ ],
9429
+ "description": "Adds display name info from store to the row data"
9335
9430
  },
9336
9431
  {
9337
- "kind": "js",
9338
- "name": "getDateConfig",
9339
- "declaration": {
9340
- "name": "getDateConfig",
9341
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9342
- }
9432
+ "kind": "function",
9433
+ "name": "buildRenameCellStyle",
9434
+ "parameters": [
9435
+ {
9436
+ "name": "rowDeselectedStyle",
9437
+ "type": {
9438
+ "text": "CellStyle"
9439
+ }
9440
+ },
9441
+ {
9442
+ "name": "rowSelectedStyle",
9443
+ "default": "{}",
9444
+ "type": {
9445
+ "text": "CellStyle"
9446
+ }
9447
+ }
9448
+ ],
9449
+ "description": "Factory for creating cell styles based on filter status for rename grid cells"
9343
9450
  },
9344
9451
  {
9345
- "kind": "js",
9346
- "name": "validateFormatString",
9347
- "declaration": {
9348
- "name": "validateFormatString",
9349
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9350
- }
9452
+ "kind": "function",
9453
+ "name": "displayNameOnChangeHandler",
9454
+ "parameters": [
9455
+ {
9456
+ "name": "callback",
9457
+ "type": {
9458
+ "text": "() => any"
9459
+ }
9460
+ }
9461
+ ],
9462
+ "description": "Handler for display name changes in the grid"
9351
9463
  },
9464
+ {
9465
+ "kind": "function",
9466
+ "name": "renameRowSelectionChangedHandler",
9467
+ "return": {
9468
+ "type": {
9469
+ "text": "void"
9470
+ }
9471
+ },
9472
+ "parameters": [
9473
+ {
9474
+ "name": "event",
9475
+ "type": {
9476
+ "text": "RowSelectedEvent<ColumnRenameAliasRowData>"
9477
+ }
9478
+ }
9479
+ ],
9480
+ "description": "Handler for row selection changes in the grid"
9481
+ }
9482
+ ],
9483
+ "exports": [
9352
9484
  {
9353
9485
  "kind": "js",
9354
- "name": "transformFromFormatString",
9486
+ "name": "lookupColumnRename",
9355
9487
  "declaration": {
9356
- "name": "transformFromFormatString",
9357
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9488
+ "name": "lookupColumnRename",
9489
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"
9358
9490
  }
9359
9491
  },
9360
9492
  {
9361
9493
  "kind": "js",
9362
- "name": "FormatToConfigTokens",
9494
+ "name": "buildRenameCellStyle",
9363
9495
  "declaration": {
9364
- "name": "FormatToConfigTokens",
9365
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9496
+ "name": "buildRenameCellStyle",
9497
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"
9366
9498
  }
9367
9499
  },
9368
9500
  {
9369
9501
  "kind": "js",
9370
- "name": "transformFromNumberFormatString",
9502
+ "name": "displayNameOnChangeHandler",
9371
9503
  "declaration": {
9372
- "name": "transformFromNumberFormatString",
9373
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9504
+ "name": "displayNameOnChangeHandler",
9505
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"
9374
9506
  }
9375
9507
  },
9376
9508
  {
9377
9509
  "kind": "js",
9378
- "name": "mapToNumberFormat",
9510
+ "name": "renameRowSelectionChangedHandler",
9379
9511
  "declaration": {
9380
- "name": "mapToNumberFormat",
9381
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.helpers.ts"
9512
+ "name": "renameRowSelectionChangedHandler",
9513
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.helpers.ts"
9382
9514
  }
9383
9515
  }
9384
9516
  ]
9385
9517
  },
9386
9518
  {
9387
9519
  "kind": "javascript-module",
9388
- "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.styles.ts",
9520
+ "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.styles.ts",
9389
9521
  "declarations": [
9390
9522
  {
9391
9523
  "kind": "variable",
9392
9524
  "name": "styles",
9393
- "default": "css`\n div.grid-container {\n height: calc(var(--constrained-height) - 160px);\n width: 100%;\n }\n\n div.grid-container.error {\n cursor: not-allowed;\n }\n\n div.error rapid-grid-pro {\n pointer-events: none;\n opacity: 80%;\n }\n\n rapid-grid-pro::part(grid) {\n --base-height-multiplier: 9;\n --ag-selected-row-background-color: transparent !important;\n }\n`"
9525
+ "default": "css`\n div.grid-container {\n width: 100%;\n height: calc(var(--constrained-height) - 160px);\n }\n\n div.grid-container.error {\n cursor: not-allowed;\n }\n\n div.error rapid-grid-pro {\n pointer-events: none;\n opacity: 80%;\n }\n\n rapid-grid-pro::part(grid) {\n --base-height-multiplier: 9;\n --ag-selected-row-background-color: transparent !important;\n }\n`"
9394
9526
  }
9395
9527
  ],
9396
9528
  "exports": [
@@ -9399,19 +9531,19 @@
9399
9531
  "name": "styles",
9400
9532
  "declaration": {
9401
9533
  "name": "styles",
9402
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.styles.ts"
9534
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.styles.ts"
9403
9535
  }
9404
9536
  }
9405
9537
  ]
9406
9538
  },
9407
9539
  {
9408
9540
  "kind": "javascript-module",
9409
- "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.template.ts",
9541
+ "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.template.ts",
9410
9542
  "declarations": [
9411
9543
  {
9412
9544
  "kind": "variable",
9413
9545
  "name": "template",
9414
- "default": "html<DataTransformsAndDerivedFields>`\n <div class=\"grid-container ${(x) => classNames(['error', x.dataError])}\">\n <rapid-grid-pro\n class=\"${(x) => classNames(['error', x.dataError])}\"\n data-test-id=\"datasource-config-transform-data-grid\"\n :gridOptions=${(x) => x.getGridOptions()}\n :rowData=${(x) => x.fieldData}\n grid-autosizing\n ></rapid-grid-pro>\n </div>\n <date-format-modal ${ref('dateFormatModal')}></date-format-modal>\n <number-format-modal ${ref('numberFormatModal')}></number-format-modal>\n`"
9546
+ "default": "html<ColRenamesAliases>`\n <div class=\"grid-container ${(x) => classNames(['error', x.dataError])}\">\n <rapid-grid-pro\n class=\"${(x) => classNames(['error', x.dataError])}\"\n data-test-id=\"datasource-config-col-rename-grid\"\n :gridOptions=${(x) => x.getGridOptions()}\n :rowData=${(x) => x.fieldData}\n grid-autosizing\n ></rapid-grid-pro>\n </div>\n`"
9415
9547
  }
9416
9548
  ],
9417
9549
  "exports": [
@@ -9420,34 +9552,20 @@
9420
9552
  "name": "template",
9421
9553
  "declaration": {
9422
9554
  "name": "template",
9423
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.template.ts"
9555
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.template.ts"
9424
9556
  }
9425
9557
  }
9426
9558
  ]
9427
9559
  },
9428
9560
  {
9429
9561
  "kind": "javascript-module",
9430
- "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.ts",
9562
+ "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts",
9431
9563
  "declarations": [
9432
9564
  {
9433
9565
  "kind": "class",
9434
- "description": "TODO: This component doesn't yet do derived fields, but it will",
9435
- "name": "DataTransformsAndDerivedFields",
9566
+ "description": "",
9567
+ "name": "ColRenamesAliases",
9436
9568
  "members": [
9437
- {
9438
- "kind": "field",
9439
- "name": "dateFormatModal",
9440
- "type": {
9441
- "text": "DateFormatModal"
9442
- }
9443
- },
9444
- {
9445
- "kind": "field",
9446
- "name": "numberFormatModal",
9447
- "type": {
9448
- "text": "NumberFormatModal"
9449
- }
9450
- },
9451
9569
  {
9452
9570
  "kind": "method",
9453
9571
  "name": "updateDataFields",
@@ -9457,20 +9575,12 @@
9457
9575
  "text": "Promise<void>"
9458
9576
  }
9459
9577
  },
9460
- "description": "Update grid data with column filter information",
9578
+ "description": "Override updateGridData to include column rename information",
9461
9579
  "inheritedFrom": {
9462
9580
  "name": "DatasourceDataBaseComponent",
9463
9581
  "module": "src/new/main/edit-config/shared/datasource-data-base-component.ts"
9464
9582
  }
9465
9583
  },
9466
- {
9467
- "kind": "field",
9468
- "name": "clickHandlerGridDisplay"
9469
- },
9470
- {
9471
- "kind": "field",
9472
- "name": "deleteFormat"
9473
- },
9474
9584
  {
9475
9585
  "kind": "method",
9476
9586
  "name": "getGridOptions",
@@ -9595,176 +9705,66 @@
9595
9705
  "name": "DatasourceDataBaseComponent",
9596
9706
  "module": "/src/new/main/edit-config/shared"
9597
9707
  },
9598
- "tagName": "data-transforms-derived-fields",
9708
+ "tagName": "col-rename-alias",
9599
9709
  "customElement": true
9600
9710
  }
9601
9711
  ],
9602
9712
  "exports": [
9603
9713
  {
9604
9714
  "kind": "js",
9605
- "name": "DataTransformsAndDerivedFields",
9715
+ "name": "ColRenamesAliases",
9606
9716
  "declaration": {
9607
- "name": "DataTransformsAndDerivedFields",
9608
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.ts"
9717
+ "name": "ColRenamesAliases",
9718
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts"
9609
9719
  }
9610
9720
  },
9611
9721
  {
9612
9722
  "kind": "custom-element-definition",
9613
- "name": "data-transforms-derived-fields",
9723
+ "name": "col-rename-alias",
9614
9724
  "declaration": {
9615
- "name": "DataTransformsAndDerivedFields",
9616
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.ts"
9725
+ "name": "ColRenamesAliases",
9726
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.ts"
9617
9727
  }
9618
9728
  }
9619
9729
  ]
9620
9730
  },
9621
9731
  {
9622
9732
  "kind": "javascript-module",
9623
- "path": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts",
9624
- "declarations": [
9625
- {
9626
- "kind": "function",
9627
- "name": "isNumericFieldType",
9628
- "return": {
9629
- "type": {
9630
- "text": "fieldType is NumericFieldTypes"
9631
- }
9632
- },
9633
- "parameters": [
9634
- {
9635
- "name": "fieldType",
9636
- "type": {
9637
- "text": "string"
9638
- }
9639
- }
9640
- ]
9641
- },
9642
- {
9643
- "kind": "variable",
9644
- "name": "dateFormatsWithLabels",
9645
- "type": {
9646
- "text": "array"
9647
- },
9648
- "default": "[\n {\n value: DateLocaleFormats.Unformatted,\n label: `Unformatted`,\n },\n {\n value: DateLocaleFormats.US,\n label: `${DateLocaleFormats.US}`,\n },\n {\n value: DateLocaleFormats.UK,\n label: `${DateLocaleFormats.UK}`,\n },\n]"
9649
- },
9650
- {
9651
- "kind": "variable",
9652
- "name": "DateTimeTokens",
9653
- "type": {
9654
- "text": "object"
9655
- },
9656
- "default": "{\n year: {\n [DateYearFormats.Full]: 'yyyy',\n [DateYearFormats.Digit]: 'yy',\n },\n month: {\n [DateMonthFormats.Numeric]: 'M',\n [DateMonthFormats.Digit]: 'MM',\n [DateMonthFormats.Long]: 'MMMM',\n [DateMonthFormats.Short]: 'MMM',\n },\n day: {\n [DateStandardFormats.Numeric]: 'd',\n [DateStandardFormats.Digit]: 'dd',\n },\n hour: {\n [DateTimeFormats.Show]: 'HH',\n [`${DateTimeFormats.Show}_12`]: 'hh',\n },\n minute: {\n [DateTimeFormats.Show]: 'mm',\n },\n second: {\n [DateTimeFormats.Show]: 'ss',\n },\n}"
9657
- },
9658
- {
9659
- "kind": "variable",
9660
- "name": "numericFormatsWithLabels",
9661
- "type": {
9662
- "text": "array"
9663
- },
9664
- "default": "[\n {\n value: NumericFormats.Unformatted,\n label: `${NumericFormats.Unformatted}`,\n },\n {\n value: NumericFormats.Financial,\n label: `${NumericFormats.Financial} (1,000.12)`,\n },\n {\n value: NumericFormats.Percent,\n label: `${NumericFormats.Percent} (10.12%)`,\n },\n {\n value: NumericFormats.SimpleDecimal,\n label: `${NumericFormats.SimpleDecimal} (123.45)`,\n },\n {\n value: NumericFormats.Currency,\n label: `${NumericFormats.Currency} (£1,000.12)`,\n },\n {\n value: NumericFormats.CurrencyRounded,\n label: `${NumericFormats.CurrencyRounded} (£1,000)`,\n },\n]"
9665
- },
9666
- {
9667
- "kind": "variable",
9668
- "name": "LocaleDateOrderMap",
9669
- "type": {
9670
- "text": "Record<DateLocaleFormats, (keyof typeof DateTimeTokens)[]>"
9671
- },
9672
- "default": "{\n [DateLocaleFormats.UK]: ['day', 'month', 'year'],\n [DateLocaleFormats.US]: ['month', 'day', 'year'],\n [DateLocaleFormats.Unformatted]: ['year', 'month', 'day'],\n}"
9673
- }
9674
- ],
9675
- "exports": [
9676
- {
9677
- "kind": "js",
9678
- "name": "isNumericFieldType",
9679
- "declaration": {
9680
- "name": "isNumericFieldType",
9681
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9682
- }
9683
- },
9684
- {
9685
- "kind": "js",
9686
- "name": "dateFormatsWithLabels",
9687
- "declaration": {
9688
- "name": "dateFormatsWithLabels",
9689
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9690
- }
9691
- },
9692
- {
9693
- "kind": "js",
9694
- "name": "DateTimeTokens",
9695
- "declaration": {
9696
- "name": "DateTimeTokens",
9697
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9698
- }
9699
- },
9700
- {
9701
- "kind": "js",
9702
- "name": "numericFormatsWithLabels",
9703
- "declaration": {
9704
- "name": "numericFormatsWithLabels",
9705
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9706
- }
9707
- },
9708
- {
9709
- "kind": "js",
9710
- "name": "LocaleDateOrderMap",
9711
- "declaration": {
9712
- "name": "LocaleDateOrderMap",
9713
- "module": "src/new/main/edit-config/data-transforms-derived-fields/data-transforms.types.ts"
9714
- }
9715
- }
9716
- ]
9733
+ "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-grid.types.ts",
9734
+ "declarations": [],
9735
+ "exports": []
9717
9736
  },
9718
9737
  {
9719
9738
  "kind": "javascript-module",
9720
- "path": "src/new/main/edit-config/data-transforms-derived-fields/format-warning.ts",
9739
+ "path": "src/new/main/edit-config/col-rename-alias/col-rename-alias-tutorial.ts",
9721
9740
  "declarations": [
9722
9741
  {
9723
9742
  "kind": "class",
9724
9743
  "description": "",
9725
- "name": "FormatWarning",
9726
- "members": [
9727
- {
9728
- "kind": "field",
9729
- "name": "warning",
9730
- "type": {
9731
- "text": "boolean"
9732
- },
9733
- "default": "false"
9734
- }
9735
- ],
9736
- "attributes": [
9737
- {
9738
- "type": {
9739
- "text": "boolean"
9740
- },
9741
- "default": "false",
9742
- "fieldName": "warning"
9743
- }
9744
- ],
9744
+ "name": "ColRenamesAliasesTutorial",
9745
9745
  "superclass": {
9746
9746
  "name": "GenesisElement",
9747
9747
  "package": "@genesislcap/web-core"
9748
9748
  },
9749
- "tagName": "format-warning",
9749
+ "tagName": "col-renames-aliases-tutorial",
9750
9750
  "customElement": true
9751
9751
  }
9752
9752
  ],
9753
9753
  "exports": [
9754
9754
  {
9755
9755
  "kind": "js",
9756
- "name": "FormatWarning",
9756
+ "name": "ColRenamesAliasesTutorial",
9757
9757
  "declaration": {
9758
- "name": "FormatWarning",
9759
- "module": "src/new/main/edit-config/data-transforms-derived-fields/format-warning.ts"
9758
+ "name": "ColRenamesAliasesTutorial",
9759
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-tutorial.ts"
9760
9760
  }
9761
9761
  },
9762
9762
  {
9763
9763
  "kind": "custom-element-definition",
9764
- "name": "format-warning",
9764
+ "name": "col-renames-aliases-tutorial",
9765
9765
  "declaration": {
9766
- "name": "FormatWarning",
9767
- "module": "src/new/main/edit-config/data-transforms-derived-fields/format-warning.ts"
9766
+ "name": "ColRenamesAliasesTutorial",
9767
+ "module": "src/new/main/edit-config/col-rename-alias/col-rename-alias-tutorial.ts"
9768
9768
  }
9769
9769
  }
9770
9770
  ]