drf-react-by-schema 0.28.8 → 0.28.9
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/@types/index.d.ts +410 -0
- package/dist/@types/index.d.ts.map +1 -0
- package/dist/@types/index.js +9 -0
- package/dist/@types/string-mask.d.ts +10 -0
- package/dist/@types/string-mask.d.ts.map +1 -0
- package/dist/@types/string-mask.js +1 -0
- package/dist/api.d.ts +81 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +1118 -0
- package/dist/components/DataGridBySchemaEditable/BooleanInputCell.d.ts +8 -0
- package/dist/components/DataGridBySchemaEditable/BooleanInputCell.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/BooleanInputCell.js +86 -0
- package/dist/components/DataGridBySchemaEditable/ConditionalEditWrapper.d.ts +12 -0
- package/dist/components/DataGridBySchemaEditable/ConditionalEditWrapper.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/ConditionalEditWrapper.js +71 -0
- package/dist/components/DataGridBySchemaEditable/ConfirmDialog.d.ts +9 -0
- package/dist/components/DataGridBySchemaEditable/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/ConfirmDialog.js +21 -0
- package/dist/components/DataGridBySchemaEditable/CustomToolbar.d.ts +26 -0
- package/dist/components/DataGridBySchemaEditable/CustomToolbar.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/CustomToolbar.js +146 -0
- package/dist/components/DataGridBySchemaEditable/DataGridDesktop.d.ts +73 -0
- package/dist/components/DataGridBySchemaEditable/DataGridDesktop.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/DataGridDesktop.js +421 -0
- package/dist/components/DataGridBySchemaEditable/DataGridMobile.d.ts +18 -0
- package/dist/components/DataGridBySchemaEditable/DataGridMobile.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/DataGridMobile.js +105 -0
- package/dist/components/DataGridBySchemaEditable/FileInputCell.d.ts +11 -0
- package/dist/components/DataGridBySchemaEditable/FileInputCell.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/FileInputCell.js +155 -0
- package/dist/components/DataGridBySchemaEditable/FooterToolbar.d.ts +12 -0
- package/dist/components/DataGridBySchemaEditable/FooterToolbar.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/FooterToolbar.js +36 -0
- package/dist/components/DataGridBySchemaEditable/GeoEditCell.d.ts +10 -0
- package/dist/components/DataGridBySchemaEditable/GeoEditCell.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GeoEditCell.js +85 -0
- package/dist/components/DataGridBySchemaEditable/GeoThumbCell.d.ts +11 -0
- package/dist/components/DataGridBySchemaEditable/GeoThumbCell.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GeoThumbCell.js +87 -0
- package/dist/components/DataGridBySchemaEditable/GridActionsCellItemLink.d.ts +18 -0
- package/dist/components/DataGridBySchemaEditable/GridActionsCellItemLink.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GridActionsCellItemLink.js +24 -0
- package/dist/components/DataGridBySchemaEditable/GridDateInput.d.ts +8 -0
- package/dist/components/DataGridBySchemaEditable/GridDateInput.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GridDateInput.js +166 -0
- package/dist/components/DataGridBySchemaEditable/GridDateTimeInput.d.ts +6 -0
- package/dist/components/DataGridBySchemaEditable/GridDateTimeInput.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GridDateTimeInput.js +154 -0
- package/dist/components/DataGridBySchemaEditable/GridDecimalInput.d.ts +10 -0
- package/dist/components/DataGridBySchemaEditable/GridDecimalInput.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GridDecimalInput.js +78 -0
- package/dist/components/DataGridBySchemaEditable/GridGenericInput.d.ts +8 -0
- package/dist/components/DataGridBySchemaEditable/GridGenericInput.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GridGenericInput.js +30 -0
- package/dist/components/DataGridBySchemaEditable/GridPatternInput.d.ts +7 -0
- package/dist/components/DataGridBySchemaEditable/GridPatternInput.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GridPatternInput.js +74 -0
- package/dist/components/DataGridBySchemaEditable/InputInterval.d.ts +21 -0
- package/dist/components/DataGridBySchemaEditable/InputInterval.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/InputInterval.js +131 -0
- package/dist/components/DataGridBySchemaEditable/MobileSearchBar.d.ts +9 -0
- package/dist/components/DataGridBySchemaEditable/MobileSearchBar.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/MobileSearchBar.js +70 -0
- package/dist/components/DataGridBySchemaEditable/RowEditingWatcher.d.ts +7 -0
- package/dist/components/DataGridBySchemaEditable/RowEditingWatcher.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/RowEditingWatcher.js +41 -0
- package/dist/components/DataGridBySchemaEditable/SelectEditInputCell.d.ts +24 -0
- package/dist/components/DataGridBySchemaEditable/SelectEditInputCell.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/SelectEditInputCell.js +259 -0
- package/dist/components/DataGridBySchemaEditable/geoConstants.d.ts +5 -0
- package/dist/components/DataGridBySchemaEditable/geoConstants.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/geoConstants.js +6 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useDataGridActions.d.ts +33 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useDataGridActions.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useDataGridActions.js +161 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useOptionsAC.d.ts +14 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useOptionsAC.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useOptionsAC.js +69 -0
- package/dist/components/DataGridBySchemaEditable/hooks/usePreparedColumns.d.ts +9 -0
- package/dist/components/DataGridBySchemaEditable/hooks/usePreparedColumns.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/hooks/usePreparedColumns.js +73 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useProcessRowUpdate.d.ts +30 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useProcessRowUpdate.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useProcessRowUpdate.js +199 -0
- package/dist/components/DataGridBySchemaEditable/utils/columnFactory.d.ts +33 -0
- package/dist/components/DataGridBySchemaEditable/utils/columnFactory.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/utils/columnFactory.js +270 -0
- package/dist/components/DataGridBySchemaEditable/utils.d.ts +40 -0
- package/dist/components/DataGridBySchemaEditable/utils.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/utils.js +181 -0
- package/dist/components/DataGridBySchemaEditable.d.ts +64 -0
- package/dist/components/DataGridBySchemaEditable.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable.js +172 -0
- package/dist/components/DataTotals.d.ts +12 -0
- package/dist/components/DataTotals.d.ts.map +1 -0
- package/dist/components/DataTotals.js +32 -0
- package/dist/components/DataTotalsServer.d.ts +10 -0
- package/dist/components/DataTotalsServer.d.ts.map +1 -0
- package/dist/components/DataTotalsServer.js +18 -0
- package/dist/components/DialogActions.d.ts +11 -0
- package/dist/components/DialogActions.d.ts.map +1 -0
- package/dist/components/DialogActions.js +20 -0
- package/dist/components/FileTypeIcon.d.ts +18 -0
- package/dist/components/FileTypeIcon.d.ts.map +1 -0
- package/dist/components/FileTypeIcon.js +48 -0
- package/dist/components/GenericModelList.d.ts +53 -0
- package/dist/components/GenericModelList.d.ts.map +1 -0
- package/dist/components/GenericModelList.js +194 -0
- package/dist/components/GenericRelatedModelList.d.ts +55 -0
- package/dist/components/GenericRelatedModelList.d.ts.map +1 -0
- package/dist/components/GenericRelatedModelList.js +181 -0
- package/dist/components/GenericRelatedModelListTable.d.ts +56 -0
- package/dist/components/GenericRelatedModelListTable.d.ts.map +1 -0
- package/dist/components/GenericRelatedModelListTable.js +31 -0
- package/dist/components/Image.d.ts +10 -0
- package/dist/components/Image.d.ts.map +1 -0
- package/dist/components/Image.js +111 -0
- package/dist/components/details/DetailBySchema.d.ts +4 -0
- package/dist/components/details/DetailBySchema.d.ts.map +1 -0
- package/dist/components/details/DetailBySchema.js +175 -0
- package/dist/components/details/DetailFieldBySchema.d.ts +4 -0
- package/dist/components/details/DetailFieldBySchema.d.ts.map +1 -0
- package/dist/components/details/DetailFieldBySchema.js +88 -0
- package/dist/components/forms/ChangePasswordForm.d.ts +7 -0
- package/dist/components/forms/ChangePasswordForm.d.ts.map +1 -0
- package/dist/components/forms/ChangePasswordForm.js +93 -0
- package/dist/components/forms/DialogFormBySchema.d.ts +22 -0
- package/dist/components/forms/DialogFormBySchema.d.ts.map +1 -0
- package/dist/components/forms/DialogFormBySchema.js +97 -0
- package/dist/components/forms/FieldBySchema.d.ts +4 -0
- package/dist/components/forms/FieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/FieldBySchema.js +80 -0
- package/dist/components/forms/ForgotPasswordForm.d.ts +11 -0
- package/dist/components/forms/ForgotPasswordForm.d.ts.map +1 -0
- package/dist/components/forms/ForgotPasswordForm.js +114 -0
- package/dist/components/forms/Form.d.ts +61 -0
- package/dist/components/forms/Form.d.ts.map +1 -0
- package/dist/components/forms/Form.js +264 -0
- package/dist/components/forms/FormActions.d.ts +20 -0
- package/dist/components/forms/FormActions.d.ts.map +1 -0
- package/dist/components/forms/FormActions.js +55 -0
- package/dist/components/forms/FormBySchema.d.ts +21 -0
- package/dist/components/forms/FormBySchema.d.ts.map +1 -0
- package/dist/components/forms/FormBySchema.js +280 -0
- package/dist/components/forms/FormWatcher.d.ts +10 -0
- package/dist/components/forms/FormWatcher.d.ts.map +1 -0
- package/dist/components/forms/FormWatcher.js +25 -0
- package/dist/components/forms/inputs/AutocompleteFieldBySchema.d.ts +13 -0
- package/dist/components/forms/inputs/AutocompleteFieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/AutocompleteFieldBySchema.js +133 -0
- package/dist/components/forms/inputs/BooleanFieldBySchema.d.ts +4 -0
- package/dist/components/forms/inputs/BooleanFieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/BooleanFieldBySchema.js +39 -0
- package/dist/components/forms/inputs/DesktopDatePickerBySchema.d.ts +5 -0
- package/dist/components/forms/inputs/DesktopDatePickerBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/DesktopDatePickerBySchema.js +54 -0
- package/dist/components/forms/inputs/DesktopDateTimePickerBySchema.d.ts +5 -0
- package/dist/components/forms/inputs/DesktopDateTimePickerBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/DesktopDateTimePickerBySchema.js +47 -0
- package/dist/components/forms/inputs/EditableAutocompleteFieldBySchema.d.ts +14 -0
- package/dist/components/forms/inputs/EditableAutocompleteFieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/EditableAutocompleteFieldBySchema.js +272 -0
- package/dist/components/forms/inputs/FileFieldBySchema.d.ts +4 -0
- package/dist/components/forms/inputs/FileFieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/FileFieldBySchema.js +144 -0
- package/dist/components/forms/inputs/FloatFieldBySchema.d.ts +4 -0
- package/dist/components/forms/inputs/FloatFieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/FloatFieldBySchema.js +64 -0
- package/dist/components/forms/inputs/GeometryFieldBySchema.d.ts +8 -0
- package/dist/components/forms/inputs/GeometryFieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/GeometryFieldBySchema.js +61 -0
- package/dist/components/forms/inputs/MapGeometryPicker.d.ts +19 -0
- package/dist/components/forms/inputs/MapGeometryPicker.d.ts.map +1 -0
- package/dist/components/forms/inputs/MapGeometryPicker.js +344 -0
- package/dist/components/forms/inputs/PatternFieldBySchema.d.ts +4 -0
- package/dist/components/forms/inputs/PatternFieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/PatternFieldBySchema.js +56 -0
- package/dist/components/forms/inputs/TextFieldBySchema.d.ts +4 -0
- package/dist/components/forms/inputs/TextFieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/TextFieldBySchema.js +56 -0
- package/dist/components/forms/inputs/leafletMarker.d.ts +12 -0
- package/dist/components/forms/inputs/leafletMarker.d.ts.map +1 -0
- package/dist/components/forms/inputs/leafletMarker.js +52 -0
- package/dist/context/APIWrapper.d.ts +18 -0
- package/dist/context/APIWrapper.d.ts.map +1 -0
- package/dist/context/APIWrapper.js +593 -0
- package/dist/context/APIWrapperContext.d.ts +132 -0
- package/dist/context/APIWrapperContext.d.ts.map +1 -0
- package/dist/context/APIWrapperContext.js +63 -0
- package/dist/context/DRFReactBySchemaContext.d.ts +31 -0
- package/dist/context/DRFReactBySchemaContext.d.ts.map +1 -0
- package/dist/context/DRFReactBySchemaContext.js +20 -0
- package/dist/context/DRFReactBySchemaProvider.d.ts +5 -0
- package/dist/context/DRFReactBySchemaProvider.d.ts.map +1 -0
- package/dist/context/DRFReactBySchemaProvider.js +105 -0
- package/dist/context/Overlays.d.ts +5 -0
- package/dist/context/Overlays.d.ts.map +1 -0
- package/dist/context/Overlays.js +114 -0
- package/dist/context/PrivateContext.d.ts +10 -0
- package/dist/context/PrivateContext.d.ts.map +1 -0
- package/dist/context/PrivateContext.js +16 -0
- package/dist/hooks/useDeepMemo.d.ts +2 -0
- package/dist/hooks/useDeepMemo.d.ts.map +1 -0
- package/dist/hooks/useDeepMemo.js +13 -0
- package/dist/hooks/useWhyDidYouUpdate.d.ts +4 -0
- package/dist/hooks/useWhyDidYouUpdate.d.ts.map +1 -0
- package/dist/hooks/useWhyDidYouUpdate.js +26 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +108 -0
- package/dist/styles/grid.d.ts +3 -0
- package/dist/styles/grid.d.ts.map +1 -0
- package/dist/styles/grid.js +38 -0
- package/dist/styles/index.d.ts +3 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/styles/index.js +38 -0
- package/dist/styles/layout.d.ts +23 -0
- package/dist/styles/layout.d.ts.map +1 -0
- package/dist/styles/layout.js +71 -0
- package/dist/styles/texts.d.ts +66 -0
- package/dist/styles/texts.d.ts.map +1 -0
- package/dist/styles/texts.js +73 -0
- package/dist/styles/theme.d.ts +29 -0
- package/dist/styles/theme.d.ts.map +1 -0
- package/dist/styles/theme.js +226 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/utils.d.ts +107 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +957 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,+BAA+B,EAC/B,UAAU,EACV,0BAA0B,EAC1B,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,eAAe,EAChB,MAAM,SAAS,CAAC;AAGjB,OAAO,wBAAwB,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,IAAI,MAAM,yBAAyB,CAAC;AAC3C,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AAGvE,OAAO,wBAAwB,MAAM,uCAAuC,CAAC;AAC7E,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,uBAAuB,MAAM,sCAAsC,CAAC;AAC3E,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,YAAY,MAAM,2BAA2B,CAAC;AAGrD,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,aAAa,MAAM,qDAAqD,CAAC;AAChF,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AAGtF,OAAO,WAAW,MAAM,gCAAgC,CAAC;AACzD,OAAO,YAAY,MAAM,iCAAiC,CAAC;AAC3D,OAAO,aAAa,MAAM,kCAAkC,CAAC;AAC7D,OAAO,iBAAiB,MAAM,6CAA6C,CAAC;AAC5E,OAAO,oBAAoB,MAAM,gDAAgD,CAAC;AAClF,OAAO,yBAAyB,MAAM,qDAAqD,CAAC;AAC5F,OAAO,6BAA6B,MAAM,yDAAyD,CAAC;AACpG,OAAO,iCAAiC,MAAM,6DAA6D,CAAC;AAC5G,OAAO,yBAAyB,MAAM,qDAAqD,CAAC;AAC5F,OAAO,kBAAkB,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGjG,OAAO,cAAc,MAAM,qCAAqC,CAAC;AACjE,OAAO,mBAAmB,MAAM,0CAA0C,CAAC;AAE3E,OAAO,EAEL,wBAAwB,EAGxB,aAAa,EAGb,IAAI,EACJ,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAGlB,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,UAAU,EACV,aAAa,EAGb,YAAY,EAGZ,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAGhB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,EAC7B,iCAAiC,EACjC,yBAAyB,EACzB,kBAAkB,EAGlB,cAAc,EACd,mBAAmB,EAGnB,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,+BAA+B,EAC/B,UAAU,EACV,0BAA0B,EAC1B,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,kBAAkB,GACnB,CAAC;AAEF,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.AUTH_EXPIRED_EVENT = exports.slugToCamelCase = exports.hasJWT = exports.clearJWT = exports.getPatternFormat = exports.isTmpId = exports.getTmpId = exports.getFieldErrorsFromResponse = exports.errorProps = exports.buildGenericYupValidationSchema = exports.enrichChoices = exports.populateValues = exports.getChoiceByValue = exports.emptyByType = exports.setAuthToken = exports.DetailFieldBySchema = exports.DetailBySchema = exports.FloatFieldBySchema = exports.AutocompleteFieldBySchema = exports.EditableAutocompleteFieldBySchema = exports.DesktopDateTimePickerBySchema = exports.DesktopDatePickerBySchema = exports.BooleanFieldBySchema = exports.TextFieldBySchema = exports.FieldBySchema = exports.FormBySchema = exports.FormWatcher = exports.BooleanInputCell = exports.GridPatternInput = exports.GridDecimalInput = exports.GridDateInput = exports.SelectEditInputCell = exports.FileTypeIcon = exports.DialogActions = exports.DataTotals = exports.GenericRelatedModelList = exports.GenericModelList = exports.DataGridBySchemaEditable = exports.ForgotPasswordForm = exports.ChangePasswordForm = exports.DialogFormBySchema = exports.Form = exports.useAPIWrapper = exports.DRFReactBySchemaProvider = exports.getThemeTexts = exports.applyDefaultLeafletIcon = void 0;
|
|
21
|
+
// Methods:
|
|
22
|
+
const api_1 = require("./api");
|
|
23
|
+
Object.defineProperty(exports, "setAuthToken", { enumerable: true, get: function () { return api_1.setAuthToken; } });
|
|
24
|
+
Object.defineProperty(exports, "hasJWT", { enumerable: true, get: function () { return api_1.hasJWT; } });
|
|
25
|
+
Object.defineProperty(exports, "clearJWT", { enumerable: true, get: function () { return api_1.clearJWT; } });
|
|
26
|
+
Object.defineProperty(exports, "AUTH_EXPIRED_EVENT", { enumerable: true, get: function () { return api_1.AUTH_EXPIRED_EVENT; } });
|
|
27
|
+
const utils_1 = require("./utils");
|
|
28
|
+
Object.defineProperty(exports, "emptyByType", { enumerable: true, get: function () { return utils_1.emptyByType; } });
|
|
29
|
+
Object.defineProperty(exports, "getChoiceByValue", { enumerable: true, get: function () { return utils_1.getChoiceByValue; } });
|
|
30
|
+
Object.defineProperty(exports, "populateValues", { enumerable: true, get: function () { return utils_1.populateValues; } });
|
|
31
|
+
Object.defineProperty(exports, "enrichChoices", { enumerable: true, get: function () { return utils_1.enrichChoices; } });
|
|
32
|
+
Object.defineProperty(exports, "buildGenericYupValidationSchema", { enumerable: true, get: function () { return utils_1.buildGenericYupValidationSchema; } });
|
|
33
|
+
Object.defineProperty(exports, "errorProps", { enumerable: true, get: function () { return utils_1.errorProps; } });
|
|
34
|
+
Object.defineProperty(exports, "getFieldErrorsFromResponse", { enumerable: true, get: function () { return utils_1.getFieldErrorsFromResponse; } });
|
|
35
|
+
Object.defineProperty(exports, "getTmpId", { enumerable: true, get: function () { return utils_1.getTmpId; } });
|
|
36
|
+
Object.defineProperty(exports, "isTmpId", { enumerable: true, get: function () { return utils_1.isTmpId; } });
|
|
37
|
+
Object.defineProperty(exports, "getPatternFormat", { enumerable: true, get: function () { return utils_1.getPatternFormat; } });
|
|
38
|
+
Object.defineProperty(exports, "slugToCamelCase", { enumerable: true, get: function () { return utils_1.slugToCamelCase; } });
|
|
39
|
+
// Overall Provider:
|
|
40
|
+
const DRFReactBySchemaProvider_1 = __importDefault(require("./context/DRFReactBySchemaProvider"));
|
|
41
|
+
exports.DRFReactBySchemaProvider = DRFReactBySchemaProvider_1.default;
|
|
42
|
+
// APIWrapper Context:
|
|
43
|
+
const APIWrapperContext_1 = require("./context/APIWrapperContext");
|
|
44
|
+
Object.defineProperty(exports, "useAPIWrapper", { enumerable: true, get: function () { return APIWrapperContext_1.useAPIWrapper; } });
|
|
45
|
+
// Form:
|
|
46
|
+
const Form_1 = __importDefault(require("./components/forms/Form"));
|
|
47
|
+
exports.Form = Form_1.default;
|
|
48
|
+
const DialogFormBySchema_1 = __importDefault(require("./components/forms/DialogFormBySchema"));
|
|
49
|
+
exports.DialogFormBySchema = DialogFormBySchema_1.default;
|
|
50
|
+
const ChangePasswordForm_1 = __importDefault(require("./components/forms/ChangePasswordForm"));
|
|
51
|
+
exports.ChangePasswordForm = ChangePasswordForm_1.default;
|
|
52
|
+
const ForgotPasswordForm_1 = __importDefault(require("./components/forms/ForgotPasswordForm"));
|
|
53
|
+
exports.ForgotPasswordForm = ForgotPasswordForm_1.default;
|
|
54
|
+
// Components:
|
|
55
|
+
const DataGridBySchemaEditable_1 = __importDefault(require("./components/DataGridBySchemaEditable"));
|
|
56
|
+
exports.DataGridBySchemaEditable = DataGridBySchemaEditable_1.default;
|
|
57
|
+
const GenericModelList_1 = __importDefault(require("./components/GenericModelList"));
|
|
58
|
+
exports.GenericModelList = GenericModelList_1.default;
|
|
59
|
+
const GenericRelatedModelList_1 = __importDefault(require("./components/GenericRelatedModelList"));
|
|
60
|
+
exports.GenericRelatedModelList = GenericRelatedModelList_1.default;
|
|
61
|
+
const DataTotals_1 = __importDefault(require("./components/DataTotals"));
|
|
62
|
+
exports.DataTotals = DataTotals_1.default;
|
|
63
|
+
const DialogActions_1 = __importDefault(require("./components/DialogActions"));
|
|
64
|
+
exports.DialogActions = DialogActions_1.default;
|
|
65
|
+
const FileTypeIcon_1 = __importDefault(require("./components/FileTypeIcon"));
|
|
66
|
+
exports.FileTypeIcon = FileTypeIcon_1.default;
|
|
67
|
+
// DataGridBySchema Components:
|
|
68
|
+
const SelectEditInputCell_1 = __importDefault(require("./components/DataGridBySchemaEditable/SelectEditInputCell"));
|
|
69
|
+
exports.SelectEditInputCell = SelectEditInputCell_1.default;
|
|
70
|
+
const GridDateInput_1 = __importDefault(require("./components/DataGridBySchemaEditable/GridDateInput"));
|
|
71
|
+
exports.GridDateInput = GridDateInput_1.default;
|
|
72
|
+
const GridDecimalInput_1 = __importDefault(require("./components/DataGridBySchemaEditable/GridDecimalInput"));
|
|
73
|
+
exports.GridDecimalInput = GridDecimalInput_1.default;
|
|
74
|
+
const GridPatternInput_1 = __importDefault(require("./components/DataGridBySchemaEditable/GridPatternInput"));
|
|
75
|
+
exports.GridPatternInput = GridPatternInput_1.default;
|
|
76
|
+
const BooleanInputCell_1 = __importDefault(require("./components/DataGridBySchemaEditable/BooleanInputCell"));
|
|
77
|
+
exports.BooleanInputCell = BooleanInputCell_1.default;
|
|
78
|
+
// FormComponents
|
|
79
|
+
const FormWatcher_1 = __importDefault(require("./components/forms/FormWatcher"));
|
|
80
|
+
exports.FormWatcher = FormWatcher_1.default;
|
|
81
|
+
const FormBySchema_1 = __importDefault(require("./components/forms/FormBySchema"));
|
|
82
|
+
exports.FormBySchema = FormBySchema_1.default;
|
|
83
|
+
const FieldBySchema_1 = __importDefault(require("./components/forms/FieldBySchema"));
|
|
84
|
+
exports.FieldBySchema = FieldBySchema_1.default;
|
|
85
|
+
const TextFieldBySchema_1 = __importDefault(require("./components/forms/inputs/TextFieldBySchema"));
|
|
86
|
+
exports.TextFieldBySchema = TextFieldBySchema_1.default;
|
|
87
|
+
const BooleanFieldBySchema_1 = __importDefault(require("./components/forms/inputs/BooleanFieldBySchema"));
|
|
88
|
+
exports.BooleanFieldBySchema = BooleanFieldBySchema_1.default;
|
|
89
|
+
const DesktopDatePickerBySchema_1 = __importDefault(require("./components/forms/inputs/DesktopDatePickerBySchema"));
|
|
90
|
+
exports.DesktopDatePickerBySchema = DesktopDatePickerBySchema_1.default;
|
|
91
|
+
const DesktopDateTimePickerBySchema_1 = __importDefault(require("./components/forms/inputs/DesktopDateTimePickerBySchema"));
|
|
92
|
+
exports.DesktopDateTimePickerBySchema = DesktopDateTimePickerBySchema_1.default;
|
|
93
|
+
const EditableAutocompleteFieldBySchema_1 = __importDefault(require("./components/forms/inputs/EditableAutocompleteFieldBySchema"));
|
|
94
|
+
exports.EditableAutocompleteFieldBySchema = EditableAutocompleteFieldBySchema_1.default;
|
|
95
|
+
const AutocompleteFieldBySchema_1 = __importDefault(require("./components/forms/inputs/AutocompleteFieldBySchema"));
|
|
96
|
+
exports.AutocompleteFieldBySchema = AutocompleteFieldBySchema_1.default;
|
|
97
|
+
const FloatFieldBySchema_1 = __importDefault(require("./components/forms/inputs/FloatFieldBySchema"));
|
|
98
|
+
exports.FloatFieldBySchema = FloatFieldBySchema_1.default;
|
|
99
|
+
var leafletMarker_1 = require("./components/forms/inputs/leafletMarker");
|
|
100
|
+
Object.defineProperty(exports, "applyDefaultLeafletIcon", { enumerable: true, get: function () { return leafletMarker_1.applyDefaultLeafletIcon; } });
|
|
101
|
+
var texts_1 = require("./styles/texts");
|
|
102
|
+
Object.defineProperty(exports, "getThemeTexts", { enumerable: true, get: function () { return texts_1.getThemeTexts; } });
|
|
103
|
+
// DetailComponents
|
|
104
|
+
const DetailBySchema_1 = __importDefault(require("./components/details/DetailBySchema"));
|
|
105
|
+
exports.DetailBySchema = DetailBySchema_1.default;
|
|
106
|
+
const DetailFieldBySchema_1 = __importDefault(require("./components/details/DetailFieldBySchema"));
|
|
107
|
+
exports.DetailFieldBySchema = DetailFieldBySchema_1.default;
|
|
108
|
+
__exportStar(require("./@types/index"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/styles/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE/C,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,KAAK,CAsCjD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.seamlessTextFieldStyle = void 0;
|
|
4
|
+
exports.seamlessTextFieldStyle = {
|
|
5
|
+
// 1. Remove borders but keep the focus color on the cell wrapper if needed
|
|
6
|
+
'& .MuiOutlinedInput-notchedOutline': { border: 'none' },
|
|
7
|
+
'&:hover .MuiOutlinedInput-notchedOutline': { border: 'none' },
|
|
8
|
+
'&.Mui-focused .MuiOutlinedInput-notchedOutline': { border: 'none' },
|
|
9
|
+
// 2. Force the Autocomplete wrapper to fill the cell
|
|
10
|
+
'&.MuiAutocomplete-inputRoot': {
|
|
11
|
+
height: '100%',
|
|
12
|
+
display: 'flex',
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
padding: '0 8px !important', // Leave room for icons
|
|
15
|
+
},
|
|
16
|
+
'& .MuiInputBase-root': {
|
|
17
|
+
height: '100%',
|
|
18
|
+
// padding: '0 !important',
|
|
19
|
+
fontSize: '0.875rem',
|
|
20
|
+
},
|
|
21
|
+
'& .MuiInputBase-input': {
|
|
22
|
+
// padding: '0 8px !important', // Align text with icons
|
|
23
|
+
height: '100%',
|
|
24
|
+
boxSizing: 'border-box',
|
|
25
|
+
},
|
|
26
|
+
// 3. The Error Message: Use the "Floating" approach
|
|
27
|
+
'& .MuiFormHelperText-root': {
|
|
28
|
+
width: '100%',
|
|
29
|
+
minWidth: '100%',
|
|
30
|
+
backgroundColor: '#fff',
|
|
31
|
+
border: 'none',
|
|
32
|
+
borderTop: '1px solid #d32f2f',
|
|
33
|
+
color: '#d32f2f',
|
|
34
|
+
zIndex: 1301,
|
|
35
|
+
margin: 0,
|
|
36
|
+
padding: '4px 8px',
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Layout = void 0;
|
|
37
|
+
const Layout = __importStar(require("./layout"));
|
|
38
|
+
exports.Layout = Layout;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
export declare const content: SxProps<Theme>;
|
|
3
|
+
export declare const main: SxProps<Theme>;
|
|
4
|
+
export declare const flexRow: SxProps<Theme>;
|
|
5
|
+
export declare const topBar: SxProps<Theme>;
|
|
6
|
+
export declare const loadingBox: SxProps<Theme>;
|
|
7
|
+
export declare const loadingBoxWhite: SxProps<Theme>;
|
|
8
|
+
export declare const actionButtons: SxProps<Theme>;
|
|
9
|
+
export declare const inLineForm: SxProps<Theme>;
|
|
10
|
+
export declare const flexColumn: SxProps<Theme>;
|
|
11
|
+
export declare const flexRowGrow: SxProps<Theme>;
|
|
12
|
+
export declare const topBarOverList: SxProps<Theme>;
|
|
13
|
+
export declare const dataGrid: SxProps<Theme>;
|
|
14
|
+
export declare const dataGridWithTabs: SxProps<Theme>;
|
|
15
|
+
export declare const dataGridFixedHeight: SxProps<Theme>;
|
|
16
|
+
export declare const fullWidthButton: SxProps<Theme>;
|
|
17
|
+
export declare const formCard: SxProps<Theme>;
|
|
18
|
+
export declare const formCardContent: SxProps<Theme>;
|
|
19
|
+
export declare const metabaseAppEmbed: SxProps<Theme>;
|
|
20
|
+
export declare const geoPicker: SxProps<Theme>;
|
|
21
|
+
export declare const detailFieldImg: SxProps<Theme>;
|
|
22
|
+
export declare const conditionalVisible: SxProps<Theme>;
|
|
23
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/styles/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CAMlC,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,KAAK,CAG/B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CAKlC,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,KAAK,CAKjC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,KAAK,CAKrC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,KAAK,CAI1C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,KAAK,CAIxC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,KAAK,CAIrC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,KAAK,CAGrC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,KAAK,CAGtC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,KAAK,CAGzC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,KAAK,CAGnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,KAAK,CAG3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,KAAK,CAG9C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,KAAK,CAG1C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,KAAK,CAKnC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,KAAK,CAG1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,KAAK,CAE3C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,KAAK,CAIpC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,KAAK,CAKzC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,KAAK,CAW7C,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conditionalVisible = exports.detailFieldImg = exports.geoPicker = exports.metabaseAppEmbed = exports.formCardContent = exports.formCard = exports.fullWidthButton = exports.dataGridFixedHeight = exports.dataGridWithTabs = exports.dataGrid = exports.topBarOverList = exports.flexRowGrow = exports.flexColumn = exports.inLineForm = exports.actionButtons = exports.loadingBoxWhite = exports.loadingBox = exports.topBar = exports.flexRow = exports.main = exports.content = void 0;
|
|
4
|
+
exports.content = {
|
|
5
|
+
flexGrow: 1,
|
|
6
|
+
pr: 3,
|
|
7
|
+
pl: 3,
|
|
8
|
+
pt: 2,
|
|
9
|
+
pb: 0,
|
|
10
|
+
};
|
|
11
|
+
exports.main = Object.assign(Object.assign({}, exports.content), { ml: 4 });
|
|
12
|
+
exports.flexRow = {
|
|
13
|
+
display: 'flex',
|
|
14
|
+
flexDirection: 'row',
|
|
15
|
+
justifyContent: 'space-between',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
};
|
|
18
|
+
exports.topBar = Object.assign(Object.assign({}, exports.flexRow), { width: '100%', pl: 3, pr: 6 });
|
|
19
|
+
exports.loadingBox = Object.assign(Object.assign({}, exports.flexRow), { height: '100%', backgroundColor: '#ccc', justifyContent: 'center' });
|
|
20
|
+
exports.loadingBoxWhite = Object.assign(Object.assign({}, exports.flexRow), { height: '100%', justifyContent: 'center' });
|
|
21
|
+
exports.actionButtons = Object.assign(Object.assign({}, exports.flexRow), { width: '100%', alignItems: 'flex-start' });
|
|
22
|
+
exports.inLineForm = Object.assign(Object.assign({}, exports.flexRow), { width: '100%', justifyContent: 'flex-start' });
|
|
23
|
+
exports.flexColumn = Object.assign(Object.assign({}, exports.flexRow), { flexDirection: 'column' });
|
|
24
|
+
exports.flexRowGrow = Object.assign(Object.assign({}, exports.flexRow), { flexGrow: 1 });
|
|
25
|
+
exports.topBarOverList = Object.assign(Object.assign({}, exports.flexRowGrow), { mb: 2 });
|
|
26
|
+
exports.dataGrid = {
|
|
27
|
+
height: 'calc(100vh - 180px)',
|
|
28
|
+
mt: 2,
|
|
29
|
+
};
|
|
30
|
+
exports.dataGridWithTabs = Object.assign(Object.assign({}, exports.dataGrid), { mt: 0 });
|
|
31
|
+
exports.dataGridFixedHeight = Object.assign(Object.assign({}, exports.dataGrid), { height: 400 });
|
|
32
|
+
exports.fullWidthButton = {
|
|
33
|
+
mt: 3,
|
|
34
|
+
width: '100%',
|
|
35
|
+
};
|
|
36
|
+
exports.formCard = {
|
|
37
|
+
width: '100%',
|
|
38
|
+
backgroundColor: (theme) => theme.palette.formCard.main,
|
|
39
|
+
mt: 2,
|
|
40
|
+
mb: 2,
|
|
41
|
+
};
|
|
42
|
+
exports.formCardContent = {
|
|
43
|
+
maxHeight: 350,
|
|
44
|
+
overflow: 'scroll',
|
|
45
|
+
};
|
|
46
|
+
exports.metabaseAppEmbed = {
|
|
47
|
+
height: 1700,
|
|
48
|
+
};
|
|
49
|
+
exports.geoPicker = {
|
|
50
|
+
height: 350,
|
|
51
|
+
width: '100%',
|
|
52
|
+
mt: 0,
|
|
53
|
+
};
|
|
54
|
+
exports.detailFieldImg = {
|
|
55
|
+
width: '100%',
|
|
56
|
+
maxWidth: 450,
|
|
57
|
+
maxHeight: 300,
|
|
58
|
+
overflow: 'hidden',
|
|
59
|
+
};
|
|
60
|
+
exports.conditionalVisible = {
|
|
61
|
+
width: '100%',
|
|
62
|
+
height: '100%',
|
|
63
|
+
backgroundColor: '#f5f5f5',
|
|
64
|
+
color: '#a0a0a0',
|
|
65
|
+
display: 'flex',
|
|
66
|
+
alignItems: 'center',
|
|
67
|
+
padding: '0 10px',
|
|
68
|
+
cursor: 'not-allowed',
|
|
69
|
+
userSelect: 'none',
|
|
70
|
+
fontStyle: 'italic',
|
|
71
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
export interface GeometryTexts {
|
|
3
|
+
labelPoint: string;
|
|
4
|
+
labelOther: string;
|
|
5
|
+
malformed: string;
|
|
6
|
+
synced: string;
|
|
7
|
+
edit: string;
|
|
8
|
+
define: string;
|
|
9
|
+
drawSelectTitle: string;
|
|
10
|
+
close: string;
|
|
11
|
+
drawAMarker: string;
|
|
12
|
+
drawAPolygon: string;
|
|
13
|
+
cancelDrawing: string;
|
|
14
|
+
finishDrawing: string;
|
|
15
|
+
undoPoint: string;
|
|
16
|
+
editLayers: string;
|
|
17
|
+
editLayersDisabled: string;
|
|
18
|
+
deleteLayers: string;
|
|
19
|
+
deleteLayersDisabled: string;
|
|
20
|
+
saveChanges: string;
|
|
21
|
+
cancelEdit: string;
|
|
22
|
+
clearAll: string;
|
|
23
|
+
clickToPlaceMarker: string;
|
|
24
|
+
clickToStartShape: string;
|
|
25
|
+
clickToContinueShape: string;
|
|
26
|
+
clickToCloseShape: string;
|
|
27
|
+
dragToEditFeatures: string;
|
|
28
|
+
clickCancelToUndo: string;
|
|
29
|
+
clickFeatureToRemove: string;
|
|
30
|
+
zoomIn: string;
|
|
31
|
+
zoomOut: string;
|
|
32
|
+
}
|
|
33
|
+
export interface FormTexts {
|
|
34
|
+
save: string;
|
|
35
|
+
saveAndContinue: string;
|
|
36
|
+
saveAndCreateNew: string;
|
|
37
|
+
cancel: string;
|
|
38
|
+
remove: string;
|
|
39
|
+
dialogCancel: string;
|
|
40
|
+
dialogSave: string;
|
|
41
|
+
}
|
|
42
|
+
export interface AuthTexts {
|
|
43
|
+
email: string;
|
|
44
|
+
currentPassword: string;
|
|
45
|
+
newPassword: string;
|
|
46
|
+
confirmPassword: string;
|
|
47
|
+
saving: string;
|
|
48
|
+
passwordsDoNotMatch: string;
|
|
49
|
+
backToSignIn: string;
|
|
50
|
+
changePasswordSubmit: string;
|
|
51
|
+
changePasswordError: string;
|
|
52
|
+
forgotRequestSubmit: string;
|
|
53
|
+
forgotConfirmSubmit: string;
|
|
54
|
+
forgotRequestError: string;
|
|
55
|
+
forgotRequestSuccess: string;
|
|
56
|
+
forgotConfirmError: string;
|
|
57
|
+
forgotConfirmSuccess: string;
|
|
58
|
+
}
|
|
59
|
+
export interface DRFReactBySchemaTexts {
|
|
60
|
+
geometry: GeometryTexts;
|
|
61
|
+
forms: FormTexts;
|
|
62
|
+
auth: AuthTexts;
|
|
63
|
+
}
|
|
64
|
+
export declare const DEFAULT_TEXTS: DRFReactBySchemaTexts;
|
|
65
|
+
export declare function getThemeTexts(theme: Theme): DRFReactBySchemaTexts;
|
|
66
|
+
//# sourceMappingURL=texts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texts.d.ts","sourceRoot":"","sources":["../../src/styles/texts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAE7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IAErB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAE5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;CACjB;AAGD,eAAO,MAAM,aAAa,EAAE,qBA2D3B,CAAC;AAGF,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,qBAAqB,CAOjE"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_TEXTS = void 0;
|
|
4
|
+
exports.getThemeTexts = getThemeTexts;
|
|
5
|
+
// Default widget strings (en). Apps override any namespace via their MUI theme.
|
|
6
|
+
exports.DEFAULT_TEXTS = {
|
|
7
|
+
geometry: {
|
|
8
|
+
labelPoint: 'Coordinates (GeoJSON)',
|
|
9
|
+
labelOther: 'GeoJSON (paste here)',
|
|
10
|
+
malformed: 'Malformed data, fix the GeoJSON to reflect on the map.',
|
|
11
|
+
synced: 'The GeoJSON below is synchronized with the map.',
|
|
12
|
+
edit: 'Edit geometry',
|
|
13
|
+
define: 'Define geometry',
|
|
14
|
+
drawSelectTitle: 'Draw / select geometry',
|
|
15
|
+
close: 'Close',
|
|
16
|
+
drawAMarker: 'Draw a marker',
|
|
17
|
+
drawAPolygon: 'Draw a polygon',
|
|
18
|
+
cancelDrawing: 'Cancel',
|
|
19
|
+
finishDrawing: 'Finish',
|
|
20
|
+
undoPoint: 'Delete last point',
|
|
21
|
+
editLayers: 'Edit layers',
|
|
22
|
+
editLayersDisabled: 'No layers to edit',
|
|
23
|
+
deleteLayers: 'Delete layers',
|
|
24
|
+
deleteLayersDisabled: 'No layers to delete',
|
|
25
|
+
saveChanges: 'Save',
|
|
26
|
+
cancelEdit: 'Cancel',
|
|
27
|
+
clearAll: 'Clear All',
|
|
28
|
+
clickToPlaceMarker: 'Click map to place marker.',
|
|
29
|
+
clickToStartShape: 'Click to start drawing shape.',
|
|
30
|
+
clickToContinueShape: 'Click to continue drawing shape.',
|
|
31
|
+
clickToCloseShape: 'Click first point to close this shape.',
|
|
32
|
+
dragToEditFeatures: 'Drag handles or markers to edit features.',
|
|
33
|
+
clickCancelToUndo: 'Click cancel to undo changes.',
|
|
34
|
+
clickFeatureToRemove: 'Click on a feature to remove.',
|
|
35
|
+
zoomIn: 'Zoom in',
|
|
36
|
+
zoomOut: 'Zoom out',
|
|
37
|
+
},
|
|
38
|
+
forms: {
|
|
39
|
+
save: 'Save',
|
|
40
|
+
saveAndContinue: 'Save and Continue',
|
|
41
|
+
saveAndCreateNew: 'Save and Create New',
|
|
42
|
+
cancel: 'Cancel',
|
|
43
|
+
remove: 'Remove',
|
|
44
|
+
dialogCancel: 'Cancel',
|
|
45
|
+
dialogSave: 'Save',
|
|
46
|
+
},
|
|
47
|
+
auth: {
|
|
48
|
+
email: 'E-mail',
|
|
49
|
+
currentPassword: 'Current password',
|
|
50
|
+
newPassword: 'New password',
|
|
51
|
+
confirmPassword: 'Confirm new password',
|
|
52
|
+
saving: 'Saving…',
|
|
53
|
+
passwordsDoNotMatch: 'The new passwords do not match.',
|
|
54
|
+
backToSignIn: 'Back to sign in',
|
|
55
|
+
changePasswordSubmit: 'Update password',
|
|
56
|
+
changePasswordError: 'Could not update the password. Check the current password and try again.',
|
|
57
|
+
forgotRequestSubmit: 'Send reset link',
|
|
58
|
+
forgotConfirmSubmit: 'Set password',
|
|
59
|
+
forgotRequestError: 'Could not request a reset link. Check the e-mail and try again.',
|
|
60
|
+
forgotRequestSuccess: 'If that address is registered, a reset link was sent to it.',
|
|
61
|
+
forgotConfirmError: 'Invalid or expired reset link. Request a new one.',
|
|
62
|
+
forgotConfirmSuccess: 'Password updated. You can now sign in with your new password.',
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
// Merge theme.texts over the defaults; theme.texts is absent under a bare ThemeProvider.
|
|
66
|
+
function getThemeTexts(theme) {
|
|
67
|
+
const custom = theme.texts;
|
|
68
|
+
return {
|
|
69
|
+
geometry: Object.assign(Object.assign({}, exports.DEFAULT_TEXTS.geometry), ((custom === null || custom === void 0 ? void 0 : custom.geometry) || {})),
|
|
70
|
+
forms: Object.assign(Object.assign({}, exports.DEFAULT_TEXTS.forms), ((custom === null || custom === void 0 ? void 0 : custom.forms) || {})),
|
|
71
|
+
auth: Object.assign(Object.assign({}, exports.DEFAULT_TEXTS.auth), ((custom === null || custom === void 0 ? void 0 : custom.auth) || {})),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DRFReactBySchemaTexts } from './texts';
|
|
2
|
+
declare module '@mui/material/styles' {
|
|
3
|
+
interface Palette {
|
|
4
|
+
avatars: string[];
|
|
5
|
+
avatarsMore: string[];
|
|
6
|
+
topBarButton: Palette['primary'];
|
|
7
|
+
producao: Palette['primary'];
|
|
8
|
+
empreendimento: Palette['primary'];
|
|
9
|
+
comercializacao: Palette['primary'];
|
|
10
|
+
credito: Palette['primary'];
|
|
11
|
+
certificacao: Palette['primary'];
|
|
12
|
+
successButton: Palette['primary'];
|
|
13
|
+
selectedItem: Palette['primary'];
|
|
14
|
+
tableColumnHeader: Palette['primary'];
|
|
15
|
+
formCard: Palette['primary'];
|
|
16
|
+
}
|
|
17
|
+
interface Theme {
|
|
18
|
+
texts: DRFReactBySchemaTexts;
|
|
19
|
+
}
|
|
20
|
+
interface ThemeOptions {
|
|
21
|
+
texts?: Partial<DRFReactBySchemaTexts>;
|
|
22
|
+
}
|
|
23
|
+
interface PaletteColor {
|
|
24
|
+
semaphoric?: string;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
declare const defaultTheme: import("@mui/material/styles").Theme;
|
|
28
|
+
export default defaultTheme;
|
|
29
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAiB,MAAM,SAAS,CAAC;AAE/D,OAAO,QAAQ,sBAAsB,CAAC;IAMpC,UAAU,OAAO;QACf,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,YAAY,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QACjC,QAAQ,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QAC7B,cAAc,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QACnC,eAAe,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QACpC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QAC5B,YAAY,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QACjC,aAAa,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QAClC,YAAY,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QACjC,iBAAiB,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QACtC,QAAQ,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;KAC9B;IAED,UAAU,KAAK;QACb,KAAK,EAAE,qBAAqB,CAAC;KAC9B;IACD,UAAU,YAAY;QACpB,KAAK,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;KACxC;IAKD,UAAU,YAAY;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CASF;AA4GD,QAAA,MAAM,YAAY,sCA2HjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|