ods-component-lib 1.18.147 → 1.18.150
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/devextreme/dataGridHandlers/OnToolbarButtonHandler.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +108 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +108 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/antd/form/OdsBasicForm.d.ts +0 -18
- package/dist/components/antd/icon/OdsIcon.d.ts +0 -10
- package/dist/components/antd/modal/OdsAdvanceModal.d.ts +0 -7
- package/dist/components/antd/select/OdsCustomMultiSelect.d.ts +0 -7
- package/dist/components/antd/select/OdsMultiSelect.d.ts +0 -9
- package/dist/components/custom/OdsLogin.d.ts +0 -8
- package/dist/components/devextreme/DxDataPopupForm.d.ts +0 -3
- package/dist/components/devextreme/DynamicIcon.d.ts +0 -5
- package/dist/components/devextreme/OdsDataGridNew.d.ts +0 -56
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/ContentHandlers.d.ts +0 -14
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/EditorPreparedHandlers.d.ts +0 -7
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/OnExportingHandlers.d.ts +0 -19
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/OptionHandlers.d.ts +0 -7
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/SummaryHandlers.d.ts +0 -21
- package/dist/components/devextreme/OdsInlineEditDataGrid/partials/ActionCellRender.d.ts +0 -15
- package/dist/components/devextreme/OdsInlineEditDataGrid/partials/EditingPartial.d.ts +0 -9
- package/dist/components/devextreme/OdsInlineEditDataGrid/partials/PageTitle.d.ts +0 -8
- package/dist/components/devextreme/OdsProfDataGrid.d.ts +0 -3
- package/dist/components/devextreme/treeview/DxTreeView.d.ts +0 -3
- package/dist/stories/OdsAdvanceModal/OdsAdvanceModal.stories.d.ts +0 -42
- package/dist/stories/OdsAdvanceModal/Samples/BasicOdsAdvanceModal.sample.d.ts +0 -8
- package/dist/stories/OdsCustomMultiSelect/OdsCustomMultiSelect.stories.d.ts +0 -9
- package/dist/stories/OdsCustomMultiSelect/Samples/Basic.Sample.d.ts +0 -1
- package/dist/stories/OdsCustomMultiSelect/Samples/ModeMultiple.Sample.d.ts +0 -1
- package/dist/stories/OdsModal/Samples/OdsModal.Sample.d.ts +0 -1
- package/dist/stories/OdsTimePicker/Samples/TimeRangePicker.d.ts +0 -2
- package/dist/utils/DynamicIcon.d.ts +0 -5
package/dist/index.modern.js
CHANGED
|
@@ -35865,6 +35865,113 @@ var OdsInlineEditDataGrid = function OdsInlineEditDataGrid(props) {
|
|
|
35865
35865
|
}, React.createElement("p", null, renderTotal())));
|
|
35866
35866
|
};
|
|
35867
35867
|
|
|
35868
|
+
var client = createCommonjsModule(function (module, exports) {
|
|
35869
|
+
|
|
35870
|
+
|
|
35871
|
+
if (process.env.NODE_ENV === 'production') {
|
|
35872
|
+
exports.createRoot = reactDom.createRoot;
|
|
35873
|
+
exports.hydrateRoot = reactDom.hydrateRoot;
|
|
35874
|
+
} else {
|
|
35875
|
+
var i = reactDom.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
35876
|
+
exports.createRoot = function(c, o) {
|
|
35877
|
+
i.usingClientEntryPoint = true;
|
|
35878
|
+
try {
|
|
35879
|
+
return reactDom.createRoot(c, o);
|
|
35880
|
+
} finally {
|
|
35881
|
+
i.usingClientEntryPoint = false;
|
|
35882
|
+
}
|
|
35883
|
+
};
|
|
35884
|
+
exports.hydrateRoot = function(c, h, o) {
|
|
35885
|
+
i.usingClientEntryPoint = true;
|
|
35886
|
+
try {
|
|
35887
|
+
return reactDom.hydrateRoot(c, h, o);
|
|
35888
|
+
} finally {
|
|
35889
|
+
i.usingClientEntryPoint = false;
|
|
35890
|
+
}
|
|
35891
|
+
};
|
|
35892
|
+
}
|
|
35893
|
+
});
|
|
35894
|
+
var client_1 = client.createRoot;
|
|
35895
|
+
|
|
35896
|
+
var useOnToolbarButtonHandler = function useOnToolbarButtonHandler(props) {
|
|
35897
|
+
var _theme$useToken = theme.useToken(),
|
|
35898
|
+
token = _theme$useToken.token;
|
|
35899
|
+
var onToolbarPreparing = useMemo(function () {
|
|
35900
|
+
return function (e) {
|
|
35901
|
+
var toolbarButtonGroup = props.toolbarButtonGroup;
|
|
35902
|
+
var primaryButtons = toolbarButtonGroup.slice(0, 3);
|
|
35903
|
+
var additionalButtons = toolbarButtonGroup.length > 3 ? toolbarButtonGroup.slice(3) : [];
|
|
35904
|
+
primaryButtons.forEach(function (button, index) {
|
|
35905
|
+
var buttonContainer = document.createElement('div');
|
|
35906
|
+
var rootButton = client_1(buttonContainer);
|
|
35907
|
+
rootButton.render(React.createElement(React.StrictMode, null, React.createElement(OdsButton, {
|
|
35908
|
+
key: index,
|
|
35909
|
+
style: {
|
|
35910
|
+
marginLeft: token.margin
|
|
35911
|
+
},
|
|
35912
|
+
type: button.type,
|
|
35913
|
+
onClick: function onClick() {
|
|
35914
|
+
return button.onclick();
|
|
35915
|
+
},
|
|
35916
|
+
disabled: button.disabled
|
|
35917
|
+
}, button.label)));
|
|
35918
|
+
e.toolbarOptions.items.push({
|
|
35919
|
+
location: 'before',
|
|
35920
|
+
widget: 'dxTemplate',
|
|
35921
|
+
template: function template(_, __, container) {
|
|
35922
|
+
container.appendChild(buttonContainer);
|
|
35923
|
+
}
|
|
35924
|
+
});
|
|
35925
|
+
});
|
|
35926
|
+
if (additionalButtons.length > 0) {
|
|
35927
|
+
var dropdownContainer = document.createElement('div');
|
|
35928
|
+
dropdownContainer.style.marginLeft = '10px';
|
|
35929
|
+
var rootDropdown = client_1(dropdownContainer);
|
|
35930
|
+
rootDropdown.render(React.createElement(React.StrictMode, null, React.createElement(OdsDropdown, {
|
|
35931
|
+
key: "dropdown-custom-toolbar",
|
|
35932
|
+
menuItems: additionalButtons.map(function (button) {
|
|
35933
|
+
return {
|
|
35934
|
+
label: button.label,
|
|
35935
|
+
onClick: button.onclick
|
|
35936
|
+
};
|
|
35937
|
+
})
|
|
35938
|
+
}, React.createElement(OdsButton, {
|
|
35939
|
+
type: "text",
|
|
35940
|
+
icon: React.createElement(DynamicIcon, {
|
|
35941
|
+
iconName: "kebabMenu"
|
|
35942
|
+
})
|
|
35943
|
+
}))));
|
|
35944
|
+
e.toolbarOptions.items.push({
|
|
35945
|
+
location: 'before',
|
|
35946
|
+
widget: 'dxTemplate',
|
|
35947
|
+
template: function template(_, __, container) {
|
|
35948
|
+
container.appendChild(dropdownContainer);
|
|
35949
|
+
}
|
|
35950
|
+
});
|
|
35951
|
+
}
|
|
35952
|
+
var titleContainer = document.createElement('div');
|
|
35953
|
+
var rootTitle = client_1(titleContainer);
|
|
35954
|
+
rootTitle.render(React.createElement(React.StrictMode, null, React.createElement(OdsTitle, {
|
|
35955
|
+
level: 5,
|
|
35956
|
+
style: {
|
|
35957
|
+
display: "flex",
|
|
35958
|
+
alignItems: "center",
|
|
35959
|
+
alignSelf: "stretch",
|
|
35960
|
+
margin: 0
|
|
35961
|
+
}
|
|
35962
|
+
}, props.pageTitle)));
|
|
35963
|
+
e.toolbarOptions.items.unshift({
|
|
35964
|
+
location: 'before',
|
|
35965
|
+
cssClass: 'toolbarTitleItem',
|
|
35966
|
+
template: function template(_, __, container) {
|
|
35967
|
+
container.appendChild(titleContainer);
|
|
35968
|
+
}
|
|
35969
|
+
});
|
|
35970
|
+
};
|
|
35971
|
+
}, [props.toolbarButtonGroup, props.pageTitle, token.margin]);
|
|
35972
|
+
return onToolbarPreparing;
|
|
35973
|
+
};
|
|
35974
|
+
|
|
35868
35975
|
var checkCellSelectionConstraints$1 = function checkCellSelectionConstraints(e) {
|
|
35869
35976
|
return e.rowType == "data" && e.columnIndex > -1 && e.rowIndex > -1;
|
|
35870
35977
|
};
|
|
@@ -36998,5 +37105,5 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
36998
37105
|
})));
|
|
36999
37106
|
};
|
|
37000
37107
|
|
|
37001
|
-
export { DxTreeList, OdsAlert, OdsAutoComplete, OdsBadge, OdsBadgeRibbon, OdsBannerAlert, OdsBasicDataGrid, OdsBasicTable, OdsButton, OdsCalendar, OdsCard, OdsCheckbox, OdsCheckboxGroup, OdsCollapse, OdsDataGrid, OdsDateRangePicker, OdsDatepicker, OdsDisplayGrid, OdsDivider, OdsDropdown, OdsDropdownButton, OdsFileUpload, OdsFilter, OdsFilterTagView, OdsImage, OdsInlineEditDataGrid, OdsInput, OdsInputNumber, OdsLink, OdsList, OdsModal, OdsModalOld, OdsMultiSelect, OdsNotification, OdsParagraph, OdsPassword, OdsPhoneInput, OdsRadio, OdsRadioGroup, OdsRangeTimepicker, OdsRate, OdsRemoteDataGrid, OdsSearch, OdsSelect, OdsSelectableTable, OdsServerSideDatagrid, OdsSpin, OdsSwitch, OdsTab, OdsBasicTable as OdsTable, OdsTag, OdsText, OdsTextArea, OdsTimeline, OdsTimepicker, OdsTitle, OdsTransfer };
|
|
37108
|
+
export { DxTreeList, OdsAlert, OdsAutoComplete, OdsBadge, OdsBadgeRibbon, OdsBannerAlert, OdsBasicDataGrid, OdsBasicTable, OdsButton, OdsCalendar, OdsCard, OdsCheckbox, OdsCheckboxGroup, OdsCollapse, OdsDataGrid, OdsDateRangePicker, OdsDatepicker, OdsDisplayGrid, OdsDivider, OdsDropdown, OdsDropdownButton, OdsFileUpload, OdsFilter, OdsFilterTagView, OdsImage, OdsInlineEditDataGrid, OdsInput, OdsInputNumber, OdsLink, OdsList, OdsModal, OdsModalOld, OdsMultiSelect, OdsNotification, OdsParagraph, OdsPassword, OdsPhoneInput, OdsRadio, OdsRadioGroup, OdsRangeTimepicker, OdsRate, OdsRemoteDataGrid, OdsSearch, OdsSelect, OdsSelectableTable, OdsServerSideDatagrid, OdsSpin, OdsSwitch, OdsTab, OdsBasicTable as OdsTable, OdsTag, OdsText, OdsTextArea, OdsTimeline, OdsTimepicker, OdsTitle, OdsTransfer, useOnToolbarButtonHandler };
|
|
37002
37109
|
//# sourceMappingURL=index.modern.js.map
|