@energycap/components 0.39.35-rxjs-7-upgrade.20241108-1527 → 0.39.36-ECAP-26840-date-input.20241118-1037
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/esm2020/lib/components.module.mjs +33 -16
- package/esm2020/lib/controls/calendar/calendar-item.component.mjs +61 -0
- package/esm2020/lib/controls/calendar/calendar.component.mjs +202 -0
- package/esm2020/lib/controls/calendar/calendar.types.mjs +4 -0
- package/esm2020/lib/controls/checkbox/checkbox.component.mjs +3 -3
- package/esm2020/lib/controls/combobox/combobox.component.mjs +1 -1
- package/esm2020/lib/controls/date-input/date-input.component.mjs +251 -0
- package/esm2020/lib/controls/dropdown/dropdown.component.mjs +1 -1
- package/esm2020/lib/controls/file-upload/file-upload.component.mjs +3 -4
- package/esm2020/lib/controls/form-control/form-control.component.mjs +29 -11
- package/esm2020/lib/controls/form-control-base.mjs +2 -2
- package/esm2020/lib/controls/form-control-label/form-control-label.component.mjs +1 -1
- package/esm2020/lib/controls/form-group/form-group.component.mjs +3 -3
- package/esm2020/lib/controls/menu/menu.component.mjs +5 -4
- package/esm2020/lib/controls/popover/popover.component.mjs +1 -1
- package/esm2020/lib/controls/select/select.component.mjs +2 -2
- package/esm2020/lib/core/date-time-helper.mjs +62 -1
- package/esm2020/lib/core/validation-message.service.mjs +3 -3
- package/esm2020/lib/display/dialog/dialog.component.mjs +4 -4
- package/esm2020/lib/display/hierarchy/hierarchy-base.mjs +1 -1
- package/esm2020/lib/display/table/searchable-table.component.mjs +1 -1
- package/esm2020/lib/display/table/table-detail-row.component.mjs +5 -4
- package/esm2020/lib/display/table/table.component.mjs +5 -4
- package/esm2020/lib/display/toast/toaster/toaster.component.mjs +1 -1
- package/esm2020/lib/display/tooltip-directive/tooltip.directive.mjs +2 -2
- package/esm2020/lib/display/tour/tour.component.mjs +3 -3
- package/esm2020/lib/shared/page/page-base/page-base.component.mjs +3 -3
- package/esm2020/lib/shared/page/page-view/page-view.component.mjs +9 -8
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/energycap-components.mjs +5831 -5243
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +5753 -5172
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/components.module.d.ts +11 -7
- package/lib/controls/calendar/calendar-item.component.d.ts +17 -0
- package/lib/controls/calendar/calendar.component.d.ts +54 -0
- package/lib/controls/calendar/calendar.types.d.ts +7 -0
- package/lib/controls/checkbox/checkbox.component.d.ts +2 -2
- package/lib/controls/date-input/date-input.component.d.ts +79 -0
- package/lib/controls/form-control/form-control.component.d.ts +10 -5
- package/lib/controls/form-control-base.d.ts +1 -1
- package/lib/controls/form-group/form-group.component.d.ts +1 -1
- package/lib/controls/menu/menu.component.d.ts +7 -0
- package/lib/core/date-time-helper.d.ts +26 -0
- package/lib/display/hierarchy/hierarchy-base.d.ts +1 -1
- package/lib/display/table/searchable-table.component.d.ts +1 -1
- package/lib/shared/page/page-base/page-base.component.d.ts +1 -1
- package/package.json +2 -3
- package/public-api.d.ts +3 -0
- package/schematics/collection.json +0 -10
- package/schematics/rxjs-7-upgrade/index.d.ts +0 -3
- package/schematics/rxjs-7-upgrade/index.js +0 -68
- package/schematics/rxjs-7-upgrade/index.js.map +0 -1
- package/schematics/rxjs-7-upgrade/schema.d.ts +0 -4
- package/schematics/rxjs-7-upgrade/schema.js +0 -3
- package/schematics/rxjs-7-upgrade/schema.js.map +0 -1
- package/schematics/rxjs-7-upgrade/schema.json +0 -14
- package/schematics/utilities/typescript.d.ts +0 -7
- package/schematics/utilities/typescript.js +0 -42
- package/schematics/utilities/typescript.js.map +0 -1
- package/schematics/utilities/workspace.d.ts +0 -8
- package/schematics/utilities/workspace.js +0 -72
- package/schematics/utilities/workspace.js.map +0 -1
@@ -1,72 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.getTsConfigPaths = exports.getWorkspace = exports.createWorkspaceHost = void 0;
|
13
|
-
const core_1 = require("@angular-devkit/core");
|
14
|
-
const workspace_1 = require("@schematics/angular/utility/workspace");
|
15
|
-
/** Creates a file host to be used with Angular-Devkit's workspace utilities */
|
16
|
-
function createWorkspaceHost(tree) {
|
17
|
-
return {
|
18
|
-
readFile(path) {
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
20
|
-
const data = tree.read(path);
|
21
|
-
if (!data) {
|
22
|
-
throw new Error(`File not found: ${path}`);
|
23
|
-
}
|
24
|
-
return core_1.virtualFs.fileBufferToString(data);
|
25
|
-
});
|
26
|
-
},
|
27
|
-
writeFile(path, data) {
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
return tree.overwrite(path, data);
|
30
|
-
});
|
31
|
-
},
|
32
|
-
isDirectory(path) {
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
34
|
-
return !tree.exists(path) && tree.getDir(path).subfiles.length > 0;
|
35
|
-
});
|
36
|
-
},
|
37
|
-
isFile(path) {
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
return tree.exists(path);
|
40
|
-
});
|
41
|
-
}
|
42
|
-
};
|
43
|
-
}
|
44
|
-
exports.createWorkspaceHost = createWorkspaceHost;
|
45
|
-
/** Returns the Angular workspace definition for the given path. The path must be a directory containing an angular.json or .angular.json file. */
|
46
|
-
function getWorkspace(path, tree) {
|
47
|
-
return __awaiter(this, void 0, void 0, function* () {
|
48
|
-
const host = createWorkspaceHost(tree);
|
49
|
-
const { workspace } = yield core_1.workspaces.readWorkspace(path, host);
|
50
|
-
return workspace;
|
51
|
-
});
|
52
|
-
}
|
53
|
-
exports.getWorkspace = getWorkspace;
|
54
|
-
/** Returns all tsconfig paths from the angular workspace, including testing tsconfigs. */
|
55
|
-
function getTsConfigPaths(workspace, tree) {
|
56
|
-
const buildPaths = new Set();
|
57
|
-
const testPaths = new Set();
|
58
|
-
for (const [name, target] of (0, workspace_1.allWorkspaceTargets)(workspace)) {
|
59
|
-
if (name !== 'build' && name !== 'test') {
|
60
|
-
continue;
|
61
|
-
}
|
62
|
-
for (const [, options] of (0, workspace_1.allTargetOptions)(target)) {
|
63
|
-
if (options.tsConfig && typeof options.tsConfig === 'string' && tree.exists(options.tsConfig)) {
|
64
|
-
const normalizedPath = (0, core_1.normalize)(options.tsConfig);
|
65
|
-
name === 'build' ? buildPaths.add(normalizedPath) : testPaths.add(normalizedPath);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
|
-
return [...buildPaths, ...testPaths];
|
70
|
-
}
|
71
|
-
exports.getTsConfigPaths = getTsConfigPaths;
|
72
|
-
//# sourceMappingURL=workspace.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../projects/components/schematics/utilities/workspace.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAExE,qEAA8F;AAE9F,+EAA+E;AAC/E,SAAgB,mBAAmB,CAAC,IAAU;IAC5C,OAAO;QACC,QAAQ,CAAC,IAAY;;gBACzB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC7B,IAAI,CAAC,IAAI,EAAE;oBACT,MAAM,IAAI,KAAK,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC;iBAC5C;gBACD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