@acoustte-digital-services/digitalstore-controls 0.21.0 → 0.22.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/index.d.mts CHANGED
@@ -87,6 +87,7 @@ interface InputControlProps {
87
87
  dataKeyFieldName?: string;
88
88
  dataTextFieldName?: string;
89
89
  dataset?: any[];
90
+ assetsUploadPath?: string;
90
91
  entityType?: string;
91
92
  showAsLink?: boolean;
92
93
  linkUrlSegment?: string;
package/dist/index.d.ts CHANGED
@@ -87,6 +87,7 @@ interface InputControlProps {
87
87
  dataKeyFieldName?: string;
88
88
  dataTextFieldName?: string;
89
89
  dataset?: any[];
90
+ assetsUploadPath?: string;
90
91
  entityType?: string;
91
92
  showAsLink?: boolean;
92
93
  linkUrlSegment?: string;
package/dist/index.js CHANGED
@@ -5431,9 +5431,9 @@ var require_moment_timezone2 = __commonJS({
5431
5431
  var index_exports = {};
5432
5432
  __export(index_exports, {
5433
5433
  InputControl: () => InputControl_default,
5434
- InputControlType: () => InputControlType,
5434
+ InputControlType: () => InputControlType_default,
5435
5435
  ViewControl: () => ViewControl_default,
5436
- ViewControlTypes: () => ViewControlTypes
5436
+ ViewControlTypes: () => ViewControlTypes_default
5437
5437
  });
5438
5438
  module.exports = __toCommonJS(index_exports);
5439
5439
 
@@ -5456,6 +5456,7 @@ var ViewControlTypes = {
5456
5456
  text: "text"
5457
5457
  // booleanView: "booleanView"
5458
5458
  };
5459
+ var ViewControlTypes_default = ViewControlTypes;
5459
5460
 
5460
5461
  // src/components/controls/view/NumberView.tsx
5461
5462
  var import_react = __toESM(require("react"));
@@ -5623,16 +5624,16 @@ var import_jsx_runtime11 = require("react/jsx-runtime");
5623
5624
  var ViewControl = import_react11.default.forwardRef(
5624
5625
  (props, ref) => {
5625
5626
  const ControlComponents = {
5626
- [ViewControlTypes.lineTextView]: LineTextView_default,
5627
- [ViewControlTypes.emailTextView]: EmailTextView_default,
5628
- [ViewControlTypes.multilineTextBulletsView]: MultilineTextBulletsView_default,
5629
- [ViewControlTypes.moneyView]: MoneyView_default,
5630
- [ViewControlTypes.numberView]: NumberView_default,
5631
- [ViewControlTypes.dateView]: DateView_default,
5632
- [ViewControlTypes.statusView]: StatusView_default,
5633
- [ViewControlTypes.statusBgView]: StatusBgView_default,
5634
- [ViewControlTypes.multilinetextView]: MultilineTextView_default,
5635
- [ViewControlTypes.booleanView]: BooleanView_default
5627
+ [ViewControlTypes_default.lineTextView]: LineTextView_default,
5628
+ [ViewControlTypes_default.emailTextView]: EmailTextView_default,
5629
+ [ViewControlTypes_default.multilineTextBulletsView]: MultilineTextBulletsView_default,
5630
+ [ViewControlTypes_default.moneyView]: MoneyView_default,
5631
+ [ViewControlTypes_default.numberView]: NumberView_default,
5632
+ [ViewControlTypes_default.dateView]: DateView_default,
5633
+ [ViewControlTypes_default.statusView]: StatusView_default,
5634
+ [ViewControlTypes_default.statusBgView]: StatusBgView_default,
5635
+ [ViewControlTypes_default.multilinetextView]: MultilineTextView_default,
5636
+ [ViewControlTypes_default.booleanView]: BooleanView_default
5636
5637
  // [ViewControlTypes.booleanView]: BooleanView
5637
5638
  };
5638
5639
  const SelectedControlComponent = ControlComponents[props.controlType];
@@ -5828,6 +5829,7 @@ var InputControlType = {
5828
5829
  selectWithSearchPanel: "selectWithSearchPanel",
5829
5830
  booleanSelect: "booleanSelect"
5830
5831
  };
5832
+ var InputControlType_default = InputControlType;
5831
5833
 
5832
5834
  // src/components/controls/edit/Select.tsx
5833
5835
  var import_react15 = require("react");
@@ -7223,22 +7225,22 @@ var import_jsx_runtime31 = require("react/jsx-runtime");
7223
7225
  var InputControl = import_react31.default.forwardRef(
7224
7226
  (props, ref) => {
7225
7227
  const ControlComponents = {
7226
- [InputControlType.lineTextInput]: LineTextInput_default,
7227
- [InputControlType.emailInput]: EmailInput_default,
7228
- [InputControlType.multilineTextInput]: MultilineTextInput_default,
7229
- [InputControlType.moneyInput]: MoneyInput_default,
7230
- [InputControlType.select]: Select_default,
7231
- [InputControlType.percentageInput]: PercentageInput_default,
7232
- [InputControlType.phoneInput]: PhoneInput_default,
7233
- [InputControlType.numberInput]: NumberInput_default,
7234
- [InputControlType.checkboxInput]: CheckboxInput_default,
7235
- [InputControlType.otpInput]: OtpInput_default,
7236
- [InputControlType.datetimeInput]: DateTimeInput_default,
7237
- [InputControlType.colorInput]: ColorInput_default,
7238
- [InputControlType.selectWithSearchInput]: SelectWithSearchInput_default,
7239
- [InputControlType.selectWithSearchPanel]: SelectWithSearchPanel_default,
7240
- [InputControlType.booleanSelect]: BooleanSelect_default,
7241
- [InputControlType.timeInput]: TimeInput_default
7228
+ [InputControlType_default.lineTextInput]: LineTextInput_default,
7229
+ [InputControlType_default.emailInput]: EmailInput_default,
7230
+ [InputControlType_default.multilineTextInput]: MultilineTextInput_default,
7231
+ [InputControlType_default.moneyInput]: MoneyInput_default,
7232
+ [InputControlType_default.select]: Select_default,
7233
+ [InputControlType_default.percentageInput]: PercentageInput_default,
7234
+ [InputControlType_default.phoneInput]: PhoneInput_default,
7235
+ [InputControlType_default.numberInput]: NumberInput_default,
7236
+ [InputControlType_default.checkboxInput]: CheckboxInput_default,
7237
+ [InputControlType_default.otpInput]: OtpInput_default,
7238
+ [InputControlType_default.datetimeInput]: DateTimeInput_default,
7239
+ [InputControlType_default.colorInput]: ColorInput_default,
7240
+ [InputControlType_default.selectWithSearchInput]: SelectWithSearchInput_default,
7241
+ [InputControlType_default.selectWithSearchPanel]: SelectWithSearchPanel_default,
7242
+ [InputControlType_default.booleanSelect]: BooleanSelect_default,
7243
+ [InputControlType_default.timeInput]: TimeInput_default
7242
7244
  };
7243
7245
  const SelectedControlComponent = ControlComponents[props.controlType];
7244
7246
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react31.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectedControlComponent, { ...props }) : "Control not found" });
package/dist/index.mjs CHANGED
@@ -5446,6 +5446,7 @@ var ViewControlTypes = {
5446
5446
  text: "text"
5447
5447
  // booleanView: "booleanView"
5448
5448
  };
5449
+ var ViewControlTypes_default = ViewControlTypes;
5449
5450
 
5450
5451
  // src/components/controls/view/NumberView.tsx
5451
5452
  import React from "react";
@@ -5613,16 +5614,16 @@ import { jsx as jsx11 } from "react/jsx-runtime";
5613
5614
  var ViewControl = React11.forwardRef(
5614
5615
  (props, ref) => {
5615
5616
  const ControlComponents = {
5616
- [ViewControlTypes.lineTextView]: LineTextView_default,
5617
- [ViewControlTypes.emailTextView]: EmailTextView_default,
5618
- [ViewControlTypes.multilineTextBulletsView]: MultilineTextBulletsView_default,
5619
- [ViewControlTypes.moneyView]: MoneyView_default,
5620
- [ViewControlTypes.numberView]: NumberView_default,
5621
- [ViewControlTypes.dateView]: DateView_default,
5622
- [ViewControlTypes.statusView]: StatusView_default,
5623
- [ViewControlTypes.statusBgView]: StatusBgView_default,
5624
- [ViewControlTypes.multilinetextView]: MultilineTextView_default,
5625
- [ViewControlTypes.booleanView]: BooleanView_default
5617
+ [ViewControlTypes_default.lineTextView]: LineTextView_default,
5618
+ [ViewControlTypes_default.emailTextView]: EmailTextView_default,
5619
+ [ViewControlTypes_default.multilineTextBulletsView]: MultilineTextBulletsView_default,
5620
+ [ViewControlTypes_default.moneyView]: MoneyView_default,
5621
+ [ViewControlTypes_default.numberView]: NumberView_default,
5622
+ [ViewControlTypes_default.dateView]: DateView_default,
5623
+ [ViewControlTypes_default.statusView]: StatusView_default,
5624
+ [ViewControlTypes_default.statusBgView]: StatusBgView_default,
5625
+ [ViewControlTypes_default.multilinetextView]: MultilineTextView_default,
5626
+ [ViewControlTypes_default.booleanView]: BooleanView_default
5626
5627
  // [ViewControlTypes.booleanView]: BooleanView
5627
5628
  };
5628
5629
  const SelectedControlComponent = ControlComponents[props.controlType];
@@ -5818,6 +5819,7 @@ var InputControlType = {
5818
5819
  selectWithSearchPanel: "selectWithSearchPanel",
5819
5820
  booleanSelect: "booleanSelect"
5820
5821
  };
5822
+ var InputControlType_default = InputControlType;
5821
5823
 
5822
5824
  // src/components/controls/edit/Select.tsx
5823
5825
  import { useState, useEffect } from "react";
@@ -7221,22 +7223,22 @@ import { jsx as jsx31 } from "react/jsx-runtime";
7221
7223
  var InputControl = React31.forwardRef(
7222
7224
  (props, ref) => {
7223
7225
  const ControlComponents = {
7224
- [InputControlType.lineTextInput]: LineTextInput_default,
7225
- [InputControlType.emailInput]: EmailInput_default,
7226
- [InputControlType.multilineTextInput]: MultilineTextInput_default,
7227
- [InputControlType.moneyInput]: MoneyInput_default,
7228
- [InputControlType.select]: Select_default,
7229
- [InputControlType.percentageInput]: PercentageInput_default,
7230
- [InputControlType.phoneInput]: PhoneInput_default,
7231
- [InputControlType.numberInput]: NumberInput_default,
7232
- [InputControlType.checkboxInput]: CheckboxInput_default,
7233
- [InputControlType.otpInput]: OtpInput_default,
7234
- [InputControlType.datetimeInput]: DateTimeInput_default,
7235
- [InputControlType.colorInput]: ColorInput_default,
7236
- [InputControlType.selectWithSearchInput]: SelectWithSearchInput_default,
7237
- [InputControlType.selectWithSearchPanel]: SelectWithSearchPanel_default,
7238
- [InputControlType.booleanSelect]: BooleanSelect_default,
7239
- [InputControlType.timeInput]: TimeInput_default
7226
+ [InputControlType_default.lineTextInput]: LineTextInput_default,
7227
+ [InputControlType_default.emailInput]: EmailInput_default,
7228
+ [InputControlType_default.multilineTextInput]: MultilineTextInput_default,
7229
+ [InputControlType_default.moneyInput]: MoneyInput_default,
7230
+ [InputControlType_default.select]: Select_default,
7231
+ [InputControlType_default.percentageInput]: PercentageInput_default,
7232
+ [InputControlType_default.phoneInput]: PhoneInput_default,
7233
+ [InputControlType_default.numberInput]: NumberInput_default,
7234
+ [InputControlType_default.checkboxInput]: CheckboxInput_default,
7235
+ [InputControlType_default.otpInput]: OtpInput_default,
7236
+ [InputControlType_default.datetimeInput]: DateTimeInput_default,
7237
+ [InputControlType_default.colorInput]: ColorInput_default,
7238
+ [InputControlType_default.selectWithSearchInput]: SelectWithSearchInput_default,
7239
+ [InputControlType_default.selectWithSearchPanel]: SelectWithSearchPanel_default,
7240
+ [InputControlType_default.booleanSelect]: BooleanSelect_default,
7241
+ [InputControlType_default.timeInput]: TimeInput_default
7240
7242
  };
7241
7243
  const SelectedControlComponent = ControlComponents[props.controlType];
7242
7244
  return /* @__PURE__ */ jsx31(React31.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx31(SelectedControlComponent, { ...props }) : "Control not found" });
@@ -7246,9 +7248,9 @@ InputControl.displayName = "InputControl";
7246
7248
  var InputControl_default = InputControl;
7247
7249
  export {
7248
7250
  InputControl_default as InputControl,
7249
- InputControlType,
7251
+ InputControlType_default as InputControlType,
7250
7252
  ViewControl_default as ViewControl,
7251
- ViewControlTypes
7253
+ ViewControlTypes_default as ViewControlTypes
7252
7254
  };
7253
7255
  /*! Bundled license information:
7254
7256
 
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
- {
2
- "name": "@acoustte-digital-services/digitalstore-controls",
3
- "version": "0.21.0",
4
- "description": "Reusable React components",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "scripts": {
12
- "build": "tsup src/index.ts --format esm,cjs --dts"
13
- },
14
- "peerDependencies": {
15
- "react": "^18 || ^19",
16
- "react-dom": "^18 || ^19"
17
- },
18
- "devDependencies": {
19
- "tsup": "^8.5.1",
20
- "typescript": "^5.9.3",
21
- "@types/react": "^19",
22
- "@types/react-dom": "^19"
23
- },
24
- "license": "ISC"
25
- }
1
+ {
2
+ "name": "@acoustte-digital-services/digitalstore-controls",
3
+ "version": "0.22.0",
4
+ "description": "Reusable React components",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsup src/index.ts --format esm,cjs --dts"
13
+ },
14
+ "peerDependencies": {
15
+ "react": "^18 || ^19",
16
+ "react-dom": "^18 || ^19"
17
+ },
18
+ "devDependencies": {
19
+ "tsup": "^8.5.1",
20
+ "typescript": "^5.9.3",
21
+ "@types/react": "^19",
22
+ "@types/react-dom": "^19"
23
+ },
24
+ "license": "ISC"
25
+ }