@24i/bigscreen-sdk 1.0.4-alpha.2096 → 1.0.4-alpha.2098

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/bigscreen-sdk",
3
- "version": "1.0.4-alpha.2096",
3
+ "version": "1.0.4-alpha.2098",
4
4
  "description": "SmartApps BIGscreen SDK monorepo",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -267,7 +267,7 @@ export class DataManager implements IDataManager {
267
267
  endTime,
268
268
  },
269
269
  name: i18n.t('epg.noData.title'),
270
- programId: `no-data-${startTime}-${endTime}`,
270
+ id: `no-data-${startTime}-${endTime}`,
271
271
  } as unknown as Asset;
272
272
  }
273
273
 
@@ -1,3 +1,5 @@
1
+ import { isRtl } from '@24i/bigscreen-sdk/i18n';
2
+
1
3
  export const handleOverflow = (
2
4
  wrap: HTMLDivElement | null,
3
5
  caretElement: HTMLDivElement | null,
@@ -7,10 +9,11 @@ export const handleOverflow = (
7
9
  const wrapWidth = wrap.getBoundingClientRect().width;
8
10
  const caretWidth = caretElement.getBoundingClientRect().width;
9
11
  const preCaretWidth = textPreCaret.getBoundingClientRect().width + caretWidth;
12
+ const margin = isRtl() ? 'marginRight' : 'marginLeft';
10
13
  if (preCaretWidth >= wrapWidth) {
11
14
  const offset = wrapWidth - preCaretWidth;
12
- textPreCaret.style.marginLeft = `${offset}px`;
13
- } else if (textPreCaret.style.marginLeft !== '0px') {
14
- textPreCaret.style.marginLeft = '0px';
15
+ textPreCaret.style[margin] = `${offset}px`;
16
+ } else if (textPreCaret.style[margin] !== '0px') {
17
+ textPreCaret.style[margin] = '0px';
15
18
  }
16
19
  };