@vixoniccom/modules 2.12.1 → 2.13.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,13 @@
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.13.0-dev.0](https://gitlab.com/mandomedio/vixonic/modules/compare/v2.12.1...v2.13.0-dev.0) (2022-03-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * **release:** bitly input was created ([4d6ae9c](https://gitlab.com/mandomedio/vixonic/modules/commit/4d6ae9c9997299d56fb45be4914124449f4f8bf6))
11
+
5
12
  ### [2.12.1](https://gitlab.com/mandomedio/vixonic/modules/compare/v2.12.1-rc.0...v2.12.1) (2021-11-12)
6
13
 
7
14
  ### [2.12.1-rc.0](https://gitlab.com/mandomedio/vixonic/modules/compare/v2.12.0...v2.12.1-rc.0) (2021-10-20)
@@ -0,0 +1,17 @@
1
+ import { TextInput, ITextInput, TextInputJSON } from './text-input';
2
+ import { ValueError } from '../errors';
3
+ export interface BitlyInputJSON extends TextInputJSON {
4
+ }
5
+ export declare namespace BitlyInput {
6
+ type Error = ValueError.Required | ValueError.Max | ValueError.Min | {
7
+ type: 'pattern';
8
+ };
9
+ type Value = string;
10
+ type BitlyValue = string;
11
+ }
12
+ export declare class BitlyInput extends TextInput {
13
+ static type: string;
14
+ type: string;
15
+ constructor(options: ITextInput);
16
+ static fromJSON(value: BitlyInputJSON): BitlyInput;
17
+ }
@@ -0,0 +1,45 @@
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
+ var __assign = (this && this.__assign) || function () {
18
+ __assign = Object.assign || function(t) {
19
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20
+ s = arguments[i];
21
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
+ t[p] = s[p];
23
+ }
24
+ return t;
25
+ };
26
+ return __assign.apply(this, arguments);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.BitlyInput = void 0;
30
+ var text_input_1 = require("./text-input");
31
+ var BitlyInput = /** @class */ (function (_super) {
32
+ __extends(BitlyInput, _super);
33
+ function BitlyInput(options) {
34
+ var _this = _super.call(this, options) || this;
35
+ _this.type = BitlyInput.type;
36
+ return _this;
37
+ }
38
+ BitlyInput.fromJSON = function (value) {
39
+ var parsed = text_input_1.TextInput.parseJSON(value);
40
+ return new BitlyInput(__assign({}, parsed));
41
+ };
42
+ BitlyInput.type = 'bitly-input';
43
+ return BitlyInput;
44
+ }(text_input_1.TextInput));
45
+ exports.BitlyInput = BitlyInput;
@@ -1,4 +1,5 @@
1
1
  import { TextArea } from './text-area';
2
+ import { BitlyInput } from './bitly-input';
2
3
  import { TextFormat } from './text-format';
3
4
  import { TextInput } from './text-input';
4
5
  import { Autocomplete } from './autocomplete';
@@ -10,7 +11,7 @@ import { DateInput } from './date-input';
10
11
  import { SelectAssetKna } from './select-asset-kna';
11
12
  import { Slider } from './slider';
12
13
  import { ServiceInput } from './service-input';
13
- export { TextFormat, TextInput, SelectInput, Switch, TextArea, Autocomplete, NumberInput, ColorPicker, DateInput, SelectAssetKna, Slider, ServiceInput };
14
+ export { BitlyInput, TextFormat, TextInput, SelectInput, Switch, TextArea, Autocomplete, NumberInput, ColorPicker, DateInput, SelectAssetKna, Slider, ServiceInput };
14
15
  export declare type AnyJson = boolean | number | string | null | JsonArray | JsonMap | undefined;
15
16
  export interface JsonMap {
16
17
  [key: string]: AnyJson | undefined;
@@ -18,7 +19,7 @@ export interface JsonMap {
18
19
  export interface JsonArray extends Array<AnyJson> {
19
20
  }
20
21
  export declare type InputValue = AnyJson;
21
- export declare type InputComponent = TextInput | TextFormat | SelectInput<string | number> | TextArea | Switch | Autocomplete<string | number> | NumberInput | ColorPicker | DateInput | SelectAssetKna | Slider | ServiceInput;
22
+ export declare type InputComponent = TextInput | TextFormat | BitlyInput | SelectInput<string | number> | TextArea | Switch | Autocomplete<string | number> | NumberInput | ColorPicker | DateInput | SelectAssetKna | Slider | ServiceInput;
22
23
  export declare const allInputs: (typeof TextInput | typeof TextFormat | typeof Autocomplete | typeof Switch | typeof NumberInput | typeof ColorPicker | typeof DateInput | typeof SelectAssetKna | typeof Slider | typeof ServiceInput)[];
23
24
  export declare const isInput: (arg: any) => arg is InputComponent;
24
25
  export declare const isInputInstance: <T>(arg: any, type: string | string[]) => arg is T;
@@ -1,8 +1,10 @@
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 = void 0;
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;
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
+ var bitly_input_1 = require("./bitly-input");
7
+ Object.defineProperty(exports, "BitlyInput", { enumerable: true, get: function () { return bitly_input_1.BitlyInput; } });
6
8
  var text_format_1 = require("./text-format");
7
9
  Object.defineProperty(exports, "TextFormat", { enumerable: true, get: function () { return text_format_1.TextFormat; } });
8
10
  var text_input_1 = require("./text-input");
@@ -26,6 +28,7 @@ Object.defineProperty(exports, "Slider", { enumerable: true, get: function () {
26
28
  var service_input_1 = require("./service-input");
27
29
  Object.defineProperty(exports, "ServiceInput", { enumerable: true, get: function () { return service_input_1.ServiceInput; } });
28
30
  exports.allInputs = [
31
+ bitly_input_1.BitlyInput,
29
32
  text_format_1.TextFormat,
30
33
  text_input_1.TextInput,
31
34
  select_input_1.SelectInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vixoniccom/modules",
3
- "version": "2.12.1",
3
+ "version": "2.13.0-dev.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",