@redneckz/wildless-cms-uni-blocks 0.14.854 → 0.14.856
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/bin/migration-scripts/0.14.850.js +70 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +58 -109
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
- package/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableCell.d.ts +10 -8
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -68
- package/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -2
- package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
- package/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
- package/bundle/components/TariffsTable/renderCell.d.ts +2 -0
- package/bundle/components/TariffsTable/renderHeader.d.ts +2 -0
- package/bundle/model/onClick.d.ts +3 -0
- package/bundle/model/onClose.d.ts +3 -0
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
- package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
- package/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
- package/dist/components/TariffsTable/TableCarouselContainer.js +1 -1
- package/dist/components/TariffsTable/TableCarouselContainer.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +4 -11
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.d.ts +10 -8
- package/dist/components/TariffsTable/TariffsTableCell.js +14 -4
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -68
- package/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -2
- package/dist/components/TariffsTable/TariffsTableRow.js +6 -10
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -3
- package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
- package/dist/components/TariffsTable/TariffsTableWrapper.js +1 -9
- package/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
- package/dist/components/TariffsTable/dataFixture.js +1 -14
- package/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/dist/components/TariffsTable/renderCell.d.ts +2 -0
- package/dist/components/TariffsTable/renderCell.js +15 -0
- package/dist/components/TariffsTable/renderCell.js.map +1 -0
- package/dist/components/TariffsTable/renderHeader.d.ts +2 -0
- package/dist/components/TariffsTable/renderHeader.js +10 -0
- package/dist/components/TariffsTable/renderHeader.js.map +1 -0
- package/dist/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
- package/dist/components/TariffsTable/renderInnerTableCell.js +1 -0
- package/dist/components/TariffsTable/renderInnerTableCell.js.map +1 -0
- package/dist/model/onClick.d.ts +3 -0
- package/dist/model/onClick.js +2 -0
- package/dist/model/onClick.js.map +1 -0
- package/dist/model/onClose.d.ts +3 -0
- package/dist/model/onClose.js +2 -0
- package/dist/model/onClose.js.map +1 -0
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.js +2 -3
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +4 -6
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
- package/lib/components/TariffsTable/TableCarouselContainer.js +1 -1
- package/lib/components/TariffsTable/TableCarouselContainer.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +3 -1
- package/lib/components/TariffsTable/TariffsTable.js +4 -11
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.d.ts +10 -8
- package/lib/components/TariffsTable/TariffsTableCell.js +14 -4
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -68
- package/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -2
- package/lib/components/TariffsTable/TariffsTableRow.js +6 -10
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -2
- package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
- package/lib/components/TariffsTable/TariffsTableWrapper.js +2 -10
- package/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
- package/lib/components/TariffsTable/dataFixture.js +1 -14
- package/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/lib/components/TariffsTable/renderCell.d.ts +2 -0
- package/lib/components/TariffsTable/renderCell.js +12 -0
- package/lib/components/TariffsTable/renderCell.js.map +1 -0
- package/lib/components/TariffsTable/renderHeader.d.ts +2 -0
- package/lib/components/TariffsTable/renderHeader.js +7 -0
- package/lib/components/TariffsTable/renderHeader.js.map +1 -0
- package/lib/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
- package/lib/components/TariffsTable/renderInnerTableCell.js +1 -0
- package/lib/components/TariffsTable/renderInnerTableCell.js.map +1 -0
- package/lib/model/onClick.d.ts +3 -0
- package/lib/model/onClick.js +2 -0
- package/lib/model/onClick.js.map +1 -0
- package/lib/model/onClose.d.ts +3 -0
- package/lib/model/onClose.js +2 -0
- package/lib/model/onClose.js.map +1 -0
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.js +2 -3
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +4 -6
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +47 -123
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
- package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +10 -8
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -68
- package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
- package/mobile/bundle/components/TariffsTable/renderCell.d.ts +2 -0
- package/mobile/bundle/components/TariffsTable/renderHeader.d.ts +2 -0
- package/mobile/bundle/model/onClick.d.ts +3 -0
- package/mobile/bundle/model/onClose.d.ts +3 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
- package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
- package/mobile/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
- package/mobile/dist/components/TariffsTable/TableCarouselContainer.js +1 -1
- package/mobile/dist/components/TariffsTable/TableCarouselContainer.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +4 -11
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +10 -8
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +14 -4
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -68
- package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +6 -10
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
- package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js +1 -9
- package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
- package/mobile/dist/components/TariffsTable/dataFixture.js +1 -14
- package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/dist/components/TariffsTable/renderCell.d.ts +2 -0
- package/mobile/dist/components/TariffsTable/renderCell.js +15 -0
- package/mobile/dist/components/TariffsTable/renderCell.js.map +1 -0
- package/mobile/dist/components/TariffsTable/renderHeader.d.ts +2 -0
- package/mobile/dist/components/TariffsTable/renderHeader.js +10 -0
- package/mobile/dist/components/TariffsTable/renderHeader.js.map +1 -0
- package/mobile/dist/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
- package/mobile/dist/components/TariffsTable/renderInnerTableCell.js +1 -0
- package/mobile/dist/components/TariffsTable/renderInnerTableCell.js.map +1 -0
- package/mobile/dist/model/onClick.d.ts +3 -0
- package/mobile/dist/model/onClick.js +2 -0
- package/mobile/dist/model/onClick.js.map +1 -0
- package/mobile/dist/model/onClose.d.ts +3 -0
- package/mobile/dist/model/onClose.js +2 -0
- package/mobile/dist/model/onClose.js.map +1 -0
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +2 -3
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +4 -6
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
- package/mobile/lib/components/TariffsTable/TableCarouselContainer.js +1 -1
- package/mobile/lib/components/TariffsTable/TableCarouselContainer.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +4 -11
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +10 -8
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +14 -4
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -68
- package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +6 -10
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
- package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js +2 -10
- package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
- package/mobile/lib/components/TariffsTable/dataFixture.js +1 -14
- package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/lib/components/TariffsTable/renderCell.d.ts +2 -0
- package/mobile/lib/components/TariffsTable/renderCell.js +12 -0
- package/mobile/lib/components/TariffsTable/renderCell.js.map +1 -0
- package/mobile/lib/components/TariffsTable/renderHeader.d.ts +2 -0
- package/mobile/lib/components/TariffsTable/renderHeader.js +7 -0
- package/mobile/lib/components/TariffsTable/renderHeader.js.map +1 -0
- package/mobile/lib/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
- package/mobile/lib/components/TariffsTable/renderInnerTableCell.js +1 -0
- package/mobile/lib/components/TariffsTable/renderInnerTableCell.js.map +1 -0
- package/mobile/lib/model/onClick.d.ts +3 -0
- package/mobile/lib/model/onClick.js +2 -0
- package/mobile/lib/model/onClick.js.map +1 -0
- package/mobile/lib/model/onClose.d.ts +3 -0
- package/mobile/lib/model/onClose.js +2 -0
- package/mobile/lib/model/onClose.js.map +1 -0
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +2 -3
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +4 -6
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -11
- package/mobile/src/components/TariffsTable/TableCarouselContainer.tsx +3 -10
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +1 -34
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +6 -13
- package/mobile/src/components/TariffsTable/TariffsTable.ui.json +0 -3
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +37 -35
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +7 -84
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +9 -49
- package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +7 -13
- package/mobile/src/components/TariffsTable/TariffsTableWrapper.tsx +5 -25
- package/mobile/src/components/TariffsTable/dataFixture.tsx +9 -22
- package/mobile/src/components/TariffsTable/renderCell.tsx +42 -0
- package/mobile/src/components/TariffsTable/renderHeader.tsx +19 -0
- package/mobile/src/components/TariffsTable/renderInnerTableCell.tsx +0 -0
- package/mobile/src/model/onClick.ts +3 -0
- package/mobile/src/model/onClose.ts +3 -0
- package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +3 -1
- package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +5 -3
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +2 -6
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +19 -21
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -4
- package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +2 -4
- package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +1 -1
- package/mobile/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Header/HeaderSecondaryMenu.tsx +8 -11
- package/src/components/TariffsTable/TableCarouselContainer.tsx +3 -10
- package/src/components/TariffsTable/TariffsTable.example.json +1 -34
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +28 -2
- package/src/components/TariffsTable/TariffsTable.tsx +6 -13
- package/src/components/TariffsTable/TariffsTable.ui.json +0 -3
- package/src/components/TariffsTable/TariffsTableCell.tsx +37 -35
- package/src/components/TariffsTable/TariffsTableContent.ts +7 -84
- package/src/components/TariffsTable/TariffsTableRow.tsx +9 -49
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +7 -13
- package/src/components/TariffsTable/TariffsTableWrapper.tsx +5 -25
- package/src/components/TariffsTable/dataFixture.tsx +9 -22
- package/src/components/TariffsTable/renderCell.tsx +42 -0
- package/src/components/TariffsTable/renderHeader.tsx +19 -0
- package/src/components/TariffsTable/renderInnerTableCell.tsx +0 -0
- package/src/icons/IconName.ts +4 -4
- package/src/model/onClick.ts +3 -0
- package/src/model/onClose.ts +3 -0
- package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +3 -1
- package/src/retail/components/DraftDialog/DraftActionButton.tsx +5 -3
- package/src/ui-kit/InnerTable/InnerTable.fixture.mobile.tsx +1 -4
- package/src/ui-kit/InnerTable/InnerTable.fixture.tsx +1 -4
- package/src/ui-kit/InnerTable/InnerTable.tsx +2 -6
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +19 -21
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -4
- package/src/ui-kit/InnerTable/InnerTableProps.ts +2 -4
- package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +1 -1
- package/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
- package/bundle/components/TariffsTable/TableTileHeader.d.ts +0 -2
- package/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
- package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
- package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
- package/bundle/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
- package/bundle/components/TariffsTable/constants.d.ts +0 -4
- package/dist/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
- package/dist/components/TariffsTable/EmbeddableCellData.js +0 -25
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +0 -1
- package/dist/components/TariffsTable/TableTileHeader.d.ts +0 -2
- package/dist/components/TariffsTable/TableTileHeader.js +0 -8
- package/dist/components/TariffsTable/TableTileHeader.js.map +0 -1
- package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
- package/dist/components/TariffsTable/TariffsTableHorizontal.js +0 -8
- package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
- package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
- package/dist/components/TariffsTable/TariffsTableRenderCell.js +0 -41
- package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
- package/dist/components/TariffsTable/TariffsTableTileCell.js +0 -17
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
- package/dist/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
- package/dist/components/TariffsTable/TariffsTableVertical.js +0 -7
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +0 -1
- package/dist/components/TariffsTable/constants.d.ts +0 -4
- package/dist/components/TariffsTable/constants.js +0 -7
- package/dist/components/TariffsTable/constants.js.map +0 -1
- package/lib/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
- package/lib/components/TariffsTable/EmbeddableCellData.js +0 -23
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +0 -1
- package/lib/components/TariffsTable/TableTileHeader.d.ts +0 -2
- package/lib/components/TariffsTable/TableTileHeader.js +0 -6
- package/lib/components/TariffsTable/TableTileHeader.js.map +0 -1
- package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
- package/lib/components/TariffsTable/TariffsTableHorizontal.js +0 -6
- package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
- package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
- package/lib/components/TariffsTable/TariffsTableRenderCell.js +0 -39
- package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
- package/lib/components/TariffsTable/TariffsTableTileCell.js +0 -15
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
- package/lib/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
- package/lib/components/TariffsTable/TariffsTableVertical.js +0 -5
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +0 -1
- package/lib/components/TariffsTable/constants.d.ts +0 -4
- package/lib/components/TariffsTable/constants.js +0 -5
- package/lib/components/TariffsTable/constants.js.map +0 -1
- package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
- package/mobile/bundle/components/TariffsTable/TableTileHeader.d.ts +0 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
- package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
- package/mobile/bundle/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
- package/mobile/bundle/components/TariffsTable/constants.d.ts +0 -4
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +0 -25
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +0 -1
- package/mobile/dist/components/TariffsTable/TableTileHeader.d.ts +0 -2
- package/mobile/dist/components/TariffsTable/TableTileHeader.js +0 -8
- package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +0 -1
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +0 -8
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +0 -41
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +0 -17
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +0 -7
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +0 -1
- package/mobile/dist/components/TariffsTable/constants.d.ts +0 -4
- package/mobile/dist/components/TariffsTable/constants.js +0 -7
- package/mobile/dist/components/TariffsTable/constants.js.map +0 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +0 -23
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +0 -1
- package/mobile/lib/components/TariffsTable/TableTileHeader.d.ts +0 -2
- package/mobile/lib/components/TariffsTable/TableTileHeader.js +0 -6
- package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +0 -1
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +0 -6
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +0 -39
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +0 -15
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +0 -5
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +0 -1
- package/mobile/lib/components/TariffsTable/constants.d.ts +0 -4
- package/mobile/lib/components/TariffsTable/constants.js +0 -5
- package/mobile/lib/components/TariffsTable/constants.js.map +0 -1
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +0 -79
- package/mobile/src/components/TariffsTable/TableTileHeader.tsx +0 -15
- package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +0 -14
- package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -83
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +0 -33
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +0 -13
- package/mobile/src/components/TariffsTable/constants.ts +0 -4
- package/src/components/TariffsTable/EmbeddableCellData.tsx +0 -79
- package/src/components/TariffsTable/TableTileHeader.tsx +0 -15
- package/src/components/TariffsTable/TariffsTableHorizontal.tsx +0 -14
- package/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -83
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +0 -33
- package/src/components/TariffsTable/TariffsTableVertical.tsx +0 -13
- package/src/components/TariffsTable/constants.ts +0 -4
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { type TableVersion } from '../../model/TableVersion';
|
|
2
2
|
export interface TableCarouselContainerProps {
|
|
3
|
-
activeIndex: number;
|
|
4
|
-
columnWidth: number;
|
|
5
3
|
version?: TableVersion;
|
|
6
4
|
}
|
|
7
5
|
export declare const TableCarouselContainer: import("@redneckz/uni-jsx").UNIComponent<TableCarouselContainerProps, any, any>;
|
|
@@ -2,4 +2,4 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type TariffsTableContent } from './TariffsTableContent';
|
|
3
3
|
export interface TariffsTableProps extends TariffsTableContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const TariffsTable: import("
|
|
5
|
+
export declare const TariffsTable: import("../../UniBlock/UniBlock").UniBlockComponent<TariffsTableProps>;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONRefObject } from '../../data/JSONRefObject';
|
|
2
|
+
import { type OnCloseProps } from '../../model/onClose';
|
|
3
|
+
import { type TableFetchData, type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
2
4
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
5
|
import { type CellDef } from './TariffsTableContent';
|
|
4
6
|
export interface TariffTableContentProps {
|
|
5
|
-
|
|
6
|
-
setOpenTableInnerIdx: (props?: number) => void;
|
|
7
|
-
setTableInner: (props?: TariffsTableInnerContent) => void;
|
|
7
|
+
onSetTable: (props?: TariffsTableInnerContent) => void;
|
|
8
8
|
tableInner?: TariffsTableInnerContent;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
declare type CellDefProps = CellDef & {
|
|
11
|
+
tableSource?: JSONRefObject & TableFetchData;
|
|
12
|
+
};
|
|
13
|
+
export interface TariffsTableCellProps extends TariffTableContentProps, UniBlockProps, OnCloseProps {
|
|
14
|
+
cells: CellDefProps[];
|
|
14
15
|
}
|
|
15
16
|
export declare const TariffsTableCell: import("@redneckz/uni-jsx").UNIComponent<TariffsTableCellProps, any, any>;
|
|
17
|
+
export {};
|
|
@@ -4,28 +4,7 @@ import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
|
4
4
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
5
5
|
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
6
6
|
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
7
|
-
import { type UniBlockContent
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface TariffsTableTile {
|
|
12
|
-
header: TariffsTableRowHeader;
|
|
13
|
-
data: CellDef[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export interface TariffsTableProps extends UniBlockProps {
|
|
19
|
-
tiles?: TariffsTableTile[];
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export interface TariffsTableCellIndexProps {
|
|
25
|
-
rowIdx: number;
|
|
26
|
-
cellIdx: number;
|
|
27
|
-
fieldIdx: number;
|
|
28
|
-
}
|
|
7
|
+
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
29
8
|
/**
|
|
30
9
|
* @hidden
|
|
31
10
|
*/
|
|
@@ -37,55 +16,10 @@ export declare type Data = {
|
|
|
37
16
|
* @title Параметр
|
|
38
17
|
*/
|
|
39
18
|
export declare type TariffsTableRowHeader = TitleProps & IconProps;
|
|
40
|
-
/**
|
|
41
|
-
* @title Изображение
|
|
42
|
-
*/
|
|
43
|
-
export declare type ImageCellDef = ImageContent & {
|
|
44
|
-
/** @default Img */
|
|
45
|
-
tableCellType: 'Img';
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* @title Кнопки
|
|
49
|
-
*/
|
|
50
|
-
export declare type ButtonsCellDef = ButtonsSectionContent & {
|
|
51
|
-
/** @default Buttons */
|
|
52
|
-
tableCellType: 'Buttons';
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @title Заголовок и описание
|
|
56
|
-
*/
|
|
57
|
-
export declare type LabelDescriptionCell = LabelProps & DescriptionProps;
|
|
58
|
-
/**
|
|
59
|
-
* @title Заголовок и описание
|
|
60
|
-
*/
|
|
61
|
-
export declare type LabelDescriptionCellDef = LabelDescriptionCell & {
|
|
62
|
-
/** @default LabelDescription */
|
|
63
|
-
tableCellType: 'LabelDescription';
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* @title Список
|
|
67
|
-
*/
|
|
68
|
-
export declare type RichTextDef = RichTextProps & {
|
|
69
|
-
/** @default RichText */
|
|
70
|
-
tableCellType: 'RichText';
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* @title Таблица
|
|
74
|
-
*/
|
|
75
|
-
export declare type InnerTableBlockDef = TariffsTableInnerContent & {
|
|
76
|
-
/** @default Table */
|
|
77
|
-
tableCellType: 'Table';
|
|
78
|
-
};
|
|
79
|
-
/** @title Не выбрано * */
|
|
80
|
-
export declare type EmptyCellType = {
|
|
81
|
-
/** @default "" */
|
|
82
|
-
tableCellType: '';
|
|
83
|
-
};
|
|
84
19
|
/**
|
|
85
20
|
* @title Содержимое ячейки
|
|
86
|
-
* @default { "tableCellType": "" }
|
|
87
21
|
*/
|
|
88
|
-
export declare type CellDef =
|
|
22
|
+
export declare type CellDef = LabelProps & DescriptionProps & RichTextProps & ImageContent & TariffsTableInnerContent & ButtonsSectionContent;
|
|
89
23
|
/**
|
|
90
24
|
* @title Ячейки
|
|
91
25
|
*/
|
|
@@ -2,7 +2,5 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type Data } from './TariffsTableContent';
|
|
3
3
|
export interface TariffsTableRowProps extends UniBlockProps {
|
|
4
4
|
row: Data;
|
|
5
|
-
activeIndex: number;
|
|
6
|
-
rowIdx: number;
|
|
7
5
|
}
|
|
8
6
|
export declare const TariffsTableRow: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowProps, any, any>;
|
|
@@ -2,6 +2,7 @@ import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTabl
|
|
|
2
2
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
3
|
export interface TariffsTableRowContainerProps extends UniBlockProps {
|
|
4
4
|
tableInner?: TariffsTableInnerContent;
|
|
5
|
-
|
|
5
|
+
onClick?: (_?: TariffsTableInnerContent) => void;
|
|
6
6
|
}
|
|
7
|
+
export declare const DIVIDER_STYLE = "border-main-divider lg:border-b w-full py-s lg:py-xl";
|
|
7
8
|
export declare const TariffsTableRowContainer: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowContainerProps, any, any>;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface WrapperProps {
|
|
3
|
-
controls: CarouselControls;
|
|
4
|
-
}
|
|
5
|
-
export declare const TariffsTableWrapper: import("@redneckz/uni-jsx").UNIComponent<WrapperProps, any, any>;
|
|
6
|
-
export {};
|
|
1
|
+
export declare const TariffsTableWrapper: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { type TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
|
|
2
1
|
import { type ComponentType } from '../../model/ComponentType';
|
|
3
|
-
import type
|
|
2
|
+
import { type OnClickProps } from '../../model/onClick';
|
|
4
3
|
import { type TariffsTableInnerContent } from './InnerTableProps';
|
|
5
|
-
export interface InnerTableButtonProps extends
|
|
4
|
+
export interface InnerTableButtonProps extends TariffsTableInnerContent, ComponentType, OnClickProps {
|
|
6
5
|
isOpen?: boolean;
|
|
7
6
|
}
|
|
8
7
|
export declare const TableInnerButton: import("@redneckz/uni-jsx").UNIComponent<InnerTableButtonProps, any, any>;
|
|
@@ -14,9 +14,7 @@ export declare type TableData = {
|
|
|
14
14
|
export declare type TableFetchData = {
|
|
15
15
|
tableData?: TableData[];
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export declare type TariffsTableInnerContent = {
|
|
18
18
|
/** @title Справочник */
|
|
19
19
|
tableSource?: JSONRefObject;
|
|
20
|
-
|
|
21
|
-
pdfUrl?: string;
|
|
22
|
-
}
|
|
20
|
+
};
|
|
@@ -5,7 +5,6 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
6
|
const getAspectsWithInclude_1 = require("../../hooks/useAspects/aspects/getAspectsWithInclude");
|
|
7
7
|
const useLocation_1 = require("../../hooks/useLocation");
|
|
8
|
-
const ClientOnly_1 = require("../../ui-kit/ClientOnly");
|
|
9
8
|
const useDialog_1 = require("../../ui-kit/DialogManager/useDialog");
|
|
10
9
|
const LocationDialog_1 = require("../../ui-kit/LocationDialog/LocationDialog");
|
|
11
10
|
const SearchDialog_1 = require("../../ui-kit/SearchDialog/SearchDialog");
|
|
@@ -19,6 +18,6 @@ exports.HeaderSecondaryMenu = (0, uni_jsx_1.JSX)(({ className, version, ...rest
|
|
|
19
18
|
const locationDialog = (0, useDialog_1.useDialog)(LocationDialog_1.LocationDialog, rest);
|
|
20
19
|
const openSearchDialog = (0, hooks_1.useCallback)(() => searchDialog.open({}), [searchDialog]);
|
|
21
20
|
const openLocationDialog = (0, hooks_1.useCallback)(() => locationDialog.open({}), [locationDialog]);
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex items-center ml-5 md:max-w-[300px] xl:max-w-full gap-lg', className), role: "navigation", children: [currentLocation?.name && rest?.branches?.visible ? ((0, jsx_runtime_1.jsx)(
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex items-center ml-5 md:max-w-[300px] xl:max-w-full gap-lg', className), role: "navigation", children: [currentLocation?.name && rest?.branches?.visible ? ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "whitespace-nowrap text-ellipsis overflow-hidden", flat: true, href: "#", text: currentLocation?.name, data: (0, getAspectsWithInclude_1.getAspectsWithInclude)(rest?.branches?.dataClick, currentLocation?.name ?? ''), onClick: openLocationDialog })) : null, rest?.officesAtms?.href ? ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "whitespace-nowrap", flat: true, ...rest.officesAtms })) : null, (0, jsx_runtime_1.jsx)(HeaderSecondaryMenuButton_1.HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: rest?.search?.ariaLabel ?? 'Поиск', onClick: openSearchDialog, data: rest?.search?.data })] }));
|
|
23
22
|
});
|
|
24
23
|
//# sourceMappingURL=HeaderSecondaryMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSecondaryMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSecondaryMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAI1D,gGAA6F;AAC7F,yDAAsD;AAItD,
|
|
1
|
+
{"version":3,"file":"HeaderSecondaryMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSecondaryMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAI1D,gGAA6F;AAC7F,yDAAsD;AAItD,oEAAiE;AACjE,+EAA4E;AAC5E,yEAAsE;AACtE,0DAAuD;AACvD,6CAA0C;AAC1C,2EAAwE;AAO3D,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAClC,MAAM,WAAW,GAAgB,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAE/E,MAAM,eAAe,GAAG,IAAA,yBAAW,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAE7D,MAAM,YAAY,GAAG,IAAA,qBAAS,EAAC,2BAAY,EAAE,IAAI,CAAC,CAAC;IACnD,MAAM,cAAc,GAAG,IAAA,qBAAS,EAAC,+BAAc,EAAE,IAAI,CAAC,CAAC;IAEvD,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAClF,MAAM,kBAAkB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAExF,OAAO,CACL,iCACE,SAAS,EAAE,IAAA,aAAK,EAAC,8DAA8D,EAAE,SAAS,CAAC,EAC3F,IAAI,EAAC,YAAY,aAEhB,eAAe,EAAE,IAAI,IAAI,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAClD,uBAAC,iBAAO,IACN,SAAS,EAAC,iDAAiD,EAC3D,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,GAAG,EACR,IAAI,EAAE,eAAe,EAAE,IAAI,EAC3B,IAAI,EAAE,IAAA,6CAAqB,EAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,IAAI,EAAE,CAAC,EACnF,OAAO,EAAE,kBAAkB,GAC3B,CACH,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CACzB,uBAAC,iBAAO,IAAC,SAAS,EAAC,mBAAmB,EAAC,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC,WAAW,GAAI,CAC5E,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,qDAAyB,IACxB,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,EACzC,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,IAAI,OAAO,EAC7C,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GACxB,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { type TableVersion } from '../../model/TableVersion';
|
|
2
2
|
export interface TableCarouselContainerProps {
|
|
3
|
-
activeIndex: number;
|
|
4
|
-
columnWidth: number;
|
|
5
3
|
version?: TableVersion;
|
|
6
4
|
}
|
|
7
5
|
export declare const TableCarouselContainer: import("@redneckz/uni-jsx").UNIComponent<TableCarouselContainerProps, any, any>;
|
|
@@ -6,5 +6,5 @@ const carouselContainerClassesMap = {
|
|
|
6
6
|
comparison: 'flex gap-m duration-1000',
|
|
7
7
|
tariff: 'flex gap-5xl flex-grow duration-1000',
|
|
8
8
|
};
|
|
9
|
-
exports.TableCarouselContainer = (0, uni_jsx_1.JSX)(({ children,
|
|
9
|
+
exports.TableCarouselContainer = (0, uni_jsx_1.JSX)(({ children, version = 'comparison' }) => ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-1", children: (0, jsx_runtime_1.jsx)("div", { className: carouselContainerClassesMap[version], children: children }) })));
|
|
10
10
|
//# sourceMappingURL=TableCarouselContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCarouselContainer.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableCarouselContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TableCarouselContainer.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableCarouselContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAOxC,MAAM,2BAA2B,GAAiC;IAChE,UAAU,EAAE,0BAA0B;IACtC,MAAM,EAAE,sCAAsC;CAC/C,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,YAAY,EAAE,EAAE,EAAE,CAAC,CACxC,gCAAK,SAAS,EAAC,aAAa,YAC1B,gCAAK,SAAS,EAAE,2BAA2B,CAAC,OAAO,CAAC,YAAG,QAAQ,GAAO,GAClE,CACP,CACF,CAAC"}
|
|
@@ -2,4 +2,4 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type TariffsTableContent } from './TariffsTableContent';
|
|
3
3
|
export interface TariffsTableProps extends TariffsTableContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const TariffsTable: import("
|
|
5
|
+
export declare const TariffsTable: import("../../UniBlock/UniBlock").UniBlockComponent<TariffsTableProps>;
|
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.TariffsTable = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
4
|
const useBool_1 = require("@redneckz/uni-jsx/lib/hooks/useBool");
|
|
6
|
-
const useCarouselControls_1 = require("../../hooks/useCarouselControls");
|
|
7
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
8
6
|
const DefaultFoldButton_1 = require("../../ui-kit/Foldable/DefaultFoldButton");
|
|
9
7
|
const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
|
|
10
8
|
const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
9
|
+
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
11
10
|
const style_1 = require("../../utils/style");
|
|
12
11
|
const Headline_1 = require("../Headline/Headline");
|
|
13
|
-
const constants_1 = require("./constants");
|
|
14
12
|
const TariffsTableRow_1 = require("./TariffsTableRow");
|
|
15
13
|
const TariffsTableWrapper_1 = require("./TariffsTableWrapper");
|
|
16
|
-
exports.TariffsTable = (0,
|
|
14
|
+
exports.TariffsTable = (0, UniBlock_1.UniBlock)(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
17
15
|
const colData = columns?.map(({ data }) => data) || [];
|
|
18
16
|
const rowData = rowHeaders?.map((header, i) => ({
|
|
19
17
|
header,
|
|
20
18
|
data: colData.map((col) => col?.[i] || []),
|
|
21
19
|
}));
|
|
22
|
-
const
|
|
23
|
-
const [activeIndex, controls] = (0, useCarouselControls_1.useCarouselControls)({
|
|
24
|
-
itemCount: itemCount,
|
|
25
|
-
visibleItemCount: constants_1.COLS_LENGTH_FOR_SCROLL,
|
|
26
|
-
});
|
|
27
|
-
const rows = (rowData || []).map((row, i) => ((0, jsx_runtime_1.jsx)(TariffsTableRow_1.TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
20
|
+
const rows = (rowData || []).map((row, i) => ((0, jsx_runtime_1.jsx)(TariffsTableRow_1.TariffsTableRow, { row: row, ...rest }, String(i))));
|
|
28
21
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
29
22
|
const [isUnfolded, { toggle }] = (0, useBool_1.useBool)(false);
|
|
30
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative space-y-
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), (0, jsx_runtime_1.jsx)("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? ((0, jsx_runtime_1.jsxs)(Foldable_1.Foldable, { children: [(0, jsx_runtime_1.jsxs)(TariffsTableWrapper_1.TariffsTableWrapper, { children: [visibleRows, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), (0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { className: "text-h4", isUnfolded: isUnfolded, onClick: toggle })] })) : ((0, jsx_runtime_1.jsx)(TariffsTableWrapper_1.TariffsTableWrapper, { children: rows })) })] }));
|
|
31
24
|
});
|
|
32
25
|
//# sourceMappingURL=TariffsTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,iEAA8D;AAC9D,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAC1D,2EAAwE;AACxE,sDAAmD;AAEnD,6CAA0C;AAC1C,mDAAgD;AAEhD,uDAAoD;AACpD,+DAA4D;AAI/C,QAAA,YAAY,GAAG,IAAA,mBAAQ,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,UAAU,EACV,cAAc,EAAE,OAAO,EACvB,aAAa,GAAG,CAAC,EACjB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9C,MAAM;QACN,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KAC3C,CAAC,CAAC,CAAC;IACJ,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAC3C,uBAAC,iCAAe,IAAiB,GAAG,EAAE,GAAG,KAAM,IAAI,IAA7B,MAAM,CAAC,CAAC,CAAC,CAAwB,CACxD,CAAC,CAAC;IACH,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,GAC7B,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAE/F,MAAM,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,KAAK,CAAC,CAAC;IAEhD,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,SAAS,CAAC,EAClD,cAAc,EAAC,OAAO,KAClB,IAAI,aAER,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,UAAU,EAAE,IAAI,EAChB,KAAK,EAAC,aAAa,GACnB,EACF,gCAAK,SAAS,EAAC,2BAA2B,YACvC,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,CACnB,wBAAC,mBAAQ,eACP,wBAAC,yCAAmB,eACjB,WAAW,EACZ,uBAAC,iCAAe,IAAC,UAAU,EAAE,UAAU,YAAG,UAAU,GAAmB,IACnD,EACtB,uBAAC,qCAAiB,IAAC,SAAS,EAAC,SAAS,EAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAI,IACzE,CACZ,CAAC,CAAC,CAAC,CACF,uBAAC,yCAAmB,cAAE,IAAI,GAAuB,CAClD,GACG,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONRefObject } from '../../data/JSONRefObject';
|
|
2
|
+
import { type OnCloseProps } from '../../model/onClose';
|
|
3
|
+
import { type TableFetchData, type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
2
4
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
5
|
import { type CellDef } from './TariffsTableContent';
|
|
4
6
|
export interface TariffTableContentProps {
|
|
5
|
-
|
|
6
|
-
setOpenTableInnerIdx: (props?: number) => void;
|
|
7
|
-
setTableInner: (props?: TariffsTableInnerContent) => void;
|
|
7
|
+
onSetTable: (props?: TariffsTableInnerContent) => void;
|
|
8
8
|
tableInner?: TariffsTableInnerContent;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
declare type CellDefProps = CellDef & {
|
|
11
|
+
tableSource?: JSONRefObject & TableFetchData;
|
|
12
|
+
};
|
|
13
|
+
export interface TariffsTableCellProps extends TariffTableContentProps, UniBlockProps, OnCloseProps {
|
|
14
|
+
cells: CellDefProps[];
|
|
14
15
|
}
|
|
15
16
|
export declare const TariffsTableCell: import("@redneckz/uni-jsx").UNIComponent<TariffsTableCellProps, any, any>;
|
|
17
|
+
export {};
|
|
@@ -2,8 +2,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.TariffsTableCell = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const InnerTableButton_1 = require("../../ui-kit/InnerTable/InnerTableButton");
|
|
6
|
+
const renderCell_1 = require("./renderCell");
|
|
7
|
+
exports.TariffsTableCell = (0, uni_jsx_1.JSX)(({ cells, tableInner, onSetTable }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "w-80 flex-grow flex flex-col gap-lg", role: "cell", children: cells?.length
|
|
9
|
+
? cells.map((_, i) => {
|
|
10
|
+
if (_?.tableSource?.tableData) {
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(InnerTableButton_1.TableInnerButton, { className: "w-fit", isOpen: Boolean(tableInner), onClick: () => {
|
|
12
|
+
onSetTable(tableInner ? undefined : { tableSource: _.tableSource });
|
|
13
|
+
} }, String(i)));
|
|
14
|
+
}
|
|
15
|
+
return (0, renderCell_1.renderCell)(_, i);
|
|
16
|
+
})
|
|
17
|
+
: null }));
|
|
18
|
+
});
|
|
9
19
|
//# sourceMappingURL=TariffsTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,+EAA4E;AAM5E,6CAA0C;AAiB7B,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE;IAC/F,OAAO,CACL,gCAAK,SAAS,EAAC,qCAAqC,EAAC,IAAI,EAAC,MAAM,YAC7D,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACjB,IAAI,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE;oBAC7B,OAAO,CACL,uBAAC,mCAAgB,IAEf,SAAS,EAAC,OAAO,EACjB,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,EAC3B,OAAO,EAAE,GAAG,EAAE;4BACZ,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;wBACtE,CAAC,IALI,MAAM,CAAC,CAAC,CAAC,CAMd,CACH,CAAC;iBACH;gBAED,OAAO,IAAA,uBAAU,EAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAC1B,CAAC,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -4,28 +4,7 @@ import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
|
4
4
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
5
5
|
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
6
6
|
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
7
|
-
import { type UniBlockContent
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface TariffsTableTile {
|
|
12
|
-
header: TariffsTableRowHeader;
|
|
13
|
-
data: CellDef[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export interface TariffsTableProps extends UniBlockProps {
|
|
19
|
-
tiles?: TariffsTableTile[];
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export interface TariffsTableCellIndexProps {
|
|
25
|
-
rowIdx: number;
|
|
26
|
-
cellIdx: number;
|
|
27
|
-
fieldIdx: number;
|
|
28
|
-
}
|
|
7
|
+
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
29
8
|
/**
|
|
30
9
|
* @hidden
|
|
31
10
|
*/
|
|
@@ -37,55 +16,10 @@ export declare type Data = {
|
|
|
37
16
|
* @title Параметр
|
|
38
17
|
*/
|
|
39
18
|
export declare type TariffsTableRowHeader = TitleProps & IconProps;
|
|
40
|
-
/**
|
|
41
|
-
* @title Изображение
|
|
42
|
-
*/
|
|
43
|
-
export declare type ImageCellDef = ImageContent & {
|
|
44
|
-
/** @default Img */
|
|
45
|
-
tableCellType: 'Img';
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* @title Кнопки
|
|
49
|
-
*/
|
|
50
|
-
export declare type ButtonsCellDef = ButtonsSectionContent & {
|
|
51
|
-
/** @default Buttons */
|
|
52
|
-
tableCellType: 'Buttons';
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @title Заголовок и описание
|
|
56
|
-
*/
|
|
57
|
-
export declare type LabelDescriptionCell = LabelProps & DescriptionProps;
|
|
58
|
-
/**
|
|
59
|
-
* @title Заголовок и описание
|
|
60
|
-
*/
|
|
61
|
-
export declare type LabelDescriptionCellDef = LabelDescriptionCell & {
|
|
62
|
-
/** @default LabelDescription */
|
|
63
|
-
tableCellType: 'LabelDescription';
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* @title Список
|
|
67
|
-
*/
|
|
68
|
-
export declare type RichTextDef = RichTextProps & {
|
|
69
|
-
/** @default RichText */
|
|
70
|
-
tableCellType: 'RichText';
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* @title Таблица
|
|
74
|
-
*/
|
|
75
|
-
export declare type InnerTableBlockDef = TariffsTableInnerContent & {
|
|
76
|
-
/** @default Table */
|
|
77
|
-
tableCellType: 'Table';
|
|
78
|
-
};
|
|
79
|
-
/** @title Не выбрано * */
|
|
80
|
-
export declare type EmptyCellType = {
|
|
81
|
-
/** @default "" */
|
|
82
|
-
tableCellType: '';
|
|
83
|
-
};
|
|
84
19
|
/**
|
|
85
20
|
* @title Содержимое ячейки
|
|
86
|
-
* @default { "tableCellType": "" }
|
|
87
21
|
*/
|
|
88
|
-
export declare type CellDef =
|
|
22
|
+
export declare type CellDef = LabelProps & DescriptionProps & RichTextProps & ImageContent & TariffsTableInnerContent & ButtonsSectionContent;
|
|
89
23
|
/**
|
|
90
24
|
* @title Ячейки
|
|
91
25
|
*/
|
|
@@ -2,7 +2,5 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type Data } from './TariffsTableContent';
|
|
3
3
|
export interface TariffsTableRowProps extends UniBlockProps {
|
|
4
4
|
row: Data;
|
|
5
|
-
activeIndex: number;
|
|
6
|
-
rowIdx: number;
|
|
7
5
|
}
|
|
8
6
|
export declare const TariffsTableRow: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowProps, any, any>;
|
|
@@ -3,19 +3,15 @@ exports.TariffsTableRow = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const
|
|
7
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
8
|
-
const style_1 = require("../../utils/style");
|
|
9
|
-
const constants_1 = require("./constants");
|
|
6
|
+
const renderHeader_1 = require("./renderHeader");
|
|
10
7
|
const TableCarouselContainer_1 = require("./TableCarouselContainer");
|
|
11
8
|
const TariffsTableCell_1 = require("./TariffsTableCell");
|
|
12
9
|
const TariffsTableRowContainer_1 = require("./TariffsTableRowContainer");
|
|
13
|
-
exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data
|
|
10
|
+
exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data = [] }, ...rest }) => {
|
|
14
11
|
const [tableInner, setTableInner] = (0, hooks_1.useState)(undefined);
|
|
15
|
-
const handleSetTableInner = (0, hooks_1.useCallback)((_) =>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('text-s', constants_1.firstCellStyle), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-m items-center", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "hidden @4xl:block max-w-6 shrink-0", image: header.icon, width: "24", height: "24" })) : null, header?.title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: header?.title })) : null] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeIndex: activeIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
12
|
+
const handleSetTableInner = (0, hooks_1.useCallback)((_) => {
|
|
13
|
+
setTableInner(_);
|
|
14
|
+
}, []);
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { tableInner: tableInner, ...rest, children: [(0, renderHeader_1.renderHeader)(header), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, onSetTable: handleSetTableInner, tableInner: tableInner, ...rest }, String(i)))) })) : null] }));
|
|
20
16
|
});
|
|
21
17
|
//# sourceMappingURL=TariffsTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;
|
|
1
|
+
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAGpE,iDAA8C;AAC9C,qEAAkE;AAClE,yDAAsD;AAEtD,yEAAsE;AAMzD,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAuC,SAAS,CAAC,CAAC;IAC9F,MAAM,mBAAmB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAA4B,EAAE,EAAE;QACvE,aAAa,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,wBAAC,mDAAwB,IAAC,UAAU,EAAE,UAAU,KAAM,IAAI,aACvD,IAAA,2BAAY,EAAC,MAAM,CAAC,EACpB,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IAAC,OAAO,EAAC,QAAQ,YACrC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,mCAAgB,IAEf,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,mBAAmB,EAC/B,UAAU,EAAE,UAAU,KAClB,IAAI,IAJH,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACiB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTabl
|
|
|
2
2
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
3
|
export interface TariffsTableRowContainerProps extends UniBlockProps {
|
|
4
4
|
tableInner?: TariffsTableInnerContent;
|
|
5
|
-
|
|
5
|
+
onClick?: (_?: TariffsTableInnerContent) => void;
|
|
6
6
|
}
|
|
7
|
+
export declare const DIVIDER_STYLE = "border-main-divider lg:border-b w-full py-s lg:py-xl";
|
|
7
8
|
export declare const TariffsTableRowContainer: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowContainerProps, any, any>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TariffsTableRowContainer = void 0;
|
|
2
|
+
exports.TariffsTableRowContainer = exports.DIVIDER_STYLE = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const InnerTable_1 = require("../../ui-kit/InnerTable/InnerTable");
|
|
6
6
|
const style_1 = require("../../utils/style");
|
|
7
|
-
|
|
8
|
-
exports.TariffsTableRowContainer = (0, uni_jsx_1.JSX)(({ children, tableInner,
|
|
7
|
+
exports.DIVIDER_STYLE = 'border-main-divider lg:border-b w-full py-s lg:py-xl';
|
|
8
|
+
exports.TariffsTableRowContainer = (0, uni_jsx_1.JSX)(({ children, tableInner, onClick }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('self-start flex flex-col gap-xl', exports.DIVIDER_STYLE), role: "row", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex flex-col lg:flex-row gap-x-5xl gap-y-xs'), children: children }), tableInner ? ((0, jsx_runtime_1.jsx)("div", { className: "origin-top animate-expansion", children: (0, jsx_runtime_1.jsx)(InnerTable_1.InnerTable, { ...tableInner, onClick: onClick }) })) : null] })));
|
|
9
9
|
//# sourceMappingURL=TariffsTableRowContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRowContainer.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRowContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mEAAgE;AAGhE,6CAA0C;
|
|
1
|
+
{"version":3,"file":"TariffsTableRowContainer.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRowContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mEAAgE;AAGhE,6CAA0C;AAO7B,QAAA,aAAa,GAAG,sDAAsD,CAAC;AAEvE,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrC,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,iCAAiC,EAAE,qBAAa,CAAC,EAAE,IAAI,EAAC,KAAK,aACjF,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,8CAA8C,CAAC,YAAG,QAAQ,GAAO,EACtF,UAAU,CAAC,CAAC,CAAC,CACZ,gCAAK,SAAS,EAAC,8BAA8B,YAC3C,uBAAC,uBAAU,OAAK,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,GAC5C,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CACF,CAAC"}
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface WrapperProps {
|
|
3
|
-
controls: CarouselControls;
|
|
4
|
-
}
|
|
5
|
-
export declare const TariffsTableWrapper: import("@redneckz/uni-jsx").UNIComponent<WrapperProps, any, any>;
|
|
6
|
-
export {};
|
|
1
|
+
export declare const TariffsTableWrapper: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -2,13 +2,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.TariffsTableWrapper = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
|
|
6
|
-
exports.TariffsTableWrapper = (0, uni_jsx_1.JSX)(({ children, controls }) => {
|
|
7
|
-
const { isScrollAvailable } = controls;
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("div", { role: "table", className: "overflow-x-auto w-auto grid md:block", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative space-y-xs", children: [children, (0, renderArrows_1.renderArrows)({
|
|
9
|
-
...controls,
|
|
10
|
-
btnClass: ['top-28', 'top-11'],
|
|
11
|
-
className: 'right-7',
|
|
12
|
-
})] }), isScrollAvailable ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
|
|
13
|
-
});
|
|
5
|
+
exports.TariffsTableWrapper = (0, uni_jsx_1.JSX)(({ children }) => ((0, jsx_runtime_1.jsx)("div", { role: "table", className: "overflow-x-auto w-auto grid relative gap-y-xs", children: children })));
|
|
14
6
|
//# sourceMappingURL=TariffsTableWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableWrapper.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTableWrapper.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAE3B,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACvD,gCAAK,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,+CAA+C,YACxE,QAAQ,GACL,CACP,CAAC,CAAC"}
|