@gisce/react-ooui 1.1.3 → 1.2.0-rc.1
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/actionbar/ActionButton.d.ts +0 -1
- package/dist/actionbar/ActionButton.d.ts.map +1 -1
- package/dist/actionbar/AttachmentsButton.d.ts +0 -1
- package/dist/actionbar/AttachmentsButton.d.ts.map +1 -1
- package/dist/actionbar/AttachmentsButtonWrapper.d.ts +0 -1
- package/dist/actionbar/AttachmentsButtonWrapper.d.ts.map +1 -1
- package/dist/actionbar/ButtonWithBadge.d.ts +0 -1
- package/dist/actionbar/ButtonWithBadge.d.ts.map +1 -1
- package/dist/actionbar/ChangeViewButton.d.ts +0 -1
- package/dist/actionbar/ChangeViewButton.d.ts.map +1 -1
- package/dist/actionbar/DashboardActionBar.d.ts +0 -1
- package/dist/actionbar/DashboardActionBar.d.ts.map +1 -1
- package/dist/actionbar/DropdownButton.d.ts +0 -1
- package/dist/actionbar/DropdownButton.d.ts.map +1 -1
- package/dist/actionbar/FormActionBar.d.ts +0 -1
- package/dist/actionbar/FormActionBar.d.ts.map +1 -1
- package/dist/actionbar/GraphActionBar.d.ts +0 -1
- package/dist/actionbar/GraphActionBar.d.ts.map +1 -1
- package/dist/actionbar/NewButton.d.ts +0 -1
- package/dist/actionbar/NewButton.d.ts.map +1 -1
- package/dist/actionbar/SearchBar.d.ts +0 -1
- package/dist/actionbar/SearchBar.d.ts.map +1 -1
- package/dist/actionbar/TreeActionBar.d.ts +0 -1
- package/dist/actionbar/TreeActionBar.d.ts.map +1 -1
- package/dist/common/ButtonWithTooltip.d.ts +0 -1
- package/dist/common/ButtonWithTooltip.d.ts.map +1 -1
- package/dist/common/DatePicker.d.ts +0 -1
- package/dist/common/DatePicker.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/locales/ca_ES.d.ts +2 -0
- package/dist/locales/ca_ES.d.ts.map +1 -1
- package/dist/locales/en_US.d.ts +2 -0
- package/dist/locales/en_US.d.ts.map +1 -1
- package/dist/locales/es_ES.d.ts +2 -0
- package/dist/locales/es_ES.d.ts.map +1 -1
- package/dist/react-ooui.es.js +24259 -19081
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +208 -27
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/ui/FavouriteButton.d.ts +0 -1
- package/dist/ui/FavouriteButton.d.ts.map +1 -1
- package/dist/ui/GoToResourceModal.d.ts +0 -1
- package/dist/ui/GoToResourceModal.d.ts.map +1 -1
- package/dist/ui/TitleHeader.d.ts +0 -1
- package/dist/ui/TitleHeader.d.ts.map +1 -1
- package/dist/views/CurrentTabContent.d.ts +0 -1
- package/dist/views/CurrentTabContent.d.ts.map +1 -1
- package/dist/views/TabSelector.d.ts +0 -1
- package/dist/views/TabSelector.d.ts.map +1 -1
- package/dist/views/actionViews/DashboardActionView.d.ts +0 -1
- package/dist/views/actionViews/DashboardActionView.d.ts.map +1 -1
- package/dist/views/actionViews/FormActionView.d.ts +0 -1
- package/dist/views/actionViews/FormActionView.d.ts.map +1 -1
- package/dist/views/actionViews/GraphActionView.d.ts +0 -1
- package/dist/views/actionViews/GraphActionView.d.ts.map +1 -1
- package/dist/views/actionViews/TreeActionView.d.ts +0 -1
- package/dist/views/actionViews/TreeActionView.d.ts.map +1 -1
- package/dist/views/tabs/Tab.d.ts +0 -1
- package/dist/views/tabs/Tab.d.ts.map +1 -1
- package/dist/widgets/base/Binary.d.ts +0 -1
- package/dist/widgets/base/Binary.d.ts.map +1 -1
- package/dist/widgets/base/Boolean.d.ts +0 -1
- package/dist/widgets/base/Boolean.d.ts.map +1 -1
- package/dist/widgets/base/Button.d.ts +0 -1
- package/dist/widgets/base/Button.d.ts.map +1 -1
- package/dist/widgets/base/Char.d.ts +0 -1
- package/dist/widgets/base/Char.d.ts.map +1 -1
- package/dist/widgets/base/Date.d.ts +0 -1
- package/dist/widgets/base/Date.d.ts.map +1 -1
- package/dist/widgets/base/DateTime.d.ts +0 -1
- package/dist/widgets/base/DateTime.d.ts.map +1 -1
- package/dist/widgets/base/Email.d.ts +0 -1
- package/dist/widgets/base/Email.d.ts.map +1 -1
- package/dist/widgets/base/Float.d.ts +0 -1
- package/dist/widgets/base/Float.d.ts.map +1 -1
- package/dist/widgets/base/Image.d.ts +0 -1
- package/dist/widgets/base/Image.d.ts.map +1 -1
- package/dist/widgets/base/Integer.d.ts +0 -1
- package/dist/widgets/base/Integer.d.ts.map +1 -1
- package/dist/widgets/base/Label.d.ts +0 -1
- package/dist/widgets/base/Label.d.ts.map +1 -1
- package/dist/widgets/base/LinkInput.d.ts +0 -1
- package/dist/widgets/base/LinkInput.d.ts.map +1 -1
- package/dist/widgets/base/MultiSelection.d.ts +0 -1
- package/dist/widgets/base/MultiSelection.d.ts.map +1 -1
- package/dist/widgets/base/ProgressBar.d.ts +0 -1
- package/dist/widgets/base/ProgressBar.d.ts.map +1 -1
- package/dist/widgets/base/Selection.d.ts +0 -1
- package/dist/widgets/base/Selection.d.ts.map +1 -1
- package/dist/widgets/base/Separator.d.ts +0 -1
- package/dist/widgets/base/Separator.d.ts.map +1 -1
- package/dist/widgets/base/Text.d.ts +0 -1
- package/dist/widgets/base/Text.d.ts.map +1 -1
- package/dist/widgets/base/Url.d.ts +0 -1
- package/dist/widgets/base/Url.d.ts.map +1 -1
- package/dist/widgets/base/many2one/Many2oneSuffix.d.ts +0 -1
- package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +1 -1
- package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts +0 -1
- package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts.map +1 -1
- package/dist/widgets/base/one2many/One2many.d.ts +0 -1
- package/dist/widgets/base/one2many/One2many.d.ts.map +1 -1
- package/dist/widgets/base/one2many/One2manyTopBar.d.ts +0 -1
- package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +1 -1
- package/dist/widgets/custom/ButtonGroup.d.ts +0 -1
- package/dist/widgets/custom/ButtonGroup.d.ts.map +1 -1
- package/dist/widgets/custom/CodeEditor.d.ts +0 -1
- package/dist/widgets/custom/CodeEditor.d.ts.map +1 -1
- package/dist/widgets/custom/FiberGrid.d.ts +0 -1
- package/dist/widgets/custom/FiberGrid.d.ts.map +1 -1
- package/dist/widgets/custom/Indicator.d.ts +0 -1
- package/dist/widgets/custom/Indicator.d.ts.map +1 -1
- package/dist/widgets/custom/MultiCheckbox.d.ts +0 -1
- package/dist/widgets/custom/MultiCheckbox.d.ts.map +1 -1
- package/dist/widgets/custom/Radio.d.ts +0 -1
- package/dist/widgets/custom/Radio.d.ts.map +1 -1
- package/dist/widgets/custom/Steps.d.ts +0 -1
- package/dist/widgets/custom/Steps.d.ts.map +1 -1
- package/dist/widgets/custom/Switch.d.ts +0 -1
- package/dist/widgets/custom/Switch.d.ts.map +1 -1
- package/dist/widgets/custom/Tags.d.ts +0 -1
- package/dist/widgets/custom/Tags.d.ts.map +1 -1
- package/dist/widgets/custom/Timeline.d.ts +0 -1
- package/dist/widgets/custom/Timeline.d.ts.map +1 -1
- package/dist/widgets/modals/ExportModal.d.ts +14 -0
- package/dist/widgets/modals/ExportModal.d.ts.map +1 -0
- package/dist/widgets/modals/FormModal.d.ts +0 -1
- package/dist/widgets/modals/FormModal.d.ts.map +1 -1
- package/dist/widgets/modals/SearchModal.d.ts +0 -1
- package/dist/widgets/modals/SearchModal.d.ts.map +1 -1
- package/dist/widgets/modals/TranslationModal.d.ts +0 -1
- package/dist/widgets/modals/TranslationModal.d.ts.map +1 -1
- package/dist/widgets/views/Dashboard/DashboardForm.d.ts +0 -1
- package/dist/widgets/views/Dashboard/DashboardForm.d.ts.map +1 -1
- package/dist/widgets/views/Dashboard/DashboardTree.d.ts +0 -1
- package/dist/widgets/views/Dashboard/DashboardTree.d.ts.map +1 -1
- package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts +0 -1
- package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts.map +1 -1
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts +0 -1
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts.map +1 -1
- package/dist/widgets/views/Graph/GraphChart.d.ts +0 -1
- package/dist/widgets/views/Graph/GraphChart.d.ts.map +1 -1
- package/dist/widgets/views/Graph/GraphIndicator.d.ts +0 -1
- package/dist/widgets/views/Graph/GraphIndicator.d.ts.map +1 -1
- package/dist/widgets/views/SearchTree.d.ts.map +1 -1
- package/dist/widgets/views/searchFilter/DateRangePicker.d.ts +0 -1
- package/dist/widgets/views/searchFilter/DateRangePicker.d.ts.map +1 -1
- package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts +0 -1
- package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/widgets/views/searchFilter/SearchField.d.ts +0 -1
- package/dist/widgets/views/searchFilter/SearchField.d.ts.map +1 -1
- package/dist/widgets/views/searchFilter/SearchFilter.d.ts +0 -1
- package/dist/widgets/views/searchFilter/SearchFilter.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/actionbar/TreeActionBar.tsx +37 -1
- package/src/index.ts +2 -0
- package/src/locales/ca_ES.tsx +2 -0
- package/src/locales/en_US.tsx +2 -0
- package/src/locales/es_ES.tsx +2 -0
- package/src/widgets/base/Label.tsx +1 -1
- package/src/widgets/modals/ExportModal.tsx +134 -0
- package/src/widgets/views/SearchTree.tsx +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardTree.d.ts","sourceRoot":"","sources":["DashboardTree.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DashboardTree.d.ts","sourceRoot":"","sources":["DashboardTree.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQnD,aAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,aAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,sBA6MlC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardGrid.d.ts","sourceRoot":"","sources":["DashboardGrid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DashboardGrid.d.ts","sourceRoot":"","sources":["DashboardGrid.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,gCAAgC,CAAC;AACxC,OAAO,kCAAkC,CAAC;AAI1C,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBA4CtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardGridItem.d.ts","sourceRoot":"","sources":["DashboardGridItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DashboardGridItem.d.ts","sourceRoot":"","sources":["DashboardGridItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAOnE,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,gBAiD9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphChart.d.ts","sourceRoot":"","sources":["GraphChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GraphChart.d.ts","sourceRoot":"","sources":["GraphChart.tsx"],"names":[],"mappings":"AAaA,oBAAY,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,eAAe,gBAiDhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphIndicator.d.ts","sourceRoot":"","sources":["GraphIndicator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GraphIndicator.d.ts","sourceRoot":"","sources":["GraphIndicator.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQvC,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,oBAAoB,gBAoNzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchTree.d.ts","sourceRoot":"","sources":["SearchTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAgBnD,aAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,uBAAuB,CAAC,EAAE,CAAC,eAAe,EAAE,GAAG,KAAK,IAAI,CAAC;CAC1D,CAAC;;
|
|
1
|
+
{"version":3,"file":"SearchTree.d.ts","sourceRoot":"","sources":["SearchTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAgBnD,aAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,uBAAuB,CAAC,EAAE,CAAC,eAAe,EAAE,GAAG,KAAK,IAAI,CAAC;CAC1D,CAAC;;AA4SF,wBAAsC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["DateRangePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["DateRangePicker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,eAAe,UAAW,WAAW,gBASjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeRangePicker.d.ts","sourceRoot":"","sources":["DateTimeRangePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateTimeRangePicker.d.ts","sourceRoot":"","sources":["DateTimeRangePicker.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKtC,eAAO,MAAM,mBAAmB,UAAW,WAAW,gBAoDrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["SearchField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["SearchField.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,EAA8B,MAAM,aAAa,CAAC;AAGhE,aAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAgBF,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,eAyCvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchFilter.d.ts","sourceRoot":"","sources":["SearchFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchFilter.d.ts","sourceRoot":"","sources":["SearchFilter.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMvC,aAAK,KAAK,GAAG;IACX,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,iBAAS,YAAY,CAAC,KAAK,EAAE,KAAK,eAmHjC;AAED,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gisce/react-ooui",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.0-rc.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"src",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ant-design/plots": "^1.0.9",
|
|
39
39
|
"@gisce/ooui": "^0.17.7",
|
|
40
|
+
"@gisce/react-formiga-components": "^1.0.9-rc.6",
|
|
40
41
|
"@gisce/react-formiga-table": "^0.5.0",
|
|
41
42
|
"@monaco-editor/react": "^4.4.5",
|
|
42
43
|
"@tabler/icons": "^1.96.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useContext } from "react";
|
|
1
|
+
import React, { useContext, useState } from "react";
|
|
2
2
|
import { Space } from "antd";
|
|
3
3
|
import ChangeViewButton from "./ChangeViewButton";
|
|
4
4
|
import {
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ReloadOutlined,
|
|
16
16
|
InfoCircleOutlined,
|
|
17
17
|
FilterOutlined,
|
|
18
|
+
ExportOutlined,
|
|
18
19
|
} from "@ant-design/icons";
|
|
19
20
|
import { LocaleContext, LocaleContextType } from "@/context/LocaleContext";
|
|
20
21
|
import showConfirmDialog from "@/ui/ConfirmDialog";
|
|
@@ -28,6 +29,8 @@ import {
|
|
|
28
29
|
import ButtonWithBadge from "./ButtonWithBadge";
|
|
29
30
|
import { showLogInfo } from "@/helpers/logInfoHelper";
|
|
30
31
|
import SearchBar from "./SearchBar";
|
|
32
|
+
import { ExportModal } from "..";
|
|
33
|
+
import { mergeParams } from "@/helpers/searchHelper";
|
|
31
34
|
|
|
32
35
|
type Props = {
|
|
33
36
|
parentContext?: any;
|
|
@@ -57,6 +60,9 @@ function TreeActionBar(props: Props) {
|
|
|
57
60
|
treeIsLoading,
|
|
58
61
|
setPreviousView,
|
|
59
62
|
previousView,
|
|
63
|
+
results,
|
|
64
|
+
limit,
|
|
65
|
+
totalItems,
|
|
60
66
|
} = useContext(ActionViewContext) as ActionViewContextType;
|
|
61
67
|
|
|
62
68
|
const { parentContext = {}, treeExpandable, toolbar } = props;
|
|
@@ -66,6 +72,7 @@ function TreeActionBar(props: Props) {
|
|
|
66
72
|
ContentRootContext
|
|
67
73
|
) as ContentRootContextType;
|
|
68
74
|
const { processAction } = contentRootContext || {};
|
|
75
|
+
const [exportModalVisible, setExportModalVisible] = useState(false);
|
|
69
76
|
|
|
70
77
|
function tryDelete() {
|
|
71
78
|
showConfirmDialog({
|
|
@@ -233,6 +240,16 @@ function TreeActionBar(props: Props) {
|
|
|
233
240
|
</>
|
|
234
241
|
)}
|
|
235
242
|
{separator()}
|
|
243
|
+
<ActionButton
|
|
244
|
+
icon={<ExportOutlined />}
|
|
245
|
+
tooltip={t("export")}
|
|
246
|
+
disabled={duplicatingItem || removingItem || treeIsLoading}
|
|
247
|
+
loading={false}
|
|
248
|
+
onClick={() => {
|
|
249
|
+
setExportModalVisible(true);
|
|
250
|
+
}}
|
|
251
|
+
/>
|
|
252
|
+
{separator()}
|
|
236
253
|
<DropdownButton
|
|
237
254
|
icon={<ThunderboltOutlined />}
|
|
238
255
|
disabled={
|
|
@@ -269,6 +286,25 @@ function TreeActionBar(props: Props) {
|
|
|
269
286
|
});
|
|
270
287
|
}}
|
|
271
288
|
/>
|
|
289
|
+
<ExportModal
|
|
290
|
+
visible={exportModalVisible}
|
|
291
|
+
locale={lang}
|
|
292
|
+
onClose={() => setExportModalVisible(false)}
|
|
293
|
+
model={currentModel!}
|
|
294
|
+
treeFields={searchTreeRef?.current?.getFields()}
|
|
295
|
+
domain={mergeParams(
|
|
296
|
+
searchTreeRef?.current?.getDomain() || [],
|
|
297
|
+
searchParams || []
|
|
298
|
+
)}
|
|
299
|
+
limit={limit}
|
|
300
|
+
totalRegisters={totalItems}
|
|
301
|
+
selectedRegistersToExport={
|
|
302
|
+
results && results.length && results.length > 0
|
|
303
|
+
? results.length
|
|
304
|
+
: undefined
|
|
305
|
+
}
|
|
306
|
+
context={parentContext}
|
|
307
|
+
/>
|
|
272
308
|
</Space>
|
|
273
309
|
);
|
|
274
310
|
}
|
package/src/index.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { Separator } from "@/widgets/base/Separator";
|
|
|
19
19
|
import SearchFilter from "@/widgets/views/searchFilter/SearchFilter";
|
|
20
20
|
import SearchTree from "@/widgets/views/SearchTree";
|
|
21
21
|
import { FormModal } from "@/widgets/modals/FormModal";
|
|
22
|
+
import { ExportModal } from "@/widgets/modals/ExportModal";
|
|
22
23
|
import { SearchModal } from "@/widgets/modals/SearchModal";
|
|
23
24
|
import Date from "@/widgets/base/Date";
|
|
24
25
|
import DateTime from "@/widgets/base/DateTime";
|
|
@@ -149,4 +150,5 @@ export {
|
|
|
149
150
|
Switch,
|
|
150
151
|
Steps,
|
|
151
152
|
CodeEditor,
|
|
153
|
+
ExportModal,
|
|
152
154
|
};
|
package/src/locales/ca_ES.tsx
CHANGED
package/src/locales/en_US.tsx
CHANGED
package/src/locales/es_ES.tsx
CHANGED
|
@@ -38,7 +38,7 @@ const Label = (props: Props) => {
|
|
|
38
38
|
>
|
|
39
39
|
{tooltip && (
|
|
40
40
|
<Tooltip title={tooltip}>
|
|
41
|
-
<QuestionCircleOutlined className="text-xs text-blue-400
|
|
41
|
+
<QuestionCircleOutlined className="pr-1 text-xs text-blue-400" />
|
|
42
42
|
</Tooltip>
|
|
43
43
|
)}
|
|
44
44
|
<span className="pr-2">
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import ConnectionProvider from "@/ConnectionProvider";
|
|
2
|
+
import {
|
|
3
|
+
ExportModal as ExportModalFmg,
|
|
4
|
+
Locale,
|
|
5
|
+
} from "@gisce/react-formiga-components";
|
|
6
|
+
import { ExportOptions } from "@gisce/react-formiga-components/dist/components/other/ExportModal/ExportModal.types";
|
|
7
|
+
import React, { useRef } from "react";
|
|
8
|
+
import showInfo from "@/ui/InfoDialog";
|
|
9
|
+
import { tForLang } from "@/context/LocaleContext";
|
|
10
|
+
|
|
11
|
+
export type ExportModalProps = {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
locale: string;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
selectedRegistersToExport?: number;
|
|
16
|
+
totalRegisters: number;
|
|
17
|
+
model: string;
|
|
18
|
+
domain: any[];
|
|
19
|
+
limit?: number;
|
|
20
|
+
treeFields?: any;
|
|
21
|
+
context?: any;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const ExportModal = (props: ExportModalProps) => {
|
|
25
|
+
const {
|
|
26
|
+
visible,
|
|
27
|
+
locale,
|
|
28
|
+
onClose,
|
|
29
|
+
model,
|
|
30
|
+
context,
|
|
31
|
+
treeFields,
|
|
32
|
+
selectedRegistersToExport,
|
|
33
|
+
totalRegisters,
|
|
34
|
+
domain,
|
|
35
|
+
limit,
|
|
36
|
+
} = props;
|
|
37
|
+
const fields = useRef<any>({});
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<ExportModalFmg
|
|
41
|
+
visible={visible}
|
|
42
|
+
locale={locale as Locale}
|
|
43
|
+
onSucceed={async (options: ExportOptions) => {
|
|
44
|
+
if (options.selectedKeys.length === 0) {
|
|
45
|
+
showInfo(tForLang("selectAtLeastOneField", locale));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
onClose();
|
|
49
|
+
}}
|
|
50
|
+
onCancel={onClose}
|
|
51
|
+
selectedRegistersToExport={selectedRegistersToExport}
|
|
52
|
+
totalRegisters={totalRegisters}
|
|
53
|
+
onGetFieldChilds={async ({ key, title }: any) => {
|
|
54
|
+
let fieldDefinition;
|
|
55
|
+
|
|
56
|
+
if (key.indexOf("/") === -1) {
|
|
57
|
+
fieldDefinition = fields.current["/"];
|
|
58
|
+
} else {
|
|
59
|
+
fieldDefinition = fields.current[getParentKey(key)];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const optsForField = fieldDefinition[getChildKey(key)];
|
|
63
|
+
const relation = optsForField.relation;
|
|
64
|
+
const viewData = await ConnectionProvider.getHandler().getFields({
|
|
65
|
+
model: relation,
|
|
66
|
+
context,
|
|
67
|
+
fields: [],
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
fields.current[key] = viewData;
|
|
71
|
+
|
|
72
|
+
return convertToExportField({
|
|
73
|
+
fields: viewData,
|
|
74
|
+
parentTitle: title,
|
|
75
|
+
parentKey: key,
|
|
76
|
+
});
|
|
77
|
+
}}
|
|
78
|
+
onGetFields={async () => {
|
|
79
|
+
const viewData = await ConnectionProvider.getHandler().getFields({
|
|
80
|
+
model,
|
|
81
|
+
context,
|
|
82
|
+
fields: [],
|
|
83
|
+
});
|
|
84
|
+
fields.current["/"] = viewData;
|
|
85
|
+
return convertToExportField({ fields: viewData });
|
|
86
|
+
}}
|
|
87
|
+
selectedKeys={treeFields ? Object.keys(treeFields) : undefined}
|
|
88
|
+
/>
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const convertToExportField = ({
|
|
93
|
+
fields,
|
|
94
|
+
parentKey,
|
|
95
|
+
parentTitle,
|
|
96
|
+
}: {
|
|
97
|
+
fields: any;
|
|
98
|
+
parentTitle?: string;
|
|
99
|
+
parentKey?: string;
|
|
100
|
+
}) => {
|
|
101
|
+
const exportFields = [];
|
|
102
|
+
|
|
103
|
+
for (const key of Object.keys(fields)) {
|
|
104
|
+
const valuesForField = fields[key];
|
|
105
|
+
const relationField =
|
|
106
|
+
valuesForField.type === "many2one" ||
|
|
107
|
+
valuesForField.type === "one2many" ||
|
|
108
|
+
valuesForField.type === "many2many";
|
|
109
|
+
|
|
110
|
+
exportFields.push({
|
|
111
|
+
key: `${parentKey ? parentKey + "/" : ""}${key}`,
|
|
112
|
+
title: `${parentTitle ? parentTitle + "/" : ""}${valuesForField.string}`,
|
|
113
|
+
tooltip: valuesForField.help,
|
|
114
|
+
isLeaf: !relationField,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return exportFields;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const getParentKey = (key: string) => {
|
|
121
|
+
if (key.indexOf("/") === -1) {
|
|
122
|
+
return key;
|
|
123
|
+
}
|
|
124
|
+
const items = key.split("/");
|
|
125
|
+
return items.slice(0, -1).join("/");
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const getChildKey = (key: string) => {
|
|
129
|
+
if (key.indexOf("/") === -1) {
|
|
130
|
+
return key;
|
|
131
|
+
}
|
|
132
|
+
const items = key.split("/");
|
|
133
|
+
return items[items.length - 1];
|
|
134
|
+
};
|