@vulcanjs/react-ui 0.5.4-alpha.2 → 0.5.4-alpha.3
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.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../components/form/Form/Form.tsx"],"names":[],"mappings":"AAoDA,OAAO,EAEL,SAAS,EAGV,MAAM,WAAW,CAAC;AA8PnB,eAAO,MAAM,IAAI,UAAW,SAAS,
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../components/form/Form/Form.tsx"],"names":[],"mappings":"AAoDA,OAAO,EAEL,SAAS,EAGV,MAAM,WAAW,CAAC;AA8PnB,eAAO,MAAM,IAAI,UAAW,SAAS,QA+hBpC,CAAC;AAeF,eAAe,IAAI,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormComponent.d.ts","sourceRoot":"","sources":["../../../components/form/FormComponent.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAIlE,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAEL,gBAAgB,EAChB,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAkK1B,aAAK,OAAO,CAAC,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAErE,MAAM,WAAW,kBAAkB,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,SAAS;IACjE,QAAQ,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAEnB,IAAI,CAAC,EAAE,MAAM,C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CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,gBAAgB,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACpD,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;IAClD,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C;AAID,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAqOtD,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAoBtC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
@@ -6787,13 +6787,13 @@ import { gql as gql2 } from "@apollo/client";
|
|
6787
6787
|
|
6788
6788
|
// components/form/modules/formFragments.ts
|
6789
6789
|
init_esm_shims();
|
6790
|
-
import _uniq from "lodash/uniq";
|
6791
|
-
import _intersection from "lodash/intersection";
|
6790
|
+
import _uniq from "lodash/uniq.js";
|
6791
|
+
import _intersection from "lodash/intersection.js";
|
6792
6792
|
import { gql } from "@apollo/client";
|
6793
6793
|
import { getCreateableFields, getUpdateableFields, getFragmentFieldNames } from "@vulcanjs/schema";
|
6794
6794
|
import { getFieldFragment } from "@vulcanjs/graphql";
|
6795
6795
|
import { capitalize } from "@vulcanjs/utils";
|
6796
|
-
import compact from "lodash/compact";
|
6796
|
+
import compact from "lodash/compact.js";
|
6797
6797
|
var intlSuffix = "_intl";
|
6798
6798
|
var getFragmentName = /* @__PURE__ */ __name((formType, multiTypeName, fragmentType) => [
|
6799
6799
|
multiTypeName,
|
@@ -7171,21 +7171,21 @@ import React7, { useEffect as useEffect2, useRef as useRef2, useState } from "re
|
|
7171
7171
|
import { runCallbacks, getErrors } from "@vulcanjs/core";
|
7172
7172
|
import { useIntlContext as useIntlContext2 } from "@vulcanjs/i18n";
|
7173
7173
|
import { removeProperty } from "@vulcanjs/utils";
|
7174
|
-
import cloneDeep from "lodash/cloneDeep";
|
7175
|
-
import compact3 from "lodash/compact";
|
7176
|
-
import get2 from "lodash/get";
|
7177
|
-
import isObject from "lodash/isObject";
|
7178
|
-
import mapValues from "lodash/mapValues";
|
7179
|
-
import merge2 from "lodash/merge";
|
7180
|
-
import omit from "lodash/omit";
|
7181
|
-
import omitBy from "lodash/omitBy";
|
7182
|
-
import pick2 from "lodash/pick";
|
7183
|
-
import pickBy from "lodash/pickBy";
|
7184
|
-
import set2 from "lodash/set";
|
7185
|
-
import unset from "lodash/unset";
|
7186
|
-
import update from "lodash/update";
|
7187
|
-
import without from "lodash/without";
|
7188
|
-
import isEmpty from "lodash/isEmpty";
|
7174
|
+
import cloneDeep from "lodash/cloneDeep.js";
|
7175
|
+
import compact3 from "lodash/compact.js";
|
7176
|
+
import get2 from "lodash/get.js";
|
7177
|
+
import isObject from "lodash/isObject.js";
|
7178
|
+
import mapValues from "lodash/mapValues.js";
|
7179
|
+
import merge2 from "lodash/merge.js";
|
7180
|
+
import omit from "lodash/omit.js";
|
7181
|
+
import omitBy from "lodash/omitBy.js";
|
7182
|
+
import pick2 from "lodash/pick.js";
|
7183
|
+
import pickBy from "lodash/pickBy.js";
|
7184
|
+
import set2 from "lodash/set.js";
|
7185
|
+
import unset from "lodash/unset.js";
|
7186
|
+
import update from "lodash/update.js";
|
7187
|
+
import without from "lodash/without.js";
|
7188
|
+
import isEmpty from "lodash/isEmpty.js";
|
7189
7189
|
|
7190
7190
|
// components/form/modules/schema_utils.ts
|
7191
7191
|
init_esm_shims();
|
@@ -7193,18 +7193,18 @@ import { canCreateField, canUpdateField } from "@vulcanjs/permissions";
|
|
7193
7193
|
|
7194
7194
|
// components/form/modules/utils.ts
|
7195
7195
|
init_esm_shims();
|
7196
|
-
import merge from "lodash/merge";
|
7197
|
-
import find from "lodash/find";
|
7198
|
-
import isPlainObject from "lodash/isPlainObject";
|
7199
|
-
import set from "lodash/set";
|
7200
|
-
import size from "lodash/size";
|
7196
|
+
import merge from "lodash/merge.js";
|
7197
|
+
import find from "lodash/find.js";
|
7198
|
+
import isPlainObject from "lodash/isPlainObject.js";
|
7199
|
+
import set from "lodash/set.js";
|
7200
|
+
import size from "lodash/size.js";
|
7201
7201
|
|
7202
7202
|
// components/form/modules/path_utils.ts
|
7203
7203
|
init_esm_shims();
|
7204
|
-
import toPath from "lodash/toPath";
|
7205
|
-
import initial from "lodash/initial";
|
7206
|
-
import flow from "lodash/fp/flow";
|
7207
|
-
import takeRight from "lodash/takeRight";
|
7204
|
+
import toPath from "lodash/toPath.js";
|
7205
|
+
import initial from "lodash/initial.js";
|
7206
|
+
import flow from "lodash/fp/flow.js";
|
7207
|
+
import takeRight from "lodash/takeRight.js";
|
7208
7208
|
var splitPath = /* @__PURE__ */ __name((string) => toPath(string), "splitPath");
|
7209
7209
|
var joinPath = /* @__PURE__ */ __name((array) => array.reduce((string, item) => string + (Number.isNaN(Number(item)) ? `${string === "" ? "" : "."}${item}` : `[${item}]`), ""), "joinPath");
|
7210
7210
|
var getParentPath = flow(splitPath, initial, joinPath);
|
@@ -7410,18 +7410,18 @@ var useFormContext = /* @__PURE__ */ __name(() => {
|
|
7410
7410
|
|
7411
7411
|
// components/form/Form/fields.ts
|
7412
7412
|
init_esm_shims();
|
7413
|
-
import uniq from "lodash/uniq";
|
7414
|
-
import compact2 from "lodash/compact";
|
7415
|
-
import get from "lodash/get";
|
7416
|
-
import pick from "lodash/pick";
|
7413
|
+
import uniq from "lodash/uniq.js";
|
7414
|
+
import compact2 from "lodash/compact.js";
|
7415
|
+
import get from "lodash/get.js";
|
7416
|
+
import pick from "lodash/pick.js";
|
7417
7417
|
import { isIntlField, formatLabel, getIntlKeys, getIntlLabel } from "@vulcanjs/i18n";
|
7418
|
-
import map from "lodash/map";
|
7419
|
-
import sortBy from "lodash/sortBy";
|
7420
|
-
import uniqBy from "lodash/uniqBy";
|
7421
|
-
import difference from "lodash/difference";
|
7422
|
-
import reject from "lodash/reject";
|
7423
|
-
import intersection from "lodash/intersection";
|
7424
|
-
import _filter from "lodash/filter";
|
7418
|
+
import map from "lodash/map.js";
|
7419
|
+
import sortBy from "lodash/sortBy.js";
|
7420
|
+
import uniqBy from "lodash/uniqBy.js";
|
7421
|
+
import difference from "lodash/difference.js";
|
7422
|
+
import reject from "lodash/reject.js";
|
7423
|
+
import intersection from "lodash/intersection.js";
|
7424
|
+
import _filter from "lodash/filter.js";
|
7425
7425
|
import { capitalize as capitalize3 } from "@vulcanjs/utils";
|
7426
7426
|
var getLabel = /* @__PURE__ */ __name((model, flatSchema, context2, fieldName, fieldLocale) => {
|
7427
7427
|
const collectionName = model.name.toLowerCase();
|
@@ -7629,8 +7629,8 @@ var getFieldGroups = /* @__PURE__ */ __name((props, state, context2, mutableFiel
|
|
7629
7629
|
|
7630
7630
|
// components/form/Form/utils.ts
|
7631
7631
|
init_esm_shims();
|
7632
|
-
import find2 from "lodash/find";
|
7633
|
-
import isEqualWith from "lodash/isEqualWith";
|
7632
|
+
import find2 from "lodash/find.js";
|
7633
|
+
import isEqualWith from "lodash/isEqualWith.js";
|
7634
7634
|
var isNotSameDocument = /* @__PURE__ */ __name((initialDocument, changedDocument) => {
|
7635
7635
|
const changedValue = find2(changedDocument, (value, key, collection) => {
|
7636
7636
|
return !isEqualWith(value, initialDocument[key], (objValue, othValue) => {
|
@@ -8223,7 +8223,7 @@ import { FormattedMessage } from "@vulcanjs/i18n";
|
|
8223
8223
|
// components/form/FormError.tsx
|
8224
8224
|
init_esm_shims();
|
8225
8225
|
import React8 from "react";
|
8226
|
-
import get3 from "lodash/get";
|
8226
|
+
import get3 from "lodash/get.js";
|
8227
8227
|
function _extends4() {
|
8228
8228
|
_extends4 = Object.assign || function(target) {
|
8229
8229
|
for (var i = 1; i < arguments.length; i++) {
|
@@ -8279,7 +8279,7 @@ FormError.defaultProps = {
|
|
8279
8279
|
// components/form/FormComponent.tsx
|
8280
8280
|
init_esm_shims();
|
8281
8281
|
import React9, { useEffect as useEffect3, useState as useState2 } from "react";
|
8282
|
-
import get4 from "lodash/get";
|
8282
|
+
import get4 from "lodash/get.js";
|
8283
8283
|
import SimpleSchema2 from "simpl-schema";
|
8284
8284
|
|
8285
8285
|
// components/form/inputs/consts.ts
|
@@ -8560,7 +8560,7 @@ import { useIntlContext as useIntlContext3 } from "@vulcanjs/i18n";
|
|
8560
8560
|
|
8561
8561
|
// components/form/ui_utils.ts
|
8562
8562
|
init_esm_shims();
|
8563
|
-
import pick3 from "lodash/pick";
|
8563
|
+
import pick3 from "lodash/pick.js";
|
8564
8564
|
var whitelistInputProps = /* @__PURE__ */ __name((props) => {
|
8565
8565
|
const whitelist = [
|
8566
8566
|
"name",
|
@@ -8662,7 +8662,7 @@ var FormComponentInner = /* @__PURE__ */ __name((props) => {
|
|
8662
8662
|
init_esm_shims();
|
8663
8663
|
import React11, { useEffect as useEffect4 } from "react";
|
8664
8664
|
import { useLazyQuery, gql as gql3 } from "@apollo/client";
|
8665
|
-
import isEmpty2 from "lodash/isEmpty";
|
8665
|
+
import isEmpty2 from "lodash/isEmpty.js";
|
8666
8666
|
var FormComponentLoader = /* @__PURE__ */ __name((props) => {
|
8667
8667
|
const VulcanComponents = useVulcanComponents();
|
8668
8668
|
const { query, children, options, value, queryWaitsForValue } = props;
|
@@ -8745,7 +8745,7 @@ var FormElement = /* @__PURE__ */ React12.forwardRef((_a, ref) => {
|
|
8745
8745
|
// components/form/FormGroup.tsx
|
8746
8746
|
init_esm_shims();
|
8747
8747
|
import React13, { useState as useState3 } from "react";
|
8748
|
-
import _some from "lodash/some";
|
8748
|
+
import _some from "lodash/some.js";
|
8749
8749
|
import { isAdmin } from "@vulcanjs/permissions";
|
8750
8750
|
function _extends8() {
|
8751
8751
|
_extends8 = Object.assign || function(target) {
|
@@ -8816,7 +8816,7 @@ var FormGroup = /* @__PURE__ */ __name((props) => {
|
|
8816
8816
|
// components/form/FormIntl.tsx
|
8817
8817
|
init_esm_shims();
|
8818
8818
|
import React14 from "react";
|
8819
|
-
import omit2 from "lodash/omit";
|
8819
|
+
import omit2 from "lodash/omit.js";
|
8820
8820
|
function _extends9() {
|
8821
8821
|
_extends9 = Object.assign || function(target) {
|
8822
8822
|
for (var i = 1; i < arguments.length; i++) {
|
@@ -8974,8 +8974,8 @@ var FormLayout = /* @__PURE__ */ __name(({ commonProps, formProps, repeatErrors,
|
|
8974
8974
|
// components/form/FormNestedArray.tsx
|
8975
8975
|
init_esm_shims();
|
8976
8976
|
import React18, { useEffect as useEffect5 } from "react";
|
8977
|
-
import _omit from "lodash/omit";
|
8978
|
-
import _get from "lodash/get";
|
8977
|
+
import _omit from "lodash/omit.js";
|
8978
|
+
import _get from "lodash/get.js";
|
8979
8979
|
function _extends11() {
|
8980
8980
|
_extends11 = Object.assign || function(target) {
|
8981
8981
|
for (var i = 1; i < arguments.length; i++) {
|
@@ -9262,7 +9262,7 @@ var FieldErrors = /* @__PURE__ */ __name(({ errors }) => {
|
|
9262
9262
|
init_esm_shims();
|
9263
9263
|
var import_prop_types5 = __toESM(require_prop_types(), 1);
|
9264
9264
|
import React23 from "react";
|
9265
|
-
import _omit2 from "lodash/omit";
|
9265
|
+
import _omit2 from "lodash/omit.js";
|
9266
9266
|
function _extends14() {
|
9267
9267
|
_extends14 = Object.assign || function(target) {
|
9268
9268
|
for (var i = 1; i < arguments.length; i++) {
|
@@ -14431,7 +14431,7 @@ var CardItemNumber = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React
|
|
14431
14431
|
// components/cell/CardItemObject.tsx
|
14432
14432
|
init_esm_shims();
|
14433
14433
|
import React45 from "react";
|
14434
|
-
import without2 from "lodash/without";
|
14434
|
+
import without2 from "lodash/without.js";
|
14435
14435
|
function _extends25() {
|
14436
14436
|
_extends25 = Object.assign || function(target) {
|
14437
14437
|
for (var i = 1; i < arguments.length; i++) {
|
@@ -14587,7 +14587,7 @@ init_esm_shims();
|
|
14587
14587
|
// components/Datatable/Datatable.tsx
|
14588
14588
|
init_esm_shims();
|
14589
14589
|
import React50, { useEffect as useEffect6, useState as useState6 } from "react";
|
14590
|
-
import _isEmpty from "lodash/isEmpty";
|
14590
|
+
import _isEmpty from "lodash/isEmpty.js";
|
14591
14591
|
import { useMulti } from "@vulcanjs/react-hooks";
|
14592
14592
|
import { isAdmin as isAdmin2 } from "@vulcanjs/permissions";
|
14593
14593
|
import { useIntlContext as useIntlContext5 } from "@vulcanjs/i18n";
|
@@ -14819,7 +14819,7 @@ var DatatableAboveLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__
|
|
14819
14819
|
// components/Datatable/DatatableContents.tsx
|
14820
14820
|
init_esm_shims();
|
14821
14821
|
import React51 from "react";
|
14822
|
-
import _sortBy from "lodash/sortBy";
|
14822
|
+
import _sortBy from "lodash/sortBy.js";
|
14823
14823
|
function _extends29() {
|
14824
14824
|
_extends29 = Object.assign || function(target) {
|
14825
14825
|
for (var i = 1; i < arguments.length; i++) {
|
@@ -15014,7 +15014,7 @@ var DatatableHeaderCellLayout = /* @__PURE__ */ __name((_a) => {
|
|
15014
15014
|
// components/Datatable/DatatableRow.tsx
|
15015
15015
|
init_esm_shims();
|
15016
15016
|
import React53 from "react";
|
15017
|
-
import _isFunction from "lodash/isFunction";
|
15017
|
+
import _isFunction from "lodash/isFunction.js";
|
15018
15018
|
import { isAdmin as isAdmin3, permissionCheck as permissionCheck2 } from "@vulcanjs/permissions";
|
15019
15019
|
function _extends31() {
|
15020
15020
|
_extends31 = Object.assign || function(target) {
|
@@ -15140,7 +15140,7 @@ init_esm_shims();
|
|
15140
15140
|
var import_moment2 = __toESM(require_moment(), 1);
|
15141
15141
|
import React55, { useState as useState7 } from "react";
|
15142
15142
|
import { useQuery } from "@apollo/client";
|
15143
|
-
import isEmpty3 from "lodash/isEmpty";
|
15143
|
+
import isEmpty3 from "lodash/isEmpty.js";
|
15144
15144
|
function _extends33() {
|
15145
15145
|
_extends33 = Object.assign || function(target) {
|
15146
15146
|
for (var i = 1; i < arguments.length; i++) {
|