@e1011/es-kit 1.5.2 → 1.5.4
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/lib/cjs/src/core/utils/appState/peregrineMQ/peregrineMQ.js +1 -1
- package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -1
- package/dist/lib/cjs/src/core/utils/array.js +1 -1
- package/dist/lib/cjs/src/core/utils/array.js.map +1 -1
- package/dist/lib/cjs/src/core/utils/date.js +1 -1
- package/dist/lib/cjs/src/core/utils/date.js.map +1 -1
- package/dist/lib/cjs/src/core/utils/helpers/other.js +1 -1
- package/dist/lib/cjs/src/core/utils/helpers/other.js.map +1 -1
- package/dist/lib/cjs/src/core/utils/helpers/textValueOperations.js +1 -1
- package/dist/lib/cjs/src/core/utils/helpers/textValueOperations.js.map +1 -1
- package/dist/lib/cjs/src/index.js +1 -1
- package/dist/lib/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js +9 -10
- package/dist/lib/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -1
- package/dist/lib/esm/src/core/utils/array.js +2 -18
- package/dist/lib/esm/src/core/utils/array.js.map +1 -1
- package/dist/lib/esm/src/core/utils/date.js +38 -42
- package/dist/lib/esm/src/core/utils/date.js.map +1 -1
- package/dist/lib/esm/src/core/utils/helpers/other.js +24 -19
- package/dist/lib/esm/src/core/utils/helpers/other.js.map +1 -1
- package/dist/lib/esm/src/core/utils/helpers/textValueOperations.js +13 -14
- package/dist/lib/esm/src/core/utils/helpers/textValueOperations.js.map +1 -1
- package/dist/lib/esm/src/index.js +57 -59
- package/dist/lib/esm/src/index.js.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/core/utils/appState/peregrineMQ/index.d.ts +0 -2
- package/dist/types/src/core/utils/appState/peregrineMQ/index.d.ts.map +1 -1
- package/dist/types/src/core/utils/appState/peregrineMQ/peregrineMQ.d.ts.map +1 -1
- package/dist/types/src/core/utils/appState/peregrineMQ/peregrineMQ.stories.d.ts.map +1 -1
- package/dist/types/src/core/utils/array.d.ts +2 -10
- package/dist/types/src/core/utils/array.d.ts.map +1 -1
- package/dist/types/src/core/utils/array.spec.d.ts +1 -1
- package/dist/types/src/core/utils/array.spec.d.ts.map +1 -1
- package/dist/types/src/core/utils/date.d.ts.map +1 -1
- package/dist/types/src/core/utils/helpers/other.d.ts +8 -3
- package/dist/types/src/core/utils/helpers/other.d.ts.map +1 -1
- package/dist/types/src/core/utils/helpers/textValueOperations.d.ts.map +1 -1
- package/dist/types/src/core/utils/keyExtractor.d.ts +1 -1
- package/dist/types/src/core/utils/keyExtractor.d.ts.map +1 -1
- package/dist/utils/appState/peregrineMQ/peregrineMQ.js +2 -0
- package/dist/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -0
- package/dist/utils/appState/peregrineMQ/peregrineMQ.types.js.map +1 -0
- package/dist/utils/appState/stateMachine/tiny-state-machine.base.js.map +1 -0
- package/dist/utils/appState/store/store.vanillajs.js.map +1 -0
- package/dist/utils/appState/store/store.vanillajs.templates.js.map +1 -0
- package/dist/utils/array.js +2 -0
- package/dist/utils/array.js.map +1 -0
- package/dist/utils/date.js +2 -0
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/esm/{src/core/utils/appState → appState}/peregrineMQ/peregrineMQ.js +9 -10
- package/dist/utils/esm/appState/peregrineMQ/peregrineMQ.js.map +1 -0
- package/dist/utils/esm/appState/peregrineMQ/peregrineMQ.types.js.map +1 -0
- package/dist/utils/esm/appState/stateMachine/tiny-state-machine.base.js.map +1 -0
- package/dist/utils/esm/appState/store/store.vanillajs.js.map +1 -0
- package/dist/utils/esm/appState/store/store.vanillajs.templates.js.map +1 -0
- package/dist/utils/esm/array.js +6 -0
- package/dist/utils/esm/array.js.map +1 -0
- package/dist/utils/esm/date.js +100 -0
- package/dist/utils/esm/date.js.map +1 -0
- package/dist/utils/esm/helpers/birthnumber.validator.js.map +1 -0
- package/dist/utils/esm/helpers/birthnumberCZSKvalidator.js.map +1 -0
- package/dist/utils/esm/helpers/cancelableDelayedFunction.js.map +1 -0
- package/dist/utils/esm/helpers/date.js.map +1 -0
- package/dist/utils/esm/helpers/deviceInfo.js.map +1 -0
- package/dist/utils/esm/helpers/emailMatcher.js.map +1 -0
- package/dist/utils/esm/helpers/file.js.map +1 -0
- package/dist/utils/esm/helpers/fileValidator.js.map +1 -0
- package/dist/utils/esm/helpers/objectOperations.js.map +1 -0
- package/dist/utils/esm/helpers/other.js +29 -0
- package/dist/utils/esm/helpers/other.js.map +1 -0
- package/dist/utils/esm/helpers/text.js.map +1 -0
- package/dist/utils/esm/helpers/textValueOperations.js +17 -0
- package/dist/utils/esm/helpers/textValueOperations.js.map +1 -0
- package/dist/utils/esm/helpers/ui.js.map +1 -0
- package/dist/utils/esm/helpers/valueOperations.js.map +1 -0
- package/dist/utils/esm/index.js +125 -0
- package/dist/utils/esm/{src/core/utils/index.js.map → index.js.map} +1 -1
- package/dist/utils/esm/keyExtractor.js.map +1 -0
- package/dist/utils/esm/webComponents/webComponent.utils.js.map +1 -0
- package/dist/utils/helpers/birthnumber.validator.js.map +1 -0
- package/dist/utils/helpers/birthnumberCZSKvalidator.js.map +1 -0
- package/dist/utils/helpers/cancelableDelayedFunction.js.map +1 -0
- package/dist/utils/helpers/date.js.map +1 -0
- package/dist/utils/helpers/deviceInfo.js.map +1 -0
- package/dist/utils/helpers/emailMatcher.js.map +1 -0
- package/dist/utils/helpers/file.js.map +1 -0
- package/dist/utils/helpers/fileValidator.js.map +1 -0
- package/dist/utils/helpers/objectOperations.js.map +1 -0
- package/dist/utils/helpers/other.js +2 -0
- package/dist/utils/helpers/other.js.map +1 -0
- package/dist/utils/helpers/text.js.map +1 -0
- package/dist/utils/helpers/textValueOperations.js +2 -0
- package/dist/utils/helpers/textValueOperations.js.map +1 -0
- package/dist/utils/helpers/ui.js.map +1 -0
- package/dist/utils/helpers/valueOperations.js.map +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/keyExtractor.js.map +1 -0
- package/dist/utils/webComponents/webComponent.utils.js.map +1 -0
- package/package.json +21 -5
- package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/native.js +0 -2
- package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/rng.js +0 -2
- package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
- package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/stringify.js +0 -2
- package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
- package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/v4.js +0 -2
- package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
- package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/index.js +0 -2
- package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/index.js.map +0 -1
- package/dist/lib/esm/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/lib/esm/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- package/dist/lib/esm/node_modules/uuid/dist/esm-browser/rng.js +0 -11
- package/dist/lib/esm/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
- package/dist/lib/esm/node_modules/uuid/dist/esm-browser/stringify.js +0 -10
- package/dist/lib/esm/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
- package/dist/lib/esm/node_modules/uuid/dist/esm-browser/v4.js +0 -14
- package/dist/lib/esm/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
- package/dist/lib/esm/src/core/utils/appState/peregrineMQ/index.js +0 -9
- package/dist/lib/esm/src/core/utils/appState/peregrineMQ/index.js.map +0 -1
- package/dist/ui/styles/generic.anims.css +0 -169
- package/dist/ui/styles/generic.anims.css.map +0 -1
- package/dist/utils/esm/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/utils/esm/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- package/dist/utils/esm/node_modules/uuid/dist/esm-browser/rng.js +0 -11
- package/dist/utils/esm/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
- package/dist/utils/esm/node_modules/uuid/dist/esm-browser/stringify.js +0 -10
- package/dist/utils/esm/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
- package/dist/utils/esm/node_modules/uuid/dist/esm-browser/v4.js +0 -14
- package/dist/utils/esm/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
- package/dist/utils/esm/src/core/utils/appState/peregrineMQ/index.js +0 -9
- package/dist/utils/esm/src/core/utils/appState/peregrineMQ/index.js.map +0 -1
- package/dist/utils/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +0 -1
- package/dist/utils/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.types.js.map +0 -1
- package/dist/utils/esm/src/core/utils/appState/stateMachine/tiny-state-machine.base.js.map +0 -1
- package/dist/utils/esm/src/core/utils/appState/store/store.vanillajs.js.map +0 -1
- package/dist/utils/esm/src/core/utils/appState/store/store.vanillajs.templates.js.map +0 -1
- package/dist/utils/esm/src/core/utils/array.js +0 -22
- package/dist/utils/esm/src/core/utils/array.js.map +0 -1
- package/dist/utils/esm/src/core/utils/date.js +0 -104
- package/dist/utils/esm/src/core/utils/date.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/birthnumber.validator.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/birthnumberCZSKvalidator.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/cancelableDelayedFunction.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/date.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/deviceInfo.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/emailMatcher.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/file.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/fileValidator.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/objectOperations.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/other.js +0 -24
- package/dist/utils/esm/src/core/utils/helpers/other.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/text.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/textValueOperations.js +0 -18
- package/dist/utils/esm/src/core/utils/helpers/textValueOperations.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/ui.js.map +0 -1
- package/dist/utils/esm/src/core/utils/helpers/valueOperations.js.map +0 -1
- package/dist/utils/esm/src/core/utils/index.js +0 -127
- package/dist/utils/esm/src/core/utils/keyExtractor.js.map +0 -1
- package/dist/utils/esm/src/core/utils/webComponents/webComponent.utils.js.map +0 -1
- package/dist/utils/node_modules/uuid/dist/esm-browser/native.js +0 -2
- package/dist/utils/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- package/dist/utils/node_modules/uuid/dist/esm-browser/rng.js +0 -2
- package/dist/utils/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
- package/dist/utils/node_modules/uuid/dist/esm-browser/stringify.js +0 -2
- package/dist/utils/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
- package/dist/utils/node_modules/uuid/dist/esm-browser/v4.js +0 -2
- package/dist/utils/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
- package/dist/utils/src/core/utils/appState/peregrineMQ/index.js +0 -2
- package/dist/utils/src/core/utils/appState/peregrineMQ/index.js.map +0 -1
- package/dist/utils/src/core/utils/appState/peregrineMQ/peregrineMQ.js +0 -2
- package/dist/utils/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +0 -1
- package/dist/utils/src/core/utils/appState/peregrineMQ/peregrineMQ.types.js.map +0 -1
- package/dist/utils/src/core/utils/appState/stateMachine/tiny-state-machine.base.js.map +0 -1
- package/dist/utils/src/core/utils/appState/store/store.vanillajs.js.map +0 -1
- package/dist/utils/src/core/utils/appState/store/store.vanillajs.templates.js.map +0 -1
- package/dist/utils/src/core/utils/array.js +0 -2
- package/dist/utils/src/core/utils/array.js.map +0 -1
- package/dist/utils/src/core/utils/date.js +0 -2
- package/dist/utils/src/core/utils/date.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/birthnumber.validator.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/birthnumberCZSKvalidator.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/cancelableDelayedFunction.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/date.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/deviceInfo.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/emailMatcher.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/file.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/fileValidator.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/objectOperations.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/other.js +0 -2
- package/dist/utils/src/core/utils/helpers/other.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/text.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/textValueOperations.js +0 -2
- package/dist/utils/src/core/utils/helpers/textValueOperations.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/ui.js.map +0 -1
- package/dist/utils/src/core/utils/helpers/valueOperations.js.map +0 -1
- package/dist/utils/src/core/utils/index.js +0 -2
- package/dist/utils/src/core/utils/keyExtractor.js.map +0 -1
- package/dist/utils/src/core/utils/webComponents/webComponent.utils.js.map +0 -1
- /package/dist/utils/{src/core/utils/appState → appState}/peregrineMQ/peregrineMQ.types.js +0 -0
- /package/dist/utils/{src/core/utils/appState → appState}/stateMachine/tiny-state-machine.base.js +0 -0
- /package/dist/utils/{src/core/utils/appState → appState}/store/store.vanillajs.js +0 -0
- /package/dist/utils/{src/core/utils/appState → appState}/store/store.vanillajs.templates.js +0 -0
- /package/dist/utils/esm/{src/core/utils/appState → appState}/peregrineMQ/peregrineMQ.types.js +0 -0
- /package/dist/utils/esm/{src/core/utils/appState → appState}/stateMachine/tiny-state-machine.base.js +0 -0
- /package/dist/utils/esm/{src/core/utils/appState → appState}/store/store.vanillajs.js +0 -0
- /package/dist/utils/esm/{src/core/utils/appState → appState}/store/store.vanillajs.templates.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/birthnumber.validator.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/birthnumberCZSKvalidator.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/cancelableDelayedFunction.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/date.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/deviceInfo.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/emailMatcher.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/file.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/fileValidator.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/objectOperations.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/text.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/ui.js +0 -0
- /package/dist/utils/esm/{src/core/utils/helpers → helpers}/valueOperations.js +0 -0
- /package/dist/utils/esm/{src/core/utils/keyExtractor.js → keyExtractor.js} +0 -0
- /package/dist/utils/esm/{src/core/utils/webComponents → webComponents}/webComponent.utils.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/birthnumber.validator.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/birthnumberCZSKvalidator.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/cancelableDelayedFunction.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/date.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/deviceInfo.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/emailMatcher.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/file.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/fileValidator.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/objectOperations.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/text.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/ui.js +0 -0
- /package/dist/utils/{src/core/utils/helpers → helpers}/valueOperations.js +0 -0
- /package/dist/utils/{src/core/utils/index.js.map → index.js.map} +0 -0
- /package/dist/utils/{src/core/utils/keyExtractor.js → keyExtractor.js} +0 -0
- /package/dist/utils/{src/core/utils/webComponents → webComponents}/webComponent.utils.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","sources":["../../../../../../src/core/utils/date.ts"],"sourcesContent":["import dayjs, { UnitType } from 'dayjs'\nimport relativeTime from 'dayjs/plugin/relativeTime'\nimport updateLocale from 'dayjs/plugin/updateLocale'\nimport customParseFormat from 'dayjs/plugin/customParseFormat'\n\nexport type DateTimeFormat = {\n value: Date | string | number\n valueFormat?: string\n formatString?: string\n language?: string\n relativeTime?: Record<string, string>\n from?: boolean\n to?: boolean\n shouldSubtractDay?: boolean\n shouldAddDay?: boolean\n showPreffix?: boolean\n}\n\nconst relativeTimeConfig = {\n thresholds: [\n { l: 's', r: 1 },\n { l: 'm', r: 1 },\n { l: 'mm', r: 59, d: 'minute' },\n { l: 'h', r: 1 },\n { l: 'hh', r: 23, d: 'hour' },\n { l: 'd', r: 1 },\n { l: 'dd', r: 29, d: 'day' },\n { l: 'M', r: 1 },\n { l: 'MM', r: 11, d: 'month' },\n { l: 'y', r: 1 },\n { l: 'yy', d: 'year' },\n ],\n}\n\nconst relativeTimeEN = {\n future: 'in %s',\n past: '%s ago',\n s: 'now',\n m: 'now',\n mm: 'now',\n h: '1 hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days', // probably 'a week' instead?\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n}\n\nconst relativeTimeCZ = {\n future: 'za %s',\n past: '%s před',\n s: 'nyní',\n m: 'nyní',\n mm: 'nyní',\n h: '1 hodinu',\n hh: '%d hodiny',\n d: 'den',\n dd: '%d dny',\n M: 'měsíc',\n MM: '%d měsíci',\n y: 'rok',\n yy: '%d roky',\n}\n\
|
|
1
|
+
{"version":3,"file":"date.js","sources":["../../../../../../src/core/utils/date.ts"],"sourcesContent":["import dayjs, { UnitType } from 'dayjs'\nimport relativeTime from 'dayjs/plugin/relativeTime'\nimport updateLocale from 'dayjs/plugin/updateLocale'\nimport customParseFormat from 'dayjs/plugin/customParseFormat'\n\nexport type DateTimeFormat = {\n value: Date | string | number\n valueFormat?: string\n formatString?: string\n language?: string\n relativeTime?: Record<string, string>\n from?: boolean\n to?: boolean\n shouldSubtractDay?: boolean\n shouldAddDay?: boolean\n showPreffix?: boolean\n}\n\nconst relativeTimeConfig = {\n thresholds: [\n { l: 's', r: 1 },\n { l: 'm', r: 1 },\n { l: 'mm', r: 59, d: 'minute' },\n { l: 'h', r: 1 },\n { l: 'hh', r: 23, d: 'hour' },\n { l: 'd', r: 1 },\n { l: 'dd', r: 29, d: 'day' },\n { l: 'M', r: 1 },\n { l: 'MM', r: 11, d: 'month' },\n { l: 'y', r: 1 },\n { l: 'yy', d: 'year' },\n ],\n}\n\nconst relativeTimeEN = {\n future: 'in %s',\n past: '%s ago',\n s: 'now',\n m: 'now',\n mm: 'now',\n h: '1 hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days', // probably 'a week' instead?\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n}\n\nconst relativeTimeCZ = {\n future: 'za %s',\n past: '%s před',\n s: 'nyní',\n m: 'nyní',\n mm: 'nyní',\n h: '1 hodinu',\n hh: '%d hodiny',\n d: 'den',\n dd: '%d dny',\n M: 'měsíc',\n MM: '%d měsíci',\n y: 'rok',\n yy: '%d roky',\n}\n\nlet _dayjsInitialized = false\nfunction initDayjs() {\n if (_dayjsInitialized) return\n _dayjsInitialized = true\n dayjs.extend(customParseFormat)\n dayjs.extend(relativeTime, relativeTimeConfig)\n dayjs.extend(updateLocale)\n dayjs.updateLocale('cz', {\n relativeTime: { ...relativeTimeCZ },\n })\n dayjs.updateLocale('en', {\n relativeTime: { ...relativeTimeEN },\n })\n}\n\nexport const getTimeFromNowOriginal = (value: string, language: string): string => {\n initDayjs()\n dayjs.updateLocale('en', {\n relativeTime: {\n ...(language === 'cz' ? relativeTimeCZ : relativeTimeEN),\n ...relativeTime,\n },\n })\n return dayjs(value, undefined).fromNow(true)\n}\n\nexport const getTimeFromNow = (\n value: Date | string | number,\n valueFormat?: Partial<DateTimeFormat>,\n): string => getDateTime({ ...valueFormat, from: true, value })\n\nexport const getTimeTo = (\n value: Date | string | number,\n valueFormat?: Partial<DateTimeFormat>,\n): string => getDateTime({ ...valueFormat, to: true, value })\n\nexport const getDateTime = ({\n value,\n valueFormat,\n formatString,\n language = 'en',\n relativeTime,\n from,\n to,\n shouldAddDay = false,\n shouldSubtractDay = false,\n showPreffix = false,\n}: DateTimeFormat): string => {\n initDayjs()\n dayjs.updateLocale('en', {\n relativeTime: {\n ...(language === 'cz' ? relativeTimeCZ : relativeTimeEN),\n ...relativeTime,\n },\n })\n\n dayjs.locale(language)\n\n if (!from && to) {\n const dateTo = dayjs(value, valueFormat || undefined).add(shouldAddDay ? 1 : 0, 'day')\n\n return dayjs(new Date()).locale(language).to(dateTo, !showPreffix)\n }\n\n if (from && !to) {\n const dateTo = dayjs(value, valueFormat || undefined).subtract(shouldSubtractDay ? 1 : 0, 'day')\n\n return dayjs(dateTo, valueFormat || undefined).locale(language).fromNow(!showPreffix)\n }\n\n return dayjs(value, valueFormat || undefined).locale(language).format(formatString)\n}\n\nexport const dateRangeFormat = (\n dateFrom: Date, dateTo: Date, shortFormat: string, longFormat: string,\n delimiter = ' - ', datePeriod: UnitType = 'month',\n) : string => {\n initDayjs()\n const dayJSFrom = dayjs(dateFrom)\n const dayJSTo = dayjs(dateTo)\n\n const diffMonths = dayJSFrom.diff(dayJSTo, datePeriod)\n\n return `${dayJSFrom.format(diffMonths === 0 ? shortFormat : longFormat)}${delimiter}${dayJSTo.format(longFormat)}`\n}\n"],"names":["relativeTimeConfig","relativeTimeEN","relativeTimeCZ","_dayjsInitialized","initDayjs","dayjs","customParseFormat","relativeTime","updateLocale","getTimeFromNowOriginal","value","language","getTimeFromNow","valueFormat","getDateTime","getTimeTo","formatString","from","to","shouldAddDay","shouldSubtractDay","showPreffix","dateTo","dateRangeFormat","dateFrom","shortFormat","longFormat","delimiter","datePeriod","dayJSFrom","dayJSTo","diffMonths"],"mappings":";;;;AAkBA,MAAMA,IAAqB;AAAA,EACzB,YAAY;AAAA,IACV,EAAE,GAAG,KAAK,GAAG,EAAA;AAAA,IACb,EAAE,GAAG,KAAK,GAAG,EAAA;AAAA,IACb,EAAE,GAAG,MAAM,GAAG,IAAI,GAAG,SAAA;AAAA,IACrB,EAAE,GAAG,KAAK,GAAG,EAAA;AAAA,IACb,EAAE,GAAG,MAAM,GAAG,IAAI,GAAG,OAAA;AAAA,IACrB,EAAE,GAAG,KAAK,GAAG,EAAA;AAAA,IACb,EAAE,GAAG,MAAM,GAAG,IAAI,GAAG,MAAA;AAAA,IACrB,EAAE,GAAG,KAAK,GAAG,EAAA;AAAA,IACb,EAAE,GAAG,MAAM,GAAG,IAAI,GAAG,QAAA;AAAA,IACrB,EAAE,GAAG,KAAK,GAAG,EAAA;AAAA,IACb,EAAE,GAAG,MAAM,GAAG,OAAA;AAAA,EAAO;AAEzB,GAEMC,IAAiB;AAAA,EACrB,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AACN,GAEMC,IAAiB;AAAA,EACrB,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AACN;AAEA,IAAIC,IAAoB;AACxB,SAASC,IAAY;AACnB,EAAID,MACJA,IAAoB,IACpBE,EAAM,OAAOC,CAAiB,GAC9BD,EAAM,OAAOE,GAAcP,CAAkB,GAC7CK,EAAM,OAAOG,CAAY,GACzBH,EAAM,aAAa,MAAM;AAAA,IACvB,cAAc,EAAE,GAAGH,EAAA;AAAA,EAAe,CACnC,GACDG,EAAM,aAAa,MAAM;AAAA,IACvB,cAAc,EAAE,GAAGJ,EAAA;AAAA,EAAe,CACnC;AACH;AAEO,MAAMQ,IAAyB,CAACC,GAAeC,OACpDP,EAAA,GACAC,EAAM,aAAa,MAAM;AAAA,EACvB,cAAc;AAAA,IACZ,GAAIM,MAAa,OAAOT,IAAiBD;AAAA,IACzC,GAAGM;AAAA,EAAA;AACL,CACD,GACMF,EAAMK,GAAO,MAAS,EAAE,QAAQ,EAAI,IAGhCE,IAAiB,CAC5BF,GACAG,MACWC,EAAY,EAAE,GAAGD,GAAa,MAAM,IAAM,OAAAH,EAAA,CAAO,GAEjDK,IAAY,CACvBL,GACAG,MACWC,EAAY,EAAE,GAAGD,GAAa,IAAI,IAAM,OAAAH,EAAA,CAAO,GAE/CI,IAAc,CAAC;AAAA,EAC1B,OAAAJ;AAAA,EACA,aAAAG;AAAA,EACA,cAAAG;AAAA,EACA,UAAAL,IAAW;AAAA,EACX,cAAAJ;AAAAA,EACA,MAAAU;AAAA,EACA,IAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,mBAAAC,IAAoB;AAAA,EACpB,aAAAC,IAAc;AAChB,MAA8B;AAW5B,MAVAjB,EAAA,GACAC,EAAM,aAAa,MAAM;AAAA,IACvB,cAAc;AAAA,MACZ,GAAIM,MAAa,OAAOT,IAAiBD;AAAA,MACzC,GAAGM;AAAAA,IAAA;AAAA,EACL,CACD,GAEDF,EAAM,OAAOM,CAAQ,GAEjB,CAACM,KAAQC,GAAI;AACf,UAAMI,IAASjB,EAAMK,GAAOG,KAAe,MAAS,EAAE,IAAIM,IAAe,IAAI,GAAG,KAAK;AAErF,WAAOd,EAAM,oBAAI,KAAA,CAAM,EAAE,OAAOM,CAAQ,EAAE,GAAGW,GAAQ,CAACD,CAAW;AAAA,EACnE;AAEA,MAAIJ,KAAQ,CAACC,GAAI;AACf,UAAMI,IAASjB,EAAMK,GAAOG,KAAe,MAAS,EAAE,SAASO,IAAoB,IAAI,GAAG,KAAK;AAE/F,WAAOf,EAAMiB,GAAQT,KAAe,MAAS,EAAE,OAAOF,CAAQ,EAAE,QAAQ,CAACU,CAAW;AAAA,EACtF;AAEA,SAAOhB,EAAMK,GAAOG,KAAe,MAAS,EAAE,OAAOF,CAAQ,EAAE,OAAOK,CAAY;AACpF,GAEaO,IAAkB,CAC7BC,GAAgBF,GAAcG,GAAqBC,GACnDC,IAAY,OAAOC,IAAuB,YAC9B;AACZ,EAAAxB,EAAA;AACA,QAAMyB,IAAYxB,EAAMmB,CAAQ,GAC1BM,IAAUzB,EAAMiB,CAAM,GAEtBS,IAAaF,EAAU,KAAKC,GAASF,CAAU;AAErD,SAAO,GAAGC,EAAU,OAAOE,MAAe,IAAIN,IAAcC,CAAU,CAAC,GAAGC,CAAS,GAAGG,EAAQ,OAAOJ,CAAU,CAAC;AAClH;"}
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
clearTimeout(e), e = null, n || t.apply(i, s);
|
|
7
|
-
}, m = n && !e;
|
|
8
|
-
clearTimeout(e), e = setTimeout(r, o), m && t.apply(i, s);
|
|
1
|
+
const y = (t, o, e) => t ? o : e, s = (t) => (o) => {
|
|
2
|
+
const e = {};
|
|
3
|
+
return (...n) => {
|
|
4
|
+
const c = t(...n);
|
|
5
|
+
return c in e || (e[c] = o(...n)), e[c];
|
|
9
6
|
};
|
|
10
|
-
},
|
|
7
|
+
}, a = s((...t) => String(t[0])), p = s((...t) => JSON.stringify(t)), f = (t = (...o) => JSON.stringify(o)) => s(t), T = (t, o = 100, e = !1) => {
|
|
8
|
+
let n;
|
|
9
|
+
return function(...i) {
|
|
10
|
+
const r = this, u = () => {
|
|
11
|
+
clearTimeout(n), n = null, e || t.apply(r, i);
|
|
12
|
+
}, l = e && !n;
|
|
13
|
+
clearTimeout(n), n = setTimeout(u, o), l && t.apply(r, i);
|
|
14
|
+
};
|
|
15
|
+
}, d = (t) => new Promise((o) => {
|
|
11
16
|
setTimeout(() => o(`delayed: ${t}`), t);
|
|
12
|
-
}),
|
|
13
|
-
}).constructor,
|
|
17
|
+
}), m = (async () => {
|
|
18
|
+
}).constructor, z = (t) => t.constructor === m.prototype.constructor;
|
|
14
19
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
m as AsyncFunctionTemplate,
|
|
21
|
+
T as debounce,
|
|
22
|
+
d as delay,
|
|
23
|
+
z as isFunctionAsync,
|
|
24
|
+
a as memoize,
|
|
25
|
+
p as memoizeComplex,
|
|
26
|
+
f as memoizer,
|
|
27
|
+
y as nestedTernary
|
|
23
28
|
};
|
|
24
29
|
//# sourceMappingURL=other.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"other.js","sources":["../../../../../../../src/core/utils/helpers/other.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"other.js","sources":["../../../../../../../src/core/utils/helpers/other.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport const nestedTernary = (condition: boolean, branchA: any, branchB: any): any => (condition ? branchA : branchB)\n\n/**\n * Creates a memoized version of a function using a custom key function.\n * Replaces ramda's memoizeWith — same API contract.\n */\nconst memoizeWith = (keyFn: (...args: any[]) => string) =>\n <T extends (...args: any[]) => any>(fn: T): T => {\n const cache: Record<string, any> = {}\n return ((...args: any[]) => {\n const key = keyFn(...args)\n if (!(key in cache)) {\n cache[key] = fn(...args)\n }\n return cache[key]\n }) as unknown as T\n }\n\nexport const memoize = memoizeWith((...args) => String(args[0]))\n\n// Beware fellow developer, this is to be used with caution and precison\nexport const memoizeComplex = memoizeWith((...args) => JSON.stringify(args))\n\nexport const memoizer\n= (memoizeFunc = (...args: any[]): string => JSON.stringify(args)) => memoizeWith(memoizeFunc)\n\nexport const debounce = (func: () => void, wait = 100, immediate = false): () => void => {\n let timeout: any\n\n return function debounced(...args) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const context: unknown = this\n const later = (): void => {\n clearTimeout(timeout)\n timeout = null\n if (!immediate) {\n func.apply(context, args)\n }\n }\n const callNow = immediate && !timeout\n\n clearTimeout(timeout)\n timeout = setTimeout(later, wait)\n if (callNow) {\n func.apply(context, args)\n }\n }\n}\n\nexport const delay = (delay: number): Promise<string> => new Promise((resolve) => {\n setTimeout(() => resolve(`delayed: ${delay}`), delay)\n})\n\nexport const AsyncFunctionTemplate = (async (): Promise<void> => {}).constructor\n\nexport const isFunctionAsync = (\n func: (...args: any[]) => unknown,\n): boolean => func.constructor === AsyncFunctionTemplate.prototype.constructor\n"],"names":["nestedTernary","condition","branchA","branchB","memoizeWith","keyFn","fn","cache","args","key","memoize","memoizeComplex","memoizer","memoizeFunc","debounce","func","wait","immediate","timeout","context","later","callNow","delay","resolve","AsyncFunctionTemplate","isFunctionAsync"],"mappings":"AACO,MAAMA,IAAgB,CAACC,GAAoBC,GAAcC,MAAuBF,IAAYC,IAAUC,GAMvGC,IAAc,CAACC,MACnB,CAAoCC,MAAa;AAC/C,QAAMC,IAA6B,CAAA;AACnC,SAAQ,IAAIC,MAAgB;AAC1B,UAAMC,IAAMJ,EAAM,GAAGG,CAAI;AACzB,WAAMC,KAAOF,MACXA,EAAME,CAAG,IAAIH,EAAG,GAAGE,CAAI,IAElBD,EAAME,CAAG;AAAA,EAClB;AACF,GAEWC,IAAUN,EAAY,IAAII,MAAS,OAAOA,EAAK,CAAC,CAAC,CAAC,GAGlDG,IAAiBP,EAAY,IAAII,MAAS,KAAK,UAAUA,CAAI,CAAC,GAE9DI,IACX,CAACC,IAAc,IAAIL,MAAwB,KAAK,UAAUA,CAAI,MAAMJ,EAAYS,CAAW,GAEhFC,IAAW,CAACC,GAAkBC,IAAO,KAAKC,IAAY,OAAsB;AACvF,MAAIC;AAEJ,SAAO,YAAsBV,GAAM;AAIjC,UAAMW,IAAmB,MACnBC,IAAQ,MAAY;AACxB,mBAAaF,CAAO,GACpBA,IAAU,MACLD,KACHF,EAAK,MAAMI,GAASX,CAAI;AAAA,IAE5B,GACMa,IAAUJ,KAAa,CAACC;AAE9B,iBAAaA,CAAO,GACpBA,IAAU,WAAWE,GAAOJ,CAAI,GAC5BK,KACFN,EAAK,MAAMI,GAASX,CAAI;AAAA,EAE5B;AACF,GAEac,IAAQ,CAACA,MAAmC,IAAI,QAAQ,CAACC,MAAY;AAChF,aAAW,MAAMA,EAAQ,YAAYD,CAAK,EAAE,GAAGA,CAAK;AACtD,CAAC,GAEYE,KAAyB,YAA2B;AAAC,GAAG,aAExDC,IAAkB,CAC7BV,MACYA,EAAK,gBAAgBS,EAAsB,UAAU;"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, g = (e, o, n = !0, c = !0) => !o || !e || !o.trim() || !e.trim() ? !1 : n && c ? r(o.toLowerCase()).includes(r(e.toLowerCase())) : n ? o.toLowerCase().includes(e.toLowerCase()) : c ? r(o).includes(r(e)) : o.includes(e), L = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), w = (e, o = 0, n = "...") => !o || e.length <= o ? e : `${e.substr(0, o)}${n}`, a = (e) => e && r(e == null ? void 0 : e.toLocaleLowerCase().replaceAll(/\s/g, "-").replaceAll(/["]/g, "")), C = (e) => e && encodeURIComponent(a(e));
|
|
1
|
+
const a = (e) => e ? e.toLowerCase() : "", l = (e) => e ? e.toUpperCase() : "", s = (e) => e ? e.toString().replace(/ /g, "") : "", i = (e) => e.slice((e.lastIndexOf(".") - 1 >>> 0) + 2), r = (e) => {
|
|
2
|
+
var n, o;
|
|
3
|
+
return (o = (n = e == null ? void 0 : e.normalize("NFD")) == null ? void 0 : n.replace) == null ? void 0 : o.call(n, /[\u0300-\u036f]/g, "");
|
|
4
|
+
}, u = (e, n, o = !0, c = !0) => !n || !e || !n.trim() || !e.trim() ? !1 : o && c ? r(n.toLowerCase()).includes(r(e.toLowerCase())) : o ? n.toLowerCase().includes(e.toLowerCase()) : c ? r(n).includes(r(e)) : n.includes(e), p = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), g = (e, n = 0, o = "...") => !n || e.length <= n ? e : `${e.substr(0, n)}${o}`, t = (e) => e && r(e == null ? void 0 : e.toLocaleLowerCase().replaceAll(/\s/g, "-").replaceAll(/["]/g, "")), f = (e) => e && encodeURIComponent(t(e));
|
|
6
5
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
p as escapeRegExp,
|
|
7
|
+
i as fileNameExt,
|
|
8
|
+
u as findStringInText,
|
|
10
9
|
r as normalizeString,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
s as removeWhitespaces,
|
|
11
|
+
t as sanitizeId,
|
|
12
|
+
f as sanitizePathId,
|
|
13
|
+
a as toLowerCase,
|
|
14
|
+
l as toUpperCase,
|
|
15
|
+
g as truncateText
|
|
17
16
|
};
|
|
18
17
|
//# sourceMappingURL=textValueOperations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textValueOperations.js","sources":["../../../../../../../src/core/utils/helpers/textValueOperations.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"textValueOperations.js","sources":["../../../../../../../src/core/utils/helpers/textValueOperations.ts"],"sourcesContent":["// todo memoize\nexport const toLowerCase = (str: string | number): string | number => (str ? (str as string).toLowerCase() : '')\n\n// todo memoize\nexport const toUpperCase = (str: string): string => (str ? str.toUpperCase() : '')\n\n// todo memoize\nexport const removeWhitespaces = (str: string | number): string | number => (str ? str.toString()\n .replace(/ /g, '') as string : '')\n\n// eslint-disable-next-line no-bitwise\nexport const fileNameExt = (fileName: string): string => fileName.slice((fileName.lastIndexOf('.') - 1 >>> 0) + 2)\n\nexport const normalizeString = (str: string): string => str?.normalize('NFD')?.replace?.(/[\\u0300-\\u036f]/g, '')\n\nexport const findStringInText = (str: string, text: string, ci = true, norm = true): boolean => {\n if (!text || !str || !text.trim() || !str.trim()) {\n return false\n }\n\n if (ci && norm) {\n return normalizeString(text.toLowerCase()).includes(normalizeString(str.toLowerCase()))\n }\n\n if (ci) {\n return text.toLowerCase().includes(str.toLowerCase())\n }\n\n if (norm) {\n return normalizeString(text).includes(normalizeString(str))\n }\n\n return text.includes(str)\n}\n\n// eslint-disable-next-line no-useless-escape\nexport const escapeRegExp = (str: string): string => str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&')\n\nexport const truncateText = (text: string, maxNumChars = 0, indicator = '...'): string => {\n if (!maxNumChars || text.length <= maxNumChars) {\n return text\n }\n return `${text.substr(0, maxNumChars)}${indicator}`\n}\n\nexport const sanitizeId\n = (id: string): string => id && normalizeString(id?.toLocaleLowerCase().replaceAll(/\\s/g, '-').replaceAll(/[\"]/g, ''))\n\nexport const sanitizePathId\n = (id: string): string => id && encodeURIComponent(sanitizeId(id))\n"],"names":["toLowerCase","str","toUpperCase","removeWhitespaces","fileNameExt","fileName","normalizeString","_a","_b","findStringInText","text","ci","norm","escapeRegExp","truncateText","maxNumChars","indicator","sanitizeId","id","sanitizePathId"],"mappings":"AACO,MAAMA,IAAc,CAACC,MAA2CA,IAAOA,EAAe,gBAAgB,IAGhGC,IAAc,CAACD,MAAyBA,IAAMA,EAAI,gBAAgB,IAGlEE,IAAoB,CAACF,MAA2CA,IAAMA,EAAI,WACpF,QAAQ,MAAM,EAAE,IAAc,IAGpBG,IAAc,CAACC,MAA6BA,EAAS,OAAOA,EAAS,YAAY,GAAG,IAAI,MAAM,KAAK,CAAC,GAEpGC,IAAkB,CAACL,MAAA;AAZzB,MAAAM,GAAAC;AAYiD,UAAAA,KAAAD,IAAAN,KAAA,gBAAAA,EAAK,UAAU,WAAf,gBAAAM,EAAuB,YAAvB,gBAAAC,EAAA,KAAAD,GAAiC,oBAAoB;AAAA,GAEhGE,IAAmB,CAACR,GAAaS,GAAcC,IAAK,IAAMC,IAAO,OACxE,CAACF,KAAQ,CAACT,KAAO,CAACS,EAAK,UAAU,CAACT,EAAI,SACjC,KAGLU,KAAMC,IACDN,EAAgBI,EAAK,aAAa,EAAE,SAASJ,EAAgBL,EAAI,YAAA,CAAa,CAAC,IAGpFU,IACKD,EAAK,YAAA,EAAc,SAAST,EAAI,aAAa,IAGlDW,IACKN,EAAgBI,CAAI,EAAE,SAASJ,EAAgBL,CAAG,CAAC,IAGrDS,EAAK,SAAST,CAAG,GAIbY,IAAe,CAACZ,MAAwBA,EAAI,QAAQ,uCAAuC,MAAM,GAEjGa,IAAe,CAACJ,GAAcK,IAAc,GAAGC,IAAY,UAClE,CAACD,KAAeL,EAAK,UAAUK,IAC1BL,IAEF,GAAGA,EAAK,OAAO,GAAGK,CAAW,CAAC,GAAGC,CAAS,IAGtCC,IACT,CAACC,MAAuBA,KAAMZ,EAAgBY,KAAA,gBAAAA,EAAI,oBAAoB,WAAW,OAAO,KAAK,WAAW,QAAQ,GAAG,GAE1GC,IACT,CAACD,MAAuBA,KAAM,mBAAmBD,EAAWC,CAAE,CAAC;"}
|
|
@@ -3,12 +3,12 @@ import { AnchorLink as i } from "./core/ui/components/atoms/text/anchor-link/Anc
|
|
|
3
3
|
import { ArrayFirst as p, ArrayLast as l } from "./core/utils/array.js";
|
|
4
4
|
import { AsyncFunctionTemplate as f, debounce as x, delay as c, isFunctionAsync as u, memoize as d, memoizeComplex as T, memoizer as g, nestedTernary as S } from "./core/utils/helpers/other.js";
|
|
5
5
|
import { BoxLayout as C, LayoutBox as h } from "./core/ui/components/container/layoutBox/LayoutBox.js";
|
|
6
|
-
import { Button as
|
|
6
|
+
import { Button as P, IconButton as A, keys as I } from "./core/ui/components/atoms/button/Button.js";
|
|
7
7
|
import { CollapsibleContainer as F } from "./core/ui/components/container/CollapsibleContainer.js";
|
|
8
|
-
import { DATE_FORMAT as
|
|
8
|
+
import { DATE_FORMAT as M, DATE_TIME_FORMAT as L, formatDate as b, formatDateTime as z, formatDateToTimestamp as N, getDate as B } from "./core/utils/helpers/date.js";
|
|
9
9
|
import { DefaultErrorComponent as O, ErrorBoundary as R } from "./core/ui/components/error/ErrorBoundary.js";
|
|
10
10
|
import { DividerHorizontal as H, DividerLine as w, DividerVertical as _ } from "./core/ui/components/dividers/DividerLine.js";
|
|
11
|
-
import { ESIcon as
|
|
11
|
+
import { ESIcon as Q, ESIconBase as J } from "./core/ui/components/icon/IconWC.js";
|
|
12
12
|
import { Field as q, Select as G, setIconColor as K, setIconComponent as U } from "./core/ui/components/field/Field.js";
|
|
13
13
|
import { FlowLayout as Y } from "./core/ui/components/molecules/layouts/FlowLayout.js";
|
|
14
14
|
import { Headline as $, HeadlineSecondary as ee, HeadlineTertiary as re } from "./core/ui/components/atoms/text/Headline.js";
|
|
@@ -18,14 +18,14 @@ import { LayoutDirection as ne } from "./core/ui/components/container/layoutBox/
|
|
|
18
18
|
import { LazyComponent as le, PendingBoundary as se, createLazyModule as fe, createLazyModuleWithStore as xe, wrapPromise as ce } from "./core/ui/components/container/lazyComponent/LazyComponent.js";
|
|
19
19
|
import { Link as de } from "./core/ui/components/atoms/text/Link.js";
|
|
20
20
|
import { NON_EXISTENT_CHANNEL as ge } from "./core/utils/appState/peregrineMQ/peregrineMQ.types.js";
|
|
21
|
-
import { Operation as ye, decrementValue as Ce, incerementValue as he, numberDefined as ve, numberOperation as
|
|
22
|
-
import { Paragraph as Fe, ParagraphBold as
|
|
21
|
+
import { Operation as ye, decrementValue as Ce, incerementValue as he, numberDefined as ve, numberOperation as Pe, restrictNumberInLimits as Ae, setValue as Ie } from "./core/utils/helpers/valueOperations.js";
|
|
22
|
+
import { Paragraph as Fe, ParagraphBold as De, ParagraphBoldSmall as Me, ParagraphSmall as Le } from "./core/ui/components/atoms/text/Paragraph.js";
|
|
23
23
|
import { PeregrineMQ as ze, PeregrineMQClearError as Ne } from "./core/utils/appState/peregrineMQ/peregrineMQ.js";
|
|
24
24
|
import { Popover as Ve } from "./core/ui/components/molecules/popover/PopoverLite.js";
|
|
25
25
|
import { PopoverPlacement as Re } from "./core/ui/components/molecules/popover/popover.types.js";
|
|
26
26
|
import { Popup as He } from "./core/ui/components/molecules/popup/Popup.js";
|
|
27
27
|
import { PopupAnimateVariant as _e } from "./core/ui/components/molecules/popup/popup.types.js";
|
|
28
|
-
import { ResizableContainer as
|
|
28
|
+
import { ResizableContainer as Qe } from "./core/ui/components/container/ResizableContainer.js";
|
|
29
29
|
import { Tag as We } from "./core/ui/components/atoms/tag/Tag.js";
|
|
30
30
|
import { TagVariant as Ge } from "./core/ui/components/atoms/tag/tag.types.js";
|
|
31
31
|
import { Text as Ue } from "./core/ui/components/atoms/text/Text.js";
|
|
@@ -34,9 +34,9 @@ import { TinyStateMachine as er, TinyStateMachineEvent as rr, TinyStateMachineEv
|
|
|
34
34
|
import { Toggle as nr } from "./core/ui/components/atoms/toggle/Toggle.js";
|
|
35
35
|
import { Tooltip as lr } from "./core/ui/components/molecules/popover/Tooltip.js";
|
|
36
36
|
import { anchorClick as fr, classNames as xr, generateId as cr, getBaseThemes as ur, mapSerReplacer as dr, noop as Tr, observeThemePreference as gr, parseProps as Sr, setThemeClassNames as yr, switchColorTheme as Cr, updateColorTheme as hr } from "./core/utils/helpers/ui.js";
|
|
37
|
-
import { arrayToObjectTree as
|
|
37
|
+
import { arrayToObjectTree as Pr, chunkArray as Ar, duplicatesInArray as Ir, formatJsonString as Er, formatObj as Fr, formatObj2 as Dr } from "./core/utils/helpers/objectOperations.js";
|
|
38
38
|
import { calculateColors as Lr, calculatePercColor as br, convertHex as zr, convertRGB as Nr, defaultFontSize as Br, pxToRem as Vr, resolveStyleValue as Or, setDefaultFontSize as Rr, toHex as kr } from "./core/ui/utils/style.js";
|
|
39
|
-
import { canSetStateMerge as wr, createStore as _r, getSetStateMerge as
|
|
39
|
+
import { canSetStateMerge as wr, createStore as _r, getSetStateMerge as jr, shallowEqual as Qr } from "./core/utils/appState/store/store.vanillajs.js";
|
|
40
40
|
import { cancelableSetInterval as Wr, cancelableSetTimeout as qr } from "./core/utils/helpers/cancelableDelayedFunction.js";
|
|
41
41
|
import { ced as Kr, createResolveAttribute as Ur, customElementDefine as Xr, resolveAttributes as Yr } from "./core/utils/webComponents/webComponent.utils.js";
|
|
42
42
|
import { cleanCsvLines as $r, formatFilePath as eo } from "./core/utils/helpers/file.js";
|
|
@@ -44,26 +44,25 @@ import { composeId as oo, defaultSanitizeConfig as to, sanitizeHtml as ao } from
|
|
|
44
44
|
import { createDataStore as io } from "./core/utils/appState/store/store.vanillajs.templates.js";
|
|
45
45
|
import { dateRangeFormat as po, getDateTime as lo, getTimeFromNow as so, getTimeFromNowOriginal as fo, getTimeTo as xo } from "./core/utils/date.js";
|
|
46
46
|
import { emailMatch as uo, emailMatcher as To, regexBuilder as go } from "./core/utils/helpers/emailMatcher.js";
|
|
47
|
-
import { escapeRegExp as yo, fileNameExt as Co, findStringInText as ho, normalizeString as vo, removeWhitespaces as
|
|
47
|
+
import { escapeRegExp as yo, fileNameExt as Co, findStringInText as ho, normalizeString as vo, removeWhitespaces as Po, sanitizeId as Ao, sanitizePathId as Io, toLowerCase as Eo, toUpperCase as Fo, truncateText as Do } from "./core/utils/helpers/textValueOperations.js";
|
|
48
48
|
import { getDeviceId as Lo } from "./core/utils/helpers/deviceInfo.js";
|
|
49
49
|
import { getMatch as zo, isValidFormat as No, isValidModulo11 as Bo, parse as Vo, regex as Oo } from "./core/utils/helpers/birthnumberCZSKvalidator.js";
|
|
50
50
|
import { isBirthNumberValid as ko } from "./core/utils/helpers/birthnumber.validator.js";
|
|
51
51
|
import { keyExtractor as wo, keyExtractorFunction as _o } from "./core/utils/keyExtractor.js";
|
|
52
|
-
import { outsideClickHandler as
|
|
52
|
+
import { outsideClickHandler as Qo, useOutsideClick as Jo } from "./core/hooks/useOutsideClick.js";
|
|
53
53
|
import { parseCSVdata as qo, validateCSVFile as Go, validateCSVlines as Ko, validateJSONFile as Uo, validateLineCellTrimmed as Xo, validateLineNumColumns as Yo, validateSDFFile as Zo } from "./core/utils/helpers/fileValidator.js";
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import { useToggle2 as At } from "./core/hooks/useToggle2.js";
|
|
54
|
+
import { useAnimation as et } from "./core/hooks/useAnimation.js";
|
|
55
|
+
import { useApi as ot } from "./core/hooks/useApi.js";
|
|
56
|
+
import { useClassNames as at } from "./core/hooks/useClassNames.js";
|
|
57
|
+
import { useIntersectionObserver as it } from "./core/hooks/useIntersectionObserver.js";
|
|
58
|
+
import { useParseProps as pt } from "./core/hooks/useParseProps.js";
|
|
59
|
+
import { usePeregrineMQ as st } from "./core/utils/appState/peregrineMQ/usePeregrineMQ.react.js";
|
|
60
|
+
import { useResize as xt } from "./core/hooks/useResize.js";
|
|
61
|
+
import { useStore as ut, useStoreApi as dt } from "./core/utils/appState/store/useStore.react.js";
|
|
62
|
+
import { useThemePreference as gt } from "./core/hooks/useThemePreference.js";
|
|
63
|
+
import { useTimeoutFn as yt } from "./core/hooks/useSetTimeout.js";
|
|
64
|
+
import { useToggle as ht } from "./core/hooks/useToggle.js";
|
|
65
|
+
import { useToggle2 as Pt } from "./core/hooks/useToggle2.js";
|
|
67
66
|
export {
|
|
68
67
|
o as Alerts,
|
|
69
68
|
i as AnchorLink,
|
|
@@ -71,15 +70,15 @@ export {
|
|
|
71
70
|
l as ArrayLast,
|
|
72
71
|
f as AsyncFunctionTemplate,
|
|
73
72
|
C as BoxLayout,
|
|
74
|
-
|
|
73
|
+
P as Button,
|
|
75
74
|
F as CollapsibleContainer,
|
|
76
|
-
|
|
75
|
+
M as DATE_FORMAT,
|
|
77
76
|
L as DATE_TIME_FORMAT,
|
|
78
77
|
O as DefaultErrorComponent,
|
|
79
78
|
H as DividerHorizontal,
|
|
80
79
|
w as DividerLine,
|
|
81
80
|
_ as DividerVertical,
|
|
82
|
-
|
|
81
|
+
Q as ESIcon,
|
|
83
82
|
J as ESIconBase,
|
|
84
83
|
R as ErrorBoundary,
|
|
85
84
|
t as EventName,
|
|
@@ -90,7 +89,7 @@ export {
|
|
|
90
89
|
re as HeadlineTertiary,
|
|
91
90
|
te as Icon,
|
|
92
91
|
me as IconBase,
|
|
93
|
-
|
|
92
|
+
A as IconButton,
|
|
94
93
|
a as KeyCode,
|
|
95
94
|
h as LayoutBox,
|
|
96
95
|
ne as LayoutDirection,
|
|
@@ -99,8 +98,8 @@ export {
|
|
|
99
98
|
ge as NON_EXISTENT_CHANNEL,
|
|
100
99
|
ye as Operation,
|
|
101
100
|
Fe as Paragraph,
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
De as ParagraphBold,
|
|
102
|
+
Me as ParagraphBoldSmall,
|
|
104
103
|
Le as ParagraphSmall,
|
|
105
104
|
se as PendingBoundary,
|
|
106
105
|
ze as PeregrineMQ,
|
|
@@ -109,7 +108,7 @@ export {
|
|
|
109
108
|
Re as PopoverPlacement,
|
|
110
109
|
He as Popup,
|
|
111
110
|
_e as PopupAnimateVariant,
|
|
112
|
-
|
|
111
|
+
Qe as ResizableContainer,
|
|
113
112
|
G as Select,
|
|
114
113
|
We as Tag,
|
|
115
114
|
Ge as TagVariant,
|
|
@@ -123,14 +122,14 @@ export {
|
|
|
123
122
|
nr as Toggle,
|
|
124
123
|
lr as Tooltip,
|
|
125
124
|
fr as anchorClick,
|
|
126
|
-
|
|
125
|
+
Pr as arrayToObjectTree,
|
|
127
126
|
Lr as calculateColors,
|
|
128
127
|
br as calculatePercColor,
|
|
129
128
|
wr as canSetStateMerge,
|
|
130
129
|
Wr as cancelableSetInterval,
|
|
131
130
|
qr as cancelableSetTimeout,
|
|
132
131
|
Kr as ced,
|
|
133
|
-
|
|
132
|
+
Ar as chunkArray,
|
|
134
133
|
xr as classNames,
|
|
135
134
|
$r as cleanCsvLines,
|
|
136
135
|
oo as composeId,
|
|
@@ -149,7 +148,7 @@ export {
|
|
|
149
148
|
Br as defaultFontSize,
|
|
150
149
|
to as defaultSanitizeConfig,
|
|
151
150
|
c as delay,
|
|
152
|
-
|
|
151
|
+
Ir as duplicatesInArray,
|
|
153
152
|
uo as emailMatch,
|
|
154
153
|
To as emailMatcher,
|
|
155
154
|
yo as escapeRegExp,
|
|
@@ -161,14 +160,14 @@ export {
|
|
|
161
160
|
eo as formatFilePath,
|
|
162
161
|
Er as formatJsonString,
|
|
163
162
|
Fr as formatObj,
|
|
164
|
-
|
|
163
|
+
Dr as formatObj2,
|
|
165
164
|
cr as generateId,
|
|
166
165
|
ur as getBaseThemes,
|
|
167
166
|
B as getDate,
|
|
168
167
|
lo as getDateTime,
|
|
169
168
|
Lo as getDeviceId,
|
|
170
169
|
zo as getMatch,
|
|
171
|
-
|
|
170
|
+
jr as getSetStateMerge,
|
|
172
171
|
so as getTimeFromNow,
|
|
173
172
|
fo as getTimeFromNowOriginal,
|
|
174
173
|
xo as getTimeTo,
|
|
@@ -179,7 +178,7 @@ export {
|
|
|
179
178
|
Bo as isValidModulo11,
|
|
180
179
|
wo as keyExtractor,
|
|
181
180
|
_o as keyExtractorFunction,
|
|
182
|
-
|
|
181
|
+
I as keys,
|
|
183
182
|
dr as mapSerReplacer,
|
|
184
183
|
d as memoize,
|
|
185
184
|
T as memoizeComplex,
|
|
@@ -188,50 +187,49 @@ export {
|
|
|
188
187
|
Tr as noop,
|
|
189
188
|
vo as normalizeString,
|
|
190
189
|
ve as numberDefined,
|
|
191
|
-
|
|
190
|
+
Pe as numberOperation,
|
|
192
191
|
gr as observeThemePreference,
|
|
193
|
-
|
|
192
|
+
Qo as outsideClickHandler,
|
|
194
193
|
Vo as parse,
|
|
195
194
|
qo as parseCSVdata,
|
|
196
195
|
Sr as parseProps,
|
|
197
|
-
et as peregrineMQInstance,
|
|
198
196
|
Vr as pxToRem,
|
|
199
197
|
Oo as regex,
|
|
200
198
|
go as regexBuilder,
|
|
201
|
-
|
|
199
|
+
Po as removeWhitespaces,
|
|
202
200
|
Yr as resolveAttributes,
|
|
203
201
|
Or as resolveStyleValue,
|
|
204
|
-
|
|
202
|
+
Ae as restrictNumberInLimits,
|
|
205
203
|
ao as sanitizeHtml,
|
|
206
|
-
|
|
207
|
-
|
|
204
|
+
Ao as sanitizeId,
|
|
205
|
+
Io as sanitizePathId,
|
|
208
206
|
Rr as setDefaultFontSize,
|
|
209
207
|
K as setIconColor,
|
|
210
208
|
U as setIconComponent,
|
|
211
209
|
yr as setThemeClassNames,
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
Ie as setValue,
|
|
211
|
+
Qr as shallowEqual,
|
|
214
212
|
mr as stateIterator,
|
|
215
213
|
Cr as switchColorTheme,
|
|
216
214
|
kr as toHex,
|
|
217
215
|
Eo as toLowerCase,
|
|
218
216
|
Fo as toUpperCase,
|
|
219
|
-
|
|
217
|
+
Do as truncateText,
|
|
220
218
|
hr as updateColorTheme,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
219
|
+
et as useAnimation,
|
|
220
|
+
ot as useApi,
|
|
221
|
+
at as useClassNames,
|
|
222
|
+
it as useIntersectionObserver,
|
|
225
223
|
Jo as useOutsideClick,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
224
|
+
pt as useParseProps,
|
|
225
|
+
st as usePeregrineMQ,
|
|
226
|
+
xt as useResize,
|
|
227
|
+
ut as useStore,
|
|
228
|
+
dt as useStoreApi,
|
|
229
|
+
gt as useThemePreference,
|
|
230
|
+
yt as useTimeoutFn,
|
|
231
|
+
ht as useToggle,
|
|
232
|
+
Pt as useToggle2,
|
|
235
233
|
Go as validateCSVFile,
|
|
236
234
|
Ko as validateCSVlines,
|
|
237
235
|
Uo as validateJSONFile,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|