{"version":3,"file":"fixed.mjs","sources":["../../../../../../packages/components/table/style/fixed.ts"],"sourcesContent":["import type { CSSObject, GenerateStyle } from '@antdv/theme';\nimport type { TableToken } from './index';\n\nconst genFixedStyle: GenerateStyle<TableToken, CSSObject> = (token) => {\n  const {\n    componentCls,\n    lineWidth,\n    colorSplit,\n    motionDurationSlow,\n    zIndexTableFixed,\n    tableBg,\n    zIndexTableSticky,\n  } = token;\n\n  const shadowColor = colorSplit;\n\n  // Follow style is magic of shadow which should not follow token:\n  return {\n    [`${componentCls}-wrapper`]: {\n      [`\n        ${componentCls}-cell-fix-left,\n        ${componentCls}-cell-fix-right\n      `]: {\n        position: 'sticky !important' as 'sticky',\n        zIndex: zIndexTableFixed,\n        background: tableBg,\n      },\n\n      [`\n        ${componentCls}-cell-fix-left-first::after,\n        ${componentCls}-cell-fix-left-last::after\n      `]: {\n        position: 'absolute',\n        top: 0,\n        right: {\n          _skip_check_: true,\n          value: 0,\n        },\n        bottom: -lineWidth,\n        width: 30,\n        transform: 'translateX(100%)',\n        transition: `box-shadow ${motionDurationSlow}`,\n        content: '\"\"',\n        pointerEvents: 'none',\n      },\n\n      [`${componentCls}-cell-fix-left-all::after`]: {\n        display: 'none',\n      },\n\n      [`\n        ${componentCls}-cell-fix-right-first::after,\n        ${componentCls}-cell-fix-right-last::after\n      `]: {\n        position: 'absolute',\n        top: 0,\n        bottom: -lineWidth,\n        left: {\n          _skip_check_: true,\n          value: 0,\n        },\n        width: 30,\n        transform: 'translateX(-100%)',\n        transition: `box-shadow ${motionDurationSlow}`,\n        content: '\"\"',\n        pointerEvents: 'none',\n      },\n\n      [`${componentCls}-container`]: {\n        '&::before, &::after': {\n          position: 'absolute',\n          top: 0,\n          bottom: 0,\n          zIndex: zIndexTableSticky + 1,\n          width: 30,\n          transition: `box-shadow ${motionDurationSlow}`,\n          content: '\"\"',\n          pointerEvents: 'none',\n        },\n\n        '&::before': {\n          insetInlineStart: 0,\n        },\n\n        '&::after': {\n          insetInlineEnd: 0,\n        },\n      },\n\n      [`${componentCls}-ping-left`]: {\n        [`&:not(${componentCls}-has-fix-left) ${componentCls}-container`]: {\n          'position': 'relative',\n\n          '&::before': {\n            boxShadow: `inset 10px 0 8px -8px ${shadowColor}`,\n          },\n        },\n\n        [`\n          ${componentCls}-cell-fix-left-first::after,\n          ${componentCls}-cell-fix-left-last::after\n        `]: {\n          boxShadow: `inset 10px 0 8px -8px ${shadowColor}`,\n        },\n\n        [`${componentCls}-cell-fix-left-last::before`]: {\n          backgroundColor: 'transparent !important',\n        },\n      },\n\n      [`${componentCls}-ping-right`]: {\n        [`&:not(${componentCls}-has-fix-right) ${componentCls}-container`]: {\n          'position': 'relative',\n\n          '&::after': {\n            boxShadow: `inset -10px 0 8px -8px ${shadowColor}`,\n          },\n        },\n\n        [`\n          ${componentCls}-cell-fix-right-first::after,\n          ${componentCls}-cell-fix-right-last::after\n        `]: {\n          boxShadow: `inset -10px 0 8px -8px ${shadowColor}`,\n        },\n      },\n    },\n  };\n};\n\nexport default genFixedStyle;\n"],"names":[],"mappings":"AAGM,MAAA,aAAA,GAAsD,CAAC,KAAU,KAAA;AACrE,EAAM,MAAA;AAAA,IACJ,YAAA;AAAA,IACA,SAAA;AAAA,IACA,UAAA;AAAA,IACA,kBAAA;AAAA,IACA,gBAAA;AAAA,IACA,OAAA;AAAA,IACA,iBAAA;AAAA,GACE,GAAA,KAAA,CAAA;AAEJ,EAAA,MAAM,WAAc,GAAA,UAAA,CAAA;AAGpB,EAAO,OAAA;AAAA,IACL,CAAC,CAAA,EAAG,YAAY,CAAA,QAAA,CAAU,GAAG;AAAA,MAC3B,CAAC,CAAA;AAAA,QAAA,EACG,YAAY,CAAA;AAAA,QAAA,EACZ,YAAY,CAAA;AAAA,MAAA,CACf,GAAG;AAAA,QACF,QAAU,EAAA,mBAAA;AAAA,QACV,MAAQ,EAAA,gBAAA;AAAA,QACR,UAAY,EAAA,OAAA;AAAA,OACd;AAAA,MAEA,CAAC,CAAA;AAAA,Q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