laif-ds 0.1.5 → 0.1.7

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.
Files changed (135) hide show
  1. package/dist/_virtual/_cloneBuffer.js +5 -0
  2. package/dist/_virtual/dayjs.min.js +8 -0
  3. package/dist/_virtual/dayjs.min2.js +5 -0
  4. package/dist/_virtual/debounce.js +8 -0
  5. package/dist/_virtual/index5.js +5 -2
  6. package/dist/_virtual/index6.js +5 -0
  7. package/dist/_virtual/index7.js +5 -0
  8. package/dist/_virtual/localizedFormat.js +8 -0
  9. package/dist/_virtual/localizedFormat2.js +5 -0
  10. package/dist/_virtual/omit.js +8 -0
  11. package/dist/components/ui/data-table.js +122 -0
  12. package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +36 -0
  13. package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +45 -0
  14. package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +115 -0
  15. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +158 -0
  16. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +36 -0
  17. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +26 -0
  18. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRowContext.js +14 -0
  19. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +75 -0
  20. package/dist/components/ui/gantt/components/Chart/Chart.js +66 -0
  21. package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +88 -0
  22. package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +72 -0
  23. package/dist/components/ui/gantt/components/Controls/Controls.js +82 -0
  24. package/dist/components/ui/gantt/components/Gantt/Gantt.js +58 -0
  25. package/dist/components/ui/gantt/components/Gantt/GanttContext.js +35 -0
  26. package/dist/components/ui/gantt/constants/DimensionsSettings.js +89 -0
  27. package/dist/components/ui/gantt/constants/DragStepOptions.js +43 -0
  28. package/dist/components/ui/gantt/constants/GanttConsts.js +17 -0
  29. package/dist/components/ui/gantt/constants/colors.json.js +106 -0
  30. package/dist/components/ui/gantt/enums/DataRepeatTimes.js +5 -0
  31. package/dist/components/ui/gantt/enums/DragStepSizes.js +5 -0
  32. package/dist/components/ui/gantt/enums/DragTypes.js +5 -0
  33. package/dist/components/ui/gantt/enums/GanttDimensions.js +5 -0
  34. package/dist/components/ui/gantt/enums/GanttUnitOfTimes.js +5 -0
  35. package/dist/components/ui/gantt/hooks/useForwardRef.js +11 -0
  36. package/dist/components/ui/gantt/hooks/useGanttCalculate.js +30 -0
  37. package/dist/components/ui/gantt/utils/getInitialScrollOffset.js +11 -0
  38. package/dist/components/ui/gantt/utils/getScaleDates.js +14 -0
  39. package/dist/components/ui/gantt/utils/getScaleItems.js +33 -0
  40. package/dist/components/ui/gantt/utils/getWholeWidth.js +7 -0
  41. package/dist/components/ui/gantt/utils/transformData.js +36 -0
  42. package/dist/components/ui/toaster.js +26 -0
  43. package/dist/dist/_virtual/jsx-runtime.js +6 -0
  44. package/dist/dist/_virtual/jsx-runtime2.js +5 -0
  45. package/dist/dist/_virtual/react-jsx-runtime.development.js +5 -0
  46. package/dist/dist/_virtual/react-jsx-runtime.production.js +5 -0
  47. package/dist/dist/components/ui/checkbox.js +32 -0
  48. package/dist/dist/components/ui/scroll-area.js +61 -0
  49. package/dist/dist/components/ui/table.js +87 -0
  50. package/dist/dist/lib/utils.js +9 -0
  51. package/dist/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
  52. package/dist/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
  53. package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +136 -0
  54. package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
  55. package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +56 -0
  56. package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  57. package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.js +72 -0
  58. package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  59. package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +534 -0
  60. package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  61. package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +14 -0
  62. package/dist/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +33 -0
  63. package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  64. package/dist/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +9 -0
  65. package/dist/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
  66. package/dist/dist/node_modules/clsx/dist/clsx.js +18 -0
  67. package/dist/dist/node_modules/lucide-react/dist/esm/Icon.js +41 -0
  68. package/dist/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +28 -0
  69. package/dist/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
  70. package/dist/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
  71. package/dist/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +20 -0
  72. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +248 -0
  73. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +36 -0
  74. package/dist/dist/node_modules/react/jsx-runtime.js +11 -0
  75. package/dist/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2732 -0
  76. package/dist/index.d.ts +191 -1
  77. package/dist/index.js +303 -295
  78. package/dist/laif-ds.css +1 -0
  79. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -0
  80. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -0
  81. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -0
  82. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -0
  83. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +57 -0
  84. package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +2150 -0
  85. package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js +27 -0
  86. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +184 -0
  87. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +103 -0
  88. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1896 -0
  89. package/dist/node_modules/classnames/index.js +43 -0
  90. package/dist/node_modules/dayjs/dayjs.min.js +283 -0
  91. package/dist/node_modules/dayjs/plugin/localizedFormat.js +30 -0
  92. package/dist/node_modules/lodash/_arrayEach.js +15 -0
  93. package/dist/node_modules/lodash/_assignValue.js +17 -0
  94. package/dist/node_modules/lodash/_baseAssign.js +16 -0
  95. package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
  96. package/dist/node_modules/lodash/_baseAssignValue.js +20 -0
  97. package/dist/node_modules/lodash/_baseClone.js +71 -0
  98. package/dist/node_modules/lodash/_baseCreate.js +24 -0
  99. package/dist/node_modules/lodash/_baseIsMap.js +16 -0
  100. package/dist/node_modules/lodash/_baseIsSet.js +16 -0
  101. package/dist/node_modules/lodash/_baseKeysIn.js +22 -0
  102. package/dist/node_modules/lodash/_baseUnset.js +18 -0
  103. package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  104. package/dist/node_modules/lodash/_cloneBuffer.js +20 -0
  105. package/dist/node_modules/lodash/_cloneDataView.js +16 -0
  106. package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
  107. package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
  108. package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
  109. package/dist/node_modules/lodash/_copyArray.js +16 -0
  110. package/dist/node_modules/lodash/_copyObject.js +22 -0
  111. package/dist/node_modules/lodash/_copySymbols.js +16 -0
  112. package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
  113. package/dist/node_modules/lodash/_customOmitClone.js +15 -0
  114. package/dist/node_modules/lodash/_flatRest.js +17 -0
  115. package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
  116. package/dist/node_modules/lodash/_getPrototype.js +12 -0
  117. package/dist/node_modules/lodash/_getSymbolsIn.js +19 -0
  118. package/dist/node_modules/lodash/_initCloneArray.js +15 -0
  119. package/dist/node_modules/lodash/_initCloneByTag.js +49 -0
  120. package/dist/node_modules/lodash/_initCloneObject.js +17 -0
  121. package/dist/node_modules/lodash/_nativeKeysIn.js +17 -0
  122. package/dist/node_modules/lodash/_parent.js +16 -0
  123. package/dist/node_modules/lodash/flatten.js +16 -0
  124. package/dist/node_modules/lodash/isMap.js +14 -0
  125. package/dist/node_modules/lodash/isPlainObject.js +23 -0
  126. package/dist/node_modules/lodash/isSet.js +14 -0
  127. package/dist/node_modules/lodash/keysIn.js +17 -0
  128. package/dist/node_modules/lodash/last.js +14 -0
  129. package/dist/node_modules/lodash/omit.js +30 -0
  130. package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +28 -0
  131. package/dist/node_modules/react-window/dist/index.esm.js +375 -0
  132. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  133. package/dist/styles.css +1 -1
  134. package/package.json +16 -7
  135. package/dist/components/ui/sonner.js +0 -23
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import "react";
3
+ function o(t) {
4
+ return (r) => {
5
+ let {
6
+ transform: e
7
+ } = r;
8
+ return {
9
+ ...e,
10
+ x: Math.ceil(e.x / t) * t,
11
+ y: Math.ceil(e.y / t) * t
12
+ };
13
+ };
14
+ }
15
+ const a = (t) => {
16
+ let {
17
+ transform: r
18
+ } = t;
19
+ return {
20
+ ...r,
21
+ y: 0
22
+ };
23
+ };
24
+ export {
25
+ o as createSnapModifier,
26
+ a as restrictToHorizontalAxis
27
+ };
@@ -0,0 +1,184 @@
1
+ "use client";
2
+ import { useLayoutEffect as D, useEffect as w, useRef as o, useMemo as h, useCallback as i } from "react";
3
+ const L = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
4
+ function l(n) {
5
+ const t = Object.prototype.toString.call(n);
6
+ return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
7
+ t === "[object global]";
8
+ }
9
+ function b(n) {
10
+ return "nodeType" in n;
11
+ }
12
+ function c(n) {
13
+ var t, e;
14
+ return n ? l(n) ? n : b(n) && (t = (e = n.ownerDocument) == null ? void 0 : e.defaultView) != null ? t : window : window;
15
+ }
16
+ function p(n) {
17
+ const {
18
+ Document: t
19
+ } = c(n);
20
+ return n instanceof t;
21
+ }
22
+ function S(n) {
23
+ return l(n) ? !1 : n instanceof c(n).HTMLElement;
24
+ }
25
+ function V(n) {
26
+ return n instanceof c(n).SVGElement;
27
+ }
28
+ function O(n) {
29
+ return n ? l(n) ? n.document : b(n) ? p(n) ? n : S(n) || V(n) ? n.ownerDocument : document : document : document;
30
+ }
31
+ const E = L ? D : w;
32
+ function j(n) {
33
+ const t = o(n);
34
+ return E(() => {
35
+ t.current = n;
36
+ }), i(function() {
37
+ for (var e = arguments.length, u = new Array(e), r = 0; r < e; r++)
38
+ u[r] = arguments[r];
39
+ return t.current == null ? void 0 : t.current(...u);
40
+ }, []);
41
+ }
42
+ function A() {
43
+ const n = o(null), t = i((u, r) => {
44
+ n.current = setInterval(u, r);
45
+ }, []), e = i(() => {
46
+ n.current !== null && (clearInterval(n.current), n.current = null);
47
+ }, []);
48
+ return [t, e];
49
+ }
50
+ function N(n, t) {
51
+ t === void 0 && (t = [n]);
52
+ const e = o(n);
53
+ return E(() => {
54
+ e.current !== n && (e.current = n);
55
+ }, t), e;
56
+ }
57
+ function X(n, t) {
58
+ const e = o();
59
+ return h(
60
+ () => {
61
+ const u = n(e.current);
62
+ return e.current = u, u;
63
+ },
64
+ // eslint-disable-next-line react-hooks/exhaustive-deps
65
+ [...t]
66
+ );
67
+ }
68
+ function Y(n) {
69
+ const t = j(n), e = o(null), u = i(
70
+ (r) => {
71
+ r !== e.current && (t == null || t(r, e.current)), e.current = r;
72
+ },
73
+ //eslint-disable-next-line
74
+ []
75
+ );
76
+ return [e, u];
77
+ }
78
+ function v(n) {
79
+ const t = o();
80
+ return w(() => {
81
+ t.current = n;
82
+ }, [n]), t.current;
83
+ }
84
+ let f = {};
85
+ function F(n, t) {
86
+ return h(() => {
87
+ if (t)
88
+ return t;
89
+ const e = f[n] == null ? 0 : f[n] + 1;
90
+ return f[n] = e, n + "-" + e;
91
+ }, [n, t]);
92
+ }
93
+ function y(n) {
94
+ return function(t) {
95
+ for (var e = arguments.length, u = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
96
+ u[r - 1] = arguments[r];
97
+ return u.reduce((s, g) => {
98
+ const R = Object.entries(g);
99
+ for (const [d, T] of R) {
100
+ const a = s[d];
101
+ a != null && (s[d] = a + n * T);
102
+ }
103
+ return s;
104
+ }, {
105
+ ...t
106
+ });
107
+ };
108
+ }
109
+ const H = /* @__PURE__ */ y(1), W = /* @__PURE__ */ y(-1);
110
+ function C(n) {
111
+ return "clientX" in n && "clientY" in n;
112
+ }
113
+ function q(n) {
114
+ if (!n)
115
+ return !1;
116
+ const {
117
+ KeyboardEvent: t
118
+ } = c(n.target);
119
+ return t && n instanceof t;
120
+ }
121
+ function I(n) {
122
+ if (!n)
123
+ return !1;
124
+ const {
125
+ TouchEvent: t
126
+ } = c(n.target);
127
+ return t && n instanceof t;
128
+ }
129
+ function x(n) {
130
+ if (I(n)) {
131
+ if (n.touches && n.touches.length) {
132
+ const {
133
+ clientX: t,
134
+ clientY: e
135
+ } = n.touches[0];
136
+ return {
137
+ x: t,
138
+ y: e
139
+ };
140
+ } else if (n.changedTouches && n.changedTouches.length) {
141
+ const {
142
+ clientX: t,
143
+ clientY: e
144
+ } = n.changedTouches[0];
145
+ return {
146
+ x: t,
147
+ y: e
148
+ };
149
+ }
150
+ }
151
+ return C(n) ? {
152
+ x: n.clientX,
153
+ y: n.clientY
154
+ } : null;
155
+ }
156
+ const m = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
157
+ function G(n) {
158
+ return n.matches(m) ? n : n.querySelector(m);
159
+ }
160
+ export {
161
+ H as add,
162
+ L as canUseDOM,
163
+ G as findFirstFocusableNode,
164
+ x as getEventCoordinates,
165
+ O as getOwnerDocument,
166
+ c as getWindow,
167
+ C as hasViewportRelativeCoordinates,
168
+ p as isDocument,
169
+ S as isHTMLElement,
170
+ q as isKeyboardEvent,
171
+ b as isNode,
172
+ V as isSVGElement,
173
+ I as isTouchEvent,
174
+ l as isWindow,
175
+ W as subtract,
176
+ j as useEvent,
177
+ A as useInterval,
178
+ E as useIsomorphicLayoutEffect,
179
+ N as useLatestValue,
180
+ X as useLazyMemo,
181
+ Y as useNodeRef,
182
+ v as usePrevious,
183
+ F as useUniqueId
184
+ };
@@ -0,0 +1,103 @@
1
+ "use client";
2
+ import * as o from "react";
3
+ import { createTable as u } from "../../../table-core/build/lib/index.js";
4
+ import { ColumnFaceting as C, ColumnFiltering as S, ColumnGrouping as w, ColumnOrdering as b, ColumnPinning as y, ColumnSizing as F, ColumnVisibility as h, GlobalFaceting as x, GlobalFiltering as O, Headers as M, RowExpanding as P, RowPagination as v, RowPinning as E, RowSelection as G, RowSorting as $, _getVisibleLeafColumns as A, aggregationFns as V, buildHeaderGroups as j, createCell as k, createColumn as z, createRow as H, defaultColumnSizing as N, expandRows as T, filterFns as U, flattenBy as _, functionalUpdate as B, getCoreRowModel as L, getFilteredRowModel as q, getMemoOptions as D, getPaginationRowModel as I, getSortedRowModel as J, isFunction as K, isNumberArray as Q, isRowSelected as W, isSubRowSelected as X, makeStateUpdater as Y, memo as Z, orderColumns as ee, passiveEventSupported as te, reSplitAlphaNumeric as ne, selectRowsFn as oe, shouldAutoRemoveFilter as re, sortingFns as ie } from "../../../table-core/build/lib/index.js";
5
+ /**
6
+ * react-table
7
+ *
8
+ * Copyright (c) TanStack
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE.md file in the root directory of this source tree.
12
+ *
13
+ * @license MIT
14
+ */
15
+ function d(e, t) {
16
+ return e ? s(e) ? /* @__PURE__ */ o.createElement(e, t) : e : null;
17
+ }
18
+ function s(e) {
19
+ return c(e) || typeof e == "function" || g(e);
20
+ }
21
+ function c(e) {
22
+ return typeof e == "function" && (() => {
23
+ const t = Object.getPrototypeOf(e);
24
+ return t.prototype && t.prototype.isReactComponent;
25
+ })();
26
+ }
27
+ function g(e) {
28
+ return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
29
+ }
30
+ function m(e) {
31
+ const t = {
32
+ state: {},
33
+ // Dummy state
34
+ onStateChange: () => {
35
+ },
36
+ // noop
37
+ renderFallbackValue: null,
38
+ ...e
39
+ }, [n] = o.useState(() => ({
40
+ current: u(t)
41
+ })), [i, a] = o.useState(() => n.current.initialState);
42
+ return n.current.setOptions((l) => ({
43
+ ...l,
44
+ ...e,
45
+ state: {
46
+ ...i,
47
+ ...e.state
48
+ },
49
+ // Similarly, we'll maintain both our internal state and any user-provided
50
+ // state.
51
+ onStateChange: (r) => {
52
+ a(r), e.onStateChange == null || e.onStateChange(r);
53
+ }
54
+ })), n.current;
55
+ }
56
+ export {
57
+ C as ColumnFaceting,
58
+ S as ColumnFiltering,
59
+ w as ColumnGrouping,
60
+ b as ColumnOrdering,
61
+ y as ColumnPinning,
62
+ F as ColumnSizing,
63
+ h as ColumnVisibility,
64
+ x as GlobalFaceting,
65
+ O as GlobalFiltering,
66
+ M as Headers,
67
+ P as RowExpanding,
68
+ v as RowPagination,
69
+ E as RowPinning,
70
+ G as RowSelection,
71
+ $ as RowSorting,
72
+ A as _getVisibleLeafColumns,
73
+ V as aggregationFns,
74
+ j as buildHeaderGroups,
75
+ k as createCell,
76
+ z as createColumn,
77
+ H as createRow,
78
+ u as createTable,
79
+ N as defaultColumnSizing,
80
+ T as expandRows,
81
+ U as filterFns,
82
+ _ as flattenBy,
83
+ d as flexRender,
84
+ B as functionalUpdate,
85
+ L as getCoreRowModel,
86
+ q as getFilteredRowModel,
87
+ D as getMemoOptions,
88
+ I as getPaginationRowModel,
89
+ J as getSortedRowModel,
90
+ K as isFunction,
91
+ Q as isNumberArray,
92
+ W as isRowSelected,
93
+ X as isSubRowSelected,
94
+ Y as makeStateUpdater,
95
+ Z as memo,
96
+ ee as orderColumns,
97
+ te as passiveEventSupported,
98
+ ne as reSplitAlphaNumeric,
99
+ oe as selectRowsFn,
100
+ re as shouldAutoRemoveFilter,
101
+ ie as sortingFns,
102
+ m as useReactTable
103
+ };