diff --git a/gulpfile.ts b/gulpfile.ts index 793dc1f..f684080 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -125,6 +125,9 @@ task("rollup:es2015", () => src(`${buildFolder}/**/*.js`) const tsProject = ts.createProject({ target: "es5", module: "es2015", + lib: [ + "es2016", + ], allowJs: true, typescript: require("typescript"), }); @@ -152,7 +155,6 @@ task("rollup:umd", () => src(`${tmpBundlesFolder}/${bundleNameES5}`) external: ROLLUP_EXTERNAL, format: "umd", moduleName: libName, - moduleId: "", separateCaches: rollupUMDCaches, onwarn(message) { if (message.code === "THIS_IS_UNDEFINED") { diff --git a/package.json b/package.json index 1ecccb6..d7a9e6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@qontu/ngx-inline-editor", - "version": "0.2.0-alpha.8", + "version": "0.2.0-alpha.9", "author": { "name": "Carlos Caballero", "email": "caballerog.carlos@gmail.com" @@ -77,14 +77,13 @@ "gulp": "^3.9.1", "gulp-changed": "^3.1.0", "gulp-inline-ng2-template": "^4.0.0", - "gulp-ngc": "^0.3.0", + "gulp-ngc": "^0.3.2", "gulp-rename": "^1.2.2", - "gulp-rollup": "^2.11.0", - "gulp-typescript": "^3.1.6", + "gulp-rollup": "^2.14.0", + "gulp-typescript": "^3.2.1", "jasmine-core": "^2.6.4", - "jasmine-spec-reporter": "~4.1.1", "karma": "^1.7.0", - "karma-chrome-launcher": "~2.0.0", + "karma-chrome-launcher": "~2.2.0", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^0.2.0", "karma-jasmine": "^1.1.0", @@ -100,7 +99,7 @@ "phantomjs-prebuilt": "~2.1.14", "protractor": "~5.1.0", "reflect-metadata": "~0.1.10", - "rollup": "^0.41.6", + "rollup": "^0.45.2", "run-sequence": "^1.2.2", "rxjs": "^5.3.0", "ts-loader": "^2.0.3", diff --git a/src/types/inline-configs.ts b/src/types/inline-configs.ts index 3c04d5d..fcc97d4 100644 --- a/src/types/inline-configs.ts +++ b/src/types/inline-configs.ts @@ -20,9 +20,15 @@ export interface InlineSelectConfig extends InlineBaseConfig, InputSelectable { export interface InlineNumberConfig extends InlineBaseConfig, InputLengthTestable { } -export interface InlineTextareaConfig extends InlineBaseConfig, TextareaConfig, InputRegexTestable { } +export interface InlineTextareaConfig extends InlineBaseConfig, TextareaConfig, InputRegexTestable { + rows: number; + cols: number; +} -export interface InlineCheckboxConfig extends InlineBaseConfig, CheckboxConfig { } +export interface InlineCheckboxConfig extends InlineBaseConfig, CheckboxConfig { + checkedText: string; + uncheckedText: string; +} export interface InlineConfig extends InlineTextConfig, InlineTextareaConfig, InlineSelectConfig, InlineNumberConfig, InlineCheckboxConfig { diff --git a/yarn.lock b/yarn.lock index 2c75c16..2ba0891 100644 --- a/yarn.lock +++ b/yarn.lock @@ -847,7 +847,7 @@ codelyzer@^3.0.0: source-map "^0.5.6" sprintf-js "^1.0.3" -colors@1.1.2, colors@^1.0.3, colors@^1.1.0, colors@^1.1.2: +colors@^1.0.3, colors@^1.1.0, colors@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" @@ -1969,9 +1969,9 @@ gulp-inline-ng2-template@^4.0.0: isarray "0.0.1" through2 "~2.0.0" -gulp-ngc@^0.3.0: - version "0.3.1" - resolved "https://registry.yarnpkg.com/gulp-ngc/-/gulp-ngc-0.3.1.tgz#9d63ac2806df22ea43710ad5177a111847063e56" +gulp-ngc@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/gulp-ngc/-/gulp-ngc-0.3.2.tgz#fc5d099eeb5e15a6dc64ab233b575c609ef35e5d" dependencies: "@angular/compiler-cli" ">=2.4.1" gulp ">=3.9.1" @@ -1982,14 +1982,14 @@ gulp-rename@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/gulp-rename/-/gulp-rename-1.2.2.tgz#3ad4428763f05e2764dec1c67d868db275687817" -gulp-rollup@^2.11.0: - version "2.12.0" - resolved "https://registry.yarnpkg.com/gulp-rollup/-/gulp-rollup-2.12.0.tgz#7a7a0dcda478954b111a2bf4a6e60d1ebdf77802" +gulp-rollup@^2.14.0: + version "2.14.0" + resolved "https://registry.yarnpkg.com/gulp-rollup/-/gulp-rollup-2.14.0.tgz#0244b4884ed14e957626628b960488cfc5b04b18" dependencies: buffer-from "^0.1.0" gulp-util "^3.0.6" readable-stream "^2.1.4" - rollup "^0.42.0" + rollup "^0.45.1" rollup-plugin-hypothetical "^1.1.0" gulp-sourcemaps@1.6.0: @@ -2002,9 +2002,9 @@ gulp-sourcemaps@1.6.0: through2 "^2.0.0" vinyl "^1.0.0" -gulp-typescript@^3.1.6: - version "3.1.7" - resolved "https://registry.yarnpkg.com/gulp-typescript/-/gulp-typescript-3.1.7.tgz#d88600a914153f11c09c9a5ca8c2561ec75a4978" +gulp-typescript@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/gulp-typescript/-/gulp-typescript-3.2.1.tgz#52cd77e9c6844e3b9a8bddd88e884ceb46a5db79" dependencies: gulp-util "~3.0.7" source-map "~0.5.3" @@ -2625,12 +2625,6 @@ jasmine-core@^2.6.4, jasmine-core@~2.6.0: version "2.6.4" resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.6.4.tgz#dec926cd0a9fa287fb6db5c755fa487e74cecac5" -jasmine-spec-reporter@~4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/jasmine-spec-reporter/-/jasmine-spec-reporter-4.1.1.tgz#5a6d58ab5d61bea7309fbc279239511756b1b588" - dependencies: - colors "1.1.2" - jasmine@^2.5.3: version "2.6.0" resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-2.6.0.tgz#6b22e70883e8e589d456346153b4d206ddbe217f" @@ -2719,9 +2713,9 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.3.6" -karma-chrome-launcher@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-2.0.0.tgz#c2790c5a32b15577d0fff5a4d5a2703b3b439c25" +karma-chrome-launcher@~2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-2.2.0.tgz#cf1b9d07136cc18fe239327d24654c3dbc368acf" dependencies: fs-access "^1.0.0" which "^1.2.1" @@ -4071,15 +4065,9 @@ rollup-plugin-hypothetical@^1.1.0: version "1.2.1" resolved "https://registry.yarnpkg.com/rollup-plugin-hypothetical/-/rollup-plugin-hypothetical-1.2.1.tgz#f427077b7bab592cc298197ab9aaac4fe4efa055" -rollup@^0.41.6: - version "0.41.6" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.41.6.tgz#e0d05497877a398c104d816d2733a718a7a94e2a" - dependencies: - source-map-support "^0.4.0" - -rollup@^0.42.0: - version "0.42.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.42.0.tgz#56e791b3a2f3dd7190bbb80a375675f2fe0f9b23" +rollup@^0.45.1, rollup@^0.45.2: + version "0.45.2" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.45.2.tgz#63a284c2b31234656f24e9e9717fabb6a7f0fa43" dependencies: source-map-support "^0.4.0"