@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
|
@@ -8,7 +8,7 @@ export const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
|
|
|
8
8
|
}
|
|
9
9
|
const [headerColumn, ...columns] = rowData;
|
|
10
10
|
const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
|
|
11
|
-
return (_jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (_jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: _jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, _jsx("div", { className: "flex flex-grow overflow-hidden", children: _jsx("div", { className: columnsStyle, style: {
|
|
11
|
+
return (_jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (_jsx("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", children: _jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, _jsx("div", { className: "flex flex-grow overflow-hidden", children: _jsx("div", { className: columnsStyle, style: {
|
|
12
12
|
transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
|
|
13
13
|
}, children: columns?.map((_, i) => (_jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? _jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderInnerTableRow.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/renderInnerTableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,CAAC,MAAM,mBAAmB,GAC9B,CAAC,iBAAyB,EAAE,EAAE,CAAC,CAAC,OAAmB,EAAE,MAAc,EAAE,EAAE;IACrE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC;IAC3C,MAAM,YAAY,GAAG,KAAK,CACxB,gCAAgC,EAChC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAC5C,CAAC;IAEF,OAAO,CACL,eAA0B,SAAS,EAAC,uDAAuD,aACxF,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CACpB,cAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"renderInnerTableRow.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/renderInnerTableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,CAAC,MAAM,mBAAmB,GAC9B,CAAC,iBAAyB,EAAE,EAAE,CAAC,CAAC,OAAmB,EAAE,MAAc,EAAE,EAAE;IACrE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC;IAC3C,MAAM,YAAY,GAAG,KAAK,CACxB,gCAAgC,EAChC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAC5C,CAAC;IAEF,OAAO,CACL,eAA0B,SAAS,EAAC,uDAAuD,aACxF,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CACpB,cAAK,SAAS,EAAC,gGAAgG,YAC7G,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,YAAY,CAAC,IAAI,GACb,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,cAAK,SAAS,EAAC,gCAAgC,YAC7C,cACE,SAAS,EAAE,YAAY,EACvB,KAAK,EAAE;wBACL,SAAS,EAAE,eAAe,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK;qBAC9E,YAEA,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,eAEE,SAAS,EAAC,wEAAwE,aAEjF,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,YAAE,CAAC,CAAC,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,EACrD,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,KAJlD,MAAM,CAAC,EAAE,CAKV,CACP,CAAC,GACE,GACF,KAzBE,MAAM,CAAC,MAAM,CAAC,CA0BlB,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,QAAgB,EAAE,EAAE,CACtD,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACjB,cAAK,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,qBAAqB,EAAE,QAAQ,KAAK,CAAC,EAAE,CAAC,YACrE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,cAAqB,SAAS,EAAC,YAAY,YACzC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,IAAI,GACA,IAHC,MAAM,CAAC,CAAC,CAAC,CAIb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -1287,7 +1287,7 @@
|
|
|
1287
1287
|
|
|
1288
1288
|
const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
|
|
1289
1289
|
|
|
1290
|
-
const renderLabel = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
|
|
1290
|
+
const renderLabel$1 = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
|
|
1291
1291
|
|
|
1292
1292
|
const Input = JSX(
|
|
1293
1293
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -1305,7 +1305,7 @@
|
|
|
1305
1305
|
const paddingStyle = children ? 'pr-3xl' : '';
|
|
1306
1306
|
const validStyle = getValidStyle(valid);
|
|
1307
1307
|
const ariaLabel = label ?? name ?? id;
|
|
1308
|
-
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key))] }), children] }));
|
|
1308
|
+
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel$1(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key))] }), children] }));
|
|
1309
1309
|
});
|
|
1310
1310
|
const defaultStyle$1 = 'w-full border rounded-md text-primary-text outline-none p-m';
|
|
1311
1311
|
|
|
@@ -1402,7 +1402,7 @@
|
|
|
1402
1402
|
onClose: handleClose,
|
|
1403
1403
|
iconVersion,
|
|
1404
1404
|
});
|
|
1405
|
-
return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : handleOpen, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$2(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", value: query, autoFocus: true, disabled: isDisabled, onChange: setQuery }) })) : null] })] }));
|
|
1405
|
+
return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel$1(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : handleOpen, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$2(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", value: query, autoFocus: true, disabled: isDisabled, onChange: setQuery }) })) : null] })] }));
|
|
1406
1406
|
});
|
|
1407
1407
|
const renderIcon$2 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-0 flex self-center', { 'rotate-180': !isOpen }), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
|
|
1408
1408
|
const getStyle = (isBorder, valid, disabled) => style(isBorder ? 'border rounded-md ' : '', isBorder && !disabled ? 'hover:border-primary-hover' : '', disabled ? 'bg-main-divider' : 'cursor-pointer ', valid ? 'border-gray' : 'border-error');
|
|
@@ -1897,7 +1897,7 @@
|
|
|
1897
1897
|
value,
|
|
1898
1898
|
});
|
|
1899
1899
|
const spaceAbove = useElementSpace(ref, 370);
|
|
1900
|
-
return (jsxs("div", { className: style('space-y-xs', className), ref: ref, children: [renderLabel(label), jsxs("div", { className: "relative", children: [renderDatePickerForm({
|
|
1900
|
+
return (jsxs("div", { className: style('space-y-xs', className), ref: ref, children: [renderLabel$1(label), jsxs("div", { className: "relative", children: [renderDatePickerForm({
|
|
1901
1901
|
handleChangeVisibleCalendar,
|
|
1902
1902
|
value,
|
|
1903
1903
|
valid,
|
|
@@ -5339,7 +5339,7 @@
|
|
|
5339
5339
|
};
|
|
5340
5340
|
};
|
|
5341
5341
|
|
|
5342
|
-
const DraftActionButton = JSX(({ title, icon, description, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [jsx(Text, { font: "font-medium", size: "text-s", children: title }), description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
5342
|
+
const DraftActionButton = JSX(({ title, icon, description, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? (jsx(Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
5343
5343
|
|
|
5344
5344
|
const fieldsNamesToContactKeysMap = {
|
|
5345
5345
|
email: 'EMAIL',
|
|
@@ -10061,96 +10061,36 @@
|
|
|
10061
10061
|
? Number(paramsId)
|
|
10062
10062
|
: tabs.reduce((selectedIndex, tab, i) => (tab.selected ? i : selectedIndex), 0);
|
|
10063
10063
|
|
|
10064
|
-
const
|
|
10065
|
-
|
|
10066
|
-
const [activeIndex, setActiveIndex] = useState(initialIndex);
|
|
10067
|
-
const inc = useCallback(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
|
|
10068
|
-
const dec = useCallback(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
|
|
10069
|
-
const canInc = visibleItemCount
|
|
10070
|
-
? itemCount > visibleItemCount && activeIndex < itemCount - visibleItemCount
|
|
10071
|
-
: activeIndex < itemCount - 1;
|
|
10072
|
-
const canDec = activeIndex > 0;
|
|
10073
|
-
const isScrollAvailable = canDec || canInc;
|
|
10074
|
-
return [
|
|
10075
|
-
activeIndex,
|
|
10076
|
-
{
|
|
10077
|
-
inc,
|
|
10078
|
-
dec,
|
|
10079
|
-
canInc,
|
|
10080
|
-
canDec,
|
|
10081
|
-
isScrollAvailable,
|
|
10082
|
-
},
|
|
10083
|
-
];
|
|
10084
|
-
};
|
|
10085
|
-
|
|
10086
|
-
const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
|
|
10087
|
-
const firstCellStyle = 'w-80 flex-shrink-0';
|
|
10088
|
-
const COLS_LENGTH_FOR_SCROLL = 2;
|
|
10089
|
-
const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
|
|
10064
|
+
const FIRST_CELL_STYLES = 'w-80 flex-shrink-0 sticky left-0 bg-white';
|
|
10065
|
+
const renderHeader = ({ title, icon }) => (jsxs("div", { className: style('flex gap-m items-center', FIRST_CELL_STYLES), role: "cell", children: [icon ? (jsx(Img, { className: "hidden lg:block max-w-6 shrink-0", image: icon, width: "24", height: "24" })) : null, title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null] }));
|
|
10090
10066
|
|
|
10091
10067
|
const carouselContainerClassesMap = {
|
|
10092
10068
|
comparison: 'flex gap-m duration-1000',
|
|
10093
10069
|
tariff: 'flex gap-5xl flex-grow duration-1000',
|
|
10094
10070
|
};
|
|
10095
|
-
const TableCarouselContainer = JSX(({ children,
|
|
10071
|
+
const TableCarouselContainer = JSX(({ children, version = 'comparison' }) => (jsx("div", { className: "flex flex-1", children: jsx("div", { className: carouselContainerClassesMap[version], children: children }) })));
|
|
10096
10072
|
|
|
10097
10073
|
const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(DefaultFoldButton, { className: className, label: isOpen ? 'Скрыть' : 'Показать', isUnfolded: isOpen, version: "secondary", short: true, onClick: onClick })));
|
|
10098
10074
|
|
|
10099
|
-
const
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
const
|
|
10103
|
-
const
|
|
10104
|
-
const
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
const [isVisible, setVisibility] = useState(true);
|
|
10118
|
-
useEffect(() => {
|
|
10119
|
-
if (cellIdx !== openTableInnerIdx || !tableInner) {
|
|
10120
|
-
setVisibility(true);
|
|
10121
|
-
}
|
|
10122
|
-
}, [tableInner, openTableInnerIdx]);
|
|
10123
|
-
const displayTable = (props) => {
|
|
10124
|
-
setVisibility(false);
|
|
10125
|
-
setOpenTableInnerIdx(cellIdx);
|
|
10126
|
-
setTableInner(props);
|
|
10127
|
-
};
|
|
10128
|
-
return renderCell({
|
|
10129
|
-
cell,
|
|
10130
|
-
cellProps: {
|
|
10131
|
-
rowIdx,
|
|
10132
|
-
cellIdx,
|
|
10133
|
-
fieldIdx,
|
|
10134
|
-
displayTable,
|
|
10135
|
-
isVisible,
|
|
10136
|
-
},
|
|
10137
|
-
});
|
|
10075
|
+
const renderCell = ({ label, description, __html, isDotted, buttons, image }, i) => (jsxs("div", { className: "grid gap-xs", children: [renderLabel(label), renderDescription$1(description), renderRich({ __html, isDotted }), renderButtonsSection(buttons, {
|
|
10076
|
+
buttonClassName: 'basis-0',
|
|
10077
|
+
}), image?.src ? jsx(Img, { image: image }) : null] }, String(i)));
|
|
10078
|
+
const renderLabel = (label) => label ? (jsx("div", { children: jsx(Text, { size: "text-h6", children: label }) })) : null;
|
|
10079
|
+
const renderDescription$1 = (description) => description ? (jsx("div", { className: "text-l font-light", children: jsx(Text, { color: "text-secondary-text", children: description }) })) : null;
|
|
10080
|
+
const renderRich = ({ __html, isDotted }) => __html ? (jsx("div", { className: "flex flex-col justify-between items-start text-h6", children: jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-m" }) })) : null;
|
|
10081
|
+
|
|
10082
|
+
const TariffsTableCell = JSX(({ cells, tableInner, onSetTable }) => {
|
|
10083
|
+
return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-lg", role: "cell", children: cells?.length
|
|
10084
|
+
? cells.map((_, i) => {
|
|
10085
|
+
if (_?.tableSource?.tableData) {
|
|
10086
|
+
return (jsx(TableInnerButton, { className: "w-fit", isOpen: Boolean(tableInner), onClick: () => {
|
|
10087
|
+
onSetTable(tableInner ? undefined : { tableSource: _.tableSource });
|
|
10088
|
+
} }, String(i)));
|
|
10089
|
+
}
|
|
10090
|
+
return renderCell(_, i);
|
|
10091
|
+
})
|
|
10092
|
+
: null }));
|
|
10138
10093
|
});
|
|
10139
|
-
const renderCell = ({ cell, cellProps }) => {
|
|
10140
|
-
if (!cell) {
|
|
10141
|
-
return null;
|
|
10142
|
-
}
|
|
10143
|
-
const { tableCellType: type, ...rest } = cell;
|
|
10144
|
-
if (!type || !(type in EmbeddableCellData)) {
|
|
10145
|
-
return null;
|
|
10146
|
-
}
|
|
10147
|
-
const EmbeddableCellInner = EmbeddableCellData[type];
|
|
10148
|
-
return jsx(EmbeddableCellInner, { ...cellProps, ...rest });
|
|
10149
|
-
};
|
|
10150
|
-
|
|
10151
|
-
const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => (jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
|
|
10152
|
-
? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
|
|
10153
|
-
: null })));
|
|
10154
10094
|
|
|
10155
10095
|
const sum = (list = []) => list.reduce((a, b) => a + b, 0);
|
|
10156
10096
|
|
|
@@ -10163,7 +10103,7 @@
|
|
|
10163
10103
|
}
|
|
10164
10104
|
const [headerColumn, ...columns] = rowData;
|
|
10165
10105
|
const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
|
|
10166
|
-
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
10106
|
+
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("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", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
10167
10107
|
transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
|
|
10168
10108
|
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
10169
10109
|
};
|
|
@@ -10171,12 +10111,10 @@
|
|
|
10171
10111
|
|
|
10172
10112
|
const InnerTableBodyItem = JSX(({ rows }) => (jsx(SwipeListContainer, { visibleItemCount: 0, snapAlign: "snap-start", children: jsx("div", { children: rows?.map(renderInnerTableRow(0)) }) })));
|
|
10173
10113
|
|
|
10174
|
-
const InnerTableBody = JSX(({ activeTabIndex, items }) => {
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
}) }));
|
|
10179
|
-
});
|
|
10114
|
+
const InnerTableBody = JSX(({ activeTabIndex, items }) => (jsx("div", { children: items.map((_, tableIdx) => {
|
|
10115
|
+
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
10116
|
+
return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
|
|
10117
|
+
}) })));
|
|
10180
10118
|
|
|
10181
10119
|
const linkButtonVersion = 'link';
|
|
10182
10120
|
|
|
@@ -10186,53 +10124,38 @@
|
|
|
10186
10124
|
}), onClick: () => setActiveTabIndex(idx), children: jsx(Text, { size: "text-xl", font: "font-light", color: TableColor(idx === activeTabIndex), children: currency || idx + 1 }) }, currency))) })) : null, linkToPDF ? (jsx(LinkButton, { className: "text-primary-main", href: linkToPDF, version: linkButtonVersion, target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
|
|
10187
10125
|
|
|
10188
10126
|
const EMPTY_DATA$1 = 'Данных нет';
|
|
10189
|
-
const InnerTable = UniBlock(({ tableSource
|
|
10127
|
+
const InnerTable = UniBlock(({ tableSource }) => {
|
|
10190
10128
|
const tableData = tableSource?.tableData;
|
|
10191
10129
|
const [activeTabIndex, setActiveTabIndex] = useState(0);
|
|
10192
10130
|
const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
|
|
10193
10131
|
const items = tableData?.[activeTabIndex]?.items ?? [];
|
|
10194
10132
|
const currencies = tableData?.map((item) => item.currency ?? '');
|
|
10195
|
-
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex
|
|
10133
|
+
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items })] })) : (jsx("div", { className: "space-y-m text-center", children: jsx(Text, { size: "text-h6", children: EMPTY_DATA$1 }) }));
|
|
10196
10134
|
});
|
|
10197
10135
|
|
|
10198
|
-
const
|
|
10136
|
+
const DIVIDER_STYLE = 'border-main-divider lg:border-b w-full py-s lg:py-xl';
|
|
10137
|
+
const TariffsTableRowContainer = JSX(({ children, tableInner, onClick }) => (jsxs("div", { className: style('self-start flex flex-col gap-xl', DIVIDER_STYLE), role: "row", children: [jsx("div", { className: style('flex flex-col lg:flex-row gap-x-5xl gap-y-xs'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onClick }) })) : null] })));
|
|
10199
10138
|
|
|
10200
|
-
const TariffsTableRow = JSX(({ row: { header, data
|
|
10139
|
+
const TariffsTableRow = JSX(({ row: { header, data = [] }, ...rest }) => {
|
|
10201
10140
|
const [tableInner, setTableInner] = useState(undefined);
|
|
10202
|
-
const handleSetTableInner = useCallback((_) =>
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: style('text-s', firstCellStyle), children: jsxs("div", { className: "flex gap-m items-center", role: "cell", children: [header?.icon ? (jsx(Img, { className: "hidden @4xl:block max-w-6 shrink-0", image: header.icon, width: "24", height: "24" })) : null, header?.title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: header?.title })) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
10141
|
+
const handleSetTableInner = useCallback((_) => {
|
|
10142
|
+
setTableInner(_);
|
|
10143
|
+
}, []);
|
|
10144
|
+
return (jsxs(TariffsTableRowContainer, { tableInner: tableInner, ...rest, children: [renderHeader(header), data?.length ? (jsx(TableCarouselContainer, { version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, onSetTable: handleSetTableInner, tableInner: tableInner, ...rest }, String(i)))) })) : null] }));
|
|
10207
10145
|
});
|
|
10208
10146
|
|
|
10209
|
-
|
|
10210
|
-
const renderArrows = ({ className, btnClass, canDec, canInc, dec, inc, }) => canDec || canInc ? (jsxs("div", { children: [canDec ? (jsx(ArrowLeftButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[0], className), onClick: dec })) : null, canInc ? (jsx(ArrowRightButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[1], className), onClick: inc })) : null] })) : null;
|
|
10211
|
-
|
|
10212
|
-
const TariffsTableWrapper = JSX(({ children, controls }) => {
|
|
10213
|
-
const { isScrollAvailable } = controls;
|
|
10214
|
-
return (jsxs("div", { role: "table", className: "overflow-x-auto w-auto grid md:block", children: [jsxs("div", { className: "relative space-y-xs", children: [children, renderArrows({
|
|
10215
|
-
...controls,
|
|
10216
|
-
btnClass: ['top-28', 'top-11'],
|
|
10217
|
-
className: 'right-7',
|
|
10218
|
-
})] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
|
|
10219
|
-
});
|
|
10147
|
+
const TariffsTableWrapper = JSX(({ children }) => (jsx("div", { role: "table", className: "overflow-x-auto w-auto grid relative gap-y-xs", children: children })));
|
|
10220
10148
|
|
|
10221
|
-
const TariffsTable =
|
|
10149
|
+
const TariffsTable = UniBlock(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
10222
10150
|
const colData = columns?.map(({ data }) => data) || [];
|
|
10223
10151
|
const rowData = rowHeaders?.map((header, i) => ({
|
|
10224
10152
|
header,
|
|
10225
10153
|
data: colData.map((col) => col?.[i] || []),
|
|
10226
10154
|
}));
|
|
10227
|
-
const
|
|
10228
|
-
const [activeIndex, controls] = useCarouselControls({
|
|
10229
|
-
itemCount: itemCount,
|
|
10230
|
-
visibleItemCount: COLS_LENGTH_FOR_SCROLL,
|
|
10231
|
-
});
|
|
10232
|
-
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
10155
|
+
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, ...rest }, String(i))));
|
|
10233
10156
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
10234
10157
|
const [isUnfolded, { toggle }] = useBool(false);
|
|
10235
|
-
return (jsxs(BlockWrapper, { className: style('relative space-y-
|
|
10158
|
+
return (jsxs(BlockWrapper, { className: style('relative space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), jsx(DefaultFoldButton, { className: "text-h4", isUnfolded: isUnfolded, onClick: toggle })] })) : (jsx(TariffsTableWrapper, { children: rows })) })] }));
|
|
10236
10159
|
});
|
|
10237
10160
|
|
|
10238
10161
|
const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
|
|
@@ -10401,7 +10324,7 @@
|
|
|
10401
10324
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10402
10325
|
});
|
|
10403
10326
|
|
|
10404
|
-
const packageVersion = "0.14.
|
|
10327
|
+
const packageVersion = "0.14.854";
|
|
10405
10328
|
|
|
10406
10329
|
exports.Blocks = Blocks;
|
|
10407
10330
|
exports.ContentPage = ContentPage;
|