@sankhyalabs/ezui 1.2.0-beta.1 → 1.2.0-beta.11
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/cjs/ApplicationUtils-af2dcb57.js +66 -0
- package/dist/cjs/{ApplicationUtils-483c0a9e.js → ApplicationUtils-edc62c5c.js} +6 -2
- package/dist/cjs/{CSSVarsUtils-09b431cc.js → CSSVarsUtils-af809e73.js} +17 -0
- package/dist/cjs/{DialogType-a1e288e6.js → DialogType-aa435c52.js} +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-3bfdba4f.js +6 -0
- package/dist/cjs/dom-8ac1ad03.js +75 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +9 -8
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-calendar.cjs.entry.js +4 -4
- package/dist/cjs/ez-card-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +2 -2
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +9 -8
- package/dist/cjs/ez-date-input.cjs.entry.js +7 -7
- package/dist/cjs/ez-date-time-input.cjs.entry.js +5 -5
- package/dist/cjs/ez-dialog.cjs.entry.js +43 -8
- package/dist/cjs/ez-filter-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-form.cjs.entry.js +461 -50
- package/dist/cjs/ez-grid-config.cjs.entry.js +6 -6
- package/dist/cjs/ez-grid.cjs.entry.js +1179 -990
- package/dist/cjs/ez-icon.cjs.entry.js +4 -4
- package/dist/cjs/ez-list.cjs.entry.js +3 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +5 -5
- package/dist/cjs/ez-popover.cjs.entry.js +5 -5
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller.cjs.entry.js +105 -0
- package/dist/cjs/ez-search.cjs.entry.js +2 -2
- package/dist/cjs/ez-select-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +2 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +3 -3
- package/dist/cjs/ez-time-input.cjs.entry.js +8 -8
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +3 -3
- package/dist/cjs/ez-view-stack.cjs.entry.js +11 -6
- package/dist/cjs/ezui.cjs.js +112 -4
- package/dist/cjs/index-1a75330c.js +6 -0
- package/dist/cjs/index-2ec1da82.js +2307 -0
- package/dist/cjs/{index-c15a9551.js → index-8646c40d.js} +52 -0
- package/dist/cjs/index-d9c5cb88.js +3068 -0
- package/dist/cjs/loader.cjs.js +18 -2
- package/dist/cjs/shadow-css-41d9783d.js +390 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/ez-button/ez-button.css +1 -0
- package/dist/collection/components/ez-chip/ez-chip.css +2 -1
- package/dist/collection/components/ez-dialog/DialogType.js +1 -0
- package/dist/collection/components/ez-dialog/ez-dialog.css +19 -25
- package/dist/collection/components/ez-dialog/ez-dialog.js +41 -6
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +25 -4
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +6 -2
- package/dist/collection/components/ez-icon/ez-icon.css +117 -98
- package/dist/collection/components/ez-scroller/EzScrollDirection.js +6 -0
- package/dist/collection/components/ez-scroller/ez-scroller.css +59 -0
- package/dist/collection/components/ez-scroller/ez-scroller.js +147 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.js +12 -6
- package/dist/collection/utils/ApplicationUtils.js +5 -1
- package/dist/collection/utils/CSSVarsUtils.js +17 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +4052 -988
- package/dist/esm/{ApplicationUtils-5f87ae60.js → ApplicationUtils-205ac4bc.js} +6 -2
- package/dist/esm/ApplicationUtils-4aabf9e9.js +64 -0
- package/dist/esm/{CSSVarsUtils-499b75c2.js → CSSVarsUtils-00f67f32.js} +17 -0
- package/dist/esm/{DialogType-72afa679.js → DialogType-4059dc4d.js} +1 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-20dbffa5.js +4 -0
- package/dist/esm/dom-c5ed0ba5.js +73 -0
- package/dist/esm/ez-actions-button.entry.js +6 -5
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +2 -2
- package/dist/esm/ez-calendar.entry.js +2 -2
- package/dist/esm/ez-card-item.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +2 -2
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +6 -5
- package/dist/esm/ez-date-input.entry.js +3 -3
- package/dist/esm/ez-date-time-input.entry.js +3 -3
- package/dist/esm/ez-dialog.entry.js +43 -8
- package/dist/esm/ez-filter-input.entry.js +2 -2
- package/dist/esm/ez-form.entry.js +427 -16
- package/dist/esm/ez-grid-config.entry.js +4 -4
- package/dist/esm/ez-grid.entry.js +1150 -961
- package/dist/esm/ez-icon.entry.js +3 -3
- package/dist/esm/ez-list.entry.js +3 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +3 -3
- package/dist/esm/ez-popover.entry.js +2 -2
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller.entry.js +101 -0
- package/dist/esm/ez-search.entry.js +2 -2
- package/dist/esm/ez-select-box.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +2 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +2 -2
- package/dist/esm/ez-time-input.entry.js +3 -3
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +3 -3
- package/dist/esm/ez-view-stack.entry.js +11 -6
- package/dist/esm/ezui.js +112 -4
- package/dist/esm/index-1e9d524f.js +3031 -0
- package/dist/esm/{index-b21f0a10.js → index-7bc778b3.js} +52 -0
- package/dist/esm/index-b96183c8.js +2295 -0
- package/dist/esm/index-d6743289.js +3 -0
- package/dist/esm/loader.js +18 -2
- package/dist/esm/shadow-css-8c625855.js +388 -0
- package/dist/ezui/ApplicationUtils-4aabf9e9.js +64 -0
- package/dist/ezui/CSSVarsUtils-00f67f32.js +70 -0
- package/dist/ezui/DialogType-4059dc4d.js +9 -0
- package/dist/ezui/app-globals-0f993ce5.js +3 -0
- package/dist/ezui/css-shim-20dbffa5.js +4 -0
- package/dist/ezui/dom-c5ed0ba5.js +73 -0
- package/dist/ezui/ez-actions-button.entry.js +98 -0
- package/dist/ezui/ez-application.entry.js +22 -0
- package/dist/ezui/ez-button.entry.js +73 -0
- package/dist/ezui/ez-calendar.entry.js +219 -0
- package/dist/ezui/ez-card-item.entry.js +40 -0
- package/dist/ezui/ez-check.entry.js +72 -0
- package/dist/ezui/ez-chip.entry.js +97 -0
- package/dist/ezui/ez-collapsible-box.entry.js +57 -0
- package/dist/ezui/ez-combo-box.entry.js +439 -0
- package/dist/ezui/ez-date-input.entry.js +159 -0
- package/dist/ezui/ez-date-time-input.entry.js +214 -0
- package/dist/ezui/ez-dialog.entry.js +143 -0
- package/dist/ezui/ez-filter-input.entry.js +75 -0
- package/dist/ezui/ez-form.entry.js +1395 -0
- package/dist/ezui/ez-grid-config.entry.js +433 -0
- package/dist/ezui/ez-grid.entry.js +115422 -0
- package/dist/ezui/ez-icon.entry.js +37 -0
- package/dist/ezui/ez-list.entry.js +516 -0
- package/dist/ezui/ez-loading-bar.entry.js +24 -0
- package/dist/ezui/ez-modal.entry.js +67 -0
- package/dist/ezui/ez-number-input.entry.js +148 -0
- package/dist/ezui/ez-popover.entry.js +141 -0
- package/dist/ezui/ez-popup.entry.js +49 -0
- package/dist/ezui/ez-radio-button.entry.js +45 -0
- package/dist/ezui/ez-scroller.entry.js +101 -0
- package/dist/ezui/ez-search.entry.js +83 -0
- package/dist/ezui/ez-select-box.entry.js +18 -0
- package/dist/ezui/ez-tabselector.entry.js +195 -0
- package/dist/ezui/ez-text-area.entry.js +158 -0
- package/dist/ezui/ez-text-input.entry.js +235 -0
- package/dist/ezui/ez-time-input.entry.js +164 -0
- package/dist/ezui/ez-toast.entry.js +84 -0
- package/dist/ezui/ez-upload.entry.js +379 -0
- package/dist/ezui/ez-view-stack.entry.js +78 -0
- package/dist/ezui/ezui.esm.js +125 -1
- package/dist/ezui/index-1e9d524f.js +3031 -0
- package/dist/ezui/index-b96183c8.js +2295 -0
- package/dist/ezui/index-d6743289.js +3 -0
- package/dist/ezui/index.esm.js +1 -0
- package/dist/ezui/p-0b44cf1c.js +1 -0
- package/dist/ezui/p-0c7203d5.entry.js +1 -0
- package/dist/ezui/p-1cc11468.entry.js +1 -0
- package/dist/ezui/{p-b0195dae.entry.js → p-21c0531b.entry.js} +1 -1
- package/dist/ezui/{p-bedef638.entry.js → p-2f02347d.entry.js} +1 -1
- package/dist/ezui/{p-d1bc45bd.entry.js → p-393e4edc.entry.js} +1 -1
- package/dist/ezui/p-3987f8d8.entry.js +1 -0
- package/dist/ezui/{p-e5c572c1.entry.js → p-3a0dd69f.entry.js} +2 -2
- package/dist/ezui/p-3c7ea91b.js +1 -0
- package/dist/ezui/{p-2acf7d59.entry.js → p-416bedbe.entry.js} +1 -1
- package/dist/ezui/{p-d75c3aae.entry.js → p-43bb6a59.entry.js} +1 -1
- package/dist/ezui/p-4a5e37a7.js +1 -0
- package/dist/ezui/{p-8aaca58b.entry.js → p-52085ae4.entry.js} +1 -1
- package/dist/ezui/{p-6a7a9d11.entry.js → p-544f0c63.entry.js} +1 -1
- package/dist/ezui/{p-240a76f1.entry.js → p-56688470.entry.js} +1 -1
- package/dist/ezui/{p-7d29e829.entry.js → p-5a1927a2.entry.js} +1 -1
- package/dist/ezui/{p-1941aef7.entry.js → p-62110996.entry.js} +1 -1
- package/dist/ezui/{p-ad071710.entry.js → p-744eb735.entry.js} +1 -1
- package/dist/ezui/{p-8c1b9fe0.entry.js → p-7c227b86.entry.js} +1 -1
- package/dist/ezui/{p-1fecaeb8.entry.js → p-81eb2738.entry.js} +1 -1
- package/dist/ezui/{p-fd6f3bf9.entry.js → p-9b1700f7.entry.js} +1 -1
- package/dist/ezui/{p-267fa515.entry.js → p-a27dafa4.entry.js} +1 -1
- package/dist/ezui/{p-024df41e.entry.js → p-aba3fa6c.entry.js} +1 -1
- package/dist/ezui/{p-c246e251.entry.js → p-b2cf7db2.entry.js} +1 -1
- package/dist/ezui/{p-94ed1ae6.entry.js → p-b4ad3b15.entry.js} +1 -1
- package/dist/ezui/{p-ba2bfa01.entry.js → p-b706619e.entry.js} +1 -1
- package/dist/ezui/{p-f4819fa3.entry.js → p-c019e137.entry.js} +1 -1
- package/dist/ezui/p-c0dd9a2e.entry.js +1 -0
- package/dist/ezui/{p-0b099e95.entry.js → p-cb533824.entry.js} +1 -1
- package/dist/ezui/{p-f865a50b.entry.js → p-cccd8cde.entry.js} +1 -1
- package/dist/ezui/{p-78fc16d7.entry.js → p-d0671e14.entry.js} +1 -1
- package/dist/ezui/{p-2b017e4c.entry.js → p-e0f06d73.entry.js} +1 -1
- package/dist/ezui/p-e1148f5c.js +1 -0
- package/dist/ezui/{p-b65e22a1.entry.js → p-e59adce6.entry.js} +1 -1
- package/dist/ezui/{p-99440dbc.entry.js → p-e7d03a0d.entry.js} +1 -1
- package/dist/ezui/p-ec9decf2.entry.js +1 -0
- package/dist/ezui/{p-6287fc90.entry.js → p-ed2135a5.entry.js} +1 -1
- package/dist/ezui/{p-465a0f19.entry.js → p-fe75f477.entry.js} +1 -1
- package/dist/ezui/shadow-css-8c625855.js +388 -0
- package/dist/types/components/ez-dialog/DialogType.d.ts +1 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
- package/dist/types/components/ez-scroller/EzScrollDirection.d.ts +5 -0
- package/dist/types/components/ez-scroller/ez-scroller.d.ts +31 -0
- package/dist/types/components/ez-view-stack/ez-view-stack.d.ts +5 -1
- package/dist/types/components.d.ts +23 -1
- package/dist/types/utils/ApplicationUtils.d.ts +1 -0
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
- package/package.json +3 -3
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-139ed2f6.js +0 -1
- package/dist/ezui/p-2c4372a4.entry.js +0 -1
- package/dist/ezui/p-317250bc.entry.js +0 -1
- package/dist/ezui/p-3263a002.js +0 -1
- package/dist/ezui/p-4f2e5cf4.entry.js +0 -1
- package/dist/ezui/p-787fbdfe.js +0 -1
- package/dist/ezui/p-898b9906.js +0 -1
- package/dist/ezui/p-a7064bc1.entry.js +0 -1
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Stencil Client Platform v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
9
|
+
* found in the LICENSE file at https://angular.io/license
|
|
10
|
+
*
|
|
11
|
+
* This file is a port of shadowCSS from webcomponents.js to TypeScript.
|
|
12
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
13
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
14
|
+
*/
|
|
15
|
+
const safeSelector = (selector) => {
|
|
16
|
+
const placeholders = [];
|
|
17
|
+
let index = 0;
|
|
18
|
+
let content;
|
|
19
|
+
// Replaces attribute selectors with placeholders.
|
|
20
|
+
// The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
|
|
21
|
+
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
22
|
+
const replaceBy = `__ph-${index}__`;
|
|
23
|
+
placeholders.push(keep);
|
|
24
|
+
index++;
|
|
25
|
+
return replaceBy;
|
|
26
|
+
});
|
|
27
|
+
// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
|
|
28
|
+
// WS and "+" would otherwise be interpreted as selector separators.
|
|
29
|
+
content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
30
|
+
const replaceBy = `__ph-${index}__`;
|
|
31
|
+
placeholders.push(exp);
|
|
32
|
+
index++;
|
|
33
|
+
return pseudo + replaceBy;
|
|
34
|
+
});
|
|
35
|
+
const ss = {
|
|
36
|
+
content,
|
|
37
|
+
placeholders,
|
|
38
|
+
};
|
|
39
|
+
return ss;
|
|
40
|
+
};
|
|
41
|
+
const restoreSafeSelector = (placeholders, content) => {
|
|
42
|
+
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
43
|
+
};
|
|
44
|
+
const _polyfillHost = '-shadowcsshost';
|
|
45
|
+
const _polyfillSlotted = '-shadowcssslotted';
|
|
46
|
+
// note: :host-context pre-processed to -shadowcsshostcontext.
|
|
47
|
+
const _polyfillHostContext = '-shadowcsscontext';
|
|
48
|
+
const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
|
|
49
|
+
const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
|
|
50
|
+
const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
|
|
51
|
+
const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
|
|
52
|
+
const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
|
|
53
|
+
const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
54
|
+
const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
55
|
+
const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
|
|
56
|
+
const _polyfillHostRe = /-shadowcsshost/gim;
|
|
57
|
+
const _colonHostRe = /:host/gim;
|
|
58
|
+
const _colonSlottedRe = /::slotted/gim;
|
|
59
|
+
const _colonHostContextRe = /:host-context/gim;
|
|
60
|
+
const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
61
|
+
const stripComments = (input) => {
|
|
62
|
+
return input.replace(_commentRe, '');
|
|
63
|
+
};
|
|
64
|
+
const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
65
|
+
const extractCommentsWithHash = (input) => {
|
|
66
|
+
return input.match(_commentWithHashRe) || [];
|
|
67
|
+
};
|
|
68
|
+
const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
69
|
+
const _curlyRe = /([{}])/g;
|
|
70
|
+
const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
71
|
+
const OPEN_CURLY = '{';
|
|
72
|
+
const CLOSE_CURLY = '}';
|
|
73
|
+
const BLOCK_PLACEHOLDER = '%BLOCK%';
|
|
74
|
+
const processRules = (input, ruleCallback) => {
|
|
75
|
+
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
76
|
+
let nextBlockIndex = 0;
|
|
77
|
+
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
78
|
+
const selector = m[2];
|
|
79
|
+
let content = '';
|
|
80
|
+
let suffix = m[4];
|
|
81
|
+
let contentPrefix = '';
|
|
82
|
+
if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
|
|
83
|
+
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
84
|
+
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
85
|
+
contentPrefix = '{';
|
|
86
|
+
}
|
|
87
|
+
const cssRule = {
|
|
88
|
+
selector,
|
|
89
|
+
content,
|
|
90
|
+
};
|
|
91
|
+
const rule = ruleCallback(cssRule);
|
|
92
|
+
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
const escapeBlocks = (input) => {
|
|
96
|
+
const inputParts = input.split(_curlyRe);
|
|
97
|
+
const resultParts = [];
|
|
98
|
+
const escapedBlocks = [];
|
|
99
|
+
let bracketCount = 0;
|
|
100
|
+
let currentBlockParts = [];
|
|
101
|
+
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
102
|
+
const part = inputParts[partIndex];
|
|
103
|
+
if (part === CLOSE_CURLY) {
|
|
104
|
+
bracketCount--;
|
|
105
|
+
}
|
|
106
|
+
if (bracketCount > 0) {
|
|
107
|
+
currentBlockParts.push(part);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
if (currentBlockParts.length > 0) {
|
|
111
|
+
escapedBlocks.push(currentBlockParts.join(''));
|
|
112
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
113
|
+
currentBlockParts = [];
|
|
114
|
+
}
|
|
115
|
+
resultParts.push(part);
|
|
116
|
+
}
|
|
117
|
+
if (part === OPEN_CURLY) {
|
|
118
|
+
bracketCount++;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (currentBlockParts.length > 0) {
|
|
122
|
+
escapedBlocks.push(currentBlockParts.join(''));
|
|
123
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
124
|
+
}
|
|
125
|
+
const strEscapedBlocks = {
|
|
126
|
+
escapedString: resultParts.join(''),
|
|
127
|
+
blocks: escapedBlocks,
|
|
128
|
+
};
|
|
129
|
+
return strEscapedBlocks;
|
|
130
|
+
};
|
|
131
|
+
const insertPolyfillHostInCssText = (selector) => {
|
|
132
|
+
selector = selector
|
|
133
|
+
.replace(_colonHostContextRe, _polyfillHostContext)
|
|
134
|
+
.replace(_colonHostRe, _polyfillHost)
|
|
135
|
+
.replace(_colonSlottedRe, _polyfillSlotted);
|
|
136
|
+
return selector;
|
|
137
|
+
};
|
|
138
|
+
const convertColonRule = (cssText, regExp, partReplacer) => {
|
|
139
|
+
// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
|
|
140
|
+
return cssText.replace(regExp, (...m) => {
|
|
141
|
+
if (m[2]) {
|
|
142
|
+
const parts = m[2].split(',');
|
|
143
|
+
const r = [];
|
|
144
|
+
for (let i = 0; i < parts.length; i++) {
|
|
145
|
+
const p = parts[i].trim();
|
|
146
|
+
if (!p)
|
|
147
|
+
break;
|
|
148
|
+
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
149
|
+
}
|
|
150
|
+
return r.join(',');
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
return _polyfillHostNoCombinator + m[3];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
const colonHostPartReplacer = (host, part, suffix) => {
|
|
158
|
+
return host + part.replace(_polyfillHost, '') + suffix;
|
|
159
|
+
};
|
|
160
|
+
const convertColonHost = (cssText) => {
|
|
161
|
+
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
162
|
+
};
|
|
163
|
+
const colonHostContextPartReplacer = (host, part, suffix) => {
|
|
164
|
+
if (part.indexOf(_polyfillHost) > -1) {
|
|
165
|
+
return colonHostPartReplacer(host, part, suffix);
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
return host + part + suffix + ', ' + part + ' ' + host + suffix;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
const convertColonSlotted = (cssText, slotScopeId) => {
|
|
172
|
+
const slotClass = '.' + slotScopeId + ' > ';
|
|
173
|
+
const selectors = [];
|
|
174
|
+
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
175
|
+
if (m[2]) {
|
|
176
|
+
const compound = m[2].trim();
|
|
177
|
+
const suffix = m[3];
|
|
178
|
+
const slottedSelector = slotClass + compound + suffix;
|
|
179
|
+
let prefixSelector = '';
|
|
180
|
+
for (let i = m[4] - 1; i >= 0; i--) {
|
|
181
|
+
const char = m[5][i];
|
|
182
|
+
if (char === '}' || char === ',') {
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
prefixSelector = char + prefixSelector;
|
|
186
|
+
}
|
|
187
|
+
const orgSelector = prefixSelector + slottedSelector;
|
|
188
|
+
const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
|
|
189
|
+
if (orgSelector.trim() !== addedSelector.trim()) {
|
|
190
|
+
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
191
|
+
selectors.push({
|
|
192
|
+
orgSelector,
|
|
193
|
+
updatedSelector,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
return slottedSelector;
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
return _polyfillHostNoCombinator + m[3];
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
return {
|
|
203
|
+
selectors,
|
|
204
|
+
cssText,
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
const convertColonHostContext = (cssText) => {
|
|
208
|
+
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
209
|
+
};
|
|
210
|
+
const convertShadowDOMSelectors = (cssText) => {
|
|
211
|
+
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
|
|
212
|
+
};
|
|
213
|
+
const makeScopeMatcher = (scopeSelector) => {
|
|
214
|
+
const lre = /\[/g;
|
|
215
|
+
const rre = /\]/g;
|
|
216
|
+
scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
|
|
217
|
+
return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
|
|
218
|
+
};
|
|
219
|
+
const selectorNeedsScoping = (selector, scopeSelector) => {
|
|
220
|
+
const re = makeScopeMatcher(scopeSelector);
|
|
221
|
+
return !re.test(selector);
|
|
222
|
+
};
|
|
223
|
+
const injectScopingSelector = (selector, scopingSelector) => {
|
|
224
|
+
return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
|
|
225
|
+
return before + scopingSelector + colon + after;
|
|
226
|
+
});
|
|
227
|
+
};
|
|
228
|
+
const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
229
|
+
// In Android browser, the lastIndex is not reset when the regex is used in String.replace()
|
|
230
|
+
_polyfillHostRe.lastIndex = 0;
|
|
231
|
+
if (_polyfillHostRe.test(selector)) {
|
|
232
|
+
const replaceBy = `.${hostSelector}`;
|
|
233
|
+
return selector
|
|
234
|
+
.replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
|
|
235
|
+
.replace(_polyfillHostRe, replaceBy + ' ');
|
|
236
|
+
}
|
|
237
|
+
return scopeSelector + ' ' + selector;
|
|
238
|
+
};
|
|
239
|
+
const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
240
|
+
const isRe = /\[is=([^\]]*)\]/g;
|
|
241
|
+
scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
|
|
242
|
+
const className = '.' + scopeSelector;
|
|
243
|
+
const _scopeSelectorPart = (p) => {
|
|
244
|
+
let scopedP = p.trim();
|
|
245
|
+
if (!scopedP) {
|
|
246
|
+
return '';
|
|
247
|
+
}
|
|
248
|
+
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
249
|
+
scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
// remove :host since it should be unnecessary
|
|
253
|
+
const t = p.replace(_polyfillHostRe, '');
|
|
254
|
+
if (t.length > 0) {
|
|
255
|
+
scopedP = injectScopingSelector(t, className);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return scopedP;
|
|
259
|
+
};
|
|
260
|
+
const safeContent = safeSelector(selector);
|
|
261
|
+
selector = safeContent.content;
|
|
262
|
+
let scopedSelector = '';
|
|
263
|
+
let startIndex = 0;
|
|
264
|
+
let res;
|
|
265
|
+
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
266
|
+
// If a selector appears before :host it should not be shimmed as it
|
|
267
|
+
// matches on ancestor elements and not on elements in the host's shadow
|
|
268
|
+
// `:host-context(div)` is transformed to
|
|
269
|
+
// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
|
|
270
|
+
// the `div` is not part of the component in the 2nd selectors and should not be scoped.
|
|
271
|
+
// Historically `component-tag:host` was matching the component so we also want to preserve
|
|
272
|
+
// this behavior to avoid breaking legacy apps (it should not match).
|
|
273
|
+
// The behavior should be:
|
|
274
|
+
// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
|
|
275
|
+
// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
|
|
276
|
+
// `:host-context(tag)`)
|
|
277
|
+
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
278
|
+
// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
|
|
279
|
+
let shouldScope = !hasHost;
|
|
280
|
+
while ((res = sep.exec(selector)) !== null) {
|
|
281
|
+
const separator = res[1];
|
|
282
|
+
const part = selector.slice(startIndex, res.index).trim();
|
|
283
|
+
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
284
|
+
const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
|
|
285
|
+
scopedSelector += `${scopedPart} ${separator} `;
|
|
286
|
+
startIndex = sep.lastIndex;
|
|
287
|
+
}
|
|
288
|
+
const part = selector.substring(startIndex);
|
|
289
|
+
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
290
|
+
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
291
|
+
// replace the placeholders with their original values
|
|
292
|
+
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
293
|
+
};
|
|
294
|
+
const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
295
|
+
return selector
|
|
296
|
+
.split(',')
|
|
297
|
+
.map((shallowPart) => {
|
|
298
|
+
if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
|
|
299
|
+
return shallowPart.trim();
|
|
300
|
+
}
|
|
301
|
+
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
302
|
+
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
return shallowPart.trim();
|
|
306
|
+
}
|
|
307
|
+
})
|
|
308
|
+
.join(', ');
|
|
309
|
+
};
|
|
310
|
+
const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
311
|
+
return processRules(cssText, (rule) => {
|
|
312
|
+
let selector = rule.selector;
|
|
313
|
+
let content = rule.content;
|
|
314
|
+
if (rule.selector[0] !== '@') {
|
|
315
|
+
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
316
|
+
}
|
|
317
|
+
else if (rule.selector.startsWith('@media') ||
|
|
318
|
+
rule.selector.startsWith('@supports') ||
|
|
319
|
+
rule.selector.startsWith('@page') ||
|
|
320
|
+
rule.selector.startsWith('@document')) {
|
|
321
|
+
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
322
|
+
}
|
|
323
|
+
const cssRule = {
|
|
324
|
+
selector: selector.replace(/\s{2,}/g, ' ').trim(),
|
|
325
|
+
content,
|
|
326
|
+
};
|
|
327
|
+
return cssRule;
|
|
328
|
+
});
|
|
329
|
+
};
|
|
330
|
+
const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
|
|
331
|
+
cssText = insertPolyfillHostInCssText(cssText);
|
|
332
|
+
cssText = convertColonHost(cssText);
|
|
333
|
+
cssText = convertColonHostContext(cssText);
|
|
334
|
+
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
335
|
+
cssText = slotted.cssText;
|
|
336
|
+
cssText = convertShadowDOMSelectors(cssText);
|
|
337
|
+
if (scopeId) {
|
|
338
|
+
cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
|
|
339
|
+
}
|
|
340
|
+
cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
341
|
+
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
|
|
342
|
+
return {
|
|
343
|
+
cssText: cssText.trim(),
|
|
344
|
+
slottedSelectors: slotted.selectors,
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
348
|
+
const hostScopeId = scopeId + '-h';
|
|
349
|
+
const slotScopeId = scopeId + '-s';
|
|
350
|
+
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
351
|
+
cssText = stripComments(cssText);
|
|
352
|
+
const orgSelectors = [];
|
|
353
|
+
if (commentOriginalSelector) {
|
|
354
|
+
const processCommentedSelector = (rule) => {
|
|
355
|
+
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
356
|
+
const comment = `/*!@${rule.selector}*/`;
|
|
357
|
+
orgSelectors.push({ placeholder, comment });
|
|
358
|
+
rule.selector = placeholder + rule.selector;
|
|
359
|
+
return rule;
|
|
360
|
+
};
|
|
361
|
+
cssText = processRules(cssText, (rule) => {
|
|
362
|
+
if (rule.selector[0] !== '@') {
|
|
363
|
+
return processCommentedSelector(rule);
|
|
364
|
+
}
|
|
365
|
+
else if (rule.selector.startsWith('@media') ||
|
|
366
|
+
rule.selector.startsWith('@supports') ||
|
|
367
|
+
rule.selector.startsWith('@page') ||
|
|
368
|
+
rule.selector.startsWith('@document')) {
|
|
369
|
+
rule.content = processRules(rule.content, processCommentedSelector);
|
|
370
|
+
return rule;
|
|
371
|
+
}
|
|
372
|
+
return rule;
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
|
|
376
|
+
cssText = [scoped.cssText, ...commentsWithHash].join('\n');
|
|
377
|
+
if (commentOriginalSelector) {
|
|
378
|
+
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
379
|
+
cssText = cssText.replace(placeholder, comment);
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
383
|
+
cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
|
|
384
|
+
});
|
|
385
|
+
return cssText;
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
export { scopeCss };
|
|
@@ -60,7 +60,10 @@ export declare class EzDialog {
|
|
|
60
60
|
show(title: string, message: string, dialogType: DialogType, confirm: boolean, icon: string, labelCancel: string, labelConfirm: string, btnConfirmDanger: boolean): Promise<boolean>;
|
|
61
61
|
isCritical(dialogType: DialogType): boolean;
|
|
62
62
|
getIconElement(message: Message): any;
|
|
63
|
+
getIconClass(dialogType: DialogType): string;
|
|
64
|
+
getIconName(message: Message): string;
|
|
63
65
|
getTypeIndicatorElement(message: Message): any;
|
|
66
|
+
getClassIconIndicator(dialogType: DialogType): string;
|
|
64
67
|
getClassContainer(message: Message): "dialog__container dialog__container--default" | "dialog__container";
|
|
65
68
|
getClassTitleLabel(message: Message): "title title__label title__label--no-icon" | "title title__label";
|
|
66
69
|
componentWillRender(): void;
|
|
@@ -39,6 +39,7 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
39
39
|
quickFilter(term: string): void;
|
|
40
40
|
setSelectedIndex(index: number): void;
|
|
41
41
|
private buildColDef;
|
|
42
|
+
private getStyleByColumn;
|
|
42
43
|
private getFormatterByColumn;
|
|
43
44
|
private onCallStateChange;
|
|
44
45
|
private isUIEvent;
|
|
@@ -11,6 +11,7 @@ export default class DataSource implements IServerSideDatasource {
|
|
|
11
11
|
readonly RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
|
|
12
12
|
private duObserver;
|
|
13
13
|
constructor(dataUnit: DataUnit, controller: EzGridController, options: EzGridOptions);
|
|
14
|
+
private updateSelection;
|
|
14
15
|
getRows(params: IServerSideGetRowsParams): void;
|
|
15
16
|
needReload(currentLoading: IServerSideGetRowsParams): boolean;
|
|
16
17
|
private callbackGetRows;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EzScrollDirection } from './EzScrollDirection';
|
|
2
|
+
export declare class EzScroller {
|
|
3
|
+
_container: HTMLElement;
|
|
4
|
+
_controller: ScrollCtrl;
|
|
5
|
+
/**
|
|
6
|
+
* Determina se haverá scroll na direção Vertical, Horizontal ou Ambos.
|
|
7
|
+
* Por padrão, a direção é "Ambos".
|
|
8
|
+
*/
|
|
9
|
+
direction: EzScrollDirection;
|
|
10
|
+
private getContainerClass;
|
|
11
|
+
private finishDrag;
|
|
12
|
+
clickListener(evt: MouseEvent): void;
|
|
13
|
+
mouseDownHandler(evt: MouseEvent): void;
|
|
14
|
+
mouseUpHandler(): void;
|
|
15
|
+
mouseMoveHandler(evt: MouseEvent): void;
|
|
16
|
+
render(): any;
|
|
17
|
+
}
|
|
18
|
+
declare class ScrollCtrl {
|
|
19
|
+
scrollablePanel: HTMLElement;
|
|
20
|
+
startX: number;
|
|
21
|
+
startY: number;
|
|
22
|
+
scrollWidth: number;
|
|
23
|
+
scrollHeight: number;
|
|
24
|
+
constructor(scrollablePanel: HTMLElement);
|
|
25
|
+
startDragg(evt: MouseEvent): void;
|
|
26
|
+
measureX(e: MouseEvent): number;
|
|
27
|
+
measureY(e: MouseEvent): number;
|
|
28
|
+
doScroll(e: MouseEvent): void;
|
|
29
|
+
didScroll(): boolean;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -3,12 +3,16 @@ export declare class EzViewStack {
|
|
|
3
3
|
private _elemList;
|
|
4
4
|
private _focusedIndex;
|
|
5
5
|
private _totalStackItems;
|
|
6
|
+
/**
|
|
7
|
+
* Indetificador único do componente
|
|
8
|
+
*/
|
|
9
|
+
private _dataKey;
|
|
6
10
|
/**
|
|
7
11
|
* Exibe a aba desejada de acordo com o index passado na tela fazendo com a ativa atual seja removida ou oculta dependendo da hidePolicy.
|
|
8
12
|
*/
|
|
9
13
|
show(index: number): Promise<void>;
|
|
10
14
|
/**
|
|
11
|
-
* Retorna o index que
|
|
15
|
+
* Retorna o index que está atualmente ativo e sendo exibido.
|
|
12
16
|
*/
|
|
13
17
|
getSelectedIndex(): Promise<number>;
|
|
14
18
|
policyHideRemove(): void;
|
|
@@ -14,6 +14,7 @@ import { FieldConfig, RecordValidator, ValidationResult } from "./components/ez-
|
|
|
14
14
|
import { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig } from "./components/ez-grid/controller/EzGridController";
|
|
15
15
|
import { ListGroup, ListItem } from "./components/ez-list/ez-list";
|
|
16
16
|
import { Radio } from "./components/ez-radio-button/ez-radio-button";
|
|
17
|
+
import { EzScrollDirection } from "./components/ez-scroller/EzScrollDirection";
|
|
17
18
|
import { Option as Option1 } from "./components/ez-combo-box/ez-combo-box";
|
|
18
19
|
import { Tab } from "./components/ez-tabselector/ez-tabselector";
|
|
19
20
|
import { EzFile } from "./components/ez-upload/ez-upload";
|
|
@@ -677,6 +678,12 @@ export namespace Components {
|
|
|
677
678
|
*/
|
|
678
679
|
"value": any;
|
|
679
680
|
}
|
|
681
|
+
interface EzScroller {
|
|
682
|
+
/**
|
|
683
|
+
* Determina se haverá scroll na direção Vertical, Horizontal ou Ambos. Por padrão, a direção é "Ambos".
|
|
684
|
+
*/
|
|
685
|
+
"direction": EzScrollDirection;
|
|
686
|
+
}
|
|
680
687
|
interface EzSearch {
|
|
681
688
|
/**
|
|
682
689
|
* Deixa o campo disponível ou não.
|
|
@@ -948,7 +955,7 @@ export namespace Components {
|
|
|
948
955
|
}
|
|
949
956
|
interface EzViewStack {
|
|
950
957
|
/**
|
|
951
|
-
* Retorna o index que
|
|
958
|
+
* Retorna o index que está atualmente ativo e sendo exibido.
|
|
952
959
|
*/
|
|
953
960
|
"getSelectedIndex": () => Promise<number>;
|
|
954
961
|
/**
|
|
@@ -1102,6 +1109,12 @@ declare global {
|
|
|
1102
1109
|
prototype: HTMLEzRadioButtonElement;
|
|
1103
1110
|
new (): HTMLEzRadioButtonElement;
|
|
1104
1111
|
};
|
|
1112
|
+
interface HTMLEzScrollerElement extends Components.EzScroller, HTMLStencilElement {
|
|
1113
|
+
}
|
|
1114
|
+
var HTMLEzScrollerElement: {
|
|
1115
|
+
prototype: HTMLEzScrollerElement;
|
|
1116
|
+
new (): HTMLEzScrollerElement;
|
|
1117
|
+
};
|
|
1105
1118
|
interface HTMLEzSearchElement extends Components.EzSearch, HTMLStencilElement {
|
|
1106
1119
|
}
|
|
1107
1120
|
var HTMLEzSearchElement: {
|
|
@@ -1181,6 +1194,7 @@ declare global {
|
|
|
1181
1194
|
"ez-popover": HTMLEzPopoverElement;
|
|
1182
1195
|
"ez-popup": HTMLEzPopupElement;
|
|
1183
1196
|
"ez-radio-button": HTMLEzRadioButtonElement;
|
|
1197
|
+
"ez-scroller": HTMLEzScrollerElement;
|
|
1184
1198
|
"ez-search": HTMLEzSearchElement;
|
|
1185
1199
|
"ez-select-box": HTMLEzSelectBoxElement;
|
|
1186
1200
|
"ez-tabselector": HTMLEzTabselectorElement;
|
|
@@ -1805,6 +1819,12 @@ declare namespace LocalJSX {
|
|
|
1805
1819
|
*/
|
|
1806
1820
|
"value"?: any;
|
|
1807
1821
|
}
|
|
1822
|
+
interface EzScroller {
|
|
1823
|
+
/**
|
|
1824
|
+
* Determina se haverá scroll na direção Vertical, Horizontal ou Ambos. Por padrão, a direção é "Ambos".
|
|
1825
|
+
*/
|
|
1826
|
+
"direction"?: EzScrollDirection;
|
|
1827
|
+
}
|
|
1808
1828
|
interface EzSearch {
|
|
1809
1829
|
/**
|
|
1810
1830
|
* Deixa o campo disponível ou não.
|
|
@@ -2082,6 +2102,7 @@ declare namespace LocalJSX {
|
|
|
2082
2102
|
"ez-popover": EzPopover;
|
|
2083
2103
|
"ez-popup": EzPopup;
|
|
2084
2104
|
"ez-radio-button": EzRadioButton;
|
|
2105
|
+
"ez-scroller": EzScroller;
|
|
2085
2106
|
"ez-search": EzSearch;
|
|
2086
2107
|
"ez-select-box": EzSelectBox;
|
|
2087
2108
|
"ez-tabselector": EzTabselector;
|
|
@@ -2121,6 +2142,7 @@ declare module "@stencil/core" {
|
|
|
2121
2142
|
"ez-popover": LocalJSX.EzPopover & JSXBase.HTMLAttributes<HTMLEzPopoverElement>;
|
|
2122
2143
|
"ez-popup": LocalJSX.EzPopup & JSXBase.HTMLAttributes<HTMLEzPopupElement>;
|
|
2123
2144
|
"ez-radio-button": LocalJSX.EzRadioButton & JSXBase.HTMLAttributes<HTMLEzRadioButtonElement>;
|
|
2145
|
+
"ez-scroller": LocalJSX.EzScroller & JSXBase.HTMLAttributes<HTMLEzScrollerElement>;
|
|
2124
2146
|
"ez-search": LocalJSX.EzSearch & JSXBase.HTMLAttributes<HTMLEzSearchElement>;
|
|
2125
2147
|
"ez-select-box": LocalJSX.EzSelectBox & JSXBase.HTMLAttributes<HTMLEzSelectBoxElement>;
|
|
2126
2148
|
"ez-tabselector": LocalJSX.EzTabselector & JSXBase.HTMLAttributes<HTMLEzTabselectorElement>;
|
|
@@ -4,6 +4,7 @@ export default class ApplicationUtils {
|
|
|
4
4
|
private static defaultMessageOptions;
|
|
5
5
|
static alert(title: string, message: string, icon?: string, options?: MessageOptions): Promise<boolean>;
|
|
6
6
|
static error(title: string, message: string, icon?: string, options?: MessageOptions): Promise<boolean>;
|
|
7
|
+
static success(title: string, message: string, icon?: string, options?: MessageOptions): Promise<boolean>;
|
|
7
8
|
static confirm(title: string, message: string, icon?: string, dialogType?: DialogType, options?: MessageOptions): Promise<boolean>;
|
|
8
9
|
static message(title: string, message: string, icon?: string, options?: MessageOptions): Promise<boolean>;
|
|
9
10
|
static info(message: string, options?: MessageOptions): Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export default class CSSVarsUtils {
|
|
2
|
+
static applyCSSVars(document: DocumentOrShadowRoot, host: HTMLElement, child: HTMLElement): void;
|
|
2
3
|
static applyVarsTextInput(host: HTMLElement, child: HTMLElement): void;
|
|
3
4
|
static applyVarsButton(host: HTMLElement, child: HTMLElement): void;
|
|
4
5
|
private static applyIfExists;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sankhyalabs/ezui",
|
|
3
|
-
"version": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.11",
|
|
4
4
|
"description": "Biblioteca de componentes Sankhya.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/custom-elements/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@babel/preset-env": "^7.16.11",
|
|
51
51
|
"@sankhyalabs/core": "^1.0.71-beta.3",
|
|
52
52
|
"@sankhyalabs/docscss": "^1.0.1",
|
|
53
|
-
"@sankhyalabs/ez-design": "^1.0.
|
|
53
|
+
"@sankhyalabs/ez-design": "^1.0.61",
|
|
54
54
|
"@sankhyalabs/skippeerdeps": "^1.0.2",
|
|
55
55
|
"@semantic-release/git": "^9.0.0",
|
|
56
56
|
"@semantic-release/gitlab": "^6.1.0",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"verbose": true
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@sankhyalabs/core": "^1.0.71-beta.
|
|
87
|
+
"@sankhyalabs/core": "^1.0.71-beta.8"
|
|
88
88
|
}
|
|
89
89
|
}
|