@talxis/base-controls 1.2509.1-alpha.4 → 1.2509.1-alpha.6
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/components/DatasetControl/Filtering/DatasetColumnFilteringModel.d.ts +0 -1
- package/dist/components/DatasetControl/Filtering/interfaces.d.ts +0 -1
- package/dist/components/DateTime/translations.d.ts +0 -1
- package/dist/components/Duration/durationOptions.d.ts +0 -1
- package/dist/components/Grid/column-headers/column-header/ColumnHeader.js +2 -1
- package/dist/components/Grid/column-headers/column-header/ColumnHeader.js.map +1 -1
- package/dist/components/Grid/grid/GridModel.d.ts +0 -1
- package/dist/components/Grid/interfaces.d.ts +0 -1
- package/dist/components/GridCellRenderer/GridCellRendererModel.d.ts +0 -1
- package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.d.ts +0 -1
- package/dist/components/GridCellRenderer/interfaces.d.ts +0 -1
- package/dist/components/GridCellRenderer/properties/File.d.ts +0 -1
- package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.d.ts +0 -1
- package/dist/components/GridCellRenderer/properties/OptionSet.d.ts +0 -1
- package/dist/components/GridCellRenderer/properties/OptionSetBase.d.ts +0 -1
- package/dist/components/GridCellRenderer/properties/Property.d.ts +0 -1
- package/dist/components/GridCellRenderer/properties/TwoOptions.d.ts +0 -1
- package/dist/components/Lookup/hooks/useFetchXml.d.ts +0 -1
- package/dist/components/Lookup/hooks/useLookup.d.ts +0 -1
- package/dist/components/Lookup/interfaces.d.ts +0 -1
- package/dist/components/NestedControlRenderer/NestedControl.d.ts +0 -1
- package/dist/components/NestedControlRenderer/properties/Property.d.ts +0 -1
- package/dist/components/OptionSet/shared.d.ts +0 -1
- package/dist/hooks/useControlSizing.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/interfaces/context.d.ts +0 -1
- package/dist/interfaces/property.d.ts +0 -1
- package/dist/utils/dataset/adapters/DatasetAdapter.d.ts +0 -1
- package/dist/utils/dataset/adapters/VirtualDatasetAdapter.d.ts +0 -1
- package/dist/utils/theme/ControlTheme.d.ts +0 -1
- package/dist/utils/theme/components/ThemeWrapper.d.ts +0 -1
- package/package.json +2 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { ITranslation } from "../../../hooks";
|
|
4
3
|
import { datasetColumnFilteringTranslations } from "./translations";
|
|
5
4
|
import { Condition } from '@talxis/client-libraries';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { ThemeProviderProps } from "@fluentui/react";
|
|
4
3
|
import { IControl, IParameters, IStringProperty, ITranslations } from "../../../interfaces";
|
|
5
4
|
import { IOptionSet } from "../../OptionSet";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
export declare const getDefaultDateTimeTranslations: (dateFormattingInfo: ComponentFramework.UserSettingApi.DateFormattingInfo) => {
|
|
4
3
|
time: {
|
|
5
4
|
1029: string;
|
|
@@ -17,6 +17,7 @@ const ColumnHeader = (props) => {
|
|
|
17
17
|
const buttonRef = useRef(null);
|
|
18
18
|
const rerender = useRerender();
|
|
19
19
|
useEventEmitter(agGrid, 'onRefresh', rerender);
|
|
20
|
+
//needs to be called with onTouchEnd as well since ag grid cancels the click event on them
|
|
20
21
|
const onClick = () => {
|
|
21
22
|
if ((!column.isFilterable && column.disableSorting && !column.canBeAggregated)) {
|
|
22
23
|
return;
|
|
@@ -52,7 +53,7 @@ const ColumnHeader = (props) => {
|
|
|
52
53
|
}
|
|
53
54
|
return false;
|
|
54
55
|
};
|
|
55
|
-
return (jsxs(Fragment, { children: [jsx("div", { ref: buttonRef, onClick: onClick, children: jsx(NestedControlRenderer, { context: grid.getPcfContext(), parameters: {
|
|
56
|
+
return (jsxs(Fragment, { children: [jsx("div", { ref: buttonRef, onClick: onClick, onTouchEnd: onClick, children: jsx(NestedControlRenderer, { context: grid.getPcfContext(), parameters: {
|
|
56
57
|
ControlName: 'GridColumnHeader',
|
|
57
58
|
Bindings: {
|
|
58
59
|
Column: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnHeader.js","sources":["../../../../../src/components/Grid/column-headers/column-header/ColumnHeader.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { CommandBarButton, Icon, Label, useTheme } from '@fluentui/react';\nimport React from 'react';\nimport { useGridInstance } from '../../grid/useGridInstance';\nimport { IGridColumn } from '../../grid/GridModel';\nimport { ColumnHeaderContextualMenu, IColumnHeaderContextualMenuProps } from './ColumnHeaderContextualMenu';\nimport { FilterCallout } from './FilterCallout';\nimport { NestedControlRenderer } from '../../../NestedControlRenderer';\nimport { useRerender } from '@talxis/react-components';\nimport { useAgGridInstance } from '../../grid/ag-grid/useAgGridInstance';\nimport { useEventEmitter } from '../../../../hooks/useEventEmitter';\nimport { IAgGridModelEvents } from '../../grid/ag-grid/AgGridModel';\n\nexport interface IColumnHeader {\n baseColumn: IGridColumn;\n}\n\nexport const ColumnHeader = (props: IColumnHeader) => {\n const grid = useGridInstance();\n const agGrid = useAgGridInstance();\n const column = grid.getGridColumnByName(props.baseColumn.name);\n const [columnHeaderContextualMenuProps, setColumnHeaderContextualMenuProps] = useState<IColumnHeaderContextualMenuProps | null>(null);\n const [filterCalloutProps, setFilterCalloutProps] = useState<any | null>(null);\n const buttonRef = useRef<HTMLDivElement>(null);\n const rerender = useRerender();\n useEventEmitter<IAgGridModelEvents>(agGrid, 'onRefresh', rerender);\n\n const onClick = () => {\n if ((!column.isFilterable && column.disableSorting && !column.canBeAggregated)) {\n return;\n }\n setColumnHeaderContextualMenuProps({\n column: column,\n onDismiss: (e, dismissAll, showFilterCallout) => {\n setColumnHeaderContextualMenuProps(null);\n if (!showFilterCallout) {\n return;\n }\n setFilterCalloutProps({\n column: column,\n onDismiss: () => {\n setFilterCalloutProps(null)\n }\n })\n }\n });\n }\n const preventDismissOnEvent = (e: Event | React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element> | React.FocusEvent<Element, Element>) => {\n if (e.type !== 'scroll') {\n return false;\n }\n const target = e.target as HTMLElement;\n //check for vertical scroll\n if (target?.classList?.contains('ag-body-viewport') || target?.classList?.contains('ag-body-vertical-scroll-viewport')) {\n return true;\n }\n //ios outputs horizontal scroll if focused in callout btn which would result in dismiss of callout\n if (/iPad|iPhone|iPod/.test(navigator.userAgent)) {\n return true;\n }\n return false;\n }\n return (\n <>\n <div ref={buttonRef} onClick={onClick}>\n <NestedControlRenderer\n context={grid.getPcfContext()}\n parameters={{\n ControlName: 'GridColumnHeader',\n Bindings: {\n Column: {\n isStatic: true,\n value: column,\n type: 'Object',\n },\n Dataset: {\n value: grid.getDataset(),\n isStatic: true,\n type: 'Object',\n },\n EnableEditing: {\n isStatic: true,\n value: grid.isEditingEnabled(),\n type: 'TwoOptions'\n }\n }\n }}\n />\n </div>\n {columnHeaderContextualMenuProps &&\n <ColumnHeaderContextualMenu\n target={buttonRef}\n calloutProps={{\n preventDismissOnEvent: preventDismissOnEvent\n }}\n {...columnHeaderContextualMenuProps} />\n }\n {filterCalloutProps &&\n <FilterCallout preventDismissOnEvent={preventDismissOnEvent} target={buttonRef} {...filterCalloutProps} />\n }\n </>\n )\n};"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;AAiBa,MAAA,YAAY,GAAG,CAAC,KAAoB,KAAI;AACjD,IAAA,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC;AAC/B,IAAA,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;AACnC,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/D,MAAM,CAAC,+BAA+B,EAAE,kCAAkC,CAAC,GAAG,QAAQ,CAA0C,IAAI,CAAC,CAAC;IACtI,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAa,IAAI,CAAC,CAAC;AAC/E,IAAA,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAC/C,IAAA,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;AAC/B,IAAA,eAAe,CAAqB,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"ColumnHeader.js","sources":["../../../../../src/components/Grid/column-headers/column-header/ColumnHeader.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { CommandBarButton, Icon, Label, useTheme } from '@fluentui/react';\nimport React from 'react';\nimport { useGridInstance } from '../../grid/useGridInstance';\nimport { IGridColumn } from '../../grid/GridModel';\nimport { ColumnHeaderContextualMenu, IColumnHeaderContextualMenuProps } from './ColumnHeaderContextualMenu';\nimport { FilterCallout } from './FilterCallout';\nimport { NestedControlRenderer } from '../../../NestedControlRenderer';\nimport { useRerender } from '@talxis/react-components';\nimport { useAgGridInstance } from '../../grid/ag-grid/useAgGridInstance';\nimport { useEventEmitter } from '../../../../hooks/useEventEmitter';\nimport { IAgGridModelEvents } from '../../grid/ag-grid/AgGridModel';\n\nexport interface IColumnHeader {\n baseColumn: IGridColumn;\n}\n\nexport const ColumnHeader = (props: IColumnHeader) => {\n const grid = useGridInstance();\n const agGrid = useAgGridInstance();\n const column = grid.getGridColumnByName(props.baseColumn.name);\n const [columnHeaderContextualMenuProps, setColumnHeaderContextualMenuProps] = useState<IColumnHeaderContextualMenuProps | null>(null);\n const [filterCalloutProps, setFilterCalloutProps] = useState<any | null>(null);\n const buttonRef = useRef<HTMLDivElement>(null);\n const rerender = useRerender();\n useEventEmitter<IAgGridModelEvents>(agGrid, 'onRefresh', rerender);\n\n\n //needs to be called with onTouchEnd as well since ag grid cancels the click event on them\n const onClick = () => {\n if ((!column.isFilterable && column.disableSorting && !column.canBeAggregated)) {\n return;\n }\n setColumnHeaderContextualMenuProps({\n column: column,\n onDismiss: (e, dismissAll, showFilterCallout) => {\n setColumnHeaderContextualMenuProps(null);\n if (!showFilterCallout) {\n return;\n }\n setFilterCalloutProps({\n column: column,\n onDismiss: () => {\n setFilterCalloutProps(null)\n }\n })\n }\n });\n }\n const preventDismissOnEvent = (e: Event | React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element> | React.FocusEvent<Element, Element>) => {\n if (e.type !== 'scroll') {\n return false;\n }\n const target = e.target as HTMLElement;\n //check for vertical scroll\n if (target?.classList?.contains('ag-body-viewport') || target?.classList?.contains('ag-body-vertical-scroll-viewport')) {\n return true;\n }\n //ios outputs horizontal scroll if focused in callout btn which would result in dismiss of callout\n if (/iPad|iPhone|iPod/.test(navigator.userAgent)) {\n return true;\n }\n return false;\n }\n return (\n <>\n <div ref={buttonRef} onClick={onClick} onTouchEnd={onClick}>\n <NestedControlRenderer\n context={grid.getPcfContext()}\n parameters={{\n ControlName: 'GridColumnHeader',\n Bindings: {\n Column: {\n isStatic: true,\n value: column,\n type: 'Object',\n },\n Dataset: {\n value: grid.getDataset(),\n isStatic: true,\n type: 'Object',\n },\n EnableEditing: {\n isStatic: true,\n value: grid.isEditingEnabled(),\n type: 'TwoOptions'\n }\n }\n }}\n />\n </div>\n {columnHeaderContextualMenuProps &&\n <ColumnHeaderContextualMenu\n target={buttonRef}\n calloutProps={{\n preventDismissOnEvent: preventDismissOnEvent\n }}\n {...columnHeaderContextualMenuProps} />\n }\n {filterCalloutProps &&\n <FilterCallout preventDismissOnEvent={preventDismissOnEvent} target={buttonRef} {...filterCalloutProps} />\n }\n </>\n )\n};"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;AAiBa,MAAA,YAAY,GAAG,CAAC,KAAoB,KA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CACI,EACL,+BAA+B;AAC5B,gBAAAA,GAAA,CAAC,0BAA0B,EACvB,EAAA,MAAM,EAAE,SAAS,EACjB,YAAY,EAAE;AACV,wBAAA,qBAAqB,EAAE,qBAAqB;qBAC/C,EACG,GAAA,+BAA+B,EAAI,CAAA,EAE9C,kBAAkB;AACf,gBAAAA,GAAA,CAAC,aAAa,EAAA,EAAC,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,EAAE,SAAS,EAAM,GAAA,kBAAkB,EAAI,CAAA,CAAA,EAAA,CAE/G,EACN;AACL;;;;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { AggregationFunction, Filtering, IColumn, ICommand, ICustomColumnControl, ICustomColumnFormatting, IDataset, IRecord, TotalRow } from "@talxis/client-libraries";
|
|
4
3
|
import { ITheme } from "@talxis/react-components";
|
|
5
4
|
import { gridTranslations } from "../translations";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { AgGridReactProps } from "@ag-grid-community/react";
|
|
4
3
|
import { ITranslation } from "../../hooks";
|
|
5
4
|
import { IParameters, IStringProperty, ITwoOptionsProperty, IWholeNumberProperty } from "../../interfaces";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { IGridCellRenderer } from "./interfaces";
|
|
4
3
|
import { ITranslation } from "../../hooks";
|
|
5
4
|
import { gridGroupCellRendererTranslations } from "./translations";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="@types/powerapps-component-framework" />
|
|
3
|
-
/// <reference types="powerapps-component-framework" />
|
|
4
3
|
import { IColorfulOptionSetValueRendererProps as IColorfulOptionSetValueRendererPropsBase } from "../../interfaces";
|
|
5
4
|
interface IColorfulOptionSetValueRendererProps {
|
|
6
5
|
optionSet: ComponentFramework.PropertyHelper.OptionMetadata[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { AggregationFunction, IColumn, IDataset, IRecord } from "@talxis/client-libraries";
|
|
5
4
|
import { IControl, IDecimalNumberProperty, IParameters, IStringProperty, ITwoOptionsProperty, IWholeNumberProperty } from "../../interfaces";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { OptionSetBase } from "./OptionSetBase";
|
|
4
3
|
export declare class MultiSelectOptionSet extends OptionSetBase {
|
|
5
4
|
protected _getSelectedOptions(optionSet: ComponentFramework.PropertyHelper.OptionMetadata[]): ComponentFramework.PropertyHelper.OptionMetadata[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { OptionSetBase } from "./OptionSetBase";
|
|
4
3
|
export declare class OptionSet extends OptionSetBase {
|
|
5
4
|
protected _getSelectedOptions(optionSet: ComponentFramework.PropertyHelper.OptionMetadata[]): ComponentFramework.PropertyHelper.OptionMetadata[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { Property } from "./Property";
|
|
4
3
|
export declare abstract class OptionSetBase extends Property {
|
|
5
4
|
getColorfulOptionSet(): ComponentFramework.PropertyHelper.OptionMetadata[] | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { OptionSetBase } from "./OptionSetBase";
|
|
4
3
|
export declare class TwoOptions extends OptionSetBase {
|
|
5
4
|
protected _getSelectedOptions(optionSet: ComponentFramework.PropertyHelper.OptionMetadata[]): ComponentFramework.PropertyHelper.OptionMetadata[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { IEntity } from "../interfaces";
|
|
4
3
|
export declare const useFetchXml: (context: ComponentFramework.Context<any>) => [(viewId: string) => Promise<{
|
|
5
4
|
fetchxml: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { ITranslation } from "../../../hooks";
|
|
4
3
|
import { IEntity, ILayout, ILookup } from "../interfaces";
|
|
5
4
|
import { ITheme } from "@talxis/react-components";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { ITagPickerProps } from "@talxis/react-components";
|
|
4
3
|
import { ILookupProperty, ITwoOptionsProperty } from "../../interfaces";
|
|
5
4
|
import { IControl, IOutputs, ITranslations } from "../../interfaces/context";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { IControl, IParameters, IProperty } from "../../interfaces";
|
|
4
3
|
import { IBinding, IControlStates } from "./interfaces";
|
|
5
4
|
export interface IOptions {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { IComboBoxOption, ITheme } from "@fluentui/react";
|
|
5
4
|
export declare const onRenderColorfulOption: (options: ComponentFramework.PropertyHelper.OptionMetadata[], option: IComboBoxOption | undefined, theme: ITheme) => JSX.Element | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { ITheme, ICommandBarProps, ITextFieldProps, IDatePickerProps, ITagPickerProps, IComboBoxProps } from '@talxis/react-components';
|
|
5
4
|
import { DeepPartial, DataType, IDataset, Dataset, IDataProvider, PowerAppsDatasetProvider, IRawRecord, IColumn, IAttributeMetadata, AggregationFunction, IRecord } from '@talxis/client-libraries';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
type ExcludedProps = Pick<ComponentFramework.PropertyTypes.Property, 'formatted'>;
|
|
4
3
|
export interface IProperty extends Omit<Partial<ComponentFramework.PropertyTypes.Property>, keyof ExcludedProps | 'attributes'> {
|
|
5
4
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { Dataset, IAttributeMetadata, IColumn, IDataProvider, IRawRecord } from "@talxis/client-libraries";
|
|
4
3
|
interface IOutputs {
|
|
5
4
|
DatasetControl?: any;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
/// <reference types="powerapps-component-framework" />
|
|
3
2
|
import { DeepPartial } from "@talxis/client-libraries";
|
|
4
3
|
import { ITheme } from "@talxis/react-components";
|
|
5
4
|
export interface IFluentDesignState extends ComponentFramework.FluentDesignState {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talxis/base-controls",
|
|
3
|
-
"version": "1.2509.1-alpha.
|
|
3
|
+
"version": "1.2509.1-alpha.6",
|
|
4
4
|
"description": "Set of React components that natively work with Power Apps Component Framework API's",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@ag-grid-enterprise/row-grouping": "31.3.2",
|
|
76
76
|
"@ag-grid-enterprise/server-side-row-model": "31.3.2",
|
|
77
77
|
"@fluentui/react-migration-v8-v9": "^9.6.20",
|
|
78
|
-
"@talxis/client-libraries": "
|
|
78
|
+
"@talxis/client-libraries": "1.2509.1-alpha.4",
|
|
79
79
|
"color": "^4.2.3",
|
|
80
80
|
"dayjs": "^1.11.10",
|
|
81
81
|
"debounce": "^2.2.0",
|