@sydsoft/base 2.0.0 → 2.1.0
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/dist/esm/_lib/inputMask.js +1 -1
- package/dist/esm/_lib/storage/cookies.js +1 -1
- package/dist/esm/_lib/storage/encData.js +1 -1
- package/dist/esm/_lib/storage/localStorage.js +2 -2
- package/dist/esm/_lib/storage/sessionStorage.js +2 -2
- package/dist/esm/box/index.js +4 -4
- package/dist/esm/countDown/index.js +1 -1
- package/dist/esm/form/Button.js +2 -2
- package/dist/esm/form/Dialog.js +3 -3
- package/dist/esm/form/FormOlustur.js +3 -3
- package/dist/esm/form/Input.js +4 -4
- package/dist/esm/form/Label.js +1 -1
- package/dist/esm/form/SearchableInput.js +4 -4
- package/dist/esm/form/UploadBase.js +1 -1
- package/dist/esm/form/index.js +9 -9
- package/dist/esm/icon/index.js +1 -1
- package/dist/esm/index.js +19 -19
- package/dist/esm/menu/index.js +2 -2
- package/package.json +11 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
4
|
* @version : 2026-02-10 20:23:07
|
|
5
5
|
*/
|
|
6
|
-
import { isDev } from "./baseFunctions";
|
|
6
|
+
import { isDev } from "./baseFunctions.js";
|
|
7
7
|
// Mask işleme core fonksiyonları
|
|
8
8
|
var createMaskCore = function () {
|
|
9
9
|
var defaultTranslation = {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { __assign } from "tslib";
|
|
7
7
|
import nookies, { destroyCookie, parseCookies, setCookie } from 'nookies';
|
|
8
|
-
import { getDomain } from '../baseFunctions';
|
|
8
|
+
import { getDomain } from '../baseFunctions.js';
|
|
9
9
|
export var cerezOku = function (context, key) {
|
|
10
10
|
if (context === void 0) { context = null; }
|
|
11
11
|
var cookies = context ? nookies.get(context) : parseCookies();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
4
|
* @version : 2026-02-10 20:23:07
|
|
5
5
|
*/
|
|
6
|
-
import { isDev } from "../baseFunctions";
|
|
6
|
+
import { isDev } from "../baseFunctions.js";
|
|
7
7
|
var encDecDataKeys = [3, 5, 8, 11, 15, 22];
|
|
8
8
|
export var encData = function (data, keys) {
|
|
9
9
|
if (keys === void 0) { keys = encDecDataKeys; }
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
4
|
* @version : 2026-02-10 20:23:07
|
|
5
5
|
*/
|
|
6
|
-
import { decData, encData } from './encData';
|
|
7
|
-
import { isDev } from '../baseFunctions';
|
|
6
|
+
import { decData, encData } from './encData.js';
|
|
7
|
+
import { isDev } from '../baseFunctions.js';
|
|
8
8
|
var storageAvailable = typeof Storage === 'undefined' || !window.localStorage ? false : true;
|
|
9
9
|
export var setLocalStorage = function (key, value) {
|
|
10
10
|
if (!storageAvailable)
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
4
|
* @version : 2026-02-10 20:23:07
|
|
5
5
|
*/
|
|
6
|
-
import { decData, encData } from "./encData";
|
|
7
|
-
import { isDev } from "../baseFunctions";
|
|
6
|
+
import { decData, encData } from "./encData.js";
|
|
7
|
+
import { isDev } from "../baseFunctions.js";
|
|
8
8
|
var storageAvailable = typeof Storage === "undefined" || !window.sessionStorage ? false : true;
|
|
9
9
|
export var setSessionStorage = function (key, value) {
|
|
10
10
|
if (!storageAvailable)
|
package/dist/esm/box/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @author: izzetseydaoglu
|
|
4
4
|
* @last-modified: 29.01.2024 02:41
|
|
5
5
|
*/
|
|
6
|
-
export * from "./Box";
|
|
7
|
-
export * from './BoxContent';
|
|
8
|
-
export * from './BoxFooter';
|
|
9
|
-
export * from './BoxHeader';
|
|
6
|
+
export * from "./Box.js";
|
|
7
|
+
export * from './BoxContent.js';
|
|
8
|
+
export * from './BoxFooter.js';
|
|
9
|
+
export * from './BoxHeader.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { useEffect, useRef, useState } from 'react';
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { useInterval } from '../_lib/useInterval';
|
|
8
|
+
import { useInterval } from '../_lib/useInterval.js';
|
|
9
9
|
export var useCountDown = function (_a) {
|
|
10
10
|
var _b = _a.autoStart, autoStart = _b === void 0 ? false : _b, onComplete = _a.onComplete, getStatus = _a.getStatus, targetTime = _a.targetTime, _c = _a.timerType, timerType = _c === void 0 ? 'countdown' : _c, _d = _a.countType, countType = _d === void 0 ? 'seconds' : _d, _e = _a.speed, speed = _e === void 0 ? 1000 : _e, hide = _a.hide;
|
|
11
11
|
var refCountDownRender = useRef(null);
|
package/dist/esm/form/Button.js
CHANGED
|
@@ -5,9 +5,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
6
6
|
* @version : 2026-02-10 20:23:07
|
|
7
7
|
*/
|
|
8
|
-
import { Dialog } from "./Dialog";
|
|
8
|
+
import { Dialog } from "./Dialog.js";
|
|
9
9
|
import { memo, useCallback, useEffect, useState } from "react";
|
|
10
|
-
import { Tooltip } from "../tooltip";
|
|
10
|
+
import { Tooltip } from "../tooltip/index.js";
|
|
11
11
|
import Link from "next/link";
|
|
12
12
|
import styles from "./styles/Button.module.css";
|
|
13
13
|
export var Button = memo(function MemoFunction(_a) {
|
package/dist/esm/form/Dialog.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Box, BoxFooter } from '../box';
|
|
3
|
+
import { Box, BoxFooter } from '../box/index.js';
|
|
4
4
|
import { createRoot } from 'react-dom/client';
|
|
5
|
-
import { Modal } from '../modal';
|
|
6
|
-
import { Button } from './Button';
|
|
5
|
+
import { Modal } from '../modal/index.js';
|
|
6
|
+
import { Button } from './Button.js';
|
|
7
7
|
export var Dialog = function (config) {
|
|
8
8
|
return new Promise(function (resolve) {
|
|
9
9
|
if (typeof window === 'undefined')
|
|
@@ -6,9 +6,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* @version : 2026-02-10 20:23:07
|
|
7
7
|
*/
|
|
8
8
|
import React, { memo, useEffect, useMemo } from 'react';
|
|
9
|
-
import { Col, Row } from '../grid';
|
|
10
|
-
import { isDev } from '../_lib/baseFunctions';
|
|
11
|
-
import { Label } from './Label';
|
|
9
|
+
import { Col, Row } from '../grid/index.js';
|
|
10
|
+
import { isDev } from '../_lib/baseFunctions.js';
|
|
11
|
+
import { Label } from './Label.js';
|
|
12
12
|
export var FormOlustur = memo(function FunctionMemo(props) {
|
|
13
13
|
var form = props.form, formOgeler = props.formOgeler, onChange = props.onChange, formType = props.formType, sabitGrid = props.sabitGrid, justifyContent = props.justifyContent, rowSpacing = props.rowSpacing, colSpacing = props.colSpacing;
|
|
14
14
|
useEffect(function () {
|
package/dist/esm/form/Input.js
CHANGED
|
@@ -6,10 +6,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* @version : 2026-01-21 21:35:48
|
|
7
7
|
*/
|
|
8
8
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
9
|
-
import { convertForSEO, inputTumuBuyukCevir, inputTumuKucukCevir } from '../_lib/baseFunctions';
|
|
10
|
-
import { applyInputMask } from '../_lib/inputMask';
|
|
11
|
-
import { alert_add } from '../alert';
|
|
12
|
-
import { Dialog } from './Dialog';
|
|
9
|
+
import { convertForSEO, inputTumuBuyukCevir, inputTumuKucukCevir } from '../_lib/baseFunctions.js';
|
|
10
|
+
import { applyInputMask } from '../_lib/inputMask.js';
|
|
11
|
+
import { alert_add } from '../alert/index.js';
|
|
12
|
+
import { Dialog } from './Dialog.js';
|
|
13
13
|
import styles from './styles/Input.module.css';
|
|
14
14
|
export var Input = function (_a) {
|
|
15
15
|
var componentRef = _a.componentRef, inputRef = _a.inputRef, className = _a.className, propsComponent = _a.propsComponent, propsInput = _a.propsInput, id = _a.id, name = _a.name, _b = _a.value, value = _b === void 0 ? '' : _b, type = _a.type, label = _a.label, startAdornment = _a.startAdornment, endAdornment = _a.endAdornment, placeholder = _a.placeholder, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, onClick = _a.onClick, onKeyPress = _a.onKeyPress, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.required, required = _d === void 0 ? false : _d, _e = _a.loading, loading = _e === void 0 ? false : _e, _f = _a.autoFocus, autoFocus = _f === void 0 ? false : _f, select = _a.select, _g = _a.valueKey, valueKey = _g === void 0 ? 'value' : _g, _h = _a.labelKey, labelKey = _h === void 0 ? 'label' : _h, _j = _a.ilkSec, ilkSec = _j === void 0 ? false : _j, _k = _a.multiline, multiline = _k === void 0 ? false : _k, _l = _a.rows, rows = _l === void 0 ? 2 : _l, sadeceYazi = _a.sadeceYazi, sadeceSayi = _a.sadeceSayi, tumuBuyuk = _a.tumuBuyuk, tumuKucuk = _a.tumuKucuk, seoCevir = _a.seoCevir, dosyaNoGiris = _a.dosyaNoGiris, fileNameGiris = _a.fileNameGiris, dateGecmisKontrol = _a.dateGecmisKontrol, autoSelectText = _a.autoSelectText, _m = _a.mask, mask = _m === void 0 ? '' : _m, _o = _a.maskSettings, maskSettings = _o === void 0 ? {
|
package/dist/esm/form/Label.js
CHANGED
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* @version : 2026-02-10 20:23:07
|
|
7
7
|
*/
|
|
8
8
|
import { memo } from 'react';
|
|
9
|
-
import { Tooltip } from '../tooltip';
|
|
9
|
+
import { Tooltip } from '../tooltip/index.js';
|
|
10
10
|
import styles from './styles/Label.module.css';
|
|
11
11
|
export var Label = memo(function FMemo(_a) {
|
|
12
12
|
var _b = _a.required, required = _b === void 0 ? false : _b, children = _a.children, other = __rest(_a, ["required", "children"]);
|
|
@@ -5,11 +5,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
6
6
|
* @version : 2026-02-10 20:23:07
|
|
7
7
|
*/
|
|
8
|
-
import { Button, Input } from './index';
|
|
9
|
-
import { convertForSearch, convertLowerCase } from '../_lib/baseFunctions';
|
|
8
|
+
import { Button, Input } from './index.js';
|
|
9
|
+
import { convertForSearch, convertLowerCase } from '../_lib/baseFunctions.js';
|
|
10
10
|
import { forwardRef, useCallback, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
11
|
-
import { onKeyboardSelection, setScrollListPosition } from '../_lib/listFunctions';
|
|
12
|
-
import { Icon } from '../icon';
|
|
11
|
+
import { onKeyboardSelection, setScrollListPosition } from '../_lib/listFunctions.js';
|
|
12
|
+
import { Icon } from '../icon/index.js';
|
|
13
13
|
import styles from './styles/SearchableInput.module.css';
|
|
14
14
|
export var SearchableInput = forwardRef(function (_a, ref) {
|
|
15
15
|
var _b = _a.autoCompleteList, autoCompleteList = _b === void 0 ? [] : _b, isDataFromApi = _a.isDataFromApi, name = _a.name, value = _a.value, parentInputValue = _a.parentInputValue, disabled = _a.disabled, itemComponent = _a.itemComponent, _c = _a.valueKey, valueKey = _c === void 0 ? 'value' : _c, _d = _a.labelKey, labelKey = _d === void 0 ? 'label' : _d, onSelect = _a.onSelect, onChange = _a.onChange, onText = _a.onText, onLoad = _a.onLoad, style = _a.style, _e = _a.listPositionRelative, listPositionRelative = _e === void 0 ? false : _e, _f = _a.loadingMessage, loadingMessage = _f === void 0 ? 'Lütfen bekleyiniz...' : _f, _g = _a.notFoundMessage, notFoundMessage = _g === void 0 ? 'Kayıt bulunamadı...' : _g, placeholder = _a.placeholder, endAdornment = _a.endAdornment, _h = _a.ilkSec, ilkSec = _h === void 0 ? false : _h, _j = _a.newCreate, newCreate = _j === void 0 ? false : _j, inputRef = _a.inputRef, other = __rest(_a, ["autoCompleteList", "isDataFromApi", "name", "value", "parentInputValue", "disabled", "itemComponent", "valueKey", "labelKey", "onSelect", "onChange", "onText", "onLoad", "style", "listPositionRelative", "loadingMessage", "notFoundMessage", "placeholder", "endAdornment", "ilkSec", "newCreate", "inputRef"]);
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* @last-modified: 11.06.2024 02:39
|
|
7
7
|
*/
|
|
8
8
|
import { useEffect, useRef } from "react";
|
|
9
|
-
import { alert_add } from "../alert";
|
|
9
|
+
import { alert_add } from "../alert/index.js";
|
|
10
10
|
var upload_ext_ok = ["pdf", "doc", "docx", "xls", "xlsx", "jpg", "jpeg", "png", "bmp", "tiff", "tif", "udf", "txt", "rtf", "csv", "xml", "zip", "rar"];
|
|
11
11
|
var upload_maxsize = 30;
|
|
12
12
|
var upload_maxfile = 50;
|
package/dist/esm/form/index.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
4
|
* @version : 2026-02-10 20:23:07
|
|
5
5
|
*/
|
|
6
|
-
export * from "./Button";
|
|
7
|
-
export * from "./Checkbox";
|
|
8
|
-
export * from "./Dialog";
|
|
9
|
-
export * from "./Form";
|
|
10
|
-
export * from "./FormOlustur";
|
|
11
|
-
export * from "./Input";
|
|
12
|
-
export * from "./Label";
|
|
13
|
-
export * from "./SearchableInput";
|
|
14
|
-
export * from "./UploadBase";
|
|
6
|
+
export * from "./Button.js";
|
|
7
|
+
export * from "./Checkbox.js";
|
|
8
|
+
export * from "./Dialog.js";
|
|
9
|
+
export * from "./Form.js";
|
|
10
|
+
export * from "./FormOlustur.js";
|
|
11
|
+
export * from "./Input.js";
|
|
12
|
+
export * from "./Label.js";
|
|
13
|
+
export * from "./SearchableInput.js";
|
|
14
|
+
export * from "./UploadBase.js";
|
package/dist/esm/icon/index.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
4
|
* @version : 2026-02-10 20:23:11
|
|
5
5
|
*/
|
|
6
|
-
export * from './_lib/baseFunctions';
|
|
7
|
-
export * from './_lib/inputMask';
|
|
8
|
-
export * from './_lib/listFunctions';
|
|
9
|
-
export * from './_lib/storage/cookies';
|
|
10
|
-
export * from './_lib/storage/encData';
|
|
11
|
-
export * from './_lib/storage/localStorage';
|
|
12
|
-
export * from './_lib/storage/sessionStorage';
|
|
13
|
-
export * from './_lib/useInterval';
|
|
14
|
-
export * from './alert';
|
|
15
|
-
export * from './box';
|
|
16
|
-
export * from './countDown';
|
|
17
|
-
export * from './dateTime';
|
|
18
|
-
export * from './form';
|
|
19
|
-
export * from './grid';
|
|
20
|
-
export * from './icon';
|
|
21
|
-
export * from './menu';
|
|
22
|
-
export * from './modal';
|
|
23
|
-
export * from './popover';
|
|
24
|
-
export * from './tooltip';
|
|
6
|
+
export * from './_lib/baseFunctions.js';
|
|
7
|
+
export * from './_lib/inputMask.js';
|
|
8
|
+
export * from './_lib/listFunctions.js';
|
|
9
|
+
export * from './_lib/storage/cookies.js';
|
|
10
|
+
export * from './_lib/storage/encData.js';
|
|
11
|
+
export * from './_lib/storage/localStorage.js';
|
|
12
|
+
export * from './_lib/storage/sessionStorage.js';
|
|
13
|
+
export * from './_lib/useInterval.js';
|
|
14
|
+
export * from './alert/index.js';
|
|
15
|
+
export * from './box/index.js';
|
|
16
|
+
export * from './countDown/index.js';
|
|
17
|
+
export * from './dateTime/index.js';
|
|
18
|
+
export * from './form/index.js';
|
|
19
|
+
export * from './grid/index.js';
|
|
20
|
+
export * from './icon/index.js';
|
|
21
|
+
export * from './menu/index.js';
|
|
22
|
+
export * from './modal/index.js';
|
|
23
|
+
export * from './popover/index.js';
|
|
24
|
+
export * from './tooltip/index.js';
|
package/dist/esm/menu/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
6
6
|
* @version : 2026-02-11 18:48:47
|
|
7
7
|
*/
|
|
8
8
|
import React, { memo, useMemo } from 'react';
|
|
9
|
-
import { Dialog } from '../form';
|
|
10
|
-
import { Popover } from '../popover';
|
|
9
|
+
import { Dialog } from '../form/index.js';
|
|
10
|
+
import { Popover } from '../popover/index.js';
|
|
11
11
|
import Link from 'next/link';
|
|
12
12
|
import styles from './index.module.css';
|
|
13
13
|
export var Menu = memo(function MemoFunction(_a) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sydsoft/base",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "./dist/esm/index.js",
|
|
6
7
|
"module": "./dist/esm/index.js",
|
|
7
8
|
"types": "./dist/esm/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/esm/index.d.ts",
|
|
12
|
+
"import": "./dist/esm/index.js",
|
|
13
|
+
"default": "./dist/esm/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
8
16
|
"files": [
|
|
9
17
|
"./dist/",
|
|
10
18
|
"README.md"
|
|
@@ -13,7 +21,8 @@
|
|
|
13
21
|
"clean": "rm -rf ./dist",
|
|
14
22
|
"test": "rm -rf ../*.tgz && rm -rf ../.next && npm run build && npm pack --pack-destination ../ && cd ../ && npm uninstall @sydsoft/base && npm install *.tgz && npm run dev",
|
|
15
23
|
"copyFiles": "find . -name \"*.css\" -not -path \"./dist/*\" -exec sh -c 'for f do mkdir -p \"./dist/esm/$(dirname \"$f\")\"; cp \"$f\" \"./dist/esm/$f\"; done' sh {} +",
|
|
16
|
-
"
|
|
24
|
+
"fixEsmImports": "node ./scripts/fix-esm-imports.mjs",
|
|
25
|
+
"build": "npm run clean && tsc && npm run fixEsmImports && npm run copyFiles",
|
|
17
26
|
"publish:patch": "npm run build && npm version patch && npm publish --access public && npm run clean",
|
|
18
27
|
"publish:minor": "npm run build && npm version minor && npm publish --access public && npm run clean",
|
|
19
28
|
"publish:major": "npm run build && npm version major && npm publish --access public && npm run clean",
|