@ironsource/shared-ui 2.1.12-test.93 → 2.1.12-test.94

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.
@@ -6,7 +6,15 @@ export type Day = {
6
6
  disabled?: boolean;
7
7
  };
8
8
  export type Week = Day[];
9
- declare class DateServices {
9
+ interface DateServicesInterface {
10
+ getPresetsFunctions(shouldIncludeToday: boolean): Record<string, {
11
+ dates: () => {
12
+ from?: Date;
13
+ to?: Date;
14
+ };
15
+ }>;
16
+ }
17
+ export declare class DateServices implements DateServicesInterface {
10
18
  getCurrentTimeUTC(): Date;
11
19
  daysInMonth(month: any, year: any): number;
12
20
  getDateRangeString(dateRange: any): string;
@@ -239,5 +239,6 @@ class C {
239
239
  }
240
240
  const U = new C();
241
241
  export {
242
+ C as DateServices,
242
243
  U as default
243
244
  };
@@ -1,4 +1,4 @@
1
- import DateRangeServices from '@/components/dateRange/common/DateServices.common';
1
+ import { DateServices } from '@/components/dateRange/common/DateServices.common';
2
2
  declare const DateRangeTypes: () => ({
3
3
  new (...args: any[]): {
4
4
  $: import("vue").ComponentInternalInstance;
@@ -406,4 +406,4 @@ declare const DateRangeTypes: () => ({
406
406
  };
407
407
  }))[];
408
408
  export { default as DateRange } from './DateRangeV4.vue';
409
- export { DateRangeTypes, DateRangeServices };
409
+ export { DateRangeTypes, DateServices };
@@ -1,8 +1,8 @@
1
1
  import e from "./DateRangeV4.vue.js";
2
- import { default as n } from "../common/DateServices.common.js";
3
- const t = () => [e];
2
+ import { DateServices as p } from "../common/DateServices.common.js";
3
+ const o = () => [e];
4
4
  export {
5
5
  e as DateRange,
6
- n as DateRangeServices,
7
- t as DateRangeTypes
6
+ o as DateRangeTypes,
7
+ p as DateServices
8
8
  };
package/index.d.ts CHANGED
@@ -18,6 +18,7 @@ import * as tableV3 from '@/components/table/v3';
18
18
  import * as tableV4 from '@/components/table/v4';
19
19
  import * as tableCellsV3 from '@/components/table-cells/v3';
20
20
  import * as snackbarV3 from '@/components/snackbar/v3';
21
+ import * as dateRangeV4 from '@/components/dateRange/v4';
21
22
  declare const _default: {
22
23
  nFormatter(num: number, formatLowDigits?: boolean): string;
23
24
  DEFAULT_FALLBACK: "N/A";
@@ -1361,143 +1362,7 @@ declare const _default: {
1361
1362
  footer?(_: {}): any;
1362
1363
  };
1363
1364
  }))[];
1364
- DateRangeServices: {
1365
- getCurrentTimeUTC(): Date;
1366
- daysInMonth(month: any, year: any): number;
1367
- getDateRangeString(dateRange: any): string;
1368
- getFirstDayOfWeek(date: any): Date;
1369
- getLastDayOfWeek(date: any): Date;
1370
- getLastDayOfMonth(date: any): Date;
1371
- createMonth(month: any, year: any, includeToday?: boolean, setFuture?: boolean): {
1372
- weeks: import("./components/dateRange/common/DateServices.common").Week[];
1373
- days: Record<string, import("./components/dateRange/common/DateServices.common").Day>;
1374
- month: number;
1375
- year: number;
1376
- };
1377
- isWeekEmpty(week: any): any;
1378
- getPresetsFunctions(shouldIncludeToday?: boolean): {
1379
- today: {
1380
- dates(): {
1381
- from?: Date;
1382
- to?: Date;
1383
- };
1384
- };
1385
- yesterday: {
1386
- dates(): {
1387
- from?: Date;
1388
- to?: Date;
1389
- };
1390
- };
1391
- last7days: {
1392
- dates(): {
1393
- from?: Date;
1394
- to?: Date;
1395
- };
1396
- };
1397
- last14days: {
1398
- dates(): {
1399
- from?: Date;
1400
- to?: Date;
1401
- };
1402
- };
1403
- last30days: {
1404
- dates(): {
1405
- from?: Date;
1406
- to?: Date;
1407
- };
1408
- };
1409
- last31days: {
1410
- dates(): {
1411
- from?: Date;
1412
- to?: Date;
1413
- };
1414
- };
1415
- last60days: {
1416
- dates(): {
1417
- from?: Date;
1418
- to?: Date;
1419
- };
1420
- };
1421
- last90days: {
1422
- dates(): {
1423
- from?: Date;
1424
- to?: Date;
1425
- };
1426
- };
1427
- thisMonth: {
1428
- dates(): {
1429
- from?: Date;
1430
- to?: Date;
1431
- };
1432
- };
1433
- lastMonth: {
1434
- dates(): {
1435
- from?: Date;
1436
- to?: Date;
1437
- };
1438
- };
1439
- last4weeks: {
1440
- dates(): {
1441
- from?: Date;
1442
- to?: Date;
1443
- };
1444
- };
1445
- last12weeks: {
1446
- dates(): {
1447
- from?: Date;
1448
- to?: Date;
1449
- };
1450
- };
1451
- last26weeks: {
1452
- dates(): {
1453
- from?: Date;
1454
- to?: Date;
1455
- };
1456
- };
1457
- last52weeks: {
1458
- dates(): {
1459
- from?: Date;
1460
- to?: Date;
1461
- };
1462
- };
1463
- last3months: {
1464
- dates(): {
1465
- from?: Date;
1466
- to?: Date;
1467
- };
1468
- };
1469
- last6months: {
1470
- dates(): {
1471
- from?: Date;
1472
- to?: Date;
1473
- };
1474
- };
1475
- last9months: {
1476
- dates(): {
1477
- from?: Date;
1478
- to?: Date;
1479
- };
1480
- };
1481
- last12months: {
1482
- dates(): {
1483
- from?: Date;
1484
- to?: Date;
1485
- };
1486
- };
1487
- last24months: {
1488
- dates(): {
1489
- from?: Date;
1490
- to?: Date;
1491
- };
1492
- };
1493
- last36months: {
1494
- dates(): {
1495
- from?: Date;
1496
- to?: Date;
1497
- };
1498
- };
1499
- };
1500
- };
1365
+ DateServices: typeof dateRangeV4.DateServices;
1501
1366
  DatePicker: {
1502
1367
  new (...args: any[]): {
1503
1368
  $: import("vue").ComponentInternalInstance;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './FloatingToolbar.vue_vue_type_style_index_0_scoped_04d485be_lang.css';
1
+ import './MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_lang.css';
2
2
  import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as ao } from "./components/menuItem/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.12-test.93",
3
+ "version": "2.1.12-test.94",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"