@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,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TariffsTableHorizontal = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const SwipeListControl_1 = require("../../ui-kit/SwipeListControl/SwipeListControl");
|
|
6
|
-
const TariffsTableTileCell_1 = require("./TariffsTableTileCell");
|
|
7
|
-
exports.TariffsTableHorizontal = (0, uni_jsx_1.JSX)(({ tiles, ...rest }) => tiles?.length ? ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { ...rest, padding: undefined, children: tiles.map((tile, i) => ((0, jsx_runtime_1.jsx)(TariffsTableTileCell_1.TariffsTableTileCell, { tile: tile, ...rest }, String(i)))) })) : null);
|
|
8
|
-
//# sourceMappingURL=TariffsTableHorizontal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableHorizontal.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableHorizontal.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qFAAkF;AAElF,iEAA8D;AAEjD,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAAoB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAClF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,mCAAgB,OAAK,IAAI,EAAE,OAAO,EAAE,SAAS,YAC3C,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2CAAoB,IAAiB,IAAI,EAAE,IAAI,KAAM,IAAI,IAA/B,MAAM,CAAC,CAAC,CAAC,CAA0B,CAC/D,CAAC,GACe,CACpB,CAAC,CAAC,CAAC,IAAI,CACT,CAAC"}
|
|
@@ -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,41 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.RenderCellInner = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const EmbeddableCellData_1 = require("./EmbeddableCellData");
|
|
7
|
-
exports.RenderCellInner = (0, uni_jsx_1.JSX)(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
8
|
-
const [isVisible, setVisibility] = (0, hooks_1.useState)(true);
|
|
9
|
-
(0, hooks_1.useEffect)(() => {
|
|
10
|
-
if (cellIdx !== openTableInnerIdx || !tableInner) {
|
|
11
|
-
setVisibility(true);
|
|
12
|
-
}
|
|
13
|
-
}, [tableInner, openTableInnerIdx]);
|
|
14
|
-
const displayTable = (props) => {
|
|
15
|
-
setVisibility(false);
|
|
16
|
-
setOpenTableInnerIdx(cellIdx);
|
|
17
|
-
setTableInner(props);
|
|
18
|
-
};
|
|
19
|
-
return renderCell({
|
|
20
|
-
cell,
|
|
21
|
-
cellProps: {
|
|
22
|
-
rowIdx,
|
|
23
|
-
cellIdx,
|
|
24
|
-
fieldIdx,
|
|
25
|
-
displayTable,
|
|
26
|
-
isVisible,
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
const renderCell = ({ cell, cellProps }) => {
|
|
31
|
-
if (!cell) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
const { tableCellType: type, ...rest } = cell;
|
|
35
|
-
if (!type || !(type in EmbeddableCellData_1.EmbeddableCellData)) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
const EmbeddableCellInner = EmbeddableCellData_1.EmbeddableCellData[type];
|
|
39
|
-
return (0, jsx_runtime_1.jsx)(EmbeddableCellInner, { ...cellProps, ...rest });
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=TariffsTableRenderCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRenderCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRenderCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAElE,6DAA0D;AA2B7C,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,oBAAoB,GACrB,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAElD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,OAAO,KAAK,iBAAiB,IAAI,CAAC,UAAU,EAAE;YAChD,aAAa,CAAC,IAAI,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEpC,MAAM,YAAY,GAAG,CAAC,KAA+B,EAAE,EAAE;QACvD,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAC9B,aAAa,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO,UAAU,CAAC;QAChB,IAAI;QACJ,SAAS,EAAE;YACT,MAAM;YACN,OAAO;YACP,QAAQ;YACR,YAAY;YACZ,SAAS;SACV;KACF,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAmB,EAAE,EAAE;IAC1D,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAE9C,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,uCAAkB,CAAC,EAAE;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,mBAAmB,GAAG,uCAAkB,CAAC,IAAI,CAAC,CAAC;IAErD,OAAO,uBAAC,mBAAmB,OAAK,SAAS,KAAM,IAAI,GAAI,CAAC;AAC1D,CAAC,CAAC"}
|
|
@@ -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,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TariffsTableTileCell = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const EmbeddableCellData_1 = require("./EmbeddableCellData");
|
|
6
|
-
const TableTileHeader_1 = require("./TableTileHeader");
|
|
7
|
-
exports.TariffsTableTileCell = (0, uni_jsx_1.JSX)(({ tile, ...rest }) => ((0, jsx_runtime_1.jsxs)("div", { className: "h-full", children: [(0, jsx_runtime_1.jsx)(TableTileHeader_1.TableTileHeader, { title: tile?.header?.title }), tile?.data?.length
|
|
8
|
-
? tile.data.map((cell, i) => ((0, jsx_runtime_1.jsx)("div", { className: "mb-xs", children: renderCell(cell, rest) }, String(i))))
|
|
9
|
-
: null] })));
|
|
10
|
-
function renderCell(cell, props) {
|
|
11
|
-
if (!cell || !cell.tableCellType || !(cell.tableCellType in EmbeddableCellData_1.EmbeddableCellData)) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
const EmbeddableCellInner = EmbeddableCellData_1.EmbeddableCellData[cell.tableCellType];
|
|
15
|
-
return (0, jsx_runtime_1.jsx)(EmbeddableCellInner, { displayTable: () => null, isVisible: true, ...cell, ...props });
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=TariffsTableTileCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,6DAA0D;AAC1D,uDAAoD;AAOvC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAA4B,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACxF,iCAAK,SAAS,EAAC,QAAQ,aACrB,uBAAC,iCAAe,IAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,GAAI,EAC9C,IAAI,EAAE,IAAI,EAAE,MAAM;YACjB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,gCAAqB,SAAS,EAAC,OAAO,YACnC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,IADf,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC;YACJ,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,IAAa,EAAE,KAAoB;IACrD,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,IAAI,uCAAkB,CAAC,EAAE;QAC/E,OAAO,IAAI,CAAC;KACb;IAED,MAAM,mBAAmB,GAAG,uCAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAEnE,OAAO,uBAAC,mBAAmB,IAAC,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,KAAM,IAAI,KAAM,KAAK,GAAI,CAAC;AACjG,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TariffsTableVertical = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const TariffsTableTileCell_1 = require("./TariffsTableTileCell");
|
|
6
|
-
exports.TariffsTableVertical = (0, uni_jsx_1.JSX)(({ tiles, ...rest }) => tiles?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-s", children: tiles.map((tile, i) => ((0, jsx_runtime_1.jsx)(TariffsTableTileCell_1.TariffsTableTileCell, { tile: tile, ...rest }, String(i)))) })) : null);
|
|
7
|
-
//# sourceMappingURL=TariffsTableVertical.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableVertical.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableVertical.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iEAA8D;AAEjD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAoB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAChF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,gCAAK,SAAS,EAAC,qBAAqB,YACjC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2CAAoB,IAAiB,IAAI,EAAE,IAAI,KAAM,IAAI,IAA/B,MAAM,CAAC,CAAC,CAAC,CAA0B,CAC/D,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CACT,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.COLUMN_WIDTH = exports.COLS_LENGTH_FOR_SCROLL = exports.firstCellStyle = exports.dividerStyle = void 0;
|
|
3
|
-
exports.dividerStyle = '@4xl:border-main-divider @4xl:border-b';
|
|
4
|
-
exports.firstCellStyle = 'w-80 flex-shrink-0';
|
|
5
|
-
exports.COLS_LENGTH_FOR_SCROLL = 2;
|
|
6
|
-
exports.COLUMN_WIDTH = 4 * 80 + 40; // w-80 + pl-10 = 360px
|
|
7
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/constants.ts"],"names":[],"mappings":";;AAAa,QAAA,YAAY,GAAG,wCAAwC,CAAC;AACxD,QAAA,cAAc,GAAG,oBAAoB,CAAC;AACtC,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,YAAY,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,uBAAuB"}
|
|
@@ -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,23 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
3
|
-
import { TableInnerButton, } from '../../ui-kit/InnerTable/InnerTableButton.js';
|
|
4
|
-
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection.js';
|
|
5
|
-
import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
6
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
7
|
-
const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
|
|
8
|
-
buttonClassName: 'basis-0',
|
|
9
|
-
});
|
|
10
|
-
const renderLabelDescriptionCellData = ({ label, description }) => (_jsxs("div", { className: "space-y-2xs", children: [label ? (_jsx("div", { children: _jsx(Text, { size: "text-h6", children: label }) })) : null, description ? (_jsx("div", { className: "lg:text-l font-light text-xs", children: _jsx(Text, { color: "text-secondary-text", children: description }) })) : null] }));
|
|
11
|
-
const renderImgCellData = ({ image }) => (image?.src ? _jsx(Img, { image: image }) : null);
|
|
12
|
-
const renderRichTextCellData = ({ __html, isDotted = true }) => (_jsx("div", { className: "flex flex-col justify-between items-start text-h6", children: _jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-m" }) }));
|
|
13
|
-
const renderInnerTableCellData = ({ isVisible, displayTable, tableSource, pdfUrl, isOpen, }) => isVisible ? (_jsx(TableInnerButton, { className: "w-fit", isOpen: isOpen, onClick: () => {
|
|
14
|
-
displayTable({ tableSource, pdfUrl });
|
|
15
|
-
} })) : null;
|
|
16
|
-
export const EmbeddableCellData = {
|
|
17
|
-
Buttons: renderButtonsCellData,
|
|
18
|
-
Img: renderImgCellData,
|
|
19
|
-
RichText: renderRichTextCellData,
|
|
20
|
-
LabelDescription: renderLabelDescriptionCellData,
|
|
21
|
-
Table: renderInnerTableCellData,
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=EmbeddableCellData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddableCellData.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/EmbeddableCellData.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,OAAO,EACL,gBAAgB,GAEjB,MAAM,0CAA0C,CAAC;AAIlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAe9C,MAAM,qBAAqB,GAAG,CAAC,EAAE,OAAO,EAAyB,EAAE,EAAE,CACnE,oBAAoB,CAAC,OAAO,EAAE;IAC5B,eAAe,EAAE,SAAS;CAC3B,CAAC,CAAC;AAEL,MAAM,8BAA8B,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAwB,EAAE,EAAE,CAAC,CACvF,eAAK,SAAS,EAAC,aAAa,aACzB,KAAK,CAAC,CAAC,CAAC,CACP,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,YAAE,KAAK,GAAQ,GAC/B,CACP,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,8BAA8B,YAC3C,KAAC,IAAI,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,KAAC,GAAG,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,cAAK,SAAS,EAAC,mDAAmD,YAChE,KAAC,QAAQ,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,KAAC,gBAAgB,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;AAEX,MAAM,CAAC,MAAM,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,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
4
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
5
|
-
export const TableTileHeader = JSX(({ title, icon }) => (_jsxs("div", { className: "mb-xs", children: [title ? (_jsx(Text, { size: "text-l", font: "font-light", children: title })) : null, icon ? _jsx(Img, { className: "ml-auto min-w-6", image: icon, width: "24", height: "24" }) : null] })));
|
|
6
|
-
//# sourceMappingURL=TableTileHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableTileHeader.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableTileHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAwB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7E,eAAK,SAAS,EAAC,OAAO,aACnB,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,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"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl.js';
|
|
4
|
-
import { TariffsTableTileCell } from './TariffsTableTileCell.js';
|
|
5
|
-
export const TariffsTableHorizontal = JSX(({ tiles, ...rest }) => tiles?.length ? (_jsx(SwipeListControl, { ...rest, padding: undefined, children: tiles.map((tile, i) => (_jsx(TariffsTableTileCell, { tile: tile, ...rest }, String(i)))) })) : null);
|
|
6
|
-
//# sourceMappingURL=TariffsTableHorizontal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableHorizontal.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableHorizontal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAElF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAoB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAClF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,gBAAgB,OAAK,IAAI,EAAE,OAAO,EAAE,SAAS,YAC3C,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,KAAC,oBAAoB,IAAiB,IAAI,EAAE,IAAI,KAAM,IAAI,IAA/B,MAAM,CAAC,CAAC,CAAC,CAA0B,CAC/D,CAAC,GACe,CACpB,CAAC,CAAC,CAAC,IAAI,CACT,CAAC"}
|
|
@@ -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,39 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
-
import { EmbeddableCellData } from './EmbeddableCellData.js';
|
|
5
|
-
export const RenderCellInner = JSX(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
6
|
-
const [isVisible, setVisibility] = useState(true);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
if (cellIdx !== openTableInnerIdx || !tableInner) {
|
|
9
|
-
setVisibility(true);
|
|
10
|
-
}
|
|
11
|
-
}, [tableInner, openTableInnerIdx]);
|
|
12
|
-
const displayTable = (props) => {
|
|
13
|
-
setVisibility(false);
|
|
14
|
-
setOpenTableInnerIdx(cellIdx);
|
|
15
|
-
setTableInner(props);
|
|
16
|
-
};
|
|
17
|
-
return renderCell({
|
|
18
|
-
cell,
|
|
19
|
-
cellProps: {
|
|
20
|
-
rowIdx,
|
|
21
|
-
cellIdx,
|
|
22
|
-
fieldIdx,
|
|
23
|
-
displayTable,
|
|
24
|
-
isVisible,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
const renderCell = ({ cell, cellProps }) => {
|
|
29
|
-
if (!cell) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
const { tableCellType: type, ...rest } = cell;
|
|
33
|
-
if (!type || !(type in EmbeddableCellData)) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
const EmbeddableCellInner = EmbeddableCellData[type];
|
|
37
|
-
return _jsx(EmbeddableCellInner, { ...cellProps, ...rest });
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=TariffsTableRenderCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRenderCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRenderCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AA2B1D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAChC,CAAC,EACC,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,oBAAoB,GACrB,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAElD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,KAAK,iBAAiB,IAAI,CAAC,UAAU,EAAE;YAChD,aAAa,CAAC,IAAI,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEpC,MAAM,YAAY,GAAG,CAAC,KAA+B,EAAE,EAAE;QACvD,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAC9B,aAAa,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO,UAAU,CAAC;QAChB,IAAI;QACJ,SAAS,EAAE;YACT,MAAM;YACN,OAAO;YACP,QAAQ;YACR,YAAY;YACZ,SAAS;SACV;KACF,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAmB,EAAE,EAAE;IAC1D,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAE9C,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,kBAAkB,CAAC,EAAE;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAErD,OAAO,KAAC,mBAAmB,OAAK,SAAS,KAAM,IAAI,GAAI,CAAC;AAC1D,CAAC,CAAC"}
|
|
@@ -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,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { EmbeddableCellData } from './EmbeddableCellData.js';
|
|
4
|
-
import { TableTileHeader } from './TableTileHeader.js';
|
|
5
|
-
export const TariffsTableTileCell = JSX(({ tile, ...rest }) => (_jsxs("div", { className: "h-full", children: [_jsx(TableTileHeader, { title: tile?.header?.title }), tile?.data?.length
|
|
6
|
-
? tile.data.map((cell, i) => (_jsx("div", { className: "mb-xs", children: renderCell(cell, rest) }, String(i))))
|
|
7
|
-
: null] })));
|
|
8
|
-
function renderCell(cell, props) {
|
|
9
|
-
if (!cell || !cell.tableCellType || !(cell.tableCellType in EmbeddableCellData)) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
const EmbeddableCellInner = EmbeddableCellData[cell.tableCellType];
|
|
13
|
-
return _jsx(EmbeddableCellInner, { displayTable: () => null, isVisible: true, ...cell, ...props });
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=TariffsTableTileCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAA4B,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACxF,eAAK,SAAS,EAAC,QAAQ,aACrB,KAAC,eAAe,IAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,GAAI,EAC9C,IAAI,EAAE,IAAI,EAAE,MAAM;YACjB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,cAAqB,SAAS,EAAC,OAAO,YACnC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,IADf,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC;YACJ,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,IAAa,EAAE,KAAoB;IACrD,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,IAAI,kBAAkB,CAAC,EAAE;QAC/E,OAAO,IAAI,CAAC;KACb;IAED,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAEnE,OAAO,KAAC,mBAAmB,IAAC,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,KAAM,IAAI,KAAM,KAAK,GAAI,CAAC;AACjG,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { TariffsTableTileCell } from './TariffsTableTileCell.js';
|
|
4
|
-
export const TariffsTableVertical = JSX(({ tiles, ...rest }) => tiles?.length ? (_jsx("div", { className: "flex flex-col gap-s", children: tiles.map((tile, i) => (_jsx(TariffsTableTileCell, { tile: tile, ...rest }, String(i)))) })) : null);
|
|
5
|
-
//# sourceMappingURL=TariffsTableVertical.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableVertical.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableVertical.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAoB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAChF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,cAAK,SAAS,EAAC,qBAAqB,YACjC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,KAAC,oBAAoB,IAAiB,IAAI,EAAE,IAAI,KAAM,IAAI,IAA/B,MAAM,CAAC,CAAC,CAAC,CAA0B,CAC/D,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CACT,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
|
|
2
|
-
export const firstCellStyle = 'w-80 flex-shrink-0';
|
|
3
|
-
export const COLS_LENGTH_FOR_SCROLL = 2;
|
|
4
|
-
export const COLUMN_WIDTH = 4 * 80 + 40; // w-80 + pl-10 = 360px
|
|
5
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,wCAAwC,CAAC;AACrE,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC;AACnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AACxC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,uBAAuB"}
|
|
@@ -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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TariffsTableHorizontal = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const SwipeListControl_1 = require("../../ui-kit/SwipeListControl/SwipeListControl");
|
|
6
|
-
const TariffsTableTileCell_1 = require("./TariffsTableTileCell");
|
|
7
|
-
exports.TariffsTableHorizontal = (0, uni_jsx_1.JSX)(({ tiles, ...rest }) => tiles?.length ? ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { ...rest, padding: undefined, children: tiles.map((tile, i) => ((0, jsx_runtime_1.jsx)(TariffsTableTileCell_1.TariffsTableTileCell, { tile: tile, ...rest }, String(i)))) })) : null);
|
|
8
|
-
//# sourceMappingURL=TariffsTableHorizontal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableHorizontal.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableHorizontal.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qFAAkF;AAElF,iEAA8D;AAEjD,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAAoB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAClF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,mCAAgB,OAAK,IAAI,EAAE,OAAO,EAAE,SAAS,YAC3C,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2CAAoB,IAAiB,IAAI,EAAE,IAAI,KAAM,IAAI,IAA/B,MAAM,CAAC,CAAC,CAAC,CAA0B,CAC/D,CAAC,GACe,CACpB,CAAC,CAAC,CAAC,IAAI,CACT,CAAC"}
|
|
@@ -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,41 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.RenderCellInner = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const EmbeddableCellData_1 = require("./EmbeddableCellData");
|
|
7
|
-
exports.RenderCellInner = (0, uni_jsx_1.JSX)(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
8
|
-
const [isVisible, setVisibility] = (0, hooks_1.useState)(true);
|
|
9
|
-
(0, hooks_1.useEffect)(() => {
|
|
10
|
-
if (cellIdx !== openTableInnerIdx || !tableInner) {
|
|
11
|
-
setVisibility(true);
|
|
12
|
-
}
|
|
13
|
-
}, [tableInner, openTableInnerIdx]);
|
|
14
|
-
const displayTable = (props) => {
|
|
15
|
-
setVisibility(false);
|
|
16
|
-
setOpenTableInnerIdx(cellIdx);
|
|
17
|
-
setTableInner(props);
|
|
18
|
-
};
|
|
19
|
-
return renderCell({
|
|
20
|
-
cell,
|
|
21
|
-
cellProps: {
|
|
22
|
-
rowIdx,
|
|
23
|
-
cellIdx,
|
|
24
|
-
fieldIdx,
|
|
25
|
-
displayTable,
|
|
26
|
-
isVisible,
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
const renderCell = ({ cell, cellProps }) => {
|
|
31
|
-
if (!cell) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
const { tableCellType: type, ...rest } = cell;
|
|
35
|
-
if (!type || !(type in EmbeddableCellData_1.EmbeddableCellData)) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
const EmbeddableCellInner = EmbeddableCellData_1.EmbeddableCellData[type];
|
|
39
|
-
return (0, jsx_runtime_1.jsx)(EmbeddableCellInner, { ...cellProps, ...rest });
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=TariffsTableRenderCell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRenderCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRenderCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAElE,6DAA0D;AA2B7C,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,oBAAoB,GACrB,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAElD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,OAAO,KAAK,iBAAiB,IAAI,CAAC,UAAU,EAAE;YAChD,aAAa,CAAC,IAAI,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEpC,MAAM,YAAY,GAAG,CAAC,KAA+B,EAAE,EAAE;QACvD,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAC9B,aAAa,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO,UAAU,CAAC;QAChB,IAAI;QACJ,SAAS,EAAE;YACT,MAAM;YACN,OAAO;YACP,QAAQ;YACR,YAAY;YACZ,SAAS;SACV;KACF,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAmB,EAAE,EAAE;IAC1D,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAE9C,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,uCAAkB,CAAC,EAAE;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,mBAAmB,GAAG,uCAAkB,CAAC,IAAI,CAAC,CAAC;IAErD,OAAO,uBAAC,mBAAmB,OAAK,SAAS,KAAM,IAAI,GAAI,CAAC;AAC1D,CAAC,CAAC"}
|
|
@@ -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,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TariffsTableTileCell = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const EmbeddableCellData_1 = require("./EmbeddableCellData");
|
|
6
|
-
const TableTileHeader_1 = require("./TableTileHeader");
|
|
7
|
-
exports.TariffsTableTileCell = (0, uni_jsx_1.JSX)(({ tile, ...rest }) => ((0, jsx_runtime_1.jsxs)("div", { className: "h-full", children: [(0, jsx_runtime_1.jsx)(TableTileHeader_1.TableTileHeader, { title: tile?.header?.title }), tile?.data?.length
|
|
8
|
-
? tile.data.map((cell, i) => ((0, jsx_runtime_1.jsx)("div", { className: "mb-xs", children: renderCell(cell, rest) }, String(i))))
|
|
9
|
-
: null] })));
|
|
10
|
-
function renderCell(cell, props) {
|
|
11
|
-
if (!cell || !cell.tableCellType || !(cell.tableCellType in EmbeddableCellData_1.EmbeddableCellData)) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
const EmbeddableCellInner = EmbeddableCellData_1.EmbeddableCellData[cell.tableCellType];
|
|
15
|
-
return (0, jsx_runtime_1.jsx)(EmbeddableCellInner, { displayTable: () => null, isVisible: true, ...cell, ...props });
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=TariffsTableTileCell.js.map
|