@silexlabs/grapesjs-advanced-selector 1.0.8-2 → 1.0.8-3
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/StylableElement.d.ts +6 -0
- package/dist/StylableElement.d.ts.map +1 -0
- package/dist/components/complex-selector.d.ts +38 -0
- package/dist/components/complex-selector.d.ts.map +1 -0
- package/dist/components/compound-selector.d.ts +38 -0
- package/dist/components/compound-selector.d.ts.map +1 -0
- package/dist/components/current-selector-display.d.ts +23 -0
- package/dist/components/current-selector-display.d.ts.map +1 -0
- package/dist/components/inline-select.d.ts +29 -0
- package/dist/components/inline-select.d.ts.map +1 -0
- package/dist/components/resize-input.d.ts +5 -0
- package/dist/components/resize-input.d.ts.map +1 -0
- package/dist/components/simple-selector.d.ts +45 -0
- package/dist/components/simple-selector.d.ts.map +1 -0
- package/dist/i18n/en.d.ts +75 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/fr.d.ts +75 -0
- package/dist/i18n/fr.d.ts.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +637 -0
- package/dist/index.js.map +1 -0
- package/dist/model/ComplexSelector.d.ts +34 -0
- package/dist/model/ComplexSelector.d.ts.map +1 -0
- package/dist/model/ComplexSelector.test.d.ts +2 -0
- package/dist/model/ComplexSelector.test.d.ts.map +1 -0
- package/dist/model/CompoundSelector.d.ts +25 -0
- package/dist/model/CompoundSelector.d.ts.map +1 -0
- package/dist/model/CompoundSelector.test.d.ts +2 -0
- package/dist/model/CompoundSelector.test.d.ts.map +1 -0
- package/dist/model/GrapesJsSelectors.d.ts +48 -0
- package/dist/model/GrapesJsSelectors.d.ts.map +1 -0
- package/dist/model/GrapesJsSelectors.test.d.ts +2 -0
- package/dist/model/GrapesJsSelectors.test.d.ts.map +1 -0
- package/dist/model/Operator.d.ts +28 -0
- package/dist/model/Operator.d.ts.map +1 -0
- package/dist/model/Operator.test.d.ts +2 -0
- package/dist/model/Operator.test.d.ts.map +1 -0
- package/dist/model/PseudoClass.d.ts +56 -0
- package/dist/model/PseudoClass.d.ts.map +1 -0
- package/dist/model/PseudoClass.test.d.ts +2 -0
- package/dist/model/PseudoClass.test.d.ts.map +1 -0
- package/dist/model/SimpleSelector.d.ts +104 -0
- package/dist/model/SimpleSelector.d.ts.map +1 -0
- package/dist/model/SimpleSelector.test.d.ts +2 -0
- package/dist/model/SimpleSelector.test.d.ts.map +1 -0
- package/dist/plugin.d.ts +18 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/styles.d.ts +4 -0
- package/dist/styles.d.ts.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StylableElement.d.ts","sourceRoot":"","sources":["../src/StylableElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAGhC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IAEnD,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAe;IAElC,iBAAiB;CAO3B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import StylableElement from '../StylableElement';
|
|
2
|
+
import { TemplateResult } from 'lit';
|
|
3
|
+
import './resize-input';
|
|
4
|
+
import { SimpleSelector } from '../model/SimpleSelector';
|
|
5
|
+
import { ComplexSelector } from '../model/ComplexSelector';
|
|
6
|
+
import './inline-select';
|
|
7
|
+
import './compound-selector';
|
|
8
|
+
/**
|
|
9
|
+
* A component to display and edit a complex selector
|
|
10
|
+
* A complex selector is a main selector, an operator, and a related selector
|
|
11
|
+
* @emits change
|
|
12
|
+
* @emits rename (when a simple selector in the main compound selector is renamed)
|
|
13
|
+
*/
|
|
14
|
+
export default class ComplexSelectorComponent extends StylableElement {
|
|
15
|
+
/**
|
|
16
|
+
* The selector to display
|
|
17
|
+
*/
|
|
18
|
+
get value(): ComplexSelector | undefined;
|
|
19
|
+
set value(value: ComplexSelector | string | undefined);
|
|
20
|
+
private _value;
|
|
21
|
+
/**
|
|
22
|
+
* A list of all the classes, IDs, tags, custom tags, attributes, custom attributes
|
|
23
|
+
* that are available in the document, applicable to the current selection
|
|
24
|
+
*/
|
|
25
|
+
suggestions: SimpleSelector[];
|
|
26
|
+
/**
|
|
27
|
+
* A list of all the classes, IDs, tags, custom tags, attributes, custom attributes
|
|
28
|
+
* that are available to the related selector
|
|
29
|
+
*/
|
|
30
|
+
relations: SimpleSelector[];
|
|
31
|
+
static styles: import("lit").CSSResult;
|
|
32
|
+
render(): TemplateResult;
|
|
33
|
+
private changeOperator;
|
|
34
|
+
private addOperator;
|
|
35
|
+
private changeRelatedSelector;
|
|
36
|
+
toString(): string;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=complex-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complex-selector.d.ts","sourceRoot":"","sources":["../../src/components/complex-selector.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,gBAAgB,CAAA;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAY,MAAM,0BAA0B,CAAA;AAMpE,OAAO,iBAAiB,CAAA;AACxB,OAAO,qBAAqB,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,eAAe;IAGnE;;OAEG;IACH,IACW,KAAK,IAAI,eAAe,GAAG,SAAS,CAE9C;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,EAO3D;IACD,OAAO,CAAC,MAAM,CAA6B;IAE3C;;;OAGG;IAEI,WAAW,EAAE,cAAc,EAAE,CAAK;IAGzC;;;OAGG;IAEI,SAAS,EAAE,cAAc,EAAE,CAAK;IAQvC,OAAgB,MAAM,0BAiBrB;IAOQ,MAAM,IAAI,cAAc;IA6CjC,OAAO,CAAC,cAAc;IAkBtB,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,qBAAqB;IAUpB,QAAQ,IAAI,MAAM;CAG5B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import StylableElement from '../StylableElement';
|
|
2
|
+
import { CompoundSelector } from '../model/CompoundSelector';
|
|
3
|
+
import { SimpleSelector } from '../model/SimpleSelector';
|
|
4
|
+
import { TemplateResult } from 'lit';
|
|
5
|
+
import './inline-select';
|
|
6
|
+
import './simple-selector';
|
|
7
|
+
/**
|
|
8
|
+
* A component to display and edit a compound selector
|
|
9
|
+
* A compound selector is a list of simple selectors and a pseudo class
|
|
10
|
+
* @emits change
|
|
11
|
+
* @emits rename (when a simple selector in the selector is renamed)
|
|
12
|
+
* @emits delete
|
|
13
|
+
* @emits add
|
|
14
|
+
*/
|
|
15
|
+
export default class CompoundSelectorComponent extends StylableElement {
|
|
16
|
+
/**
|
|
17
|
+
* The selector to display
|
|
18
|
+
*/
|
|
19
|
+
get value(): CompoundSelector | undefined;
|
|
20
|
+
set value(value: CompoundSelector | string | undefined);
|
|
21
|
+
private _value;
|
|
22
|
+
/**
|
|
23
|
+
* A list of all the classes, IDs, tags, custom tags, attributes, custom attributes
|
|
24
|
+
* that are available in the document, applicable to the current selection
|
|
25
|
+
*/
|
|
26
|
+
suggestions: SimpleSelector[];
|
|
27
|
+
disablePseudoClass: boolean;
|
|
28
|
+
static styles: import("lit").CSSResult;
|
|
29
|
+
toString(): string;
|
|
30
|
+
render(): TemplateResult;
|
|
31
|
+
private changeSelector;
|
|
32
|
+
private addSelector;
|
|
33
|
+
private focusLastSelector;
|
|
34
|
+
private deleteSelector;
|
|
35
|
+
private addPseudoClass;
|
|
36
|
+
private changePseudoClass;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=compound-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compound-selector.d.ts","sourceRoot":"","sources":["../../src/components/compound-selector.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAY,MAAM,2BAA2B,CAAA;AACtE,OAAO,EAAkB,cAAc,EAAmC,MAAM,yBAAyB,CAAA;AACzG,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAA;AAI/C,OAAO,iBAAiB,CAAA;AACxB,OAAO,mBAAmB,CAAA;AAE1B;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,eAAe;IAIpE;;OAEG;IACH,IACW,KAAK,IAAI,gBAAgB,GAAG,SAAS,CAE/C;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,GAAG,SAAS,EAO5D;IACD,OAAO,CAAC,MAAM,CAA8B;IAE5C;;;OAGG;IAEI,WAAW,EAAE,cAAc,EAAE,CAAK;IAGlC,kBAAkB,EAAE,OAAO,CAAQ;IAO1C,OAAgB,MAAM,0BAwBrB;IAOQ,QAAQ,IAAI,MAAM;IAGlB,MAAM,IAAI,cAAc;IAmDjC,OAAO,CAAC,cAAc;IAoBtB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,iBAAiB;CAK1B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import StylableElement from '../StylableElement';
|
|
3
|
+
import { ComplexSelector } from '../model/ComplexSelector';
|
|
4
|
+
export declare class CurrentSelectorDisplay extends StylableElement {
|
|
5
|
+
/**
|
|
6
|
+
* The selector to display
|
|
7
|
+
*/
|
|
8
|
+
get value(): ComplexSelector | undefined;
|
|
9
|
+
set value(value: ComplexSelector | string | undefined);
|
|
10
|
+
private _value;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
selectors: ComplexSelector[];
|
|
13
|
+
helpLink: string;
|
|
14
|
+
error: string;
|
|
15
|
+
warning: string;
|
|
16
|
+
specificity: number;
|
|
17
|
+
private selectRef;
|
|
18
|
+
static styles: import("lit").CSSResult;
|
|
19
|
+
render(): TemplateResult;
|
|
20
|
+
private changeSelector;
|
|
21
|
+
private clearStyle;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=current-selector-display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"current-selector-display.d.ts","sourceRoot":"","sources":["../../src/components/current-selector-display.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAEhD,OAAO,EAAE,eAAe,EAA2C,MAAM,0BAA0B,CAAA;AAInG,qBAAa,sBAAuB,SAAQ,eAAe;IACzD;;OAEG;IACH,IACW,KAAK,IAAI,eAAe,GAAG,SAAS,CAE9C;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,EAO3D;IACD,OAAO,CAAC,MAAM,CAA6B;IAGpC,WAAW,SAAqB;IAGhC,SAAS,EAAE,eAAe,EAAE,CAAK;IAGjC,QAAQ,SAAK;IAGb,KAAK,SAAK;IAGV,OAAO,SAAK;IAGZ,WAAW,SAAI;IACtB,OAAO,CAAC,SAAS,CAAiC;IAElD,OAAgB,MAAM,0BA0FrB;IAEQ,MAAM,IAAI,cAAc;IA2GjC,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,UAAU;CAGnB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import StylableElement from '../StylableElement';
|
|
2
|
+
import { TemplateResult } from 'lit';
|
|
3
|
+
import { PseudoClass } from '../model/PseudoClass';
|
|
4
|
+
import { Operator } from '../model/Operator';
|
|
5
|
+
import './resize-input';
|
|
6
|
+
type Option = PseudoClass | Operator;
|
|
7
|
+
export default class InlineSelectComponent extends StylableElement {
|
|
8
|
+
/**
|
|
9
|
+
* Selected option
|
|
10
|
+
*/
|
|
11
|
+
value?: Option;
|
|
12
|
+
/**
|
|
13
|
+
* List of options
|
|
14
|
+
*/
|
|
15
|
+
options: Option[];
|
|
16
|
+
/**
|
|
17
|
+
* Placeholder displayed when no option is selected
|
|
18
|
+
*/
|
|
19
|
+
placeholder: string;
|
|
20
|
+
private paramRef;
|
|
21
|
+
static styles: import("lit").CSSResult;
|
|
22
|
+
render(): TemplateResult;
|
|
23
|
+
private select;
|
|
24
|
+
private renderList;
|
|
25
|
+
private renderButtons;
|
|
26
|
+
private renderParam;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=inline-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-select.d.ts","sourceRoot":"","sources":["../../src/components/inline-select.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAG5C,OAAO,gBAAgB,CAAA;AAEvB,KAAK,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEpC,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,eAAe;IAGhE;;OAEG;IAED,KAAK,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IAED,OAAO,EAAE,MAAM,EAAE,CAAK;IAExB;;OAEG;IAED,WAAW,SAAqB;IAIlC,OAAO,CAAC,QAAQ,CAAgC;IAIhD,OAAgB,MAAM,0BAwDrB;IAEQ,MAAM,IAAI,cAAc;IAwBjC,OAAO,CAAC,MAAM;IAWd,OAAO,CAAC,UAAU;IAoBlB,OAAO,CAAC,aAAa;IAqBrB,OAAO,CAAC,WAAW;CAsBpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resize-input.d.ts","sourceRoot":"","sources":["../../src/components/resize-input.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,gBAAgB;;IAQhE,WAAW;CAIZ"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { SimpleSelector } from '../model/SimpleSelector';
|
|
3
|
+
import StylableElement from '../StylableElement';
|
|
4
|
+
import './resize-input';
|
|
5
|
+
export default class SimpleSelectorComponent extends StylableElement {
|
|
6
|
+
/**
|
|
7
|
+
* The selector to display
|
|
8
|
+
*/
|
|
9
|
+
get value(): SimpleSelector | undefined;
|
|
10
|
+
set value(sel: SimpleSelector | string | undefined);
|
|
11
|
+
private _value;
|
|
12
|
+
/**
|
|
13
|
+
* A list of all the classes, IDs, tags, custom tags, attributes, custom attributes
|
|
14
|
+
* that are available in the document, applicable to the current selection
|
|
15
|
+
*/
|
|
16
|
+
suggestions: SimpleSelector[];
|
|
17
|
+
/**
|
|
18
|
+
* Whether the selector is editable
|
|
19
|
+
*/
|
|
20
|
+
get editing(): boolean;
|
|
21
|
+
set editing(isEditing: boolean);
|
|
22
|
+
private _editing;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
private selectorInputRef;
|
|
25
|
+
private attributeOptionsAttrValueRef;
|
|
26
|
+
private mainRef;
|
|
27
|
+
static styles: import("lit").CSSResult;
|
|
28
|
+
focus(): void;
|
|
29
|
+
render(): TemplateResult;
|
|
30
|
+
private edit;
|
|
31
|
+
private select;
|
|
32
|
+
private cancelEdit;
|
|
33
|
+
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
34
|
+
private renderMain;
|
|
35
|
+
private renderLayout;
|
|
36
|
+
private renderSelector;
|
|
37
|
+
private renderSelectorInput;
|
|
38
|
+
private renderSuggestionList;
|
|
39
|
+
/**
|
|
40
|
+
* Option editor to edit the selector options, depending on the type
|
|
41
|
+
* Only the attribute selectors have options: `operator` and `value2`
|
|
42
|
+
*/
|
|
43
|
+
private renderOptionsEditor;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=simple-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple-selector.d.ts","sourceRoot":"","sources":["../../src/components/simple-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAA;AAG/C,OAAO,EAAqB,cAAc,EAA6L,MAAM,yBAAyB,CAAA;AACtQ,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAGhD,OAAO,gBAAgB,CAAA;AAEvB,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,eAAe;IAIlE;;OAEG;IACH,IACW,KAAK,IAAI,cAAc,GAAG,SAAS,CAE7C;IACD,IAAW,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,EAOxD;IACD,OAAO,CAAC,MAAM,CAA4B;IAE1C;;;OAGG;IAEI,WAAW,EAAE,cAAc,EAAE,CAAK;IAEzC;;OAEG;IACH,IACW,OAAO,IAAI,OAAO,CAE5B;IACD,IAAW,OAAO,CAAC,SAAS,EAAE,OAAO,EAEpC;IACD,OAAO,CAAC,QAAQ,CAAQ;IAGtB,QAAQ,UAAQ;IAKlB,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,4BAA4B,CAAgC;IACpE,OAAO,CAAC,OAAO,CAA2B;IAI1C,OAAgB,MAAM,0BAoFrB;IAEQ,KAAK;IAGL,MAAM,IAAI,cAAc;IAwDjC,OAAO,CAAC,IAAI;IASZ,OAAO,CAAC,MAAM;IAed,OAAO,CAAC,UAAU;IAaT,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC;IAU1E,OAAO,CAAC,UAAU;IAoBlB,OAAO,CAAC,YAAY;IAmCpB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,mBAAmB;IAmC3B,OAAO,CAAC,oBAAoB;IAoB5B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;CAgE5B"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
Remove: string;
|
|
3
|
+
Specificity: string;
|
|
4
|
+
'Edit selector': string;
|
|
5
|
+
'Copy style': string;
|
|
6
|
+
'Paste style': string;
|
|
7
|
+
'Clear style for this selector': string;
|
|
8
|
+
Help: string;
|
|
9
|
+
Relation: string;
|
|
10
|
+
'Add a new selector': string;
|
|
11
|
+
'Pseudo Class': string;
|
|
12
|
+
Delete: string;
|
|
13
|
+
'When it is': string;
|
|
14
|
+
'When it is a': string;
|
|
15
|
+
'When it': string;
|
|
16
|
+
'inside of': string;
|
|
17
|
+
'direct child of': string;
|
|
18
|
+
'adjacent to': string;
|
|
19
|
+
after: string;
|
|
20
|
+
contains: string;
|
|
21
|
+
'does not match': string;
|
|
22
|
+
matches: string;
|
|
23
|
+
'matches (no spec)': string;
|
|
24
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:where': string;
|
|
25
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:is': string;
|
|
26
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:not': string;
|
|
27
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:has': string;
|
|
28
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/General_sibling_combinator': string;
|
|
29
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_combinator': string;
|
|
30
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator': string;
|
|
31
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_combinator': string;
|
|
32
|
+
'On mouse': string;
|
|
33
|
+
When: string;
|
|
34
|
+
'When it has the': string;
|
|
35
|
+
'When the': string;
|
|
36
|
+
'When it is the': string;
|
|
37
|
+
'When it is within': string;
|
|
38
|
+
'When URL matches': string;
|
|
39
|
+
'When it matches': string;
|
|
40
|
+
'When the text direction is': string;
|
|
41
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:dir': string;
|
|
42
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:lang': string;
|
|
43
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:optional': string;
|
|
44
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:required': string;
|
|
45
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate': string;
|
|
46
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:checked': string;
|
|
47
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:disabled': string;
|
|
48
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:enabled': string;
|
|
49
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:target': string;
|
|
50
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:scope': string;
|
|
51
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:root': string;
|
|
52
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:empty': string;
|
|
53
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:only-of-type': string;
|
|
54
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-of-type': string;
|
|
55
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type': string;
|
|
56
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:last-of-type': string;
|
|
57
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:first-of-type': string;
|
|
58
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:only-child': string;
|
|
59
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-child': string;
|
|
60
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child': string;
|
|
61
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child': string;
|
|
62
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child': string;
|
|
63
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:any-link': string;
|
|
64
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:link': string;
|
|
65
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:visited': string;
|
|
66
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible': string;
|
|
67
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-within': string;
|
|
68
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:focus': string;
|
|
69
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:active': string;
|
|
70
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:hover': string;
|
|
71
|
+
'Current selector does not match the selected components': string;
|
|
72
|
+
'Current selector does not match all the selected components': string;
|
|
73
|
+
};
|
|
74
|
+
export default _default;
|
|
75
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAwEC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
Remove: string;
|
|
3
|
+
Specificity: string;
|
|
4
|
+
'Edit selector': string;
|
|
5
|
+
'Copy style': string;
|
|
6
|
+
'Paste style': string;
|
|
7
|
+
'Clear style for this selector': string;
|
|
8
|
+
Help: string;
|
|
9
|
+
Relation: string;
|
|
10
|
+
'Add a new selector': string;
|
|
11
|
+
'Pseudo Class': string;
|
|
12
|
+
Delete: string;
|
|
13
|
+
'When it is': string;
|
|
14
|
+
'When it is a': string;
|
|
15
|
+
'When it': string;
|
|
16
|
+
'inside of': string;
|
|
17
|
+
'direct child of': string;
|
|
18
|
+
'adjacent to': string;
|
|
19
|
+
after: string;
|
|
20
|
+
contains: string;
|
|
21
|
+
'does not match': string;
|
|
22
|
+
matches: string;
|
|
23
|
+
'matches (no spec)': string;
|
|
24
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:where': string;
|
|
25
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:is': string;
|
|
26
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:not': string;
|
|
27
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:has': string;
|
|
28
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/General_sibling_combinator': string;
|
|
29
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_combinator': string;
|
|
30
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator': string;
|
|
31
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_combinator': string;
|
|
32
|
+
'On mouse': string;
|
|
33
|
+
When: string;
|
|
34
|
+
'When it has the': string;
|
|
35
|
+
'When the': string;
|
|
36
|
+
'When it is the': string;
|
|
37
|
+
'When it is within': string;
|
|
38
|
+
'When URL matches': string;
|
|
39
|
+
'When it matches': string;
|
|
40
|
+
'When the text direction is': string;
|
|
41
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:dir': string;
|
|
42
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:lang': string;
|
|
43
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:optional': string;
|
|
44
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:required': string;
|
|
45
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate': string;
|
|
46
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:checked': string;
|
|
47
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:disabled': string;
|
|
48
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:enabled': string;
|
|
49
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:target': string;
|
|
50
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:scope': string;
|
|
51
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:root': string;
|
|
52
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:empty': string;
|
|
53
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:only-of-type': string;
|
|
54
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-of-type': string;
|
|
55
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type': string;
|
|
56
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:last-of-type': string;
|
|
57
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:first-of-type': string;
|
|
58
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:only-child': string;
|
|
59
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-child': string;
|
|
60
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child': string;
|
|
61
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child': string;
|
|
62
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child': string;
|
|
63
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:any-link': string;
|
|
64
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:link': string;
|
|
65
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:visited': string;
|
|
66
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible': string;
|
|
67
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-within': string;
|
|
68
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:focus': string;
|
|
69
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:active': string;
|
|
70
|
+
'https://developer.mozilla.org/en-US/docs/Web/CSS/:hover': string;
|
|
71
|
+
'Current selector does not match the selected components': string;
|
|
72
|
+
'Current selector does not match all the selected components': string;
|
|
73
|
+
};
|
|
74
|
+
export default _default;
|
|
75
|
+
//# sourceMappingURL=fr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAwEC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Editor } from 'grapesjs';
|
|
2
|
+
|
|
3
|
+
export type AdvancedSelectorOptions = {
|
|
4
|
+
i18n: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
helpLinks: {
|
|
8
|
+
actionBar: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const name = "@silexlabs/grapesjs-advanced-selector";
|
|
12
|
+
declare const _default: (editor: Editor, opts?: Partial<AdvancedSelectorOptions>) => void;
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
_default as default,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAA0B,MAAM,UAAU,CAAA;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAKjC,eAAO,MAAM,IAAI,0CAA0C,CAAA;yBAE3C,QAAQ,MAAM,EAAE,OAAM,OAAO,CAAC,uBAAuB,CAAM;AAA3E,wBA6BC"}
|