@talxis/base-controls 1.2502.1 → 1.2503.2
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/DatasetControl.js +21 -34
- package/dist/components/DatasetControl/DatasetControl.js.map +1 -1
- package/dist/components/DatasetControl/ErrorBoundary.js +33 -0
- package/dist/components/DatasetControl/ErrorBoundary.js.map +1 -0
- package/dist/components/DatasetControl/QuickFind/QuickFind.d.ts +10 -0
- package/dist/components/DatasetControl/QuickFind/QuickFind.js +38 -0
- package/dist/components/DatasetControl/QuickFind/QuickFind.js.map +1 -0
- package/dist/components/DatasetControl/styles.d.ts +3 -1
- package/dist/components/DatasetControl/styles.js +2 -2
- package/dist/components/DatasetControl/styles.js.map +1 -1
- package/dist/components/DatasetControl/translations.d.ts +8 -0
- package/dist/components/DatasetControl/translations.js +3 -1
- package/dist/components/DatasetControl/translations.js.map +1 -1
- package/dist/components/DateTime/DateTime.js +2 -1
- package/dist/components/DateTime/DateTime.js.map +1 -1
- package/dist/components/DateTime/components/Calendar.d.ts +2 -1
- package/dist/components/DateTime/components/Calendar.js +4 -4
- package/dist/components/DateTime/components/Calendar.js.map +1 -1
- package/dist/components/DateTime/hooks/useDateTime.js +18 -17
- package/dist/components/DateTime/hooks/useDateTime.js.map +1 -1
- package/dist/components/Decimal/Decimal.js +5 -1
- package/dist/components/Decimal/Decimal.js.map +1 -1
- package/dist/components/Duration/Duration.js +49 -26
- package/dist/components/Duration/Duration.js.map +1 -1
- package/dist/components/Grid/Grid.js +1 -1
- package/dist/components/Grid/Grid.js.map +1 -1
- package/dist/components/Grid/core/components/AgGrid/AgGrid.js +78 -174
- package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +1 -1
- package/dist/components/Grid/core/components/AgGrid/context.d.ts +3 -0
- package/dist/components/Grid/core/components/AgGrid/context.js +6 -0
- package/dist/components/Grid/core/components/AgGrid/context.js.map +1 -0
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +40 -5
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +235 -49
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +1 -1
- package/dist/components/Grid/core/components/AgGrid/model/Comparator.d.ts +9 -0
- package/dist/components/Grid/core/components/AgGrid/model/Comparator.js +86 -0
- package/dist/components/Grid/core/components/AgGrid/model/Comparator.js.map +1 -0
- package/dist/components/Grid/core/components/AgGrid/styles.d.ts +28 -32
- package/dist/components/Grid/core/components/AgGrid/styles.js +31 -35
- package/dist/components/Grid/core/components/AgGrid/styles.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/Cell.d.ts +13 -0
- package/dist/components/Grid/core/components/Cell/Cell.js +145 -0
- package/dist/components/Grid/core/components/Cell/Cell.js.map +1 -0
- package/dist/components/Grid/core/components/Cell/CellContent/CellContent.d.ts +3 -0
- package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js +212 -0
- package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js.map +1 -0
- package/dist/components/Grid/core/components/Cell/CellContent/styles.d.ts +33 -0
- package/dist/components/Grid/core/components/Cell/CellContent/styles.js +39 -0
- package/dist/components/Grid/core/components/Cell/CellContent/styles.js.map +1 -0
- package/dist/components/Grid/core/components/Cell/Commands/Commands.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/Notifications/Notifications.d.ts +12 -0
- package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js +112 -0
- package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js.map +1 -0
- package/dist/components/Grid/core/components/Cell/Notifications/styles.d.ts +39 -0
- package/dist/components/Grid/core/components/Cell/Notifications/styles.js +46 -0
- package/dist/components/Grid/core/components/Cell/Notifications/styles.js.map +1 -0
- package/dist/components/Grid/core/components/Cell/styles.d.ts +40 -0
- package/dist/components/Grid/core/components/Cell/styles.js +59 -0
- package/dist/components/Grid/core/components/Cell/styles.js.map +1 -0
- package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js +3 -2
- package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js.map +1 -1
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js +31 -13
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js.map +1 -1
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.d.ts +3 -2
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js +5 -4
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js.map +1 -1
- package/dist/components/Grid/core/components/ColumnHeader/styles.d.ts +3 -1
- package/dist/components/Grid/core/components/ColumnHeader/styles.js +4 -2
- package/dist/components/Grid/core/components/ColumnHeader/styles.js.map +1 -1
- package/dist/components/Grid/core/components/Save/Save.js +5 -6
- package/dist/components/Grid/core/components/Save/Save.js.map +1 -1
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js +10 -7
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js.map +1 -1
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.d.ts +1 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js +26 -7
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js.map +1 -1
- package/dist/components/Grid/core/controllers/useGridController.js +8 -2
- package/dist/components/Grid/core/controllers/useGridController.js.map +1 -1
- package/dist/components/Grid/core/interfaces/IGridColumn.d.ts +2 -0
- package/dist/components/Grid/core/model/Grid.d.ts +16 -7
- package/dist/components/Grid/core/model/Grid.js +230 -45
- package/dist/components/Grid/core/model/Grid.js.map +1 -1
- package/dist/components/Grid/core/model/Metadata.d.ts +2 -1
- package/dist/components/Grid/core/services/KeyListener.d.ts +2 -0
- package/dist/components/Grid/core/services/KeyListener.js +6 -3
- package/dist/components/Grid/core/services/KeyListener.js.map +1 -1
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js +3 -3
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js.map +1 -1
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.d.ts +19 -7
- package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/Component.d.ts +2 -2
- package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/Component.js +9 -9
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js.map +1 -0
- package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/controller/useComponentController.d.ts +2 -2
- package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/controller/useComponentController.js +1 -1
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js.map +1 -0
- package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/model/Component.d.ts +2 -2
- package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/model/Component.js +15 -19
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js.map +1 -0
- package/dist/components/Grid/filtering/model/Condition.js +1 -1
- package/dist/components/Grid/filtering/model/Condition.js.map +1 -1
- package/dist/components/Grid/selection/model/Selection.d.ts +3 -4
- package/dist/components/Grid/selection/model/Selection.js +8 -26
- package/dist/components/Grid/selection/model/Selection.js.map +1 -1
- package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +1 -1
- package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map +1 -1
- package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.d.ts +2 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js +11 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js.map +1 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/index.d.ts +1 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js +2 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js.map +1 -0
- package/dist/components/GridCellRenderer/GridCellRenderer.d.ts +3 -0
- package/dist/components/GridCellRenderer/GridCellRenderer.js +252 -0
- package/dist/components/GridCellRenderer/GridCellRenderer.js.map +1 -0
- package/dist/components/GridCellRenderer/OptionSet/OptionSet.d.ts +5 -0
- package/dist/components/GridCellRenderer/OptionSet/OptionSet.js +69 -0
- package/dist/components/GridCellRenderer/OptionSet/OptionSet.js.map +1 -0
- package/dist/components/GridCellRenderer/OptionSet/index.d.ts +1 -0
- package/dist/components/GridCellRenderer/OptionSet/index.js +2 -0
- package/dist/components/GridCellRenderer/OptionSet/index.js.map +1 -0
- package/dist/components/{Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet → GridCellRenderer/OptionSet}/styles.d.ts +10 -12
- package/dist/components/GridCellRenderer/OptionSet/styles.js +29 -0
- package/dist/components/GridCellRenderer/OptionSet/styles.js.map +1 -0
- package/dist/components/GridCellRenderer/index.d.ts +1 -0
- package/dist/components/GridCellRenderer/index.js +2 -0
- package/dist/components/GridCellRenderer/index.js.map +1 -0
- package/dist/components/GridCellRenderer/interfaces.d.ts +53 -0
- package/dist/components/GridCellRenderer/styles.d.ts +72 -0
- package/dist/components/GridCellRenderer/styles.js +105 -0
- package/dist/components/GridCellRenderer/styles.js.map +1 -0
- package/dist/components/GridCellRenderer/translations.d.ts +6 -0
- package/dist/components/GridCellRenderer/translations.js +11 -0
- package/dist/components/GridCellRenderer/translations.js.map +1 -0
- package/dist/components/GridCellRenderer/useComponentProps.d.ts +6 -0
- package/dist/components/GridCellRenderer/useComponentProps.js +10 -0
- package/dist/components/GridCellRenderer/useComponentProps.js.map +1 -0
- package/dist/components/Lookup/Lookup.js +8 -3
- package/dist/components/Lookup/Lookup.js.map +1 -1
- package/dist/components/Lookup/styles.d.ts +19 -7
- package/dist/components/Lookup/styles.js +22 -8
- package/dist/components/Lookup/styles.js.map +1 -1
- package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js +51 -28
- package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js.map +1 -1
- package/dist/components/NestedControlRenderer/NestedControl.d.ts +86 -0
- package/dist/components/NestedControlRenderer/NestedControl.js +456 -0
- package/dist/components/NestedControlRenderer/NestedControl.js.map +1 -0
- package/dist/components/NestedControlRenderer/NestedControlError.d.ts +4 -0
- package/dist/components/NestedControlRenderer/NestedControlError.js +13 -0
- package/dist/components/NestedControlRenderer/NestedControlError.js.map +1 -0
- package/dist/components/NestedControlRenderer/NestedControlRenderer.d.ts +3 -0
- package/dist/components/NestedControlRenderer/NestedControlRenderer.js +194 -0
- package/dist/components/NestedControlRenderer/NestedControlRenderer.js.map +1 -0
- package/dist/components/NestedControlRenderer/index.d.ts +1 -0
- package/dist/components/NestedControlRenderer/index.js +2 -0
- package/dist/components/NestedControlRenderer/index.js.map +1 -0
- package/dist/components/NestedControlRenderer/interfaces.d.ts +122 -0
- package/dist/components/NestedControlRenderer/manifest/Control.d.ts +16 -0
- package/dist/components/NestedControlRenderer/manifest/Control.js +40 -0
- package/dist/components/NestedControlRenderer/manifest/Control.js.map +1 -0
- package/dist/components/NestedControlRenderer/manifest/Manifest.d.ts +5 -0
- package/dist/components/NestedControlRenderer/manifest/Manifest.js +12 -0
- package/dist/components/NestedControlRenderer/manifest/Manifest.js.map +1 -0
- package/dist/components/NestedControlRenderer/manifest/TypeGroup.d.ts +6 -0
- package/dist/components/NestedControlRenderer/manifest/TypeGroup.js +13 -0
- package/dist/components/NestedControlRenderer/manifest/TypeGroup.js.map +1 -0
- package/dist/components/NestedControlRenderer/manifest/index.d.ts +1 -0
- package/dist/components/NestedControlRenderer/manifest/index.js +2 -0
- package/dist/components/NestedControlRenderer/manifest/index.js.map +1 -0
- package/dist/components/NestedControlRenderer/manifest/property/Property.d.ts +16 -0
- package/dist/components/NestedControlRenderer/manifest/property/Property.js +34 -0
- package/dist/components/NestedControlRenderer/manifest/property/Property.js.map +1 -0
- package/dist/components/NestedControlRenderer/manifest/property/Value.d.ts +8 -0
- package/dist/components/NestedControlRenderer/manifest/property/Value.js +12 -0
- package/dist/components/NestedControlRenderer/manifest/property/Value.js.map +1 -0
- package/dist/components/NestedControlRenderer/properties/DateProperty.d.ts +5 -0
- package/dist/components/NestedControlRenderer/properties/DateProperty.js +20 -0
- package/dist/components/NestedControlRenderer/properties/DateProperty.js.map +1 -0
- package/dist/components/NestedControlRenderer/properties/FileProperty.d.ts +5 -0
- package/dist/components/NestedControlRenderer/properties/FileProperty.js +14 -0
- package/dist/components/NestedControlRenderer/properties/FileProperty.js.map +1 -0
- package/dist/components/NestedControlRenderer/properties/LookupProperty.d.ts +6 -0
- package/dist/components/NestedControlRenderer/properties/LookupProperty.js +35 -0
- package/dist/components/NestedControlRenderer/properties/LookupProperty.js.map +1 -0
- package/dist/components/NestedControlRenderer/properties/NumberProperty.d.ts +5 -0
- package/dist/components/NestedControlRenderer/properties/NumberProperty.js +15 -0
- package/dist/components/NestedControlRenderer/properties/NumberProperty.js.map +1 -0
- package/dist/components/NestedControlRenderer/properties/OptionSetProperty.d.ts +5 -0
- package/dist/components/NestedControlRenderer/properties/OptionSetProperty.js +22 -0
- package/dist/components/NestedControlRenderer/properties/OptionSetProperty.js.map +1 -0
- package/dist/components/NestedControlRenderer/properties/Property.d.ts +17 -0
- package/dist/components/NestedControlRenderer/properties/Property.js +46 -0
- package/dist/components/NestedControlRenderer/properties/Property.js.map +1 -0
- package/dist/components/NestedControlRenderer/properties/TextProperty.d.ts +5 -0
- package/dist/components/NestedControlRenderer/properties/TextProperty.js +15 -0
- package/dist/components/NestedControlRenderer/properties/TextProperty.js.map +1 -0
- package/dist/components/NestedControlRenderer/styles.d.ts +14 -0
- package/dist/components/NestedControlRenderer/styles.js +21 -0
- package/dist/components/NestedControlRenderer/styles.js.map +1 -0
- package/dist/components/NestedControlRenderer/translations.d.ts +14 -0
- package/dist/components/NestedControlRenderer/translations.js +19 -0
- package/dist/components/NestedControlRenderer/translations.js.map +1 -0
- package/dist/components/OptionSet/OptionSet.js +3 -3
- package/dist/components/OptionSet/OptionSet.js.map +1 -1
- package/dist/components/OptionSet/useComboBoxTheme.js +17 -17
- package/dist/components/OptionSet/useComboBoxTheme.js.map +1 -1
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/interfaces.d.ts +2 -2
- package/dist/components/TwoOptions/TwoOptions.js +2 -1
- package/dist/components/TwoOptions/TwoOptions.js.map +1 -1
- package/dist/components/index.d.ts +13 -0
- package/dist/components/index.js +15 -0
- package/dist/components/index.js.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useControl.d.ts +1 -7
- package/dist/hooks/useControl.js +12 -40
- package/dist/hooks/useControl.js.map +1 -1
- package/dist/hooks/useControlLabels.d.ts +14 -0
- package/dist/hooks/useControlLabels.js +47 -0
- package/dist/hooks/useControlLabels.js.map +1 -0
- package/dist/hooks/useInputBasedControl.d.ts +2 -1
- package/dist/hooks/useInputBasedControl.js +3 -5
- package/dist/hooks/useInputBasedControl.js.map +1 -1
- package/dist/hooks/usePrevious.d.ts +1 -0
- package/dist/index.d.ts +456 -140
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces/context.d.ts +2 -1
- package/dist/interfaces/index.d.ts +1 -1
- package/dist/interfaces/property.d.ts +5 -0
- package/dist/utils/BaseControls.d.ts +16 -0
- package/dist/utils/BaseControls.js +82 -0
- package/dist/utils/BaseControls.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/theme/ControlTheme.d.ts +1 -1
- package/dist/utils/theme/ControlTheme.js +1 -1
- package/dist/utils/theme/ControlTheme.js.map +1 -1
- package/dist/utils/theme/components/ThemeWrapper.d.ts +9 -0
- package/dist/utils/theme/components/ThemeWrapper.js +11 -0
- package/dist/utils/theme/components/ThemeWrapper.js.map +1 -0
- package/dist/utils/theme/components/index.d.ts +1 -0
- package/dist/utils/theme/components/index.js +2 -0
- package/dist/utils/theme/components/index.js.map +1 -0
- package/dist/utils/theme/hooks/useControlTheme.d.ts +1 -1
- package/dist/utils/theme/hooks/useControlTheme.js.map +1 -1
- package/dist/utils/theme/index.d.ts +1 -0
- package/dist/utils/theme/index.js +1 -0
- package/dist/utils/theme/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.d.ts +0 -10
- package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.js +0 -82
- package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.js.map +0 -1
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.d.ts +0 -11
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.js +0 -93
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.js.map +0 -1
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.d.ts +0 -36
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.js +0 -42
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.js.map +0 -1
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.d.ts +0 -11
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.js +0 -221
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.js.map +0 -1
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.d.ts +0 -10
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js +0 -49
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js.map +0 -1
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.js +0 -27
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.js.map +0 -1
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.d.ts +0 -99
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.js +0 -123
- package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.js.map +0 -1
- package/dist/components/Grid/core/components/Component/Component.js.map +0 -1
- package/dist/components/Grid/core/components/Component/controller/useComponentController.js.map +0 -1
- package/dist/components/Grid/core/components/Component/model/Component.js.map +0 -1
- package/dist/components/Grid/core/model/Metadata.js +0 -26
- package/dist/components/Grid/core/model/Metadata.js.map +0 -1
- package/dist/components/Grid/selection/controllers/useSelectionController.d.ts +0 -11
- package/dist/components/Grid/selection/controllers/useSelectionController.js +0 -21
- package/dist/components/Grid/selection/controllers/useSelectionController.js.map +0 -1
- package/dist/hooks/useRerender.d.ts +0 -1
- package/dist/hooks/useRerender.js +0 -9
- package/dist/hooks/useRerender.js.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Property } from './Property.js';
|
|
2
|
+
|
|
3
|
+
class FileProperty extends Property {
|
|
4
|
+
getParameter() {
|
|
5
|
+
const value = this.getValue();
|
|
6
|
+
return {
|
|
7
|
+
raw: value,
|
|
8
|
+
formatted: this.getFormattedValue() ?? ''
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { FileProperty };
|
|
14
|
+
//# sourceMappingURL=FileProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileProperty.js","sources":["../../../../src/components/NestedControlRenderer/properties/FileProperty.ts"],"sourcesContent":["import { FieldValue } from \"@talxis/client-libraries\";\nimport { Property } from \"./Property\";\nimport { IFileProperty } from \"../../../interfaces\";\n\nexport class FileProperty extends Property {\n public getParameter(): IFileProperty {\n const value = this.getValue();\n return {\n raw: value,\n formatted: this.getFormattedValue() ?? ''\n }\n }\n}"],"names":[],"mappings":";;AAIM,MAAO,YAAa,SAAQ,QAAQ,CAAA;IAC/B,YAAY,GAAA;AACf,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,OAAO;AACH,YAAA,GAAG,EAAE,KAAK;AACV,YAAA,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,EAAE;SAC5C,CAAA;KACJ;AACJ;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PromiseCache } from '@talxis/client-libraries';
|
|
2
|
+
import { Property } from './Property.js';
|
|
3
|
+
|
|
4
|
+
const LookupCache = new PromiseCache();
|
|
5
|
+
class LookupProperty extends Property {
|
|
6
|
+
getParameter() {
|
|
7
|
+
const value = this.getValue() ?? [];
|
|
8
|
+
return {
|
|
9
|
+
raw: value,
|
|
10
|
+
formatted: this.getFormattedValue(),
|
|
11
|
+
getAllViews: (entityName, __queryType) => this._getAllViews(entityName, __queryType),
|
|
12
|
+
attributes: this.attributeMetadata ?? {
|
|
13
|
+
Targets: [],
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
async _getAllViews(entityName, __queryType = 64) {
|
|
18
|
+
const cacheKey = `${entityName}_${__queryType}`;
|
|
19
|
+
const result = await LookupCache.get(cacheKey, async () => {
|
|
20
|
+
const response = await this.parentPcfContext.webAPI.retrieveMultipleRecords('savedquery', `?$filter=returnedtypecode eq '${entityName}' and querytype eq ${__queryType} and isdefault eq true&$select=name,savedqueryid,fetchxml`);
|
|
21
|
+
return response.entities[0];
|
|
22
|
+
});
|
|
23
|
+
return [
|
|
24
|
+
{
|
|
25
|
+
isDefault: true,
|
|
26
|
+
viewName: result.name,
|
|
27
|
+
viewId: result.savedqueryid,
|
|
28
|
+
fetchXml: result.fetchxml
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { LookupProperty };
|
|
35
|
+
//# sourceMappingURL=LookupProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LookupProperty.js","sources":["../../../../src/components/NestedControlRenderer/properties/LookupProperty.ts"],"sourcesContent":["import { FieldValue, PromiseCache } from \"@talxis/client-libraries\";\nimport { Property } from \"./Property\";\nimport { ILookupProperty } from \"../../../interfaces\";\n\nconst LookupCache = new PromiseCache();\n\nexport class LookupProperty extends Property {\n\n public getParameter(): ILookupProperty {\n const value = this.getValue() ?? []; \n return {\n raw: value,\n formatted: this.getFormattedValue(),\n getAllViews: (entityName: string, __queryType?: number) => this._getAllViews(entityName, __queryType),\n attributes: <any>this.attributeMetadata ?? {\n Targets: [],\n }\n }\n }\n\n private async _getAllViews(entityName: string, __queryType: number = 64) {\n const cacheKey = `${entityName}_${__queryType}`\n const result = await LookupCache.get(cacheKey, async () => {\n const response = await this.parentPcfContext.webAPI.retrieveMultipleRecords('savedquery', `?$filter=returnedtypecode eq '${entityName}' and querytype eq ${__queryType} and isdefault eq true&$select=name,savedqueryid,fetchxml`);\n return response.entities[0];\n })\n return [\n {\n isDefault: true,\n viewName: result.name,\n viewId: result.savedqueryid,\n fetchXml: result.fetchxml\n }\n ]\n }\n}"],"names":[],"mappings":";;;AAIA,MAAM,WAAW,GAAG,IAAI,YAAY,EAAE,CAAC;AAEjC,MAAO,cAAe,SAAQ,QAAQ,CAAA;IAEjC,YAAY,GAAA;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;QACpC,OAAO;AACH,YAAA,GAAG,EAAE,KAAK;AACV,YAAA,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE;AACnC,YAAA,WAAW,EAAE,CAAC,UAAkB,EAAE,WAAoB,KAAK,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,WAAW,CAAC;AACrG,YAAA,UAAU,EAAO,IAAI,CAAC,iBAAiB,IAAI;AACvC,gBAAA,OAAO,EAAE,EAAE;AACd,aAAA;SACJ,CAAA;KACJ;AAEO,IAAA,MAAM,YAAY,CAAC,UAAkB,EAAE,cAAsB,EAAE,EAAA;AACnE,QAAA,MAAM,QAAQ,GAAG,CAAA,EAAG,UAAU,CAAI,CAAA,EAAA,WAAW,EAAE,CAAA;QAC/C,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAW;AACtD,YAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,uBAAuB,CAAC,YAAY,EAAE,CAAiC,8BAAA,EAAA,UAAU,sBAAsB,WAAW,CAAA,yDAAA,CAA2D,CAAC,CAAC;AACnO,YAAA,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAChC,SAAC,CAAC,CAAA;QACF,OAAO;AACH,YAAA;AACI,gBAAA,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,MAAM,CAAC,IAAI;gBACrB,MAAM,EAAE,MAAM,CAAC,YAAY;gBAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;AAC5B,aAAA;SACJ,CAAA;KACJ;AACJ;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Property } from './Property.js';
|
|
2
|
+
|
|
3
|
+
class NumberProperty extends Property {
|
|
4
|
+
getParameter() {
|
|
5
|
+
const value = this.getValue();
|
|
6
|
+
return {
|
|
7
|
+
raw: value,
|
|
8
|
+
formatted: this.getFormattedValue(),
|
|
9
|
+
attributes: this.attributeMetadata
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { NumberProperty };
|
|
15
|
+
//# sourceMappingURL=NumberProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberProperty.js","sources":["../../../../src/components/NestedControlRenderer/properties/NumberProperty.ts"],"sourcesContent":["import { FieldValue } from \"@talxis/client-libraries\";\nimport { IWholeNumberProperty } from \"../../../interfaces\";\nimport { Property } from \"./Property\";\n\nexport class NumberProperty extends Property {\n\n public getParameter(): IWholeNumberProperty {\n const value = this.getValue();\n return {\n raw: value,\n formatted: this.getFormattedValue(),\n attributes: this.attributeMetadata\n }\n }\n}"],"names":[],"mappings":";;AAIM,MAAO,cAAe,SAAQ,QAAQ,CAAA;IAEjC,YAAY,GAAA;AACf,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,OAAO;AACH,YAAA,GAAG,EAAE,KAAK;AACV,YAAA,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE;YACnC,UAAU,EAAE,IAAI,CAAC,iBAAiB;SACrC,CAAA;KACJ;AACJ;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DataTypes } from '@talxis/client-libraries';
|
|
2
|
+
import { Property } from './Property.js';
|
|
3
|
+
|
|
4
|
+
class OptionSetProperty extends Property {
|
|
5
|
+
getParameter() {
|
|
6
|
+
let value = this.getValue();
|
|
7
|
+
if (this.dataType === DataTypes.TwoOptions) {
|
|
8
|
+
value = value === true;
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
raw: value ?? null,
|
|
12
|
+
formatted: this.getFormattedValue(),
|
|
13
|
+
attributes: {
|
|
14
|
+
...this.attributeMetadata,
|
|
15
|
+
Options: this.attributeMetadata?.OptionSet ?? []
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { OptionSetProperty };
|
|
22
|
+
//# sourceMappingURL=OptionSetProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OptionSetProperty.js","sources":["../../../../src/components/NestedControlRenderer/properties/OptionSetProperty.ts"],"sourcesContent":["import { DataTypes, FieldValue } from \"@talxis/client-libraries\";\nimport { Property } from \"./Property\";\nimport { IOptionSetProperty } from \"../../../interfaces\";\n\nexport class OptionSetProperty extends Property {\n\n public getParameter(): IOptionSetProperty {\n let value = this.getValue();\n if(this.dataType === DataTypes.TwoOptions) {\n value = value === true;\n }\n return {\n raw: value ?? null,\n formatted: this.getFormattedValue(),\n attributes: {\n ...this.attributeMetadata,\n Options: this.attributeMetadata?.OptionSet ?? []\n }\n }\n }\n \n}"],"names":[],"mappings":";;;AAIM,MAAO,iBAAkB,SAAQ,QAAQ,CAAA;IAEpC,YAAY,GAAA;AACf,QAAA,IAAI,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;AAC5B,QAAA,IAAG,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,UAAU,EAAE;AACvC,YAAA,KAAK,GAAG,KAAK,KAAK,IAAI,CAAC;AAC1B,SAAA;QACD,OAAO;YACH,GAAG,EAAE,KAAK,IAAI,IAAI;AAClB,YAAA,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE;AACnC,YAAA,UAAU,EAAE;gBACR,GAAG,IAAI,CAAC,iBAAiB;AACzB,gBAAA,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,SAAS,IAAI,EAAE;AACnD,aAAA;SACJ,CAAA;KACJ;AAEJ;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
+
import { IOptions } from "../NestedControl";
|
|
3
|
+
import { IBinding } from "../interfaces";
|
|
4
|
+
export declare abstract class Property {
|
|
5
|
+
private _onGetBinding;
|
|
6
|
+
private _parentPcfContext;
|
|
7
|
+
private _attributeMetadata;
|
|
8
|
+
constructor(options: IOptions, onGetBinding: () => IBinding);
|
|
9
|
+
abstract getParameter(): any;
|
|
10
|
+
init(): Promise<boolean>;
|
|
11
|
+
get parentPcfContext(): ComponentFramework.Context<any, any>;
|
|
12
|
+
get attributeMetadata(): any;
|
|
13
|
+
get dataType(): import("@talxis/client-libraries").DataType;
|
|
14
|
+
getValue(): any;
|
|
15
|
+
getFormattedValue(): string | undefined;
|
|
16
|
+
private get _binding();
|
|
17
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FieldValue } from '@talxis/client-libraries';
|
|
2
|
+
|
|
3
|
+
class Property {
|
|
4
|
+
constructor(options, onGetBinding) {
|
|
5
|
+
this._attributeMetadata = {};
|
|
6
|
+
this._onGetBinding = onGetBinding;
|
|
7
|
+
this._parentPcfContext = options.parentPcfContext;
|
|
8
|
+
}
|
|
9
|
+
//this init will be sync if onOverrideMetadata was provided and no attributeName and entityName has been provided
|
|
10
|
+
async init() {
|
|
11
|
+
const bindingMetadata = this._binding.metadata;
|
|
12
|
+
if (!bindingMetadata) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
if (typeof bindingMetadata.attributeName === 'string' && typeof bindingMetadata.entityName === 'string') {
|
|
16
|
+
const metadata = await this.parentPcfContext.utils.getEntityMetadata(bindingMetadata.entityName, [bindingMetadata.attributeName]);
|
|
17
|
+
this._attributeMetadata = metadata.Attributes.get(bindingMetadata.attributeName).attributeDescriptor ?? {};
|
|
18
|
+
}
|
|
19
|
+
if (bindingMetadata.onOverrideMetadata) {
|
|
20
|
+
this._attributeMetadata = bindingMetadata.onOverrideMetadata(this._attributeMetadata);
|
|
21
|
+
}
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
;
|
|
25
|
+
get parentPcfContext() {
|
|
26
|
+
return this._parentPcfContext;
|
|
27
|
+
}
|
|
28
|
+
get attributeMetadata() {
|
|
29
|
+
return this._attributeMetadata;
|
|
30
|
+
}
|
|
31
|
+
get dataType() {
|
|
32
|
+
return this._binding.type;
|
|
33
|
+
}
|
|
34
|
+
getValue() {
|
|
35
|
+
return this._binding.value;
|
|
36
|
+
}
|
|
37
|
+
getFormattedValue() {
|
|
38
|
+
return this._binding.formattedValue ?? new FieldValue(this.getValue(), this.dataType, this._attributeMetadata).getFormattedValue() ?? undefined;
|
|
39
|
+
}
|
|
40
|
+
get _binding() {
|
|
41
|
+
return this._onGetBinding();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { Property };
|
|
46
|
+
//# sourceMappingURL=Property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Property.js","sources":["../../../../src/components/NestedControlRenderer/properties/Property.ts"],"sourcesContent":["import { FieldValue, IAttributeMetadata} from \"@talxis/client-libraries\";\nimport { IOptions } from \"../NestedControl\";\nimport { IBinding } from \"../interfaces\";\n\nexport abstract class Property {\n private _onGetBinding: () => IBinding;\n private _parentPcfContext: ComponentFramework.Context<any, any>;\n private _attributeMetadata: IAttributeMetadata = {} as any;\n\n constructor(options: IOptions, onGetBinding: () => IBinding) {\n this._onGetBinding = onGetBinding;\n this._parentPcfContext = options.parentPcfContext;\n }\n public abstract getParameter(): any;\n\n //this init will be sync if onOverrideMetadata was provided and no attributeName and entityName has been provided\n public async init(): Promise<boolean> {\n const bindingMetadata = this._binding.metadata;\n if(!bindingMetadata) {\n return true;\n }\n if(typeof bindingMetadata.attributeName === 'string' && typeof bindingMetadata.entityName === 'string') {\n const metadata = await this.parentPcfContext.utils.getEntityMetadata(bindingMetadata.entityName, [bindingMetadata.attributeName]);\n this._attributeMetadata = metadata.Attributes.get(bindingMetadata.attributeName).attributeDescriptor ?? {};\n }\n if(bindingMetadata.onOverrideMetadata) {\n this._attributeMetadata = bindingMetadata.onOverrideMetadata(this._attributeMetadata);\n }\n return true;\n };\n \n\n public get parentPcfContext() {\n return this._parentPcfContext;\n }\n public get attributeMetadata(): any {\n return this._attributeMetadata;\n }\n public get dataType() {\n return this._binding.type;\n }\n public getValue(): any {\n return this._binding.value;\n }\n public getFormattedValue(): string | undefined {\n return this._binding.formattedValue ?? new FieldValue(this.getValue(), this.dataType, this._attributeMetadata).getForm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f,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;KAC7B;IACM,QAAQ,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;KAC9B;IACM,iBAAiB,GAAA;QACpB,OAAO,IAAI,CAAC,QAAQ,CAAC,cAAc,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC,iBAAiB,EAAE,IAAI,SAAS,CAAC;KACnJ;AACD,IAAA,IAAY,QAAQ,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;KAC/B;AACJ;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Property } from './Property.js';
|
|
2
|
+
|
|
3
|
+
class TextProperty extends Property {
|
|
4
|
+
getParameter() {
|
|
5
|
+
const value = this.getValue();
|
|
6
|
+
return {
|
|
7
|
+
raw: value,
|
|
8
|
+
formatted: this.getFormattedValue(),
|
|
9
|
+
attributes: this.attributeMetadata
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { TextProperty };
|
|
15
|
+
//# sourceMappingURL=TextProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextProperty.js","sources":["../../../../src/components/NestedControlRenderer/properties/TextProperty.ts"],"sourcesContent":["import { IStringProperty } from \"../../../interfaces\";\nimport { Property } from \"./Property\";\n\nexport class TextProperty extends Property {\n public getParameter(): IStringProperty {\n const value = this.getValue();\n return {\n raw: value,\n formatted: this.getFormattedValue(),\n attributes: this.attributeMetadata\n }\n }\n}"],"names":[],"mappings":";;AAGM,MAAO,YAAa,SAAQ,QAAQ,CAAA;IAC/B,YAAY,GAAA;AACf,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,OAAO;AACH,YAAA,GAAG,EAAE,KAAK;AACV,YAAA,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE;YACnC,UAAU,EAAE,IAAI,CAAC,iBAAiB;SACrC,CAAA;KACJ;AACJ;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const getNestedControlStyles: (isBaseControl: boolean) => import("@fluentui/react").IProcessedStyleSet<{
|
|
2
|
+
customControlContainer: {
|
|
3
|
+
display: string | undefined;
|
|
4
|
+
};
|
|
5
|
+
shimmerRoot: {
|
|
6
|
+
flexGrow: number;
|
|
7
|
+
};
|
|
8
|
+
shimmerWrapper: {
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
messageBarBtn: {
|
|
12
|
+
minHeight: string;
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { mergeStyleSets } from '@fluentui/react';
|
|
2
|
+
|
|
3
|
+
const getNestedControlStyles = (isBaseControl) => {
|
|
4
|
+
return mergeStyleSets({
|
|
5
|
+
customControlContainer: {
|
|
6
|
+
display: isBaseControl ? 'none' : undefined
|
|
7
|
+
},
|
|
8
|
+
shimmerRoot: {
|
|
9
|
+
flexGrow: 1
|
|
10
|
+
},
|
|
11
|
+
shimmerWrapper: {
|
|
12
|
+
height: 32
|
|
13
|
+
},
|
|
14
|
+
messageBarBtn: {
|
|
15
|
+
minHeight: 'inherit'
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { getNestedControlStyles };
|
|
21
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../src/components/NestedControlRenderer/styles.ts"],"sourcesContent":["import { mergeStyleSets } from \"@fluentui/react\";\n\nexport const getNestedControlStyles = (isBaseControl: boolean) => {\n return mergeStyleSets({\n customControlContainer: {\n display: isBaseControl ? 'none' : undefined\n },\n shimmerRoot: {\n flexGrow: 1\n },\n shimmerWrapper: {\n height: 32\n },\n messageBarBtn: {\n minHeight: 'inherit'\n }\n })\n}"],"names":[],"mappings":";;AAEa,MAAA,sBAAsB,GAAG,CAAC,aAAsB,KAAI;AAC7D,IAAA,OAAO,cAAc,CAAC;AAClB,QAAA,sBAAsB,EAAE;YACpB,OAAO,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS;AAC9C,SAAA;AACD,QAAA,WAAW,EAAE;AACT,YAAA,QAAQ,EAAE,CAAC;AACd,SAAA;AACD,QAAA,cAAc,EAAE;AACZ,YAAA,MAAM,EAAE,EAAE;AACb,SAAA;AACD,QAAA,aAAa,EAAE;AACX,YAAA,SAAS,EAAE,SAAS;AACvB,SAAA;AACJ,KAAA,CAAC,CAAA;AACN;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const getDefaultNestedControlRendererTranslations = () => {
|
|
2
|
+
return {
|
|
3
|
+
detail: {
|
|
4
|
+
1029: 'Detail',
|
|
5
|
+
1033: 'Detail'
|
|
6
|
+
},
|
|
7
|
+
control: {
|
|
8
|
+
1029: 'Ovládací prvek',
|
|
9
|
+
1033: 'Control'
|
|
10
|
+
},
|
|
11
|
+
failedToLoad: {
|
|
12
|
+
1029: 'se nepodařilo načíst',
|
|
13
|
+
1033: 'failed to load'
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { getDefaultNestedControlRendererTranslations };
|
|
19
|
+
//# sourceMappingURL=translations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.js","sources":["../../../src/components/NestedControlRenderer/translations.ts"],"sourcesContent":["export const getDefaultNestedControlRendererTranslations = () => {\n return {\n detail: {\n 1029: 'Detail',\n 1033: 'Detail'\n },\n control: {\n 1029: 'Ovládací prvek',\n 1033: 'Control'\n },\n failedToLoad: {\n 1029: 'se nepodařilo načíst',\n 1033: 'failed to load'\n }\n }\n};"],"names":[],"mappings":"AAAO,MAAM,2CAA2C,GAAG,MAAK;IAC5D,OAAO;AACH,QAAA,MAAM,EAAE;AACJ,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,IAAI,EAAE,QAAQ;AACjB,SAAA;AACD,QAAA,OAAO,EAAE;AACL,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,IAAI,EAAE,SAAS;AAClB,SAAA;AACD,QAAA,YAAY,EAAE;AACV,YAAA,IAAI,EAAE,sBAAsB;AAC5B,YAAA,IAAI,EAAE,gBAAgB;AACzB,SAAA;KACJ,CAAA;AACL;;;;"}
|
|
@@ -39,7 +39,7 @@ const OptionSet = (props) => {
|
|
|
39
39
|
if (!option) {
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
|
-
const color = Options.find(item => item.Value.toString() === option.key)?.Color;
|
|
42
|
+
const color = Options.find(item => item.Value.toString() === option.key)?.Color ?? theme.palette.neutralLight;
|
|
43
43
|
return jsx(ColorfulOption, { label: option.text, color: color });
|
|
44
44
|
};
|
|
45
45
|
const componentProps = onOverrideComponentProps({
|
|
@@ -51,9 +51,9 @@ const OptionSet = (props) => {
|
|
|
51
51
|
useComboBoxAsMenuWidth: true,
|
|
52
52
|
hideErrorMessage: !parameters.ShowErrorMessage?.raw,
|
|
53
53
|
styles: { root: styles.root, callout: styles.callout },
|
|
54
|
-
onRenderContainer: (
|
|
54
|
+
onRenderContainer: (containerProps, defaultRender) => jsx(ThemeProvider, { theme: props.context.fluentDesignLanguage?.applicationTheme, children: defaultRender?.(containerProps) }),
|
|
55
55
|
calloutProps: {
|
|
56
|
-
theme:
|
|
56
|
+
theme: props.context.fluentDesignLanguage?.applicationTheme
|
|
57
57
|
},
|
|
58
58
|
...(parameters.EnableCopyButton?.raw === true && {
|
|
59
59
|
clickToCopyProps: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionSet.js","sources":["../../../src/components/OptionSet/OptionSet.tsx"],"sourcesContent":["\nimport { IOptionSet } from './interfaces';\nimport { useControl } from '../../hooks';\nimport { ComboBox, ColorfulOption } from \"@talxis/react-components\";\nimport { IComboBox, IComboBoxOption, ThemeProvider } from '@fluentui/react';\nimport { useEffect, useMemo, useRef } from 'react';\nimport { useComboBoxTheme } from './useComboBoxTheme';\nimport { getComboBoxStyles } from './styles';\
|
|
1
|
+
{"version":3,"file":"OptionSet.js","sources":["../../../src/components/OptionSet/OptionSet.tsx"],"sourcesContent":["\nimport { IOptionSet } from './interfaces';\nimport { useControl } from '../../hooks';\nimport { ComboBox, ColorfulOption } from \"@talxis/react-components\";\nimport { IComboBox, IComboBoxOption, ThemeProvider } from '@fluentui/react';\nimport { useEffect, useMemo, useRef } from 'react';\nimport { useComboBoxTheme } from './useComboBoxTheme';\nimport { getComboBoxStyles } from './styles';\n\n\nexport const OptionSet = (props: IOptionSet) => {\n const componentRef = useRef<IComboBox>(null);\n const { sizing, onNotifyOutputChanged, theme } = useControl('OptionSet', props);\n const styles = useMemo(() => getComboBoxStyles(sizing.width, sizing.height), [sizing.width, sizing.height]);\n const [colorFeatureEnabled, overridenTheme] = useComboBoxTheme(props, theme);\n const parameters = props.parameters;\n const boundValue = parameters.value;\n const { Options } = parameters.value.attributes;\n const context = props.context;\n const onOverrideComponentProps = props.onOverrideComponentProps ?? ((props) => props);\n\n const comboBoxOptions: IComboBoxOption[] = Options.map(option => ({\n key: option.Value.toString(),\n text: option.Label,\n title: option.Label\n }));\n\n useEffect(() => {\n if (parameters.AutoFocus?.raw) {\n componentRef.current?.focus(true);\n }\n }, []);\n\n const handleChange = (option?: IComboBoxOption | null): void => {\n let value = undefined;\n if (option) {\n value = parseInt(option.key as string);\n }\n onNotifyOutputChanged({\n value: value\n });\n };\n\n const onRenderColorfulOption = (option: IComboBoxOption | undefined) => {\n if (!option) {\n return null;\n }\n const color = Options.find(item => item.Value.toString() === option.key)?.Color ?? theme.palette.neutralLight\n return <ColorfulOption label={option.text} color={color} />\n };\n\n const componentProps = onOverrideComponentProps({\n componentRef: componentRef,\n options: comboBoxOptions,\n readOnly: context.mode.isControlDisabled,\n selectedKey: boundValue.raw?.toString() ?? null,\n errorMessage: boundValue.errorMessage,\n useComboBoxAsMenuWidth: true,\n hideErrorMessage: !parameters.ShowErrorMessage?.raw,\n styles: { root: styles.root, callout: styles.callout },\n onRenderContainer: (containerProps, defaultRender) => <ThemeProvider theme={props.context.fluentDesignLanguage?.applicationTheme}>{defaultRender?.(containerProps)}</ThemeProvider>,\n calloutProps: {\n theme: props.context.fluentDesignLanguage?.applicationTheme\n },\n ...(parameters.EnableCopyButton?.raw === true && {\n clickToCopyProps: {\n key: 'copy',\n showOnlyOnHover: true,\n iconProps: {\n iconName: 'Copy',\n },\n },\n }),\n ...(parameters.EnableDeleteButton?.raw === true && {\n deleteButtonProps: {\n key: 'delete',\n showOnlyOnHover: true,\n iconProps: {\n iconName: 'Cancel',\n },\n onClick: (e, value) => {\n handleChange(null);\n },\n },\n }),\n onChange: (e, option) => handleChange(option),\n onRenderOption: colorFeatureEnabled ? onRenderColorfulOption : undefined,\n });\n\n return (\n <ThemeProvider theme={overridenTheme} applyTo=\"none\">\n <ComboBox\n {...componentProps} />\n </ThemeProvider>);\n};"],"names":["_jsx"],"mappings":";;;;;;;;AAUa,MAAA,SAAS,GAAG,CAAC,KAAiB,KAAI;AAC3C,IAAA,MAAM,YAAY,GAAG,MAAM,CAAY,IAAI,CAAC,CAAC;AAC7C,IAAA,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAChF,IAAA,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5G,IAAA,MAAM,CAAC,mBAAmB,EAAE,cAAc,CAAC,GAAG,gBAAgB,CAAC,KAAK,EAAE,K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AE,MAAM;AACnB,iBAAA;AACJ,aAAA;SACJ,CAAC;QACF,IAAI,UAAU,CAAC,kBAAkB,EAAE,GAAG,KAAK,IAAI,IAAI;AAC/C,YAAA,iBAAiB,EAAE;AACf,gBAAA,GAAG,EAAE,QAAQ;AACb,gBAAA,eAAe,EAAE,IAAI;AACrB,gBAAA,SAAS,EAAE;AACP,oBAAA,QAAQ,EAAE,QAAQ;AACrB,iBAAA;AACD,gBAAA,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,KAAI;oBAClB,YAAY,CAAC,IAAI,CAAC,CAAC;iBACtB;AACJ,aAAA;SACJ,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,MAAM,CAAC;QAC7C,cAAc,EAAE,mBAAmB,GAAG,sBAAsB,GAAG,SAAS;AAC3E,KAAA,CAAC,CAAC;AAEH,IAAA,QACIA,GAAC,CAAA,aAAa,IAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAC,MAAM,EAAA,QAAA,EAChDA,IAAC,QAAQ,EAAA,EAAA,GACD,cAAc,EAAI,CAAA,EAAA,CACd,EAAE;AAC1B;;;;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useThemeGenerator, Theming } from '@talxis/react-components';
|
|
2
|
-
import Color from 'color';
|
|
3
2
|
|
|
4
3
|
const useComboBoxTheme = (props, theme) => {
|
|
5
4
|
const boundValue = props.parameters.value;
|
|
@@ -11,21 +10,15 @@ const useComboBoxTheme = (props, theme) => {
|
|
|
11
10
|
textColor: theme.semanticColors.bodyText,
|
|
12
11
|
primaryColor: theme.palette.themePrimary
|
|
13
12
|
};
|
|
14
|
-
if (!colorFeatureEnabled
|
|
15
|
-
colors
|
|
16
|
-
colors.textColor = theme.semanticColors.bodyText;
|
|
17
|
-
colors.primaryColor = theme.palette.themePrimary;
|
|
13
|
+
if (!colorFeatureEnabled) {
|
|
14
|
+
return colors;
|
|
18
15
|
}
|
|
19
|
-
|
|
20
|
-
colors.backgroundColor =
|
|
21
|
-
colors
|
|
22
|
-
if (Theming.IsDarkColor(colors.textColor)) {
|
|
23
|
-
colors.primaryColor = Color(colors.backgroundColor).darken(0.5).hex();
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
colors.primaryColor = Color(colors.backgroundColor).lighten(0.5).hex();
|
|
27
|
-
}
|
|
16
|
+
if (!selectedOptionColor) {
|
|
17
|
+
colors.backgroundColor = theme.semanticColors.inputBackground;
|
|
18
|
+
return colors;
|
|
28
19
|
}
|
|
20
|
+
colors.backgroundColor = selectedOptionColor;
|
|
21
|
+
colors.textColor = Theming.GetTextColorForBackground(selectedOptionColor);
|
|
29
22
|
return colors;
|
|
30
23
|
};
|
|
31
24
|
const getIsColorFeatureEnabled = () => {
|
|
@@ -38,10 +31,17 @@ const useComboBoxTheme = (props, theme) => {
|
|
|
38
31
|
* Since we are creating new theme for combobox, we need to add the overrides in cases where there is no color feature enabled or no color is selected.
|
|
39
32
|
*/
|
|
40
33
|
const getThemeOverride = (colorFeatureEnabled) => {
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
const override = {
|
|
35
|
+
...props.context.fluentDesignLanguage?.v8FluentOverrides
|
|
36
|
+
};
|
|
37
|
+
if (!colorFeatureEnabled) {
|
|
38
|
+
return override;
|
|
39
|
+
}
|
|
40
|
+
if (!selectedOptionColor) {
|
|
41
|
+
return override;
|
|
43
42
|
}
|
|
44
|
-
|
|
43
|
+
delete override.semanticColors?.inputBackground;
|
|
44
|
+
return override;
|
|
45
45
|
};
|
|
46
46
|
const isColorFeatureEnabled = getIsColorFeatureEnabled();
|
|
47
47
|
const colors = getColors(isColorFeatureEnabled);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComboBoxTheme.js","sources":["../../../src/components/OptionSet/useComboBoxTheme.ts"],"sourcesContent":["import { IOptionSet } from \"./interfaces\";\nimport { ITheme } from \"@fluentui/react\";\nimport {
|
|
1
|
+
{"version":3,"file":"useComboBoxTheme.js","sources":["../../../src/components/OptionSet/useComboBoxTheme.ts"],"sourcesContent":["import { IOptionSet } from \"./interfaces\";\nimport { ITheme } from \"@fluentui/react\";\nimport { DeepPartial } from \"@talxis/client-libraries\";\nimport { Theming, useThemeGenerator } from \"@talxis/react-components\";\n\nexport const useComboBoxTheme = (props: IOptionSet, theme: ITheme): [boolean, ITheme] => {\n const boundValue = props.parameters.value;\n const { Options } = boundValue.attributes;\n const selectedOptionColor = boundValue.attributes.Options.find(x => x.Value === boundValue.raw)?.Color;\n\n const getColors = (colorFeatureEnabled: boolean) => {\n const colors = {\n backgroundColor: theme.semanticColors.bodyBackground,\n textColor: theme.semanticColors.bodyText,\n primaryColor: theme.palette.themePrimary\n }\n if (!colorFeatureEnabled) {\n return colors;\n }\n if (!selectedOptionColor) {\n colors.backgroundColor = theme.semanticColors.inputBackground;\n return colors;\n }\n colors.backgroundColor = selectedOptionColor;\n colors.textColor = Theming.GetTextColorForBackground(selectedOptionColor);\n return colors;\n }\n const getIsColorFeatureEnabled = () => {\n if (props.parameters.EnableOptionSetColors?.raw && Options.find(x => x.Color)) {\n return true;\n }\n return false;\n }\n\n /**\n * Since we are creating new theme for combobox, we need to add the overrides in cases where there is no color feature enabled or no color is selected.\n */\n const getThemeOverride = (colorFeatureEnabled: boolean) => {\n const override: DeepPartial<ITheme> = {\n ...props.context.fluentDesignLanguage?.v8FluentOverrides\n }\n if(!colorFeatureEnabled) {\n return override;\n }\n if(!selectedOptionColor) {\n return override;\n }\n delete override.semanticColors?.inputBackground;\n return override;\n }\n\n const isColorFeatureEnabled = getIsColorFeatureEnabled();\n const colors = getColors(isColorFeatureEnabled);\n const override = getThemeOverride(isColorFeatureEnabled);\n\n const currentTheme = useThemeGenerator(colors.primaryColor, colors.backgroundColor, colors.textColor, override)\n return [isColorFeatureEnabled, currentTheme];\n}"],"names":[],"mappings":";;MAKa,gBAAgB,GAAG,CAAC,KAAiB,EAAE,KAAa,KAAuB;AACpF,IAAA,MAAM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;AACtD,QAAA,MAAM,QAAQ,GAAwB;AAClC,YAAA,GAAG,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,iBAAiB;SAC3D,CAAA;QACD,IAAG,CAAC,mBAAmB,EAAE;AACrB,YAAA,OAAO,QAAQ,CAAC;AACnB,SAAA;QACD,IAAG,CAAC,mBAAmB,EAAE;AACrB,YAAA,OAAO,QAAQ,CAAC;AACnB,SAAA;AACD,QAAA,OAAO,QAAQ,CAAC,cAAc,EAAE,eAAe,CAAC;AAChD,QAAA,OAAO,QAAQ,CAAC;AACpB,KAAC,CAAA;AAED,IAAA,MAAM,qBAAqB,GAAG,wBAAwB,EAAE,CAAC;AACzD,IAAA,MAAM,MAAM,GAAG,SAAS,CAAC,qBAAqB,CAAC,CAAC;AAChD,IAAA,MAAM,QAAQ,GAAG,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;AAEzD,IAAA,MAAM,YAAY,GAAG,iBAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;AAC/G,IAAA,OAAO,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;AACjD;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.js","sources":["../../../src/components/TextField/TextField.tsx"],"sourcesContent":["import { TextField as TextFieldBase } from \"@talxis/react-components\";\nimport { useInputBasedControl } from '../../hooks/useInputBasedControl';\nimport { ITextField, ITextFieldOutputs, ITextFieldParameters } from './interfaces';\nimport
|
|
1
|
+
{"version":3,"file":"TextField.js","sources":["../../../src/components/TextField/TextField.tsx"],"sourcesContent":["import { TextField as TextFieldBase } from \"@talxis/react-components\";\nimport { useInputBasedControl } from '../../hooks/useInputBasedControl';\nimport { ITextField, ITextFieldOutputs, ITextFieldParameters } from './interfaces';\nimport { ICommandBarItemProps, ThemeProvider } from '@fluentui/react';\nimport { DataTypes } from \"@talxis/client-libraries\";\nimport { NestedControlRenderer } from \"../NestedControlRenderer/NestedControlRenderer\";\n\nexport const TextField = (props: ITextField) => {\n const context = props.context;\n const parameters = props.parameters;\n const boundValue = parameters.value;\n const onOverrideComponentProps = props.onOverrideComponentProps ?? ((props) => props);\n const { value, sizing, theme, setValue, onNotifyOutputChanged } = useInputBasedControl<string | undefined, ITextFieldParameters, ITextFieldOutputs, any>('TextField', props);\n\n const getInputType = () => {\n switch (boundValue.type) {\n case 'SingleLine.Email': {\n return 'email';\n }\n case 'SingleLine.URL': {\n return 'url';\n }\n case 'SingleLine.Phone': {\n return 'tel';\n }\n }\n return \"text\";\n }\n const getSuffixItems = (): ICommandBarItemProps[] | undefined => {\n if (parameters.EnableTypeSuffix?.raw === false) {\n return undefined;\n }\n const disabled = boundValue.error || !boundValue.raw\n switch (boundValue.type) {\n case 'SingleLine.Email': {\n return [{\n key: 'sendMail',\n disabled: disabled,\n iconProps: {\n iconName: 'Mail'\n },\n href: `mailto:${boundValue.raw}`\n }]\n }\n case 'SingleLine.Phone': {\n return [{\n key: 'call',\n disabled: disabled,\n iconProps: {\n iconName: 'Phone'\n },\n href: `tel:${boundValue.raw}`\n }]\n }\n case 'SingleLine.URL': {\n return [{\n key: 'goToPage',\n disabled: disabled,\n iconProps: {\n iconName: 'Globe'\n },\n target: '_blank',\n href: boundValue.raw!\n }]\n }\n }\n return undefined;\n }\n\n const isTextArea = (() => {\n switch(parameters.value.type) {\n case DataTypes.Multiple:\n case DataTypes.SingleLineTextArea: {\n return true;\n }\n }\n return false;\n })()\n\n const componentProps = onOverrideComponentProps({\n readOnly: context.mode.isControlDisabled,\n resizable: false,\n type: getInputType(),\n multiline: isTextArea,\n autoFocus: parameters.AutoFocus?.raw,\n styles: {\n fieldGroup: {\n height: sizing.height,\n width: sizing.width\n }\n },\n errorMessage: boundValue.errorMessage,\n hideErrorMessage: !parameters.ShowErrorMessage?.raw,\n suffixItems: getSuffixItems(),\n deleteButtonProps: parameters.EnableDeleteButton?.raw === true ? {\n key: 'delete',\n showOnlyOnHover: true,\n iconProps: {\n iconName: 'Cancel'\n },\n onClick: () => setValue(undefined)\n } : undefined,\n clickToCopyProps: parameters.EnableCopyButton?.raw === true ? {\n key: 'copy',\n showOnlyOnHover: true,\n iconProps: {\n iconName: 'Copy'\n }\n } : undefined,\n value: value ?? \"\",\n onBlur: () => {\n onNotifyOutputChanged({\n value: value ?? undefined\n });\n },\n onChange: (e, value) => {\n setValue(value);\n }\n })\n return (\n <ThemeProvider style={isTextArea ? { height: '100%' } : undefined} applyTo=\"none\" theme={theme}>\n <TextFieldBase {...componentProps} />\n </ThemeProvider>\n );\n};"],"names":["_jsx","TextFieldBase"],"mappings":";;;;;;AAOa,MAAA,SAAS,GAAG,CAAC,KAAiB,KAAI;AAC3C,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;AAC9B,IAAA,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;AACpC,IAAA,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC;AACpC,IAAA,MAAM,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AACtF,IAAA,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAE,GAAG,oBAAoB,CAAmE,WAAW,EAAE,KAAK,CAAC,CAAC;IAE7K,MAAM,YAAY,GAAG,MAAK;QACtB,QAAQ,UAAU,CAAC,IAAI;YACnB,KAAK,kBAAkB,EAAE;AACrB,gBAAA,OAAO,OAAO,CAAC;AAClB,aAAA;YACD,KAAK,gBAAgB,EAAE;AACnB,gBAAA,OAAO,KAAK,CAAC;AAChB,aAAA;YACD,KAAK,kBAAkB,EAAE;AACrB,gBAAA,OAAO,KAAK,CAAC;AAChB,aAAA;AACJ,SAAA;AACD,QAAA,OAAO,MAAM,CAAC;AAClB,KAAC,CAAA;IACD,MAAM,cAAc,GAAG,MAAyC;AAC5D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E;QAClB,MAAM,EAAE,MAAK;AACT,YAAA,qBAAqB,CAAC;gBAClB,KAAK,EAAE,KAAK,IAAI,SAAS;AAC5B,aAAA,CAAC,CAAC;SACN;AACD,QAAA,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,KAAI;YACnB,QAAQ,CAAC,KAAK,CAAC,CAAC;SACnB;AACJ,KAAA,CAAC,CAAA;AACF,IAAA,QACIA,GAAA,CAAC,aAAa,EAAA,EAAC,KAAK,EAAE,UAAU,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,OAAO,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,EAC1F,QAAA,EAAAA,GAAA,CAACC,WAAa,EAAK,EAAA,GAAA,cAAc,EAAI,CAAA,EAAA,CACzB,EAClB;AACN;;;;"}
|
|
@@ -5,8 +5,8 @@ import { IInputParameters } from "../../interfaces/parameters";
|
|
|
5
5
|
export interface ITextField extends IControl<ITextFieldParameters, ITextFieldOutputs, any, ITextFieldProps> {
|
|
6
6
|
}
|
|
7
7
|
export interface ITextFieldParameters extends IInputParameters {
|
|
8
|
-
isResizable?: ITwoOptionsProperty
|
|
9
|
-
EnableTypeSuffix?: ITwoOptionsProperty
|
|
8
|
+
isResizable?: Omit<ITwoOptionsProperty, 'attributes'>;
|
|
9
|
+
EnableTypeSuffix?: Omit<ITwoOptionsProperty, 'attributes'>;
|
|
10
10
|
value: IStringProperty;
|
|
11
11
|
}
|
|
12
12
|
export interface ITextFieldOutputs extends IOutputs {
|
|
@@ -28,6 +28,7 @@ const TwoOptions = (props) => {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
return (jsx(ThemeProvider, { theme: theme, applyTo: 'none', children: isColorFeatureEnabled() ? (jsx(OptionSet, { context: props.context, parameters: {
|
|
31
|
+
...parameters,
|
|
31
32
|
value: {
|
|
32
33
|
raw: boundValue.raw !== null ? boundValue.raw ? 1 : 0 : boundValue.raw,
|
|
33
34
|
//@ts-ignore - typings
|
|
@@ -35,7 +36,7 @@ const TwoOptions = (props) => {
|
|
|
35
36
|
},
|
|
36
37
|
EnableOptionSetColors: {
|
|
37
38
|
raw: true
|
|
38
|
-
}
|
|
39
|
+
}
|
|
39
40
|
}, onNotifyOutputChanged: (outputs) => {
|
|
40
41
|
handleChange(outputs.value == 1 ? true : outputs.value == 0 ? false : undefined);
|
|
41
42
|
} })) : (jsx(Toggle, { styles: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwoOptions.js","sources":["../../../src/components/TwoOptions/TwoOptions.tsx"],"sourcesContent":["import { ThemeProvider, Toggle } from '@fluentui/react';\nimport { useControl } from '../../hooks';\nimport { ITwoOptions } from './interfaces';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { OptionSet } from '../OptionSet';\n\nexport const TwoOptions = (props: ITwoOptions) => {\n const parameters = props.parameters;\n const boundValue = parameters.value;\n const options = boundValue.attributes.Options;\n const { sizing, onNotifyOutputChanged, theme } = useControl('TwoOptions', props);\n const context = props.context;\n const componentRef = useRef<any>(null);\n\n useEffect(() => {\n if (parameters.AutoFocus?.raw === true) {\n componentRef.current?.focus();\n }\n }, []);\n\n const isColorFeatureEnabled = () => {\n if (props.parameters.EnableOptionSetColors?.raw && options.find(x => x.Color)) {\n return true;\n }\n return false;\n }\n\n const handleChange = (value: boolean | undefined): void => {\n onNotifyOutputChanged({\n value: value\n });\n };\n\n return (\n <ThemeProvider theme={theme} applyTo='none'>\n {isColorFeatureEnabled() ? (\n <OptionSet\n context={props.context}\n parameters={{\n value: {\n raw: boundValue.raw !== null ? boundValue.raw ? 1 : 0 : boundValue.raw,\n //@ts-ignore - typings\n attributes: boundValue.attributes\n },\n EnableOptionSetColors: {\n raw: true\n }
|
|
1
|
+
{"version":3,"file":"TwoOptions.js","sources":["../../../src/components/TwoOptions/TwoOptions.tsx"],"sourcesContent":["import { ThemeProvider, Toggle } from '@fluentui/react';\nimport { useControl } from '../../hooks';\nimport { ITwoOptions } from './interfaces';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { OptionSet } from '../OptionSet';\n\nexport const TwoOptions = (props: ITwoOptions) => {\n const parameters = props.parameters;\n const boundValue = parameters.value;\n const options = boundValue.attributes.Options;\n const { sizing, onNotifyOutputChanged, theme } = useControl('TwoOptions', props);\n const context = props.context;\n const componentRef = useRef<any>(null);\n\n useEffect(() => {\n if (parameters.AutoFocus?.raw === true) {\n componentRef.current?.focus();\n }\n }, []);\n\n const isColorFeatureEnabled = () => {\n if (props.parameters.EnableOptionSetColors?.raw && options.find(x => x.Color)) {\n return true;\n }\n return false;\n }\n\n const handleChange = (value: boolean | undefined): void => {\n onNotifyOutputChanged({\n value: value\n });\n };\n\n return (\n <ThemeProvider theme={theme} applyTo='none'>\n {isColorFeatureEnabled() ? (\n <OptionSet\n context={props.context}\n parameters={{\n ...parameters as any,\n value: {\n raw: boundValue.raw !== null ? boundValue.raw ? 1 : 0 : boundValue.raw,\n //@ts-ignore - typings\n attributes: boundValue.attributes\n },\n EnableOptionSetColors: {\n raw: true\n }\n }}\n onNotifyOutputChanged={(outputs) => {\n handleChange(outputs.value == 1 ? true : outputs.value == 0 ? false : undefined);\n }}\n />\n ) : (\n <Toggle\n styles={{\n root: {\n height: sizing.height,\n width: sizing.width,\n marginBottom: 0,\n },\n container: {\n alignItems: 'center'\n }\n }}\n theme={theme}\n checked={boundValue.raw}\n componentRef={componentRef}\n disabled={context.mode.isControlDisabled}\n inlineLabel\n onText={options.find(option => option.Value === 1)?.Label || 'Yes'}\n offText={options.find(option => option.Value === 0)?.Label || 'No'}\n onChange={(e, value) => handleChange(value)}\n />)}\n </ThemeProvider>\n )\n};"],"names":["_jsx"],"mappings":";;;;;;AAMa,MAAA,UAAU,GAAG,CAAC,KAAkB,KAAI;AAC7C,IAAA,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;AACpC,IAAA,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC;AACpC,IAAA,MAAM,OAAO,GAA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* from './Grid';
|
|
6
|
+
export * from './GridCellRenderer';
|
|
7
|
+
export * from './Lookup';
|
|
8
|
+
export * from './MultiSelectOptionSet';
|
|
9
|
+
export * from './NestedControlRenderer';
|
|
10
|
+
export * from './OptionSet';
|
|
11
|
+
export * from './TextField';
|
|
12
|
+
export * from './TwoOptions';
|
|
13
|
+
export * from './Duration';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { DatasetControl } from './DatasetControl/DatasetControl.js';
|
|
2
|
+
export { DateTime } from './DateTime/DateTime.js';
|
|
3
|
+
export { useDateTime } from './DateTime/hooks/useDateTime.js';
|
|
4
|
+
export { Decimal } from './Decimal/Decimal.js';
|
|
5
|
+
export { Grid } from './Grid/Grid.js';
|
|
6
|
+
export { GridCellRenderer } from './GridCellRenderer/GridCellRenderer.js';
|
|
7
|
+
export { Lookup } from './Lookup/Lookup.js';
|
|
8
|
+
export { useLookup } from './Lookup/hooks/useLookup.js';
|
|
9
|
+
export { MultiSelectOptionSet } from './MultiSelectOptionSet/MultiSelectOptionSet.js';
|
|
10
|
+
export { NestedControlRenderer } from './NestedControlRenderer/NestedControlRenderer.js';
|
|
11
|
+
export { OptionSet } from './OptionSet/OptionSet.js';
|
|
12
|
+
export { TextField } from './TextField/TextField.js';
|
|
13
|
+
export { TwoOptions } from './TwoOptions/TwoOptions.js';
|
|
14
|
+
export { Duration } from './Duration/Duration.js';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
package/dist/hooks/index.d.ts
CHANGED
package/dist/hooks/index.js
CHANGED
|
@@ -3,5 +3,6 @@ export { useControlSizing } from './useControlSizing.js';
|
|
|
3
3
|
export { useFocusIn } from './useFocusIn.js';
|
|
4
4
|
export { useInputBasedControl } from './useInputBasedControl.js';
|
|
5
5
|
export { useMouseOver } from './useMouseOver.js';
|
|
6
|
+
export { useControlLabels } from './useControlLabels.js';
|
|
6
7
|
export { useControlTheme } from '../utils/theme/hooks/useControlTheme.js';
|
|
7
8
|
//# sourceMappingURL=index.js.map
|