@cagatayfdn/flora-components 0.0.136 → 0.0.138

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 (185) hide show
  1. package/package.json +1 -1
  2. package/dist/Accordion.css +0 -1
  3. package/dist/ActionButton.css +0 -1
  4. package/dist/AlertCard.css +0 -1
  5. package/dist/Autocomplete.css +0 -1
  6. package/dist/Button.css +0 -1
  7. package/dist/Card.css +0 -1
  8. package/dist/Checkbox.css +0 -1
  9. package/dist/Config.css +0 -1
  10. package/dist/Confirm.css +0 -1
  11. package/dist/ContentHeader.css +0 -1
  12. package/dist/Datepicker.css +0 -1
  13. package/dist/Divider.css +0 -1
  14. package/dist/DropdownList.css +0 -1
  15. package/dist/ErrorLogModal.css +0 -1
  16. package/dist/FileUpload.css +0 -1
  17. package/dist/FileUpload.module-BxCEtOHx.js +0 -32
  18. package/dist/Heading.css +0 -1
  19. package/dist/IconBox.css +0 -1
  20. package/dist/InfoBoxList.css +0 -1
  21. package/dist/InfoBoxList.module-BHkAHgos.js +0 -8
  22. package/dist/InfoDate.css +0 -1
  23. package/dist/InfoText.css +0 -1
  24. package/dist/Input.css +0 -1
  25. package/dist/Label.css +0 -1
  26. package/dist/Legends.css +0 -1
  27. package/dist/Loading.css +0 -1
  28. package/dist/MenuItem-Df6Zsa7E.js +0 -53
  29. package/dist/MenuItem.css +0 -1
  30. package/dist/Modal.css +0 -1
  31. package/dist/NoResult.css +0 -1
  32. package/dist/PageWrap.css +0 -1
  33. package/dist/Pager.css +0 -1
  34. package/dist/Panel.css +0 -1
  35. package/dist/Radio.css +0 -1
  36. package/dist/ResultError.css +0 -1
  37. package/dist/ScrollContainer.css +0 -1
  38. package/dist/Select-BE_y91ZN.js +0 -1831
  39. package/dist/Select.css +0 -1
  40. package/dist/Select.module-ByPQ6qr4.js +0 -21
  41. package/dist/StatusTag.css +0 -1
  42. package/dist/StatusTypography.css +0 -1
  43. package/dist/Stepper.css +0 -1
  44. package/dist/Switch.css +0 -1
  45. package/dist/Tab.css +0 -1
  46. package/dist/Table.css +0 -1
  47. package/dist/Table.module-DUqpZOLt.js +0 -29
  48. package/dist/Textarea.css +0 -1
  49. package/dist/Tooltip.css +0 -1
  50. package/dist/Trans-B4ILpbwK.js +0 -343
  51. package/dist/TypographyText.css +0 -1
  52. package/dist/ValidationError.css +0 -1
  53. package/dist/_commonjsHelpers-CT_km90n.js +0 -30
  54. package/dist/_isArray-CBUZFxFA.js +0 -6
  55. package/dist/_isString-BUpNGP_8.js +0 -6
  56. package/dist/_reduce-DsUCMz4O.js +0 -148
  57. package/dist/assets/icons/icons.js +0 -70
  58. package/dist/assets/images/500_error_2x.gif +0 -0
  59. package/dist/assets/images/oms.png +0 -0
  60. package/dist/components/Accordion/Accordion.js +0 -60
  61. package/dist/components/ActionButton/ActionButton.js +0 -54
  62. package/dist/components/AlertCard/AlertCard.js +0 -29
  63. package/dist/components/AuthUserCan/Permission.js +0 -18
  64. package/dist/components/AuthUserCan/index.js +0 -23
  65. package/dist/components/Autocomplete/Autocomplete.js +0 -87
  66. package/dist/components/Button/Button.js +0 -87
  67. package/dist/components/Card/Card.js +0 -21
  68. package/dist/components/Charts/Bar.js +0 -18
  69. package/dist/components/Charts/Legends.js +0 -21
  70. package/dist/components/Charts/Line.js +0 -18
  71. package/dist/components/Charts/Pie.js +0 -43
  72. package/dist/components/Charts/index.js +0 -31
  73. package/dist/components/Charts/types.js +0 -1
  74. package/dist/components/Charts/utils.js +0 -12
  75. package/dist/components/Checkbox/Checkbox.js +0 -68
  76. package/dist/components/Config/Config.js +0 -32
  77. package/dist/components/Confirm/Confirm.js +0 -60
  78. package/dist/components/ContentHeader/ContentHeader.js +0 -75
  79. package/dist/components/ContentLoader/ContentLoader.js +0 -16
  80. package/dist/components/Countdown/Countdown.js +0 -20
  81. package/dist/components/Datepicker/Datepicker.js +0 -1478
  82. package/dist/components/Divider/Divider.js +0 -27
  83. package/dist/components/Drawer/Provider.js +0 -24
  84. package/dist/components/Drawer/index.js +0 -55
  85. package/dist/components/Dropdown/DropdownList.js +0 -90
  86. package/dist/components/ErrorLogModal/ErrorLogModal.js +0 -69
  87. package/dist/components/FileUpload/FileUpload.js +0 -237
  88. package/dist/components/FileUpload/ImagePreview.js +0 -19
  89. package/dist/components/FileUpload/LengthCard.js +0 -6
  90. package/dist/components/FileUpload/PreviewModal.js +0 -53
  91. package/dist/components/Grid/Column.js +0 -29
  92. package/dist/components/Grid/Row.js +0 -6
  93. package/dist/components/Heading/Heading.js +0 -22
  94. package/dist/components/Icon/index.js +0 -24
  95. package/dist/components/IconBox/IconBox.js +0 -13
  96. package/dist/components/InfiniteScroll/InfiniteScroll.js +0 -41
  97. package/dist/components/InfoBoxList/InfoBoxList.js +0 -30
  98. package/dist/components/InfoBoxList/helper.js +0 -83
  99. package/dist/components/InfoDate/InfoDate.js +0 -19
  100. package/dist/components/InfoText/InfoText.js +0 -13
  101. package/dist/components/Input/Input.js +0 -140
  102. package/dist/components/Label/Label.js +0 -22
  103. package/dist/components/Loading/Loading.js +0 -62
  104. package/dist/components/Modal/Modal.js +0 -74
  105. package/dist/components/NavigatorCard/index.js +0 -59
  106. package/dist/components/NoResult/NoResult.js +0 -12
  107. package/dist/components/Notification/Notification.js +0 -26
  108. package/dist/components/PageWrapper/PageWrap.js +0 -46
  109. package/dist/components/Pager/Pager.js +0 -103
  110. package/dist/components/Panel/Panel.js +0 -71
  111. package/dist/components/PermaLink/PermaLink.js +0 -387
  112. package/dist/components/Radio/Radio.js +0 -96
  113. package/dist/components/ResultError/ResultError.js +0 -20
  114. package/dist/components/ScrollContainer/ScrollContainer.js +0 -23
  115. package/dist/components/Select/NoData.js +0 -10
  116. package/dist/components/Select/OptionItem.js +0 -19
  117. package/dist/components/Select/Select.js +0 -13
  118. package/dist/components/Sidebar/MenuItem.js +0 -9
  119. package/dist/components/Sidebar/index.js +0 -137
  120. package/dist/components/StatusTag/StatusTag.js +0 -24
  121. package/dist/components/StatusTypography/StatusTypography.js +0 -51
  122. package/dist/components/Stepper/Stepper.js +0 -75
  123. package/dist/components/Switch/Switch.js +0 -84
  124. package/dist/components/Tab/Tab.js +0 -28
  125. package/dist/components/Table/Table.js +0 -271
  126. package/dist/components/Table/TableHeader.js +0 -137
  127. package/dist/components/Table/TableSort.js +0 -25
  128. package/dist/components/Textarea/Textarea.js +0 -95
  129. package/dist/components/Tooltip/Tooltip.js +0 -1548
  130. package/dist/components/TypographyText/TypographyText.js +0 -91
  131. package/dist/components/ValidationError/ValidationError.js +0 -7
  132. package/dist/components/index.js +0 -133
  133. package/dist/defineProperty-DeKy1XT0.js +0 -37
  134. package/dist/enums/appearance.js +0 -14
  135. package/dist/enums/applicationTypeSlug.js +0 -4
  136. package/dist/enums/index.js +0 -29
  137. package/dist/enums/isActiveColor.js +0 -4
  138. package/dist/enums/size.js +0 -4
  139. package/dist/enums/status.js +0 -11
  140. package/dist/equals-PL9KqVQf.js +0 -119
  141. package/dist/flatpickr-CRz1AV0e.js +0 -59
  142. package/dist/hooks/index.js +0 -15
  143. package/dist/hooks/useAauth.js +0 -40
  144. package/dist/hooks/useDisclosure.js +0 -14
  145. package/dist/hooks/useDrawer.js +0 -9
  146. package/dist/hooks/useMediaQuery.js +0 -21
  147. package/dist/hooks/useNiceModal.js +0 -13
  148. package/dist/i18nInstance-CiCZbaCK.js +0 -55
  149. package/dist/includes-8YTFrx85.js +0 -46
  150. package/dist/index-9ZLCCecr.js +0 -364
  151. package/dist/index-BHf7G3IG.js +0 -35
  152. package/dist/index-BJU1K2Aw.js +0 -8003
  153. package/dist/index-CB61CB0b.js +0 -669
  154. package/dist/index-H7XbDVmH.js +0 -320
  155. package/dist/index-JNaMEwgt.js +0 -1413
  156. package/dist/index.css +0 -1
  157. package/dist/index.d.mts +0 -1463
  158. package/dist/index.d.ts +0 -1463
  159. package/dist/index.js +0 -200
  160. package/dist/index2.css +0 -1
  161. package/dist/jsx-runtime-BcAkpsdy.js +0 -631
  162. package/dist/keys-B0bo5Q7o.js +0 -67
  163. package/dist/locales/en/index.js +0 -613
  164. package/dist/locales/i18n.js +0 -1417
  165. package/dist/locales/index.js +0 -5
  166. package/dist/locales/tr/index.js +0 -613
  167. package/dist/main.css +0 -1
  168. package/dist/main.js +0 -56
  169. package/dist/prodivers.css +0 -6
  170. package/dist/prodivers.js +0 -13
  171. package/dist/react-content-loader.es-CswLCxkm.js +0 -90
  172. package/dist/react-toastify.esm-BUWNP7Nm.js +0 -808
  173. package/dist/types/common/date.js +0 -1
  174. package/dist/types/common/events.js +0 -1
  175. package/dist/types/common/forms.js +0 -1
  176. package/dist/types/common/option.js +0 -1
  177. package/dist/types/index.js +0 -1
  178. package/dist/useTranslation-CnCPcxVj.js +0 -142
  179. package/dist/utils/date.js +0 -413
  180. package/dist/utils/flatpickr.js +0 -4
  181. package/dist/utils/helper.js +0 -55
  182. package/dist/utils/index.js +0 -24
  183. package/dist/utils/language.js +0 -46
  184. package/dist/utils/validation.js +0 -27
  185. package/dist/utils/yup.js +0 -2921
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1,142 +0,0 @@
1
- import { createContext as E, useContext as P, useState as $, useRef as w, useEffect as x } from "react";
2
- import { g as j, a as k } from "./i18nInstance-CiCZbaCK.js";
3
- function A() {
4
- if (console && console.warn) {
5
- for (var s = arguments.length, e = new Array(s), n = 0; n < s; n++)
6
- e[n] = arguments[n];
7
- typeof e[0] == "string" && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
8
- }
9
- }
10
- const T = {};
11
- function C() {
12
- for (var s = arguments.length, e = new Array(s), n = 0; n < s; n++)
13
- e[n] = arguments[n];
14
- typeof e[0] == "string" && T[e[0]] || (typeof e[0] == "string" && (T[e[0]] = /* @__PURE__ */ new Date()), A(...e));
15
- }
16
- const z = (s, e) => () => {
17
- if (s.isInitialized)
18
- e();
19
- else {
20
- const n = () => {
21
- setTimeout(() => {
22
- s.off("initialized", n);
23
- }, 0), e();
24
- };
25
- s.on("initialized", n);
26
- }
27
- };
28
- function v(s, e, n) {
29
- s.loadNamespaces(e, z(s, n));
30
- }
31
- function R(s, e, n, f) {
32
- typeof n == "string" && (n = [n]), n.forEach((o) => {
33
- s.options.ns.indexOf(o) < 0 && s.options.ns.push(o);
34
- }), s.loadLanguages(e, z(s, f));
35
- }
36
- function F(s, e) {
37
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
38
- const f = e.languages[0], o = e.options ? e.options.fallbackLng : !1, t = e.languages[e.languages.length - 1];
39
- if (f.toLowerCase() === "cimode")
40
- return !0;
41
- const d = (b, y) => {
42
- const a = e.services.backendConnector.state[`${b}|${y}`];
43
- return a === -1 || a === 2;
44
- };
45
- return n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !d(e.isLanguageChangingTo, s) ? !1 : !!(e.hasResourceBundle(f, s) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || d(f, s) && (!o || d(t, s)));
46
- }
47
- function U(s, e) {
48
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
49
- return !e.languages || !e.languages.length ? (C("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(s, {
50
- lng: n.lng,
51
- precheck: (o, t) => {
52
- if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && o.services.backendConnector.backend && o.isLanguageChangingTo && !t(o.isLanguageChangingTo, s))
53
- return !1;
54
- }
55
- }) : F(s, e, n);
56
- }
57
- const O = E();
58
- class B {
59
- constructor() {
60
- this.usedNamespaces = {};
61
- }
62
- addUsedNamespaces(e) {
63
- e.forEach((n) => {
64
- this.usedNamespaces[n] || (this.usedNamespaces[n] = !0);
65
- });
66
- }
67
- getUsedNamespaces() {
68
- return Object.keys(this.usedNamespaces);
69
- }
70
- }
71
- const J = (s, e) => {
72
- const n = w();
73
- return x(() => {
74
- n.current = e ? n.current : s;
75
- }, [s, e]), n.current;
76
- };
77
- function W(s) {
78
- let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
79
- const {
80
- i18n: n
81
- } = e, {
82
- i18n: f,
83
- defaultNS: o
84
- } = P(O) || {}, t = n || f || k();
85
- if (t && !t.reportNamespaces && (t.reportNamespaces = new B()), !t) {
86
- C("You will need to pass in an i18next instance by using initReactI18next");
87
- const r = (c, i) => typeof i == "string" ? i : i && typeof i == "object" && typeof i.defaultValue == "string" ? i.defaultValue : Array.isArray(c) ? c[c.length - 1] : c, u = [r, {}, !1];
88
- return u.t = r, u.i18n = {}, u.ready = !1, u;
89
- }
90
- t.options.react && t.options.react.wait !== void 0 && C("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
91
- const d = {
92
- ...j(),
93
- ...t.options.react,
94
- ...e
95
- }, {
96
- useSuspense: b,
97
- keyPrefix: y
98
- } = d;
99
- let a = s || o || t.options && t.options.defaultNS;
100
- a = typeof a == "string" ? [a] : a || ["translation"], t.reportNamespaces.addUsedNamespaces && t.reportNamespaces.addUsedNamespaces(a);
101
- const l = (t.isInitialized || t.initializedStoreOnce) && a.every((r) => U(r, t, d));
102
- function p() {
103
- return t.getFixedT(e.lng || null, d.nsMode === "fallback" ? a : a[0], y);
104
- }
105
- const [I, m] = $(p);
106
- let h = a.join();
107
- e.lng && (h = `${e.lng}${h}`);
108
- const L = J(h), g = w(!0);
109
- x(() => {
110
- const {
111
- bindI18n: r,
112
- bindI18nStore: u
113
- } = d;
114
- g.current = !0, !l && !b && (e.lng ? R(t, e.lng, a, () => {
115
- g.current && m(p);
116
- }) : v(t, a, () => {
117
- g.current && m(p);
118
- })), l && L && L !== h && g.current && m(p);
119
- function c() {
120
- g.current && m(p);
121
- }
122
- return r && t && t.on(r, c), u && t && t.store.on(u, c), () => {
123
- g.current = !1, r && t && r.split(" ").forEach((i) => t.off(i, c)), u && t && u.split(" ").forEach((i) => t.store.off(i, c));
124
- };
125
- }, [t, h]);
126
- const S = w(!0);
127
- x(() => {
128
- g.current && !S.current && m(p), S.current = !1;
129
- }, [t, y]);
130
- const N = [I, t, l];
131
- if (N.t = I, N.i18n = t, N.ready = l, l || !l && !b)
132
- return N;
133
- throw new Promise((r) => {
134
- e.lng ? R(t, e.lng, a, () => r()) : v(t, a, () => r());
135
- });
136
- }
137
- export {
138
- O as I,
139
- A as a,
140
- W as u,
141
- C as w
142
- };
@@ -1,413 +0,0 @@
1
- import { c as K, g as X } from "../_commonjsHelpers-CT_km90n.js";
2
- var st = { exports: {} }, Q = { exports: {} }, tt;
3
- function nt() {
4
- return tt || (tt = 1, function(_, U) {
5
- (function(g, m) {
6
- _.exports = m();
7
- })(K, function() {
8
- var g = 1e3, m = 6e4, L = 36e5, p = "millisecond", d = "second", $ = "minute", r = "hour", D = "day", E = "week", Y = "month", S = "quarter", A = "year", w = "date", i = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") }, O = function(o, n, t) {
9
- var s = String(o);
10
- return !s || s.length >= n ? o : "" + Array(n + 1 - s.length).join(t) + o;
11
- }, G = { s: O, z: function(o) {
12
- var n = -o.utcOffset(), t = Math.abs(n), s = Math.floor(t / 60), e = t % 60;
13
- return (n <= 0 ? "+" : "-") + O(s, 2, "0") + ":" + O(e, 2, "0");
14
- }, m: function o(n, t) {
15
- if (n.date() < t.date())
16
- return -o(t, n);
17
- var s = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(s, Y), u = t - e < 0, a = n.clone().add(s + (u ? -1 : 1), Y);
18
- return +(-(s + (t - e) / (u ? e - a : a - e)) || 0);
19
- }, a: function(o) {
20
- return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
21
- }, p: function(o) {
22
- return { M: Y, y: A, w: E, d: D, D: w, h: r, m: $, s: d, ms: p, Q: S }[o] || String(o || "").toLowerCase().replace(/s$/, "");
23
- }, u: function(o) {
24
- return o === void 0;
25
- } }, C = "en", H = {};
26
- H[C] = k;
27
- var b = function(o) {
28
- return o instanceof V;
29
- }, W = function o(n, t, s) {
30
- var e;
31
- if (!n)
32
- return C;
33
- if (typeof n == "string") {
34
- var u = n.toLowerCase();
35
- H[u] && (e = u), t && (H[u] = t, e = u);
36
- var a = n.split("-");
37
- if (!e && a.length > 1)
38
- return o(a[0]);
39
- } else {
40
- var f = n.name;
41
- H[f] = n, e = f;
42
- }
43
- return !s && e && (C = e), e || !s && C;
44
- }, h = function(o, n) {
45
- if (b(o))
46
- return o.clone();
47
- var t = typeof n == "object" ? n : {};
48
- return t.date = o, t.args = arguments, new V(t);
49
- }, c = G;
50
- c.l = W, c.i = b, c.w = function(o, n) {
51
- return h(o, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
52
- };
53
- var V = function() {
54
- function o(t) {
55
- this.$L = W(t.locale, null, !0), this.parse(t);
56
- }
57
- var n = o.prototype;
58
- return n.parse = function(t) {
59
- this.$d = function(s) {
60
- var e = s.date, u = s.utc;
61
- if (e === null)
62
- return /* @__PURE__ */ new Date(NaN);
63
- if (c.u(e))
64
- return /* @__PURE__ */ new Date();
65
- if (e instanceof Date)
66
- return new Date(e);
67
- if (typeof e == "string" && !/Z$/i.test(e)) {
68
- var a = e.match(v);
69
- if (a) {
70
- var f = a[2] - 1 || 0, M = (a[7] || "0").substring(0, 3);
71
- return u ? new Date(Date.UTC(a[1], f, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, M)) : new Date(a[1], f, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, M);
72
- }
73
- }
74
- return new Date(e);
75
- }(t), this.$x = t.x || {}, this.init();
76
- }, n.init = function() {
77
- var t = this.$d;
78
- this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
79
- }, n.$utils = function() {
80
- return c;
81
- }, n.isValid = function() {
82
- return this.$d.toString() !== i;
83
- }, n.isSame = function(t, s) {
84
- var e = h(t);
85
- return this.startOf(s) <= e && e <= this.endOf(s);
86
- }, n.isAfter = function(t, s) {
87
- return h(t) < this.startOf(s);
88
- }, n.isBefore = function(t, s) {
89
- return this.endOf(s) < h(t);
90
- }, n.$g = function(t, s, e) {
91
- return c.u(t) ? this[s] : this.set(e, t);
92
- }, n.unix = function() {
93
- return Math.floor(this.valueOf() / 1e3);
94
- }, n.valueOf = function() {
95
- return this.$d.getTime();
96
- }, n.startOf = function(t, s) {
97
- var e = this, u = !!c.u(s) || s, a = c.p(t), f = function(z, y) {
98
- var N = c.w(e.$u ? Date.UTC(e.$y, y, z) : new Date(e.$y, y, z), e);
99
- return u ? N : N.endOf(D);
100
- }, M = function(z, y) {
101
- return c.w(e.toDate()[z].apply(e.toDate("s"), (u ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(y)), e);
102
- }, l = this.$W, T = this.$M, x = this.$D, R = "set" + (this.$u ? "UTC" : "");
103
- switch (a) {
104
- case A:
105
- return u ? f(1, 0) : f(31, 11);
106
- case Y:
107
- return u ? f(1, T) : f(0, T + 1);
108
- case E:
109
- var P = this.$locale().weekStart || 0, j = (l < P ? l + 7 : l) - P;
110
- return f(u ? x - j : x + (6 - j), T);
111
- case D:
112
- case w:
113
- return M(R + "Hours", 0);
114
- case r:
115
- return M(R + "Minutes", 1);
116
- case $:
117
- return M(R + "Seconds", 2);
118
- case d:
119
- return M(R + "Milliseconds", 3);
120
- default:
121
- return this.clone();
122
- }
123
- }, n.endOf = function(t) {
124
- return this.startOf(t, !1);
125
- }, n.$set = function(t, s) {
126
- var e, u = c.p(t), a = "set" + (this.$u ? "UTC" : ""), f = (e = {}, e[D] = a + "Date", e[w] = a + "Date", e[Y] = a + "Month", e[A] = a + "FullYear", e[r] = a + "Hours", e[$] = a + "Minutes", e[d] = a + "Seconds", e[p] = a + "Milliseconds", e)[u], M = u === D ? this.$D + (s - this.$W) : s;
127
- if (u === Y || u === A) {
128
- var l = this.clone().set(w, 1);
129
- l.$d[f](M), l.init(), this.$d = l.set(w, Math.min(this.$D, l.daysInMonth())).$d;
130
- } else
131
- f && this.$d[f](M);
132
- return this.init(), this;
133
- }, n.set = function(t, s) {
134
- return this.clone().$set(t, s);
135
- }, n.get = function(t) {
136
- return this[c.p(t)]();
137
- }, n.add = function(t, s) {
138
- var e, u = this;
139
- t = Number(t);
140
- var a = c.p(s), f = function(T) {
141
- var x = h(u);
142
- return c.w(x.date(x.date() + Math.round(T * t)), u);
143
- };
144
- if (a === Y)
145
- return this.set(Y, this.$M + t);
146
- if (a === A)
147
- return this.set(A, this.$y + t);
148
- if (a === D)
149
- return f(1);
150
- if (a === E)
151
- return f(7);
152
- var M = (e = {}, e[$] = m, e[r] = L, e[d] = g, e)[a] || 1, l = this.$d.getTime() + t * M;
153
- return c.w(l, this);
154
- }, n.subtract = function(t, s) {
155
- return this.add(-1 * t, s);
156
- }, n.format = function(t) {
157
- var s = this, e = this.$locale();
158
- if (!this.isValid())
159
- return e.invalidDate || i;
160
- var u = t || "YYYY-MM-DDTHH:mm:ssZ", a = c.z(this), f = this.$H, M = this.$m, l = this.$M, T = e.weekdays, x = e.months, R = function(y, N, q, Z) {
161
- return y && (y[N] || y(s, u)) || q[N].substr(0, Z);
162
- }, P = function(y) {
163
- return c.s(f % 12 || 12, y, "0");
164
- }, j = e.meridiem || function(y, N, q) {
165
- var Z = y < 12 ? "AM" : "PM";
166
- return q ? Z.toLowerCase() : Z;
167
- }, z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: l + 1, MM: c.s(l + 1, 2, "0"), MMM: R(e.monthsShort, l, x, 3), MMMM: R(x, l), D: this.$D, DD: c.s(this.$D, 2, "0"), d: String(this.$W), dd: R(e.weekdaysMin, this.$W, T, 2), ddd: R(e.weekdaysShort, this.$W, T, 3), dddd: T[this.$W], H: String(f), HH: c.s(f, 2, "0"), h: P(1), hh: P(2), a: j(f, M, !0), A: j(f, M, !1), m: String(M), mm: c.s(M, 2, "0"), s: String(this.$s), ss: c.s(this.$s, 2, "0"), SSS: c.s(this.$ms, 3, "0"), Z: a };
168
- return u.replace(F, function(y, N) {
169
- return N || z[y] || a.replace(":", "");
170
- });
171
- }, n.utcOffset = function() {
172
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
173
- }, n.diff = function(t, s, e) {
174
- var u, a = c.p(s), f = h(t), M = (f.utcOffset() - this.utcOffset()) * m, l = this - f, T = c.m(this, f);
175
- return T = (u = {}, u[A] = T / 12, u[Y] = T, u[S] = T / 3, u[E] = (l - M) / 6048e5, u[D] = (l - M) / 864e5, u[r] = l / L, u[$] = l / m, u[d] = l / g, u)[a] || l, e ? T : c.a(T);
176
- }, n.daysInMonth = function() {
177
- return this.endOf(Y).$D;
178
- }, n.$locale = function() {
179
- return H[this.$L];
180
- }, n.locale = function(t, s) {
181
- if (!t)
182
- return this.$L;
183
- var e = this.clone(), u = W(t, s, !0);
184
- return u && (e.$L = u), e;
185
- }, n.clone = function() {
186
- return c.w(this.$d, this);
187
- }, n.toDate = function() {
188
- return new Date(this.valueOf());
189
- }, n.toJSON = function() {
190
- return this.isValid() ? this.toISOString() : null;
191
- }, n.toISOString = function() {
192
- return this.$d.toISOString();
193
- }, n.toString = function() {
194
- return this.$d.toUTCString();
195
- }, o;
196
- }(), B = V.prototype;
197
- return h.prototype = B, [["$ms", p], ["$s", d], ["$m", $], ["$H", r], ["$W", D], ["$M", Y], ["$y", A], ["$D", w]].forEach(function(o) {
198
- B[o[1]] = function(n) {
199
- return this.$g(n, o[0], o[1]);
200
- };
201
- }), h.extend = function(o, n) {
202
- return o.$i || (o(n, V, h), o.$i = !0), h;
203
- }, h.locale = W, h.isDayjs = b, h.unix = function(o) {
204
- return h(1e3 * o);
205
- }, h.en = H[C], h.Ls = H, h.p = {}, h;
206
- });
207
- }(Q)), Q.exports;
208
- }
209
- (function(_, U) {
210
- (function(g, m) {
211
- _.exports = m(nt());
212
- })(K, function(g) {
213
- function m(d) {
214
- return d && typeof d == "object" && "default" in d ? d : { default: d };
215
- }
216
- var L = m(g), p = { name: "tr", weekdays: "Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"), weekdaysShort: "Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"), weekdaysMin: "Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"), months: "Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"), monthsShort: "Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"), weekStart: 1, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, relativeTime: { future: "%s sonra", past: "%s önce", s: "birkaç saniye", m: "bir dakika", mm: "%d dakika", h: "bir saat", hh: "%d saat", d: "bir gün", dd: "%d gün", M: "bir ay", MM: "%d ay", y: "bir yıl", yy: "%d yıl" }, ordinal: function(d) {
217
- return d + ".";
218
- } };
219
- return L.default.locale(p, null, !0), p;
220
- });
221
- })(st);
222
- var at = nt();
223
- const I = /* @__PURE__ */ X(at);
224
- var rt = { exports: {} };
225
- (function(_, U) {
226
- (function(g, m) {
227
- _.exports = m();
228
- })(K, function() {
229
- return function(g, m, L) {
230
- var p = m.prototype, d = p.format;
231
- L.en.ordinal = function($) {
232
- var r = ["th", "st", "nd", "rd"], D = $ % 100;
233
- return "[" + $ + (r[(D - 20) % 10] || r[D] || r[0]) + "]";
234
- }, p.format = function($) {
235
- var r = this, D = this.$locale();
236
- if (!this.isValid())
237
- return d.bind(this)($);
238
- var E = this.$utils(), Y = ($ || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(S) {
239
- switch (S) {
240
- case "Q":
241
- return Math.ceil((r.$M + 1) / 3);
242
- case "Do":
243
- return D.ordinal(r.$D);
244
- case "gggg":
245
- return r.weekYear();
246
- case "GGGG":
247
- return r.isoWeekYear();
248
- case "wo":
249
- return D.ordinal(r.week(), "W");
250
- case "w":
251
- case "ww":
252
- return E.s(r.week(), S === "w" ? 1 : 2, "0");
253
- case "W":
254
- case "WW":
255
- return E.s(r.isoWeek(), S === "W" ? 1 : 2, "0");
256
- case "k":
257
- case "kk":
258
- return E.s(String(r.$H === 0 ? 24 : r.$H), S === "k" ? 1 : 2, "0");
259
- case "X":
260
- return Math.floor(r.$d.getTime() / 1e3);
261
- case "x":
262
- return r.$d.getTime();
263
- case "z":
264
- return "[" + r.offsetName() + "]";
265
- case "zzz":
266
- return "[" + r.offsetName("long") + "]";
267
- default:
268
- return S;
269
- }
270
- });
271
- return d.bind(this)(Y);
272
- };
273
- };
274
- });
275
- })(rt);
276
- var ut = rt.exports;
277
- const ot = /* @__PURE__ */ X(ut);
278
- var it = { exports: {} };
279
- (function(_, U) {
280
- (function(g, m) {
281
- _.exports = m();
282
- })(K, function() {
283
- var g = "minute", m = /[+-]\d\d(?::?\d\d)?/g, L = /([+-]|\d\d)/g;
284
- return function(p, d, $) {
285
- var r = d.prototype;
286
- $.utc = function(i) {
287
- var v = { date: i, utc: !0, args: arguments };
288
- return new d(v);
289
- }, r.utc = function(i) {
290
- var v = $(this.toDate(), { locale: this.$L, utc: !0 });
291
- return i ? v.add(this.utcOffset(), g) : v;
292
- }, r.local = function() {
293
- return $(this.toDate(), { locale: this.$L, utc: !1 });
294
- };
295
- var D = r.parse;
296
- r.parse = function(i) {
297
- i.utc && (this.$u = !0), this.$utils().u(i.$offset) || (this.$offset = i.$offset), D.call(this, i);
298
- };
299
- var E = r.init;
300
- r.init = function() {
301
- if (this.$u) {
302
- var i = this.$d;
303
- this.$y = i.getUTCFullYear(), this.$M = i.getUTCMonth(), this.$D = i.getUTCDate(), this.$W = i.getUTCDay(), this.$H = i.getUTCHours(), this.$m = i.getUTCMinutes(), this.$s = i.getUTCSeconds(), this.$ms = i.getUTCMilliseconds();
304
- } else
305
- E.call(this);
306
- };
307
- var Y = r.utcOffset;
308
- r.utcOffset = function(i, v) {
309
- var F = this.$utils().u;
310
- if (F(i))
311
- return this.$u ? 0 : F(this.$offset) ? Y.call(this) : this.$offset;
312
- if (typeof i == "string" && (i = function(C) {
313
- C === void 0 && (C = "");
314
- var H = C.match(m);
315
- if (!H)
316
- return null;
317
- var b = ("" + H[0]).match(L) || ["-", 0, 0], W = b[0], h = 60 * +b[1] + +b[2];
318
- return h === 0 ? 0 : W === "+" ? h : -h;
319
- }(i), i === null))
320
- return this;
321
- var k = Math.abs(i) <= 16 ? 60 * i : i, O = this;
322
- if (v)
323
- return O.$offset = k, O.$u = i === 0, O;
324
- if (i !== 0) {
325
- var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
326
- (O = this.local().add(k + G, g)).$offset = k, O.$x.$localOffset = G;
327
- } else
328
- O = this.utc();
329
- return O;
330
- };
331
- var S = r.format;
332
- r.format = function(i) {
333
- var v = i || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
334
- return S.call(this, v);
335
- }, r.valueOf = function() {
336
- var i = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || (/* @__PURE__ */ new Date()).getTimezoneOffset());
337
- return this.$d.valueOf() - 6e4 * i;
338
- }, r.isUTC = function() {
339
- return !!this.$u;
340
- }, r.toISOString = function() {
341
- return this.toDate().toISOString();
342
- }, r.toString = function() {
343
- return this.toDate().toUTCString();
344
- };
345
- var A = r.toDate;
346
- r.toDate = function(i) {
347
- return i === "s" && this.$offset ? $(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : A.call(this);
348
- };
349
- var w = r.diff;
350
- r.diff = function(i, v, F) {
351
- if (i && this.$u === i.$u)
352
- return w.call(this, i, v, F);
353
- var k = this.local(), O = $(i).local();
354
- return w.call(k, O, v, F);
355
- };
356
- };
357
- });
358
- })(it);
359
- var ft = it.exports;
360
- const ct = /* @__PURE__ */ X(ft);
361
- I.extend(ct);
362
- I.extend(ot);
363
- I.locale("tr");
364
- var ht = /* @__PURE__ */ ((_) => (_.moonStringDateFormat = "dd MMM yyyy", _.defaultDateFormat = "dd.MM.yyyy", _.defaultTimeFormat = "HH:MM:ss", _))(ht || {});
365
- const et = "YYYY-MM-DD", lt = "YYYY-MM-DD HH:mm", J = "DD MMM YYYY", $t = "DD-MM-YYYY", dt = "DD MMMM YYYY HH:mm", Mt = "DD MMM YY HH:mm", mt = "YYYY-MM-DD", Dt = "H:i", Tt = "HH:mm", Yt = /* @__PURE__ */ new Date(), gt = I().add(1, "day").toDate(), yt = (_, U = "single", g = !1) => {
366
- switch (U) {
367
- case "datetime":
368
- return I(_, lt).format(
369
- g ? Mt : dt
370
- );
371
- case "single":
372
- return I(_, J).format(
373
- J
374
- );
375
- case "range":
376
- return `${I(_.starDate, et).format(
377
- J
378
- )} - ${I(_.endDate, et).format(
379
- J
380
- )}`;
381
- default:
382
- return _;
383
- }
384
- }, vt = {
385
- SERVER_DATE_FORMAT: "YYYY-MM-DD",
386
- SERVER_DATE_AND_TIME_FORMAT: "YYYY-MM-DD HH:mm",
387
- CLIENT_DATE_SHORT_FORMAT: "DD MMM YYYY",
388
- CLIENT_DATE_COMPARE_FORMAT: "DD-MM-YYYY",
389
- CLIENT_DATE_AND_TIME_FORMAT: "DD MMMM YYYY HH:mm",
390
- CLIENT_DATE_AND_TIME_SHORT_FORMAT: "DD MMM YY HH:mm",
391
- CLIENT_DATE_FILTER_FORMAT: "YYYY-MM-DD",
392
- CLIENT_TIME_FORMAT_PICKER: "H:i",
393
- CLIENT_TIME_FORMAT: "HH:mm",
394
- MIN_DATE_TODAY: /* @__PURE__ */ new Date(),
395
- MIN_DATE_TOMORROW: I().add(1, "day").toDate()
396
- };
397
- export {
398
- dt as CLIENT_DATE_AND_TIME_FORMAT,
399
- Mt as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
400
- $t as CLIENT_DATE_COMPARE_FORMAT,
401
- mt as CLIENT_DATE_FILTER_FORMAT,
402
- J as CLIENT_DATE_SHORT_FORMAT,
403
- Tt as CLIENT_TIME_FORMAT,
404
- Dt as CLIENT_TIME_FORMAT_PICKER,
405
- ht as DateFormat,
406
- vt as DateFormats,
407
- Yt as MIN_DATE_TODAY,
408
- gt as MIN_DATE_TOMORROW,
409
- lt as SERVER_DATE_AND_TIME_FORMAT,
410
- et as SERVER_DATE_FORMAT,
411
- I as default,
412
- yt as friendlyDate
413
- };
@@ -1,4 +0,0 @@
1
- import { t as o } from "../flatpickr-CRz1AV0e.js";
2
- export {
3
- o as tr
4
- };
@@ -1,55 +0,0 @@
1
- import { useState as s, useEffect as c } from "react";
2
- import { DateFormat as i } from "./date.js";
3
- import { f as l, p as u } from "../index-JNaMEwgt.js";
4
- import { u as m } from "../index-9ZLCCecr.js";
5
- const v = (e) => e ? l(u(e), i.defaultDateFormat) : null, I = (e) => e && e.replace(/\s(.)/g, (t) => t.toUpperCase()).replace(/\s/g, " ").replace(/^(.)/, (t) => t.toUpperCase()), w = (e) => e.split(/(\s+)/).filter((t) => t.trim().length > 0), F = (e) => {
6
- if (e)
7
- return new Promise((t, r) => {
8
- const a = new FileReader();
9
- a.readAsDataURL(e), a.onload = () => t(a.result), a.onerror = (o) => r(o);
10
- });
11
- }, T = async (e) => {
12
- const r = await (await fetch(e)).blob();
13
- return new Promise((a) => {
14
- const o = new FileReader();
15
- o.readAsDataURL(r), o.onloadend = () => {
16
- const n = o.result;
17
- a(n);
18
- };
19
- });
20
- }, U = (e) => {
21
- navigator.clipboard.writeText(e);
22
- }, h = (e, t) => {
23
- const [r, a] = s();
24
- return c(() => {
25
- const o = setInterval(e, t);
26
- return a(o), () => clearInterval(o);
27
- }, []), () => clearInterval(r);
28
- }, C = () => new URLSearchParams(m().search), g = (e) => Object.keys(e).sort().reduce(function(t, r) {
29
- return t[r] = e[r], t;
30
- }, {}), D = (e) => e.charAt(0).toUpperCase() + e.slice(1), L = (e, t) => e.replace(t, "").trim();
31
- function R(e, t) {
32
- let r;
33
- const a = function(...o) {
34
- clearTimeout(r), r = setTimeout(() => {
35
- e(...o);
36
- }, t);
37
- };
38
- return a.cancel = () => {
39
- clearTimeout(r);
40
- }, a;
41
- }
42
- export {
43
- D as capitalizeFirstLetter,
44
- T as convertBase64FromUrl,
45
- F as convertToBase64,
46
- U as copyToClipboard,
47
- R as debounce,
48
- v as formatDate,
49
- L as removeTextFromString,
50
- g as sortObj,
51
- w as splitStringByWhitespace,
52
- I as toCamelCase,
53
- h as useInterval,
54
- C as useQuery
55
- };
@@ -1,24 +0,0 @@
1
- import { CLIENT_DATE_AND_TIME_FORMAT as E, CLIENT_DATE_AND_TIME_SHORT_FORMAT as A, CLIENT_DATE_COMPARE_FORMAT as R, CLIENT_DATE_FILTER_FORMAT as M, CLIENT_DATE_SHORT_FORMAT as a, CLIENT_TIME_FORMAT as e, CLIENT_TIME_FORMAT_PICKER as I, DateFormats as O, MIN_DATE_TODAY as D, MIN_DATE_TOMORROW as r, SERVER_DATE_AND_TIME_FORMAT as t, SERVER_DATE_FORMAT as N, default as F, friendlyDate as L } from "./date.js";
2
- import { changeLanguage as o, getCurrentLanguage as f, getDatepickerLocale as g } from "./language.js";
3
- import { f as s, p as m } from "../index-JNaMEwgt.js";
4
- export {
5
- E as CLIENT_DATE_AND_TIME_FORMAT,
6
- A as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
7
- R as CLIENT_DATE_COMPARE_FORMAT,
8
- M as CLIENT_DATE_FILTER_FORMAT,
9
- a as CLIENT_DATE_SHORT_FORMAT,
10
- e as CLIENT_TIME_FORMAT,
11
- I as CLIENT_TIME_FORMAT_PICKER,
12
- O as DateFormats,
13
- D as MIN_DATE_TODAY,
14
- r as MIN_DATE_TOMORROW,
15
- t as SERVER_DATE_AND_TIME_FORMAT,
16
- N as SERVER_DATE_FORMAT,
17
- o as changeLanguage,
18
- F as dayjs,
19
- s as format,
20
- L as friendlyDate,
21
- f as getCurrentLanguage,
22
- g as getDatepickerLocale,
23
- m as parseISO
24
- };