@vixoniccom/modules 2.19.0 → 2.20.0-dev.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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.20.0-dev.0](https://bitbucket.org/vixonic_dev/modules/compare/v2.17.0...v2.20.0-dev.0) (2025-01-29)
6
+
7
+
8
+ ### Features
9
+
10
+ * added rexmasservice in types ([4460544](https://bitbucket.org/vixonic_dev/modules/commit/4460544ef29cfe192a8c1d14a565d4bed3aa82f1))
11
+ * Buk birthday service was added ([dfca21f](https://bitbucket.org/vixonic_dev/modules/commit/dfca21fb56b173024d2d0b099905d6f616ac57d7))
12
+ * create RedirectButton component ([dff817b](https://bitbucket.org/vixonic_dev/modules/commit/dff817b145c233ec77231fb5f687604cc0e7eb8f))
13
+
5
14
  ## [2.19.0](https://bitbucket.org/vixonic_dev/modules/compare/v2.19.0-dev.0...v2.19.0) (2024-11-29)
6
15
 
7
16
  ## [2.19.0-dev.0](https://bitbucket.org/vixonic_dev/modules/compare/v2.18.2-dev.0...v2.19.0-dev.0) (2024-10-08)
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Configuration } from './lib';
2
2
  export { Errors, ErrorsMap } from './lib/errors';
3
- export { Autocomplete, BitlyInput, ColorPicker, DateInput, NumberInput, SelectAssetKna, SelectInput, Switch, Slider, TextArea, TextFormat, TextInput, ServiceInput, isInput, InputValue, InputComponent, isInputInstance } from './lib/inputs';
3
+ export { Autocomplete, BitlyInput, ColorPicker, DateInput, NumberInput, SelectAssetKna, SelectInput, Switch, Slider, TextArea, TextFormat, TextInput, ServiceInput, isInput, InputValue, RedirectButton, InputComponent, isInputInstance } from './lib/inputs';
4
4
  export { Label } from './lib/ui';
5
5
  export { Group, List, DynamicMatrix } from './lib/containers';
6
6
  export { RangeValue, DateRangeValue, NumberRangeValue } from './lib/values';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NumberRangeValue = exports.DateRangeValue = exports.RangeValue = exports.DynamicMatrix = exports.List = exports.Group = exports.Label = exports.isInputInstance = exports.isInput = exports.ServiceInput = exports.TextInput = exports.TextFormat = exports.TextArea = exports.Slider = exports.Switch = exports.SelectInput = exports.SelectAssetKna = exports.NumberInput = exports.DateInput = exports.ColorPicker = exports.BitlyInput = exports.Autocomplete = exports.Errors = exports.Configuration = void 0;
3
+ exports.NumberRangeValue = exports.DateRangeValue = exports.RangeValue = exports.DynamicMatrix = exports.List = exports.Group = exports.Label = exports.isInputInstance = exports.RedirectButton = exports.isInput = exports.ServiceInput = exports.TextInput = exports.TextFormat = exports.TextArea = exports.Slider = exports.Switch = exports.SelectInput = exports.SelectAssetKna = exports.NumberInput = exports.DateInput = exports.ColorPicker = exports.BitlyInput = exports.Autocomplete = exports.Errors = exports.Configuration = void 0;
4
4
  var lib_1 = require("./lib");
5
5
  Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return lib_1.Configuration; } });
6
6
  var errors_1 = require("./lib/errors");
@@ -20,6 +20,7 @@ Object.defineProperty(exports, "TextFormat", { enumerable: true, get: function (
20
20
  Object.defineProperty(exports, "TextInput", { enumerable: true, get: function () { return inputs_1.TextInput; } });
21
21
  Object.defineProperty(exports, "ServiceInput", { enumerable: true, get: function () { return inputs_1.ServiceInput; } });
22
22
  Object.defineProperty(exports, "isInput", { enumerable: true, get: function () { return inputs_1.isInput; } });
23
+ Object.defineProperty(exports, "RedirectButton", { enumerable: true, get: function () { return inputs_1.RedirectButton; } });
23
24
  Object.defineProperty(exports, "isInputInstance", { enumerable: true, get: function () { return inputs_1.isInputInstance; } });
24
25
  var ui_1 = require("./lib/ui");
25
26
  Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return ui_1.Label; } });
@@ -6,12 +6,13 @@ import { Autocomplete } from './autocomplete';
6
6
  import { SelectInput } from './select-input';
7
7
  import { Switch } from './switch';
8
8
  import { NumberInput } from './number-input';
9
+ import { RedirectButton } from './redirect-button';
9
10
  import { ColorPicker } from './color-picker';
10
11
  import { DateInput } from './date-input';
11
12
  import { SelectAssetKna } from './select-asset-kna';
12
13
  import { Slider } from './slider';
13
14
  import { ServiceInput } from './service-input';
14
- export { BitlyInput, TextFormat, TextInput, SelectInput, Switch, TextArea, Autocomplete, NumberInput, ColorPicker, DateInput, SelectAssetKna, Slider, ServiceInput };
15
+ export { BitlyInput, TextFormat, TextInput, SelectInput, Switch, TextArea, Autocomplete, NumberInput, ColorPicker, DateInput, SelectAssetKna, Slider, ServiceInput, RedirectButton };
15
16
  export type AnyJson = boolean | number | string | null | JsonArray | JsonMap | undefined;
16
17
  export interface JsonMap {
17
18
  [key: string]: AnyJson | undefined;
@@ -19,7 +20,7 @@ export interface JsonMap {
19
20
  export interface JsonArray extends Array<AnyJson> {
20
21
  }
21
22
  export type InputValue = AnyJson;
22
- export type InputComponent = TextInput | TextFormat | BitlyInput | SelectInput<string | number> | TextArea | Switch | Autocomplete<string | number> | NumberInput | ColorPicker | DateInput | SelectAssetKna | Slider | ServiceInput;
23
- export declare const allInputs: (typeof TextInput | typeof BitlyInput | typeof TextFormat | typeof Autocomplete | typeof Switch | typeof NumberInput | typeof ColorPicker | typeof DateInput | typeof SelectAssetKna | typeof Slider | typeof ServiceInput)[];
23
+ export type InputComponent = TextInput | TextFormat | BitlyInput | SelectInput<string | number> | TextArea | Switch | Autocomplete<string | number> | NumberInput | ColorPicker | DateInput | SelectAssetKna | Slider | ServiceInput | RedirectButton;
24
+ export declare const allInputs: (typeof TextInput | typeof BitlyInput | typeof TextFormat | typeof Autocomplete | typeof Switch | typeof NumberInput | typeof RedirectButton | typeof ColorPicker | typeof DateInput | typeof SelectAssetKna | typeof Slider | typeof ServiceInput)[];
24
25
  export declare const isInput: (arg: any) => arg is InputComponent;
25
26
  export declare const isInputInstance: <T>(arg: any, type: string | string[]) => arg is T;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInputInstance = exports.isInput = exports.allInputs = exports.ServiceInput = exports.Slider = exports.SelectAssetKna = exports.DateInput = exports.ColorPicker = exports.NumberInput = exports.Autocomplete = exports.TextArea = exports.Switch = exports.SelectInput = exports.TextInput = exports.TextFormat = exports.BitlyInput = void 0;
3
+ exports.isInputInstance = exports.isInput = exports.allInputs = exports.RedirectButton = exports.ServiceInput = exports.Slider = exports.SelectAssetKna = exports.DateInput = exports.ColorPicker = exports.NumberInput = exports.Autocomplete = exports.TextArea = exports.Switch = exports.SelectInput = exports.TextInput = exports.TextFormat = exports.BitlyInput = void 0;
4
4
  var text_area_1 = require("./text-area");
5
5
  Object.defineProperty(exports, "TextArea", { enumerable: true, get: function () { return text_area_1.TextArea; } });
6
6
  var bitly_input_1 = require("./bitly-input");
@@ -17,6 +17,8 @@ var switch_1 = require("./switch");
17
17
  Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return switch_1.Switch; } });
18
18
  var number_input_1 = require("./number-input");
19
19
  Object.defineProperty(exports, "NumberInput", { enumerable: true, get: function () { return number_input_1.NumberInput; } });
20
+ var redirect_button_1 = require("./redirect-button");
21
+ Object.defineProperty(exports, "RedirectButton", { enumerable: true, get: function () { return redirect_button_1.RedirectButton; } });
20
22
  var color_picker_1 = require("./color-picker");
21
23
  Object.defineProperty(exports, "ColorPicker", { enumerable: true, get: function () { return color_picker_1.ColorPicker; } });
22
24
  var date_input_1 = require("./date-input");
@@ -40,7 +42,8 @@ exports.allInputs = [
40
42
  date_input_1.DateInput,
41
43
  select_asset_kna_1.SelectAssetKna,
42
44
  slider_1.Slider,
43
- service_input_1.ServiceInput
45
+ service_input_1.ServiceInput,
46
+ redirect_button_1.RedirectButton
44
47
  ];
45
48
  var isInput = function (arg) {
46
49
  return arg && arg.id !== undefined && arg.valueTypeDef !== undefined;
@@ -0,0 +1,15 @@
1
+ import { Input, IInput } from '../base';
2
+ import { ValueError } from '../errors';
3
+ export declare namespace RedirectButton {
4
+ type Error = ValueError.InvalidValue;
5
+ type Value = string;
6
+ }
7
+ export declare class RedirectButton extends Input<RedirectButton.Value> {
8
+ static type: string;
9
+ type: string;
10
+ constructor(options: IInput);
11
+ validateInput(value: RedirectButton.Value): ValueError.InvalidValue[];
12
+ isValidValue(v: any): v is RedirectButton.Value;
13
+ static fromJSON: (value: IInput) => RedirectButton;
14
+ valueTypeDef: () => string;
15
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.RedirectButton = void 0;
19
+ var base_1 = require("../base");
20
+ var validation_1 = require("../utils/validation");
21
+ var RedirectButton = /** @class */ (function (_super) {
22
+ __extends(RedirectButton, _super);
23
+ function RedirectButton(options) {
24
+ var _this = _super.call(this, options) || this;
25
+ _this.type = RedirectButton.type;
26
+ _this.valueTypeDef = function () {
27
+ return 'string';
28
+ };
29
+ return _this;
30
+ }
31
+ RedirectButton.prototype.validateInput = function (value) {
32
+ var regex = /^(https?:\/\/)?(www\.)?([a-zA-Z0-9.-]+)\.([a-zA-Z]{2,})(\/[^\s]*)?$/;
33
+ var errors = [];
34
+ if (!regex.test(value)) {
35
+ errors = errors.concat(validation_1.Validator.invalidValue());
36
+ }
37
+ return errors;
38
+ };
39
+ RedirectButton.prototype.isValidValue = function (v) {
40
+ return typeof v === 'string';
41
+ };
42
+ RedirectButton.type = 'redirect-button';
43
+ RedirectButton.fromJSON = function (value) {
44
+ return new RedirectButton(value);
45
+ };
46
+ return RedirectButton;
47
+ }(base_1.Input));
48
+ exports.RedirectButton = RedirectButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vixoniccom/modules",
3
- "version": "2.19.0",
3
+ "version": "2.20.0-dev.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",