@redneckz/wildless-cms-uni-blocks 0.14.854 → 0.14.855
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 +55 -107
- 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/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/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/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/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 +45 -122
- 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/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/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/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/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/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/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/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/model/onClick.ts +3 -0
- package/src/model/onClose.ts +3 -0
- 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,11 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
4
3
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
5
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
6
4
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
7
|
-
import {
|
|
8
|
-
import { COLUMN_WIDTH, firstCellStyle } from './constants';
|
|
5
|
+
import { renderHeader } from './renderHeader';
|
|
9
6
|
import { TableCarouselContainer } from './TableCarouselContainer';
|
|
10
7
|
import { TariffsTableCell } from './TariffsTableCell';
|
|
11
8
|
import { type Data } from './TariffsTableContent';
|
|
@@ -13,63 +10,26 @@ import { TariffsTableRowContainer } from './TariffsTableRowContainer';
|
|
|
13
10
|
|
|
14
11
|
export interface TariffsTableRowProps extends UniBlockProps {
|
|
15
12
|
row: Data;
|
|
16
|
-
activeIndex: number;
|
|
17
|
-
rowIdx: number;
|
|
18
13
|
}
|
|
19
14
|
|
|
20
15
|
export const TariffsTableRow = JSX<TariffsTableRowProps>(
|
|
21
|
-
({ row: { header, data
|
|
16
|
+
({ row: { header, data = [] }, ...rest }) => {
|
|
22
17
|
const [tableInner, setTableInner] = useState<TariffsTableInnerContent | undefined>(undefined);
|
|
23
|
-
const handleSetTableInner = useCallback(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
);
|
|
27
|
-
const [openTableInnerIdx, setOpenTableInnerIdx] = useState<number | undefined>(undefined);
|
|
28
|
-
const handleOpenTableInnerIdx = useCallback(
|
|
29
|
-
(_: number | undefined) => setOpenTableInnerIdx(_),
|
|
30
|
-
[],
|
|
31
|
-
);
|
|
32
|
-
const onHideContentClick = () => setTableInner(undefined);
|
|
18
|
+
const handleSetTableInner = useCallback((_?: TariffsTableInnerContent) => {
|
|
19
|
+
setTableInner(_);
|
|
20
|
+
}, []);
|
|
33
21
|
|
|
34
22
|
return (
|
|
35
|
-
<TariffsTableRowContainer
|
|
36
|
-
|
|
37
|
-
tableInner={tableInner}
|
|
38
|
-
{...rest}
|
|
39
|
-
>
|
|
40
|
-
<div className={style('text-s', firstCellStyle)}>
|
|
41
|
-
<div className="flex gap-m items-center" role="cell">
|
|
42
|
-
{header?.icon ? (
|
|
43
|
-
<Img
|
|
44
|
-
className="hidden @4xl:block max-w-6 shrink-0"
|
|
45
|
-
image={header.icon}
|
|
46
|
-
width="24"
|
|
47
|
-
height="24"
|
|
48
|
-
/>
|
|
49
|
-
) : null}
|
|
50
|
-
{header?.title ? (
|
|
51
|
-
<Text size="text-m" font="font-light" color="text-primary-text">
|
|
52
|
-
{header?.title}
|
|
53
|
-
</Text>
|
|
54
|
-
) : null}
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
23
|
+
<TariffsTableRowContainer tableInner={tableInner} {...rest}>
|
|
24
|
+
{renderHeader(header)}
|
|
57
25
|
{data?.length ? (
|
|
58
|
-
<TableCarouselContainer
|
|
59
|
-
activeIndex={activeIndex}
|
|
60
|
-
columnWidth={COLUMN_WIDTH}
|
|
61
|
-
version="tariff"
|
|
62
|
-
>
|
|
26
|
+
<TableCarouselContainer version="tariff">
|
|
63
27
|
{data.map((cells, i) => (
|
|
64
28
|
<TariffsTableCell
|
|
65
29
|
key={String(i)}
|
|
66
30
|
cells={cells}
|
|
67
|
-
|
|
68
|
-
cellIdx={i}
|
|
69
|
-
setTableInner={handleSetTableInner}
|
|
31
|
+
onSetTable={handleSetTableInner}
|
|
70
32
|
tableInner={tableInner}
|
|
71
|
-
openTableInnerIdx={openTableInnerIdx}
|
|
72
|
-
setOpenTableInnerIdx={handleOpenTableInnerIdx}
|
|
73
33
|
{...rest}
|
|
74
34
|
/>
|
|
75
35
|
))}
|
|
@@ -3,27 +3,21 @@ import { InnerTable } from '../../ui-kit/InnerTable/InnerTable';
|
|
|
3
3
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
4
4
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
5
5
|
import { style } from '../../utils/style';
|
|
6
|
-
import { dividerStyle } from './constants';
|
|
7
6
|
|
|
8
7
|
export interface TariffsTableRowContainerProps extends UniBlockProps {
|
|
9
8
|
tableInner?: TariffsTableInnerContent;
|
|
10
|
-
|
|
9
|
+
onClick?: (_?: TariffsTableInnerContent) => void;
|
|
11
10
|
}
|
|
12
11
|
|
|
12
|
+
export const DIVIDER_STYLE = 'border-main-divider lg:border-b w-full py-s lg:py-xl';
|
|
13
|
+
|
|
13
14
|
export const TariffsTableRowContainer = JSX<TariffsTableRowContainerProps>(
|
|
14
|
-
({ children, tableInner,
|
|
15
|
-
<div className=
|
|
16
|
-
<div
|
|
17
|
-
className={style(
|
|
18
|
-
dividerStyle,
|
|
19
|
-
'flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg',
|
|
20
|
-
)}
|
|
21
|
-
>
|
|
22
|
-
{children}
|
|
23
|
-
</div>
|
|
15
|
+
({ children, tableInner, onClick }) => (
|
|
16
|
+
<div className={style('self-start flex flex-col gap-xl', DIVIDER_STYLE)} role="row">
|
|
17
|
+
<div className={style('flex flex-col lg:flex-row gap-x-5xl gap-y-xs')}>{children}</div>
|
|
24
18
|
{tableInner ? (
|
|
25
19
|
<div className="origin-top animate-expansion">
|
|
26
|
-
<InnerTable {...tableInner} onClick={
|
|
20
|
+
<InnerTable {...tableInner} onClick={onClick} />
|
|
27
21
|
</div>
|
|
28
22
|
) : null}
|
|
29
23
|
</div>
|
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type CarouselControls } from '../../hooks/useCarouselControls';
|
|
3
|
-
import { renderArrows } from '../../ui-kit/LinkButton/renderArrows';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const { isScrollAvailable } = controls;
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<div role="table" className="overflow-x-auto w-auto grid md:block">
|
|
14
|
-
<div className="relative space-y-xs">
|
|
15
|
-
{children}
|
|
16
|
-
{renderArrows({
|
|
17
|
-
...controls,
|
|
18
|
-
btnClass: ['top-28', 'top-11'],
|
|
19
|
-
className: 'right-7',
|
|
20
|
-
})}
|
|
21
|
-
</div>
|
|
22
|
-
{isScrollAvailable ? (
|
|
23
|
-
<div className="absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" />
|
|
24
|
-
) : null}
|
|
25
|
-
</div>
|
|
26
|
-
);
|
|
27
|
-
});
|
|
3
|
+
export const TariffsTableWrapper = JSX(({ children }) => (
|
|
4
|
+
<div role="table" className="overflow-x-auto w-auto grid relative gap-y-xs">
|
|
5
|
+
{children}
|
|
6
|
+
</div>
|
|
7
|
+
));
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
2
|
import { type Picture } from '../../model/Picture';
|
|
3
|
+
import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
3
4
|
import {
|
|
4
|
-
type
|
|
5
|
-
type LabelDescriptionCellDef,
|
|
6
|
-
type RichTextDef,
|
|
5
|
+
type CellDef,
|
|
7
6
|
type TariffsTableColumn,
|
|
8
7
|
type TariffsTableContent,
|
|
9
8
|
type TariffsTableRowHeader,
|
|
@@ -23,30 +22,25 @@ const image: Picture = {
|
|
|
23
22
|
title: 'Платёжные системы',
|
|
24
23
|
};
|
|
25
24
|
|
|
26
|
-
const LABEL_BLOCK:
|
|
27
|
-
tableCellType: 'LabelDescription',
|
|
25
|
+
const LABEL_BLOCK: CellDef = {
|
|
28
26
|
label: 'Заголовок без описания',
|
|
29
27
|
};
|
|
30
28
|
|
|
31
|
-
const LABEL_DESCRIPTION_BLOCK:
|
|
29
|
+
const LABEL_DESCRIPTION_BLOCK: CellDef = {
|
|
32
30
|
label: 'Ячейка 1-2',
|
|
33
|
-
|
|
31
|
+
|
|
34
32
|
description: 'Описание',
|
|
35
33
|
};
|
|
36
34
|
|
|
37
|
-
const TABLE_BLOCK:
|
|
38
|
-
tableCellType: 'Table',
|
|
35
|
+
const TABLE_BLOCK: TariffsTableInnerContent = {
|
|
39
36
|
tableSource: { $ref: '/wcms-resources/tariffs-inner-table-data.json' },
|
|
40
|
-
pdfUrl: '#',
|
|
41
37
|
};
|
|
42
38
|
|
|
43
|
-
const DESCRIPTION_BLOCK:
|
|
44
|
-
tableCellType: 'LabelDescription',
|
|
39
|
+
const DESCRIPTION_BLOCK: CellDef = {
|
|
45
40
|
description: 'Описание без заголовка',
|
|
46
41
|
};
|
|
47
42
|
|
|
48
|
-
const RICHTEXT_BLOCK:
|
|
49
|
-
tableCellType: 'RichText',
|
|
43
|
+
const RICHTEXT_BLOCK: CellDef = {
|
|
50
44
|
__html: `
|
|
51
45
|
<ul>
|
|
52
46
|
<li>Элемент списка 1</li>
|
|
@@ -77,29 +71,24 @@ export const columns: TariffsTableColumn[] = [
|
|
|
77
71
|
{
|
|
78
72
|
label: 'Бесплатно',
|
|
79
73
|
description: 'В банкоматах и кассах Россельхозбанка и банков-партнеров',
|
|
80
|
-
tableCellType: 'LabelDescription',
|
|
81
74
|
},
|
|
82
75
|
{
|
|
83
76
|
label: 'Бесплатно',
|
|
84
77
|
description: 'В сторонних банкоматах - 1 раз в месяц, далее 1% минимум 150 руб',
|
|
85
|
-
tableCellType: 'LabelDescription',
|
|
86
78
|
},
|
|
87
79
|
],
|
|
88
80
|
[LABEL_BLOCK],
|
|
89
81
|
[
|
|
90
82
|
{
|
|
91
83
|
label: 'Платёжные системы картинкой',
|
|
92
|
-
tableCellType: 'LabelDescription',
|
|
93
84
|
},
|
|
94
85
|
{
|
|
95
86
|
image: image,
|
|
96
|
-
tableCellType: 'Img',
|
|
97
87
|
},
|
|
98
88
|
],
|
|
99
89
|
[
|
|
100
|
-
{ label: 'Кнопки-иконки'
|
|
90
|
+
{ label: 'Кнопки-иконки' },
|
|
101
91
|
{
|
|
102
|
-
tableCellType: 'Buttons',
|
|
103
92
|
buttons: [
|
|
104
93
|
{
|
|
105
94
|
icon: { icon: 'AppleIcon' },
|
|
@@ -121,7 +110,6 @@ export const columns: TariffsTableColumn[] = [
|
|
|
121
110
|
[
|
|
122
111
|
{
|
|
123
112
|
label: 'Бесплатно',
|
|
124
|
-
tableCellType: 'LabelDescription',
|
|
125
113
|
},
|
|
126
114
|
],
|
|
127
115
|
[
|
|
@@ -135,7 +123,6 @@ export const columns: TariffsTableColumn[] = [
|
|
|
135
123
|
},
|
|
136
124
|
alt: 'Деньги',
|
|
137
125
|
},
|
|
138
|
-
tableCellType: 'Img',
|
|
139
126
|
},
|
|
140
127
|
],
|
|
141
128
|
],
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
2
|
+
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
3
|
+
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
4
|
+
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
5
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
6
|
+
import type { CellDef } from './TariffsTableContent';
|
|
7
|
+
|
|
8
|
+
export const renderCell = (
|
|
9
|
+
{ label, description, __html, isDotted, buttons, image }: CellDef,
|
|
10
|
+
i: number,
|
|
11
|
+
) => (
|
|
12
|
+
<div className="grid gap-xs" key={String(i)}>
|
|
13
|
+
{renderLabel(label)}
|
|
14
|
+
{renderDescription(description)}
|
|
15
|
+
{renderRich({ __html, isDotted })}
|
|
16
|
+
{renderButtonsSection(buttons, {
|
|
17
|
+
buttonClassName: 'basis-0',
|
|
18
|
+
})}
|
|
19
|
+
{image?.src ? <Img image={image} /> : null}
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
const renderLabel = (label?: string) =>
|
|
24
|
+
label ? (
|
|
25
|
+
<div>
|
|
26
|
+
<Text size="text-h6">{label}</Text>
|
|
27
|
+
</div>
|
|
28
|
+
) : null;
|
|
29
|
+
|
|
30
|
+
const renderDescription = (description?: string) =>
|
|
31
|
+
description ? (
|
|
32
|
+
<div className="text-l font-light">
|
|
33
|
+
<Text color="text-secondary-text">{description}</Text>
|
|
34
|
+
</div>
|
|
35
|
+
) : null;
|
|
36
|
+
|
|
37
|
+
const renderRich = ({ __html, isDotted }: RichTextProps) =>
|
|
38
|
+
__html ? (
|
|
39
|
+
<div className="flex flex-col justify-between items-start text-h6">
|
|
40
|
+
<RichText __html={__html} isDotted={isDotted} itemSize="list-m" />
|
|
41
|
+
</div>
|
|
42
|
+
) : null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
3
|
+
import { style } from '../../utils/style';
|
|
4
|
+
import type { TariffsTableRowHeader } from './TariffsTableContent';
|
|
5
|
+
|
|
6
|
+
const FIRST_CELL_STYLES = 'w-80 flex-shrink-0 sticky left-0 bg-white';
|
|
7
|
+
|
|
8
|
+
export const renderHeader = ({ title, icon }: TariffsTableRowHeader) => (
|
|
9
|
+
<div className={style('flex gap-m items-center', FIRST_CELL_STYLES)} role="cell">
|
|
10
|
+
{icon ? (
|
|
11
|
+
<Img className="hidden lg:block max-w-6 shrink-0" image={icon} width="24" height="24" />
|
|
12
|
+
) : null}
|
|
13
|
+
{title ? (
|
|
14
|
+
<Text size="text-m" font="font-light" color="text-primary-text">
|
|
15
|
+
{title}
|
|
16
|
+
</Text>
|
|
17
|
+
) : null}
|
|
18
|
+
</div>
|
|
19
|
+
);
|
|
File without changes
|
|
@@ -21,9 +21,11 @@ export const DraftActionButton = JSX<DraftActionButtonProps>(
|
|
|
21
21
|
>
|
|
22
22
|
<Img image={{ icon, iconVersion: 'normal' }} width="78" height="78" />
|
|
23
23
|
<div className="flex flex-col items-start gap-xs md:w-72 md:mr-lg">
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
{title ? (
|
|
25
|
+
<Text font="font-medium" size="text-s">
|
|
26
|
+
{title}
|
|
27
|
+
</Text>
|
|
28
|
+
) : null}
|
|
27
29
|
{description ? (
|
|
28
30
|
<Text color="text-secondary-text" size="text-xs">
|
|
29
31
|
{description}
|
|
@@ -5,10 +5,7 @@ import { InnerTable } from './InnerTable';
|
|
|
5
5
|
export default {
|
|
6
6
|
default: (
|
|
7
7
|
<div className="p-m bg-white">
|
|
8
|
-
<InnerTable
|
|
9
|
-
pdfUrl="#"
|
|
10
|
-
tableSource={{ $ref: '/wcms-resources/tariffs-inner-table-data.json' }}
|
|
11
|
-
/>
|
|
8
|
+
<InnerTable tableSource={{ $ref: '/wcms-resources/tariffs-inner-table-data.json' }} />
|
|
12
9
|
</div>
|
|
13
10
|
),
|
|
14
11
|
};
|
|
@@ -5,10 +5,7 @@ import { InnerTable } from './InnerTable';
|
|
|
5
5
|
export default {
|
|
6
6
|
default: (
|
|
7
7
|
<div className="p-m bg-white">
|
|
8
|
-
<InnerTable
|
|
9
|
-
pdfUrl="#"
|
|
10
|
-
tableSource={{ $ref: '/wcms-resources/tariffs-inner-table-data.json' }}
|
|
11
|
-
/>
|
|
8
|
+
<InnerTable tableSource={{ $ref: '/wcms-resources/tariffs-inner-table-data.json' }} />
|
|
12
9
|
</div>
|
|
13
10
|
),
|
|
14
11
|
};
|
|
@@ -5,7 +5,6 @@ import { UniBlock } from '../../UniBlock/UniBlock';
|
|
|
5
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
6
6
|
import { Text } from '../Text/Text';
|
|
7
7
|
import { InnerTableBody } from './InnerTableBody';
|
|
8
|
-
import { TableInnerButton } from './InnerTableButton';
|
|
9
8
|
import { InnerTableHeader } from './InnerTableHeader';
|
|
10
9
|
import { type TableFetchData, type TariffsTableInnerContent } from './InnerTableProps';
|
|
11
10
|
|
|
@@ -15,7 +14,7 @@ export interface InnerTableProps extends TariffsTableInnerContent, UniBlockProps
|
|
|
15
14
|
|
|
16
15
|
const EMPTY_DATA = 'Данных нет';
|
|
17
16
|
|
|
18
|
-
export const InnerTable = UniBlock<InnerTableProps>(({ tableSource
|
|
17
|
+
export const InnerTable = UniBlock<InnerTableProps>(({ tableSource }) => {
|
|
19
18
|
const tableData = tableSource?.tableData;
|
|
20
19
|
const [activeTabIndex, setActiveTabIndex] = useState(0);
|
|
21
20
|
const handleActiveTabIndex = useCallback((_: number) => setActiveTabIndex(_), []);
|
|
@@ -28,15 +27,12 @@ export const InnerTable = UniBlock<InnerTableProps>(({ tableSource, pdfUrl, onCl
|
|
|
28
27
|
currencies={currencies}
|
|
29
28
|
activeTabIndex={activeTabIndex}
|
|
30
29
|
setActiveTabIndex={handleActiveTabIndex}
|
|
31
|
-
linkToPDF={pdfUrl} //TODO: need link to service
|
|
32
30
|
/>
|
|
33
31
|
<InnerTableBody activeTabIndex={activeTabIndex} items={items} />
|
|
34
|
-
<TableInnerButton className="mt-xl" onClick={onClick} isOpen />
|
|
35
32
|
</div>
|
|
36
33
|
) : (
|
|
37
|
-
<div className="
|
|
34
|
+
<div className="space-y-m text-center">
|
|
38
35
|
<Text size="text-h6">{EMPTY_DATA}</Text>
|
|
39
|
-
<TableInnerButton onClick={onClick} isOpen />
|
|
40
36
|
</div>
|
|
41
37
|
);
|
|
42
38
|
});
|
|
@@ -8,27 +8,25 @@ export interface InnerTableBodyProps {
|
|
|
8
8
|
items: DataItem[];
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export const InnerTableBody = JSX<InnerTableBodyProps>(({ activeTabIndex, items }) =>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
11
|
+
export const InnerTableBody = JSX<InnerTableBodyProps>(({ activeTabIndex, items }) => (
|
|
12
|
+
<div>
|
|
13
|
+
{items.map((_, tableIdx) => {
|
|
14
|
+
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</div>
|
|
16
|
+
return (
|
|
17
|
+
<div key={key} className="w-full @container">
|
|
18
|
+
<div className="flex py-m px-m bg-white @4xl:bg-gray relative">
|
|
19
|
+
<Text size="text-xl" align="text-left">
|
|
20
|
+
{_.title}
|
|
21
|
+
</Text>
|
|
22
|
+
</div>
|
|
23
|
+
<div className="w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out">
|
|
24
|
+
<div className="relative">
|
|
25
|
+
<InnerTableBodyItem rows={_.rowsData} />
|
|
28
26
|
</div>
|
|
29
27
|
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
})}
|
|
31
|
+
</div>
|
|
32
|
+
));
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
|
|
3
2
|
import { type ComponentType } from '../../model/ComponentType';
|
|
4
|
-
import type
|
|
3
|
+
import { type OnClickProps } from '../../model/onClick';
|
|
5
4
|
import { DefaultFoldButton } from '../Foldable/DefaultFoldButton';
|
|
6
5
|
import { type TariffsTableInnerContent } from './InnerTableProps';
|
|
7
6
|
|
|
8
7
|
export interface InnerTableButtonProps
|
|
9
|
-
extends
|
|
10
|
-
TariffsTableInnerContent,
|
|
8
|
+
extends TariffsTableInnerContent,
|
|
11
9
|
ComponentType,
|
|
12
10
|
OnClickProps {
|
|
13
11
|
isOpen?: boolean;
|
|
@@ -19,9 +19,7 @@ export type TableFetchData = {
|
|
|
19
19
|
tableData?: TableData[];
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export
|
|
22
|
+
export type TariffsTableInnerContent = {
|
|
23
23
|
/** @title Справочник */
|
|
24
24
|
tableSource?: JSONRefObject;
|
|
25
|
-
|
|
26
|
-
pdfUrl?: string;
|
|
27
|
-
}
|
|
25
|
+
};
|
|
@@ -17,7 +17,7 @@ export const renderInnerTableRow =
|
|
|
17
17
|
return (
|
|
18
18
|
<div key={String(rowIdx)} className="flex border-main-divider border-b border-solid h-full">
|
|
19
19
|
{headerColumn?.data ? (
|
|
20
|
-
<div className="whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0">
|
|
20
|
+
<div className="whitespace-pre-wrap sm:whitespace-normal w-48 min-w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0">
|
|
21
21
|
<Text size="text-xl" font="font-light">
|
|
22
22
|
{headerColumn.data}
|
|
23
23
|
</Text>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Headline } from '../../components/Headline/Headline';
|
|
3
|
-
import type
|
|
3
|
+
import { type OnCloseProps } from '../../model/onClose';
|
|
4
4
|
import { Button } from '../Button/Button';
|
|
5
5
|
import { Dialog } from '../DialogManager/Dialog';
|
|
6
6
|
import { Img } from '../Img/Img';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
2
|
-
import { type InnerTableButtonProps } from '../../ui-kit/InnerTable/InnerTableButton';
|
|
3
|
-
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
4
|
-
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
5
|
-
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
6
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
7
|
-
import { type LabelDescriptionCell } from './TariffsTableContent';
|
|
8
|
-
export declare type EmbeddableCellDataType = LabelDescriptionCell | LinkButtonContent | ImageContent | RichTextProps | InnerTableButtonProps;
|
|
9
|
-
interface TableCellDataProps extends InnerTableButtonProps {
|
|
10
|
-
isVisible?: boolean;
|
|
11
|
-
displayTable: (props: TariffsTableInnerContent) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const EmbeddableCellData: {
|
|
14
|
-
Buttons: ({ buttons }: ButtonsSectionContent) => any;
|
|
15
|
-
Img: ({ image }: ImageContent) => any;
|
|
16
|
-
RichText: ({ __html, isDotted }: RichTextProps) => any;
|
|
17
|
-
LabelDescription: ({ label, description }: LabelDescriptionCell) => any;
|
|
18
|
-
Table: ({ isVisible, displayTable, tableSource, pdfUrl, isOpen, }: TableCellDataProps) => any;
|
|
19
|
-
};
|
|
20
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type TariffTableContentProps } from './TariffsTableCell';
|
|
2
|
-
import { type CellDef } from './TariffsTableContent';
|
|
3
|
-
interface TariffTableCellInnerProps extends TariffTableContentProps {
|
|
4
|
-
cellIdx: number;
|
|
5
|
-
rowIdx: number;
|
|
6
|
-
}
|
|
7
|
-
export interface RenderCellInnerProps extends TariffTableCellInnerProps {
|
|
8
|
-
cell: CellDef;
|
|
9
|
-
fieldIdx: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const RenderCellInner: import("@redneckz/uni-jsx").UNIComponent<RenderCellInnerProps, any, any>;
|
|
12
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
2
|
-
import { type TariffsTableTile } from './TariffsTableContent';
|
|
3
|
-
export interface TariffsTableTileCellProps extends UniBlockProps {
|
|
4
|
-
tile?: TariffsTableTile;
|
|
5
|
-
}
|
|
6
|
-
export declare const TariffsTableTileCell: import("@redneckz/uni-jsx").UNIComponent<TariffsTableTileCellProps, any, any>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
2
|
-
import { type InnerTableButtonProps } from '../../ui-kit/InnerTable/InnerTableButton';
|
|
3
|
-
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
4
|
-
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
5
|
-
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
6
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
7
|
-
import { type LabelDescriptionCell } from './TariffsTableContent';
|
|
8
|
-
export declare type EmbeddableCellDataType = LabelDescriptionCell | LinkButtonContent | ImageContent | RichTextProps | InnerTableButtonProps;
|
|
9
|
-
interface TableCellDataProps extends InnerTableButtonProps {
|
|
10
|
-
isVisible?: boolean;
|
|
11
|
-
displayTable: (props: TariffsTableInnerContent) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const EmbeddableCellData: {
|
|
14
|
-
Buttons: ({ buttons }: ButtonsSectionContent) => any;
|
|
15
|
-
Img: ({ image }: ImageContent) => any;
|
|
16
|
-
RichText: ({ __html, isDotted }: RichTextProps) => any;
|
|
17
|
-
LabelDescription: ({ label, description }: LabelDescriptionCell) => any;
|
|
18
|
-
Table: ({ isVisible, displayTable, tableSource, pdfUrl, isOpen, }: TableCellDataProps) => any;
|
|
19
|
-
};
|
|
20
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.EmbeddableCellData = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
|
-
const InnerTableButton_1 = require("../../ui-kit/InnerTable/InnerTableButton");
|
|
6
|
-
const renderButtonsSection_1 = require("../../ui-kit/LinkButton/renderButtonsSection");
|
|
7
|
-
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
8
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
9
|
-
const renderButtonsCellData = ({ buttons }) => (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
|
|
10
|
-
buttonClassName: 'basis-0',
|
|
11
|
-
});
|
|
12
|
-
const renderLabelDescriptionCellData = ({ label, description }) => ((0, jsx_runtime_1.jsxs)("div", { className: "space-y-2xs", children: [label ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", children: label }) })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "lg:text-l font-light text-xs", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", children: description }) })) : null] }));
|
|
13
|
-
const renderImgCellData = ({ image }) => (image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null);
|
|
14
|
-
const renderRichTextCellData = ({ __html, isDotted = true }) => ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col justify-between items-start text-h6", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html, isDotted: isDotted, itemSize: "list-m" }) }));
|
|
15
|
-
const renderInnerTableCellData = ({ isVisible, displayTable, tableSource, pdfUrl, isOpen, }) => isVisible ? ((0, jsx_runtime_1.jsx)(InnerTableButton_1.TableInnerButton, { className: "w-fit", isOpen: isOpen, onClick: () => {
|
|
16
|
-
displayTable({ tableSource, pdfUrl });
|
|
17
|
-
} })) : null;
|
|
18
|
-
exports.EmbeddableCellData = {
|
|
19
|
-
Buttons: renderButtonsCellData,
|
|
20
|
-
Img: renderImgCellData,
|
|
21
|
-
RichText: renderRichTextCellData,
|
|
22
|
-
LabelDescription: renderLabelDescriptionCellData,
|
|
23
|
-
Table: renderInnerTableCellData,
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=EmbeddableCellData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddableCellData.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/EmbeddableCellData.tsx"],"names":[],"mappings":";;;AAAA,8CAA2C;AAE3C,+EAGkD;AAIlD,uFAAoF;AACpF,6DAA0D;AAE1D,iDAA8C;AAe9C,MAAM,qBAAqB,GAAG,CAAC,EAAE,OAAO,EAAyB,EAAE,EAAE,CACnE,IAAA,2CAAoB,EAAC,OAAO,EAAE;IAC5B,eAAe,EAAE,SAAS;CAC3B,CAAC,CAAC;AAEL,MAAM,8BAA8B,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAwB,EAAE,EAAE,CAAC,CACvF,iCAAK,SAAS,EAAC,aAAa,aACzB,KAAK,CAAC,CAAC,CAAC,CACP,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAAE,KAAK,GAAQ,GAC/B,CACP,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,8BAA8B,YAC3C,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,YAAE,WAAW,GAAQ,GAClD,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAgB,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAEnG,MAAM,sBAAsB,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,EAAiB,EAAE,EAAE,CAAC,CAC7E,gCAAK,SAAS,EAAC,mDAAmD,YAChE,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAC,QAAQ,GAAG,GAC9D,CACP,CAAC;AAEF,MAAM,wBAAwB,GAAG,CAAC,EAChC,SAAS,EACT,YAAY,EACZ,WAAW,EACX,MAAM,EACN,MAAM,GACa,EAAE,EAAE,CACvB,SAAS,CAAC,CAAC,CAAC,CACV,uBAAC,mCAAgB,IACf,SAAS,EAAC,OAAO,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,GAAG,EAAE;QACZ,YAAY,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC;IACxC,CAAC,GACD,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AAEE,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,qBAAqB;IAC9B,GAAG,EAAE,iBAAiB;IACtB,QAAQ,EAAE,sBAAsB;IAChC,gBAAgB,EAAE,8BAA8B;IAChD,KAAK,EAAE,wBAAwB;CAChC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TableTileHeader = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
7
|
-
exports.TableTileHeader = (0, uni_jsx_1.JSX)(({ title, icon }) => ((0, jsx_runtime_1.jsxs)("div", { className: "mb-xs", children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", font: "font-light", children: title })) : null, icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "ml-auto min-w-6", image: icon, width: "24", height: "24" }) : null] })));
|
|
8
|
-
//# sourceMappingURL=TableTileHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableTileHeader.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableTileHeader.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8CAA2C;AAC3C,iDAA8C;AAGjC,QAAA,eAAe,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7E,iCAAK,SAAS,EAAC,OAAO,aACnB,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IAClF,CACP,CAAC,CAAC"}
|